From f9b17ce2686ecf47fa1321c4c3bb63a9cb252c47 Mon Sep 17 00:00:00 2001 From: Vikrant Balyan Date: Fri, 23 Aug 2024 13:05:09 +0530 Subject: [PATCH] refreshing sdk for intersight version 18012 (#48) --- README.md | 5 +- api/openapi.yaml | 56139 ++++++++++++++-- api_aaa.go | 76 +- api_access.go | 76 +- api_adapter.go | 172 +- api_apic.go | 266 +- api_appliance.go | 1008 +- api_asset.go | 272 +- api_bios.go | 172 +- api_boot.go | 370 +- api_bulk.go | 210 +- api_capability.go | 1284 +- api_catalystsdwan.go | 68 +- api_certificatemanagement.go | 54 +- api_chassis.go | 176 +- api_cloud.go | 432 +- api_comm.go | 32 +- api_compute.go | 350 +- api_cond.go | 190 +- api_connectorpack.go | 50 +- api_console.go | 24 +- api_convergedinfra.go | 138 +- api_crd.go | 32 +- api_deviceconnector.go | 32 +- api_dnac.go | 222 +- api_equipment.go | 784 +- api_ether.go | 102 +- api_externalsite.go | 32 +- api_fabric.go | 1384 +- api_fault.go | 28 +- api_fc.go | 72 +- api_fcpool.go | 146 +- api_feedback.go | 10 +- api_firmware.go | 802 +- api_fmc.go | 90 +- api_forecast.go | 72 +- api_graphics.go | 54 +- api_hcl.go | 172 +- api_hyperflex.go | 1822 +- api_iaas.go | 248 +- api_iam.go | 1286 +- api_inventory.go | 102 +- api_ipmioverlan.go | 54 +- api_ippool.go | 190 +- api_iqnpool.go | 146 +- api_iwotenant.go | 110 +- api_kubernetes.go | 912 +- api_kvm.go | 140 +- api_license.go | 356 +- api_ls.go | 28 +- api_macpool.go | 146 +- api_management.go | 80 +- api_marketplace.go | 62 +- api_memory.go | 240 +- api_meraki.go | 112 +- api_meta.go | 24 +- api_metrics.go | 32 +- api_monitoring.go | 24 +- api_network.go | 396 +- api_networkconfig.go | 54 +- api_niaapi.go | 442 +- api_niatelemetry.go | 1826 +- api_notification.go | 32 +- api_ntp.go | 54 +- api_oauth.go | 54 +- api_openapi.go | 132 +- api_oprs.go | 62 +- api_organization.go | 32 +- api_os.go | 162 +- api_partnerintegration.go | 248 +- api_pci.go | 128 +- api_port.go | 80 +- api_power.go | 76 +- api_processor.go | 28 +- api_rack.go | 28 +- api_recommendation.go | 202 +- api_recovery.go | 192 +- api_resource.go | 210 +- api_resourcepool.go | 146 +- api_rproxy.go | 6 +- api_scheduler.go | 54 +- api_sdaaci.go | 62 +- api_sdcard.go | 54 +- api_search.go | 50 +- api_security.go | 28 +- api_server.go | 176 +- api_servicenow.go | 46 +- api_smtp.go | 32 +- api_snmp.go | 54 +- api_software.go | 354 +- api_softwarerepository.go | 278 +- api_sol.go | 54 +- api_ssh.go | 54 +- api_storage.go | 2682 +- api_syslog.go | 54 +- api_tam.go | 152 +- api_task.go | 58 +- api_techsupportmanagement.go | 124 +- api_telemetry.go | 2 +- api_terminal.go | 24 +- api_terraform.go | 32 +- api_thermal.go | 54 +- api_top.go | 28 +- api_ucsd.go | 24 +- api_uuidpool.go | 146 +- api_view.go | 46 +- api_virtualization.go | 618 +- api_vmedia.go | 54 +- api_vmrc.go | 32 +- api_vnic.go | 870 +- api_vrf.go | 32 +- api_workflow.go | 760 +- api_workspace.go | 32 +- client.go | 32 +- configuration.go | 4 +- docs/NetworkElementSummary.md | 26 + docs/TelemetryDruidFilter.md | 56 +- docs/WorkflowEnumEntry.md | 4 +- docs/WorkflowTargetProperty.md | 36 + model_aaa_abstract_audit_record.go | 43 +- model_aaa_audit_record.go | 43 +- model_aaa_audit_record_list.go | 22 +- model_aaa_audit_record_response.go | 2 +- model_aaa_retention_config.go | 39 +- model_aaa_retention_config_list.go | 22 +- model_aaa_retention_config_response.go | 2 +- model_aaa_retention_policy.go | 39 +- model_aaa_retention_policy_list.go | 22 +- model_aaa_retention_policy_response.go | 2 +- model_aaa_user_agent.go | 39 +- model_access_address_type.go | 39 +- model_access_configuration_type.go | 39 +- model_access_ip_address.go | 51 +- model_access_ip_address_list.go | 22 +- model_access_ip_address_response.go | 2 +- model_access_policy.go | 41 +- model_access_policy_inventory.go | 39 +- model_access_policy_inventory_list.go | 22 +- model_access_policy_inventory_response.go | 2 +- model_access_policy_list.go | 22 +- model_access_policy_response.go | 2 +- model_adapter_adapter_config.go | 45 +- model_adapter_config_policy.go | 43 +- model_adapter_config_policy_list.go | 22 +- model_adapter_config_policy_response.go | 2 +- model_adapter_dce_interface_settings.go | 39 +- model_adapter_eth_settings.go | 39 +- model_adapter_ext_eth_interface.go | 41 +- model_adapter_ext_eth_interface_list.go | 22 +- ..._adapter_ext_eth_interface_relationship.go | 2 +- model_adapter_ext_eth_interface_response.go | 2 +- model_adapter_fc_settings.go | 39 +- model_adapter_host_eth_interface.go | 41 +- model_adapter_host_eth_interface_list.go | 22 +- ...adapter_host_eth_interface_relationship.go | 2 +- model_adapter_host_eth_interface_response.go | 2 +- model_adapter_host_fc_interface.go | 41 +- model_adapter_host_fc_interface_list.go | 22 +- ..._adapter_host_fc_interface_relationship.go | 2 +- model_adapter_host_fc_interface_response.go | 2 +- model_adapter_host_iscsi_interface.go | 39 +- model_adapter_host_iscsi_interface_list.go | 22 +- ...apter_host_iscsi_interface_relationship.go | 2 +- ...l_adapter_host_iscsi_interface_response.go | 2 +- model_adapter_physical_nic_mode_settings.go | 39 +- model_adapter_port_channel_settings.go | 39 +- model_adapter_unit.go | 49 +- model_adapter_unit_expander.go | 39 +- model_adapter_unit_expander_list.go | 22 +- model_adapter_unit_expander_relationship.go | 2 +- model_adapter_unit_expander_response.go | 2 +- model_adapter_unit_list.go | 22 +- model_adapter_unit_relationship.go | 2 +- model_adapter_unit_response.go | 2 +- model_apic_aci_pod.go | 39 +- model_apic_aci_pod_list.go | 22 +- model_apic_aci_pod_response.go | 2 +- model_apic_application.go | 39 +- model_apic_application_endpoint_group.go | 39 +- model_apic_application_endpoint_group_list.go | 22 +- ...pic_application_endpoint_group_response.go | 2 +- model_apic_application_list.go | 22 +- model_apic_application_relationship.go | 2 +- model_apic_application_response.go | 2 +- model_apic_bridge_domain.go | 39 +- model_apic_bridge_domain_list.go | 22 +- model_apic_bridge_domain_relationship.go | 2 +- model_apic_bridge_domain_response.go | 2 +- ...apic_external_routed_layer_three_domain.go | 39 +- ...external_routed_layer_three_domain_list.go | 22 +- ...rnal_routed_layer_three_domain_response.go | 2 +- model_apic_fabric_leaf_node.go | 39 +- model_apic_fabric_leaf_node_details.go | 39 +- model_apic_fabric_leaf_node_interface.go | 39 +- model_apic_fabric_leaf_node_interface_list.go | 22 +- ...pic_fabric_leaf_node_interface_response.go | 2 +- model_apic_fabric_leaf_node_list.go | 22 +- model_apic_fabric_leaf_node_relationship.go | 2 +- model_apic_fabric_leaf_node_response.go | 2 +- model_apic_inventory_entity.go | 20 +- model_apic_out.go | 39 +- model_apic_out_list.go | 22 +- model_apic_out_response.go | 2 +- model_apic_subnet.go | 39 +- model_apic_subnet_list.go | 22 +- model_apic_subnet_response.go | 2 +- model_apic_tenant.go | 39 +- model_apic_tenant_list.go | 22 +- model_apic_tenant_relationship.go | 2 +- model_apic_tenant_response.go | 2 +- model_apic_vpc_group.go | 39 +- model_apic_vpc_group_list.go | 22 +- model_apic_vpc_group_response.go | 2 +- model_apic_vrfs.go | 39 +- model_apic_vrfs_list.go | 22 +- model_apic_vrfs_response.go | 2 +- model_appliance_api_status.go | 39 +- model_appliance_app_op_status.go | 41 +- model_appliance_app_op_status_list.go | 22 +- model_appliance_app_op_status_relationship.go | 2 +- model_appliance_app_op_status_response.go | 2 +- model_appliance_app_status.go | 43 +- model_appliance_app_status_list.go | 22 +- model_appliance_app_status_relationship.go | 2 +- model_appliance_app_status_response.go | 2 +- model_appliance_auto_rma_policy.go | 39 +- model_appliance_auto_rma_policy_list.go | 22 +- model_appliance_auto_rma_policy_response.go | 2 +- model_appliance_backup.go | 45 +- model_appliance_backup_base.go | 32 +- model_appliance_backup_list.go | 22 +- model_appliance_backup_monitor.go | 39 +- model_appliance_backup_monitor_list.go | 22 +- model_appliance_backup_monitor_response.go | 2 +- model_appliance_backup_policy.go | 43 +- model_appliance_backup_policy_list.go | 22 +- model_appliance_backup_policy_response.go | 2 +- model_appliance_backup_response.go | 2 +- model_appliance_backup_rotate_data.go | 39 +- model_appliance_backup_rotate_data_list.go | 22 +- ...l_appliance_backup_rotate_data_response.go | 2 +- model_appliance_cert_renewal_phase.go | 39 +- model_appliance_certificate_setting.go | 39 +- model_appliance_certificate_setting_list.go | 22 +- ..._appliance_certificate_setting_response.go | 2 +- model_appliance_cluster_info.go | 39 +- model_appliance_cluster_info_list.go | 22 +- model_appliance_cluster_info_response.go | 2 +- model_appliance_cluster_install.go | 20 +- model_appliance_cluster_install_base.go | 26 +- model_appliance_cluster_install_list.go | 22 +- model_appliance_cluster_install_phase.go | 41 +- model_appliance_cluster_install_response.go | 2 +- model_appliance_cluster_replace_node.go | 39 +- model_appliance_cluster_replace_node_list.go | 22 +- ...appliance_cluster_replace_node_response.go | 2 +- model_appliance_data_export_policy.go | 41 +- model_appliance_data_export_policy_list.go | 22 +- ...pliance_data_export_policy_relationship.go | 2 +- ...l_appliance_data_export_policy_response.go | 2 +- model_appliance_device_certificate.go | 43 +- model_appliance_device_certificate_list.go | 22 +- ...l_appliance_device_certificate_response.go | 2 +- model_appliance_device_claim.go | 39 +- model_appliance_device_claim_list.go | 22 +- model_appliance_device_claim_response.go | 2 +- model_appliance_device_cluster_install.go | 45 +- ...l_appliance_device_cluster_install_list.go | 22 +- ...pliance_device_cluster_install_response.go | 2 +- model_appliance_device_state.go | 45 +- model_appliance_device_state_list.go | 22 +- model_appliance_device_state_response.go | 2 +- model_appliance_device_upgrade_policy.go | 39 +- model_appliance_device_upgrade_policy_list.go | 22 +- ...ance_device_upgrade_policy_relationship.go | 2 +- ...ppliance_device_upgrade_policy_response.go | 2 +- model_appliance_diag_setting.go | 39 +- model_appliance_diag_setting_list.go | 22 +- model_appliance_diag_setting_response.go | 2 +- model_appliance_external_syslog_setting.go | 39 +- ..._appliance_external_syslog_setting_list.go | 22 +- ...liance_external_syslog_setting_response.go | 2 +- model_appliance_file_gateway.go | 39 +- model_appliance_file_gateway_list.go | 22 +- model_appliance_file_gateway_response.go | 2 +- model_appliance_file_system_op_status.go | 39 +- model_appliance_file_system_op_status_list.go | 22 +- ...ance_file_system_op_status_relationship.go | 2 +- ...ppliance_file_system_op_status_response.go | 2 +- model_appliance_file_system_status.go | 41 +- model_appliance_file_system_status_list.go | 22 +- ...pliance_file_system_status_relationship.go | 2 +- ...l_appliance_file_system_status_response.go | 2 +- model_appliance_group_op_status.go | 41 +- model_appliance_group_op_status_list.go | 22 +- ..._appliance_group_op_status_relationship.go | 2 +- model_appliance_group_op_status_response.go | 2 +- model_appliance_group_status.go | 41 +- model_appliance_group_status_list.go | 22 +- model_appliance_group_status_relationship.go | 2 +- model_appliance_group_status_response.go | 2 +- model_appliance_image_bundle.go | 57 +- model_appliance_image_bundle_list.go | 22 +- model_appliance_image_bundle_relationship.go | 2 +- model_appliance_image_bundle_response.go | 2 +- model_appliance_key_value_pair.go | 39 +- model_appliance_meta_manifest.go | 39 +- model_appliance_meta_manifest_list.go | 22 +- model_appliance_meta_manifest_response.go | 2 +- model_appliance_metadata_manifest_version.go | 39 +- model_appliance_metrics_config.go | 39 +- model_appliance_metrics_config_list.go | 22 +- model_appliance_metrics_config_response.go | 2 +- model_appliance_network_link_status.go | 39 +- model_appliance_network_link_status_list.go | 22 +- ...liance_network_link_status_relationship.go | 2 +- ..._appliance_network_link_status_response.go | 2 +- model_appliance_network_status.go | 39 +- model_appliance_node_info.go | 39 +- model_appliance_node_info_list.go | 22 +- model_appliance_node_info_relationship.go | 2 +- model_appliance_node_info_response.go | 2 +- model_appliance_node_ip_info.go | 39 +- model_appliance_node_op_status.go | 45 +- model_appliance_node_op_status_list.go | 22 +- ...l_appliance_node_op_status_relationship.go | 2 +- model_appliance_node_op_status_response.go | 2 +- model_appliance_node_status.go | 43 +- model_appliance_node_status_list.go | 22 +- model_appliance_node_status_relationship.go | 2 +- model_appliance_node_status_response.go | 2 +- model_appliance_release_note.go | 41 +- model_appliance_release_note_list.go | 22 +- model_appliance_release_note_response.go | 2 +- model_appliance_remote_file_import.go | 39 +- model_appliance_remote_file_import_list.go | 22 +- ...l_appliance_remote_file_import_response.go | 2 +- model_appliance_restore.go | 45 +- model_appliance_restore_list.go | 22 +- model_appliance_restore_response.go | 2 +- model_appliance_setup_info.go | 43 +- model_appliance_setup_info_list.go | 22 +- model_appliance_setup_info_response.go | 2 +- model_appliance_status_check.go | 39 +- model_appliance_system_info.go | 39 +- model_appliance_system_info_list.go | 22 +- model_appliance_system_info_relationship.go | 2 +- model_appliance_system_info_response.go | 2 +- model_appliance_system_op_status.go | 43 +- model_appliance_system_op_status_list.go | 22 +- ...appliance_system_op_status_relationship.go | 2 +- model_appliance_system_op_status_response.go | 2 +- model_appliance_system_status.go | 45 +- model_appliance_system_status_list.go | 22 +- model_appliance_system_status_relationship.go | 2 +- model_appliance_system_status_response.go | 2 +- model_appliance_upgrade.go | 51 +- model_appliance_upgrade_list.go | 22 +- model_appliance_upgrade_policy.go | 39 +- model_appliance_upgrade_policy_list.go | 22 +- model_appliance_upgrade_policy_response.go | 2 +- model_appliance_upgrade_relationship.go | 2 +- model_appliance_upgrade_response.go | 2 +- model_appliance_upgrade_tracker.go | 39 +- model_appliance_upgrade_tracker_list.go | 22 +- model_appliance_upgrade_tracker_response.go | 2 +- model_asset_address_information.go | 39 +- model_asset_alarm_summary.go | 39 +- model_asset_api_key_credential.go | 39 +- model_asset_claim_signature.go | 20 +- model_asset_client_certificate_credential.go | 39 +- model_asset_cloud_connection.go | 20 +- model_asset_cluster_member.go | 39 +- model_asset_cluster_member_list.go | 22 +- model_asset_cluster_member_relationship.go | 2 +- model_asset_cluster_member_response.go | 2 +- model_asset_connection.go | 20 +- model_asset_contract_information.go | 39 +- model_asset_credential.go | 20 +- model_asset_customer_information.go | 39 +- model_asset_deployment.go | 45 +- model_asset_deployment_alarm_info.go | 41 +- model_asset_deployment_device.go | 41 +- model_asset_deployment_device_alarm_info.go | 41 +- model_asset_deployment_device_information.go | 41 +- model_asset_deployment_device_list.go | 22 +- model_asset_deployment_device_relationship.go | 2 +- model_asset_deployment_device_response.go | 2 +- model_asset_deployment_list.go | 22 +- model_asset_deployment_relationship.go | 2 +- model_asset_deployment_response.go | 2 +- model_asset_device_claim.go | 41 +- model_asset_device_claim_relationship.go | 2 +- model_asset_device_configuration.go | 39 +- model_asset_device_configuration_list.go | 22 +- ...asset_device_configuration_relationship.go | 2 +- model_asset_device_configuration_response.go | 2 +- model_asset_device_connection.go | 20 +- model_asset_device_connection_relationship.go | 2 +- model_asset_device_connector_manager.go | 39 +- model_asset_device_connector_manager_list.go | 22 +- ...asset_device_connector_manager_response.go | 2 +- model_asset_device_contract_information.go | 39 +- ..._asset_device_contract_information_list.go | 22 +- ...evice_contract_information_relationship.go | 2 +- ...et_device_contract_information_response.go | 2 +- model_asset_device_contract_notification.go | 39 +- ..._asset_device_endpoint_local_credential.go | 20 +- model_asset_device_information.go | 41 +- model_asset_device_registration.go | 51 +- model_asset_device_registration_list.go | 22 +- ..._asset_device_registration_relationship.go | 2 +- model_asset_device_registration_response.go | 2 +- model_asset_device_statistics.go | 39 +- model_asset_device_transaction.go | 39 +- model_asset_generic_target_claim_options.go | 41 +- model_asset_global_ultimate.go | 39 +- ...platform_service_account_key_credential.go | 39 +- model_asset_http_connection.go | 39 +- ..._intersight_device_connector_connection.go | 20 +- model_asset_meraki_cloud_options.go | 39 +- model_asset_metering_type.go | 39 +- model_asset_new_relic_credential.go | 39 +- model_asset_no_authentication_credential.go | 20 +- model_asset_oauth_bearer_token_credential.go | 39 +- ...asset_oauth_client_id_secret_credential.go | 39 +- ...chestration_civp_vmware_vcenter_options.go | 39 +- ...itachi_virtual_storage_platform_options.go | 39 +- ...rchestration_hsm_vmware_vcenter_options.go | 39 +- model_asset_orchestration_service.go | 20 +- model_asset_parent_connection_signature.go | 39 +- model_asset_private_key_credential.go | 39 +- model_asset_product_information.go | 39 +- model_asset_scoped_target_connection.go | 39 +- model_asset_service.go | 20 +- model_asset_service_now_credential.go | 39 +- model_asset_service_options.go | 20 +- model_asset_ssh_connection.go | 39 +- model_asset_subscription.go | 41 +- model_asset_subscription_account.go | 39 +- model_asset_subscription_account_list.go | 22 +- ...asset_subscription_account_relationship.go | 2 +- model_asset_subscription_account_response.go | 2 +- ...ubscription_device_contract_information.go | 39 +- ...iption_device_contract_information_list.go | 22 +- ...on_device_contract_information_response.go | 2 +- model_asset_subscription_list.go | 22 +- model_asset_subscription_relationship.go | 2 +- model_asset_subscription_response.go | 2 +- model_asset_sudi_info.go | 39 +- model_asset_target.go | 51 +- model_asset_target_key.go | 39 +- model_asset_target_list.go | 22 +- model_asset_target_relationship.go | 2 +- model_asset_target_response.go | 2 +- model_asset_target_signature.go | 39 +- model_asset_target_status_details.go | 20 +- model_asset_terraform_integration_service.go | 20 +- ...orm_integration_terraform_agent_options.go | 41 +- ...orm_integration_terraform_cloud_options.go | 41 +- model_asset_username_password_credential.go | 39 +- ...rtualization_amazon_web_service_options.go | 23 +- model_asset_virtualization_cloud_options.go | 41 +- model_asset_virtualization_service.go | 20 +- model_asset_vm_host.go | 39 +- ...zer_amazon_web_services_billing_options.go | 39 +- ...et_workload_optimizer_dynatrace_options.go | 39 +- ...r_google_cloud_platform_billing_options.go | 39 +- ...asset_workload_optimizer_hyperv_options.go | 39 +- ...soft_azure_application_insights_options.go | 39 +- ...timizer_microsoft_azure_billing_options.go | 39 +- ...soft_azure_enterprise_agreement_options.go | 39 +- ...crosoft_azure_service_principal_options.go | 39 +- ..._optimizer_microsoft_sql_server_options.go | 39 +- ...et_workload_optimizer_new_relic_options.go | 39 +- ...t_workload_optimizer_open_stack_options.go | 39 +- ...ptimizer_oracle_database_server_options.go | 39 +- ...ad_optimizer_red_hat_open_stack_options.go | 39 +- model_asset_workload_optimizer_service.go | 20 +- ...rkload_optimizer_vmware_vcenter_options.go | 39 +- model_bios_boot_device.go | 39 +- model_bios_boot_device_list.go | 22 +- model_bios_boot_device_relationship.go | 2 +- model_bios_boot_device_response.go | 2 +- model_bios_boot_mode.go | 39 +- model_bios_boot_mode_list.go | 22 +- model_bios_boot_mode_relationship.go | 2 +- model_bios_boot_mode_response.go | 2 +- model_bios_policy.go | 109 +- model_bios_policy_list.go | 22 +- model_bios_policy_response.go | 2 +- model_bios_system_boot_order.go | 41 +- model_bios_system_boot_order_list.go | 22 +- model_bios_system_boot_order_relationship.go | 2 +- model_bios_system_boot_order_response.go | 2 +- model_bios_token_settings.go | 39 +- model_bios_token_settings_list.go | 22 +- model_bios_token_settings_relationship.go | 2 +- model_bios_token_settings_response.go | 2 +- model_bios_unit.go | 41 +- model_bios_unit_list.go | 22 +- model_bios_unit_relationship.go | 2 +- model_bios_unit_response.go | 2 +- ...bios_vf_select_memory_ras_configuration.go | 39 +- ...vf_select_memory_ras_configuration_list.go | 22 +- ...t_memory_ras_configuration_relationship.go | 2 +- ...elect_memory_ras_configuration_response.go | 2 +- model_boot_bootloader.go | 39 +- model_boot_cdd_device.go | 39 +- model_boot_cdd_device_list.go | 22 +- model_boot_cdd_device_relationship.go | 2 +- model_boot_cdd_device_response.go | 2 +- model_boot_configured_device.go | 20 +- model_boot_device_base.go | 24 +- model_boot_device_boot_mode.go | 39 +- model_boot_device_boot_mode_list.go | 22 +- model_boot_device_boot_mode_relationship.go | 2 +- model_boot_device_boot_mode_response.go | 2 +- model_boot_device_boot_security.go | 39 +- model_boot_device_boot_security_list.go | 22 +- ..._boot_device_boot_security_relationship.go | 2 +- model_boot_device_boot_security_response.go | 2 +- model_boot_flex_mmc.go | 39 +- model_boot_hdd_device.go | 39 +- model_boot_hdd_device_list.go | 22 +- model_boot_hdd_device_relationship.go | 2 +- model_boot_hdd_device_response.go | 2 +- model_boot_http.go | 51 +- model_boot_iscsi.go | 47 +- model_boot_iscsi_device.go | 39 +- model_boot_iscsi_device_list.go | 22 +- model_boot_iscsi_device_relationship.go | 2 +- model_boot_iscsi_device_response.go | 2 +- model_boot_local_cdd.go | 20 +- model_boot_local_disk.go | 43 +- model_boot_nvme.go | 39 +- model_boot_nvme_device.go | 39 +- model_boot_nvme_device_list.go | 22 +- model_boot_nvme_device_relationship.go | 2 +- model_boot_nvme_device_response.go | 2 +- model_boot_pch_storage.go | 39 +- model_boot_pch_storage_device.go | 39 +- model_boot_pch_storage_device_list.go | 22 +- model_boot_pch_storage_device_relationship.go | 2 +- model_boot_pch_storage_device_response.go | 2 +- model_boot_precision_policy.go | 43 +- model_boot_precision_policy_list.go | 22 +- model_boot_precision_policy_response.go | 2 +- model_boot_pxe.go | 51 +- model_boot_pxe_device.go | 39 +- model_boot_pxe_device_list.go | 22 +- model_boot_pxe_device_relationship.go | 2 +- model_boot_pxe_device_response.go | 2 +- model_boot_san.go | 51 +- model_boot_san_device.go | 39 +- model_boot_san_device_list.go | 22 +- model_boot_san_device_relationship.go | 2 +- model_boot_san_device_response.go | 2 +- model_boot_sd_card.go | 39 +- model_boot_sd_device.go | 39 +- model_boot_sd_device_list.go | 22 +- model_boot_sd_device_relationship.go | 2 +- model_boot_sd_device_response.go | 2 +- model_boot_static_ip_v4_settings.go | 55 +- model_boot_static_ip_v6_settings.go | 51 +- model_boot_uefi_shell.go | 20 +- model_boot_uefi_shell_device.go | 39 +- model_boot_uefi_shell_device_list.go | 22 +- model_boot_uefi_shell_device_relationship.go | 2 +- model_boot_uefi_shell_device_response.go | 2 +- model_boot_usb.go | 39 +- model_boot_usb_device.go | 39 +- model_boot_usb_device_list.go | 22 +- model_boot_usb_device_relationship.go | 2 +- model_boot_usb_device_response.go | 2 +- model_boot_virtual_media.go | 39 +- model_boot_vmedia_device.go | 39 +- model_boot_vmedia_device_list.go | 22 +- model_boot_vmedia_device_relationship.go | 2 +- model_boot_vmedia_device_response.go | 2 +- model_bulk_api_result.go | 39 +- model_bulk_export.go | 53 +- model_bulk_export_list.go | 22 +- model_bulk_export_relationship.go | 2 +- model_bulk_export_response.go | 2 +- model_bulk_exported_item.go | 43 +- model_bulk_exported_item_list.go | 22 +- model_bulk_exported_item_relationship.go | 2 +- model_bulk_exported_item_response.go | 2 +- model_bulk_http_header.go | 39 +- model_bulk_mo_cloner.go | 51 +- model_bulk_mo_cloner_list.go | 22 +- model_bulk_mo_cloner_relationship.go | 2 +- model_bulk_mo_cloner_response.go | 2 +- model_bulk_mo_deep_cloner.go | 51 +- model_bulk_mo_deep_cloner_list.go | 22 +- model_bulk_mo_deep_cloner_relationship.go | 2 +- model_bulk_mo_deep_cloner_response.go | 2 +- model_bulk_mo_merger.go | 49 +- model_bulk_mo_merger_list.go | 22 +- model_bulk_mo_merger_relationship.go | 2 +- model_bulk_mo_merger_response.go | 2 +- model_bulk_multi_relation_entry_patch.go | 20 +- model_bulk_patch_content.go | 20 +- model_bulk_request.go | 51 +- model_bulk_request_list.go | 22 +- model_bulk_request_relationship.go | 2 +- model_bulk_request_response.go | 2 +- model_bulk_rest_result.go | 39 +- model_bulk_rest_sub_request.go | 39 +- model_bulk_result.go | 43 +- model_bulk_result_list.go | 22 +- model_bulk_result_relationship.go | 2 +- model_bulk_result_response.go | 2 +- model_bulk_sec_resource_roles.go | 20 +- model_bulk_sub_request.go | 39 +- model_bulk_sub_request_obj.go | 39 +- model_bulk_sub_request_obj_list.go | 22 +- model_bulk_sub_request_obj_relationship.go | 2 +- model_bulk_sub_request_obj_response.go | 2 +- model_capability_actions_meta_data.go | 41 +- model_capability_actions_meta_data_list.go | 22 +- ...l_capability_actions_meta_data_response.go | 2 +- model_capability_adapter_deprecated_def.go | 39 +- ..._capability_adapter_deprecated_def_list.go | 22 +- ...ability_adapter_deprecated_def_response.go | 2 +- ...capability_adapter_firmware_requirement.go | 41 +- ...ility_adapter_firmware_requirement_list.go | 22 +- ...y_adapter_firmware_requirement_response.go | 2 +- model_capability_adapter_unit_descriptor.go | 41 +- ...capability_adapter_unit_descriptor_list.go | 22 +- ...bility_adapter_unit_descriptor_response.go | 2 +- ...pability_adapter_update_constraint_meta.go | 39 +- ...ity_adapter_update_constraint_meta_list.go | 22 +- ...adapter_update_constraint_meta_response.go | 2 +- ...capability_adapter_upgrade_support_meta.go | 41 +- ...ility_adapter_upgrade_support_meta_list.go | 22 +- ...y_adapter_upgrade_support_meta_response.go | 2 +- model_capability_capability.go | 20 +- model_capability_capability_relationship.go | 2 +- model_capability_catalog.go | 39 +- model_capability_catalog_list.go | 22 +- model_capability_catalog_response.go | 2 +- model_capability_chassis_descriptor.go | 39 +- model_capability_chassis_descriptor_list.go | 22 +- ..._capability_chassis_descriptor_response.go | 2 +- model_capability_chassis_manufacturing_def.go | 39 +- ...pability_chassis_manufacturing_def_list.go | 22 +- ...lity_chassis_manufacturing_def_response.go | 2 +- ...capability_chassis_upgrade_support_meta.go | 41 +- ...ility_chassis_upgrade_support_meta_list.go | 22 +- ...y_chassis_upgrade_support_meta_response.go | 2 +- model_capability_cimc_firmware_descriptor.go | 39 +- ...apability_cimc_firmware_descriptor_list.go | 22 +- ...ility_cimc_firmware_descriptor_response.go | 2 +- model_capability_cpu_endpoint_descriptor.go | 41 +- ...capability_cpu_endpoint_descriptor_list.go | 22 +- ...bility_cpu_endpoint_descriptor_response.go | 2 +- model_capability_dimms_endpoint_descriptor.go | 41 +- ...pability_dimms_endpoint_descriptor_list.go | 22 +- ...lity_dimms_endpoint_descriptor_response.go | 2 +- ...l_capability_drives_endpoint_descriptor.go | 41 +- ...ability_drives_endpoint_descriptor_list.go | 22 +- ...ity_drives_endpoint_descriptor_response.go | 2 +- model_capability_endpoint_descriptor.go | 22 +- model_capability_equipment_physical_def.go | 39 +- ..._capability_equipment_physical_def_list.go | 22 +- ...ability_equipment_physical_def_response.go | 2 +- model_capability_equipment_slot_array.go | 39 +- model_capability_equipment_slot_array_list.go | 22 +- ...apability_equipment_slot_array_response.go | 2 +- model_capability_fan_module_descriptor.go | 39 +- ...l_capability_fan_module_descriptor_list.go | 22 +- ...pability_fan_module_descriptor_response.go | 2 +- ...capability_fan_module_manufacturing_def.go | 39 +- ...ility_fan_module_manufacturing_def_list.go | 22 +- ...y_fan_module_manufacturing_def_response.go | 2 +- model_capability_feature_config.go | 47 +- model_capability_fex_capability_def.go | 39 +- model_capability_fex_capability_def_list.go | 22 +- ..._capability_fex_capability_def_response.go | 2 +- model_capability_fex_descriptor.go | 39 +- model_capability_fex_descriptor_list.go | 22 +- model_capability_fex_descriptor_response.go | 2 +- model_capability_fex_manufacturing_def.go | 39 +- ...l_capability_fex_manufacturing_def_list.go | 22 +- ...pability_fex_manufacturing_def_response.go | 2 +- model_capability_gpu_endpoint_descriptor.go | 41 +- ...capability_gpu_endpoint_descriptor_list.go | 22 +- ...bility_gpu_endpoint_descriptor_response.go | 2 +- model_capability_hardware_descriptor.go | 20 +- model_capability_hsu_iso_file_support_meta.go | 41 +- ...pability_hsu_iso_file_support_meta_list.go | 22 +- ...lity_hsu_iso_file_support_meta_response.go | 2 +- ...ility_hsu_iso_model_specific_constraint.go | 39 +- model_capability_io_card_capability_def.go | 39 +- ..._capability_io_card_capability_def_list.go | 22 +- ...ability_io_card_capability_def_response.go | 2 +- model_capability_io_card_descriptor.go | 41 +- model_capability_io_card_descriptor_list.go | 22 +- ..._capability_io_card_descriptor_response.go | 2 +- model_capability_io_card_manufacturing_def.go | 39 +- ...pability_io_card_manufacturing_def_list.go | 22 +- ...lity_io_card_manufacturing_def_response.go | 2 +- model_capability_iom_upgrade_support_meta.go | 41 +- ...apability_iom_upgrade_support_meta_list.go | 22 +- ...ility_iom_upgrade_support_meta_response.go | 2 +- ...l_capability_port_group_aggregation_def.go | 39 +- ...ability_port_group_aggregation_def_list.go | 22 +- ...ity_port_group_aggregation_def_response.go | 2 +- model_capability_port_range.go | 39 +- ...y_processor_unit_update_constraint_meta.go | 20 +- ...cessor_unit_update_constraint_meta_list.go | 22 +- ...or_unit_update_constraint_meta_response.go | 2 +- model_capability_psu_descriptor.go | 39 +- model_capability_psu_descriptor_list.go | 22 +- model_capability_psu_descriptor_response.go | 2 +- model_capability_psu_manufacturing_def.go | 39 +- ...l_capability_psu_manufacturing_def_list.go | 22 +- ...pability_psu_manufacturing_def_response.go | 2 +- model_capability_server_actions_meta.go | 39 +- model_capability_server_actions_meta_list.go | 22 +- ...capability_server_actions_meta_response.go | 2 +- ..._capability_server_component_constraint.go | 39 +- model_capability_server_descriptor.go | 39 +- model_capability_server_descriptor_list.go | 22 +- ...l_capability_server_descriptor_response.go | 2 +- ...capability_server_models_capability_def.go | 41 +- ...ility_server_models_capability_def_list.go | 22 +- ...y_server_models_capability_def_response.go | 2 +- model_capability_server_schema_descriptor.go | 39 +- ...apability_server_schema_descriptor_list.go | 22 +- ...ility_server_schema_descriptor_response.go | 2 +- ..._capability_server_upgrade_support_meta.go | 41 +- ...bility_server_upgrade_support_meta_list.go | 22 +- ...ty_server_upgrade_support_meta_response.go | 2 +- ...l_capability_sioc_module_capability_def.go | 39 +- ...ability_sioc_module_capability_def_list.go | 22 +- ...ity_sioc_module_capability_def_response.go | 2 +- model_capability_sioc_module_descriptor.go | 39 +- ..._capability_sioc_module_descriptor_list.go | 22 +- ...ability_sioc_module_descriptor_response.go | 2 +- ...apability_sioc_module_manufacturing_def.go | 39 +- ...lity_sioc_module_manufacturing_def_list.go | 22 +- ..._sioc_module_manufacturing_def_response.go | 2 +- ...orage_controller_update_constraint_meta.go | 20 +- ..._controller_update_constraint_meta_list.go | 22 +- ...troller_update_constraint_meta_response.go | 2 +- model_capability_switch_capability.go | 65 +- model_capability_switch_capability_def.go | 20 +- model_capability_switch_capability_list.go | 22 +- ...l_capability_switch_capability_response.go | 2 +- model_capability_switch_descriptor.go | 39 +- model_capability_switch_descriptor_list.go | 22 +- ...l_capability_switch_descriptor_response.go | 2 +- model_capability_switch_equipment_info.go | 39 +- ...l_capability_switch_equipment_info_list.go | 22 +- ...pability_switch_equipment_info_response.go | 2 +- model_capability_switch_identity_def.go | 39 +- model_capability_switch_manufacturing_def.go | 39 +- ...apability_switch_manufacturing_def_list.go | 22 +- ...ility_switch_manufacturing_def_response.go | 2 +- model_capability_switch_network_limits.go | 39 +- model_capability_switch_storage_limits.go | 39 +- model_capability_switch_system_limits.go | 39 +- model_capability_switching_mode_capability.go | 39 +- model_capability_template_catalog.go | 41 +- model_capability_template_catalog_list.go | 22 +- model_capability_template_catalog_response.go | 2 +- ...l_capability_unsupported_feature_config.go | 41 +- model_capability_update_constraint_meta.go | 24 +- model_capability_update_order_list_type.go | 41 +- model_capability_update_order_meta.go | 41 +- model_capability_update_order_meta_list.go | 22 +- ...l_capability_update_order_meta_response.go | 2 +- model_capability_vic_descriptor.go | 39 +- model_capability_vic_descriptor_list.go | 22 +- model_capability_vic_descriptor_response.go | 2 +- model_catalystsdwan_config_group.go | 41 +- model_catalystsdwan_config_group_list.go | 22 +- model_catalystsdwan_config_group_response.go | 2 +- model_catalystsdwan_inventory_entity.go | 20 +- model_catalystsdwan_policy_group.go | 41 +- model_catalystsdwan_policy_group_list.go | 22 +- model_catalystsdwan_policy_group_response.go | 2 +- model_catalystsdwan_vedge_device.go | 39 +- model_catalystsdwan_vedge_device_list.go | 22 +- model_catalystsdwan_vedge_device_response.go | 2 +- ..._certificatemanagement_certificate_base.go | 20 +- model_certificatemanagement_imc.go | 39 +- model_certificatemanagement_policy.go | 43 +- ..._certificatemanagement_policy_inventory.go | 41 +- ...ificatemanagement_policy_inventory_list.go | 22 +- ...atemanagement_policy_inventory_response.go | 2 +- model_certificatemanagement_policy_list.go | 22 +- ...l_certificatemanagement_policy_response.go | 2 +- ...rtificatemanagement_root_ca_certificate.go | 43 +- model_chassis_base_profile.go | 22 +- model_chassis_base_profile_relationship.go | 2 +- model_chassis_config_change_detail.go | 39 +- model_chassis_config_change_detail_list.go | 22 +- ...assis_config_change_detail_relationship.go | 2 +- ...l_chassis_config_change_detail_response.go | 2 +- model_chassis_config_import.go | 49 +- model_chassis_config_import_list.go | 22 +- model_chassis_config_import_response.go | 2 +- model_chassis_config_result.go | 41 +- model_chassis_config_result_entry.go | 39 +- model_chassis_config_result_entry_list.go | 22 +- ...hassis_config_result_entry_relationship.go | 2 +- model_chassis_config_result_entry_response.go | 2 +- model_chassis_config_result_list.go | 22 +- model_chassis_config_result_relationship.go | 2 +- model_chassis_config_result_response.go | 2 +- model_chassis_iom_profile.go | 41 +- model_chassis_iom_profile_list.go | 22 +- model_chassis_iom_profile_relationship.go | 2 +- model_chassis_iom_profile_response.go | 2 +- model_chassis_profile.go | 47 +- model_chassis_profile_list.go | 22 +- model_chassis_profile_relationship.go | 2 +- model_chassis_profile_response.go | 2 +- model_chassis_profile_template.go | 39 +- model_chassis_profile_template_list.go | 22 +- model_chassis_profile_template_response.go | 2 +- model_cloud_availability_zone.go | 39 +- model_cloud_aws_billing_unit.go | 43 +- model_cloud_aws_billing_unit_list.go | 22 +- model_cloud_aws_billing_unit_relationship.go | 2 +- model_cloud_aws_billing_unit_response.go | 2 +- model_cloud_aws_key_pair.go | 39 +- model_cloud_aws_key_pair_list.go | 22 +- model_cloud_aws_key_pair_relationship.go | 2 +- model_cloud_aws_key_pair_response.go | 2 +- model_cloud_aws_network_interface.go | 45 +- model_cloud_aws_network_interface_list.go | 22 +- model_cloud_aws_network_interface_response.go | 2 +- model_cloud_aws_organizational_unit.go | 39 +- model_cloud_aws_organizational_unit_list.go | 22 +- ...ud_aws_organizational_unit_relationship.go | 2 +- ..._cloud_aws_organizational_unit_response.go | 2 +- model_cloud_aws_security_group.go | 45 +- model_cloud_aws_security_group_list.go | 22 +- ...l_cloud_aws_security_group_relationship.go | 2 +- model_cloud_aws_security_group_response.go | 2 +- model_cloud_aws_subnet.go | 41 +- model_cloud_aws_subnet_list.go | 22 +- model_cloud_aws_subnet_relationship.go | 2 +- model_cloud_aws_subnet_response.go | 2 +- model_cloud_aws_virtual_machine.go | 41 +- model_cloud_aws_virtual_machine_list.go | 22 +- model_cloud_aws_virtual_machine_response.go | 2 +- model_cloud_aws_volume.go | 39 +- model_cloud_aws_volume_list.go | 22 +- model_cloud_aws_volume_response.go | 2 +- model_cloud_aws_vpc.go | 45 +- model_cloud_aws_vpc_list.go | 22 +- model_cloud_aws_vpc_relationship.go | 2 +- model_cloud_aws_vpc_response.go | 2 +- model_cloud_base_billing_unit.go | 39 +- model_cloud_base_entity.go | 20 +- model_cloud_base_network.go | 39 +- model_cloud_base_network_interface.go | 39 +- model_cloud_base_placement.go | 39 +- model_cloud_base_sku.go | 22 +- model_cloud_base_sku_relationship.go | 2 +- model_cloud_base_virtual_machine.go | 45 +- model_cloud_base_volume.go | 43 +- model_cloud_billing_unit.go | 39 +- model_cloud_cloud_region.go | 39 +- model_cloud_cloud_tag.go | 39 +- model_cloud_collect_inventory.go | 39 +- model_cloud_custom_attributes.go | 39 +- model_cloud_image_reference.go | 39 +- model_cloud_instance_type.go | 39 +- model_cloud_network_access_config.go | 41 +- model_cloud_network_address.go | 39 +- model_cloud_network_instance_attachment.go | 39 +- model_cloud_network_interface_attachment.go | 45 +- model_cloud_regions.go | 43 +- model_cloud_regions_list.go | 22 +- model_cloud_regions_relationship.go | 2 +- model_cloud_regions_response.go | 2 +- model_cloud_security_group_rule.go | 43 +- model_cloud_sku_container_type.go | 39 +- model_cloud_sku_container_type_list.go | 22 +- model_cloud_sku_container_type_response.go | 2 +- model_cloud_sku_database_type.go | 39 +- model_cloud_sku_database_type_list.go | 22 +- model_cloud_sku_database_type_response.go | 2 +- model_cloud_sku_instance_type.go | 39 +- model_cloud_sku_instance_type_list.go | 22 +- model_cloud_sku_instance_type_response.go | 2 +- model_cloud_sku_network_type.go | 20 +- model_cloud_sku_network_type_list.go | 22 +- model_cloud_sku_network_type_response.go | 2 +- model_cloud_sku_region_rate_cards.go | 41 +- model_cloud_sku_region_rate_cards_list.go | 22 +- model_cloud_sku_region_rate_cards_response.go | 2 +- model_cloud_sku_volume_type.go | 39 +- model_cloud_sku_volume_type_list.go | 22 +- model_cloud_sku_volume_type_response.go | 2 +- model_cloud_tfc_agentpool.go | 39 +- model_cloud_tfc_agentpool_list.go | 22 +- model_cloud_tfc_agentpool_response.go | 2 +- model_cloud_tfc_organization.go | 39 +- model_cloud_tfc_organization_list.go | 22 +- model_cloud_tfc_organization_relationship.go | 2 +- model_cloud_tfc_organization_response.go | 2 +- model_cloud_tfc_workspace.go | 41 +- model_cloud_tfc_workspace_list.go | 22 +- model_cloud_tfc_workspace_response.go | 2 +- model_cloud_tfc_workspace_variables.go | 39 +- model_cloud_volume_attachment.go | 39 +- model_cloud_volume_instance_attachment.go | 39 +- model_cloud_volume_iops_info.go | 39 +- model_cloud_volume_type.go | 39 +- model_cmrf_cm_rf.go | 20 +- model_comm_abstract_http_proxy_policy.go | 43 +- model_comm_http_proxy_policy.go | 41 +- model_comm_http_proxy_policy_list.go | 22 +- model_comm_http_proxy_policy_relationship.go | 2 +- model_comm_http_proxy_policy_response.go | 2 +- model_comm_ip_v4_address_block.go | 47 +- model_comm_ip_v4_interface.go | 51 +- model_comm_ip_v6_interface.go | 47 +- model_compute_alarm_summary.go | 39 +- model_compute_base_cluster.go | 22 +- model_compute_base_cluster_relationship.go | 2 +- model_compute_blade.go | 65 +- model_compute_blade_identity.go | 41 +- model_compute_blade_identity_list.go | 22 +- model_compute_blade_identity_relationship.go | 2 +- model_compute_blade_identity_response.go | 2 +- model_compute_blade_list.go | 22 +- model_compute_blade_relationship.go | 2 +- model_compute_blade_response.go | 2 +- model_compute_board.go | 65 +- model_compute_board_list.go | 22 +- model_compute_board_relationship.go | 2 +- model_compute_board_response.go | 2 +- model_compute_download_status.go | 39 +- model_compute_download_status_list.go | 22 +- model_compute_download_status_relationship.go | 2 +- model_compute_download_status_response.go | 2 +- model_compute_host_utility_operation.go | 39 +- model_compute_host_utility_operation_list.go | 22 +- ...ute_host_utility_operation_relationship.go | 2 +- ...compute_host_utility_operation_response.go | 2 +- model_compute_ip_address.go | 39 +- model_compute_mapping.go | 41 +- model_compute_mapping_list.go | 22 +- model_compute_mapping_relationship.go | 2 +- model_compute_mapping_response.go | 2 +- model_compute_pending_workflow_trigger.go | 20 +- model_compute_persistent_memory_module.go | 39 +- model_compute_persistent_memory_operation.go | 41 +- model_compute_personality.go | 39 +- model_compute_personality_list.go | 22 +- model_compute_personality_relationship.go | 2 +- model_compute_personality_response.go | 2 +- model_compute_personality_setting.go | 41 +- model_compute_physical.go | 46 +- model_compute_physical_relationship.go | 2 +- model_compute_physical_summary.go | 43 +- model_compute_physical_summary_list.go | 22 +- ...l_compute_physical_summary_relationship.go | 2 +- model_compute_physical_summary_response.go | 2 +- model_compute_rack_unit.go | 69 +- model_compute_rack_unit_identity.go | 39 +- model_compute_rack_unit_identity_list.go | 22 +- model_compute_rack_unit_identity_response.go | 2 +- model_compute_rack_unit_list.go | 22 +- model_compute_rack_unit_relationship.go | 2 +- model_compute_rack_unit_response.go | 2 +- model_compute_server_config.go | 47 +- model_compute_server_id_pool.go | 41 +- model_compute_server_id_pool_list.go | 22 +- model_compute_server_id_pool_response.go | 2 +- model_compute_server_op_status.go | 39 +- model_compute_server_power_policy.go | 41 +- model_compute_server_power_policy_list.go | 22 +- model_compute_server_power_policy_response.go | 2 +- model_compute_server_setting.go | 41 +- model_compute_server_setting_list.go | 22 +- model_compute_server_setting_response.go | 2 +- model_compute_storage_controller_operation.go | 39 +- model_compute_storage_physical_drive.go | 39 +- ...ompute_storage_physical_drive_operation.go | 43 +- ...compute_storage_utility_image_operation.go | 39 +- model_compute_storage_virtual_drive.go | 39 +- ...compute_storage_virtual_drive_operation.go | 41 +- model_compute_vmedia.go | 41 +- model_compute_vmedia_list.go | 22 +- model_compute_vmedia_relationship.go | 2 +- model_compute_vmedia_response.go | 2 +- model_cond_alarm.go | 39 +- model_cond_alarm_action.go | 39 +- model_cond_alarm_aggregation.go | 39 +- model_cond_alarm_aggregation_list.go | 22 +- model_cond_alarm_aggregation_response.go | 2 +- model_cond_alarm_classification.go | 47 +- ...l_cond_alarm_classification_eligibility.go | 39 +- model_cond_alarm_classification_list.go | 22 +- ..._cond_alarm_classification_relationship.go | 2 +- model_cond_alarm_classification_response.go | 2 +- model_cond_alarm_definition.go | 41 +- model_cond_alarm_definition_list.go | 22 +- model_cond_alarm_definition_relationship.go | 2 +- model_cond_alarm_definition_response.go | 2 +- model_cond_alarm_list.go | 22 +- model_cond_alarm_response.go | 2 +- model_cond_alarm_spec.go | 39 +- model_cond_alarm_summary.go | 39 +- model_cond_alarm_suppression.go | 41 +- model_cond_alarm_suppression_list.go | 22 +- model_cond_alarm_suppression_response.go | 2 +- model_cond_hcl_status.go | 41 +- model_cond_hcl_status_detail.go | 39 +- model_cond_hcl_status_detail_list.go | 22 +- model_cond_hcl_status_detail_relationship.go | 2 +- model_cond_hcl_status_detail_response.go | 2 +- model_cond_hcl_status_job.go | 39 +- model_cond_hcl_status_job_list.go | 22 +- model_cond_hcl_status_job_response.go | 2 +- model_cond_hcl_status_list.go | 22 +- model_cond_hcl_status_relationship.go | 2 +- model_cond_hcl_status_response.go | 2 +- model_connector_auth_message.go | 20 +- model_connector_base_message.go | 22 +- model_connector_close_stream_message.go | 20 +- model_connector_command_control_message.go | 39 +- model_connector_command_terminal_stream.go | 39 +- model_connector_download_status.go | 20 +- model_connector_event_log.go | 39 +- model_connector_expect_prompt.go | 39 +- model_connector_fetch_stream_message.go | 20 +- model_connector_file_checksum.go | 39 +- model_connector_file_message.go | 39 +- model_connector_http_request.go | 41 +- model_connector_platform_param_base.go | 20 +- model_connector_scoped_inventory.go | 24 +- model_connector_ssh_config.go | 39 +- model_connector_ssh_message.go | 41 +- model_connector_start_stream.go | 20 +- model_connector_start_stream_from_device.go | 20 +- model_connector_stream_acknowledge.go | 20 +- model_connector_stream_input.go | 20 +- model_connector_stream_keepalive.go | 20 +- model_connector_stream_message.go | 20 +- model_connector_target_change_message.go | 41 +- model_connector_target_specification.go | 39 +- model_connector_url.go | 39 +- model_connector_winrm_request.go | 39 +- model_connector_xml_api_message.go | 39 +- model_connectorpack_connector_pack_update.go | 39 +- model_connectorpack_connector_pack_upgrade.go | 39 +- ...nnectorpack_connector_pack_upgrade_list.go | 22 +- ...torpack_connector_pack_upgrade_response.go | 2 +- model_connectorpack_upgrade_impact.go | 41 +- model_connectorpack_upgrade_impact_list.go | 22 +- ...l_connectorpack_upgrade_impact_response.go | 2 +- model_console_console_config.go | 39 +- model_console_console_config_list.go | 22 +- model_console_console_config_relationship.go | 2 +- model_console_console_config_response.go | 2 +- model_content_base_parameter.go | 24 +- model_content_complex_type.go | 41 +- model_content_parameter.go | 20 +- model_content_text_parameter.go | 39 +- ...nvergedinfra_adapter_compliance_details.go | 41 +- ...edinfra_adapter_compliance_details_list.go | 22 +- ...adapter_compliance_details_relationship.go | 2 +- ...fra_adapter_compliance_details_response.go | 2 +- model_convergedinfra_alarm_summary.go | 39 +- ..._convergedinfra_base_compliance_details.go | 20 +- ...ra_base_compliance_details_relationship.go | 2 +- model_convergedinfra_base_pod.go | 47 +- model_convergedinfra_base_pod_summary.go | 39 +- model_convergedinfra_compliance_summary.go | 39 +- model_convergedinfra_pod.go | 39 +- model_convergedinfra_pod_compliance_info.go | 41 +- ...convergedinfra_pod_compliance_info_list.go | 22 +- ...dinfra_pod_compliance_info_relationship.go | 2 +- ...ergedinfra_pod_compliance_info_response.go | 2 +- model_convergedinfra_pod_list.go | 22 +- model_convergedinfra_pod_relationship.go | 2 +- model_convergedinfra_pod_response.go | 2 +- model_convergedinfra_pod_summary.go | 39 +- ...onvergedinfra_server_compliance_details.go | 39 +- ...gedinfra_server_compliance_details_list.go | 22 +- ..._server_compliance_details_relationship.go | 2 +- ...nfra_server_compliance_details_response.go | 2 +- ...nvergedinfra_storage_compliance_details.go | 39 +- ...edinfra_storage_compliance_details_list.go | 22 +- ...storage_compliance_details_relationship.go | 2 +- ...fra_storage_compliance_details_response.go | 2 +- ...onvergedinfra_switch_compliance_details.go | 41 +- ...gedinfra_switch_compliance_details_list.go | 22 +- ..._switch_compliance_details_relationship.go | 2 +- ...nfra_switch_compliance_details_response.go | 2 +- model_crd_custom_resource.go | 41 +- model_crd_custom_resource_config_property.go | 39 +- model_crd_custom_resource_list.go | 22 +- model_crd_custom_resource_response.go | 2 +- model_deviceconnector_policy.go | 41 +- model_deviceconnector_policy_list.go | 22 +- model_deviceconnector_policy_response.go | 2 +- model_dnac_device.go | 39 +- model_dnac_device_interface.go | 39 +- model_dnac_device_interface_list.go | 22 +- model_dnac_device_interface_response.go | 2 +- model_dnac_device_list.go | 22 +- model_dnac_device_response.go | 2 +- model_dnac_external_border_node.go | 41 +- model_dnac_external_border_node_interface.go | 39 +- ...nac_external_border_node_interface_list.go | 22 +- ...external_border_node_interface_response.go | 2 +- model_dnac_external_border_node_list.go | 22 +- model_dnac_external_border_node_response.go | 2 +- model_dnac_fabric_site.go | 39 +- model_dnac_fabric_site_list.go | 22 +- model_dnac_fabric_site_response.go | 2 +- model_dnac_inventory_entity.go | 20 +- model_dnac_site.go | 39 +- model_dnac_site_ip_pool.go | 39 +- model_dnac_site_ip_pool_list.go | 22 +- model_dnac_site_ip_pool_response.go | 2 +- model_dnac_site_list.go | 22 +- model_dnac_site_response.go | 2 +- model_dnac_template.go | 39 +- model_dnac_template_list.go | 22 +- model_dnac_template_response.go | 2 +- model_dnac_transit.go | 39 +- model_dnac_transit_list.go | 22 +- model_dnac_transit_response.go | 2 +- model_dnac_virtual_network_fabric_site.go | 39 +- ...l_dnac_virtual_network_fabric_site_list.go | 22 +- ...ac_virtual_network_fabric_site_response.go | 2 +- model_equipment_abstract_device.go | 24 +- model_equipment_base.go | 20 +- model_equipment_base_relationship.go | 2 +- model_equipment_base_sensor.go | 39 +- model_equipment_chassis.go | 63 +- model_equipment_chassis_id_pool.go | 41 +- model_equipment_chassis_id_pool_list.go | 22 +- model_equipment_chassis_id_pool_response.go | 2 +- model_equipment_chassis_identity.go | 41 +- model_equipment_chassis_identity_list.go | 22 +- model_equipment_chassis_identity_response.go | 2 +- model_equipment_chassis_list.go | 22 +- model_equipment_chassis_operation.go | 41 +- model_equipment_chassis_operation_list.go | 22 +- model_equipment_chassis_operation_response.go | 2 +- model_equipment_chassis_operation_status.go | 39 +- model_equipment_chassis_relationship.go | 2 +- model_equipment_chassis_response.go | 2 +- model_equipment_device_location.go | 39 +- model_equipment_device_summary.go | 41 +- model_equipment_device_summary_list.go | 22 +- model_equipment_device_summary_response.go | 2 +- model_equipment_end_point_log.go | 39 +- model_equipment_end_point_log_list.go | 22 +- model_equipment_end_point_log_response.go | 2 +- model_equipment_expander_module.go | 43 +- model_equipment_expander_module_list.go | 22 +- ..._equipment_expander_module_relationship.go | 2 +- model_equipment_expander_module_response.go | 2 +- model_equipment_fan.go | 41 +- model_equipment_fan_control.go | 39 +- model_equipment_fan_control_list.go | 22 +- model_equipment_fan_control_relationship.go | 2 +- model_equipment_fan_control_response.go | 2 +- model_equipment_fan_list.go | 22 +- model_equipment_fan_module.go | 43 +- model_equipment_fan_module_list.go | 22 +- model_equipment_fan_module_relationship.go | 2 +- model_equipment_fan_module_response.go | 2 +- model_equipment_fan_relationship.go | 2 +- model_equipment_fan_response.go | 2 +- model_equipment_fex.go | 45 +- model_equipment_fex_identity.go | 39 +- model_equipment_fex_identity_list.go | 22 +- model_equipment_fex_identity_response.go | 2 +- model_equipment_fex_list.go | 22 +- model_equipment_fex_operation.go | 39 +- model_equipment_fex_operation_list.go | 22 +- model_equipment_fex_operation_response.go | 2 +- model_equipment_fex_relationship.go | 2 +- model_equipment_fex_response.go | 2 +- model_equipment_fru.go | 39 +- model_equipment_fru_list.go | 22 +- model_equipment_fru_relationship.go | 2 +- model_equipment_fru_response.go | 2 +- model_equipment_hybrid_drive_slot.go | 39 +- model_equipment_hybrid_drive_slot_list.go | 22 +- ...quipment_hybrid_drive_slot_relationship.go | 2 +- model_equipment_hybrid_drive_slot_response.go | 2 +- model_equipment_identity.go | 22 +- model_equipment_io_card.go | 43 +- model_equipment_io_card_base.go | 28 +- model_equipment_io_card_base_relationship.go | 2 +- model_equipment_io_card_identity.go | 39 +- model_equipment_io_card_list.go | 22 +- model_equipment_io_card_operation.go | 41 +- model_equipment_io_card_operation_list.go | 22 +- model_equipment_io_card_operation_response.go | 2 +- model_equipment_io_card_operation_status.go | 39 +- model_equipment_io_card_relationship.go | 2 +- model_equipment_io_card_response.go | 2 +- model_equipment_io_expander.go | 39 +- model_equipment_io_expander_list.go | 22 +- model_equipment_io_expander_relationship.go | 2 +- model_equipment_io_expander_response.go | 2 +- model_equipment_locator_led.go | 39 +- model_equipment_locator_led_list.go | 22 +- model_equipment_locator_led_relationship.go | 2 +- model_equipment_locator_led_response.go | 2 +- model_equipment_log_download.go | 39 +- model_equipment_log_download_list.go | 22 +- model_equipment_log_download_response.go | 2 +- model_equipment_physical_identity.go | 20 +- ...quipment_physical_identity_relationship.go | 2 +- model_equipment_psu.go | 41 +- model_equipment_psu_control.go | 41 +- model_equipment_psu_control_list.go | 22 +- model_equipment_psu_control_relationship.go | 2 +- model_equipment_psu_control_response.go | 2 +- model_equipment_psu_list.go | 22 +- model_equipment_psu_relationship.go | 2 +- model_equipment_psu_response.go | 2 +- model_equipment_rack_enclosure.go | 45 +- model_equipment_rack_enclosure_list.go | 22 +- ...l_equipment_rack_enclosure_relationship.go | 2 +- model_equipment_rack_enclosure_response.go | 2 +- model_equipment_rack_enclosure_slot.go | 39 +- model_equipment_rack_enclosure_slot_list.go | 22 +- ...ipment_rack_enclosure_slot_relationship.go | 2 +- ..._equipment_rack_enclosure_slot_response.go | 2 +- model_equipment_reset_action.go | 39 +- model_equipment_sensor.go | 39 +- model_equipment_sensor_list.go | 22 +- model_equipment_sensor_relationship.go | 2 +- model_equipment_sensor_response.go | 2 +- model_equipment_shared_io_module.go | 41 +- model_equipment_shared_io_module_list.go | 22 +- ...equipment_shared_io_module_relationship.go | 2 +- model_equipment_shared_io_module_response.go | 2 +- model_equipment_slot.go | 20 +- model_equipment_switch_card.go | 47 +- model_equipment_switch_card_list.go | 22 +- model_equipment_switch_card_relationship.go | 2 +- model_equipment_switch_card_response.go | 2 +- model_equipment_switch_operation.go | 39 +- model_equipment_switch_operation_list.go | 22 +- model_equipment_switch_operation_response.go | 2 +- model_equipment_system_io_controller.go | 39 +- model_equipment_system_io_controller_list.go | 22 +- ...pment_system_io_controller_relationship.go | 2 +- ...equipment_system_io_controller_response.go | 2 +- model_equipment_tpm.go | 39 +- model_equipment_tpm_list.go | 22 +- model_equipment_tpm_relationship.go | 2 +- model_equipment_tpm_response.go | 2 +- model_equipment_transceiver.go | 39 +- model_equipment_transceiver_list.go | 22 +- model_equipment_transceiver_response.go | 2 +- model_error.go | 20 +- model_ether_host_port.go | 39 +- model_ether_host_port_list.go | 22 +- model_ether_host_port_relationship.go | 2 +- model_ether_host_port_response.go | 2 +- model_ether_network_port.go | 41 +- model_ether_network_port_list.go | 22 +- model_ether_network_port_relationship.go | 2 +- model_ether_network_port_response.go | 2 +- model_ether_physical_port.go | 39 +- model_ether_physical_port_base.go | 20 +- ...l_ether_physical_port_base_relationship.go | 2 +- model_ether_physical_port_list.go | 22 +- model_ether_physical_port_relationship.go | 2 +- model_ether_physical_port_response.go | 2 +- model_ether_port_channel.go | 39 +- model_ether_port_channel_list.go | 22 +- model_ether_port_channel_relationship.go | 2 +- model_ether_port_channel_response.go | 2 +- model_externalsite_authorization.go | 39 +- model_externalsite_authorization_list.go | 22 +- model_externalsite_authorization_response.go | 2 +- model_fabric_abstract_interface_role.go | 20 +- ...ic_abstract_interface_role_relationship.go | 2 +- model_fabric_abstract_span_dest_port.go | 39 +- ...ic_abstract_span_dest_port_relationship.go | 2 +- model_fabric_abstract_span_session.go | 43 +- model_fabric_abstract_span_source.go | 20 +- model_fabric_abstract_span_source_port.go | 39 +- ...abric_abstract_span_source_port_channel.go | 39 +- ...t_span_source_port_channel_relationship.go | 2 +- ..._abstract_span_source_port_relationship.go | 2 +- ..._fabric_abstract_span_source_virtual_if.go | 39 +- ...act_span_source_virtual_if_relationship.go | 2 +- model_fabric_appliance_pc_role.go | 39 +- model_fabric_appliance_pc_role_list.go | 22 +- model_fabric_appliance_pc_role_response.go | 2 +- model_fabric_appliance_role.go | 39 +- model_fabric_appliance_role_list.go | 22 +- model_fabric_appliance_role_response.go | 2 +- model_fabric_base_cluster_profile.go | 20 +- model_fabric_base_switch_profile.go | 20 +- ...fabric_base_switch_profile_relationship.go | 2 +- model_fabric_cluster_assignment.go | 43 +- model_fabric_config_change_detail.go | 39 +- model_fabric_config_change_detail_list.go | 22 +- ...abric_config_change_detail_relationship.go | 2 +- model_fabric_config_change_detail_response.go | 2 +- model_fabric_config_result.go | 41 +- model_fabric_config_result_entry.go | 39 +- model_fabric_config_result_entry_list.go | 22 +- ...fabric_config_result_entry_relationship.go | 2 +- model_fabric_config_result_entry_response.go | 2 +- model_fabric_config_result_list.go | 22 +- model_fabric_config_result_relationship.go | 2 +- model_fabric_config_result_response.go | 2 +- model_fabric_element_identity.go | 41 +- model_fabric_element_identity_list.go | 22 +- model_fabric_element_identity_response.go | 2 +- model_fabric_estimate_impact.go | 39 +- model_fabric_eth_network_control_policy.go | 41 +- ...ic_eth_network_control_policy_inventory.go | 41 +- ...h_network_control_policy_inventory_list.go | 22 +- ...k_control_policy_inventory_relationship.go | 2 +- ...twork_control_policy_inventory_response.go | 2 +- ..._fabric_eth_network_control_policy_list.go | 22 +- ...eth_network_control_policy_relationship.go | 2 +- ...ric_eth_network_control_policy_response.go | 2 +- model_fabric_eth_network_group_policy.go | 39 +- ...bric_eth_network_group_policy_inventory.go | 39 +- ...eth_network_group_policy_inventory_list.go | 22 +- ...ork_group_policy_inventory_relationship.go | 2 +- ...network_group_policy_inventory_response.go | 2 +- model_fabric_eth_network_group_policy_list.go | 22 +- ...c_eth_network_group_policy_relationship.go | 2 +- ...abric_eth_network_group_policy_response.go | 2 +- model_fabric_eth_network_policy.go | 41 +- model_fabric_eth_network_policy_list.go | 22 +- ..._fabric_eth_network_policy_relationship.go | 2 +- model_fabric_eth_network_policy_response.go | 2 +- model_fabric_fc_network_policy.go | 41 +- model_fabric_fc_network_policy_list.go | 22 +- ...l_fabric_fc_network_policy_relationship.go | 2 +- model_fabric_fc_network_policy_response.go | 2 +- model_fabric_fc_storage_role.go | 39 +- model_fabric_fc_storage_role_list.go | 22 +- model_fabric_fc_storage_role_response.go | 2 +- model_fabric_fc_uplink_pc_role.go | 39 +- model_fabric_fc_uplink_pc_role_list.go | 22 +- model_fabric_fc_uplink_pc_role_response.go | 2 +- model_fabric_fc_uplink_role.go | 39 +- model_fabric_fc_uplink_role_list.go | 22 +- model_fabric_fc_uplink_role_response.go | 2 +- model_fabric_fc_zone_member.go | 43 +- model_fabric_fc_zone_policy.go | 41 +- model_fabric_fc_zone_policy_list.go | 22 +- model_fabric_fc_zone_policy_relationship.go | 2 +- model_fabric_fc_zone_policy_response.go | 2 +- model_fabric_fcoe_uplink_pc_role.go | 39 +- model_fabric_fcoe_uplink_pc_role_list.go | 22 +- model_fabric_fcoe_uplink_pc_role_response.go | 2 +- model_fabric_fcoe_uplink_role.go | 39 +- model_fabric_fcoe_uplink_role_list.go | 22 +- model_fabric_fcoe_uplink_role_response.go | 2 +- model_fabric_flow_control_policy.go | 39 +- model_fabric_flow_control_policy_list.go | 22 +- ...fabric_flow_control_policy_relationship.go | 2 +- model_fabric_flow_control_policy_response.go | 2 +- model_fabric_lan_pin_group.go | 39 +- model_fabric_lan_pin_group_list.go | 22 +- model_fabric_lan_pin_group_response.go | 2 +- model_fabric_link_aggregation_policy.go | 39 +- model_fabric_link_aggregation_policy_list.go | 22 +- ...ic_link_aggregation_policy_relationship.go | 2 +- ...fabric_link_aggregation_policy_response.go | 2 +- model_fabric_link_control_policy.go | 39 +- model_fabric_link_control_policy_list.go | 22 +- ...fabric_link_control_policy_relationship.go | 2 +- model_fabric_link_control_policy_response.go | 2 +- model_fabric_lldp_settings.go | 39 +- model_fabric_mac_aging_settings.go | 39 +- model_fabric_multicast_policy.go | 47 +- model_fabric_multicast_policy_list.go | 22 +- model_fabric_multicast_policy_relationship.go | 2 +- model_fabric_multicast_policy_response.go | 2 +- model_fabric_pc_member.go | 39 +- model_fabric_pc_member_list.go | 22 +- model_fabric_pc_member_response.go | 2 +- model_fabric_pc_operation.go | 39 +- model_fabric_pc_operation_list.go | 22 +- model_fabric_pc_operation_response.go | 2 +- model_fabric_pin_group.go | 24 +- model_fabric_port_base.go | 20 +- model_fabric_port_channel_role.go | 22 +- model_fabric_port_identifier.go | 39 +- model_fabric_port_mode.go | 39 +- model_fabric_port_mode_list.go | 22 +- model_fabric_port_mode_response.go | 2 +- model_fabric_port_operation.go | 39 +- model_fabric_port_operation_list.go | 22 +- model_fabric_port_operation_response.go | 2 +- model_fabric_port_policy.go | 41 +- model_fabric_port_policy_list.go | 22 +- model_fabric_port_policy_relationship.go | 2 +- model_fabric_port_policy_response.go | 2 +- model_fabric_port_role.go | 20 +- model_fabric_qos_class.go | 39 +- model_fabric_san_pin_group.go | 39 +- model_fabric_san_pin_group_list.go | 22 +- model_fabric_san_pin_group_response.go | 2 +- model_fabric_server_role.go | 39 +- model_fabric_server_role_list.go | 22 +- model_fabric_server_role_response.go | 2 +- model_fabric_span_dest_eth_port.go | 39 +- model_fabric_span_dest_eth_port_list.go | 22 +- model_fabric_span_dest_eth_port_response.go | 2 +- model_fabric_span_session.go | 49 +- model_fabric_span_session_list.go | 22 +- model_fabric_span_session_relationship.go | 2 +- model_fabric_span_session_response.go | 2 +- model_fabric_span_source_eth_port.go | 23 +- model_fabric_span_source_eth_port_channel.go | 23 +- ...abric_span_source_eth_port_channel_list.go | 22 +- ...c_span_source_eth_port_channel_response.go | 2 +- model_fabric_span_source_eth_port_list.go | 22 +- model_fabric_span_source_eth_port_response.go | 2 +- model_fabric_span_source_vlan.go | 39 +- model_fabric_span_source_vlan_list.go | 22 +- model_fabric_span_source_vlan_relationship.go | 2 +- model_fabric_span_source_vlan_response.go | 2 +- model_fabric_span_source_vnic_eth_if.go | 39 +- model_fabric_span_source_vnic_eth_if_list.go | 22 +- ...fabric_span_source_vnic_eth_if_response.go | 2 +- model_fabric_switch_cluster_profile.go | 47 +- model_fabric_switch_cluster_profile_list.go | 22 +- ...ric_switch_cluster_profile_relationship.go | 2 +- ..._fabric_switch_cluster_profile_response.go | 2 +- ..._fabric_switch_cluster_profile_template.go | 41 +- ...ic_switch_cluster_profile_template_list.go | 22 +- ...h_cluster_profile_template_relationship.go | 2 +- ...witch_cluster_profile_template_response.go | 2 +- model_fabric_switch_control_policy.go | 41 +- model_fabric_switch_control_policy_list.go | 22 +- ...l_fabric_switch_control_policy_response.go | 2 +- model_fabric_switch_profile.go | 43 +- model_fabric_switch_profile_list.go | 22 +- model_fabric_switch_profile_relationship.go | 2 +- model_fabric_switch_profile_response.go | 2 +- model_fabric_switch_profile_template.go | 39 +- model_fabric_switch_profile_template_list.go | 22 +- ...ic_switch_profile_template_relationship.go | 2 +- ...fabric_switch_profile_template_response.go | 2 +- model_fabric_system_qos_policy.go | 43 +- model_fabric_system_qos_policy_list.go | 22 +- model_fabric_system_qos_policy_response.go | 2 +- model_fabric_transceiver_role.go | 20 +- model_fabric_udld_global_settings.go | 39 +- model_fabric_udld_settings.go | 39 +- model_fabric_uplink_pc_role.go | 41 +- model_fabric_uplink_pc_role_list.go | 22 +- model_fabric_uplink_pc_role_response.go | 2 +- model_fabric_uplink_role.go | 41 +- model_fabric_uplink_role_list.go | 22 +- model_fabric_uplink_role_response.go | 2 +- model_fabric_vlan.go | 39 +- model_fabric_vlan_inventory.go | 39 +- model_fabric_vlan_inventory_list.go | 22 +- model_fabric_vlan_inventory_response.go | 2 +- model_fabric_vlan_list.go | 22 +- model_fabric_vlan_response.go | 2 +- model_fabric_vlan_set.go | 43 +- model_fabric_vlan_set_list.go | 22 +- model_fabric_vlan_set_relationship.go | 2 +- model_fabric_vlan_set_response.go | 2 +- model_fabric_vlan_settings.go | 43 +- model_fabric_vsan.go | 39 +- model_fabric_vsan_inventory.go | 39 +- model_fabric_vsan_inventory_list.go | 22 +- model_fabric_vsan_inventory_response.go | 2 +- model_fabric_vsan_list.go | 22 +- model_fabric_vsan_response.go | 2 +- model_fault_instance.go | 39 +- model_fault_instance_list.go | 22 +- model_fault_instance_response.go | 2 +- model_fc_neighbor.go | 39 +- model_fc_neighbor_list.go | 22 +- model_fc_neighbor_relationship.go | 2 +- model_fc_neighbor_response.go | 2 +- model_fc_physical_port.go | 39 +- model_fc_physical_port_list.go | 22 +- model_fc_physical_port_relationship.go | 2 +- model_fc_physical_port_response.go | 2 +- model_fc_port_channel.go | 41 +- model_fc_port_channel_list.go | 22 +- model_fc_port_channel_relationship.go | 2 +- model_fc_port_channel_response.go | 2 +- model_fcpool_block.go | 47 +- model_fcpool_fc_block.go | 41 +- model_fcpool_fc_block_list.go | 22 +- model_fcpool_fc_block_relationship.go | 2 +- model_fcpool_fc_block_response.go | 2 +- model_fcpool_lease.go | 43 +- model_fcpool_lease_list.go | 22 +- model_fcpool_lease_relationship.go | 2 +- model_fcpool_lease_response.go | 2 +- model_fcpool_pool.go | 45 +- model_fcpool_pool_list.go | 22 +- model_fcpool_pool_member.go | 43 +- model_fcpool_pool_member_list.go | 22 +- model_fcpool_pool_member_relationship.go | 2 +- model_fcpool_pool_member_response.go | 2 +- model_fcpool_pool_relationship.go | 2 +- model_fcpool_pool_response.go | 2 +- model_fcpool_reservation.go | 43 +- model_fcpool_reservation_list.go | 22 +- model_fcpool_reservation_reference.go | 39 +- model_fcpool_reservation_relationship.go | 2 +- model_fcpool_reservation_response.go | 2 +- model_fcpool_universe.go | 39 +- model_fcpool_universe_list.go | 22 +- model_fcpool_universe_relationship.go | 2 +- model_fcpool_universe_response.go | 2 +- model_feedback_feedback_data.go | 43 +- model_feedback_feedback_post.go | 39 +- model_firmware_base_distributable.go | 26 +- ...irmware_base_distributable_relationship.go | 2 +- model_firmware_base_impact.go | 20 +- model_firmware_bios_descriptor.go | 20 +- model_firmware_bios_descriptor_list.go | 22 +- model_firmware_bios_descriptor_response.go | 2 +- model_firmware_board_controller_descriptor.go | 20 +- ...rmware_board_controller_descriptor_list.go | 22 +- ...re_board_controller_descriptor_response.go | 2 +- model_firmware_chassis_upgrade.go | 41 +- model_firmware_chassis_upgrade_impact.go | 41 +- model_firmware_chassis_upgrade_list.go | 22 +- model_firmware_chassis_upgrade_response.go | 2 +- model_firmware_cifs_server.go | 39 +- model_firmware_cimc_descriptor.go | 20 +- model_firmware_cimc_descriptor_list.go | 22 +- model_firmware_cimc_descriptor_response.go | 2 +- model_firmware_component_descriptor.go | 20 +- model_firmware_component_impact.go | 39 +- model_firmware_component_meta.go | 41 +- model_firmware_dimm_descriptor.go | 20 +- model_firmware_dimm_descriptor_list.go | 22 +- model_firmware_dimm_descriptor_response.go | 2 +- model_firmware_direct_download.go | 39 +- model_firmware_distributable.go | 39 +- model_firmware_distributable_list.go | 22 +- model_firmware_distributable_meta.go | 41 +- model_firmware_distributable_meta_list.go | 22 +- ...irmware_distributable_meta_relationship.go | 2 +- model_firmware_distributable_meta_response.go | 2 +- model_firmware_distributable_relationship.go | 2 +- model_firmware_distributable_response.go | 2 +- model_firmware_drive_descriptor.go | 20 +- model_firmware_drive_descriptor_list.go | 22 +- model_firmware_drive_descriptor_response.go | 2 +- model_firmware_driver_distributable.go | 39 +- model_firmware_driver_distributable_list.go | 22 +- ..._firmware_driver_distributable_response.go | 2 +- model_firmware_eula.go | 39 +- model_firmware_eula_list.go | 22 +- model_firmware_eula_response.go | 2 +- ...irmware_exclude_component_pid_list_type.go | 43 +- model_firmware_fabric_upgrade_impact.go | 41 +- model_firmware_firmware_inventory.go | 39 +- model_firmware_firmware_summary.go | 41 +- model_firmware_firmware_summary_list.go | 22 +- model_firmware_firmware_summary_response.go | 2 +- model_firmware_gpu_descriptor.go | 20 +- model_firmware_gpu_descriptor_list.go | 22 +- model_firmware_gpu_descriptor_response.go | 2 +- model_firmware_hba_descriptor.go | 20 +- model_firmware_hba_descriptor_list.go | 22 +- model_firmware_hba_descriptor_response.go | 2 +- model_firmware_http_server.go | 39 +- model_firmware_iom_descriptor.go | 20 +- model_firmware_iom_descriptor_list.go | 22 +- model_firmware_iom_descriptor_response.go | 2 +- model_firmware_model_bundle_version.go | 39 +- model_firmware_mswitch_descriptor.go | 20 +- model_firmware_mswitch_descriptor_list.go | 22 +- model_firmware_mswitch_descriptor_response.go | 2 +- model_firmware_network_share.go | 39 +- model_firmware_nfs_server.go | 39 +- model_firmware_nxos_descriptor.go | 20 +- model_firmware_nxos_descriptor_list.go | 22 +- model_firmware_nxos_descriptor_response.go | 2 +- model_firmware_pcie_descriptor.go | 20 +- model_firmware_pcie_descriptor_list.go | 22 +- model_firmware_pcie_descriptor_response.go | 2 +- model_firmware_policy.go | 45 +- model_firmware_policy_list.go | 22 +- model_firmware_policy_response.go | 2 +- model_firmware_psu_descriptor.go | 20 +- model_firmware_psu_descriptor_list.go | 22 +- model_firmware_psu_descriptor_response.go | 2 +- model_firmware_running_firmware.go | 41 +- model_firmware_running_firmware_list.go | 22 +- ..._firmware_running_firmware_relationship.go | 2 +- model_firmware_running_firmware_response.go | 2 +- model_firmware_sas_expander_descriptor.go | 20 +- ...l_firmware_sas_expander_descriptor_list.go | 22 +- ...rmware_sas_expander_descriptor_response.go | 2 +- ...ver_configuration_utility_distributable.go | 39 +- ...onfiguration_utility_distributable_list.go | 22 +- ...tion_utility_distributable_relationship.go | 2 +- ...guration_utility_distributable_response.go | 2 +- model_firmware_server_upgrade_impact.go | 41 +- ..._firmware_storage_controller_descriptor.go | 20 +- ...ware_storage_controller_descriptor_list.go | 22 +- ..._storage_controller_descriptor_response.go | 2 +- model_firmware_switch_upgrade.go | 41 +- model_firmware_switch_upgrade_list.go | 22 +- model_firmware_switch_upgrade_response.go | 2 +- model_firmware_unsupported_version_upgrade.go | 39 +- ...rmware_unsupported_version_upgrade_list.go | 22 +- ...re_unsupported_version_upgrade_response.go | 2 +- model_firmware_upgrade.go | 41 +- model_firmware_upgrade_base.go | 20 +- model_firmware_upgrade_base_relationship.go | 2 +- model_firmware_upgrade_impact.go | 47 +- model_firmware_upgrade_impact_base.go | 26 +- model_firmware_upgrade_impact_status.go | 39 +- model_firmware_upgrade_impact_status_list.go | 22 +- ...ware_upgrade_impact_status_relationship.go | 2 +- ...firmware_upgrade_impact_status_response.go | 2 +- model_firmware_upgrade_list.go | 22 +- model_firmware_upgrade_response.go | 2 +- model_firmware_upgrade_status.go | 39 +- model_firmware_upgrade_status_list.go | 22 +- model_firmware_upgrade_status_relationship.go | 2 +- model_firmware_upgrade_status_response.go | 2 +- model_firmware_upgrade_validity.go | 39 +- model_firmware_version_map.go | 39 +- model_fmc_device.go | 39 +- model_fmc_device_ha_pair.go | 39 +- model_fmc_device_ha_pair_list.go | 22 +- model_fmc_device_ha_pair_response.go | 2 +- model_fmc_device_list.go | 22 +- model_fmc_device_response.go | 2 +- model_fmc_domain.go | 39 +- model_fmc_domain_list.go | 22 +- model_fmc_domain_response.go | 2 +- model_fmc_inventory_entity.go | 20 +- model_fmc_physical_interface.go | 39 +- model_fmc_physical_interface_list.go | 22 +- model_fmc_physical_interface_response.go | 2 +- model_forecast_catalog.go | 45 +- model_forecast_catalog_list.go | 22 +- model_forecast_catalog_relationship.go | 2 +- model_forecast_catalog_response.go | 2 +- model_forecast_definition.go | 39 +- model_forecast_definition_list.go | 22 +- model_forecast_definition_relationship.go | 2 +- model_forecast_definition_response.go | 2 +- model_forecast_instance.go | 41 +- model_forecast_instance_list.go | 22 +- model_forecast_instance_relationship.go | 2 +- model_forecast_instance_response.go | 2 +- model_forecast_model.go | 41 +- model_graphics_card.go | 45 +- model_graphics_card_list.go | 22 +- model_graphics_card_relationship.go | 2 +- model_graphics_card_response.go | 2 +- model_graphics_controller.go | 39 +- model_graphics_controller_list.go | 22 +- model_graphics_controller_relationship.go | 2 +- model_graphics_controller_response.go | 2 +- model_hcl_compatibility_status.go | 41 +- model_hcl_constraint.go | 39 +- model_hcl_driver_image.go | 39 +- model_hcl_driver_image_list.go | 22 +- model_hcl_driver_image_response.go | 2 +- model_hcl_exempted_catalog.go | 41 +- model_hcl_exempted_catalog_list.go | 22 +- model_hcl_exempted_catalog_response.go | 2 +- model_hcl_firmware.go | 39 +- model_hcl_hardware_compatibility_profile.go | 41 +- model_hcl_hw_catalog_info.go | 41 +- model_hcl_hw_catalog_info_list.go | 22 +- model_hcl_hw_catalog_info_relationship.go | 2 +- model_hcl_hw_catalog_info_response.go | 2 +- ...l_hyperflex_software_compatibility_info.go | 41 +- ...erflex_software_compatibility_info_list.go | 22 +- ...oftware_compatibility_info_relationship.go | 2 +- ...ex_software_compatibility_info_response.go | 2 +- model_hcl_operating_system.go | 39 +- model_hcl_operating_system_list.go | 22 +- model_hcl_operating_system_relationship.go | 2 +- model_hcl_operating_system_response.go | 2 +- model_hcl_operating_system_vendor.go | 39 +- model_hcl_operating_system_vendor_list.go | 22 +- ...cl_operating_system_vendor_relationship.go | 2 +- model_hcl_operating_system_vendor_response.go | 2 +- model_hcl_product.go | 43 +- model_hcl_server_hw_catalog_info.go | 45 +- model_hcl_server_hw_catalog_info_list.go | 22 +- ...hcl_server_hw_catalog_info_relationship.go | 2 +- model_hcl_server_hw_catalog_info_response.go | 2 +- model_hcl_supported_driver_name.go | 41 +- model_hyperflex_abstract_app_setting.go | 20 +- model_hyperflex_alarm.go | 41 +- model_hyperflex_alarm_list.go | 22 +- model_hyperflex_alarm_relationship.go | 2 +- model_hyperflex_alarm_response.go | 2 +- model_hyperflex_alarm_summary.go | 39 +- model_hyperflex_app_catalog.go | 47 +- model_hyperflex_app_catalog_list.go | 22 +- model_hyperflex_app_catalog_relationship.go | 2 +- model_hyperflex_app_catalog_response.go | 2 +- model_hyperflex_app_setting_constraint.go | 39 +- model_hyperflex_auto_support_policy.go | 45 +- model_hyperflex_auto_support_policy_list.go | 22 +- ...erflex_auto_support_policy_relationship.go | 2 +- ..._hyperflex_auto_support_policy_response.go | 2 +- model_hyperflex_backup_cluster.go | 39 +- model_hyperflex_backup_cluster_list.go | 22 +- ...l_hyperflex_backup_cluster_relationship.go | 2 +- model_hyperflex_backup_cluster_response.go | 2 +- model_hyperflex_backup_policy_settings.go | 39 +- model_hyperflex_base_cluster.go | 41 +- model_hyperflex_base_cluster_relationship.go | 2 +- model_hyperflex_capability.go | 39 +- model_hyperflex_capability_info.go | 41 +- model_hyperflex_capability_info_list.go | 22 +- ..._hyperflex_capability_info_relationship.go | 2 +- model_hyperflex_capability_info_response.go | 2 +- model_hyperflex_cluster.go | 53 +- model_hyperflex_cluster_backup_policy.go | 41 +- ...erflex_cluster_backup_policy_deployment.go | 39 +- ...x_cluster_backup_policy_deployment_list.go | 22 +- ...uster_backup_policy_deployment_response.go | 2 +- ...perflex_cluster_backup_policy_inventory.go | 39 +- ...ex_cluster_backup_policy_inventory_list.go | 22 +- ...er_backup_policy_inventory_relationship.go | 2 +- ...luster_backup_policy_inventory_response.go | 2 +- model_hyperflex_cluster_backup_policy_list.go | 22 +- ...yperflex_cluster_backup_policy_response.go | 2 +- ...cluster_health_check_execution_snapshot.go | 39 +- ...er_health_check_execution_snapshot_list.go | 22 +- ...ealth_check_execution_snapshot_response.go | 2 +- model_hyperflex_cluster_list.go | 22 +- model_hyperflex_cluster_network_policy.go | 43 +- ...l_hyperflex_cluster_network_policy_list.go | 22 +- ...lex_cluster_network_policy_relationship.go | 2 +- ...perflex_cluster_network_policy_response.go | 2 +- model_hyperflex_cluster_profile.go | 75 +- model_hyperflex_cluster_profile_list.go | 22 +- ..._hyperflex_cluster_profile_relationship.go | 2 +- model_hyperflex_cluster_profile_response.go | 2 +- model_hyperflex_cluster_relationship.go | 2 +- ...flex_cluster_replication_network_policy.go | 43 +- ...r_replication_network_policy_deployment.go | 41 +- ...lication_network_policy_deployment_list.go | 22 +- ...tion_network_policy_deployment_response.go | 2 +- ...cluster_replication_network_policy_list.go | 22 +- ...ter_replication_network_policy_response.go | 2 +- model_hyperflex_cluster_response.go | 2 +- model_hyperflex_cluster_storage_policy.go | 41 +- ...l_hyperflex_cluster_storage_policy_list.go | 22 +- ...lex_cluster_storage_policy_relationship.go | 2 +- ...perflex_cluster_storage_policy_response.go | 2 +- model_hyperflex_config_result.go | 41 +- model_hyperflex_config_result_entry.go | 39 +- model_hyperflex_config_result_entry_list.go | 22 +- ...erflex_config_result_entry_relationship.go | 2 +- ..._hyperflex_config_result_entry_response.go | 2 +- model_hyperflex_config_result_list.go | 22 +- model_hyperflex_config_result_relationship.go | 2 +- model_hyperflex_config_result_response.go | 2 +- model_hyperflex_data_protection_peer.go | 39 +- model_hyperflex_data_protection_peer_list.go | 22 +- ...rflex_data_protection_peer_relationship.go | 2 +- ...hyperflex_data_protection_peer_response.go | 2 +- model_hyperflex_datastore_info.go | 39 +- model_hyperflex_datastore_statistic.go | 41 +- model_hyperflex_datastore_statistic_list.go | 22 +- ...erflex_datastore_statistic_relationship.go | 2 +- ..._hyperflex_datastore_statistic_response.go | 2 +- ...hyperflex_device_package_download_state.go | 41 +- ...flex_device_package_download_state_list.go | 22 +- ..._device_package_download_state_response.go | 2 +- model_hyperflex_drive.go | 39 +- model_hyperflex_drive_list.go | 22 +- model_hyperflex_drive_relationship.go | 2 +- model_hyperflex_drive_response.go | 2 +- model_hyperflex_encryption.go | 39 +- model_hyperflex_encryption_list.go | 22 +- model_hyperflex_encryption_relationship.go | 2 +- model_hyperflex_encryption_response.go | 2 +- model_hyperflex_entity_reference.go | 39 +- model_hyperflex_error_stack.go | 39 +- model_hyperflex_ext_fc_storage_policy.go | 41 +- model_hyperflex_ext_fc_storage_policy_list.go | 22 +- ...flex_ext_fc_storage_policy_relationship.go | 2 +- ...yperflex_ext_fc_storage_policy_response.go | 2 +- model_hyperflex_ext_iscsi_storage_policy.go | 41 +- ...hyperflex_ext_iscsi_storage_policy_list.go | 22 +- ...x_ext_iscsi_storage_policy_relationship.go | 2 +- ...rflex_ext_iscsi_storage_policy_response.go | 2 +- model_hyperflex_feature_limit_entry.go | 39 +- model_hyperflex_feature_limit_external.go | 41 +- ...l_hyperflex_feature_limit_external_list.go | 22 +- ...lex_feature_limit_external_relationship.go | 2 +- ...perflex_feature_limit_external_response.go | 2 +- model_hyperflex_feature_limit_internal.go | 41 +- ...l_hyperflex_feature_limit_internal_list.go | 22 +- ...lex_feature_limit_internal_relationship.go | 2 +- ...perflex_feature_limit_internal_response.go | 2 +- model_hyperflex_file_path.go | 39 +- model_hyperflex_health.go | 41 +- model_hyperflex_health_check_definition.go | 43 +- ..._hyperflex_health_check_definition_list.go | 22 +- ...ex_health_check_definition_relationship.go | 2 +- ...erflex_health_check_definition_response.go | 2 +- model_hyperflex_health_check_execution.go | 41 +- ...l_hyperflex_health_check_execution_list.go | 22 +- ...perflex_health_check_execution_response.go | 2 +- ...perflex_health_check_execution_snapshot.go | 41 +- ...ex_health_check_execution_snapshot_list.go | 22 +- ...ealth_check_execution_snapshot_response.go | 2 +- ..._hyperflex_health_check_node_level_info.go | 39 +- ...hyperflex_health_check_package_checksum.go | 39 +- ...flex_health_check_package_checksum_list.go | 22 +- ..._health_check_package_checksum_response.go | 2 +- ..._hyperflex_health_check_schedule_policy.go | 39 +- ...rflex_health_check_schedule_policy_list.go | 22 +- ...x_health_check_schedule_policy_response.go | 2 +- model_hyperflex_health_check_script_info.go | 39 +- model_hyperflex_health_list.go | 22 +- model_hyperflex_health_relationship.go | 2 +- model_hyperflex_health_response.go | 2 +- model_hyperflex_hw_catalog.go | 41 +- model_hyperflex_hw_catalog_list.go | 22 +- model_hyperflex_hw_catalog_response.go | 2 +- model_hyperflex_hx_host_mount_status_dt.go | 39 +- ...lex_hx_license_authorization_details_dt.go | 39 +- model_hyperflex_hx_link_dt.go | 39 +- model_hyperflex_hx_network_address_dt.go | 39 +- ...perflex_hx_platform_datastore_config_dt.go | 39 +- model_hyperflex_hx_registration_details_dt.go | 39 +- model_hyperflex_hx_resiliency_info_dt.go | 41 +- model_hyperflex_hx_site_dt.go | 39 +- model_hyperflex_hx_uu_id_dt.go | 41 +- model_hyperflex_hx_zone_info_dt.go | 39 +- model_hyperflex_hx_zone_resiliency_info_dt.go | 39 +- model_hyperflex_hxdp_version.go | 39 +- model_hyperflex_hxdp_version_list.go | 22 +- model_hyperflex_hxdp_version_relationship.go | 2 +- model_hyperflex_hxdp_version_response.go | 2 +- model_hyperflex_hypervisor_host.go | 39 +- model_hyperflex_hypervisor_host_list.go | 22 +- ..._hyperflex_hypervisor_host_relationship.go | 2 +- model_hyperflex_hypervisor_host_response.go | 2 +- model_hyperflex_hypervisor_virtual_machine.go | 39 +- ...perflex_hypervisor_virtual_machine_list.go | 22 +- ...lex_hypervisor_virtual_machine_response.go | 2 +- model_hyperflex_initiator_group.go | 45 +- model_hyperflex_initiator_group_list.go | 22 +- ..._hyperflex_initiator_group_relationship.go | 2 +- model_hyperflex_initiator_group_response.go | 2 +- model_hyperflex_ip_addr_range.go | 57 +- model_hyperflex_iscsi_network.go | 41 +- model_hyperflex_iscsi_network_list.go | 22 +- model_hyperflex_iscsi_network_response.go | 2 +- model_hyperflex_key_encryption_key.go | 39 +- model_hyperflex_key_encryption_key_list.go | 22 +- ...l_hyperflex_key_encryption_key_response.go | 2 +- model_hyperflex_license.go | 39 +- model_hyperflex_license_list.go | 22 +- model_hyperflex_license_relationship.go | 2 +- model_hyperflex_license_response.go | 2 +- model_hyperflex_local_credential_policy.go | 53 +- ..._hyperflex_local_credential_policy_list.go | 22 +- ...ex_local_credential_policy_relationship.go | 2 +- ...erflex_local_credential_policy_response.go | 2 +- model_hyperflex_logical_availability_zone.go | 39 +- model_hyperflex_lun.go | 39 +- model_hyperflex_lun_list.go | 22 +- model_hyperflex_lun_relationship.go | 2 +- model_hyperflex_lun_response.go | 2 +- model_hyperflex_mac_addr_prefix_range.go | 47 +- ...rflex_map_cluster_id_to_protection_info.go | 39 +- ...lex_map_cluster_id_to_st_snapshot_point.go | 39 +- model_hyperflex_map_uuid_to_tracked_disk.go | 39 +- model_hyperflex_named_vlan.go | 43 +- model_hyperflex_named_vsan.go | 43 +- model_hyperflex_network_configuration.go | 49 +- model_hyperflex_node.go | 43 +- model_hyperflex_node_config_policy.go | 45 +- model_hyperflex_node_config_policy_list.go | 22 +- ...perflex_node_config_policy_relationship.go | 2 +- ...l_hyperflex_node_config_policy_response.go | 2 +- model_hyperflex_node_list.go | 22 +- model_hyperflex_node_profile.go | 63 +- model_hyperflex_node_profile_list.go | 22 +- model_hyperflex_node_profile_relationship.go | 2 +- model_hyperflex_node_profile_response.go | 2 +- model_hyperflex_node_relationship.go | 2 +- model_hyperflex_node_response.go | 2 +- ..._hyperflex_port_type_to_port_number_map.go | 39 +- model_hyperflex_protected_cluster.go | 39 +- model_hyperflex_protected_cluster_list.go | 22 +- model_hyperflex_protected_cluster_response.go | 2 +- model_hyperflex_protection_info.go | 39 +- model_hyperflex_proxy_setting_policy.go | 45 +- model_hyperflex_proxy_setting_policy_list.go | 22 +- ...rflex_proxy_setting_policy_relationship.go | 2 +- ...hyperflex_proxy_setting_policy_response.go | 2 +- model_hyperflex_re_sync_cluster_mo_ids.go | 41 +- model_hyperflex_reduce_re_sync.go | 39 +- model_hyperflex_reduce_re_sync_list.go | 22 +- model_hyperflex_reduce_re_sync_response.go | 2 +- ...plication_cluster_reference_to_schedule.go | 39 +- model_hyperflex_replication_peer_info.go | 43 +- model_hyperflex_replication_plat_datastore.go | 39 +- ...perflex_replication_plat_datastore_pair.go | 39 +- model_hyperflex_replication_schedule.go | 39 +- model_hyperflex_replication_status.go | 39 +- model_hyperflex_rpo_status.go | 39 +- model_hyperflex_server_firmware_version.go | 41 +- ...hyperflex_server_firmware_version_entry.go | 43 +- ...flex_server_firmware_version_entry_list.go | 22 +- ...ver_firmware_version_entry_relationship.go | 2 +- ..._server_firmware_version_entry_response.go | 2 +- ..._hyperflex_server_firmware_version_info.go | 43 +- ..._hyperflex_server_firmware_version_list.go | 22 +- ...ex_server_firmware_version_relationship.go | 2 +- ...erflex_server_firmware_version_response.go | 2 +- model_hyperflex_server_model.go | 41 +- model_hyperflex_server_model_entry.go | 39 +- model_hyperflex_server_model_list.go | 22 +- model_hyperflex_server_model_relationship.go | 2 +- model_hyperflex_server_model_response.go | 2 +- model_hyperflex_service_auth_token.go | 39 +- model_hyperflex_service_auth_token_list.go | 22 +- ...l_hyperflex_service_auth_token_response.go | 2 +- model_hyperflex_site_details.go | 39 +- model_hyperflex_snapshot_files.go | 43 +- model_hyperflex_snapshot_info_brief.go | 39 +- model_hyperflex_snapshot_point.go | 39 +- model_hyperflex_snapshot_status.go | 39 +- ...perflex_software_distribution_component.go | 41 +- ...ex_software_distribution_component_list.go | 22 +- ...are_distribution_component_relationship.go | 2 +- ...oftware_distribution_component_response.go | 2 +- ...l_hyperflex_software_distribution_entry.go | 41 +- ...erflex_software_distribution_entry_list.go | 22 +- ...oftware_distribution_entry_relationship.go | 2 +- ...ex_software_distribution_entry_response.go | 2 +- ...hyperflex_software_distribution_version.go | 41 +- ...flex_software_distribution_version_list.go | 22 +- ...tware_distribution_version_relationship.go | 2 +- ..._software_distribution_version_response.go | 2 +- model_hyperflex_software_version_policy.go | 49 +- ..._hyperflex_software_version_policy_list.go | 22 +- ...ex_software_version_policy_relationship.go | 2 +- ...erflex_software_version_policy_response.go | 2 +- ...erflex_st_platform_cluster_healing_info.go | 43 +- ...lex_st_platform_cluster_resiliency_info.go | 43 +- model_hyperflex_start_reduce_re_sync.go | 43 +- model_hyperflex_start_reduce_re_sync_list.go | 22 +- ...hyperflex_start_reduce_re_sync_response.go | 2 +- model_hyperflex_storage_container.go | 43 +- model_hyperflex_storage_container_list.go | 22 +- ...yperflex_storage_container_relationship.go | 2 +- model_hyperflex_storage_container_response.go | 2 +- model_hyperflex_summary.go | 41 +- model_hyperflex_sys_config_policy.go | 49 +- model_hyperflex_sys_config_policy_list.go | 22 +- ...yperflex_sys_config_policy_relationship.go | 2 +- model_hyperflex_sys_config_policy_response.go | 2 +- model_hyperflex_target.go | 47 +- model_hyperflex_target_list.go | 22 +- model_hyperflex_target_relationship.go | 2 +- model_hyperflex_target_response.go | 2 +- model_hyperflex_tracked_disk.go | 41 +- model_hyperflex_tracked_file.go | 39 +- model_hyperflex_ucsm_config_policy.go | 45 +- model_hyperflex_ucsm_config_policy_list.go | 22 +- ...perflex_ucsm_config_policy_relationship.go | 2 +- ...l_hyperflex_ucsm_config_policy_response.go | 2 +- model_hyperflex_vcenter_config_policy.go | 53 +- model_hyperflex_vcenter_config_policy_list.go | 22 +- ...flex_vcenter_config_policy_relationship.go | 2 +- ...yperflex_vcenter_config_policy_response.go | 2 +- model_hyperflex_vcenter_configuration.go | 39 +- model_hyperflex_virtual_machine.go | 39 +- ..._hyperflex_virtual_machine_runtime_info.go | 41 +- model_hyperflex_vm_backup_info.go | 43 +- model_hyperflex_vm_backup_info_list.go | 22 +- ...l_hyperflex_vm_backup_info_relationship.go | 2 +- model_hyperflex_vm_backup_info_response.go | 2 +- model_hyperflex_vm_import_operation.go | 39 +- model_hyperflex_vm_import_operation_list.go | 22 +- ..._hyperflex_vm_import_operation_response.go | 2 +- model_hyperflex_vm_protection_space_usage.go | 39 +- model_hyperflex_vm_restore_operation.go | 39 +- model_hyperflex_vm_restore_operation_list.go | 22 +- ...hyperflex_vm_restore_operation_response.go | 2 +- model_hyperflex_vm_snapshot_info.go | 41 +- model_hyperflex_vm_snapshot_info_list.go | 22 +- ...hyperflex_vm_snapshot_info_relationship.go | 2 +- model_hyperflex_vm_snapshot_info_response.go | 2 +- model_hyperflex_volume.go | 39 +- model_hyperflex_volume_list.go | 22 +- model_hyperflex_volume_relationship.go | 2 +- model_hyperflex_volume_response.go | 2 +- model_hyperflex_witness_configuration.go | 39 +- model_hyperflex_witness_configuration_list.go | 22 +- ...yperflex_witness_configuration_response.go | 2 +- model_hyperflex_wwxn_prefix_range.go | 47 +- model_i18n_message.go | 41 +- model_i18n_message_param.go | 39 +- model_iaas_connector_pack.go | 41 +- model_iaas_connector_pack_list.go | 22 +- model_iaas_connector_pack_relationship.go | 2 +- model_iaas_connector_pack_response.go | 2 +- model_iaas_custom_task_info.go | 39 +- model_iaas_custom_task_info_list.go | 22 +- model_iaas_custom_task_info_relationship.go | 2 +- model_iaas_custom_task_info_response.go | 2 +- model_iaas_device_status.go | 39 +- model_iaas_device_status_list.go | 22 +- model_iaas_device_status_relationship.go | 2 +- model_iaas_device_status_response.go | 2 +- model_iaas_diagnostic_messages.go | 39 +- model_iaas_diagnostic_messages_list.go | 22 +- model_iaas_diagnostic_messages_response.go | 2 +- model_iaas_license_info.go | 43 +- model_iaas_license_info_list.go | 22 +- model_iaas_license_info_relationship.go | 2 +- model_iaas_license_info_response.go | 2 +- model_iaas_license_keys_info.go | 39 +- model_iaas_license_utilization_info.go | 39 +- model_iaas_most_run_tasks.go | 39 +- model_iaas_most_run_tasks_list.go | 22 +- model_iaas_most_run_tasks_relationship.go | 2 +- model_iaas_most_run_tasks_response.go | 2 +- model_iaas_service_request.go | 41 +- model_iaas_service_request_list.go | 22 +- model_iaas_service_request_response.go | 2 +- model_iaas_system_task_info.go | 39 +- model_iaas_system_task_info_list.go | 22 +- model_iaas_system_task_info_relationship.go | 2 +- model_iaas_system_task_info_response.go | 2 +- model_iaas_ucsd_info.go | 49 +- model_iaas_ucsd_info_list.go | 22 +- model_iaas_ucsd_info_relationship.go | 2 +- model_iaas_ucsd_info_response.go | 2 +- model_iaas_ucsd_managed_infra.go | 39 +- model_iaas_ucsd_managed_infra_list.go | 22 +- model_iaas_ucsd_managed_infra_relationship.go | 2 +- model_iaas_ucsd_managed_infra_response.go | 2 +- model_iaas_ucsd_messages.go | 39 +- model_iaas_ucsd_messages_list.go | 22 +- model_iaas_ucsd_messages_response.go | 2 +- model_iaas_workflow_steps.go | 39 +- model_iam_account.go | 63 +- model_iam_account_experience.go | 41 +- model_iam_account_experience_list.go | 22 +- model_iam_account_experience_response.go | 2 +- model_iam_account_list.go | 22 +- model_iam_account_permissions.go | 43 +- model_iam_account_relationship.go | 2 +- model_iam_account_response.go | 2 +- model_iam_account_tags.go | 39 +- model_iam_api_key.go | 39 +- model_iam_api_key_list.go | 22 +- model_iam_api_key_relationship.go | 2 +- model_iam_api_key_response.go | 2 +- model_iam_app_registration.go | 49 +- model_iam_app_registration_list.go | 22 +- model_iam_app_registration_relationship.go | 2 +- model_iam_app_registration_response.go | 2 +- model_iam_banner_message.go | 39 +- model_iam_banner_message_list.go | 22 +- model_iam_banner_message_response.go | 2 +- model_iam_certificate.go | 39 +- model_iam_certificate_list.go | 22 +- model_iam_certificate_relationship.go | 2 +- model_iam_certificate_request.go | 39 +- model_iam_certificate_request_list.go | 22 +- model_iam_certificate_request_relationship.go | 2 +- model_iam_certificate_request_response.go | 2 +- model_iam_certificate_response.go | 2 +- model_iam_client_meta.go | 39 +- model_iam_domain_group.go | 39 +- model_iam_domain_group_list.go | 22 +- model_iam_domain_group_relationship.go | 2 +- model_iam_domain_group_response.go | 2 +- model_iam_domain_name_info.go | 43 +- model_iam_domain_name_info_list.go | 22 +- model_iam_domain_name_info_response.go | 2 +- model_iam_end_point_password_properties.go | 39 +- model_iam_end_point_privilege.go | 39 +- model_iam_end_point_privilege_list.go | 22 +- model_iam_end_point_privilege_relationship.go | 2 +- model_iam_end_point_privilege_response.go | 2 +- model_iam_end_point_role.go | 41 +- model_iam_end_point_role_list.go | 22 +- model_iam_end_point_role_relationship.go | 2 +- model_iam_end_point_role_response.go | 2 +- model_iam_end_point_user.go | 45 +- model_iam_end_point_user_inventory.go | 45 +- model_iam_end_point_user_inventory_list.go | 22 +- ...m_end_point_user_inventory_relationship.go | 2 +- ...l_iam_end_point_user_inventory_response.go | 2 +- model_iam_end_point_user_list.go | 22 +- model_iam_end_point_user_policy.go | 43 +- model_iam_end_point_user_policy_inventory.go | 41 +- ...am_end_point_user_policy_inventory_list.go | 22 +- ...oint_user_policy_inventory_relationship.go | 2 +- ...nd_point_user_policy_inventory_response.go | 2 +- model_iam_end_point_user_policy_list.go | 22 +- ..._iam_end_point_user_policy_relationship.go | 2 +- model_iam_end_point_user_policy_response.go | 2 +- model_iam_end_point_user_relationship.go | 2 +- model_iam_end_point_user_response.go | 2 +- model_iam_end_point_user_role.go | 45 +- model_iam_end_point_user_role_inventory.go | 45 +- ..._iam_end_point_user_role_inventory_list.go | 22 +- ..._point_user_role_inventory_relationship.go | 2 +- ..._end_point_user_role_inventory_response.go | 2 +- model_iam_end_point_user_role_list.go | 22 +- model_iam_end_point_user_role_relationship.go | 2 +- model_iam_end_point_user_role_response.go | 2 +- model_iam_failure_details.go | 39 +- model_iam_feature_definition.go | 39 +- model_iam_group_permission_to_roles.go | 41 +- model_iam_idp.go | 53 +- model_iam_idp_list.go | 22 +- model_iam_idp_reference.go | 47 +- model_iam_idp_reference_list.go | 22 +- model_iam_idp_reference_relationship.go | 2 +- model_iam_idp_reference_response.go | 2 +- model_iam_idp_relationship.go | 2 +- model_iam_idp_response.go | 2 +- model_iam_ip_access_management.go | 41 +- model_iam_ip_access_management_list.go | 22 +- ...l_iam_ip_access_management_relationship.go | 2 +- model_iam_ip_access_management_response.go | 2 +- model_iam_ip_address.go | 39 +- model_iam_ip_address_list.go | 22 +- model_iam_ip_address_relationship.go | 2 +- model_iam_ip_address_response.go | 2 +- model_iam_ldap_base_properties.go | 59 +- model_iam_ldap_config_params.go | 39 +- model_iam_ldap_config_params_list.go | 22 +- model_iam_ldap_config_params_response.go | 2 +- model_iam_ldap_dns_parameters.go | 47 +- model_iam_ldap_group.go | 49 +- model_iam_ldap_group_list.go | 22 +- model_iam_ldap_group_relationship.go | 2 +- model_iam_ldap_group_response.go | 2 +- model_iam_ldap_policy.go | 45 +- model_iam_ldap_policy_list.go | 22 +- model_iam_ldap_policy_relationship.go | 2 +- model_iam_ldap_policy_response.go | 2 +- model_iam_ldap_provider.go | 39 +- model_iam_ldap_provider_list.go | 22 +- model_iam_ldap_provider_relationship.go | 2 +- model_iam_ldap_provider_response.go | 2 +- model_iam_local_user_password.go | 39 +- model_iam_local_user_password_list.go | 22 +- model_iam_local_user_password_policy.go | 39 +- model_iam_local_user_password_policy_list.go | 22 +- ...iam_local_user_password_policy_response.go | 2 +- model_iam_local_user_password_relationship.go | 2 +- model_iam_local_user_password_response.go | 2 +- model_iam_o_auth_token.go | 39 +- model_iam_o_auth_token_list.go | 22 +- model_iam_o_auth_token_relationship.go | 2 +- model_iam_o_auth_token_response.go | 2 +- model_iam_permission.go | 55 +- model_iam_permission_list.go | 22 +- model_iam_permission_reference.go | 39 +- model_iam_permission_relationship.go | 2 +- model_iam_permission_response.go | 2 +- model_iam_permission_to_roles.go | 41 +- model_iam_private_key_spec.go | 39 +- model_iam_private_key_spec_list.go | 22 +- model_iam_private_key_spec_relationship.go | 2 +- model_iam_private_key_spec_response.go | 2 +- model_iam_privilege.go | 39 +- model_iam_privilege_list.go | 22 +- model_iam_privilege_relationship.go | 2 +- model_iam_privilege_response.go | 2 +- model_iam_privilege_set.go | 49 +- model_iam_privilege_set_list.go | 22 +- model_iam_privilege_set_relationship.go | 2 +- model_iam_privilege_set_response.go | 2 +- model_iam_qualifier.go | 41 +- model_iam_qualifier_list.go | 22 +- model_iam_qualifier_relationship.go | 2 +- model_iam_qualifier_response.go | 2 +- model_iam_resource_limits.go | 39 +- model_iam_resource_limits_list.go | 22 +- model_iam_resource_limits_relationship.go | 2 +- model_iam_resource_limits_response.go | 2 +- model_iam_resource_permission.go | 41 +- model_iam_resource_permission_list.go | 22 +- model_iam_resource_permission_relationship.go | 2 +- model_iam_resource_permission_response.go | 2 +- model_iam_resource_role.go | 20 +- model_iam_resource_roles.go | 45 +- model_iam_resource_roles_list.go | 22 +- model_iam_resource_roles_relationship.go | 2 +- model_iam_resource_roles_response.go | 2 +- model_iam_role.go | 47 +- model_iam_role_list.go | 22 +- model_iam_role_relationship.go | 2 +- model_iam_role_response.go | 2 +- model_iam_rule.go | 41 +- model_iam_saml_sp_connection.go | 41 +- model_iam_security_context.go | 20 +- model_iam_security_holder.go | 41 +- model_iam_security_holder_list.go | 22 +- model_iam_security_holder_relationship.go | 2 +- model_iam_security_holder_response.go | 2 +- model_iam_service_provider.go | 39 +- model_iam_service_provider_list.go | 22 +- model_iam_service_provider_relationship.go | 2 +- model_iam_service_provider_response.go | 2 +- model_iam_session.go | 41 +- model_iam_session_limits.go | 39 +- model_iam_session_limits_list.go | 22 +- model_iam_session_limits_relationship.go | 2 +- model_iam_session_limits_response.go | 2 +- model_iam_session_list.go | 22 +- model_iam_session_relationship.go | 2 +- model_iam_session_response.go | 2 +- model_iam_sharing_rule.go | 39 +- model_iam_sharing_rule_list.go | 22 +- model_iam_sharing_rule_relationship.go | 2 +- model_iam_sharing_rule_response.go | 2 +- model_iam_sso_session_attributes.go | 39 +- model_iam_system.go | 49 +- model_iam_system_list.go | 22 +- model_iam_system_relationship.go | 2 +- model_iam_system_response.go | 2 +- model_iam_trust_point.go | 43 +- model_iam_trust_point_list.go | 22 +- model_iam_trust_point_relationship.go | 2 +- model_iam_trust_point_response.go | 2 +- model_iam_user.go | 53 +- model_iam_user_group.go | 43 +- model_iam_user_group_list.go | 22 +- model_iam_user_group_relationship.go | 2 +- model_iam_user_group_response.go | 2 +- model_iam_user_list.go | 22 +- model_iam_user_preference.go | 41 +- model_iam_user_preference_list.go | 22 +- model_iam_user_preference_relationship.go | 2 +- model_iam_user_preference_response.go | 2 +- model_iam_user_relationship.go | 2 +- model_iam_user_response.go | 2 +- model_iam_user_setting.go | 39 +- model_iam_user_setting_list.go | 22 +- model_iam_user_setting_relationship.go | 2 +- model_iam_user_setting_response.go | 2 +- model_imcconnector_web_ui_message.go | 39 +- model_infra_base_cluster.go | 24 +- model_infra_base_cluster_relationship.go | 2 +- model_infra_base_gpu_configuration.go | 20 +- model_infra_base_pci_configuration.go | 20 +- model_infra_gpu_configuration.go | 20 +- model_infra_hardware_info.go | 39 +- model_infra_meta_data.go | 39 +- model_infra_mig_gpu_configuration.go | 39 +- model_inventory_base.go | 20 +- model_inventory_base_relationship.go | 2 +- model_inventory_device_info.go | 23 +- model_inventory_device_info_list.go | 22 +- model_inventory_device_info_relationship.go | 2 +- model_inventory_device_info_response.go | 2 +- model_inventory_dn_mo_binding.go | 39 +- model_inventory_dn_mo_binding_list.go | 22 +- model_inventory_dn_mo_binding_response.go | 2 +- model_inventory_generic_inventory.go | 39 +- model_inventory_generic_inventory_holder.go | 41 +- ...inventory_generic_inventory_holder_list.go | 22 +- ...y_generic_inventory_holder_relationship.go | 2 +- ...ntory_generic_inventory_holder_response.go | 2 +- model_inventory_generic_inventory_list.go | 22 +- ...nventory_generic_inventory_relationship.go | 2 +- model_inventory_generic_inventory_response.go | 2 +- model_inventory_interface.go | 20 +- model_inventory_interface_relationship.go | 2 +- model_inventory_inventory_mo.go | 39 +- model_inventory_request.go | 41 +- model_inventory_uem_info.go | 39 +- model_ipmioverlan_policy.go | 45 +- model_ipmioverlan_policy_inventory.go | 43 +- model_ipmioverlan_policy_inventory_list.go | 22 +- ...l_ipmioverlan_policy_inventory_response.go | 2 +- model_ipmioverlan_policy_list.go | 22 +- model_ipmioverlan_policy_response.go | 2 +- model_ippool_block_lease.go | 41 +- model_ippool_block_lease_list.go | 22 +- model_ippool_block_lease_relationship.go | 2 +- model_ippool_block_lease_response.go | 2 +- model_ippool_ip_lease.go | 47 +- model_ippool_ip_lease_list.go | 22 +- model_ippool_ip_lease_relationship.go | 2 +- model_ippool_ip_lease_response.go | 2 +- model_ippool_ip_v4_block.go | 47 +- model_ippool_ip_v4_config.go | 55 +- model_ippool_ip_v6_block.go | 47 +- model_ippool_ip_v6_config.go | 51 +- model_ippool_pool.go | 47 +- model_ippool_pool_list.go | 22 +- model_ippool_pool_member.go | 47 +- model_ippool_pool_member_list.go | 22 +- model_ippool_pool_member_relationship.go | 2 +- model_ippool_pool_member_response.go | 2 +- model_ippool_pool_relationship.go | 2 +- model_ippool_pool_response.go | 2 +- model_ippool_reservation.go | 47 +- model_ippool_reservation_list.go | 22 +- model_ippool_reservation_reference.go | 39 +- model_ippool_reservation_relationship.go | 2 +- model_ippool_reservation_response.go | 2 +- model_ippool_shadow_block.go | 41 +- model_ippool_shadow_block_list.go | 22 +- model_ippool_shadow_block_relationship.go | 2 +- model_ippool_shadow_block_response.go | 2 +- model_ippool_shadow_pool.go | 47 +- model_ippool_shadow_pool_list.go | 22 +- model_ippool_shadow_pool_relationship.go | 2 +- model_ippool_shadow_pool_response.go | 2 +- model_ippool_universe.go | 39 +- model_ippool_universe_list.go | 22 +- model_ippool_universe_relationship.go | 2 +- model_ippool_universe_response.go | 2 +- model_iqnpool_block.go | 41 +- model_iqnpool_block_list.go | 22 +- model_iqnpool_block_relationship.go | 2 +- model_iqnpool_block_response.go | 2 +- model_iqnpool_iqn_suffix_block.go | 39 +- model_iqnpool_lease.go | 43 +- model_iqnpool_lease_list.go | 22 +- model_iqnpool_lease_relationship.go | 2 +- model_iqnpool_lease_response.go | 2 +- model_iqnpool_pool.go | 45 +- model_iqnpool_pool_list.go | 22 +- model_iqnpool_pool_member.go | 39 +- model_iqnpool_pool_member_list.go | 22 +- model_iqnpool_pool_member_relationship.go | 2 +- model_iqnpool_pool_member_response.go | 2 +- model_iqnpool_pool_relationship.go | 2 +- model_iqnpool_pool_response.go | 2 +- model_iqnpool_reservation.go | 43 +- model_iqnpool_reservation_list.go | 22 +- model_iqnpool_reservation_reference.go | 20 +- model_iqnpool_reservation_relationship.go | 2 +- model_iqnpool_reservation_response.go | 2 +- model_iqnpool_universe.go | 39 +- model_iqnpool_universe_list.go | 22 +- model_iqnpool_universe_relationship.go | 2 +- model_iqnpool_universe_response.go | 2 +- model_issue_condition.go | 20 +- model_issue_definition.go | 41 +- model_issue_device_tag.go | 39 +- model_issue_message.go | 41 +- model_issue_odata_condition.go | 41 +- model_iwotenant_maintenance_notification.go | 39 +- ...iwotenant_maintenance_notification_list.go | 22 +- ...enant_maintenance_notification_response.go | 2 +- model_iwotenant_migrate.go | 39 +- model_iwotenant_migrate_list.go | 22 +- model_iwotenant_migrate_response.go | 2 +- model_iwotenant_tenant_customization.go | 39 +- model_iwotenant_tenant_customization_list.go | 22 +- ...iwotenant_tenant_customization_response.go | 2 +- model_iwotenant_tenant_status.go | 39 +- model_iwotenant_tenant_status_list.go | 22 +- model_iwotenant_tenant_status_response.go | 2 +- model_kubernetes_abstract_daemon_set.go | 20 +- model_kubernetes_abstract_deployment.go | 20 +- model_kubernetes_abstract_ingress.go | 20 +- model_kubernetes_abstract_node.go | 45 +- model_kubernetes_abstract_pod.go | 20 +- model_kubernetes_abstract_service.go | 20 +- model_kubernetes_abstract_stateful_set.go | 20 +- model_kubernetes_aci_cni_apic.go | 41 +- model_kubernetes_aci_cni_apic_list.go | 22 +- model_kubernetes_aci_cni_apic_response.go | 2 +- model_kubernetes_aci_cni_profile.go | 91 +- model_kubernetes_aci_cni_profile_list.go | 22 +- ...kubernetes_aci_cni_profile_relationship.go | 2 +- model_kubernetes_aci_cni_profile_response.go | 2 +- ...netes_aci_cni_tenant_cluster_allocation.go | 55 +- ..._aci_cni_tenant_cluster_allocation_list.go | 22 +- ..._tenant_cluster_allocation_relationship.go | 2 +- ..._cni_tenant_cluster_allocation_response.go | 2 +- model_kubernetes_action_info.go | 39 +- model_kubernetes_addon.go | 39 +- model_kubernetes_addon_configuration.go | 41 +- model_kubernetes_addon_definition.go | 43 +- model_kubernetes_addon_definition_list.go | 22 +- ...ubernetes_addon_definition_relationship.go | 2 +- model_kubernetes_addon_definition_response.go | 2 +- model_kubernetes_addon_policy.go | 39 +- model_kubernetes_addon_policy_list.go | 22 +- model_kubernetes_addon_policy_response.go | 2 +- model_kubernetes_addon_repository.go | 39 +- model_kubernetes_addon_repository_list.go | 22 +- model_kubernetes_addon_repository_response.go | 2 +- model_kubernetes_addon_version_reference.go | 39 +- model_kubernetes_baremetal_network_info.go | 43 +- model_kubernetes_baremetal_node_profile.go | 39 +- ..._kubernetes_baremetal_node_profile_list.go | 22 +- ...ernetes_baremetal_node_profile_response.go | 2 +- model_kubernetes_base_gpu_product.go | 39 +- ...kubernetes_base_infrastructure_provider.go | 39 +- ...se_infrastructure_provider_relationship.go | 2 +- model_kubernetes_base_product.go | 39 +- ...netes_base_virtual_machine_infra_config.go | 43 +- model_kubernetes_calico_config.go | 39 +- model_kubernetes_catalog.go | 39 +- model_kubernetes_catalog_list.go | 22 +- model_kubernetes_catalog_relationship.go | 2 +- model_kubernetes_catalog_response.go | 2 +- model_kubernetes_cluster.go | 41 +- model_kubernetes_cluster_addon_profile.go | 41 +- ...l_kubernetes_cluster_addon_profile_list.go | 22 +- ...etes_cluster_addon_profile_relationship.go | 2 +- ...bernetes_cluster_addon_profile_response.go | 2 +- ...netes_cluster_certificate_configuration.go | 41 +- model_kubernetes_cluster_list.go | 22 +- model_kubernetes_cluster_management_config.go | 43 +- model_kubernetes_cluster_profile.go | 49 +- model_kubernetes_cluster_profile_list.go | 22 +- ...kubernetes_cluster_profile_relationship.go | 2 +- model_kubernetes_cluster_profile_response.go | 2 +- model_kubernetes_cluster_relationship.go | 2 +- model_kubernetes_cluster_response.go | 2 +- model_kubernetes_cni_config.go | 39 +- model_kubernetes_config_result.go | 41 +- model_kubernetes_config_result_entry.go | 39 +- model_kubernetes_config_result_entry_list.go | 22 +- ...rnetes_config_result_entry_relationship.go | 2 +- ...kubernetes_config_result_entry_response.go | 2 +- model_kubernetes_config_result_list.go | 22 +- ...l_kubernetes_config_result_relationship.go | 2 +- model_kubernetes_config_result_response.go | 2 +- model_kubernetes_configuration.go | 39 +- model_kubernetes_container_runtime_policy.go | 47 +- ...ubernetes_container_runtime_policy_list.go | 22 +- ...s_container_runtime_policy_relationship.go | 2 +- ...netes_container_runtime_policy_response.go | 2 +- model_kubernetes_daemon_set.go | 39 +- model_kubernetes_daemon_set_list.go | 22 +- model_kubernetes_daemon_set_response.go | 2 +- model_kubernetes_daemon_set_status.go | 39 +- model_kubernetes_deployment.go | 39 +- model_kubernetes_deployment_list.go | 22 +- model_kubernetes_deployment_response.go | 2 +- model_kubernetes_deployment_status.go | 39 +- model_kubernetes_essential_addon.go | 39 +- ...netes_esxi_virtual_machine_infra_config.go | 39 +- model_kubernetes_ethernet.go | 39 +- model_kubernetes_ethernet_matcher.go | 39 +- model_kubernetes_http_proxy_policy.go | 41 +- model_kubernetes_http_proxy_policy_list.go | 22 +- ...bernetes_http_proxy_policy_relationship.go | 2 +- ...l_kubernetes_http_proxy_policy_response.go | 2 +- model_kubernetes_ingress.go | 39 +- model_kubernetes_ingress_list.go | 22 +- model_kubernetes_ingress_response.go | 2 +- model_kubernetes_ingress_status.go | 39 +- model_kubernetes_instance_type_details.go | 39 +- model_kubernetes_ip_v4_config.go | 43 +- model_kubernetes_key_value.go | 39 +- model_kubernetes_kubernetes_resource.go | 20 +- model_kubernetes_load_balancer.go | 41 +- model_kubernetes_network_interface.go | 26 +- model_kubernetes_network_interface_spec.go | 41 +- model_kubernetes_network_policy.go | 49 +- model_kubernetes_network_policy_list.go | 22 +- ..._kubernetes_network_policy_relationship.go | 2 +- model_kubernetes_network_policy_response.go | 2 +- model_kubernetes_node.go | 43 +- model_kubernetes_node_address.go | 39 +- model_kubernetes_node_group_label.go | 39 +- model_kubernetes_node_group_profile.go | 49 +- model_kubernetes_node_group_profile_list.go | 22 +- ...ernetes_node_group_profile_relationship.go | 2 +- ..._kubernetes_node_group_profile_response.go | 2 +- model_kubernetes_node_group_taint.go | 39 +- model_kubernetes_node_info.go | 39 +- model_kubernetes_node_list.go | 22 +- model_kubernetes_node_profile.go | 20 +- model_kubernetes_node_profile_relationship.go | 2 +- model_kubernetes_node_response.go | 2 +- model_kubernetes_node_spec.go | 39 +- model_kubernetes_node_status.go | 39 +- model_kubernetes_nvidia_gpu_product.go | 41 +- model_kubernetes_nvidia_gpu_product_list.go | 22 +- ..._kubernetes_nvidia_gpu_product_response.go | 2 +- model_kubernetes_object_meta.go | 39 +- model_kubernetes_ovs_bond.go | 41 +- model_kubernetes_pod.go | 39 +- model_kubernetes_pod_list.go | 22 +- model_kubernetes_pod_response.go | 2 +- model_kubernetes_pod_status.go | 39 +- model_kubernetes_proxy_config.go | 43 +- model_kubernetes_route.go | 47 +- model_kubernetes_service.go | 39 +- model_kubernetes_service_list.go | 22 +- model_kubernetes_service_response.go | 2 +- model_kubernetes_service_status.go | 39 +- model_kubernetes_stateful_set.go | 39 +- model_kubernetes_stateful_set_list.go | 22 +- model_kubernetes_stateful_set_response.go | 2 +- model_kubernetes_stateful_set_status.go | 39 +- model_kubernetes_sys_config_policy.go | 49 +- model_kubernetes_sys_config_policy_list.go | 22 +- ...bernetes_sys_config_policy_relationship.go | 2 +- ...l_kubernetes_sys_config_policy_response.go | 2 +- model_kubernetes_taint.go | 39 +- model_kubernetes_trusted_registries_policy.go | 45 +- ...bernetes_trusted_registries_policy_list.go | 22 +- ..._trusted_registries_policy_relationship.go | 2 +- ...etes_trusted_registries_policy_response.go | 2 +- model_kubernetes_version.go | 45 +- model_kubernetes_version_list.go | 22 +- model_kubernetes_version_policy.go | 41 +- model_kubernetes_version_policy_list.go | 22 +- ..._kubernetes_version_policy_relationship.go | 2 +- model_kubernetes_version_policy_response.go | 2 +- model_kubernetes_version_relationship.go | 2 +- model_kubernetes_version_response.go | 2 +- ...tes_virtual_machine_infra_config_policy.go | 41 +- ...irtual_machine_infra_config_policy_list.go | 22 +- ...achine_infra_config_policy_relationship.go | 2 +- ...al_machine_infra_config_policy_response.go | 2 +- ...virtual_machine_infrastructure_provider.go | 39 +- ...al_machine_infrastructure_provider_list.go | 22 +- ...ne_infrastructure_provider_relationship.go | 2 +- ...achine_infrastructure_provider_response.go | 2 +- ...ubernetes_virtual_machine_instance_type.go | 41 +- ...etes_virtual_machine_instance_type_list.go | 22 +- ...tual_machine_instance_type_relationship.go | 2 +- ..._virtual_machine_instance_type_response.go | 2 +- ...kubernetes_virtual_machine_node_profile.go | 43 +- ...netes_virtual_machine_node_profile_list.go | 22 +- ...s_virtual_machine_node_profile_response.go | 2 +- model_kvm_policy.go | 41 +- model_kvm_policy_inventory.go | 39 +- model_kvm_policy_inventory_list.go | 22 +- model_kvm_policy_inventory_response.go | 2 +- model_kvm_policy_list.go | 22 +- model_kvm_policy_response.go | 2 +- model_kvm_session.go | 39 +- model_kvm_session_list.go | 22 +- model_kvm_session_relationship.go | 2 +- model_kvm_session_response.go | 2 +- model_kvm_tunnel.go | 39 +- model_kvm_tunnel_list.go | 22 +- model_kvm_tunnel_relationship.go | 2 +- model_kvm_tunnel_response.go | 2 +- model_kvm_tunneled_kvm_policy.go | 39 +- model_kvm_tunneled_kvm_policy_list.go | 22 +- model_kvm_tunneled_kvm_policy_response.go | 2 +- model_license_account_license_data.go | 41 +- model_license_account_license_data_list.go | 22 +- ...cense_account_license_data_relationship.go | 2 +- ...l_license_account_license_data_response.go | 2 +- model_license_customer_op.go | 39 +- model_license_customer_op_list.go | 22 +- model_license_customer_op_relationship.go | 2 +- model_license_customer_op_response.go | 2 +- model_license_iks_customer_op.go | 39 +- model_license_iks_customer_op_list.go | 22 +- model_license_iks_customer_op_relationship.go | 2 +- model_license_iks_customer_op_response.go | 2 +- model_license_iks_license_count.go | 39 +- model_license_iks_license_count_list.go | 22 +- ..._license_iks_license_count_relationship.go | 2 +- model_license_iks_license_count_response.go | 2 +- model_license_inc_customer_op.go | 39 +- model_license_inc_customer_op_list.go | 22 +- model_license_inc_customer_op_relationship.go | 2 +- model_license_inc_customer_op_response.go | 2 +- model_license_inc_license_count.go | 39 +- model_license_inc_license_count_list.go | 22 +- ..._license_inc_license_count_relationship.go | 2 +- model_license_inc_license_count_response.go | 2 +- model_license_iwo_customer_op.go | 39 +- model_license_iwo_customer_op_list.go | 22 +- model_license_iwo_customer_op_relationship.go | 2 +- model_license_iwo_customer_op_response.go | 2 +- model_license_iwo_license_count.go | 39 +- model_license_iwo_license_count_list.go | 22 +- ..._license_iwo_license_count_relationship.go | 2 +- model_license_iwo_license_count_response.go | 2 +- model_license_license_info.go | 41 +- model_license_license_info_list.go | 22 +- model_license_license_info_relationship.go | 2 +- model_license_license_info_response.go | 2 +- model_license_license_info_view.go | 39 +- model_license_license_info_view_list.go | 22 +- ..._license_license_info_view_relationship.go | 2 +- model_license_license_info_view_response.go | 2 +- model_license_license_registration_status.go | 39 +- ...icense_license_registration_status_list.go | 22 +- ...icense_registration_status_relationship.go | 2 +- ...se_license_registration_status_response.go | 2 +- model_license_license_reservation_op.go | 39 +- model_license_license_reservation_op_list.go | 22 +- ...license_license_reservation_op_response.go | 2 +- model_license_smartlicense_token.go | 39 +- model_license_smartlicense_token_list.go | 22 +- ...license_smartlicense_token_relationship.go | 2 +- model_license_smartlicense_token_response.go | 2 +- model_license_substitute_license.go | 39 +- model_ls_service_profile.go | 39 +- model_ls_service_profile_list.go | 22 +- model_ls_service_profile_response.go | 2 +- model_macpool_block.go | 39 +- model_macpool_id_block.go | 41 +- model_macpool_id_block_list.go | 22 +- model_macpool_id_block_relationship.go | 2 +- model_macpool_id_block_response.go | 2 +- model_macpool_lease.go | 39 +- model_macpool_lease_list.go | 22 +- model_macpool_lease_relationship.go | 2 +- model_macpool_lease_response.go | 2 +- model_macpool_member_of.go | 39 +- model_macpool_pool.go | 45 +- model_macpool_pool_list.go | 22 +- model_macpool_pool_member.go | 39 +- model_macpool_pool_member_list.go | 22 +- model_macpool_pool_member_relationship.go | 2 +- model_macpool_pool_member_response.go | 2 +- model_macpool_pool_relationship.go | 2 +- model_macpool_pool_response.go | 2 +- model_macpool_reservation.go | 41 +- model_macpool_reservation_list.go | 22 +- model_macpool_reservation_reference.go | 39 +- model_macpool_reservation_relationship.go | 2 +- model_macpool_reservation_response.go | 2 +- model_macpool_universe.go | 39 +- model_macpool_universe_list.go | 22 +- model_macpool_universe_relationship.go | 2 +- model_macpool_universe_response.go | 2 +- model_management_controller.go | 45 +- model_management_controller_list.go | 22 +- model_management_controller_relationship.go | 2 +- model_management_controller_response.go | 2 +- model_management_entity.go | 39 +- model_management_entity_list.go | 22 +- model_management_entity_relationship.go | 2 +- model_management_entity_response.go | 2 +- model_management_interface.go | 39 +- model_management_interface_list.go | 22 +- model_management_interface_relationship.go | 2 +- model_management_interface_response.go | 2 +- model_marketplace_use_case.go | 43 +- model_marketplace_use_case_automation.go | 39 +- model_marketplace_use_case_dependency.go | 39 +- model_marketplace_use_case_list.go | 22 +- model_marketplace_use_case_locale.go | 45 +- model_marketplace_use_case_relationship.go | 2 +- model_marketplace_use_case_response.go | 2 +- model_marketplace_use_case_version.go | 43 +- model_marketplace_use_case_version_list.go | 22 +- model_marketplace_use_case_version_locale.go | 43 +- ...l_marketplace_use_case_version_resource.go | 39 +- ...l_marketplace_use_case_version_response.go | 2 +- model_memory_abstract_unit.go | 22 +- model_memory_array.go | 43 +- model_memory_array_list.go | 22 +- model_memory_array_relationship.go | 2 +- model_memory_array_response.go | 2 +- ..._memory_persistent_memory_config_result.go | 41 +- ...ry_persistent_memory_config_result_list.go | 22 +- ...stent_memory_config_result_relationship.go | 2 +- ...ersistent_memory_config_result_response.go | 2 +- ..._memory_persistent_memory_configuration.go | 41 +- ...ry_persistent_memory_configuration_list.go | 22 +- ...stent_memory_configuration_relationship.go | 2 +- ...ersistent_memory_configuration_response.go | 2 +- model_memory_persistent_memory_goal.go | 39 +- ...memory_persistent_memory_local_security.go | 43 +- ...ory_persistent_memory_logical_namespace.go | 43 +- model_memory_persistent_memory_namespace.go | 39 +- ...rsistent_memory_namespace_config_result.go | 39 +- ...ent_memory_namespace_config_result_list.go | 22 +- ...ry_namespace_config_result_relationship.go | 2 +- ...memory_namespace_config_result_response.go | 2 +- ...memory_persistent_memory_namespace_list.go | 22 +- ...ersistent_memory_namespace_relationship.go | 2 +- ...ry_persistent_memory_namespace_response.go | 2 +- model_memory_persistent_memory_policy.go | 45 +- model_memory_persistent_memory_policy_list.go | 22 +- ...emory_persistent_memory_policy_response.go | 2 +- model_memory_persistent_memory_region.go | 41 +- model_memory_persistent_memory_region_list.go | 22 +- ...y_persistent_memory_region_relationship.go | 2 +- ...emory_persistent_memory_region_response.go | 2 +- model_memory_persistent_memory_unit.go | 39 +- model_memory_persistent_memory_unit_list.go | 22 +- ...ory_persistent_memory_unit_relationship.go | 2 +- ..._memory_persistent_memory_unit_response.go | 2 +- model_memory_unit.go | 39 +- model_memory_unit_list.go | 22 +- model_memory_unit_relationship.go | 2 +- model_memory_unit_response.go | 2 +- model_meraki_device.go | 39 +- model_meraki_device_list.go | 22 +- model_meraki_device_relationship.go | 2 +- model_meraki_device_response.go | 2 +- model_meraki_network.go | 43 +- model_meraki_network_list.go | 22 +- model_meraki_network_relationship.go | 2 +- model_meraki_network_response.go | 2 +- model_meraki_organization.go | 39 +- model_meraki_organization_list.go | 22 +- model_meraki_organization_relationship.go | 2 +- model_meraki_organization_response.go | 2 +- model_meraki_port_profile.go | 39 +- model_meraki_port_profile_list.go | 22 +- model_meraki_port_profile_response.go | 2 +- model_meraki_tag.go | 39 +- model_meraki_tag_list.go | 22 +- model_meraki_tag_response.go | 2 +- model_meta_access_privilege.go | 39 +- model_meta_definition.go | 53 +- model_meta_definition_list.go | 22 +- model_meta_definition_response.go | 2 +- model_meta_display_name_definition.go | 39 +- model_meta_identity_definition.go | 41 +- model_meta_prop_definition.go | 41 +- model_meta_relationship_definition.go | 39 +- model_metrics_metric_criterion.go | 43 +- model_metrics_metrics_exploration.go | 47 +- model_metrics_metrics_exploration_list.go | 22 +- model_metrics_metrics_exploration_response.go | 2 +- model_mo_aggregate_transform.go | 22 +- model_mo_base_complex_type.go | 20 +- model_mo_base_mo.go | 30 +- model_mo_base_mo_relationship.go | 2 +- model_mo_base_response.go | 20 +- model_mo_document_count.go | 20 +- model_mo_mo_ref.go | 30 +- model_mo_tag.go | 2 +- model_mo_tag_key_summary.go | 2 +- model_mo_tag_summary.go | 4 +- model_mo_version_context.go | 41 +- model_monitoring_category_status.go | 43 +- model_monitoring_health_status.go | 41 +- model_monitoring_health_status_list.go | 22 +- model_monitoring_health_status_response.go | 2 +- model_motemplate_action_entry.go | 41 +- model_motemplate_action_param.go | 39 +- model_motemplate_sync_error.go | 39 +- model_network_discovered_neighbor.go | 41 +- model_network_discovered_neighbor_list.go | 22 +- ...etwork_discovered_neighbor_relationship.go | 2 +- model_network_discovered_neighbor_response.go | 2 +- model_network_dns.go | 43 +- model_network_dns_list.go | 22 +- model_network_dns_relationship.go | 2 +- model_network_dns_response.go | 2 +- model_network_element.go | 93 +- model_network_element_list.go | 22 +- model_network_element_relationship.go | 2 +- model_network_element_response.go | 2 +- model_network_element_summary.go | 84 +- model_network_element_summary_list.go | 22 +- model_network_element_summary_relationship.go | 2 +- model_network_element_summary_response.go | 2 +- model_network_fc_zone_info.go | 39 +- model_network_fc_zone_info_list.go | 22 +- model_network_fc_zone_info_relationship.go | 2 +- model_network_fc_zone_info_response.go | 2 +- model_network_feature_control.go | 39 +- model_network_feature_control_list.go | 22 +- model_network_feature_control_relationship.go | 2 +- model_network_feature_control_response.go | 2 +- ...er_flex_internet_protocol_address_range.go | 39 +- model_network_hyper_flex_network_address.go | 39 +- model_network_interface_list.go | 39 +- model_network_interface_list_list.go | 22 +- model_network_interface_list_relationship.go | 2 +- model_network_interface_list_response.go | 2 +- model_network_license_file.go | 39 +- model_network_license_file_list.go | 22 +- model_network_license_file_relationship.go | 2 +- model_network_license_file_response.go | 2 +- model_network_supervisor_card.go | 41 +- model_network_supervisor_card_list.go | 22 +- model_network_supervisor_card_relationship.go | 2 +- model_network_supervisor_card_response.go | 2 +- model_network_telemetry_check.go | 39 +- model_network_telemetry_check_list.go | 22 +- model_network_telemetry_check_response.go | 2 +- model_network_vethernet.go | 39 +- model_network_vethernet_list.go | 22 +- model_network_vethernet_relationship.go | 2 +- model_network_vethernet_response.go | 2 +- model_network_vfc.go | 39 +- model_network_vfc_list.go | 22 +- model_network_vfc_relationship.go | 2 +- model_network_vfc_response.go | 2 +- model_network_vlan_port_info.go | 39 +- model_network_vlan_port_info_list.go | 22 +- model_network_vlan_port_info_relationship.go | 2 +- model_network_vlan_port_info_response.go | 2 +- model_network_vpc_domain.go | 39 +- model_network_vpc_domain_list.go | 22 +- model_network_vpc_domain_relationship.go | 2 +- model_network_vpc_domain_response.go | 2 +- model_network_vpc_member.go | 39 +- model_network_vpc_member_list.go | 22 +- model_network_vpc_member_relationship.go | 2 +- model_network_vpc_member_response.go | 2 +- model_network_vpc_peer.go | 39 +- model_network_vpc_peer_list.go | 22 +- model_network_vpc_peer_relationship.go | 2 +- model_network_vpc_peer_response.go | 2 +- model_network_vrf.go | 39 +- model_network_vrf_list.go | 22 +- model_network_vrf_relationship.go | 2 +- model_network_vrf_response.go | 2 +- model_networkconfig_policy.go | 45 +- model_networkconfig_policy_inventory.go | 43 +- model_networkconfig_policy_inventory_list.go | 22 +- ...networkconfig_policy_inventory_response.go | 2 +- model_networkconfig_policy_list.go | 22 +- model_networkconfig_policy_response.go | 2 +- model_niaapi_apic_cco_post.go | 20 +- model_niaapi_apic_cco_post_list.go | 22 +- model_niaapi_apic_cco_post_response.go | 2 +- model_niaapi_apic_field_notice.go | 20 +- model_niaapi_apic_field_notice_list.go | 22 +- model_niaapi_apic_field_notice_response.go | 2 +- model_niaapi_apic_hweol.go | 20 +- model_niaapi_apic_hweol_list.go | 22 +- model_niaapi_apic_hweol_response.go | 2 +- ...l_niaapi_apic_latest_maintained_release.go | 20 +- ...api_apic_latest_maintained_release_list.go | 22 +- ...apic_latest_maintained_release_response.go | 2 +- model_niaapi_apic_release_recommend.go | 20 +- model_niaapi_apic_release_recommend_list.go | 22 +- ..._niaapi_apic_release_recommend_response.go | 2 +- model_niaapi_apic_sweol.go | 20 +- model_niaapi_apic_sweol_list.go | 22 +- model_niaapi_apic_sweol_response.go | 2 +- model_niaapi_dcnm_cco_post.go | 20 +- model_niaapi_dcnm_cco_post_list.go | 22 +- model_niaapi_dcnm_cco_post_response.go | 2 +- model_niaapi_dcnm_field_notice.go | 20 +- model_niaapi_dcnm_field_notice_list.go | 22 +- model_niaapi_dcnm_field_notice_response.go | 2 +- model_niaapi_dcnm_hweol.go | 20 +- model_niaapi_dcnm_hweol_list.go | 22 +- model_niaapi_dcnm_hweol_response.go | 2 +- ...l_niaapi_dcnm_latest_maintained_release.go | 20 +- ...api_dcnm_latest_maintained_release_list.go | 22 +- ...dcnm_latest_maintained_release_response.go | 2 +- model_niaapi_dcnm_release_recommend.go | 20 +- model_niaapi_dcnm_release_recommend_list.go | 22 +- ..._niaapi_dcnm_release_recommend_response.go | 2 +- model_niaapi_dcnm_sweol.go | 20 +- model_niaapi_dcnm_sweol_list.go | 22 +- model_niaapi_dcnm_sweol_response.go | 2 +- model_niaapi_detail.go | 39 +- model_niaapi_field_notice.go | 22 +- model_niaapi_file_downloader.go | 39 +- model_niaapi_file_downloader_list.go | 22 +- model_niaapi_file_downloader_response.go | 2 +- model_niaapi_hardware_eol.go | 20 +- model_niaapi_maintained_release.go | 20 +- model_niaapi_new_release_detail.go | 39 +- model_niaapi_new_release_post.go | 20 +- model_niaapi_nia_metadata.go | 41 +- model_niaapi_nia_metadata_list.go | 22 +- model_niaapi_nia_metadata_response.go | 2 +- model_niaapi_nib_file_downloader.go | 39 +- model_niaapi_nib_file_downloader_list.go | 22 +- model_niaapi_nib_file_downloader_response.go | 2 +- model_niaapi_nib_metadata.go | 41 +- model_niaapi_nib_metadata_list.go | 22 +- model_niaapi_nib_metadata_response.go | 2 +- model_niaapi_puv_script_downloader.go | 39 +- model_niaapi_puv_script_downloader_list.go | 22 +- ...l_niaapi_puv_script_downloader_response.go | 2 +- model_niaapi_release_recommend.go | 20 +- model_niaapi_revision_info.go | 39 +- model_niaapi_sn_validator_metadata.go | 39 +- model_niaapi_sn_validator_metadata_list.go | 22 +- ...l_niaapi_sn_validator_metadata_response.go | 2 +- model_niaapi_software_eol.go | 20 +- model_niaapi_software_regex.go | 39 +- model_niaapi_upgrade_assist_file.go | 39 +- model_niaapi_upgrade_assist_file_list.go | 22 +- model_niaapi_upgrade_assist_file_response.go | 2 +- model_niaapi_version_regex.go | 39 +- model_niaapi_version_regex_list.go | 22 +- model_niaapi_version_regex_platform.go | 41 +- model_niaapi_version_regex_response.go | 2 +- ..._niatelemetry_aaa_ldap_provider_details.go | 39 +- ...elemetry_aaa_ldap_provider_details_list.go | 22 +- ...etry_aaa_ldap_provider_details_response.go | 2 +- ...iatelemetry_aaa_radius_provider_details.go | 39 +- ...emetry_aaa_radius_provider_details_list.go | 22 +- ...ry_aaa_radius_provider_details_response.go | 2 +- ...iatelemetry_aaa_tacacs_provider_details.go | 39 +- ...emetry_aaa_tacacs_provider_details_list.go | 22 +- ...ry_aaa_tacacs_provider_details_response.go | 2 +- model_niatelemetry_apic_app_plugin_details.go | 39 +- ...atelemetry_apic_app_plugin_details_list.go | 22 +- ...emetry_apic_app_plugin_details_response.go | 2 +- model_niatelemetry_apic_core_file_details.go | 39 +- ...iatelemetry_apic_core_file_details_list.go | 22 +- ...lemetry_apic_core_file_details_response.go | 2 +- ...niatelemetry_apic_dbgexp_rs_export_dest.go | 39 +- ...lemetry_apic_dbgexp_rs_export_dest_list.go | 22 +- ...try_apic_dbgexp_rs_export_dest_response.go | 2 +- ...iatelemetry_apic_dbgexp_rs_ts_scheduler.go | 39 +- ...emetry_apic_dbgexp_rs_ts_scheduler_list.go | 22 +- ...ry_apic_dbgexp_rs_ts_scheduler_response.go | 2 +- model_niatelemetry_apic_fan_details.go | 39 +- model_niatelemetry_apic_fan_details_list.go | 22 +- ..._niatelemetry_apic_fan_details_response.go | 2 +- model_niatelemetry_apic_fex_details.go | 39 +- model_niatelemetry_apic_fex_details_list.go | 22 +- ..._niatelemetry_apic_fex_details_response.go | 2 +- model_niatelemetry_apic_flash_details.go | 39 +- model_niatelemetry_apic_flash_details_list.go | 22 +- ...iatelemetry_apic_flash_details_response.go | 2 +- model_niatelemetry_apic_ntp_auth.go | 39 +- model_niatelemetry_apic_ntp_auth_list.go | 22 +- model_niatelemetry_apic_ntp_auth_response.go | 2 +- model_niatelemetry_apic_performance_data.go | 43 +- ...niatelemetry_apic_performance_data_list.go | 22 +- ...elemetry_apic_performance_data_response.go | 2 +- model_niatelemetry_apic_pod_data.go | 39 +- model_niatelemetry_apic_pod_data_list.go | 22 +- model_niatelemetry_apic_pod_data_response.go | 2 +- model_niatelemetry_apic_psu_details.go | 39 +- model_niatelemetry_apic_psu_details_list.go | 22 +- ..._niatelemetry_apic_psu_details_response.go | 2 +- model_niatelemetry_apic_realm_details.go | 39 +- model_niatelemetry_apic_realm_details_list.go | 22 +- ...iatelemetry_apic_realm_details_response.go | 2 +- ...atelemetry_apic_snmp_client_grp_details.go | 39 +- ...metry_apic_snmp_client_grp_details_list.go | 22 +- ...y_apic_snmp_client_grp_details_response.go | 2 +- ...etry_apic_snmp_community_access_details.go | 39 +- ...apic_snmp_community_access_details_list.go | 22 +- ..._snmp_community_access_details_response.go | 2 +- ...iatelemetry_apic_snmp_community_details.go | 39 +- ...emetry_apic_snmp_community_details_list.go | 22 +- ...ry_apic_snmp_community_details_response.go | 2 +- model_niatelemetry_apic_snmp_trap_details.go | 39 +- ...iatelemetry_apic_snmp_trap_details_list.go | 22 +- ...lemetry_apic_snmp_trap_details_response.go | 2 +- ...metry_apic_snmp_trap_fwd_server_details.go | 39 +- ..._apic_snmp_trap_fwd_server_details_list.go | 22 +- ...c_snmp_trap_fwd_server_details_response.go | 2 +- ...lemetry_apic_snmp_version_three_details.go | 39 +- ...ry_apic_snmp_version_three_details_list.go | 22 +- ...pic_snmp_version_three_details_response.go | 2 +- model_niatelemetry_apic_sys_log_grp.go | 39 +- model_niatelemetry_apic_sys_log_grp_list.go | 22 +- ..._niatelemetry_apic_sys_log_grp_response.go | 2 +- model_niatelemetry_apic_sys_log_src.go | 39 +- model_niatelemetry_apic_sys_log_src_list.go | 22 +- ..._niatelemetry_apic_sys_log_src_response.go | 2 +- ...l_niatelemetry_apic_transceiver_details.go | 39 +- ...telemetry_apic_transceiver_details_list.go | 22 +- ...metry_apic_transceiver_details_response.go | 2 +- model_niatelemetry_apic_ui_page_counts.go | 39 +- ...l_niatelemetry_apic_ui_page_counts_list.go | 22 +- ...atelemetry_apic_ui_page_counts_response.go | 2 +- model_niatelemetry_apic_vision.go | 39 +- model_niatelemetry_apic_vision_list.go | 22 +- model_niatelemetry_apic_vision_response.go | 2 +- model_niatelemetry_app_details.go | 39 +- model_niatelemetry_app_details_list.go | 22 +- model_niatelemetry_app_details_response.go | 2 +- model_niatelemetry_bootflash_details.go | 39 +- model_niatelemetry_cloud_details.go | 41 +- model_niatelemetry_cloud_details_list.go | 22 +- model_niatelemetry_cloud_details_response.go | 2 +- model_niatelemetry_cloud_regions_element.go | 39 +- model_niatelemetry_cloud_routers_element.go | 39 +- model_niatelemetry_common_policies.go | 39 +- model_niatelemetry_common_policies_list.go | 22 +- ...l_niatelemetry_common_policies_response.go | 2 +- model_niatelemetry_dcnm_fan_details.go | 39 +- model_niatelemetry_dcnm_fan_details_list.go | 22 +- ..._niatelemetry_dcnm_fan_details_response.go | 2 +- model_niatelemetry_dcnm_fex_details.go | 39 +- model_niatelemetry_dcnm_fex_details_list.go | 22 +- ..._niatelemetry_dcnm_fex_details_response.go | 2 +- model_niatelemetry_dcnm_module_details.go | 39 +- ...l_niatelemetry_dcnm_module_details_list.go | 22 +- ...atelemetry_dcnm_module_details_response.go | 2 +- model_niatelemetry_dcnm_psu_details.go | 39 +- model_niatelemetry_dcnm_psu_details_list.go | 22 +- ..._niatelemetry_dcnm_psu_details_response.go | 2 +- ...l_niatelemetry_dcnm_transceiver_details.go | 39 +- ...telemetry_dcnm_transceiver_details_list.go | 22 +- ...metry_dcnm_transceiver_details_response.go | 2 +- model_niatelemetry_deployment_status.go | 39 +- ...niatelemetry_digital_optical_monitoring.go | 39 +- model_niatelemetry_diskinfo.go | 39 +- model_niatelemetry_epg.go | 39 +- model_niatelemetry_epg_list.go | 22 +- model_niatelemetry_epg_response.go | 2 +- model_niatelemetry_eqpt_storage_firmware.go | 39 +- ...niatelemetry_eqptcapacity_pol_usage5min.go | 39 +- ...emetry_eqptcapacity_prefix_entries15min.go | 39 +- ...lemetry_eqptcapacity_prefix_entries5min.go | 39 +- model_niatelemetry_fabric_module_details.go | 39 +- ...niatelemetry_fabric_module_details_list.go | 22 +- ...elemetry_fabric_module_details_response.go | 2 +- ...iatelemetry_fabric_node_control_details.go | 39 +- ...emetry_fabric_node_control_details_list.go | 22 +- ...ry_fabric_node_control_details_response.go | 2 +- model_niatelemetry_fabric_pod_profile.go | 39 +- model_niatelemetry_fabric_pod_profile_list.go | 22 +- ...iatelemetry_fabric_pod_profile_response.go | 2 +- model_niatelemetry_fabric_pod_ss.go | 39 +- model_niatelemetry_fabric_pod_ss_list.go | 22 +- model_niatelemetry_fabric_pod_ss_response.go | 2 +- model_niatelemetry_fan_details.go | 39 +- model_niatelemetry_fault.go | 39 +- model_niatelemetry_fault_list.go | 22 +- model_niatelemetry_fault_response.go | 2 +- model_niatelemetry_hcloud_details.go | 41 +- model_niatelemetry_hcloud_details_list.go | 22 +- model_niatelemetry_hcloud_details_response.go | 2 +- model_niatelemetry_health_insights_data.go | 39 +- ..._niatelemetry_health_insights_data_list.go | 22 +- ...telemetry_health_insights_data_response.go | 2 +- ...niatelemetry_https_acl_contract_details.go | 39 +- ...lemetry_https_acl_contract_details_list.go | 22 +- ...try_https_acl_contract_details_response.go | 2 +- ...telemetry_https_acl_contract_filter_map.go | 39 +- ...etry_https_acl_contract_filter_map_list.go | 22 +- ..._https_acl_contract_filter_map_response.go | 2 +- ...niatelemetry_https_acl_epg_contract_map.go | 39 +- ...lemetry_https_acl_epg_contract_map_list.go | 22 +- ...try_https_acl_epg_contract_map_response.go | 2 +- model_niatelemetry_https_acl_epg_details.go | 39 +- ...niatelemetry_https_acl_epg_details_list.go | 22 +- ...elemetry_https_acl_epg_details_response.go | 2 +- ...l_niatelemetry_https_acl_filter_details.go | 39 +- ...telemetry_https_acl_filter_details_list.go | 22 +- ...metry_https_acl_filter_details_response.go | 2 +- model_niatelemetry_image_detail.go | 39 +- model_niatelemetry_insight_group_details.go | 41 +- ...niatelemetry_insight_group_details_list.go | 22 +- ...elemetry_insight_group_details_response.go | 2 +- model_niatelemetry_interface.go | 39 +- model_niatelemetry_interface_element.go | 39 +- model_niatelemetry_job_detail.go | 39 +- model_niatelemetry_lc.go | 39 +- model_niatelemetry_lc_list.go | 22 +- model_niatelemetry_lc_response.go | 2 +- model_niatelemetry_leaf_pol_grp_details.go | 39 +- ..._niatelemetry_leaf_pol_grp_details_list.go | 22 +- ...telemetry_leaf_pol_grp_details_response.go | 2 +- model_niatelemetry_logical_link.go | 39 +- model_niatelemetry_mds_neighbor_info.go | 39 +- model_niatelemetry_mds_neighbors.go | 41 +- model_niatelemetry_mds_neighbors_list.go | 22 +- model_niatelemetry_mds_neighbors_response.go | 2 +- model_niatelemetry_mso_contract_details.go | 39 +- ..._niatelemetry_mso_contract_details_list.go | 22 +- ...telemetry_mso_contract_details_response.go | 2 +- model_niatelemetry_mso_epg_details.go | 39 +- model_niatelemetry_mso_epg_details_list.go | 22 +- ...l_niatelemetry_mso_epg_details_response.go | 2 +- model_niatelemetry_mso_schema_details.go | 39 +- model_niatelemetry_mso_schema_details_list.go | 22 +- ...iatelemetry_mso_schema_details_response.go | 2 +- model_niatelemetry_mso_site_details.go | 39 +- model_niatelemetry_mso_site_details_list.go | 22 +- ..._niatelemetry_mso_site_details_response.go | 2 +- model_niatelemetry_mso_tenant_details.go | 39 +- model_niatelemetry_mso_tenant_details_list.go | 22 +- ...iatelemetry_mso_tenant_details_response.go | 2 +- model_niatelemetry_network_info.go | 39 +- model_niatelemetry_nexus_cloud_account.go | 39 +- ...l_niatelemetry_nexus_cloud_account_list.go | 22 +- ...emetry_nexus_cloud_account_relationship.go | 2 +- ...atelemetry_nexus_cloud_account_response.go | 2 +- model_niatelemetry_nexus_cloud_site.go | 39 +- model_niatelemetry_nexus_cloud_site_list.go | 22 +- ..._niatelemetry_nexus_cloud_site_response.go | 2 +- ...etry_nexus_dashboard_controller_details.go | 39 +- ...nexus_dashboard_controller_details_list.go | 22 +- ...s_dashboard_controller_details_response.go | 2 +- model_niatelemetry_nexus_dashboard_details.go | 39 +- ...atelemetry_nexus_dashboard_details_list.go | 22 +- ...emetry_nexus_dashboard_details_response.go | 2 +- ...elemetry_nexus_dashboard_memory_details.go | 39 +- ...try_nexus_dashboard_memory_details_list.go | 22 +- ...nexus_dashboard_memory_details_response.go | 2 +- model_niatelemetry_nexus_dashboards.go | 41 +- model_niatelemetry_nexus_dashboards_list.go | 22 +- ...telemetry_nexus_dashboards_relationship.go | 2 +- ..._niatelemetry_nexus_dashboards_response.go | 2 +- model_niatelemetry_nia_feature_usage.go | 39 +- model_niatelemetry_nia_feature_usage_list.go | 22 +- ...niatelemetry_nia_feature_usage_response.go | 2 +- model_niatelemetry_nia_inventory.go | 45 +- model_niatelemetry_nia_inventory_dcnm.go | 43 +- model_niatelemetry_nia_inventory_dcnm_list.go | 22 +- ...iatelemetry_nia_inventory_dcnm_response.go | 2 +- model_niatelemetry_nia_inventory_fabric.go | 47 +- ..._niatelemetry_nia_inventory_fabric_list.go | 22 +- ...telemetry_nia_inventory_fabric_response.go | 2 +- model_niatelemetry_nia_inventory_list.go | 22 +- ...niatelemetry_nia_inventory_relationship.go | 2 +- model_niatelemetry_nia_inventory_response.go | 2 +- model_niatelemetry_nia_license_state.go | 39 +- model_niatelemetry_nia_license_state_list.go | 22 +- ...elemetry_nia_license_state_relationship.go | 2 +- ...niatelemetry_nia_license_state_response.go | 2 +- model_niatelemetry_nicc.go | 39 +- model_niatelemetry_nicc_list.go | 22 +- model_niatelemetry_nicc_response.go | 2 +- model_niatelemetry_node.go | 39 +- model_niatelemetry_nve_packet_counters.go | 39 +- model_niatelemetry_nve_vni.go | 39 +- model_niatelemetry_nxos_bgp_evpn.go | 39 +- model_niatelemetry_nxos_bgp_mvpn.go | 39 +- model_niatelemetry_nxos_vtp.go | 39 +- model_niatelemetry_password_strength_check.go | 39 +- ...atelemetry_password_strength_check_list.go | 22 +- ...emetry_password_strength_check_response.go | 2 +- model_niatelemetry_pod_comm_policies.go | 39 +- model_niatelemetry_pod_comm_policies_list.go | 22 +- ...niatelemetry_pod_comm_policies_response.go | 2 +- model_niatelemetry_pod_snmp_policies.go | 39 +- model_niatelemetry_pod_snmp_policies_list.go | 22 +- ...niatelemetry_pod_snmp_policies_response.go | 2 +- ...l_niatelemetry_pod_time_server_policies.go | 39 +- ...telemetry_pod_time_server_policies_list.go | 22 +- ...metry_pod_time_server_policies_response.go | 2 +- model_niatelemetry_proc_sys_cpu15min.go | 39 +- model_niatelemetry_proc_sys_cpu5min.go | 39 +- model_niatelemetry_proc_sys_mem15min.go | 39 +- model_niatelemetry_proc_sys_mem5min.go | 39 +- model_niatelemetry_site_inventory.go | 43 +- model_niatelemetry_site_inventory_list.go | 22 +- model_niatelemetry_site_inventory_response.go | 2 +- model_niatelemetry_sites.go | 39 +- model_niatelemetry_smart_license.go | 39 +- model_niatelemetry_snmp_src.go | 39 +- model_niatelemetry_snmp_src_list.go | 22 +- model_niatelemetry_snmp_src_response.go | 2 +- model_niatelemetry_spine_pol_grp_details.go | 39 +- ...niatelemetry_spine_pol_grp_details_list.go | 22 +- ...elemetry_spine_pol_grp_details_response.go | 2 +- model_niatelemetry_ssh_version_two.go | 39 +- model_niatelemetry_ssh_version_two_list.go | 22 +- ...l_niatelemetry_ssh_version_two_response.go | 2 +- ..._niatelemetry_supervisor_module_details.go | 39 +- ...elemetry_supervisor_module_details_list.go | 22 +- ...etry_supervisor_module_details_response.go | 2 +- model_niatelemetry_switch_disk_utilization.go | 39 +- model_niatelemetry_syslog_remote_dest.go | 39 +- model_niatelemetry_syslog_remote_dest_list.go | 22 +- ...iatelemetry_syslog_remote_dest_response.go | 2 +- model_niatelemetry_syslog_sys_msg.go | 39 +- ..._niatelemetry_syslog_sys_msg_fac_filter.go | 39 +- ...elemetry_syslog_sys_msg_fac_filter_list.go | 22 +- ...etry_syslog_sys_msg_fac_filter_response.go | 2 +- model_niatelemetry_syslog_sys_msg_list.go | 22 +- model_niatelemetry_syslog_sys_msg_response.go | 2 +- ..._niatelemetry_system_controller_details.go | 39 +- ...elemetry_system_controller_details_list.go | 22 +- ...etry_system_controller_details_response.go | 2 +- model_niatelemetry_tenant.go | 39 +- model_niatelemetry_tenant_list.go | 22 +- model_niatelemetry_tenant_response.go | 2 +- model_niatelemetry_vni_status.go | 39 +- model_niatelemetry_vpc_details.go | 39 +- model_notification_abstract_condition.go | 20 +- model_notification_abstract_mo_condition.go | 22 +- model_notification_account_subscription.go | 43 +- ..._notification_account_subscription_list.go | 22 +- ...ification_account_subscription_response.go | 2 +- model_notification_action.go | 20 +- model_notification_aggregation_settings.go | 39 +- model_notification_alarm_mo_condition.go | 41 +- ...notification_distributable_mo_condition.go | 39 +- model_notification_mo_condition.go | 39 +- model_notification_send_email.go | 39 +- ...tion_software_release_meta_mo_condition.go | 41 +- model_notification_subscription.go | 43 +- model_notification_trigger_webhook.go | 43 +- model_ntp_auth_ntp_server.go | 39 +- model_ntp_ntp_server.go | 39 +- model_ntp_ntp_server_list.go | 22 +- model_ntp_ntp_server_relationship.go | 2 +- model_ntp_ntp_server_response.go | 2 +- model_ntp_policy.go | 45 +- model_ntp_policy_list.go | 22 +- model_ntp_policy_response.go | 2 +- model_oauth_access_token.go | 39 +- model_oauth_access_token_list.go | 22 +- model_oauth_access_token_relationship.go | 2 +- model_oauth_access_token_response.go | 2 +- model_oauth_authorization.go | 39 +- model_oauth_authorization_list.go | 22 +- model_oauth_authorization_response.go | 2 +- model_onprem_cluster_info.go | 41 +- model_onprem_cluster_node.go | 45 +- model_onprem_image_package.go | 39 +- model_onprem_resource_info.go | 39 +- model_onprem_schedule.go | 39 +- model_onprem_upgrade_note.go | 39 +- model_onprem_upgrade_phase.go | 39 +- model_openapi_api_info.go | 39 +- model_openapi_api_method_meta.go | 39 +- model_openapi_api_method_meta_list.go | 22 +- model_openapi_api_method_meta_response.go | 2 +- model_openapi_failed_task.go | 39 +- model_openapi_key_value_pair.go | 39 +- model_openapi_open_api_specification.go | 39 +- model_openapi_open_api_specification_list.go | 22 +- ...api_open_api_specification_relationship.go | 2 +- ...openapi_open_api_specification_response.go | 2 +- model_openapi_process_file.go | 39 +- model_openapi_process_file_list.go | 22 +- model_openapi_process_file_relationship.go | 2 +- model_openapi_process_file_response.go | 2 +- model_openapi_task_generation_request.go | 49 +- model_openapi_task_generation_request_list.go | 22 +- ...pi_task_generation_request_relationship.go | 2 +- ...penapi_task_generation_request_response.go | 2 +- model_openapi_task_generation_result.go | 39 +- model_openapi_task_generation_result_list.go | 22 +- ...openapi_task_generation_result_response.go | 2 +- model_oprs_deployment.go | 41 +- model_oprs_deployment_list.go | 22 +- model_oprs_deployment_response.go | 2 +- model_oprs_kvpair.go | 39 +- model_oprs_sync_target_list_message.go | 41 +- model_oprs_sync_target_list_message_list.go | 22 +- ..._oprs_sync_target_list_message_response.go | 2 +- model_organization_organization.go | 47 +- model_organization_organization_list.go | 22 +- ..._organization_organization_relationship.go | 2 +- model_organization_organization_response.go | 2 +- model_os_answers.go | 41 +- model_os_base_install_config.go | 41 +- model_os_bulk_install_info.go | 45 +- model_os_bulk_install_info_list.go | 22 +- model_os_bulk_install_info_response.go | 2 +- model_os_catalog.go | 43 +- model_os_catalog_list.go | 22 +- model_os_catalog_relationship.go | 2 +- model_os_catalog_response.go | 2 +- model_os_configuration_file.go | 47 +- model_os_configuration_file_list.go | 22 +- model_os_configuration_file_relationship.go | 2 +- model_os_configuration_file_response.go | 2 +- model_os_distribution.go | 41 +- model_os_distribution_list.go | 22 +- model_os_distribution_relationship.go | 2 +- model_os_distribution_response.go | 2 +- model_os_fibre_channel_target.go | 47 +- model_os_global_config.go | 43 +- model_os_install.go | 39 +- model_os_install_list.go | 22 +- model_os_install_response.go | 2 +- model_os_install_target.go | 20 +- model_os_install_target_response.go | 20 +- model_os_ip_configuration.go | 20 +- model_os_ipv4_configuration.go | 39 +- model_os_ipv6_configuration.go | 39 +- model_os_iscsi_target.go | 47 +- model_os_operating_system_parameters.go | 20 +- model_os_os_support.go | 39 +- model_os_physical_disk.go | 39 +- model_os_physical_disk_response.go | 39 +- model_os_place_holder.go | 43 +- model_os_san_target.go | 20 +- model_os_server_config.go | 55 +- model_os_supported_version.go | 39 +- model_os_supported_version_list.go | 22 +- model_os_supported_version_response.go | 2 +- model_os_template_file.go | 41 +- model_os_valid_install_target.go | 59 +- model_os_validation_information.go | 39 +- model_os_virtual_drive.go | 39 +- model_os_virtual_drive_response.go | 39 +- model_os_vmware_parameters.go | 39 +- model_os_windows_parameters.go | 39 +- model_partnerintegration_dc_logs.go | 43 +- model_partnerintegration_dc_logs_list.go | 22 +- ...partnerintegration_dc_logs_relationship.go | 2 +- model_partnerintegration_dc_logs_response.go | 2 +- model_partnerintegration_device_connector.go | 45 +- ...artnerintegration_device_connector_list.go | 22 +- ...tegration_device_connector_relationship.go | 2 +- ...erintegration_device_connector_response.go | 2 +- model_partnerintegration_doc_issues.go | 41 +- model_partnerintegration_doc_issues_list.go | 22 +- ...tnerintegration_doc_issues_relationship.go | 2 +- ..._partnerintegration_doc_issues_response.go | 2 +- model_partnerintegration_etl.go | 45 +- model_partnerintegration_etl_list.go | 22 +- model_partnerintegration_etl_relationship.go | 2 +- model_partnerintegration_etl_response.go | 2 +- model_partnerintegration_file.go | 39 +- model_partnerintegration_file_list.go | 22 +- model_partnerintegration_file_response.go | 2 +- model_partnerintegration_inventory.go | 51 +- model_partnerintegration_inventory_list.go | 22 +- ...rtnerintegration_inventory_relationship.go | 2 +- ...l_partnerintegration_inventory_response.go | 2 +- model_partnerintegration_logs.go | 43 +- model_partnerintegration_logs_list.go | 22 +- model_partnerintegration_logs_relationship.go | 2 +- model_partnerintegration_logs_response.go | 2 +- model_partnerintegration_metrics.go | 43 +- model_partnerintegration_metrics_list.go | 22 +- model_partnerintegration_metrics_model.go | 49 +- ...partnerintegration_metrics_relationship.go | 2 +- model_partnerintegration_metrics_response.go | 2 +- model_partnerintegration_model.go | 45 +- model_partnerintegration_model_list.go | 22 +- ...l_partnerintegration_model_relationship.go | 2 +- model_partnerintegration_model_response.go | 2 +- model_patch_document.go | 20 +- model_pci_coprocessor_card.go | 39 +- model_pci_coprocessor_card_list.go | 22 +- model_pci_coprocessor_card_relationship.go | 2 +- model_pci_coprocessor_card_response.go | 2 +- model_pci_device.go | 41 +- model_pci_device_list.go | 22 +- model_pci_device_relationship.go | 2 +- model_pci_device_response.go | 2 +- model_pci_link.go | 39 +- model_pci_link_list.go | 22 +- model_pci_link_relationship.go | 2 +- model_pci_link_response.go | 2 +- model_pci_node.go | 43 +- model_pci_node_list.go | 22 +- model_pci_node_relationship.go | 2 +- model_pci_node_response.go | 2 +- model_pci_switch.go | 43 +- model_pci_switch_list.go | 22 +- model_pci_switch_relationship.go | 2 +- model_pci_switch_response.go | 2 +- model_pkix_distinguished_name.go | 49 +- model_pkix_ecdsa_key_spec.go | 39 +- model_pkix_eddsa_key_spec.go | 39 +- model_pkix_key_generation_spec.go | 20 +- model_pkix_rsa_algorithm.go | 39 +- model_pkix_subject_alternate_name.go | 47 +- model_policy_abstract_config_change_detail.go | 24 +- model_policy_abstract_config_profile.go | 26 +- ...cy_abstract_config_profile_relationship.go | 2 +- model_policy_abstract_config_result.go | 22 +- model_policy_abstract_config_result_entry.go | 20 +- model_policy_abstract_configuration_object.go | 20 +- model_policy_abstract_disruption.go | 39 +- model_policy_abstract_inventory.go | 20 +- model_policy_abstract_policy.go | 28 +- model_policy_abstract_policy_inventory.go | 28 +- model_policy_abstract_policy_item.go | 20 +- model_policy_abstract_policy_relationship.go | 2 +- model_policy_abstract_profile.go | 28 +- model_policy_abstract_profile_relationship.go | 2 +- model_policy_action_param.go | 39 +- model_policy_action_qualifier.go | 20 +- model_policy_config_change.go | 45 +- model_policy_config_change_context.go | 39 +- ...cy_config_change_disruption_detail_type.go | 41 +- model_policy_config_context.go | 41 +- model_policy_config_result_context.go | 41 +- model_policy_policy_error.go | 39 +- model_policy_policy_status.go | 41 +- model_policy_qualifier.go | 20 +- model_policy_scheduled_action.go | 39 +- model_policyinventory_abstract_device_info.go | 41 +- model_policyinventory_job_info.go | 39 +- model_pool_abstract_block.go | 20 +- model_pool_abstract_block_lease.go | 39 +- model_pool_abstract_block_type.go | 20 +- model_pool_abstract_id_pool_member.go | 20 +- model_pool_abstract_lease.go | 20 +- model_pool_abstract_pool.go | 20 +- model_pool_abstract_pool_member.go | 20 +- model_pool_reservation.go | 20 +- model_pool_reservation_reference.go | 20 +- model_port_group.go | 45 +- model_port_group_list.go | 22 +- model_port_group_relationship.go | 2 +- model_port_group_response.go | 2 +- model_port_interface_base.go | 20 +- model_port_interface_base_relationship.go | 2 +- model_port_mac_binding.go | 39 +- model_port_mac_binding_list.go | 22 +- model_port_mac_binding_relationship.go | 2 +- model_port_mac_binding_response.go | 2 +- model_port_physical.go | 20 +- model_port_sub_group.go | 45 +- model_port_sub_group_list.go | 22 +- model_port_sub_group_relationship.go | 2 +- model_port_sub_group_response.go | 2 +- model_power_control_state.go | 39 +- model_power_control_state_list.go | 22 +- model_power_control_state_relationship.go | 2 +- model_power_control_state_response.go | 2 +- model_power_policy.go | 41 +- model_power_policy_inventory.go | 39 +- model_power_policy_inventory_list.go | 22 +- model_power_policy_inventory_response.go | 2 +- model_power_policy_list.go | 22 +- model_power_policy_response.go | 2 +- model_processor_unit.go | 41 +- model_processor_unit_list.go | 22 +- model_processor_unit_relationship.go | 2 +- model_processor_unit_response.go | 2 +- model_rack_unit_personality.go | 39 +- model_rack_unit_personality_list.go | 22 +- model_rack_unit_personality_relationship.go | 2 +- model_rack_unit_personality_response.go | 2 +- model_recommendation_abstract_item.go | 20 +- model_recommendation_base.go | 20 +- model_recommendation_capacity_runway.go | 41 +- model_recommendation_capacity_runway_list.go | 22 +- ...mmendation_capacity_runway_relationship.go | 2 +- ...recommendation_capacity_runway_response.go | 2 +- model_recommendation_cluster_expansion.go | 43 +- ...l_recommendation_cluster_expansion_list.go | 22 +- ...endation_cluster_expansion_relationship.go | 2 +- ...commendation_cluster_expansion_response.go | 2 +- model_recommendation_expansion_request.go | 39 +- ...commendation_hardware_expansion_request.go | 41 +- ...ndation_hardware_expansion_request_item.go | 39 +- ...on_hardware_expansion_request_item_list.go | 22 +- ...are_expansion_request_item_relationship.go | 2 +- ...ardware_expansion_request_item_response.go | 2 +- ...ndation_hardware_expansion_request_list.go | 22 +- ...hardware_expansion_request_relationship.go | 2 +- ...ion_hardware_expansion_request_response.go | 2 +- model_recommendation_physical_item.go | 41 +- model_recommendation_physical_item_list.go | 22 +- ...commendation_physical_item_relationship.go | 2 +- ...l_recommendation_physical_item_response.go | 2 +- ..._recommendation_purchase_order_estimate.go | 39 +- ...mmendation_purchase_order_estimate_list.go | 22 +- ...dation_purchase_order_estimate_response.go | 2 +- model_recommendation_purchase_order_list.go | 39 +- ...recommendation_purchase_order_list_list.go | 22 +- ...mmendation_purchase_order_list_response.go | 2 +- model_recommendation_software_item.go | 39 +- model_recommendation_software_item_list.go | 22 +- ...commendation_software_item_relationship.go | 2 +- ...l_recommendation_software_item_response.go | 2 +- model_recovery_abstract_backup_config.go | 20 +- model_recovery_abstract_backup_info.go | 39 +- ...overy_abstract_backup_info_relationship.go | 2 +- model_recovery_backup_config_policy.go | 41 +- model_recovery_backup_config_policy_list.go | 22 +- ...overy_backup_config_policy_relationship.go | 2 +- ..._recovery_backup_config_policy_response.go | 2 +- model_recovery_backup_profile.go | 39 +- model_recovery_backup_profile_list.go | 22 +- model_recovery_backup_profile_relationship.go | 2 +- model_recovery_backup_profile_response.go | 2 +- model_recovery_backup_schedule.go | 39 +- model_recovery_config_params.go | 20 +- model_recovery_config_result.go | 41 +- model_recovery_config_result_entry.go | 39 +- model_recovery_config_result_entry_list.go | 22 +- ...covery_config_result_entry_relationship.go | 2 +- ...l_recovery_config_result_entry_response.go | 2 +- model_recovery_config_result_list.go | 22 +- model_recovery_config_result_relationship.go | 2 +- model_recovery_config_result_response.go | 2 +- model_recovery_on_demand_backup.go | 39 +- model_recovery_on_demand_backup_list.go | 22 +- model_recovery_on_demand_backup_response.go | 2 +- model_recovery_restore.go | 39 +- model_recovery_restore_list.go | 22 +- model_recovery_restore_response.go | 2 +- model_recovery_schedule_config_policy.go | 41 +- model_recovery_schedule_config_policy_list.go | 22 +- ...ery_schedule_config_policy_relationship.go | 2 +- ...ecovery_schedule_config_policy_response.go | 2 +- model_resource_abstract_reservation.go | 20 +- model_resource_group.go | 49 +- model_resource_group_list.go | 22 +- model_resource_group_member.go | 39 +- model_resource_group_member_list.go | 22 +- model_resource_group_member_response.go | 2 +- model_resource_group_relationship.go | 2 +- model_resource_group_response.go | 2 +- model_resource_license_resource_count.go | 41 +- model_resource_license_resource_count_list.go | 22 +- ...esource_license_resource_count_response.go | 2 +- model_resource_membership.go | 43 +- model_resource_membership_holder.go | 39 +- model_resource_membership_holder_list.go | 22 +- ...resource_membership_holder_relationship.go | 2 +- model_resource_membership_holder_response.go | 2 +- model_resource_membership_list.go | 22 +- model_resource_membership_response.go | 2 +- model_resource_per_type_combined_selector.go | 39 +- model_resource_reservation.go | 45 +- model_resource_reservation_list.go | 22 +- model_resource_reservation_relationship.go | 2 +- model_resource_reservation_response.go | 2 +- model_resource_selection_criteria.go | 51 +- model_resource_selection_criteria_list.go | 22 +- model_resource_selection_criteria_response.go | 2 +- model_resource_selector.go | 43 +- ...l_resource_shared_resources_info_holder.go | 41 +- ...ource_shared_resources_info_holder_list.go | 22 +- ...e_shared_resources_info_holder_response.go | 2 +- ...resource_source_to_permission_resources.go | 41 +- ...e_source_to_permission_resources_holder.go | 41 +- model_resourcepool_lease.go | 41 +- model_resourcepool_lease_list.go | 22 +- model_resourcepool_lease_parameters.go | 20 +- model_resourcepool_lease_relationship.go | 2 +- model_resourcepool_lease_resource.go | 39 +- model_resourcepool_lease_resource_list.go | 22 +- ...esourcepool_lease_resource_relationship.go | 2 +- model_resourcepool_lease_resource_response.go | 2 +- model_resourcepool_lease_response.go | 2 +- model_resourcepool_membership_reservation.go | 41 +- ...esourcepool_membership_reservation_list.go | 22 +- ...rcepool_membership_reservation_response.go | 2 +- model_resourcepool_pool.go | 41 +- model_resourcepool_pool_list.go | 22 +- model_resourcepool_pool_member.go | 43 +- model_resourcepool_pool_member_list.go | 22 +- ...l_resourcepool_pool_member_relationship.go | 2 +- model_resourcepool_pool_member_response.go | 2 +- model_resourcepool_pool_relationship.go | 2 +- model_resourcepool_pool_response.go | 2 +- ...l_resourcepool_resource_pool_parameters.go | 20 +- model_resourcepool_server_lease_parameters.go | 41 +- model_resourcepool_server_pool_parameters.go | 39 +- model_resourcepool_universe.go | 39 +- model_resourcepool_universe_list.go | 22 +- model_resourcepool_universe_relationship.go | 2 +- model_resourcepool_universe_response.go | 2 +- model_rproxy_reverse_proxy.go | 39 +- model_scheduler_abstract_scheduling_params.go | 20 +- model_scheduler_abstract_task_request.go | 20 +- model_scheduler_base_cadence_params.go | 20 +- ...l_scheduler_base_monthly_cadence_params.go | 22 +- model_scheduler_base_schedule_params.go | 20 +- model_scheduler_daily_cadence_params.go | 39 +- model_scheduler_every_cadence_params.go | 39 +- model_scheduler_monthly_cadence_params.go | 20 +- model_scheduler_monthly_week_day_format.go | 22 +- model_scheduler_one_time_schedule_params.go | 20 +- model_scheduler_recurring_schedule_params.go | 20 +- model_scheduler_rest_stim_task_request.go | 45 +- model_scheduler_task_result.go | 39 +- model_scheduler_task_result_list.go | 22 +- model_scheduler_task_result_response.go | 2 +- model_scheduler_task_result_status.go | 39 +- model_scheduler_task_schedule.go | 39 +- model_scheduler_task_schedule_list.go | 22 +- model_scheduler_task_schedule_relationship.go | 2 +- model_scheduler_task_schedule_response.go | 2 +- model_scheduler_task_schedule_status.go | 39 +- model_scheduler_weekly_cadence_params.go | 41 +- model_scheduler_yearly_cadence_params.go | 41 +- model_sdaaci_connection.go | 43 +- model_sdaaci_connection_detail.go | 43 +- model_sdaaci_connection_detail_list.go | 22 +- model_sdaaci_connection_detail_response.go | 2 +- model_sdaaci_connection_list.go | 22 +- model_sdaaci_connection_relationship.go | 2 +- model_sdaaci_connection_response.go | 2 +- model_sdcard_diagnostics.go | 20 +- model_sdcard_drivers.go | 20 +- model_sdcard_host_upgrade_utility.go | 20 +- model_sdcard_operating_system.go | 39 +- model_sdcard_partition.go | 41 +- model_sdcard_policy.go | 43 +- model_sdcard_policy_inventory.go | 41 +- model_sdcard_policy_inventory_list.go | 22 +- model_sdcard_policy_inventory_response.go | 2 +- model_sdcard_policy_list.go | 22 +- model_sdcard_policy_response.go | 2 +- model_sdcard_server_configuration_utility.go | 20 +- model_sdcard_user_partition.go | 39 +- model_sdcard_virtual_drive.go | 20 +- model_search_search_item.go | 20 +- model_search_search_item_list.go | 22 +- model_search_search_item_response.go | 2 +- model_search_suggest_item.go | 2 +- model_search_suggest_item_list.go | 20 +- model_search_suggest_item_response.go | 2 +- model_search_tag_item.go | 41 +- model_search_tag_item_list.go | 22 +- model_search_tag_item_response.go | 2 +- model_security_unit.go | 39 +- model_security_unit_list.go | 22 +- model_security_unit_relationship.go | 2 +- model_security_unit_response.go | 2 +- model_server_base_profile.go | 20 +- model_server_base_profile_relationship.go | 2 +- model_server_config_change_detail.go | 39 +- model_server_config_change_detail_list.go | 22 +- ...erver_config_change_detail_relationship.go | 2 +- model_server_config_change_detail_response.go | 2 +- model_server_config_import.go | 49 +- model_server_config_import_list.go | 22 +- model_server_config_import_response.go | 2 +- model_server_config_result.go | 41 +- model_server_config_result_entry.go | 39 +- model_server_config_result_entry_list.go | 22 +- ...server_config_result_entry_relationship.go | 2 +- model_server_config_result_entry_response.go | 2 +- model_server_config_result_list.go | 22 +- model_server_config_result_relationship.go | 2 +- model_server_config_result_response.go | 2 +- model_server_disruption.go | 39 +- model_server_disruption_list.go | 22 +- model_server_disruption_response.go | 2 +- model_server_pending_workflow_trigger.go | 20 +- model_server_profile.go | 59 +- model_server_profile_list.go | 22 +- model_server_profile_relationship.go | 2 +- model_server_profile_response.go | 2 +- model_server_profile_template.go | 39 +- model_server_profile_template_list.go | 22 +- model_server_profile_template_response.go | 2 +- model_server_server_assign_type_slot.go | 43 +- model_serviceitem_base_message.go | 20 +- ..._serviceitem_health_check_error_element.go | 41 +- model_serviceitem_message.go | 20 +- model_serviceitem_selection_criteria_input.go | 43 +- model_servicenow_change_request.go | 39 +- model_servicenow_change_request_list.go | 22 +- model_servicenow_change_request_response.go | 2 +- model_servicenow_incident.go | 39 +- model_servicenow_incident_list.go | 22 +- model_servicenow_incident_response.go | 2 +- model_servicenow_inventory_entity.go | 20 +- model_servicerequest_message.go | 39 +- model_session_abstract_session.go | 20 +- ...l_session_abstract_session_relationship.go | 2 +- model_session_abstract_sub_session.go | 20 +- model_smtp_policy.go | 51 +- model_smtp_policy_list.go | 22 +- model_smtp_policy_response.go | 2 +- model_snmp_policy.go | 49 +- model_snmp_policy_inventory.go | 47 +- model_snmp_policy_inventory_list.go | 22 +- model_snmp_policy_inventory_response.go | 2 +- model_snmp_policy_list.go | 22 +- model_snmp_policy_response.go | 2 +- model_snmp_trap.go | 39 +- model_snmp_user.go | 39 +- model_software_appliance_distributable.go | 39 +- ...l_software_appliance_distributable_list.go | 22 +- ...ftware_appliance_distributable_response.go | 2 +- model_software_download_history.go | 39 +- model_software_download_history_list.go | 22 +- model_software_download_history_response.go | 2 +- model_software_hci_bundle_distributable.go | 41 +- ..._software_hci_bundle_distributable_list.go | 22 +- ...tware_hci_bundle_distributable_response.go | 2 +- model_software_hci_distributable.go | 41 +- model_software_hci_distributable_list.go | 22 +- ...software_hci_distributable_relationship.go | 2 +- model_software_hci_distributable_response.go | 2 +- model_software_hcl_meta.go | 39 +- model_software_hcl_meta_list.go | 22 +- model_software_hcl_meta_response.go | 2 +- ...software_hyperflex_bundle_distributable.go | 41 +- ...are_hyperflex_bundle_distributable_list.go | 22 +- ...hyperflex_bundle_distributable_response.go | 2 +- model_software_hyperflex_distributable.go | 39 +- ...l_software_hyperflex_distributable_list.go | 22 +- ...re_hyperflex_distributable_relationship.go | 2 +- ...ftware_hyperflex_distributable_response.go | 2 +- model_software_iks_bundle_distributable.go | 41 +- ..._software_iks_bundle_distributable_list.go | 22 +- ...tware_iks_bundle_distributable_response.go | 2 +- model_software_release_meta.go | 39 +- model_software_release_meta_list.go | 22 +- model_software_release_meta_response.go | 2 +- model_software_solution_distributable.go | 39 +- model_software_solution_distributable_list.go | 22 +- ...are_solution_distributable_relationship.go | 2 +- ...oftware_solution_distributable_response.go | 2 +- model_software_ucsd_bundle_distributable.go | 41 +- ...software_ucsd_bundle_distributable_list.go | 22 +- ...ware_ucsd_bundle_distributable_response.go | 2 +- model_software_ucsd_distributable.go | 39 +- model_software_ucsd_distributable_list.go | 22 +- ...oftware_ucsd_distributable_relationship.go | 2 +- model_software_ucsd_distributable_response.go | 2 +- model_softwarerepository_appliance_upload.go | 20 +- model_softwarerepository_authorization.go | 39 +- ...l_softwarerepository_authorization_list.go | 22 +- ...ftwarerepository_authorization_response.go | 2 +- model_softwarerepository_cached_image.go | 41 +- model_softwarerepository_cached_image_list.go | 22 +- ...oftwarerepository_cached_image_response.go | 2 +- model_softwarerepository_catalog.go | 39 +- model_softwarerepository_catalog_list.go | 22 +- ...softwarerepository_catalog_relationship.go | 2 +- model_softwarerepository_catalog_response.go | 2 +- model_softwarerepository_category_mapper.go | 43 +- ...softwarerepository_category_mapper_list.go | 22 +- ...oftwarerepository_category_mapper_model.go | 41 +- ...rerepository_category_mapper_model_list.go | 22 +- ...pository_category_mapper_model_response.go | 2 +- ...warerepository_category_mapper_response.go | 2 +- ...erepository_category_support_constraint.go | 43 +- ...sitory_category_support_constraint_list.go | 22 +- ...ry_category_support_constraint_response.go | 2 +- ...erepository_category_unsupported_models.go | 41 +- ...sitory_category_unsupported_models_list.go | 22 +- ...ry_category_unsupported_models_response.go | 2 +- model_softwarerepository_cifs_server.go | 39 +- model_softwarerepository_constraint_models.go | 41 +- model_softwarerepository_download_spec.go | 39 +- ...l_softwarerepository_download_spec_list.go | 22 +- ...ftwarerepository_download_spec_response.go | 2 +- model_softwarerepository_file.go | 20 +- model_softwarerepository_file_relationship.go | 2 +- model_softwarerepository_file_server.go | 20 +- model_softwarerepository_http_server.go | 39 +- model_softwarerepository_import_result.go | 39 +- model_softwarerepository_local_machine.go | 41 +- model_softwarerepository_nfs_server.go | 39 +- ...oftwarerepository_operating_system_file.go | 39 +- ...rerepository_operating_system_file_list.go | 22 +- ...tory_operating_system_file_relationship.go | 2 +- ...pository_operating_system_file_response.go | 2 +- model_softwarerepository_release.go | 41 +- model_softwarerepository_release_list.go | 22 +- ...softwarerepository_release_relationship.go | 2 +- model_softwarerepository_release_response.go | 2 +- ...repository_unsupported_model_constraint.go | 41 +- model_sol_policy.go | 41 +- model_sol_policy_inventory.go | 39 +- model_sol_policy_inventory_list.go | 22 +- model_sol_policy_inventory_response.go | 2 +- model_sol_policy_list.go | 22 +- model_sol_policy_response.go | 2 +- model_ssh_policy.go | 41 +- model_ssh_policy_inventory.go | 39 +- model_ssh_policy_inventory_list.go | 22 +- model_ssh_policy_inventory_response.go | 2 +- model_ssh_policy_list.go | 22 +- model_ssh_policy_response.go | 2 +- model_storage_automatic_drive_group.go | 43 +- model_storage_base_array.go | 20 +- model_storage_base_array_controller.go | 20 +- model_storage_base_array_disk.go | 20 +- model_storage_base_array_relationship.go | 2 +- model_storage_base_capacity.go | 20 +- model_storage_base_cluster.go | 39 +- model_storage_base_cluster_relationship.go | 2 +- model_storage_base_disk_pool.go | 20 +- model_storage_base_host.go | 22 +- model_storage_base_host_group.go | 20 +- model_storage_base_host_lun.go | 20 +- model_storage_base_initiator.go | 20 +- model_storage_base_nfs_export.go | 43 +- ...torage_base_performance_metrics_average.go | 39 +- model_storage_base_physical_port.go | 20 +- model_storage_base_protection_group.go | 39 +- ..._storage_base_protection_group_snapshot.go | 39 +- model_storage_base_raid_group.go | 39 +- model_storage_base_replication_blackout.go | 39 +- model_storage_base_replication_schedule.go | 39 +- model_storage_base_snapshot.go | 20 +- model_storage_base_snapshot_schedule.go | 39 +- model_storage_base_storage_container.go | 20 +- model_storage_base_target.go | 39 +- model_storage_base_tenant.go | 43 +- model_storage_base_volume.go | 20 +- model_storage_battery_backup_unit.go | 39 +- model_storage_battery_backup_unit_list.go | 22 +- ...torage_battery_backup_unit_relationship.go | 2 +- model_storage_battery_backup_unit_response.go | 2 +- model_storage_controller.go | 53 +- model_storage_controller_drive.go | 41 +- model_storage_controller_drive_list.go | 22 +- ...l_storage_controller_drive_relationship.go | 2 +- model_storage_controller_drive_response.go | 2 +- model_storage_controller_list.go | 22 +- model_storage_controller_relationship.go | 2 +- model_storage_controller_response.go | 2 +- model_storage_disk_group.go | 45 +- model_storage_disk_group_list.go | 22 +- model_storage_disk_group_relationship.go | 2 +- model_storage_disk_group_response.go | 2 +- model_storage_disk_slot.go | 39 +- model_storage_disk_slot_list.go | 22 +- model_storage_disk_slot_relationship.go | 2 +- model_storage_disk_slot_response.go | 2 +- model_storage_drive_group.go | 45 +- model_storage_drive_group_list.go | 22 +- model_storage_drive_group_relationship.go | 2 +- model_storage_drive_group_response.go | 2 +- model_storage_drive_security_policy.go | 41 +- model_storage_drive_security_policy_list.go | 22 +- ..._storage_drive_security_policy_response.go | 2 +- model_storage_enclosure.go | 45 +- model_storage_enclosure_disk.go | 39 +- model_storage_enclosure_disk_list.go | 22 +- model_storage_enclosure_disk_relationship.go | 2 +- model_storage_enclosure_disk_response.go | 2 +- model_storage_enclosure_disk_slot_ep.go | 39 +- model_storage_enclosure_disk_slot_ep_list.go | 22 +- ...age_enclosure_disk_slot_ep_relationship.go | 2 +- ...storage_enclosure_disk_slot_ep_response.go | 2 +- model_storage_enclosure_list.go | 22 +- model_storage_enclosure_relationship.go | 2 +- model_storage_enclosure_response.go | 2 +- model_storage_external_lun.go | 39 +- model_storage_external_parity_group.go | 41 +- model_storage_external_path.go | 39 +- model_storage_file_item.go | 39 +- model_storage_file_item_list.go | 22 +- model_storage_file_item_relationship.go | 2 +- model_storage_file_item_response.go | 2 +- model_storage_flex_flash_controller.go | 47 +- model_storage_flex_flash_controller_list.go | 22 +- model_storage_flex_flash_controller_props.go | 39 +- ...torage_flex_flash_controller_props_list.go | 22 +- ...lex_flash_controller_props_relationship.go | 2 +- ...ge_flex_flash_controller_props_response.go | 2 +- ...rage_flex_flash_controller_relationship.go | 2 +- ..._storage_flex_flash_controller_response.go | 2 +- model_storage_flex_flash_physical_drive.go | 39 +- ..._storage_flex_flash_physical_drive_list.go | 22 +- ..._flex_flash_physical_drive_relationship.go | 2 +- ...rage_flex_flash_physical_drive_response.go | 2 +- model_storage_flex_flash_virtual_drive.go | 39 +- ...l_storage_flex_flash_virtual_drive_list.go | 22 +- ...e_flex_flash_virtual_drive_relationship.go | 2 +- ...orage_flex_flash_virtual_drive_response.go | 2 +- model_storage_flex_util_controller.go | 43 +- model_storage_flex_util_controller_list.go | 22 +- ...orage_flex_util_controller_relationship.go | 2 +- ...l_storage_flex_util_controller_response.go | 2 +- model_storage_flex_util_physical_drive.go | 39 +- ...l_storage_flex_util_physical_drive_list.go | 22 +- ...e_flex_util_physical_drive_relationship.go | 2 +- ...orage_flex_util_physical_drive_response.go | 2 +- model_storage_flex_util_virtual_drive.go | 39 +- model_storage_flex_util_virtual_drive_list.go | 22 +- ...ge_flex_util_virtual_drive_relationship.go | 2 +- ...torage_flex_util_virtual_drive_response.go | 2 +- model_storage_hitachi_array.go | 39 +- model_storage_hitachi_array_list.go | 22 +- model_storage_hitachi_array_relationship.go | 2 +- model_storage_hitachi_array_response.go | 2 +- model_storage_hitachi_array_utilization.go | 39 +- model_storage_hitachi_capacity.go | 20 +- model_storage_hitachi_controller.go | 39 +- model_storage_hitachi_controller_list.go | 22 +- model_storage_hitachi_controller_response.go | 2 +- model_storage_hitachi_disk.go | 39 +- model_storage_hitachi_disk_list.go | 22 +- model_storage_hitachi_disk_response.go | 2 +- ...l_storage_hitachi_external_parity_group.go | 41 +- ...rage_hitachi_external_parity_group_list.go | 22 +- ..._hitachi_external_parity_group_response.go | 2 +- model_storage_hitachi_external_path_group.go | 43 +- ...torage_hitachi_external_path_group_list.go | 22 +- ...ge_hitachi_external_path_group_response.go | 2 +- model_storage_hitachi_external_storage_lun.go | 39 +- ...orage_hitachi_external_storage_lun_list.go | 22 +- ...e_hitachi_external_storage_lun_response.go | 2 +- ...l_storage_hitachi_external_storage_port.go | 39 +- ...rage_hitachi_external_storage_port_list.go | 22 +- ...achi_external_storage_port_relationship.go | 2 +- ..._hitachi_external_storage_port_response.go | 2 +- model_storage_hitachi_host.go | 41 +- model_storage_hitachi_host_list.go | 22 +- model_storage_hitachi_host_lun.go | 39 +- model_storage_hitachi_host_lun_list.go | 22 +- model_storage_hitachi_host_lun_response.go | 2 +- model_storage_hitachi_host_relationship.go | 2 +- model_storage_hitachi_host_response.go | 2 +- model_storage_hitachi_initiator.go | 39 +- model_storage_hitachi_parity_group.go | 39 +- model_storage_hitachi_parity_group_list.go | 22 +- ...orage_hitachi_parity_group_relationship.go | 2 +- ...l_storage_hitachi_parity_group_response.go | 2 +- model_storage_hitachi_pool.go | 39 +- model_storage_hitachi_pool_list.go | 22 +- model_storage_hitachi_pool_relationship.go | 2 +- model_storage_hitachi_pool_response.go | 2 +- model_storage_hitachi_port.go | 51 +- model_storage_hitachi_port_list.go | 22 +- model_storage_hitachi_port_response.go | 2 +- model_storage_hitachi_remote_copy_pair_gad.go | 39 +- ...orage_hitachi_remote_copy_pair_gad_list.go | 22 +- ...e_hitachi_remote_copy_pair_gad_response.go | 2 +- model_storage_hitachi_remote_copy_pair_tc.go | 39 +- ...torage_hitachi_remote_copy_pair_tc_list.go | 22 +- ...ge_hitachi_remote_copy_pair_tc_response.go | 2 +- model_storage_hitachi_remote_copy_pair_ur.go | 39 +- ...torage_hitachi_remote_copy_pair_ur_list.go | 22 +- ...ge_hitachi_remote_copy_pair_ur_response.go | 2 +- model_storage_hitachi_remote_replication.go | 39 +- ...storage_hitachi_remote_replication_list.go | 22 +- ...age_hitachi_remote_replication_response.go | 2 +- model_storage_hitachi_snapshot.go | 39 +- model_storage_hitachi_snapshot_list.go | 22 +- model_storage_hitachi_snapshot_response.go | 2 +- model_storage_hitachi_volume.go | 45 +- model_storage_hitachi_volume_list.go | 22 +- ...l_storage_hitachi_volume_migration_pair.go | 39 +- ...rage_hitachi_volume_migration_pair_list.go | 22 +- ..._hitachi_volume_migration_pair_response.go | 2 +- model_storage_hitachi_volume_relationship.go | 2 +- model_storage_hitachi_volume_response.go | 2 +- model_storage_hyper_flex_iscsi_initiator.go | 41 +- model_storage_hyper_flex_storage_container.go | 39 +- ...orage_hyper_flex_storage_container_list.go | 22 +- ...per_flex_storage_container_relationship.go | 2 +- ...e_hyper_flex_storage_container_response.go | 2 +- model_storage_hyper_flex_volume.go | 39 +- model_storage_hyper_flex_volume_list.go | 22 +- ..._storage_hyper_flex_volume_relationship.go | 2 +- model_storage_hyper_flex_volume_response.go | 2 +- model_storage_initiator.go | 20 +- model_storage_item.go | 41 +- model_storage_item_list.go | 22 +- model_storage_item_relationship.go | 2 +- model_storage_item_response.go | 2 +- model_storage_key_setting.go | 39 +- model_storage_kmip_auth_credentials.go | 47 +- model_storage_kmip_server.go | 39 +- model_storage_local_key_setting.go | 47 +- model_storage_m2_virtual_drive_config.go | 43 +- model_storage_manual_drive_group.go | 45 +- model_storage_net_app_aggregate.go | 47 +- model_storage_net_app_aggregate_event.go | 39 +- model_storage_net_app_aggregate_event_list.go | 22 +- ...ge_net_app_aggregate_event_relationship.go | 2 +- ...torage_net_app_aggregate_event_response.go | 2 +- model_storage_net_app_aggregate_list.go | 22 +- ..._storage_net_app_aggregate_relationship.go | 2 +- model_storage_net_app_aggregate_response.go | 2 +- model_storage_net_app_auto_support.go | 39 +- model_storage_net_app_base_disk.go | 51 +- model_storage_net_app_base_disk_list.go | 22 +- ..._storage_net_app_base_disk_relationship.go | 2 +- model_storage_net_app_base_disk_response.go | 2 +- model_storage_net_app_base_event.go | 24 +- model_storage_net_app_base_ip_interface.go | 30 +- ...storage_net_app_base_snap_mirror_policy.go | 28 +- ...pp_base_snap_mirror_policy_relationship.go | 2 +- model_storage_net_app_base_snapshot_policy.go | 26 +- model_storage_net_app_cifs_acl.go | 39 +- model_storage_net_app_cifs_service.go | 43 +- model_storage_net_app_cifs_service_list.go | 22 +- ...l_storage_net_app_cifs_service_response.go | 2 +- model_storage_net_app_cifs_share.go | 45 +- model_storage_net_app_cifs_share_list.go | 22 +- model_storage_net_app_cifs_share_response.go | 2 +- model_storage_net_app_cloud_target.go | 45 +- model_storage_net_app_cloud_target_list.go | 22 +- ...l_storage_net_app_cloud_target_response.go | 2 +- model_storage_net_app_cluster.go | 49 +- model_storage_net_app_cluster_event.go | 39 +- model_storage_net_app_cluster_event_list.go | 22 +- ...rage_net_app_cluster_event_relationship.go | 2 +- ..._storage_net_app_cluster_event_response.go | 2 +- model_storage_net_app_cluster_list.go | 22 +- model_storage_net_app_cluster_relationship.go | 2 +- model_storage_net_app_cluster_response.go | 2 +- ...rage_net_app_cluster_snap_mirror_policy.go | 39 +- ...net_app_cluster_snap_mirror_policy_list.go | 22 +- ...app_cluster_snap_mirror_policy_response.go | 2 +- ...storage_net_app_cluster_snapshot_policy.go | 39 +- ...ge_net_app_cluster_snapshot_policy_list.go | 22 +- ...et_app_cluster_snapshot_policy_response.go | 2 +- model_storage_net_app_data_ip_interface.go | 41 +- ...storage_net_app_data_ip_interface_event.go | 39 +- ...ge_net_app_data_ip_interface_event_list.go | 22 +- ...pp_data_ip_interface_event_relationship.go | 2 +- ...et_app_data_ip_interface_event_response.go | 2 +- ..._storage_net_app_data_ip_interface_list.go | 22 +- ..._net_app_data_ip_interface_relationship.go | 2 +- ...rage_net_app_data_ip_interface_response.go | 2 +- model_storage_net_app_disk_event.go | 39 +- model_storage_net_app_disk_event_list.go | 22 +- ...storage_net_app_disk_event_relationship.go | 2 +- model_storage_net_app_disk_event_response.go | 2 +- model_storage_net_app_ethernet_port.go | 49 +- model_storage_net_app_ethernet_port_event.go | 39 +- ...torage_net_app_ethernet_port_event_list.go | 22 +- ...et_app_ethernet_port_event_relationship.go | 2 +- ...ge_net_app_ethernet_port_event_response.go | 2 +- model_storage_net_app_ethernet_port_lag.go | 43 +- model_storage_net_app_ethernet_port_list.go | 22 +- ...rage_net_app_ethernet_port_relationship.go | 2 +- ..._storage_net_app_ethernet_port_response.go | 2 +- model_storage_net_app_ethernet_port_vlan.go | 39 +- model_storage_net_app_export_policy.go | 45 +- model_storage_net_app_export_policy_list.go | 22 +- ..._storage_net_app_export_policy_response.go | 2 +- model_storage_net_app_export_policy_rule.go | 49 +- model_storage_net_app_fc_interface.go | 45 +- model_storage_net_app_fc_interface_event.go | 39 +- ...storage_net_app_fc_interface_event_list.go | 22 +- ...net_app_fc_interface_event_relationship.go | 2 +- ...age_net_app_fc_interface_event_response.go | 2 +- model_storage_net_app_fc_interface_list.go | 22 +- ...orage_net_app_fc_interface_relationship.go | 2 +- ...l_storage_net_app_fc_interface_response.go | 2 +- model_storage_net_app_fc_port.go | 45 +- model_storage_net_app_fc_port_event.go | 39 +- model_storage_net_app_fc_port_event_list.go | 22 +- ...rage_net_app_fc_port_event_relationship.go | 2 +- ..._storage_net_app_fc_port_event_response.go | 2 +- model_storage_net_app_fc_port_list.go | 22 +- model_storage_net_app_fc_port_relationship.go | 2 +- model_storage_net_app_fc_port_response.go | 2 +- model_storage_net_app_high_availability.go | 39 +- model_storage_net_app_initiator_group.go | 43 +- model_storage_net_app_initiator_group_list.go | 22 +- ...ge_net_app_initiator_group_relationship.go | 2 +- ...torage_net_app_initiator_group_response.go | 2 +- model_storage_net_app_ip_interface.go | 51 +- model_storage_net_app_ip_interface_event.go | 39 +- ...storage_net_app_ip_interface_event_list.go | 22 +- ...net_app_ip_interface_event_relationship.go | 2 +- ...age_net_app_ip_interface_event_response.go | 2 +- model_storage_net_app_ip_interface_list.go | 22 +- ...orage_net_app_ip_interface_relationship.go | 2 +- ...l_storage_net_app_ip_interface_response.go | 2 +- model_storage_net_app_iscsi_service.go | 43 +- model_storage_net_app_iscsi_service_list.go | 22 +- ..._storage_net_app_iscsi_service_response.go | 2 +- model_storage_net_app_license.go | 43 +- model_storage_net_app_license_list.go | 22 +- model_storage_net_app_license_response.go | 2 +- model_storage_net_app_lun.go | 47 +- model_storage_net_app_lun_event.go | 39 +- model_storage_net_app_lun_event_list.go | 22 +- ..._storage_net_app_lun_event_relationship.go | 2 +- model_storage_net_app_lun_event_response.go | 2 +- model_storage_net_app_lun_list.go | 22 +- model_storage_net_app_lun_map.go | 49 +- model_storage_net_app_lun_map_list.go | 22 +- model_storage_net_app_lun_map_response.go | 2 +- model_storage_net_app_lun_relationship.go | 2 +- model_storage_net_app_lun_response.go | 2 +- model_storage_net_app_namespace.go | 43 +- model_storage_net_app_namespace_list.go | 22 +- model_storage_net_app_namespace_response.go | 2 +- model_storage_net_app_nfs_client.go | 47 +- model_storage_net_app_nfs_client_list.go | 22 +- model_storage_net_app_nfs_client_response.go | 2 +- model_storage_net_app_nfs_service.go | 43 +- model_storage_net_app_nfs_service_list.go | 22 +- model_storage_net_app_nfs_service_response.go | 2 +- model_storage_net_app_node.go | 45 +- model_storage_net_app_node_cdp_neighbor.go | 41 +- ..._storage_net_app_node_cdp_neighbor_list.go | 22 +- ...rage_net_app_node_cdp_neighbor_response.go | 2 +- model_storage_net_app_node_event.go | 39 +- model_storage_net_app_node_event_list.go | 22 +- ...storage_net_app_node_event_relationship.go | 2 +- model_storage_net_app_node_event_response.go | 2 +- model_storage_net_app_node_list.go | 22 +- model_storage_net_app_node_relationship.go | 2 +- model_storage_net_app_node_response.go | 2 +- ...l_storage_net_app_non_data_ip_interface.go | 41 +- ...age_net_app_non_data_ip_interface_event.go | 39 +- ...et_app_non_data_ip_interface_event_list.go | 22 +- ...on_data_ip_interface_event_relationship.go | 2 +- ...pp_non_data_ip_interface_event_response.go | 2 +- ...rage_net_app_non_data_ip_interface_list.go | 22 +- ..._app_non_data_ip_interface_relationship.go | 2 +- ..._net_app_non_data_ip_interface_response.go | 2 +- model_storage_net_app_ntp_server.go | 43 +- model_storage_net_app_ntp_server_list.go | 22 +- model_storage_net_app_ntp_server_response.go | 2 +- ...age_net_app_performance_metrics_average.go | 23 +- model_storage_net_app_port.go | 39 +- model_storage_net_app_qtree.go | 43 +- model_storage_net_app_qtree_list.go | 22 +- model_storage_net_app_qtree_response.go | 2 +- model_storage_net_app_schedule.go | 43 +- model_storage_net_app_schedule_list.go | 22 +- model_storage_net_app_schedule_response.go | 2 +- model_storage_net_app_sensor.go | 39 +- model_storage_net_app_sensor_list.go | 22 +- model_storage_net_app_sensor_response.go | 2 +- ...torage_net_app_snap_mirror_relationship.go | 47 +- ...e_net_app_snap_mirror_relationship_list.go | 22 +- ...t_app_snap_mirror_relationship_response.go | 2 +- ...torage_net_app_snapshot_policy_schedule.go | 39 +- ...rage_net_app_storage_cluster_efficiency.go | 39 +- model_storage_net_app_storage_utilization.go | 39 +- model_storage_net_app_storage_vm.go | 49 +- model_storage_net_app_storage_vm_list.go | 22 +- ...storage_net_app_storage_vm_relationship.go | 2 +- model_storage_net_app_storage_vm_response.go | 2 +- model_storage_net_app_svm_event.go | 39 +- model_storage_net_app_svm_event_list.go | 22 +- ..._storage_net_app_svm_event_relationship.go | 2 +- model_storage_net_app_svm_event_response.go | 2 +- ..._storage_net_app_svm_snap_mirror_policy.go | 39 +- ...age_net_app_svm_snap_mirror_policy_list.go | 22 +- ...net_app_svm_snap_mirror_policy_response.go | 2 +- model_storage_net_app_svm_snapshot_policy.go | 39 +- ...torage_net_app_svm_snapshot_policy_list.go | 22 +- ...ge_net_app_svm_snapshot_policy_response.go | 2 +- model_storage_net_app_volume.go | 51 +- model_storage_net_app_volume_event.go | 39 +- model_storage_net_app_volume_event_list.go | 22 +- ...orage_net_app_volume_event_relationship.go | 2 +- ...l_storage_net_app_volume_event_response.go | 2 +- model_storage_net_app_volume_list.go | 22 +- model_storage_net_app_volume_relationship.go | 2 +- model_storage_net_app_volume_response.go | 2 +- model_storage_net_app_volume_snapshot.go | 43 +- model_storage_net_app_volume_snapshot_list.go | 22 +- ...torage_net_app_volume_snapshot_response.go | 2 +- ..._nvme_dedicated_hot_spare_configuration.go | 39 +- model_storage_nvme_physical_disk_state.go | 39 +- model_storage_nvme_raid_configuration.go | 43 +- model_storage_nvme_raid_configuration_list.go | 22 +- ...torage_nvme_raid_configuration_response.go | 2 +- model_storage_nvme_raid_drive_group.go | 43 +- ...torage_nvme_virtual_drive_configuration.go | 41 +- model_storage_physical_disk.go | 45 +- model_storage_physical_disk_extension.go | 39 +- model_storage_physical_disk_extension_list.go | 22 +- ...ge_physical_disk_extension_relationship.go | 2 +- ...torage_physical_disk_extension_response.go | 2 +- model_storage_physical_disk_list.go | 22 +- model_storage_physical_disk_relationship.go | 2 +- model_storage_physical_disk_response.go | 2 +- model_storage_physical_disk_usage.go | 39 +- model_storage_physical_disk_usage_list.go | 22 +- ...torage_physical_disk_usage_relationship.go | 2 +- model_storage_physical_disk_usage_response.go | 2 +- model_storage_pure_array.go | 39 +- model_storage_pure_array_alerts.go | 39 +- model_storage_pure_array_alerts_list.go | 22 +- model_storage_pure_array_alerts_response.go | 2 +- model_storage_pure_array_list.go | 22 +- model_storage_pure_array_relationship.go | 2 +- model_storage_pure_array_response.go | 2 +- model_storage_pure_array_utilization.go | 39 +- model_storage_pure_controller.go | 39 +- model_storage_pure_controller_list.go | 22 +- model_storage_pure_controller_relationship.go | 2 +- model_storage_pure_controller_response.go | 2 +- model_storage_pure_disk.go | 39 +- model_storage_pure_disk_list.go | 22 +- model_storage_pure_disk_response.go | 2 +- model_storage_pure_disk_utilization.go | 20 +- model_storage_pure_host.go | 39 +- model_storage_pure_host_group.go | 43 +- model_storage_pure_host_group_list.go | 22 +- model_storage_pure_host_group_relationship.go | 2 +- model_storage_pure_host_group_response.go | 2 +- model_storage_pure_host_list.go | 22 +- model_storage_pure_host_lun.go | 39 +- model_storage_pure_host_lun_list.go | 22 +- model_storage_pure_host_lun_response.go | 2 +- model_storage_pure_host_relationship.go | 2 +- model_storage_pure_host_response.go | 2 +- model_storage_pure_host_utilization.go | 20 +- model_storage_pure_port.go | 39 +- model_storage_pure_port_list.go | 22 +- model_storage_pure_port_response.go | 2 +- model_storage_pure_protection_group.go | 47 +- model_storage_pure_protection_group_list.go | 22 +- ...rage_pure_protection_group_relationship.go | 2 +- ..._storage_pure_protection_group_response.go | 2 +- ..._storage_pure_protection_group_snapshot.go | 39 +- ...age_pure_protection_group_snapshot_list.go | 22 +- ..._protection_group_snapshot_relationship.go | 2 +- ...pure_protection_group_snapshot_response.go | 2 +- model_storage_pure_replication_blackout.go | 23 +- model_storage_pure_replication_schedule.go | 41 +- ..._storage_pure_replication_schedule_list.go | 22 +- ...rage_pure_replication_schedule_response.go | 2 +- model_storage_pure_snapshot_schedule.go | 39 +- model_storage_pure_snapshot_schedule_list.go | 22 +- ...storage_pure_snapshot_schedule_response.go | 2 +- model_storage_pure_target_array.go | 39 +- model_storage_pure_target_array_list.go | 22 +- model_storage_pure_target_array_response.go | 2 +- model_storage_pure_volume.go | 39 +- model_storage_pure_volume_list.go | 22 +- model_storage_pure_volume_relationship.go | 2 +- model_storage_pure_volume_response.go | 2 +- model_storage_pure_volume_snapshot.go | 39 +- model_storage_pure_volume_snapshot_list.go | 22 +- ...l_storage_pure_volume_snapshot_response.go | 2 +- model_storage_pure_volume_utilization.go | 20 +- model_storage_r0_drive.go | 47 +- model_storage_remote_key_setting.go | 43 +- model_storage_sas_expander.go | 39 +- model_storage_sas_expander_list.go | 22 +- model_storage_sas_expander_relationship.go | 2 +- model_storage_sas_expander_response.go | 2 +- model_storage_sas_port.go | 39 +- model_storage_sas_port_list.go | 22 +- model_storage_sas_port_relationship.go | 2 +- model_storage_sas_port_response.go | 2 +- model_storage_space.go | 39 +- model_storage_span.go | 43 +- model_storage_span_drives.go | 43 +- model_storage_span_list.go | 22 +- model_storage_span_relationship.go | 2 +- model_storage_span_response.go | 2 +- ...age_storage_container_host_mount_status.go | 39 +- ...l_storage_storage_container_utilization.go | 20 +- model_storage_storage_policy.go | 59 +- model_storage_storage_policy_list.go | 22 +- model_storage_storage_policy_relationship.go | 2 +- model_storage_storage_policy_response.go | 2 +- model_storage_storage_utilization.go | 20 +- model_storage_vd_member_ep.go | 39 +- model_storage_vd_member_ep_list.go | 22 +- model_storage_vd_member_ep_relationship.go | 2 +- model_storage_vd_member_ep_response.go | 2 +- model_storage_virtual_drive.go | 43 +- model_storage_virtual_drive_configuration.go | 43 +- model_storage_virtual_drive_container.go | 41 +- model_storage_virtual_drive_container_list.go | 22 +- ...ge_virtual_drive_container_relationship.go | 2 +- ...torage_virtual_drive_container_response.go | 2 +- model_storage_virtual_drive_extension.go | 39 +- model_storage_virtual_drive_extension_list.go | 22 +- ...ge_virtual_drive_extension_relationship.go | 2 +- ...torage_virtual_drive_extension_response.go | 2 +- model_storage_virtual_drive_identity.go | 39 +- model_storage_virtual_drive_identity_list.go | 22 +- ...storage_virtual_drive_identity_response.go | 2 +- model_storage_virtual_drive_list.go | 22 +- model_storage_virtual_drive_policy.go | 39 +- model_storage_virtual_drive_relationship.go | 2 +- model_storage_virtual_drive_response.go | 2 +- model_storage_volume_utilization.go | 20 +- model_sw_id_pool_base.go | 22 +- model_syslog_local_client_base.go | 39 +- model_syslog_local_file_logging_client.go | 23 +- model_syslog_policy.go | 45 +- model_syslog_policy_inventory.go | 43 +- model_syslog_policy_inventory_list.go | 22 +- model_syslog_policy_inventory_response.go | 2 +- model_syslog_policy_list.go | 22 +- model_syslog_policy_response.go | 2 +- model_syslog_remote_client_base.go | 39 +- model_syslog_remote_logging_client.go | 23 +- model_tam_action.go | 43 +- model_tam_advisory_count.go | 39 +- model_tam_advisory_count_list.go | 22 +- model_tam_advisory_count_response.go | 2 +- model_tam_advisory_definition.go | 51 +- model_tam_advisory_definition_list.go | 22 +- model_tam_advisory_definition_response.go | 2 +- model_tam_advisory_info.go | 39 +- model_tam_advisory_info_list.go | 22 +- model_tam_advisory_info_response.go | 2 +- model_tam_advisory_instance.go | 39 +- model_tam_advisory_instance_list.go | 22 +- model_tam_advisory_instance_response.go | 2 +- model_tam_api_data_source.go | 41 +- model_tam_base_advisory.go | 20 +- model_tam_base_advisory_details.go | 20 +- model_tam_base_advisory_relationship.go | 2 +- model_tam_base_data_source.go | 20 +- model_tam_eol_advisory_details.go | 41 +- model_tam_eol_severity.go | 39 +- model_tam_identifiers.go | 39 +- model_tam_milestone.go | 39 +- model_tam_psirt_severity.go | 39 +- model_tam_query_entry.go | 39 +- model_tam_s3_data_source.go | 41 +- model_tam_security_advisory.go | 51 +- model_tam_security_advisory_details.go | 41 +- model_tam_security_advisory_list.go | 22 +- model_tam_security_advisory_response.go | 2 +- model_tam_severity.go | 20 +- model_tam_text_fsm_template_data_source.go | 39 +- model_task_fabric_mos_scoped_inventory.go | 39 +- model_task_hitachi_scoped_inventory.go | 39 +- ..._hyper_flex_management_scoped_inventory.go | 39 +- model_task_hyperflex_scoped_inventory.go | 39 +- model_task_mds_scoped_inventory.go | 39 +- model_task_mds_system_scoped_inventory.go | 39 +- model_task_meraki_scoped_inventory.go | 39 +- model_task_net_app_scoped_inventory.go | 39 +- model_task_nexus_scoped_inventory.go | 39 +- model_task_nexus_system_scoped_inventory.go | 39 +- model_task_nexus_vlan_scoped_inventory.go | 39 +- model_task_public_cloud_scoped_inventory.go | 39 +- model_task_pure_scoped_inventory.go | 39 +- model_task_server_scoped_inventory.go | 39 +- ...l_techsupportmanagement_appliance_param.go | 39 +- ...ortmanagement_collection_control_policy.go | 39 +- ...nagement_collection_control_policy_list.go | 22 +- ...ment_collection_control_policy_response.go | 2 +- model_techsupportmanagement_download.go | 39 +- model_techsupportmanagement_download_list.go | 22 +- ...techsupportmanagement_download_response.go | 2 +- model_techsupportmanagement_end_point.go | 39 +- model_techsupportmanagement_end_point_list.go | 22 +- ...echsupportmanagement_end_point_response.go | 2 +- model_techsupportmanagement_nia_param.go | 43 +- model_techsupportmanagement_platform_param.go | 39 +- ...chsupportmanagement_tech_support_bundle.go | 39 +- ...portmanagement_tech_support_bundle_list.go | 22 +- ...gement_tech_support_bundle_relationship.go | 2 +- ...management_tech_support_bundle_response.go | 2 +- ...upportmanagement_tech_support_file_info.go | 39 +- ...chsupportmanagement_tech_support_status.go | 41 +- ...portmanagement_tech_support_status_list.go | 22 +- ...gement_tech_support_status_relationship.go | 2 +- ...management_tech_support_status_response.go | 2 +- ...l_telemetry_druid_aggregate_search_spec.go | 2 +- model_telemetry_druid_aggregator.go | 2 +- model_telemetry_druid_and_filter.go | 20 +- model_telemetry_druid_any_aggregator.go | 20 +- ...emetry_druid_arithmetic_post_aggregator.go | 20 +- model_telemetry_druid_base_aggregator.go | 20 +- model_telemetry_druid_base_data_source.go | 20 +- model_telemetry_druid_base_dimension_spec.go | 20 +- ...elemetry_druid_base_extraction_function.go | 20 +- model_telemetry_druid_base_filter.go | 20 +- model_telemetry_druid_base_granularity.go | 20 +- model_telemetry_druid_base_having_filter.go | 20 +- model_telemetry_druid_base_limit_spec.go | 20 +- model_telemetry_druid_base_post_aggregator.go | 20 +- model_telemetry_druid_base_query_spec.go | 20 +- model_telemetry_druid_base_request.go | 20 +- model_telemetry_druid_base_search_spec.go | 20 +- ..._telemetry_druid_base_top_n_metric_spec.go | 20 +- model_telemetry_druid_bound_filter.go | 20 +- ...elemetry_druid_column_comparison_filter.go | 20 +- ...elemetry_druid_constant_post_aggregator.go | 20 +- model_telemetry_druid_contains_search_spec.go | 20 +- model_telemetry_druid_count_aggregator.go | 20 +- model_telemetry_druid_data_source.go | 2 +- ...etry_druid_data_source_metadata_request.go | 20 +- ...metry_druid_data_source_metadata_result.go | 2 +- ..._telemetry_druid_default_dimension_spec.go | 30 +- model_telemetry_druid_default_limit_spec.go | 20 +- model_telemetry_druid_dimension_spec.go | 2 +- ...metry_druid_dimension_top_n_metric_spec.go | 20 +- model_telemetry_druid_duration_granularity.go | 20 +- model_telemetry_druid_equality_filter.go | 20 +- model_telemetry_druid_error.go | 4 +- model_telemetry_druid_expression_filter.go | 20 +- ...emetry_druid_expression_post_aggregator.go | 20 +- ...lemetry_druid_extraction_dimension_spec.go | 30 +- model_telemetry_druid_extraction_function.go | 2 +- ...emetry_druid_extraction_function_bucket.go | 20 +- ...metry_druid_extraction_function_cascade.go | 20 +- ...druid_extraction_function_inline_lookup.go | 20 +- ...on_function_inline_lookup_all_of_lookup.go | 2 +- ...ry_druid_extraction_function_lower_case.go | 20 +- ...metry_druid_extraction_function_partial.go | 20 +- ...lemetry_druid_extraction_function_regex.go | 22 +- ..._druid_extraction_function_search_query.go | 20 +- ...druid_extraction_function_string_format.go | 20 +- ...emetry_druid_extraction_function_strlen.go | 20 +- ...try_druid_extraction_function_substring.go | 20 +- ...y_druid_extraction_function_time_format.go | 20 +- ..._druid_extraction_function_time_parsing.go | 20 +- ...ry_druid_extraction_function_upper_case.go | 20 +- model_telemetry_druid_false_filter.go | 20 +- ...ry_druid_field_accessor_post_aggregator.go | 20 +- model_telemetry_druid_filter.go | 2 +- model_telemetry_druid_filtered_aggregator.go | 20 +- ...l_telemetry_druid_first_last_aggregator.go | 20 +- model_telemetry_druid_fragment_search_spec.go | 20 +- model_telemetry_druid_granularity.go | 2 +- ...ry_druid_greatest_least_post_aggregator.go | 20 +- model_telemetry_druid_group_by_request.go | 20 +- model_telemetry_druid_group_by_result.go | 2 +- ..._druid_having_dimension_selector_filter.go | 20 +- model_telemetry_druid_having_filter.go | 2 +- ...l_telemetry_druid_having_numeric_filter.go | 20 +- model_telemetry_druid_having_query_filter.go | 20 +- ...etry_druid_hyper_unique_post_aggregator.go | 20 +- model_telemetry_druid_in_filter.go | 20 +- model_telemetry_druid_inline_data_source.go | 20 +- ..._druid_insensitive_contains_search_spec.go | 20 +- model_telemetry_druid_interval_filter.go | 20 +- model_telemetry_druid_interval_result.go | 2 +- ...emetry_druid_inverted_top_n_metric_spec.go | 20 +- model_telemetry_druid_join_data_source.go | 20 +- model_telemetry_druid_like_filter.go | 20 +- model_telemetry_druid_lookup_data_source.go | 20 +- model_telemetry_druid_min_max_aggregator.go | 20 +- model_telemetry_druid_not_filter.go | 20 +- model_telemetry_druid_null_filter.go | 20 +- ...lemetry_druid_numeric_top_n_metric_spec.go | 20 +- model_telemetry_druid_or_filter.go | 20 +- model_telemetry_druid_order_by_column_spec.go | 2 +- model_telemetry_druid_period_granularity.go | 20 +- model_telemetry_druid_post_aggregator.go | 2 +- model_telemetry_druid_query_context.go | 2 +- model_telemetry_druid_query_data_source.go | 20 +- model_telemetry_druid_query_spec.go | 2 +- model_telemetry_druid_query_spec_contains.go | 20 +- model_telemetry_druid_query_spec_fragment.go | 20 +- ...y_druid_query_spec_insensitive_contains.go | 20 +- model_telemetry_druid_range_filter.go | 24 +- model_telemetry_druid_regex_filter.go | 20 +- model_telemetry_druid_regex_search_spec.go | 20 +- model_telemetry_druid_scan_request.go | 20 +- model_telemetry_druid_scan_result.go | 2 +- model_telemetry_druid_search_filter.go | 20 +- model_telemetry_druid_search_request.go | 20 +- model_telemetry_druid_search_result.go | 2 +- ...elemetry_druid_segment_metadata_request.go | 20 +- ...telemetry_druid_segment_metadata_result.go | 2 +- model_telemetry_druid_selector_filter.go | 20 +- ...l_telemetry_druid_string_any_aggregator.go | 20 +- ...etry_druid_string_first_last_aggregator.go | 20 +- model_telemetry_druid_sum_aggregator.go | 20 +- model_telemetry_druid_table_data_source.go | 20 +- ...telemetry_druid_theta_sketch_aggregator.go | 20 +- ...d_theta_sketch_estimate_post_aggregator.go | 20 +- ...theta_sketch_operations_post_aggregator.go | 20 +- ...l_telemetry_druid_time_boundary_request.go | 20 +- model_telemetry_druid_time_boundary_result.go | 2 +- model_telemetry_druid_time_series_request.go | 20 +- model_telemetry_druid_top_n_metric_spec.go | 2 +- model_telemetry_druid_top_n_request.go | 20 +- model_telemetry_druid_top_n_result.go | 2 +- model_telemetry_druid_true_filter.go | 20 +- model_telemetry_druid_union_data_source.go | 20 +- model_template_transformation_stage.go | 45 +- model_terminal_audit_log.go | 39 +- model_terminal_audit_log_list.go | 22 +- model_terminal_audit_log_response.go | 2 +- model_terraform_cloud_resource.go | 39 +- model_terraform_executor.go | 51 +- model_terraform_executor_list.go | 22 +- model_terraform_executor_response.go | 2 +- model_terraform_runstate.go | 39 +- model_thermal_policy.go | 41 +- model_thermal_policy_inventory.go | 39 +- model_thermal_policy_inventory_list.go | 22 +- model_thermal_policy_inventory_response.go | 2 +- model_thermal_policy_list.go | 22 +- model_thermal_policy_response.go | 2 +- model_top_system.go | 45 +- model_top_system_list.go | 22 +- model_top_system_relationship.go | 2 +- model_top_system_response.go | 2 +- model_tunneling_tunnel.go | 20 +- model_ucsd_backup_info.go | 41 +- model_ucsd_backup_info_list.go | 22 +- model_ucsd_backup_info_response.go | 2 +- model_ucsd_connector_pack.go | 43 +- model_ucsd_ucsd_restore_parameters.go | 39 +- model_ucsdconnector_rest_client_message.go | 41 +- model_uuidpool_block.go | 41 +- model_uuidpool_block_list.go | 22 +- model_uuidpool_block_relationship.go | 2 +- model_uuidpool_block_response.go | 2 +- model_uuidpool_pool.go | 49 +- model_uuidpool_pool_list.go | 22 +- model_uuidpool_pool_member.go | 39 +- model_uuidpool_pool_member_list.go | 22 +- model_uuidpool_pool_member_relationship.go | 2 +- model_uuidpool_pool_member_response.go | 2 +- model_uuidpool_pool_relationship.go | 2 +- model_uuidpool_pool_response.go | 2 +- model_uuidpool_reservation.go | 43 +- model_uuidpool_reservation_list.go | 22 +- model_uuidpool_reservation_reference.go | 20 +- model_uuidpool_reservation_relationship.go | 2 +- model_uuidpool_reservation_response.go | 2 +- model_uuidpool_universe.go | 39 +- model_uuidpool_universe_list.go | 22 +- model_uuidpool_universe_relationship.go | 2 +- model_uuidpool_universe_response.go | 2 +- model_uuidpool_uuid_block.go | 47 +- model_uuidpool_uuid_lease.go | 43 +- model_uuidpool_uuid_lease_list.go | 22 +- model_uuidpool_uuid_lease_relationship.go | 2 +- model_uuidpool_uuid_lease_response.go | 2 +- model_view_health_status.go | 20 +- model_view_health_status_list.go | 22 +- model_view_health_status_response.go | 2 +- model_view_server.go | 20 +- model_view_server_list.go | 22 +- model_view_server_response.go | 2 +- model_virtualization_action_info.go | 39 +- ...ualization_aws_vm_compute_configuration.go | 23 +- model_virtualization_aws_vm_configuration.go | 23 +- ...ualization_aws_vm_network_configuration.go | 23 +- ...ualization_aws_vm_storage_configuration.go | 23 +- model_virtualization_base_cluster.go | 39 +- ...irtualization_base_cluster_relationship.go | 2 +- model_virtualization_base_custom_spec.go | 20 +- model_virtualization_base_datacenter.go | 39 +- model_virtualization_base_datastore.go | 39 +- ...l_virtualization_base_datastore_cluster.go | 39 +- ...virtualization_base_distributed_network.go | 20 +- ..._virtualization_base_distributed_switch.go | 20 +- model_virtualization_base_folder.go | 39 +- model_virtualization_base_host.go | 24 +- ..._virtualization_base_host_configuration.go | 20 +- model_virtualization_base_host_gpu.go | 23 +- model_virtualization_base_host_pci_device.go | 39 +- ...ation_base_host_pci_device_relationship.go | 2 +- ...l_virtualization_base_host_relationship.go | 2 +- ..._virtualization_base_hypervisor_manager.go | 43 +- model_virtualization_base_kernel_network.go | 20 +- model_virtualization_base_network.go | 20 +- ...irtualization_base_network_relationship.go | 2 +- ...ization_base_physical_network_interface.go | 39 +- model_virtualization_base_placement.go | 24 +- model_virtualization_base_source_device.go | 20 +- model_virtualization_base_switch.go | 20 +- model_virtualization_base_virtual_disk.go | 20 +- model_virtualization_base_virtual_machine.go | 26 +- ...virtualization_base_virtual_machine_gpu.go | 23 +- ...ization_base_virtual_machine_pci_device.go | 39 +- ...ation_base_virtual_machine_relationship.go | 2 +- ...alization_base_virtual_machine_snapshot.go | 39 +- model_virtualization_base_virtual_network.go | 20 +- ...lization_base_virtual_network_interface.go | 39 +- ...ion_base_virtual_network_interface_card.go | 43 +- model_virtualization_base_virtual_switch.go | 20 +- model_virtualization_base_vm_configuration.go | 20 +- model_virtualization_cloud_init_config.go | 39 +- ...lization_cloud_vm_compute_configuration.go | 39 +- ...l_virtualization_cloud_vm_configuration.go | 41 +- ...lization_cloud_vm_network_configuration.go | 41 +- ...lization_cloud_vm_storage_configuration.go | 41 +- model_virtualization_compute_capacity.go | 39 +- model_virtualization_cpu_info.go | 39 +- ...l_virtualization_esxi_clone_custom_spec.go | 43 +- model_virtualization_esxi_console.go | 39 +- model_virtualization_esxi_console_list.go | 22 +- model_virtualization_esxi_console_response.go | 2 +- ..._virtualization_esxi_host_configuration.go | 39 +- model_virtualization_esxi_ova_custom_spec.go | 43 +- ...alization_esxi_vm_compute_configuration.go | 39 +- model_virtualization_esxi_vm_configuration.go | 39 +- ...alization_esxi_vm_network_configuration.go | 41 +- ...alization_esxi_vm_storage_configuration.go | 41 +- model_virtualization_guest_info.go | 39 +- model_virtualization_host.go | 39 +- model_virtualization_host_list.go | 22 +- model_virtualization_host_response.go | 2 +- model_virtualization_ip_address_info.go | 39 +- model_virtualization_memory_capacity.go | 39 +- model_virtualization_network_interface.go | 47 +- model_virtualization_product_info.go | 39 +- model_virtualization_storage_capacity.go | 39 +- model_virtualization_virtual_machine.go | 51 +- model_virtualization_virtual_machine_disk.go | 39 +- model_virtualization_virtual_machine_list.go | 22 +- ...ualization_virtual_machine_relationship.go | 2 +- ...virtualization_virtual_machine_response.go | 2 +- model_virtualization_vm_esxi_disk.go | 39 +- model_virtualization_vmware_cluster.go | 39 +- model_virtualization_vmware_cluster_list.go | 22 +- ...tualization_vmware_cluster_relationship.go | 2 +- ..._virtualization_vmware_cluster_response.go | 2 +- model_virtualization_vmware_datacenter.go | 39 +- ...l_virtualization_vmware_datacenter_list.go | 22 +- ...lization_vmware_datacenter_relationship.go | 2 +- ...rtualization_vmware_datacenter_response.go | 2 +- model_virtualization_vmware_datastore.go | 43 +- ...virtualization_vmware_datastore_cluster.go | 39 +- ...alization_vmware_datastore_cluster_list.go | 22 +- ...n_vmware_datastore_cluster_relationship.go | 2 +- ...ation_vmware_datastore_cluster_response.go | 2 +- model_virtualization_vmware_datastore_list.go | 22 +- ...alization_vmware_datastore_relationship.go | 2 +- ...irtualization_vmware_datastore_response.go | 2 +- ...irtualization_vmware_discovery_protocol.go | 39 +- ...rtualization_vmware_distributed_network.go | 43 +- ...ization_vmware_distributed_network_list.go | 22 +- ...vmware_distributed_network_relationship.go | 2 +- ...ion_vmware_distributed_network_response.go | 2 +- ...irtualization_vmware_distributed_switch.go | 47 +- ...lization_vmware_distributed_switch_list.go | 22 +- ..._vmware_distributed_switch_relationship.go | 2 +- ...tion_vmware_distributed_switch_response.go | 2 +- model_virtualization_vmware_folder.go | 39 +- model_virtualization_vmware_folder_list.go | 22 +- ...rtualization_vmware_folder_relationship.go | 2 +- ...l_virtualization_vmware_folder_response.go | 2 +- model_virtualization_vmware_host.go | 49 +- model_virtualization_vmware_host_gpu.go | 23 +- model_virtualization_vmware_host_gpu_list.go | 22 +- ...virtualization_vmware_host_gpu_response.go | 2 +- model_virtualization_vmware_host_list.go | 22 +- ...virtualization_vmware_host_relationship.go | 2 +- model_virtualization_vmware_host_response.go | 2 +- model_virtualization_vmware_kernel_network.go | 45 +- ...rtualization_vmware_kernel_network_list.go | 22 +- ...lization_vmware_kernel_network_response.go | 2 +- model_virtualization_vmware_network.go | 39 +- model_virtualization_vmware_network_list.go | 22 +- ...tualization_vmware_network_relationship.go | 2 +- ..._virtualization_vmware_network_response.go | 2 +- ...ation_vmware_physical_network_interface.go | 43 +- ..._vmware_physical_network_interface_list.go | 22 +- ...physical_network_interface_relationship.go | 2 +- ...are_physical_network_interface_response.go | 2 +- model_virtualization_vmware_proactive_ha.go | 41 +- ...virtualization_vmware_proactive_ha_list.go | 22 +- ...ualization_vmware_proactive_ha_response.go | 2 +- ...rtualization_vmware_remote_display_info.go | 39 +- ...esource_allocation_system_traffic_types.go | 39 +- ...tualization_vmware_resource_consumption.go | 39 +- model_virtualization_vmware_shares_info.go | 39 +- ...tualization_vmware_teaming_and_failover.go | 43 +- model_virtualization_vmware_uplink_port.go | 39 +- ..._virtualization_vmware_uplink_port_list.go | 22 +- ...tualization_vmware_uplink_port_response.go | 2 +- model_virtualization_vmware_vcenter.go | 41 +- model_virtualization_vmware_vcenter_list.go | 22 +- ...tualization_vmware_vcenter_relationship.go | 2 +- ..._virtualization_vmware_vcenter_response.go | 2 +- model_virtualization_vmware_virtual_disk.go | 47 +- ...virtualization_vmware_virtual_disk_list.go | 22 +- ...ualization_vmware_virtual_disk_response.go | 2 +- ...l_virtualization_vmware_virtual_machine.go | 65 +- ...rtualization_vmware_virtual_machine_gpu.go | 39 +- ...ization_vmware_virtual_machine_gpu_list.go | 22 +- ...ion_vmware_virtual_machine_gpu_response.go | 2 +- ...tualization_vmware_virtual_machine_list.go | 22 +- ...ion_vmware_virtual_machine_relationship.go | 2 +- ...ization_vmware_virtual_machine_response.go | 2 +- ...ization_vmware_virtual_machine_snapshot.go | 39 +- ...on_vmware_virtual_machine_snapshot_list.go | 22 +- ...mware_virtual_machine_snapshot_response.go | 2 +- ...zation_vmware_virtual_network_interface.go | 43 +- ...n_vmware_virtual_network_interface_list.go | 22 +- ...ware_virtual_network_interface_response.go | 2 +- model_virtualization_vmware_virtual_switch.go | 39 +- ...rtualization_vmware_virtual_switch_list.go | 22 +- ...tion_vmware_virtual_switch_relationship.go | 2 +- ...lization_vmware_virtual_switch_response.go | 2 +- model_virtualization_vmware_vlan_range.go | 39 +- ...virtualization_vmware_vm_cpu_share_info.go | 39 +- ...irtualization_vmware_vm_cpu_socket_info.go | 39 +- ...rtualization_vmware_vm_disk_commit_info.go | 39 +- ...tualization_vmware_vm_memory_share_info.go | 39 +- model_virtualization_volume_info.go | 39 +- model_vmedia_mapping.go | 51 +- model_vmedia_policy.go | 43 +- model_vmedia_policy_inventory.go | 41 +- model_vmedia_policy_inventory_list.go | 22 +- model_vmedia_policy_inventory_response.go | 2 +- model_vmedia_policy_list.go | 22 +- model_vmedia_policy_response.go | 2 +- model_vmrc_console.go | 39 +- model_vmrc_console_list.go | 22 +- model_vmrc_console_response.go | 2 +- model_vnic_arfs_settings.go | 39 +- model_vnic_base_eth_if.go | 26 +- model_vnic_base_fc_if.go | 26 +- model_vnic_cdn.go | 43 +- model_vnic_completion_queue_settings.go | 39 +- model_vnic_eth_adapter_policy.go | 39 +- model_vnic_eth_adapter_policy_inventory.go | 39 +- ..._vnic_eth_adapter_policy_inventory_list.go | 22 +- ...h_adapter_policy_inventory_relationship.go | 2 +- ...c_eth_adapter_policy_inventory_response.go | 2 +- model_vnic_eth_adapter_policy_list.go | 22 +- model_vnic_eth_adapter_policy_relationship.go | 2 +- model_vnic_eth_adapter_policy_response.go | 2 +- model_vnic_eth_if.go | 55 +- model_vnic_eth_if_inventory.go | 61 +- model_vnic_eth_if_inventory_list.go | 22 +- model_vnic_eth_if_inventory_relationship.go | 2 +- model_vnic_eth_if_inventory_response.go | 2 +- model_vnic_eth_if_list.go | 22 +- model_vnic_eth_if_relationship.go | 2 +- model_vnic_eth_if_response.go | 2 +- model_vnic_eth_interrupt_settings.go | 39 +- model_vnic_eth_network_policy.go | 39 +- model_vnic_eth_network_policy_inventory.go | 39 +- ..._vnic_eth_network_policy_inventory_list.go | 22 +- ...h_network_policy_inventory_relationship.go | 2 +- ...c_eth_network_policy_inventory_response.go | 2 +- model_vnic_eth_network_policy_list.go | 22 +- model_vnic_eth_network_policy_relationship.go | 2 +- model_vnic_eth_network_policy_response.go | 2 +- model_vnic_eth_qos_policy.go | 39 +- model_vnic_eth_qos_policy_inventory.go | 39 +- model_vnic_eth_qos_policy_inventory_list.go | 22 +- ...c_eth_qos_policy_inventory_relationship.go | 2 +- ..._vnic_eth_qos_policy_inventory_response.go | 2 +- model_vnic_eth_qos_policy_list.go | 22 +- model_vnic_eth_qos_policy_relationship.go | 2 +- model_vnic_eth_qos_policy_response.go | 2 +- model_vnic_eth_rx_queue_settings.go | 39 +- model_vnic_eth_tx_queue_settings.go | 39 +- model_vnic_eth_veth_inventory.go | 39 +- model_vnic_eth_veth_inventory_list.go | 22 +- model_vnic_eth_veth_inventory_response.go | 2 +- model_vnic_eth_vnic_inventory.go | 39 +- model_vnic_eth_vnic_inventory_list.go | 22 +- model_vnic_eth_vnic_inventory_response.go | 2 +- model_vnic_fc_adapter_policy.go | 39 +- model_vnic_fc_adapter_policy_inventory.go | 39 +- ...l_vnic_fc_adapter_policy_inventory_list.go | 22 +- ...c_adapter_policy_inventory_relationship.go | 2 +- ...ic_fc_adapter_policy_inventory_response.go | 2 +- model_vnic_fc_adapter_policy_list.go | 22 +- model_vnic_fc_adapter_policy_relationship.go | 2 +- model_vnic_fc_adapter_policy_response.go | 2 +- model_vnic_fc_error_recovery_settings.go | 39 +- model_vnic_fc_if.go | 59 +- model_vnic_fc_if_inventory.go | 65 +- model_vnic_fc_if_inventory_list.go | 22 +- model_vnic_fc_if_inventory_relationship.go | 2 +- model_vnic_fc_if_inventory_response.go | 2 +- model_vnic_fc_if_list.go | 22 +- model_vnic_fc_if_relationship.go | 2 +- model_vnic_fc_if_response.go | 2 +- model_vnic_fc_interrupt_settings.go | 39 +- model_vnic_fc_network_policy.go | 39 +- model_vnic_fc_network_policy_inventory.go | 39 +- ...l_vnic_fc_network_policy_inventory_list.go | 22 +- ...c_network_policy_inventory_relationship.go | 2 +- ...ic_fc_network_policy_inventory_response.go | 2 +- model_vnic_fc_network_policy_list.go | 22 +- model_vnic_fc_network_policy_relationship.go | 2 +- model_vnic_fc_network_policy_response.go | 2 +- model_vnic_fc_qos_policy.go | 39 +- model_vnic_fc_qos_policy_inventory.go | 39 +- model_vnic_fc_qos_policy_inventory_list.go | 22 +- ...ic_fc_qos_policy_inventory_relationship.go | 2 +- ...l_vnic_fc_qos_policy_inventory_response.go | 2 +- model_vnic_fc_qos_policy_list.go | 22 +- model_vnic_fc_qos_policy_relationship.go | 2 +- model_vnic_fc_qos_policy_response.go | 2 +- model_vnic_fc_queue_settings.go | 39 +- model_vnic_fc_veth_inventory.go | 39 +- model_vnic_fc_veth_inventory_list.go | 22 +- model_vnic_fc_veth_inventory_response.go | 2 +- model_vnic_fc_vhba_policy_inventory.go | 39 +- model_vnic_fc_vhba_policy_inventory_list.go | 22 +- ..._vnic_fc_vhba_policy_inventory_response.go | 2 +- model_vnic_flogi_settings.go | 39 +- model_vnic_iscsi_adapter_policy.go | 39 +- model_vnic_iscsi_adapter_policy_inventory.go | 39 +- ...nic_iscsi_adapter_policy_inventory_list.go | 22 +- ...i_adapter_policy_inventory_relationship.go | 2 +- ...iscsi_adapter_policy_inventory_response.go | 2 +- model_vnic_iscsi_adapter_policy_list.go | 22 +- ..._vnic_iscsi_adapter_policy_relationship.go | 2 +- model_vnic_iscsi_adapter_policy_response.go | 2 +- model_vnic_iscsi_auth_profile.go | 47 +- model_vnic_iscsi_boot_policy.go | 43 +- model_vnic_iscsi_boot_policy_inventory.go | 43 +- ...l_vnic_iscsi_boot_policy_inventory_list.go | 22 +- ...scsi_boot_policy_inventory_relationship.go | 2 +- ...ic_iscsi_boot_policy_inventory_response.go | 2 +- model_vnic_iscsi_boot_policy_list.go | 22 +- model_vnic_iscsi_boot_policy_relationship.go | 2 +- model_vnic_iscsi_boot_policy_response.go | 2 +- model_vnic_iscsi_static_target_policy.go | 47 +- ...ic_iscsi_static_target_policy_inventory.go | 47 +- ...csi_static_target_policy_inventory_list.go | 22 +- ...ic_target_policy_inventory_relationship.go | 2 +- ...static_target_policy_inventory_response.go | 2 +- model_vnic_iscsi_static_target_policy_list.go | 22 +- ...iscsi_static_target_policy_relationship.go | 2 +- ...nic_iscsi_static_target_policy_response.go | 2 +- model_vnic_lan_connectivity_policy.go | 47 +- ..._vnic_lan_connectivity_policy_inventory.go | 45 +- ..._lan_connectivity_policy_inventory_list.go | 22 +- ...nectivity_policy_inventory_relationship.go | 2 +- ..._connectivity_policy_inventory_response.go | 2 +- model_vnic_lan_connectivity_policy_list.go | 22 +- ...ic_lan_connectivity_policy_relationship.go | 2 +- ...l_vnic_lan_connectivity_policy_response.go | 2 +- model_vnic_lcp_status.go | 41 +- model_vnic_lcp_status_list.go | 22 +- model_vnic_lcp_status_response.go | 2 +- model_vnic_lun.go | 39 +- model_vnic_nvgre_settings.go | 39 +- model_vnic_placement_settings.go | 43 +- model_vnic_plogi_settings.go | 39 +- model_vnic_ptp_settings.go | 39 +- model_vnic_roce_settings.go | 39 +- model_vnic_rss_hash_settings.go | 39 +- model_vnic_san_connectivity_policy.go | 47 +- ..._vnic_san_connectivity_policy_inventory.go | 45 +- ..._san_connectivity_policy_inventory_list.go | 22 +- ...nectivity_policy_inventory_relationship.go | 2 +- ..._connectivity_policy_inventory_response.go | 2 +- model_vnic_san_connectivity_policy_list.go | 22 +- ...ic_san_connectivity_policy_relationship.go | 2 +- ...l_vnic_san_connectivity_policy_response.go | 2 +- model_vnic_scp_status.go | 41 +- model_vnic_scp_status_list.go | 22 +- model_vnic_scp_status_response.go | 2 +- model_vnic_scsi_queue_settings.go | 39 +- model_vnic_sriov_settings.go | 39 +- model_vnic_tcp_offload_settings.go | 39 +- model_vnic_usnic_settings.go | 39 +- model_vnic_vhba_template.go | 45 +- model_vnic_vhba_template_list.go | 22 +- model_vnic_vhba_template_relationship.go | 2 +- model_vnic_vhba_template_response.go | 2 +- model_vnic_vif_status.go | 39 +- model_vnic_vlan_settings.go | 43 +- model_vnic_vmq_settings.go | 39 +- model_vnic_vnic_template.go | 45 +- model_vnic_vnic_template_list.go | 22 +- model_vnic_vnic_template_relationship.go | 2 +- model_vnic_vnic_template_response.go | 2 +- model_vnic_vsan_settings.go | 39 +- model_vnic_vxlan_settings.go | 39 +- model_vrf_vrf.go | 39 +- model_vrf_vrf_list.go | 22 +- model_vrf_vrf_relationship.go | 2 +- model_vrf_vrf_response.go | 2 +- model_workflow_abstract_loop_task.go | 20 +- model_workflow_abstract_resource_selector.go | 20 +- model_workflow_abstract_worker_task.go | 24 +- model_workflow_ansible_batch_executor.go | 39 +- model_workflow_ansible_batch_executor_list.go | 22 +- ...orkflow_ansible_batch_executor_response.go | 2 +- model_workflow_ansible_play_session.go | 39 +- model_workflow_api.go | 24 +- model_workflow_array_data_type.go | 39 +- model_workflow_array_item.go | 20 +- model_workflow_associated_roles.go | 47 +- model_workflow_base_data_type.go | 30 +- model_workflow_base_operation.go | 20 +- model_workflow_batch_api_executor.go | 39 +- model_workflow_batch_api_executor_list.go | 22 +- model_workflow_batch_api_executor_response.go | 2 +- model_workflow_batch_executor.go | 30 +- model_workflow_cancelable_type.go | 41 +- model_workflow_catalog.go | 39 +- model_workflow_catalog_item_definition.go | 49 +- ...l_workflow_catalog_item_definition_list.go | 22 +- ...ow_catalog_item_definition_relationship.go | 2 +- ...rkflow_catalog_item_definition_response.go | 2 +- model_workflow_catalog_list.go | 22 +- model_workflow_catalog_relationship.go | 2 +- model_workflow_catalog_response.go | 2 +- model_workflow_catalog_service_request.go | 57 +- ...l_workflow_catalog_service_request_list.go | 22 +- ...ow_catalog_service_request_relationship.go | 2 +- ...rkflow_catalog_service_request_response.go | 2 +- model_workflow_cli_command.go | 43 +- model_workflow_comments.go | 41 +- model_workflow_constraints.go | 41 +- model_workflow_control_task.go | 20 +- model_workflow_custom_array_item.go | 39 +- model_workflow_custom_data_property.go | 39 +- model_workflow_custom_data_type.go | 39 +- model_workflow_custom_data_type_definition.go | 51 +- ...rkflow_custom_data_type_definition_list.go | 22 +- ...ustom_data_type_definition_relationship.go | 2 +- ...ow_custom_data_type_definition_response.go | 2 +- model_workflow_custom_data_type_properties.go | 39 +- model_workflow_decision_case.go | 39 +- model_workflow_decision_task.go | 43 +- model_workflow_default_value.go | 41 +- model_workflow_display_meta.go | 39 +- ...kflow_dynamic_template_parser_data_type.go | 39 +- model_workflow_end_task.go | 20 +- model_workflow_enum_entry.go | 55 +- model_workflow_error_response_handler.go | 47 +- model_workflow_error_response_handler_list.go | 22 +- ...low_error_response_handler_relationship.go | 2 +- ...orkflow_error_response_handler_response.go | 2 +- model_workflow_expect_prompt.go | 39 +- model_workflow_failure_end_task.go | 20 +- model_workflow_file_download_op.go | 39 +- model_workflow_file_operations.go | 39 +- model_workflow_file_template_op.go | 41 +- model_workflow_file_transfer.go | 39 +- model_workflow_fork_task.go | 41 +- model_workflow_initiator_context.go | 39 +- model_workflow_internal_properties.go | 39 +- model_workflow_join_task.go | 41 +- model_workflow_loop_task.go | 39 +- model_workflow_message.go | 39 +- model_workflow_mo_inventory_data_type.go | 41 +- model_workflow_mo_inventory_property.go | 41 +- model_workflow_mo_reference_array_item.go | 41 +- ...l_workflow_mo_reference_auto_array_item.go | 41 +- model_workflow_mo_reference_auto_data_type.go | 41 +- model_workflow_mo_reference_auto_property.go | 43 +- model_workflow_mo_reference_data_type.go | 41 +- model_workflow_mo_reference_property.go | 45 +- model_workflow_operation_type_decommission.go | 39 +- model_workflow_operation_type_deployment.go | 20 +- ...workflow_operation_type_post_deployment.go | 39 +- model_workflow_parameter_set.go | 45 +- model_workflow_power_shell_api.go | 41 +- ...workflow_power_shell_batch_api_executor.go | 39 +- ...low_power_shell_batch_api_executor_list.go | 22 +- ...power_shell_batch_api_executor_response.go | 2 +- model_workflow_primitive_array_item.go | 39 +- model_workflow_primitive_data_property.go | 41 +- model_workflow_primitive_data_type.go | 39 +- model_workflow_properties.go | 43 +- model_workflow_resource_inline_selector.go | 43 +- model_workflow_resource_selector_criteria.go | 41 +- model_workflow_result_handler.go | 20 +- model_workflow_rollback_task.go | 41 +- model_workflow_rollback_workflow.go | 45 +- model_workflow_rollback_workflow_list.go | 22 +- model_workflow_rollback_workflow_response.go | 2 +- model_workflow_rollback_workflow_task.go | 39 +- model_workflow_selector_property.go | 41 +- model_workflow_sequence_params.go | 20 +- model_workflow_serial_loop_task.go | 39 +- ...workflow_service_item_action_definition.go | 65 +- ...low_service_item_action_definition_list.go | 22 +- ...ice_item_action_definition_relationship.go | 2 +- ...service_item_action_definition_response.go | 2 +- ...l_workflow_service_item_action_instance.go | 49 +- ...kflow_service_item_action_instance_list.go | 22 +- ...rvice_item_action_instance_relationship.go | 2 +- ...w_service_item_action_instance_response.go | 2 +- ...workflow_service_item_action_properties.go | 39 +- ...service_item_action_workflow_definition.go | 45 +- model_workflow_service_item_attribute.go | 41 +- model_workflow_service_item_attribute_list.go | 22 +- ...orkflow_service_item_attribute_response.go | 2 +- model_workflow_service_item_definition.go | 51 +- ...l_workflow_service_item_definition_list.go | 22 +- ...ow_service_item_definition_relationship.go | 2 +- ...rkflow_service_item_definition_response.go | 2 +- ...ow_service_item_health_check_definition.go | 39 +- ...rvice_item_health_check_definition_list.go | 22 +- ...em_health_check_definition_relationship.go | 2 +- ...e_item_health_check_definition_response.go | 2 +- ...low_service_item_health_check_execution.go | 41 +- ...ervice_item_health_check_execution_list.go | 22 +- ...ce_item_health_check_execution_response.go | 2 +- ...flow_service_item_input_definition_type.go | 43 +- model_workflow_service_item_instance.go | 49 +- model_workflow_service_item_instance_list.go | 22 +- ...flow_service_item_instance_relationship.go | 2 +- ...workflow_service_item_instance_response.go | 2 +- model_workflow_service_item_output.go | 41 +- model_workflow_service_item_output_list.go | 22 +- ...l_workflow_service_item_output_response.go | 2 +- model_workflow_service_item_type.go | 45 +- model_workflow_ssh_batch_executor.go | 39 +- model_workflow_ssh_batch_executor_list.go | 22 +- model_workflow_ssh_batch_executor_response.go | 2 +- model_workflow_ssh_cmd.go | 41 +- model_workflow_ssh_config.go | 39 +- model_workflow_ssh_session.go | 43 +- model_workflow_start_task.go | 39 +- model_workflow_sub_workflow_task.go | 39 +- model_workflow_success_end_task.go | 20 +- model_workflow_target_context.go | 39 +- model_workflow_target_data_type.go | 41 +- model_workflow_target_property.go | 89 +- model_workflow_task_constraints.go | 41 +- model_workflow_task_debug_log.go | 41 +- model_workflow_task_debug_log_list.go | 22 +- model_workflow_task_debug_log_response.go | 2 +- model_workflow_task_definition.go | 51 +- model_workflow_task_definition_list.go | 22 +- ...l_workflow_task_definition_relationship.go | 2 +- model_workflow_task_definition_response.go | 2 +- model_workflow_task_info.go | 49 +- model_workflow_task_info_list.go | 22 +- model_workflow_task_info_relationship.go | 2 +- model_workflow_task_info_response.go | 2 +- model_workflow_task_info_update.go | 41 +- model_workflow_task_loop_info.go | 39 +- model_workflow_task_metadata.go | 49 +- model_workflow_task_metadata_list.go | 22 +- model_workflow_task_metadata_relationship.go | 2 +- model_workflow_task_metadata_response.go | 2 +- model_workflow_task_retry_info.go | 39 +- model_workflow_template_evaluation.go | 45 +- model_workflow_template_function_meta.go | 43 +- model_workflow_template_function_meta_list.go | 22 +- ...orkflow_template_function_meta_response.go | 2 +- model_workflow_template_parser.go | 41 +- model_workflow_ui_display_metadata.go | 43 +- model_workflow_ui_display_metadata_list.go | 22 +- ...l_workflow_ui_display_metadata_response.go | 2 +- model_workflow_ui_form_config.go | 41 +- model_workflow_ui_input_filter.go | 45 +- model_workflow_ui_view_config.go | 41 +- model_workflow_validation_error.go | 39 +- model_workflow_validation_information.go | 41 +- model_workflow_wait_task.go | 45 +- model_workflow_wait_task_prompt.go | 39 +- model_workflow_web_api.go | 43 +- model_workflow_worker_task.go | 39 +- model_workflow_workflow_ctx.go | 41 +- model_workflow_workflow_definition.go | 63 +- model_workflow_workflow_definition_list.go | 22 +- ...rkflow_workflow_definition_relationship.go | 2 +- ...l_workflow_workflow_definition_response.go | 2 +- model_workflow_workflow_engine_properties.go | 20 +- model_workflow_workflow_info.go | 53 +- ...w_workflow_info_auto_restart_properties.go | 20 +- model_workflow_workflow_info_list.go | 22 +- model_workflow_workflow_info_properties.go | 39 +- model_workflow_workflow_info_relationship.go | 2 +- model_workflow_workflow_info_response.go | 2 +- model_workflow_workflow_metadata.go | 49 +- model_workflow_workflow_metadata_list.go | 22 +- ...workflow_workflow_metadata_relationship.go | 2 +- model_workflow_workflow_metadata_response.go | 2 +- model_workflow_workflow_properties.go | 39 +- model_workflow_workflow_task.go | 24 +- model_workflow_xml_api.go | 20 +- model_workspace_folder.go | 47 +- model_workspace_folder_list.go | 22 +- model_workspace_folder_relationship.go | 2 +- model_workspace_folder_response.go | 2 +- model_x509_certificate.go | 39 +- response.go | 2 +- signing.go | 2 +- utils.go | 18 +- 5056 files changed, 162198 insertions(+), 29760 deletions(-) diff --git a/README.md b/README.md index d03701f91c..7f60925bc0 100644 --- a/README.md +++ b/README.md @@ -5,8 +5,9 @@ No description provided (generated by Openapi Generator https://github.com/opena ## Overview This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project. By using the [OpenAPI-spec](https://www.openapis.org/) from a remote server, you can easily generate an API client. -- API version: 1.0.11-17956 -- Package version: 1.0.11.17956 +- API version: 1.0.11-18012 +- Package version: 1.0.11.18012 +- Generator version: 7.9.0-SNAPSHOT - Build package: org.openapitools.codegen.languages.GoClientCodegen For more information, please visit [https://intersight.com/help](https://intersight.com/help) diff --git a/api/openapi.yaml b/api/openapi.yaml index d0e7657ed9..7dc9019534 100644 --- a/api/openapi.yaml +++ b/api/openapi.yaml @@ -8,7 +8,7 @@ info: name: "Apache License, Version 2.0" url: https://www.apache.org/licenses/LICENSE-2.0.html title: Cisco Intersight - version: 1.0.11-17956 + version: 1.0.11-18012 externalDocs: description: Online documentation for the Intersight APIs url: /apidocs @@ -712142,6 +712142,10 @@ components: type: object telemetry.DruidError: description: The error response when a Druid query fails. + example: + errorClass: "" + errorMessage: errorMessage + error: error properties: error: description: A well-defined error code. @@ -714510,14 +714514,7 @@ components: type: string type: array subtotalsSpec: - description: "A JSON array of arrays to return additional result sets\ - \ for groupings of subsets of top level dimensions. The subtotals feature\ - \ allows computation of multiple sub-groupings in a single query. To\ - \ use this feature, add a \"subtotalsSpec\" to your query, which should\ - \ be a list of subgroup dimension sets. It should contain the \"outputName\"\ - \ from dimensions in your \"dimensions\" attribute, in the same order\ - \ as they appear in the \"dimensions\" attribute." - type: object + $ref: '#/components/schemas/telemetry_DruidGroupByRequest_allOf_subtotalsSpec' context: $ref: '#/components/schemas/telemetry.DruidQueryContext' required: @@ -714787,9 +714784,7 @@ components: type: string type: array toInclude: - description: A JSON Object representing what columns should be included - in the result. Defaults to "all". - type: object + $ref: '#/components/schemas/telemetry_DruidSegmentMetadataRequest_allOf_toInclude' merge: description: Merge all individual segment metadata results into a single result. @@ -715066,7 +715061,6 @@ components: description: AuditRecord presents the configuration changes made by the user per transaction. example: - ObjectType: aaa.AuditRecord Account: ObjectType: aaa.AuditRecord link: link @@ -715074,25 +715068,99 @@ components: ClassId: mo.MoRef Selector: Selector Email: Email - SourceIp: SourceIp User: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - InstId: InstId + Parent: null + ClassId: aaa.AuditRecord + Timestamp: 2000-01-23T04:56:07.000+00:00 + Owners: + - Owners + - Owners + AffectedObjectTypeLabel: AffectedObjectTypeLabel + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: aaa.AuditRecord + MoDisplayNames: "" + UserAgent: + SoftwareFamily: SoftwareFamily + ObjectType: aaa.UserAgent + SoftwareVersion: SoftwareVersion + OsVersion: OsVersion + ClassId: aaa.UserAgent + OsFamily: OsFamily + SoftwareType: SoftwareType + SoftwareSubtype: SoftwareSubtype + ObjectMoid: ObjectMoid + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + SessionId: SessionId + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key + SharedScope: SharedScope + CreateTime: 2000-01-23T04:56:07.000+00:00 Sessions: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + Request: "" + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + SourceIp: SourceIp + InstId: InstId + MoType: MoType + Moid: Moid + Event: Event + TraceId: TraceId UserIdOrEmail: UserIdOrEmail - ClassId: aaa.AuditRecord - SessionId: SessionId - Timestamp: 2000-01-23T04:56:07.000+00:00 - AffectedObjectTypeLabel: AffectedObjectTypeLabel + UserAgentString: UserAgentString title: Aaa:Audit Record x-allOf-name: aaa.AuditRecord aaa.AuditRecord.List: @@ -715317,15 +715385,74 @@ components: description: An account level policy specifying the period for the audit log retention. example: - ObjectType: aaa.RetentionPolicy Account: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + Description: Description + SharedScope: SharedScope + Parent: null + CreateTime: 2000-01-23T04:56:07.000+00:00 ClassId: aaa.RetentionPolicy + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null RetentionPeriod: 3 + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Owners: + - Owners + - Owners + Name: Name + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: aaa.RetentionPolicy + Moid: Moid + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key title: Audit Log Retention Policy x-allOf-name: aaa.RetentionPolicy aaa.RetentionPolicy.List: @@ -715422,6 +715549,15 @@ components: \ about the operating system family and version that initiated the request.\ \ The user agent also has information about the software client that made\ \ the request which includes the software type (browser, SDK, etc.) and version." + example: + SoftwareFamily: SoftwareFamily + ObjectType: aaa.UserAgent + SoftwareVersion: SoftwareVersion + OsVersion: OsVersion + ClassId: aaa.UserAgent + OsFamily: OsFamily + SoftwareType: SoftwareType + SoftwareSubtype: SoftwareSubtype nullable: true title: Aaa:User Agent x-allOf-name: aaa.UserAgent @@ -715605,24 +715741,83 @@ components: type: object description: IP address and Lease information for a specific Server Profile. example: - ObjectType: access.IpAddress - Ipv4Lease: - ObjectType: aaa.AuditRecord + Description: Description + SharedScope: SharedScope + Parent: null + CreateTime: 2000-01-23T04:56:07.000+00:00 + ClassId: access.IpAddress + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + OobIpv4Lease: null + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - Ipv6Lease: null - ClassId: access.IpAddress - OobIpv4Lease: null - Ipv6Address: Ipv6Address - OobIpv4Address: OobIpv4Address Profile: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + Owners: + - Owners + - Owners + Name: Name + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: access.IpAddress + Ipv4Lease: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Moid: Moid + Ipv6Lease: null + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key + Ipv6Address: Ipv6Address + OobIpv4Address: OobIpv4Address Ipv4Address: Ipv4Address title: IP Address Lease Information x-allOf-name: access.IpAddress @@ -715724,12 +715919,7 @@ components: type: object description: Policy to configure server or chassis management options. example: - ConfigurationType: - ObjectType: access.ConfigurationType - ConfigureOutOfBand: false - ConfigureInband: true - ClassId: access.ConfigurationType - ObjectType: access.Policy + Description: Description Organization: ObjectType: aaa.AuditRecord link: link @@ -715737,13 +715927,72 @@ components: ClassId: mo.MoRef Selector: Selector OutOfBandVrf: null - InbandIpPool: - ObjectType: aaa.AuditRecord + Parent: null + ClassId: access.Policy + Owners: + - Owners + - Owners + Name: Name + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: access.Policy + Profiles: + - ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - Profiles: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + InbandVlan: 331 + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key + ConfigurationType: + ObjectType: access.ConfigurationType + ConfigureOutOfBand: false + ConfigureInband: true + ClassId: access.ConfigurationType + SharedScope: SharedScope + CreateTime: 2000-01-23T04:56:07.000+00:00 + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + AccountMoid: AccountMoid + Ancestors: - ObjectType: aaa.AuditRecord link: link Moid: Moid @@ -715754,8 +716003,14 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector - ClassId: access.Policy - InbandVlan: 331 + OutOfBandIpPool: null + InbandIpPool: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Moid: Moid InbandVrf: ObjectType: aaa.AuditRecord link: link @@ -715767,7 +716022,6 @@ components: ClassId: access.AddressType EnableIpV4: true EnableIpV6: false - OutOfBandIpPool: null title: Access Policy x-allOf-name: access.Policy access.Policy.List: @@ -715862,27 +716116,83 @@ components: type: object description: Policy to configure server or chassis management options. example: + Description: Description + OutOfBandVrf: null + Parent: null + ClassId: access.PolicyInventory + Owners: + - Owners + - Owners + Name: Name + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: access.PolicyInventory + InbandVlan: 331 + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key ConfigurationType: ObjectType: access.ConfigurationType ConfigureOutOfBand: false ConfigureInband: true ClassId: access.ConfigurationType - ObjectType: access.PolicyInventory - TargetMo: - ObjectType: aaa.AuditRecord + SharedScope: SharedScope + CreateTime: 2000-01-23T04:56:07.000+00:00 + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + AccountMoid: AccountMoid + DeviceMoId: DeviceMoId + Ancestors: + - ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - OutOfBandVrf: null + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + OutOfBandIpPool: null + TargetMo: null InbandIpPool: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - ClassId: access.PolicyInventory - InbandVlan: 331 + Moid: Moid InbandVrf: ObjectType: aaa.AuditRecord link: link @@ -715894,7 +716204,6 @@ components: ClassId: access.AddressType EnableIpV4: true EnableIpV6: false - OutOfBandIpPool: null title: Access Policy x-allOf-name: access.PolicyInventory access.PolicyInventory.List: @@ -716074,13 +716383,62 @@ components: description: An Adapter Configuration Policy configures the Ethernet and Fibre-Channel settings for the VIC adapter. example: - ObjectType: adapter.ConfigPolicy + Description: Description Organization: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + SharedScope: SharedScope + Parent: null + CreateTime: 2000-01-23T04:56:07.000+00:00 + ClassId: adapter.ConfigPolicy + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Owners: + - Owners + - Owners + Name: Name + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: adapter.ConfigPolicy Profiles: - ObjectType: aaa.AuditRecord link: link @@ -716092,7 +716450,17 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector - ClassId: adapter.ConfigPolicy + Moid: Moid + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key Settings: - ObjectType: adapter.AdapterConfig SlotId: SlotId @@ -716454,39 +716822,107 @@ components: type: object description: Physical port of a virtual interface card. example: - ExtEthInterfaceId: ExtEthInterfaceId PeerSlotId: 1 - RegisteredDevice: + OperState: OperState + Parent: null + InventoryDeviceInfo: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - InventoryDeviceInfo: + AcknowledgedPeerInterface: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + PeerInterface: null ClassId: adapter.ExtEthInterface SwitchId: SwitchId - MacAddress: MacAddress AdminState: AdminState - PeerDn: PeerDn - OperReason: - - Unknown - - Unknown + Owners: + - Owners + - Owners + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified ObjectType: adapter.ExtEthInterface InterfaceType: InterfaceType EpDn: EpDn - PeerPortId: 6 + DisplayNames: + key: + - DisplayNames + - DisplayNames + Rn: Rn + ModTime: 2000-01-23T04:56:07.000+00:00 AdapterUnit: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key PeerAggrPortId: 0 + ExtEthInterfaceId: ExtEthInterfaceId + RegisteredDevice: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + SharedScope: SharedScope + CreateTime: 2000-01-23T04:56:07.000+00:00 + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + Dn: Dn + MacAddress: MacAddress + AccountMoid: AccountMoid + DeviceMoId: DeviceMoId + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + PeerDn: PeerDn + OperReason: + - Unknown + - Unknown + Moid: Moid + PeerPortId: 6 title: Adapter:Ext Eth Interface x-allOf-name: adapter.ExtEthInterface adapter.ExtEthInterface.List: @@ -717026,24 +717462,92 @@ components: description: Physical / Virtual port of an adapter as seen by the host. example: VifId: 5 + OperState: OperState + PeerInterface: null + ClassId: adapter.HostEthInterface + AdminState: AdminState + Name: Name + PciAddr: PciAddr + Operability: Operability + InterfaceType: InterfaceType + EpDn: EpDn + VnicDn: VnicDn + ModTime: 2000-01-23T04:56:07.000+00:00 + AdapterUnit: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key + VirtualizationPreference: VirtualizationPreference + RegisteredDevice: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + StandbyVethOperState: unknown + SharedScope: SharedScope + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + Dn: Dn + StandbyOperState: StandbyOperState + MacAddress: MacAddress + DeviceMoId: DeviceMoId + QinqVlan: 6 + ActiveOperState: ActiveOperState + Parent: null InventoryDeviceInfo: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + AcknowledgedPeerInterface: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector OriginalMacAddress: OriginalMacAddress VethAction: None - ClassId: adapter.HostEthInterface ActiveVethOperState: unknown - AdminState: AdminState Vethernet: null - Name: Name - PciAddr: PciAddr - Operability: Operability + Owners: + - Owners + - Owners + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified ObjectType: adapter.HostEthInterface - InterfaceType: InterfaceType - EpDn: EpDn QinqEnabled: true StandbyVethernet: ObjectType: aaa.AuditRecord @@ -717051,38 +717555,38 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector - VnicDn: VnicDn + DisplayNames: + key: + - DisplayNames + - DisplayNames + Rn: Rn PinnedInterface: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - AdapterUnit: - ObjectType: aaa.AuditRecord + PinGroupName: PinGroupName + CreateTime: 2000-01-23T04:56:07.000+00:00 + HostEthInterfaceId: 0 + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - PinGroupName: PinGroupName - VirtualizationPreference: VirtualizationPreference - RegisteredDevice: - ObjectType: aaa.AuditRecord + - ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - StandbyVethOperState: unknown - HostEthInterfaceId: 0 - StandbyOperState: StandbyOperState - MacAddress: MacAddress PeerDn: PeerDn OperReason: - Unknown - Unknown StandbyVifId: 1 - QinqVlan: 6 - ActiveOperState: ActiveOperState + Moid: Moid title: Adapter:Host Eth Interface x-allOf-name: adapter.HostEthInterface adapter.HostEthInterface.List: @@ -717468,28 +717972,45 @@ components: description: Host facing fibre channel interface on a server adapter. example: VifId: 6 - RegisteredDevice: - ObjectType: aaa.AuditRecord - link: link - Moid: Moid - ClassId: mo.MoRef - Selector: Selector OperState: OperState + Parent: null InventoryDeviceInfo: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - Wwnn: Wwnn ClassId: adapter.HostFcInterface OriginalWwnn: OriginalWwnn AdminState: AdminState - PeerDn: PeerDn + Owners: + - Owners + - Owners Name: Name - OperReason: - - Unknown - - Unknown + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified Operability: Operability ObjectType: adapter.HostFcInterface Vfc: @@ -717500,22 +718021,77 @@ components: Selector: Selector EpDn: EpDn OriginalWwpn: OriginalWwpn + IsUpgraded: false Wwpn: Wwpn + Presence: Presence HostFcInterfaceId: 0 - VfcAction: None + DisplayNames: + key: + - DisplayNames + - DisplayNames + Rn: Rn PinnedInterface: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + ModTime: 2000-01-23T04:56:07.000+00:00 AdapterUnit: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key PinGroupName: PinGroupName + RegisteredDevice: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + SharedScope: SharedScope + CreateTime: 2000-01-23T04:56:07.000+00:00 + PreviousFru: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Wwnn: Wwnn + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + Dn: Dn + Vendor: Vendor + AccountMoid: AccountMoid + DeviceMoId: DeviceMoId + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + PeerDn: PeerDn + OperReason: + - Unknown + - Unknown + Serial: Serial + Revision: Revision + Model: Model + Moid: Moid + VfcAction: None title: Adapter:Host Fc Interface x-allOf-name: adapter.HostFcInterface adapter.HostFcInterface.List: @@ -717651,13 +718227,8 @@ components: type: object description: Iscsi interface on a server adapter. example: - RegisteredDevice: - ObjectType: aaa.AuditRecord - link: link - Moid: Moid - ClassId: mo.MoRef - Selector: Selector OperState: OperState + Parent: null InventoryDeviceInfo: ObjectType: aaa.AuditRecord link: link @@ -717666,20 +718237,97 @@ components: Selector: Selector HostIscsiInterfaceId: 0 ClassId: adapter.HostIscsiInterface - MacAddress: MacAddress AdminState: AdminState - PeerDn: PeerDn + Owners: + - Owners + - Owners Name: Name + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified Operability: Operability ObjectType: adapter.HostIscsiInterface - HostVisible: HostVisible EpDn: EpDn + IsUpgraded: false + Presence: Presence + DisplayNames: + key: + - DisplayNames + - DisplayNames + Rn: Rn + ModTime: 2000-01-23T04:56:07.000+00:00 AdapterUnit: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key + RegisteredDevice: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + SharedScope: SharedScope + CreateTime: 2000-01-23T04:56:07.000+00:00 + PreviousFru: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + Dn: Dn + Vendor: Vendor + MacAddress: MacAddress + AccountMoid: AccountMoid + DeviceMoId: DeviceMoId + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + PeerDn: PeerDn + HostVisible: HostVisible + Serial: Serial + Revision: Revision + Model: Model + Moid: Moid title: Adapter:Host Iscsi Interface x-allOf-name: adapter.HostIscsiInterface adapter.HostIscsiInterface.List: @@ -718008,6 +718656,7 @@ components: example: OperState: OperState PartNumber: PartNumber + Parent: null PciSlot: PciSlot InventoryDeviceInfo: ObjectType: aaa.AuditRecord @@ -718028,8 +718677,36 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector + Owners: + - Owners + - Owners + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified Operability: Operability ObjectType: adapter.Unit + IsUpgraded: false HostFcIfs: - ObjectType: aaa.AuditRecord link: link @@ -718041,6 +718718,7 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector + Presence: Presence HostEthIfs: - ObjectType: aaa.AuditRecord link: link @@ -718052,7 +718730,13 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector + DisplayNames: + key: + - DisplayNames + - DisplayNames + Rn: Rn ConnectionStatus: ConnectionStatus + ModTime: 2000-01-23T04:56:07.000+00:00 Integrated: Integrated ExtEthIfs: - ObjectType: aaa.AuditRecord @@ -718065,6 +718749,11 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key AdapterUnitExpander: ObjectType: aaa.AuditRecord link: link @@ -718078,18 +718767,48 @@ components: ClassId: mo.MoRef Selector: Selector VicCommunicable: Not Applicable + SharedScope: SharedScope + CreateTime: 2000-01-23T04:56:07.000+00:00 + PreviousFru: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector AdapterId: AdapterId + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + Dn: Dn + Vendor: Vendor Controller: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + AccountMoid: AccountMoid + DeviceMoId: DeviceMoId + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector OperReason: - Unknown - Unknown Vid: Vid + Serial: Serial BaseMacAddress: BaseMacAddress + Revision: Revision + Model: Model HostIscsiIfs: - ObjectType: aaa.AuditRecord link: link @@ -718101,6 +718820,7 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector + Moid: Moid Power: Power Thermal: Thermal title: Adapter:Unit @@ -718199,22 +718919,94 @@ components: type: object description: The adapter unit extension card present on a server. example: - Vid: Vid + PartNumber: PartNumber + Parent: null + ClassId: adapter.UnitExpander + Owners: + - Owners + - Owners + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified ObjectType: adapter.UnitExpander + IsUpgraded: false + Presence: Presence + DisplayNames: + key: + - DisplayNames + - DisplayNames + Rn: Rn + ModTime: 2000-01-23T04:56:07.000+00:00 + AdapterUnit: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key RegisteredDevice: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - PartNumber: PartNumber - ClassId: adapter.UnitExpander - AdapterUnit: + SharedScope: SharedScope + CreateTime: 2000-01-23T04:56:07.000+00:00 + PreviousFru: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + Dn: Dn + Vendor: Vendor + AccountMoid: AccountMoid + DeviceMoId: DeviceMoId + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Vid: Vid + Serial: Serial + Revision: Revision + Model: Model + Moid: Moid title: Adapter:Unit Expander x-allOf-name: adapter.UnitExpander adapter.UnitExpander.List: @@ -718298,10 +719090,73 @@ components: type: object description: Cisco Application Policy Infrastructure Controller Pods. example: - ObjectType: apic.AciPod + RegisteredDevice: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + SharedScope: SharedScope + Parent: null + CreateTime: 2000-01-23T04:56:07.000+00:00 ClassId: apic.AciPod - PodType: PodType + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Owners: + - Owners + - Owners Name: Name + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: apic.AciPod + Moid: Moid + PodType: PodType + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key title: Apic:Aci Pod x-allOf-name: apic.AciPod apic.AciPod.List: @@ -718396,16 +719251,79 @@ components: type: object description: Cisco Application Policy Infrastructure Controller. example: - ObjectType: apic.Application - Tenant: + RegisteredDevice: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + SharedScope: SharedScope + Parent: null + CreateTime: 2000-01-23T04:56:07.000+00:00 ClassId: apic.Application + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null Dn: Dn + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Owners: + - Owners + - Owners Name: Name + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: apic.Application + Tenant: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Moid: Moid + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key title: Apic:Application x-allOf-name: apic.Application apic.Application.List: @@ -718490,16 +719408,79 @@ components: type: object description: APIC Application Endpoint Group. example: - ObjectType: apic.ApplicationEndpointGroup + RegisteredDevice: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + SharedScope: SharedScope + Parent: null + CreateTime: 2000-01-23T04:56:07.000+00:00 ClassId: apic.ApplicationEndpointGroup + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null Dn: Dn + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Owners: + - Owners + - Owners + Name: Name + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: apic.ApplicationEndpointGroup + Moid: Moid + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 Application: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - Name: Name + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key title: Apic:Application Endpoint Group x-allOf-name: apic.ApplicationEndpointGroup apic.ApplicationEndpointGroup.List: @@ -718595,16 +719576,79 @@ components: type: object description: Cisco Application Policy Infrastructure Controller Bridge Domains. example: - ObjectType: apic.BridgeDomain - Tenant: + RegisteredDevice: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + SharedScope: SharedScope + Parent: null + CreateTime: 2000-01-23T04:56:07.000+00:00 ClassId: apic.BridgeDomain + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null Dn: Dn + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Owners: + - Owners + - Owners Name: Name + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: apic.BridgeDomain + Tenant: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Moid: Moid + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key title: Apic:Bridge Domain x-allOf-name: apic.BridgeDomain apic.BridgeDomain.List: @@ -718687,10 +719731,73 @@ components: type: object description: APIC External Routed L3Domains. example: - ObjectType: apic.ExternalRoutedLayerThreeDomain + RegisteredDevice: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + SharedScope: SharedScope + Parent: null + CreateTime: 2000-01-23T04:56:07.000+00:00 ClassId: apic.ExternalRoutedLayerThreeDomain + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null Dn: Dn + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Owners: + - Owners + - Owners Name: Name + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: apic.ExternalRoutedLayerThreeDomain + Moid: Moid + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key title: Apic:External Routed Layer Three Domain x-allOf-name: apic.ExternalRoutedLayerThreeDomain apic.ExternalRoutedLayerThreeDomain.List: @@ -718797,17 +719904,80 @@ components: description: Cisco Application Policy Infrastructure Controller Fabric Leaf Nodes. example: - ObjectType: apic.FabricLeafNode + RegisteredDevice: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector Address: Address Pod: Pod + SharedScope: SharedScope + Parent: null + CreateTime: 2000-01-23T04:56:07.000+00:00 + ClassId: apic.FabricLeafNode + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + Dn: Dn + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Owners: + - Owners + - Owners + Name: Name + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: apic.FabricLeafNode FabricLeafNodeDetails: ObjectType: apic.FabricLeafNodeDetails ClassId: apic.FabricLeafNodeDetails Id: Id Name: Name - ClassId: apic.FabricLeafNode - Dn: Dn - Name: Name + Moid: Moid + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key title: Apic:Fabric Leaf Node x-allOf-name: apic.FabricLeafNode apic.FabricLeafNode.List: @@ -718949,6 +720119,61 @@ components: type: object description: APIC Fabric Leaf Node Interfaces. example: + RegisteredDevice: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + SharedScope: SharedScope + Parent: null + CreateTime: 2000-01-23T04:56:07.000+00:00 + ClassId: apic.FabricLeafNodeInterface + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + Dn: Dn + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Owners: + - Owners + - Owners + Name: Name + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified ObjectType: apic.FabricLeafNodeInterface FabricLeafNodeId: FabricLeafNodeId FabricLeafNode: @@ -718957,10 +720182,18 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector - ClassId: apic.FabricLeafNodeInterface - Dn: Dn + Moid: Moid FabricLeafNodeDn: FabricLeafNodeDn - Name: Name + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key title: Apic:Fabric Leaf Node Interface x-allOf-name: apic.FabricLeafNodeInterface apic.FabricLeafNodeInterface.List: @@ -719102,16 +720335,79 @@ components: type: object description: Cisco Application Policy Infrastructure Controller L3Out. example: - ObjectType: apic.Out - Tenant: + RegisteredDevice: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + SharedScope: SharedScope + Parent: null + CreateTime: 2000-01-23T04:56:07.000+00:00 ClassId: apic.Out + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null Dn: Dn + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Owners: + - Owners + - Owners Name: Name + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: apic.Out + Tenant: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Moid: Moid + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key title: Apic:Out x-allOf-name: apic.Out apic.Out.List: @@ -719201,9 +720497,21 @@ components: type: object description: APIC Bridge Domain Subnets. example: - ObjectType: apic.Subnet + RegisteredDevice: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + SharedScope: SharedScope + Parent: null + CreateTime: 2000-01-23T04:56:07.000+00:00 Ip: Ip ClassId: apic.Subnet + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null Dn: Dn BridgeDomain: ObjectType: aaa.AuditRecord @@ -719211,7 +720519,58 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Owners: + - Owners + - Owners Name: Name + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: apic.Subnet + Moid: Moid + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key title: Apic:Subnet x-allOf-name: apic.Subnet apic.Subnet.List: @@ -719308,11 +720667,74 @@ components: type: object description: Cisco Application Policy Infrastructure Controller Tenants. example: - ObjectType: apic.Tenant + RegisteredDevice: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector Description: Description + SharedScope: SharedScope + Parent: null + CreateTime: 2000-01-23T04:56:07.000+00:00 ClassId: apic.Tenant + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null Dn: Dn + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Owners: + - Owners + - Owners Name: Name + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: apic.Tenant + Moid: Moid + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key title: Apic:Tenant x-allOf-name: apic.Tenant apic.Tenant.List: @@ -719395,10 +720817,73 @@ components: type: object description: Cisco Application Policy Infrastructure Controller VPC Groups. example: - ObjectType: apic.VpcGroup + RegisteredDevice: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + SharedScope: SharedScope + Parent: null + CreateTime: 2000-01-23T04:56:07.000+00:00 ClassId: apic.VpcGroup + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null Dn: Dn + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Owners: + - Owners + - Owners Name: Name + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: apic.VpcGroup + Moid: Moid + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key title: Apic:Vpc Group x-allOf-name: apic.VpcGroup apic.VpcGroup.List: @@ -719481,16 +720966,79 @@ components: type: object description: VRFs configured on cisco APIC. example: - ObjectType: apic.Vrfs - Tenant: + RegisteredDevice: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + SharedScope: SharedScope + Parent: null + CreateTime: 2000-01-23T04:56:07.000+00:00 ClassId: apic.Vrfs + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null Dn: Dn + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Owners: + - Owners + - Owners Name: Name + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: apic.Vrfs + Tenant: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Moid: Moid + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key title: Apic:Vrfs x-allOf-name: apic.Vrfs apic.Vrfs.List: @@ -720396,24 +721944,87 @@ components: Appliance. There will be only one Backup managed object with a 'Started' state at any time. All other Backup managed objects will be in terminal states. example: - Status: Started - ObjectType: appliance.Backup Account: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + EndTime: 2000-01-23T04:56:07.000+00:00 + Parent: null + ElapsedTime: 6 + ClassId: appliance.Backup + RemotePath: RemotePath + Owners: + - Owners + - Owners + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: appliance.Backup + DisplayNames: + key: + - DisplayNames + - DisplayNames + Protocol: scp + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key + Password: Password + Status: Started IsManual: true IsPasswordSet: false Messages: - Messages - Messages - EndTime: 2000-01-23T04:56:07.000+00:00 + SharedScope: SharedScope + RemotePort: 0 + CreateTime: 2000-01-23T04:56:07.000+00:00 StartTime: 2000-01-23T04:56:07.000+00:00 - ElapsedTime: 0 - ClassId: appliance.Backup - Password: Password + Filename: Filename + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + RemoteHost: RemoteHost + Username: Username + Moid: Moid title: Appliance:Backup x-allOf-name: appliance.Backup appliance.Backup.List: @@ -720794,30 +722405,93 @@ components: managed object is created during the Intersight Appliance setup, and it is configured in the manual backup mode. example: - ObjectType: appliance.BackupPolicy Account: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + Parent: null + ClassId: appliance.BackupPolicy + RemotePath: RemotePath + ManualBackup: true + Owners: + - Owners + - Owners + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: appliance.BackupPolicy + DisplayNames: + key: + - DisplayNames + - DisplayNames + Protocol: scp + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key + Password: Password IsPasswordSet: false + SharedScope: SharedScope + RemotePort: 0 + CreateTime: 2000-01-23T04:56:07.000+00:00 + Filename: Filename + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + BackupTime: 2000-01-23T04:56:07.000+00:00 + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + RemoteHost: RemoteHost + Username: Username Schedule: ObjectType: onprem.Schedule - DayOfWeek: 1 - TimeOfDay: 19890 + DayOfWeek: 4 + TimeOfDay: 61009 TimeZone: Pacific/Niue - MonthOfYear: 7 - DayOfMonth: 18 + MonthOfYear: 6 + DayOfMonth: 4 ClassId: onprem.Schedule - WeekOfMonth: 3 - RepeatInterval: 5 + WeekOfMonth: 4 + RepeatInterval: 2 + Moid: Moid RetentionPolicyEnabled: true - ClassId: appliance.BackupPolicy - BackupTime: 2000-01-23T04:56:07.000+00:00 - ManualBackup: true - RetentionCount: 0 - Password: Password + RetentionCount: 6 title: Appliance:Backup Policy x-allOf-name: appliance.BackupPolicy appliance.BackupPolicy.List: @@ -720900,178 +722574,6 @@ components: description: |- Keeps track of all current backups being manage by the backup rotate policy. It is used to actively manage backups as part of the rotation. - example: - ObjectType: appliance.BackupRotateData - Account: - ObjectType: aaa.AuditRecord - link: link - Moid: Moid - ClassId: mo.MoRef - Selector: Selector - ClassId: appliance.BackupRotateData - BackupTime: 2000-01-23T04:56:07.000+00:00 - title: Appliance:Backup Rotate Data - x-allOf-name: appliance.BackupRotateData - appliance.BackupRotateData.List: - allOf: - - $ref: '#/components/schemas/mo.BaseResponse' - - properties: - Count: - description: |- - The total number of 'appliance.BackupRotateData' resources matching the request, accross all pages. - The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. - format: int32 - type: integer - Results: - description: The array of 'appliance.BackupRotateData' resources matching - the request. - items: - $ref: '#/components/schemas/appliance.BackupRotateData' - nullable: true - type: array - type: object - description: This resource list is returned as a response to a HTTP GET request - that does not include a specific resource identifier. - title: List of 'appliance.BackupRotateData' resources - appliance.CertRenewalPhase: - allOf: - - $ref: '#/components/schemas/mo.BaseComplexType' - - description: "Definition of the list of properties defined in 'appliance.CertRenewalPhase',\ - \ excluding properties defined in parent classes." - properties: - ClassId: - default: appliance.CertRenewalPhase - description: |- - The fully-qualified name of the instantiated, concrete type. - This property is used as a discriminator to identify the type of the payload - when marshaling and unmarshaling data. - enum: - - appliance.CertRenewalPhase - type: string - x-enum-as-string: true - ObjectType: - default: appliance.CertRenewalPhase - description: |- - The fully-qualified name of the instantiated, concrete type. - The value should be the same as the 'ClassId' property. - enum: - - appliance.CertRenewalPhase - type: string - x-enum-as-string: true - EndTime: - description: End date of the certificate renewal phase. - format: date-time - readOnly: true - type: string - x-omitempty: true - Failed: - description: Indicates if the certificate renewal phase has failed or - not. - readOnly: true - type: boolean - x-omitempty: true - Message: - description: Status message set during the certificate renewal phase. - readOnly: true - type: string - x-omitempty: true - Name: - default: Init - description: |- - Name of the certificate renewal phase. - * `Init` - New certificate detected, cleanup the old process if any running. - * `ScheduleCertificateAddOperation` - Certificate Add Operation Schedulled. - * `WaitForCertCollectionByEndpoint` - Monitor cert collection by endpoint. - * `Success` - Certificate Renewal Task Success. - * `Fail` - Certificate Renewal Task Fail. - * `Cancel` - Certificate Renewal Task Cancel. - enum: - - Init - - ScheduleCertificateAddOperation - - WaitForCertCollectionByEndpoint - - Success - - Fail - - Cancel - readOnly: true - type: string - x-omitempty: true - StartTime: - description: Start date of the certificate renewal phase. - format: date-time - readOnly: true - type: string - x-omitempty: true - required: - - ClassId - - ObjectType - type: object - description: |- - CertRenewalPhase represents a phase of the Intersight Appliance certificate renewal - process. - example: - ObjectType: appliance.CertRenewalPhase - EndTime: 2000-01-23T04:56:07.000+00:00 - Message: Message - Failed: true - StartTime: 2000-01-23T04:56:07.000+00:00 - ClassId: appliance.CertRenewalPhase - Name: Init - nullable: true - title: Appliance:Cert Renewal Phase - x-allOf-name: appliance.CertRenewalPhase - appliance.CertificateSetting.Response: - description: |- - The response body of a HTTP GET request for the 'appliance.CertificateSetting' resource. - The value may be one of the following types. - 1. When 'tag' is specified in the URL query, the response schema - is a summary of the tag usage. - 1. When '$apply' is specified in the URL query, the response schema - is dynamically-generated schema based on the $apply value. - 1. When '$count' is specified in the URL query, the response is - a simple object providing the count of the resources. - 1. In all other cases, the response is a list of 'appliance.CertificateSetting' resources. - discriminator: - propertyName: ObjectType - oneOf: - - $ref: '#/components/schemas/mo.DocumentCount' - - $ref: '#/components/schemas/appliance.CertificateSetting.List' - - $ref: '#/components/schemas/mo.AggregateTransform' - - $ref: '#/components/schemas/mo.TagSummary' - x-one-of-name: appliance.CertificateSetting.Response - appliance.CertificateSetting: - allOf: - - $ref: '#/components/schemas/mo.BaseMo' - - description: "Definition of the list of properties defined in 'appliance.CertificateSetting',\ - \ excluding properties defined in parent classes." - properties: - ClassId: - default: appliance.CertificateSetting - description: |- - The fully-qualified name of the instantiated, concrete type. - This property is used as a discriminator to identify the type of the payload - when marshaling and unmarshaling data. - enum: - - appliance.CertificateSetting - type: string - x-enum-as-string: true - ObjectType: - default: appliance.CertificateSetting - description: |- - The fully-qualified name of the instantiated, concrete type. - The value should be the same as the 'ClassId' property. - enum: - - appliance.CertificateSetting - type: string - x-enum-as-string: true - Account: - $ref: '#/components/schemas/iam.Account.Relationship' - Certificate: - $ref: '#/components/schemas/iam.Certificate.Relationship' - required: - - ClassId - - ObjectType - type: object - description: Certificate the appliance uses for browser traffic. example: Account: ObjectType: aaa.AuditRecord @@ -721081,8 +722583,243 @@ components: Selector: Selector SharedScope: SharedScope Parent: null + RemotePort: 0 CreateTime: 2000-01-23T04:56:07.000+00:00 - ClassId: appliance.CertificateSetting + Filename: Filename + ClassId: appliance.BackupRotateData + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + RemotePath: RemotePath + BackupTime: 2000-01-23T04:56:07.000+00:00 + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Owners: + - Owners + - Owners + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: appliance.BackupRotateData + RemoteHost: RemoteHost + Username: Username + Moid: Moid + DisplayNames: + key: + - DisplayNames + - DisplayNames + Protocol: scp + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key + title: Appliance:Backup Rotate Data + x-allOf-name: appliance.BackupRotateData + appliance.BackupRotateData.List: + allOf: + - $ref: '#/components/schemas/mo.BaseResponse' + - properties: + Count: + description: |- + The total number of 'appliance.BackupRotateData' resources matching the request, accross all pages. + The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. + format: int32 + type: integer + Results: + description: The array of 'appliance.BackupRotateData' resources matching + the request. + items: + $ref: '#/components/schemas/appliance.BackupRotateData' + nullable: true + type: array + type: object + description: This resource list is returned as a response to a HTTP GET request + that does not include a specific resource identifier. + title: List of 'appliance.BackupRotateData' resources + appliance.CertRenewalPhase: + allOf: + - $ref: '#/components/schemas/mo.BaseComplexType' + - description: "Definition of the list of properties defined in 'appliance.CertRenewalPhase',\ + \ excluding properties defined in parent classes." + properties: + ClassId: + default: appliance.CertRenewalPhase + description: |- + The fully-qualified name of the instantiated, concrete type. + This property is used as a discriminator to identify the type of the payload + when marshaling and unmarshaling data. + enum: + - appliance.CertRenewalPhase + type: string + x-enum-as-string: true + ObjectType: + default: appliance.CertRenewalPhase + description: |- + The fully-qualified name of the instantiated, concrete type. + The value should be the same as the 'ClassId' property. + enum: + - appliance.CertRenewalPhase + type: string + x-enum-as-string: true + EndTime: + description: End date of the certificate renewal phase. + format: date-time + readOnly: true + type: string + x-omitempty: true + Failed: + description: Indicates if the certificate renewal phase has failed or + not. + readOnly: true + type: boolean + x-omitempty: true + Message: + description: Status message set during the certificate renewal phase. + readOnly: true + type: string + x-omitempty: true + Name: + default: Init + description: |- + Name of the certificate renewal phase. + * `Init` - New certificate detected, cleanup the old process if any running. + * `ScheduleCertificateAddOperation` - Certificate Add Operation Schedulled. + * `WaitForCertCollectionByEndpoint` - Monitor cert collection by endpoint. + * `Success` - Certificate Renewal Task Success. + * `Fail` - Certificate Renewal Task Fail. + * `Cancel` - Certificate Renewal Task Cancel. + enum: + - Init + - ScheduleCertificateAddOperation + - WaitForCertCollectionByEndpoint + - Success + - Fail + - Cancel + readOnly: true + type: string + x-omitempty: true + StartTime: + description: Start date of the certificate renewal phase. + format: date-time + readOnly: true + type: string + x-omitempty: true + required: + - ClassId + - ObjectType + type: object + description: |- + CertRenewalPhase represents a phase of the Intersight Appliance certificate renewal + process. + example: + ObjectType: appliance.CertRenewalPhase + EndTime: 2000-01-23T04:56:07.000+00:00 + Message: Message + Failed: true + StartTime: 2000-01-23T04:56:07.000+00:00 + ClassId: appliance.CertRenewalPhase + Name: Init + nullable: true + title: Appliance:Cert Renewal Phase + x-allOf-name: appliance.CertRenewalPhase + appliance.CertificateSetting.Response: + description: |- + The response body of a HTTP GET request for the 'appliance.CertificateSetting' resource. + The value may be one of the following types. + 1. When 'tag' is specified in the URL query, the response schema + is a summary of the tag usage. + 1. When '$apply' is specified in the URL query, the response schema + is dynamically-generated schema based on the $apply value. + 1. When '$count' is specified in the URL query, the response is + a simple object providing the count of the resources. + 1. In all other cases, the response is a list of 'appliance.CertificateSetting' resources. + discriminator: + propertyName: ObjectType + oneOf: + - $ref: '#/components/schemas/mo.DocumentCount' + - $ref: '#/components/schemas/appliance.CertificateSetting.List' + - $ref: '#/components/schemas/mo.AggregateTransform' + - $ref: '#/components/schemas/mo.TagSummary' + x-one-of-name: appliance.CertificateSetting.Response + appliance.CertificateSetting: + allOf: + - $ref: '#/components/schemas/mo.BaseMo' + - description: "Definition of the list of properties defined in 'appliance.CertificateSetting',\ + \ excluding properties defined in parent classes." + properties: + ClassId: + default: appliance.CertificateSetting + description: |- + The fully-qualified name of the instantiated, concrete type. + This property is used as a discriminator to identify the type of the payload + when marshaling and unmarshaling data. + enum: + - appliance.CertificateSetting + type: string + x-enum-as-string: true + ObjectType: + default: appliance.CertificateSetting + description: |- + The fully-qualified name of the instantiated, concrete type. + The value should be the same as the 'ClassId' property. + enum: + - appliance.CertificateSetting + type: string + x-enum-as-string: true + Account: + $ref: '#/components/schemas/iam.Account.Relationship' + Certificate: + $ref: '#/components/schemas/iam.Certificate.Relationship' + required: + - ClassId + - ObjectType + type: object + description: Certificate the appliance uses for browser traffic. + example: + Account: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + SharedScope: SharedScope + Parent: null + CreateTime: 2000-01-23T04:56:07.000+00:00 + ClassId: appliance.CertificateSetting DomainGroupMoid: DomainGroupMoid PermissionResources: - null @@ -721400,7 +723137,156 @@ components: - $ref: '#/components/schemas/appliance.ClusterInstallBase' description: ClusterInstall is a singleton that tracks the Intersight Appliance's install of two additional nodes. - example: {} + example: + Account: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + EndTime: 2000-01-23T04:56:07.000+00:00 + Parent: null + ElapsedTime: 5 + ClassId: appliance.ClusterInstall + Owners: + - Owners + - Owners + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: appliance.ClusterInstall + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key + TotalPhases: 3 + Status: NotReady + CompletedPhases: + - Status: Status + ObjectType: appliance.ClusterInstallPhase + EndTime: 2000-01-23T04:56:07.000+00:00 + Message: Message + CurrentNode: 0 + Failed: true + StartTime: 2000-01-23T04:56:07.000+00:00 + ElapsedTime: 1 + PendingNodes: + - 5 + - 5 + ClassId: appliance.ClusterInstallPhase + CurrentSubphase: 6 + Name: Backup + - Status: Status + ObjectType: appliance.ClusterInstallPhase + EndTime: 2000-01-23T04:56:07.000+00:00 + Message: Message + CurrentNode: 0 + Failed: true + StartTime: 2000-01-23T04:56:07.000+00:00 + ElapsedTime: 1 + PendingNodes: + - 5 + - 5 + ClassId: appliance.ClusterInstallPhase + CurrentSubphase: 6 + Name: Backup + CurrentPhase: + Status: Status + ObjectType: appliance.ClusterInstallPhase + EndTime: 2000-01-23T04:56:07.000+00:00 + Message: Message + CurrentNode: 0 + Failed: true + StartTime: 2000-01-23T04:56:07.000+00:00 + ElapsedTime: 1 + PendingNodes: + - 5 + - 5 + ClassId: appliance.ClusterInstallPhase + CurrentSubphase: 6 + Name: Backup + Messages: + - Messages + - Messages + SharedScope: SharedScope + RemoteDns: RemoteDns + CreateTime: 2000-01-23T04:56:07.000+00:00 + StartTime: 2000-01-23T04:56:07.000+00:00 + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + NodeInfo: + - Status: Unknown + ObjectType: appliance.NodeIpInfo + Gateway: Gateway + Hostname: Hostname + NodeId: 7 + NodeMoid: NodeMoid + ClassId: appliance.NodeIpInfo + IpAddress: IpAddress + Netmask: Netmask + - Status: Unknown + ObjectType: appliance.NodeIpInfo + Gateway: Gateway + Hostname: Hostname + NodeId: 7 + NodeMoid: NodeMoid + ClassId: appliance.NodeIpInfo + IpAddress: IpAddress + Netmask: Netmask + Moid: Moid + TotalNodes: 9 + ErrorCode: 2 + Vip: + Status: Unknown + ObjectType: appliance.NodeIpInfo + Gateway: Gateway + Hostname: Hostname + NodeId: 7 + NodeMoid: NodeMoid + ClassId: appliance.NodeIpInfo + IpAddress: IpAddress + Netmask: Netmask title: Appliance:Cluster Install x-allOf-name: appliance.ClusterInstall appliance.ClusterInstall.List: @@ -721746,11 +723632,158 @@ components: description: ClusterReplaceNode is a singleton that tracks the Intersight Appliance's process for replacing a cluster node. example: - ObjectType: appliance.ClusterReplaceNode + Account: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + EndTime: 2000-01-23T04:56:07.000+00:00 + Parent: null NodeIpChanged: true - Hostname: Hostname - NodeId: 0 + ElapsedTime: 0 ClassId: appliance.ClusterReplaceNode + Owners: + - Owners + - Owners + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: appliance.ClusterReplaceNode + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key + TotalPhases: 5 + Status: NotReady + CompletedPhases: + - Status: Status + ObjectType: appliance.ClusterInstallPhase + EndTime: 2000-01-23T04:56:07.000+00:00 + Message: Message + CurrentNode: 0 + Failed: true + StartTime: 2000-01-23T04:56:07.000+00:00 + ElapsedTime: 1 + PendingNodes: + - 5 + - 5 + ClassId: appliance.ClusterInstallPhase + CurrentSubphase: 6 + Name: Backup + - Status: Status + ObjectType: appliance.ClusterInstallPhase + EndTime: 2000-01-23T04:56:07.000+00:00 + Message: Message + CurrentNode: 0 + Failed: true + StartTime: 2000-01-23T04:56:07.000+00:00 + ElapsedTime: 1 + PendingNodes: + - 5 + - 5 + ClassId: appliance.ClusterInstallPhase + CurrentSubphase: 6 + Name: Backup + CurrentPhase: + Status: Status + ObjectType: appliance.ClusterInstallPhase + EndTime: 2000-01-23T04:56:07.000+00:00 + Message: Message + CurrentNode: 0 + Failed: true + StartTime: 2000-01-23T04:56:07.000+00:00 + ElapsedTime: 1 + PendingNodes: + - 5 + - 5 + ClassId: appliance.ClusterInstallPhase + CurrentSubphase: 6 + Name: Backup + Messages: + - Messages + - Messages + SharedScope: SharedScope + RemoteDns: RemoteDns + CreateTime: 2000-01-23T04:56:07.000+00:00 + StartTime: 2000-01-23T04:56:07.000+00:00 + Hostname: Hostname + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + NodeInfo: + - Status: Unknown + ObjectType: appliance.NodeIpInfo + Gateway: Gateway + Hostname: Hostname + NodeId: 7 + NodeMoid: NodeMoid + ClassId: appliance.NodeIpInfo + IpAddress: IpAddress + Netmask: Netmask + - Status: Unknown + ObjectType: appliance.NodeIpInfo + Gateway: Gateway + Hostname: Hostname + NodeId: 7 + NodeMoid: NodeMoid + ClassId: appliance.NodeIpInfo + IpAddress: IpAddress + Netmask: Netmask + NodeId: 5 + Moid: Moid + TotalNodes: 1 + ErrorCode: 6 + Vip: + Status: Unknown + ObjectType: appliance.NodeIpInfo + Gateway: Gateway + Hostname: Hostname + NodeId: 7 + NodeMoid: NodeMoid + ClassId: appliance.NodeIpInfo + IpAddress: IpAddress + Netmask: Netmask title: Appliance:Cluster Replace Node x-allOf-name: appliance.ClusterReplaceNode appliance.ClusterReplaceNode.List: @@ -722713,7 +724746,7 @@ components: example: EndTime: 2000-01-23T04:56:07.000+00:00 Parent: null - ElapsedTime: 5 + ElapsedTime: 0 ClassId: appliance.DeviceClusterInstall Owners: - Owners @@ -722753,7 +724786,7 @@ components: Key: Key - Value: Value Key: Key - TotalPhases: 3 + TotalPhases: 5 Status: NotReady CompletedPhases: - Status: Status @@ -722847,8 +724880,8 @@ components: IpAddress: IpAddress Netmask: Netmask Moid: Moid - TotalNodes: 9 - ErrorCode: 2 + TotalNodes: 1 + ErrorCode: 6 title: Appliance:Device Cluster Install x-allOf-name: appliance.DeviceClusterInstall appliance.DeviceClusterInstall.List: @@ -723442,14 +725475,14 @@ components: BlackoutStartDate: 2000-01-23T04:56:07.000+00:00 Schedule: ObjectType: onprem.Schedule - DayOfWeek: 1 - TimeOfDay: 19890 + DayOfWeek: 4 + TimeOfDay: 61009 TimeZone: Pacific/Niue - MonthOfYear: 7 - DayOfMonth: 18 + MonthOfYear: 6 + DayOfMonth: 4 ClassId: onprem.Schedule - WeekOfMonth: 3 - RepeatInterval: 5 + WeekOfMonth: 4 + RepeatInterval: 2 SoftwareDownloadType: unknown Moid: Moid SerialId: SerialId @@ -727451,23 +729484,86 @@ components: one Restore managed object with a 'Started' state at any time. All other Restore managed objects will be in terminal states. example: - Status: Started - ObjectType: appliance.Restore Account: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + EndTime: 2000-01-23T04:56:07.000+00:00 + Parent: null + ElapsedTime: 6 + ClassId: appliance.Restore + RemotePath: RemotePath + Owners: + - Owners + - Owners + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: appliance.Restore + DisplayNames: + key: + - DisplayNames + - DisplayNames + Protocol: scp + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key + Password: Password + Status: Started IsPasswordSet: false Messages: - Messages - Messages - EndTime: 2000-01-23T04:56:07.000+00:00 + SharedScope: SharedScope + RemotePort: 0 + CreateTime: 2000-01-23T04:56:07.000+00:00 StartTime: 2000-01-23T04:56:07.000+00:00 - ElapsedTime: 0 - ClassId: appliance.Restore - Password: Password + Filename: Filename + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + RemoteHost: RemoteHost + Username: Username + Moid: Moid title: Appliance:Restore x-allOf-name: appliance.Restore appliance.Restore.List: @@ -729698,14 +731794,14 @@ components: BlackoutStartDate: 2000-01-23T04:56:07.000+00:00 Schedule: ObjectType: onprem.Schedule - DayOfWeek: 1 - TimeOfDay: 19890 + DayOfWeek: 4 + TimeOfDay: 61009 TimeZone: Pacific/Niue - MonthOfYear: 7 - DayOfMonth: 18 + MonthOfYear: 6 + DayOfMonth: 4 ClassId: onprem.Schedule - WeekOfMonth: 3 - RepeatInterval: 5 + WeekOfMonth: 4 + RepeatInterval: 2 SoftwareDownloadType: unknown Moid: Moid EnableMetaDataSync: true @@ -730353,6 +732449,54 @@ components: of the device connector as well as the nodes current leadership within the cluster. example: + AppPartitionNumber: 6 + Leadership: Unknown + Parent: null + LockedLeader: true + ClassId: asset.ClusterMember + Owners: + - Owners + - Owners + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: asset.ClusterMember + ConnectionId: ConnectionId + ProxyApp: ProxyApp + MemberIdentity: MemberIdentity + ParentClusterMemberIdentity: ParentClusterMemberIdentity + DisplayNames: + key: + - DisplayNames + - DisplayNames + ConnectionStatus: "" + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key Sudi: Status: DeviceStatusUnknown ObjectType: asset.SudiInfo @@ -730407,18 +732551,36 @@ components: StatusDetails: StatusDetails ClassId: asset.SudiInfo Pid: Pid - ObjectType: asset.ClusterMember - Leadership: Unknown - MemberIdentity: MemberIdentity + ApiVersion: 0 + SharedScope: SharedScope + ConnectionReason: ConnectionReason Device: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - LockedLeader: true - ClassId: asset.ClusterMember - ParentClusterMemberIdentity: ParentClusterMemberIdentity + CreateTime: 2000-01-23T04:56:07.000+00:00 + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + AccountMoid: AccountMoid + DeviceExternalIpAddress: DeviceExternalIpAddress + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ConnectorVersion: ConnectorVersion + ConnectionStatusLastChangeTime: 2000-01-23T04:56:07.000+00:00 + Moid: Moid title: Asset:Cluster Member x-allOf-name: asset.ClusterMember asset.ClusterMember.List: @@ -733672,6 +735834,7 @@ components: description: DeviceRegistration represents a device connector enabled endpoint which has registered with Intersight. example: + AppPartitionNumber: 6 ClaimedTime: 2000-01-23T04:56:07.000+00:00 Account: ObjectType: aaa.AuditRecord @@ -733692,6 +735855,7 @@ components: ClassId: mo.MoRef Selector: Selector ClaimedByUserName: ClaimedByUserName + Parent: null ClassId: asset.DeviceRegistration ParentSignature: ObjectType: asset.ParentConnectionSignature @@ -733709,8 +735873,37 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector + Owners: + - Owners + - Owners PublicAccessKey: PublicAccessKey + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified ObjectType: asset.DeviceRegistration + ConnectionId: ConnectionId + ProxyApp: ProxyApp Target: ObjectType: aaa.AuditRecord link: link @@ -733718,26 +735911,50 @@ components: ClassId: mo.MoRef Selector: Selector CustomPermissionResources: - - ObjectType: aaa.AuditRecord - link: link - Moid: Moid - ClassId: mo.MoRef - Selector: Selector - - ObjectType: aaa.AuditRecord - link: link - Moid: Moid - ClassId: mo.MoRef - Selector: Selector + - null + - null + DisplayNames: + key: + - DisplayNames + - DisplayNames + ConnectionStatus: "" + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key ReadOnly: true + ApiVersion: 0 + SharedScope: SharedScope DeviceHostname: - DeviceHostname - DeviceHostname + ConnectionReason: ConnectionReason PublicEncryptionKey: PublicEncryptionKey + CreateTime: 2000-01-23T04:56:07.000+00:00 + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null ExecutionMode: "" Pid: - Pid - Pid Vendor: Vendor + AccountMoid: AccountMoid + DeviceExternalIpAddress: DeviceExternalIpAddress + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector Serial: - Serial - Serial @@ -733747,6 +735964,7 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector + ConnectorVersion: ConnectorVersion DomainGroup: ObjectType: aaa.AuditRecord link: link @@ -733754,6 +735972,8 @@ components: ClassId: mo.MoRef Selector: Selector AccessKeyId: AccessKeyId + ConnectionStatusLastChangeTime: 2000-01-23T04:56:07.000+00:00 + Moid: Moid DeviceIpAddress: - DeviceIpAddress - DeviceIpAddress @@ -736493,6 +738713,7 @@ components: asset.VirtualizationAmazonWebServiceOptions: allOf: - $ref: '#/components/schemas/asset.VirtualizationCloudOptions' + deprecated: true description: Captures Virtualization Service configuration specific to AWS. title: Asset:Virtualization Amazon Web Service Options x-allOf-name: asset.VirtualizationAmazonWebServiceOptions @@ -736545,6 +738766,7 @@ components: asset.VirtualizationService: allOf: - $ref: '#/components/schemas/asset.Service' + deprecated: true description: The necessary configuration details to enable Intersight Virtualization features on the selected managed target. title: Asset:Virtualization Service @@ -737555,13 +739777,14 @@ components: type: object description: The mode through which bios has booted. example: - ObjectType: bios.BootMode RegisteredDevice: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + SharedScope: SharedScope + Parent: null InventoryDeviceInfo: ObjectType: aaa.AuditRecord link: link @@ -737575,13 +739798,72 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector + CreateTime: 2000-01-23T04:56:07.000+00:00 ClassId: bios.BootMode + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + Dn: Dn ComputeRackUnit: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + AccountMoid: AccountMoid + DeviceMoId: DeviceMoId + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Owners: + - Owners + - Owners + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: bios.BootMode + Moid: Moid + DisplayNames: + key: + - DisplayNames + - DisplayNames + Rn: Rn + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key title: Bios:Boot Mode x-allOf-name: bios.BootMode bios.BootMode.List: @@ -744683,6 +746965,11 @@ components: ClassId: mo.MoRef Selector: Selector AcsControlSlot11state: platform-default + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key PcieSlotNvme5linkSpeed: platform-default RankInterLeave: platform-default PuttyKeyPad: platform-default @@ -744739,6 +747026,7 @@ components: SlotFrontNvme1linkSpeed: platform-default CbsDfCmnDramScrubTime: platform-default SlotN5state: platform-default + ModTime: 2000-01-23T04:56:07.000+00:00 CbsDbgCpuLapicMode: platform-default Ipv6pxe: platform-default TpmSupport: platform-default @@ -744772,6 +747060,17 @@ components: CbsDfCmnMemIntlvSize: platform-default SlotN10state: platform-default PcieSlotsCdnEnable: platform-default + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector VolMemoryMode: platform-default SlotRearNvme2linkSpeed: platform-default HwpmEnable: platform-default @@ -744793,6 +747092,7 @@ components: AcsControlGpu3state: platform-default SvmMode: platform-default AcsControlSlot12state: platform-default + DomainGroupMoid: DomainGroupMoid UsbPortRear: platform-default Slot12linkSpeed: platform-default AllUsbDevices: platform-default @@ -744815,6 +747115,30 @@ components: Snc: platform-default Sha384pcrBank: platform-default CbsCmnCpuSmee: platform-default + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified ObjectType: bios.Policy RedirectionAfterPost: platform-default SlotRearNvme1linkSpeed: platform-default @@ -744869,6 +747193,9 @@ components: SlotFrontNvme12optionRom: platform-default X2apicOptOut: platform-default BootOptionNumRetry: platform-default + Owners: + - Owners + - Owners SlotGpu4state: platform-default SlotN1state: platform-default SrIov: platform-default @@ -744936,6 +747263,7 @@ components: PcieSlotMraid2optionRom: platform-default CdnSupport: platform-default PchUsb30mode: platform-default + CreateTime: 2000-01-23T04:56:07.000+00:00 PchPciePllSsc: platform-default IntelHyperThreadingTech: platform-default IntelVirtualizationTechnology: platform-default @@ -744944,12 +747272,14 @@ components: CbsCpuDownCoreCtrlBergamo: platform-default IohResource: platform-default SlotHbaLinkSpeed: platform-default + Moid: Moid SlotFrontNvme20linkSpeed: platform-default ConsoleRedirection: platform-default LlcAlloc: platform-default QpiLinkFrequency: platform-default ClassId: bios.Policy LomPortsAllState: platform-default + Name: Name Slot4state: platform-default SlotGpu1state: platform-default CbsCmnMemSpeedDdr47xx3: platform-default @@ -744964,6 +747294,7 @@ components: SlotN3state: platform-default ConfigTdpLevel: platform-default CiscoAdaptiveMemTraining: platform-default + SharedScope: SharedScope XptRemotePrefetch: platform-default CbsCmnCpuL2streamHwPrefetcher: platform-default CbsCmnMemSpeedDdr47xx2: platform-default @@ -744979,6 +747310,7 @@ components: XptPrefetch: platform-default SlotFrontNvme8linkSpeed: platform-default Slot3linkSpeed: platform-default + Parent: null SlotFrontNvme5linkSpeed: platform-default CmciEnable: platform-default SmtMode: platform-default @@ -744988,6 +747320,10 @@ components: EnableClockSpreadSpec: platform-default QpiLinkSpeed: platform-default AcsControlGpu6state: platform-default + DisplayNames: + key: + - DisplayNames + - DisplayNames UmaBasedClustering: platform-default SlotRiser1slot2linkSpeed: platform-default EpochUpdate: platform-default @@ -744997,6 +747333,7 @@ components: Slot3state: platform-default TpmPendingOperation: platform-default DcpmmFirmwareDowngrade: platform-default + AccountMoid: AccountMoid ProcessorC6report: platform-default Sha256pcrBank: platform-default NvmdimmPerformConfig: platform-default @@ -745018,6 +747355,9 @@ components: SlotFrontNvme14optionRom: platform-default SparingMode: platform-default SlotN9state: platform-default + PermissionResources: + - null + - null IntelVtdCoherencySupport: platform-default SlotFrontNvme19optionRom: platform-default CbsCmnGnbSmucppc: platform-default @@ -745030,6 +747370,7 @@ components: SlotN22state: platform-default EppEnable: platform-default Slot10linkSpeed: platform-default + Description: Description PostPackageRepair: platform-default SlotSsdSlot2linkSpeed: platform-default BootOptionReCoolDown: platform-default @@ -745447,14 +747788,7 @@ components: \ (RAS) configuration." example: SettingsMoRn: SettingsMoRn - ObjectType: bios.TokenSettings - Serial: Serial - RegisteredDevice: - ObjectType: aaa.AuditRecord - link: link - Moid: Moid - ClassId: mo.MoRef - Selector: Selector + Parent: null IsAssigned: IsAssigned InventoryDeviceInfo: ObjectType: aaa.AuditRecord @@ -745475,6 +747809,73 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector + Owners: + - Owners + - Owners + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: bios.TokenSettings + DisplayNames: + key: + - DisplayNames + - DisplayNames + Rn: Rn + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key + RegisteredDevice: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + SharedScope: SharedScope + CreateTime: 2000-01-23T04:56:07.000+00:00 + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + Dn: Dn + AccountMoid: AccountMoid + DeviceMoId: DeviceMoId + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Serial: Serial + Moid: Moid title: Bios:Token Settings x-allOf-name: bios.TokenSettings bios.TokenSettings.List: @@ -745591,26 +747992,56 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector - ObjectType: bios.Unit - RegisteredDevice: + Parent: null + InventoryDeviceInfo: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - InventoryDeviceInfo: + ComputeBlade: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - InitSeq: InitSeq - ComputeBlade: + ClassId: bios.Unit + ComputeRackUnit: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + Owners: + - Owners + - Owners + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: bios.Unit + IsUpgraded: false + InitSeq: InitSeq RunningFirmware: - ObjectType: aaa.AuditRecord link: link @@ -745622,14 +748053,56 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector - ClassId: bios.Unit - ComputeRackUnit: + Presence: Presence + DisplayNames: + key: + - DisplayNames + - DisplayNames + Rn: Rn + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key + InitTs: InitTs + RegisteredDevice: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - InitTs: InitTs + SharedScope: SharedScope + CreateTime: 2000-01-23T04:56:07.000+00:00 + PreviousFru: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + Dn: Dn + Vendor: Vendor + AccountMoid: AccountMoid + DeviceMoId: DeviceMoId + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Serial: Serial + Revision: Revision + Model: Model + Moid: Moid title: Bios:Unit x-allOf-name: bios.Unit bios.Unit.List: @@ -745733,14 +748206,14 @@ components: type: object description: "Memory Reliability, availability and serviceability (RAS) configuration." example: - ObjectType: bios.VfSelectMemoryRasConfiguration - Serial: Serial RegisteredDevice: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + SharedScope: SharedScope + Parent: null InventoryDeviceInfo: ObjectType: aaa.AuditRecord link: link @@ -745753,14 +748226,74 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector + CreateTime: 2000-01-23T04:56:07.000+00:00 ClassId: bios.VfSelectMemoryRasConfiguration - VpSelectMemoryRasConfiguration: VpSelectMemoryRasConfiguration + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + Dn: Dn ComputeRackUnit: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + AccountMoid: AccountMoid + DeviceMoId: DeviceMoId + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Owners: + - Owners + - Owners + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: bios.VfSelectMemoryRasConfiguration + Serial: Serial + Moid: Moid + VpSelectMemoryRasConfiguration: VpSelectMemoryRasConfiguration + DisplayNames: + key: + - DisplayNames + - DisplayNames + Rn: Rn + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key title: Bios:Vf Select Memory Ras Configuration x-allOf-name: bios.VfSelectMemoryRasConfiguration bios.VfSelectMemoryRasConfiguration.List: @@ -745899,26 +748432,102 @@ components: type: object description: Cdd Boot Device configured on the server. example: - ObjectType: boot.CddDevice ComputePhysical: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + Parent: null + InventoryDeviceInfo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: boot.CddDevice + Owners: + - Owners + - Owners + Name: Name + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: boot.CddDevice + IsUpgraded: false + Presence: Presence + DisplayNames: + key: + - DisplayNames + - DisplayNames + Rn: Rn + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key + Order: 0 RegisteredDevice: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - InventoryDeviceInfo: + SharedScope: SharedScope + CreateTime: 2000-01-23T04:56:07.000+00:00 + PreviousFru: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - ClassId: boot.CddDevice + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + Dn: Dn + Vendor: Vendor + AccountMoid: AccountMoid + DeviceMoId: DeviceMoId + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Serial: Serial + Type: Type + Revision: Revision + State: State + Model: Model + Moid: Moid title: Boot:Cdd Device x-allOf-name: boot.CddDevice boot.CddDevice.List: @@ -746159,13 +748768,14 @@ components: type: object description: Boot mode of the devices that BIOS uses to boot them. example: - ObjectType: boot.DeviceBootMode RegisteredDevice: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + SharedScope: SharedScope + Parent: null InventoryDeviceInfo: ObjectType: aaa.AuditRecord link: link @@ -746178,14 +748788,73 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector + CreateTime: 2000-01-23T04:56:07.000+00:00 ClassId: boot.DeviceBootMode + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + Dn: Dn ComputeRackUnit: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + AccountMoid: AccountMoid + DeviceMoId: DeviceMoId + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Owners: + - Owners + - Owners + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: boot.DeviceBootMode + Moid: Moid + DisplayNames: + key: + - DisplayNames + - DisplayNames + Rn: Rn + ModTime: 2000-01-23T04:56:07.000+00:00 ConfiguredBootMode: ConfiguredBootMode + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key title: Boot:Device Boot Mode x-allOf-name: boot.DeviceBootMode boot.DeviceBootMode.List: @@ -746281,7 +748950,6 @@ components: type: object description: Boot Security of the devices that BIOS uses to boot them. example: - ObjectType: boot.DeviceBootSecurity ComputePhysical: ObjectType: aaa.AuditRecord link: link @@ -746294,14 +748962,75 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector + SharedScope: SharedScope + Parent: null InventoryDeviceInfo: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + CreateTime: 2000-01-23T04:56:07.000+00:00 ClassId: boot.DeviceBootSecurity + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + Dn: Dn + AccountMoid: AccountMoid + DeviceMoId: DeviceMoId + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Owners: + - Owners + - Owners + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: boot.DeviceBootSecurity + Moid: Moid + DisplayNames: + key: + - DisplayNames + - DisplayNames + Rn: Rn + ModTime: 2000-01-23T04:56:07.000+00:00 SecureBoot: SecureBoot + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key title: Boot:Device Boot Security x-allOf-name: boot.DeviceBootSecurity boot.DeviceBootSecurity.List: @@ -746436,26 +749165,102 @@ components: type: object description: Local Disk Boot Device configured on the server. example: - ObjectType: boot.HddDevice ComputePhysical: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + Parent: null + InventoryDeviceInfo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: boot.HddDevice + Owners: + - Owners + - Owners + Name: Name + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: boot.HddDevice + IsUpgraded: false + Presence: Presence + DisplayNames: + key: + - DisplayNames + - DisplayNames + Rn: Rn + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key + Order: 0 RegisteredDevice: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - InventoryDeviceInfo: + SharedScope: SharedScope + CreateTime: 2000-01-23T04:56:07.000+00:00 + PreviousFru: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - ClassId: boot.HddDevice + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + Dn: Dn + Vendor: Vendor + AccountMoid: AccountMoid + DeviceMoId: DeviceMoId + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Serial: Serial + Type: Type + Revision: Revision + State: State + Model: Model + Moid: Moid title: Boot:Hdd Device x-allOf-name: boot.HddDevice boot.HddDevice.List: @@ -746713,26 +749518,102 @@ components: type: object description: Iscsi Boot Device configured on the server. example: - ObjectType: boot.IscsiDevice ComputePhysical: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + Parent: null + InventoryDeviceInfo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: boot.IscsiDevice + Owners: + - Owners + - Owners + Name: Name + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: boot.IscsiDevice + IsUpgraded: false + Presence: Presence + DisplayNames: + key: + - DisplayNames + - DisplayNames + Rn: Rn + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key + Order: 0 RegisteredDevice: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - InventoryDeviceInfo: + SharedScope: SharedScope + CreateTime: 2000-01-23T04:56:07.000+00:00 + PreviousFru: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - ClassId: boot.IscsiDevice + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + Dn: Dn + Vendor: Vendor + AccountMoid: AccountMoid + DeviceMoId: DeviceMoId + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Serial: Serial + Type: Type + Revision: Revision + State: State + Model: Model + Moid: Moid title: Boot:Iscsi Device x-allOf-name: boot.IscsiDevice boot.IscsiDevice.List: @@ -746905,26 +749786,102 @@ components: type: object description: Nvme Boot Device configured on the server. example: - ObjectType: boot.NvmeDevice ComputePhysical: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + Parent: null + InventoryDeviceInfo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: boot.NvmeDevice + Owners: + - Owners + - Owners + Name: Name + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: boot.NvmeDevice + IsUpgraded: false + Presence: Presence + DisplayNames: + key: + - DisplayNames + - DisplayNames + Rn: Rn + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key + Order: 0 RegisteredDevice: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - InventoryDeviceInfo: + SharedScope: SharedScope + CreateTime: 2000-01-23T04:56:07.000+00:00 + PreviousFru: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - ClassId: boot.NvmeDevice + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + Dn: Dn + Vendor: Vendor + AccountMoid: AccountMoid + DeviceMoId: DeviceMoId + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Serial: Serial + Type: Type + Revision: Revision + State: State + Model: Model + Moid: Moid title: Boot:Nvme Device x-allOf-name: boot.NvmeDevice boot.NvmeDevice.List: @@ -747057,26 +750014,102 @@ components: type: object description: Pch Storage Boot Device configured on the server. example: - ObjectType: boot.PchStorageDevice ComputePhysical: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + Parent: null + InventoryDeviceInfo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: boot.PchStorageDevice + Owners: + - Owners + - Owners + Name: Name + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: boot.PchStorageDevice + IsUpgraded: false + Presence: Presence + DisplayNames: + key: + - DisplayNames + - DisplayNames + Rn: Rn + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key + Order: 0 RegisteredDevice: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - InventoryDeviceInfo: + SharedScope: SharedScope + CreateTime: 2000-01-23T04:56:07.000+00:00 + PreviousFru: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - ClassId: boot.PchStorageDevice + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + Dn: Dn + Vendor: Vendor + AccountMoid: AccountMoid + DeviceMoId: DeviceMoId + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Serial: Serial + Type: Type + Revision: Revision + State: State + Model: Model + Moid: Moid title: Boot:Pch Storage Device x-allOf-name: boot.PchStorageDevice boot.PchStorageDevice.List: @@ -747186,13 +750219,62 @@ components: can be applied to multiple servers via profile association. It supports advanced boot order configuration on Cisco CIMC servers. example: - ObjectType: boot.PrecisionPolicy + Description: Description Organization: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + SharedScope: SharedScope + Parent: null + CreateTime: 2000-01-23T04:56:07.000+00:00 + ClassId: boot.PrecisionPolicy + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Owners: + - Owners + - Owners + Name: Name + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: boot.PrecisionPolicy Profiles: - ObjectType: aaa.AuditRecord link: link @@ -747225,9 +750307,19 @@ components: Enabled: false ClassId: boot.FlexMmc Name: Name - ClassId: boot.PrecisionPolicy + Moid: Moid EnforceUefiSecureBoot: false + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 ConfiguredBootMode: Uefi + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key title: Boot Order x-allOf-name: boot.PrecisionPolicy boot.PrecisionPolicy.List: @@ -747404,26 +750496,102 @@ components: type: object description: Pxe Boot Device configured on the server. example: - ObjectType: boot.PxeDevice ComputePhysical: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + Parent: null + InventoryDeviceInfo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: boot.PxeDevice + Owners: + - Owners + - Owners + Name: Name + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: boot.PxeDevice + IsUpgraded: false + Presence: Presence + DisplayNames: + key: + - DisplayNames + - DisplayNames + Rn: Rn + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key + Order: 0 RegisteredDevice: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - InventoryDeviceInfo: + SharedScope: SharedScope + CreateTime: 2000-01-23T04:56:07.000+00:00 + PreviousFru: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - ClassId: boot.PxeDevice + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + Dn: Dn + Vendor: Vendor + AccountMoid: AccountMoid + DeviceMoId: DeviceMoId + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Serial: Serial + Type: Type + Revision: Revision + State: State + Model: Model + Moid: Moid title: Boot:Pxe Device x-allOf-name: boot.PxeDevice boot.PxeDevice.List: @@ -747576,26 +750744,102 @@ components: type: object description: San Boot Device configured on the server. example: - ObjectType: boot.SanDevice ComputePhysical: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + Parent: null + InventoryDeviceInfo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: boot.SanDevice + Owners: + - Owners + - Owners + Name: Name + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: boot.SanDevice + IsUpgraded: false + Presence: Presence + DisplayNames: + key: + - DisplayNames + - DisplayNames + Rn: Rn + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key + Order: 0 RegisteredDevice: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - InventoryDeviceInfo: + SharedScope: SharedScope + CreateTime: 2000-01-23T04:56:07.000+00:00 + PreviousFru: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - ClassId: boot.SanDevice + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + Dn: Dn + Vendor: Vendor + AccountMoid: AccountMoid + DeviceMoId: DeviceMoId + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Serial: Serial + Type: Type + Revision: Revision + State: State + Model: Model + Moid: Moid title: Boot:San Device x-allOf-name: boot.SanDevice boot.SanDevice.List: @@ -747741,26 +750985,102 @@ components: type: object description: Sd Boot Device configured on the server. example: - ObjectType: boot.SdDevice ComputePhysical: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + Parent: null + InventoryDeviceInfo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: boot.SdDevice + Owners: + - Owners + - Owners + Name: Name + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: boot.SdDevice + IsUpgraded: false + Presence: Presence + DisplayNames: + key: + - DisplayNames + - DisplayNames + Rn: Rn + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key + Order: 0 RegisteredDevice: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - InventoryDeviceInfo: + SharedScope: SharedScope + CreateTime: 2000-01-23T04:56:07.000+00:00 + PreviousFru: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - ClassId: boot.SdDevice + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + Dn: Dn + Vendor: Vendor + AccountMoid: AccountMoid + DeviceMoId: DeviceMoId + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Serial: Serial + Type: Type + Revision: Revision + State: State + Model: Model + Moid: Moid title: Boot:Sd Device x-allOf-name: boot.SdDevice boot.SdDevice.List: @@ -747975,26 +751295,102 @@ components: type: object description: UefiShell Boot Device configured on the server. example: - ObjectType: boot.UefiShellDevice ComputePhysical: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + Parent: null + InventoryDeviceInfo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: boot.UefiShellDevice + Owners: + - Owners + - Owners + Name: Name + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: boot.UefiShellDevice + IsUpgraded: false + Presence: Presence + DisplayNames: + key: + - DisplayNames + - DisplayNames + Rn: Rn + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key + Order: 0 RegisteredDevice: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - InventoryDeviceInfo: + SharedScope: SharedScope + CreateTime: 2000-01-23T04:56:07.000+00:00 + PreviousFru: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - ClassId: boot.UefiShellDevice + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + Dn: Dn + Vendor: Vendor + AccountMoid: AccountMoid + DeviceMoId: DeviceMoId + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Serial: Serial + Type: Type + Revision: Revision + State: State + Model: Model + Moid: Moid title: Boot:Uefi Shell Device x-allOf-name: boot.UefiShellDevice boot.UefiShellDevice.List: @@ -748131,26 +751527,102 @@ components: type: object description: Usb Boot Device configured on the server. example: - ObjectType: boot.UsbDevice ComputePhysical: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + Parent: null + InventoryDeviceInfo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: boot.UsbDevice + Owners: + - Owners + - Owners + Name: Name + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: boot.UsbDevice + IsUpgraded: false + Presence: Presence + DisplayNames: + key: + - DisplayNames + - DisplayNames + Rn: Rn + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key + Order: 0 RegisteredDevice: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - InventoryDeviceInfo: + SharedScope: SharedScope + CreateTime: 2000-01-23T04:56:07.000+00:00 + PreviousFru: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - ClassId: boot.UsbDevice + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + Dn: Dn + Vendor: Vendor + AccountMoid: AccountMoid + DeviceMoId: DeviceMoId + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Serial: Serial + Type: Type + Revision: Revision + State: State + Model: Model + Moid: Moid title: Boot:Usb Device x-allOf-name: boot.UsbDevice boot.UsbDevice.List: @@ -748290,26 +751762,102 @@ components: type: object description: Virtual Media Boot Device configured on the server. example: - ObjectType: boot.VmediaDevice ComputePhysical: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + Parent: null + InventoryDeviceInfo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: boot.VmediaDevice + Owners: + - Owners + - Owners + Name: Name + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: boot.VmediaDevice + IsUpgraded: false + Presence: Presence + DisplayNames: + key: + - DisplayNames + - DisplayNames + Rn: Rn + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key + Order: 0 RegisteredDevice: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - InventoryDeviceInfo: + SharedScope: SharedScope + CreateTime: 2000-01-23T04:56:07.000+00:00 + PreviousFru: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - ClassId: boot.VmediaDevice + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + Dn: Dn + Vendor: Vendor + AccountMoid: AccountMoid + DeviceMoId: DeviceMoId + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Serial: Serial + Type: Type + Revision: Revision + State: State + Model: Model + Moid: Moid title: Boot:Vmedia Device x-allOf-name: boot.VmediaDevice boot.VmediaDevice.List: @@ -749349,7 +752897,8 @@ components: - Owners - Owners Responses: - - ObjectType: bulk.RestResult + - Status: 0 + ObjectType: bulk.RestResult ClassId: bulk.RestResult Body: SharedScope: SharedScope @@ -749404,7 +752953,8 @@ components: - Value: Value Key: Key BodyString: BodyString - - ObjectType: bulk.RestResult + - Status: 0 + ObjectType: bulk.RestResult ClassId: bulk.RestResult Body: SharedScope: SharedScope @@ -750248,7 +753798,8 @@ components: - Owners - Owners Responses: - - ObjectType: bulk.RestResult + - Status: 0 + ObjectType: bulk.RestResult ClassId: bulk.RestResult Body: SharedScope: SharedScope @@ -750303,7 +753854,8 @@ components: - Value: Value Key: Key BodyString: BodyString - - ObjectType: bulk.RestResult + - Status: 0 + ObjectType: bulk.RestResult ClassId: bulk.RestResult Body: SharedScope: SharedScope @@ -750827,6 +754379,7 @@ components: type: object description: The result of an individual REST API action. example: + Status: 0 ObjectType: bulk.RestResult ClassId: bulk.RestResult Body: @@ -751827,16 +755380,74 @@ components: Intersight for 3rd Party servers. It is validated against the target provided and the actions are allowed only upon successful validation. example: - MaxFwVersion: MaxFwVersion - ObjectType: capability.ActionsMetaData - Model: Model - TargetType: "" + SharedScope: SharedScope + Parent: null + CreateTime: 2000-01-23T04:56:07.000+00:00 ClassId: capability.ActionsMetaData + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null Vendor: Vendor + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector SupportedActions: - SupportedActions - SupportedActions + Owners: + - Owners + - Owners + Name: Name MinFwVersion: MinFwVersion + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + MaxFwVersion: MaxFwVersion + ObjectType: capability.ActionsMetaData + Model: Model + TargetType: "" + Moid: Moid + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key title: Capability:Actions Meta Data x-allOf-name: capability.ActionsMetaData capability.ActionsMetaData.List: @@ -751919,10 +755530,68 @@ components: description: Object to represent an unsupported/deprecated adapter. Meant to be used under server descriptor object. example: - ObjectType: capability.AdapterDeprecatedDef - Model: Model + SharedScope: SharedScope + Parent: null + CreateTime: 2000-01-23T04:56:07.000+00:00 ClassId: capability.AdapterDeprecatedDef + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null Vendor: Vendor + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Owners: + - Owners + - Owners + Name: Name + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: capability.AdapterDeprecatedDef + Model: Model + Moid: Moid + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key title: Capability:Adapter Deprecated Def x-allOf-name: capability.AdapterDeprecatedDef capability.AdapterDeprecatedDef.List: @@ -752031,15 +755700,73 @@ components: description: Firmware requirements for enabling Intersight based management for an adaptor. example: - ObjectType: capability.AdapterFirmwareRequirement - IgnoreEmptyCurrentVersion: true RecommendedBmcVersion: RecommendedBmcVersion - MinimumBmcVersion: MinimumBmcVersion + SharedScope: SharedScope + Parent: null + CreateTime: 2000-01-23T04:56:07.000+00:00 MinimumAdapterVersion: MinimumAdapterVersion ClassId: capability.AdapterFirmwareRequirement + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Owners: + - Owners + - Owners + Name: Name + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: capability.AdapterFirmwareRequirement + IgnoreEmptyCurrentVersion: true + MinimumBmcVersion: MinimumBmcVersion + Moid: Moid SupportedModels: - SupportedModels - SupportedModels + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key AdapterSeries: AdapterSeries title: Capability:Adapter Firmware Requirement x-allOf-name: capability.AdapterFirmwareRequirement @@ -752214,18 +755941,41 @@ components: description: Descriptor that uniquely identifies an adapter. example: NumDcePorts: 2 - NumberOfPciLinks: 4 + Description: Description + Parent: null VicId: VicId - MaxRocev2Interfaces: 3 ClassId: capability.AdapterUnitDescriptor IsSecureBootSupported: false - FibreChannelPortSpeed: 5 - MaxEthRxRingSize: 7 + Owners: + - Owners + - Owners + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified ObjectType: capability.AdapterUnitDescriptor - EthernetPortSpeed: 6 + Version: Version ConnectivityOrder: ConnectivityOrder - AdapterGeneration: 0 - PromCardType: PromCardType Features: - ObjectType: capability.FeatureConfig MinAdapterFwVersion: MinAdapterFwVersion @@ -752283,9 +756033,58 @@ components: - 1 FeatureName: RoCEv2 MinFwVersion: MinFwVersion - IsGeneveSupported: true + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key PciLink: 7 FibreChannelScsiIoqLimit: 2 + NumberOfPciLinks: 4 + SharedScope: SharedScope + CreateTime: 2000-01-23T04:56:07.000+00:00 + MaxRocev2Interfaces: 3 + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + Vendor: Vendor + FibreChannelPortSpeed: 5 + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + MaxEthRxRingSize: 7 + Capabilities: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + EthernetPortSpeed: 6 + Model: Model + Moid: Moid + AdapterGeneration: 0 + PromCardType: PromCardType + IsGeneveSupported: true IsAzureQosSupported: true MaxEthTxRingSize: 9 title: Capability:Adapter Unit Descriptor @@ -752366,9 +756165,83 @@ components: type: object description: Internal meta-data to enable adapter unit update related constraints. example: - ObjectType: capability.AdapterUpdateConstraintMeta + ServerSpecificConstraint: + - ObjectType: capability.ServerComponentConstraint + MinSupportedVersion: MinSupportedVersion + ServerModel: ServerModel + ClassId: capability.ServerComponentConstraint + - ObjectType: capability.ServerComponentConstraint + MinSupportedVersion: MinSupportedVersion + ServerModel: ServerModel + ClassId: capability.ServerComponentConstraint + SharedScope: SharedScope + Parent: null + CreateTime: 2000-01-23T04:56:07.000+00:00 ClassId: capability.AdapterUpdateConstraintMeta + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + IsSecureBootSupported: true + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Owners: + - Owners + - Owners + Name: Name + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: capability.AdapterUpdateConstraintMeta + MinSupportedVersion: MinSupportedVersion + Model: Model + Moid: Moid + DisplayNames: + key: + - DisplayNames + - DisplayNames + PlatformType: PlatformType SupportedPlatform: SupportedPlatform + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key + SupportedPlatforms: + - SupportedPlatforms + - SupportedPlatforms title: Capability:Adapter Update Constraint Meta x-allOf-name: capability.AdapterUpdateConstraintMeta capability.AdapterUpdateConstraintMeta.List: @@ -752462,13 +756335,71 @@ components: type: object description: Internal meta-data to enable adapter upgrade related decision making. example: - ObjectType: capability.AdapterUpgradeSupportMeta Description: Description SeriesId: SeriesId + SharedScope: SharedScope + Parent: null + CreateTime: 2000-01-23T04:56:07.000+00:00 ClassId: capability.AdapterUpgradeSupportMeta + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Owners: + - Owners + - Owners + Name: Name + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: capability.AdapterUpgradeSupportMeta + Moid: Moid SupportedModels: - SupportedModels - SupportedModels + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key title: Capability:Adapter Upgrade Support Meta x-allOf-name: capability.AdapterUpgradeSupportMeta capability.AdapterUpgradeSupportMeta.List: @@ -752809,9 +756740,81 @@ components: type: object description: Descriptor that uniquely identifies an chassis enclosure. example: + Description: Description + SharedScope: SharedScope + Parent: null + CreateTime: 2000-01-23T04:56:07.000+00:00 + ClassId: capability.ChassisDescriptor + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + Vendor: Vendor + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Owners: + - Owners + - Owners + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified ObjectType: capability.ChassisDescriptor Revision: Revision - ClassId: capability.ChassisDescriptor + Version: Version + Capabilities: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Model: Model + Moid: Moid + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key title: Capability:Chassis Descriptor x-allOf-name: capability.ChassisDescriptor capability.ChassisDescriptor.List: @@ -752913,15 +756916,73 @@ components: type: object description: Chassis enclosure manufacturing def properties. example: - ChassisCodeName: ChassisCodeName - Vid: Vid - ObjectType: capability.ChassisManufacturingDef Description: Description ProductName: ProductName + SharedScope: SharedScope + Parent: null + CreateTime: 2000-01-23T04:56:07.000+00:00 ClassId: capability.ChassisManufacturingDef + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null Pid: Pid - Sku: Sku + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector Caption: Caption + Owners: + - Owners + - Owners + Name: Name + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ChassisCodeName: ChassisCodeName + Vid: Vid + ObjectType: capability.ChassisManufacturingDef + Moid: Moid + DisplayNames: + key: + - DisplayNames + - DisplayNames + Sku: Sku + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key title: Capability:Chassis Manufacturing Def x-allOf-name: capability.ChassisManufacturingDef capability.ChassisManufacturingDef.List: @@ -753020,13 +757081,71 @@ components: description: Internal meta-data to enable chassis upgrade related decision making. example: AdaptersUpgradedViaHsu: true - ObjectType: capability.ChassisUpgradeSupportMeta Description: Description SeriesId: SeriesId + SharedScope: SharedScope + Parent: null + CreateTime: 2000-01-23T04:56:07.000+00:00 ClassId: capability.ChassisUpgradeSupportMeta + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Owners: + - Owners + - Owners + Name: Name + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: capability.ChassisUpgradeSupportMeta + Moid: Moid SupportedModels: - SupportedModels - SupportedModels + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key title: Capability:Chassis Upgrade Support Meta x-allOf-name: capability.ChassisUpgradeSupportMeta capability.ChassisUpgradeSupportMeta.List: @@ -753122,12 +757241,84 @@ components: description: Descriptor that identifies the server's redfish integration capability using cimc firmware info. example: - ObjectType: capability.CimcFirmwareDescriptor - Revision: Revision - UuidSupportedVer: UuidSupportedVer + Description: Description + SharedScope: SharedScope + Parent: null + CreateTime: 2000-01-23T04:56:07.000+00:00 ClassId: capability.CimcFirmwareDescriptor + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + Vendor: Vendor + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector LocalUserPswdSupportedVer: LocalUserPswdSupportedVer + Owners: + - Owners + - Owners AdapterEpProxyEnabled: true + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: capability.CimcFirmwareDescriptor + Revision: Revision + Version: Version + UuidSupportedVer: UuidSupportedVer + Capabilities: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Model: Model + Moid: Moid + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key title: Capability:Cimc Firmware Descriptor x-allOf-name: capability.CimcFirmwareDescriptor capability.CimcFirmwareDescriptor.List: @@ -753867,15 +758058,76 @@ components: type: object description: Type to represent additional switch specific capabilities. example: - ObjectType: capability.EquipmentPhysicalDef - MaxPower: 1 + Parent: null ClassId: capability.EquipmentPhysicalDef - Height: 6.0274563 MinPower: 5 - NominalPower: 5 - Width: 7.0614014 Depth: 0.8008282 + Owners: + - Owners + - Owners + Name: Name + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: capability.EquipmentPhysicalDef + Height: 6.0274563 + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Width: 7.0614014 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key + SharedScope: SharedScope + CreateTime: 2000-01-23T04:56:07.000+00:00 + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + Pid: UCS-FI-6454 + NominalPower: 5 + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector Weight: 2.302136 + Vid: Vid + Moid: Moid + MaxPower: 1 + Sku: Sku title: Capability:Equipment Physical Def x-allOf-name: capability.EquipmentPhysicalDef capability.EquipmentPhysicalDef.List: @@ -754038,24 +758290,85 @@ components: type: object description: Type to represent additional switch specific capabilities. example: - FirstIndex: 0.8008282 InlineOffset: 2.302136 + Parent: null ClassId: capability.EquipmentSlotArray - InlineGroupSize: 5.637377 NumberOfSlots: 7 TransverseOffset: 4.145608 - Orientation: Orientation - VerticalStartOffset: 7.386282 + Owners: + - Owners + - Owners + Name: Name TransverseGroupSeparation: 3.6160767 + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified SlotsPerLine: 9 ObjectType: capability.EquipmentSlotArray - HorizontalStartOffset: 1.4658129 - TransverseGroupSize: 2.027123 InlineGroupSeparation: 5.962134 Height: 6.0274563 + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 Width: 1.2315135 - Location: Location + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key Selector: Selector + FirstIndex: 0.8008282 + SharedScope: SharedScope + CreateTime: 2000-01-23T04:56:07.000+00:00 + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + Pid: UCS-FI-6454 + InlineGroupSize: 5.637377 + Orientation: Orientation + VerticalStartOffset: 7.386282 + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Vid: Vid + HorizontalStartOffset: 1.4658129 + TransverseGroupSize: 2.027123 + Moid: Moid + Sku: Sku + Location: Location title: Capability:Equipment Slot Array x-allOf-name: capability.EquipmentSlotArray capability.EquipmentSlotArray.List: @@ -754133,9 +758446,81 @@ components: type: object description: Descriptor that uniquely identifies a fan module. example: + Description: Description + SharedScope: SharedScope + Parent: null + CreateTime: 2000-01-23T04:56:07.000+00:00 + ClassId: capability.FanModuleDescriptor + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + Vendor: Vendor + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Owners: + - Owners + - Owners + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified ObjectType: capability.FanModuleDescriptor Revision: Revision - ClassId: capability.FanModuleDescriptor + Version: Version + Capabilities: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Model: Model + Moid: Moid + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key title: Capability:Fan Module Descriptor x-allOf-name: capability.FanModuleDescriptor capability.FanModuleDescriptor.List: @@ -754233,14 +758618,72 @@ components: type: object description: Fan module unit that contains multiple fans. example: - Vid: Vid - ObjectType: capability.FanModuleManufacturingDef Description: Description ProductName: ProductName + SharedScope: SharedScope + Parent: null + CreateTime: 2000-01-23T04:56:07.000+00:00 ClassId: capability.FanModuleManufacturingDef + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null Pid: Pid - Sku: Sku + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector Caption: Caption + Owners: + - Owners + - Owners + Name: Name + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + Vid: Vid + ObjectType: capability.FanModuleManufacturingDef + Moid: Moid + DisplayNames: + key: + - DisplayNames + - DisplayNames + Sku: Sku + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key title: Capability:Fan Module Manufacturing Def x-allOf-name: capability.FanModuleManufacturingDef capability.FanModuleManufacturingDef.List: @@ -754473,9 +758916,67 @@ components: type: object description: Fabric Extender module capabilities. example: - ObjectType: capability.FexCapabilityDef + SharedScope: SharedScope + Parent: null + CreateTime: 2000-01-23T04:56:07.000+00:00 ClassId: capability.FexCapabilityDef + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Owners: + - Owners + - Owners + Name: Name + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: capability.FexCapabilityDef + Moid: Moid FecConfigOnHifPortSupported: true + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key title: Capability:Fex Capability Def x-allOf-name: capability.FexCapabilityDef capability.FexCapabilityDef.List: @@ -754553,9 +759054,81 @@ components: type: object description: Descriptor that uniquely identifies an Fabric extender. example: + Description: Description + SharedScope: SharedScope + Parent: null + CreateTime: 2000-01-23T04:56:07.000+00:00 + ClassId: capability.FexDescriptor + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + Vendor: Vendor + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Owners: + - Owners + - Owners + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified ObjectType: capability.FexDescriptor Revision: Revision - ClassId: capability.FexDescriptor + Version: Version + Capabilities: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Model: Model + Moid: Moid + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key title: Capability:Fex Descriptor x-allOf-name: capability.FexDescriptor capability.FexDescriptor.List: @@ -754658,14 +759231,72 @@ components: description: Fabric extender manufacturing def properties. example: FexCodeName: FexCodeName - Vid: Vid - ObjectType: capability.FexManufacturingDef Description: Description ProductName: ProductName + SharedScope: SharedScope + Parent: null + CreateTime: 2000-01-23T04:56:07.000+00:00 ClassId: capability.FexManufacturingDef + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null Pid: Pid - Sku: Sku + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector Caption: Caption + Owners: + - Owners + - Owners + Name: Name + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + Vid: Vid + ObjectType: capability.FexManufacturingDef + Moid: Moid + DisplayNames: + key: + - DisplayNames + - DisplayNames + Sku: Sku + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key title: Capability:Fex Manufacturing Def x-allOf-name: capability.FexManufacturingDef capability.FexManufacturingDef.List: @@ -754952,11 +759583,69 @@ components: FileName: FileName Model: Model ClassId: capability.HsuIsoModelSpecificConstraint + SharedScope: SharedScope + Parent: null + CreateTime: 2000-01-23T04:56:07.000+00:00 + ClassId: capability.HsuIsoFileSupportMeta + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + DefaultMinVersion: DefaultMinVersion + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Owners: + - Owners + - Owners + Name: Name + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified ObjectType: capability.HsuIsoFileSupportMeta Series: Series DefaultFileName: DefaultFileName - ClassId: capability.HsuIsoFileSupportMeta - DefaultMinVersion: DefaultMinVersion + Moid: Moid + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key title: Capability:Hsu Iso File Support Meta x-allOf-name: capability.HsuIsoFileSupportMeta capability.HsuIsoFileSupportMeta.List: @@ -755089,9 +759778,67 @@ components: type: object description: Chassis Iocard module capabilities. example: - ObjectType: capability.IoCardCapabilityDef + SharedScope: SharedScope + Parent: null DcSupported: true + CreateTime: 2000-01-23T04:56:07.000+00:00 ClassId: capability.IoCardCapabilityDef + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Owners: + - Owners + - Owners + Name: Name + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: capability.IoCardCapabilityDef + Moid: Moid + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key title: Capability:Io Card Capability Def x-allOf-name: capability.IoCardCapabilityDef capability.IoCardCapabilityDef.List: @@ -755215,17 +759962,89 @@ components: type: object description: Descriptor that uniquely identifies an IO card module. example: - NativeSpeedMasterPortNum: 6 + Description: Description + Parent: null + NativeHifPortChannelRequired: true + ClassId: capability.IoCardDescriptor + Owners: + - Owners + - Owners + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified ObjectType: capability.IoCardDescriptor + Version: Version + DisplayNames: + key: + - DisplayNames + - DisplayNames + NumHifPorts: 1 + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key + SharedScope: SharedScope + CreateTime: 2000-01-23T04:56:07.000+00:00 + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + Vendor: Vendor + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + NativeSpeedMasterPortNum: 6 UnsupportedPolicies: - UnsupportedPolicies - UnsupportedPolicies Revision: Revision - NativeHifPortChannelRequired: true + Capabilities: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector BifPortNum: 0 + Model: Model IsUcsxDirectIoCard: false - ClassId: capability.IoCardDescriptor - NumHifPorts: 1 + Moid: Moid UifConnectivity: inline title: Capability:Io Card Descriptor x-allOf-name: capability.IoCardDescriptor @@ -755324,14 +760143,72 @@ components: type: object description: Chassis Iocard module properties. example: - Vid: Vid - ObjectType: capability.IoCardManufacturingDef Description: Description ProductName: ProductName + SharedScope: SharedScope + Parent: null + CreateTime: 2000-01-23T04:56:07.000+00:00 ClassId: capability.IoCardManufacturingDef + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null Pid: Pid - Sku: Sku + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector Caption: Caption + Owners: + - Owners + - Owners + Name: Name + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + Vid: Vid + ObjectType: capability.IoCardManufacturingDef + Moid: Moid + DisplayNames: + key: + - DisplayNames + - DisplayNames + Sku: Sku + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key title: Capability:Io Card Manufacturing Def x-allOf-name: capability.IoCardManufacturingDef capability.IoCardManufacturingDef.List: @@ -755431,13 +760308,71 @@ components: type: object description: Internal meta-data to enable IOM upgrade related decision making. example: - ObjectType: capability.IomUpgradeSupportMeta Description: Description SeriesId: SeriesId + SharedScope: SharedScope + Parent: null + CreateTime: 2000-01-23T04:56:07.000+00:00 ClassId: capability.IomUpgradeSupportMeta + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Owners: + - Owners + - Owners + Name: Name + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: capability.IomUpgradeSupportMeta + Moid: Moid SupportedModels: - SupportedModels - SupportedModels + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key DirectUpgrade: true title: Capability:Iom Upgrade Support Meta x-allOf-name: capability.IomUpgradeSupportMeta @@ -755524,11 +760459,69 @@ components: type: object description: FEX/IOCARD module port group aggregation capabilities. example: - ObjectType: capability.PortGroupAggregationDef - Pgtype: Pgtype + SharedScope: SharedScope + Parent: null + CreateTime: 2000-01-23T04:56:07.000+00:00 ClassId: capability.PortGroupAggregationDef + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null AggregationCap: AggregationCap + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Owners: + - Owners + - Owners + Name: Name Hw40GPortGroupCap: true + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: capability.PortGroupAggregationDef + Pgtype: Pgtype + Moid: Moid + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key title: Capability:Port Group Aggregation Def x-allOf-name: capability.PortGroupAggregationDef capability.PortGroupAggregationDef.List: @@ -755636,7 +760629,83 @@ components: allOf: - $ref: '#/components/schemas/capability.UpdateConstraintMeta' description: Internal meta-data to enable processor unit update related constraints. - example: {} + example: + ServerSpecificConstraint: + - ObjectType: capability.ServerComponentConstraint + MinSupportedVersion: MinSupportedVersion + ServerModel: ServerModel + ClassId: capability.ServerComponentConstraint + - ObjectType: capability.ServerComponentConstraint + MinSupportedVersion: MinSupportedVersion + ServerModel: ServerModel + ClassId: capability.ServerComponentConstraint + SharedScope: SharedScope + Parent: null + CreateTime: 2000-01-23T04:56:07.000+00:00 + ClassId: capability.AdapterUpdateConstraintMeta + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + IsSecureBootSupported: true + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Owners: + - Owners + - Owners + Name: Name + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: capability.AdapterUpdateConstraintMeta + MinSupportedVersion: MinSupportedVersion + Model: Model + Moid: Moid + DisplayNames: + key: + - DisplayNames + - DisplayNames + PlatformType: PlatformType + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key + SupportedPlatforms: + - SupportedPlatforms + - SupportedPlatforms title: Capability:Processor Unit Update Constraint Meta x-allOf-name: capability.ProcessorUnitUpdateConstraintMeta capability.ProcessorUnitUpdateConstraintMeta.List: @@ -755714,9 +760783,81 @@ components: type: object description: Descriptor that uniquely identifies a power supply. example: + Description: Description + SharedScope: SharedScope + Parent: null + CreateTime: 2000-01-23T04:56:07.000+00:00 + ClassId: capability.PsuDescriptor + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + Vendor: Vendor + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Owners: + - Owners + - Owners + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified ObjectType: capability.PsuDescriptor Revision: Revision - ClassId: capability.PsuDescriptor + Version: Version + Capabilities: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Model: Model + Moid: Moid + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key title: Capability:Psu Descriptor x-allOf-name: capability.PsuDescriptor capability.PsuDescriptor.List: @@ -755814,14 +760955,72 @@ components: type: object description: Power supply unit properties. example: - Vid: Vid - ObjectType: capability.PsuManufacturingDef Description: Description ProductName: ProductName + SharedScope: SharedScope + Parent: null + CreateTime: 2000-01-23T04:56:07.000+00:00 ClassId: capability.PsuManufacturingDef + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null Pid: Pid - Sku: Sku + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector Caption: Caption + Owners: + - Owners + - Owners + Name: Name + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + Vid: Vid + ObjectType: capability.PsuManufacturingDef + Moid: Moid + DisplayNames: + key: + - DisplayNames + - DisplayNames + Sku: Sku + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key title: Capability:Psu Manufacturing Def x-allOf-name: capability.PsuManufacturingDef capability.PsuManufacturingDef.List: @@ -756065,11 +761264,69 @@ components: type: object description: Internal meta-data to enable HSU related action. example: + SharedScope: SharedScope + Parent: null + CreateTime: 2000-01-23T04:56:07.000+00:00 + ClassId: capability.ServerActionsMeta + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Owners: + - Owners + - Owners + Name: Name + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified ObjectType: capability.ServerActionsMeta ActionName: ActionName MinSupportedVersion: MinSupportedVersion TargetType: "" - ClassId: capability.ServerActionsMeta + Moid: Moid + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key title: Capability:Server Actions Meta x-allOf-name: capability.ServerActionsMeta capability.ServerActionsMeta.List: @@ -756134,6 +761391,11 @@ components: type: object description: Constitutes the server model specific version support for the associated component. + example: + ObjectType: capability.ServerComponentConstraint + MinSupportedVersion: MinSupportedVersion + ServerModel: ServerModel + ClassId: capability.ServerComponentConstraint nullable: true title: Capability:Server Component Constraint x-allOf-name: capability.ServerComponentConstraint @@ -756212,11 +761474,83 @@ components: type: object description: Descriptor that uniquely identifies an IMM server. example: - ObjectType: capability.ServerDescriptor - MlomAdapterPcieSlotNumber: 0 + Description: Description + SharedScope: SharedScope + Parent: null + CreateTime: 2000-01-23T04:56:07.000+00:00 ClassId: capability.ServerDescriptor + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + Vendor: Vendor IsNcsiEnabled: true + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Owners: + - Owners + - Owners ServerFormFactor: unknown + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: capability.ServerDescriptor + Version: Version + Capabilities: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + MlomAdapterPcieSlotNumber: 0 + Model: Model + Moid: Moid + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key title: Capability:Server Descriptor x-allOf-name: capability.ServerDescriptor capability.ServerDescriptor.List: @@ -756301,12 +761635,70 @@ components: type: object description: Used to categorize server models. example: - ObjectType: capability.ServerModelsCapabilityDef ServerType: ServerType + SharedScope: SharedScope + Parent: null + CreateTime: 2000-01-23T04:56:07.000+00:00 ClassId: capability.ServerModelsCapabilityDef + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Owners: + - Owners + - Owners + Name: Name + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: capability.ServerModelsCapabilityDef + Moid: Moid Models: - Models - Models + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key title: Capability:Server Models Capability Def x-allOf-name: capability.ServerModelsCapabilityDef capability.ServerModelsCapabilityDef.List: @@ -756389,10 +761781,82 @@ components: description: Descriptor that identifies the server's redfish locatorled using cimc firmware info. example: - ObjectType: capability.ServerSchemaDescriptor - LocatorLedName: LocatorLedName + Description: Description RedfishSchema: RedfishSchema + SharedScope: SharedScope + Parent: null + CreateTime: 2000-01-23T04:56:07.000+00:00 ClassId: capability.ServerSchemaDescriptor + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + Vendor: Vendor + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Owners: + - Owners + - Owners + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: capability.ServerSchemaDescriptor + LocatorLedName: LocatorLedName + Version: Version + Capabilities: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Model: Model + Moid: Moid + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key title: Capability:Server Schema Descriptor x-allOf-name: capability.ServerSchemaDescriptor capability.ServerSchemaDescriptor.List: @@ -756490,14 +761954,72 @@ components: description: "Internal meta-data to map server family classification from server\ \ model, used in f/w policy also." example: - ObjectType: capability.ServerUpgradeSupportMeta Description: Description Platform: Platform + SharedScope: SharedScope + Parent: null + CreateTime: 2000-01-23T04:56:07.000+00:00 ClassId: capability.ServerUpgradeSupportMeta + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null ServerFamily: ServerFamily + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Owners: + - Owners + - Owners + Name: Name + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: capability.ServerUpgradeSupportMeta + Moid: Moid SupportedModels: - SupportedModels - SupportedModels + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key title: Capability:Server Upgrade Support Meta x-allOf-name: capability.ServerUpgradeSupportMeta capability.ServerUpgradeSupportMeta.List: @@ -756575,9 +762097,67 @@ components: type: object description: Chassis SIOC module capabilities. example: - ObjectType: capability.SiocModuleCapabilityDef + SharedScope: SharedScope + Parent: null DcSupported: true + CreateTime: 2000-01-23T04:56:07.000+00:00 ClassId: capability.SiocModuleCapabilityDef + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Owners: + - Owners + - Owners + Name: Name + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: capability.SiocModuleCapabilityDef + Moid: Moid + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key title: Capability:Sioc Module Capability Def x-allOf-name: capability.SiocModuleCapabilityDef capability.SiocModuleCapabilityDef.List: @@ -756655,9 +762235,81 @@ components: type: object description: Descriptor that uniquely identifies an SIOC module. example: + Description: Description + SharedScope: SharedScope + Parent: null + CreateTime: 2000-01-23T04:56:07.000+00:00 + ClassId: capability.SiocModuleDescriptor + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + Vendor: Vendor + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Owners: + - Owners + - Owners + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified ObjectType: capability.SiocModuleDescriptor Revision: Revision - ClassId: capability.SiocModuleDescriptor + Version: Version + Capabilities: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Model: Model + Moid: Moid + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key title: Capability:Sioc Module Descriptor x-allOf-name: capability.SiocModuleDescriptor capability.SiocModuleDescriptor.List: @@ -756755,14 +762407,72 @@ components: type: object description: Chassis SIOC module properties. example: - Vid: Vid - ObjectType: capability.SiocModuleManufacturingDef Description: Description ProductName: ProductName + SharedScope: SharedScope + Parent: null + CreateTime: 2000-01-23T04:56:07.000+00:00 ClassId: capability.SiocModuleManufacturingDef + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null Pid: Pid - Sku: Sku + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector Caption: Caption + Owners: + - Owners + - Owners + Name: Name + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + Vid: Vid + ObjectType: capability.SiocModuleManufacturingDef + Moid: Moid + DisplayNames: + key: + - DisplayNames + - DisplayNames + Sku: Sku + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key title: Capability:Sioc Module Manufacturing Def x-allOf-name: capability.SiocModuleManufacturingDef capability.SiocModuleManufacturingDef.List: @@ -756810,7 +762520,83 @@ components: - $ref: '#/components/schemas/capability.UpdateConstraintMeta' description: Internal meta-data to enable storage controller update related constraints. - example: {} + example: + ServerSpecificConstraint: + - ObjectType: capability.ServerComponentConstraint + MinSupportedVersion: MinSupportedVersion + ServerModel: ServerModel + ClassId: capability.ServerComponentConstraint + - ObjectType: capability.ServerComponentConstraint + MinSupportedVersion: MinSupportedVersion + ServerModel: ServerModel + ClassId: capability.ServerComponentConstraint + SharedScope: SharedScope + Parent: null + CreateTime: 2000-01-23T04:56:07.000+00:00 + ClassId: capability.AdapterUpdateConstraintMeta + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + IsSecureBootSupported: true + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Owners: + - Owners + - Owners + Name: Name + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: capability.AdapterUpdateConstraintMeta + MinSupportedVersion: MinSupportedVersion + Model: Model + Moid: Moid + DisplayNames: + key: + - DisplayNames + - DisplayNames + PlatformType: PlatformType + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key + SupportedPlatforms: + - SupportedPlatforms + - SupportedPlatforms title: Capability:Storage Controller Update Constraint Meta x-allOf-name: capability.StorageControllerUpdateConstraintMeta capability.StorageControllerUpdateConstraintMeta.List: @@ -757024,19 +762810,6 @@ components: type: object description: Type to represent additional switch specific capabilities. example: - PortsSupportingBreakout: - - EndPortId: 6 - ObjectType: capability.PortRange - StartPortId: 5 - StartSlotId: 5 - ClassId: capability.PortRange - EndSlotId: 1 - - EndPortId: 6 - ObjectType: capability.PortRange - StartPortId: 5 - StartSlotId: 5 - ClassId: capability.PortRange - EndSlotId: 1 ClassId: capability.SwitchCapability StorageLimits: ObjectType: capability.SwitchStorageLimits @@ -757046,6 +762819,7 @@ components: MaximumVsans: 6 ClassId: capability.SwitchStorageLimits MaximumUserZoneCount: 6 + Name: Name PortsSupportingFcoe: - EndPortId: 6 ObjectType: capability.PortRange @@ -757059,7 +762833,6 @@ components: StartSlotId: 5 ClassId: capability.PortRange EndSlotId: 1 - ObjectType: capability.SwitchCapability FcEndHostModeReservedVsans: - EndPortId: 6 ObjectType: capability.PortRange @@ -757073,7 +762846,6 @@ components: StartSlotId: 5 ClassId: capability.PortRange EndSlotId: 1 - MaxSlots: 7 MinVersionMapWithNegAuto25gSupport: ObjectType: firmware.VersionMap BundleVersion: BundleVersion @@ -757084,7 +762856,20 @@ components: BundleVersion: BundleVersion ClassId: firmware.VersionMap DeviceFirmwareVersion: DeviceFirmwareVersion - PortsSupportingServerRole: + DefaultFcoeVlan: 0 + ModTime: 2000-01-23T04:56:07.000+00:00 + MinVersionMapWithLocatorLedSupport: + ObjectType: firmware.VersionMap + BundleVersion: BundleVersion + ClassId: firmware.VersionMap + DeviceFirmwareVersion: DeviceFirmwareVersion + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key + ImmControlsVpcompression: true + PortsSupporting25gSpeed: - EndPortId: 6 ObjectType: capability.PortRange StartPortId: 5 @@ -757097,7 +762882,13 @@ components: StartSlotId: 5 ClassId: capability.PortRange EndSlotId: 1 - ReservedVsans: + SharedScope: SharedScope + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + FanModulesSupported: true + PortsSupporting10gSpeed: - EndPortId: 6 ObjectType: capability.PortRange StartPortId: 5 @@ -757110,7 +762901,19 @@ components: StartSlotId: 5 ClassId: capability.PortRange EndSlotId: 1 - UnifiedPorts: + LocatorBeaconSupported: true + UplinkAdminPortSpeedNegAuto25GbpsSupported: true + UnifiedRule: UnifiedRule + SwitchingModeCapabilities: + - ObjectType: capability.SwitchingModeCapability + SwitchingMode: end-host + ClassId: capability.SwitchingModeCapability + VpCompressionSupported: true + - ObjectType: capability.SwitchingModeCapability + SwitchingMode: end-host + ClassId: capability.SwitchingModeCapability + VpCompressionSupported: true + PortsSupporting100gSpeed: - EndPortId: 6 ObjectType: capability.PortRange StartPortId: 5 @@ -757123,26 +762926,7 @@ components: StartSlotId: 5 ClassId: capability.PortRange EndSlotId: 1 - NetworkLimits: - MaximumPrimaryVlan: 7 - MaximumVifs: 5 - MaximumFcPortChannelMembers: 1 - ClassId: capability.SwitchNetworkLimits - MaxCompressedPortVlanCount: 9 - MaximumFcPortChannels: 1 - MaximumIgmpGroups: 1 - MaximumVlans: 9 - MaxUncompressedPortVlanCount: 3 - ObjectType: capability.SwitchNetworkLimits - MaximumEthernetPortChannels: 4 - MinimumActiveFans: 9 - MaximumEthernetUplinkPorts: 7 - MaximumSecondaryVlanPerPrimary: 4 - MaximumSecondaryVlan: 1 - MaximumActiveTrafficMonitoringSessions: 2 - MaximumPortChannelMembers: 6 - DefaultFcoeVlan: 0 - PortsSupporting1gSpeed: + PortsSupportingBreakout: - EndPortId: 6 ObjectType: capability.PortRange StartPortId: 5 @@ -757155,15 +762939,37 @@ components: StartSlotId: 5 ClassId: capability.PortRange EndSlotId: 1 - FcUplinkPortsAutoNegotiationSupported: true - DynamicVifsSupported: true - MinVersionMapWithLocatorLedSupport: - ObjectType: firmware.VersionMap - BundleVersion: BundleVersion - ClassId: firmware.VersionMap - DeviceFirmwareVersion: DeviceFirmwareVersion - ImmControlsVpcompression: true - PortsSupporting25gSpeed: + Parent: null + Owners: + - Owners + - Owners + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: capability.SwitchCapability + MaxSlots: 7 + PortsSupportingServerRole: - EndPortId: 6 ObjectType: capability.PortRange StartPortId: 5 @@ -757176,12 +762982,7 @@ components: StartSlotId: 5 ClassId: capability.PortRange EndSlotId: 1 - SerenoNetflowSupported: true - ServerRoleSupportedOnBreakout: - - ServerRoleSupportedOnBreakout - - ServerRoleSupportedOnBreakout - FanModulesSupported: true - PortsSupporting10gSpeed: + ReservedVsans: - EndPortId: 6 ObjectType: capability.PortRange StartPortId: 5 @@ -757194,7 +762995,7 @@ components: StartSlotId: 5 ClassId: capability.PortRange EndSlotId: 1 - PortsSupporting40gSpeed: + UnifiedPorts: - EndPortId: 6 ObjectType: capability.PortRange StartPortId: 5 @@ -757207,26 +763008,62 @@ components: StartSlotId: 5 ClassId: capability.PortRange EndSlotId: 1 - LocatorBeaconSupported: true - UplinkAdminPortSpeedNegAuto25GbpsSupported: true - MaxPorts: 2 - UnifiedRule: UnifiedRule - SystemLimits: - ObjectType: capability.SwitchSystemLimits - MaximumChassisCount: 6 - MaximumFexPerDomain: 1 - ClassId: capability.SwitchSystemLimits - MaximumServersPerDomain: 2 - SwitchingModeCapabilities: - - ObjectType: capability.SwitchingModeCapability - SwitchingMode: end-host - ClassId: capability.SwitchingModeCapability - VpCompressionSupported: true - - ObjectType: capability.SwitchingModeCapability - SwitchingMode: end-host - ClassId: capability.SwitchingModeCapability - VpCompressionSupported: true - PortsSupporting100gSpeed: + NetworkLimits: + MaximumPrimaryVlan: 7 + MaximumVifs: 5 + MaximumFcPortChannelMembers: 1 + ClassId: capability.SwitchNetworkLimits + MaxCompressedPortVlanCount: 9 + MaximumFcPortChannels: 1 + MaximumIgmpGroups: 1 + MaximumVlans: 9 + MaxUncompressedPortVlanCount: 3 + ObjectType: capability.SwitchNetworkLimits + MaximumEthernetPortChannels: 4 + MinimumActiveFans: 9 + MaximumEthernetUplinkPorts: 7 + MaximumSecondaryVlanPerPrimary: 4 + MaximumSecondaryVlan: 1 + MaximumActiveTrafficMonitoringSessions: 2 + MaximumPortChannelMembers: 6 + PortsSupporting1gSpeed: + - EndPortId: 6 + ObjectType: capability.PortRange + StartPortId: 5 + StartSlotId: 5 + ClassId: capability.PortRange + EndSlotId: 1 + - EndPortId: 6 + ObjectType: capability.PortRange + StartPortId: 5 + StartSlotId: 5 + ClassId: capability.PortRange + EndSlotId: 1 + FcUplinkPortsAutoNegotiationSupported: true + DisplayNames: + key: + - DisplayNames + - DisplayNames + DynamicVifsSupported: true + CreateTime: 2000-01-23T04:56:07.000+00:00 + SerenoNetflowSupported: true + ServerRoleSupportedOnBreakout: + - ServerRoleSupportedOnBreakout + - ServerRoleSupportedOnBreakout + Pid: UCS-FI-6454 + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + PortsSupporting40gSpeed: - EndPortId: 6 ObjectType: capability.PortRange StartPortId: 5 @@ -757239,6 +763076,16 @@ components: StartSlotId: 5 ClassId: capability.PortRange EndSlotId: 1 + Vid: Vid + MaxPorts: 2 + Moid: Moid + Sku: Sku + SystemLimits: + ObjectType: capability.SwitchSystemLimits + MaximumChassisCount: 6 + MaximumFexPerDomain: 1 + ClassId: capability.SwitchSystemLimits + MaximumServersPerDomain: 2 title: Capability:Switch Capability x-allOf-name: capability.SwitchCapability capability.SwitchCapability.List: @@ -757390,11 +763237,83 @@ components: type: object description: Descriptor that uniquely identifies a Fabric interconnect. example: - ObjectType: capability.SwitchDescriptor ExpectedMemory: 0 - Revision: Revision + Description: Description + SharedScope: SharedScope + Parent: null + CreateTime: 2000-01-23T04:56:07.000+00:00 ClassId: capability.SwitchDescriptor + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + Vendor: Vendor IsUcsxDirectSwitch: false + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Owners: + - Owners + - Owners + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: capability.SwitchDescriptor + Revision: Revision + Version: Version + Capabilities: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Model: Model + Moid: Moid + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key title: Capability:Switch Descriptor x-allOf-name: capability.SwitchDescriptor capability.SwitchDescriptor.List: @@ -757481,10 +763400,71 @@ components: type: object description: Type to represent additional switch equipment information. example: - ObjectType: capability.SwitchEquipmentInfo + SharedScope: SharedScope + Parent: null + CreateTime: 2000-01-23T04:56:07.000+00:00 ClassId: capability.SwitchEquipmentInfo + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + Pid: Pid MaxFanModules: 0 + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Owners: + - Owners + - Owners + Name: Name + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + Vid: Vid + ObjectType: capability.SwitchEquipmentInfo + Moid: Moid MaxFansInFanModule: 6 + DisplayNames: + key: + - DisplayNames + - DisplayNames + Sku: Sku + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key title: Capability:Switch Equipment Info x-allOf-name: capability.SwitchEquipmentInfo capability.SwitchEquipmentInfo.List: @@ -757624,12 +763604,73 @@ components: type: object description: Switch/Fabric-Interconnect manufacturing def properties. example: - ObjectType: capability.SwitchManufacturingDef Description: Description PartNumber: PartNumber ProductName: ProductName + SharedScope: SharedScope + Parent: null + CreateTime: 2000-01-23T04:56:07.000+00:00 ClassId: capability.SwitchManufacturingDef + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + Pid: UCS-FI-6454 + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector Caption: Caption + Owners: + - Owners + - Owners + Name: Name + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + Vid: Vid + ObjectType: capability.SwitchManufacturingDef + Moid: Moid + DisplayNames: + key: + - DisplayNames + - DisplayNames + Sku: Sku + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key title: Capability:Switch Manufacturing Def x-allOf-name: capability.SwitchManufacturingDef capability.SwitchManufacturingDef.List: @@ -758020,11 +764061,69 @@ components: type: object description: Catalog of override allowed configurations for vNIC and vHBA templates. example: + SharedScope: SharedScope + Parent: null + CreateTime: 2000-01-23T04:56:07.000+00:00 + ClassId: capability.TemplateCatalog + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Owners: + - Owners + - Owners + Name: Name + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified ObjectType: capability.TemplateCatalog AllowedOverrideList: - AllowedOverrideList - AllowedOverrideList - ClassId: capability.TemplateCatalog + Moid: Moid + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key title: Capability:Template Catalog x-allOf-name: capability.TemplateCatalog capability.TemplateCatalog.List: @@ -758348,10 +764447,63 @@ components: type: object description: Internal meta-data to map update order. example: - ObjectType: capability.UpdateOrderMeta Category: Category Description: Description + SharedScope: SharedScope + Parent: null + CreateTime: 2000-01-23T04:56:07.000+00:00 ClassId: capability.UpdateOrderMeta + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Owners: + - Owners + - Owners + Name: Name + PlatformTag: PlatformTag + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: capability.UpdateOrderMeta + Moid: Moid + DisplayNames: + key: + - DisplayNames + - DisplayNames UpdateOrder: - InterimVersion: InterimVersion TargetVersion: TargetVersion @@ -758369,7 +764521,12 @@ components: SupportedModels: - SupportedModels - SupportedModels - PlatformTag: PlatformTag + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key title: Capability:Update Order Meta x-allOf-name: capability.UpdateOrderMeta capability.UpdateOrderMeta.List: @@ -758452,10 +764609,68 @@ components: type: object description: Descriptor that caches VIC ID to PID relation. example: - ObjectType: capability.VicDescriptor + SharedScope: SharedScope + Parent: null VicId: VicId - Model: Model + CreateTime: 2000-01-23T04:56:07.000+00:00 ClassId: capability.VicDescriptor + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Owners: + - Owners + - Owners + Name: Name + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: capability.VicDescriptor + Model: Model + Moid: Moid + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key title: Capability:Vic Descriptor x-allOf-name: capability.VicDescriptor capability.VicDescriptor.List: @@ -758553,15 +764768,78 @@ components: type: object description: Details for the Catalyst SDWAN config groups. example: - ObjectType: catalystsdwan.ConfigGroup ConfigGroupId: ConfigGroupId + RegisteredDevice: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + SharedScope: SharedScope + Parent: null NumberOfDevices: 0 + CreateTime: 2000-01-23T04:56:07.000+00:00 ClassId: catalystsdwan.ConfigGroup + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null Devices: - Devices - Devices - Solution: Solution + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Owners: + - Owners + - Owners Name: Name + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: catalystsdwan.ConfigGroup + Moid: Moid + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key + Solution: Solution title: Catalystsdwan:Config Group x-allOf-name: catalystsdwan.ConfigGroup catalystsdwan.ConfigGroup.List: @@ -758705,17 +764983,80 @@ components: type: object description: Details for the Catalyst SDWAN policy groups. example: - ObjectType: catalystsdwan.PolicyGroup + RegisteredDevice: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + SharedScope: SharedScope + Parent: null NumberOfDevices: 0 - Version: 1 PolicyGroupId: PolicyGroupId + CreateTime: 2000-01-23T04:56:07.000+00:00 ClassId: catalystsdwan.PolicyGroup + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null Devices: - Devices - Devices NumberOfDevicesUpToDate: 6 - Solution: Solution + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Owners: + - Owners + - Owners Name: Name + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: catalystsdwan.PolicyGroup + Version: 1 + Moid: Moid + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key + Solution: Solution title: Catalystsdwan:Policy Group x-allOf-name: catalystsdwan.PolicyGroup catalystsdwan.PolicyGroup.List: @@ -758835,25 +765176,108 @@ components: type: object description: Details for the Catalyst SDWAN Vedge entities. example: - SpOrganizationName: SpOrganizationName SiteId: SiteId + SiteName: SiteName + Parent: null + ClassId: catalystsdwan.VedgeDevice + Owners: + - Owners + - Owners + Name: Name + TemplateStatus: TemplateStatus + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + DeviceLocation: + ObjectType: equipment.DeviceLocation + Address: Address + ClassId: equipment.DeviceLocation + Latitude: 0.8008282 + Longitude: 6.0274563 + ObjectType: catalystsdwan.VedgeDevice + Version: Version + IsUpgraded: false + PlatformFamily: PlatformFamily + Presence: Presence + ConfigStatusMessage: ConfigStatusMessage + DisplayNames: + key: + - DisplayNames + - DisplayNames + Rn: Rn + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key + HostName: HostName + SpOrganizationName: SpOrganizationName RegisteredDevice: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - SiteName: SiteName - ClassId: catalystsdwan.VedgeDevice + SharedScope: SharedScope + CreateTime: 2000-01-23T04:56:07.000+00:00 + PreviousFru: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + Dn: Dn + Vendor: Vendor + AccountMoid: AccountMoid + DeviceMoId: DeviceMoId + HardwareVersion: HardwareVersion + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector Reachability: Reachability - TemplateStatus: TemplateStatus - ObjectType: catalystsdwan.VedgeDevice + DeviceType: DeviceType Validity: Validity + Serial: Serial DeviceState: DeviceState + Uuid: Uuid + Revision: Revision SystemIp: SystemIp - PlatformFamily: PlatformFamily - ConfigStatusMessage: ConfigStatusMessage - HostName: HostName + Model: Model + Moid: Moid title: Catalystsdwan:Vedge Device x-allOf-name: catalystsdwan.VedgeDevice catalystsdwan.VedgeDevice.List: @@ -759027,9 +765451,56 @@ components: example: ObjectType: certificatemanagement.Imc Privatekey: Privatekey + Enabled: true CertType: None ClassId: certificatemanagement.Imc IsPrivatekeySet: false + Certificate: + ObjectType: x509.Certificate + PemCertificate: PemCertificate + Sha256Fingerprint: Sha256Fingerprint + Issuer: + ObjectType: pkix.DistinguishedName + Organization: + - Organization + - Organization + OrganizationalUnit: + - OrganizationalUnit + - OrganizationalUnit + Locality: + - Locality + - Locality + State: + - State + - State + Country: + - Country + - Country + ClassId: pkix.DistinguishedName + CommonName: CommonName + ClassId: x509.Certificate + SignatureAlgorithm: SignatureAlgorithm + NotAfter: 2000-01-23T04:56:07.000+00:00 + NotBefore: 2000-01-23T04:56:07.000+00:00 + Subject: + ObjectType: pkix.DistinguishedName + Organization: + - Organization + - Organization + OrganizationalUnit: + - OrganizationalUnit + - OrganizationalUnit + Locality: + - Locality + - Locality + State: + - State + - State + Country: + - Country + - Country + ClassId: pkix.DistinguishedName + CommonName: CommonName title: IMC x-allOf-name: certificatemanagement.Imc certificatemanagement.Policy.Response: @@ -759100,24 +765571,16 @@ components: private key configuration that can be applied to multiple servers via profile association. example: - ObjectType: certificatemanagement.Policy + Description: Description Organization: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - Profiles: - - ObjectType: aaa.AuditRecord - link: link - Moid: Moid - ClassId: mo.MoRef - Selector: Selector - - ObjectType: aaa.AuditRecord - link: link - Moid: Moid - ClassId: mo.MoRef - Selector: Selector + SharedScope: SharedScope + Parent: null + CreateTime: 2000-01-23T04:56:07.000+00:00 Certificates: - ObjectType: certificatemanagement.Imc Enabled: true @@ -759365,6 +765828,73 @@ components: ClassId: pkix.DistinguishedName CommonName: CommonName ClassId: certificatemanagement.Policy + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Owners: + - Owners + - Owners + Name: Name + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: certificatemanagement.Policy + Profiles: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Moid: Moid + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key title: Certificate Management x-allOf-name: certificatemanagement.Policy certificatemanagement.Policy.List: @@ -759449,13 +765979,10 @@ components: private key configuration that can be applied to multiple servers via profile association. example: - ObjectType: certificatemanagement.PolicyInventory - TargetMo: - ObjectType: aaa.AuditRecord - link: link - Moid: Moid - ClassId: mo.MoRef - Selector: Selector + Description: Description + SharedScope: SharedScope + Parent: null + CreateTime: 2000-01-23T04:56:07.000+00:00 Certificates: - ObjectType: certificatemanagement.Imc Enabled: true @@ -759703,6 +766230,64 @@ components: ClassId: pkix.DistinguishedName CommonName: CommonName ClassId: certificatemanagement.PolicyInventory + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + AccountMoid: AccountMoid + DeviceMoId: DeviceMoId + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Owners: + - Owners + - Owners + Name: Name + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: certificatemanagement.PolicyInventory + TargetMo: null + Moid: Moid + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key title: Certificate Management x-allOf-name: certificatemanagement.PolicyInventory certificatemanagement.PolicyInventory.List: @@ -759766,8 +766351,55 @@ components: description: Root CA Certificate used for HTTPS server authentication. example: ObjectType: certificatemanagement.RootCaCertificate + Enabled: true ClassId: certificatemanagement.RootCaCertificate CertificateName: CertificateName + Certificate: + ObjectType: x509.Certificate + PemCertificate: PemCertificate + Sha256Fingerprint: Sha256Fingerprint + Issuer: + ObjectType: pkix.DistinguishedName + Organization: + - Organization + - Organization + OrganizationalUnit: + - OrganizationalUnit + - OrganizationalUnit + Locality: + - Locality + - Locality + State: + - State + - State + Country: + - Country + - Country + ClassId: pkix.DistinguishedName + CommonName: CommonName + ClassId: x509.Certificate + SignatureAlgorithm: SignatureAlgorithm + NotAfter: 2000-01-23T04:56:07.000+00:00 + NotBefore: 2000-01-23T04:56:07.000+00:00 + Subject: + ObjectType: pkix.DistinguishedName + Organization: + - Organization + - Organization + OrganizationalUnit: + - OrganizationalUnit + - OrganizationalUnit + Locality: + - Locality + - Locality + State: + - State + - State + Country: + - Country + - Country + ClassId: pkix.DistinguishedName + CommonName: CommonName title: Root CA Certificate x-allOf-name: certificatemanagement.RootCaCertificate chassis.BaseProfile.Relationship: @@ -759896,20 +766528,95 @@ components: type: object description: The configuration change details are captured here. example: - ObjectType: chassis.ConfigChangeDetail + Changes: + - Changes + - Changes + Message: Message + SharedScope: SharedScope + Parent: null IomProfile: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + CreateTime: 2000-01-23T04:56:07.000+00:00 ClassId: chassis.ConfigChangeDetail + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + AccountMoid: AccountMoid + ModStatus: None + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Disruptions: + - Disruptions + - Disruptions Profile: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + Owners: + - Owners + - Owners + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: chassis.ConfigChangeDetail + ConfigChangeFlag: Pending-changes + ConfigChangeContext: + EntityType: EntityType + ObjectType: policy.ConfigResultContext + EntityName: EntityName + EntityData: "" + ParentType: ParentType + EntityMoid: EntityMoid + ClassId: policy.ConfigResultContext + ParentMoid: ParentMoid + Moid: Moid + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key title: Chassis:Config Change Detail x-allOf-name: chassis.ConfigChangeDetail chassis.ConfigChangeDetail.List: @@ -760192,14 +766899,34 @@ components: description: "The profile configuration (deploy, validation) results with the\ \ overall state and detailed result messages." example: - ObjectType: chassis.ConfigResult + ValidationState: ValidationState + ConfigState: ConfigState + SharedScope: SharedScope + Parent: null IomProfile: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + CreateTime: 2000-01-23T04:56:07.000+00:00 ClassId: chassis.ConfigResult + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector Profile: ObjectType: aaa.AuditRecord link: link @@ -760217,6 +766944,77 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector + Owners: + - Owners + - Owners + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: chassis.ConfigResult + AppliedPolicies: + - ErrorMessages: + - ObjectType: policy.PolicyError + Type: none + Message: Message + ClassId: policy.PolicyError + - ObjectType: policy.PolicyError + Type: none + Message: Message + ClassId: policy.PolicyError + Status: ok + ObjectType: policy.PolicyStatus + Type: Type + Moid: Moid + ClassId: policy.PolicyStatus + Reason: Reason + - ErrorMessages: + - ObjectType: policy.PolicyError + Type: none + Message: Message + ClassId: policy.PolicyError + - ObjectType: policy.PolicyError + Type: none + Message: Message + ClassId: policy.PolicyError + Status: ok + ObjectType: policy.PolicyStatus + Type: Type + Moid: Moid + ClassId: policy.PolicyStatus + Reason: Reason + ConfigStage: ConfigStage + Moid: Moid + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key title: Chassis:Config Result x-allOf-name: chassis.ConfigResult chassis.ConfigResult.List: @@ -760303,14 +767101,85 @@ components: description: "The profile configuration (deploy, validation) results details\ \ information." example: + Context: + EntityType: EntityType + ObjectType: policy.ConfigResultContext + EntityName: EntityName + EntityData: "" + ParentType: ParentType + EntityMoid: EntityMoid + ClassId: policy.ConfigResultContext + ParentMoid: ParentMoid + Message: Message + SharedScope: SharedScope + Parent: null + CompletedTime: CompletedTime + CreateTime: 2000-01-23T04:56:07.000+00:00 + ClassId: chassis.ConfigResultEntry + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Owners: + - Owners + - Owners + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified ObjectType: chassis.ConfigResultEntry + Type: Type + OwnerId: OwnerId ConfigResult: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - ClassId: chassis.ConfigResultEntry + State: State + Moid: Moid + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key title: Chassis:Config Result Entry x-allOf-name: chassis.ConfigResultEntry chassis.ConfigResultEntry.List: @@ -760420,19 +767289,15 @@ components: type: object description: A profile specifying configuration settings for IOM. example: - ObjectType: chassis.IomProfile + Action: No-op + Description: Description Organization: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - ConfigResult: - ObjectType: aaa.AuditRecord - link: link - Moid: Moid - ClassId: mo.MoRef - Selector: Selector + Parent: null ConfigChanges: Changes: - Changes @@ -760458,8 +767323,72 @@ components: - Disruptions - Disruptions ClassId: chassis.IomProfile + Profile: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Owners: + - Owners + - Owners + Name: Name + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: chassis.IomProfile IomEntity: IOMA - ConfigChangeDetails: + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key + ConfigContext: + ObjectType: policy.ConfigContext + ConfigStateSummary: None + ConfigState: ConfigState + OperState: OperState + ErrorState: ErrorState + ClassId: policy.ConfigContext + InconsistencyReason: + - InconsistencyReason + - InconsistencyReason + ConfigType: ConfigType + ControlAction: ControlAction + SharedScope: SharedScope + CreateTime: 2000-01-23T04:56:07.000+00:00 + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + AccountMoid: AccountMoid + Ancestors: - ObjectType: aaa.AuditRecord link: link Moid: Moid @@ -760470,12 +767399,60 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector - Profile: + Type: instance + ScheduledActions: + - ObjectType: policy.ScheduledAction + Action: Action + ClassId: policy.ScheduledAction + ProceedOnReboot: true + - ObjectType: policy.ScheduledAction + Action: Action + ClassId: policy.ScheduledAction + ProceedOnReboot: true + ConfigResult: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + SrcTemplate: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + ActionParams: + - ObjectType: policy.ActionParam + Value: Value + ClassId: policy.ActionParam + Name: Name + - ObjectType: policy.ActionParam + Value: Value + ClassId: policy.ActionParam + Name: Name + Moid: Moid + PolicyBucket: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ConfigChangeDetails: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector title: IOM Profile x-allOf-name: chassis.IomProfile chassis.IomProfile.List: @@ -760590,14 +767567,15 @@ components: type: object description: A profile specifying configuration settings for a chassis. example: - ObjectType: chassis.Profile - UserLabel: UserLabel + Action: No-op + Description: Description Organization: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + Parent: null ConfigChanges: Changes: - Changes @@ -760628,6 +767606,105 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector + ClassId: chassis.Profile + Owners: + - Owners + - Owners + Name: Name + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: chassis.Profile + UserLabel: UserLabel + TargetPlatform: FIAttached + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key + ConfigContext: + ObjectType: policy.ConfigContext + ConfigStateSummary: None + ConfigState: ConfigState + OperState: OperState + ErrorState: ErrorState + ClassId: policy.ConfigContext + InconsistencyReason: + - InconsistencyReason + - InconsistencyReason + ConfigType: ConfigType + ControlAction: ControlAction + SharedScope: SharedScope + CreateTime: 2000-01-23T04:56:07.000+00:00 + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + RunningWorkflows: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Type: instance + ScheduledActions: + - ObjectType: policy.ScheduledAction + Action: Action + ClassId: policy.ScheduledAction + ProceedOnReboot: true + - ObjectType: policy.ScheduledAction + Action: Action + ClassId: policy.ScheduledAction + ProceedOnReboot: true + ConfigResult: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector AssociatedChassis: null ConfigChangeContext: ObjectType: policy.ConfigChangeContext @@ -760646,7 +767723,33 @@ components: - InconsistencyReason ConfigType: ConfigType ControlAction: ControlAction - ClassId: chassis.Profile + SrcTemplate: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ActionParams: + - ObjectType: policy.ActionParam + Value: Value + ClassId: policy.ActionParam + Name: Name + - ObjectType: policy.ActionParam + Value: Value + ClassId: policy.ActionParam + Name: Name + Moid: Moid + PolicyBucket: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector ConfigChangeDetails: - ObjectType: aaa.AuditRecord link: link @@ -760658,7 +767761,7 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector - RunningWorkflows: + IomProfiles: - ObjectType: aaa.AuditRecord link: link Moid: Moid @@ -760802,15 +767905,141 @@ components: } The response of the MoMerger API call would contain the changed profiles. example: - ObjectType: chassis.ProfileTemplate - Usage: 0 + Action: No-op + Description: Description Organization: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + Parent: null ClassId: chassis.ProfileTemplate + Owners: + - Owners + - Owners + Name: Name + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: chassis.ProfileTemplate + TargetPlatform: FIAttached + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key + ConfigContext: + ObjectType: policy.ConfigContext + ConfigStateSummary: None + ConfigState: ConfigState + OperState: OperState + ErrorState: ErrorState + ClassId: policy.ConfigContext + InconsistencyReason: + - InconsistencyReason + - InconsistencyReason + ConfigType: ConfigType + ControlAction: ControlAction + Usage: 0 + SharedScope: SharedScope + CreateTime: 2000-01-23T04:56:07.000+00:00 + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Type: instance + ScheduledActions: + - ObjectType: policy.ScheduledAction + Action: Action + ClassId: policy.ScheduledAction + ProceedOnReboot: true + - ObjectType: policy.ScheduledAction + Action: Action + ClassId: policy.ScheduledAction + ProceedOnReboot: true + ConfigResult: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + SrcTemplate: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ActionParams: + - ObjectType: policy.ActionParam + Value: Value + ClassId: policy.ActionParam + Name: Name + - ObjectType: policy.ActionParam + Value: Value + ClassId: policy.ActionParam + Name: Name + Moid: Moid + PolicyBucket: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + IomProfiles: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector title: Chassis Profile Template x-allOf-name: chassis.ProfileTemplate chassis.ProfileTemplate.List: @@ -760875,6 +768104,11 @@ components: type: object description: Isolated location within data center region from which public cloud services originate and operate. + example: + ObjectType: cloud.AvailabilityZone + ZoneId: ZoneId + ClassId: cloud.AvailabilityZone + Name: Name nullable: true title: Cloud:Availability Zone x-allOf-name: cloud.AvailabilityZone @@ -760947,7 +768181,7 @@ components: type: object description: Details of the AWS billing account are represented here. example: - ObjectType: cloud.AwsBillingUnit + Status: Status Email: Email RegisteredDevice: ObjectType: aaa.AuditRecord @@ -760955,7 +768189,67 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector + SharedScope: SharedScope + Parent: null + CreateTime: 2000-01-23T04:56:07.000+00:00 ClassId: cloud.AwsBillingUnit + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Owners: + - Owners + - Owners + Name: Name + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: cloud.AwsBillingUnit + Moid: Moid + DisplayNames: + key: + - DisplayNames + - DisplayNames + Identity: Identity + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key title: Cloud:Aws Billing Unit x-allOf-name: cloud.AwsBillingUnit cloud.AwsBillingUnit.List: @@ -761054,16 +768348,98 @@ components: \ private key and a public key, is a set of security credentials that are\ \ used to prove identity when connecting to an EC2 instance." example: - ObjectType: cloud.AwsKeyPair - PublicKey: PublicKey + Description: Description + Parent: null FingerPrint: FingerPrint ClassId: cloud.AwsKeyPair + RegionInfo: + ObjectType: cloud.CloudRegion + ClassId: cloud.CloudRegion + RegionId: RegionId + Name: Name + Owners: + - Owners + - Owners + Name: Name + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: cloud.AwsKeyPair + BillingUnit: + ObjectType: cloud.BillingUnit + BillingId: BillingId + ClassId: cloud.BillingUnit + Name: Name + DisplayNames: + key: + - DisplayNames + - DisplayNames + Identity: Identity + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key + RegisteredDevice: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + SharedScope: SharedScope + PublicKey: PublicKey + CreateTime: 2000-01-23T04:56:07.000+00:00 + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + AccountMoid: AccountMoid AwsBillingUnit: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Uuid: Uuid + Moid: Moid + ZoneInfo: + ObjectType: cloud.AvailabilityZone + ZoneId: ZoneId + ClassId: cloud.AvailabilityZone + Name: Name title: Cloud:Aws Key Pair x-allOf-name: cloud.AwsKeyPair cloud.AwsKeyPair.List: @@ -761189,27 +768565,104 @@ components: AWS Network Interface object is represented here.It is Virtual interface that can be attached to an instance in a Virtual Private Cloud (VPC). example: - PublicIpAddress: - - PublicIpAddress - - PublicIpAddress - Status: Status - ObjectType: cloud.AwsNetworkInterface SecurityGroups: - SecurityGroups - SecurityGroups + Description: Description PrivateDnsName: PrivateDnsName PrivateIpAddress: - PrivateIpAddress - PrivateIpAddress + Parent: null + AdapterType: Unknown + ClassId: cloud.AwsNetworkInterface + RegionInfo: + ObjectType: cloud.CloudRegion + ClassId: cloud.CloudRegion + RegionId: RegionId + Name: Name + Owners: + - Owners + - Owners + Name: Name + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + PublicIpAddress: + - PublicIpAddress + - PublicIpAddress + ObjectType: cloud.AwsNetworkInterface + BillingUnit: + ObjectType: cloud.BillingUnit + BillingId: BillingId + ClassId: cloud.BillingUnit + Name: Name + NicCreateTime: 2000-01-23T04:56:07.000+00:00 + DisplayNames: + key: + - DisplayNames + - DisplayNames + Identity: Identity + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key + Status: Status + RegisteredDevice: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector AwsSubnet: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - NicCreateTime: 2000-01-23T04:56:07.000+00:00 - ClassId: cloud.AwsNetworkInterface + SharedScope: SharedScope + CreateTime: 2000-01-23T04:56:07.000+00:00 + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + MacAddress: MacAddress + AccountMoid: AccountMoid PublicDnsName: PublicDnsName + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector InstanceAttachment: ObjectType: cloud.NetworkInstanceAttachment InstanceId: InstanceId @@ -761218,6 +768671,13 @@ components: AutoDelete: true ClassId: cloud.NetworkInstanceAttachment AttachTime: 2000-01-23T04:56:07.000+00:00 + Cidr: Cidr + Moid: Moid + ZoneInfo: + ObjectType: cloud.AvailabilityZone + ZoneId: ZoneId + ClassId: cloud.AvailabilityZone + Name: Name title: Cloud:Aws Network Interface x-allOf-name: cloud.AwsNetworkInterface cloud.AwsNetworkInterface.List: @@ -761494,7 +768954,8 @@ components: AWS Security group object is represented here. It contains inbound and outbound rules control the flow of traffic to and traffic from the virtual machine, respectively. example: - ObjectType: cloud.AwsSecurityGroup + Description: Description + Parent: null EgressRules: - Action: Action Description: Description @@ -761542,12 +769003,15 @@ components: ClassId: cloud.CloudTag Key: Key ClassId: cloud.AwsSecurityGroup - AwsBillingUnit: - ObjectType: aaa.AuditRecord - link: link - Moid: Moid - ClassId: mo.MoRef - Selector: Selector + RegionInfo: + ObjectType: cloud.CloudRegion + ClassId: cloud.CloudRegion + RegionId: RegionId + Name: Name + Owners: + - Owners + - Owners + Name: Name IngressRules: - Action: Action Description: Description @@ -761585,6 +769049,84 @@ components: PortList: - 1 - 1 + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: cloud.AwsSecurityGroup + BillingUnit: + ObjectType: cloud.BillingUnit + BillingId: BillingId + ClassId: cloud.BillingUnit + Name: Name + DisplayNames: + key: + - DisplayNames + - DisplayNames + Identity: Identity + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key + RegisteredDevice: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + SharedScope: SharedScope + CreateTime: 2000-01-23T04:56:07.000+00:00 + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + AccountMoid: AccountMoid + AwsBillingUnit: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Uuid: Uuid + Moid: Moid + ZoneInfo: + ObjectType: cloud.AvailabilityZone + ZoneId: ZoneId + ClassId: cloud.AvailabilityZone + Name: Name Location: ObjectType: aaa.AuditRecord link: link @@ -761718,20 +769260,81 @@ components: Subnet object in AWS inventory. It is a range of IP addresses in a VPC that can be used to isolate different EC2 resources from each other or from the Internet. example: - IsDefault: true + AutoAssignPrivateIpV6: true + Parent: null + ClassId: cloud.AwsSubnet + RegionInfo: + ObjectType: cloud.CloudRegion + ClassId: cloud.CloudRegion + RegionId: RegionId + Name: Name + AutoAssignPublicIpV4: true + Owners: + - Owners + - Owners + Name: Name + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified ObjectType: cloud.AwsSubnet Ipv4Cidr: Ipv4Cidr + BillingUnit: + ObjectType: cloud.BillingUnit + BillingId: BillingId + ClassId: cloud.BillingUnit + Name: Name + AvailabilityZoneName: AvailabilityZoneName + DisplayNames: + key: + - DisplayNames + - DisplayNames + Identity: Identity + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key + IsDefault: true AwsVpc: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - AutoAssignPrivateIpV6: true - State: State - AvailabilityZoneName: AvailabilityZoneName - ClassId: cloud.AwsSubnet - AutoAssignPublicIpV4: true + RegisteredDevice: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + SharedScope: SharedScope + CreateTime: 2000-01-23T04:56:07.000+00:00 + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null SubnetTags: - ObjectType: cloud.CloudTag Value: Value @@ -761741,6 +769344,26 @@ components: Value: Value ClassId: cloud.CloudTag Key: Key + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Cidr: Cidr + State: State + Moid: Moid + ZoneInfo: + ObjectType: cloud.AvailabilityZone + ZoneId: ZoneId + ClassId: cloud.AvailabilityZone + Name: Name Ipv6Cidr: Ipv6Cidr title: Cloud:Aws Subnet x-allOf-name: cloud.AwsSubnet @@ -761827,7 +769450,7 @@ components: type: object description: Configuration details of the virtual machine. example: - ObjectType: cloud.AwsVirtualMachine + Tenancy: Tenancy SecurityGroups: - ObjectType: aaa.AuditRecord link: link @@ -761839,19 +769462,286 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector + ProcessorCapacity: + ObjectType: virtualization.ComputeCapacity + Capacity: 3 + Used: 4 + ClassId: virtualization.ComputeCapacity + Free: 2 + Parent: null + ClassId: cloud.AwsVirtualMachine + TerminationTime: 2000-01-23T04:56:07.000+00:00 + Owners: + - Owners + - Owners + Name: Name + PublicDns: PublicDns + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: cloud.AwsVirtualMachine + Capacity: + ObjectType: infra.HardwareInfo + MemorySize: 1 + CpuCores: 0 + ClassId: infra.HardwareInfo + CpuSpeed: 6 + BillingUnit: + ObjectType: cloud.BillingUnit + BillingId: BillingId + ClassId: cloud.BillingUnit + Name: Name + DisplayNames: + key: + - DisplayNames + - DisplayNames + Identity: Identity + VmCreationTime: 2000-01-23T04:56:07.000+00:00 + ImageInfo: + ObjectType: cloud.ImageReference + ImageId: ImageId + ClassId: cloud.ImageReference + Name: Name + InstanceType: + ObjectType: cloud.InstanceType + Architecture: x86_64 + Platform: Platform + Memory: 1 + InstanceTypeId: InstanceTypeId + ClassId: cloud.InstanceType + CpuSpeed: 7 + Cpus: 1 + Name: Name + ModTime: 2000-01-23T04:56:07.000+00:00 + PowerState: Unknown + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key KeyPair: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - ClassId: cloud.AwsVirtualMachine + RegisteredDevice: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + SharedScope: SharedScope + Zone: + ObjectType: cloud.AvailabilityZone + ZoneId: ZoneId + ClassId: cloud.AvailabilityZone + Name: Name + CreateTime: 2000-01-23T04:56:07.000+00:00 + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + BootTime: 2000-01-23T04:56:07.000+00:00 + NetworkInterfaceAttachments: + - SecurityGroups: + - SecurityGroups + - SecurityGroups + NetworkName: NetworkName + SubNetworkId: SubNetworkId + ClassId: cloud.NetworkInterfaceAttachment + PublicAddress: + - ObjectType: cloud.NetworkAddress + IpVersion: IPv4 + Ip: Ip + ClassId: cloud.NetworkAddress + IpAllocation: Dynamic + - ObjectType: cloud.NetworkAddress + IpVersion: IPv4 + Ip: Ip + ClassId: cloud.NetworkAddress + IpAllocation: Dynamic + AccessConfig: + ObjectType: cloud.NetworkAccessConfig + PrivateDns: PrivateDns + ClassId: cloud.NetworkAccessConfig + ExternalIps: + - ObjectType: cloud.NetworkAddress + IpVersion: IPv4 + Ip: Ip + ClassId: cloud.NetworkAddress + IpAllocation: Dynamic + - ObjectType: cloud.NetworkAddress + IpVersion: IPv4 + Ip: Ip + ClassId: cloud.NetworkAddress + IpAllocation: Dynamic + PublicDns: PublicDns + MacAddress: MacAddress + NetworkId: NetworkId + ObjectType: cloud.NetworkInterfaceAttachment + IpForwardingEnabled: true + NicIndex: 1 + Identity: Identity + PrivateAddress: + - ObjectType: cloud.NetworkAddress + IpVersion: IPv4 + Ip: Ip + ClassId: cloud.NetworkAddress + IpAllocation: Dynamic + - ObjectType: cloud.NetworkAddress + IpVersion: IPv4 + Ip: Ip + ClassId: cloud.NetworkAddress + IpAllocation: Dynamic + SubNetworkName: SubNetworkName + - SecurityGroups: + - SecurityGroups + - SecurityGroups + NetworkName: NetworkName + SubNetworkId: SubNetworkId + ClassId: cloud.NetworkInterfaceAttachment + PublicAddress: + - ObjectType: cloud.NetworkAddress + IpVersion: IPv4 + Ip: Ip + ClassId: cloud.NetworkAddress + IpAllocation: Dynamic + - ObjectType: cloud.NetworkAddress + IpVersion: IPv4 + Ip: Ip + ClassId: cloud.NetworkAddress + IpAllocation: Dynamic + AccessConfig: + ObjectType: cloud.NetworkAccessConfig + PrivateDns: PrivateDns + ClassId: cloud.NetworkAccessConfig + ExternalIps: + - ObjectType: cloud.NetworkAddress + IpVersion: IPv4 + Ip: Ip + ClassId: cloud.NetworkAddress + IpAllocation: Dynamic + - ObjectType: cloud.NetworkAddress + IpVersion: IPv4 + Ip: Ip + ClassId: cloud.NetworkAddress + IpAllocation: Dynamic + PublicDns: PublicDns + MacAddress: MacAddress + NetworkId: NetworkId + ObjectType: cloud.NetworkInterfaceAttachment + IpForwardingEnabled: true + NicIndex: 1 + Identity: Identity + PrivateAddress: + - ObjectType: cloud.NetworkAddress + IpVersion: IPv4 + Ip: Ip + ClassId: cloud.NetworkAddress + IpAllocation: Dynamic + - ObjectType: cloud.NetworkAddress + IpVersion: IPv4 + Ip: Ip + ClassId: cloud.NetworkAddress + IpAllocation: Dynamic + SubNetworkName: SubNetworkName + MemoryCapacity: + ObjectType: virtualization.MemoryCapacity + Capacity: 5 + Used: 7 + ClassId: virtualization.MemoryCapacity + Free: 2 + AccountMoid: AccountMoid + VolumeAttachments: + - ObjectType: cloud.VolumeAttachment + AttachedTime: 2000-01-23T04:56:07.000+00:00 + DetachedTime: 2000-01-23T04:56:07.000+00:00 + IsRoot: true + AutoDelete: true + ClassId: cloud.VolumeAttachment + Index: 6 + Identity: Identity + DeviceName: DeviceName + - ObjectType: cloud.VolumeAttachment + AttachedTime: 2000-01-23T04:56:07.000+00:00 + DetachedTime: 2000-01-23T04:56:07.000+00:00 + IsRoot: true + AutoDelete: true + ClassId: cloud.VolumeAttachment + Index: 6 + Identity: Identity + DeviceName: DeviceName AwsBillingUnit: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Provider: Unknown + HypervisorType: ESXi + Uuid: Uuid + State: None + Moid: Moid + PrivateDns: PrivateDns + Region: + ObjectType: cloud.CloudRegion + ClassId: cloud.CloudRegion + RegionId: RegionId + Name: Name + VirtualMachineTags: + - ObjectType: cloud.CloudTag + Value: Value + ClassId: cloud.CloudTag + Key: Key + - ObjectType: cloud.CloudTag + Value: Value + ClassId: cloud.CloudTag + Key: Key + GuestInfo: + OperatingSystem: OperatingSystem + ObjectType: virtualization.GuestInfo + Hostname: Hostname + ClassId: virtualization.GuestInfo + IpAddress: IpAddress + Name: Name + IpAddress: + - IpAddress + - IpAddress + CpuUtilization: 5.962134 + MemoryUtilization: 9.301444 Location: ObjectType: aaa.AuditRecord link: link @@ -761934,14 +769824,136 @@ components: description: AWS volume object is represented here.It depicts configuration used to create volume and its identity. example: - ObjectType: cloud.AwsVolume + InstanceAttachments: + - ObjectType: cloud.VolumeInstanceAttachment + InstanceId: InstanceId + State: UnRecognized + AutoDelete: true + ClassId: cloud.VolumeInstanceAttachment + AttachTime: 2000-01-23T04:56:07.000+00:00 + DeviceName: DeviceName + - ObjectType: cloud.VolumeInstanceAttachment + InstanceId: InstanceId + State: UnRecognized + AutoDelete: true + ClassId: cloud.VolumeInstanceAttachment + AttachTime: 2000-01-23T04:56:07.000+00:00 + DeviceName: DeviceName + Parent: null + Size: 0 + IopsInfo: + ObjectType: cloud.VolumeIopsInfo + ThroughputWriteLimit: 5 + ClassId: cloud.VolumeIopsInfo + IopsWriteLimit: 1 + ThroughputReadLimit: 5 + IopsReadLimit: 6 ClassId: cloud.AwsVolume + RegionInfo: + ObjectType: cloud.CloudRegion + ClassId: cloud.CloudRegion + RegionId: RegionId + Name: Name + Owners: + - Owners + - Owners + Name: Name + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: cloud.AwsVolume + VolumeType: + ObjectType: cloud.VolumeType + ClassId: cloud.VolumeType + VolumeTypeId: VolumeTypeId + Name: Name + BillingUnit: + ObjectType: cloud.BillingUnit + BillingId: BillingId + ClassId: cloud.BillingUnit + Name: Name + DisplayNames: + key: + - DisplayNames + - DisplayNames + Identity: Identity + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key + VolumeCreateTime: 2000-01-23T04:56:07.000+00:00 + RegisteredDevice: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + SharedScope: SharedScope + CreateTime: 2000-01-23T04:56:07.000+00:00 + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + SourceImageId: SourceImageId + AccountMoid: AccountMoid AwsBillingUnit: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + EncryptionState: Automatic + Uuid: Uuid + VolumeTags: + - ObjectType: cloud.CloudTag + Value: Value + ClassId: cloud.CloudTag + Key: Key + - ObjectType: cloud.CloudTag + Value: Value + ClassId: cloud.CloudTag + Key: Key + State: UnRecognized + Moid: Moid + ZoneInfo: + ObjectType: cloud.AvailabilityZone + ZoneId: ZoneId + ClassId: cloud.AvailabilityZone + Name: Name title: Cloud:Aws Volume x-allOf-name: cloud.AwsVolume cloud.AwsVolume.List: @@ -762074,8 +770086,44 @@ components: VPC (Virtual Private Cloud) object in AWS inventory.It is a service that lets you launch AWS resources in a logically isolated virtual network. example: - IsDefault: true Tenancy: Tenancy + Parent: null + DnsHostName: true + DnsResolution: true + ClassId: cloud.AwsVpc + RegionInfo: + ObjectType: cloud.CloudRegion + ClassId: cloud.CloudRegion + RegionId: RegionId + Name: Name + Owners: + - Owners + - Owners + Name: Name + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified ObjectType: cloud.AwsVpc Ipv4Cidr: - Ipv4Cidr @@ -762089,16 +770137,61 @@ components: Value: Value ClassId: cloud.CloudTag Key: Key - DnsHostName: true - State: State - DnsResolution: true - ClassId: cloud.AwsVpc + BillingUnit: + ObjectType: cloud.BillingUnit + BillingId: BillingId + ClassId: cloud.BillingUnit + Name: Name + DisplayNames: + key: + - DisplayNames + - DisplayNames + Identity: Identity + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key + IsDefault: true + RegisteredDevice: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + SharedScope: SharedScope + CreateTime: 2000-01-23T04:56:07.000+00:00 + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + AccountMoid: AccountMoid AwsBillingUnit: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Uuid: Uuid + State: State + Moid: Moid + ZoneInfo: + ObjectType: cloud.AvailabilityZone + ZoneId: ZoneId + ClassId: cloud.AvailabilityZone + Name: Name Ipv6Cidr: - Ipv6Cidr - Ipv6Cidr @@ -762910,6 +771003,11 @@ components: - ObjectType type: object description: Details of the paying account. + example: + ObjectType: cloud.BillingUnit + BillingId: BillingId + ClassId: cloud.BillingUnit + Name: Name nullable: true title: Cloud:Billing Unit x-allOf-name: cloud.BillingUnit @@ -762955,6 +771053,11 @@ components: - ObjectType type: object description: Geographic location where your public cloud resources are located. + example: + ObjectType: cloud.CloudRegion + ClassId: cloud.CloudRegion + RegionId: RegionId + Name: Name nullable: true title: Cloud:Cloud Region x-allOf-name: cloud.CloudRegion @@ -763211,6 +771314,11 @@ components: - ObjectType type: object description: Image used in deployment of virtual machine. + example: + ObjectType: cloud.ImageReference + ImageId: ImageId + ClassId: cloud.ImageReference + Name: Name nullable: true title: Cloud:Image Reference x-allOf-name: cloud.ImageReference @@ -763289,6 +771397,16 @@ components: - ObjectType type: object description: "The cpu, memory, storage and network capacity of this instance." + example: + ObjectType: cloud.InstanceType + Architecture: x86_64 + Platform: Platform + Memory: 1 + InstanceTypeId: InstanceTypeId + ClassId: cloud.InstanceType + CpuSpeed: 7 + Cpus: 1 + Name: Name nullable: true title: Cloud:Instance Type x-allOf-name: cloud.InstanceType @@ -763337,6 +771455,22 @@ components: - ObjectType type: object description: Public IP and DNS (Domain Name System) information of Network interface. + example: + ObjectType: cloud.NetworkAccessConfig + PrivateDns: PrivateDns + ClassId: cloud.NetworkAccessConfig + ExternalIps: + - ObjectType: cloud.NetworkAddress + IpVersion: IPv4 + Ip: Ip + ClassId: cloud.NetworkAddress + IpAllocation: Dynamic + - ObjectType: cloud.NetworkAddress + IpVersion: IPv4 + Ip: Ip + ClassId: cloud.NetworkAddress + IpAllocation: Dynamic + PublicDns: PublicDns nullable: true title: Cloud:Network Access Config x-allOf-name: cloud.NetworkAccessConfig @@ -763404,6 +771538,12 @@ components: type: object description: "Network address details such as IP address, IP version, IP allocation\ \ type." + example: + ObjectType: cloud.NetworkAddress + IpVersion: IPv4 + Ip: Ip + ClassId: cloud.NetworkAddress + IpAllocation: Dynamic nullable: true title: Cloud:Network Address x-allOf-name: cloud.NetworkAddress @@ -763586,6 +771726,58 @@ components: - ObjectType type: object description: Network interface details. + example: + SecurityGroups: + - SecurityGroups + - SecurityGroups + NetworkName: NetworkName + SubNetworkId: SubNetworkId + ClassId: cloud.NetworkInterfaceAttachment + PublicAddress: + - ObjectType: cloud.NetworkAddress + IpVersion: IPv4 + Ip: Ip + ClassId: cloud.NetworkAddress + IpAllocation: Dynamic + - ObjectType: cloud.NetworkAddress + IpVersion: IPv4 + Ip: Ip + ClassId: cloud.NetworkAddress + IpAllocation: Dynamic + AccessConfig: + ObjectType: cloud.NetworkAccessConfig + PrivateDns: PrivateDns + ClassId: cloud.NetworkAccessConfig + ExternalIps: + - ObjectType: cloud.NetworkAddress + IpVersion: IPv4 + Ip: Ip + ClassId: cloud.NetworkAddress + IpAllocation: Dynamic + - ObjectType: cloud.NetworkAddress + IpVersion: IPv4 + Ip: Ip + ClassId: cloud.NetworkAddress + IpAllocation: Dynamic + PublicDns: PublicDns + MacAddress: MacAddress + NetworkId: NetworkId + ObjectType: cloud.NetworkInterfaceAttachment + IpForwardingEnabled: true + NicIndex: 1 + Identity: Identity + PrivateAddress: + - ObjectType: cloud.NetworkAddress + IpVersion: IPv4 + Ip: Ip + ClassId: cloud.NetworkAddress + IpAllocation: Dynamic + - ObjectType: cloud.NetworkAddress + IpVersion: IPv4 + Ip: Ip + ClassId: cloud.NetworkAddress + IpAllocation: Dynamic + SubNetworkName: SubNetworkName nullable: true title: Cloud:Network Interface Attachment x-allOf-name: cloud.NetworkInterfaceAttachment @@ -764182,10 +772374,102 @@ components: type: object description: Stores hardware attribute information for a container. example: + BasePrice: 0.8008282 + Description: Description + ServiceCategory: Compute + Parent: null + IsActive: true + ClassId: cloud.SkuContainerType + Unit: Unit + Owners: + - Owners + - Owners + Name: Name + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified ObjectType: cloud.SkuContainerType + Target: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + CustomAttributes: + - ObjectType: cloud.CustomAttributes + AttributeValue: AttributeValue + AttributeType: AttributeType + ClassId: cloud.CustomAttributes + AttributeName: AttributeName + - ObjectType: cloud.CustomAttributes + AttributeValue: AttributeValue + AttributeType: AttributeType + ClassId: cloud.CustomAttributes + AttributeName: AttributeName CpuUnit: VIRTUAL_CPU - ClassId: cloud.SkuContainerType - NumOfCpus: 0 + Currency: USD + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key + IsAutoDiscovered: true + NumOfCpus: 6 + ServiceFamily: ServiceFamily + SharedScope: SharedScope + CreateTime: 2000-01-23T04:56:07.000+00:00 + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ServiceName: ServiceName + Moid: Moid + Region: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + RegionId: RegionId + PlatformType: "" title: Cloud:Sku Container Type x-allOf-name: cloud.SkuContainerType cloud.SkuContainerType.List: @@ -764276,11 +772560,103 @@ components: type: object description: Stores details of instance type which handle databases. example: - ObjectType: cloud.SkuDatabaseType - LicenseModel: LicenseModel + BasePrice: 0.8008282 + Description: Description + ServiceCategory: Compute + Parent: null + IsActive: true DatabaseEdition: DatabaseEdition DatabaseEngine: DatabaseEngine ClassId: cloud.SkuDatabaseType + Unit: Unit + Owners: + - Owners + - Owners + Name: Name + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: cloud.SkuDatabaseType + Target: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + CustomAttributes: + - ObjectType: cloud.CustomAttributes + AttributeValue: AttributeValue + AttributeType: AttributeType + ClassId: cloud.CustomAttributes + AttributeName: AttributeName + - ObjectType: cloud.CustomAttributes + AttributeValue: AttributeValue + AttributeType: AttributeType + ClassId: cloud.CustomAttributes + AttributeName: AttributeName + Currency: USD + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key + IsAutoDiscovered: true + LicenseModel: LicenseModel + ServiceFamily: ServiceFamily + SharedScope: SharedScope + CreateTime: 2000-01-23T04:56:07.000+00:00 + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ServiceName: ServiceName + Moid: Moid + Region: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + RegionId: RegionId + PlatformType: "" NetworkPerformance: NetworkPerformance title: Cloud:Sku Database Type x-allOf-name: cloud.SkuDatabaseType @@ -764433,18 +772809,110 @@ components: type: object description: Details for an instance type. example: - ArchitectureType: 64Bit + BasePrice: 0.8008282 + Description: Description + ServiceCategory: Compute + Parent: null + IsActive: true + ClassId: cloud.SkuInstanceType + Unit: Unit + Owners: + - Owners + - Owners + Name: Name + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified ObjectType: cloud.SkuInstanceType - MemorySize: 6.0274563 - MemorySizeUnit: MB + Target: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + CustomAttributes: + - ObjectType: cloud.CustomAttributes + AttributeValue: AttributeValue + AttributeType: AttributeType + ClassId: cloud.CustomAttributes + AttributeName: AttributeName + - ObjectType: cloud.CustomAttributes + AttributeValue: AttributeValue + AttributeType: AttributeType + ClassId: cloud.CustomAttributes + AttributeName: AttributeName + CpuUnit: VIRTUAL_CPU + Currency: USD + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key + IsAutoDiscovered: true + NumOfCpus: 5 + ArchitectureType: 64Bit + MemorySize: 1.4658129 + ServiceFamily: ServiceFamily CudaSupport: true - LocalStorageSize: 0.8008282 LocalStorageSizeUnit: MB + SharedScope: SharedScope + CreateTime: 2000-01-23T04:56:07.000+00:00 + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + MemorySizeUnit: MB + LocalStorageSize: 6.0274563 NumOfNics: 5 - CpuUnit: VIRTUAL_CPU - ClassId: cloud.SkuInstanceType + ServiceName: ServiceName + Moid: Moid + Region: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + RegionId: RegionId + PlatformType: "" NetworkPerformance: NetworkPerformance - NumOfCpus: 1 title: Cloud:Sku Instance Type x-allOf-name: cloud.SkuInstanceType cloud.SkuInstanceType.List: @@ -764491,7 +772959,101 @@ components: allOf: - $ref: '#/components/schemas/cloud.BaseSku' description: Model to represent network attributes. - example: {} + example: + BasePrice: 0.8008282 + Description: Description + ServiceCategory: Compute + Parent: null + IsActive: true + ClassId: cloud.SkuContainerType + Unit: Unit + Owners: + - Owners + - Owners + Name: Name + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: cloud.SkuContainerType + Target: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + CustomAttributes: + - ObjectType: cloud.CustomAttributes + AttributeValue: AttributeValue + AttributeType: AttributeType + ClassId: cloud.CustomAttributes + AttributeName: AttributeName + - ObjectType: cloud.CustomAttributes + AttributeValue: AttributeValue + AttributeType: AttributeType + ClassId: cloud.CustomAttributes + AttributeName: AttributeName + Currency: USD + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key + IsAutoDiscovered: true + ServiceFamily: ServiceFamily + SharedScope: SharedScope + CreateTime: 2000-01-23T04:56:07.000+00:00 + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ServiceName: ServiceName + Moid: Moid + Region: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + RegionId: RegionId + PlatformType: "" title: Cloud:Sku Network Type x-allOf-name: cloud.SkuNetworkType cloud.SkuNetworkType.List: @@ -765034,23 +773596,115 @@ components: type: object description: Stores information about the volume types. example: - IsDefault: true - MaxThroughput: 5.962133916683182 + BasePrice: 0.8008282 + Description: Description + ServiceCategory: Compute + Parent: null + IsActive: true IopsUnit: IopsUnit - MaxWriteThroughput: 7.061401241503109 ClassId: cloud.SkuVolumeType - ThroughputUnit: ThroughputUnit - MaxVolumeSize: 5.637376656633329 - MaxIops: 0.8008281904610115 + Unit: Unit + MaxIops: 6.027456183070403 + Owners: + - Owners + - Owners + Name: Name + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified ObjectType: cloud.SkuVolumeType - MaxReadIops: 6.027456183070403 + Target: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + MaxReadIops: 1.4658129805029452 + CustomAttributes: + - ObjectType: cloud.CustomAttributes + AttributeValue: AttributeValue + AttributeType: AttributeType + ClassId: cloud.CustomAttributes + AttributeName: AttributeName + - ObjectType: cloud.CustomAttributes + AttributeValue: AttributeValue + AttributeType: AttributeType + ClassId: cloud.CustomAttributes + AttributeName: AttributeName + Currency: USD + MaxWriteIops: 7.061401241503109 + VolumeSizeUnit: VolumeSizeUnit + DisplayNames: + key: + - DisplayNames + - DisplayNames + MinVolumeSize: 3.616076749251911 + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key + IsAutoDiscovered: true + MaxReadThroughput: 5.962133916683182 + IsDefault: true + MaxThroughput: 5.637376656633329 + ServiceFamily: ServiceFamily + SharedScope: SharedScope + CreateTime: 2000-01-23T04:56:07.000+00:00 + MaxWriteThroughput: 9.301444243932576 + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + ThroughputUnit: ThroughputUnit + MaxVolumeSize: 2.3021358869347655 + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector Type: Type - MaxWriteIops: 2.3021358869347655 + ServiceName: ServiceName + Moid: Moid + Region: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + RegionId: RegionId IsProvisionedIops: true - VolumeSizeUnit: VolumeSizeUnit + PlatformType: "" IsBootable: true - MinVolumeSize: 9.301444243932576 - MaxReadThroughput: 1.4658129805029452 title: Cloud:Sku Volume Type x-allOf-name: cloud.SkuVolumeType cloud.SkuVolumeType.List: @@ -765794,6 +774448,16 @@ components: - ObjectType type: object description: Volume attachment details for the virtual machine. + example: + ObjectType: cloud.VolumeAttachment + AttachedTime: 2000-01-23T04:56:07.000+00:00 + DetachedTime: 2000-01-23T04:56:07.000+00:00 + IsRoot: true + AutoDelete: true + ClassId: cloud.VolumeAttachment + Index: 6 + Identity: Identity + DeviceName: DeviceName nullable: true title: Cloud:Volume Attachment x-allOf-name: cloud.VolumeAttachment @@ -765864,6 +774528,14 @@ components: - ObjectType type: object description: Information about the volume attachments. + example: + ObjectType: cloud.VolumeInstanceAttachment + InstanceId: InstanceId + State: UnRecognized + AutoDelete: true + ClassId: cloud.VolumeInstanceAttachment + AttachTime: 2000-01-23T04:56:07.000+00:00 + DeviceName: DeviceName nullable: true title: Cloud:Volume Instance Attachment x-allOf-name: cloud.VolumeInstanceAttachment @@ -765923,6 +774595,13 @@ components: - ObjectType type: object description: Volume input/output operations per second. + example: + ObjectType: cloud.VolumeIopsInfo + ThroughputWriteLimit: 5 + ClassId: cloud.VolumeIopsInfo + IopsWriteLimit: 1 + ThroughputReadLimit: 5 + IopsReadLimit: 6 nullable: true title: Cloud:Volume Iops Info x-allOf-name: cloud.VolumeIopsInfo @@ -765967,6 +774646,11 @@ components: - ObjectType type: object description: Name and identity details of volume type. + example: + ObjectType: cloud.VolumeType + ClassId: cloud.VolumeType + VolumeTypeId: VolumeTypeId + Name: Name nullable: true title: Cloud:Volume Type x-allOf-name: cloud.VolumeType @@ -766132,8 +774816,67 @@ components: required when the internet access of your servers including CIMC and HyperFlex storage controller VMs is secured by a HTTP proxy. example: - ObjectType: comm.HttpProxyPolicy + IsPasswordSet: false + Description: Description + Organization: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + SharedScope: SharedScope + Parent: null + CreateTime: 2000-01-23T04:56:07.000+00:00 + Port: 5249 + Hostname: Hostname ClassId: comm.HttpProxyPolicy + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Owners: + - Owners + - Owners + Name: Name + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: comm.HttpProxyPolicy + Username: Username + Moid: Moid ClusterProfiles: - ObjectType: aaa.AuditRecord link: link @@ -766145,6 +774888,17 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key + Password: Password title: HTTP Proxy x-allOf-name: comm.HttpProxyPolicy comm.HttpProxyPolicy.List: @@ -766677,8 +775431,10 @@ components: description: Server which is housed in a chassis and shares some of the hardware with other servers in the chassis. example: - ScaledMode: ScaledMode - HybridDriveSlots: + ServiceProfile: ServiceProfile + OperState: OperState + NumFcHostInterfaces: 1 + BootVmediaDevices: - ObjectType: aaa.AuditRecord link: link Moid: Moid @@ -766689,13 +775445,26 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector - InventoryDeviceInfo: + SlotId: 9 + Board: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - PciNodes: + TunneledKvm: true + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key + RegisteredDevice: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Adapters: - ObjectType: aaa.AuditRecord link: link Moid: Moid @@ -766706,13 +775475,92 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector - ClassId: compute.Blade - BiosTokenSettings: + Lifecycle: None + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + BootCddDevices: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + NumEthHostInterfaces: 7 + AssetTag: AssetTag + ComputePersonality: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + StorageEnclosures: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + TotalMemory: 5 + NumCpuCoresEnabled: 1 + BootDeviceBootmode: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + BootUsbDevices: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + KvmVendor: KvmVendor + BiosPostComplete: true + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + KvmServerStateEnabled: true BiosBootmode: ObjectType: aaa.AuditRecord link: link @@ -766720,19 +775568,19 @@ components: ClassId: mo.MoRef Selector: Selector ObjectType: compute.Blade - SlotId: 0 - Board: - ObjectType: aaa.AuditRecord + UserLabel: UserLabel + BootNvmeDevices: + - ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - BiosVfSelectMemoryRasConfiguration: - ObjectType: aaa.AuditRecord + - ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + IsUpgraded: false BiosUnits: - ObjectType: aaa.AuditRecord link: link @@ -766744,24 +775592,100 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector - EquipmentChassis: + Bmc: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + Rn: Rn + NumThreads: 4 + CreateTime: 2000-01-23T04:56:07.000+00:00 + GenericInventoryHolders: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ManagementMode: IntersightStandalone + NumAdaptors: 1 + Serial: Serial + KvmIpAddresses: + - HttpPort: 3 + Category: Equipment + Address: Address + ClassId: compute.IpAddress + Dn: Dn + Name: Outband + ObjectType: compute.IpAddress + KvmVlan: 7 + Type: MgmtInterface + DefaultGateway: DefaultGateway + KvmPort: 4 + Subnet: Subnet + HttpsPort: 2 + - HttpPort: 3 + Category: Equipment + Address: Address + ClassId: compute.IpAddress + Dn: Dn + Name: Outband + ObjectType: compute.IpAddress + KvmVlan: 7 + Type: MgmtInterface + DefaultGateway: DefaultGateway + KvmPort: 4 + Subnet: Subnet + HttpsPort: 2 + AlarmSummary: + ObjectType: compute.AlarmSummary + Warning: 2 + SuppressedInfo: 5 + Health: Healthy + Suppressed: true + SuppressedWarning: 5 + ClassId: compute.AlarmSummary + Critical: 0 + SuppressedCritical: 1 + Info: 6 + FaultSummary: 9 + Model: Model + Moid: Moid + PlatformType: PlatformType + ScaledMode: ScaledMode + PciNodes: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: compute.Blade + MgmtIpAddress: MgmtIpAddress + Name: Name + Operability: Operability TopSystem: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - Bmc: + BootDeviceBootSecurity: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + ModTime: 2000-01-23T04:56:07.000+00:00 ChassisId: ChassisId MemoryArrays: - ObjectType: aaa.AuditRecord @@ -766774,13 +775698,53 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector - RegisteredDevice: + SharedScope: SharedScope + BootHddDevices: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Dn: Dn + DeviceMoId: DeviceMoId + AdminPowerState: AdminPowerState + PciDevices: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Revision: Revision + StorageControllers: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + OperPowerState: OperPowerState + LocatorLed: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - Adapters: + NumCpus: 6 + Processors: - ObjectType: aaa.AuditRecord link: link Moid: Moid @@ -766791,7 +775755,21 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector - GenericInventoryHolders: + Vmedia: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + FrontPanelLockState: None + MgmtIdentity: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Parent: null + HybridDriveSlots: - ObjectType: aaa.AuditRecord link: link Moid: Moid @@ -766802,7 +775780,13 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector - GraphicsCards: + InventoryDeviceInfo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + BootPxeDevices: - ObjectType: aaa.AuditRecord link: link Moid: Moid @@ -766813,7 +775797,7 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector - ComputePersonality: + BootUefiShellDevices: - ObjectType: aaa.AuditRecord link: link Moid: Moid @@ -766824,7 +775808,16 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector - PciDevices: + BiosTokenSettings: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Owners: + - Owners + - Owners + BootSdDevices: - ObjectType: aaa.AuditRecord link: link Moid: Moid @@ -766835,7 +775828,21 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector - StorageControllers: + BiosVfSelectMemoryRasConfiguration: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + HardwareUuid: HardwareUuid + EquipmentChassis: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Presence: Presence + BootSanDevices: - ObjectType: aaa.AuditRecord link: link Moid: Moid @@ -766846,7 +775853,11 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector - StorageEnclosures: + DisplayNames: + key: + - DisplayNames + - DisplayNames + BootIscsiDevices: - ObjectType: aaa.AuditRecord link: link Moid: Moid @@ -766857,7 +775868,8 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector - EquipmentIoExpanders: + NumCpuCores: 1 + BootPchStorageDevices: - ObjectType: aaa.AuditRecord link: link Moid: Moid @@ -766868,29 +775880,53 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector - LocatorLed: + PreviousFru: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - BootDeviceBootmode: - ObjectType: aaa.AuditRecord + MemorySpeed: MemorySpeed + Vendor: Vendor + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - Processors: - ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + OperReason: + - Unknown + - Unknown + GraphicsCards: - ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Uuid: Uuid + EquipmentIoExpanders: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + AvailableMemory: 7 title: Compute:Blade x-allOf-name: compute.Blade compute.Blade.List: @@ -767043,10 +776079,48 @@ components: description: Identity object that uniquely represents a blade server object under a DR. example: + PhysicalDeviceRegistration: null + Parent: null + AdminAction: None + ClassId: compute.BladeIdentity + LastDiscoveryTriggered: Unknown + FirmwareSupportability: Unknown + Owners: + - Owners + - Owners + Name: Name + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified ObjectType: compute.BladeIdentity - CurrentSlotId: 1 - SlotId: 5 - ChassisId: 0 + CurrentSlotId: 5 + SlotId: 2 + Identifier: 1 + LifecycleModTime: 2000-01-23T04:56:07.000+00:00 + CustomPermissionResources: + - null + - null ManagedNodes: - ObjectType: aaa.AuditRecord link: link @@ -767060,9 +776134,48 @@ components: Selector: Selector ManagerSlotId: 5 Presence: Unknown - ClassId: compute.BladeIdentity - FirmwareSupportability: Unknown - CurrentChassisId: 6 + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key + CurrentChassisId: 1 + ChassisId: 6 + RegisteredDevice: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + SharedScope: SharedScope + CreateTime: 2000-01-23T04:56:07.000+00:00 + Lifecycle: None + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + AdminActionState: None + Vendor: Vendor + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Serial: Serial + Model: Model + Moid: Moid title: Blade Server Identity Information x-allOf-name: compute.BladeIdentity compute.BladeIdentity.List: @@ -767449,7 +776562,8 @@ components: type: object description: Mother board of a server. example: - MemoryArrays: + Parent: null + HybridDriveSlots: - ObjectType: aaa.AuditRecord link: link Moid: Moid @@ -767460,30 +776574,35 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector - RegisteredDevice: + InventoryDeviceInfo: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - HybridDriveSlots: - - ObjectType: aaa.AuditRecord + ComputeBlade: + ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - - ObjectType: aaa.AuditRecord + ClassId: compute.Board + ComputeRackUnit: + ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - InventoryDeviceInfo: + PersistentMemoryConfiguration: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - PciCoprocessorCards: + Owners: + - Owners + - Owners + PciSwitch: - ObjectType: aaa.AuditRecord link: link Moid: Moid @@ -767494,26 +776613,76 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector - ComputeBlade: - ObjectType: aaa.AuditRecord + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + BoardId: 0 + ObjectType: compute.Board + StorageFlexUtilControllers: + - ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - ClassId: compute.Board - ComputeRackUnit: - ObjectType: aaa.AuditRecord + - ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - PersistentMemoryConfiguration: + IsUpgraded: false + Presence: Presence + CpuTypeController: CpuTypeController + DisplayNames: + key: + - DisplayNames + - DisplayNames + Rn: Rn + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key + MemoryArrays: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + RegisteredDevice: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - PciSwitch: + SharedScope: SharedScope + PciCoprocessorCards: - ObjectType: aaa.AuditRecord link: link Moid: Moid @@ -767524,11 +776693,22 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector - BoardId: 0 - OperReason: - - Unknown - - Unknown - GraphicsCards: + CreateTime: 2000-01-23T04:56:07.000+00:00 + PreviousFru: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + Dn: Dn + Vendor: Vendor + AccountMoid: AccountMoid + DeviceMoId: DeviceMoId + Ancestors: - ObjectType: aaa.AuditRecord link: link Moid: Moid @@ -767539,7 +776719,10 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector - StorageControllerDrives: + OperReason: + - Unknown + - Unknown + GraphicsCards: - ObjectType: aaa.AuditRecord link: link Moid: Moid @@ -767550,8 +776733,7 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector - ObjectType: compute.Board - StorageFlexUtilControllers: + StorageControllerDrives: - ObjectType: aaa.AuditRecord link: link Moid: Moid @@ -767562,6 +776744,8 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector + Serial: Serial + Revision: Revision StorageControllers: - ObjectType: aaa.AuditRecord link: link @@ -767584,7 +776768,9 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector + Model: Model OperPowerState: OperPowerState + Moid: Moid SecurityUnits: - ObjectType: aaa.AuditRecord link: link @@ -767607,7 +776793,6 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector - CpuTypeController: CpuTypeController Processors: - ObjectType: aaa.AuditRecord link: link @@ -767726,24 +776911,90 @@ components: type: object description: The status for the file download initiated in the endpoint. example: + DownloadPercentage: 1 + Parent: null + ClassId: compute.DownloadStatus + Owners: + - Owners + - Owners + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified ObjectType: compute.DownloadStatus - DownloadPercentage: 0 - DownloadMessage: DownloadMessage + DownloadProgress: 0 + Checksum: + ObjectType: connector.FileChecksum + ClassId: connector.FileChecksum + Hash: Hash + HashAlgorithm: crc + DownloadError: DownloadError + Sha256checksum: Sha256checksum + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + SdCardDownloadError: SdCardDownloadError + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key + SharedScope: SharedScope HostOp: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + CreateTime: 2000-01-23T04:56:07.000+00:00 + DownloadRetries: 6 Workflow: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - ClassId: compute.DownloadStatus + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null DownloadStage: DownloadStage - SdCardDownloadError: SdCardDownloadError + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + DownloadMessage: DownloadMessage + Moid: Moid title: Compute:Download Status x-allOf-name: compute.DownloadStatus compute.DownloadStatus.List: @@ -768099,19 +777350,19 @@ components: type: object description: Complex type representing an IP address in UCSM. example: - HttpPort: 2 + HttpPort: 3 Category: Equipment Address: Address ClassId: compute.IpAddress Dn: Dn Name: Outband ObjectType: compute.IpAddress - KvmVlan: 1 + KvmVlan: 7 Type: MgmtInterface DefaultGateway: DefaultGateway - KvmPort: 7 + KvmPort: 4 Subnet: Subnet - HttpsPort: 4 + HttpsPort: 2 nullable: true title: Compute:Ip Address x-allOf-name: compute.IpAddress @@ -768209,33 +777460,93 @@ components: type: object description: Virtual Media image uploaded on the server. example: + Parent: null + InventoryDeviceInfo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: compute.Mapping + MediaTypes: + - MediaTypes + - MediaTypes + Owners: + - Owners + - Owners + Name: Name + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified ObjectType: compute.Mapping - ImageName: ImageName Identifier: Identifier + DisplayNames: + key: + - DisplayNames + - DisplayNames + Rn: Rn + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key RegisteredDevice: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - InventoryDeviceInfo: - ObjectType: aaa.AuditRecord + SharedScope: SharedScope + CreateTime: 2000-01-23T04:56:07.000+00:00 + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + Dn: Dn + AccountMoid: AccountMoid + DeviceMoId: DeviceMoId + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + ImageName: ImageName FileLocation: FileLocation - ClassId: compute.Mapping - MediaTypes: - - MediaTypes - - MediaTypes + Moid: Moid Vmedia: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - Name: Name title: Uploaded vMedia Image x-allOf-name: compute.Mapping compute.Mapping.List: @@ -768475,7 +777786,6 @@ components: description: This can be used to model a server based on a defined personality without having to reprogram the server PID. example: - ObjectType: compute.Personality AdditionalInfo: AdditionalInfo RegisteredDevice: ObjectType: aaa.AuditRecord @@ -768483,21 +777793,82 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector + SharedScope: SharedScope + Parent: null ComputeBlade: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - PersonalityId: 0 + CreateTime: 2000-01-23T04:56:07.000+00:00 ClassId: compute.Personality + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + Dn: Dn ComputeRackUnit: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + AccountMoid: AccountMoid + DeviceMoId: DeviceMoId + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Owners: + - Owners + - Owners Name: Name + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: compute.Personality + PersonalityId: 0 + Moid: Moid + DisplayNames: + key: + - DisplayNames + - DisplayNames + Rn: Rn + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key title: Compute:Personality x-allOf-name: compute.Personality compute.Personality.List: @@ -769387,11 +778758,11 @@ components: OperState: OperState ScaledMode: ScaledMode ClassId: compute.PhysicalSummary - NumFcHostInterfaces: 4 + NumFcHostInterfaces: 3 MgmtIpAddress: MgmtIpAddress Name: Name Operability: Operability - SlotId: 9 + SlotId: 7 TunneledKvm: true Firmware: Firmware TopologyScanStatus: TopologyScanStatus @@ -769417,13 +778788,13 @@ components: - null Dn: Dn DeviceMoId: DeviceMoId - NumEthHostInterfaces: 1 + NumEthHostInterfaces: 9 AdminPowerState: AdminPowerState AssetTag: AssetTag Revision: Revision OperPowerState: OperPowerState - TotalMemory: 6 - NumCpuCoresEnabled: 6 + TotalMemory: 1 + NumCpuCoresEnabled: 2 NumCpus: 7 InventoryParent: null FrontPanelLockState: None @@ -769467,7 +778838,7 @@ components: VersionType: Modified KvmServerStateEnabled: true ObjectType: compute.PhysicalSummary - ServerId: 9 + ServerId: 4 UserLabel: UserLabel HardwareUuid: HardwareUuid IsUpgraded: true @@ -769484,8 +778855,8 @@ components: - DisplayNames Rn: Rn Ipv4Address: Ipv4Address - NumThreads: 5 - NumCpuCores: 1 + NumThreads: 2 + NumCpuCores: 5 CreateTime: 2000-01-23T04:56:07.000+00:00 MemorySpeed: MemorySpeed Personality: Personality @@ -769502,41 +778873,41 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector - CpuCapacity: 9.301444 + CpuCapacity: 6.0274563 ManagementMode: IntersightStandalone - NumAdaptors: 1 + NumAdaptors: 5 OperReason: - Unknown - Unknown Serial: Serial Uuid: Uuid KvmIpAddresses: - - HttpPort: 2 + - HttpPort: 3 Category: Equipment Address: Address ClassId: compute.IpAddress Dn: Dn Name: Outband ObjectType: compute.IpAddress - KvmVlan: 1 + KvmVlan: 7 Type: MgmtInterface DefaultGateway: DefaultGateway - KvmPort: 7 + KvmPort: 4 Subnet: Subnet - HttpsPort: 4 - - HttpPort: 2 + HttpsPort: 2 + - HttpPort: 3 Category: Equipment Address: Address ClassId: compute.IpAddress Dn: Dn Name: Outband ObjectType: compute.IpAddress - KvmVlan: 1 + KvmVlan: 7 Type: MgmtInterface DefaultGateway: DefaultGateway - KvmPort: 7 + KvmPort: 4 Subnet: Subnet - HttpsPort: 4 + HttpsPort: 2 AlarmSummary: ObjectType: compute.AlarmSummary Warning: 2 @@ -769548,10 +778919,10 @@ components: Critical: 0 SuppressedCritical: 1 Info: 6 - FaultSummary: 3 + FaultSummary: 1 Model: Model Moid: Moid - AvailableMemory: 7 + AvailableMemory: 0 PlatformType: PlatformType title: PhysicalSummary x-allOf-name: compute.PhysicalSummary @@ -769775,13 +779146,40 @@ components: type: object description: Describes a standalone or FI-attached Rack-mounted server. example: - RackEnclosureSlot: + ServiceProfile: ServiceProfile + OperState: OperState + NumFcHostInterfaces: 9 + BootVmediaDevices: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Board: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - HybridDriveSlots: + TunneledKvm: true + ConnectionStatus: ConnectionStatus + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key + RegisteredDevice: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Adapters: - ObjectType: aaa.AuditRecord link: link Moid: Moid @@ -769792,19 +779190,109 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector - InventoryDeviceInfo: + Lifecycle: None + Psus: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + BootCddDevices: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + NumEthHostInterfaces: 7 + AssetTag: AssetTag + ComputePersonality: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + StorageEnclosures: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + TotalMemory: 2 + NumCpuCoresEnabled: 5 + BootDeviceBootmode: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - ClassId: compute.RackUnit - BiosTokenSettings: + RackEnclosureSlot: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + BootUsbDevices: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + KvmVendor: KvmVendor + BiosPostComplete: true + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + KvmServerStateEnabled: true BiosBootmode: ObjectType: aaa.AuditRecord link: link @@ -769812,32 +779300,114 @@ components: ClassId: mo.MoRef Selector: Selector ObjectType: compute.RackUnit - ServerId: 0 - Board: - ObjectType: aaa.AuditRecord + UserLabel: UserLabel + BootNvmeDevices: + - ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - BiosVfSelectMemoryRasConfiguration: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + IsUpgraded: false + Bmc: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + Rn: Rn + NumThreads: 3 + CreateTime: 2000-01-23T04:56:07.000+00:00 + GenericInventoryHolders: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ManagementMode: IntersightStandalone + NumAdaptors: 1 + Biosunits: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Serial: Serial + KvmIpAddresses: + - HttpPort: 3 + Category: Equipment + Address: Address + ClassId: compute.IpAddress + Dn: Dn + Name: Outband + ObjectType: compute.IpAddress + KvmVlan: 7 + Type: MgmtInterface + DefaultGateway: DefaultGateway + KvmPort: 4 + Subnet: Subnet + HttpsPort: 2 + - HttpPort: 3 + Category: Equipment + Address: Address + ClassId: compute.IpAddress + Dn: Dn + Name: Outband + ObjectType: compute.IpAddress + KvmVlan: 7 + Type: MgmtInterface + DefaultGateway: DefaultGateway + KvmPort: 4 + Subnet: Subnet + HttpsPort: 2 + AlarmSummary: + ObjectType: compute.AlarmSummary + Warning: 2 + SuppressedInfo: 5 + Health: Healthy + Suppressed: true + SuppressedWarning: 5 + ClassId: compute.AlarmSummary + Critical: 0 + SuppressedCritical: 1 + Info: 6 + FaultSummary: 6 + Model: Model + Moid: Moid + PlatformType: PlatformType + ClassId: compute.RackUnit + MgmtIpAddress: MgmtIpAddress + Name: Name + Operability: Operability TopSystem: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - Bmc: + BootDeviceBootSecurity: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - Fanmodules: + TopologyScanStatus: TopologyScanStatus + ModTime: 2000-01-23T04:56:07.000+00:00 + MemoryArrays: - ObjectType: aaa.AuditRecord link: link Moid: Moid @@ -769848,9 +779418,8 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector - TopologyScanStatus: TopologyScanStatus - ConnectionStatus: ConnectionStatus - MemoryArrays: + SharedScope: SharedScope + BootHddDevices: - ObjectType: aaa.AuditRecord link: link Moid: Moid @@ -769861,135 +779430,203 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector - RegisteredDevice: - ObjectType: aaa.AuditRecord + Dn: Dn + DeviceMoId: DeviceMoId + UnitPersonality: + - ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - Adapters: - ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + AdminPowerState: AdminPowerState + PciDevices: - ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - Psus: - ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + Revision: Revision + StorageControllers: - ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - GenericInventoryHolders: - ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + OperPowerState: OperPowerState + LocatorLed: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + NumCpus: 2 + Processors: - ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - UnitPersonality: - ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + Vmedia: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + FrontPanelLockState: None + MgmtIdentity: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Parent: null + HybridDriveSlots: - ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - GraphicsCards: - ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + InventoryDeviceInfo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + BootPxeDevices: - ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - Biosunits: - ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + BootUefiShellDevices: - ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - ComputePersonality: - ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + BiosTokenSettings: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Owners: + - Owners + - Owners + BootSdDevices: - ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - PciDevices: - ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + ServerId: 4 + BiosVfSelectMemoryRasConfiguration: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + HardwareUuid: HardwareUuid + Presence: Presence + Fanmodules: - ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - StorageControllers: - ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + BootSanDevices: - ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - StorageEnclosures: - ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + DisplayNames: + key: + - DisplayNames + - DisplayNames + BootIscsiDevices: - ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - LocatorLed: - ObjectType: aaa.AuditRecord + - ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - BootDeviceBootmode: + NumCpuCores: 5 + BootPchStorageDevices: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + PreviousFru: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - Processors: + MemorySpeed: MemorySpeed + Vendor: Vendor + AccountMoid: AccountMoid + Ancestors: - ObjectType: aaa.AuditRecord link: link Moid: Moid @@ -770000,6 +779637,22 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector + OperReason: + - Unknown + - Unknown + GraphicsCards: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Uuid: Uuid + AvailableMemory: 0 SasExpanders: - ObjectType: aaa.AuditRecord link: link @@ -770089,8 +779742,85 @@ components: description: Identity object that uniquely represents a server object under a DR. example: - ObjectType: compute.RackUnitIdentity + PhysicalDeviceRegistration: null + Parent: null + AdminAction: None ClassId: compute.RackUnitIdentity + LastDiscoveryTriggered: Unknown + Owners: + - Owners + - Owners + Name: Name + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: compute.RackUnitIdentity + Identifier: 1 + LifecycleModTime: 2000-01-23T04:56:07.000+00:00 + CustomPermissionResources: + - null + - null + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key + RegisteredDevice: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + SharedScope: SharedScope + CreateTime: 2000-01-23T04:56:07.000+00:00 + Lifecycle: None + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + AdminActionState: None + Vendor: Vendor + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Serial: Serial + Model: Model + Moid: Moid AdapterSerial: AdapterSerial title: Rack Server Identity Information x-allOf-name: compute.RackUnitIdentity @@ -770234,8 +779964,15 @@ components: type: object description: Identifier pool that generates a unique number for a server object. example: - ObjectType: compute.ServerIdPool + SharedScope: SharedScope + Parent: null + CreateTime: 2000-01-23T04:56:07.000+00:00 + NextAvailableId: 6 ClassId: compute.ServerIdPool + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null DeviceRegistration: ObjectType: aaa.AuditRecord link: link @@ -770243,8 +779980,62 @@ components: ClassId: mo.MoRef Selector: Selector PreferredIds: + - 1 + - 1 + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Owners: + - Owners + - Owners + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: compute.ServerIdPool + Moid: Moid + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + GapAvailableIds: - 0 - 0 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key title: Compute:Server Id Pool x-allOf-name: compute.ServerIdPool compute.ServerIdPool.List: @@ -770424,7 +780215,7 @@ components: description: Policy to determine the required power task during server profile deploy/undeploy. example: - ObjectType: compute.ServerPowerPolicy + Description: Description Organization: ObjectType: aaa.AuditRecord link: link @@ -770443,6 +780234,55 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector + SharedScope: SharedScope + Parent: null + CreateTime: 2000-01-23T04:56:07.000+00:00 + ClassId: compute.ServerPowerPolicy + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Owners: + - Owners + - Owners + Name: Name + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: compute.ServerPowerPolicy ServerName: ServerName Profiles: - ObjectType: aaa.AuditRecord @@ -770455,8 +780295,18 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector - ClassId: compute.ServerPowerPolicy + Moid: Moid + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 PowerState: Policy + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key title: Apply Server Power Policy x-allOf-name: compute.ServerPowerPolicy compute.ServerPowerPolicy.List: @@ -770734,6 +780584,7 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector + Parent: null StorageUtilityImageOperation: ObjectType: compute.StorageUtilityImageOperation ImageName: ImageName @@ -770803,7 +780654,34 @@ components: WorkflowType: WorkflowType ClassId: compute.ServerOpStatus CmosReset: Ready + Owners: + - Owners + - Owners Name: Name + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified ObjectType: compute.ServerSetting ServerConfig: ObjectType: compute.ServerConfig @@ -770812,7 +780690,18 @@ components: ClassId: compute.ServerConfig OneTimeBootDevice: OneTimeBootDevice ClearSel: Ready + DisplayNames: + key: + - DisplayNames + - DisplayNames + Rn: Rn + ModTime: 2000-01-23T04:56:07.000+00:00 HostInitConfiguration: HostInitConfiguration + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key StorageVirtualDriveOperation: ObjectType: compute.StorageVirtualDriveOperation AdminAction: None @@ -770837,12 +780726,32 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector + SharedScope: SharedScope + CreateTime: 2000-01-23T04:56:07.000+00:00 KvmReset: Ready PersonalitySetting: AdditionalInformation: "" ObjectType: compute.PersonalitySetting ClassId: compute.PersonalitySetting Personality: Personality + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + Dn: Dn + AccountMoid: AccountMoid + DeviceMoId: DeviceMoId + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector AdminPowerState: Policy TpmReset: None TunneledKvmState: Ready @@ -770853,6 +780762,7 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector + Moid: Moid AdminLocatorLedState: None PersistentMemoryOperation: ObjectType: compute.PersistentMemoryOperation @@ -771361,14 +781271,77 @@ components: description: Inventory of Virtual Media configuration and images uploaded. example: LowPowerUsb: true + Parent: null + InventoryDeviceInfo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: compute.Vmedia + Encryption: true + Owners: + - Owners + - Owners + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified ObjectType: compute.Vmedia + DisplayNames: + key: + - DisplayNames + - DisplayNames + Rn: Rn + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key RegisteredDevice: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - Mappings: + SharedScope: SharedScope + CreateTime: 2000-01-23T04:56:07.000+00:00 + ComputePhysicalUnit: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Enabled: true + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + Dn: Dn + AccountMoid: AccountMoid + DeviceMoId: DeviceMoId + Ancestors: - ObjectType: aaa.AuditRecord link: link Moid: Moid @@ -771379,21 +781352,18 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector - InventoryDeviceInfo: - ObjectType: aaa.AuditRecord + Mappings: + - ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - ComputePhysicalUnit: - ObjectType: aaa.AuditRecord + - ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - Enabled: true - ClassId: compute.Vmedia - Encryption: true + Moid: Moid title: Virtual Media Configuration x-allOf-name: compute.Vmedia compute.Vmedia.List: @@ -772274,7 +782244,12 @@ components: \ when the issue exists, documentation of the detected issue and the alarms\ \ to be raised/cleared by Intersight." example: - ObjectType: cond.AlarmDefinition + Condition: + ObjectType: aaa.UserAgent + ClassId: aaa.UserAgent + Description: Description + SharedScope: SharedScope + Parent: null Actions: - ObjectType: cond.AlarmAction Message: @@ -772302,7 +782277,69 @@ components: ObjectType: cond.AlarmSpec ClassId: cond.AlarmSpec Severity: None + CreateTime: 2000-01-23T04:56:07.000+00:00 ClassId: cond.AlarmDefinition + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Owners: + - Owners + - Owners + Name: Name + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: cond.AlarmDefinition + ProbableCause: ProbableCause + SystemClassifications: + - SystemClassifications + - SystemClassifications + Moid: Moid + Remediation: Remediation + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key title: Cond:Alarm Definition x-allOf-name: cond.AlarmDefinition cond.AlarmDefinition.List: @@ -774025,6 +784062,11 @@ components: type: object description: A checksum value of a file's contents. Used to verify the integrity or equality of files on the file system. + example: + ObjectType: connector.FileChecksum + ClassId: connector.FileChecksum + Hash: Hash + HashAlgorithm: crc nullable: true title: Connector:File Checksum x-allOf-name: connector.FileChecksum @@ -775295,23 +785337,83 @@ components: description: Concrete class for terminal Console. example: StopBits: 1 - ObjectType: console.ConsoleConfig Speed: 6 - NetworkElement: + RegisteredDevice: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - RegisteredDevice: + SharedScope: SharedScope + Parent: null + DataBits: 0 + CreateTime: 2000-01-23T04:56:07.000+00:00 + ClassId: console.ConsoleConfig + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + Dn: Dn + AccountMoid: AccountMoid + DeviceMoId: DeviceMoId + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Owners: + - Owners + - Owners + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: console.ConsoleConfig + NetworkElement: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - DataBits: 0 - ClassId: console.ConsoleConfig + Moid: Moid + DisplayNames: + key: + - DisplayNames + - DisplayNames + Rn: Rn + ModTime: 2000-01-23T04:56:07.000+00:00 Parity: none + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key title: Console:Console Config x-allOf-name: console.ConsoleConfig console.ConsoleConfig.List: @@ -775539,7 +785641,16 @@ components: - $ref: '#/components/schemas/content.BaseParameter' description: Concrete implementation of BaseParameter for XML and JSON content types. - example: {} + example: + Path: Path + ObjectType: content.Parameter + AcceptSingleValue: true + Type: simple + ItemType: simple + Secure: true + ClassId: content.Parameter + ComplexType: ComplexType + Name: Name title: Parameter x-allOf-name: content.Parameter content.TextParameter: @@ -775740,12 +785851,8 @@ components: description: The compliance details for an adapter present in a server which is part of a converged infrastructure pod. example: - ObjectType: convergedinfra.AdapterComplianceDetails - DriverVersion: DriverVersion - HclStatus: NotEvaluated - HclStatusReason: Missing-Os-Driver-Info + Parent: null DriverName: DriverName - Model: Model ClassId: convergedinfra.AdapterComplianceDetails Adapter: ObjectType: aaa.AuditRecord @@ -775753,6 +785860,36 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector + Reason: NotEvaluated + Owners: + - Owners + - Owners + Name: Name + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: convergedinfra.AdapterComplianceDetails ServerComplianceDetails: ObjectType: aaa.AuditRecord link: link @@ -775760,6 +785897,16 @@ components: ClassId: mo.MoRef Selector: Selector Firmware: Firmware + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key StorageCompliances: - ObjectType: aaa.AuditRecord link: link @@ -775771,6 +785918,30 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector + Status: NotEvaluated + HclStatus: NotEvaluated + SharedScope: SharedScope + CreateTime: 2000-01-23T04:56:07.000+00:00 + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + DriverVersion: DriverVersion + HclStatusReason: Missing-Os-Driver-Info + Model: Model + Moid: Moid title: Convergedinfra:Adapter Compliance Details x-allOf-name: convergedinfra.AdapterComplianceDetails convergedinfra.AdapterComplianceDetails.List: @@ -775834,6 +786005,11 @@ components: - ObjectType type: object description: The summary of alarm counts based on alarm serverity. + example: + ObjectType: convergedinfra.AlarmSummary + Warning: 6 + ClassId: convergedinfra.AlarmSummary + Critical: 0 nullable: true title: Convergedinfra:Alarm Summary x-allOf-name: convergedinfra.AlarmSummary @@ -776134,6 +786310,13 @@ components: type: object description: "The summary of compliance information based on the compliance\ \ analysis (HCL, IMT, etc.) of components." + example: + Incomplete: 1 + ObjectType: convergedinfra.ComplianceSummary + Validated: 2 + ClassId: convergedinfra.ComplianceSummary + NotEvaluated: 5 + NotListed: 5 nullable: true title: Convergedinfra:Compliance Summary x-allOf-name: convergedinfra.ComplianceSummary @@ -776237,7 +786420,7 @@ components: A pod is unit of deployment of converged infrastructure. Contains inventory information related to the health, HCL, storage, nodes, etc. of the pod. example: - ObjectType: convergedinfra.Pod + Description: Description Organization: ObjectType: aaa.AuditRecord link: link @@ -776250,26 +786433,102 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector + Parent: null + ClassId: convergedinfra.Pod + DeploymentType: FlexPodInfra + Owners: + - Owners + - Owners + Name: Name + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: convergedinfra.Pod + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key + SharedScope: SharedScope PodResourceGroup: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - Summary: - ObjectType: convergedinfra.PodSummary - VmCount: 6 - ActiveNodes: 0 - ClassId: convergedinfra.PodSummary - ClassId: convergedinfra.Pod - InteropStatus: NotEvaluated - DeploymentType: FlexPodInfra + CreateTime: 2000-01-23T04:56:07.000+00:00 + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector PodCompliance: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + Type: FlexPod + Moid: Moid + Summary: + ObjectType: convergedinfra.PodSummary + ComplianceSummary: + Incomplete: 1 + ObjectType: convergedinfra.ComplianceSummary + Validated: 2 + ClassId: convergedinfra.ComplianceSummary + NotEvaluated: 5 + NotListed: 5 + NodeCount: 7 + StorageCapacity: 3 + VmCount: 7 + StorageAvailable: 9 + StorageUtilization: 2.027123 + AlarmSummary: + ObjectType: convergedinfra.AlarmSummary + Warning: 6 + ClassId: convergedinfra.AlarmSummary + Critical: 0 + ActiveNodes: 4 + ClassId: convergedinfra.PodSummary + InteropStatus: NotEvaluated title: Convergedinfra:Pod x-allOf-name: convergedinfra.Pod convergedinfra.Pod.List: @@ -776365,8 +786624,23 @@ components: description: Captures the compliance information for a converged infrastructure pod. example: - ObjectType: convergedinfra.PodComplianceInfo - Details: + Status: NotEvaluated + Pod: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + SharedScope: SharedScope + Parent: null + CreateTime: 2000-01-23T04:56:07.000+00:00 + ClassId: convergedinfra.PodComplianceInfo + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + AccountMoid: AccountMoid + Ancestors: - ObjectType: aaa.AuditRecord link: link Moid: Moid @@ -776377,13 +786651,58 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector - Pod: - ObjectType: aaa.AuditRecord + Reason: NotEvaluated + Owners: + - Owners + - Owners + Name: Name + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: convergedinfra.PodComplianceInfo + Details: + - ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - ClassId: convergedinfra.PodComplianceInfo + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Moid: Moid + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key title: Convergedinfra:Pod Compliance Info x-allOf-name: convergedinfra.PodComplianceInfo convergedinfra.PodComplianceInfo.List: @@ -776453,8 +786772,24 @@ components: \ defined in basePodSummary." example: ObjectType: convergedinfra.PodSummary - VmCount: 6 - ActiveNodes: 0 + ComplianceSummary: + Incomplete: 1 + ObjectType: convergedinfra.ComplianceSummary + Validated: 2 + ClassId: convergedinfra.ComplianceSummary + NotEvaluated: 5 + NotListed: 5 + NodeCount: 7 + StorageCapacity: 3 + VmCount: 7 + StorageAvailable: 9 + StorageUtilization: 2.027123 + AlarmSummary: + ObjectType: convergedinfra.AlarmSummary + Warning: 6 + ClassId: convergedinfra.AlarmSummary + Critical: 0 + ActiveNodes: 4 ClassId: convergedinfra.PodSummary title: Convergedinfra:Pod Summary x-allOf-name: convergedinfra.PodSummary @@ -776601,9 +786936,7 @@ components: description: The compliance details of a server in a converged infrastructure pod. example: - ObjectType: convergedinfra.ServerComplianceDetails Processor: Processor - HclStatus: NotEvaluated Os: Os Platform: Platform Server: @@ -776612,17 +786945,79 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector - HclStatusReason: Missing-Os-Driver-Info - Model: Model + Parent: null ClassId: convergedinfra.ServerComplianceDetails + Reason: NotEvaluated + Owners: + - Owners + - Owners + Name: Name + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: convergedinfra.ServerComplianceDetails Firmware: Firmware + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key + AdapterCount: 0 + Status: NotEvaluated + HclStatus: NotEvaluated + SharedScope: SharedScope + CreateTime: 2000-01-23T04:56:07.000+00:00 + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector PodCompliance: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - AdapterCount: 0 + HclStatusReason: Missing-Os-Driver-Info + Model: Model + Moid: Moid title: Convergedinfra:Server Compliance Details x-allOf-name: convergedinfra.ServerComplianceDetails convergedinfra.ServerComplianceDetails.List: @@ -776747,30 +787142,90 @@ components: description: The compliance details of a storage in a converged infrastructure pod. example: - ObjectType: convergedinfra.StorageComplianceDetails Os: Os - RefDevice: Server - SwitchCompliance: + Parent: null + ClassId: convergedinfra.StorageComplianceDetails + Reason: NotEvaluated + Owners: + - Owners + - Owners + Name: Name + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: convergedinfra.StorageComplianceDetails + DisplayNames: + key: + - DisplayNames + - DisplayNames + Protocol: Protocol + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key + StorageArray: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - AdapterCompliance: - ObjectType: aaa.AuditRecord + Status: NotEvaluated + RefDevice: Server + SharedScope: SharedScope + CreateTime: 2000-01-23T04:56:07.000+00:00 + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - ClassId: convergedinfra.StorageComplianceDetails - Protocol: Protocol PodCompliance: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - StorageArray: + SwitchCompliance: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Moid: Moid + AdapterCompliance: ObjectType: aaa.AuditRecord link: link Moid: Moid @@ -776897,23 +787352,83 @@ components: description: The compliance details for a switch (Fabric Interconnect/Nexus/MDS) which is part of a converged infrastructure pod. example: - ObjectType: convergedinfra.SwitchComplianceDetails - Type: FabricInterconnect - Switch: - ObjectType: aaa.AuditRecord + Status: NotEvaluated + SharedScope: SharedScope + Parent: null + CreateTime: 2000-01-23T04:56:07.000+00:00 + ClassId: convergedinfra.SwitchComplianceDetails + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - Model: Model - ClassId: convergedinfra.SwitchComplianceDetails - Firmware: Firmware + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Reason: NotEvaluated PodCompliance: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + Owners: + - Owners + - Owners + Name: Name + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: convergedinfra.SwitchComplianceDetails + Type: FabricInterconnect + Switch: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Model: Model + Moid: Moid + Firmware: Firmware + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key StorageCompliances: - ObjectType: aaa.AuditRecord link: link @@ -777255,13 +787770,62 @@ components: type: object description: Policy to control configuration changes allowed from Cisco IMC. example: - ObjectType: deviceconnector.Policy + Description: Description Organization: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + SharedScope: SharedScope + Parent: null + CreateTime: 2000-01-23T04:56:07.000+00:00 + ClassId: deviceconnector.Policy + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Owners: + - Owners + - Owners + Name: Name + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: deviceconnector.Policy Profiles: - ObjectType: aaa.AuditRecord link: link @@ -777273,7 +787837,17 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector - ClassId: deviceconnector.Policy + Moid: Moid + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key LockoutEnabled: true title: Device Connector x-allOf-name: deviceconnector.Policy @@ -777360,9 +787934,72 @@ components: type: object description: Collection of network devices. example: - ObjectType: dnac.Device + RegisteredDevice: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + SharedScope: SharedScope + Parent: null DeviceId: DeviceId + CreateTime: 2000-01-23T04:56:07.000+00:00 ClassId: dnac.Device + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Owners: + - Owners + - Owners + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: dnac.Device + Moid: Moid + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key HostName: HostName ManagementIpAddress: ManagementIpAddress title: Dnac:Device @@ -777462,13 +788099,76 @@ components: description: The device interface serves as the gateway between a network and external entities. example: - ObjectType: dnac.DeviceInterface AdminStatus: AdminStatus - InterfaceType: InterfaceType + RegisteredDevice: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + SharedScope: SharedScope + Parent: null DeviceId: DeviceId + CreateTime: 2000-01-23T04:56:07.000+00:00 ClassId: dnac.DeviceInterface - InterfaceName: InterfaceName + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null InterfaceId: InterfaceId + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Owners: + - Owners + - Owners + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: dnac.DeviceInterface + InterfaceType: InterfaceType + Moid: Moid + InterfaceName: InterfaceName + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key PortType: PortType title: Dnac:Device Interface x-allOf-name: dnac.DeviceInterface @@ -777566,15 +788266,78 @@ components: type: object description: External border node is an external boundary of a network. example: - ObjectType: dnac.ExternalBorderNode - FabricSiteId: FabricSiteId - ImportExternalRoutes: true + RegisteredDevice: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector ExternalBorderNodeId: ExternalBorderNodeId ExternalBorderNodeName: ExternalBorderNodeName + SharedScope: SharedScope + Parent: null + CreateTime: 2000-01-23T04:56:07.000+00:00 ClassId: dnac.ExternalBorderNode + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null Roles: - Roles - Roles + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Owners: + - Owners + - Owners + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: dnac.ExternalBorderNode + FabricSiteId: FabricSiteId + ImportExternalRoutes: true + Moid: Moid + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key title: Dnac:External Border Node x-allOf-name: dnac.ExternalBorderNode dnac.ExternalBorderNode.List: @@ -777673,13 +788436,76 @@ components: description: The external border node interface serves as the gateway between a network and external entities. example: - ObjectType: dnac.ExternalBorderNodeInterface AdminStatus: AdminStatus - InterfaceType: InterfaceType + RegisteredDevice: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector ExternalBorderNodeId: ExternalBorderNodeId + SharedScope: SharedScope + Parent: null + CreateTime: 2000-01-23T04:56:07.000+00:00 ClassId: dnac.ExternalBorderNodeInterface - InterfaceName: InterfaceName + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null InterfaceId: InterfaceId + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Owners: + - Owners + - Owners + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: dnac.ExternalBorderNodeInterface + InterfaceType: InterfaceType + Moid: Moid + InterfaceName: InterfaceName + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key PortType: PortType title: Dnac:External Border Node Interface x-allOf-name: dnac.ExternalBorderNodeInterface @@ -777774,13 +788600,76 @@ components: type: object description: Details for the Fabric Site. example: - ObjectType: dnac.FabricSite - FabricSiteId: FabricSiteId SiteId: SiteId + RegisteredDevice: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + SharedScope: SharedScope + Parent: null + CreateTime: 2000-01-23T04:56:07.000+00:00 IsPubSubEnabled: IsPubSubEnabled ClassId: dnac.FabricSite + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null FabricSiteNameHierarchy: FabricSiteNameHierarchy AuthenticationProfileName: AuthenticationProfileName + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Owners: + - Owners + - Owners + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: dnac.FabricSite + FabricSiteId: FabricSiteId + Moid: Moid + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key title: Dnac:Fabric Site x-allOf-name: dnac.FabricSite dnac.FabricSite.List: @@ -777913,10 +788802,73 @@ components: type: object description: Information about the Site. example: - ObjectType: dnac.Site SiteId: SiteId + RegisteredDevice: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + SharedScope: SharedScope + Parent: null + CreateTime: 2000-01-23T04:56:07.000+00:00 ClassId: dnac.Site + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null FabricSiteNameHierarchy: FabricSiteNameHierarchy + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Owners: + - Owners + - Owners + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: dnac.Site + Moid: Moid + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key title: Dnac:Site x-allOf-name: dnac.Site dnac.Site.List: @@ -778009,13 +788961,76 @@ components: type: object description: Collection of IP pools of the site. example: - ObjectType: dnac.SiteIpPool SiteId: SiteId - IpPoolCidr: IpPoolCidr + RegisteredDevice: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + SharedScope: SharedScope + Parent: null + CreateTime: 2000-01-23T04:56:07.000+00:00 ClassId: dnac.SiteIpPool + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + SiteNameHierarchy: SiteNameHierarchy + Owners: + - Owners + - Owners + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: dnac.SiteIpPool + IpPoolCidr: IpPoolCidr + Moid: Moid IpPoolName: IpPoolName + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 IpPoolId: IpPoolId - SiteNameHierarchy: SiteNameHierarchy + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key title: Dnac:Site Ip Pool x-allOf-name: dnac.SiteIpPool dnac.SiteIpPool.List: @@ -778108,12 +789123,75 @@ components: type: object description: Collection of information of templates. example: - ObjectType: dnac.Template + RegisteredDevice: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector Composite: Composite + SharedScope: SharedScope + Parent: null ProjectName: ProjectName + CreateTime: 2000-01-23T04:56:07.000+00:00 ProjectId: ProjectId - TemplateName: TemplateName ClassId: dnac.Template + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Owners: + - Owners + - Owners + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: dnac.Template + Moid: Moid + TemplateName: TemplateName + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key TemplateId: TemplateId title: Dnac:Template x-allOf-name: dnac.Template @@ -778199,9 +789277,72 @@ components: type: object description: Details for the transits. example: + RegisteredDevice: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + SharedScope: SharedScope + Parent: null + CreateTime: 2000-01-23T04:56:07.000+00:00 + ClassId: dnac.Transit + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Owners: + - Owners + - Owners + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified ObjectType: dnac.Transit TransitName: TransitName - ClassId: dnac.Transit + Moid: Moid + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key TransitId: TransitId TransitType: TransitType title: Dnac:Transit @@ -778292,12 +789433,75 @@ components: type: object description: Virtual networks for Fabric-Site. example: - VirtualNetworkName: VirtualNetworkName - ObjectType: dnac.VirtualNetworkFabricSite SiteId: SiteId + RegisteredDevice: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + SharedScope: SharedScope + Parent: null VirtualNetworkId: VirtualNetworkId + CreateTime: 2000-01-23T04:56:07.000+00:00 ClassId: dnac.VirtualNetworkFabricSite + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null FabricSiteNameHierarchy: FabricSiteNameHierarchy + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Owners: + - Owners + - Owners + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + VirtualNetworkName: VirtualNetworkName + ObjectType: dnac.VirtualNetworkFabricSite + Moid: Moid + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key title: Dnac:Virtual Network Fabric Site x-allOf-name: dnac.VirtualNetworkFabricSite dnac.VirtualNetworkFabricSite.List: @@ -779120,17 +790324,27 @@ components: type: object description: A physical holder housing blade servers. example: - PsuControl: + OperState: OperState + PartNumber: PartNumber + ProductName: ProductName + ClassId: equipment.Chassis + Name: Name + ConnectionStatus: ConnectionStatus + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key + ChassisId: 0 + RegisteredDevice: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - Description: Description - OperState: OperState - PartNumber: PartNumber - ProductName: ProductName - Blades: + SharedScope: SharedScope + Psus: - ObjectType: aaa.AuditRecord link: link Moid: Moid @@ -779141,14 +790355,18 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector - InventoryDeviceInfo: + PowerControlState: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - ClassId: equipment.Chassis - Ioms: + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + Dn: Dn + Siocs: - ObjectType: aaa.AuditRecord link: link Moid: Moid @@ -779159,7 +790377,8 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector - VirtualDriveContainer: + DeviceMoId: DeviceMoId + Sasexpanders: - ObjectType: aaa.AuditRecord link: link Moid: Moid @@ -779170,10 +790389,8 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector - Name: Name - ObjectType: equipment.Chassis - UserLabel: UserLabel - Fanmodules: + Revision: Revision + StorageEnclosures: - ObjectType: aaa.AuditRecord link: link Moid: Moid @@ -779184,21 +790401,21 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector - ConnectionStatus: ConnectionStatus - FanControl: + LocatorLed: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - ChassisId: 0 - RegisteredDevice: + ConnectionPath: ConnectionPath + PsuControl: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - Psus: + Description: Description + Blades: - ObjectType: aaa.AuditRecord link: link Moid: Moid @@ -779209,14 +790426,14 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector - PowerControlState: + Parent: null + InventoryDeviceInfo: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - Pid: Pid - Siocs: + Ioms: - ObjectType: aaa.AuditRecord link: link Moid: Moid @@ -779227,7 +790444,7 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector - Sasexpanders: + VirtualDriveContainer: - ObjectType: aaa.AuditRecord link: link Moid: Moid @@ -779238,18 +790455,70 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector - ManagementMode: IntersightStandalone - OperReason: - - Unknown - - Unknown - Vid: Vid - ManagementInterface: + Owners: + - Owners + - Owners + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: equipment.Chassis + UserLabel: UserLabel + IsUpgraded: false + Presence: Presence + Fanmodules: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + DisplayNames: + key: + - DisplayNames + - DisplayNames + Rn: Rn + FanControl: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - StorageEnclosures: + CreateTime: 2000-01-23T04:56:07.000+00:00 + PreviousFru: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Pid: Pid + Vendor: Vendor + AccountMoid: AccountMoid + Ancestors: - ObjectType: aaa.AuditRecord link: link Moid: Moid @@ -779260,6 +790529,18 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector + ManagementMode: IntersightStandalone + OperReason: + - Unknown + - Unknown + Vid: Vid + Serial: Serial + ManagementInterface: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector AlarmSummary: ObjectType: compute.AlarmSummary Warning: 2 @@ -779272,13 +790553,8 @@ components: SuppressedCritical: 1 Info: 6 FaultSummary: 6 - LocatorLed: - ObjectType: aaa.AuditRecord - link: link - Moid: Moid - ClassId: mo.MoRef - Selector: Selector - ConnectionPath: ConnectionPath + Model: Model + Moid: Moid ExpanderModules: - ObjectType: aaa.AuditRecord link: link @@ -779378,8 +790654,15 @@ components: description: ChassisIdPool object contains pool of chassisId's that can be allocated for newly discovered chassis. example: - ObjectType: equipment.ChassisIdPool + SharedScope: SharedScope + Parent: null + CreateTime: 2000-01-23T04:56:07.000+00:00 + NextAvailableId: 6 ClassId: equipment.ChassisIdPool + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null DeviceRegistration: ObjectType: aaa.AuditRecord link: link @@ -779387,8 +790670,62 @@ components: ClassId: mo.MoRef Selector: Selector PreferredIds: + - 1 + - 1 + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Owners: + - Owners + - Owners + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: equipment.ChassisIdPool + Moid: Moid + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + GapAvailableIds: - 0 - 0 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key title: Equipment:Chassis Id Pool x-allOf-name: equipment.ChassisIdPool equipment.ChassisIdPool.List: @@ -779477,29 +790814,104 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector - ObjectType: equipment.ChassisIdentity + Parent: null + AdminAction: None ClassId: equipment.ChassisIdentity IoCardIdentityList: - ObjectType: equipment.IoCardIdentity - ModuleId: 0 + ModuleId: 6 Serial: Serial IoCardMoid: IoCardMoid Lifecycle: Unknown Model: Model NetworkElementMoid: NetworkElementMoid ClassId: equipment.IoCardIdentity - SwitchId: 6 + SwitchId: 1 Vendor: Vendor - ObjectType: equipment.IoCardIdentity - ModuleId: 0 + ModuleId: 6 Serial: Serial IoCardMoid: IoCardMoid Lifecycle: Unknown Model: Model NetworkElementMoid: NetworkElementMoid ClassId: equipment.IoCardIdentity - SwitchId: 6 + SwitchId: 1 Vendor: Vendor + Owners: + - Owners + - Owners + Name: Name + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: equipment.ChassisIdentity + Identifier: 1 + LifecycleModTime: 2000-01-23T04:56:07.000+00:00 + CustomPermissionResources: + - null + - null + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key + RegisteredDevice: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + SharedScope: SharedScope + CreateTime: 2000-01-23T04:56:07.000+00:00 + Lifecycle: None + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + AdminActionState: None + Vendor: Vendor + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Serial: Serial + Model: Model + Moid: Moid title: Chassis Identity x-allOf-name: equipment.ChassisIdentity equipment.ChassisIdentity.List: @@ -779849,6 +791261,12 @@ components: type: object description: "The physical location. It contains information about the geographical\ \ coordinates, address, and related details." + example: + ObjectType: equipment.DeviceLocation + Address: Address + ClassId: equipment.DeviceLocation + Latitude: 0.8008282 + Longitude: 6.0274563 nullable: true title: Equipment:Device Location x-allOf-name: equipment.DeviceLocation @@ -780555,12 +791973,81 @@ components: type: object description: Expander module inside the chassis. example: - OperReason: - - Unknown - - Unknown + OperState: OperState + PartNumber: PartNumber + Parent: null + ClassId: equipment.ExpanderModule + Owners: + - Owners + - Owners + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified ObjectType: equipment.ExpanderModule ModuleId: 0 - FanModules: + IsUpgraded: false + EquipmentChassis: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Presence: Presence + DisplayNames: + key: + - DisplayNames + - DisplayNames + Rn: Rn + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key + RegisteredDevice: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + SharedScope: SharedScope + CreateTime: 2000-01-23T04:56:07.000+00:00 + PreviousFru: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + Dn: Dn + Vendor: Vendor + AccountMoid: AccountMoid + DeviceMoId: DeviceMoId + Ancestors: - ObjectType: aaa.AuditRecord link: link Moid: Moid @@ -780571,21 +792058,24 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector - RegisteredDevice: - ObjectType: aaa.AuditRecord + OperReason: + - Unknown + - Unknown + Serial: Serial + FanModules: + - ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - OperState: OperState - PartNumber: PartNumber - EquipmentChassis: - ObjectType: aaa.AuditRecord + - ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - ClassId: equipment.ExpanderModule + Revision: Revision + Model: Model + Moid: Moid title: Equipment:Expander Module x-allOf-name: equipment.ExpanderModule equipment.ExpanderModule.List: @@ -780928,7 +792418,6 @@ components: type: object description: Fan in a Fabric Interconnect / Chassis / RackUnit. example: - FanModuleId: 6 EquipmentFanModule: ObjectType: aaa.AuditRecord link: link @@ -780936,27 +792425,43 @@ components: ClassId: mo.MoRef Selector: Selector Description: Description - RegisteredDevice: - ObjectType: aaa.AuditRecord - link: link - Moid: Moid - ClassId: mo.MoRef - Selector: Selector OperState: OperState PartNumber: PartNumber + Parent: null InventoryDeviceInfo: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - FanId: 0 ClassId: equipment.Fan - Pid: Pid - OperReason: - - Unknown - - Unknown - Vid: Vid + Owners: + - Owners + - Owners + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified ObjectType: equipment.Fan ModuleId: 1 EquipmentFex: @@ -780965,7 +792470,64 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector + IsUpgraded: false + Presence: Presence TrayId: 5 + DisplayNames: + key: + - DisplayNames + - DisplayNames + Rn: Rn + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key + FanModuleId: 6 + RegisteredDevice: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + SharedScope: SharedScope + FanId: 0 + CreateTime: 2000-01-23T04:56:07.000+00:00 + PreviousFru: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + Dn: Dn + Pid: Pid + Vendor: Vendor + AccountMoid: AccountMoid + DeviceMoId: DeviceMoId + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + OperReason: + - Unknown + - Unknown + Vid: Vid + Serial: Serial + Revision: Revision + Model: Model + Moid: Moid Sku: Sku title: Equipment:Fan x-allOf-name: equipment.Fan @@ -781073,27 +792635,99 @@ components: type: object description: This represents the states of Fan equipment. example: + Parent: null + InventoryDeviceInfo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: equipment.FanControl + Owners: + - Owners + - Owners + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified ObjectType: equipment.FanControl - RegisteredDevice: + IsUpgraded: false + EquipmentChassis: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - InventoryDeviceInfo: + Presence: Presence + DisplayNames: + key: + - DisplayNames + - DisplayNames + Rn: Rn + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key + RegisteredDevice: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - EquipmentChassis: + SharedScope: SharedScope + CreateTime: 2000-01-23T04:56:07.000+00:00 + PreviousFru: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector Mode: Balanced - ClassId: equipment.FanControl + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + Dn: Dn + Vendor: Vendor + AccountMoid: AccountMoid + DeviceMoId: DeviceMoId + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Serial: Serial + Revision: Revision + Model: Model + Moid: Moid title: Equipment:Fan Control x-allOf-name: equipment.FanControl equipment.FanControl.List: @@ -781443,7 +793077,6 @@ components: type: object description: This represents Fan module housing multiple fans for chassis/server. example: - Status: Status Fans: - ObjectType: aaa.AuditRecord link: link @@ -781456,14 +793089,9 @@ components: ClassId: mo.MoRef Selector: Selector Description: Description - RegisteredDevice: - ObjectType: aaa.AuditRecord - link: link - Moid: Moid - ClassId: mo.MoRef - Selector: Selector OperState: OperState PartNumber: PartNumber + Parent: null InventoryDeviceInfo: ObjectType: aaa.AuditRecord link: link @@ -781471,23 +793099,39 @@ components: ClassId: mo.MoRef Selector: Selector ClassId: equipment.FanModule - Pid: Pid - EquipmentRackEnclosure: - ObjectType: aaa.AuditRecord - link: link - Moid: Moid - ClassId: mo.MoRef - Selector: Selector ComputeRackUnit: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - OperReason: - - Unknown - - Unknown - Vid: Vid + Owners: + - Owners + - Owners + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified ObjectType: equipment.FanModule ModuleId: 0 NetworkElement: @@ -781496,12 +793140,14 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector + IsUpgraded: false EquipmentChassis: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + Presence: Presence EquipmentIoCard: ObjectType: aaa.AuditRecord link: link @@ -781509,6 +793155,66 @@ components: ClassId: mo.MoRef Selector: Selector TrayId: 6 + DisplayNames: + key: + - DisplayNames + - DisplayNames + Rn: Rn + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key + Status: Status + RegisteredDevice: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + SharedScope: SharedScope + CreateTime: 2000-01-23T04:56:07.000+00:00 + PreviousFru: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + Dn: Dn + Pid: Pid + EquipmentRackEnclosure: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Vendor: Vendor + AccountMoid: AccountMoid + DeviceMoId: DeviceMoId + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + OperReason: + - Unknown + - Unknown + Vid: Vid + Serial: Serial + Revision: Revision + Model: Model + Moid: Moid Sku: Sku EquipmentExpanderModule: ObjectType: aaa.AuditRecord @@ -781639,8 +793345,34 @@ components: description: Fabric Extender which can mutiplex traffic from the host facing ports. example: - ObjectType: equipment.Fex - Fans: + OperState: OperState + PartNumber: PartNumber + ProductName: ProductName + DiscoveryState: DiscoveryState + ClassId: equipment.Fex + ModuleId: 0 + NetworkElement: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + ConnectionStatus: ConnectionStatus + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key + RegisteredDevice: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + SharedScope: SharedScope + Psus: - ObjectType: aaa.AuditRecord link: link Moid: Moid @@ -781651,25 +793383,51 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector - NetworkElement: - ObjectType: aaa.AuditRecord + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + Dn: Dn + SubGroup: + - ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - RegisteredDevice: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + DeviceMoId: DeviceMoId + Revision: Revision + LocatorLed: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + ConnectionPath: ConnectionPath + Fans: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Description: Description + Parent: null InventoryDeviceInfo: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - Psus: + Ioms: - ObjectType: aaa.AuditRecord link: link Moid: Moid @@ -781680,16 +793438,84 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector - LocatorLed: + Owners: + - Owners + - Owners + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: equipment.Fex + IsUpgraded: false + Presence: Presence + DisplayNames: + key: + - DisplayNames + - DisplayNames + Rn: Rn + MgmtController: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - ConnectionPath: ConnectionPath - DiscoveryState: DiscoveryState - ClassId: equipment.Fex - Ioms: + CreateTime: 2000-01-23T04:56:07.000+00:00 + PreviousFru: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + NetworkPorts: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Pid: Pid + Vendor: Vendor + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + OperReason: + - Unknown + - Unknown + Vid: Vid + HostPorts: - ObjectType: aaa.AuditRecord link: link Moid: Moid @@ -781700,6 +793526,10 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector + Serial: Serial + Model: Model + Moid: Moid + Sku: Sku title: Equipment:Fex x-allOf-name: equipment.Fex equipment.Fex.List: @@ -781785,21 +793615,98 @@ components: \ moduleId is uniquely allocated for the combination of vendor, model and\ \ serial number of the chassis." example: + PhysicalDeviceRegistration: null + Parent: null + AdminAction: None + ClassId: equipment.FexIdentity + LastDiscoveryTriggered: Unknown + SwitchId: 6 + Owners: + - Owners + - Owners + Name: Name + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified ObjectType: equipment.FexIdentity + Identifier: 1 + LifecycleModTime: 2000-01-23T04:56:07.000+00:00 NetworkElement: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + CustomPermissionResources: + - null + - null + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key + RegisteredDevice: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + SharedScope: SharedScope + CreateTime: 2000-01-23T04:56:07.000+00:00 + Lifecycle: None + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + AdminActionState: None + Vendor: Vendor + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Serial: Serial + Model: Model Fex: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - ClassId: equipment.FexIdentity - SwitchId: 0 + Moid: Moid title: Equipment:Fex Identity x-allOf-name: equipment.FexIdentity equipment.FexIdentity.List: @@ -782086,27 +793993,99 @@ components: description: Managed object for all equipments which contains the previous vendor /model / serial before insertion/replacement/removal. example: - ObjectType: equipment.Fru Action: None + Parent: null + InventoryDeviceInfo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: equipment.Fru + Owners: + - Owners + - Owners + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: equipment.Fru + IsUpgraded: false + Presence: Presence + DisplayNames: + key: + - DisplayNames + - DisplayNames + Rn: Rn + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key RegisteredDevice: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - InventoryDeviceInfo: + SharedScope: SharedScope + CreateTime: 2000-01-23T04:56:07.000+00:00 + PreviousFru: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + Dn: Dn + Vendor: Vendor + AccountMoid: AccountMoid + DeviceMoId: DeviceMoId + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Serial: Serial + Revision: Revision + Model: Model + Moid: Moid CurrentFru: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - ClassId: equipment.Fru title: Equipment:Fru x-allOf-name: equipment.Fru equipment.Fru.List: @@ -782225,34 +794204,107 @@ components: type: object description: NVMe HybridDriveSlots present in a server. example: - CurrentMode: "" - ObjectType: equipment.HybridDriveSlot - RegisteredDevice: + Parent: null + ComputeBlade: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - ComputeBlade: + ComputeBoard: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - ComputeBoard: + ClassId: equipment.HybridDriveSlot + ComputeRackUnit: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - ClassId: equipment.HybridDriveSlot + Owners: + - Owners + - Owners + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: equipment.HybridDriveSlot + SlotId: SlotId + IsUpgraded: false + Presence: Presence RequestedMode: "" - ComputeRackUnit: + DisplayNames: + key: + - DisplayNames + - DisplayNames + Rn: Rn + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key + CurrentMode: "" + RegisteredDevice: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + SharedScope: SharedScope + CreateTime: 2000-01-23T04:56:07.000+00:00 + PreviousFru: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + Dn: Dn + Vendor: Vendor + AccountMoid: AccountMoid + DeviceMoId: DeviceMoId + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Serial: Serial + Revision: Revision + Model: Model + Moid: Moid title: Equipment:Hybrid Drive Slot x-allOf-name: equipment.HybridDriveSlot equipment.HybridDriveSlot.List: @@ -782538,74 +794590,198 @@ components: type: object description: I/O module on a chassis which multiplexes traffic from blade servers. example: - Side: Side PhysicalDeviceRegistration: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - ObjectType: equipment.IoCard - FanModules: - - ObjectType: aaa.AuditRecord - link: link - Moid: Moid - ClassId: mo.MoRef - Selector: Selector - - ObjectType: aaa.AuditRecord - link: link - Moid: Moid - ClassId: mo.MoRef - Selector: Selector + OperState: OperState + PartNumber: PartNumber + ProductName: ProductName + ClassId: equipment.IoCard + ModuleId: 0 + Version: Version + ConnectionStatus: ConnectionStatus + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key InbandIpAddresses: - - HttpPort: 2 + - HttpPort: 3 Category: Equipment Address: Address ClassId: compute.IpAddress Dn: Dn Name: Outband ObjectType: compute.IpAddress - KvmVlan: 1 + KvmVlan: 7 Type: MgmtInterface DefaultGateway: DefaultGateway - KvmPort: 7 + KvmPort: 4 Subnet: Subnet - HttpsPort: 4 - - HttpPort: 2 + HttpsPort: 2 + - HttpPort: 3 Category: Equipment Address: Address ClassId: compute.IpAddress Dn: Dn Name: Outband ObjectType: compute.IpAddress - KvmVlan: 1 + KvmVlan: 7 Type: MgmtInterface DefaultGateway: DefaultGateway - KvmPort: 7 + KvmPort: 4 Subnet: Subnet - HttpsPort: 4 + HttpsPort: 2 RegisteredDevice: null + SharedScope: SharedScope DcSupported: true - EquipmentFex: - ObjectType: aaa.AuditRecord + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + Dn: Dn + SubGroup: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + DeviceMoId: DeviceMoId + FanModules: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Revision: Revision + ConnectionPath: ConnectionPath + Description: Description + Parent: null InventoryDeviceInfo: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + Owners: + - Owners + - Owners + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + Side: Side + ObjectType: equipment.IoCard + EquipmentFex: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + IsUpgraded: false EquipmentChassis: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - ConnectionPath: ConnectionPath - ClassId: equipment.IoCard + Presence: Presence + DisplayNames: + key: + - DisplayNames + - DisplayNames + Rn: Rn + MgmtController: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + CreateTime: 2000-01-23T04:56:07.000+00:00 + PreviousFru: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + NetworkPorts: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Pid: Pid + Vendor: Vendor + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + OperReason: + - Unknown + - Unknown + Vid: Vid + HostPorts: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Serial: Serial + Model: Model + Moid: Moid + Sku: Sku title: Equipment:Io Card x-allOf-name: equipment.IoCard equipment.IoCard.List: @@ -783037,14 +795213,14 @@ components: MO. example: ObjectType: equipment.IoCardIdentity - ModuleId: 0 + ModuleId: 6 Serial: Serial IoCardMoid: IoCardMoid Lifecycle: Unknown Model: Model NetworkElementMoid: NetworkElementMoid ClassId: equipment.IoCardIdentity - SwitchId: 6 + SwitchId: 1 Vendor: Vendor nullable: true title: Equipment:Io Card Identity @@ -783393,27 +795569,99 @@ components: description: I/O expander card which is used as an extension for servers in a Colusa Chassis. example: + OperState: OperState + Parent: null + InventoryDeviceInfo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ComputeBlade: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: equipment.IoExpander + Owners: + - Owners + - Owners + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified ObjectType: equipment.IoExpander + IsUpgraded: false + Presence: Presence + DisplayNames: + key: + - DisplayNames + - DisplayNames + Rn: Rn + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key RegisteredDevice: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - OperState: OperState - InventoryDeviceInfo: + SharedScope: SharedScope + CreateTime: 2000-01-23T04:56:07.000+00:00 + PreviousFru: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - ComputeBlade: - ObjectType: aaa.AuditRecord + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + Dn: Dn + Vendor: Vendor + AccountMoid: AccountMoid + DeviceMoId: DeviceMoId + Ancestors: + - ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - ClassId: equipment.IoExpander + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Serial: Serial + Revision: Revision + Model: Model + Moid: Moid title: Equipment:Io Expander x-allOf-name: equipment.IoExpander equipment.IoExpander.List: @@ -783523,33 +795771,62 @@ components: type: object description: "Locator Led of an Equipment like Rack, Disk etc." example: - ObjectType: equipment.LocatorLed - NetworkElement: + OperState: OperState + Parent: null + InventoryDeviceInfo: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - RegisteredDevice: + ComputeBlade: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - OperState: OperState - EquipmentFex: + ClassId: equipment.LocatorLed + ComputeRackUnit: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - InventoryDeviceInfo: + Owners: + - Owners + - Owners + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: equipment.LocatorLed + NetworkElement: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - ComputeBlade: + EquipmentFex: ObjectType: aaa.AuditRecord link: link Moid: Moid @@ -783561,20 +795838,51 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector - Color: Color - ClassId: equipment.LocatorLed - ComputeRackUnit: + DisplayNames: + key: + - DisplayNames + - DisplayNames + Rn: Rn + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key + RegisteredDevice: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + SharedScope: SharedScope + CreateTime: 2000-01-23T04:56:07.000+00:00 + Color: Color + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + Dn: Dn + AccountMoid: AccountMoid + DeviceMoId: DeviceMoId StoragePhysicalDisk: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Moid: Moid title: Equipment:Locator Led x-allOf-name: equipment.LocatorLed equipment.LocatorLed.List: @@ -784140,42 +796448,51 @@ components: description: This represents power supply unit for chassis/server. example: Description: Description - RegisteredDevice: - ObjectType: aaa.AuditRecord - link: link - Moid: Moid - ClassId: mo.MoRef - Selector: Selector OperState: OperState PartNumber: PartNumber PsuType: PsuType + Parent: null InventoryDeviceInfo: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - PsuInputSrc: PsuInputSrc ClassId: equipment.Psu - Pid: Pid - EquipmentRackEnclosure: - ObjectType: aaa.AuditRecord - link: link - Moid: Moid - ClassId: mo.MoRef - Selector: Selector ComputeRackUnit: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + Owners: + - Owners + - Owners Name: Name - OperReason: - - Unknown - - Unknown - PsuId: 0 - Vid: Vid + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified ObjectType: equipment.Psu NetworkElement: ObjectType: aaa.AuditRecord @@ -784191,6 +796508,7 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector + IsUpgraded: false EquipmentChassis: ObjectType: aaa.AuditRecord link: link @@ -784198,6 +796516,68 @@ components: ClassId: mo.MoRef Selector: Selector Voltage: Voltage + Presence: Presence + DisplayNames: + key: + - DisplayNames + - DisplayNames + Rn: Rn + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key + RegisteredDevice: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + SharedScope: SharedScope + CreateTime: 2000-01-23T04:56:07.000+00:00 + PreviousFru: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + PsuInputSrc: PsuInputSrc + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + Dn: Dn + Pid: Pid + EquipmentRackEnclosure: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Vendor: Vendor + AccountMoid: AccountMoid + DeviceMoId: DeviceMoId + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + OperReason: + - Unknown + - Unknown + PsuId: 0 + Vid: Vid + Serial: Serial + Revision: Revision + Model: Model + Moid: Moid Sku: Sku title: Equipment:Psu x-allOf-name: equipment.Psu @@ -784516,6 +796896,64 @@ components: type: object description: This represents the power states of an equipment. example: + OperState: OperState + Parent: null + InventoryDeviceInfo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: equipment.PsuControl + Owners: + - Owners + - Owners + Name: Name + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: equipment.PsuControl + OutputPowerState: OutputPowerState + IsUpgraded: false + EquipmentChassis: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Presence: Presence + DisplayNames: + key: + - DisplayNames + - DisplayNames + Rn: Rn + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key ClusterState: ClusterState RegisteredDevice: ObjectType: aaa.AuditRecord @@ -784523,28 +796961,42 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector - OperState: OperState + SharedScope: SharedScope InputPowerState: InputPowerState Redundancy: Redundancy - InventoryDeviceInfo: + CreateTime: 2000-01-23T04:56:07.000+00:00 + PreviousFru: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - ClassId: equipment.PsuControl - Name: Name - OperReason: - - Unknown - - Unknown - ObjectType: equipment.PsuControl - OutputPowerState: OutputPowerState - EquipmentChassis: - ObjectType: aaa.AuditRecord + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + Dn: Dn + Vendor: Vendor + AccountMoid: AccountMoid + DeviceMoId: DeviceMoId + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + OperReason: + - Unknown + - Unknown + Serial: Serial + Revision: Revision + Model: Model + Moid: Moid OperQualifier: OperQualifier title: Equipment:Psu Control x-allOf-name: equipment.PsuControl @@ -784660,6 +797112,41 @@ components: type: object description: A physical holder housing rack servers. example: + Parent: null + InventoryDeviceInfo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: equipment.RackEnclosure + Owners: + - Owners + - Owners + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified ObjectType: equipment.RackEnclosure Slots: - ObjectType: aaa.AuditRecord @@ -784673,13 +797160,39 @@ components: ClassId: mo.MoRef Selector: Selector EnclosureId: 0 + IsUpgraded: false + Presence: Presence + Fanmodules: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + DisplayNames: + key: + - DisplayNames + - DisplayNames + Rn: Rn + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key RegisteredDevice: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - InventoryDeviceInfo: + SharedScope: SharedScope + CreateTime: 2000-01-23T04:56:07.000+00:00 + PreviousFru: ObjectType: aaa.AuditRecord link: link Moid: Moid @@ -784696,7 +797209,15 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector - Fanmodules: + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + Dn: Dn + Vendor: Vendor + AccountMoid: AccountMoid + DeviceMoId: DeviceMoId + Ancestors: - ObjectType: aaa.AuditRecord link: link Moid: Moid @@ -784707,7 +797228,10 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector - ClassId: equipment.RackEnclosure + Serial: Serial + Revision: Revision + Model: Model + Moid: Moid title: Equipment:Rack Enclosure x-allOf-name: equipment.RackEnclosure equipment.RackEnclosure.List: @@ -784811,33 +797335,105 @@ components: description: Rack Server Slot in a RackEnclosure. example: RackId: 0 - ObjectType: equipment.RackEnclosureSlot RackUnit: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + Parent: null + InventoryDeviceInfo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: equipment.RackEnclosureSlot + RackUnitDn: RackUnitDn + Owners: + - Owners + - Owners + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: equipment.RackEnclosureSlot + IsUpgraded: false + Presence: Presence + DisplayNames: + key: + - DisplayNames + - DisplayNames + Rn: Rn + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key RegisteredDevice: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - InventoryDeviceInfo: + SharedScope: SharedScope + CreateTime: 2000-01-23T04:56:07.000+00:00 + PreviousFru: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - ClassId: equipment.RackEnclosureSlot + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + Dn: Dn EquipmentRackEnclosure: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - RackUnitDn: RackUnitDn + Vendor: Vendor + AccountMoid: AccountMoid + DeviceMoId: DeviceMoId + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Serial: Serial + Revision: Revision + Model: Model + Moid: Moid title: Equipment:Rack Enclosure Slot x-allOf-name: equipment.RackEnclosureSlot equipment.RackEnclosureSlot.List: @@ -785008,22 +797604,82 @@ components: type: object description: Concrete class for Sensor reports on a device. example: - ObjectType: equipment.Sensor - NetworkElement: + RegisteredDevice: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - RegisteredDevice: + SharedScope: SharedScope + Parent: null + CreateTime: 2000-01-23T04:56:07.000+00:00 + ClassId: equipment.Sensor + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + Dn: Dn + AccountMoid: AccountMoid + DeviceMoId: DeviceMoId + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Owners: + - Owners + - Owners + Name: Name + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: equipment.Sensor + NetworkElement: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector AlarmStatus: absent - ClassId: equipment.Sensor - Name: Name + Moid: Moid + DisplayNames: + key: + - DisplayNames + - DisplayNames + Rn: Rn + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key title: Equipment:Sensor x-allOf-name: equipment.Sensor equipment.Sensor.List: @@ -785168,31 +797824,106 @@ components: description: I/O Controller present inside SIOC to provide data path from S-series server to FI. example: + ConfigState: ConfigState + OperState: OperState + PartNumber: PartNumber + Parent: null + MacOfSharedIomAside: MacOfSharedIomAside + InventoryDeviceInfo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: equipment.SharedIoModule + PortGroups: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Owners: + - Owners + - Owners + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: equipment.SharedIoModule + EquipmentSystemIoController: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + IsUpgraded: false + Presence: Presence + DisplayNames: + key: + - DisplayNames + - DisplayNames + Rn: Rn + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key RegisteredDevice: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - ConfigState: ConfigState - OperState: OperState - PartNumber: PartNumber - MacOfSharedIomAside: MacOfSharedIomAside - InventoryDeviceInfo: + SharedScope: SharedScope + CreateTime: 2000-01-23T04:56:07.000+00:00 + PreviousFru: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector Discovery: Discovery - ClassId: equipment.SharedIoModule + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + Dn: Dn + Vendor: Vendor Controller: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - PortGroups: + AccountMoid: AccountMoid + DeviceMoId: DeviceMoId + Ancestors: - ObjectType: aaa.AuditRecord link: link Moid: Moid @@ -785205,14 +797936,11 @@ components: Selector: Selector Reachability: Reachability Vid: Vid - ObjectType: equipment.SharedIoModule - EquipmentSystemIoController: - ObjectType: aaa.AuditRecord - link: link - Moid: Moid - ClassId: mo.MoRef - Selector: Selector + Serial: Serial + Revision: Revision UsrLbl: UsrLbl + Model: Model + Moid: Moid MacOfSharedIomBside: MacOfSharedIomBside title: Equipment:Shared Io Module x-allOf-name: equipment.SharedIoModule @@ -785516,19 +798244,32 @@ components: type: object description: Fixed / Removable module on a Fabric Interconnect / Switch. example: - Description: Description - OutOfBandIpAddress: OutOfBandIpAddress PartNumber: PartNumber EthernetSwitchingMode: end-host - InventoryDeviceInfo: + ClassId: equipment.SwitchCard + PortGroups: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Name: Name + SlotId: 6 + NetworkElement: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - ClassId: equipment.SwitchCard - SwitchId: SwitchId - FcPorts: + OutOfBandIpGateway: OutOfBandIpGateway + OutOfBandIpMask: OutOfBandIpMask + ModTime: 2000-01-23T04:56:07.000+00:00 + FcPortChannels: - ObjectType: aaa.AuditRecord link: link Moid: Moid @@ -785539,7 +798280,27 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector - PortGroups: + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key + Status: Down + RegisteredDevice: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + SharedScope: SharedScope + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + Dn: Dn + DeviceMoId: DeviceMoId + HwVersion: HwVersion + PortChannels: - ObjectType: aaa.AuditRecord link: link Moid: Moid @@ -785550,20 +798311,21 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector - Name: Name - ObjectType: equipment.SwitchCard - SlotId: 6 - NetworkElement: + Revision: Revision + State: State + NumPorts: 0 + Thermal: unknown + Description: Description + OutOfBandIpAddress: OutOfBandIpAddress + Parent: null + InventoryDeviceInfo: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - FcSwitchingMode: end-host - OutOfBandIpGateway: OutOfBandIpGateway - OutOfBandIpMask: OutOfBandIpMask - PowerState: unknown - FcPortChannels: + SwitchId: SwitchId + FcPorts: - ObjectType: aaa.AuditRecord link: link Moid: Moid @@ -785574,18 +798336,54 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector - Status: Down - RegisteredDevice: + Owners: + - Owners + - Owners + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: equipment.SwitchCard + IsUpgraded: false + FcSwitchingMode: end-host + Presence: Presence + DisplayNames: + key: + - DisplayNames + - DisplayNames + Rn: Rn + PowerState: unknown + OutOfBandMac: OutOfBandMac + CreateTime: 2000-01-23T04:56:07.000+00:00 + PreviousFru: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - OutOfBandMac: OutOfBandMac - EndMac: EndMac - HwVersion: HwVersion - Type: Type - PortChannels: + Vendor: Vendor + AccountMoid: AccountMoid + Ancestors: - ObjectType: aaa.AuditRecord link: link Moid: Moid @@ -785596,10 +798394,12 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector - State: State + EndMac: EndMac + Serial: Serial + Type: Type + Model: Model + Moid: Moid BaseMac: BaseMac - NumPorts: 0 - Thermal: unknown title: Equipment:Switch Card x-allOf-name: equipment.SwitchCard equipment.SwitchCard.List: @@ -785977,17 +798777,11 @@ components: description: I/O Controller on a chassis which provides the data path to S-series server. example: - ChassisId: ChassisId Description: Description - RegisteredDevice: - ObjectType: aaa.AuditRecord - link: link - Moid: Moid - ClassId: mo.MoRef - Selector: Selector OperState: OperState PartNumber: PartNumber SystemIoControllerId: 0 + Parent: null InventoryDeviceInfo: ObjectType: aaa.AuditRecord link: link @@ -785995,29 +798789,107 @@ components: ClassId: mo.MoRef Selector: Selector ClassId: equipment.SystemIoController - Pid: Pid - SharedIoModule: + Owners: + - Owners + - Owners + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: equipment.SystemIoController + IsUpgraded: false + EquipmentChassis: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - ObjectType: equipment.SystemIoController - ManagingInstance: ManagingInstance - EquipmentChassis: + Cmc: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - Cmc: + Presence: Presence + DisplayNames: + key: + - DisplayNames + - DisplayNames + Rn: Rn + ConnectionStatus: ConnectionStatus + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key + ChassisId: ChassisId + RegisteredDevice: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + SharedScope: SharedScope + CreateTime: 2000-01-23T04:56:07.000+00:00 + PreviousFru: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + Dn: Dn + Pid: Pid + Vendor: Vendor + AccountMoid: AccountMoid + DeviceMoId: DeviceMoId + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + SharedIoModule: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Serial: Serial + ManagingInstance: ManagingInstance + Revision: Revision + Model: Model + Moid: Moid ConnectionPath: ConnectionPath - ConnectionStatus: ConnectionStatus title: Equipment:System Io Controller x-allOf-name: equipment.SystemIoController equipment.SystemIoController.List: @@ -786137,32 +799009,104 @@ components: type: object description: TPM security chip on server board. example: - ObjectType: equipment.Tpm Ownership: Ownership - RegisteredDevice: + Parent: null + InventoryDeviceInfo: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + ComputeBoard: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: equipment.Tpm + ActivationStatus: ActivationStatus + AdminState: AdminState + Owners: + - Owners + - Owners + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: equipment.Tpm Version: Version - InventoryDeviceInfo: + IsUpgraded: false + TpmId: 0 + Presence: Presence + DisplayNames: + key: + - DisplayNames + - DisplayNames + Rn: Rn + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key + RegisteredDevice: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - ComputeBoard: + SharedScope: SharedScope + CreateTime: 2000-01-23T04:56:07.000+00:00 + PreviousFru: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - TpmId: 0 - ClassId: equipment.Tpm - ActivationStatus: ActivationStatus - AdminState: AdminState + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + Dn: Dn + Vendor: Vendor + AccountMoid: AccountMoid + DeviceMoId: DeviceMoId + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector FirmwareVersion: FirmwareVersion + Serial: Serial + Revision: Revision + Model: Model + Moid: Moid title: Equipment:Tpm x-allOf-name: equipment.Tpm equipment.Tpm.List: @@ -786313,32 +799257,51 @@ components: type: object description: Transceiver information on the chassis. example: - Status: Status OperStateQual: OperStateQual - RegisteredDevice: - ObjectType: aaa.AuditRecord - link: link - Moid: Moid - ClassId: mo.MoRef - Selector: Selector OperState: OperState + Parent: null FcPhysicalPort: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - ManufacturerPartNumber: ManufacturerPartNumber PortId: 1 ClassId: equipment.Transceiver SwitchId: SwitchId + Owners: + - Owners + - Owners Name: Name + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified ObjectType: equipment.Transceiver ModuleId: 6 SlotId: 5 InterfaceType: InterfaceType - Type: Type - CiscoExtendedIdNumber: CiscoExtendedIdNumber + IsUpgraded: false AggregatePortId: 0 EtherHostPort: ObjectType: aaa.AuditRecord @@ -786346,6 +799309,59 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector + Presence: Presence + DisplayNames: + key: + - DisplayNames + - DisplayNames + Rn: Rn + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key + Status: Status + RegisteredDevice: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + SharedScope: SharedScope + CreateTime: 2000-01-23T04:56:07.000+00:00 + PreviousFru: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ManufacturerPartNumber: ManufacturerPartNumber + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + Dn: Dn + Vendor: Vendor + AccountMoid: AccountMoid + DeviceMoId: DeviceMoId + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Serial: Serial + Type: Type + Revision: Revision + CiscoExtendedIdNumber: CiscoExtendedIdNumber + Model: Model + Moid: Moid OperSpeed: OperSpeed EtherPhysicalPort: ObjectType: aaa.AuditRecord @@ -786458,23 +799474,103 @@ components: Extender that facilitate connectivity between the Fabric Interconnect and the Cisco UCS B/C/X-Series servers. example: - ObjectType: ether.HostPort - ModuleId: 6 - Speed: Speed - RegisteredDevice: + OperStateQual: OperStateQual + OperState: OperState + Parent: null + AcknowledgedPeerInterface: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - AggregatePortId: 0 + PortId: 0 + PeerInterface: null ClassId: ether.HostPort + SwitchId: SwitchId + Owners: + - Owners + - Owners + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: ether.HostPort + SlotId: 6 + ModuleId: 5 + AggregatePortId: 5 EquipmentIoCardBase: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + DisplayNames: + key: + - DisplayNames + - DisplayNames + Rn: Rn + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key + Speed: Speed + RegisteredDevice: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + SharedScope: SharedScope + CreateTime: 2000-01-23T04:56:07.000+00:00 + Mode: Mode + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + Dn: Dn + MacAddress: MacAddress + AccountMoid: AccountMoid + DeviceMoId: DeviceMoId + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + PeerDn: PeerDn + Role: Role + PortChannelId: 1 + Moid: Moid + OperSpeed: OperSpeed + TransceiverType: TransceiverType + PortType: PortType title: Ether:Host Port x-allOf-name: ether.HostPort ether.HostPort.List: @@ -786613,29 +799709,97 @@ components: ports facilitate the connection of the Fabric Interconnect to other network devices. example: - OperReason: - - Unknown - - Unknown - ObjectType: ether.NetworkPort - ModuleId: 0 - SlotId: 1 - Speed: Speed - RegisteredDevice: + OperState: OperState + Parent: null + AcknowledgedPeerInterface: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + PeerInterface: null PortId: 6 ClassId: ether.NetworkPort SwitchId: SwitchId + Owners: + - Owners + - Owners + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: ether.NetworkPort + ModuleId: 0 + SlotId: 1 EquipmentIoCardBase: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + DisplayNames: + key: + - DisplayNames + - DisplayNames + Rn: Rn + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key + Speed: Speed + RegisteredDevice: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + SharedScope: SharedScope + CreateTime: 2000-01-23T04:56:07.000+00:00 + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + Dn: Dn + AccountMoid: AccountMoid + DeviceMoId: DeviceMoId + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector PeerDn: PeerDn + OperReason: + - Unknown + - Unknown + Moid: Moid title: Ether:Network Port x-allOf-name: ether.NetworkPort ether.NetworkPort.List: @@ -786759,38 +799923,118 @@ components: type: object description: Physical ethernet port present on a FI. example: - LicenseState: LicenseState - ObjectType: ether.PhysicalPort + OperStateQual: OperStateQual LicenseGrace: LicenseGrace - AdminSpeed: AdminSpeed - RegisteredDevice: + OperState: OperState + Parent: null + InventoryDeviceInfo: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - InventoryDeviceInfo: + PortGroup: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - PortGroup: + AcknowledgedPeerInterface: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - AggregatePortId: 0 + PortId: 0 + PeerInterface: null + ClassId: ether.PhysicalPort + SwitchId: SwitchId + AdminState: AdminState + Owners: + - Owners + - Owners + Name: Name + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: ether.PhysicalPort + SlotId: 6 + AggregatePortId: 5 PortSubGroup: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - ClassId: ether.PhysicalPort - AdminState: AdminState - Name: Name + DisplayNames: + key: + - DisplayNames + - DisplayNames + Rn: Rn + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key + RegisteredDevice: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + SharedScope: SharedScope + CreateTime: 2000-01-23T04:56:07.000+00:00 + Mode: Mode + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + Dn: Dn + MacAddress: MacAddress + AccountMoid: AccountMoid + DeviceMoId: DeviceMoId + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + PeerDn: PeerDn + Role: Role + LicenseState: LicenseState + AdminSpeed: AdminSpeed + PortChannelId: 1 + Moid: Moid + OperSpeed: OperSpeed + TransceiverType: TransceiverType + PortType: PortType title: Ether:Physical Port x-allOf-name: ether.PhysicalPort ether.PhysicalPort.List: @@ -787080,12 +800324,40 @@ components: Selector: Selector Description: Description OperState: OperState + Parent: null AccessVlan: AccessVlan ClassId: ether.PortChannel SwitchId: SwitchId AdminState: AdminState + Owners: + - Owners + - Owners Mtu: 6 Name: Name + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified ObjectType: ether.PortChannel NetworkElement: ObjectType: aaa.AuditRecord @@ -787095,7 +800367,18 @@ components: Selector: Selector AllowedVlans: AllowedVlans IpAddressMask: 0 + DisplayNames: + key: + - DisplayNames + - DisplayNames + Rn: Rn Ipv6SubnetCidr: Ipv6SubnetCidr + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key Status: Status NativeVlan: NativeVlan RegisteredDevice: @@ -787104,11 +800387,32 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector + SharedScope: SharedScope + CreateTime: 2000-01-23T04:56:07.000+00:00 Mode: Mode + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + Dn: Dn MacAddress: MacAddress + AccountMoid: AccountMoid + DeviceMoId: DeviceMoId + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector Role: Role BandWidth: BandWidth PortChannelId: 1 + Moid: Moid IpAddress: IpAddress OperSpeed: OperSpeed title: Ether:Port Channel @@ -787966,19 +801270,94 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector + Parent: null + ClassId: fabric.AppliancePcRole + Owners: + - Owners + - Owners + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified ObjectType: fabric.AppliancePcRole - AdminSpeed: Auto + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key + LinkAggregationPolicy: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + SharedScope: SharedScope Fec: Auto Priority: Best Effort + CreateTime: 2000-01-23T04:56:07.000+00:00 Mode: trunk - ClassId: fabric.AppliancePcRole - EthNetworkControlPolicy: + Ports: + - ObjectType: fabric.PortIdentifier + SlotId: 3 + AggregatePortId: 65 + PortId: 16 + ClassId: fabric.PortIdentifier + - ObjectType: fabric.PortIdentifier + SlotId: 3 + AggregatePortId: 65 + PortId: 16 + ClassId: fabric.PortIdentifier + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + PcId: 21 + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + AdminSpeed: Auto + Moid: Moid + PortPolicy: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - LinkAggregationPolicy: + EthNetworkControlPolicy: ObjectType: aaa.AuditRecord link: link Moid: Moid @@ -788101,17 +801480,85 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector + Parent: null + PortId: 65 + ClassId: fabric.ApplianceRole + Owners: + - Owners + - Owners + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified ObjectType: fabric.ApplianceRole + SlotId: 1 + AggregatePortId: 8 + DisplayNames: + key: + - DisplayNames + - DisplayNames + LinkControlPolicy: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key FlowControlPolicy: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + SharedScope: SharedScope + Fec: Auto Priority: Best Effort + CreateTime: 2000-01-23T04:56:07.000+00:00 Mode: trunk - ClassId: fabric.ApplianceRole - LinkControlPolicy: + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + AdminSpeed: Auto + Moid: Moid + PortPolicy: ObjectType: aaa.AuditRecord link: link Moid: Moid @@ -788348,14 +801795,89 @@ components: type: object description: This captures details of configuration changes. example: - ObjectType: fabric.ConfigChangeDetail + Changes: + - Changes + - Changes + Message: Message + SharedScope: SharedScope + Parent: null + CreateTime: 2000-01-23T04:56:07.000+00:00 ClassId: fabric.ConfigChangeDetail + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + AccountMoid: AccountMoid + ModStatus: None + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Disruptions: + - Disruptions + - Disruptions Profile: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + Owners: + - Owners + - Owners + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: fabric.ConfigChangeDetail + ConfigChangeFlag: Pending-changes + ConfigChangeContext: + EntityType: EntityType + ObjectType: policy.ConfigResultContext + EntityName: EntityName + EntityData: "" + ParentType: ParentType + EntityMoid: EntityMoid + ClassId: policy.ConfigResultContext + ParentMoid: ParentMoid + Moid: Moid + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key title: Fabric:Config Change Detail x-allOf-name: fabric.ConfigChangeDetail fabric.ConfigChangeDetail.List: @@ -788448,8 +801970,28 @@ components: description: This provides overall state and detailed information for the deploy and validation profile configuration results. example: - ObjectType: fabric.ConfigResult + ValidationState: ValidationState + ConfigState: ConfigState + SharedScope: SharedScope + Parent: null + CreateTime: 2000-01-23T04:56:07.000+00:00 ClassId: fabric.ConfigResult + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector Profile: ObjectType: aaa.AuditRecord link: link @@ -788467,6 +802009,77 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector + Owners: + - Owners + - Owners + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: fabric.ConfigResult + AppliedPolicies: + - ErrorMessages: + - ObjectType: policy.PolicyError + Type: none + Message: Message + ClassId: policy.PolicyError + - ObjectType: policy.PolicyError + Type: none + Message: Message + ClassId: policy.PolicyError + Status: ok + ObjectType: policy.PolicyStatus + Type: Type + Moid: Moid + ClassId: policy.PolicyStatus + Reason: Reason + - ErrorMessages: + - ObjectType: policy.PolicyError + Type: none + Message: Message + ClassId: policy.PolicyError + - ObjectType: policy.PolicyError + Type: none + Message: Message + ClassId: policy.PolicyError + Status: ok + ObjectType: policy.PolicyStatus + Type: Type + Moid: Moid + ClassId: policy.PolicyStatus + Reason: Reason + ConfigStage: ConfigStage + Moid: Moid + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key title: Fabric:Config Result x-allOf-name: fabric.ConfigResult fabric.ConfigResult.List: @@ -788553,14 +802166,85 @@ components: description: This provides detailed information for the deploy and validation profile configuration results. example: + Context: + EntityType: EntityType + ObjectType: policy.ConfigResultContext + EntityName: EntityName + EntityData: "" + ParentType: ParentType + EntityMoid: EntityMoid + ClassId: policy.ConfigResultContext + ParentMoid: ParentMoid + Message: Message + SharedScope: SharedScope + Parent: null + CompletedTime: CompletedTime + CreateTime: 2000-01-23T04:56:07.000+00:00 + ClassId: fabric.ConfigResultEntry + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Owners: + - Owners + - Owners + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified ObjectType: fabric.ConfigResultEntry + Type: Type + OwnerId: OwnerId ConfigResult: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - ClassId: fabric.ConfigResultEntry + State: State + Moid: Moid + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key title: Fabric:Config Result Entry x-allOf-name: fabric.ConfigResultEntry fabric.ConfigResultEntry.List: @@ -788698,22 +802382,97 @@ components: description: Identity object that uniquely represents a network element object under the domain. example: + Parent: null + AdminAction: None + ClassId: fabric.ElementIdentity + SwitchId: A + Owners: + - Owners + - Owners + Name: Name + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified ObjectType: fabric.ElementIdentity - PostDeployAction: - - None - - None - PartialDeploymentStatus: None + Identifier: 1 + LifecycleModTime: 2000-01-23T04:56:07.000+00:00 NetworkElement: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + CustomPermissionResources: + - null + - null + DisplayNames: + key: + - DisplayNames + - DisplayNames + ReplacementType: None + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key + PartialDeploymentStatus: None + RegisteredDevice: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + SharedScope: SharedScope + CreateTime: 2000-01-23T04:56:07.000+00:00 + Lifecycle: None + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + AdminActionState: None + Vendor: Vendor + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + PostDeployAction: + - None + - None + Serial: Serial ReplacementTarget: null - ClassId: fabric.ElementIdentity - SwitchId: A + Model: Model + Moid: Moid Domain: Domain - ReplacementType: None title: Fabric:Element Identity x-allOf-name: fabric.ElementIdentity fabric.ElementIdentity.List: @@ -788951,15 +802710,15 @@ components: to the vNIC. example: ForgeMac: allow - ObjectType: fabric.EthNetworkControlPolicy - UplinkFailAction: linkDown + Description: Description Organization: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - MacRegistrationMode: nativeVlanOnly + SharedScope: SharedScope + Parent: null NetworkPolicy: - ObjectType: aaa.AuditRecord link: link @@ -788971,13 +802730,72 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector + CreateTime: 2000-01-23T04:56:07.000+00:00 + ClassId: fabric.EthNetworkControlPolicy + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + AccountMoid: AccountMoid + CdpEnabled: false + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Owners: + - Owners + - Owners + Name: Name + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: fabric.EthNetworkControlPolicy + UplinkFailAction: linkDown + MacRegistrationMode: nativeVlanOnly + Moid: Moid LldpSettings: ObjectType: fabric.LldpSettings TransmitEnabled: false ClassId: fabric.LldpSettings ReceiveEnabled: false - ClassId: fabric.EthNetworkControlPolicy - CdpEnabled: false + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key title: Ethernet Network Control x-allOf-name: fabric.EthNetworkControlPolicy fabric.EthNetworkControlPolicy.List: @@ -789119,33 +802937,88 @@ components: to the vNIC. example: ForgeMac: allow + Description: Description + Parent: null + ClassId: fabric.EthNetworkControlPolicyInventory + CdpEnabled: false + Owners: + - Owners + - Owners + Name: Name + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified ObjectType: fabric.EthNetworkControlPolicyInventory - TargetMo: - ObjectType: aaa.AuditRecord + MacRegistrationMode: nativeVlanOnly + LldpSettings: + ObjectType: fabric.LldpSettings + TransmitEnabled: false + ClassId: fabric.LldpSettings + ReceiveEnabled: false + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key + SharedScope: SharedScope + NetworkPolicy: + - ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - UplinkFailAction: linkDown - MacRegistrationMode: nativeVlanOnly - NetworkPolicy: - ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + CreateTime: 2000-01-23T04:56:07.000+00:00 + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + AccountMoid: AccountMoid + DeviceMoId: DeviceMoId + Ancestors: - ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - LldpSettings: - ObjectType: fabric.LldpSettings - TransmitEnabled: false - ClassId: fabric.LldpSettings - ReceiveEnabled: false - ClassId: fabric.EthNetworkControlPolicyInventory - CdpEnabled: false + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + TargetMo: null + UplinkFailAction: linkDown + Moid: Moid title: Ethernet Network Control x-allOf-name: fabric.EthNetworkControlPolicyInventory fabric.EthNetworkControlPolicyInventory.List: @@ -789233,13 +803106,16 @@ components: type: object description: The allowed VLAN/s on an interface. example: - ObjectType: fabric.EthNetworkGroupPolicy + Description: Description Organization: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + SharedScope: SharedScope + Parent: null + CreateTime: 2000-01-23T04:56:07.000+00:00 VlanSettings: ObjectType: fabric.VlanSettings NativeVlan: 328 @@ -789248,6 +803124,62 @@ components: AllowedVlans: AllowedVlans QinqVlan: 2467 ClassId: fabric.EthNetworkGroupPolicy + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Owners: + - Owners + - Owners + Name: Name + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: fabric.EthNetworkGroupPolicy + Moid: Moid + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key title: Ethernet Network Group x-allOf-name: fabric.EthNetworkGroupPolicy fabric.EthNetworkGroupPolicy.List: @@ -789336,13 +803268,10 @@ components: type: object description: The allowed VLAN/s on an interface. example: - ObjectType: fabric.EthNetworkGroupPolicyInventory - TargetMo: - ObjectType: aaa.AuditRecord - link: link - Moid: Moid - ClassId: mo.MoRef - Selector: Selector + Description: Description + SharedScope: SharedScope + Parent: null + CreateTime: 2000-01-23T04:56:07.000+00:00 VlanSettings: ObjectType: fabric.VlanSettings NativeVlan: 328 @@ -789351,6 +803280,64 @@ components: AllowedVlans: AllowedVlans QinqVlan: 2467 ClassId: fabric.EthNetworkGroupPolicyInventory + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + AccountMoid: AccountMoid + DeviceMoId: DeviceMoId + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Owners: + - Owners + - Owners + Name: Name + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: fabric.EthNetworkGroupPolicyInventory + TargetMo: null + Moid: Moid + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key title: Ethernet Network Group x-allOf-name: fabric.EthNetworkGroupPolicyInventory fabric.EthNetworkGroupPolicyInventory.List: @@ -789443,13 +803430,62 @@ components: description: A policy for all the Virtual LAN networks to be deployed on the Fabric Interconnect. example: - ObjectType: fabric.EthNetworkPolicy + Description: Description Organization: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + SharedScope: SharedScope + Parent: null + CreateTime: 2000-01-23T04:56:07.000+00:00 + ClassId: fabric.EthNetworkPolicy + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Owners: + - Owners + - Owners + Name: Name + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: fabric.EthNetworkPolicy Profiles: - ObjectType: aaa.AuditRecord link: link @@ -789461,7 +803497,17 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector - ClassId: fabric.EthNetworkPolicy + Moid: Moid + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key title: VLAN Configuration x-allOf-name: fabric.EthNetworkPolicy fabric.EthNetworkPolicy.List: @@ -789559,13 +803605,63 @@ components: description: A policy for all the Virtual SAN networks to be deployed on the Fabric Interconnect. example: - ObjectType: fabric.FcNetworkPolicy + Description: Description Organization: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + SharedScope: SharedScope + Parent: null + CreateTime: 2000-01-23T04:56:07.000+00:00 + ClassId: fabric.FcNetworkPolicy + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + AccountMoid: AccountMoid + EnableTrunking: true + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Owners: + - Owners + - Owners + Name: Name + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: fabric.FcNetworkPolicy Profiles: - ObjectType: aaa.AuditRecord link: link @@ -789577,8 +803673,17 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector - ClassId: fabric.FcNetworkPolicy - EnableTrunking: true + Moid: Moid + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key title: VSAN Configuration x-allOf-name: fabric.FcNetworkPolicy fabric.FcNetworkPolicy.List: @@ -789674,10 +803779,76 @@ components: type: object description: Configuration object sent by user to create a fc uplink port. example: + SharedScope: SharedScope + Parent: null + VsanId: 2440 + CreateTime: 2000-01-23T04:56:07.000+00:00 + PortId: 65 + ClassId: fabric.FcStorageRole + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Owners: + - Owners + - Owners + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified ObjectType: fabric.FcStorageRole + SlotId: 1 AdminSpeed: 16Gbps - VsanId: 328 - ClassId: fabric.FcStorageRole + AggregatePortId: 8 + Moid: Moid + PortPolicy: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key title: Fabric:Fc Storage Role x-allOf-name: fabric.FcStorageRole fabric.FcStorageRole.List: @@ -789785,11 +803956,86 @@ components: description: Object sent by user to configure a fc uplink port-channel on the collection of ports. example: + SharedScope: SharedScope + Parent: null + VsanId: 2467 + CreateTime: 2000-01-23T04:56:07.000+00:00 + Ports: + - ObjectType: fabric.PortIdentifier + SlotId: 3 + AggregatePortId: 65 + PortId: 16 + ClassId: fabric.PortIdentifier + - ObjectType: fabric.PortIdentifier + SlotId: 3 + AggregatePortId: 65 + PortId: 16 + ClassId: fabric.PortIdentifier + ClassId: fabric.FcUplinkPcRole + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + PcId: 21 + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Owners: + - Owners + - Owners + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified ObjectType: fabric.FcUplinkPcRole AdminSpeed: 16Gbps - VsanId: 328 - ClassId: fabric.FcUplinkPcRole + Moid: Moid + PortPolicy: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector FillPattern: Idle + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key title: Fabric:Fc Uplink Pc Role x-allOf-name: fabric.FcUplinkPcRole fabric.FcUplinkPcRole.List: @@ -789896,11 +804142,77 @@ components: type: object description: Configuration object sent by user to create a fc uplink port. example: + SharedScope: SharedScope + Parent: null + VsanId: 2440 + CreateTime: 2000-01-23T04:56:07.000+00:00 + PortId: 65 + ClassId: fabric.FcUplinkRole + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Owners: + - Owners + - Owners + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified ObjectType: fabric.FcUplinkRole + SlotId: 1 AdminSpeed: 16Gbps - VsanId: 328 - ClassId: fabric.FcUplinkRole + AggregatePortId: 8 + Moid: Moid + PortPolicy: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector FillPattern: Idle + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key title: Fabric:Fc Uplink Role x-allOf-name: fabric.FcUplinkRole fabric.FcUplinkRole.List: @@ -790072,15 +804384,34 @@ components: description: List of target path entries of storage arrays that are used to configure zones on the switch. example: - ObjectType: fabric.FcZonePolicy + Description: Description Organization: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + SharedScope: SharedScope + Parent: null + CreateTime: 2000-01-23T04:56:07.000+00:00 ClassId: fabric.FcZonePolicy + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null FcTargetZoningType: SIST + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector FcTargetMembers: - ObjectType: fabric.FcZoneMember VsanId: 328 @@ -790094,6 +804425,46 @@ components: ClassId: fabric.FcZoneMember SwitchId: A Name: Name + Owners: + - Owners + - Owners + Name: Name + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: fabric.FcZonePolicy + Moid: Moid + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key title: FC Zone x-allOf-name: fabric.FcZonePolicy fabric.FcZonePolicy.List: @@ -790206,16 +804577,91 @@ components: description: Object sent by user to configure a fcoe uplink port-channel on the collection of ports. example: - ObjectType: fabric.FcoeUplinkPcRole - AdminSpeed: Auto + SharedScope: SharedScope + Parent: null Fec: Auto + CreateTime: 2000-01-23T04:56:07.000+00:00 + Ports: + - ObjectType: fabric.PortIdentifier + SlotId: 3 + AggregatePortId: 65 + PortId: 16 + ClassId: fabric.PortIdentifier + - ObjectType: fabric.PortIdentifier + SlotId: 3 + AggregatePortId: 65 + PortId: 16 + ClassId: fabric.PortIdentifier ClassId: fabric.FcoeUplinkPcRole + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + PcId: 21 + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Owners: + - Owners + - Owners + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: fabric.FcoeUplinkPcRole + AdminSpeed: Auto + Moid: Moid + PortPolicy: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + DisplayNames: + key: + - DisplayNames + - DisplayNames LinkControlPolicy: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key LinkAggregationPolicy: ObjectType: aaa.AuditRecord link: link @@ -790297,14 +804743,82 @@ components: type: object description: Configuration object sent by user to create a fcoe uplink port. example: - ObjectType: fabric.FcoeUplinkRole + SharedScope: SharedScope + Parent: null + Fec: Auto + CreateTime: 2000-01-23T04:56:07.000+00:00 + PortId: 65 ClassId: fabric.FcoeUplinkRole + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Owners: + - Owners + - Owners + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: fabric.FcoeUplinkRole + SlotId: 1 + AdminSpeed: Auto + AggregatePortId: 8 + Moid: Moid + PortPolicy: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + DisplayNames: + key: + - DisplayNames + - DisplayNames LinkControlPolicy: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key title: Fabric:Fcoe Uplink Role x-allOf-name: fabric.FcoeUplinkRole fabric.FcoeUplinkRole.List: @@ -790425,17 +804939,76 @@ components: type: object description: Priority Flow Control setting for each port. example: - ObjectType: fabric.FlowControlPolicy + Description: Description Organization: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + SharedScope: SharedScope + Parent: null + CreateTime: 2000-01-23T04:56:07.000+00:00 ClassId: fabric.FlowControlPolicy - PriorityFlowControlMode: auto + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Owners: + - Owners + - Owners + Name: Name ReceiveDirection: Disabled SendDirection: Disabled + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: fabric.FlowControlPolicy + Moid: Moid + DisplayNames: + key: + - DisplayNames + - DisplayNames + PriorityFlowControlMode: auto + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key title: Flow Control x-allOf-name: fabric.FlowControlPolicy fabric.FlowControlPolicy.List: @@ -790511,14 +805084,78 @@ components: type: object description: LAN PinGroup configuration sent by user for static pinning. example: - ObjectType: fabric.LanPinGroup + SharedScope: SharedScope + Parent: null + CreateTime: 2000-01-23T04:56:07.000+00:00 ClassId: fabric.LanPinGroup + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null PinTargetInterfaceRole: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Owners: + - Owners + - Owners + Name: Name + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: fabric.LanPinGroup + Moid: Moid + PortPolicy: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key title: Fabric:Lan Pin Group x-allOf-name: fabric.LanPinGroup fabric.LanPinGroup.List: @@ -790621,16 +805258,75 @@ components: description: A policy to configure the link settings for all the port channels (including LACP). example: - ObjectType: fabric.LinkAggregationPolicy + Description: Description Organization: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + SharedScope: SharedScope + Parent: null + CreateTime: 2000-01-23T04:56:07.000+00:00 + ClassId: fabric.LinkAggregationPolicy + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Owners: + - Owners + - Owners + Name: Name + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: fabric.LinkAggregationPolicy LacpRate: normal SuspendIndividual: true - ClassId: fabric.LinkAggregationPolicy + Moid: Moid + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key title: Link Aggregation x-allOf-name: fabric.LinkAggregationPolicy fabric.LinkAggregationPolicy.List: @@ -790719,19 +805415,78 @@ components: description: A policy to configure the link settings for all the ports (including UDLD). example: - ObjectType: fabric.LinkControlPolicy + Description: Description Organization: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + SharedScope: SharedScope + Parent: null + CreateTime: 2000-01-23T04:56:07.000+00:00 ClassId: fabric.LinkControlPolicy + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Owners: + - Owners + - Owners + Name: Name UdldSettings: ObjectType: fabric.UdldSettings Mode: normal ClassId: fabric.UdldSettings AdminState: Disabled + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: fabric.LinkControlPolicy + Moid: Moid + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key title: Link Control x-allOf-name: fabric.LinkControlPolicy fabric.LinkControlPolicy.List: @@ -790973,8 +805728,7 @@ components: description: A policy to configure Multicast settings for all the Virtual LAN networks. example: - ObjectType: fabric.MulticastPolicy - SnoopingState: Enabled + Description: Description QuerierIpAddress: QuerierIpAddress QuerierState: Disabled Organization: @@ -790983,8 +805737,68 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector + SharedScope: SharedScope + Parent: null + CreateTime: 2000-01-23T04:56:07.000+00:00 ClassId: fabric.MulticastPolicy + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Owners: + - Owners + - Owners + Name: Name + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: fabric.MulticastPolicy + SnoopingState: Enabled + Moid: Moid + DisplayNames: + key: + - DisplayNames + - DisplayNames SrcIpProxy: Enabled + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key QuerierIpAddressPeer: QuerierIpAddressPeer title: Multicast x-allOf-name: fabric.MulticastPolicy @@ -791067,15 +805881,75 @@ components: description: PcMember object is to establish the relationship between port parameters and pcId. example: + SharedScope: SharedScope + Parent: null + CreateTime: 2000-01-23T04:56:07.000+00:00 + PortId: 6 + ClassId: fabric.PcMember + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + PcId: 5 + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Owners: + - Owners + - Owners + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified ObjectType: fabric.PcMember + SlotId: 1 + AggregatePortId: 0 + Moid: Moid PortPolicy: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - ClassId: fabric.PcMember - PcId: 0 + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key title: Fabric:Pc Member x-allOf-name: fabric.PcMember fabric.PcMember.List: @@ -791488,6 +806362,12 @@ components: Type to represent switch ports. A common port naming convention is to identify a port as "slotId/portId" when no breakout port is configured and "slotId/aggregatePortId/portId" when a breakout port is configured. + example: + ObjectType: fabric.PortIdentifier + SlotId: 3 + AggregatePortId: 65 + PortId: 16 + ClassId: fabric.PortIdentifier nullable: true title: Fabric:Port Identifier x-allOf-name: fabric.PortIdentifier @@ -791765,18 +806645,78 @@ components: description: PortOperation objects allows the user to alter the state of the port. example: + ConfigState: None + SharedScope: SharedScope + Parent: null + CreateTime: 2000-01-23T04:56:07.000+00:00 + AdminAction: None + PortId: 6 + ClassId: fabric.PortOperation + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + AdminState: Enabled + Owners: + - Owners + - Owners + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified ObjectType: fabric.PortOperation + SlotId: 1 NetworkElement: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - ConfigState: None - AdminAction: None - ClassId: fabric.PortOperation - AdminState: Enabled - FexId: 0 + AggregatePortId: 0 + Moid: Moid + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key + FexId: 5 title: Fabric:Port Operation x-allOf-name: fabric.PortOperation fabric.PortOperation.List: @@ -791886,13 +806826,62 @@ components: description: A policy for all the physical ports of the Fabric Interconnect. example: DeviceModel: UCS-FI-6454 - ObjectType: fabric.PortPolicy + Description: Description Organization: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + SharedScope: SharedScope + Parent: null + CreateTime: 2000-01-23T04:56:07.000+00:00 + ClassId: fabric.PortPolicy + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Owners: + - Owners + - Owners + Name: Name + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: fabric.PortPolicy Profiles: - ObjectType: aaa.AuditRecord link: link @@ -791904,7 +806893,17 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector - ClassId: fabric.PortPolicy + Moid: Moid + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key title: Port x-allOf-name: fabric.PortPolicy fabric.PortPolicy.List: @@ -792180,14 +807179,78 @@ components: type: object description: SAN PinGroup configuration sent by user for static pinning. example: - ObjectType: fabric.SanPinGroup + SharedScope: SharedScope + Parent: null + CreateTime: 2000-01-23T04:56:07.000+00:00 ClassId: fabric.SanPinGroup + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null PinTargetInterfaceRole: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Owners: + - Owners + - Owners + Name: Name + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: fabric.SanPinGroup + Moid: Moid + PortPolicy: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key title: Fabric:San Pin Group x-allOf-name: fabric.SanPinGroup fabric.SanPinGroup.List: @@ -792306,12 +807369,78 @@ components: type: object description: Configuration object sent by user to create a server port. example: - ObjectType: fabric.ServerRole PreferredDeviceType: Auto + SharedScope: SharedScope + Parent: null Fec: Auto - AutoNegotiationDisabled: false - PreferredDeviceId: 0 + CreateTime: 2000-01-23T04:56:07.000+00:00 + PortId: 65 ClassId: fabric.ServerRole + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Owners: + - Owners + - Owners + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: fabric.ServerRole + SlotId: 1 + AggregatePortId: 8 + AutoNegotiationDisabled: false + PreferredDeviceId: 5 + Moid: Moid + PortPolicy: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key title: Fabric:Server Role x-allOf-name: fabric.ServerRole fabric.ServerRole.List: @@ -792418,10 +807547,82 @@ components: type: object description: Configures Ethernet SPAN Destination Port for a given SPAN session. example: - ObjectType: fabric.SpanDestEthPort - AdminSpeed: Auto + SharedScope: SharedScope + Parent: null Fec: Auto + CreateTime: 2000-01-23T04:56:07.000+00:00 + PortId: 6 ClassId: fabric.SpanDestEthPort + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Owners: + - Owners + - Owners + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: fabric.SpanDestEthPort + SlotId: 1 + AdminSpeed: Auto + SpanSession: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + AggregatePortId: 0 + Moid: Moid + PhysicalPort: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key title: Fabric:Span Dest Eth Port x-allOf-name: fabric.SpanDestEthPort fabric.SpanDestEthPort.List: @@ -792543,7 +807744,15 @@ components: type: object description: Configures an Ethernet SPAN session per Fabric Interconnect. example: - SourcePortChannels: + ConfigState: None + OperState: Unknown + Parent: null + SourceCount: 6 + OperStateReason: Unknown + ClassId: fabric.SpanSession + SwitchId: A + AdminState: Disabled + DestPorts: - ObjectType: aaa.AuditRecord link: link Moid: Moid @@ -792554,9 +807763,53 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector + Owners: + - Owners + - Owners + Name: Name + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified ObjectType: fabric.SpanSession - ClassId: fabric.SpanSession - DestPorts: + NetworkElement: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + SessionId: 0 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key + SourceVirtualIfs: - ObjectType: aaa.AuditRecord link: link Moid: Moid @@ -792567,7 +807820,7 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector - SourceVirtualIfs: + SourcePorts: - ObjectType: aaa.AuditRecord link: link Moid: Moid @@ -792578,7 +807831,7 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector - SourceVlans: + SourcePortChannels: - ObjectType: aaa.AuditRecord link: link Moid: Moid @@ -792589,7 +807842,26 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector - SourcePorts: + SpanControlPackets: Disabled + SharedScope: SharedScope + CreateTime: 2000-01-23T04:56:07.000+00:00 + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + SourceVlans: - ObjectType: aaa.AuditRecord link: link Moid: Moid @@ -792600,6 +807872,7 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector + Moid: Moid title: Fabric:Span Session x-allOf-name: fabric.SpanSession fabric.SpanSession.List: @@ -792647,7 +807920,83 @@ components: - $ref: '#/components/schemas/fabric.AbstractSpanSourcePort' description: Configures Ethernet SPAN Source Port (Uplink) for a given SPAN session. - example: {} + example: + SourceRole: Uplink + SharedScope: SharedScope + Parent: null + CreateTime: 2000-01-23T04:56:07.000+00:00 + PortId: 6 + ClassId: fabric.SpanSourceEthPort + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + AccountMoid: AccountMoid + Direction: Receive + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Owners: + - Owners + - Owners + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: fabric.SpanSourceEthPort + SlotId: 1 + SpanSession: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + AggregatePortId: 0 + Moid: Moid + PhysicalPort: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key title: Fabric:Span Source Eth Port x-allOf-name: fabric.SpanSourceEthPort fabric.SpanSourceEthPort.List: @@ -792695,7 +808044,81 @@ components: - $ref: '#/components/schemas/fabric.AbstractSpanSourcePortChannel' description: Configures Ethernet SPAN Source Port Channel (Uplink) for a given SPAN session. - example: {} + example: + SourceRole: Uplink + SharedScope: SharedScope + Parent: null + CreateTime: 2000-01-23T04:56:07.000+00:00 + PhysicalPortChannel: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: fabric.SpanSourceEthPortChannel + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + PcId: 0 + AccountMoid: AccountMoid + Direction: Receive + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Owners: + - Owners + - Owners + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: fabric.SpanSourceEthPortChannel + SpanSession: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Moid: Moid + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key title: Fabric:Span Source Eth Port Channel x-allOf-name: fabric.SpanSourceEthPortChannel fabric.SpanSourceEthPortChannel.List: @@ -792790,6 +808213,54 @@ components: \ as a source to a SPAN session on the peer Fabric Interconnect to ensure\ \ that traffic is mirrored on both Fabric Interconnects." example: + SharedScope: SharedScope + Parent: null + CreateTime: 2000-01-23T04:56:07.000+00:00 + ClassId: fabric.SpanSourceVlan + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + AccountMoid: AccountMoid + Direction: Receive + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Owners: + - Owners + - Owners + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified ObjectType: fabric.SpanSourceVlan SpanSession: ObjectType: aaa.AuditRecord @@ -792797,7 +808268,17 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector - ClassId: fabric.SpanSourceVlan + Moid: Moid + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key VlanId: 0 title: Fabric:Span Source Vlan x-allOf-name: fabric.SpanSourceVlan @@ -792877,14 +808358,80 @@ components: source to a SPAN session on the peer Fabric Interconnect to ensure that traffic is mirrored on both Fabric Interconnects. example: - ObjectType: fabric.SpanSourceVnicEthIf + VifId: 0 + SharedScope: SharedScope + Parent: null + CreateTime: 2000-01-23T04:56:07.000+00:00 ClassId: fabric.SpanSourceVnicEthIf + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + AccountMoid: AccountMoid + Direction: Receive + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Owners: + - Owners + - Owners + Name: Name + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: fabric.SpanSourceVnicEthIf + SpanSession: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Moid: Moid Vnic: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key title: Fabric:Span Source Vnic Eth If x-allOf-name: fabric.SpanSourceVnicEthIf fabric.SpanSourceVnicEthIf.List: @@ -793020,8 +808567,6 @@ components: type: object description: This specifies the configuration policies for a cluster of switches. example: - DeployedSwitches: None - ObjectType: fabric.SwitchClusterProfile SwitchProfiles: - ObjectType: aaa.AuditRecord link: link @@ -793052,15 +808597,58 @@ components: ClassId: mo.MoRef Selector: Selector ClassId: fabric.ClusterAssignment - UserLabel: UserLabel + Description: Description Organization: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + Parent: null DeployStatus: None ClassId: fabric.SwitchClusterProfile + Owners: + - Owners + - Owners + Name: Name + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + DeployedSwitches: None + ObjectType: fabric.SwitchClusterProfile + UserLabel: UserLabel + SwitchProfilesCount: 0 + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key ConfigContext: ObjectType: policy.ConfigContext ConfigStateSummary: None @@ -793073,6 +808661,32 @@ components: - InconsistencyReason ConfigType: ConfigType ControlAction: ControlAction + SharedScope: SharedScope + CreateTime: 2000-01-23T04:56:07.000+00:00 + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Type: instance + SrcTemplate: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Moid: Moid title: Switch Cluster Profile x-allOf-name: fabric.SwitchClusterProfile fabric.SwitchClusterProfile.List: @@ -793237,14 +808851,17 @@ components: } The response of the MoMerger API call would contain the changed profiles. example: - ObjectType: fabric.SwitchClusterProfileTemplate Usage: 0 + Description: Description Organization: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + SharedScope: SharedScope + Parent: null + CreateTime: 2000-01-23T04:56:07.000+00:00 SwitchProfileTemplates: - ObjectType: aaa.AuditRecord link: link @@ -793257,6 +808874,70 @@ components: ClassId: mo.MoRef Selector: Selector ClassId: fabric.SwitchClusterProfileTemplate + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Owners: + - Owners + - Owners + Name: Name + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: fabric.SwitchClusterProfileTemplate + Type: instance + SrcTemplate: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Moid: Moid + SwitchProfilesCount: 0 + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key title: Switch Cluster Profile Template x-allOf-name: fabric.SwitchClusterProfileTemplate fabric.SwitchClusterProfileTemplate.List: @@ -793395,15 +809076,51 @@ components: description: "A policy to configure the Switching Mode, Port VLAN Optimization,\ \ MAC Aging Time, Reserved VLAN Range of the FI." example: - ObjectType: fabric.SwitchControlPolicy + Description: Description Organization: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - ReservedVlanStartId: 2360 + Parent: null EthernetSwitchingMode: end-host + ClassId: fabric.SwitchControlPolicy + Owners: + - Owners + - Owners + Name: Name + UdldSettings: + ObjectType: fabric.UdldGlobalSettings + RecoveryAction: none + ClassId: fabric.UdldGlobalSettings + MessageInterval: 19 + VlanPortOptimizationEnabled: false + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: fabric.SwitchControlPolicy MacAgingSettings: ObjectType: fabric.MacAgingSettings MacAgingOption: Default @@ -793421,14 +809138,37 @@ components: ClassId: mo.MoRef Selector: Selector FcSwitchingMode: end-host - ClassId: fabric.SwitchControlPolicy + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key + SharedScope: SharedScope + CreateTime: 2000-01-23T04:56:07.000+00:00 + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ReservedVlanStartId: 2360 + Moid: Moid FabricPcVhbaReset: Disabled - UdldSettings: - ObjectType: fabric.UdldGlobalSettings - RecoveryAction: none - ClassId: fabric.UdldGlobalSettings - MessageInterval: 19 - VlanPortOptimizationEnabled: false title: Switch Control x-allOf-name: fabric.SwitchControlPolicy fabric.SwitchControlPolicy.List: @@ -793536,14 +809276,9 @@ components: type: object description: This specifies configuration policies for a managed network switch. example: - ObjectType: fabric.SwitchProfile - AssociatedSwitch: null - AssignedSwitch: - ObjectType: aaa.AuditRecord - link: link - Moid: Moid - ClassId: mo.MoRef - Selector: Selector + Action: No-op + Description: Description + Parent: null ConfigChanges: Changes: - Changes @@ -793568,6 +809303,116 @@ components: Disruptions: - Disruptions - Disruptions + ClassId: fabric.SwitchProfile + Owners: + - Owners + - Owners + Name: Name + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: fabric.SwitchProfile + SwitchClusterProfile: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key + ConfigContext: + ObjectType: policy.ConfigContext + ConfigStateSummary: None + ConfigState: ConfigState + OperState: OperState + ErrorState: ErrorState + ClassId: policy.ConfigContext + InconsistencyReason: + - InconsistencyReason + - InconsistencyReason + ConfigType: ConfigType + ControlAction: ControlAction + AssignedSwitch: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + SharedScope: SharedScope + CreateTime: 2000-01-23T04:56:07.000+00:00 + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + RunningWorkflows: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Type: instance + AssociatedSwitch: null + ScheduledActions: + - ObjectType: policy.ScheduledAction + Action: Action + ClassId: policy.ScheduledAction + ProceedOnReboot: true + - ObjectType: policy.ScheduledAction + Action: Action + ClassId: policy.ScheduledAction + ProceedOnReboot: true + ConfigResult: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector ConfigChangeContext: ObjectType: policy.ConfigChangeContext ConfigChangeError: ConfigChangeError @@ -793585,14 +809430,23 @@ components: - InconsistencyReason ConfigType: ConfigType ControlAction: ControlAction - ClassId: fabric.SwitchProfile - SwitchClusterProfile: + SrcTemplate: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - ConfigChangeDetails: + ActionParams: + - ObjectType: policy.ActionParam + Value: Value + ClassId: policy.ActionParam + Name: Name + - ObjectType: policy.ActionParam + Value: Value + ClassId: policy.ActionParam + Name: Name + Moid: Moid + PolicyBucket: - ObjectType: aaa.AuditRecord link: link Moid: Moid @@ -793603,7 +809457,7 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector - RunningWorkflows: + ConfigChangeDetails: - ObjectType: aaa.AuditRecord link: link Moid: Moid @@ -793700,8 +809554,122 @@ components: description: The template specifies the policy configuration for each of the managed network switch. example: - ObjectType: fabric.SwitchProfileTemplate + Action: No-op + Description: Description + Parent: null ClassId: fabric.SwitchProfileTemplate + Owners: + - Owners + - Owners + Name: Name + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: fabric.SwitchProfileTemplate + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key + ConfigContext: + ObjectType: policy.ConfigContext + ConfigStateSummary: None + ConfigState: ConfigState + OperState: OperState + ErrorState: ErrorState + ClassId: policy.ConfigContext + InconsistencyReason: + - InconsistencyReason + - InconsistencyReason + ConfigType: ConfigType + ControlAction: ControlAction + SharedScope: SharedScope + CreateTime: 2000-01-23T04:56:07.000+00:00 + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Type: instance + ScheduledActions: + - ObjectType: policy.ScheduledAction + Action: Action + ClassId: policy.ScheduledAction + ProceedOnReboot: true + - ObjectType: policy.ScheduledAction + Action: Action + ClassId: policy.ScheduledAction + ProceedOnReboot: true + ConfigResult: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + SrcTemplate: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ActionParams: + - ObjectType: policy.ActionParam + Value: Value + ClassId: policy.ActionParam + Name: Name + - ObjectType: policy.ActionParam + Value: Value + ClassId: policy.ActionParam + Name: Name + Moid: Moid + PolicyBucket: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector SwitchClusterProfileTemplate: ObjectType: aaa.AuditRecord link: link @@ -793795,13 +809763,62 @@ components: description: Configuration object sent by user to setup Quality of Service (QoS) for this switch. example: - ObjectType: fabric.SystemQosPolicy + Description: Description Organization: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + SharedScope: SharedScope + Parent: null + CreateTime: 2000-01-23T04:56:07.000+00:00 + ClassId: fabric.SystemQosPolicy + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Owners: + - Owners + - Owners + Name: Name + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: fabric.SystemQosPolicy Profiles: - ObjectType: aaa.AuditRecord link: link @@ -793813,7 +809830,17 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector - ClassId: fabric.SystemQosPolicy + Moid: Moid + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key Classes: - ObjectType: fabric.QosClass Cos: 153 @@ -794157,22 +810184,97 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector - ObjectType: fabric.UplinkPcRole - AdminSpeed: Auto FlowControlPolicy: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + SharedScope: SharedScope + Parent: null Fec: Auto + CreateTime: 2000-01-23T04:56:07.000+00:00 + Ports: + - ObjectType: fabric.PortIdentifier + SlotId: 3 + AggregatePortId: 65 + PortId: 16 + ClassId: fabric.PortIdentifier + - ObjectType: fabric.PortIdentifier + SlotId: 3 + AggregatePortId: 65 + PortId: 16 + ClassId: fabric.PortIdentifier ClassId: fabric.UplinkPcRole + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + PcId: 21 + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Owners: + - Owners + - Owners + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: fabric.UplinkPcRole + AdminSpeed: Auto + Moid: Moid + PortPolicy: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + DisplayNames: + key: + - DisplayNames + - DisplayNames LinkControlPolicy: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key LinkAggregationPolicy: ObjectType: aaa.AuditRecord link: link @@ -794274,20 +810376,88 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector - ObjectType: fabric.UplinkRole FlowControlPolicy: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + SharedScope: SharedScope + Parent: null + Fec: Auto + CreateTime: 2000-01-23T04:56:07.000+00:00 + PortId: 65 ClassId: fabric.UplinkRole + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Owners: + - Owners + - Owners + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: fabric.UplinkRole + SlotId: 1 + AdminSpeed: Auto + AggregatePortId: 8 + Moid: Moid + PortPolicy: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + DisplayNames: + key: + - DisplayNames + - DisplayNames LinkControlPolicy: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key title: Fabric:Uplink Role x-allOf-name: fabric.UplinkRole fabric.UplinkRole.List: @@ -795547,26 +811717,87 @@ components: type: object description: An endpoint anomaly is represented by this object. example: - LastTransitionTime: LastTransitionTime Description: Description - RegisteredDevice: + Parent: null + InventoryDeviceInfo: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - AncestorMoId: AncestorMoId - InventoryDeviceInfo: + AffectedDn: AffectedDn + PreviousSeverity: PreviousSeverity + ClassId: fault.Instance + Owners: + - Owners + - Owners + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: fault.Instance + AncestorMoType: AncestorMoType + DisplayNames: + key: + - DisplayNames + - DisplayNames + Rn: Rn + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key + LastTransitionTime: LastTransitionTime + RegisteredDevice: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - AffectedDn: AffectedDn - PreviousSeverity: PreviousSeverity - ClassId: fault.Instance + SharedScope: SharedScope + AncestorMoId: AncestorMoId + CreateTime: 2000-01-23T04:56:07.000+00:00 + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + Dn: Dn Severity: Severity + AccountMoid: AccountMoid + DeviceMoId: DeviceMoId Code: Code + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector AffectedMoType: AffectedMoType AffectedMo: ObjectType: aaa.AuditRecord @@ -795574,11 +811805,10 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector - ObjectType: fault.Instance AffectedMoId: AffectedMoId - AncestorMoType: AncestorMoType CreationTime: CreationTime NumOccurrences: 0 + Moid: Moid Rule: Rule OriginalSeverity: OriginalSeverity AncestorMo: null @@ -795702,9 +811932,7 @@ components: description: Concrete class for switch and N port virtualization neighbors present in various interfaces of a switch. example: - PeerDeviceCapability: Switch - ObjectType: fc.Neighbor - PeerIpAddress: PeerIpAddress + Parent: null FcPhysicalPort: ObjectType: aaa.AuditRecord link: link @@ -795712,14 +811940,76 @@ components: ClassId: mo.MoRef Selector: Selector PeerInterface: PeerInterface + ClassId: fc.Neighbor + PeerSwitchName: PeerSwitchName + Owners: + - Owners + - Owners + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: fc.Neighbor + DisplayNames: + key: + - DisplayNames + - DisplayNames + Rn: Rn + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key + PeerDeviceCapability: Switch + SharedScope: SharedScope + PeerIpAddress: PeerIpAddress + CreateTime: 2000-01-23T04:56:07.000+00:00 + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + Dn: Dn + AccountMoid: AccountMoid + DeviceMoId: DeviceMoId + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Moid: Moid FcPortChannel: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - ClassId: fc.Neighbor - PeerSwitchName: PeerSwitchName PeerWwn: PeerWwn title: Fc:Neighbor x-allOf-name: fc.Neighbor @@ -795890,61 +812180,127 @@ components: description: The physical interface on the Fabric Interconnect to which a Fibre Channel (FC) target can be connected to within a data center. example: - MaxSpeed: MaxSpeed + OperStateQual: OperStateQual EquipmentSwitchCard: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - Vsan: 5 - RegisteredDevice: + OperState: OperState + Parent: null + InventoryDeviceInfo: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - InventoryDeviceInfo: + PortGroup: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - PortGroup: + B2bCredit: 5 + PortId: 0 + ClassId: fc.PhysicalPort + SwitchId: SwitchId + AdminState: AdminState + Owners: + - Owners + - Owners + Name: Name + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: fc.PhysicalPort + SlotId: 6 + AggregatePortId: 1 + PortSubGroup: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - B2bCredit: 6 - Mode: Mode - ClassId: fc.PhysicalPort - FcNeighbor: + NetworkSupervisorCard: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - AdminState: AdminState - PeerDn: PeerDn - Name: Name - Wwn: Wwn - ObjectType: fc.PhysicalPort - AdminSpeed: AdminSpeed - AggregatePortId: 0 - PortChannelId: 1 - PortSubGroup: + DisplayNames: + key: + - DisplayNames + - DisplayNames + Rn: Rn + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key + MaxSpeed: MaxSpeed + Vsan: 2 + RegisteredDevice: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - NetworkSupervisorCard: + SharedScope: SharedScope + CreateTime: 2000-01-23T04:56:07.000+00:00 + Mode: Mode + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + Dn: Dn + FcNeighbor: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + AccountMoid: AccountMoid + DeviceMoId: DeviceMoId + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + PeerDn: PeerDn + Wwn: Wwn + Role: Role + AdminSpeed: AdminSpeed + PortChannelId: 5 + Moid: Moid OperSpeed: OperSpeed TransceiverType: TransceiverType title: Fc:Physical Port @@ -796114,6 +812470,57 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector + OperState: OperState + Parent: null + ClassId: fc.PortChannel + SwitchId: SwitchId + AdminState: AdminState + Owners: + - Owners + - Owners + Name: Name + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: fc.PortChannel + NetworkElement: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + DisplayNames: + key: + - DisplayNames + - DisplayNames + Rn: Rn + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key Vsan: 6 RegisteredDevice: ObjectType: aaa.AuditRecord @@ -796121,10 +812528,14 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector - OperState: OperState + SharedScope: SharedScope + CreateTime: 2000-01-23T04:56:07.000+00:00 Mode: Mode - ClassId: fc.PortChannel - SwitchId: SwitchId + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + Dn: Dn FcNeighbor: - ObjectType: aaa.AuditRecord link: link @@ -796136,19 +812547,24 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector - AdminState: AdminState - Name: Name - Wwn: Wwn - Role: Role - ObjectType: fc.PortChannel - AdminSpeed: AdminSpeed - NetworkElement: - ObjectType: aaa.AuditRecord + AccountMoid: AccountMoid + DeviceMoId: DeviceMoId + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + Wwn: Wwn + Role: Role + AdminSpeed: AdminSpeed PortChannelId: 0 + Moid: Moid OperSpeed: OperSpeed title: Fc:Port Channel x-allOf-name: fc.PortChannel @@ -796219,6 +812635,7 @@ components: description: Block of WWN identifiers. example: ObjectType: fcpool.Block + Size: 150 ClassId: fcpool.Block From: From To: To @@ -796295,12 +812712,63 @@ components: type: object description: A block of contiguous WWN addresses that are part of a pool. example: + SharedScope: SharedScope + Parent: null + CreateTime: 2000-01-23T04:56:07.000+00:00 + ClassId: fcpool.FcBlock + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + NextIdAllocator: 6 + AccountMoid: AccountMoid + FreeBlockCount: 0 + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Owners: + - Owners + - Owners + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified ObjectType: fcpool.FcBlock IdBlock: ObjectType: fcpool.Block + Size: 150 ClassId: fcpool.Block From: From To: To + Moid: Moid Reservations: - ObjectType: aaa.AuditRecord link: link @@ -796312,13 +812780,22 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector - ClassId: fcpool.FcBlock Pool: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key title: Fcpool:Fc Block x-allOf-name: fcpool.FcBlock fcpool.FcBlock.List: @@ -796422,39 +812899,94 @@ components: description: "Lease represents a single WWN ID that is part of the universe,\ \ allocated either from a pool or through static assignment." example: - ObjectType: fcpool.Lease - Reservation: - ObjectType: fcpool.ReservationReference - ConsumerName: ConsumerName - ClassId: fcpool.ReservationReference - ConsumerType: Vhba + SharedScope: SharedScope + Parent: null + CreateTime: 2000-01-23T04:56:07.000+00:00 + AllocationType: dynamic WwnId: WwnId - AssignedToEntity: + AssignedToEntity: null + Universe: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - Universe: - ObjectType: aaa.AuditRecord + ClassId: fcpool.Lease + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + AccountMoid: AccountMoid + PoolPurpose: PoolPurpose + Ancestors: + - ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - ClassId: fcpool.Lease + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Owners: + - Owners + - Owners + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: fcpool.Lease + Reservation: + ObjectType: fcpool.ReservationReference + ReservationMoid: ReservationMoid + ConsumerName: ConsumerName + ClassId: fcpool.ReservationReference + ConsumerType: Vhba + Moid: Moid Pool: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + DisplayNames: + key: + - DisplayNames + - DisplayNames PoolMember: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - PoolPurpose: PoolPurpose + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key + HasDuplicate: false title: Fcpool:Lease x-allOf-name: fcpool.Lease fcpool.Lease.List: @@ -796562,6 +813094,56 @@ components: description: Pool represents a collection of WWN addresses that can be allocated to VHBAs of a server profile. example: + Description: Description + Organization: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Parent: null + Size: 1 + ClassId: fcpool.Pool + IdBlocks: + - ObjectType: fcpool.Block + Size: 150 + ClassId: fcpool.Block + From: From + To: To + - ObjectType: fcpool.Block + Size: 150 + ClassId: fcpool.Block + From: From + To: To + PoolPurpose: PoolPurpose + Owners: + - Owners + - Owners + Name: Name + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified ObjectType: fcpool.Pool BlockHeads: - ObjectType: aaa.AuditRecord @@ -796574,13 +813156,37 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector - Organization: - ObjectType: aaa.AuditRecord + Reservations: + - ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - Reservations: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key + Assigned: 0 + SharedScope: SharedScope + CreateTime: 2000-01-23T04:56:07.000+00:00 + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + AssignmentOrder: sequential + AccountMoid: AccountMoid + Ancestors: - ObjectType: aaa.AuditRecord link: link Moid: Moid @@ -796591,17 +813197,8 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector - ClassId: fcpool.Pool - IdBlocks: - - ObjectType: fcpool.Block - ClassId: fcpool.Block - From: From - To: To - - ObjectType: fcpool.Block - ClassId: fcpool.Block - From: From - To: To - PoolPurpose: PoolPurpose + Moid: Moid + Reserved: 6 title: Fcpool:Pool x-allOf-name: fcpool.Pool fcpool.Pool.List: @@ -796700,39 +813297,94 @@ components: type: object description: PoolMember represents a single WWN ID that is part of a pool. example: + Assigned: false BlockHead: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - ObjectType: fcpool.PoolMember - Reservation: + SharedScope: SharedScope + Parent: null + CreateTime: 2000-01-23T04:56:07.000+00:00 + Peer: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - Peer: - ObjectType: aaa.AuditRecord + WwnId: WwnId + AssignedByAnother: false + AssignedToEntity: null + ClassId: fcpool.PoolMember + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - WwnId: WwnId - AssignedToEntity: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Owners: + - Owners + - Owners + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: fcpool.PoolMember + Reservation: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - ClassId: fcpool.PoolMember + Moid: Moid Pool: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key + Reserved: false title: Fcpool:Pool Member x-allOf-name: fcpool.PoolMember fcpool.PoolMember.List: @@ -796836,32 +813488,85 @@ components: type: object description: "The WWN reservation object, used to hold reserved identities." example: - ObjectType: fcpool.Reservation Organization: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - Block: + SharedScope: SharedScope + Parent: null + CreateTime: 2000-01-23T04:56:07.000+00:00 + AllocationType: dynamic + Universe: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - Universe: + ClassId: fcpool.Reservation + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + IdPurpose: IdPurpose + Owners: + - Owners + - Owners + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: fcpool.Reservation + Moid: Moid + Block: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - ClassId: fcpool.Reservation Pool: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + DisplayNames: + key: + - DisplayNames + - DisplayNames Identity: Identity PoolMember: ObjectType: aaa.AuditRecord @@ -796869,7 +813574,12 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector - IdPurpose: IdPurpose + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key title: Fcpool:Reservation x-allOf-name: fcpool.Reservation fcpool.Reservation.List: @@ -796941,6 +813651,7 @@ components: description: The reference to the reservation object. example: ObjectType: fcpool.ReservationReference + ReservationMoid: ReservationMoid ConsumerName: ConsumerName ClassId: fcpool.ReservationReference ConsumerType: Vhba @@ -797586,6 +814297,18 @@ components: type: object description: The abstract entity depicting impact on the endpoint during the upgrade operation. + example: + ObjectType: firmware.ChassisUpgradeImpact + ComputationStatusDetail: Inprogress + DomainName: DomainName + Model: Model + TargetFirmwareVersion: TargetFirmwareVersion + VersionImpact: None + ClassId: firmware.ChassisUpgradeImpact + EndPoint: EndPoint + ComputationError: ComputationError + FirmwareVersion: FirmwareVersion + ImpactType: NoReboot nullable: true title: Firmware:Base Impact x-allOf-name: firmware.BaseImpact @@ -797612,7 +814335,84 @@ components: allOf: - $ref: '#/components/schemas/firmware.ComponentDescriptor' description: Descriptor to uniquely identify a BIOS. - example: {} + example: + Description: Description + SharedScope: SharedScope + Parent: null + CreateTime: 2000-01-23T04:56:07.000+00:00 + Label: Label + ClassId: firmware.BiosDescriptor + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + Vendor: Vendor + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Owners: + - Owners + - Owners + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: firmware.BiosDescriptor + Revision: Revision + Version: Version + Capabilities: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Model: Model + Moid: Moid + BrandString: BrandString + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key title: Firmware:Bios Descriptor x-allOf-name: firmware.BiosDescriptor firmware.BiosDescriptor.List: @@ -797659,7 +814459,84 @@ components: allOf: - $ref: '#/components/schemas/firmware.ComponentDescriptor' description: Descriptor to uniquely identify a board controller. - example: {} + example: + Description: Description + SharedScope: SharedScope + Parent: null + CreateTime: 2000-01-23T04:56:07.000+00:00 + Label: Label + ClassId: firmware.BiosDescriptor + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + Vendor: Vendor + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Owners: + - Owners + - Owners + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: firmware.BiosDescriptor + Revision: Revision + Version: Version + Capabilities: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Model: Model + Moid: Moid + BrandString: BrandString + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key title: Firmware:Board Controller Descriptor x-allOf-name: firmware.BoardControllerDescriptor firmware.BoardControllerDescriptor.List: @@ -797762,17 +814639,146 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector + NetworkShare: + ObjectType: firmware.NetworkShare + IsPasswordSet: false + CifsServer: + ObjectType: firmware.CifsServer + RemoteIp: RemoteIp + RemoteShare: RemoteShare + FileLocation: FileLocation + ClassId: firmware.CifsServer + MountOptions: none + RemoteFile: RemoteFile + Upgradeoption: nw_upgrade_full + Username: Username + HttpServer: + ObjectType: firmware.HttpServer + LocationLink: LocationLink + ClassId: firmware.HttpServer + MountOptions: MountOptions + ClassId: firmware.NetworkShare + NfsServer: + ObjectType: firmware.NfsServer + RemoteIp: RemoteIp + RemoteShare: RemoteShare + FileLocation: FileLocation + ClassId: firmware.NfsServer + MountOptions: MountOptions + RemoteFile: RemoteFile + MapType: nfs + Password: Password + Parent: null + ClassId: firmware.ChassisUpgrade + Owners: + - Owners + - Owners + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified ObjectType: firmware.ChassisUpgrade + UpgradeImpact: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + UpgradeStatus: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key + FileServer: + ObjectType: aaa.UserAgent + ClassId: aaa.UserAgent + Release: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Status: NONE + UpgradeType: direct_upgrade + Distributable: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector ExcludeComponentList: - none - none + SharedScope: SharedScope Device: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - ClassId: firmware.ChassisUpgrade + CreateTime: 2000-01-23T04:56:07.000+00:00 + SkipEstimateImpact: true + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + DirectDownload: + ObjectType: firmware.DirectDownload + IsPasswordSet: false + Upgradeoption: sd_upgrade_mount_only + Username: Username + HttpServer: + ObjectType: firmware.HttpServer + LocationLink: LocationLink + ClassId: firmware.HttpServer + MountOptions: MountOptions + ClassId: firmware.DirectDownload + ImageSource: cisco + Password: Password + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Moid: Moid title: Firmware:Chassis Upgrade x-allOf-name: firmware.ChassisUpgrade firmware.ChassisUpgrade.List: @@ -797913,6 +814919,14 @@ components: - ObjectType type: object description: An external file repository accessible through the CIFS protocol. + example: + ObjectType: firmware.CifsServer + RemoteIp: RemoteIp + RemoteShare: RemoteShare + FileLocation: FileLocation + ClassId: firmware.CifsServer + MountOptions: none + RemoteFile: RemoteFile nullable: true title: Firmware:Cifs Server x-allOf-name: firmware.CifsServer @@ -797939,7 +814953,84 @@ components: allOf: - $ref: '#/components/schemas/firmware.ComponentDescriptor' description: Descriptor to uniquely identify a Cisco IMC. - example: {} + example: + Description: Description + SharedScope: SharedScope + Parent: null + CreateTime: 2000-01-23T04:56:07.000+00:00 + Label: Label + ClassId: firmware.BiosDescriptor + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + Vendor: Vendor + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Owners: + - Owners + - Owners + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: firmware.BiosDescriptor + Revision: Revision + Version: Version + Capabilities: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Model: Model + Moid: Moid + BrandString: BrandString + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key title: Firmware:Cimc Descriptor x-allOf-name: firmware.CimcDescriptor firmware.CimcDescriptor.List: @@ -798270,6 +815361,22 @@ components: - ObjectType type: object description: Contains the details for each component in the HSU bundle catalog. + example: + IsOobSupported: true + ComponentType: ALL + Description: Description + ComponentLabel: ComponentLabel + PackedVersion: PackedVersion + ClassId: firmware.ComponentMeta + Vendor: Vendor + RedfishUrl: RedfishUrl + ObjectType: firmware.ComponentMeta + OobManageability: + - None + - None + ImagePath: ImagePath + Model: Model + Disruption: None nullable: true title: Firmware:Component Meta x-allOf-name: firmware.ComponentMeta @@ -798296,7 +815403,84 @@ components: allOf: - $ref: '#/components/schemas/firmware.ComponentDescriptor' description: Descriptor to uniquely identify a DIMM. - example: {} + example: + Description: Description + SharedScope: SharedScope + Parent: null + CreateTime: 2000-01-23T04:56:07.000+00:00 + Label: Label + ClassId: firmware.BiosDescriptor + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + Vendor: Vendor + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Owners: + - Owners + - Owners + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: firmware.BiosDescriptor + Revision: Revision + Version: Version + Capabilities: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Model: Model + Moid: Moid + BrandString: BrandString + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key title: Firmware:Dimm Descriptor x-allOf-name: firmware.DimmDescriptor firmware.DimmDescriptor.List: @@ -798410,6 +815594,19 @@ components: description: A specification for downloading the image from Cisco or appliance repository or user provided HTTP file server that hosts the image for firmware upgrade. + example: + ObjectType: firmware.DirectDownload + IsPasswordSet: false + Upgradeoption: sd_upgrade_mount_only + Username: Username + HttpServer: + ObjectType: firmware.HttpServer + LocationLink: LocationLink + ClassId: firmware.HttpServer + MountOptions: MountOptions + ClassId: firmware.DirectDownload + ImageSource: cisco + Password: Password nullable: true title: Firmware:Direct Download x-allOf-name: firmware.DirectDownload @@ -798496,16 +815693,152 @@ components: description: An image distributed by Cisco. example: Origin: System - ObjectType: firmware.Distributable - FileLocation: FileLocation - ImageCategory: ImageCategory + ImportState: ReadyForImport + ReleaseNotesUrl: ReleaseNotesUrl + Size: 6 + Mdfid: Mdfid ClassId: firmware.Distributable + Guid: Guid + LastAccessTime: 2000-01-23T04:56:07.000+00:00 + Name: Name + ImageType: ImageType + BundleType: BundleType + SoftwareAdvisoryUrl: SoftwareAdvisoryUrl + Version: Version + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key + SoftwareTypeId: SoftwareTypeId + FeatureSource: System + Sha512sum: Sha512sum + SharedScope: SharedScope + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + ReleaseDate: 2000-01-23T04:56:07.000+00:00 + Md5eTag: Md5eTag + Md5sum: Md5sum Catalog: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + DownloadCount: 0 + Description: Description + Parent: null + DistributableMetas: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ImageCategory: ImageCategory + Source: + ObjectType: aaa.UserAgent + ClassId: aaa.UserAgent + Owners: + - Owners + - Owners + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ComponentMeta: + - IsOobSupported: true + ComponentType: ALL + Description: Description + ComponentLabel: ComponentLabel + PackedVersion: PackedVersion + ClassId: firmware.ComponentMeta + Vendor: Vendor + RedfishUrl: RedfishUrl + ObjectType: firmware.ComponentMeta + OobManageability: + - None + - None + ImagePath: ImagePath + Model: Model + Disruption: None + - IsOobSupported: true + ComponentType: ALL + Description: Description + ComponentLabel: ComponentLabel + PackedVersion: PackedVersion + ClassId: firmware.ComponentMeta + Vendor: Vendor + RedfishUrl: RedfishUrl + ObjectType: firmware.ComponentMeta + OobManageability: + - None + - None + ImagePath: ImagePath + Model: Model + Disruption: None + ObjectType: firmware.Distributable + ImportAction: None + DisplayNames: + key: + - DisplayNames + - DisplayNames + Release: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ImportedTime: 2000-01-23T04:56:07.000+00:00 + CreateTime: 2000-01-23T04:56:07.000+00:00 + Vendor: Cisco + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + FileLocation: FileLocation + Model: Model + RecommendedBuild: "N" + Moid: Moid + SupportedModels: + - SupportedModels + - SupportedModels + PlatformType: PlatformType title: Firmware:Distributable x-allOf-name: firmware.Distributable firmware.Distributable.List: @@ -798769,7 +816102,84 @@ components: allOf: - $ref: '#/components/schemas/firmware.ComponentDescriptor' description: Descriptor to uniquely identify a Drive. - example: {} + example: + Description: Description + SharedScope: SharedScope + Parent: null + CreateTime: 2000-01-23T04:56:07.000+00:00 + Label: Label + ClassId: firmware.BiosDescriptor + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + Vendor: Vendor + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Owners: + - Owners + - Owners + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: firmware.BiosDescriptor + Revision: Revision + Version: Version + Capabilities: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Model: Model + Moid: Moid + BrandString: BrandString + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key title: Firmware:Drive Descriptor x-allOf-name: firmware.DriveDescriptor firmware.DriveDescriptor.List: @@ -798861,18 +816271,154 @@ components: type: object description: A device driver image distributed by Cisco. example: - ObjectType: firmware.DriverDistributable - Category: Category - Osname: Osname + ImportState: ReadyForImport + ReleaseNotesUrl: ReleaseNotesUrl + Size: 6 + Mdfid: Mdfid ClassId: firmware.DriverDistributable - Osversion: Osversion + Guid: Guid + LastAccessTime: 2000-01-23T04:56:07.000+00:00 + Name: Name + ImageType: ImageType + BundleType: BundleType + SoftwareAdvisoryUrl: SoftwareAdvisoryUrl + Version: Version + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key + SoftwareTypeId: SoftwareTypeId + FeatureSource: System + Sha512sum: Sha512sum + SharedScope: SharedScope + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + ReleaseDate: 2000-01-23T04:56:07.000+00:00 + Md5eTag: Md5eTag + Md5sum: Md5sum Catalog: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + DownloadCount: 0 + Description: Description + Category: Category + Parent: null + DistributableMetas: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Source: + ObjectType: aaa.UserAgent + ClassId: aaa.UserAgent + Owners: + - Owners + - Owners + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ComponentMeta: + - IsOobSupported: true + ComponentType: ALL + Description: Description + ComponentLabel: ComponentLabel + PackedVersion: PackedVersion + ClassId: firmware.ComponentMeta + Vendor: Vendor + RedfishUrl: RedfishUrl + ObjectType: firmware.ComponentMeta + OobManageability: + - None + - None + ImagePath: ImagePath + Model: Model + Disruption: None + - IsOobSupported: true + ComponentType: ALL + Description: Description + ComponentLabel: ComponentLabel + PackedVersion: PackedVersion + ClassId: firmware.ComponentMeta + Vendor: Vendor + RedfishUrl: RedfishUrl + ObjectType: firmware.ComponentMeta + OobManageability: + - None + - None + ImagePath: ImagePath + Model: Model + Disruption: None + ObjectType: firmware.DriverDistributable + ImportAction: None + Osname: Osname + DisplayNames: + key: + - DisplayNames + - DisplayNames + Release: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector Directory: Directory + ImportedTime: 2000-01-23T04:56:07.000+00:00 + CreateTime: 2000-01-23T04:56:07.000+00:00 + Vendor: Cisco + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Osversion: Osversion + Model: Model + RecommendedBuild: "N" + Moid: Moid + SupportedModels: + - SupportedModels + - SupportedModels + PlatformType: PlatformType title: Firmware:Driver Distributable x-allOf-name: firmware.DriverDistributable firmware.DriverDistributable.List: @@ -799307,21 +816853,22 @@ components: description: Update inventory that contains the details for the firmware running on each component in the compute.Physical object. example: - ObjectType: firmware.FirmwareSummary - TargetMo: - ObjectType: aaa.AuditRecord - link: link - Moid: Moid - ClassId: mo.MoRef - Selector: Selector + Description: Description Server: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + SharedScope: SharedScope + Parent: null BundleVersion: BundleVersion + CreateTime: 2000-01-23T04:56:07.000+00:00 ClassId: firmware.FirmwareSummary + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null ComponentsFwInventory: - UpdateUri: UpdateUri ObjectType: firmware.FirmwareInventory @@ -799339,6 +816886,60 @@ components: Model: Model ClassId: firmware.FirmwareInventory Vendor: Vendor + AccountMoid: AccountMoid + DeviceMoId: DeviceMoId + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Owners: + - Owners + - Owners + Name: Name + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: firmware.FirmwareSummary + TargetMo: null + Moid: Moid + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key title: Firmware:Firmware Summary x-allOf-name: firmware.FirmwareSummary firmware.FirmwareSummary.List: @@ -799385,7 +816986,84 @@ components: allOf: - $ref: '#/components/schemas/firmware.ComponentDescriptor' description: Descriptor to uniquely identify a GPU component. - example: {} + example: + Description: Description + SharedScope: SharedScope + Parent: null + CreateTime: 2000-01-23T04:56:07.000+00:00 + Label: Label + ClassId: firmware.BiosDescriptor + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + Vendor: Vendor + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Owners: + - Owners + - Owners + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: firmware.BiosDescriptor + Revision: Revision + Version: Version + Capabilities: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Model: Model + Moid: Moid + BrandString: BrandString + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key title: Firmware:Gpu Descriptor x-allOf-name: firmware.GpuDescriptor firmware.GpuDescriptor.List: @@ -799432,7 +817110,84 @@ components: allOf: - $ref: '#/components/schemas/firmware.ComponentDescriptor' description: Descriptor to uniquely identify a HBA component. - example: {} + example: + Description: Description + SharedScope: SharedScope + Parent: null + CreateTime: 2000-01-23T04:56:07.000+00:00 + Label: Label + ClassId: firmware.BiosDescriptor + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + Vendor: Vendor + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Owners: + - Owners + - Owners + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: firmware.BiosDescriptor + Revision: Revision + Version: Version + Capabilities: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Model: Model + Moid: Moid + BrandString: BrandString + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key title: Firmware:Hba Descriptor x-allOf-name: firmware.HbaDescriptor firmware.HbaDescriptor.List: @@ -799498,6 +817253,11 @@ components: - ObjectType type: object description: An external HTTP file server. + example: + ObjectType: firmware.HttpServer + LocationLink: LocationLink + ClassId: firmware.HttpServer + MountOptions: MountOptions nullable: true title: Firmware:Http Server x-allOf-name: firmware.HttpServer @@ -799524,7 +817284,84 @@ components: allOf: - $ref: '#/components/schemas/firmware.ComponentDescriptor' description: Descriptor to uniquely identify a IOM component. - example: {} + example: + Description: Description + SharedScope: SharedScope + Parent: null + CreateTime: 2000-01-23T04:56:07.000+00:00 + Label: Label + ClassId: firmware.BiosDescriptor + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + Vendor: Vendor + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Owners: + - Owners + - Owners + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: firmware.BiosDescriptor + Revision: Revision + Version: Version + Capabilities: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Model: Model + Moid: Moid + BrandString: BrandString + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key title: Firmware:Iom Descriptor x-allOf-name: firmware.IomDescriptor firmware.IomDescriptor.List: @@ -799664,7 +817501,84 @@ components: allOf: - $ref: '#/components/schemas/firmware.ComponentDescriptor' description: Descriptor to uniquely identify a mSwitch component. - example: {} + example: + Description: Description + SharedScope: SharedScope + Parent: null + CreateTime: 2000-01-23T04:56:07.000+00:00 + Label: Label + ClassId: firmware.BiosDescriptor + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + Vendor: Vendor + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Owners: + - Owners + - Owners + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: firmware.BiosDescriptor + Revision: Revision + Version: Version + Capabilities: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Model: Model + Moid: Moid + BrandString: BrandString + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key title: Firmware:Mswitch Descriptor x-allOf-name: firmware.MswitchDescriptor firmware.MswitchDescriptor.List: @@ -799764,6 +817678,35 @@ components: - ObjectType type: object description: Firmware upgrade where the image is located in remote shared machine. + example: + ObjectType: firmware.NetworkShare + IsPasswordSet: false + CifsServer: + ObjectType: firmware.CifsServer + RemoteIp: RemoteIp + RemoteShare: RemoteShare + FileLocation: FileLocation + ClassId: firmware.CifsServer + MountOptions: none + RemoteFile: RemoteFile + Upgradeoption: nw_upgrade_full + Username: Username + HttpServer: + ObjectType: firmware.HttpServer + LocationLink: LocationLink + ClassId: firmware.HttpServer + MountOptions: MountOptions + ClassId: firmware.NetworkShare + NfsServer: + ObjectType: firmware.NfsServer + RemoteIp: RemoteIp + RemoteShare: RemoteShare + FileLocation: FileLocation + ClassId: firmware.NfsServer + MountOptions: MountOptions + RemoteFile: RemoteFile + MapType: nfs + Password: Password nullable: true title: Firmware:Network Share x-allOf-name: firmware.NetworkShare @@ -799822,6 +817765,14 @@ components: - ObjectType type: object description: Network share file server. + example: + ObjectType: firmware.NfsServer + RemoteIp: RemoteIp + RemoteShare: RemoteShare + FileLocation: FileLocation + ClassId: firmware.NfsServer + MountOptions: MountOptions + RemoteFile: RemoteFile nullable: true title: Firmware:Nfs Server x-allOf-name: firmware.NfsServer @@ -799848,7 +817799,84 @@ components: allOf: - $ref: '#/components/schemas/firmware.ComponentDescriptor' description: Descriptor to uniquely identify a Fabric interconnect. - example: {} + example: + Description: Description + SharedScope: SharedScope + Parent: null + CreateTime: 2000-01-23T04:56:07.000+00:00 + Label: Label + ClassId: firmware.BiosDescriptor + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + Vendor: Vendor + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Owners: + - Owners + - Owners + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: firmware.BiosDescriptor + Revision: Revision + Version: Version + Capabilities: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Model: Model + Moid: Moid + BrandString: BrandString + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key title: Firmware:Nxos Descriptor x-allOf-name: firmware.NxosDescriptor firmware.NxosDescriptor.List: @@ -799895,7 +817923,84 @@ components: allOf: - $ref: '#/components/schemas/firmware.ComponentDescriptor' description: Descriptor to uniquely identify a PCIE component. - example: {} + example: + Description: Description + SharedScope: SharedScope + Parent: null + CreateTime: 2000-01-23T04:56:07.000+00:00 + Label: Label + ClassId: firmware.BiosDescriptor + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + Vendor: Vendor + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Owners: + - Owners + - Owners + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: firmware.BiosDescriptor + Revision: Revision + Version: Version + Capabilities: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Model: Model + Moid: Moid + BrandString: BrandString + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key title: Firmware:Pcie Descriptor x-allOf-name: firmware.PcieDescriptor firmware.PcieDescriptor.List: @@ -800016,7 +818121,7 @@ components: type: object description: Firmware policy on the endpoint. example: - ObjectType: firmware.Policy + Description: Description ExcludeComponentList: - none - none @@ -800026,6 +818131,64 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector + SharedScope: SharedScope + Parent: null + CreateTime: 2000-01-23T04:56:07.000+00:00 + ModelBundleCombo: + - ObjectType: firmware.ModelBundleVersion + BundleVersion: BundleVersion + ClassId: firmware.ModelBundleVersion + ModelFamily: UCSC-C220-M5 + - ObjectType: firmware.ModelBundleVersion + BundleVersion: BundleVersion + ClassId: firmware.ModelBundleVersion + ModelFamily: UCSC-C220-M5 + ClassId: firmware.Policy + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Owners: + - Owners + - Owners + Name: Name + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: firmware.Policy Profiles: - ObjectType: aaa.AuditRecord link: link @@ -800037,17 +818200,18 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector - ModelBundleCombo: - - ObjectType: firmware.ModelBundleVersion - BundleVersion: BundleVersion - ClassId: firmware.ModelBundleVersion - ModelFamily: UCSC-C220-M5 - - ObjectType: firmware.ModelBundleVersion - BundleVersion: BundleVersion - ClassId: firmware.ModelBundleVersion - ModelFamily: UCSC-C220-M5 - ClassId: firmware.Policy + Moid: Moid TargetPlatform: Standalone + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key title: Firmware x-allOf-name: firmware.Policy firmware.Policy.List: @@ -800093,7 +818257,84 @@ components: allOf: - $ref: '#/components/schemas/firmware.ComponentDescriptor' description: Descriptor to uniquely identify a PSU component. - example: {} + example: + Description: Description + SharedScope: SharedScope + Parent: null + CreateTime: 2000-01-23T04:56:07.000+00:00 + Label: Label + ClassId: firmware.BiosDescriptor + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + Vendor: Vendor + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Owners: + - Owners + - Owners + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: firmware.BiosDescriptor + Revision: Revision + Version: Version + Capabilities: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Model: Model + Moid: Moid + BrandString: BrandString + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key title: Firmware:Psu Descriptor x-allOf-name: firmware.PsuDescriptor firmware.PsuDescriptor.List: @@ -800221,12 +818462,6 @@ components: type: object description: Running Firmware on an endpoint. example: - RegisteredDevice: - ObjectType: aaa.AuditRecord - link: link - Moid: Moid - ClassId: mo.MoRef - Selector: Selector NetworkElements: - ObjectType: aaa.AuditRecord link: link @@ -800238,6 +818473,7 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector + Parent: null InventoryDeviceInfo: ObjectType: aaa.AuditRecord link: link @@ -800245,40 +818481,105 @@ components: ClassId: mo.MoRef Selector: Selector ClassId: firmware.RunningFirmware - StorageController: + PackageVersion: PackageVersion + BiosUnit: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - PackageVersion: PackageVersion - BiosUnit: + Owners: + - Owners + - Owners + PciSwitch: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - StoragePhysicalDisk: + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: firmware.RunningFirmware + Version: Version + DisplayNames: + key: + - DisplayNames + - DisplayNames + Rn: Rn + Component: Component + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key + RegisteredDevice: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - ManagementController: + SharedScope: SharedScope + CreateTime: 2000-01-23T04:56:07.000+00:00 + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + Dn: Dn + StorageController: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - PciSwitch: + AccountMoid: AccountMoid + DeviceMoId: DeviceMoId + StoragePhysicalDisk: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ManagementController: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - ObjectType: firmware.RunningFirmware Type: Type - Version: Version GraphicsCard: ObjectType: aaa.AuditRecord link: link @@ -800291,7 +818592,7 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector - Component: Component + Moid: Moid title: Firmware:Running Firmware x-allOf-name: firmware.RunningFirmware firmware.RunningFirmware.List: @@ -800338,7 +818639,84 @@ components: allOf: - $ref: '#/components/schemas/firmware.ComponentDescriptor' description: Descriptor to uniquely identify a SasExpandar component. - example: {} + example: + Description: Description + SharedScope: SharedScope + Parent: null + CreateTime: 2000-01-23T04:56:07.000+00:00 + Label: Label + ClassId: firmware.BiosDescriptor + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + Vendor: Vendor + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Owners: + - Owners + - Owners + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: firmware.BiosDescriptor + Revision: Revision + Version: Version + Capabilities: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Model: Model + Moid: Moid + BrandString: BrandString + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key title: Firmware:Sas Expander Descriptor x-allOf-name: firmware.SasExpanderDescriptor firmware.SasExpanderDescriptor.List: @@ -800425,14 +818803,150 @@ components: type: object description: A server configuration utility image distributed by Cisco. example: - ObjectType: firmware.ServerConfigurationUtilityDistributable + Description: Description + ImportState: ReadyForImport + ReleaseNotesUrl: ReleaseNotesUrl + Parent: null + Size: 6 + Mdfid: Mdfid + DistributableMetas: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector ClassId: firmware.ServerConfigurationUtilityDistributable + Guid: Guid + LastAccessTime: 2000-01-23T04:56:07.000+00:00 + Source: + ObjectType: aaa.UserAgent + ClassId: aaa.UserAgent + Owners: + - Owners + - Owners + Name: Name + ImageType: ImageType + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ComponentMeta: + - IsOobSupported: true + ComponentType: ALL + Description: Description + ComponentLabel: ComponentLabel + PackedVersion: PackedVersion + ClassId: firmware.ComponentMeta + Vendor: Vendor + RedfishUrl: RedfishUrl + ObjectType: firmware.ComponentMeta + OobManageability: + - None + - None + ImagePath: ImagePath + Model: Model + Disruption: None + - IsOobSupported: true + ComponentType: ALL + Description: Description + ComponentLabel: ComponentLabel + PackedVersion: PackedVersion + ClassId: firmware.ComponentMeta + Vendor: Vendor + RedfishUrl: RedfishUrl + ObjectType: firmware.ComponentMeta + OobManageability: + - None + - None + ImagePath: ImagePath + Model: Model + Disruption: None + ObjectType: firmware.ServerConfigurationUtilityDistributable + BundleType: BundleType + SoftwareAdvisoryUrl: SoftwareAdvisoryUrl + Version: Version + ImportAction: None + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key + SoftwareTypeId: SoftwareTypeId + Release: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ImportedTime: 2000-01-23T04:56:07.000+00:00 + FeatureSource: System + Sha512sum: Sha512sum + SharedScope: SharedScope + CreateTime: 2000-01-23T04:56:07.000+00:00 + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + Vendor: Cisco + ReleaseDate: 2000-01-23T04:56:07.000+00:00 + AccountMoid: AccountMoid + Md5eTag: Md5eTag + Md5sum: Md5sum + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector Catalog: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + Model: Model + RecommendedBuild: "N" + Moid: Moid + SupportedModels: + - SupportedModels + - SupportedModels + PlatformType: PlatformType + DownloadCount: 0 title: Server Configuration Utility x-allOf-name: firmware.ServerConfigurationUtilityDistributable firmware.ServerConfigurationUtilityDistributable.List: @@ -800524,7 +819038,84 @@ components: allOf: - $ref: '#/components/schemas/firmware.ComponentDescriptor' description: Descriptor to uniquely identify a storage controller. - example: {} + example: + Description: Description + SharedScope: SharedScope + Parent: null + CreateTime: 2000-01-23T04:56:07.000+00:00 + Label: Label + ClassId: firmware.BiosDescriptor + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + Vendor: Vendor + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Owners: + - Owners + - Owners + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: firmware.BiosDescriptor + Revision: Revision + Version: Version + Capabilities: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Model: Model + Moid: Moid + BrandString: BrandString + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key title: Firmware:Storage Controller Descriptor x-allOf-name: firmware.StorageControllerDescriptor firmware.StorageControllerDescriptor.List: @@ -800626,8 +819217,35 @@ components: share is used for upgrade that use the image from a network share from your data center. example: - ObjectType: firmware.SwitchUpgrade - EnableFabricEvacuation: true + NetworkShare: + ObjectType: firmware.NetworkShare + IsPasswordSet: false + CifsServer: + ObjectType: firmware.CifsServer + RemoteIp: RemoteIp + RemoteShare: RemoteShare + FileLocation: FileLocation + ClassId: firmware.CifsServer + MountOptions: none + RemoteFile: RemoteFile + Upgradeoption: nw_upgrade_full + Username: Username + HttpServer: + ObjectType: firmware.HttpServer + LocationLink: LocationLink + ClassId: firmware.HttpServer + MountOptions: MountOptions + ClassId: firmware.NetworkShare + NfsServer: + ObjectType: firmware.NfsServer + RemoteIp: RemoteIp + RemoteShare: RemoteShare + FileLocation: FileLocation + ClassId: firmware.NfsServer + MountOptions: MountOptions + RemoteFile: RemoteFile + MapType: nfs + Password: Password NetworkElements: - ObjectType: aaa.AuditRecord link: link @@ -800639,14 +819257,116 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector - Device: + Parent: null + ClassId: firmware.SwitchUpgrade + Owners: + - Owners + - Owners + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: firmware.SwitchUpgrade + UpgradeImpact: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - ClassId: firmware.SwitchUpgrade + UpgradeStatus: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + DisplayNames: + key: + - DisplayNames + - DisplayNames SkipWaitForIoPathConnectivity: false + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key + FileServer: + ObjectType: aaa.UserAgent + ClassId: aaa.UserAgent + Release: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Status: NONE + UpgradeType: direct_upgrade + EnableFabricEvacuation: true + Distributable: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + SharedScope: SharedScope + Device: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + CreateTime: 2000-01-23T04:56:07.000+00:00 + SkipEstimateImpact: true + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + DirectDownload: + ObjectType: firmware.DirectDownload + IsPasswordSet: false + Upgradeoption: sd_upgrade_mount_only + Username: Username + HttpServer: + ObjectType: firmware.HttpServer + LocationLink: LocationLink + ClassId: firmware.HttpServer + MountOptions: MountOptions + ClassId: firmware.DirectDownload + ImageSource: cisco + Password: Password + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Moid: Moid title: Firmware:Switch Upgrade x-allOf-name: firmware.SwitchUpgrade firmware.SwitchUpgrade.List: @@ -800741,27 +819461,93 @@ components: \ equipment that cannot be discovered due to unsupported firmware. Currently,\ \ it only supports blade upgrades." example: - ObjectType: firmware.UnsupportedVersionUpgrade Distributable: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - UpgradeStatus: None + SharedScope: SharedScope + Parent: null Device: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + CreateTime: 2000-01-23T04:56:07.000+00:00 + DownloadRetries: 6 + ClassId: firmware.UnsupportedVersionUpgrade + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Owners: + - Owners + - Owners + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: firmware.UnsupportedVersionUpgrade + UpgradeStatus: None + DownloadProgress: 0 + Checksum: + ObjectType: connector.FileChecksum + ClassId: connector.FileChecksum + Hash: Hash + HashAlgorithm: crc + DownloadError: DownloadError + Sha256checksum: Sha256checksum + Moid: Moid PhysicalIdentity: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - ClassId: firmware.UnsupportedVersionUpgrade + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key title: Upgrade equipment with unsupported firmware x-allOf-name: firmware.UnsupportedVersionUpgrade firmware.UnsupportedVersionUpgrade.List: @@ -800890,23 +819676,152 @@ components: - ExcludeLocalDiskList ClassId: firmware.ExcludeComponentPidListType UpgradeTriggerMethod: none + NetworkShare: + ObjectType: firmware.NetworkShare + IsPasswordSet: false + CifsServer: + ObjectType: firmware.CifsServer + RemoteIp: RemoteIp + RemoteShare: RemoteShare + FileLocation: FileLocation + ClassId: firmware.CifsServer + MountOptions: none + RemoteFile: RemoteFile + Upgradeoption: nw_upgrade_full + Username: Username + HttpServer: + ObjectType: firmware.HttpServer + LocationLink: LocationLink + ClassId: firmware.HttpServer + MountOptions: MountOptions + ClassId: firmware.NetworkShare + NfsServer: + ObjectType: firmware.NfsServer + RemoteIp: RemoteIp + RemoteShare: RemoteShare + FileLocation: FileLocation + ClassId: firmware.NfsServer + MountOptions: MountOptions + RemoteFile: RemoteFile + MapType: nfs + Password: Password + Server: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Parent: null + ClassId: firmware.Upgrade + Owners: + - Owners + - Owners + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified ObjectType: firmware.Upgrade + UpgradeImpact: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + UpgradeStatus: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key + FileServer: + ObjectType: aaa.UserAgent + ClassId: aaa.UserAgent + Release: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Status: NONE + UpgradeType: direct_upgrade + Distributable: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector ExcludeComponentList: - none - none - Server: + SharedScope: SharedScope + Device: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - Device: - ObjectType: aaa.AuditRecord + CreateTime: 2000-01-23T04:56:07.000+00:00 + SkipEstimateImpact: true + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + DirectDownload: + ObjectType: firmware.DirectDownload + IsPasswordSet: false + Upgradeoption: sd_upgrade_mount_only + Username: Username + HttpServer: + ObjectType: firmware.HttpServer + LocationLink: LocationLink + ClassId: firmware.HttpServer + MountOptions: MountOptions + ClassId: firmware.DirectDownload + ImageSource: cisco + Password: Password + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - ClassId: firmware.Upgrade + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Moid: Moid title: Firmware:Upgrade x-allOf-name: firmware.Upgrade firmware.Upgrade.List: @@ -801100,35 +820015,88 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector - ObjectType: firmware.UpgradeImpact - Distributable: - ObjectType: aaa.AuditRecord + NetworkElements: + - ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - NetworkElements: - ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + Server: - ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - Server: - ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - - ObjectType: aaa.AuditRecord + Parent: null + ClassId: firmware.UpgradeImpact + ExcludeComponents: + - ALL + - ALL + Owners: + - Owners + - Owners + ComputationState: Inprogress + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + Components: + - ALL + - ALL + ObjectType: firmware.UpgradeImpact + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key + Release: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Distributable: + ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + SharedScope: SharedScope Device: - ObjectType: aaa.AuditRecord link: link @@ -801140,13 +820108,48 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector - ClassId: firmware.UpgradeImpact - Release: - ObjectType: aaa.AuditRecord + CreateTime: 2000-01-23T04:56:07.000+00:00 + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + Impacts: + - ObjectType: firmware.ChassisUpgradeImpact + ComputationStatusDetail: Inprogress + DomainName: DomainName + Model: Model + TargetFirmwareVersion: TargetFirmwareVersion + VersionImpact: None + ClassId: firmware.ChassisUpgradeImpact + EndPoint: EndPoint + ComputationError: ComputationError + FirmwareVersion: FirmwareVersion + ImpactType: NoReboot + - ObjectType: firmware.ChassisUpgradeImpact + ComputationStatusDetail: Inprogress + DomainName: DomainName + Model: Model + TargetFirmwareVersion: TargetFirmwareVersion + VersionImpact: None + ClassId: firmware.ChassisUpgradeImpact + EndPoint: EndPoint + ComputationError: ComputationError + FirmwareVersion: FirmwareVersion + ImpactType: NoReboot + Moid: Moid + Summary: Basic title: Firmware:Upgrade Impact x-allOf-name: firmware.UpgradeImpact firmware.UpgradeImpactBase: @@ -801384,14 +820387,102 @@ components: type: object description: Captures the impact for an upgrade. example: - ObjectType: firmware.UpgradeImpactStatus + SharedScope: SharedScope + Parent: null + CreateTime: 2000-01-23T04:56:07.000+00:00 ClassId: firmware.UpgradeImpactStatus + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + ExcludeComponents: + - ALL + - ALL + AccountMoid: AccountMoid Upgrade: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Owners: + - Owners + - Owners + ComputationState: Inprogress + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + Components: + - ALL + - ALL + ObjectType: firmware.UpgradeImpactStatus + Impacts: + - ObjectType: firmware.ChassisUpgradeImpact + ComputationStatusDetail: Inprogress + DomainName: DomainName + Model: Model + TargetFirmwareVersion: TargetFirmwareVersion + VersionImpact: None + ClassId: firmware.ChassisUpgradeImpact + EndPoint: EndPoint + ComputationError: ComputationError + FirmwareVersion: FirmwareVersion + ImpactType: NoReboot + - ObjectType: firmware.ChassisUpgradeImpact + ComputationStatusDetail: Inprogress + DomainName: DomainName + Model: Model + TargetFirmwareVersion: TargetFirmwareVersion + VersionImpact: None + ClassId: firmware.ChassisUpgradeImpact + EndPoint: EndPoint + ComputationError: ComputationError + FirmwareVersion: FirmwareVersion + ImpactType: NoReboot + Moid: Moid + Summary: Basic + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key title: Firmware:Upgrade Impact Status x-allOf-name: firmware.UpgradeImpactStatus firmware.UpgradeImpactStatus.List: @@ -801634,12 +820725,71 @@ components: description: The status for the upgrade operation to include the status for the download and upgrade stages. example: - DownloadPercentage: 0 + DownloadPercentage: 1 IsCdnDisabled: true Overallstatus: none + Parent: null InitialPowerStatus: none SourceFirmwareVersion: SourceFirmwareVersion - OverallPercentage: 6 + OverallPercentage: 5 + ClassId: firmware.UpgradeStatus + Upgrade: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Owners: + - Owners + - Owners + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: firmware.UpgradeStatus + DownloadProgress: 0 + PendingType: none + Checksum: + ObjectType: connector.FileChecksum + ClassId: connector.FileChecksum + Hash: Hash + HashAlgorithm: crc + DownloadError: DownloadError + Sha256checksum: Sha256checksum + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + SdCardDownloadError: SdCardDownloadError + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key + SharedScope: SharedScope + CreateTime: 2000-01-23T04:56:07.000+00:00 + DownloadRetries: 6 TargetFirmwareVersion: TargetFirmwareVersion Workflow: ObjectType: aaa.AuditRecord @@ -801647,20 +820797,27 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector - ClassId: firmware.UpgradeStatus + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null DownloadStage: DownloadStage - Upgrade: - ObjectType: aaa.AuditRecord + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - ObjectType: firmware.UpgradeStatus EpPowerStatus: none OverallError: OverallError - PendingType: none DownloadMessage: DownloadMessage - SdCardDownloadError: SdCardDownloadError + Moid: Moid title: Firmware:Upgrade Status x-allOf-name: firmware.UpgradeStatus firmware.UpgradeStatus.List: @@ -801917,11 +821074,74 @@ components: type: object description: Details of the FMC Devices. example: - ObjectType: fmc.Device - DomainId: DomainId + RegisteredDevice: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + SharedScope: SharedScope + Parent: null DeviceId: DeviceId + CreateTime: 2000-01-23T04:56:07.000+00:00 ClassId: fmc.Device + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Owners: + - Owners + - Owners Name: Name + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: fmc.Device + DomainId: DomainId + Moid: Moid + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key title: Fmc:Device x-allOf-name: fmc.Device fmc.Device.List: @@ -802009,11 +821229,74 @@ components: type: object description: Details of the FMC Device HA Pair. example: - ObjectType: fmc.DeviceHaPair - DomainId: DomainId + RegisteredDevice: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + SharedScope: SharedScope + Parent: null DeviceId: DeviceId + CreateTime: 2000-01-23T04:56:07.000+00:00 ClassId: fmc.DeviceHaPair + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Owners: + - Owners + - Owners Name: Name + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: fmc.DeviceHaPair + DomainId: DomainId + Moid: Moid + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key title: Fmc:Device Ha Pair x-allOf-name: fmc.DeviceHaPair fmc.DeviceHaPair.List: @@ -802096,10 +821379,73 @@ components: type: object description: Details of the FMC Domains. example: - ObjectType: fmc.Domain - Uuid: Uuid + RegisteredDevice: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + SharedScope: SharedScope + Parent: null + CreateTime: 2000-01-23T04:56:07.000+00:00 ClassId: fmc.Domain + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Owners: + - Owners + - Owners Name: Name + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: fmc.Domain + Uuid: Uuid + Moid: Moid + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key title: Fmc:Domain x-allOf-name: fmc.Domain fmc.Domain.List: @@ -802232,12 +821578,75 @@ components: type: object description: FMC Devices Physical Interfaces. example: - ObjectType: fmc.PhysicalInterface - DomainId: DomainId + RegisteredDevice: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + SharedScope: SharedScope + Parent: null DeviceId: DeviceId + CreateTime: 2000-01-23T04:56:07.000+00:00 ClassId: fmc.PhysicalInterface - PhysicalInterfaceId: PhysicalInterfaceId + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Owners: + - Owners + - Owners Name: Name + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: fmc.PhysicalInterface + DomainId: DomainId + Moid: Moid + PhysicalInterfaceId: PhysicalInterfaceId + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key title: Fmc:Physical Interface x-allOf-name: fmc.PhysicalInterface fmc.PhysicalInterface.List: @@ -803339,33 +822748,17 @@ components: type: object description: Graphics Card present in a server. example: - Description: Description OperState: OperState PartNumber: PartNumber PciSlot: PciSlot - InventoryDeviceInfo: - ObjectType: aaa.AuditRecord - link: link - Moid: Moid - ClassId: mo.MoRef - Selector: Selector - DeviceId: 6 ComputeBlade: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - ComputeBoard: - ObjectType: aaa.AuditRecord - link: link - Moid: Moid - ClassId: mo.MoRef - Selector: Selector - VendorId: 5 ClassId: graphics.Card CardId: 0 - PciAddress: PciAddress ComputeRackUnit: ObjectType: aaa.AuditRecord link: link @@ -803373,7 +822766,6 @@ components: ClassId: mo.MoRef Selector: Selector SubVendorId: 5 - ObjectType: graphics.Card RunningFirmware: - ObjectType: aaa.AuditRecord link: link @@ -803398,7 +822790,7 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector - GpuId: GpuId + ModTime: 2000-01-23T04:56:07.000+00:00 GraphicsControllers: - ObjectType: aaa.AuditRecord link: link @@ -803410,6 +822802,11 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key NumGpus: NumGpus RegisteredDevice: ObjectType: aaa.AuditRecord @@ -803417,15 +822814,99 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector + SharedScope: SharedScope + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + Dn: Dn + DeviceMoId: DeviceMoId + IsPlatformSupported: true + SubDeviceId: 1 + Revision: Revision + PciAddressList: PciAddressList + Description: Description + Parent: null + InventoryDeviceInfo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + DeviceId: 6 + ComputeBoard: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + VendorId: 5 + PciAddress: PciAddress + Owners: + - Owners + - Owners + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: graphics.Card + IsUpgraded: false + Presence: Presence + GpuId: GpuId + DisplayNames: + key: + - DisplayNames + - DisplayNames + Rn: Rn + CreateTime: 2000-01-23T04:56:07.000+00:00 + PreviousFru: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector Mode: Mode Pid: Pid - IsPlatformSupported: true + Vendor: Vendor + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector FirmwareVersion: FirmwareVersion OperReason: - Unknown - Unknown - SubDeviceId: 1 - PciAddressList: PciAddressList + Serial: Serial + Model: Model + Moid: Moid title: Graphics:Card x-allOf-name: graphics.Card graphics.Card.List: @@ -803530,29 +823011,101 @@ components: type: object description: Controller for a Graphics Card. example: + Parent: null + PciSlot: PciSlot + InventoryDeviceInfo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ControllerId: 0 + ClassId: graphics.Controller + Owners: + - Owners + - Owners + PciAddr: PciAddr + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified ObjectType: graphics.Controller + IsUpgraded: false + Presence: Presence + DisplayNames: + key: + - DisplayNames + - DisplayNames + Rn: Rn + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key RegisteredDevice: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - PciSlot: PciSlot - InventoryDeviceInfo: + SharedScope: SharedScope + CreateTime: 2000-01-23T04:56:07.000+00:00 + PreviousFru: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + Dn: Dn + Vendor: Vendor + AccountMoid: AccountMoid + DeviceMoId: DeviceMoId + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Serial: Serial + Revision: Revision GraphicsCard: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - ControllerId: 0 - ClassId: graphics.Controller - PciAddr: PciAddr + Model: Model + Moid: Moid title: Graphics:Controller x-allOf-name: graphics.Controller graphics.Controller.List: @@ -806188,6 +825741,13 @@ components: - ObjectType type: object description: The summary of alarm counts based on alarm severity. + example: + ObjectType: hyperflex.AlarmSummary + Warning: 5 + Health: Healthy + ClassId: hyperflex.AlarmSummary + Critical: 6 + Info: 1 nullable: true title: Hyperflex:Alarm Summary x-allOf-name: hyperflex.AlarmSummary @@ -806614,15 +826174,24 @@ components: description: A policy specifying the configuration to automatically generate support tickets with Cisco TAC. example: - ObjectType: hyperflex.AutoSupportPolicy + Description: Description Organization: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + SharedScope: SharedScope + Parent: null + CreateTime: 2000-01-23T04:56:07.000+00:00 ClassId: hyperflex.AutoSupportPolicy - ClusterProfiles: + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + AccountMoid: AccountMoid + ServiceTicketReceipient: ServiceTicketReceipient + Ancestors: - ObjectType: aaa.AuditRecord link: link Moid: Moid @@ -806633,8 +826202,58 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector - ServiceTicketReceipient: ServiceTicketReceipient AdminState: true + Owners: + - Owners + - Owners + Name: Name + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: hyperflex.AutoSupportPolicy + Moid: Moid + ClusterProfiles: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key title: Auto Support x-allOf-name: hyperflex.AutoSupportPolicy hyperflex.AutoSupportPolicy.List: @@ -807591,11 +827210,11 @@ components: A HyperFlex cluster. Contains inventory information concerning the health, software versions, storage, and nodes of the cluster. example: + ConvergedNodeCount: 7 NtpServers: - NtpServers - NtpServers - VmCount: 9 - DeviceId: DeviceId + ClusterPurpose: Storage VcenterConfiguration: ObjectType: hyperflex.VcenterConfiguration DatacenterId: DatacenterId @@ -807612,18 +827231,14 @@ components: ClassId: mo.MoRef Selector: Selector ClassId: hyperflex.Cluster - DnsServers: - - DnsServers - - DnsServers + CapacityRunway: 5 Encryption: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - ZoneType: UNKNOWN - ObjectType: hyperflex.Cluster - UpgradeStatus: Unknown + Name: Name Volumes: - ObjectType: aaa.AuditRecord link: link @@ -807638,21 +827253,30 @@ components: NetworkConfiguration: Timezone: Timezone DataNetmask: DataNetmask - MgmtVlan: 5 + MgmtVlan: 6 DnsSuffix: DnsSuffix DataGatewayIpAddress: DataGatewayIpAddress MgmtGatewayIpAddress: MgmtGatewayIpAddress ClassId: hyperflex.NetworkConfiguration DataIpAddress: DataIpAddress JumboFrameEnabled: true - LiveMigrationVlan: 5 + LiveMigrationVlan: 1 MgmtIpAddress: MgmtIpAddress ObjectType: hyperflex.NetworkConfiguration VmNetworkVlans: - - 2 - - 2 + - 7 + - 7 DataVlan: 1 MgmtNetmask: MgmtNetmask + Identity: Identity + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key + Status: Unknown + StorageNodeCount: 9 EncryptionStatus: EncryptionStatus RegisteredDevice: ObjectType: aaa.AuditRecord @@ -807660,21 +827284,118 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector + StorageCapacity: 0 Capability: ObjectType: hyperflex.Capability IscsiSupported: true ReplicationSupported: true ClassId: hyperflex.Capability EncryptionSupported: true + SharedScope: SharedScope + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + StorageContainers: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + HxdpBuildVersion: HxdpBuildVersion + DriveType: NA + HypervisorType: ESXi + AssociatedProfile: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + FltAggr: 1 + UtilizationTrendPercentage: 4.145608 + StorageClientVrf: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + VmCount: 5 + Parent: null + StorageUtilization: 3.6160767 + DeviceId: DeviceId + DnsServers: + - DnsServers + - DnsServers + DeploymentType: NA + Owners: + - Owners + - Owners + ZoneType: UNKNOWN + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ComputeNodeCount: 2 + ObjectType: hyperflex.Cluster + UpgradeStatus: Unknown + ClusterName: ClusterName + DisplayNames: + key: + - DisplayNames + - DisplayNames Health: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + ParentCluster: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + CreateTime: 2000-01-23T04:56:07.000+00:00 ClusterUuid: ClusterUuid - ClusterType: 0 - StorageContainers: + ClusterType: 7 + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ChildClusters: - ObjectType: aaa.AuditRecord link: link Moid: Moid @@ -807696,7 +827417,14 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector - HxdpBuildVersion: HxdpBuildVersion + HxVersion: HxVersion + AlarmSummary: + ObjectType: hyperflex.AlarmSummary + Warning: 5 + Health: Healthy + ClassId: hyperflex.AlarmSummary + Critical: 6 + Info: 1 Alarm: - ObjectType: aaa.AuditRecord link: link @@ -807708,6 +827436,7 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector + Moid: Moid Summary: DataReplicationCompliance: DataReplicationCompliance HealingInfo: @@ -807715,45 +827444,46 @@ components: Messages: - Messages - Messages - MessagesSize: 7 - EstimatedCompletionTimeInSeconds: 4 + MessagesSize: 6 + EstimatedCompletionTimeInSeconds: 9 MessagesIterator: "" - PercentComplete: 1 + PercentComplete: 8 ClassId: hyperflex.StPlatformClusterHealingInfo InProgress: true Address: Address Uptime: Uptime - CompressionSavings: 9.301444243932576 + CompressionSavings: 4.965218492984954 ActiveNodes: ActiveNodes - ResiliencyDetailsSize: 1 + ResiliencyDetailsSize: 9 SpaceStatus: SpaceStatus ClassId: hyperflex.Summary - UsedCapacity: 9 + UsedCapacity: 6 Name: Name ResiliencyInfo: ObjectType: hyperflex.StPlatformClusterResiliencyInfo Messages: - Messages - Messages - MessagesSize: 6 + MessagesSize: 3 MessagesIterator: "" - HddFailuresTolerable: 1 + HddFailuresTolerable: 6 State: State - NodeFailuresTolerable: 7 + NodeFailuresTolerable: 6 ClassId: hyperflex.StPlatformClusterResiliencyInfo SsdFailuresTolerable: 1 ObjectType: hyperflex.Summary - FreeCapacity: 2 + FreeCapacity: 9 State: State - TotalSavings: 5.025004791520295 + TotalSavings: 6.778324963048013 Downtime: Downtime - TotalCapacity: 4 + TotalCapacity: 2 ClusterAccessPolicy: ClusterAccessPolicy - Boottime: 7 + Boottime: 1 DataReplicationFactor: DataReplicationFactor ResiliencyDetails: "" - DeduplicationSavings: 3.616076749251911 - FltAggr: 6 + DeduplicationSavings: 5.025004791520295 + UtilizationPercentage: 2.027123 + HypervisorVersion: HypervisorVersion StorageClientIpPools: - ObjectType: aaa.AuditRecord link: link @@ -807765,12 +827495,6 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector - StorageClientVrf: - ObjectType: aaa.AuditRecord - link: link - Moid: Moid - ClassId: mo.MoRef - Selector: Selector title: Hyperflex:Cluster x-allOf-name: hyperflex.Cluster hyperflex.Cluster.List: @@ -807905,29 +827629,88 @@ components: type: object description: Specifies cluster backup configuration for a HyperFlex Cluster. example: - BackupDataStoreSizeUnit: TB - SnapshotRetentionCount: 18 + Description: Description Organization: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + Parent: null BackupDataStoreName: backup-source-ds ClassId: hyperflex.ClusterBackupPolicy ReplicationPairNamePrefix: backup - BackupTarget: - ObjectType: aaa.AuditRecord - link: link - Moid: Moid - ClassId: mo.MoRef - Selector: Selector + Owners: + - Owners + - Owners + Name: Name + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified ObjectType: hyperflex.ClusterBackupPolicy ReplicationSchedule: ObjectType: hyperflex.ReplicationSchedule ClassId: hyperflex.ReplicationSchedule BackupInterval: 1481 LocalSnapshotRetentionCount: 18 + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key + BackupDataStoreSizeUnit: TB + SnapshotRetentionCount: 18 + SharedScope: SharedScope + CreateTime: 2000-01-23T04:56:07.000+00:00 + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + BackupTarget: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Moid: Moid ClusterProfiles: - ObjectType: aaa.AuditRecord link: link @@ -808802,6 +828585,55 @@ components: description: "A policy specifying VLANs for management, VM migration, and VM\ \ traffic." example: + Description: Description + JumboFrame: true + MgmtVlan: + ObjectType: hyperflex.NamedVlan + ClassId: hyperflex.NamedVlan + VlanId: 327 + Name: Name + Organization: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Parent: null + UplinkSpeed: default + ClassId: hyperflex.ClusterNetworkPolicy + MacPrefixRange: + ObjectType: hyperflex.MacAddrPrefixRange + ClassId: hyperflex.MacAddrPrefixRange + StartAddr: StartAddr + EndAddr: EndAddr + Owners: + - Owners + - Owners + Name: Name + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified ObjectType: hyperflex.ClusterNetworkPolicy KvmIpRange: ObjectType: hyperflex.IpAddrRange @@ -808824,6 +828656,35 @@ components: ClassId: hyperflex.NamedVlan VlanId: 327 Name: Name + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key + SharedScope: SharedScope + CreateTime: 2000-01-23T04:56:07.000+00:00 + CimcManagementMode: OutOfBand + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector VmNetworkVlans: - ObjectType: hyperflex.NamedVlan ClassId: hyperflex.NamedVlan @@ -808833,21 +828694,7 @@ components: ClassId: hyperflex.NamedVlan VlanId: 327 Name: Name - JumboFrame: true - MgmtVlan: - ObjectType: hyperflex.NamedVlan - ClassId: hyperflex.NamedVlan - VlanId: 327 - Name: Name - Organization: - ObjectType: aaa.AuditRecord - link: link - Moid: Moid - ClassId: mo.MoRef - Selector: Selector - CimcManagementMode: OutOfBand - UplinkSpeed: default - ClassId: hyperflex.ClusterNetworkPolicy + Moid: Moid ClusterProfiles: - ObjectType: aaa.AuditRecord link: link @@ -808859,11 +828706,6 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector - MacPrefixRange: - ObjectType: hyperflex.MacAddrPrefixRange - ClassId: hyperflex.MacAddrPrefixRange - StartAddr: StartAddr - EndAddr: EndAddr title: Network Configuration x-allOf-name: hyperflex.ClusterNetworkPolicy hyperflex.ClusterNetworkPolicy.List: @@ -809104,12 +828946,95 @@ components: type: object description: A profile specifying configuration settings for a HyperFlex cluster. example: + ClassId: hyperflex.ClusterProfile + StorageClientNetmask: StorageClientNetmask + IsNicBased: false + MgmtIpAddress: MgmtIpAddress + Name: Name + WwxnPrefix: WwxnPrefix + ClusterNetwork: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key + ConfigContext: + ObjectType: policy.ConfigContext + ConfigStateSummary: None + ConfigState: ConfigState + OperState: OperState + ErrorState: ErrorState + ClassId: policy.ConfigContext + InconsistencyReason: + - InconsistencyReason + - InconsistencyReason + ConfigType: ConfigType + ControlAction: ControlAction + StorageType: HyperFlexDp + SharedScope: SharedScope + MgmtPlatform: FI + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + RunningWorkflows: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + HypervisorType: ESXi + SoftwareVersion: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ConfigResult: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + SrcTemplate: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Replication: 0 + PolicyBucket: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + MacAddressPrefix: MacAddressPrefix + Action: No-op + Description: Description Organization: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + Parent: null UcsmConfig: ObjectType: aaa.AuditRecord link: link @@ -809122,31 +829047,51 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector - ClassId: hyperflex.ClusterProfile DataIpAddress: DataIpAddress - StorageClientNetmask: StorageClientNetmask ExtIscsiStorage: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - IsNicBased: false - MgmtIpAddress: MgmtIpAddress + Owners: + - Owners + - Owners + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified ObjectType: hyperflex.ClusterProfile - WwxnPrefix: WwxnPrefix - ClusterNetwork: - ObjectType: aaa.AuditRecord - link: link - Moid: Moid - ClassId: mo.MoRef - Selector: Selector LocalCredential: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + DisplayNames: + key: + - DisplayNames + - DisplayNames SysConfig: ObjectType: aaa.AuditRecord link: link @@ -809154,27 +829099,27 @@ components: ClassId: mo.MoRef Selector: Selector HypervisorControlIpAddress: HypervisorControlIpAddress - StorageType: HyperFlexDp - MgmtPlatform: FI + CreateTime: 2000-01-23T04:56:07.000+00:00 StorageDataVlan: ObjectType: hyperflex.NamedVlan ClassId: hyperflex.NamedVlan VlanId: 327 Name: Name StorageClusterAuxiliaryIp: StorageClusterAuxiliaryIp - RunningWorkflows: - - ObjectType: aaa.AuditRecord + AccountMoid: AccountMoid + ExtFcStorage: + ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + Ancestors: - ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - ExtFcStorage: - ObjectType: aaa.AuditRecord + - ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef @@ -809185,7 +829130,6 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector - HypervisorType: ESXi StorageClientIpAddress: StorageClientIpAddress ClusterInternalSubnet: ObjectType: comm.IpV4Interface @@ -809199,6 +829143,7 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector + Type: instance NodeProfileConfig: - ObjectType: aaa.AuditRecord link: link @@ -809210,38 +829155,43 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector - SoftwareVersion: - ObjectType: aaa.AuditRecord - link: link - Moid: Moid - ClassId: mo.MoRef - Selector: Selector + ScheduledActions: + - ObjectType: policy.ScheduledAction + Action: Action + ClassId: policy.ScheduledAction + ProceedOnReboot: true + - ObjectType: policy.ScheduledAction + Action: Action + ClassId: policy.ScheduledAction + ProceedOnReboot: true ClusterStorage: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - ConfigResult: - ObjectType: aaa.AuditRecord - link: link - Moid: Moid - ClassId: mo.MoRef - Selector: Selector AssociatedCluster: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + ActionParams: + - ObjectType: policy.ActionParam + Value: Value + ClassId: policy.ActionParam + Name: Name + - ObjectType: policy.ActionParam + Value: Value + ClassId: policy.ActionParam + Name: Name + Moid: Moid HostNamePrefix: HostNamePrefix - Replication: 0 StorageClientVlan: ObjectType: hyperflex.NamedVlan ClassId: hyperflex.NamedVlan VlanId: 327 Name: Name - MacAddressPrefix: MacAddressPrefix Httpproxypolicy: ObjectType: aaa.AuditRecord link: link @@ -809360,21 +829310,70 @@ components: type: object description: Specifies all replication network parameters for the cluster. example: - ObjectType: hyperflex.ClusterReplicationNetworkPolicy + Description: Description Organization: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + SharedScope: SharedScope + Parent: null ReplicationBandwidthMbps: 8008 ReplicationMtu: 1310 + CreateTime: 2000-01-23T04:56:07.000+00:00 ReplicationVlan: ObjectType: hyperflex.NamedVlan ClassId: hyperflex.NamedVlan VlanId: 327 Name: Name ClassId: hyperflex.ClusterReplicationNetworkPolicy + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Owners: + - Owners + - Owners + Name: Name + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: hyperflex.ClusterReplicationNetworkPolicy + Moid: Moid ReplicationIpranges: - ObjectType: hyperflex.IpAddrRange Gateway: Gateway @@ -809417,6 +829416,16 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key title: Replication Network Configuration x-allOf-name: hyperflex.ClusterReplicationNetworkPolicy hyperflex.ClusterReplicationNetworkPolicy.List: @@ -809777,19 +829786,68 @@ components: description: A policy specifying HyperFlex cluster storage settings (optional). example: DiskPartitionCleanup: true - LogicalAvalabilityZoneConfig: - ObjectType: hyperflex.LogicalAvailabilityZone - ClassId: hyperflex.LogicalAvailabilityZone - AutoConfig: false - ObjectType: hyperflex.ClusterStoragePolicy - VdiOptimization: true + Description: Description Organization: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + SharedScope: SharedScope + Parent: null + CreateTime: 2000-01-23T04:56:07.000+00:00 ClassId: hyperflex.ClusterStoragePolicy + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Owners: + - Owners + - Owners + Name: Name + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + LogicalAvalabilityZoneConfig: + ObjectType: hyperflex.LogicalAvailabilityZone + ClassId: hyperflex.LogicalAvailabilityZone + AutoConfig: false + ObjectType: hyperflex.ClusterStoragePolicy + VdiOptimization: true + Moid: Moid ClusterProfiles: - ObjectType: aaa.AuditRecord link: link @@ -809801,6 +829859,16 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key title: Storage Configuration x-allOf-name: hyperflex.ClusterStoragePolicy hyperflex.ClusterStoragePolicy.List: @@ -809908,13 +829976,27 @@ components: description: "Profile configuration (deploy, validation) results with the overall\ \ state and detailed result messages." example: - ObjectType: hyperflex.ConfigResult + ValidationState: ValidationState + ConfigState: ConfigState + SharedScope: SharedScope + Parent: null + CreateTime: 2000-01-23T04:56:07.000+00:00 ConfigProgress: ConfigProgress StartTime: StartTime ClassId: hyperflex.ConfigResult + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null Duration: Duration - ClusterProfile: - ObjectType: aaa.AuditRecord + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef @@ -809930,6 +830012,83 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector + Owners: + - Owners + - Owners + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: hyperflex.ConfigResult + AppliedPolicies: + - ErrorMessages: + - ObjectType: policy.PolicyError + Type: none + Message: Message + ClassId: policy.PolicyError + - ObjectType: policy.PolicyError + Type: none + Message: Message + ClassId: policy.PolicyError + Status: ok + ObjectType: policy.PolicyStatus + Type: Type + Moid: Moid + ClassId: policy.PolicyStatus + Reason: Reason + - ErrorMessages: + - ObjectType: policy.PolicyError + Type: none + Message: Message + ClassId: policy.PolicyError + - ObjectType: policy.PolicyError + Type: none + Message: Message + ClassId: policy.PolicyError + Status: ok + ObjectType: policy.PolicyStatus + Type: Type + Moid: Moid + ClassId: policy.PolicyStatus + Reason: Reason + ConfigStage: ConfigStage + Moid: Moid + DisplayNames: + key: + - DisplayNames + - DisplayNames + ClusterProfile: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key title: Hyperflex:Config Result x-allOf-name: hyperflex.ConfigResult hyperflex.ConfigResult.List: @@ -810016,14 +830175,85 @@ components: description: An entry that describes the result of a cluster validation or deployment operation. example: + Context: + EntityType: EntityType + ObjectType: policy.ConfigResultContext + EntityName: EntityName + EntityData: "" + ParentType: ParentType + EntityMoid: EntityMoid + ClassId: policy.ConfigResultContext + ParentMoid: ParentMoid + Message: Message + SharedScope: SharedScope + Parent: null + CompletedTime: CompletedTime + CreateTime: 2000-01-23T04:56:07.000+00:00 + ClassId: hyperflex.ConfigResultEntry + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Owners: + - Owners + - Owners + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified ObjectType: hyperflex.ConfigResultEntry + Type: Type + OwnerId: OwnerId ConfigResult: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - ClassId: hyperflex.ConfigResultEntry + State: State + Moid: Moid + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key title: Hyperflex:Config Result Entry x-allOf-name: hyperflex.ConfigResultEntry hyperflex.ConfigResultEntry.List: @@ -811693,19 +831923,69 @@ components: description: A policy specifying external storage connectivity information via Fabric attached FC storage. example: - ObjectType: hyperflex.ExtFcStoragePolicy + Description: Description Organization: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + SharedScope: SharedScope + Parent: null + CreateTime: 2000-01-23T04:56:07.000+00:00 WwxnPrefixRange: ObjectType: hyperflex.WwxnPrefixRange ClassId: hyperflex.WwxnPrefixRange StartAddr: StartAddr EndAddr: EndAddr ClassId: hyperflex.ExtFcStoragePolicy + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + AdminState: true + Owners: + - Owners + - Owners + Name: Name + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: hyperflex.ExtFcStoragePolicy + Moid: Moid ClusterProfiles: - ObjectType: aaa.AuditRecord link: link @@ -811717,6 +831997,11 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 ExtaTraffic: ObjectType: hyperflex.NamedVsan VsanId: 328 @@ -811727,7 +832012,11 @@ components: VsanId: 328 ClassId: hyperflex.NamedVsan Name: Name - AdminState: true + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key title: External FC Storage x-allOf-name: hyperflex.ExtFcStoragePolicy hyperflex.ExtFcStoragePolicy.List: @@ -811829,14 +832118,64 @@ components: description: A policy specifying external storage connectivity information via Fabric attached iSCSI storage. example: - ObjectType: hyperflex.ExtIscsiStoragePolicy + Description: Description Organization: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + SharedScope: SharedScope + Parent: null + CreateTime: 2000-01-23T04:56:07.000+00:00 ClassId: hyperflex.ExtIscsiStoragePolicy + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + AdminState: true + Owners: + - Owners + - Owners + Name: Name + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: hyperflex.ExtIscsiStoragePolicy + Moid: Moid ClusterProfiles: - ObjectType: aaa.AuditRecord link: link @@ -811848,6 +832187,11 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 ExtaTraffic: ObjectType: hyperflex.NamedVlan ClassId: hyperflex.NamedVlan @@ -811858,7 +832202,11 @@ components: ClassId: hyperflex.NamedVlan VlanId: 327 Name: Name - AdminState: true + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key title: External iSCSI Storage x-allOf-name: hyperflex.ExtIscsiStoragePolicy hyperflex.ExtIscsiStoragePolicy.List: @@ -811926,7 +832274,9 @@ components: HxdpVersion: HxdpVersion ClassId: hyperflex.AppSettingConstraint DeploymentType: NA + Value: Value ClassId: hyperflex.FeatureLimitEntry + Name: Name title: Hyperflex:Feature Limit Entry x-allOf-name: hyperflex.FeatureLimitEntry hyperflex.FeatureLimitExternal.Response: @@ -812061,7 +832411,9 @@ components: HxdpVersion: HxdpVersion ClassId: hyperflex.AppSettingConstraint DeploymentType: NA + Value: Value ClassId: hyperflex.FeatureLimitEntry + Name: Name - ObjectType: hyperflex.FeatureLimitEntry Constraint: HypervisorType: ESXi @@ -812071,7 +832423,9 @@ components: HxdpVersion: HxdpVersion ClassId: hyperflex.AppSettingConstraint DeploymentType: NA + Value: Value ClassId: hyperflex.FeatureLimitEntry + Name: Name Moid: Moid DisplayNames: key: @@ -812238,7 +832592,9 @@ components: HxdpVersion: HxdpVersion ClassId: hyperflex.AppSettingConstraint DeploymentType: NA + Value: Value ClassId: hyperflex.FeatureLimitEntry + Name: Name - ObjectType: hyperflex.FeatureLimitEntry Constraint: HypervisorType: ESXi @@ -812248,7 +832604,9 @@ components: HxdpVersion: HxdpVersion ClassId: hyperflex.AppSettingConstraint DeploymentType: NA + Value: Value ClassId: hyperflex.FeatureLimitEntry + Name: Name Moid: Moid DisplayNames: key: @@ -815245,23 +835603,18 @@ components: type: object description: A host appliance in the HyperFlex Cluster. example: - Lockdown: true - ControllerVmHxdpDisplayVersion: ControllerVmHxdpDisplayVersion - ControllerVmVersion: ControllerVmVersion - Hypervisor: Hypervisor + ProcessorCapacity: + ObjectType: virtualization.ComputeCapacity + Capacity: 3 + Used: 4 + ClassId: virtualization.ComputeCapacity + Free: 2 DataIp: ObjectType: network.HyperFlexNetworkAddress Address: Address Fqdn: Fqdn Ip: Ip ClassId: network.HyperFlexNetworkAddress - Ip: - ObjectType: network.HyperFlexNetworkAddress - Address: Address - Fqdn: Fqdn - Ip: Ip - ClassId: network.HyperFlexNetworkAddress - OsVersion: OsVersion Node: ObjectType: aaa.AuditRecord link: link @@ -815270,26 +835623,138 @@ components: Selector: Selector ControllerVmHxdpVersion: ControllerVmHxdpVersion TemplateVersion: TemplateVersion - Cluster: + ClassId: hyperflex.HypervisorHost + Name: Name + ControllerVmDisplayVersion: ControllerVmDisplayVersion + ControllerVmUuid: ControllerVmUuid + VirtualCpus: 5 + Identity: Identity + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key + Status: Unknown + RegisteredDevice: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - ClassId: hyperflex.HypervisorHost + SharedScope: SharedScope + CpuInfo: + Cores: 0 + ObjectType: virtualization.CpuInfo + Speed: 1 + Description: Description + Sockets: 6 + ClassId: virtualization.CpuInfo + Vendor: Vendor + Hypervisor: Hypervisor + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null MgmtIp: ObjectType: network.HyperFlexNetworkAddress Address: Address Fqdn: Fqdn Ip: Ip ClassId: network.HyperFlexNetworkAddress - ControllerVmDisplayVersion: ControllerVmDisplayVersion - ControllerVmUuid: ControllerVmUuid + HypervisorType: ESXi Role: UNKNOWN - VirtualCpus: 6 + MaintenanceMode: true + Lockdown: true + ControllerVmHxdpDisplayVersion: ControllerVmHxdpDisplayVersion + Parent: null + ControllerVmVersion: ControllerVmVersion + Ip: + ObjectType: network.HyperFlexNetworkAddress + Address: Address + Fqdn: Fqdn + Ip: Ip + ClassId: network.HyperFlexNetworkAddress + OsVersion: OsVersion + Owners: + - Owners + - Owners + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified ObjectType: hyperflex.HypervisorHost - ConfiguredMemory: 0 + ConfiguredMemory: 5 HostStatus: UNKNOWN + DisplayNames: + key: + - DisplayNames + - DisplayNames + ProductInfo: + ObjectType: virtualization.ProductInfo + ProductName: ProductName + Version: Version + Build: Build + ProductType: ProductType + ClassId: virtualization.ProductInfo + ProductVendor: ProductVendor + HardwareInfo: + ObjectType: infra.HardwareInfo + MemorySize: 1 + CpuCores: 0 + ClassId: infra.HardwareInfo + CpuSpeed: 6 + CreateTime: 2000-01-23T04:56:07.000+00:00 + Cluster: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + MemoryCapacity: + ObjectType: virtualization.MemoryCapacity + Capacity: 5 + Used: 7 + ClassId: virtualization.MemoryCapacity + Free: 2 + Vendor: Vendor + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Serial: Serial + Uuid: Uuid + UpTime: UpTime + Model: Model + Moid: Moid title: Hyperflex:Hypervisor Host x-allOf-name: hyperflex.HypervisorHost hyperflex.HypervisorHost.List: @@ -815420,35 +835885,137 @@ components: description: A virtual machine belonging to the HyperFlex cluster spawned via the hypervisor. example: - Path: Path - StorageProvisionedInBytes: 0 + ProcessorCapacity: + ObjectType: virtualization.ComputeCapacity + Capacity: 3 + Used: 4 + ClassId: virtualization.ComputeCapacity + Free: 2 + StorageProvisionedInBytes: 1 + Parent: null Ip: ObjectType: network.HyperFlexNetworkAddress Address: Address Fqdn: Fqdn Ip: Ip ClassId: network.HyperFlexNetworkAddress - StorageUsedInBytes: 6 + StorageUsedInBytes: 5 + ClassId: hyperflex.HypervisorVirtualMachine + Owners: + - Owners + - Owners + Name: Name + Template: true + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: hyperflex.HypervisorVirtualMachine + HostUuid: HostUuid + Capacity: + ObjectType: infra.HardwareInfo + MemorySize: 1 + CpuCores: 0 + ClassId: infra.HardwareInfo + CpuSpeed: 6 + DisplayNames: + key: + - DisplayNames + - DisplayNames + Identity: Identity + VmCreationTime: 2000-01-23T04:56:07.000+00:00 + ModTime: 2000-01-23T04:56:07.000+00:00 + PowerState: Unknown + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key + Path: Path + RegisteredDevice: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + SharedScope: SharedScope + CreateTime: 2000-01-23T04:56:07.000+00:00 Cluster: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - ClassId: hyperflex.HypervisorVirtualMachine + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + BootTime: 2000-01-23T04:56:07.000+00:00 Host: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + MemoryCapacity: + ObjectType: virtualization.MemoryCapacity + Capacity: 5 + Used: 7 + ClassId: virtualization.MemoryCapacity + Free: 2 + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector GuestOsState: GuestOsState - Template: true - ObjectType: hyperflex.HypervisorVirtualMachine + Provider: Unknown + HypervisorType: ESXi PlatformInstanceId: PlatformInstanceId - HostUuid: HostUuid + Uuid: Uuid + State: None VmInstanceUuid: VmInstanceUuid + Moid: Moid + GuestInfo: + OperatingSystem: OperatingSystem + ObjectType: virtualization.GuestInfo + Hostname: Hostname + ClassId: virtualization.GuestInfo + IpAddress: IpAddress + Name: Name + IpAddress: + - IpAddress + - IpAddress + CpuUtilization: 0.8008282 ConnectionState: ConnectionState + MemoryUtilization: 6.0274563 title: Hyperflex:Hypervisor Virtual Machine x-allOf-name: hyperflex.HypervisorVirtualMachine hyperflex.HypervisorVirtualMachine.List: @@ -815587,20 +836154,81 @@ components: A HyperFlex iSCSI initiator group entity. Contains detailed information about the initaitor group which includes a list of iSCSI initiators and iSCSI target objects. example: - ObjectType: hyperflex.InitiatorGroup - Uuid: Uuid + Description: Description + Parent: null + StorageUtilization: + ObjectType: storage.HitachiArrayUtilization + Used: 5 + CapacityUtilization: 6.0274563 + Total: 5 + ClassId: storage.HitachiArrayUtilization + Available: 0 + Free: 1 Initiators: - IpAddresses: - IpAddresses - IpAddresses ObjectType: storage.HyperFlexIscsiInitiator + Type: FC + Iqn: Iqn ClassId: storage.HyperFlexIscsiInitiator + Nqn: Nqn + Name: Name + Wwn: Wwn - IpAddresses: - IpAddresses - IpAddresses ObjectType: storage.HyperFlexIscsiInitiator + Type: FC + Iqn: Iqn ClassId: storage.HyperFlexIscsiInitiator - Version: 6 + Nqn: Nqn + Name: Name + Wwn: Wwn + ClassId: hyperflex.InitiatorGroup + Owners: + - Owners + - Owners + Name: Name + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: hyperflex.InitiatorGroup + Version: 7 + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key + InitiatorCount: 2 + SharedScope: SharedScope + CreateTime: 2000-01-23T04:56:07.000+00:00 InventorySource: NOT_APPLICABLE Cluster: ObjectType: aaa.AuditRecord @@ -815608,10 +836236,10 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector - ClassId: hyperflex.InitiatorGroup - TargetUuids: - - TargetUuids - - TargetUuids + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null Targets: - ObjectType: aaa.AuditRecord link: link @@ -815623,7 +836251,23 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector - InitiatorCount: 0 + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Uuid: Uuid + Moid: Moid + TargetUuids: + - TargetUuids + - TargetUuids title: Hyperflex:Initiator Group x-allOf-name: hyperflex.InitiatorGroup hyperflex.InitiatorGroup.List: @@ -816560,7 +837204,7 @@ components: description: "A policy specifying credentials for HyperFlex cluster such as\ \ controller VM password, hypervisor username, and password." example: - ObjectType: hyperflex.LocalCredentialPolicy + Description: Description IsHxdpRootPwdSet: false Organization: ObjectType: aaa.AuditRecord @@ -816568,12 +837212,58 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector + Parent: null + ClassId: hyperflex.LocalCredentialPolicy + Owners: + - Owners + - Owners + Name: Name + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: hyperflex.LocalCredentialPolicy + HypervisorAdminPwd: HypervisorAdminPwd + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key HypervisorAdmin: HypervisorAdmin - FactoryHypervisorPassword: false + SharedScope: SharedScope HxdpRootPwd: HxdpRootPwd - HypervisorAdminPwd: HypervisorAdminPwd - ClassId: hyperflex.LocalCredentialPolicy - ClusterProfiles: + CreateTime: 2000-01-23T04:56:07.000+00:00 + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + AccountMoid: AccountMoid + Ancestors: - ObjectType: aaa.AuditRecord link: link Moid: Moid @@ -816585,6 +837275,19 @@ components: ClassId: mo.MoRef Selector: Selector IsDeploymentPrivateKeySet: false + FactoryHypervisorPassword: false + Moid: Moid + ClusterProfiles: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector IsHypervisorAdminPwdSet: false title: Security x-allOf-name: hyperflex.LocalCredentialPolicy @@ -816809,17 +837512,42 @@ components: Contains detailed information about the iSCSI LUN which includes the identity and capacity information, and the iSCSI target to which it is associated. example: - SerialNo: SerialNo Description: Description - TotalCapacityInBytes: 6 + Parent: null LunId: LunId - UsedCapacityInBytes: 1 - InventorySource: NOT_APPLICABLE ClassId: hyperflex.Lun - DsCapacityInBytes: 0 + DsCapacityInBytes: 6 DsUuid: DsUuid IsEncrypted: true + Owners: + - Owners + - Owners Name: Name + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + Hlu: 0 ObjectType: hyperflex.Lun Target: ObjectType: aaa.AuditRecord @@ -816827,10 +837555,45 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector - Uuid: Uuid Version: 5 DsName: DsName Tuuid: Tuuid + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key + HostName: HostName + VolumeName: VolumeName + SerialNo: SerialNo + TotalCapacityInBytes: 1 + SharedScope: SharedScope + UsedCapacityInBytes: 5 + CreateTime: 2000-01-23T04:56:07.000+00:00 + InventorySource: NOT_APPLICABLE + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Uuid: Uuid + Moid: Moid title: Hyperflex:Lun x-allOf-name: hyperflex.Lun hyperflex.Lun.List: @@ -817578,19 +838341,19 @@ components: example: Timezone: Timezone DataNetmask: DataNetmask - MgmtVlan: 5 + MgmtVlan: 6 DnsSuffix: DnsSuffix DataGatewayIpAddress: DataGatewayIpAddress MgmtGatewayIpAddress: MgmtGatewayIpAddress ClassId: hyperflex.NetworkConfiguration DataIpAddress: DataIpAddress JumboFrameEnabled: true - LiveMigrationVlan: 5 + LiveMigrationVlan: 1 MgmtIpAddress: MgmtIpAddress ObjectType: hyperflex.NetworkConfiguration VmNetworkVlans: - - 2 - - 2 + - 7 + - 7 DataVlan: 1 MgmtNetmask: MgmtNetmask nullable: true @@ -818078,8 +838841,17 @@ components: description: "A policy specifying node details such as management and storage\ \ data IP ranges. For HyperFlex Edge, storage data IP range is pre-defined." example: - ObjectType: hyperflex.NodeConfigPolicy - DataIpRange: + Description: Description + Organization: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + SharedScope: SharedScope + Parent: null + CreateTime: 2000-01-23T04:56:07.000+00:00 + HypervisorControlIpRange: ObjectType: hyperflex.IpAddrRange Gateway: Gateway IpAddrBlocks: @@ -818095,13 +838867,13 @@ components: Netmask: Netmask StartAddr: StartAddr EndAddr: EndAddr - Organization: - ObjectType: aaa.AuditRecord - link: link - Moid: Moid - ClassId: mo.MoRef - Selector: Selector - HypervisorControlIpRange: + ClassId: hyperflex.NodeConfigPolicy + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + AccountMoid: AccountMoid + MgmtIpRange: ObjectType: hyperflex.IpAddrRange Gateway: Gateway IpAddrBlocks: @@ -818117,8 +838889,7 @@ components: Netmask: Netmask StartAddr: StartAddr EndAddr: EndAddr - ClassId: hyperflex.NodeConfigPolicy - ClusterProfiles: + Ancestors: - ObjectType: aaa.AuditRecord link: link Moid: Moid @@ -818129,7 +838900,11 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector - MgmtIpRange: + Owners: + - Owners + - Owners + Name: Name + HxdpIpRange: ObjectType: hyperflex.IpAddrRange Gateway: Gateway IpAddrBlocks: @@ -818145,7 +838920,32 @@ components: Netmask: Netmask StartAddr: StartAddr EndAddr: EndAddr - HxdpIpRange: + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: hyperflex.NodeConfigPolicy + DataIpRange: ObjectType: hyperflex.IpAddrRange Gateway: Gateway IpAddrBlocks: @@ -818161,6 +838961,28 @@ components: Netmask: Netmask StartAddr: StartAddr EndAddr: EndAddr + Moid: Moid + ClusterProfiles: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key NodeNamePrefix: NodeNamePrefix title: Node IP Ranges x-allOf-name: hyperflex.NodeConfigPolicy @@ -818303,27 +839125,135 @@ components: A configuration profile per node in the HyperFlex cluster. It defines node settings such as IP address configuration for hypervisor management network, storage data network, HyperFlex management network, and the assigned physical server. example: + Action: No-op + Description: Description + Parent: null + Node: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: hyperflex.NodeProfile + HxdpMgmtIp: HxdpMgmtIp + HxdpDataIp: HxdpDataIp + Owners: + - Owners + - Owners + Name: Name + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified HypervisorDataIp: HypervisorDataIp ObjectType: hyperflex.NodeProfile - NodeRole: Unknown HypervisorControlIp: HypervisorControlIp + HypervisorMgmtIp: HypervisorMgmtIp + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key + ConfigContext: + ObjectType: policy.ConfigContext + ConfigStateSummary: None + ConfigState: ConfigState + OperState: OperState + ErrorState: ErrorState + ClassId: policy.ConfigContext + InconsistencyReason: + - InconsistencyReason + - InconsistencyReason + ConfigType: ConfigType + ControlAction: ControlAction + SharedScope: SharedScope + CreateTime: 2000-01-23T04:56:07.000+00:00 + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + HxdpStorageClientIp: HxdpStorageClientIp + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Type: instance + NodeRole: Unknown + ScheduledActions: + - ObjectType: policy.ScheduledAction + Action: Action + ClassId: policy.ScheduledAction + ProceedOnReboot: true + - ObjectType: policy.ScheduledAction + Action: Action + ClassId: policy.ScheduledAction + ProceedOnReboot: true AssignedServer: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - Node: + SrcTemplate: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - ClassId: hyperflex.NodeProfile - HxdpStorageClientIp: HxdpStorageClientIp - HypervisorMgmtIp: HypervisorMgmtIp - HxdpMgmtIp: HxdpMgmtIp - HxdpDataIp: HxdpDataIp + ActionParams: + - ObjectType: policy.ActionParam + Value: Value + ClassId: policy.ActionParam + Name: Name + - ObjectType: policy.ActionParam + Value: Value + ClassId: policy.ActionParam + Name: Name + Moid: Moid + PolicyBucket: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector ClusterProfile: ObjectType: aaa.AuditRecord link: link @@ -818865,18 +839795,67 @@ components: required when the internet access of your servers including CIMC and HyperFlex storage controller VMs is secured by a HTTP proxy. example: - ObjectType: hyperflex.ProxySettingPolicy IsPasswordSet: false + Description: Description Organization: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - Username: Username + SharedScope: SharedScope + Parent: null + CreateTime: 2000-01-23T04:56:07.000+00:00 Port: 5249 Hostname: Hostname ClassId: hyperflex.ProxySettingPolicy + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Owners: + - Owners + - Owners + Name: Name + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: hyperflex.ProxySettingPolicy + Username: Username + Moid: Moid ClusterProfiles: - ObjectType: aaa.AuditRecord link: link @@ -818888,6 +839867,16 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key Password: Password title: HTTP Proxy x-allOf-name: hyperflex.ProxySettingPolicy @@ -820305,7 +841294,9 @@ components: HxdpVersion: HxdpVersion ClassId: hyperflex.AppSettingConstraint DeploymentType: NA + Value: Value ClassId: hyperflex.ServerModelEntry + Name: Name - ObjectType: hyperflex.ServerModelEntry Constraint: HypervisorType: ESXi @@ -820315,7 +841306,9 @@ components: HxdpVersion: HxdpVersion ClassId: hyperflex.AppSettingConstraint DeploymentType: NA + Value: Value ClassId: hyperflex.ServerModelEntry + Name: Name Owners: - Owners - Owners @@ -820420,7 +841413,9 @@ components: HxdpVersion: HxdpVersion ClassId: hyperflex.AppSettingConstraint DeploymentType: NA + Value: Value ClassId: hyperflex.ServerModelEntry + Name: Name title: Hyperflex:Server Model Entry x-allOf-name: hyperflex.ServerModelEntry hyperflex.ServiceAuthToken.Response: @@ -821873,6 +842868,55 @@ components: \ compatible components ( like HyperFlex Data Platform, Hypervisor, etc. ),\ \ that the user wishes to apply on the HyperFlex cluster." example: + HxdpVersionInfo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Description: Description + Organization: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Parent: null + ClassId: hyperflex.SoftwareVersionPolicy + ServerFirmwareVersionInfo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Owners: + - Owners + - Owners + Name: Name + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified ServerFirmwareVersions: - ObjectType: hyperflex.ServerFirmwareVersionInfo Version: Version @@ -821882,22 +842926,42 @@ components: Version: Version ClassId: hyperflex.ServerFirmwareVersionInfo ServerPlatform: M5 - HxdpVersionInfo: - ObjectType: aaa.AuditRecord + ObjectType: hyperflex.SoftwareVersionPolicy + HxdpVersion: HxdpVersion + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key + UpgradeTypes: + - NONE + - NONE + SharedScope: SharedScope + ServerFirmwareVersion: ServerFirmwareVersion + CreateTime: 2000-01-23T04:56:07.000+00:00 + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - ObjectType: hyperflex.SoftwareVersionPolicy - Organization: - ObjectType: aaa.AuditRecord + - ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - ServerFirmwareVersion: ServerFirmwareVersion - HxdpVersion: HxdpVersion - ClassId: hyperflex.SoftwareVersionPolicy + HypervisorVersionInfo: null + Moid: Moid ClusterProfiles: - ObjectType: aaa.AuditRecord link: link @@ -821910,16 +842974,6 @@ components: ClassId: mo.MoRef Selector: Selector HypervisorVersion: HypervisorVersion - UpgradeTypes: - - NONE - - NONE - ServerFirmwareVersionInfo: - ObjectType: aaa.AuditRecord - link: link - Moid: Moid - ClassId: mo.MoRef - Selector: Selector - HypervisorVersionInfo: null title: HyperFlex Software Version Selection Policy x-allOf-name: hyperflex.SoftwareVersionPolicy hyperflex.SoftwareVersionPolicy.List: @@ -822017,10 +843071,10 @@ components: Messages: - Messages - Messages - MessagesSize: 7 - EstimatedCompletionTimeInSeconds: 4 + MessagesSize: 6 + EstimatedCompletionTimeInSeconds: 9 MessagesIterator: "" - PercentComplete: 1 + PercentComplete: 8 ClassId: hyperflex.StPlatformClusterHealingInfo InProgress: true nullable: true @@ -822111,11 +843165,11 @@ components: Messages: - Messages - Messages - MessagesSize: 6 + MessagesSize: 3 MessagesIterator: "" - HddFailuresTolerable: 1 + HddFailuresTolerable: 6 State: State - NodeFailuresTolerable: 7 + NodeFailuresTolerable: 6 ClassId: hyperflex.StPlatformClusterResiliencyInfo SsdFailuresTolerable: 1 nullable: true @@ -822506,8 +843560,75 @@ components: description: A storage container (datastore) entity. example: DataBlockSize: 0 + CreatedTime: 2000-01-23T04:56:07.000+00:00 + Parent: null + StorageUtilization: + ObjectType: storage.HitachiArrayUtilization + Used: 5 + CapacityUtilization: 6.0274563 + Total: 5 + ClassId: storage.HitachiArrayUtilization + Available: 0 + Free: 1 + ClassId: hyperflex.StorageContainer + LastAccessTime: 2000-01-23T04:56:07.000+00:00 + VolumeCount: 5 + Owners: + - Owners + - Owners + Name: Name + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: hyperflex.StorageContainer + AccessibilitySummary: NOT_APPLICABLE + Volumes: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Kind: UNKNOWN + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key ProvisionedVolumeCapacityUtilization: 1.4658129 MountStatus: NOT_APPLICABLE + SharedScope: SharedScope + CreateTime: 2000-01-23T04:56:07.000+00:00 ProvisionedCapacity: 6 HostMountStatus: - ObjectType: storage.StorageContainerHostMountStatus @@ -822528,15 +843649,12 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector - ClassId: hyperflex.StorageContainer - LastAccessTime: 2000-01-23T04:56:07.000+00:00 - VolumeCount: 5 - EncryptionEnabled: true - ObjectType: hyperflex.StorageContainer - AccessibilitySummary: NOT_APPLICABLE - Type: NFS - Uuid: Uuid - Volumes: + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + AccountMoid: AccountMoid + Ancestors: - ObjectType: aaa.AuditRecord link: link Moid: Moid @@ -822547,9 +843665,12 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector + EncryptionEnabled: true + Type: NFS + Uuid: Uuid MountSummary: NOT_APPLICABLE - Kind: UNKNOWN LastModifiedTime: 2000-01-23T04:56:07.000+00:00 + Moid: Moid InUse: true UnCompressedUsedBytes: 5 title: Hyperflex:Storage Container @@ -822730,44 +843851,44 @@ components: Messages: - Messages - Messages - MessagesSize: 7 - EstimatedCompletionTimeInSeconds: 4 + MessagesSize: 6 + EstimatedCompletionTimeInSeconds: 9 MessagesIterator: "" - PercentComplete: 1 + PercentComplete: 8 ClassId: hyperflex.StPlatformClusterHealingInfo InProgress: true Address: Address Uptime: Uptime - CompressionSavings: 9.301444243932576 + CompressionSavings: 4.965218492984954 ActiveNodes: ActiveNodes - ResiliencyDetailsSize: 1 + ResiliencyDetailsSize: 9 SpaceStatus: SpaceStatus ClassId: hyperflex.Summary - UsedCapacity: 9 + UsedCapacity: 6 Name: Name ResiliencyInfo: ObjectType: hyperflex.StPlatformClusterResiliencyInfo Messages: - Messages - Messages - MessagesSize: 6 + MessagesSize: 3 MessagesIterator: "" - HddFailuresTolerable: 1 + HddFailuresTolerable: 6 State: State - NodeFailuresTolerable: 7 + NodeFailuresTolerable: 6 ClassId: hyperflex.StPlatformClusterResiliencyInfo SsdFailuresTolerable: 1 ObjectType: hyperflex.Summary - FreeCapacity: 2 + FreeCapacity: 9 State: State - TotalSavings: 5.025004791520295 + TotalSavings: 6.778324963048013 Downtime: Downtime - TotalCapacity: 4 + TotalCapacity: 2 ClusterAccessPolicy: ClusterAccessPolicy - Boottime: 7 + Boottime: 1 DataReplicationFactor: DataReplicationFactor ResiliencyDetails: "" - DeduplicationSavings: 3.616076749251911 + DeduplicationSavings: 5.025004791520295 nullable: true title: Hyperflex:Summary x-allOf-name: hyperflex.Summary @@ -823448,8 +844569,7 @@ components: \ servers, and NTP Servers." example: Timezone: Pacific/Niue - ObjectType: hyperflex.SysConfigPolicy - DnsDomainName: DnsDomainName + Description: Description Organization: ObjectType: aaa.AuditRecord link: link @@ -823460,11 +844580,61 @@ components: - NtpServers - NtpServers - NtpServers + SharedScope: SharedScope + Parent: null + CreateTime: 2000-01-23T04:56:07.000+00:00 ClassId: hyperflex.SysConfigPolicy + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null DnsServers: - DnsServers - DnsServers - DnsServers + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Owners: + - Owners + - Owners + Name: Name + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: hyperflex.SysConfigPolicy + DnsDomainName: DnsDomainName + Moid: Moid ClusterProfiles: - ObjectType: aaa.AuditRecord link: link @@ -823476,6 +844646,16 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key title: "DNS, NTP and Timezone" x-allOf-name: hyperflex.SysConfigPolicy hyperflex.SysConfigPolicy.List: @@ -823644,14 +844824,8 @@ components: Contains detailed information about the iSCSI target which includes a list of linked iSCSI initiator group objects, list of iSCSI lun objects associated with the iSCSI target, authorization method and iSCSI qualified name. example: - Iqn: Iqn - InventorySource: NOT_APPLICABLE - Cluster: - ObjectType: aaa.AuditRecord - link: link - Moid: Moid - ClassId: mo.MoRef - Selector: Selector + Description: Description + Parent: null ClassId: hyperflex.Target InitiatorGroups: - ObjectType: aaa.AuditRecord @@ -823678,14 +844852,79 @@ components: InitiatorGroupUuids: - InitiatorGroupUuids - InitiatorGroupUuids - AuthMethod: NOT_APPLICABLE + Owners: + - Owners + - Owners + Name: Name + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified ObjectType: hyperflex.Target - Uuid: Uuid Version: 6 - NumActiveInitiators: 0 + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key LunUuids: - LunUuids - LunUuids + SharedScope: SharedScope + CreateTime: 2000-01-23T04:56:07.000+00:00 + Iqn: Iqn + InventorySource: NOT_APPLICABLE + Cluster: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + AuthMethod: NOT_APPLICABLE + Uuid: Uuid + NumActiveInitiators: 0 + Moid: Moid title: Hyperflex:Target x-allOf-name: hyperflex.Target hyperflex.Target.List: @@ -823922,6 +845161,67 @@ components: \ org, KVM IP addresses, and MAC prefix for server configuration in Fabric\ \ Interconnect environment." example: + Description: Description + Organization: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + SharedScope: SharedScope + Parent: null + ServerFirmwareVersion: ServerFirmwareVersion + CreateTime: 2000-01-23T04:56:07.000+00:00 + ClassId: hyperflex.UcsmConfigPolicy + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + MacPrefixRange: + ObjectType: hyperflex.MacAddrPrefixRange + ClassId: hyperflex.MacAddrPrefixRange + StartAddr: StartAddr + EndAddr: EndAddr + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Owners: + - Owners + - Owners + Name: Name + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified ObjectType: hyperflex.UcsmConfigPolicy KvmIpRange: ObjectType: hyperflex.IpAddrRange @@ -823939,14 +845239,7 @@ components: Netmask: Netmask StartAddr: StartAddr EndAddr: EndAddr - Organization: - ObjectType: aaa.AuditRecord - link: link - Moid: Moid - ClassId: mo.MoRef - Selector: Selector - ServerFirmwareVersion: ServerFirmwareVersion - ClassId: hyperflex.UcsmConfigPolicy + Moid: Moid ClusterProfiles: - ObjectType: aaa.AuditRecord link: link @@ -823958,11 +845251,16 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector - MacPrefixRange: - ObjectType: hyperflex.MacAddrPrefixRange - ClassId: hyperflex.MacAddrPrefixRange - StartAddr: StartAddr - EndAddr: EndAddr + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key title: UCSM Configuration x-allOf-name: hyperflex.UcsmConfigPolicy hyperflex.UcsmConfigPolicy.List: @@ -824091,19 +845389,79 @@ components: type: object description: A policy specifying vCenter configuration. example: - ObjectType: hyperflex.VcenterConfigPolicy - IsPasswordSet: false - DataCenter: DataCenter + Description: Description Organization: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - Username: Username - Hostname: Hostname + Parent: null ClassId: hyperflex.VcenterConfigPolicy + Owners: + - Owners + - Owners + Name: Name + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: hyperflex.VcenterConfigPolicy + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key + Password: Password + IsPasswordSet: false + SharedScope: SharedScope + CreateTime: 2000-01-23T04:56:07.000+00:00 + Hostname: Hostname + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null SsoUrl: SsoUrl + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + DataCenter: DataCenter + Username: Username + Moid: Moid ClusterProfiles: - ObjectType: aaa.AuditRecord link: link @@ -824115,7 +845473,6 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector - Password: Password title: vCenter x-allOf-name: hyperflex.VcenterConfigPolicy hyperflex.VcenterConfigPolicy.List: @@ -826253,30 +847610,99 @@ components: type: object description: A HyperFlex Volume entity. example: + Description: Description + Parent: null + StorageUtilization: + ObjectType: storage.HitachiArrayUtilization + Used: 5 + CapacityUtilization: 6.0274563 + Total: 5 + ClassId: storage.HitachiArrayUtilization + Available: 0 + Free: 1 + Size: 0 + ClassId: hyperflex.Volume + Owners: + - Owners + - Owners + Name: Name + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: hyperflex.Volume + NaaId: NaaId + VolumeType: VolumeType + Capacity: 6 + ClientId: ClientId + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + StorageContainer: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key VolumeCreateTime: 2000-01-23T04:56:07.000+00:00 + SharedScope: SharedScope + CreateTime: 2000-01-23T04:56:07.000+00:00 Cluster: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - ClassId: hyperflex.Volume + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector VolumeAccessMode: ReadWriteOnce - ObjectType: hyperflex.Volume Uuid: Uuid - VolumeType: VolumeType SerialNumber: SerialNumber - Capacity: 0 LunUuid: LunUuid LastModifiedTime: 2000-01-23T04:56:07.000+00:00 - ClientId: ClientId + Moid: Moid VolumeMode: Block - StorageContainer: - ObjectType: aaa.AuditRecord - link: link - Moid: Moid - ClassId: mo.MoRef - Selector: Selector title: Hyperflex:Volume x-allOf-name: hyperflex.Volume hyperflex.Volume.List: @@ -832520,16 +853946,69 @@ components: type: object description: Endpoint User or Local User. example: - ObjectType: iam.EndPointUserInventory - TargetMo: - ObjectType: aaa.AuditRecord + SharedScope: SharedScope + Parent: null + CreateTime: 2000-01-23T04:56:07.000+00:00 + ClassId: iam.EndPointUserInventory + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + AccountMoid: AccountMoid + DeviceMoId: DeviceMoId + Ancestors: + - ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - UserId: UserId - ClassId: iam.EndPointUserInventory + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Owners: + - Owners + - Owners Name: Name + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: iam.EndPointUserInventory + TargetMo: null + UserId: UserId + Moid: Moid + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key EndPointUserRole: - ObjectType: aaa.AuditRecord link: link @@ -832641,13 +854120,72 @@ components: type: object description: Enables creation of local users on endpoints. example: - ObjectType: iam.EndPointUserPolicy + Description: Description Organization: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + SharedScope: SharedScope + Parent: null + CreateTime: 2000-01-23T04:56:07.000+00:00 + ClassId: iam.EndPointUserPolicy + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + PasswordProperties: + ForceSendPassword: false + ObjectType: iam.EndPointPasswordProperties + PasswordExpiryDuration: 535 + NotificationPeriod: 9 + ClassId: iam.EndPointPasswordProperties + EnforceStrongPassword: true + GracePeriod: 0 + PasswordHistory: 2 + EnablePasswordExpiry: false + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Owners: + - Owners + - Owners + Name: Name + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: iam.EndPointUserPolicy EndPointUserRoles: - ObjectType: aaa.AuditRecord link: link @@ -832670,17 +854208,17 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector - ClassId: iam.EndPointUserPolicy - PasswordProperties: - ForceSendPassword: false - ObjectType: iam.EndPointPasswordProperties - PasswordExpiryDuration: 535 - NotificationPeriod: 9 - ClassId: iam.EndPointPasswordProperties - EnforceStrongPassword: true - GracePeriod: 0 - PasswordHistory: 2 - EnablePasswordExpiry: false + Moid: Moid + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key title: Local User x-allOf-name: iam.EndPointUserPolicy iam.EndPointUserPolicy.List: @@ -832777,13 +854315,68 @@ components: type: object description: Enables creation of local users on endpoints. example: - ObjectType: iam.EndPointUserPolicyInventory - TargetMo: - ObjectType: aaa.AuditRecord + Description: Description + SharedScope: SharedScope + Parent: null + CreateTime: 2000-01-23T04:56:07.000+00:00 + ClassId: iam.EndPointUserPolicyInventory + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + PasswordProperties: + ForceSendPassword: false + ObjectType: iam.EndPointPasswordProperties + PasswordExpiryDuration: 535 + NotificationPeriod: 9 + ClassId: iam.EndPointPasswordProperties + EnforceStrongPassword: true + GracePeriod: 0 + PasswordHistory: 2 + EnablePasswordExpiry: false + AccountMoid: AccountMoid + DeviceMoId: DeviceMoId + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + Owners: + - Owners + - Owners + Name: Name + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: iam.EndPointUserPolicyInventory + TargetMo: null EndPointUserRoles: - ObjectType: aaa.AuditRecord link: link @@ -832795,17 +854388,17 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector - ClassId: iam.EndPointUserPolicyInventory - PasswordProperties: - ForceSendPassword: false - ObjectType: iam.EndPointPasswordProperties - PasswordExpiryDuration: 535 - NotificationPeriod: 9 - ClassId: iam.EndPointPasswordProperties - EnforceStrongPassword: true - GracePeriod: 0 - PasswordHistory: 2 - EnablePasswordExpiry: false + Moid: Moid + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key title: Local User x-allOf-name: iam.EndPointUserPolicyInventory iam.EndPointUserPolicyInventory.List: @@ -833146,7 +854739,6 @@ components: description: Mapping of endpoint user to endpoint roles. example: ChangePassword: true - ObjectType: iam.EndPointUserRoleInventory IsPasswordSet: false EndPointRole: - ObjectType: aaa.AuditRecord @@ -833159,20 +854751,79 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector + SharedScope: SharedScope + Parent: null + CreateTime: 2000-01-23T04:56:07.000+00:00 Enabled: true ClassId: iam.EndPointUserRoleInventory + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null EndPointUser: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + AccountMoid: AccountMoid + DeviceMoId: DeviceMoId + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Owners: + - Owners + - Owners + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: iam.EndPointUserRoleInventory + Moid: Moid EndPointUserPolicy: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key Password: Password title: Iam:End Point User Role Inventory x-allOf-name: iam.EndPointUserRoleInventory @@ -834963,20 +856614,56 @@ components: type: object description: LDAP Policy configurations. example: - ObjectType: iam.LdapPolicy - ApplianceAccount: + Description: Description + Organization: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - Organization: - ObjectType: aaa.AuditRecord + Parent: null + ClassId: iam.LdapPolicy + Providers: + - ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - UserSearchPrecedence: LocalUserDb + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + EnableDns: true + Owners: + - Owners + - Owners + Name: Name + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: iam.LdapPolicy Groups: - ObjectType: aaa.AuditRecord link: link @@ -834999,15 +856686,37 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector - Enabled: true - ClassId: iam.LdapPolicy DnsParameters: ObjectType: iam.LdapDnsParameters SearchForest: SearchForest SearchDomain: SearchDomain ClassId: iam.LdapDnsParameters Source: Extracted - Providers: + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key + ApplianceAccount: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + SharedScope: SharedScope + CreateTime: 2000-01-23T04:56:07.000+00:00 + Enabled: true + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + AccountMoid: AccountMoid + Ancestors: - ObjectType: aaa.AuditRecord link: link Moid: Moid @@ -835018,7 +856727,8 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector - EnableDns: true + UserSearchPrecedence: LocalUserDb + Moid: Moid BaseProperties: IsPasswordSet: false Attribute: Attribute @@ -838440,24 +860150,50 @@ components: \ a session object is created. Session object is deleted upon logout, idle\ \ timeout, expiry timeout, or manual deletion." example: - LastLoginClient: LastLoginClient - ObjectType: iam.Session - LastLoginTime: 2000-01-23T04:56:07.000+00:00 User: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - IdleTimeExpiration: 2000-01-23T04:56:07.000+00:00 - Expiration: 2000-01-23T04:56:07.000+00:00 + EndTime: 2000-01-23T04:56:07.000+00:00 + Parent: null + ClassId: iam.Session + Owners: + - Owners + - Owners + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: iam.Session + ClientIpAddress: ClientIpAddress Permission: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - ClassId: iam.Session AccountPermissions: - ObjectType: iam.AccountPermissions AccountStatus: AccountStatus @@ -838507,8 +860243,44 @@ components: ClassId: iam.AccountTags Key: Key AccountName: AccountName + DisplayNames: + key: + - DisplayNames + - DisplayNames FailedLogins: 0 + ModTime: 2000-01-23T04:56:07.000+00:00 SessionId: SessionId + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key + Status: Active + SharedScope: SharedScope + CreateTime: 2000-01-23T04:56:07.000+00:00 + IdleTimeExpiration: 2000-01-23T04:56:07.000+00:00 + Expiration: 2000-01-23T04:56:07.000+00:00 + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Role: Role + LastLoginClient: LastLoginClient + LastLoginTime: 2000-01-23T04:56:07.000+00:00 + Moid: Moid + UserIdOrEmail: UserIdOrEmail title: Iam:Session x-allOf-name: iam.Session iam.Session.List: @@ -840517,7 +862289,9 @@ components: description: Common GPU configuration on a compute resource (BM or VM). example: ObjectType: infra.GpuConfiguration - MemorySize: 1 + MemorySize: 5 + DeviceId: 1 + VendorId: 5 ClassId: infra.GpuConfiguration title: Infra:Base Gpu Configuration x-allOf-name: infra.BaseGpuConfiguration @@ -840619,6 +862393,12 @@ components: - ObjectType type: object description: "Information about the hardware platform (cpu, memory)." + example: + ObjectType: infra.HardwareInfo + MemorySize: 1 + CpuCores: 0 + ClassId: infra.HardwareInfo + CpuSpeed: 6 nullable: true title: Infra:Hardware Info x-allOf-name: infra.HardwareInfo @@ -841086,7 +862866,90 @@ components: - $ref: '#/components/schemas/policyinventory.AbstractDeviceInfo' description: Information pertaining to a Registered Device in starship which is pertinent to Inventory Microservice. - example: {} + example: + RegisteredDevice: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ConfigState: ConfigState + OperState: OperState + SharedScope: SharedScope + Parent: null + CreateTime: 2000-01-23T04:56:07.000+00:00 + ErrorState: ErrorState + ClassId: inventory.DeviceInfo + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Owners: + - Owners + - Owners + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: inventory.DeviceInfo + JobInfo: + - ObjectType: policyinventory.JobInfo + ExecutionStatus: Scheduled + PolicyName: PolicyName + ClassId: policyinventory.JobInfo + PolicyId: PolicyId + LastScheduledTime: 2000-01-23T04:56:07.000+00:00 + - ObjectType: policyinventory.JobInfo + ExecutionStatus: Scheduled + PolicyName: PolicyName + ClassId: policyinventory.JobInfo + PolicyId: PolicyId + LastScheduledTime: 2000-01-23T04:56:07.000+00:00 + Moid: Moid + ProfileMoId: ProfileMoId + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + ControlAction: ControlAction + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key title: Inventory:Device Info x-allOf-name: inventory.DeviceInfo inventory.DeviceInfo.List: @@ -841354,28 +863217,88 @@ components: description: Any inventory which is represented as a key / value pair. Example - moInvKv in UCSM representing OS tools running on ESX. example: - ObjectType: inventory.GenericInventory - Type: Type RegisteredDevice: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + SharedScope: SharedScope + Parent: null InventoryDeviceInfo: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + CreateTime: 2000-01-23T04:56:07.000+00:00 + ClassId: inventory.GenericInventory + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + Dn: Dn + AccountMoid: AccountMoid + DeviceMoId: DeviceMoId + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Owners: + - Owners + - Owners + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: inventory.GenericInventory + Type: Type Value: Value + Moid: Moid InventoryGenericInventoryHolder: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - ClassId: inventory.GenericInventory + DisplayNames: + key: + - DisplayNames + - DisplayNames + Rn: Rn + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key Key: Key title: Inventory:Generic Inventory x-allOf-name: inventory.GenericInventory @@ -841481,44 +863404,104 @@ components: type: object description: A container class for generic inventory. example: - GenericInventory: - - ObjectType: aaa.AuditRecord + RegisteredDevice: + ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - - ObjectType: aaa.AuditRecord + SharedScope: SharedScope + Parent: null + InventoryDeviceInfo: + ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - ObjectType: inventory.GenericInventoryHolder - RegisteredDevice: + ComputeBlade: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - Endpoint: Endpoint - InventoryDeviceInfo: + CreateTime: 2000-01-23T04:56:07.000+00:00 + ClassId: inventory.GenericInventoryHolder + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + Dn: Dn + ComputeRackUnit: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - ComputeBlade: - ObjectType: aaa.AuditRecord + AccountMoid: AccountMoid + DeviceMoId: DeviceMoId + Ancestors: + - ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - ClassId: inventory.GenericInventoryHolder - ComputeRackUnit: - ObjectType: aaa.AuditRecord + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Owners: + - Owners + - Owners + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + GenericInventory: + - ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ObjectType: inventory.GenericInventoryHolder + Endpoint: Endpoint + Moid: Moid + DisplayNames: + key: + - DisplayNames + - DisplayNames + Rn: Rn + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key title: Inventory:Generic Inventory Holder x-allOf-name: inventory.GenericInventoryHolder inventory.GenericInventoryHolder.List: @@ -841910,13 +863893,64 @@ components: type: object description: Intelligent Platform Management Interface Over LAN Policy. example: - ObjectType: ipmioverlan.Policy + Description: Description Organization: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + SharedScope: SharedScope + Parent: null + CreateTime: 2000-01-23T04:56:07.000+00:00 + Enabled: true + ClassId: ipmioverlan.Policy + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + EncryptionKey: EncryptionKey + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Owners: + - Owners + - Owners + Name: Name + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: ipmioverlan.Policy Profiles: - ObjectType: aaa.AuditRecord link: link @@ -841928,10 +863962,18 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector - Enabled: true - ClassId: ipmioverlan.Policy - EncryptionKey: EncryptionKey + Moid: Moid + DisplayNames: + key: + - DisplayNames + - DisplayNames Privilege: admin + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key IsEncryptionKeySet: false title: IPMI Over LAN x-allOf-name: ipmioverlan.Policy @@ -842050,17 +864092,72 @@ components: type: object description: Intelligent Platform Management Interface Over LAN Policy. example: - ObjectType: ipmioverlan.PolicyInventory - TargetMo: - ObjectType: aaa.AuditRecord + Description: Description + SharedScope: SharedScope + Parent: null + CreateTime: 2000-01-23T04:56:07.000+00:00 + Enabled: true + ClassId: ipmioverlan.PolicyInventory + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + EncryptionKey: EncryptionKey + AccountMoid: AccountMoid + DeviceMoId: DeviceMoId + Ancestors: + - ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - Enabled: true - ClassId: ipmioverlan.PolicyInventory - EncryptionKey: EncryptionKey + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Owners: + - Owners + - Owners + Name: Name + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: ipmioverlan.PolicyInventory + TargetMo: null + Moid: Moid + DisplayNames: + key: + - DisplayNames + - DisplayNames Privilege: admin + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key IsEncryptionKeySet: false title: IPMI Over LAN x-allOf-name: ipmioverlan.PolicyInventory @@ -842171,33 +864268,81 @@ components: description: BlockLease represents an IP address that is allocated from a pool to a specific entity like server profile. example: - ObjectType: ippool.BlockLease + SharedScope: SharedScope + Parent: null IpType: IPv4 - AssignedToEntity: + CreateTime: 2000-01-23T04:56:07.000+00:00 + AssignedToEntity: null + Universe: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - Universe: + ClassId: ippool.BlockLease + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + Count: 1 + Vrf: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - ClassId: ippool.BlockLease - Pool: - ObjectType: aaa.AuditRecord + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - Vrf: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Owners: + - Owners + - Owners + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: ippool.BlockLease + Moid: Moid + Pool: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 IpLeases: - ObjectType: aaa.AuditRecord link: link @@ -842209,6 +864354,11 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key title: Ippool:Block Lease x-allOf-name: ippool.BlockLease ippool.BlockLease.List: @@ -842344,7 +864494,69 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector + Parent: null IpType: IPv4 + AllocationType: dynamic + ClassId: ippool.IpLease + Vrf: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Owners: + - Owners + - Owners + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: ippool.IpLease + Reservation: + ObjectType: ippool.ReservationReference + ReservationMoid: ReservationMoid + ConsumerName: ConsumerName + ClassId: ippool.ReservationReference + ConsumerType: OutofbandIpv4-Access + Pool: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key + HasDuplicate: false + SharedScope: SharedScope + CreateTime: 2000-01-23T04:56:07.000+00:00 IpV4Config: ObjectType: ippool.IpV4Config PrimaryDns: PrimaryDns @@ -842353,27 +864565,30 @@ components: Netmask: Netmask SecondaryDns: SecondaryDns IpV6Address: IpV6Address - AssignedToEntity: + AssignedToEntity: null + Universe: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - Universe: - ObjectType: aaa.AuditRecord + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + IpV4Address: IpV4Address + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - ClassId: ippool.IpLease - Vrf: - ObjectType: aaa.AuditRecord + - ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - IpV4Address: IpV4Address - ObjectType: ippool.IpLease IpV6Config: ObjectType: ippool.IpV6Config PrimaryDns: PrimaryDns @@ -842381,17 +864596,7 @@ components: ClassId: ippool.IpV6Config Prefix: 10 SecondaryDns: SecondaryDns - Reservation: - ObjectType: ippool.ReservationReference - ConsumerName: ConsumerName - ClassId: ippool.ReservationReference - ConsumerType: OutofbandIpv4-Access - Pool: - ObjectType: aaa.AuditRecord - link: link - Moid: Moid - ClassId: mo.MoRef - Selector: Selector + Moid: Moid PoolMember: ObjectType: aaa.AuditRecord link: link @@ -842466,6 +864671,7 @@ components: description: A block of IPv4 addresses. example: ObjectType: ippool.IpV4Block + Size: 610 IpV4Config: ObjectType: ippool.IpV4Config PrimaryDns: PrimaryDns @@ -842598,6 +864804,7 @@ components: ClassId: ippool.IpV6Config Prefix: 10 SecondaryDns: SecondaryDns + Size: 577 ClassId: ippool.IpV6Block From: From To: To @@ -842788,35 +864995,45 @@ components: description: Pool represents a collection of IPv4 and/or IPv6 addresses that can be allocated to other configuration entities like server profiles. example: - V6Size: 5 + Description: Description Organization: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + Parent: null EnableBlockLevelSubnetConfig: true - V6Assigned: 1 - IpV4Config: - ObjectType: ippool.IpV4Config - PrimaryDns: PrimaryDns - Gateway: Gateway - ClassId: ippool.IpV4Config - Netmask: Netmask - SecondaryDns: SecondaryDns - ShadowPools: - - ObjectType: aaa.AuditRecord - link: link - Moid: Moid - ClassId: mo.MoRef - Selector: Selector - - ObjectType: aaa.AuditRecord - link: link - Moid: Moid - ClassId: mo.MoRef - Selector: Selector + Size: 1 ClassId: ippool.Pool - V4Assigned: 0 + Owners: + - Owners + - Owners + Name: Name + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified IpV6Blocks: - ObjectType: ippool.IpV6Block IpV6Config: @@ -842826,6 +865043,7 @@ components: ClassId: ippool.IpV6Config Prefix: 10 SecondaryDns: SecondaryDns + Size: 577 ClassId: ippool.IpV6Block From: From To: To @@ -842837,17 +865055,11 @@ components: ClassId: ippool.IpV6Config Prefix: 10 SecondaryDns: SecondaryDns + Size: 577 ClassId: ippool.IpV6Block From: From To: To ObjectType: ippool.Pool - IpV6Config: - ObjectType: ippool.IpV6Config - PrimaryDns: PrimaryDns - Gateway: Gateway - ClassId: ippool.IpV6Config - Prefix: 10 - SecondaryDns: SecondaryDns Reservations: - ObjectType: aaa.AuditRecord link: link @@ -842861,6 +865073,7 @@ components: Selector: Selector IpV4Blocks: - ObjectType: ippool.IpV4Block + Size: 610 IpV4Config: ObjectType: ippool.IpV4Config PrimaryDns: PrimaryDns @@ -842872,6 +865085,7 @@ components: From: From To: To - ObjectType: ippool.IpV4Block + Size: 610 IpV4Config: ObjectType: ippool.IpV4Config PrimaryDns: PrimaryDns @@ -842882,7 +865096,67 @@ components: ClassId: ippool.IpV4Block From: From To: To - V4Size: 6 + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key + Assigned: 0 + V6Size: 3 + SharedScope: SharedScope + CreateTime: 2000-01-23T04:56:07.000+00:00 + V6Assigned: 9 + IpV4Config: + ObjectType: ippool.IpV4Config + PrimaryDns: PrimaryDns + Gateway: Gateway + ClassId: ippool.IpV4Config + Netmask: Netmask + SecondaryDns: SecondaryDns + ShadowPools: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + AssignmentOrder: sequential + V4Assigned: 2 + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + IpV6Config: + ObjectType: ippool.IpV6Config + PrimaryDns: PrimaryDns + Gateway: Gateway + ClassId: ippool.IpV6Config + Prefix: 10 + SecondaryDns: SecondaryDns + Moid: Moid + V4Size: 7 + Reserved: 6 title: Ippool:Pool x-allOf-name: ippool.Pool ippool.Pool.List: @@ -843002,6 +865276,36 @@ components: description: PoolMember represents a single IPv4 and or IPv6 address that is part of a pool. example: + Parent: null + IpType: IPv4 + ClassId: ippool.PoolMember + Owners: + - Owners + - Owners + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified ObjectType: ippool.PoolMember Reservation: ObjectType: aaa.AuditRecord @@ -843009,34 +865313,59 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector - IpType: IPv4 - Peer: + Pool: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - IpV6Address: IpV6Address - AssignedToEntity: + DisplayNames: + key: + - DisplayNames + - DisplayNames + IpBlock: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - ClassId: ippool.PoolMember - Pool: + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key + Assigned: false + SharedScope: SharedScope + CreateTime: 2000-01-23T04:56:07.000+00:00 + Peer: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + IpV6Address: IpV6Address + AssignedByAnother: false + AssignedToEntity: null + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null IpV4Address: IpV4Address - IpBlock: - ObjectType: aaa.AuditRecord + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Moid: Moid + Reserved: false title: Ippool:Pool Member x-allOf-name: ippool.PoolMember ippool.PoolMember.List: @@ -843181,6 +865510,7 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector + Parent: null IpType: IPv4 VrfMoid: VrfMoid ShadowPool: @@ -843189,13 +865519,7 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector - IpV6Address: IpV6Address - Universe: - ObjectType: aaa.AuditRecord - link: link - Moid: Moid - ClassId: mo.MoRef - Selector: Selector + AllocationType: dynamic ClassId: ippool.Reservation Vrf: ObjectType: aaa.AuditRecord @@ -843203,7 +865527,33 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector - IpV4Address: IpV4Address + Owners: + - Owners + - Owners + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified ObjectType: ippool.Reservation Pool: ObjectType: aaa.AuditRecord @@ -843211,7 +865561,44 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector + DisplayNames: + key: + - DisplayNames + - DisplayNames Identity: Identity + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key + SharedScope: SharedScope + CreateTime: 2000-01-23T04:56:07.000+00:00 + IpV6Address: IpV6Address + Universe: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + IpV4Address: IpV4Address + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Moid: Moid PoolMember: ObjectType: aaa.AuditRecord link: link @@ -843292,6 +865679,7 @@ components: description: The reference to the reservation object. example: ObjectType: ippool.ReservationReference + ReservationMoid: ReservationMoid ConsumerName: ConsumerName ClassId: ippool.ReservationReference ConsumerType: OutofbandIpv4-Access @@ -843383,10 +865771,66 @@ components: type: object description: A block of Contiguous IP addresses that are part of a shadow pool. example: - ObjectType: ippool.ShadowBlock + SharedScope: SharedScope + Parent: null IpType: IPv4 + CreateTime: 2000-01-23T04:56:07.000+00:00 + ClassId: ippool.ShadowBlock + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + NextIdAllocator: 6 + Vrf: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + AccountMoid: AccountMoid + FreeBlockCount: 0 + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Owners: + - Owners + - Owners + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: ippool.ShadowBlock IpV4Block: ObjectType: ippool.IpV4Block + Size: 610 IpV4Config: ObjectType: ippool.IpV4Config PrimaryDns: PrimaryDns @@ -843397,6 +865841,7 @@ components: ClassId: ippool.IpV4Block From: From To: To + Moid: Moid Reservations: - ObjectType: aaa.AuditRecord link: link @@ -843408,19 +865853,22 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector - ClassId: ippool.ShadowBlock Pool: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - Vrf: - ObjectType: aaa.AuditRecord - link: link - Moid: Moid - ClassId: mo.MoRef - Selector: Selector + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key IpV6Block: ObjectType: ippool.IpV6Block IpV6Config: @@ -843430,6 +865878,7 @@ components: ClassId: ippool.IpV6Config Prefix: 10 SecondaryDns: SecondaryDns + Size: 577 ClassId: ippool.IpV6Block From: From To: To @@ -843573,7 +866022,6 @@ components: description: "Shadow Pool is a tracking object created on behalf of an IP pool,\ \ for each VRF." example: - V6Size: 5 IpBlockHeads: - ObjectType: aaa.AuditRecord link: link @@ -843585,14 +866033,9 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector - V6Assigned: 1 - IpV4Config: - ObjectType: ippool.IpV4Config - PrimaryDns: PrimaryDns - Gateway: Gateway - ClassId: ippool.IpV4Config - Netmask: Netmask - SecondaryDns: SecondaryDns + Description: Description + Parent: null + Size: 1 ClassId: ippool.ShadowPool Vrf: ObjectType: aaa.AuditRecord @@ -843600,7 +866043,34 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector - V4Assigned: 0 + Owners: + - Owners + - Owners + Name: Name + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified IpV6Blocks: - ObjectType: ippool.IpV6Block IpV6Config: @@ -843610,6 +866080,7 @@ components: ClassId: ippool.IpV6Config Prefix: 10 SecondaryDns: SecondaryDns + Size: 577 ClassId: ippool.IpV6Block From: From To: To @@ -843621,17 +866092,11 @@ components: ClassId: ippool.IpV6Config Prefix: 10 SecondaryDns: SecondaryDns + Size: 577 ClassId: ippool.IpV6Block From: From To: To ObjectType: ippool.ShadowPool - IpV6Config: - ObjectType: ippool.IpV6Config - PrimaryDns: PrimaryDns - Gateway: Gateway - ClassId: ippool.IpV6Config - Prefix: 10 - SecondaryDns: SecondaryDns Reservations: - ObjectType: aaa.AuditRecord link: link @@ -843651,6 +866116,7 @@ components: Selector: Selector IpV4Blocks: - ObjectType: ippool.IpV4Block + Size: 610 IpV4Config: ObjectType: ippool.IpV4Config PrimaryDns: PrimaryDns @@ -843662,6 +866128,7 @@ components: From: From To: To - ObjectType: ippool.IpV4Block + Size: 610 IpV4Config: ObjectType: ippool.IpV4Config PrimaryDns: PrimaryDns @@ -843672,7 +866139,56 @@ components: ClassId: ippool.IpV4Block From: From To: To - V4Size: 6 + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key + Assigned: 0 + V6Size: 7 + SharedScope: SharedScope + CreateTime: 2000-01-23T04:56:07.000+00:00 + V6Assigned: 2 + IpV4Config: + ObjectType: ippool.IpV4Config + PrimaryDns: PrimaryDns + Gateway: Gateway + ClassId: ippool.IpV4Config + Netmask: Netmask + SecondaryDns: SecondaryDns + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + AssignmentOrder: sequential + V4Assigned: 5 + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + IpV6Config: + ObjectType: ippool.IpV6Config + PrimaryDns: PrimaryDns + Gateway: Gateway + ClassId: ippool.IpV6Config + Prefix: 10 + SecondaryDns: SecondaryDns + Moid: Moid + V4Size: 5 + Reserved: 6 title: Ippool:Shadow Pool x-allOf-name: ippool.ShadowPool ippool.ShadowPool.List: @@ -843921,13 +866437,65 @@ components: type: object description: A block of contiguous IQNs that are part of a pool. example: + SharedScope: SharedScope + Parent: null + CreateTime: 2000-01-23T04:56:07.000+00:00 + ClassId: iqnpool.Block + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + NextIdAllocator: 6 + Prefix: Prefix + AccountMoid: AccountMoid + FreeBlockCount: 0 + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Owners: + - Owners + - Owners + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified ObjectType: iqnpool.Block IqnSuffixBlock: ObjectType: iqnpool.IqnSuffixBlock Suffix: Suffix + Size: 150 ClassId: iqnpool.IqnSuffixBlock From: 0 - To: 6 + To: 5 + Moid: Moid Reservations: - ObjectType: aaa.AuditRecord link: link @@ -843939,14 +866507,22 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector - ClassId: iqnpool.Block Pool: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - Prefix: Prefix + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key title: Iqnpool:Block x-allOf-name: iqnpool.Block iqnpool.Block.List: @@ -844018,9 +866594,10 @@ components: example: ObjectType: iqnpool.IqnSuffixBlock Suffix: Suffix + Size: 150 ClassId: iqnpool.IqnSuffixBlock From: 0 - To: 6 + To: 5 title: Iqnpool:Iqn Suffix Block x-allOf-name: iqnpool.IqnSuffixBlock iqnpool.Lease.Response: @@ -844121,37 +866698,94 @@ components: description: "Lease represents a single IQN address that is part of the universe,\ \ allocated either from a pool or through static assignment." example: + Parent: null + AllocationType: dynamic + ClassId: iqnpool.Lease + Owners: + - Owners + - Owners + IqnSuffix: IqnSuffix + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified ObjectType: iqnpool.Lease - Reservation: {} + Reservation: + ObjectType: fcpool.ReservationReference + ReservationMoid: ReservationMoid + ClassId: fcpool.ReservationReference IqnPrefix: IqnPrefix IqnAddress: IqnAddress - AssignedToEntity: + Pool: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + DisplayNames: + key: + - DisplayNames + - DisplayNames + IqnNumber: 0 + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key + HasDuplicate: false + SharedScope: SharedScope + CreateTime: 2000-01-23T04:56:07.000+00:00 + AssignedToEntity: null Universe: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - ClassId: iqnpool.Lease - Pool: - ObjectType: aaa.AuditRecord + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - IqnNumber: 0 + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Moid: Moid PoolMember: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - IqnSuffix: IqnSuffix title: Iqnpool:Lease x-allOf-name: iqnpool.Lease iqnpool.Lease.List: @@ -844262,6 +866896,58 @@ components: description: Pool represents a collection of iSCSI Qualified Names (IQNs) for use as initiator identifiers by iSCSI vNICs. example: + Description: Description + Organization: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Parent: null + Size: 1 + ClassId: iqnpool.Pool + IqnSuffixBlocks: + - ObjectType: iqnpool.IqnSuffixBlock + Suffix: Suffix + Size: 150 + ClassId: iqnpool.IqnSuffixBlock + From: 0 + To: 5 + - ObjectType: iqnpool.IqnSuffixBlock + Suffix: Suffix + Size: 150 + ClassId: iqnpool.IqnSuffixBlock + From: 0 + To: 5 + Prefix: Prefix + Owners: + - Owners + - Owners + Name: Name + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified ObjectType: iqnpool.Pool BlockHeads: - ObjectType: aaa.AuditRecord @@ -844274,13 +866960,37 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector - Organization: - ObjectType: aaa.AuditRecord + Reservations: + - ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - Reservations: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key + Assigned: 0 + SharedScope: SharedScope + CreateTime: 2000-01-23T04:56:07.000+00:00 + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + AssignmentOrder: sequential + AccountMoid: AccountMoid + Ancestors: - ObjectType: aaa.AuditRecord link: link Moid: Moid @@ -844291,19 +867001,8 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector - ClassId: iqnpool.Pool - IqnSuffixBlocks: - - ObjectType: iqnpool.IqnSuffixBlock - Suffix: Suffix - ClassId: iqnpool.IqnSuffixBlock - From: 0 - To: 6 - - ObjectType: iqnpool.IqnSuffixBlock - Suffix: Suffix - ClassId: iqnpool.IqnSuffixBlock - From: 0 - To: 6 - Prefix: Prefix + Moid: Moid + Reserved: 6 title: Iqnpool:Pool x-allOf-name: iqnpool.Pool iqnpool.Pool.List: @@ -844426,6 +867125,36 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector + Parent: null + ClassId: iqnpool.PoolMember + Owners: + - Owners + - Owners + IqnSuffix: IqnSuffix + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified ObjectType: iqnpool.PoolMember Reservation: ObjectType: aaa.AuditRecord @@ -844434,28 +867163,53 @@ components: ClassId: mo.MoRef Selector: Selector IqnPrefix: IqnPrefix - Peer: + IqnAddress: IqnAddress + Pool: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - IqnAddress: IqnAddress - AssignedToEntity: + DisplayNames: + key: + - DisplayNames + - DisplayNames + IqnNumber: 0 + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key + Assigned: false + SharedScope: SharedScope + CreateTime: 2000-01-23T04:56:07.000+00:00 + Peer: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - ClassId: iqnpool.PoolMember - Pool: - ObjectType: aaa.AuditRecord + AssignedByAnother: false + AssignedToEntity: null + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - IqnNumber: 0 - IqnSuffix: IqnSuffix + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Moid: Moid + Reserved: false title: Iqnpool:Pool Member x-allOf-name: iqnpool.PoolMember iqnpool.PoolMember.List: @@ -844575,42 +867329,100 @@ components: type: object description: "The IQN reservation object, used to hold reserved identity." example: - ObjectType: iqnpool.Reservation Organization: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + Parent: null + AllocationType: dynamic + ClassId: iqnpool.Reservation + Owners: + - Owners + - Owners + IqnSuffix: IqnSuffix + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: iqnpool.Reservation IqnPrefix: IqnPrefix - Block: + Pool: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + DisplayNames: + key: + - DisplayNames + - DisplayNames + Identity: Identity + IqnNumber: 0 + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key + SharedScope: SharedScope + CreateTime: 2000-01-23T04:56:07.000+00:00 Universe: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - ClassId: iqnpool.Reservation - Pool: + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Moid: Moid + Block: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - Identity: Identity - IqnNumber: 0 PoolMember: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - IqnSuffix: IqnSuffix title: Iqnpool:Reservation x-allOf-name: iqnpool.Reservation iqnpool.Reservation.List: @@ -844638,7 +867450,10 @@ components: allOf: - $ref: '#/components/schemas/pool.ReservationReference' description: The reference to the reservation object. - example: {} + example: + ObjectType: fcpool.ReservationReference + ReservationMoid: ReservationMoid + ClassId: fcpool.ReservationReference title: Iqnpool:Reservation Reference x-allOf-name: iqnpool.ReservationReference iqnpool.Universe.Response: @@ -844795,6 +867610,9 @@ components: allOf: - $ref: '#/components/schemas/mo.BaseComplexType' description: Condition defines the set of criteria under which an issue exists. + example: + ObjectType: aaa.UserAgent + ClassId: aaa.UserAgent nullable: true title: Issue:Condition x-allOf-name: issue.Condition @@ -846185,31 +869003,100 @@ components: description: Configuration for an ACI CNI profile. example: InfraVlanId: 0 - L3OutNetworkName: L3OutNetworkName + Description: Description Organization: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - RegisteredDevice: - ObjectType: aaa.AuditRecord - link: link - Moid: Moid - ClassId: mo.MoRef - Selector: Selector + Parent: null AaepName: AaepName ClassId: kubernetes.AciCniProfile L3OutTenant: L3OutTenant Vrf: Vrf - ExtSvcDynSubnetStart: ExtSvcDynSubnetStart + Owners: + - Owners + - Owners + Name: Name + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified ObjectType: kubernetes.AciCniProfile NodeVlanRangeStart: 1 - NumberOfKubernetesClusters: 5 NodeSvcSubnetStart: NodeSvcSubnetStart ExtSvcStaticSubnetStart: ExtSvcStaticSubnetStart - L3OutPolicyName: L3OutPolicyName NodeVlanRangeEnd: 6 + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + PodSubnetStart: PodSubnetStart + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key + OpflexMulticastAddressRange: OpflexMulticastAddressRange + SvcSubnetStart: SvcSubnetStart + L3OutNetworkName: L3OutNetworkName + RegisteredDevice: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + SharedScope: SharedScope + CreateTime: 2000-01-23T04:56:07.000+00:00 + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + AccountMoid: AccountMoid + ExtSvcDynSubnetStart: ExtSvcDynSubnetStart + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Type: instance + NumberOfKubernetesClusters: 5 + SrcTemplate: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Moid: Moid + L3OutPolicyName: L3OutPolicyName ClusterProfiles: - ObjectType: aaa.AuditRecord link: link @@ -846232,10 +869119,7 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector - PodSubnetStart: PodSubnetStart NestedVmmDomain: NestedVmmDomain - OpflexMulticastAddressRange: OpflexMulticastAddressRange - SvcSubnetStart: SvcSubnetStart title: ACI Container Network Interface Profile x-allOf-name: kubernetes.AciCniProfile kubernetes.AciCniProfile.List: @@ -847153,13 +870037,62 @@ components: type: object description: A policy that defines which AddonDefinitions to use. example: - ObjectType: kubernetes.AddonPolicy + Description: Description Organization: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + SharedScope: SharedScope + Parent: null + CreateTime: 2000-01-23T04:56:07.000+00:00 + ClassId: kubernetes.AddonPolicy + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Owners: + - Owners + - Owners + Name: Name + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: kubernetes.AddonPolicy AddonConfiguration: ObjectType: kubernetes.AddonConfiguration OverrideSets: @@ -847177,7 +870110,17 @@ components: ClassId: kubernetes.AddonConfiguration InstallStrategy: None ReleaseName: ReleaseName - ClassId: kubernetes.AddonPolicy + Moid: Moid + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key AddonDefinition: ObjectType: aaa.AuditRecord link: link @@ -847533,35 +870476,171 @@ components: example: ObjectType: kubernetes.BaremetalNetworkInfo Ovsbonds: - - Interfaces: + - Addresses: + - Addresses + - Addresses + IpV4Configs: + - ObjectType: kubernetes.IpV4Config + Lease: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Ip: Ip + ClassId: kubernetes.IpV4Config + - ObjectType: kubernetes.IpV4Config + Lease: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Ip: Ip + ClassId: kubernetes.IpV4Config + Interfaces: - Interfaces - Interfaces ObjectType: kubernetes.OvsBond + Gateway: Gateway ClassId: kubernetes.OvsBond - Vlan: 0 - - Interfaces: + Routes: + - ObjectType: kubernetes.Route + ClassId: kubernetes.Route + To: To + Via: Via + - ObjectType: kubernetes.Route + ClassId: kubernetes.Route + To: To + Via: Via + Vlan: 1 + Mtu: 6 + Name: Name + - Addresses: + - Addresses + - Addresses + IpV4Configs: + - ObjectType: kubernetes.IpV4Config + Lease: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Ip: Ip + ClassId: kubernetes.IpV4Config + - ObjectType: kubernetes.IpV4Config + Lease: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Ip: Ip + ClassId: kubernetes.IpV4Config + Interfaces: - Interfaces - Interfaces ObjectType: kubernetes.OvsBond + Gateway: Gateway ClassId: kubernetes.OvsBond - Vlan: 0 + Routes: + - ObjectType: kubernetes.Route + ClassId: kubernetes.Route + To: To + Via: Via + - ObjectType: kubernetes.Route + ClassId: kubernetes.Route + To: To + Via: Via + Vlan: 1 + Mtu: 6 + Name: Name Ethernets: - - ObjectType: kubernetes.Ethernet + - Addresses: + - Addresses + - Addresses + IpV4Configs: + - ObjectType: kubernetes.IpV4Config + Lease: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Ip: Ip + ClassId: kubernetes.IpV4Config + - ObjectType: kubernetes.IpV4Config + Lease: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Ip: Ip + ClassId: kubernetes.IpV4Config + ObjectType: kubernetes.Ethernet ProviderName: ProviderName Matcher: ObjectType: kubernetes.EthernetMatcher Type: Name Value: Value ClassId: kubernetes.EthernetMatcher + Gateway: Gateway ClassId: kubernetes.Ethernet - - ObjectType: kubernetes.Ethernet + Routes: + - ObjectType: kubernetes.Route + ClassId: kubernetes.Route + To: To + Via: Via + - ObjectType: kubernetes.Route + ClassId: kubernetes.Route + To: To + Via: Via + Mtu: 0 + Name: Name + - Addresses: + - Addresses + - Addresses + IpV4Configs: + - ObjectType: kubernetes.IpV4Config + Lease: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Ip: Ip + ClassId: kubernetes.IpV4Config + - ObjectType: kubernetes.IpV4Config + Lease: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Ip: Ip + ClassId: kubernetes.IpV4Config + ObjectType: kubernetes.Ethernet ProviderName: ProviderName Matcher: ObjectType: kubernetes.EthernetMatcher Type: Name Value: Value ClassId: kubernetes.EthernetMatcher + Gateway: Gateway ClassId: kubernetes.Ethernet + Routes: + - ObjectType: kubernetes.Route + ClassId: kubernetes.Route + To: To + Via: Via + - ObjectType: kubernetes.Route + ClassId: kubernetes.Route + To: To + Via: Via + Mtu: 0 + Name: Name ClassId: kubernetes.BaremetalNetworkInfo nullable: true title: Kubernetes:Baremetal Network Info @@ -847627,48 +870706,317 @@ components: description: "A profile specifying configuration settings for a baremetal node.\ \ Users can do operations like Drain, Cordon, Rebuild on a node." example: - ObjectType: kubernetes.BaremetalNodeProfile - KubernetesNic: KubernetesNic + Action: No-op + Description: Description Server: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + Parent: null + ClassId: kubernetes.BaremetalNodeProfile + Owners: + - Owners + - Owners + Name: Name + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: kubernetes.BaremetalNodeProfile + Target: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + CloudProvider: noProvider + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key + ConfigContext: + ObjectType: policy.ConfigContext + ConfigStateSummary: None + ConfigState: ConfigState + OperState: OperState + ErrorState: ErrorState + ClassId: policy.ConfigContext + InconsistencyReason: + - InconsistencyReason + - InconsistencyReason + ConfigType: ConfigType + ControlAction: ControlAction + NodeGroup: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + KubernetesNic: KubernetesNic + SharedScope: SharedScope NetworkInfo: ObjectType: kubernetes.BaremetalNetworkInfo Ovsbonds: - - Interfaces: + - Addresses: + - Addresses + - Addresses + IpV4Configs: + - ObjectType: kubernetes.IpV4Config + Lease: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Ip: Ip + ClassId: kubernetes.IpV4Config + - ObjectType: kubernetes.IpV4Config + Lease: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Ip: Ip + ClassId: kubernetes.IpV4Config + Interfaces: - Interfaces - Interfaces ObjectType: kubernetes.OvsBond + Gateway: Gateway ClassId: kubernetes.OvsBond - Vlan: 0 - - Interfaces: + Routes: + - ObjectType: kubernetes.Route + ClassId: kubernetes.Route + To: To + Via: Via + - ObjectType: kubernetes.Route + ClassId: kubernetes.Route + To: To + Via: Via + Vlan: 1 + Mtu: 6 + Name: Name + - Addresses: + - Addresses + - Addresses + IpV4Configs: + - ObjectType: kubernetes.IpV4Config + Lease: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Ip: Ip + ClassId: kubernetes.IpV4Config + - ObjectType: kubernetes.IpV4Config + Lease: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Ip: Ip + ClassId: kubernetes.IpV4Config + Interfaces: - Interfaces - Interfaces ObjectType: kubernetes.OvsBond + Gateway: Gateway ClassId: kubernetes.OvsBond - Vlan: 0 + Routes: + - ObjectType: kubernetes.Route + ClassId: kubernetes.Route + To: To + Via: Via + - ObjectType: kubernetes.Route + ClassId: kubernetes.Route + To: To + Via: Via + Vlan: 1 + Mtu: 6 + Name: Name Ethernets: - - ObjectType: kubernetes.Ethernet + - Addresses: + - Addresses + - Addresses + IpV4Configs: + - ObjectType: kubernetes.IpV4Config + Lease: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Ip: Ip + ClassId: kubernetes.IpV4Config + - ObjectType: kubernetes.IpV4Config + Lease: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Ip: Ip + ClassId: kubernetes.IpV4Config + ObjectType: kubernetes.Ethernet ProviderName: ProviderName Matcher: ObjectType: kubernetes.EthernetMatcher Type: Name Value: Value ClassId: kubernetes.EthernetMatcher + Gateway: Gateway ClassId: kubernetes.Ethernet - - ObjectType: kubernetes.Ethernet + Routes: + - ObjectType: kubernetes.Route + ClassId: kubernetes.Route + To: To + Via: Via + - ObjectType: kubernetes.Route + ClassId: kubernetes.Route + To: To + Via: Via + Mtu: 0 + Name: Name + - Addresses: + - Addresses + - Addresses + IpV4Configs: + - ObjectType: kubernetes.IpV4Config + Lease: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Ip: Ip + ClassId: kubernetes.IpV4Config + - ObjectType: kubernetes.IpV4Config + Lease: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Ip: Ip + ClassId: kubernetes.IpV4Config + ObjectType: kubernetes.Ethernet ProviderName: ProviderName Matcher: ObjectType: kubernetes.EthernetMatcher Type: Name Value: Value ClassId: kubernetes.EthernetMatcher + Gateway: Gateway ClassId: kubernetes.Ethernet + Routes: + - ObjectType: kubernetes.Route + ClassId: kubernetes.Route + To: To + Via: Via + - ObjectType: kubernetes.Route + ClassId: kubernetes.Route + To: To + Via: Via + Mtu: 0 + Name: Name ClassId: kubernetes.BaremetalNetworkInfo - ClassId: kubernetes.BaremetalNodeProfile + CreateTime: 2000-01-23T04:56:07.000+00:00 + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Type: instance + ScheduledActions: + - ObjectType: policy.ScheduledAction + Action: Action + ClassId: policy.ScheduledAction + ProceedOnReboot: true + - ObjectType: policy.ScheduledAction + Action: Action + ClassId: policy.ScheduledAction + ProceedOnReboot: true + ConfigResult: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + SrcTemplate: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ActionParams: + - ObjectType: policy.ActionParam + Value: Value + ClassId: policy.ActionParam + Name: Name + - ObjectType: policy.ActionParam + Value: Value + ClassId: policy.ActionParam + Name: Name + Moid: Moid + PolicyBucket: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector title: Kubernetes:Baremetal Node Profile x-allOf-name: kubernetes.BaremetalNodeProfile kubernetes.BaremetalNodeProfile.List: @@ -848253,7 +871601,7 @@ components: description: Inventories a Kubernetes cluster state. A Cluster object is automatically created when a Kubernetes API server is configured for a cluster. example: - ObjectType: kubernetes.Cluster + Status: Unknown Organization: ObjectType: aaa.AuditRecord link: link @@ -848266,9 +871614,79 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector - KubeConfig: KubeConfig + SharedScope: SharedScope + Parent: null + CreateTime: 2000-01-23T04:56:07.000+00:00 ClassId: kubernetes.Cluster + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Owners: + - Owners + - Owners + Name: Name + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: kubernetes.Cluster + StorageClusters: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + KubeConfig: KubeConfig + Moid: Moid + DisplayNames: + key: + - DisplayNames + - DisplayNames ConnectionStatus: "" + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key RegisteredDevices: - ObjectType: aaa.AuditRecord link: link @@ -848901,12 +872319,15 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector + Action: No-op + Description: Description Organization: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + Parent: null LoadbalancerIpLeases: - ObjectType: aaa.AuditRecord link: link @@ -848925,6 +872346,34 @@ components: FailureReason: FailureReason ClassId: kubernetes.ActionInfo Name: Name + Owners: + - Owners + - Owners + Name: Name + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified ObjectType: kubernetes.ClusterProfile CertConfig: EtcdCert: EtcdCert @@ -848945,12 +872394,7 @@ components: ObjectType: kubernetes.Configuration KubeConfig: KubeConfig ClassId: kubernetes.Configuration - ParentSolutionProfile: - ObjectType: aaa.AuditRecord - link: link - Moid: Moid - ClassId: mo.MoRef - Selector: Selector + ParentSolutionProfile: null TrustedRegistries: ObjectType: aaa.AuditRecord link: link @@ -848968,6 +872412,28 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key + ConfigContext: + ObjectType: policy.ConfigContext + ConfigStateSummary: None + ConfigState: ConfigState + OperState: OperState + ErrorState: ErrorState + ClassId: policy.ConfigContext + InconsistencyReason: + - InconsistencyReason + - InconsistencyReason + ConfigType: ConfigType + ControlAction: ControlAction ContainerRuntimeProxyPolicy: ObjectType: aaa.AuditRecord link: link @@ -849049,12 +872515,18 @@ components: ClassId: kubernetes.ClusterManagementConfig LoadBalancerCount: 0 TacPasswd: TacPasswd + SharedScope: SharedScope + CreateTime: 2000-01-23T04:56:07.000+00:00 WorkflowInfo: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null NodeGroups: - ObjectType: aaa.AuditRecord link: link @@ -849066,6 +872538,28 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Type: instance + ScheduledActions: + - ObjectType: policy.ScheduledAction + Action: Action + ClassId: policy.ScheduledAction + ProceedOnReboot: true + - ObjectType: policy.ScheduledAction + Action: Action + ClassId: policy.ScheduledAction + ProceedOnReboot: true AciCniProfile: ObjectType: aaa.AuditRecord link: link @@ -849078,13 +872572,40 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector + SrcTemplate: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ActionParams: + - ObjectType: policy.ActionParam + Value: Value + ClassId: policy.ActionParam + Name: Name + - ObjectType: policy.ActionParam + Value: Value + ClassId: policy.ActionParam + Name: Name NetConfig: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + Moid: Moid ManagedMode: Provided + PolicyBucket: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector ContainerRuntimeConfig: ObjectType: aaa.AuditRecord link: link @@ -849232,8 +872753,28 @@ components: description: "The profile configuration (deploy, validation) results with the\ \ overall state and detailed result messages." example: - ObjectType: kubernetes.ConfigResult + ValidationState: ValidationState + ConfigState: ConfigState + SharedScope: SharedScope + Parent: null + CreateTime: 2000-01-23T04:56:07.000+00:00 ClassId: kubernetes.ConfigResult + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector Profile: ObjectType: aaa.AuditRecord link: link @@ -849251,6 +872792,77 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector + Owners: + - Owners + - Owners + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: kubernetes.ConfigResult + AppliedPolicies: + - ErrorMessages: + - ObjectType: policy.PolicyError + Type: none + Message: Message + ClassId: policy.PolicyError + - ObjectType: policy.PolicyError + Type: none + Message: Message + ClassId: policy.PolicyError + Status: ok + ObjectType: policy.PolicyStatus + Type: Type + Moid: Moid + ClassId: policy.PolicyStatus + Reason: Reason + - ErrorMessages: + - ObjectType: policy.PolicyError + Type: none + Message: Message + ClassId: policy.PolicyError + - ObjectType: policy.PolicyError + Type: none + Message: Message + ClassId: policy.PolicyError + Status: ok + ObjectType: policy.PolicyStatus + Type: Type + Moid: Moid + ClassId: policy.PolicyStatus + Reason: Reason + ConfigStage: ConfigStage + Moid: Moid + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key title: Kubernetes:Config Result x-allOf-name: kubernetes.ConfigResult kubernetes.ConfigResult.List: @@ -849337,14 +872949,85 @@ components: description: "The profile configuration (deploy, validation) results details\ \ information." example: + Context: + EntityType: EntityType + ObjectType: policy.ConfigResultContext + EntityName: EntityName + EntityData: "" + ParentType: ParentType + EntityMoid: EntityMoid + ClassId: policy.ConfigResultContext + ParentMoid: ParentMoid + Message: Message + SharedScope: SharedScope + Parent: null + CompletedTime: CompletedTime + CreateTime: 2000-01-23T04:56:07.000+00:00 + ClassId: kubernetes.ConfigResultEntry + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Owners: + - Owners + - Owners + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified ObjectType: kubernetes.ConfigResultEntry + Type: Type + OwnerId: OwnerId ConfigResult: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - ClassId: kubernetes.ConfigResultEntry + State: State + Moid: Moid + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key title: Kubernetes:Config Result Entry x-allOf-name: kubernetes.ConfigResultEntry kubernetes.ConfigResultEntry.List: @@ -849506,14 +873189,15 @@ components: description: "A policy specifying container runtime configuration, such as docker\ \ proxy, no proxy and bridge network IP." example: - ObjectType: kubernetes.ContainerRuntimePolicy - DockerBridgeNetworkCidr: DockerBridgeNetworkCidr + Description: Description Organization: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + SharedScope: SharedScope + Parent: null DockerHttpProxy: ObjectType: kubernetes.ProxyConfig IsPasswordSet: false @@ -849523,10 +873207,58 @@ components: ClassId: kubernetes.ProxyConfig Protocol: Protocol Password: Password + CreateTime: 2000-01-23T04:56:07.000+00:00 DockerNoProxy: - DockerNoProxy - DockerNoProxy ClassId: kubernetes.ContainerRuntimePolicy + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Owners: + - Owners + - Owners + Name: Name + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: kubernetes.ContainerRuntimePolicy + DockerBridgeNetworkCidr: DockerBridgeNetworkCidr + Moid: Moid ClusterProfiles: - ObjectType: aaa.AuditRecord link: link @@ -849538,6 +873270,10 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector + DisplayNames: + key: + - DisplayNames + - DisplayNames DockerHttpsProxy: ObjectType: kubernetes.ProxyConfig IsPasswordSet: false @@ -849547,6 +873283,12 @@ components: ClassId: kubernetes.ProxyConfig Protocol: Protocol Password: Password + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key title: Container Runtime x-allOf-name: kubernetes.ContainerRuntimePolicy kubernetes.ContainerRuntimePolicy.List: @@ -849638,14 +873380,81 @@ components: ClassId: kubernetes.DaemonSetStatus UpdatedNumberScheduled: UpdatedNumberScheduled NumberReady: 5 - ObjectType: kubernetes.DaemonSet RegisteredDevice: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + SharedScope: SharedScope + Parent: null + CreateTime: 2000-01-23T04:56:07.000+00:00 + Metadata: + ObjectType: kubernetes.ObjectMeta + Uuid: Uuid + CreationTimestamp: CreationTimestamp + ClassId: kubernetes.ObjectMeta + ResourceVersion: ResourceVersion + Namespace: Namespace + Name: Name ClassId: kubernetes.DaemonSet + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Owners: + - Owners + - Owners + Name: Name + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: kubernetes.DaemonSet + Uuid: Uuid + Moid: Moid + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key title: Kubernetes:Daemon Set x-allOf-name: kubernetes.DaemonSet kubernetes.DaemonSet.List: @@ -849827,14 +873636,81 @@ components: ClassId: kubernetes.DeploymentStatus AvailableReplicas: 0 Replicas: 5 - ObjectType: kubernetes.Deployment RegisteredDevice: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + SharedScope: SharedScope + Parent: null + CreateTime: 2000-01-23T04:56:07.000+00:00 + Metadata: + ObjectType: kubernetes.ObjectMeta + Uuid: Uuid + CreationTimestamp: CreationTimestamp + ClassId: kubernetes.ObjectMeta + ResourceVersion: ResourceVersion + Namespace: Namespace + Name: Name ClassId: kubernetes.Deployment + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Owners: + - Owners + - Owners + Name: Name + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: kubernetes.Deployment + Uuid: Uuid + Moid: Moid + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key title: Kubernetes:Deployment x-allOf-name: kubernetes.Deployment kubernetes.Deployment.List: @@ -850098,6 +873974,28 @@ components: type: object description: Configuration to apply to a Physical Network Interface Card. example: + Addresses: + - Addresses + - Addresses + IpV4Configs: + - ObjectType: kubernetes.IpV4Config + Lease: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Ip: Ip + ClassId: kubernetes.IpV4Config + - ObjectType: kubernetes.IpV4Config + Lease: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Ip: Ip + ClassId: kubernetes.IpV4Config ObjectType: kubernetes.Ethernet ProviderName: ProviderName Matcher: @@ -850105,7 +874003,19 @@ components: Type: Name Value: Value ClassId: kubernetes.EthernetMatcher + Gateway: Gateway ClassId: kubernetes.Ethernet + Routes: + - ObjectType: kubernetes.Route + ClassId: kubernetes.Route + To: To + Via: Via + - ObjectType: kubernetes.Route + ClassId: kubernetes.Route + To: To + Via: Via + Mtu: 0 + Name: Name title: Kubernetes:Ethernet x-allOf-name: kubernetes.Ethernet kubernetes.EthernetMatcher: @@ -850237,7 +874147,19 @@ components: type: object description: A policy specifying HTTP and HTTPS proxy configuration. example: - HttpProxy: + NoProxy: + - NoProxy + - NoProxy + Description: Description + Organization: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + SharedScope: SharedScope + Parent: null + HttpsProxy: ObjectType: kubernetes.ProxyConfig IsPasswordSet: false Username: Username @@ -850246,17 +874168,53 @@ components: ClassId: kubernetes.ProxyConfig Protocol: Protocol Password: Password - ObjectType: kubernetes.HttpProxyPolicy - NoProxy: - - NoProxy - - NoProxy - Organization: - ObjectType: aaa.AuditRecord + CreateTime: 2000-01-23T04:56:07.000+00:00 + ClassId: kubernetes.HttpProxyPolicy + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - HttpsProxy: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Owners: + - Owners + - Owners + Name: Name + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + HttpProxy: ObjectType: kubernetes.ProxyConfig IsPasswordSet: false Username: Username @@ -850265,7 +874223,18 @@ components: ClassId: kubernetes.ProxyConfig Protocol: Protocol Password: Password - ClassId: kubernetes.HttpProxyPolicy + ObjectType: kubernetes.HttpProxyPolicy + Moid: Moid + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key title: Http Proxy Policy x-allOf-name: kubernetes.HttpProxyPolicy kubernetes.HttpProxyPolicy.List: @@ -850355,14 +874324,81 @@ components: ObjectType: kubernetes.LoadBalancer ClassId: kubernetes.LoadBalancer ClassId: kubernetes.IngressStatus - ObjectType: kubernetes.Ingress RegisteredDevice: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + SharedScope: SharedScope + Parent: null + CreateTime: 2000-01-23T04:56:07.000+00:00 + Metadata: + ObjectType: kubernetes.ObjectMeta + Uuid: Uuid + CreationTimestamp: CreationTimestamp + ClassId: kubernetes.ObjectMeta + ResourceVersion: ResourceVersion + Namespace: Namespace + Name: Name ClassId: kubernetes.Ingress + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Owners: + - Owners + - Owners + Name: Name + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: kubernetes.Ingress + Uuid: Uuid + Moid: Moid + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key title: Kubernetes:Ingress x-allOf-name: kubernetes.Ingress kubernetes.Ingress.List: @@ -850518,6 +874554,16 @@ components: - ObjectType type: object description: Network interface configuration data for IPv4 interfaces. + example: + ObjectType: kubernetes.IpV4Config + Lease: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Ip: Ip + ClassId: kubernetes.IpV4Config nullable: true title: Kubernetes:Ip V4 Config x-allOf-name: kubernetes.IpV4Config @@ -850922,7 +874968,7 @@ components: description: "A policy specifying the CIDR for internal networks in a Kubernetes\ \ cluster like Pod network, and Service network." example: - ObjectType: kubernetes.NetworkPolicy + Description: Description Organization: ObjectType: aaa.AuditRecord link: link @@ -850930,8 +874976,57 @@ components: ClassId: mo.MoRef Selector: Selector PodNetworkCidr: PodNetworkCidr - ServiceCidr: ServiceCidr + SharedScope: SharedScope + Parent: null + CreateTime: 2000-01-23T04:56:07.000+00:00 ClassId: kubernetes.NetworkPolicy + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Owners: + - Owners + - Owners + Name: Name + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: kubernetes.NetworkPolicy + ServiceCidr: ServiceCidr + Moid: Moid ClusterProfiles: - ObjectType: aaa.AuditRecord link: link @@ -850943,11 +875038,21 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 CniConfig: ObjectType: kubernetes.CalicoConfig Version: Version ClassId: kubernetes.CalicoConfig Registry: Registry + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key CniType: Calico title: Network CIDR x-allOf-name: kubernetes.NetworkPolicy @@ -851041,13 +875146,102 @@ components: Kubernetes. A node may be a virtual machine or physical machine. Each node contains the services necessary to run pods and is managed by the master components. example: + Parent: null + Metadata: + ObjectType: kubernetes.ObjectMeta + Uuid: Uuid + CreationTimestamp: CreationTimestamp + ClassId: kubernetes.ObjectMeta + ResourceVersion: ResourceVersion + Namespace: Namespace + Name: Name + ClassId: kubernetes.Node + Owners: + - Owners + - Owners + Name: Name + NodeStatuses: + - Status: Status + ObjectType: kubernetes.NodeStatus + Type: Type + ClassId: kubernetes.NodeStatus + - Status: Status + ObjectType: kubernetes.NodeStatus + Type: Type + ClassId: kubernetes.NodeStatus + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified ObjectType: kubernetes.Node + Annotations: "" + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key RegisteredDevice: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + SharedScope: SharedScope + CreateTime: 2000-01-23T04:56:07.000+00:00 + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + Labels: "" + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Taints: + - ObjectType: kubernetes.Taint + Value: Value + ClassId: kubernetes.Taint + Effect: Effect + Key: Key + - ObjectType: kubernetes.Taint + Value: Value + ClassId: kubernetes.Taint + Effect: Effect + Key: Key + Uuid: Uuid NodeAddresses: - ObjectType: kubernetes.NodeAddress Type: Type @@ -851075,16 +875269,7 @@ components: ObjectType: kubernetes.NodeSpec PodCidr: PodCidr ClassId: kubernetes.NodeSpec - ClassId: kubernetes.Node - NodeStatuses: - - Status: Status - ObjectType: kubernetes.NodeStatus - Type: Type - ClassId: kubernetes.NodeStatus - - Status: Status - ObjectType: kubernetes.NodeStatus - Type: Type - ClassId: kubernetes.NodeStatus + Moid: Moid title: Kubernetes:Node x-allOf-name: kubernetes.Node kubernetes.Node.List: @@ -851340,14 +875525,77 @@ components: type: object description: A configuration profile for a node group in a Kubernetes cluster. example: + Action: No-op + Description: Description + Minsize: 0 + Parent: null + ClassId: kubernetes.NodeGroupProfile + Owners: + - Owners + - Owners + Name: Name + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: kubernetes.NodeGroupProfile + Desiredsize: 0 + Maxsize: 1 + Currentsize: 0 + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key + ConfigContext: + ObjectType: policy.ConfigContext + ConfigStateSummary: None + ConfigState: ConfigState + OperState: OperState + ErrorState: ErrorState + ClassId: policy.ConfigContext + InconsistencyReason: + - InconsistencyReason + - InconsistencyReason + ConfigType: ConfigType + ControlAction: ControlAction KubernetesVersion: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - Minsize: 0 - ClassId: kubernetes.NodeGroupProfile + SharedScope: SharedScope + CreateTime: 2000-01-23T04:56:07.000+00:00 + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null Labels: - ObjectType: kubernetes.NodeGroupLabel Value: Value @@ -851357,6 +875605,18 @@ components: Value: Value ClassId: kubernetes.NodeGroupLabel Key: Key + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector Taints: - ObjectType: kubernetes.NodeGroupTaint Value: Value @@ -851385,7 +875645,6 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector - ObjectType: kubernetes.NodeGroupProfile IpPools: - ObjectType: aaa.AuditRecord link: link @@ -851397,17 +875656,55 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector - Desiredsize: 0 - Maxsize: 1 + Type: instance + ScheduledActions: + - ObjectType: policy.ScheduledAction + Action: Action + ClassId: policy.ScheduledAction + ProceedOnReboot: true + - ObjectType: policy.ScheduledAction + Action: Action + ClassId: policy.ScheduledAction + ProceedOnReboot: true GpuConfig: - ObjectType: infra.GpuConfiguration - MemorySize: 1 + MemorySize: 5 + DeviceId: 1 + VendorId: 5 ClassId: infra.GpuConfiguration - ObjectType: infra.GpuConfiguration - MemorySize: 1 + MemorySize: 5 + DeviceId: 1 + VendorId: 5 ClassId: infra.GpuConfiguration - Currentsize: 0 NodeType: Worker + SrcTemplate: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ActionParams: + - ObjectType: policy.ActionParam + Value: Value + ClassId: policy.ActionParam + Name: Name + - ObjectType: policy.ActionParam + Value: Value + ClassId: policy.ActionParam + Name: Name + Moid: Moid + PolicyBucket: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector ClusterProfile: ObjectType: aaa.AuditRecord link: link @@ -851815,11 +876112,79 @@ components: description: Information of a Nvidia GPU product. example: MigCapable: true - ObjectType: kubernetes.NvidiaGpuProduct + MemorySize: 1 + Description: Description + SharedScope: SharedScope + Parent: null + DeviceId: 0 + CreateTime: 2000-01-23T04:56:07.000+00:00 + VendorId: 6 ClassId: kubernetes.NvidiaGpuProduct + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Catalog: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Owners: + - Owners + - Owners + Name: Name + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: kubernetes.NvidiaGpuProduct + Moid: Moid MigProfiles: - MigProfiles - MigProfiles + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key title: Kubernetes:Nvidia Gpu Product x-allOf-name: kubernetes.NvidiaGpuProduct kubernetes.NvidiaGpuProduct.List: @@ -851911,6 +876276,14 @@ components: - ObjectType type: object description: Kubernetes Object Meta Data. + example: + ObjectType: kubernetes.ObjectMeta + Uuid: Uuid + CreationTimestamp: CreationTimestamp + ClassId: kubernetes.ObjectMeta + ResourceVersion: ResourceVersion + Namespace: Namespace + Name: Name nullable: true title: Kubernetes:Object Meta x-allOf-name: kubernetes.ObjectMeta @@ -851958,12 +876331,46 @@ components: type: object description: An OpenVSwitch bonded network interface. example: + Addresses: + - Addresses + - Addresses + IpV4Configs: + - ObjectType: kubernetes.IpV4Config + Lease: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Ip: Ip + ClassId: kubernetes.IpV4Config + - ObjectType: kubernetes.IpV4Config + Lease: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Ip: Ip + ClassId: kubernetes.IpV4Config Interfaces: - Interfaces - Interfaces ObjectType: kubernetes.OvsBond + Gateway: Gateway ClassId: kubernetes.OvsBond - Vlan: 0 + Routes: + - ObjectType: kubernetes.Route + ClassId: kubernetes.Route + To: To + Via: Via + - ObjectType: kubernetes.Route + ClassId: kubernetes.Route + To: To + Via: Via + Vlan: 1 + Mtu: 6 + Name: Name title: Kubernetes:Ovs Bond x-allOf-name: kubernetes.OvsBond kubernetes.Pod.Response: @@ -852032,14 +876439,81 @@ components: PodIp: PodIp StartTime: StartTime ClassId: kubernetes.PodStatus - ObjectType: kubernetes.Pod RegisteredDevice: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + SharedScope: SharedScope + Parent: null + CreateTime: 2000-01-23T04:56:07.000+00:00 + Metadata: + ObjectType: kubernetes.ObjectMeta + Uuid: Uuid + CreationTimestamp: CreationTimestamp + ClassId: kubernetes.ObjectMeta + ResourceVersion: ResourceVersion + Namespace: Namespace + Name: Name ClassId: kubernetes.Pod + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Owners: + - Owners + - Owners + Name: Name + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: kubernetes.Pod + Uuid: Uuid + Moid: Moid + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key title: Kubernetes:Pod x-allOf-name: kubernetes.Pod kubernetes.Pod.List: @@ -852249,6 +876723,11 @@ components: - ObjectType type: object description: Routes include a destination network and a gateway. + example: + ObjectType: kubernetes.Route + ClassId: kubernetes.Route + To: To + Via: Via nullable: true title: Kubernetes:Route x-allOf-name: kubernetes.Route @@ -852317,14 +876796,81 @@ components: ObjectType: kubernetes.LoadBalancer ClassId: kubernetes.LoadBalancer ClassId: kubernetes.ServiceStatus - ObjectType: kubernetes.Service RegisteredDevice: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + SharedScope: SharedScope + Parent: null + CreateTime: 2000-01-23T04:56:07.000+00:00 + Metadata: + ObjectType: kubernetes.ObjectMeta + Uuid: Uuid + CreationTimestamp: CreationTimestamp + ClassId: kubernetes.ObjectMeta + ResourceVersion: ResourceVersion + Namespace: Namespace + Name: Name ClassId: kubernetes.Service + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Owners: + - Owners + - Owners + Name: Name + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: kubernetes.Service + Uuid: Uuid + Moid: Moid + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key title: Kubernetes:Service x-allOf-name: kubernetes.Service kubernetes.Service.List: @@ -852459,14 +877005,81 @@ components: Replicas: 5 CurrentRevision: CurrentRevision UpdateRevision: UpdateRevision - ObjectType: kubernetes.StatefulSet RegisteredDevice: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + SharedScope: SharedScope + Parent: null + CreateTime: 2000-01-23T04:56:07.000+00:00 + Metadata: + ObjectType: kubernetes.ObjectMeta + Uuid: Uuid + CreationTimestamp: CreationTimestamp + ClassId: kubernetes.ObjectMeta + ResourceVersion: ResourceVersion + Namespace: Namespace + Name: Name ClassId: kubernetes.StatefulSet + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Owners: + - Owners + - Owners + Name: Name + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: kubernetes.StatefulSet + Uuid: Uuid + Moid: Moid + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key title: Kubernetes:Stateful Set x-allOf-name: kubernetes.StatefulSet kubernetes.StatefulSet.List: @@ -853257,8 +877870,7 @@ components: \ servers, and NTP Servers." example: Timezone: Pacific/Niue - ObjectType: kubernetes.SysConfigPolicy - DnsDomainName: DnsDomainName + Description: Description Organization: ObjectType: aaa.AuditRecord link: link @@ -853269,11 +877881,61 @@ components: - NtpServers - NtpServers - NtpServers + SharedScope: SharedScope + Parent: null + CreateTime: 2000-01-23T04:56:07.000+00:00 ClassId: kubernetes.SysConfigPolicy + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null DnsServers: - DnsServers - DnsServers - DnsServers + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Owners: + - Owners + - Owners + Name: Name + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: kubernetes.SysConfigPolicy + DnsDomainName: DnsDomainName + Moid: Moid ClusterProfiles: - ObjectType: aaa.AuditRecord link: link @@ -853285,6 +877947,16 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key title: Node OS Configuration x-allOf-name: kubernetes.SysConfigPolicy kubernetes.SysConfigPolicy.List: @@ -853364,6 +878036,12 @@ components: are not scheduled onto inappropriate nodes. One or more taints are applied to a node. A node should only schedule a Pod with the matching tolerations for the configured taints. + example: + ObjectType: kubernetes.Taint + Value: Value + ClassId: kubernetes.Taint + Effect: Effect + Key: Key nullable: true title: Kubernetes:Taint x-allOf-name: kubernetes.Taint @@ -853451,17 +878129,66 @@ components: description: A policy specifying self signed docker registries and CA certificates to trust. example: - ObjectType: kubernetes.TrustedRegistriesPolicy + Description: Description Organization: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + SharedScope: SharedScope + Parent: null + CreateTime: 2000-01-23T04:56:07.000+00:00 + ClassId: kubernetes.TrustedRegistriesPolicy + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Owners: + - Owners + - Owners + Name: Name + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: kubernetes.TrustedRegistriesPolicy RootCaRegistries: - RootCaRegistries - RootCaRegistries - ClassId: kubernetes.TrustedRegistriesPolicy + Moid: Moid UnsignedRegistries: - UnsignedRegistries - UnsignedRegistries @@ -853476,6 +878203,16 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key title: Trusted Certificate Authorities x-allOf-name: kubernetes.TrustedRegistriesPolicy kubernetes.TrustedRegistriesPolicy.List: @@ -853771,13 +878508,62 @@ components: type: object description: Policy that defines which kubernetes version to use. example: - ObjectType: kubernetes.VersionPolicy + Description: Description Organization: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + SharedScope: SharedScope + Parent: null + CreateTime: 2000-01-23T04:56:07.000+00:00 + ClassId: kubernetes.VersionPolicy + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Owners: + - Owners + - Owners + Name: Name + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: kubernetes.VersionPolicy Version: ObjectType: aaa.AuditRecord link: link @@ -853795,7 +878581,17 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector - ClassId: kubernetes.VersionPolicy + Moid: Moid + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key title: Kubernetes Version x-allOf-name: kubernetes.VersionPolicy kubernetes.VersionPolicy.List: @@ -853894,30 +878690,16 @@ components: description: "A policy specifying compute, storage and network infrastructure\ \ configuration for a Virtual Machine." example: - ObjectType: kubernetes.VirtualMachineInfraConfigPolicy - Target: - ObjectType: aaa.AuditRecord - link: link - Moid: Moid - ClassId: mo.MoRef - Selector: Selector + Description: Description Organization: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - Profiles: - - ObjectType: aaa.AuditRecord - link: link - Moid: Moid - ClassId: mo.MoRef - Selector: Selector - - ObjectType: aaa.AuditRecord - link: link - Moid: Moid - ClassId: mo.MoRef - Selector: Selector + SharedScope: SharedScope + Parent: null + CreateTime: 2000-01-23T04:56:07.000+00:00 VmConfig: Interfaces: - Interfaces @@ -853970,6 +878752,79 @@ components: Name: Name ClassId: kubernetes.EsxiVirtualMachineInfraConfig ClassId: kubernetes.VirtualMachineInfraConfigPolicy + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Owners: + - Owners + - Owners + Name: Name + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: kubernetes.VirtualMachineInfraConfigPolicy + Target: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Profiles: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Moid: Moid + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key title: Virtual Machine Infra Config x-allOf-name: kubernetes.VirtualMachineInfraConfigPolicy kubernetes.VirtualMachineInfraConfigPolicy.List: @@ -854062,7 +878917,6 @@ components: type: object description: Infrastructure backend for providing virtual machines from a target. example: - ObjectType: kubernetes.VirtualMachineInfrastructureProvider InfraConfig: Interfaces: - Interfaces @@ -854114,25 +878968,91 @@ components: Mtu: 0 Name: Name ClassId: kubernetes.EsxiVirtualMachineInfraConfig + Description: Description + SharedScope: SharedScope + Parent: null + CreateTime: 2000-01-23T04:56:07.000+00:00 + ClassId: kubernetes.VirtualMachineInfrastructureProvider + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Owners: + - Owners + - Owners + Name: Name + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: kubernetes.VirtualMachineInfrastructureProvider Target: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + Moid: Moid InfraConfigPolicy: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - ClassId: kubernetes.VirtualMachineInfrastructureProvider + DisplayNames: + key: + - DisplayNames + - DisplayNames InstanceType: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key + NodeGroup: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector title: Virtual Machine Infrastructure Provider x-allOf-name: kubernetes.VirtualMachineInfrastructureProvider kubernetes.VirtualMachineInfrastructureProvider.List: @@ -854250,14 +879170,64 @@ components: description: "A policy specifying CPU, Memory and Disk size configuration for\ \ a Virtual Machine." example: - ObjectType: kubernetes.VirtualMachineInstanceType + Description: Description Organization: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + SharedScope: SharedScope + Parent: null Memory: 612405 + CreateTime: 2000-01-23T04:56:07.000+00:00 + Cpu: 4 + ClassId: kubernetes.VirtualMachineInstanceType + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Owners: + - Owners + - Owners + Name: Name + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: kubernetes.VirtualMachineInstanceType Profiles: - ObjectType: aaa.AuditRecord link: link @@ -854270,8 +879240,17 @@ components: ClassId: mo.MoRef Selector: Selector DiskSize: 0 - Cpu: 4 - ClassId: kubernetes.VirtualMachineInstanceType + Moid: Moid + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key title: Virtual Machine Instance Type x-allOf-name: kubernetes.VirtualMachineInstanceType kubernetes.VirtualMachineInstanceType.List: @@ -854364,23 +879343,184 @@ components: \ configuration. Users can do operations like Drain, Cordon, Rebuild on a\ \ node." example: + Action: No-op + Description: Description + Parent: null + ClassId: kubernetes.VirtualMachineNodeProfile + NodeIp: null + Owners: + - Owners + - Owners + Name: Name + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: kubernetes.VirtualMachineNodeProfile + Target: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + CloudProvider: noProvider + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key + ConfigContext: + ObjectType: policy.ConfigContext + ConfigStateSummary: None + ConfigState: ConfigState + OperState: OperState + ErrorState: ErrorState + ClassId: policy.ConfigContext + InconsistencyReason: + - InconsistencyReason + - InconsistencyReason + ConfigType: ConfigType + ControlAction: ControlAction + NodeGroup: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + SharedScope: SharedScope + CreateTime: 2000-01-23T04:56:07.000+00:00 + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector Interfaces: - - ObjectType: kubernetes.Ethernet + - Addresses: + - Addresses + - Addresses + IpV4Configs: + - ObjectType: kubernetes.IpV4Config + Lease: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Ip: Ip + ClassId: kubernetes.IpV4Config + - ObjectType: kubernetes.IpV4Config + Lease: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Ip: Ip + ClassId: kubernetes.IpV4Config + ObjectType: kubernetes.Ethernet ProviderName: ProviderName Matcher: ObjectType: kubernetes.EthernetMatcher Type: Name Value: Value ClassId: kubernetes.EthernetMatcher + Gateway: Gateway ClassId: kubernetes.Ethernet - - ObjectType: kubernetes.Ethernet + Routes: + - ObjectType: kubernetes.Route + ClassId: kubernetes.Route + To: To + Via: Via + - ObjectType: kubernetes.Route + ClassId: kubernetes.Route + To: To + Via: Via + Mtu: 0 + Name: Name + - Addresses: + - Addresses + - Addresses + IpV4Configs: + - ObjectType: kubernetes.IpV4Config + Lease: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Ip: Ip + ClassId: kubernetes.IpV4Config + - ObjectType: kubernetes.IpV4Config + Lease: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Ip: Ip + ClassId: kubernetes.IpV4Config + ObjectType: kubernetes.Ethernet ProviderName: ProviderName Matcher: ObjectType: kubernetes.EthernetMatcher Type: Name Value: Value ClassId: kubernetes.EthernetMatcher + Gateway: Gateway ClassId: kubernetes.Ethernet + Routes: + - ObjectType: kubernetes.Route + ClassId: kubernetes.Route + To: To + Via: Via + - ObjectType: kubernetes.Route + ClassId: kubernetes.Route + To: To + Via: Via + Mtu: 0 + Name: Name IpAddresses: - ObjectType: aaa.AuditRecord link: link @@ -854392,9 +879532,49 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector - ObjectType: kubernetes.VirtualMachineNodeProfile - ClassId: kubernetes.VirtualMachineNodeProfile - NodeIp: null + Type: instance + ScheduledActions: + - ObjectType: policy.ScheduledAction + Action: Action + ClassId: policy.ScheduledAction + ProceedOnReboot: true + - ObjectType: policy.ScheduledAction + Action: Action + ClassId: policy.ScheduledAction + ProceedOnReboot: true + ConfigResult: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + SrcTemplate: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ActionParams: + - ObjectType: policy.ActionParam + Value: Value + ClassId: policy.ActionParam + Name: Name + - ObjectType: policy.ActionParam + Value: Value + ClassId: policy.ActionParam + Name: Name + Moid: Moid + PolicyBucket: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector VirtualMachine: ObjectType: aaa.AuditRecord link: link @@ -854523,7 +879703,7 @@ components: type: object description: Policy to configure KVM Launch settings. example: - ObjectType: kvm.Policy + Description: Description MaximumSessions: 1 Organization: ObjectType: aaa.AuditRecord @@ -854531,8 +879711,38 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector - RemotePort: 39501 - TunneledKvmEnabled: false + Parent: null + ClassId: kvm.Policy + EnableLocalServerVideo: true + Owners: + - Owners + - Owners + Name: Name + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: kvm.Policy Profiles: - ObjectType: aaa.AuditRecord link: link @@ -854544,10 +879754,39 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector - Enabled: true - ClassId: kvm.Policy - EnableLocalServerVideo: true + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 EnableVideoEncryption: true + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key + SharedScope: SharedScope + RemotePort: 39501 + TunneledKvmEnabled: false + CreateTime: 2000-01-23T04:56:07.000+00:00 + Enabled: true + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Moid: Moid title: Virtual KVM x-allOf-name: kvm.Policy kvm.Policy.List: @@ -854668,20 +879907,75 @@ components: type: object description: Policy to configure KVM Launch settings. example: + Description: Description + MaximumSessions: 1 + Parent: null + ClassId: kvm.PolicyInventory + EnableLocalServerVideo: true + Owners: + - Owners + - Owners + Name: Name + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified ObjectType: kvm.PolicyInventory - TargetMo: - ObjectType: aaa.AuditRecord + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + EnableVideoEncryption: true + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key + SharedScope: SharedScope + RemotePort: 39501 + TunneledKvmEnabled: false + CreateTime: 2000-01-23T04:56:07.000+00:00 + Enabled: true + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + AccountMoid: AccountMoid + DeviceMoId: DeviceMoId + Ancestors: + - ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - MaximumSessions: 1 - RemotePort: 39501 - TunneledKvmEnabled: false - Enabled: true - ClassId: kvm.PolicyInventory - EnableLocalServerVideo: true - EnableVideoEncryption: true + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + TargetMo: null + Moid: Moid title: Virtual KVM x-allOf-name: kvm.PolicyInventory kvm.PolicyInventory.List: @@ -854794,31 +880088,107 @@ components: vKVM console of the server. The vKVM access can be direct or can be tunneled by specifying the tunnel to be used for the access. example: - ObjectType: kvm.Session - Tunnel: + User: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + EndTime: 2000-01-23T04:56:07.000+00:00 Server: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + Parent: null KvmLaunchUrlPath: KvmLaunchUrlPath - Username: Username + KvmSessionId: KvmSessionId + ClassId: kvm.Session + TargetName: TargetName + Owners: + - Owners + - Owners + SsoSupported: true + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: kvm.Session + Target: null + ClientIpAddress: ClientIpAddress + OneTimePassword: OneTimePassword + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key + Status: Active + SharedScope: SharedScope Device: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - KvmSessionId: KvmSessionId - ClassId: kvm.Session - OneTimePassword: OneTimePassword - SsoSupported: true + CreateTime: 2000-01-23T04:56:07.000+00:00 + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Role: Role + Tunnel: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Username: Username + Moid: Moid + UserIdOrEmail: UserIdOrEmail + Session: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector title: Kvm:Session x-allOf-name: kvm.Session kvm.Session.List: @@ -854909,26 +880279,103 @@ components: Tunneled Virtual KVM access to the vKVM console of a server. This must be specified while creating the vKVM session to gain tunneled access. example: - ObjectType: kvm.Tunnel - Server: + User: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - Device: + EndTime: 2000-01-23T04:56:07.000+00:00 + Server: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + Parent: null ClassId: kvm.Tunnel + TargetName: TargetName KvmSession: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + Owners: + - Owners + - Owners + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: kvm.Tunnel + Target: null + ClientIpAddress: ClientIpAddress + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key + Status: Active + SharedScope: SharedScope + Device: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + CreateTime: 2000-01-23T04:56:07.000+00:00 + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Role: Role + ClientUrl: ClientUrl + Moid: Moid + UserIdOrEmail: UserIdOrEmail + Session: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector title: Kvm:Tunnel x-allOf-name: kvm.Tunnel kvm.Tunnel.List: @@ -858166,15 +883613,9 @@ components: type: object description: Logical Profile that can be associated to a physical server. example: - ObjectType: ls.ServiceProfile - RegisteredDevice: - ObjectType: aaa.AuditRecord - link: link - Moid: Moid - ClassId: mo.MoRef - Selector: Selector ConfigState: ConfigState OperState: OperState + Parent: null AssignState: AssignState InventoryDeviceInfo: ObjectType: aaa.AuditRecord @@ -858185,7 +883626,73 @@ components: AssociatedServer: AssociatedServer ClassId: ls.ServiceProfile AssocState: AssocState + Owners: + - Owners + - Owners Name: Name + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: ls.ServiceProfile + DisplayNames: + key: + - DisplayNames + - DisplayNames + Rn: Rn + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key + RegisteredDevice: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + SharedScope: SharedScope + CreateTime: 2000-01-23T04:56:07.000+00:00 + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + Dn: Dn + AccountMoid: AccountMoid + DeviceMoId: DeviceMoId + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Moid: Moid title: Ls:Service Profile x-allOf-name: ls.ServiceProfile ls.ServiceProfile.List: @@ -858251,6 +883758,7 @@ components: description: Block of MAC identifiers. example: ObjectType: macpool.Block + Size: 150 ClassId: macpool.Block From: From To: To @@ -858327,12 +883835,63 @@ components: type: object description: A block of contiguous MAC addresses that are part of a pool. example: - ObjectType: macpool.IdBlock + SharedScope: SharedScope + Parent: null MacBlock: ObjectType: macpool.Block + Size: 150 ClassId: macpool.Block From: From To: To + CreateTime: 2000-01-23T04:56:07.000+00:00 + ClassId: macpool.IdBlock + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + NextIdAllocator: 6 + AccountMoid: AccountMoid + FreeBlockCount: 0 + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Owners: + - Owners + - Owners + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: macpool.IdBlock + Moid: Moid Reservations: - ObjectType: aaa.AuditRecord link: link @@ -858344,13 +883903,22 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector - ClassId: macpool.IdBlock Pool: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key title: Macpool:Id Block x-allOf-name: macpool.IdBlock macpool.IdBlock.List: @@ -858449,38 +884017,93 @@ components: description: "Lease represents a single MAC address that is part of the universe,\ \ allocated either from a pool or through static assignment." example: - ObjectType: macpool.Lease - Reservation: - ObjectType: macpool.ReservationReference - ConsumerName: ConsumerName - ClassId: macpool.ReservationReference - ConsumerType: Vnic - AssignedToEntity: + SharedScope: SharedScope + Parent: null + CreateTime: 2000-01-23T04:56:07.000+00:00 + AllocationType: dynamic + AssignedToEntity: null + Universe: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - Universe: - ObjectType: aaa.AuditRecord + ClassId: macpool.Lease + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + MacAddress: MacAddress + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - ClassId: macpool.Lease + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Owners: + - Owners + - Owners + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: macpool.Lease + Reservation: + ObjectType: macpool.ReservationReference + ReservationMoid: ReservationMoid + ConsumerName: ConsumerName + ClassId: macpool.ReservationReference + ConsumerType: Vnic + Moid: Moid Pool: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - MacAddress: MacAddress + DisplayNames: + key: + - DisplayNames + - DisplayNames PoolMember: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key + HasDuplicate: false title: Macpool:Lease x-allOf-name: macpool.Lease macpool.Lease.List: @@ -858632,16 +884255,45 @@ components: description: Pool represents a collection of MAC addresses that can be allocated to VNICs of a server profile. example: + Description: Description + Organization: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Parent: null + Size: 1 + ClassId: macpool.Pool + Owners: + - Owners + - Owners + Name: Name + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified ObjectType: macpool.Pool - MacBlocks: - - ObjectType: macpool.Block - ClassId: macpool.Block - From: From - To: To - - ObjectType: macpool.Block - ClassId: macpool.Block - From: From - To: To BlockHeads: - ObjectType: aaa.AuditRecord link: link @@ -858653,13 +884305,48 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector - Organization: - ObjectType: aaa.AuditRecord + Reservations: + - ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - Reservations: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key + Assigned: 0 + MacBlocks: + - ObjectType: macpool.Block + Size: 150 + ClassId: macpool.Block + From: From + To: To + - ObjectType: macpool.Block + Size: 150 + ClassId: macpool.Block + From: From + To: To + SharedScope: SharedScope + CreateTime: 2000-01-23T04:56:07.000+00:00 + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + AssignmentOrder: sequential + AccountMoid: AccountMoid + Ancestors: - ObjectType: aaa.AuditRecord link: link Moid: Moid @@ -858670,7 +884357,8 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector - ClassId: macpool.Pool + Moid: Moid + Reserved: 6 title: Macpool:Pool x-allOf-name: macpool.Pool macpool.Pool.List: @@ -858768,39 +884456,94 @@ components: type: object description: PoolMember represents a single MAC address that is part of a pool. example: + Assigned: false BlockHead: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - ObjectType: macpool.PoolMember - Reservation: + SharedScope: SharedScope + Parent: null + CreateTime: 2000-01-23T04:56:07.000+00:00 + Peer: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - Peer: - ObjectType: aaa.AuditRecord + AssignedByAnother: false + AssignedToEntity: null + ClassId: macpool.PoolMember + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + MacAddress: MacAddress + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - AssignedToEntity: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Owners: + - Owners + - Owners + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: macpool.PoolMember + Reservation: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - ClassId: macpool.PoolMember + Moid: Moid Pool: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - MacAddress: MacAddress + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key + Reserved: false title: Macpool:Pool Member x-allOf-name: macpool.PoolMember macpool.PoolMember.List: @@ -858910,13 +884653,67 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector - ObjectType: macpool.Reservation Organization: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + SharedScope: SharedScope + Parent: null + CreateTime: 2000-01-23T04:56:07.000+00:00 + AllocationType: dynamic + Universe: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: macpool.Reservation + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Owners: + - Owners + - Owners + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: macpool.Reservation MemberOf: - ObjectType: macpool.MemberOf IdBlockMoid: IdBlockMoid @@ -858926,19 +884723,17 @@ components: IdBlockMoid: IdBlockMoid ClassId: macpool.MemberOf PoolMoid: PoolMoid - Universe: - ObjectType: aaa.AuditRecord - link: link - Moid: Moid - ClassId: mo.MoRef - Selector: Selector - ClassId: macpool.Reservation + Moid: Moid Pool: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + DisplayNames: + key: + - DisplayNames + - DisplayNames Identity: Identity PoolMember: ObjectType: aaa.AuditRecord @@ -858946,6 +884741,12 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key title: Macpool:Reservation x-allOf-name: macpool.Reservation macpool.Reservation.List: @@ -859014,6 +884815,7 @@ components: description: The reference to the reservation object. example: ObjectType: macpool.ReservationReference + ReservationMoid: ReservationMoid ConsumerName: ConsumerName ClassId: macpool.ReservationReference ConsumerType: Vnic @@ -859293,12 +885095,7 @@ components: \ through an independent connection." example: UemStreamAdminState: Disabled - RegisteredDevice: - ObjectType: aaa.AuditRecord - link: link - Moid: Moid - ClassId: mo.MoRef - Selector: Selector + Parent: null InventoryDeviceInfo: ObjectType: aaa.AuditRecord link: link @@ -859312,12 +885109,6 @@ components: ClassId: mo.MoRef Selector: Selector ClassId: management.Controller - EquipmentSharedIoModule: - ObjectType: aaa.AuditRecord - link: link - Moid: Moid - ClassId: mo.MoRef - Selector: Selector ComputeRackUnit: ObjectType: aaa.AuditRecord link: link @@ -859326,11 +885117,132 @@ components: Selector: Selector RootCaCertificates: - ObjectType: certificatemanagement.RootCaCertificate + Enabled: true ClassId: certificatemanagement.RootCaCertificate CertificateName: CertificateName + Certificate: + ObjectType: x509.Certificate + PemCertificate: PemCertificate + Sha256Fingerprint: Sha256Fingerprint + Issuer: + ObjectType: pkix.DistinguishedName + Organization: + - Organization + - Organization + OrganizationalUnit: + - OrganizationalUnit + - OrganizationalUnit + Locality: + - Locality + - Locality + State: + - State + - State + Country: + - Country + - Country + ClassId: pkix.DistinguishedName + CommonName: CommonName + ClassId: x509.Certificate + SignatureAlgorithm: SignatureAlgorithm + NotAfter: 2000-01-23T04:56:07.000+00:00 + NotBefore: 2000-01-23T04:56:07.000+00:00 + Subject: + ObjectType: pkix.DistinguishedName + Organization: + - Organization + - Organization + OrganizationalUnit: + - OrganizationalUnit + - OrganizationalUnit + Locality: + - Locality + - Locality + State: + - State + - State + Country: + - Country + - Country + ClassId: pkix.DistinguishedName + CommonName: CommonName - ObjectType: certificatemanagement.RootCaCertificate + Enabled: true ClassId: certificatemanagement.RootCaCertificate CertificateName: CertificateName + Certificate: + ObjectType: x509.Certificate + PemCertificate: PemCertificate + Sha256Fingerprint: Sha256Fingerprint + Issuer: + ObjectType: pkix.DistinguishedName + Organization: + - Organization + - Organization + OrganizationalUnit: + - OrganizationalUnit + - OrganizationalUnit + Locality: + - Locality + - Locality + State: + - State + - State + Country: + - Country + - Country + ClassId: pkix.DistinguishedName + CommonName: CommonName + ClassId: x509.Certificate + SignatureAlgorithm: SignatureAlgorithm + NotAfter: 2000-01-23T04:56:07.000+00:00 + NotBefore: 2000-01-23T04:56:07.000+00:00 + Subject: + ObjectType: pkix.DistinguishedName + Organization: + - Organization + - Organization + OrganizationalUnit: + - OrganizationalUnit + - OrganizationalUnit + Locality: + - Locality + - Locality + State: + - State + - State + Country: + - Country + - Country + ClassId: pkix.DistinguishedName + CommonName: CommonName + Owners: + - Owners + - Owners + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified ObjectType: management.Controller EquipmentSystemIoController: ObjectType: aaa.AuditRecord @@ -859361,42 +885273,180 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector - ManagementInterfaces: - - ObjectType: aaa.AuditRecord - link: link - Moid: Moid - ClassId: mo.MoRef - Selector: Selector - - ObjectType: aaa.AuditRecord - link: link - Moid: Moid - ClassId: mo.MoRef - Selector: Selector - Model: Model EquipmentIoCardBase: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + DisplayNames: + key: + - DisplayNames + - DisplayNames + Rn: Rn KmipClientCertificate: ObjectType: certificatemanagement.Imc Privatekey: Privatekey + Enabled: true CertType: None ClassId: certificatemanagement.Imc IsPrivatekeySet: false + Certificate: + ObjectType: x509.Certificate + PemCertificate: PemCertificate + Sha256Fingerprint: Sha256Fingerprint + Issuer: + ObjectType: pkix.DistinguishedName + Organization: + - Organization + - Organization + OrganizationalUnit: + - OrganizationalUnit + - OrganizationalUnit + Locality: + - Locality + - Locality + State: + - State + - State + Country: + - Country + - Country + ClassId: pkix.DistinguishedName + CommonName: CommonName + ClassId: x509.Certificate + SignatureAlgorithm: SignatureAlgorithm + NotAfter: 2000-01-23T04:56:07.000+00:00 + NotBefore: 2000-01-23T04:56:07.000+00:00 + Subject: + ObjectType: pkix.DistinguishedName + Organization: + - Organization + - Organization + OrganizationalUnit: + - OrganizationalUnit + - OrganizationalUnit + Locality: + - Locality + - Locality + State: + - State + - State + Country: + - Country + - Country + ClassId: pkix.DistinguishedName + CommonName: CommonName + ModTime: 2000-01-23T04:56:07.000+00:00 AdapterUnit: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key + RegisteredDevice: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + SharedScope: SharedScope + CreateTime: 2000-01-23T04:56:07.000+00:00 + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + Dn: Dn + EquipmentSharedIoModule: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + AccountMoid: AccountMoid + DeviceMoId: DeviceMoId + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ManagementInterfaces: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Model: Model + Moid: Moid Certificate: ObjectType: certificatemanagement.Imc Privatekey: Privatekey + Enabled: true CertType: None ClassId: certificatemanagement.Imc IsPrivatekeySet: false + Certificate: + ObjectType: x509.Certificate + PemCertificate: PemCertificate + Sha256Fingerprint: Sha256Fingerprint + Issuer: + ObjectType: pkix.DistinguishedName + Organization: + - Organization + - Organization + OrganizationalUnit: + - OrganizationalUnit + - OrganizationalUnit + Locality: + - Locality + - Locality + State: + - State + - State + Country: + - Country + - Country + ClassId: pkix.DistinguishedName + CommonName: CommonName + ClassId: x509.Certificate + SignatureAlgorithm: SignatureAlgorithm + NotAfter: 2000-01-23T04:56:07.000+00:00 + NotBefore: 2000-01-23T04:56:07.000+00:00 + Subject: + ObjectType: pkix.DistinguishedName + Organization: + - Organization + - Organization + OrganizationalUnit: + - OrganizationalUnit + - OrganizationalUnit + Locality: + - Locality + - Locality + State: + - State + - State + Country: + - Country + - Country + ClassId: pkix.DistinguishedName + CommonName: CommonName StorageSasExpander: ObjectType: aaa.AuditRecord link: link @@ -859518,31 +885568,91 @@ components: description: Logical representation that captures the role of each Fabric Interconnect in UCS Manager. example: - EntityId: EntityId - ObjectType: management.Entity - ClusterLinkState: ClusterLinkState - ClusterState: ClusterState Leadership: Leadership - ClusterReadiness: ClusterReadiness + Parent: null + InventoryDeviceInfo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: management.Entity + Owners: + - Owners + - Owners + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: management.Entity NetworkElement: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + DisplayNames: + key: + - DisplayNames + - DisplayNames + Rn: Rn + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key + ClusterLinkState: ClusterLinkState + ClusterState: ClusterState RegisteredDevice: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - InventoryDeviceInfo: - ObjectType: aaa.AuditRecord + SharedScope: SharedScope + CreateTime: 2000-01-23T04:56:07.000+00:00 + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + Dn: Dn + AccountMoid: AccountMoid + DeviceMoId: DeviceMoId + Ancestors: + - ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - ClassId: management.Entity + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + EntityId: EntityId + ClusterReadiness: ClusterReadiness + Moid: Moid title: Management:Entity x-allOf-name: management.Entity management.Entity.List: @@ -859703,47 +885813,107 @@ components: type: object description: Interface that provides access to the management controller. example: - RegisteredDevice: + Parent: null + InventoryDeviceInfo: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - InventoryDeviceInfo: + ClassId: management.Interface + SwitchId: SwitchId + Owners: + - Owners + - Owners + Ipv6Prefix: 0 + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: management.Interface + Gateway: Gateway + EquipmentChassis: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + DisplayNames: + key: + - DisplayNames + - DisplayNames + Rn: Rn + ModTime: 2000-01-23T04:56:07.000+00:00 + Ipv4Mask: Ipv4Mask + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key + HostName: HostName + Ipv6Address: Ipv6Address + VlanId: 6 + Ipv4Address: Ipv4Address + RegisteredDevice: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + SharedScope: SharedScope UemConnStatus: UemConnStatus + CreateTime: 2000-01-23T04:56:07.000+00:00 Ipv6Gateway: Ipv6Gateway Mask: Mask - ClassId: management.Interface - SwitchId: SwitchId + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + Dn: Dn Ipv4Gateway: Ipv4Gateway MacAddress: MacAddress - Ipv6Prefix: 0 - ManagementController: - ObjectType: aaa.AuditRecord + AccountMoid: AccountMoid + DeviceMoId: DeviceMoId + Ancestors: + - ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - ObjectType: management.Interface - VirtualHostName: VirtualHostName - Gateway: Gateway - EquipmentChassis: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ManagementController: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + VirtualHostName: VirtualHostName + Moid: Moid IpAddress: IpAddress - Ipv4Mask: Ipv4Mask - HostName: HostName - Ipv6Address: Ipv6Address - VlanId: 6 - Ipv4Address: Ipv4Address title: Management:Interface x-allOf-name: management.Interface management.Interface.List: @@ -861064,12 +887234,7 @@ components: type: object description: Holder housing multiple memory units. example: - RegisteredDevice: - ObjectType: aaa.AuditRecord - link: link - Moid: Moid - ClassId: mo.MoRef - Selector: Selector + Parent: null ArrayId: 0 InventoryDeviceInfo: ObjectType: aaa.AuditRecord @@ -861089,16 +887254,42 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector - CpuId: 6 ClassId: memory.Array - CurrentCapacity: CurrentCapacity ComputeRackUnit: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - Units: + Owners: + - Owners + - Owners + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: memory.Array + PersistentMemoryUnits: - ObjectType: aaa.AuditRecord link: link Moid: Moid @@ -861109,8 +887300,45 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector - ObjectType: memory.Array - PersistentMemoryUnits: + IsUpgraded: false + Presence: Presence + DisplayNames: + key: + - DisplayNames + - DisplayNames + Rn: Rn + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key + MaxCapacity: MaxCapacity + RegisteredDevice: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + SharedScope: SharedScope + CreateTime: 2000-01-23T04:56:07.000+00:00 + PreviousFru: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + CpuId: 6 + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + Dn: Dn + CurrentCapacity: CurrentCapacity + Vendor: Vendor + AccountMoid: AccountMoid + DeviceMoId: DeviceMoId + Ancestors: - ObjectType: aaa.AuditRecord link: link Moid: Moid @@ -861121,10 +887349,24 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector + Units: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Serial: Serial + Revision: Revision ErrorCorrection: ErrorCorrection + Model: Model OperPowerState: OperPowerState + Moid: Moid MaxDevices: MaxDevices - MaxCapacity: MaxCapacity title: Memory:Array x-allOf-name: memory.Array memory.Array.List: @@ -861248,8 +887490,61 @@ components: description: Result of a previously applied Persistent Memory configuration on a server. example: + ConfigState: ConfigState + Parent: null + InventoryDeviceInfo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + MemoryPersistentMemoryConfiguration: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: memory.PersistentMemoryConfigResult + Owners: + - Owners + - Owners + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified ObjectType: memory.PersistentMemoryConfigResult ConfigSequenceNo: 0 + DisplayNames: + key: + - DisplayNames + - DisplayNames + Rn: Rn + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key ConfigErrorDesc: ConfigErrorDesc RegisteredDevice: ObjectType: aaa.AuditRecord @@ -861257,32 +887552,39 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector - ConfigState: ConfigState - ConfigResult: ConfigResult - InventoryDeviceInfo: - ObjectType: aaa.AuditRecord + SharedScope: SharedScope + CreateTime: 2000-01-23T04:56:07.000+00:00 + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + Dn: Dn + AccountMoid: AccountMoid + DeviceMoId: DeviceMoId + Ancestors: + - ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - PersistentMemoryNamespaceConfigResults: - ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + ConfigResult: ConfigResult + PersistentMemoryNamespaceConfigResults: - ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - MemoryPersistentMemoryConfiguration: - ObjectType: aaa.AuditRecord + - ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - ClassId: memory.PersistentMemoryConfigResult + Moid: Moid title: Memory:Persistent Memory Config Result x-allOf-name: memory.PersistentMemoryConfigResult memory.PersistentMemoryConfigResult.List: @@ -861424,12 +887726,7 @@ components: description: Persistent Memory configuration on all the Persistent Memory Modules on a server. example: - RegisteredDevice: - ObjectType: aaa.AuditRecord - link: link - Moid: Moid - ClassId: mo.MoRef - Selector: Selector + Parent: null ReservedCapacity: ReservedCapacity InventoryDeviceInfo: ObjectType: aaa.AuditRecord @@ -861445,8 +887742,33 @@ components: Selector: Selector NumOfModules: NumOfModules ClassId: memory.PersistentMemoryConfiguration - MemoryCapacity: MemoryCapacity - SecurityState: SecurityState + Owners: + - Owners + - Owners + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified ObjectType: memory.PersistentMemoryConfiguration NumOfRegions: NumOfRegions PersistentMemoryConfigResult: @@ -861455,7 +887777,6 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector - PersistentMemoryCapacity: PersistentMemoryCapacity TotalCapacity: TotalCapacity PersistentMemoryRegions: - ObjectType: aaa.AuditRecord @@ -861468,6 +887789,47 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector + DisplayNames: + key: + - DisplayNames + - DisplayNames + Rn: Rn + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key + RegisteredDevice: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + SharedScope: SharedScope + CreateTime: 2000-01-23T04:56:07.000+00:00 + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + Dn: Dn + MemoryCapacity: MemoryCapacity + SecurityState: SecurityState + AccountMoid: AccountMoid + DeviceMoId: DeviceMoId + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + PersistentMemoryCapacity: PersistentMemoryCapacity + Moid: Moid title: Memory:Persistent Memory Configuration x-allOf-name: memory.PersistentMemoryConfiguration memory.PersistentMemoryConfiguration.List: @@ -861825,32 +888187,92 @@ components: description: Persistent Memory Namespace configured within a Persistent Memory Region on a server. example: - ObjectType: memory.PersistentMemoryNamespace MemoryPersistentMemoryRegion: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - Uuid: Uuid - RegisteredDevice: + Parent: null + InventoryDeviceInfo: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + ClassId: memory.PersistentMemoryNamespace + LabelVersion: LabelVersion + Owners: + - Owners + - Owners + Name: Name + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: memory.PersistentMemoryNamespace Capacity: Capacity - InventoryDeviceInfo: + DisplayNames: + key: + - DisplayNames + - DisplayNames + Rn: Rn + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key + RegisteredDevice: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + SharedScope: SharedScope + CreateTime: 2000-01-23T04:56:07.000+00:00 Mode: Mode - ClassId: memory.PersistentMemoryNamespace - LabelVersion: LabelVersion + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + Dn: Dn + AccountMoid: AccountMoid + DeviceMoId: DeviceMoId + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Uuid: Uuid + Moid: Moid HealthState: HealthState - Name: Name title: Memory:Persistent Memory Namespace x-allOf-name: memory.PersistentMemoryNamespace memory.PersistentMemoryNamespace.List: @@ -861964,30 +888386,90 @@ components: description: Result of a previously configured Persistent Memory Namespace on a server. example: - SocketMemoryId: SocketMemoryId + Parent: null + InventoryDeviceInfo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: memory.PersistentMemoryNamespaceConfigResult + Owners: + - Owners + - Owners + Name: Name + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified ObjectType: memory.PersistentMemoryNamespaceConfigResult + SocketId: SocketId + DisplayNames: + key: + - DisplayNames + - DisplayNames + Rn: Rn + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key + ConfigStatus: ConfigStatus RegisteredDevice: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - InventoryDeviceInfo: - ObjectType: aaa.AuditRecord + SharedScope: SharedScope + CreateTime: 2000-01-23T04:56:07.000+00:00 + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + Dn: Dn + AccountMoid: AccountMoid + DeviceMoId: DeviceMoId + Ancestors: + - ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - SocketId: SocketId + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + SocketMemoryId: SocketMemoryId MemoryPersistentMemoryConfigResult: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - ClassId: memory.PersistentMemoryNamespaceConfigResult - ConfigStatus: ConfigStatus - Name: Name + Moid: Moid title: Memory:Persistent Memory Namespace Config Result x-allOf-name: memory.PersistentMemoryNamespaceConfigResult memory.PersistentMemoryNamespaceConfigResult.List: @@ -862102,14 +888584,63 @@ components: Regions and Namespaces. The encryption of the Persistent Memory Modules can be enabled through this policy by providing a passphrase. example: - ManagementMode: configured-from-intersight - ObjectType: memory.PersistentMemoryPolicy + Description: Description Organization: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + SharedScope: SharedScope + Parent: null + CreateTime: 2000-01-23T04:56:07.000+00:00 + ClassId: memory.PersistentMemoryPolicy + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Owners: + - Owners + - Owners + Name: Name + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ManagementMode: configured-from-intersight + ObjectType: memory.PersistentMemoryPolicy RetainNamespaces: true LocalSecurity: ObjectType: memory.PersistentMemoryLocalSecurity @@ -862128,7 +888659,11 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector - ClassId: memory.PersistentMemoryPolicy + Moid: Moid + DisplayNames: + key: + - DisplayNames + - DisplayNames Goals: - ObjectType: memory.PersistentMemoryGoal PersistentMemoryType: app-direct @@ -862140,6 +888675,7 @@ components: SocketId: All Sockets MemoryModePercentage: 8 ClassId: memory.PersistentMemoryGoal + ModTime: 2000-01-23T04:56:07.000+00:00 LogicalNamespaces: - SocketMemoryId: Not Applicable ObjectType: memory.PersistentMemoryLogicalNamespace @@ -862155,6 +888691,11 @@ components: Mode: raw ClassId: memory.PersistentMemoryLogicalNamespace Name: Name + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key title: Persistent Memory x-allOf-name: memory.PersistentMemoryPolicy memory.PersistentMemoryPolicy.List: @@ -862313,12 +888854,7 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector - RegisteredDevice: - ObjectType: aaa.AuditRecord - link: link - Moid: Moid - ClassId: mo.MoRef - Selector: Selector + Parent: null InventoryDeviceInfo: ObjectType: aaa.AuditRecord link: link @@ -862332,13 +888868,78 @@ components: ClassId: mo.MoRef Selector: Selector ClassId: memory.PersistentMemoryRegion - SocketMemoryId: SocketMemoryId + Owners: + - Owners + - Owners + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified ObjectType: memory.PersistentMemoryRegion - PersistentMemoryType: PersistentMemoryType FreeCapacity: FreeCapacity SocketId: SocketId LocaterIds: LocaterIds TotalCapacity: TotalCapacity + DisplayNames: + key: + - DisplayNames + - DisplayNames + Rn: Rn + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key + RegisteredDevice: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + SharedScope: SharedScope + CreateTime: 2000-01-23T04:56:07.000+00:00 + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + Dn: Dn + AccountMoid: AccountMoid + DeviceMoId: DeviceMoId + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + SocketMemoryId: SocketMemoryId + PersistentMemoryType: PersistentMemoryType + Moid: Moid RegionId: RegionId HealthState: HealthState title: Memory:Persistent Memory Region @@ -862514,22 +889115,100 @@ components: example: CountStatus: CountStatus AppDirectCapacity: AppDirectCapacity + OperState: OperState + FrozenStatus: FrozenStatus + ReservedCapacity: ReservedCapacity + ClassId: memory.PersistentMemoryUnit + Clock: Clock + AdminState: AdminState + Operability: Operability + Capacity: Capacity + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key RegisteredDevice: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - FrozenStatus: FrozenStatus - ReservedCapacity: ReservedCapacity + SharedScope: SharedScope + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + Dn: Dn + DeviceMoId: DeviceMoId + Latency: Latency + Uid: Uid + Revision: Revision + OperPowerState: OperPowerState + Visibility: Visibility + HealthState: HealthState + Thermal: Thermal + Bank: 6 + Set: 1 + Parent: null + ArrayId: 0 InventoryDeviceInfo: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + Owners: + - Owners + - Owners + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: memory.PersistentMemoryUnit + FormFactor: FormFactor + IsUpgraded: false + SocketId: SocketId + SecurityStatus: SecurityStatus + Presence: Presence + TotalCapacity: TotalCapacity + DisplayNames: + key: + - DisplayNames + - DisplayNames + Rn: Rn + Width: Width + Speed: Speed LockStatus: LockStatus - ClassId: memory.PersistentMemoryUnit + CreateTime: 2000-01-23T04:56:07.000+00:00 + PreviousFru: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Vendor: Vendor MemoryCapacity: MemoryCapacity MemoryArray: ObjectType: aaa.AuditRecord @@ -862537,16 +889216,30 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector FirmwareVersion: FirmwareVersion + OperReason: + - Unknown + - Unknown SocketMemoryId: SocketMemoryId - ObjectType: memory.PersistentMemoryUnit - Uid: Uid - SocketId: SocketId + Serial: Serial + Type: Type PersistentMemoryCapacity: PersistentMemoryCapacity - SecurityStatus: SecurityStatus - TotalCapacity: TotalCapacity - MemoryId: 0 - HealthState: HealthState + Model: Model + Moid: Moid + MemoryId: 5 + Location: Location title: Memory:Persistent Memory Unit x-allOf-name: memory.PersistentMemoryUnit memory.PersistentMemoryUnit.List: @@ -862664,31 +889357,123 @@ components: type: object description: This represents a memory DIMM on a server. example: - ObjectType: memory.Unit - Description: Description + OperState: OperState + PartNumber: PartNumber + ClassId: memory.Unit + Clock: Clock + AdminState: AdminState + Operability: Operability + Capacity: Capacity + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key RegisteredDevice: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - PartNumber: PartNumber + SharedScope: SharedScope + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + Dn: Dn + DeviceMoId: DeviceMoId + IsPlatformSupported: true + Latency: Latency + Revision: Revision + OperPowerState: OperPowerState + Visibility: Visibility + Thermal: Thermal + Bank: 6 + Set: 1 + Description: Description + Parent: null + ArrayId: 0 InventoryDeviceInfo: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - ClassId: memory.Unit + Owners: + - Owners + - Owners + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: memory.Unit + FormFactor: FormFactor + IsUpgraded: false + Presence: Presence + DisplayNames: + key: + - DisplayNames + - DisplayNames + Rn: Rn + Width: Width + Speed: Speed + CreateTime: 2000-01-23T04:56:07.000+00:00 + PreviousFru: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector Pid: Pid + Vendor: Vendor MemoryArray: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - IsPlatformSupported: true - MemoryId: 0 + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + OperReason: + - Unknown + - Unknown + Serial: Serial + Type: Type + Model: Model + Moid: Moid + MemoryId: 5 + Location: Location title: Memory:Unit x-allOf-name: memory.Unit memory.Unit.List: @@ -862790,23 +889575,106 @@ components: type: object description: A device belonging to a organization's network. example: + Parent: null + ClassId: meraki.Device + Owners: + - Owners + - Owners + Name: Name + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + DeviceLocation: + ObjectType: equipment.DeviceLocation + Address: Address + ClassId: equipment.DeviceLocation + Latitude: 0.8008282 + Longitude: 6.0274563 ObjectType: meraki.Device + Version: Version + IsUpgraded: false + Network: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Presence: Presence + DisplayNames: + key: + - DisplayNames + - DisplayNames + Rn: Rn + LanIp: LanIp + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key RegisteredDevice: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - Network: + SharedScope: SharedScope + CreateTime: 2000-01-23T04:56:07.000+00:00 + PreviousFru: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - ClassId: meraki.Device - LanIp: LanIp + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + Dn: Dn + Vendor: Vendor NetworkId: NetworkId + AccountMoid: AccountMoid + DeviceMoId: DeviceMoId + HardwareVersion: HardwareVersion + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector Mac: Mac + DeviceType: DeviceType + Serial: Serial + Uuid: Uuid + Revision: Revision + Model: Model + Moid: Moid title: Meraki:Device x-allOf-name: meraki.Device meraki.Device.List: @@ -870301,24 +897169,84 @@ components: type: object description: L2 neighbor (LLDP and CDP) available on the switch. example: - ObjectType: network.DiscoveredNeighbor - NeighborDeviceId: NeighborDeviceId NeighborPortId: NeighborPortId ManagementAddress: ManagementAddress + Parent: null + DeviceId: DeviceId + ClassId: network.DiscoveredNeighbor + SwitchPortId: SwitchPortId + NeighborInterface: NeighborInterface + Owners: + - Owners + - Owners + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: network.DiscoveredNeighbor CdpNeighbor: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - DeviceId: DeviceId - ClassId: network.DiscoveredNeighbor - SwitchPortId: SwitchPortId - NeighborInterface: NeighborInterface - LldpNeighbor: null + DisplayNames: + key: + - DisplayNames + - DisplayNames + Rn: Rn + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key NeighborDeviceCapability: - NeighborDeviceCapability - NeighborDeviceCapability + SharedScope: SharedScope + CreateTime: 2000-01-23T04:56:07.000+00:00 + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + Dn: Dn + AccountMoid: AccountMoid + DeviceMoId: DeviceMoId + LldpNeighbor: null + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + NeighborDeviceId: NeighborDeviceId + Moid: Moid title: Network:Discovered Neighbor x-allOf-name: network.DiscoveredNeighbor network.DiscoveredNeighbor.List: @@ -870433,28 +897361,88 @@ components: description: Concrete class for list of DNS servers configured on the nexus end point. example: - ObjectType: network.Dns AdditionalDomains: - AdditionalDomains - AdditionalDomains - NetworkElement: + RegisteredDevice: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - RegisteredDevice: + SharedScope: SharedScope + Parent: null + CreateTime: 2000-01-23T04:56:07.000+00:00 + ClassId: network.Dns + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + Dn: Dn + AccountMoid: AccountMoid + DeviceMoId: DeviceMoId + DefaultDomain: DefaultDomain + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Owners: + - Owners + - Owners + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: network.Dns + NetworkElement: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector VrfName: VrfName - ClassId: network.Dns - DefaultDomain: DefaultDomain + Moid: Moid + DisplayNames: + key: + - DisplayNames + - DisplayNames + Rn: Rn + ModTime: 2000-01-23T04:56:07.000+00:00 NameServers: - NameServers - NameServers + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key title: Network:Dns x-allOf-name: network.Dns network.Dns.List: @@ -871052,7 +898040,6 @@ components: \ a range of models including the 6400, 6500 series etc." example: PartNumber: PartNumber - EthernetSwitchingMode: end-host InbandIpGateway: InbandIpGateway Dns: - ObjectType: aaa.AuditRecord @@ -871065,7 +898052,6 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector - ClassId: network.Element InterfaceList: - ObjectType: aaa.AuditRecord link: link @@ -871088,7 +898074,6 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector - DefaultDomain: DefaultDomain NetworkVlanPortInfo: ObjectType: aaa.AuditRecord link: link @@ -871101,7 +898086,6 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector - Operability: Operability LicenseFile: - ObjectType: aaa.AuditRecord link: link @@ -871115,52 +898099,63 @@ components: Selector: Selector PeerFirmwareOutOfSync: true FpgaUpgradeNeeded: true - OutOfBandIpv6Gateway: OutOfBandIpv6Gateway - Version: Version - OutOfBandIpv4Gateway: OutOfBandIpv4Gateway - TopSystem: - ObjectType: aaa.AuditRecord + PortMacBindings: + - ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - PortMacBindings: - ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + OutOfBandIpGateway: OutOfBandIpGateway + ConnectionStatus: ConnectionStatus + OutOfBandIpMask: OutOfBandIpMask + ProcessorUnit: - ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - OutOfBandIpGateway: OutOfBandIpGateway - Sensors: - ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + FcPortChannels: - ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - ConnectionStatus: ConnectionStatus - OutOfBandIpMask: OutOfBandIpMask - ProcessorUnit: - ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - - ObjectType: aaa.AuditRecord + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key + AdminInbandInterfaceState: AdminInbandInterfaceState + Status: Status + ConfModTsBackup: ConfModTsBackup + ManagementEntity: + ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - FcPortChannels: + RegisteredDevice: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Psus: - ObjectType: aaa.AuditRecord link: link Moid: Moid @@ -871171,7 +898166,12 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector - Cards: + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + FcMode: FcMode + SupervisorCard: - ObjectType: aaa.AuditRecord link: link Moid: Moid @@ -871182,28 +898182,25 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector - AdminInbandInterfaceState: AdminInbandInterfaceState - Status: Status - UcsmRunningFirmware: - ObjectType: aaa.AuditRecord + OutOfBandIpv6Prefix: OutOfBandIpv6Prefix + NtpServer: + - ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - ConfModTsBackup: ConfModTsBackup - ManagementEntity: - ObjectType: aaa.AuditRecord + - ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - RegisteredDevice: + ManagementController: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - Psus: + StorageItems: - ObjectType: aaa.AuditRecord link: link Moid: Moid @@ -871214,8 +898211,50 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector - FcMode: FcMode - SupervisorCard: + OutOfBandIpv4Mask: OutOfBandIpv4Mask + TotalMemory: 5 + Chassis: Chassis + NetworkFcZoneInfo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + OutOfBandIpv4Address: OutOfBandIpv4Address + SwitchId: SwitchId + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: network.Element + UserLabel: UserLabel + InterClusterLinkState: Unknown + IsUpgraded: false + EthernetMode: EthernetMode + InbandVlan: 6 + Rn: Rn + CreateTime: 2000-01-23T04:56:07.000+00:00 + Vfcs: - ObjectType: aaa.AuditRecord link: link Moid: Moid @@ -871226,8 +898265,12 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector - OutOfBandIpv6Prefix: OutOfBandIpv6Prefix - NtpServer: + LldpNeighbor: + - null + - null + ManagementMode: IntersightStandalone + Serial: Serial + VpcMember: - ObjectType: aaa.AuditRecord link: link Moid: Moid @@ -871238,15 +898281,35 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector - ManagementController: + ReservedVlanStartId: 1 + AlarmSummary: + ObjectType: compute.AlarmSummary + Warning: 2 + SuppressedInfo: 5 + Health: Healthy + Suppressed: true + SuppressedWarning: 5 + ClassId: compute.AlarmSummary + Critical: 0 + SuppressedCritical: 1 + Info: 6 + FaultSummary: 0 + Model: Model + Moid: Moid + EthernetSwitchingMode: end-host + ClassId: network.Element + DefaultDomain: DefaultDomain + Operability: Operability + OutOfBandIpv6Gateway: OutOfBandIpv6Gateway + Version: Version + OutOfBandIpv4Gateway: OutOfBandIpv4Gateway + TopSystem: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - SwitchType: FabricInterconnect - OperEvacState: "" - StorageItems: + Sensors: - ObjectType: aaa.AuditRecord link: link Moid: Moid @@ -871257,14 +898320,36 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector - OutOfBandIpv4Mask: OutOfBandIpv4Mask + ModTime: 2000-01-23T04:56:07.000+00:00 + Cards: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + UcsmRunningFirmware: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + SharedScope: SharedScope + Dn: Dn + DeviceMoId: DeviceMoId + SwitchType: FabricInterconnect + Revision: Revision + OperEvacState: "" LocatorLed: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - TotalMemory: 5 Veths: - ObjectType: aaa.AuditRecord link: link @@ -871288,17 +898373,9 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector - Chassis: Chassis OutOfBandIpv6Address: OutOfBandIpv6Address - NetworkFcZoneInfo: - ObjectType: aaa.AuditRecord - link: link - Moid: Moid - ClassId: mo.MoRef - Selector: Selector InbandIpMask: InbandIpMask OutOfBandIpAddress: OutOfBandIpAddress - OutOfBandIpv4Address: OutOfBandIpv4Address VpcPeer: - ObjectType: aaa.AuditRecord link: link @@ -871310,6 +898387,7 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector + Parent: null ConfModTs: ConfModTs InventoryDeviceInfo: ObjectType: aaa.AuditRecord @@ -871317,11 +898395,11 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector - SwitchId: SwitchId - ObjectType: network.Element + Owners: + - Owners + - Owners InbandIpAddress: InbandIpAddress SwitchProfileName: SwitchProfileName - UserLabel: UserLabel CdpNeighbor: - ObjectType: aaa.AuditRecord link: link @@ -871333,8 +898411,6 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector - InterClusterLinkState: Unknown - EthernetMode: EthernetMode FcSwitchingMode: end-host Console: - ObjectType: aaa.AuditRecord @@ -871347,6 +898423,7 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector + Presence: Presence Fanmodules: - ObjectType: aaa.AuditRecord link: link @@ -871358,26 +898435,22 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector - InbandVlan: 6 SystemUpTime: SystemUpTime + DisplayNames: + key: + - DisplayNames + - DisplayNames AdminEvacState: "" OutOfBandMac: OutOfBandMac - Vfcs: - - ObjectType: aaa.AuditRecord - link: link - Moid: Moid - ClassId: mo.MoRef - Selector: Selector - - ObjectType: aaa.AuditRecord + PreviousFru: + ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - LldpNeighbor: - - null - - null - ManagementMode: IntersightStandalone - VpcMember: + Vendor: Vendor + AccountMoid: AccountMoid + Ancestors: - ObjectType: aaa.AuditRecord link: link Moid: Moid @@ -871388,19 +898461,6 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector - ReservedVlanStartId: 1 - AlarmSummary: - ObjectType: compute.AlarmSummary - Warning: 2 - SuppressedInfo: 5 - Health: Healthy - Suppressed: true - SuppressedWarning: 5 - ClassId: compute.AlarmSummary - Critical: 0 - SuppressedCritical: 1 - Info: 6 - FaultSummary: 0 EtherPortChannels: - ObjectType: aaa.AuditRecord link: link @@ -871931,6 +898991,11 @@ components: readOnly: true type: integer x-omitempty: true + UserLabel: + description: The user defined label assigned to the server. + readOnly: true + type: string + x-omitempty: true Vendor: description: This field identifies the vendor of the given component. readOnly: true @@ -872044,6 +899109,7 @@ components: ObjectType: network.ElementSummary InbandIpAddress: InbandIpAddress SwitchProfileName: SwitchProfileName + UserLabel: UserLabel InterClusterLinkState: Unknown EthernetMode: EthernetMode IsUpgraded: true @@ -872209,8 +899275,43 @@ components: type: object description: FC Zone information of a Fabric Interconnect. example: - ObjectType: network.FcZoneInfo UserZoneCount: 0 + Parent: null + InventoryDeviceInfo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: network.FcZoneInfo + Owners: + - Owners + - Owners + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: network.FcZoneInfo UserZoneLimit: 6 NetworkElement: ObjectType: aaa.AuditRecord @@ -872218,20 +899319,45 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector + ZoneLimit: 5 + DisplayNames: + key: + - DisplayNames + - DisplayNames + Rn: Rn + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key RegisteredDevice: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - InventoryDeviceInfo: - ObjectType: aaa.AuditRecord + SharedScope: SharedScope + CreateTime: 2000-01-23T04:56:07.000+00:00 + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + Dn: Dn + AccountMoid: AccountMoid + DeviceMoId: DeviceMoId + Ancestors: + - ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - ZoneLimit: 5 - ClassId: network.FcZoneInfo + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Moid: Moid ZoneCount: 1 title: Network:Fc Zone Info x-allOf-name: network.FcZoneInfo @@ -872349,25 +899475,85 @@ components: actions on the switch and get a view of the status of the sub-set feature names. example: - ObjectType: network.FeatureControl StatusMsg: StatusMsg + Parent: null + Instance: 0 + ClassId: network.FeatureControl + AdminState: AdminState + Owners: + - Owners + - Owners + Name: Name + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: network.FeatureControl NetworkElement: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + OperationalState: OperationalState + DisplayNames: + key: + - DisplayNames + - DisplayNames + Rn: Rn + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key RegisteredDevice: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - Instance: 0 - OperationalState: OperationalState - ClassId: network.FeatureControl - AdminState: AdminState - Name: Name + SharedScope: SharedScope + CreateTime: 2000-01-23T04:56:07.000+00:00 + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + Dn: Dn + AccountMoid: AccountMoid + DeviceMoId: DeviceMoId + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Moid: Moid title: Network:Feature Control x-allOf-name: network.FeatureControl network.FeatureControl.List: @@ -872650,21 +899836,40 @@ components: description: List of interfaces available on the switch to describe the available port inventory information. example: - Speed: Speed Description: Description - RegisteredDevice: - ObjectType: aaa.AuditRecord - link: link - Moid: Moid - ClassId: mo.MoRef - Selector: Selector OperState: OperState + Parent: null ClassId: network.InterfaceList - Vlan: Vlan AdminState: AdminState - Mac: Mac + Owners: + - Owners + - Owners Mtu: 6 Name: Name + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified ObjectType: network.InterfaceList SlotId: SlotId PortSubType: PortSubType @@ -872674,11 +899879,52 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector + DisplayName: DisplayName + AllowedVlans: AllowedVlans + DisplayNames: + key: + - DisplayNames + - DisplayNames + Rn: Rn + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key + Speed: Speed + RegisteredDevice: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + SharedScope: SharedScope + CreateTime: 2000-01-23T04:56:07.000+00:00 + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + Dn: Dn + Vlan: Vlan + AccountMoid: AccountMoid + DeviceMoId: DeviceMoId + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Mac: Mac IpSubnet: 0 SpeedGroup: SpeedGroup PortChannelId: 1 - DisplayName: DisplayName - AllowedVlans: AllowedVlans + Moid: Moid IpAddress: IpAddress PortType: PortType title: Network:Interface List @@ -872788,25 +900034,85 @@ components: type: object description: Displays license information. example: - ObjectType: network.LicenseFile ExpiryDate: ExpiryDate + Parent: null + ClassId: network.LicenseFile + Owners: + - Owners + - Owners + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: network.LicenseFile NetworkElement: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + DisplayNames: + key: + - DisplayNames + - DisplayNames + Rn: Rn + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key RegisteredDevice: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - ClassId: network.LicenseFile - FileId: FileId + SharedScope: SharedScope + CreateTime: 2000-01-23T04:56:07.000+00:00 + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + Dn: Dn Vendor: Vendor HostId: HostId + AccountMoid: AccountMoid + DeviceMoId: DeviceMoId + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector FeatureName: FeatureName + Moid: Moid + FileId: FileId title: Network:License File x-allOf-name: network.LicenseFile network.LicenseFile.List: @@ -872957,16 +900263,10 @@ components: type: object description: Concrete class for supervisor card. example: - Status: Status Description: Description - RegisteredDevice: - ObjectType: aaa.AuditRecord - link: link - Moid: Moid - ClassId: mo.MoRef - Selector: Selector OperState: OperState PartNumber: PartNumber + Parent: null NumberOfPorts: 0 ClassId: network.SupervisorCard FcPorts: @@ -872980,19 +900280,97 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector - HardwareVersion: HardwareVersion + Owners: + - Owners + - Owners Name: Name - OperReason: OperReason + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified ObjectType: network.SupervisorCard - Type: Type NetworkElement: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + IsUpgraded: false + Presence: Presence SupervisorId: SupervisorId + DisplayNames: + key: + - DisplayNames + - DisplayNames + Rn: Rn + ModTime: 2000-01-23T04:56:07.000+00:00 PowerState: PowerState + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key + Status: Status + RegisteredDevice: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + SharedScope: SharedScope + CreateTime: 2000-01-23T04:56:07.000+00:00 + PreviousFru: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + Dn: Dn + Vendor: Vendor + AccountMoid: AccountMoid + DeviceMoId: DeviceMoId + HardwareVersion: HardwareVersion + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + OperReason: OperReason + Serial: Serial + Type: Type + Revision: Revision + Model: Model + Moid: Moid title: Network:Supervisor Card x-allOf-name: network.SupervisorCard network.SupervisorCard.List: @@ -873079,15 +900457,75 @@ components: description: Checking configured Telementry data in endpoint. example: Status: Status - ObjectType: network.TelemetryCheck RegisteredDevice: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + SharedScope: SharedScope + Parent: null + CreateTime: 2000-01-23T04:56:07.000+00:00 ClassId: network.TelemetryCheck + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + Dn: Dn + AccountMoid: AccountMoid + DeviceMoId: DeviceMoId + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Owners: + - Owners + - Owners TelemetryConfig: TelemetryConfig + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: network.TelemetryCheck + Moid: Moid + DisplayNames: + key: + - DisplayNames + - DisplayNames + Rn: Rn + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key title: Network:Telemetry Check x-allOf-name: network.TelemetryCheck network.TelemetryCheck.List: @@ -873256,41 +900694,101 @@ components: type: object description: Vethernet configured on a Fabric Interconnect. example: - BoundInterfaceDn: BoundInterfaceDn Description: Description - RegisteredDevice: + OperState: unknown + Parent: null + PinnedInterfaceDn: PinnedInterfaceDn + ClassId: network.Vethernet + Owners: + - Owners + - Owners + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: network.Vethernet + NetworkElement: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - OperState: unknown - PinnedInterfaceDn: PinnedInterfaceDn - ClassId: network.Vethernet - OperReason: OperReason - ObjectType: network.Vethernet - BoundInterface: + Burst: 0 + DisplayNames: + key: + - DisplayNames + - DisplayNames + Rn: Rn + PinnedInterface: null + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key + AdapterHostEthInterface: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - NetworkElement: + BoundInterfaceDn: BoundInterfaceDn + RegisteredDevice: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - Ratelimit: 6 - Burst: 0 - VethId: 1 - PinnedInterface: null - AdapterHostEthInterface: + SharedScope: SharedScope + CreateTime: 2000-01-23T04:56:07.000+00:00 + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + Dn: Dn + AccountMoid: AccountMoid + DeviceMoId: DeviceMoId + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + OperReason: OperReason + BoundInterface: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + Ratelimit: 6 + VethId: 1 + Moid: Moid title: Network:Vethernet x-allOf-name: network.Vethernet network.Vethernet.List: @@ -873457,41 +900955,101 @@ components: type: object description: Vfc configured on a Fabric Interconnect. example: - BoundInterfaceDn: BoundInterfaceDn Description: Description + OperState: unknown + Parent: null + PinnedInterfaceDn: PinnedInterfaceDn + ClassId: network.Vfc + Owners: + - Owners + - Owners + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: network.Vfc + NetworkElement: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Burst: 0 + DisplayNames: + key: + - DisplayNames + - DisplayNames + Rn: Rn + PinnedInterface: null + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key + BoundInterfaceDn: BoundInterfaceDn RegisteredDevice: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - OperState: unknown + SharedScope: SharedScope VfcId: 1 - PinnedInterfaceDn: PinnedInterfaceDn - ClassId: network.Vfc - OperReason: OperReason - ObjectType: network.Vfc - BoundInterface: - ObjectType: aaa.AuditRecord + CreateTime: 2000-01-23T04:56:07.000+00:00 + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + Dn: Dn + AccountMoid: AccountMoid + DeviceMoId: DeviceMoId + Ancestors: + - ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - AdapterHostFcInterface: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + OperReason: OperReason + BoundInterface: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - NetworkElement: + AdapterHostFcInterface: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector Ratelimit: 6 - Burst: 0 - PinnedInterface: null + Moid: Moid title: Network:Vfc x-allOf-name: network.Vfc network.Vfc.List: @@ -873634,15 +901192,8 @@ components: type: object description: Vlan Port information of a Fabric Interconnect. example: - CompressedVlanPortCount: CompressedVlanPortCount - CompressedVlanPortCountValue: 5 UncompressedVlanPortCount: UncompressedVlanPortCount - RegisteredDevice: - ObjectType: aaa.AuditRecord - link: link - Moid: Moid - ClassId: mo.MoRef - Selector: Selector + Parent: null InventoryDeviceInfo: ObjectType: aaa.AuditRecord link: link @@ -873651,9 +901202,35 @@ components: Selector: Selector TotalVlanPortCount: 5 ClassId: network.VlanPortInfo - AccessVlanPortCount: 0 UncompressedVlanPortCountValue: 2 + Owners: + - Owners + - Owners BorderVlanPortCount: 6 + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified ObjectType: network.VlanPortInfo NetworkElement: ObjectType: aaa.AuditRecord @@ -873661,7 +901238,48 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector + DisplayNames: + key: + - DisplayNames + - DisplayNames + Rn: Rn + ModTime: 2000-01-23T04:56:07.000+00:00 CompressedOptimizationSetsValue: 1 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key + CompressedVlanPortCount: CompressedVlanPortCount + CompressedVlanPortCountValue: 5 + RegisteredDevice: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + SharedScope: SharedScope + CreateTime: 2000-01-23T04:56:07.000+00:00 + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + Dn: Dn + AccessVlanPortCount: 0 + AccountMoid: AccountMoid + DeviceMoId: DeviceMoId + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Moid: Moid VlanPortLimit: 7 title: Network:Vlan Port Info x-allOf-name: network.VlanPortInfo @@ -873795,27 +901413,87 @@ components: (Virtual Port Channel) domain is used to connect two different switches logically to a single switch. example: - Role: Role - VpcDomainId: 6 + Parent: null + ConsistencyStatus: ConsistencyStatus + ClassId: network.VpcDomain + Owners: + - Owners + - Owners + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified ObjectType: network.VpcDomain - AutoRecoveryStatus: AutoRecoveryStatus NetworkElement: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + PeerStatus: PeerStatus + DisplayNames: + key: + - DisplayNames + - DisplayNames + Rn: Rn + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key + KeepAliveStatus: KeepAliveStatus RegisteredDevice: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - PeerStatus: PeerStatus - ConsistencyStatus: ConsistencyStatus - ClassId: network.VpcDomain - KeepAliveStatus: KeepAliveStatus + SharedScope: SharedScope + CreateTime: 2000-01-23T04:56:07.000+00:00 + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + Dn: Dn + AccountMoid: AccountMoid + DeviceMoId: DeviceMoId + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector DualActiveExcludedVlans: 0 + Role: Role + VpcDomainId: 6 + AutoRecoveryStatus: AutoRecoveryStatus + Moid: Moid VpcsConfiguredCount: 1 title: Network:Vpc Domain x-allOf-name: network.VpcDomain @@ -873933,7 +901611,41 @@ components: type: object description: Concrete class for VPC configured on a network device. example: - VpcDomainId: 6 + Parent: null + EtherPortChannel: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: network.VpcMember + Owners: + - Owners + - Owners + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified ObjectType: network.VpcMember NetworkElement: ObjectType: aaa.AuditRecord @@ -873941,23 +901653,49 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector + OperationalState: OperationalState + DisplayNames: + key: + - DisplayNames + - DisplayNames + Rn: Rn + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key RegisteredDevice: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - EtherPortChannel: - ObjectType: aaa.AuditRecord + SharedScope: SharedScope + CreateTime: 2000-01-23T04:56:07.000+00:00 + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + Dn: Dn + AccountMoid: AccountMoid + DeviceMoId: DeviceMoId + Ancestors: + - ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - OperationalState: OperationalState + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + VpcMemberId: 1 + VpcDomainId: 6 PortChannel: PortChannel PortChannelId: 0 - ClassId: network.VpcMember - VpcMemberId: 1 + Moid: Moid title: Network:Vpc Member x-allOf-name: network.VpcMember network.VpcMember.List: @@ -874074,7 +901812,42 @@ components: type: object description: Concrete class for VPC peer configured on a network device. example: - VpcDomainId: 6 + Parent: null + EtherPortChannel: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: network.VpcPeer + VpcPeerId: 1 + Owners: + - Owners + - Owners + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified ObjectType: network.VpcPeer NetworkElement: ObjectType: aaa.AuditRecord @@ -874082,23 +901855,48 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector + OperationalState: OperationalState + DisplayNames: + key: + - DisplayNames + - DisplayNames + Rn: Rn + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key RegisteredDevice: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - EtherPortChannel: - ObjectType: aaa.AuditRecord + SharedScope: SharedScope + CreateTime: 2000-01-23T04:56:07.000+00:00 + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + Dn: Dn + AccountMoid: AccountMoid + DeviceMoId: DeviceMoId + Ancestors: + - ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - OperationalState: OperationalState + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + VpcDomainId: 6 PortChannel: PortChannel PortChannelId: 0 - ClassId: network.VpcPeer - VpcPeerId: 1 + Moid: Moid title: Network:Vpc Peer x-allOf-name: network.VpcPeer network.VpcPeer.List: @@ -874197,23 +901995,83 @@ components: type: object description: Concrete class for virtual routing and forwarding. example: - ObjectType: network.Vrf - NetworkElement: + RegisteredDevice: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - RegisteredDevice: - ObjectType: aaa.AuditRecord + SharedScope: SharedScope + Parent: null + CreateTime: 2000-01-23T04:56:07.000+00:00 + ClassId: network.Vrf + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + Dn: Dn + AccountMoid: AccountMoid + DeviceMoId: DeviceMoId + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - VrfId: VrfId - ClassId: network.Vrf AdminState: AdminState + Owners: + - Owners + - Owners Name: Name + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: network.Vrf + NetworkElement: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + VrfId: VrfId + Moid: Moid + DisplayNames: + key: + - DisplayNames + - DisplayNames + Rn: Rn + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key title: Network:Vrf x-allOf-name: network.Vrf network.Vrf.List: @@ -874344,28 +902202,87 @@ components: description: "Enable or disable Dynamic DNS, add or update DNS settings for\ \ IPv4 and IPv6 on Cisco IMC." example: - ApplianceAccount: + Description: Description + Organization: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - Organization: + EnableIpv6dnsFromDhcp: true + Parent: null + ClassId: networkconfig.Policy + Owners: + - Owners + - Owners + Name: Name + EnableIpv6: true + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: networkconfig.Policy + Profiles: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + DisplayNames: + key: + - DisplayNames + - DisplayNames + PreferredIpv4dnsServer: PreferredIpv4dnsServer + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key + DynamicDnsDomain: DynamicDnsDomain + ApplianceAccount: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - EnableIpv6dnsFromDhcp: true + SharedScope: SharedScope + CreateTime: 2000-01-23T04:56:07.000+00:00 AlternateIpv4dnsServer: AlternateIpv4dnsServer EnableIpv4dnsFromDhcp: true EnableDynamicDns: true PreferredIpv6dnsServer: PreferredIpv6dnsServer - ClassId: networkconfig.Policy - EnableIpv6: true - ObjectType: networkconfig.Policy - AlternateIpv6dnsServer: AlternateIpv6dnsServer - Profiles: + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + AccountMoid: AccountMoid + Ancestors: - ObjectType: aaa.AuditRecord link: link Moid: Moid @@ -874376,8 +902293,8 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector - PreferredIpv4dnsServer: PreferredIpv4dnsServer - DynamicDnsDomain: DynamicDnsDomain + AlternateIpv6dnsServer: AlternateIpv6dnsServer + Moid: Moid title: Network Connectivity x-allOf-name: networkconfig.Policy networkconfig.Policy.List: @@ -874509,23 +902426,78 @@ components: description: "Enable or disable Dynamic DNS, add or update DNS settings for\ \ IPv4 and IPv6 on Cisco IMC." example: + Description: Description + EnableIpv6dnsFromDhcp: true + Parent: null + ClassId: networkconfig.PolicyInventory + Owners: + - Owners + - Owners + Name: Name + EnableIpv6: true + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified ObjectType: networkconfig.PolicyInventory - TargetMo: - ObjectType: aaa.AuditRecord + DisplayNames: + key: + - DisplayNames + - DisplayNames + PreferredIpv4dnsServer: PreferredIpv4dnsServer + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key + DynamicDnsDomain: DynamicDnsDomain + SharedScope: SharedScope + CreateTime: 2000-01-23T04:56:07.000+00:00 + AlternateIpv4dnsServer: AlternateIpv4dnsServer + EnableIpv4dnsFromDhcp: true + EnableDynamicDns: true + PreferredIpv6dnsServer: PreferredIpv6dnsServer + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + AccountMoid: AccountMoid + DeviceMoId: DeviceMoId + Ancestors: + - ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - EnableIpv6dnsFromDhcp: true + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + TargetMo: null AlternateIpv6dnsServer: AlternateIpv6dnsServer - AlternateIpv4dnsServer: AlternateIpv4dnsServer - EnableIpv4dnsFromDhcp: true - EnableDynamicDns: true - PreferredIpv6dnsServer: PreferredIpv6dnsServer - ClassId: networkconfig.PolicyInventory - PreferredIpv4dnsServer: PreferredIpv4dnsServer - DynamicDnsDomain: DynamicDnsDomain - EnableIpv6: true + Moid: Moid title: Network Connectivity x-allOf-name: networkconfig.PolicyInventory networkconfig.PolicyInventory.List: @@ -874572,7 +902544,81 @@ components: allOf: - $ref: '#/components/schemas/niaapi.NewReleasePost' description: The post reporting a new release is available for APIC. - example: {} + example: + PostType: PostType + SharedScope: SharedScope + Parent: null + CreateTime: 2000-01-23T04:56:07.000+00:00 + ClassId: niaapi.ApicCcoPost + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Postid: Postid + Owners: + - Owners + - Owners + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: niaapi.ApicCcoPost + Revision: Revision + Moid: Moid + PostDetail: + ObjectType: niaapi.NewReleaseDetail + ReleaseNoteLinkTitle: ReleaseNoteLinkTitle + SoftwareDownloadLink: SoftwareDownloadLink + Description: Description + SoftwareDownloadLinkTitle: SoftwareDownloadLinkTitle + Version: Version + Title: Title + ClassId: niaapi.NewReleaseDetail + ReleaseNoteLink: ReleaseNoteLink + Link: Link + DisplayNames: + key: + - DisplayNames + - DisplayNames + PostDate: 2000-01-23T04:56:07.000+00:00 + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key title: Niaapi:Apic Cco Post x-allOf-name: niaapi.ApicCcoPost niaapi.ApicCcoPost.List: @@ -874620,7 +902666,85 @@ components: - $ref: '#/components/schemas/niaapi.FieldNotice' description: The field notice reporting bug and related software or hardware for APIC. - example: {} + example: + SharedScope: SharedScope + Parent: null + CreateTime: 2000-01-23T04:56:07.000+00:00 + ClassId: niaapi.ApicFieldNotice + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Owners: + - Owners + - Owners + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: niaapi.ApicFieldNotice + FieldNoticeDesc: FieldNoticeDesc + Hwpid: Hwpid + WorkaroundUrl: WorkaroundUrl + FieldNoticeId: FieldNoticeId + RevisionInfo: + - ObjectType: niaapi.RevisionInfo + RevisionNo: RevisionNo + RevisionComment: RevisionComment + ClassId: niaapi.RevisionInfo + DatePublished: 2000-01-23T04:56:07.000+00:00 + - ObjectType: niaapi.RevisionInfo + RevisionNo: RevisionNo + RevisionComment: RevisionComment + ClassId: niaapi.RevisionInfo + DatePublished: 2000-01-23T04:56:07.000+00:00 + SwRelease: SwRelease + Bugid: Bugid + Headline: Headline + Moid: Moid + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key + FieldNoticeUrl: FieldNoticeUrl title: Niaapi:Apic Field Notice x-allOf-name: niaapi.ApicFieldNotice niaapi.ApicFieldNotice.List: @@ -874667,7 +902791,90 @@ components: allOf: - $ref: '#/components/schemas/niaapi.HardwareEol' description: The hardware end of life notice for APIC. - example: {} + example: + MigrationUrl: MigrationUrl + AnnouncementDate: 2000-01-23T04:56:07.000+00:00 + Description: Description + HardwareEolUrl: HardwareEolUrl + Parent: null + LastShipDate: 2000-01-23T04:56:07.000+00:00 + EndofSwMaintenanceDateEpoch: 7 + ClassId: niaapi.ApicHweol + LastShipDateEpoch: 3 + AnnouncementDateEpoch: 0 + Owners: + - Owners + - Owners + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: niaapi.ApicHweol + EndofSecuritySupport: 2000-01-23T04:56:07.000+00:00 + EndofSaleDate: 2000-01-23T04:56:07.000+00:00 + Headline: Headline + AffectedPids: AffectedPids + EndofNewServiceAttachmentDateEpoch: 6 + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key + EndofRoutineFailureAnalysisDateEpoch: 1 + EndofSecuritySupportEpoch: 5 + SharedScope: SharedScope + EndofNewServiceAttachmentDate: 2000-01-23T04:56:07.000+00:00 + CreateTime: 2000-01-23T04:56:07.000+00:00 + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + BulletinNo: BulletinNo + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + EndofServiceContractRenewalDateEpoch: 2 + EndofSwMaintenanceDate: 2000-01-23T04:56:07.000+00:00 + LastDateofSupportEpoch: 9 + EndofSaleDateEpoch: 5 + Moid: Moid + EndofServiceContractRenewalDate: 2000-01-23T04:56:07.000+00:00 + LastDateofSupport: 2000-01-23T04:56:07.000+00:00 + EndofRoutineFailureAnalysisDate: 2000-01-23T04:56:07.000+00:00 title: Niaapi:Apic Hweol x-allOf-name: niaapi.ApicHweol niaapi.ApicHweol.List: @@ -874714,7 +902921,69 @@ components: - $ref: '#/components/schemas/niaapi.MaintainedRelease' description: This contains the latest maintained release information for each release on APIC. - example: {} + example: + SharedScope: SharedScope + Parent: null + CreateTime: 2000-01-23T04:56:07.000+00:00 + ClassId: niaapi.ApicLatestMaintainedRelease + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + SoftwareRelease: SoftwareRelease + Owners: + - Owners + - Owners + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: niaapi.ApicLatestMaintainedRelease + VersionTag: VersionTag + Moid: Moid + DisplayNames: + key: + - DisplayNames + - DisplayNames + MaintainedRelease: MaintainedRelease + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key title: Niaapi:Apic Latest Maintained Release x-allOf-name: niaapi.ApicLatestMaintainedRelease niaapi.ApicLatestMaintainedRelease.List: @@ -874761,7 +903030,70 @@ components: allOf: - $ref: '#/components/schemas/niaapi.ReleaseRecommend' description: The recommend version information for each release on APIC. - example: {} + example: + Cll: Cll + Crr: Crr + SharedScope: SharedScope + Parent: null + CreateTime: 2000-01-23T04:56:07.000+00:00 + ClassId: niaapi.ApicReleaseRecommend + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + Pid: Pid + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Owners: + - Owners + - Owners + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: niaapi.ApicReleaseRecommend + Ull: Ull + Moid: Moid + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key title: Niaapi:Apic Release Recommend x-allOf-name: niaapi.ApicReleaseRecommend niaapi.ApicReleaseRecommend.List: @@ -874808,7 +903140,84 @@ components: allOf: - $ref: '#/components/schemas/niaapi.SoftwareEol' description: The software end of life notice for APIC. - example: {} + example: + MigrationUrl: MigrationUrl + AnnouncementDate: 2000-01-23T04:56:07.000+00:00 + Description: Description + Parent: null + LastShipDate: 2000-01-23T04:56:07.000+00:00 + EndofSwMaintenanceDateEpoch: 5 + ClassId: niaapi.ApicSweol + LastShipDateEpoch: 2 + AnnouncementDateEpoch: 0 + Owners: + - Owners + - Owners + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: niaapi.ApicSweol + Headline: Headline + AffectedVersions: AffectedVersions + EndofNewServiceAttachmentDateEpoch: 6 + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key + SharedScope: SharedScope + EndofNewServiceAttachmentDate: 2000-01-23T04:56:07.000+00:00 + CreateTime: 2000-01-23T04:56:07.000+00:00 + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + BulletinNo: BulletinNo + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + EndofServiceContractRenewalDateEpoch: 1 + SoftwareEolUrl: SoftwareEolUrl + EndofSwMaintenanceDate: 2000-01-23T04:56:07.000+00:00 + LastDateofSupportEpoch: 5 + Moid: Moid + EndofServiceContractRenewalDate: 2000-01-23T04:56:07.000+00:00 + LastDateofSupport: 2000-01-23T04:56:07.000+00:00 title: Niaapi:Apic Sweol x-allOf-name: niaapi.ApicSweol niaapi.ApicSweol.List: @@ -874854,7 +903263,81 @@ components: allOf: - $ref: '#/components/schemas/niaapi.NewReleasePost' description: The post reporting a new release is available for DCNM. - example: {} + example: + PostType: PostType + SharedScope: SharedScope + Parent: null + CreateTime: 2000-01-23T04:56:07.000+00:00 + ClassId: niaapi.ApicCcoPost + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Postid: Postid + Owners: + - Owners + - Owners + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: niaapi.ApicCcoPost + Revision: Revision + Moid: Moid + PostDetail: + ObjectType: niaapi.NewReleaseDetail + ReleaseNoteLinkTitle: ReleaseNoteLinkTitle + SoftwareDownloadLink: SoftwareDownloadLink + Description: Description + SoftwareDownloadLinkTitle: SoftwareDownloadLinkTitle + Version: Version + Title: Title + ClassId: niaapi.NewReleaseDetail + ReleaseNoteLink: ReleaseNoteLink + Link: Link + DisplayNames: + key: + - DisplayNames + - DisplayNames + PostDate: 2000-01-23T04:56:07.000+00:00 + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key title: Niaapi:Dcnm Cco Post x-allOf-name: niaapi.DcnmCcoPost niaapi.DcnmCcoPost.List: @@ -874902,7 +903385,85 @@ components: - $ref: '#/components/schemas/niaapi.FieldNotice' description: The field notice reporting bug and related software or hardware for DCNM. - example: {} + example: + SharedScope: SharedScope + Parent: null + CreateTime: 2000-01-23T04:56:07.000+00:00 + ClassId: niaapi.ApicFieldNotice + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Owners: + - Owners + - Owners + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: niaapi.ApicFieldNotice + FieldNoticeDesc: FieldNoticeDesc + Hwpid: Hwpid + WorkaroundUrl: WorkaroundUrl + FieldNoticeId: FieldNoticeId + RevisionInfo: + - ObjectType: niaapi.RevisionInfo + RevisionNo: RevisionNo + RevisionComment: RevisionComment + ClassId: niaapi.RevisionInfo + DatePublished: 2000-01-23T04:56:07.000+00:00 + - ObjectType: niaapi.RevisionInfo + RevisionNo: RevisionNo + RevisionComment: RevisionComment + ClassId: niaapi.RevisionInfo + DatePublished: 2000-01-23T04:56:07.000+00:00 + SwRelease: SwRelease + Bugid: Bugid + Headline: Headline + Moid: Moid + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key + FieldNoticeUrl: FieldNoticeUrl title: Niaapi:Dcnm Field Notice x-allOf-name: niaapi.DcnmFieldNotice niaapi.DcnmFieldNotice.List: @@ -874949,7 +903510,90 @@ components: allOf: - $ref: '#/components/schemas/niaapi.HardwareEol' description: The hardware end of life notice for DCNM. - example: {} + example: + MigrationUrl: MigrationUrl + AnnouncementDate: 2000-01-23T04:56:07.000+00:00 + Description: Description + HardwareEolUrl: HardwareEolUrl + Parent: null + LastShipDate: 2000-01-23T04:56:07.000+00:00 + EndofSwMaintenanceDateEpoch: 7 + ClassId: niaapi.ApicHweol + LastShipDateEpoch: 3 + AnnouncementDateEpoch: 0 + Owners: + - Owners + - Owners + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: niaapi.ApicHweol + EndofSecuritySupport: 2000-01-23T04:56:07.000+00:00 + EndofSaleDate: 2000-01-23T04:56:07.000+00:00 + Headline: Headline + AffectedPids: AffectedPids + EndofNewServiceAttachmentDateEpoch: 6 + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key + EndofRoutineFailureAnalysisDateEpoch: 1 + EndofSecuritySupportEpoch: 5 + SharedScope: SharedScope + EndofNewServiceAttachmentDate: 2000-01-23T04:56:07.000+00:00 + CreateTime: 2000-01-23T04:56:07.000+00:00 + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + BulletinNo: BulletinNo + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + EndofServiceContractRenewalDateEpoch: 2 + EndofSwMaintenanceDate: 2000-01-23T04:56:07.000+00:00 + LastDateofSupportEpoch: 9 + EndofSaleDateEpoch: 5 + Moid: Moid + EndofServiceContractRenewalDate: 2000-01-23T04:56:07.000+00:00 + LastDateofSupport: 2000-01-23T04:56:07.000+00:00 + EndofRoutineFailureAnalysisDate: 2000-01-23T04:56:07.000+00:00 title: Niaapi:Dcnm Hweol x-allOf-name: niaapi.DcnmHweol niaapi.DcnmHweol.List: @@ -874996,7 +903640,69 @@ components: - $ref: '#/components/schemas/niaapi.MaintainedRelease' description: This contains the latest maintained release information for each release on DCNM. - example: {} + example: + SharedScope: SharedScope + Parent: null + CreateTime: 2000-01-23T04:56:07.000+00:00 + ClassId: niaapi.ApicLatestMaintainedRelease + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + SoftwareRelease: SoftwareRelease + Owners: + - Owners + - Owners + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: niaapi.ApicLatestMaintainedRelease + VersionTag: VersionTag + Moid: Moid + DisplayNames: + key: + - DisplayNames + - DisplayNames + MaintainedRelease: MaintainedRelease + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key title: Niaapi:Dcnm Latest Maintained Release x-allOf-name: niaapi.DcnmLatestMaintainedRelease niaapi.DcnmLatestMaintainedRelease.List: @@ -875043,7 +903749,70 @@ components: allOf: - $ref: '#/components/schemas/niaapi.ReleaseRecommend' description: The recommend version information for each release on DCNM. - example: {} + example: + Cll: Cll + Crr: Crr + SharedScope: SharedScope + Parent: null + CreateTime: 2000-01-23T04:56:07.000+00:00 + ClassId: niaapi.ApicReleaseRecommend + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + Pid: Pid + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Owners: + - Owners + - Owners + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: niaapi.ApicReleaseRecommend + Ull: Ull + Moid: Moid + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key title: Niaapi:Dcnm Release Recommend x-allOf-name: niaapi.DcnmReleaseRecommend niaapi.DcnmReleaseRecommend.List: @@ -875090,7 +903859,84 @@ components: allOf: - $ref: '#/components/schemas/niaapi.SoftwareEol' description: The software end of life notice for DCNM. - example: {} + example: + MigrationUrl: MigrationUrl + AnnouncementDate: 2000-01-23T04:56:07.000+00:00 + Description: Description + Parent: null + LastShipDate: 2000-01-23T04:56:07.000+00:00 + EndofSwMaintenanceDateEpoch: 5 + ClassId: niaapi.ApicSweol + LastShipDateEpoch: 2 + AnnouncementDateEpoch: 0 + Owners: + - Owners + - Owners + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: niaapi.ApicSweol + Headline: Headline + AffectedVersions: AffectedVersions + EndofNewServiceAttachmentDateEpoch: 6 + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key + SharedScope: SharedScope + EndofNewServiceAttachmentDate: 2000-01-23T04:56:07.000+00:00 + CreateTime: 2000-01-23T04:56:07.000+00:00 + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + BulletinNo: BulletinNo + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + EndofServiceContractRenewalDateEpoch: 1 + SoftwareEolUrl: SoftwareEolUrl + EndofSwMaintenanceDate: 2000-01-23T04:56:07.000+00:00 + LastDateofSupportEpoch: 5 + Moid: Moid + EndofServiceContractRenewalDate: 2000-01-23T04:56:07.000+00:00 + LastDateofSupport: 2000-01-23T04:56:07.000+00:00 title: Niaapi:Dcnm Sweol x-allOf-name: niaapi.DcnmSweol niaapi.DcnmSweol.List: @@ -875641,6 +904487,17 @@ components: - ObjectType type: object description: The detail content of of this post. + example: + ObjectType: niaapi.NewReleaseDetail + ReleaseNoteLinkTitle: ReleaseNoteLinkTitle + SoftwareDownloadLink: SoftwareDownloadLink + Description: Description + SoftwareDownloadLinkTitle: SoftwareDownloadLinkTitle + Version: Version + Title: Title + ClassId: niaapi.NewReleaseDetail + ReleaseNoteLink: ReleaseNoteLink + Link: Link nullable: true title: Niaapi:New Release Detail x-allOf-name: niaapi.NewReleaseDetail @@ -876416,6 +905273,12 @@ components: - ObjectType type: object description: The Revision info including date comment and revision number. + example: + ObjectType: niaapi.RevisionInfo + RevisionNo: RevisionNo + RevisionComment: RevisionComment + ClassId: niaapi.RevisionInfo + DatePublished: 2000-01-23T04:56:07.000+00:00 nullable: true title: Niaapi:Revision Info x-allOf-name: niaapi.RevisionInfo @@ -895527,6 +924390,9 @@ components: Abstract type to be used as a condition for notification.Subscription object. Gives the ability to change add different conditions types in the model without drastic changes to the model itself. + example: + ObjectType: aaa.UserAgent + ClassId: aaa.UserAgent nullable: true title: Notification:Abstract Condition x-allOf-name: notification.AbstractCondition @@ -895688,17 +924554,85 @@ components: AccountSubscription is a concrete type that extends abstract Subscription type and intent to be used only for account level subscriptions by Account Administrator. example: - ObjectType: notification.AccountSubscription Account: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - Type: email + SharedScope: SharedScope + Parent: null + Actions: + - ObjectType: aaa.UserAgent + ClassId: aaa.UserAgent + - ObjectType: aaa.UserAgent + ClassId: aaa.UserAgent + CreateTime: 2000-01-23T04:56:07.000+00:00 + Enabled: true ClassId: notification.AccountSubscription - Verify: none + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Conditions: + - ObjectType: aaa.UserAgent + ClassId: aaa.UserAgent + - ObjectType: aaa.UserAgent + ClassId: aaa.UserAgent + Owners: + - Owners + - Owners Name: Name + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: notification.AccountSubscription + Type: email + Moid: Moid + DisplayNames: + key: + - DisplayNames + - DisplayNames + Verify: none + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key title: Notification:Account Subscription x-allOf-name: notification.AccountSubscription notification.AccountSubscription.List: @@ -895728,6 +924662,9 @@ components: description: |- Action abstract complex type describes the action the framework should perform when the event matched with a specific subscription is found. Ex.: Send Email, Send Mobile Push, Publish to a specific topic, etc. + example: + ObjectType: aaa.UserAgent + ClassId: aaa.UserAgent nullable: true title: Notification:Action x-allOf-name: notification.Action @@ -896373,25 +925310,85 @@ components: Time Protocol (NTP) is used to synchronize with computer clock time sources in a network. example: + Parent: null + ClassId: ntp.NtpServer + Owners: + - Owners + - Owners + ServerIpAddress: ServerIpAddress + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified ObjectType: ntp.NtpServer - Type: Server NetworkElement: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + Stratum: 9 + VrfName: VrfName + DisplayNames: + key: + - DisplayNames + - DisplayNames + Rn: Rn + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key RegisteredDevice: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - Stratum: 9 - VrfName: VrfName + SharedScope: SharedScope + CreateTime: 2000-01-23T04:56:07.000+00:00 + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + Dn: Dn + AccountMoid: AccountMoid + DeviceMoId: DeviceMoId + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Type: Server + Moid: Moid Poll: 164 - ClassId: ntp.NtpServer - ServerIpAddress: ServerIpAddress title: Ntp:Ntp Server x-allOf-name: ntp.NtpServer ntp.NtpServer.List: @@ -897071,7 +926068,7 @@ components: description: Policy to configure the NTP Servers. example: Timezone: Pacific/Niue - ObjectType: ntp.Policy + Description: Description ApplianceAccount: ObjectType: aaa.AuditRecord link: link @@ -897089,6 +926086,56 @@ components: - NtpServers - NtpServers - NtpServers + SharedScope: SharedScope + Parent: null + CreateTime: 2000-01-23T04:56:07.000+00:00 + Enabled: true + ClassId: ntp.Policy + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Owners: + - Owners + - Owners + Name: Name + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: ntp.Policy Profiles: - ObjectType: aaa.AuditRecord link: link @@ -897100,8 +926147,17 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector - Enabled: true - ClassId: ntp.Policy + Moid: Moid + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key AuthenticatedNtpServers: - ObjectType: ntp.AuthNtpServer KeyType: SHA1 @@ -899224,14 +928280,14 @@ components: for software upgrades of the Intersight Appliance. example: ObjectType: onprem.Schedule - DayOfWeek: 1 - TimeOfDay: 19890 + DayOfWeek: 4 + TimeOfDay: 61009 TimeZone: Pacific/Niue - MonthOfYear: 7 - DayOfMonth: 18 + MonthOfYear: 6 + DayOfMonth: 4 ClassId: onprem.Schedule - WeekOfMonth: 3 - RepeatInterval: 5 + WeekOfMonth: 4 + RepeatInterval: 2 nullable: true title: Onprem:Schedule x-allOf-name: onprem.Schedule @@ -899876,16 +928932,91 @@ components: type: object description: An OpenAPI specification file uploaded to generate workflow tasks. example: - FilePath: FilePath - ObjectType: openapi.OpenApiSpecification + Description: Description + ImportState: ReadyForImport Organization: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - FileUploadId: FileUploadId + Parent: null + Size: 6 ClassId: openapi.OpenApiSpecification + LastAccessTime: 2000-01-23T04:56:07.000+00:00 + Source: + ObjectType: aaa.UserAgent + ClassId: aaa.UserAgent + Owners: + - Owners + - Owners + Name: Name + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: openapi.OpenApiSpecification + SoftwareAdvisoryUrl: SoftwareAdvisoryUrl + Version: Version + FileUploadId: FileUploadId + ImportAction: None + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key + ImportedTime: 2000-01-23T04:56:07.000+00:00 + FilePath: FilePath + FeatureSource: System + Sha512sum: Sha512sum + SharedScope: SharedScope + CreateTime: 2000-01-23T04:56:07.000+00:00 + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + ReleaseDate: 2000-01-23T04:56:07.000+00:00 + AccountMoid: AccountMoid + Md5eTag: Md5eTag + Md5sum: Md5sum + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Moid: Moid + DownloadCount: 0 title: OpenAPI Specification File Upload x-allOf-name: openapi.OpenApiSpecification openapi.OpenApiSpecification.List: @@ -902885,45 +932016,144 @@ components: The requests to this MO starts a OS installation workflow that can be tracked using workflow engine MO workflow.WorkflowInfo. example: - ObjectType: os.Install + AdditionalParameters: + - IsValueSet: true + ObjectType: os.PlaceHolder + Type: "" + Value: "" + ClassId: os.PlaceHolder + - IsValueSet: true + ObjectType: os.PlaceHolder + Type: "" + Value: "" + ClassId: os.PlaceHolder + Description: Description Organization: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + OperState: Pending Server: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + Parent: null + ClassId: os.Install + InstallTarget: + ObjectType: aaa.UserAgent + ClassId: aaa.UserAgent + Image: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Owners: + - Owners + - Owners + Name: Name + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: os.Install + InstallMethod: vMedia + OverrideSecureBoot: true OsduImage: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key + Answers: + AlternateNameServers: + - AlternateNameServers + - AlternateNameServers + AnswerFile: AnswerFile + IsRootPasswordCrypted: true + IpConfiguration: + ObjectType: aaa.UserAgent + ClassId: aaa.UserAgent + NetworkDevice: NetworkDevice + Hostname: Hostname + Nameserver: Nameserver + ClassId: os.Answers + IsAnswerFileSet: false + Source: None + ObjectType: os.Answers + RootPassword: RootPassword + IsRootPasswordSet: false + IpConfigType: static + ProductKey: ProductKey + SharedScope: SharedScope + CreateTime: 2000-01-23T04:56:07.000+00:00 WorkflowInfo: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - ClassId: os.Install - ConfigurationFile: - ObjectType: aaa.AuditRecord + ErrorMsg: ErrorMsg + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - Image: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + OperatingSystemParameters: + ObjectType: aaa.UserAgent + ClassId: aaa.UserAgent + Moid: Moid + ConfigurationFile: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - Name: Name title: OS Install x-allOf-name: os.Install os.Install.List: @@ -903342,6 +932572,12 @@ components: Bootable: Bootable StorageControllerSlotId: StorageControllerSlotId ClassId: os.PhysicalDiskResponse + SourceMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector Name: Name title: Physical Disk x-allOf-name: os.PhysicalDiskResponse @@ -903942,12 +933178,24 @@ components: StorageControllerSlotId: StorageControllerSlotId ClassId: os.VirtualDriveResponse Id: Id + SourceMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector Name: Name - ObjectType: os.VirtualDriveResponse Bootable: Bootable StorageControllerSlotId: StorageControllerSlotId ClassId: os.VirtualDriveResponse Id: Id + SourceMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector Name: Name M2VirtualDrives: - ObjectType: os.VirtualDriveResponse @@ -903955,12 +933203,24 @@ components: StorageControllerSlotId: StorageControllerSlotId ClassId: os.VirtualDriveResponse Id: Id + SourceMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector Name: Name - ObjectType: os.VirtualDriveResponse Bootable: Bootable StorageControllerSlotId: StorageControllerSlotId ClassId: os.VirtualDriveResponse Id: Id + SourceMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector Name: Name Parent: null Src: Src @@ -903971,12 +933231,24 @@ components: Bootable: Bootable StorageControllerSlotId: StorageControllerSlotId ClassId: os.PhysicalDiskResponse + SourceMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector Name: Name - ObjectType: os.PhysicalDiskResponse SerialNumber: SerialNumber Bootable: Bootable StorageControllerSlotId: StorageControllerSlotId ClassId: os.PhysicalDiskResponse + SourceMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector Name: Name Servers: - ObjectType: aaa.AuditRecord @@ -904023,12 +933295,24 @@ components: Bootable: Bootable StorageControllerSlotId: StorageControllerSlotId ClassId: os.PhysicalDiskResponse + SourceMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector Name: Name - ObjectType: os.PhysicalDiskResponse SerialNumber: SerialNumber Bootable: Bootable StorageControllerSlotId: StorageControllerSlotId ClassId: os.PhysicalDiskResponse + SourceMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector Name: Name MraidVirtualDrives: - ObjectType: os.VirtualDriveResponse @@ -904036,12 +933320,24 @@ components: StorageControllerSlotId: StorageControllerSlotId ClassId: os.VirtualDriveResponse Id: Id + SourceMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector Name: Name - ObjectType: os.VirtualDriveResponse Bootable: Bootable StorageControllerSlotId: StorageControllerSlotId ClassId: os.VirtualDriveResponse Id: Id + SourceMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector Name: Name DisplayNames: key: @@ -904066,12 +933362,24 @@ components: Bootable: Bootable StorageControllerSlotId: StorageControllerSlotId ClassId: os.PhysicalDiskResponse + SourceMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector Name: Name - ObjectType: os.PhysicalDiskResponse SerialNumber: SerialNumber Bootable: Bootable StorageControllerSlotId: StorageControllerSlotId ClassId: os.PhysicalDiskResponse + SourceMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector Name: Name AccountMoid: AccountMoid Ancestors: @@ -904108,12 +933416,24 @@ components: Bootable: Bootable StorageControllerSlotId: StorageControllerSlotId ClassId: os.PhysicalDiskResponse + SourceMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector Name: Name - ObjectType: os.PhysicalDiskResponse SerialNumber: SerialNumber Bootable: Bootable StorageControllerSlotId: StorageControllerSlotId ClassId: os.PhysicalDiskResponse + SourceMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector Name: Name Moid: Moid M2Jbod: @@ -904122,12 +933442,24 @@ components: Bootable: Bootable StorageControllerSlotId: StorageControllerSlotId ClassId: os.PhysicalDiskResponse + SourceMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector Name: Name - ObjectType: os.PhysicalDiskResponse SerialNumber: SerialNumber Bootable: Bootable StorageControllerSlotId: StorageControllerSlotId ClassId: os.PhysicalDiskResponse + SourceMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector Name: Name title: Os:Valid Install Target x-allOf-name: os.ValidInstallTarget @@ -904306,6 +933638,12 @@ components: StorageControllerSlotId: StorageControllerSlotId ClassId: os.VirtualDriveResponse Id: Id + SourceMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector Name: Name title: Virtual Drive x-allOf-name: os.VirtualDriveResponse @@ -905228,17 +934566,92 @@ components: description: A partner integration artifact which will be files containing development code uploaded by our partners to get the build for dc/microservice. example: - FilePath: FilePath + Description: Description + ImportState: ReadyForImport + Parent: null + Size: 6 + ClassId: partnerintegration.File + LastAccessTime: 2000-01-23T04:56:07.000+00:00 + Source: + ObjectType: aaa.UserAgent + ClassId: aaa.UserAgent + Owners: + - Owners + - Owners + Name: Name + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified ObjectType: partnerintegration.File - FileType: None + SoftwareAdvisoryUrl: SoftwareAdvisoryUrl + Version: Version + ImportAction: None WorkspaceName: default - ClassId: partnerintegration.File + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key + ImportedTime: 2000-01-23T04:56:07.000+00:00 + FilePath: FilePath + FeatureSource: System + Sha512sum: Sha512sum + SharedScope: SharedScope + CreateTime: 2000-01-23T04:56:07.000+00:00 + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + ReleaseDate: 2000-01-23T04:56:07.000+00:00 + AccountMoid: AccountMoid + Md5eTag: Md5eTag + Md5sum: Md5sum + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector Catalog: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + FileType: None + Moid: Moid + DownloadCount: 0 title: Partner Integration File Artifact x-allOf-name: partnerintegration.File partnerintegration.File.List: @@ -906262,28 +935675,100 @@ components: type: object description: PCIe Compression and Cryptographic CPU Offload Card. example: + Parent: null + PciSlot: PciSlot + InventoryDeviceInfo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ComputeBoard: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: pci.CoprocessorCard + CardId: 0 + Owners: + - Owners + - Owners + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified ObjectType: pci.CoprocessorCard + IsUpgraded: false + Presence: Presence + DisplayNames: + key: + - DisplayNames + - DisplayNames + Rn: Rn + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key RegisteredDevice: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - PciSlot: PciSlot - InventoryDeviceInfo: + SharedScope: SharedScope + CreateTime: 2000-01-23T04:56:07.000+00:00 + PreviousFru: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - ComputeBoard: - ObjectType: aaa.AuditRecord + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + Dn: Dn + Vendor: Vendor + AccountMoid: AccountMoid + DeviceMoId: DeviceMoId + Ancestors: + - ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - ClassId: pci.CoprocessorCard - CardId: 0 + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Serial: Serial + Revision: Revision + Model: Model + Moid: Moid title: Pci:Coprocessor Card x-allOf-name: pci.CoprocessorCard pci.CoprocessorCard.List: @@ -906398,47 +935883,119 @@ components: type: object description: PCI device present in a server. example: - GraphicsCards: - - ObjectType: aaa.AuditRecord + Parent: null + InventoryDeviceInfo: + ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - - ObjectType: aaa.AuditRecord + DeviceId: DeviceId + ComputeBlade: + ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + ClassId: pci.Device + ComputeRackUnit: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Owners: + - Owners + - Owners + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified ObjectType: pci.Device SlotId: SlotId + IsUpgraded: false + Presence: Presence + DisplayNames: + key: + - DisplayNames + - DisplayNames + Rn: Rn + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key RegisteredDevice: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - InventoryDeviceInfo: + SharedScope: SharedScope + CreateTime: 2000-01-23T04:56:07.000+00:00 + PreviousFru: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - DeviceId: DeviceId - ComputeBlade: - ObjectType: aaa.AuditRecord + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + Dn: Dn + Pid: Pid + Vendor: Vendor + AccountMoid: AccountMoid + DeviceMoId: DeviceMoId + Ancestors: + - ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - ClassId: pci.Device - Pid: Pid - ComputeRackUnit: - ObjectType: aaa.AuditRecord + - ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector FirmwareVersion: FirmwareVersion + GraphicsCards: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Serial: Serial + Revision: Revision + Model: Model + Moid: Moid title: Pci:Device x-allOf-name: pci.Device pci.Device.List: @@ -906557,7 +936114,63 @@ components: type: object description: The PCI Switch Link connected to PCIe Switch. example: + Parent: null + PciSlot: PciSlot + InventoryDeviceInfo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: pci.Link + Adapter: Adapter + Owners: + - Owners + - Owners + PciSwitch: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified ObjectType: pci.Link + IsUpgraded: false + Presence: Presence + DisplayNames: + key: + - DisplayNames + - DisplayNames + Rn: Rn + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key LinkStatus: LinkStatus RegisteredDevice: ObjectType: aaa.AuditRecord @@ -906565,24 +936178,40 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector - PciSlot: PciSlot - InventoryDeviceInfo: + SharedScope: SharedScope + SlotStatus: SlotStatus + CreateTime: 2000-01-23T04:56:07.000+00:00 + PreviousFru: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - SlotStatus: SlotStatus LinkWidth: LinkWidth - ClassId: pci.Link - Adapter: Adapter - LinkSpeed: LinkSpeed - PciSwitch: - ObjectType: aaa.AuditRecord + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + Dn: Dn + Vendor: Vendor + AccountMoid: AccountMoid + DeviceMoId: DeviceMoId + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + Serial: Serial + Revision: Revision + Model: Model + Moid: Moid + LinkSpeed: LinkSpeed title: Pci:Link x-allOf-name: pci.Link pci.Link.List: @@ -906888,22 +936517,63 @@ components: type: object description: External pci nodes connected to a server. example: - OperReason: - - Unknown - - Unknown - GraphicsCards: - - ObjectType: aaa.AuditRecord + OperState: OperState + Parent: null + InventoryDeviceInfo: + ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - - ObjectType: aaa.AuditRecord + ComputeBlade: + ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + ClassId: pci.Node + Owners: + - Owners + - Owners + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified ObjectType: pci.Node SlotId: SlotId + IsUpgraded: false + Presence: Presence + DisplayNames: + key: + - DisplayNames + - DisplayNames + Rn: Rn + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key ChassisId: ChassisId RegisteredDevice: ObjectType: aaa.AuditRecord @@ -906911,20 +936581,51 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector - OperState: OperState - InventoryDeviceInfo: + SharedScope: SharedScope + CreateTime: 2000-01-23T04:56:07.000+00:00 + PreviousFru: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - ComputeBlade: - ObjectType: aaa.AuditRecord + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + Dn: Dn + Vendor: Vendor + AccountMoid: AccountMoid + DeviceMoId: DeviceMoId + Ancestors: + - ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - ClassId: pci.Node + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + OperReason: + - Unknown + - Unknown + GraphicsCards: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Serial: Serial + Revision: Revision + Model: Model + Moid: Moid title: Pci:Node x-allOf-name: pci.Node pci.Node.List: @@ -907088,14 +936789,8 @@ components: adapter. example: Temperature: Temperature - RegisteredDevice: - ObjectType: aaa.AuditRecord - link: link - Moid: Moid - ClassId: mo.MoRef - Selector: Selector ProductName: ProductName - Health: Health + Parent: null PciSlot: PciSlot InventoryDeviceInfo: ObjectType: aaa.AuditRecord @@ -907104,7 +936799,6 @@ components: ClassId: mo.MoRef Selector: Selector DeviceId: DeviceId - NumOfAdaptors: NumOfAdaptors ComputeBoard: ObjectType: aaa.AuditRecord link: link @@ -907116,9 +936810,35 @@ components: PciAddress: PciAddress ProductRevision: ProductRevision SubVendorId: SubVendorId + Owners: + - Owners + - Owners + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified ObjectType: pci.Switch - SubDeviceId: SubDeviceId - Type: Type + IsUpgraded: false RunningFirmware: - ObjectType: aaa.AuditRecord link: link @@ -907130,6 +936850,59 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector + Presence: Presence + DisplayNames: + key: + - DisplayNames + - DisplayNames + Rn: Rn + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key + RegisteredDevice: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + SharedScope: SharedScope + Health: Health + NumOfAdaptors: NumOfAdaptors + CreateTime: 2000-01-23T04:56:07.000+00:00 + PreviousFru: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + Dn: Dn + Vendor: Vendor + AccountMoid: AccountMoid + DeviceMoId: DeviceMoId + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + SubDeviceId: SubDeviceId + Serial: Serial + Type: Type + Revision: Revision + Model: Model + Moid: Moid Links: - ObjectType: aaa.AuditRecord link: link @@ -908507,6 +938280,11 @@ components: - ObjectType type: object description: An action parameter setting as a key/value pair. + example: + ObjectType: policy.ActionParam + Value: Value + ClassId: policy.ActionParam + Name: Name nullable: true title: Policy:Action Param x-allOf-name: policy.ActionParam @@ -908911,6 +938689,15 @@ components: type: object description: "The context for a validation/config result such as the related\ \ entity's name, type, MOID etc." + example: + EntityType: EntityType + ObjectType: policy.ConfigResultContext + EntityName: EntityName + EntityData: "" + ParentType: ParentType + EntityMoid: EntityMoid + ClassId: policy.ConfigResultContext + ParentMoid: ParentMoid nullable: true title: Policy:Config Result Context x-allOf-name: policy.ConfigResultContext @@ -908970,6 +938757,11 @@ components: type: object description: The error descriptor for any policy related configuration/computational error on policy attach/detach to/from a profile/template. + example: + ObjectType: policy.PolicyError + Type: none + Message: Message + ClassId: policy.PolicyError nullable: true title: Policy:Policy Error x-allOf-name: policy.PolicyError @@ -909042,6 +938834,22 @@ components: The status descriptor for any policy association or validation related to a profile/template. It contains the policy details like moid and type and the status progress like validating, ok or errored. In case of one or more errors, the error details are populated in errorMessages. + example: + ErrorMessages: + - ObjectType: policy.PolicyError + Type: none + Message: Message + ClassId: policy.PolicyError + - ObjectType: policy.PolicyError + Type: none + Message: Message + ClassId: policy.PolicyError + Status: ok + ObjectType: policy.PolicyStatus + Type: Type + Moid: Moid + ClassId: policy.PolicyStatus + Reason: Reason nullable: true title: Policy:Policy Status x-allOf-name: policy.PolicyStatus @@ -909092,6 +938900,11 @@ components: type: object description: ScheduledAction can be used to schedule actions after current workflow in an asynchronous manner. + example: + ObjectType: policy.ScheduledAction + Action: Action + ClassId: policy.ScheduledAction + ProceedOnReboot: true nullable: true title: Policy:Scheduled Action x-allOf-name: policy.ScheduledAction @@ -909222,6 +939035,13 @@ components: - ObjectType type: object description: Complex type representing the Job Information of a device. + example: + ObjectType: policyinventory.JobInfo + ExecutionStatus: Scheduled + PolicyName: PolicyName + ClassId: policyinventory.JobInfo + PolicyId: PolicyId + LastScheduledTime: 2000-01-23T04:56:07.000+00:00 nullable: true title: Policyinventory:Job Info x-allOf-name: policyinventory.JobInfo @@ -909800,20 +939620,21 @@ components: description: Holder for multiple ports. A switch card will have one or more port groups. example: - ObjectType: port.Group EquipmentSwitchCard: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - RegisteredDevice: + Parent: null + InventoryDeviceInfo: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - EthernetPorts: + ClassId: port.Group + FcPorts: - ObjectType: aaa.AuditRecord link: link Moid: Moid @@ -909824,41 +939645,100 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector - InventoryDeviceInfo: - ObjectType: aaa.AuditRecord + SubGroups: + - ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - ClassId: port.Group - FcPorts: - ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + Owners: + - Owners + - Owners + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: port.Group + EthernetPorts: - ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - SubGroups: - ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - - ObjectType: aaa.AuditRecord + DisplayNames: + key: + - DisplayNames + - DisplayNames + Rn: Rn + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key + RegisteredDevice: + ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + SharedScope: SharedScope + CreateTime: 2000-01-23T04:56:07.000+00:00 + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + Dn: Dn EquipmentSharedIoModule: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + AccountMoid: AccountMoid + DeviceMoId: DeviceMoId + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Moid: Moid Transport: Transport title: Port:Group x-allOf-name: port.Group @@ -910091,22 +939971,41 @@ components: description: Establishes relationship between the ports and connected end points based on LLDP TLVs. example: - ChassisId: 6 - RegisteredDevice: - ObjectType: aaa.AuditRecord - link: link - Moid: Moid - ClassId: mo.MoRef - Selector: Selector + Parent: null PortId: 7 ClassId: port.MacBinding ChassisVendor: ChassisVendor - ModuleSerial: ModuleSerial SwitchId: 3 DeviceMac: DeviceMac + Owners: + - Owners + - Owners ModuleModel: ModuleModel + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified ModulePortId: 5 - ModuleSide: 5 ObjectType: port.MacBinding SlotId: 9 ChassisSerial: ChassisSerial @@ -910118,8 +940017,49 @@ components: ClassId: mo.MoRef Selector: Selector AggregatePortId: 0 - PortMac: PortMac ModuleSlot: 2 + DisplayNames: + key: + - DisplayNames + - DisplayNames + Rn: Rn + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key + ChassisId: 6 + RegisteredDevice: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + SharedScope: SharedScope + CreateTime: 2000-01-23T04:56:07.000+00:00 + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + Dn: Dn + ModuleSerial: ModuleSerial + AccountMoid: AccountMoid + DeviceMoId: DeviceMoId + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ModuleSide: 5 + PortMac: PortMac + Moid: Moid ModuleMode: 1 ChassisModel: ChassisModel title: Port:Mac Binding @@ -910319,15 +940259,21 @@ components: description: Holder for multiple ports within a portGroup. SubGroup represents a break-out port group on the Fabric Interconnect. example: - ObjectType: port.SubGroup - SlotId: 6 - RegisteredDevice: + Parent: null + InventoryDeviceInfo: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - EthernetPorts: + PortGroup: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: port.SubGroup + FcPorts: - ObjectType: aaa.AuditRecord link: link Moid: Moid @@ -910338,14 +940284,42 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector - InventoryDeviceInfo: - ObjectType: aaa.AuditRecord + Owners: + - Owners + - Owners + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: port.SubGroup + SlotId: 6 + EthernetPorts: + - ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - PortGroup: - ObjectType: aaa.AuditRecord + - ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef @@ -910362,24 +940336,50 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector - ClassId: port.SubGroup - FcPorts: - - ObjectType: aaa.AuditRecord + EquipmentIoCardBase: + ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + DisplayNames: + key: + - DisplayNames + - DisplayNames + Rn: Rn + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key + RegisteredDevice: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + SharedScope: SharedScope + CreateTime: 2000-01-23T04:56:07.000+00:00 + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + Dn: Dn + AccountMoid: AccountMoid + DeviceMoId: DeviceMoId + Ancestors: - ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - EquipmentIoCardBase: - ObjectType: aaa.AuditRecord + - ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + Moid: Moid Transport: Transport title: Port:Sub Group x-allOf-name: port.SubGroup @@ -910588,11 +940588,277 @@ components: ClassId: mo.VersionContext Timestamp: 2000-01-23T04:56:07.000+00:00 VersionType: Modified - ObjectType: power.ControlState - N2MaxPower: 2 - N1MaxPower: 5 - EquipmentChassis: - ObjectType: aaa.AuditRecord + ObjectType: power.ControlState + N2MaxPower: 2 + N1MaxPower: 5 + EquipmentChassis: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key + PowerRebalancing: Enabled + RegisteredDevice: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + SharedScope: SharedScope + CreateTime: 2000-01-23T04:56:07.000+00:00 + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Moid: Moid + AllocatedPower: 0 + MaxRequiredPower: 1 + MinRequiredPower: 5 + title: Power:Control State + x-allOf-name: power.ControlState + power.ControlState.List: + allOf: + - $ref: '#/components/schemas/mo.BaseResponse' + - properties: + Count: + description: |- + The total number of 'power.ControlState' resources matching the request, accross all pages. + The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. + format: int32 + type: integer + Results: + description: The array of 'power.ControlState' resources matching the + request. + items: + $ref: '#/components/schemas/power.ControlState' + nullable: true + type: array + type: object + description: This resource list is returned as a response to a HTTP GET request + that does not include a specific resource identifier. + title: List of 'power.ControlState' resources + power.Policy.Response: + description: |- + The response body of a HTTP GET request for the 'power.Policy' resource. + The value may be one of the following types. + 1. When 'tag' is specified in the URL query, the response schema + is a summary of the tag usage. + 1. When '$apply' is specified in the URL query, the response schema + is dynamically-generated schema based on the $apply value. + 1. When '$count' is specified in the URL query, the response is + a simple object providing the count of the resources. + 1. In all other cases, the response is a list of 'power.Policy' resources. + discriminator: + propertyName: ObjectType + oneOf: + - $ref: '#/components/schemas/mo.DocumentCount' + - $ref: '#/components/schemas/power.Policy.List' + - $ref: '#/components/schemas/mo.AggregateTransform' + - $ref: '#/components/schemas/mo.TagSummary' + x-one-of-name: power.Policy.Response + power.Policy: + allOf: + - $ref: '#/components/schemas/policy.AbstractPolicy' + - description: "Definition of the list of properties defined in 'power.Policy',\ + \ excluding properties defined in parent classes." + properties: + ClassId: + default: power.Policy + description: |- + The fully-qualified name of the instantiated, concrete type. + This property is used as a discriminator to identify the type of the payload + when marshaling and unmarshaling data. + enum: + - power.Policy + type: string + x-enum-as-string: true + ObjectType: + default: power.Policy + description: |- + The fully-qualified name of the instantiated, concrete type. + The value should be the same as the 'ClassId' property. + enum: + - power.Policy + type: string + x-enum-as-string: true + AllocatedBudget: + default: 0 + description: Sets the allocated power budget of the chassis (in Watts). + format: int64 + maximum: 65535 + minimum: 0 + type: integer + x-omitempty: true + DynamicRebalancing: + default: Enabled + description: |- + Sets the dynamic power rebalancing mode of the chassis. If enabled, this mode allows the chassis to dynamically reallocate the power between servers depending on their power usage. + * `Enabled` - Set the value to Enabled. + * `Disabled` - Set the value to Disabled. + enum: + - Enabled + - Disabled + type: string + x-omitempty: true + ExtendedPowerCapacity: + default: Enabled + description: |- + Sets the Extended Power Capacity of the Chassis. If Enabled, this mode allows chassis available power to be increased by borrowing power from redundant power supplies. This option is only supported for Cisco UCS X series Chassis. + * `Enabled` - Set the value to Enabled. + * `Disabled` - Set the value to Disabled. + enum: + - Enabled + - Disabled + type: string + x-omitempty: true + PowerPriority: + default: Low + description: |- + Sets the Power Priority of the Server. This priority is used to determine the initial power allocation for servers. This field is only supported for Cisco UCS B series and X series servers. + * `Low` - Set the Power Priority to Low. + * `Medium` - Set the Power Priority to Medium. + * `High` - Set the Power Priority to High. + enum: + - Low + - Medium + - High + type: string + x-omitempty: true + PowerProfiling: + default: Enabled + description: |- + Sets the Power Profiling of the Server. If Enabled, this field allows the power manager to run power profiling utility to determine the power needs of the server. This field is only supported for Cisco UCS X series servers. + * `Enabled` - Set the value to Enabled. + * `Disabled` - Set the value to Disabled. + enum: + - Enabled + - Disabled + type: string + x-omitempty: true + PowerRestoreState: + default: AlwaysOff + description: |- + Sets the Power Restore State of the Server. In the absence of Intersight connectivity, the chassis will use this policy to recover the host power after a power loss event. This field is only supported for Cisco UCS B series and X series servers. + * `AlwaysOff` - Set the Power Restore Mode to Off. + * `AlwaysOn` - Set the Power Restore Mode to On. + * `LastState` - Set the Power Restore Mode to LastState. + enum: + - AlwaysOff + - AlwaysOn + - LastState + type: string + x-omitempty: true + PowerSaveMode: + default: Enabled + description: |- + Sets the power save mode of the chassis. If the requested power budget is less than available power capacity, the additional PSUs not required to comply with redundancy policy are placed in power save mode. + * `Enabled` - Set the value to Enabled. + * `Disabled` - Set the value to Disabled. + enum: + - Enabled + - Disabled + type: string + x-omitempty: true + RedundancyMode: + default: Grid + description: |- + Sets the Power Redundancy Mode of the Chassis. Redundancy Mode determines the number of PSUs the chassis keeps as redundant. N+2 mode is only supported for Cisco UCS X series Chassis. + * `Grid` - Grid Mode requires two power sources. If one source fails, the surviving PSUs connected to the other source provides power to the chassis. + * `NotRedundant` - Power Manager turns on the minimum number of PSUs required to support chassis power requirements. No Redundant PSUs are maintained. + * `N+1` - Power Manager turns on the minimum number of PSUs required to support chassis power requirements plus one additional PSU for redundancy. + * `N+2` - Power Manager turns on the minimum number of PSUs required to support chassis power requirements plus two additional PSU for redundancy. This Mode is only supported for UCS X series Chassis. + enum: + - Grid + - NotRedundant + - N+1 + - N+2 + type: string + x-omitempty: true + Organization: + $ref: '#/components/schemas/organization.Organization.Relationship' + Profiles: + description: An array of relationships to policyAbstractConfigProfile + resources. + items: + $ref: '#/components/schemas/policy.AbstractConfigProfile.Relationship' + nullable: true + type: array + required: + - ClassId + - ObjectType + type: object + description: Power Management policy models a configuration that can be applied + to Chassis or Server to manage Power Related Features. + example: + Description: Description + Organization: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Parent: null + ExtendedPowerCapacity: Enabled + ClassId: power.Policy + PowerSaveMode: Enabled + Owners: + - Owners + - Owners + Name: Name + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: power.Policy + Profiles: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef @@ -910607,20 +940873,16 @@ components: Key: Key - Value: Value Key: Key - PowerRebalancing: Enabled - RegisteredDevice: - ObjectType: aaa.AuditRecord - link: link - Moid: Moid - ClassId: mo.MoRef - Selector: Selector SharedScope: SharedScope CreateTime: 2000-01-23T04:56:07.000+00:00 + PowerProfiling: Enabled DomainGroupMoid: DomainGroupMoid PermissionResources: - null - null AccountMoid: AccountMoid + AllocatedBudget: 5248 + RedundancyMode: Grid Ancestors: - ObjectType: aaa.AuditRecord link: link @@ -910632,213 +940894,10 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector - Moid: Moid - AllocatedPower: 0 - MaxRequiredPower: 1 - MinRequiredPower: 5 - title: Power:Control State - x-allOf-name: power.ControlState - power.ControlState.List: - allOf: - - $ref: '#/components/schemas/mo.BaseResponse' - - properties: - Count: - description: |- - The total number of 'power.ControlState' resources matching the request, accross all pages. - The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. - format: int32 - type: integer - Results: - description: The array of 'power.ControlState' resources matching the - request. - items: - $ref: '#/components/schemas/power.ControlState' - nullable: true - type: array - type: object - description: This resource list is returned as a response to a HTTP GET request - that does not include a specific resource identifier. - title: List of 'power.ControlState' resources - power.Policy.Response: - description: |- - The response body of a HTTP GET request for the 'power.Policy' resource. - The value may be one of the following types. - 1. When 'tag' is specified in the URL query, the response schema - is a summary of the tag usage. - 1. When '$apply' is specified in the URL query, the response schema - is dynamically-generated schema based on the $apply value. - 1. When '$count' is specified in the URL query, the response is - a simple object providing the count of the resources. - 1. In all other cases, the response is a list of 'power.Policy' resources. - discriminator: - propertyName: ObjectType - oneOf: - - $ref: '#/components/schemas/mo.DocumentCount' - - $ref: '#/components/schemas/power.Policy.List' - - $ref: '#/components/schemas/mo.AggregateTransform' - - $ref: '#/components/schemas/mo.TagSummary' - x-one-of-name: power.Policy.Response - power.Policy: - allOf: - - $ref: '#/components/schemas/policy.AbstractPolicy' - - description: "Definition of the list of properties defined in 'power.Policy',\ - \ excluding properties defined in parent classes." - properties: - ClassId: - default: power.Policy - description: |- - The fully-qualified name of the instantiated, concrete type. - This property is used as a discriminator to identify the type of the payload - when marshaling and unmarshaling data. - enum: - - power.Policy - type: string - x-enum-as-string: true - ObjectType: - default: power.Policy - description: |- - The fully-qualified name of the instantiated, concrete type. - The value should be the same as the 'ClassId' property. - enum: - - power.Policy - type: string - x-enum-as-string: true - AllocatedBudget: - default: 0 - description: Sets the allocated power budget of the chassis (in Watts). - format: int64 - maximum: 65535 - minimum: 0 - type: integer - x-omitempty: true - DynamicRebalancing: - default: Enabled - description: |- - Sets the dynamic power rebalancing mode of the chassis. If enabled, this mode allows the chassis to dynamically reallocate the power between servers depending on their power usage. - * `Enabled` - Set the value to Enabled. - * `Disabled` - Set the value to Disabled. - enum: - - Enabled - - Disabled - type: string - x-omitempty: true - ExtendedPowerCapacity: - default: Enabled - description: |- - Sets the Extended Power Capacity of the Chassis. If Enabled, this mode allows chassis available power to be increased by borrowing power from redundant power supplies. This option is only supported for Cisco UCS X series Chassis. - * `Enabled` - Set the value to Enabled. - * `Disabled` - Set the value to Disabled. - enum: - - Enabled - - Disabled - type: string - x-omitempty: true - PowerPriority: - default: Low - description: |- - Sets the Power Priority of the Server. This priority is used to determine the initial power allocation for servers. This field is only supported for Cisco UCS B series and X series servers. - * `Low` - Set the Power Priority to Low. - * `Medium` - Set the Power Priority to Medium. - * `High` - Set the Power Priority to High. - enum: - - Low - - Medium - - High - type: string - x-omitempty: true - PowerProfiling: - default: Enabled - description: |- - Sets the Power Profiling of the Server. If Enabled, this field allows the power manager to run power profiling utility to determine the power needs of the server. This field is only supported for Cisco UCS X series servers. - * `Enabled` - Set the value to Enabled. - * `Disabled` - Set the value to Disabled. - enum: - - Enabled - - Disabled - type: string - x-omitempty: true - PowerRestoreState: - default: AlwaysOff - description: |- - Sets the Power Restore State of the Server. In the absence of Intersight connectivity, the chassis will use this policy to recover the host power after a power loss event. This field is only supported for Cisco UCS B series and X series servers. - * `AlwaysOff` - Set the Power Restore Mode to Off. - * `AlwaysOn` - Set the Power Restore Mode to On. - * `LastState` - Set the Power Restore Mode to LastState. - enum: - - AlwaysOff - - AlwaysOn - - LastState - type: string - x-omitempty: true - PowerSaveMode: - default: Enabled - description: |- - Sets the power save mode of the chassis. If the requested power budget is less than available power capacity, the additional PSUs not required to comply with redundancy policy are placed in power save mode. - * `Enabled` - Set the value to Enabled. - * `Disabled` - Set the value to Disabled. - enum: - - Enabled - - Disabled - type: string - x-omitempty: true - RedundancyMode: - default: Grid - description: |- - Sets the Power Redundancy Mode of the Chassis. Redundancy Mode determines the number of PSUs the chassis keeps as redundant. N+2 mode is only supported for Cisco UCS X series Chassis. - * `Grid` - Grid Mode requires two power sources. If one source fails, the surviving PSUs connected to the other source provides power to the chassis. - * `NotRedundant` - Power Manager turns on the minimum number of PSUs required to support chassis power requirements. No Redundant PSUs are maintained. - * `N+1` - Power Manager turns on the minimum number of PSUs required to support chassis power requirements plus one additional PSU for redundancy. - * `N+2` - Power Manager turns on the minimum number of PSUs required to support chassis power requirements plus two additional PSU for redundancy. This Mode is only supported for UCS X series Chassis. - enum: - - Grid - - NotRedundant - - N+1 - - N+2 - type: string - x-omitempty: true - Organization: - $ref: '#/components/schemas/organization.Organization.Relationship' - Profiles: - description: An array of relationships to policyAbstractConfigProfile - resources. - items: - $ref: '#/components/schemas/policy.AbstractConfigProfile.Relationship' - nullable: true - type: array - required: - - ClassId - - ObjectType - type: object - description: Power Management policy models a configuration that can be applied - to Chassis or Server to manage Power Related Features. - example: PowerRestoreState: AlwaysOff - ObjectType: power.Policy - Organization: - ObjectType: aaa.AuditRecord - link: link - Moid: Moid - ClassId: mo.MoRef - Selector: Selector PowerPriority: Low - PowerProfiling: Enabled - Profiles: - - ObjectType: aaa.AuditRecord - link: link - Moid: Moid - ClassId: mo.MoRef - Selector: Selector - - ObjectType: aaa.AuditRecord - link: link - Moid: Moid - ClassId: mo.MoRef - Selector: Selector - ExtendedPowerCapacity: Enabled - ClassId: power.Policy + Moid: Moid DynamicRebalancing: Enabled - AllocatedBudget: 5248 - PowerSaveMode: Enabled - RedundancyMode: Grid title: Power x-allOf-name: power.Policy power.Policy.List: @@ -911015,22 +941074,77 @@ components: description: Power Management policy models a configuration that can be applied to Chassis or Server to manage Power Related Features. example: - PowerRestoreState: AlwaysOff + Description: Description + Parent: null + ExtendedPowerCapacity: Enabled + ClassId: power.PolicyInventory + PowerSaveMode: Enabled + Owners: + - Owners + - Owners + Name: Name + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified ObjectType: power.PolicyInventory - TargetMo: - ObjectType: aaa.AuditRecord + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key + SharedScope: SharedScope + CreateTime: 2000-01-23T04:56:07.000+00:00 + PowerProfiling: Enabled + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + AccountMoid: AccountMoid + DeviceMoId: DeviceMoId + AllocatedBudget: 5248 + RedundancyMode: Grid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + PowerRestoreState: AlwaysOff + TargetMo: null PowerPriority: Low - PowerProfiling: Enabled - ExtendedPowerCapacity: Enabled - ClassId: power.PolicyInventory + Moid: Moid DynamicRebalancing: Enabled - AllocatedBudget: 5248 - PowerSaveMode: Enabled - RedundancyMode: Grid title: Power x-allOf-name: power.PolicyInventory power.PolicyInventory.List: @@ -911409,6 +941523,7 @@ components: Description: Description OperState: OperState PartNumber: PartNumber + Parent: null InventoryDeviceInfo: ObjectType: aaa.AuditRecord link: link @@ -911434,6 +941549,33 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector + Owners: + - Owners + - Owners + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified Operability: Operability ObjectType: processor.Unit Stepping: Stepping @@ -911443,7 +941585,20 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector + IsUpgraded: false NumCores: 0 + Presence: Presence + DisplayNames: + key: + - DisplayNames + - DisplayNames + Rn: Rn + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key Speed: 1.4658129 SocketDesignation: SocketDesignation NumThreads: NumThreads @@ -911454,13 +941609,44 @@ components: ClassId: mo.MoRef Selector: Selector Architecture: Architecture + SharedScope: SharedScope ProcessorId: 6 + CreateTime: 2000-01-23T04:56:07.000+00:00 + PreviousFru: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + Dn: Dn Pid: Pid + Vendor: Vendor + AccountMoid: AccountMoid + DeviceMoId: DeviceMoId IsPlatformSupported: true + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector OperReason: - Unknown - Unknown + Serial: Serial + Revision: Revision + Model: Model OperPowerState: OperPowerState + Moid: Moid NumCoresEnabled: NumCoresEnabled Thermal: Thermal title: Processor:Unit @@ -911568,7 +941754,6 @@ components: description: This can be used internally to model a server based on a defined personality without having to reprogram the server PID. example: - ObjectType: rack.UnitPersonality AdditionalInfo: AdditionalInfo RegisteredDevice: ObjectType: aaa.AuditRecord @@ -911576,21 +941761,82 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector + SharedScope: SharedScope + Parent: null InventoryDeviceInfo: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - PersonalityId: 0 + CreateTime: 2000-01-23T04:56:07.000+00:00 ClassId: rack.UnitPersonality + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + Dn: Dn ComputeRackUnit: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + AccountMoid: AccountMoid + DeviceMoId: DeviceMoId + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Owners: + - Owners + - Owners Name: Name + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: rack.UnitPersonality + PersonalityId: 0 + Moid: Moid + DisplayNames: + key: + - DisplayNames + - DisplayNames + Rn: Rn + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key title: RackUnit Personality x-allOf-name: rack.UnitPersonality rack.UnitPersonality.List: @@ -911858,15 +942104,72 @@ components: type: object description: Entity representing the new capacity runway based on recommendations. example: + Parent: null + AdditionalCapacity: 0 + ClassId: recommendation.CapacityRunway + Unit: TB + Owners: + - Owners + - Owners + Name: Name + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified ObjectType: recommendation.CapacityRunway + ForecastInstance: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + TotalCapacity: 5 + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key RegisteredDevice: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - Runway: 1 - PhysicalItem: + SharedScope: SharedScope + CreateTime: 2000-01-23T04:56:07.000+00:00 + LastUpdatedTime: 2000-01-23T04:56:07.000+00:00 + Period: 6 + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + AccountMoid: AccountMoid + Ancestors: - ObjectType: aaa.AuditRecord link: link Moid: Moid @@ -911877,17 +942180,20 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector - ForecastInstance: - ObjectType: aaa.AuditRecord + Runway: 1 + PhysicalItem: + - ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - AdditionalCapacity: 0 - Period: 6 - TotalCapacity: 5 - ClassId: recommendation.CapacityRunway - Unit: TB + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Moid: Moid + RequirementMet: true title: Recommendation:Capacity Runway x-allOf-name: recommendation.CapacityRunway recommendation.CapacityRunway.List: @@ -911996,7 +942302,23 @@ components: type: object description: Entity representing the cluster expansion recommendations. example: - SoftwareItem: + RegisteredDevice: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + SharedScope: SharedScope + Parent: null + CreateTime: 2000-01-23T04:56:07.000+00:00 + LastUpdatedTime: 2000-01-23T04:56:07.000+00:00 + ClassId: recommendation.ClusterExpansion + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + AccountMoid: AccountMoid + Ancestors: - ObjectType: aaa.AuditRecord link: link Moid: Moid @@ -912007,14 +942329,47 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector - ObjectType: recommendation.ClusterExpansion - HardwareExpansionRequest: - ObjectType: aaa.AuditRecord + Owners: + - Owners + - Owners + Name: Name + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + SoftwareItem: + - ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - RegisteredDevice: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ObjectType: recommendation.ClusterExpansion + HardwareExpansionRequest: ObjectType: aaa.AuditRecord link: link Moid: Moid @@ -912031,8 +942386,19 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector + Moid: Moid + RequirementMet: true ClusterName: ClusterName - ClassId: recommendation.ClusterExpansion + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key title: Recommendation:Cluster Expansion x-allOf-name: recommendation.ClusterExpansion recommendation.ClusterExpansion.List: @@ -912204,7 +942570,6 @@ components: description: Entity representing the user request for HyperFlex cluster expansion. example: Status: None - ObjectType: recommendation.HardwareExpansionRequest Action: None HwExpansionRequestItems: - ObjectType: aaa.AuditRecord @@ -912224,7 +942589,67 @@ components: ClassId: mo.MoRef Selector: Selector Message: Message + SharedScope: SharedScope + Parent: null + CreateTime: 2000-01-23T04:56:07.000+00:00 ClassId: recommendation.HardwareExpansionRequest + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + RequestTime: 2000-01-23T04:56:07.000+00:00 + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Owners: + - Owners + - Owners + Name: Name + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: recommendation.HardwareExpansionRequest + Moid: Moid + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key title: Recommendation:Hardware Expansion Request x-allOf-name: recommendation.HardwareExpansionRequest recommendation.HardwareExpansionRequest.List: @@ -912617,12 +943042,7 @@ components: type: object description: Entity representing the recommended physical device. example: - ClusterExpansion: - ObjectType: aaa.AuditRecord - link: link - Moid: Moid - ClassId: mo.MoRef - Selector: Selector + Parent: null ClassId: recommendation.PhysicalItem Count: 6 MaxCount: 1 @@ -912634,10 +943054,76 @@ components: Selector: Selector IsNew: true Unit: TB + Owners: + - Owners + - Owners + Name: Name + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified ObjectType: recommendation.PhysicalItem - Uuid: Uuid Capacity: 0 ConfigurationPath: ConfigurationPath + SourceMoid: SourceMoid + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key + ParentMoid: ParentMoid + ClusterExpansion: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + SharedScope: SharedScope + CreateTime: 2000-01-23T04:56:07.000+00:00 + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + Personality: Personality + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Type: None + Uuid: Uuid PhysicalItem: - ObjectType: aaa.AuditRecord link: link @@ -912649,9 +943135,8 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector - SourceMoid: SourceMoid Model: Model - ParentMoid: ParentMoid + Moid: Moid title: Recommendation:Physical Item x-allOf-name: recommendation.PhysicalItem recommendation.PhysicalItem.List: @@ -912776,25 +943261,85 @@ components: description: Entity representing the estimate for the purchase order for user requested expansion. example: - Status: None + Action: None + Message: Message + Parent: null + ClassId: recommendation.PurchaseOrderEstimate + EstimateId: EstimateId + Owners: + - Owners + - Owners + Name: Name + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified TotalCost: 0.8008282 ObjectType: recommendation.PurchaseOrderEstimate - Action: None - ClusterExpansion: + EstimateOwner: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - Message: Message - ClassId: recommendation.PurchaseOrderEstimate - EstimateOwner: + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key + Status: None + ClusterExpansion: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - EstimateId: EstimateId + SharedScope: SharedScope + CreateTime: 2000-01-23T04:56:07.000+00:00 + LastUpdatedTime: 2000-01-23T04:56:07.000+00:00 + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Moid: Moid + RequirementMet: true title: Recommendation:Purchase Order Estimate x-allOf-name: recommendation.PurchaseOrderEstimate recommendation.PurchaseOrderEstimate.List: @@ -912879,15 +943424,75 @@ components: recommendation. This can be used to generate an estimate by uploading it to Cisco Commerce Workspace. example: - ObjectType: recommendation.PurchaseOrderList ClusterExpansion: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - ItemList: ItemList + SharedScope: SharedScope + Parent: null + CreateTime: 2000-01-23T04:56:07.000+00:00 + LastUpdatedTime: 2000-01-23T04:56:07.000+00:00 ClassId: recommendation.PurchaseOrderList + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Owners: + - Owners + - Owners + Name: Name + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: recommendation.PurchaseOrderList + ItemList: ItemList + Moid: Moid + RequirementMet: true + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key title: Recommendation:Purchase Order List x-allOf-name: recommendation.PurchaseOrderList recommendation.PurchaseOrderList.List: @@ -913007,7 +943612,6 @@ components: end point. example: RecommendationType: None - ObjectType: recommendation.SoftwareItem ClusterExpansion: ObjectType: aaa.AuditRecord link: link @@ -913015,7 +943619,68 @@ components: ClassId: mo.MoRef Selector: Selector Message: Message + SharedScope: SharedScope + Parent: null + CreateTime: 2000-01-23T04:56:07.000+00:00 ClassId: recommendation.SoftwareItem + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + Personality: Personality + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Owners: + - Owners + - Owners + Name: Name + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: recommendation.SoftwareItem + Type: None + Moid: Moid + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key title: Recommendation:Software Item x-allOf-name: recommendation.SoftwareItem recommendation.SoftwareItem.List: @@ -913252,13 +943917,44 @@ components: description: Backup config policy which contains all the required inputs to do backup on a local or remote server. example: - ObjectType: recovery.BackupConfigPolicy + Description: Description Organization: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + Parent: null + ClassId: recovery.BackupConfigPolicy + Owners: + - Owners + - Owners + Name: Name + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: recovery.BackupConfigPolicy BackupProfiles: - ObjectType: aaa.AuditRecord link: link @@ -913270,7 +943966,43 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector - ClassId: recovery.BackupConfigPolicy + DisplayNames: + key: + - DisplayNames + - DisplayNames + Protocol: SCP + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key + Password: Password + Path: Path + IsPasswordSet: false + UserName: UserName + SharedScope: SharedScope + CreateTime: 2000-01-23T04:56:07.000+00:00 + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + FileNamePrefix: FileNamePrefix + Moid: Moid + LocationType: Network Share + RetentionCount: 30 title: Backup Policy x-allOf-name: recovery.BackupConfigPolicy recovery.BackupConfigPolicy.List: @@ -913370,39 +944102,147 @@ components: description: Backup profile to initiate on-demand or scheduled backups at end points. example: - ScheduleConfig: + Action: No-op + Description: Description + Organization: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + Parent: null + DeviceId: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: recovery.BackupProfile + Owners: + - Owners + - Owners + Name: Name + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified ObjectType: recovery.BackupProfile - Organization: + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key + ConfigContext: + ObjectType: policy.ConfigContext + ConfigStateSummary: None + ConfigState: ConfigState + OperState: OperState + ErrorState: ErrorState + ClassId: policy.ConfigContext + InconsistencyReason: + - InconsistencyReason + - InconsistencyReason + ConfigType: ConfigType + ControlAction: ControlAction + SharedScope: SharedScope + CreateTime: 2000-01-23T04:56:07.000+00:00 + Enabled: true + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ScheduleConfig: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + Type: instance + ScheduledActions: + - ObjectType: policy.ScheduledAction + Action: Action + ClassId: policy.ScheduledAction + ProceedOnReboot: true + - ObjectType: policy.ScheduledAction + Action: Action + ClassId: policy.ScheduledAction + ProceedOnReboot: true ConfigResult: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - DeviceId: + SrcTemplate: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - Enabled: true + ActionParams: + - ObjectType: policy.ActionParam + Value: Value + ClassId: policy.ActionParam + Name: Name + - ObjectType: policy.ActionParam + Value: Value + ClassId: policy.ActionParam + Name: Name + Moid: Moid BackupConfig: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - ClassId: recovery.BackupProfile + PolicyBucket: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector title: BackupProfile x-allOf-name: recovery.BackupProfile recovery.BackupProfile.List: @@ -913579,14 +944419,34 @@ components: description: "Profile configuration (deploy, validation) results with the overall\ \ state and detailed result messages." example: - ObjectType: recovery.ConfigResult + ValidationState: ValidationState + ConfigState: ConfigState + SharedScope: SharedScope + Parent: null + CreateTime: 2000-01-23T04:56:07.000+00:00 ClassId: recovery.ConfigResult + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null BackupProfile: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector ResultEntries: - ObjectType: aaa.AuditRecord link: link @@ -913598,6 +944458,77 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector + Owners: + - Owners + - Owners + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: recovery.ConfigResult + AppliedPolicies: + - ErrorMessages: + - ObjectType: policy.PolicyError + Type: none + Message: Message + ClassId: policy.PolicyError + - ObjectType: policy.PolicyError + Type: none + Message: Message + ClassId: policy.PolicyError + Status: ok + ObjectType: policy.PolicyStatus + Type: Type + Moid: Moid + ClassId: policy.PolicyStatus + Reason: Reason + - ErrorMessages: + - ObjectType: policy.PolicyError + Type: none + Message: Message + ClassId: policy.PolicyError + - ObjectType: policy.PolicyError + Type: none + Message: Message + ClassId: policy.PolicyError + Status: ok + ObjectType: policy.PolicyStatus + Type: Type + Moid: Moid + ClassId: policy.PolicyStatus + Reason: Reason + ConfigStage: ConfigStage + Moid: Moid + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key title: Recovery:Config Result x-allOf-name: recovery.ConfigResult recovery.ConfigResult.List: @@ -913684,14 +944615,85 @@ components: description: An entry that describes the result of a Backup Profile state on the end device. example: + Context: + EntityType: EntityType + ObjectType: policy.ConfigResultContext + EntityName: EntityName + EntityData: "" + ParentType: ParentType + EntityMoid: EntityMoid + ClassId: policy.ConfigResultContext + ParentMoid: ParentMoid + Message: Message + SharedScope: SharedScope + Parent: null + CompletedTime: CompletedTime + CreateTime: 2000-01-23T04:56:07.000+00:00 + ClassId: recovery.ConfigResultEntry + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Owners: + - Owners + - Owners + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified ObjectType: recovery.ConfigResultEntry + Type: Type + OwnerId: OwnerId ConfigResult: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - ClassId: recovery.ConfigResultEntry + State: State + Moid: Moid + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key title: Recovery:Config Result Entry x-allOf-name: recovery.ConfigResultEntry recovery.ConfigResultEntry.List: @@ -913771,26 +944773,93 @@ components: type: object description: Handles requests for on demand backup for a given endpoint. example: - ObjectType: recovery.OnDemandBackup + Description: Description Organization: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - ConfigResult: + Parent: null + DeviceId: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - DeviceId: + ClassId: recovery.OnDemandBackup + Owners: + - Owners + - Owners + Name: Name + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: recovery.OnDemandBackup + DisplayNames: + key: + - DisplayNames + - DisplayNames + Protocol: SCP + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key + Password: Password + Path: Path + IsPasswordSet: false + UserName: UserName + SharedScope: SharedScope + CreateTime: 2000-01-23T04:56:07.000+00:00 + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + FileNamePrefix: FileNamePrefix + ConfigResult: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - ClassId: recovery.OnDemandBackup + Moid: Moid + LocationType: Network Share + RetentionCount: 30 title: On Demand Backup x-allOf-name: recovery.OnDemandBackup recovery.OnDemandBackup.List: @@ -914054,13 +945123,62 @@ components: description: Base Schedule config which contains all the required inputs to do schedule on a local or remote server. example: - ObjectType: recovery.ScheduleConfigPolicy + Description: Description Organization: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + SharedScope: SharedScope + Parent: null + CreateTime: 2000-01-23T04:56:07.000+00:00 + ClassId: recovery.ScheduleConfigPolicy + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Owners: + - Owners + - Owners + Name: Name + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: recovery.ScheduleConfigPolicy Schedule: FrequencyUnit: Daily ObjectType: recovery.BackupSchedule @@ -914078,7 +945196,17 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector - ClassId: recovery.ScheduleConfigPolicy + Moid: Moid + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key title: Schedule Policy x-allOf-name: recovery.ScheduleConfigPolicy recovery.ScheduleConfigPolicy.List: @@ -915312,13 +946440,47 @@ components: description: A Reservation is used to reserve a place for a new resource in the resource groups. example: - ObjectType: resource.Reservation Account: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + Description: Description + Parent: null + ClassId: resource.Reservation + ResourceMoids: + - ResourceMoids + - ResourceMoids + Owners: + - Owners + - Owners + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: resource.Reservation + ReservationSelector: ReservationSelector Groups: - ObjectType: aaa.AuditRecord link: link @@ -915331,6 +946493,30 @@ components: ClassId: mo.MoRef Selector: Selector CustomPermissionResources: + - null + - null + DisplayNames: + key: + - DisplayNames + - DisplayNames + Identity: null + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key + Status: Created + SharedScope: SharedScope + CreateTime: 2000-01-23T04:56:07.000+00:00 + Expiration: 2000-01-23T04:56:07.000+00:00 + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + ResourceType: ResourceType + AccountMoid: AccountMoid + Ancestors: - ObjectType: aaa.AuditRecord link: link Moid: Moid @@ -915341,12 +946527,9 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector - ClassId: resource.Reservation - ResourceMoids: - - ResourceMoids - - ResourceMoids - UserMoid: UserMoid MarkFail: true + Moid: Moid + UserMoid: UserMoid title: Resource:Reservation x-allOf-name: resource.Reservation resource.Reservation.List: @@ -915973,6 +947156,61 @@ components: description: "Lease API invoked by passing resource pool, lease API will reserve\ \ or un-reserve the resource from the pool." example: + Parent: null + AllocationType: dynamic + LeasedResource: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: resourcepool.Lease + Feature: Feature + Owners: + - Owners + - Owners + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: resourcepool.Lease + Pool: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key + HasDuplicate: false Condition: - ObjectType: resource.Selector ClassId: resource.Selector @@ -915980,6 +947218,8 @@ components: - ObjectType: resource.Selector ClassId: resource.Selector Selector: Selector + SharedScope: SharedScope + CreateTime: 2000-01-23T04:56:07.000+00:00 IsExclusiveAtAssignedEntity: false Resource: SharedScope: SharedScope @@ -916033,34 +947273,31 @@ components: Key: Key - Value: Value Key: Key - LeasedResource: - ObjectType: aaa.AuditRecord - link: link - Moid: Moid - ClassId: mo.MoRef - Selector: Selector - AssignedToEntity: + AssignedToEntity: null + Universe: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - Universe: - ObjectType: aaa.AuditRecord + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + ResourceType: None + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - ClassId: resourcepool.Lease - ResourceType: None - Feature: Feature - ObjectType: resourcepool.Lease - Pool: - ObjectType: aaa.AuditRecord + - ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + Moid: Moid PoolMember: ObjectType: aaa.AuditRecord link: link @@ -916316,14 +947553,24 @@ components: A MembershipReservation is created when a resource that belongs to a pool is decommissioned. The MembershipReservation is mapped to pools that have the resource chosen for decommissioning. This MembershipReservation will be utilized in the future to pre-provision servers based on membership serials. The system automatically generates the membership during decommissioning, and its permissions are updated for all organizations associated with the pools. Users of the pool have the authority to remove the pool from the membership. The membership will be removed either during recommissioning or when all the associated pools are deleted. example: - ObjectType: resourcepool.MembershipReservation + Status: Created Account: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + Description: Description + SharedScope: SharedScope + Parent: null + CreateTime: 2000-01-23T04:56:07.000+00:00 + Expiration: 2000-01-23T04:56:07.000+00:00 ClassId: resourcepool.MembershipReservation + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + ResourceType: ResourceType Pools: - ObjectType: aaa.AuditRecord link: link @@ -916335,6 +947582,59 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Owners: + - Owners + - Owners + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: resourcepool.MembershipReservation + ReservationSelector: ReservationSelector + Moid: Moid + DisplayNames: + key: + - DisplayNames + - DisplayNames + Identity: null + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key title: Resourcepool:Membership Reservation x-allOf-name: resourcepool.MembershipReservation resourcepool.MembershipReservation.List: @@ -916452,19 +947752,81 @@ components: \ be reserved or unreserved by using Lease API, reserved/unreserved resources\ \ can be used in the entities like server profiles." example: + Description: Description + Organization: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Parent: null + Size: 1 + ClassId: resourcepool.Pool + Owners: + - Owners + - Owners + Name: Name + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified ObjectType: resourcepool.Pool + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key + Assigned: 0 PoolType: Static ResourcePoolParameters: ObjectType: aaa.UserAgent ClassId: aaa.UserAgent - Organization: - ObjectType: aaa.AuditRecord + SharedScope: SharedScope + CreateTime: 2000-01-23T04:56:07.000+00:00 + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + AssignmentOrder: sequential + ResourceType: None + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - ClassId: resourcepool.Pool - ResourceType: None + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Moid: Moid Selectors: - ObjectType: resource.Selector ClassId: resource.Selector @@ -916472,6 +947834,7 @@ components: - ObjectType: resource.Selector ClassId: resource.Selector Selector: Selector + Reserved: 6 title: Resourcepool:Pool x-allOf-name: resourcepool.Pool resourcepool.Pool.List: @@ -916573,7 +947936,10 @@ components: type: object description: PoolMember represents a resources that is part of a pool. example: - ObjectType: resourcepool.PoolMember + Assigned: false + SharedScope: SharedScope + Parent: null + CreateTime: 2000-01-23T04:56:07.000+00:00 Peer: ObjectType: aaa.AuditRecord link: link @@ -916582,6 +947948,15 @@ components: Selector: Selector Resource: null AssignedToEntity: + - null + - null + ClassId: resourcepool.PoolMember + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + AccountMoid: AccountMoid + Ancestors: - ObjectType: aaa.AuditRecord link: link Moid: Moid @@ -916592,7 +947967,35 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector - ClassId: resourcepool.PoolMember + Owners: + - Owners + - Owners + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: resourcepool.PoolMember + Moid: Moid Features: - Features - Features @@ -916602,6 +948005,16 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key title: Resourcepool:Pool Member x-allOf-name: resourcepool.PoolMember resourcepool.PoolMember.List: @@ -919844,6 +951257,61 @@ components: type: object description: Policy for configuring SD Card settings on endpoint. example: + Description: Description + Organization: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + SharedScope: SharedScope + Parent: null + CreateTime: 2000-01-23T04:56:07.000+00:00 + ClassId: sdcard.Policy + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Owners: + - Owners + - Owners + Name: Name + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified ObjectType: sdcard.Policy Partitions: - ObjectType: sdcard.Partition @@ -919866,12 +951334,6 @@ components: - ObjectType: sdcard.Diagnostics Enable: true ClassId: sdcard.Diagnostics - Organization: - ObjectType: aaa.AuditRecord - link: link - Moid: Moid - ClassId: mo.MoRef - Selector: Selector Profiles: - ObjectType: aaa.AuditRecord link: link @@ -919883,7 +951345,17 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector - ClassId: sdcard.Policy + Moid: Moid + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key title: SD Card x-allOf-name: sdcard.Policy sdcard.Policy.List: @@ -919963,13 +951435,58 @@ components: type: object description: Policy for configuring SD Card settings on endpoint. example: - ObjectType: sdcard.PolicyInventory - TargetMo: - ObjectType: aaa.AuditRecord + Description: Description + SharedScope: SharedScope + Parent: null + CreateTime: 2000-01-23T04:56:07.000+00:00 + ClassId: sdcard.PolicyInventory + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + AccountMoid: AccountMoid + DeviceMoId: DeviceMoId + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + Owners: + - Owners + - Owners + Name: Name + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: sdcard.PolicyInventory + TargetMo: null Partitions: - ObjectType: sdcard.Partition Type: OS @@ -919991,7 +951508,17 @@ components: - ObjectType: sdcard.Diagnostics Enable: true ClassId: sdcard.Diagnostics - ClassId: sdcard.PolicyInventory + Moid: Moid + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key title: SD Card x-allOf-name: sdcard.PolicyInventory sdcard.PolicyInventory.List: @@ -920492,14 +952019,9 @@ components: type: object description: The crypto card present on a server. example: - RegisteredDevice: - ObjectType: aaa.AuditRecord - link: link - Moid: Moid - ClassId: mo.MoRef - Selector: Selector OperState: OperState PartNumber: PartNumber + Parent: null PciSlot: PciSlot InventoryDeviceInfo: ObjectType: aaa.AuditRecord @@ -920514,11 +952036,88 @@ components: ClassId: mo.MoRef Selector: Selector ClassId: security.Unit + Owners: + - Owners + - Owners + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified Operability: Operability - Vid: Vid ObjectType: security.Unit UnitId: 0 + IsUpgraded: false Voltage: Voltage + Presence: Presence + DisplayNames: + key: + - DisplayNames + - DisplayNames + Rn: Rn + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key + RegisteredDevice: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + SharedScope: SharedScope + CreateTime: 2000-01-23T04:56:07.000+00:00 + PreviousFru: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + Dn: Dn + Vendor: Vendor + AccountMoid: AccountMoid + DeviceMoId: DeviceMoId + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Vid: Vid + Serial: Serial + Revision: Revision + Model: Model + Moid: Moid Power: Power Thermal: Thermal title: Security:Unit @@ -920677,14 +952276,89 @@ components: type: object description: The configuration change details are captured here. example: - ObjectType: server.ConfigChangeDetail + Changes: + - Changes + - Changes + Message: Message + SharedScope: SharedScope + Parent: null + CreateTime: 2000-01-23T04:56:07.000+00:00 ClassId: server.ConfigChangeDetail + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + AccountMoid: AccountMoid + ModStatus: None + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Disruptions: + - Disruptions + - Disruptions Profile: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + Owners: + - Owners + - Owners + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: server.ConfigChangeDetail + ConfigChangeFlag: Pending-changes + ConfigChangeContext: + EntityType: EntityType + ObjectType: policy.ConfigResultContext + EntityName: EntityName + EntityData: "" + ParentType: ParentType + EntityMoid: EntityMoid + ClassId: policy.ConfigResultContext + ParentMoid: ParentMoid + Moid: Moid + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key title: Server:Config Change Detail x-allOf-name: server.ConfigChangeDetail server.ConfigChangeDetail.List: @@ -920965,8 +952639,28 @@ components: description: "The profile configuration (policy attach/detach, deploy, validation)\ \ results with the overall state and detailed result messages." example: - ObjectType: server.ConfigResult + ValidationState: ValidationState + ConfigState: ConfigState + SharedScope: SharedScope + Parent: null + CreateTime: 2000-01-23T04:56:07.000+00:00 ClassId: server.ConfigResult + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector Profile: ObjectType: aaa.AuditRecord link: link @@ -920984,6 +952678,77 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector + Owners: + - Owners + - Owners + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: server.ConfigResult + AppliedPolicies: + - ErrorMessages: + - ObjectType: policy.PolicyError + Type: none + Message: Message + ClassId: policy.PolicyError + - ObjectType: policy.PolicyError + Type: none + Message: Message + ClassId: policy.PolicyError + Status: ok + ObjectType: policy.PolicyStatus + Type: Type + Moid: Moid + ClassId: policy.PolicyStatus + Reason: Reason + - ErrorMessages: + - ObjectType: policy.PolicyError + Type: none + Message: Message + ClassId: policy.PolicyError + - ObjectType: policy.PolicyError + Type: none + Message: Message + ClassId: policy.PolicyError + Status: ok + ObjectType: policy.PolicyStatus + Type: Type + Moid: Moid + ClassId: policy.PolicyStatus + Reason: Reason + ConfigStage: ConfigStage + Moid: Moid + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key title: Server:Config Result x-allOf-name: server.ConfigResult server.ConfigResult.List: @@ -921070,14 +952835,85 @@ components: description: "The profile configuration (deploy, validation) results detailed\ \ information." example: + Context: + EntityType: EntityType + ObjectType: policy.ConfigResultContext + EntityName: EntityName + EntityData: "" + ParentType: ParentType + EntityMoid: EntityMoid + ClassId: policy.ConfigResultContext + ParentMoid: ParentMoid + Message: Message + SharedScope: SharedScope + Parent: null + CompletedTime: CompletedTime + CreateTime: 2000-01-23T04:56:07.000+00:00 + ClassId: server.ConfigResultEntry + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Owners: + - Owners + - Owners + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified ObjectType: server.ConfigResultEntry + Type: Type + OwnerId: OwnerId ConfigResult: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - ClassId: server.ConfigResultEntry + State: State + Moid: Moid + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key title: Server:Config Result Entry x-allOf-name: server.ConfigResultEntry server.ConfigResultEntry.List: @@ -921153,14 +952989,75 @@ components: type: object description: The server disruption details are captured here. example: - ObjectType: server.Disruption Organization: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + SharedScope: SharedScope + Parent: null + CreateTime: 2000-01-23T04:56:07.000+00:00 + Label: Label ClassId: server.Disruption + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + Severity: Minor + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Owners: + - Owners + - Owners + Name: Name + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: server.Disruption + Type: Informational + Moid: Moid + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key title: Server:Disruption x-allOf-name: server.Disruption server.Disruption.List: @@ -921382,12 +953279,117 @@ components: type: object description: A profile specifying configuration settings for a physical server. example: + AssociatedServer: null + ClassId: server.Profile + Name: Name + ReservationReferences: + - ObjectType: fcpool.ReservationReference + ReservationMoid: ReservationMoid + ClassId: fcpool.ReservationReference + - ObjectType: fcpool.ReservationReference + ReservationMoid: ReservationMoid + ClassId: fcpool.ReservationReference + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key + ConfigContext: + ObjectType: policy.ConfigContext + ConfigStateSummary: None + ConfigState: ConfigState + OperState: OperState + ErrorState: ErrorState + ClassId: policy.ConfigContext + InconsistencyReason: + - InconsistencyReason + - InconsistencyReason + ConfigType: ConfigType + ControlAction: ControlAction + SharedScope: SharedScope + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + RunningWorkflows: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + UuidLease: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ServerAssignmentMode: None + ConfigResult: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + AssignedServer: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ConfigChangeContext: + ObjectType: policy.ConfigChangeContext + ConfigChangeError: ConfigChangeError + ClassId: policy.ConfigChangeContext + ConfigChangeState: Ok + InitialConfigContext: + ObjectType: policy.ConfigContext + ConfigStateSummary: None + ConfigState: ConfigState + OperState: OperState + ErrorState: ErrorState + ClassId: policy.ConfigContext + InconsistencyReason: + - InconsistencyReason + - InconsistencyReason + ConfigType: ConfigType + ControlAction: ControlAction + SrcTemplate: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + PolicyBucket: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ResourceLease: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Action: No-op AssociatedServerPool: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + Description: Description ServerPreAssignBySerial: ServerPreAssignBySerial Organization: ObjectType: aaa.AuditRecord @@ -921395,7 +953397,14 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector + Parent: null PmcDeployedSecurePassphrase: PmcDeployedSecurePassphrase + UuidPool: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector ConfigChanges: Changes: - Changes @@ -921427,7 +953436,6 @@ components: - ObjectType: fcpool.ReservationReference ReservationMoid: ReservationMoid ClassId: fcpool.ReservationReference - AssociatedServer: null DeployStatus: None ServerPreAssignBySlot: ObjectType: server.ServerAssignTypeSlot @@ -921435,21 +953443,48 @@ components: ChassisId: 3 DomainName: DomainName ClassId: server.ServerAssignTypeSlot - ClassId: server.Profile - ReservationReferences: - - ObjectType: fcpool.ReservationReference - ReservationMoid: ReservationMoid - ClassId: fcpool.ReservationReference - - ObjectType: fcpool.ReservationReference - ReservationMoid: ReservationMoid - ClassId: fcpool.ReservationReference + Owners: + - Owners + - Owners + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified DeployedSwitches: None IsPmcDeployedSecurePassphraseSet: false ObjectType: server.Profile UserLabel: UserLabel + UuidAddressType: NONE + TargetPlatform: Standalone + DisplayNames: + key: + - DisplayNames + - DisplayNames StaticUuidAddress: StaticUuidAddress ServerPool: null - RunningWorkflows: + CreateTime: 2000-01-23T04:56:07.000+00:00 + AccountMoid: AccountMoid + Ancestors: - ObjectType: aaa.AuditRecord link: link Moid: Moid @@ -921460,37 +953495,27 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector - UuidLease: - ObjectType: aaa.AuditRecord - link: link - Moid: Moid - ClassId: mo.MoRef - Selector: Selector - ServerAssignmentMode: None + Type: instance Uuid: Uuid - AssignedServer: - ObjectType: aaa.AuditRecord - link: link - Moid: Moid - ClassId: mo.MoRef - Selector: Selector - ConfigChangeContext: - ObjectType: policy.ConfigChangeContext - ConfigChangeError: ConfigChangeError - ClassId: policy.ConfigChangeContext - ConfigChangeState: Ok - InitialConfigContext: - ObjectType: policy.ConfigContext - ConfigStateSummary: None - ConfigState: ConfigState - OperState: OperState - ErrorState: ErrorState - ClassId: policy.ConfigContext - InconsistencyReason: - - InconsistencyReason - - InconsistencyReason - ConfigType: ConfigType - ControlAction: ControlAction + ScheduledActions: + - ObjectType: policy.ScheduledAction + Action: Action + ClassId: policy.ScheduledAction + ProceedOnReboot: true + - ObjectType: policy.ScheduledAction + Action: Action + ClassId: policy.ScheduledAction + ProceedOnReboot: true + ActionParams: + - ObjectType: policy.ActionParam + Value: Value + ClassId: policy.ActionParam + Name: Name + - ObjectType: policy.ActionParam + Value: Value + ClassId: policy.ActionParam + Name: Name + Moid: Moid LeasedServer: null ConfigChangeDetails: - ObjectType: aaa.AuditRecord @@ -921503,12 +953528,6 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector - ResourceLease: - ObjectType: aaa.AuditRecord - link: link - Moid: Moid - ClassId: mo.MoRef - Selector: Selector title: Server Profile x-allOf-name: server.Profile server.Profile.List: @@ -921592,15 +953611,137 @@ components: description: A profile template specifying configuration settings for a physical server. example: - ObjectType: server.ProfileTemplate - Usage: 0 + Action: No-op + Description: Description Organization: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + Parent: null + UuidPool: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector ClassId: server.ProfileTemplate + Owners: + - Owners + - Owners + Name: Name + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: server.ProfileTemplate + UuidAddressType: NONE + TargetPlatform: Standalone + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key + ConfigContext: + ObjectType: policy.ConfigContext + ConfigStateSummary: None + ConfigState: ConfigState + OperState: OperState + ErrorState: ErrorState + ClassId: policy.ConfigContext + InconsistencyReason: + - InconsistencyReason + - InconsistencyReason + ConfigType: ConfigType + ControlAction: ControlAction + Usage: 0 + SharedScope: SharedScope + CreateTime: 2000-01-23T04:56:07.000+00:00 + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Type: instance + ScheduledActions: + - ObjectType: policy.ScheduledAction + Action: Action + ClassId: policy.ScheduledAction + ProceedOnReboot: true + - ObjectType: policy.ScheduledAction + Action: Action + ClassId: policy.ScheduledAction + ProceedOnReboot: true + ConfigResult: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + SrcTemplate: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ActionParams: + - ObjectType: policy.ActionParam + Value: Value + ClassId: policy.ActionParam + Name: Name + - ObjectType: policy.ActionParam + Value: Value + ClassId: policy.ActionParam + Name: Name + Moid: Moid + PolicyBucket: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector title: Server Profile Template x-allOf-name: server.ProfileTemplate server.ProfileTemplate.List: @@ -921843,7 +953984,13 @@ components: - $ref: '#/components/schemas/serviceitem.BaseMessage' description: The instance status message can be used at ServiceItemInstance and ServiceItemActionInstance level. - example: {} + example: + ObjectType: serviceitem.Message + Message: Message + CreateTime: 2000-01-23T04:56:07.000+00:00 + ClassId: serviceitem.Message + ActionOperation: None + Severity: Info title: Serviceitem:Message x-allOf-name: serviceitem.Message serviceitem.SelectionCriteriaInput: @@ -922043,28 +954190,91 @@ components: type: object description: A Change Request on ServiceNow. example: + Description: Description + Parent: null + ImpactDisplayValue: ImpactDisplayValue + Risk: Risk + ClassId: servicenow.ChangeRequest + Owners: + - Owners + - Owners + ShortDescription: ShortDescription + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + StartDate: StartDate + ObjectType: servicenow.ChangeRequest + UpdatedBy: UpdatedBy + DisplayNames: + key: + - DisplayNames + - DisplayNames + Approval: Approval + DueDate: DueDate + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key ChangeModelDisplayValue: ChangeModelDisplayValue Impact: Impact SysId: SysId + RegisteredDevice: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector CreatedBy: CreatedBy - Description: Description - ImpactDisplayValue: ImpactDisplayValue + SharedScope: SharedScope Comments: Comments Priority: Priority + CreateTime: 2000-01-23T04:56:07.000+00:00 PriorityDisplayValue: PriorityDisplayValue - Risk: Risk - ClassId: servicenow.ChangeRequest + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null AssignedToDisplayValue: AssignedToDisplayValue + AccountMoid: AccountMoid EndDate: EndDate - ShortDescription: ShortDescription + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector AssignedTo: AssignedTo - StartDate: StartDate - ObjectType: servicenow.ChangeRequest - UpdatedBy: UpdatedBy Type: Type ChangeModel: ChangeModel - Approval: Approval - DueDate: DueDate + Moid: Moid ChangeRequestNumber: ChangeRequestNumber title: Servicenow:Change Request x-allOf-name: servicenow.ChangeRequest @@ -922223,28 +954433,91 @@ components: type: object description: A Incident on ServiceNow. example: - Impact: Impact - SysId: SysId TaskEffectiveNumber: TaskEffectiveNumber Category: Category - CreatedBy: CreatedBy Description: Description IncidentState: IncidentState - Comments: Comments - Priority: Priority + Parent: null Risk: Risk ClassId: servicenow.Incident - Severity: Severity WorkEnd: WorkEnd OpenedBy: OpenedBy + Owners: + - Owners + - Owners ShortDescription: ShortDescription + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified ObjectType: servicenow.Incident UpdatedBy: UpdatedBy - ExpectedStart: ExpectedStart - WorkStart: WorkStart CreatedOn: CreatedOn + DisplayNames: + key: + - DisplayNames + - DisplayNames Approval: Approval DueDate: DueDate + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key + Impact: Impact + SysId: SysId + RegisteredDevice: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + CreatedBy: CreatedBy + SharedScope: SharedScope + Comments: Comments + Priority: Priority + CreateTime: 2000-01-23T04:56:07.000+00:00 + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + Severity: Severity + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ExpectedStart: ExpectedStart + Moid: Moid + WorkStart: WorkStart Urgency: Urgency title: Servicenow:Incident x-allOf-name: servicenow.Incident @@ -922343,8 +954616,12 @@ components: level. example: ObjectType: servicerequest.Message + Message: Message + CreateTime: 2000-01-23T04:56:07.000+00:00 ServiceItemName: ServiceItemName ClassId: servicerequest.Message + ActionOperation: None + Severity: Info title: Servicerequest:Message x-allOf-name: servicerequest.Message session.AbstractSession.Relationship: @@ -922625,27 +954902,49 @@ components: type: object description: Name that identifies the SMTP Policy. example: - UserName: UserName - ApplianceAccount: - ObjectType: aaa.AuditRecord - link: link - Moid: Moid - ClassId: mo.MoRef - Selector: Selector + Description: Description Organization: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + Parent: null SmtpServer: SmtpServer MinSeverity: critical - Enabled: true ClassId: smtp.Policy EnableAuth: false SmtpRecipients: - SmtpRecipients - SmtpRecipients + Owners: + - Owners + - Owners + Name: Name + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified ObjectType: smtp.Policy EnableTls: false Profiles: @@ -922660,9 +954959,46 @@ components: ClassId: mo.MoRef Selector: Selector AuthPassword: AuthPassword - IsAuthPasswordSet: false + DisplayNames: + key: + - DisplayNames + - DisplayNames SmtpPort: 5249 + ModTime: 2000-01-23T04:56:07.000+00:00 SenderEmail: SenderEmail + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key + UserName: UserName + ApplianceAccount: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + SharedScope: SharedScope + CreateTime: 2000-01-23T04:56:07.000+00:00 + Enabled: true + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Moid: Moid + IsAuthPasswordSet: false Certificate: ObjectType: aaa.AuditRecord link: link @@ -922836,6 +955172,7 @@ components: example: SnmpPort: 5249 EngineId: EngineId + Description: Description Organization: ObjectType: aaa.AuditRecord link: link @@ -922899,13 +955236,83 @@ components: Enabled: true ClassId: snmp.Trap Community: Community + Parent: null V2Enabled: true V3Enabled: true SysLocation: SysLocation TrapCommunity: TrapCommunity - Enabled: true ClassId: snmp.Policy SysContact: SysContact + Owners: + - Owners + - Owners + Name: Name + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: snmp.Policy + Profiles: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + DisplayNames: + key: + - DisplayNames + - DisplayNames + CommunityAccess: Disabled + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key + SharedScope: SharedScope + CreateTime: 2000-01-23T04:56:07.000+00:00 + Enabled: true + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector SnmpUsers: - ObjectType: snmp.User PrivacyType: NA @@ -922957,19 +955364,7 @@ components: PrivacyPassword: PrivacyPassword IsPrivacyPasswordSet: false Name: Name - ObjectType: snmp.Policy - Profiles: - - ObjectType: aaa.AuditRecord - link: link - Moid: Moid - ClassId: mo.MoRef - Selector: Selector - - ObjectType: aaa.AuditRecord - link: link - Moid: Moid - ClassId: mo.MoRef - Selector: Selector - CommunityAccess: Disabled + Moid: Moid title: SNMP x-allOf-name: snmp.Policy snmp.Policy.List: @@ -923140,6 +955535,7 @@ components: example: SnmpPort: 5249 EngineId: EngineId + Description: Description AccessCommunityString: AccessCommunityString SnmpTraps: - ObjectType: snmp.Trap @@ -923197,13 +955593,73 @@ components: Enabled: true ClassId: snmp.Trap Community: Community + Parent: null V2Enabled: true V3Enabled: true SysLocation: SysLocation TrapCommunity: TrapCommunity - Enabled: true ClassId: snmp.PolicyInventory SysContact: SysContact + Owners: + - Owners + - Owners + Name: Name + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: snmp.PolicyInventory + DisplayNames: + key: + - DisplayNames + - DisplayNames + CommunityAccess: Disabled + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key + SharedScope: SharedScope + CreateTime: 2000-01-23T04:56:07.000+00:00 + Enabled: true + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + AccountMoid: AccountMoid + DeviceMoId: DeviceMoId + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector SnmpUsers: - ObjectType: snmp.User PrivacyType: NA @@ -923255,14 +955711,8 @@ components: PrivacyPassword: PrivacyPassword IsPrivacyPasswordSet: false Name: Name - ObjectType: snmp.PolicyInventory - TargetMo: - ObjectType: aaa.AuditRecord - link: link - Moid: Moid - ClassId: mo.MoRef - Selector: Selector - CommunityAccess: Disabled + TargetMo: null + Moid: Moid title: SNMP x-allOf-name: snmp.PolicyInventory snmp.PolicyInventory.List: @@ -923583,14 +956033,150 @@ components: There are two use cases. In Intersight SaaS, the object represents a downloadable image, whereas on the Appliance the represents the image that is uploaded by the user and to be used for upgrade. example: - ObjectType: software.ApplianceDistributable + Description: Description + ImportState: ReadyForImport + ReleaseNotesUrl: ReleaseNotesUrl + Parent: null + Size: 6 + Mdfid: Mdfid + DistributableMetas: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector ClassId: software.ApplianceDistributable + Guid: Guid + LastAccessTime: 2000-01-23T04:56:07.000+00:00 + Source: + ObjectType: aaa.UserAgent + ClassId: aaa.UserAgent + Owners: + - Owners + - Owners + Name: Name + ImageType: ImageType + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ComponentMeta: + - IsOobSupported: true + ComponentType: ALL + Description: Description + ComponentLabel: ComponentLabel + PackedVersion: PackedVersion + ClassId: firmware.ComponentMeta + Vendor: Vendor + RedfishUrl: RedfishUrl + ObjectType: firmware.ComponentMeta + OobManageability: + - None + - None + ImagePath: ImagePath + Model: Model + Disruption: None + - IsOobSupported: true + ComponentType: ALL + Description: Description + ComponentLabel: ComponentLabel + PackedVersion: PackedVersion + ClassId: firmware.ComponentMeta + Vendor: Vendor + RedfishUrl: RedfishUrl + ObjectType: firmware.ComponentMeta + OobManageability: + - None + - None + ImagePath: ImagePath + Model: Model + Disruption: None + ObjectType: software.ApplianceDistributable + BundleType: BundleType + SoftwareAdvisoryUrl: SoftwareAdvisoryUrl + Version: Version + ImportAction: None + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key + SoftwareTypeId: SoftwareTypeId + Release: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ImportedTime: 2000-01-23T04:56:07.000+00:00 + FeatureSource: System + Sha512sum: Sha512sum + SharedScope: SharedScope + CreateTime: 2000-01-23T04:56:07.000+00:00 + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + Vendor: Cisco + ReleaseDate: 2000-01-23T04:56:07.000+00:00 + AccountMoid: AccountMoid + Md5eTag: Md5eTag + Md5sum: Md5sum + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector Catalog: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + Model: Model + RecommendedBuild: "N" + Moid: Moid + SupportedModels: + - SupportedModels + - SupportedModels + PlatformType: PlatformType + DownloadCount: 0 title: Appliance Software x-allOf-name: software.ApplianceDistributable software.ApplianceDistributable.List: @@ -923852,7 +956438,116 @@ components: type: object description: An HCI image bundle distributed by Cisco for Private Appliance. example: + Description: Description + ImportState: ReadyForImport + ReleaseNotesUrl: ReleaseNotesUrl + Parent: null + Size: 6 + Mdfid: Mdfid + DistributableMetas: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: software.HciBundleDistributable + Guid: Guid + LastAccessTime: 2000-01-23T04:56:07.000+00:00 + Source: + ObjectType: aaa.UserAgent + ClassId: aaa.UserAgent + Owners: + - Owners + - Owners + Name: Name + ImageType: ImageType + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ComponentMeta: + - IsOobSupported: true + ComponentType: ALL + Description: Description + ComponentLabel: ComponentLabel + PackedVersion: PackedVersion + ClassId: firmware.ComponentMeta + Vendor: Vendor + RedfishUrl: RedfishUrl + ObjectType: firmware.ComponentMeta + OobManageability: + - None + - None + ImagePath: ImagePath + Model: Model + Disruption: None + - IsOobSupported: true + ComponentType: ALL + Description: Description + ComponentLabel: ComponentLabel + PackedVersion: PackedVersion + ClassId: firmware.ComponentMeta + Vendor: Vendor + RedfishUrl: RedfishUrl + ObjectType: firmware.ComponentMeta + OobManageability: + - None + - None + ImagePath: ImagePath + Model: Model + Disruption: None ObjectType: software.HciBundleDistributable + BundleType: BundleType + SoftwareAdvisoryUrl: SoftwareAdvisoryUrl + Version: Version + ImportAction: None + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key + SoftwareTypeId: SoftwareTypeId + Release: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ImportedTime: 2000-01-23T04:56:07.000+00:00 + FeatureSource: System + Sha512sum: Sha512sum + SharedScope: SharedScope + CreateTime: 2000-01-23T04:56:07.000+00:00 Images: - ObjectType: aaa.AuditRecord link: link @@ -923864,13 +956559,40 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector - ClassId: software.HciBundleDistributable + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + Vendor: Cisco + ReleaseDate: 2000-01-23T04:56:07.000+00:00 + AccountMoid: AccountMoid + Md5eTag: Md5eTag + Md5sum: Md5sum + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector Catalog: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + Model: Model + RecommendedBuild: "N" + Moid: Moid + SupportedModels: + - SupportedModels + - SupportedModels + PlatformType: PlatformType + DownloadCount: 0 title: HCI Bundle x-allOf-name: software.HciBundleDistributable software.HciBundleDistributable.List: @@ -923963,15 +956685,151 @@ components: type: object description: An HCI image distributed by Cisco. example: - ObjectType: software.HciDistributable + Description: Description + ImportState: ReadyForImport + ReleaseNotesUrl: ReleaseNotesUrl + Parent: null + Size: 6 + Mdfid: Mdfid + DistributableMetas: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector MetaInfo: "" ClassId: software.HciDistributable + Guid: Guid + LastAccessTime: 2000-01-23T04:56:07.000+00:00 + Source: + ObjectType: aaa.UserAgent + ClassId: aaa.UserAgent + Owners: + - Owners + - Owners + Name: Name + ImageType: ImageType + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ComponentMeta: + - IsOobSupported: true + ComponentType: ALL + Description: Description + ComponentLabel: ComponentLabel + PackedVersion: PackedVersion + ClassId: firmware.ComponentMeta + Vendor: Vendor + RedfishUrl: RedfishUrl + ObjectType: firmware.ComponentMeta + OobManageability: + - None + - None + ImagePath: ImagePath + Model: Model + Disruption: None + - IsOobSupported: true + ComponentType: ALL + Description: Description + ComponentLabel: ComponentLabel + PackedVersion: PackedVersion + ClassId: firmware.ComponentMeta + Vendor: Vendor + RedfishUrl: RedfishUrl + ObjectType: firmware.ComponentMeta + OobManageability: + - None + - None + ImagePath: ImagePath + Model: Model + Disruption: None + ObjectType: software.HciDistributable + BundleType: BundleType + SoftwareAdvisoryUrl: SoftwareAdvisoryUrl + Version: Version + ImportAction: None + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key + SoftwareTypeId: SoftwareTypeId + Release: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ImportedTime: 2000-01-23T04:56:07.000+00:00 + FeatureSource: System + Sha512sum: Sha512sum + SharedScope: SharedScope + CreateTime: 2000-01-23T04:56:07.000+00:00 + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + Vendor: Cisco + ReleaseDate: 2000-01-23T04:56:07.000+00:00 + AccountMoid: AccountMoid + Md5eTag: Md5eTag + Md5sum: Md5sum + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector Catalog: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + Model: Model + RecommendedBuild: "N" + Moid: Moid + SupportedModels: + - SupportedModels + - SupportedModels + PlatformType: PlatformType + DownloadCount: 0 title: HCI x-allOf-name: software.HciDistributable software.HciDistributable.List: @@ -924059,15 +956917,151 @@ components: description: A JSON file wth HCL metadata uploaded for consumption by the HCL service. example: - ObjectType: software.HclMeta + Description: Description + ImportState: ReadyForImport + ReleaseNotesUrl: ReleaseNotesUrl ContentType: Full + Parent: null + Size: 6 + Mdfid: Mdfid + DistributableMetas: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector ClassId: software.HclMeta + Guid: Guid + LastAccessTime: 2000-01-23T04:56:07.000+00:00 + Source: + ObjectType: aaa.UserAgent + ClassId: aaa.UserAgent + Owners: + - Owners + - Owners + Name: Name + ImageType: ImageType + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ComponentMeta: + - IsOobSupported: true + ComponentType: ALL + Description: Description + ComponentLabel: ComponentLabel + PackedVersion: PackedVersion + ClassId: firmware.ComponentMeta + Vendor: Vendor + RedfishUrl: RedfishUrl + ObjectType: firmware.ComponentMeta + OobManageability: + - None + - None + ImagePath: ImagePath + Model: Model + Disruption: None + - IsOobSupported: true + ComponentType: ALL + Description: Description + ComponentLabel: ComponentLabel + PackedVersion: PackedVersion + ClassId: firmware.ComponentMeta + Vendor: Vendor + RedfishUrl: RedfishUrl + ObjectType: firmware.ComponentMeta + OobManageability: + - None + - None + ImagePath: ImagePath + Model: Model + Disruption: None + ObjectType: software.HclMeta + BundleType: BundleType + SoftwareAdvisoryUrl: SoftwareAdvisoryUrl + Version: Version + ImportAction: None + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key + SoftwareTypeId: SoftwareTypeId + Release: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ImportedTime: 2000-01-23T04:56:07.000+00:00 + FeatureSource: System + Sha512sum: Sha512sum + SharedScope: SharedScope + CreateTime: 2000-01-23T04:56:07.000+00:00 + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + Vendor: Cisco + ReleaseDate: 2000-01-23T04:56:07.000+00:00 + AccountMoid: AccountMoid + Md5eTag: Md5eTag + Md5sum: Md5sum + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector Catalog: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + Model: Model + RecommendedBuild: "N" + Moid: Moid + SupportedModels: + - SupportedModels + - SupportedModels + PlatformType: PlatformType + DownloadCount: 0 title: Json For Hcl Meta x-allOf-name: software.HclMeta software.HclMeta.List: @@ -924150,7 +957144,116 @@ components: type: object description: A HyperFlex image bundle distributed by Cisco for Private Appliance. example: + Description: Description + ImportState: ReadyForImport + ReleaseNotesUrl: ReleaseNotesUrl + Parent: null + Size: 6 + Mdfid: Mdfid + DistributableMetas: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: software.HyperflexBundleDistributable + Guid: Guid + LastAccessTime: 2000-01-23T04:56:07.000+00:00 + Source: + ObjectType: aaa.UserAgent + ClassId: aaa.UserAgent + Owners: + - Owners + - Owners + Name: Name + ImageType: ImageType + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ComponentMeta: + - IsOobSupported: true + ComponentType: ALL + Description: Description + ComponentLabel: ComponentLabel + PackedVersion: PackedVersion + ClassId: firmware.ComponentMeta + Vendor: Vendor + RedfishUrl: RedfishUrl + ObjectType: firmware.ComponentMeta + OobManageability: + - None + - None + ImagePath: ImagePath + Model: Model + Disruption: None + - IsOobSupported: true + ComponentType: ALL + Description: Description + ComponentLabel: ComponentLabel + PackedVersion: PackedVersion + ClassId: firmware.ComponentMeta + Vendor: Vendor + RedfishUrl: RedfishUrl + ObjectType: firmware.ComponentMeta + OobManageability: + - None + - None + ImagePath: ImagePath + Model: Model + Disruption: None ObjectType: software.HyperflexBundleDistributable + BundleType: BundleType + SoftwareAdvisoryUrl: SoftwareAdvisoryUrl + Version: Version + ImportAction: None + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key + SoftwareTypeId: SoftwareTypeId + Release: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ImportedTime: 2000-01-23T04:56:07.000+00:00 + FeatureSource: System + Sha512sum: Sha512sum + SharedScope: SharedScope + CreateTime: 2000-01-23T04:56:07.000+00:00 Images: - ObjectType: aaa.AuditRecord link: link @@ -924162,13 +957265,40 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector - ClassId: software.HyperflexBundleDistributable + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + Vendor: Cisco + ReleaseDate: 2000-01-23T04:56:07.000+00:00 + AccountMoid: AccountMoid + Md5eTag: Md5eTag + Md5sum: Md5sum + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector Catalog: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + Model: Model + RecommendedBuild: "N" + Moid: Moid + SupportedModels: + - SupportedModels + - SupportedModels + PlatformType: PlatformType + DownloadCount: 0 title: HyperFlex Bundle x-allOf-name: software.HyperflexBundleDistributable software.HyperflexBundleDistributable.List: @@ -924255,14 +957385,150 @@ components: type: object description: A HyperFlex image distributed by Cisco. example: - ObjectType: software.HyperflexDistributable + Description: Description + ImportState: ReadyForImport + ReleaseNotesUrl: ReleaseNotesUrl + Parent: null + Size: 6 + Mdfid: Mdfid + DistributableMetas: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector ClassId: software.HyperflexDistributable + Guid: Guid + LastAccessTime: 2000-01-23T04:56:07.000+00:00 + Source: + ObjectType: aaa.UserAgent + ClassId: aaa.UserAgent + Owners: + - Owners + - Owners + Name: Name + ImageType: ImageType + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ComponentMeta: + - IsOobSupported: true + ComponentType: ALL + Description: Description + ComponentLabel: ComponentLabel + PackedVersion: PackedVersion + ClassId: firmware.ComponentMeta + Vendor: Vendor + RedfishUrl: RedfishUrl + ObjectType: firmware.ComponentMeta + OobManageability: + - None + - None + ImagePath: ImagePath + Model: Model + Disruption: None + - IsOobSupported: true + ComponentType: ALL + Description: Description + ComponentLabel: ComponentLabel + PackedVersion: PackedVersion + ClassId: firmware.ComponentMeta + Vendor: Vendor + RedfishUrl: RedfishUrl + ObjectType: firmware.ComponentMeta + OobManageability: + - None + - None + ImagePath: ImagePath + Model: Model + Disruption: None + ObjectType: software.HyperflexDistributable + BundleType: BundleType + SoftwareAdvisoryUrl: SoftwareAdvisoryUrl + Version: Version + ImportAction: None + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key + SoftwareTypeId: SoftwareTypeId + Release: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ImportedTime: 2000-01-23T04:56:07.000+00:00 + FeatureSource: System + Sha512sum: Sha512sum + SharedScope: SharedScope + CreateTime: 2000-01-23T04:56:07.000+00:00 + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + Vendor: Cisco + ReleaseDate: 2000-01-23T04:56:07.000+00:00 + AccountMoid: AccountMoid + Md5eTag: Md5eTag + Md5sum: Md5sum + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector Catalog: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + Model: Model + RecommendedBuild: "N" + Moid: Moid + SupportedModels: + - SupportedModels + - SupportedModels + PlatformType: PlatformType + DownloadCount: 0 title: HyperFlex x-allOf-name: software.HyperflexDistributable software.HyperflexDistributable.List: @@ -924346,7 +957612,116 @@ components: type: object description: An IKS image bundle distributed by Cisco for Private Appliance. example: + Description: Description + ImportState: ReadyForImport + ReleaseNotesUrl: ReleaseNotesUrl + Parent: null + Size: 6 + Mdfid: Mdfid + DistributableMetas: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: software.IksBundleDistributable + Guid: Guid + LastAccessTime: 2000-01-23T04:56:07.000+00:00 + Source: + ObjectType: aaa.UserAgent + ClassId: aaa.UserAgent + Owners: + - Owners + - Owners + Name: Name + ImageType: ImageType + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ComponentMeta: + - IsOobSupported: true + ComponentType: ALL + Description: Description + ComponentLabel: ComponentLabel + PackedVersion: PackedVersion + ClassId: firmware.ComponentMeta + Vendor: Vendor + RedfishUrl: RedfishUrl + ObjectType: firmware.ComponentMeta + OobManageability: + - None + - None + ImagePath: ImagePath + Model: Model + Disruption: None + - IsOobSupported: true + ComponentType: ALL + Description: Description + ComponentLabel: ComponentLabel + PackedVersion: PackedVersion + ClassId: firmware.ComponentMeta + Vendor: Vendor + RedfishUrl: RedfishUrl + ObjectType: firmware.ComponentMeta + OobManageability: + - None + - None + ImagePath: ImagePath + Model: Model + Disruption: None ObjectType: software.IksBundleDistributable + BundleType: BundleType + SoftwareAdvisoryUrl: SoftwareAdvisoryUrl + Version: Version + ImportAction: None + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key + SoftwareTypeId: SoftwareTypeId + Release: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ImportedTime: 2000-01-23T04:56:07.000+00:00 + FeatureSource: System + Sha512sum: Sha512sum + SharedScope: SharedScope + CreateTime: 2000-01-23T04:56:07.000+00:00 Images: - ObjectType: aaa.AuditRecord link: link @@ -924358,13 +957733,40 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector - ClassId: software.IksBundleDistributable + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + Vendor: Cisco + ReleaseDate: 2000-01-23T04:56:07.000+00:00 + AccountMoid: AccountMoid + Md5eTag: Md5eTag + Md5sum: Md5sum + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector Catalog: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + Model: Model + RecommendedBuild: "N" + Moid: Moid + SupportedModels: + - SupportedModels + - SupportedModels + PlatformType: PlatformType + DownloadCount: 0 title: IKS Bundle x-allOf-name: software.IksBundleDistributable software.IksBundleDistributable.List: @@ -924647,17 +958049,153 @@ components: type: object description: A solution image distributed by Cisco. example: - FilePath: FilePath - ObjectType: software.SolutionDistributable - SubType: osimage + ImportState: ReadyForImport + ReleaseNotesUrl: ReleaseNotesUrl + Size: 6 + Mdfid: Mdfid ClassId: software.SolutionDistributable - SolutionName: SolutionName + Guid: Guid + LastAccessTime: 2000-01-23T04:56:07.000+00:00 + Name: Name + ImageType: ImageType + BundleType: BundleType + SoftwareAdvisoryUrl: SoftwareAdvisoryUrl + Version: Version + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key + SoftwareTypeId: SoftwareTypeId + FeatureSource: System + Sha512sum: Sha512sum + SubType: osimage + SharedScope: SharedScope + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + ReleaseDate: 2000-01-23T04:56:07.000+00:00 + Md5eTag: Md5eTag + Md5sum: Md5sum Catalog: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + DownloadCount: 0 + Description: Description + Parent: null + DistributableMetas: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Source: + ObjectType: aaa.UserAgent + ClassId: aaa.UserAgent + Owners: + - Owners + - Owners + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ComponentMeta: + - IsOobSupported: true + ComponentType: ALL + Description: Description + ComponentLabel: ComponentLabel + PackedVersion: PackedVersion + ClassId: firmware.ComponentMeta + Vendor: Vendor + RedfishUrl: RedfishUrl + ObjectType: firmware.ComponentMeta + OobManageability: + - None + - None + ImagePath: ImagePath + Model: Model + Disruption: None + - IsOobSupported: true + ComponentType: ALL + Description: Description + ComponentLabel: ComponentLabel + PackedVersion: PackedVersion + ClassId: firmware.ComponentMeta + Vendor: Vendor + RedfishUrl: RedfishUrl + ObjectType: firmware.ComponentMeta + OobManageability: + - None + - None + ImagePath: ImagePath + Model: Model + Disruption: None + ObjectType: software.SolutionDistributable + ImportAction: None + DisplayNames: + key: + - DisplayNames + - DisplayNames + SolutionName: SolutionName + Release: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ImportedTime: 2000-01-23T04:56:07.000+00:00 + FilePath: FilePath + CreateTime: 2000-01-23T04:56:07.000+00:00 + Vendor: Cisco + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Model: Model + RecommendedBuild: "N" + Moid: Moid + SupportedModels: + - SupportedModels + - SupportedModels + PlatformType: PlatformType title: Solution distributable image x-allOf-name: software.SolutionDistributable software.SolutionDistributable.List: @@ -924741,7 +958279,116 @@ components: description: A UCSD connector pack image bundle distributed by Cisco for Private Appliance. example: + Description: Description + ImportState: ReadyForImport + ReleaseNotesUrl: ReleaseNotesUrl + Parent: null + Size: 6 + Mdfid: Mdfid + DistributableMetas: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: software.UcsdBundleDistributable + Guid: Guid + LastAccessTime: 2000-01-23T04:56:07.000+00:00 + Source: + ObjectType: aaa.UserAgent + ClassId: aaa.UserAgent + Owners: + - Owners + - Owners + Name: Name + ImageType: ImageType + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ComponentMeta: + - IsOobSupported: true + ComponentType: ALL + Description: Description + ComponentLabel: ComponentLabel + PackedVersion: PackedVersion + ClassId: firmware.ComponentMeta + Vendor: Vendor + RedfishUrl: RedfishUrl + ObjectType: firmware.ComponentMeta + OobManageability: + - None + - None + ImagePath: ImagePath + Model: Model + Disruption: None + - IsOobSupported: true + ComponentType: ALL + Description: Description + ComponentLabel: ComponentLabel + PackedVersion: PackedVersion + ClassId: firmware.ComponentMeta + Vendor: Vendor + RedfishUrl: RedfishUrl + ObjectType: firmware.ComponentMeta + OobManageability: + - None + - None + ImagePath: ImagePath + Model: Model + Disruption: None ObjectType: software.UcsdBundleDistributable + BundleType: BundleType + SoftwareAdvisoryUrl: SoftwareAdvisoryUrl + Version: Version + ImportAction: None + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key + SoftwareTypeId: SoftwareTypeId + Release: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ImportedTime: 2000-01-23T04:56:07.000+00:00 + FeatureSource: System + Sha512sum: Sha512sum + SharedScope: SharedScope + CreateTime: 2000-01-23T04:56:07.000+00:00 Images: - ObjectType: aaa.AuditRecord link: link @@ -924753,13 +958400,40 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector - ClassId: software.UcsdBundleDistributable + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + Vendor: Cisco + ReleaseDate: 2000-01-23T04:56:07.000+00:00 + AccountMoid: AccountMoid + Md5eTag: Md5eTag + Md5sum: Md5sum + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector Catalog: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + Model: Model + RecommendedBuild: "N" + Moid: Moid + SupportedModels: + - SupportedModels + - SupportedModels + PlatformType: PlatformType + DownloadCount: 0 title: UCS Director Bundle x-allOf-name: software.UcsdBundleDistributable software.UcsdBundleDistributable.List: @@ -924845,14 +958519,150 @@ components: type: object description: A UCSD connector pack image distributed by Cisco. example: - ObjectType: software.UcsdDistributable + Description: Description + ImportState: ReadyForImport + ReleaseNotesUrl: ReleaseNotesUrl + Parent: null + Size: 6 + Mdfid: Mdfid + DistributableMetas: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector ClassId: software.UcsdDistributable + Guid: Guid + LastAccessTime: 2000-01-23T04:56:07.000+00:00 + Source: + ObjectType: aaa.UserAgent + ClassId: aaa.UserAgent + Owners: + - Owners + - Owners + Name: Name + ImageType: ImageType + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ComponentMeta: + - IsOobSupported: true + ComponentType: ALL + Description: Description + ComponentLabel: ComponentLabel + PackedVersion: PackedVersion + ClassId: firmware.ComponentMeta + Vendor: Vendor + RedfishUrl: RedfishUrl + ObjectType: firmware.ComponentMeta + OobManageability: + - None + - None + ImagePath: ImagePath + Model: Model + Disruption: None + - IsOobSupported: true + ComponentType: ALL + Description: Description + ComponentLabel: ComponentLabel + PackedVersion: PackedVersion + ClassId: firmware.ComponentMeta + Vendor: Vendor + RedfishUrl: RedfishUrl + ObjectType: firmware.ComponentMeta + OobManageability: + - None + - None + ImagePath: ImagePath + Model: Model + Disruption: None + ObjectType: software.UcsdDistributable + BundleType: BundleType + SoftwareAdvisoryUrl: SoftwareAdvisoryUrl + Version: Version + ImportAction: None + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key + SoftwareTypeId: SoftwareTypeId + Release: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ImportedTime: 2000-01-23T04:56:07.000+00:00 + FeatureSource: System + Sha512sum: Sha512sum + SharedScope: SharedScope + CreateTime: 2000-01-23T04:56:07.000+00:00 + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + Vendor: Cisco + ReleaseDate: 2000-01-23T04:56:07.000+00:00 + AccountMoid: AccountMoid + Md5eTag: Md5eTag + Md5sum: Md5sum + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector Catalog: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + Model: Model + RecommendedBuild: "N" + Moid: Moid + SupportedModels: + - SupportedModels + - SupportedModels + PlatformType: PlatformType + DownloadCount: 0 title: UCS Director x-allOf-name: software.UcsdDistributable software.UcsdDistributable.List: @@ -925245,15 +959055,39 @@ components: type: object description: The image cached in the customer's datacenter. example: - Path: Path Action: None OriginalSha512sum: OriginalSha512sum + Parent: null ClassId: softwarerepository.CachedImage - CachedTime: 2000-01-23T04:56:07.000+00:00 - CacheState: ReadyForImport LastAccessTime: 2000-01-23T04:56:07.000+00:00 - UsedCount: 0 - Md5sum: Md5sum + UsedCount: 1 + Owners: + - Owners + - Owners + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified ObjectType: softwarerepository.CachedImage NetworkElement: ObjectType: aaa.AuditRecord @@ -925261,9 +959095,51 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector + DownloadProgress: 0 + Checksum: + ObjectType: connector.FileChecksum + ClassId: connector.FileChecksum + Hash: Hash + HashAlgorithm: crc + DownloadError: DownloadError + Sha256checksum: Sha256checksum + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key + Path: Path + SharedScope: SharedScope + CreateTime: 2000-01-23T04:56:07.000+00:00 + DownloadRetries: 6 + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + CachedTime: 2000-01-23T04:56:07.000+00:00 + CacheState: ReadyForImport + AccountMoid: AccountMoid + Md5sum: Md5sum + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector RegisteredWorkflows: - RegisteredWorkflows - RegisteredWorkflows + Moid: Moid File: ObjectType: aaa.AuditRecord link: link @@ -925600,19 +959476,77 @@ components: applicable hardware models. example: Category: Category + Parent: null + ClassId: softwarerepository.CategoryMapper + Source: Cisco + Owners: + - Owners + - Owners + Name: Name + ImageType: ImageType + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: softwarerepository.CategoryMapper + Version: Version + SwId: SwId + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key + SharedScope: SharedScope RegexPattern: RegexPattern TagTypes: - TagTypes - TagTypes MdfId: MdfId - ClassId: softwarerepository.CategoryMapper + CreateTime: 2000-01-23T04:56:07.000+00:00 + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null IsNfsUpgradeSupported: true - Source: Cisco - ImageType: ImageType - ObjectType: softwarerepository.CategoryMapper + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector FileType: Distributable - Version: Version - SwId: SwId + Moid: Moid SupportedModels: - SupportedModels - SupportedModels @@ -925723,17 +959657,75 @@ components: type: object description: Maps a Cisco hardware model Series to its applicable hardware models. example: - ObjectType: softwarerepository.CategoryMapperModel Category: Category SeriesId: SeriesId + SharedScope: SharedScope + Parent: null RegexPattern: RegexPattern + CreateTime: 2000-01-23T04:56:07.000+00:00 ClassId: softwarerepository.CategoryMapperModel - SupportedModels: - - SupportedModels - - SupportedModels + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null DistTag: DistTag IsNfsUpgradeSupported: true + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Owners: + - Owners + - Owners + Name: Name ImageType: ImageType + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: softwarerepository.CategoryMapperModel + Moid: Moid + SupportedModels: + - SupportedModels + - SupportedModels + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key title: Softwarerepository:Category Mapper Model x-allOf-name: softwarerepository.CategoryMapperModel softwarerepository.CategoryMapperModel.List: @@ -925837,15 +959829,73 @@ components: description: Defines constraints for models which are supported from certain minimum image version. example: - ObjectType: softwarerepository.CategorySupportConstraint - MinVersion: MinVersion + SharedScope: SharedScope + Parent: null MdfId: MdfId ParseFromImageName: true + CreateTime: 2000-01-23T04:56:07.000+00:00 ClassId: softwarerepository.CategorySupportConstraint + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Owners: + - Owners + - Owners + Name: Name + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: softwarerepository.CategorySupportConstraint + MinVersion: MinVersion + Moid: Moid SupportedModels: - SupportedModels - SupportedModels + DisplayNames: + key: + - DisplayNames + - DisplayNames ConstraintId: ConstraintId + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key FilteredModels: - ObjectType: softwarerepository.ConstraintModels MinVersion: MinVersion @@ -925946,7 +959996,6 @@ components: description: Defines constraints for models which are unsupported after specific infra version. example: - ObjectType: softwarerepository.CategoryUnsupportedModels ModelConstraint: - ObjectType: softwarerepository.UnsupportedModelConstraint PlatformRegex: PlatformRegex @@ -925964,8 +960013,67 @@ components: - UnsupportedModels - UnsupportedModels Name: Name + SharedScope: SharedScope + Parent: null MdfId: MdfId + CreateTime: 2000-01-23T04:56:07.000+00:00 ClassId: softwarerepository.CategoryUnsupportedModels + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Owners: + - Owners + - Owners + Name: Name + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: softwarerepository.CategoryUnsupportedModels + Moid: Moid + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key title: Softwarerepository:Category Unsupported Models x-allOf-name: softwarerepository.CategoryUnsupportedModels softwarerepository.CategoryUnsupportedModels.List: @@ -926550,6 +960658,9 @@ components: description: |- An external software repository which serves as the source of the file to be imported into the image catalog. If the source is available in the user's local machine, needs to be corrected to source image or just image If not, only a pointer to the file in the external repository is created in the image catalog. For more information, please refer to the softwarerepositoryUploader and softwarerepositoryFile object descriptions where this type is used. + example: + ObjectType: aaa.UserAgent + ClassId: aaa.UserAgent nullable: true title: Softwarerepository:File Server x-allOf-name: softwarerepository.FileServer @@ -926865,15 +960976,90 @@ components: \ the local repository, it is marked as cached. If not, it represents a pointer\ \ to a file in an external repository." example: - ObjectType: softwarerepository.OperatingSystemFile + Description: Description + ImportState: ReadyForImport + Parent: null + Size: 6 ClassId: softwarerepository.OperatingSystemFile + LastAccessTime: 2000-01-23T04:56:07.000+00:00 + Source: + ObjectType: aaa.UserAgent + ClassId: aaa.UserAgent + Owners: + - Owners + - Owners + Name: Name + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: softwarerepository.OperatingSystemFile + SoftwareAdvisoryUrl: SoftwareAdvisoryUrl + Version: Version + ImportAction: None + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key + ImportedTime: 2000-01-23T04:56:07.000+00:00 + FeatureSource: System + Sha512sum: Sha512sum + SharedScope: SharedScope + CreateTime: 2000-01-23T04:56:07.000+00:00 + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null Vendor: Vendor + ReleaseDate: 2000-01-23T04:56:07.000+00:00 + AccountMoid: AccountMoid + Md5eTag: Md5eTag + Md5sum: Md5sum + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector Catalog: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + Moid: Moid + DownloadCount: 0 title: Operating System x-allOf-name: softwarerepository.OperatingSystemFile softwarerepository.OperatingSystemFile.List: @@ -927253,14 +961439,65 @@ components: type: object description: Policy for configuring Serial Over LAN settings on endpoint. example: - ObjectType: sol.Policy - ComPort: com0 + Description: Description Organization: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + SharedScope: SharedScope + Parent: null + CreateTime: 2000-01-23T04:56:07.000+00:00 + Enabled: true + ClassId: sol.Policy + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + SshPort: 39907 + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Owners: + - Owners + - Owners + Name: Name + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: sol.Policy + ComPort: com0 BaudRate: 0 Profiles: - ObjectType: aaa.AuditRecord @@ -927273,9 +961510,17 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector - Enabled: true - ClassId: sol.Policy - SshPort: 39907 + Moid: Moid + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key title: Serial Over LAN x-allOf-name: sol.Policy sol.Policy.List: @@ -927396,18 +961641,73 @@ components: type: object description: Policy for configuring Serial Over LAN settings on endpoint. example: - ObjectType: sol.PolicyInventory - TargetMo: - ObjectType: aaa.AuditRecord + Description: Description + SharedScope: SharedScope + Parent: null + CreateTime: 2000-01-23T04:56:07.000+00:00 + Enabled: true + ClassId: sol.PolicyInventory + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + SshPort: 39907 + AccountMoid: AccountMoid + DeviceMoId: DeviceMoId + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + Owners: + - Owners + - Owners + Name: Name + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: sol.PolicyInventory + TargetMo: null ComPort: com0 BaudRate: 0 - Enabled: true - ClassId: sol.PolicyInventory - SshPort: 39907 + Moid: Moid + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key title: Serial Over LAN x-allOf-name: sol.PolicyInventory sol.PolicyInventory.List: @@ -927512,15 +961812,65 @@ components: type: object description: Secure shell policy on the endpoint. example: - ObjectType: ssh.Policy + Description: Description Organization: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + SharedScope: SharedScope + Parent: null Timeout: 6533 + CreateTime: 2000-01-23T04:56:07.000+00:00 Port: 5249 + Enabled: true + ClassId: ssh.Policy + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Owners: + - Owners + - Owners + Name: Name + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: ssh.Policy Profiles: - ObjectType: aaa.AuditRecord link: link @@ -927532,8 +961882,17 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector - Enabled: true - ClassId: ssh.Policy + Moid: Moid + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key title: SSH x-allOf-name: ssh.Policy ssh.Policy.List: @@ -927633,17 +961992,72 @@ components: type: object description: Secure shell policy on the endpoint. example: - ObjectType: ssh.PolicyInventory - TargetMo: - ObjectType: aaa.AuditRecord - link: link - Moid: Moid - ClassId: mo.MoRef - Selector: Selector + Description: Description + SharedScope: SharedScope + Parent: null Timeout: 6533 + CreateTime: 2000-01-23T04:56:07.000+00:00 Port: 5249 Enabled: true ClassId: ssh.PolicyInventory + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + AccountMoid: AccountMoid + DeviceMoId: DeviceMoId + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Owners: + - Owners + - Owners + Name: Name + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: ssh.PolicyInventory + TargetMo: null + Moid: Moid + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key title: SSH x-allOf-name: ssh.PolicyInventory ssh.PolicyInventory.List: @@ -928486,6 +962900,14 @@ components: \ an adapter card in it called a Host Bus Adapter (HBA). The initiator \"\ initiates\" a connection over the fabric to one or more ports on storage system\ \ target ports." + example: + ObjectType: storage.HitachiInitiator + Type: FC + Iqn: Iqn + ClassId: storage.HitachiInitiator + Nqn: Nqn + Name: Name + Wwn: Wwn nullable: true title: Storage:Base Initiator x-allOf-name: storage.BaseInitiator @@ -929592,51 +964014,123 @@ components: type: object description: Information of Battery Backup Unit in the storage controller. example: - IsLearnCycleTransparent: true TemperatureInCel: 5 + ClassId: storage.BatteryBackupUnit + ModuleVersion: ModuleVersion + IsLearnCycleRequested: true + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key + LearnCycleProgressStatus: LearnCycleProgressStatus + Status: Status + RegisteredDevice: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + RemainingPoolSpaceInPercent: 5 + SharedScope: SharedScope + PackEnergyInJoules: PackEnergyInJoules + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + Dn: Dn + VoltageInVolts: VoltageInVolts + DeviceMoId: DeviceMoId + ChargingState: ChargingState + Revision: Revision + LearnCycleProgressStartTimeStamp: LearnCycleProgressStartTimeStamp + NextLearnCycleTimeStamp: NextLearnCycleTimeStamp + IsLearnCycleTransparent: true + Parent: null InventoryDeviceInfo: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - ClassId: storage.BatteryBackupUnit IsCapacitor: true LearnCycleProgressEndTimeStamp: LearnCycleProgressEndTimeStamp + Owners: + - Owners + - Owners + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified ObjectType: storage.BatteryBackupUnit - ModuleVersion: ModuleVersion + IsUpgraded: false ManufacturingDate: ManufacturingDate + Presence: Presence DesignCapacityInJoules: DesignCapacityInJoules - IsLearnCycleRequested: true + DisplayNames: + key: + - DisplayNames + - DisplayNames + Rn: Rn IsTemperatureHigh: true CapacitanceInPercent: 0 - LearnCycleProgressStatus: LearnCycleProgressStatus - Status: Status - RegisteredDevice: + IsBatteryPresent: true + CreateTime: 2000-01-23T04:56:07.000+00:00 + PreviousFru: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - RemainingPoolSpaceInPercent: 5 - IsBatteryPresent: true - PackEnergyInJoules: PackEnergyInJoules DesignVoltageInVolts: 1.4658129 + Vendor: Vendor StorageController: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - VoltageInVolts: VoltageInVolts - ChargingState: ChargingState + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector IsVoltageLow: true + Serial: Serial Type: Type CurrentInAmps: 6.0274563 - LearnCycleProgressStartTimeStamp: LearnCycleProgressStartTimeStamp + Model: Model LearnMode: LearnMode + Moid: Moid DeviceName: DeviceName - NextLearnCycleTimeStamp: NextLearnCycleTimeStamp title: Storage:Battery Backup Unit x-allOf-name: storage.BatteryBackupUnit storage.BatteryBackupUnit.List: @@ -929917,41 +964411,65 @@ components: type: object description: Storage Controller present in a server. example: - ConnectedSasExpander: true RaidSupport: RaidSupport - RebuildRate: RebuildRate OperState: OperState PciSlot: PciSlot - InventoryDeviceInfo: + ComputeBlade: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - ComputeBlade: + ClassId: storage.Controller + ComputeRackUnit: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - ComputeBoard: - ObjectType: aaa.AuditRecord + ForeignConfigPresent: true + Name: Name + PciAddr: PciAddr + Operability: Operability + EccBucketLeakRate: 0 + InterfaceType: InterfaceType + DefaultDriveMode: DefaultDriveMode + RunningFirmware: + - ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - ControllerId: ControllerId - ClassId: storage.Controller - ComputeRackUnit: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + HybridSlotsSupported: HybridSlotsSupported + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key + PersistentCacheSize: 5 + RegisteredDevice: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - ForeignConfigPresent: true - Name: Name - PciAddr: PciAddr - VirtualDrives: + SharedScope: SharedScope + MaxVolumesSupported: 6 + OobInterfaceSupported: OobInterfaceSupported + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + Dn: Dn + DeviceMoId: DeviceMoId + SupportedStripSizes: SupportedStripSizes + VirtualDriveExtensions: - ObjectType: aaa.AuditRecord link: link Moid: Moid @@ -929962,30 +964480,40 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector - Operability: Operability - ObjectType: storage.Controller - EccBucketLeakRate: 0 - InterfaceType: InterfaceType - DefaultDriveMode: DefaultDriveMode - BackupBatteryUnit: - ObjectType: aaa.AuditRecord + Revision: Revision + PinnedCacheState: 5 + MemoryCorrectableErrors: 1 + PhysicalDiskExtensions: + - ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - RunningFirmware: - ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - - ObjectType: aaa.AuditRecord + ConnectedSasExpander: true + RebuildRate: RebuildRate + Parent: null + InventoryDeviceInfo: + ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - HybridSlotsSupported: HybridSlotsSupported - DiskSlot: + ComputeBoard: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ControllerId: ControllerId + Owners: + - Owners + - Owners + VirtualDrives: - ObjectType: aaa.AuditRecord link: link Moid: Moid @@ -929996,18 +964524,45 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector - PersistentCacheSize: 5 - RegisteredDevice: + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: storage.Controller + BackupBatteryUnit: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - ControllerStatus: ControllerStatus - MaxVolumesSupported: 6 - RebuildRatePercent: 2 - OobInterfaceSupported: OobInterfaceSupported - DiskGroup: + IsUpgraded: false + Presence: Presence + DisplayNames: + key: + - DisplayNames + - DisplayNames + Rn: Rn + DiskSlot: - ObjectType: aaa.AuditRecord link: link Moid: Moid @@ -930018,10 +964573,16 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector - HwRevision: HwRevision - SubOemId: SubOemId - SupportedStripSizes: SupportedStripSizes - PhysicalDisks: + ControllerStatus: ControllerStatus + RebuildRatePercent: 2 + CreateTime: 2000-01-23T04:56:07.000+00:00 + PreviousFru: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + DiskGroup: - ObjectType: aaa.AuditRecord link: link Moid: Moid @@ -930032,9 +964593,11 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector - ControllerFlags: ControllerFlags - Type: Type - VirtualDriveExtensions: + Vendor: Vendor + HwRevision: HwRevision + SubOemId: SubOemId + AccountMoid: AccountMoid + Ancestors: - ObjectType: aaa.AuditRecord link: link Moid: Moid @@ -930045,11 +964608,7 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector - SelfEncryptEnabled: SelfEncryptEnabled - TotalCacheSize: 7 - PinnedCacheState: 5 - MemoryCorrectableErrors: 1 - PhysicalDiskExtensions: + PhysicalDisks: - ObjectType: aaa.AuditRecord link: link Moid: Moid @@ -930060,6 +964619,13 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector + ControllerFlags: ControllerFlags + Serial: Serial + Type: Type + SelfEncryptEnabled: SelfEncryptEnabled + TotalCacheSize: 7 + Model: Model + Moid: Moid title: Storage:Controller x-allOf-name: storage.Controller storage.Controller.List: @@ -930203,15 +964769,8 @@ components: type: object description: The Local Storage present in a server. example: - ObjectType: storage.ControllerDrive - Type: Unknown Description: Description - RegisteredDevice: - ObjectType: aaa.AuditRecord - link: link - Moid: Moid - ClassId: mo.MoRef - Selector: Selector + Parent: null ComputeBoard: ObjectType: aaa.AuditRecord link: link @@ -930221,8 +964780,46 @@ components: ClassId: storage.ControllerDrive ControllerType: Unknown StorageId: StorageId - PartitionCount: 0 + Owners: + - Owners + - Owners Name: Name + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: storage.ControllerDrive + DisplayNames: + key: + - DisplayNames + - DisplayNames + Rn: Rn + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key StorageItem: - ObjectType: aaa.AuditRecord link: link @@ -930234,6 +964831,35 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector + RegisteredDevice: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + SharedScope: SharedScope + CreateTime: 2000-01-23T04:56:07.000+00:00 + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + Dn: Dn + AccountMoid: AccountMoid + DeviceMoId: DeviceMoId + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Type: Unknown + Moid: Moid + PartitionCount: 0 title: Storage:Controller Drive x-allOf-name: storage.ControllerDrive storage.ControllerDrive.List: @@ -930347,34 +964973,60 @@ components: type: object description: Group of one or more Spans to configure virtual drive. example: - ObjectType: storage.DiskGroup - RegisteredDevice: - ObjectType: aaa.AuditRecord + Parent: null + ClassId: storage.DiskGroup + Owners: + - Owners + - Owners + Name: Name + Spans: + - ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - RaidType: RaidType - ClassId: storage.DiskGroup - DedicatedHotSpares: - ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + VirtualDrives: - ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - StorageController: - ObjectType: aaa.AuditRecord + - ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - Name: Name - Spans: + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: storage.DiskGroup + DedicatedHotSpares: - ObjectType: aaa.AuditRecord link: link Moid: Moid @@ -930385,7 +965037,39 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector - VirtualDrives: + DisplayNames: + key: + - DisplayNames + - DisplayNames + Rn: Rn + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key + RegisteredDevice: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + SharedScope: SharedScope + CreateTime: 2000-01-23T04:56:07.000+00:00 + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + Dn: Dn + StorageController: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + AccountMoid: AccountMoid + DeviceMoId: DeviceMoId + Ancestors: - ObjectType: aaa.AuditRecord link: link Moid: Moid @@ -930396,6 +965080,8 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector + RaidType: RaidType + Moid: Moid title: Storage:Disk Group x-allOf-name: storage.DiskGroup storage.DiskGroup.List: @@ -930486,14 +965172,65 @@ components: type: object description: Information of disk slots as reported by a storage controller. example: + Parent: null + InventoryDeviceInfo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: storage.DiskSlot + Owners: + - Owners + - Owners + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified ObjectType: storage.DiskSlot + SlotId: SlotId + IsUpgraded: false + Presence: Presence + DisplayNames: + key: + - DisplayNames + - DisplayNames + Rn: Rn + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key RegisteredDevice: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - InventoryDeviceInfo: + SharedScope: SharedScope + CreateTime: 2000-01-23T04:56:07.000+00:00 + PreviousFru: ObjectType: aaa.AuditRecord link: link Moid: Moid @@ -930505,13 +965242,35 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector - ClassId: storage.DiskSlot + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + Dn: Dn + Vendor: Vendor StorageController: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + AccountMoid: AccountMoid + DeviceMoId: DeviceMoId + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Serial: Serial + Revision: Revision + Model: Model + Moid: Moid title: Storage:Disk Slot x-allOf-name: storage.DiskSlot storage.DiskSlot.List: @@ -930860,13 +965619,62 @@ components: that can be applied on multiple servers. Storage controller encryption can be enabled through this policy using remote keys from a KMIP server. example: - ObjectType: storage.DriveSecurityPolicy + Description: Description Organization: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + SharedScope: SharedScope + Parent: null + CreateTime: 2000-01-23T04:56:07.000+00:00 + ClassId: storage.DriveSecurityPolicy + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Owners: + - Owners + - Owners + Name: Name + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: storage.DriveSecurityPolicy Profiles: - ObjectType: aaa.AuditRecord link: link @@ -930916,7 +965724,17 @@ components: EnableDriveSecurity: true ClassId: storage.KmipServer IpAddress: IpAddress - ClassId: storage.DriveSecurityPolicy + Moid: Moid + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key title: DriveSecurity x-allOf-name: storage.DriveSecurityPolicy storage.DriveSecurityPolicy.List: @@ -931065,14 +965883,8 @@ components: type: object description: Storage Enclosure for physical disks. example: - ChassisId: 0 Description: Description - RegisteredDevice: - ObjectType: aaa.AuditRecord - link: link - Moid: Moid - ClassId: mo.MoRef - Selector: Selector + Parent: null InventoryDeviceInfo: ObjectType: aaa.AuditRecord link: link @@ -931103,7 +965915,37 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector - PhysicalDisks: + Owners: + - Owners + - Owners + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: storage.Enclosure + EnclosureId: 6 + ServerId: 5 + EnclosureDisks: - ObjectType: aaa.AuditRecord link: link Moid: Moid @@ -931114,11 +965956,49 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector - ObjectType: storage.Enclosure - EnclosureId: 6 - Type: Type - ServerId: 5 - EnclosureDisks: + IsUpgraded: false + EquipmentChassis: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Presence: Presence + DisplayNames: + key: + - DisplayNames + - DisplayNames + Rn: Rn + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key + ChassisId: 0 + RegisteredDevice: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + SharedScope: SharedScope + CreateTime: 2000-01-23T04:56:07.000+00:00 + PreviousFru: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + Dn: Dn + Vendor: Vendor + AccountMoid: AccountMoid + DeviceMoId: DeviceMoId + Ancestors: - ObjectType: aaa.AuditRecord link: link Moid: Moid @@ -931129,13 +966009,23 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector - NumSlots: 1 - EquipmentChassis: - ObjectType: aaa.AuditRecord + PhysicalDisks: + - ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Serial: Serial + Type: Type + Revision: Revision + NumSlots: 1 + Model: Model + Moid: Moid title: Storage:Enclosure x-allOf-name: storage.Enclosure storage.Enclosure.List: @@ -931266,40 +966156,112 @@ components: type: object description: Physical Disk on the enclosure. example: + Parent: null + InventoryDeviceInfo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Size: Size + DiskState: DiskState + ClassId: storage.EnclosureDisk + SasAddress2: SasAddress2 + Owners: + - Owners + - Owners + SasAddress1: SasAddress1 + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: storage.EnclosureDisk + IsUpgraded: false + Presence: Presence + DisplayNames: + key: + - DisplayNames + - DisplayNames + Rn: Rn + NumBlocks: NumBlocks + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key RegisteredDevice: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + SharedScope: SharedScope Health: Health - InventoryDeviceInfo: + CreateTime: 2000-01-23T04:56:07.000+00:00 + PreviousFru: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - Size: Size - DiskState: DiskState PhysicalDisk: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - ClassId: storage.EnclosureDisk + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + Dn: Dn Pid: Pid - SasAddress2: SasAddress2 - SasAddress1: SasAddress1 - ObjectType: storage.EnclosureDisk + Vendor: Vendor + AccountMoid: AccountMoid + DeviceMoId: DeviceMoId + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Serial: Serial + Revision: Revision StorageEnclosure: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + Model: Model + Moid: Moid BlockSize: BlockSize - NumBlocks: NumBlocks DiskId: DiskId title: Storage:Enclosure Disk x-allOf-name: storage.EnclosureDisk @@ -931409,16 +966371,78 @@ components: type: object description: Physical Disk slots on the enclosure. example: + Parent: null + InventoryDeviceInfo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: storage.EnclosureDiskSlotEp + Owners: + - Owners + - Owners + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified ObjectType: storage.EnclosureDiskSlotEp + Presence: Presence + DisplayNames: + key: + - DisplayNames + - DisplayNames + Rn: Rn + ModTime: 2000-01-23T04:56:07.000+00:00 + DrivePath: DrivePath + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key RegisteredDevice: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + SharedScope: SharedScope Health: Health - InventoryDeviceInfo: - ObjectType: aaa.AuditRecord + CreateTime: 2000-01-23T04:56:07.000+00:00 + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + Dn: Dn + AccountMoid: AccountMoid + DeviceMoId: DeviceMoId + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef @@ -931429,10 +966453,8 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector - Presence: Presence + Moid: Moid Slot: Slot - ClassId: storage.EnclosureDiskSlotEp - DrivePath: DrivePath title: Storage:Enclosure Disk Slot Ep x-allOf-name: storage.EnclosureDiskSlotEp storage.EnclosureDiskSlotEp.List: @@ -931805,27 +966827,87 @@ components: type: object description: The local Storage Files present in a server. example: - ObjectType: storage.FileItem - HostVisible: true - Type: Type Description: Description - RegisteredDevice: + Parent: null + Size: Size + ClassId: storage.FileItem + Owners: + - Owners + - Owners + Name: Name + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: storage.FileItem + DisplayNames: + key: + - DisplayNames + - DisplayNames + Rn: Rn + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key + StorageItem: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - Size: Size - UpdateTime: UpdateTime - ClassId: storage.FileItem - FileId: 0 - Name: Name - StorageItem: + RegisteredDevice: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + SharedScope: SharedScope + CreateTime: 2000-01-23T04:56:07.000+00:00 + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + Dn: Dn + AccountMoid: AccountMoid + DeviceMoId: DeviceMoId + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + HostVisible: true + Type: Type + UpdateTime: UpdateTime + Moid: Moid + FileId: 0 title: Storage:File Item x-allOf-name: storage.FileItem storage.FileItem.List: @@ -931955,15 +967037,51 @@ components: type: object description: Storage Flex Flash Controller. example: - ObjectType: storage.FlexFlashController - ControllerState: ControllerState - RegisteredDevice: + Parent: null + InventoryDeviceInfo: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - FlexFlashVirtualDrives: + ComputeBoard: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: storage.FlexFlashController + FfControllerId: FfControllerId + Owners: + - Owners + - Owners + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: storage.FlexFlashController + IsUpgraded: false + RunningFirmware: - ObjectType: aaa.AuditRecord link: link Moid: Moid @@ -931974,19 +967092,42 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector - InventoryDeviceInfo: + Presence: Presence + DisplayNames: + key: + - DisplayNames + - DisplayNames + Rn: Rn + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key + ControllerState: ControllerState + RegisteredDevice: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - ComputeBoard: + SharedScope: SharedScope + CreateTime: 2000-01-23T04:56:07.000+00:00 + PreviousFru: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - FlexFlashPhysicalDrives: + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + Dn: Dn + Vendor: Vendor + AccountMoid: AccountMoid + DeviceMoId: DeviceMoId + Ancestors: - ObjectType: aaa.AuditRecord link: link Moid: Moid @@ -931997,7 +967138,7 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector - RunningFirmware: + FlexFlashControllerProps: - ObjectType: aaa.AuditRecord link: link Moid: Moid @@ -932008,9 +967149,20 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector - ClassId: storage.FlexFlashController - FfControllerId: FfControllerId - FlexFlashControllerProps: + Serial: Serial + Revision: Revision + FlexFlashVirtualDrives: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + FlexFlashPhysicalDrives: - ObjectType: aaa.AuditRecord link: link Moid: Moid @@ -932021,6 +967173,8 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector + Model: Model + Moid: Moid title: Storage:Flex Flash Controller x-allOf-name: storage.FlexFlashController storage.FlexFlashController.List: @@ -932157,6 +967311,59 @@ components: description: Flex flash controller properties. example: PhysicalDriveCount: PhysicalDriveCount + ProductName: ProductName + Parent: null + InventoryDeviceInfo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ConfiguredMode: ConfiguredMode + ClassId: storage.FlexFlashControllerProps + VirtualDriveCount: VirtualDriveCount + Owners: + - Owners + - Owners + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + CardsManageable: CardsManageable + ObjectType: storage.FlexFlashControllerProps + IsUpgraded: false + Presence: Presence + DisplayNames: + key: + - DisplayNames + - DisplayNames + Rn: Rn + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key InternalState: InternalState RegisteredDevice: ObjectType: aaa.AuditRecord @@ -932165,28 +967372,47 @@ components: ClassId: mo.MoRef Selector: Selector OperatingMode: OperatingMode - ProductName: ProductName + SharedScope: SharedScope ControllerStatus: ControllerStatus StartupFwVersion: StartupFwVersion - InventoryDeviceInfo: + CreateTime: 2000-01-23T04:56:07.000+00:00 + PreviousFru: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - ConfiguredMode: ConfiguredMode FwVersion: FwVersion - ClassId: storage.FlexFlashControllerProps - VirtualDriveCount: VirtualDriveCount - CardsManageable: CardsManageable - ObjectType: storage.FlexFlashControllerProps + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + Dn: Dn + Vendor: Vendor + AccountMoid: AccountMoid + DeviceMoId: DeviceMoId + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector ControllerName: ControllerName + Serial: Serial + Revision: Revision StorageFlexFlashController: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + Model: Model + Moid: Moid title: Storage:Flex Flash Controller Props x-allOf-name: storage.FlexFlashControllerProps storage.FlexFlashControllerProps.List: @@ -932293,30 +967519,102 @@ components: type: object description: Physical Drive repersenting a SD Card. example: + Parent: null + InventoryDeviceInfo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: storage.FlexFlashPhysicalDrive + CardStatus: CardStatus + Owners: + - Owners + - Owners + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified ObjectType: storage.FlexFlashPhysicalDrive + IsUpgraded: false + CardType: CardType + Presence: Presence + PdStatus: PdStatus + DisplayNames: + key: + - DisplayNames + - DisplayNames + Rn: Rn + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key RegisteredDevice: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - InventoryDeviceInfo: + SharedScope: SharedScope + CreateTime: 2000-01-23T04:56:07.000+00:00 + PreviousFru: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - CardType: CardType + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + Dn: Dn + Vendor: Vendor + AccountMoid: AccountMoid + DeviceMoId: DeviceMoId + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Serial: Serial + Revision: Revision StorageFlexFlashController: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - PdStatus: PdStatus - ClassId: storage.FlexFlashPhysicalDrive + Model: Model + Moid: Moid OemId: OemId - CardStatus: CardStatus title: Storage:Flex Flash Physical Drive x-allOf-name: storage.FlexFlashPhysicalDrive storage.FlexFlashPhysicalDrive.List: @@ -932431,7 +967729,59 @@ components: type: object description: Virtual Drive repersenting a SD Card. example: + Parent: null + DriveScope: DriveScope + InventoryDeviceInfo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Size: Size + VirtualDrive: VirtualDrive + ClassId: storage.FlexFlashVirtualDrive + Owners: + - Owners + - Owners + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified ObjectType: storage.FlexFlashVirtualDrive + IsUpgraded: false + ResidentImage: ResidentImage + Presence: Presence + DisplayNames: + key: + - DisplayNames + - DisplayNames + Rn: Rn + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key RegisteredDevice: ObjectType: aaa.AuditRecord link: link @@ -932439,24 +967789,44 @@ components: ClassId: mo.MoRef Selector: Selector DriveStatus: DriveStatus - DriveScope: DriveScope - InventoryDeviceInfo: + SharedScope: SharedScope + CreateTime: 2000-01-23T04:56:07.000+00:00 + PreviousFru: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - Size: Size + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + Dn: Dn + Vendor: Vendor + PartitionId: PartitionId + AccountMoid: AccountMoid + DeviceMoId: DeviceMoId + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Serial: Serial + Revision: Revision StorageFlexFlashController: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - ResidentImage: ResidentImage - VirtualDrive: VirtualDrive - ClassId: storage.FlexFlashVirtualDrive - PartitionId: PartitionId + Model: Model + Moid: Moid title: Storage:Flex Flash Virtual Drive x-allOf-name: storage.FlexFlashVirtualDrive storage.FlexFlashVirtualDrive.List: @@ -932578,28 +967948,81 @@ components: type: object description: Storage Flex Util Adapter. example: - ObjectType: storage.FlexUtilController - ControllerName: ControllerName - InternalState: InternalState - RegisteredDevice: + Parent: null + InventoryDeviceInfo: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - ControllerStatus: ControllerStatus - InventoryDeviceInfo: + ComputeBoard: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - ComputeBoard: + ClassId: storage.FlexUtilController + FfControllerId: FfControllerId + Owners: + - Owners + - Owners + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: storage.FlexUtilController + DisplayNames: + key: + - DisplayNames + - DisplayNames + Rn: Rn + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key + FlexUtilPhysicalDrives: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + InternalState: InternalState + RegisteredDevice: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + SharedScope: SharedScope + ControllerStatus: ControllerStatus + CreateTime: 2000-01-23T04:56:07.000+00:00 FlexUtilVirtualDrives: - ObjectType: aaa.AuditRecord link: link @@ -932611,9 +968034,14 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector - ClassId: storage.FlexUtilController - FfControllerId: FfControllerId - FlexUtilPhysicalDrives: + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + Dn: Dn + AccountMoid: AccountMoid + DeviceMoId: DeviceMoId + Ancestors: - ObjectType: aaa.AuditRecord link: link Moid: Moid @@ -932624,6 +968052,8 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector + ControllerName: ControllerName + Moid: Moid title: Storage:Flex Util Controller x-allOf-name: storage.FlexUtilController storage.FlexUtilController.List: @@ -932788,12 +968218,6 @@ components: description: Storage Flex Util Physical Drive. example: WriteErrorThreshold: WriteErrorThreshold - RegisteredDevice: - ObjectType: aaa.AuditRecord - link: link - Moid: Moid - ClassId: mo.MoRef - Selector: Selector ProductName: ProductName StorageFlexUtilController: ObjectType: aaa.AuditRecord @@ -932801,7 +968225,7 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector - Health: Health + Parent: null ManufacturerDate: ManufacturerDate InventoryDeviceInfo: ObjectType: aaa.AuditRecord @@ -932813,14 +968237,92 @@ components: ManufacturerId: ManufacturerId PhysicalDrive: PhysicalDrive ClassId: storage.FlexUtilPhysicalDrive - Controller: Controller ProductRevision: ProductRevision + Owners: + - Owners + - Owners + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified ReadErrorCount: ReadErrorCount ObjectType: storage.FlexUtilPhysicalDrive WriteErrorCount: WriteErrorCount Capacity: Capacity - WriteEnabled: WriteEnabled + IsUpgraded: false + Presence: Presence PdStatus: PdStatus + DisplayNames: + key: + - DisplayNames + - DisplayNames + Rn: Rn + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key + RegisteredDevice: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + SharedScope: SharedScope + Health: Health + CreateTime: 2000-01-23T04:56:07.000+00:00 + PreviousFru: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + Dn: Dn + Vendor: Vendor + Controller: Controller + AccountMoid: AccountMoid + DeviceMoId: DeviceMoId + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Serial: Serial + Revision: Revision + WriteEnabled: WriteEnabled + Model: Model + Moid: Moid OemId: OemId BlockSize: BlockSize PartitionCount: PartitionCount @@ -932946,19 +968448,13 @@ components: type: object description: Storage Flex Util Virtual Drive. example: - RegisteredDevice: - ObjectType: aaa.AuditRecord - link: link - Moid: Moid - ClassId: mo.MoRef - Selector: Selector - DriveStatus: DriveStatus StorageFlexUtilController: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + Parent: null InventoryDeviceInfo: ObjectType: aaa.AuditRecord link: link @@ -932968,12 +968464,78 @@ components: Size: Size VirtualDrive: VirtualDrive ClassId: storage.FlexUtilVirtualDrive + Owners: + - Owners + - Owners + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: storage.FlexUtilVirtualDrive + ResidentImage: ResidentImage + DisplayNames: + key: + - DisplayNames + - DisplayNames + Rn: Rn + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key + RegisteredDevice: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + DriveStatus: DriveStatus + SharedScope: SharedScope + CreateTime: 2000-01-23T04:56:07.000+00:00 + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + Dn: Dn PartitionId: PartitionId + AccountMoid: AccountMoid + DeviceMoId: DeviceMoId + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector DriveType: DriveType PartitionName: PartitionName - ObjectType: storage.FlexUtilVirtualDrive HostAccessible: HostAccessible - ResidentImage: ResidentImage + Moid: Moid title: Storage:Flex Util Virtual Drive x-allOf-name: storage.FlexUtilVirtualDrive storage.FlexUtilVirtualDrive.List: @@ -933105,20 +968667,111 @@ components: description: The details of the Hitachi storage array. example: Ctl1MicroVersion: Ctl1MicroVersion + Parent: null + StorageUtilization: + ObjectType: storage.HitachiArrayUtilization + Used: 5 + CapacityUtilization: 6.0274563 + Total: 5 + ClassId: storage.HitachiArrayUtilization + Available: 0 + Free: 1 + Ctl2MicroVersion: Ctl2MicroVersion + DeviceId: DeviceId + Ip: Ip + ClassId: storage.HitachiArray + Owners: + - Owners + - Owners + Name: Name + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + DeviceLocation: + ObjectType: equipment.DeviceLocation + Address: Address + ClassId: equipment.DeviceLocation + Latitude: 0.8008282 + Longitude: 6.0274563 ObjectType: storage.HitachiArray + Version: Version + IsUpgraded: false + Presence: Presence + DisplayNames: + key: + - DisplayNames + - DisplayNames + Rn: Rn + SvpIp: SvpIp + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key RegisteredDevice: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + SharedScope: SharedScope + CreateTime: 2000-01-23T04:56:07.000+00:00 + PreviousFru: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + Dn: Dn + Vendor: Vendor + AccountMoid: AccountMoid + DeviceMoId: DeviceMoId + HardwareVersion: HardwareVersion + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + DeviceType: DeviceType + Serial: Serial + Uuid: Uuid + Revision: Revision Ctl1Ip: Ctl1Ip - Ctl2MicroVersion: Ctl2MicroVersion - DeviceId: DeviceId Ctl2Ip: Ctl2Ip - Ip: Ip - ClassId: storage.HitachiArray - SvpIp: SvpIp + Model: Model + Moid: Moid TargetCtl: TargetCtl title: Storage:Hitachi Array x-allOf-name: storage.HitachiArray @@ -933198,7 +968851,14 @@ components: - $ref: '#/components/schemas/storage.BaseCapacity' description: Storage space utilization of Hitachi Arrays. Used for specifying utilization by different entities. - example: {} + example: + ObjectType: storage.HitachiArrayUtilization + Used: 7 + CapacityUtilization: 3.6160767 + Total: 4 + ClassId: storage.HitachiArrayUtilization + Available: 9 + Free: 2 title: Storage:Hitachi Capacity x-allOf-name: storage.HitachiCapacity storage.HitachiController.Response: @@ -933255,20 +968915,96 @@ components: type: object description: A storage controller entity in Hitachi storage array. example: - Array: + Parent: null + ClassId: storage.HitachiController + OperationalMode: Unknown + Owners: + - Owners + - Owners + Name: Name + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: storage.HitachiController + Version: Version + IsUpgraded: false + Presence: Presence + DisplayNames: + key: + - DisplayNames + - DisplayNames + Rn: Rn + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key + Status: Unknown + RegisteredDevice: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - ObjectType: storage.HitachiController - RegisteredDevice: + SharedScope: SharedScope + CreateTime: 2000-01-23T04:56:07.000+00:00 + PreviousFru: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - ClassId: storage.HitachiController + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + Dn: Dn + Vendor: Vendor + AccountMoid: AccountMoid + DeviceMoId: DeviceMoId + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Array: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Serial: Serial + Revision: Revision + Model: Model + Moid: Moid title: Storage:Hitachi Controller x-allOf-name: storage.HitachiController storage.HitachiController.List: @@ -933390,30 +969126,117 @@ components: type: object description: Disk entity associated with Hitachi storage array. example: - Array: + DriveTypeCode: DriveTypeCode + PartNumber: PartNumber + Parent: null + StorageUtilization: + ObjectType: storage.HitachiArrayUtilization + Used: 5 + CapacityUtilization: 6.0274563 + Total: 5 + ClassId: storage.HitachiArrayUtilization + Available: 0 + Free: 1 + ClassId: storage.HitachiDisk + Owners: + - Owners + - Owners + Name: Name + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: storage.HitachiDisk + TypeDetail: N/A + Version: Version + IsUpgraded: false + Presence: Presence + DisplayNames: + key: + - DisplayNames + - DisplayNames + Rn: Rn + Protocol: Unknown + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key + Status: Unknown + Speed: 0 + Usage: Usage + RegisteredDevice: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - ObjectType: storage.HitachiDisk - DriveTypeCode: DriveTypeCode - ParityGroupId: ParityGroupId - TypeDetail: N/A - Usage: Usage - RegisteredDevice: + SharedScope: SharedScope + CreateTime: 2000-01-23T04:56:07.000+00:00 + PreviousFru: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + Dn: Dn + Vendor: Vendor + AccountMoid: AccountMoid + DeviceMoId: DeviceMoId + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Array: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + Serial: Serial + Type: Unknown + ParityGroupId: ParityGroupId + Revision: Revision + Model: Model + Moid: Moid ParityGroup: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - ClassId: storage.HitachiDisk title: Storage:Hitachi Disk x-allOf-name: storage.HitachiDisk storage.HitachiDisk.List: @@ -933578,8 +969401,15 @@ components: AllocatableOpenVolumeCapacity: 0 Parent: null AvailableVolumeCapacity: 1 - StorageUtilization: {} - UnallocatedOpenVolumeCapacity: 3 + StorageUtilization: + ObjectType: storage.HitachiArrayUtilization + Used: 7 + CapacityUtilization: 3.6160767 + Total: 4 + ClassId: storage.HitachiArrayUtilization + Available: 9 + Free: 2 + UnallocatedOpenVolumeCapacity: 1 ClassId: storage.HitachiExternalParityGroup Owners: - Owners @@ -933622,7 +969452,7 @@ components: Key: Key - Value: Value Key: Key - UsedCapacityRate: 2 + UsedCapacityRate: 1 RegisteredDevice: ObjectType: aaa.AuditRecord link: link @@ -933649,7 +969479,7 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector - TotalOpenVolumeCapacity: 9 + TotalOpenVolumeCapacity: 1 Array: ObjectType: aaa.AuditRecord link: link @@ -934525,16 +970355,100 @@ components: worldwide names or iSCSI qualified names) of client computers and to control communications between clients and volumes. example: + Description: Description + Parent: null + Initiators: + - ObjectType: storage.HitachiInitiator + Type: FC + Iqn: Iqn + ClassId: storage.HitachiInitiator + Nqn: Nqn + Name: Name + Wwn: Wwn + - ObjectType: storage.HitachiInitiator + Type: FC + Iqn: Iqn + ClassId: storage.HitachiInitiator + Nqn: Nqn + Name: Name + Wwn: Wwn + StorageUtilization: + ObjectType: storage.HitachiArrayUtilization + Used: 5 + CapacityUtilization: 6.0274563 + Total: 5 + ClassId: storage.HitachiArrayUtilization + Available: 0 + Free: 1 + IscsiName: IscsiName + PortId: PortId + ClassId: storage.HitachiHost + Owners: + - Owners + - Owners + Name: Name + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: storage.HitachiHost + OsType: OsType + PortLunSecurity: true + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key RegisteredDevice: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - IscsiName: IscsiName - PortId: PortId - ClassId: storage.HitachiHost + SharedScope: SharedScope + CreateTime: 2000-01-23T04:56:07.000+00:00 + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null HostGroupNumber: 0 + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector Wwn: Wwn IsChapMutual: true Array: @@ -934543,11 +970457,10 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector - ObjectType: storage.HitachiHost AuthenticationMode: N/A Type: FC HostGroupId: HostGroupId - PortLunSecurity: true + Moid: Moid HostModeOptions: - 6 - 6 @@ -934640,33 +970553,93 @@ components: to all hosts associated within host group. Hitachi assign same HLU for all the host. example: - Array: + VolumeName: VolumeName + RegisteredDevice: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - ObjectType: storage.HitachiHostLun - RegisteredDevice: + SharedScope: SharedScope + Parent: null + CreateTime: 2000-01-23T04:56:07.000+00:00 + PortId: PortId + ClassId: storage.HitachiHostLun + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + Host: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - Volume: + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Owners: + - Owners + - Owners + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + Hlu: 0 + Array: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - PortId: PortId - ClassId: storage.HitachiHostLun - Host: + ObjectType: storage.HitachiHostLun + Volume: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + Moid: Moid + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key + HostName: HostName title: Storage:Hitachi Host Lun x-allOf-name: storage.HitachiHostLun storage.HitachiHostLun.List: @@ -934824,25 +970797,92 @@ components: type: object description: A parity group in Hitachi storage array. example: + Parent: null + StorageUtilization: + ObjectType: storage.HitachiArrayUtilization + Used: 5 + CapacityUtilization: 6.0274563 + Total: 5 + ClassId: storage.HitachiArrayUtilization + Available: 0 + Free: 1 + ClassId: storage.HitachiParityGroup + Owners: + - Owners + - Owners + Name: Name + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified DiskType: DiskType - Array: + ObjectType: storage.HitachiParityGroup + DiskSpeed: DiskSpeed + IsEncryptionEnabled: true + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key + RegisteredDevice: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - ObjectType: storage.HitachiParityGroup - RegisteredDevice: + SharedScope: SharedScope + CreateTime: 2000-01-23T04:56:07.000+00:00 + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Array: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector IsCopyBackModeEnabled: true - DiskSpeed: DiskSpeed - ClassId: storage.HitachiParityGroup + Moid: Moid + Level: Unknown IsAcceleratedCompressionEnabled: true - IsEncryptionEnabled: true title: Storage:Hitachi Parity Group x-allOf-name: storage.HitachiParityGroup storage.HitachiParityGroup.List: @@ -935009,20 +971049,89 @@ components: type: object description: A pool entity in Hitachi storage array. example: + ProgressOfReplacing: ProgressOfReplacing + Parent: null + StorageUtilization: + ObjectType: storage.HitachiArrayUtilization + Used: 5 + CapacityUtilization: 6.0274563 + Total: 5 + ClassId: storage.HitachiArrayUtilization + Available: 0 + Free: 1 + PoolActionMode: N/A + WarningThreshold: 6 + ClassId: storage.HitachiPool + BlockingModeFull: BlockingModeFull + Owners: + - Owners + - Owners + Name: Name + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: storage.HitachiPool + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + IsShrinking: true + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key + Status: Unknown BlockingModeBlockade: BlockingModeBlockade DepletionThreshold: DepletionThreshold - ProgressOfReplacing: ProgressOfReplacing RegisteredDevice: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - PoolActionMode: N/A - WarningThreshold: 6 - ClassId: storage.HitachiPool + PoolId: PoolId + SharedScope: SharedScope + CreateTime: 2000-01-23T04:56:07.000+00:00 + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null MonitoringStatus: MonitoringStatus - BlockingModeFull: BlockingModeFull + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector TotalReservedCapacity: 0 Array: ObjectType: aaa.AuditRecord @@ -935030,8 +971139,8 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector - ObjectType: storage.HitachiPool - IsShrinking: true + Type: Type + Moid: Moid MonitoringMode: N/A title: Storage:Hitachi Pool x-allOf-name: storage.HitachiPool @@ -935173,6 +971282,54 @@ components: type: object description: Port entity in Hitachi storage array. example: + Parent: null + FabricMode: true + ClassId: storage.HitachiPort + Owners: + - Owners + - Owners + Name: Name + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: storage.HitachiPort + TcpMtu: 6 + Wwpn: Wwpn + PortLunSecurity: true + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key + Ipv4Address: Ipv4Address + Status: Unknown + Speed: 0 Ipv6LinkLocalAddress: Ipv6LinkLocalAddress RegisteredDevice: ObjectType: aaa.AuditRecord @@ -935180,11 +971337,30 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector + SharedScope: SharedScope PortMode: PortMode - FabricMode: true + CreateTime: 2000-01-23T04:56:07.000+00:00 + Iqn: Iqn + Wwnn: Wwnn ShortportId: ShortportId - ClassId: storage.HitachiPort + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector PortConnection: PortConnection + Wwn: Wwn IsIpv6Enable: true Array: ObjectType: aaa.AuditRecord @@ -935192,11 +971368,9 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector - ObjectType: storage.HitachiPort + Type: FC Ipv6GlobalAddress: Ipv6GlobalAddress - TcpMtu: 0 - PortLunSecurity: true - Ipv4Address: Ipv4Address + Moid: Moid LoopId: LoopId title: Storage:Hitachi Port x-allOf-name: storage.HitachiPort @@ -936562,6 +972736,71 @@ components: type: object description: A volume entity in Hitachi storage array. example: + Description: Description + Parent: null + StorageUtilization: + ObjectType: storage.HitachiArrayUtilization + Used: 5 + CapacityUtilization: 6.0274563 + Total: 5 + ClassId: storage.HitachiArrayUtilization + Available: 0 + Free: 1 + Size: 0 + Attributes: + - Attributes + - Attributes + Label: Label + ClassId: storage.HitachiVolume + IsFullAllocationEnabled: true + Owners: + - Owners + - Owners + Name: Name + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: storage.HitachiVolume + NaaId: NaaId + DataReductionMode: N/A + RaidLevel: N/A + Pool: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key Status: N/A DataReductionStatus: N/A ParityGroupIds: @@ -936574,16 +972813,17 @@ components: ClassId: mo.MoRef Selector: Selector PoolId: PoolId - NumOfPaths: 6 - Attributes: - - Attributes - - Attributes - Label: Label + SharedScope: SharedScope + NumOfPaths: 1 + CreateTime: 2000-01-23T04:56:07.000+00:00 NvmSubsystemId: NvmSubsystemId - ClassId: storage.HitachiVolume + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null EmulationType: N/A - IsFullAllocationEnabled: true - ParityGroups: + AccountMoid: AccountMoid + Ancestors: - ObjectType: aaa.AuditRecord link: link Moid: Moid @@ -936594,25 +972834,28 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector - DriveType: DriveType - Array: - ObjectType: aaa.AuditRecord + ParityGroups: + - ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - ObjectType: storage.HitachiVolume - DataReductionMode: N/A - RaidLevel: N/A - RaidType: RaidType - Pool: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + DriveType: DriveType + Array: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + RaidType: RaidType + Moid: Moid NamespaceId: NamespaceId - ClprId: 0 + ClprId: 6 title: Storage:Hitachi Volume x-allOf-name: storage.HitachiVolume storage.HitachiVolume.List: @@ -936874,7 +973117,12 @@ components: - IpAddresses - IpAddresses ObjectType: storage.HyperFlexIscsiInitiator + Type: FC + Iqn: Iqn ClassId: storage.HyperFlexIscsiInitiator + Nqn: Nqn + Name: Name + Wwn: Wwn title: Storage:Hyper Flex Iscsi Initiator x-allOf-name: storage.HyperFlexIscsiInitiator storage.HyperFlexStorageContainer.Response: @@ -937010,6 +973258,58 @@ components: description: A Storage Container (Datastore) entity. example: DataBlockSize: 0 + CreatedTime: 2000-01-23T04:56:07.000+00:00 + Parent: null + StorageUtilization: + ObjectType: storage.HitachiArrayUtilization + Used: 5 + CapacityUtilization: 6.0274563 + Total: 5 + ClassId: storage.HitachiArrayUtilization + Available: 0 + Free: 1 + ClassId: storage.HyperFlexStorageContainer + LastAccessTime: 2000-01-23T04:56:07.000+00:00 + VolumeCount: 5 + Owners: + - Owners + - Owners + Name: Name + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: storage.HyperFlexStorageContainer + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key ProvisionedVolumeCapacityUtilization: 1.4658129 RegisteredDevice: ObjectType: aaa.AuditRecord @@ -937017,6 +973317,8 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector + SharedScope: SharedScope + CreateTime: 2000-01-23T04:56:07.000+00:00 ProvisionedCapacity: 6 Cluster: ObjectType: aaa.AuditRecord @@ -937024,13 +973326,26 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector - ClassId: storage.HyperFlexStorageContainer - LastAccessTime: 2000-01-23T04:56:07.000+00:00 - VolumeCount: 5 - ObjectType: storage.HyperFlexStorageContainer + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector Type: NFS Uuid: Uuid LastModifiedTime: 2000-01-23T04:56:07.000+00:00 + Moid: Moid InUse: true UnCompressedUsedBytes: 5 title: Storage:Hyper Flex Storage Container @@ -937189,35 +973504,104 @@ components: type: object description: A HyperFlex Volume entity. example: + Description: Description + Parent: null + StorageUtilization: + ObjectType: storage.HitachiArrayUtilization + Used: 5 + CapacityUtilization: 6.0274563 + Total: 5 + ClassId: storage.HitachiArrayUtilization + Available: 0 + Free: 1 + Size: 0 + ClassId: storage.HyperFlexVolume + Owners: + - Owners + - Owners + Name: Name + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: storage.HyperFlexVolume + NaaId: NaaId + VolumeType: VolumeType + Capacity: 6 + ClientId: ClientId + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + StorageContainer: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key RegisteredDevice: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + SharedScope: SharedScope + CreateTime: 2000-01-23T04:56:07.000+00:00 Cluster: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - ClassId: storage.HyperFlexVolume + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector VolumeAccessMode: ReadWriteOnce - ObjectType: storage.HyperFlexVolume Uuid: Uuid - VolumeType: VolumeType SerialNumber: SerialNumber - Capacity: 0 LunUuid: LunUuid LastModifiedTime: 2000-01-23T04:56:07.000+00:00 - ClientId: ClientId + Moid: Moid VolumeMode: Block - StorageContainer: - ObjectType: aaa.AuditRecord - link: link - Moid: Moid - ClassId: mo.MoRef - Selector: Selector title: Storage:Hyper Flex Volume x-allOf-name: storage.HyperFlexVolume storage.HyperFlexVolume.List: @@ -937350,6 +973734,45 @@ components: type: object description: The local Storage information. example: + OperState: OperState + Parent: null + InventoryDeviceInfo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Size: Size + AlarmType: AlarmType + ClassId: storage.Item + Owners: + - Owners + - Owners + Name: Name + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified StorageControllerDrive: ObjectType: aaa.AuditRecord link: link @@ -937363,22 +973786,44 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector + DisplayNames: + key: + - DisplayNames + - DisplayNames + Rn: Rn + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key RegisteredDevice: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - OperState: OperState - Used: Used - InventoryDeviceInfo: - ObjectType: aaa.AuditRecord + SharedScope: SharedScope + CreateTime: 2000-01-23T04:56:07.000+00:00 + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + Dn: Dn + AccountMoid: AccountMoid + DeviceMoId: DeviceMoId + Ancestors: + - ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - Size: Size - AlarmType: AlarmType + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Used: Used StorageFiles: - ObjectType: aaa.AuditRecord link: link @@ -937390,8 +973835,7 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector - ClassId: storage.Item - Name: Name + Moid: Moid title: Storage:Item x-allOf-name: storage.Item storage.Item.List: @@ -938020,15 +974464,57 @@ components: description: NetApp aggregate is a collection of disks arranged into one or more RAID groups. example: + Parent: null + StorageUtilization: + ObjectType: storage.HitachiArrayUtilization + Used: 5 + CapacityUtilization: 6.0274563 + Total: 5 + ClassId: storage.HitachiArrayUtilization + Available: 0 + Free: 1 NodeName: NodeName ClassId: storage.NetAppAggregate AggregateType: HDD + Owners: + - Owners + - Owners + Name: Name + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified CloudStorage: - CloudStorage - CloudStorage ObjectType: storage.NetAppAggregate - AvgPerformanceMetrics: {} - Uuid: Uuid + AvgPerformanceMetrics: + ObjectType: storage.NetAppPerformanceMetricsAverage + Period: 1 + Throughput: 5.962133916683182 + ClassId: storage.NetAppPerformanceMetricsAverage + Iops: 0.8008281904610115 + Latency: 6.027456183070403 Events: - ObjectType: aaa.AuditRecord link: link @@ -938040,10 +974526,43 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector + EfficiencyRatio: 5.637377 + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key + Status: Unknown + PoolId: PoolId + SharedScope: SharedScope + CreateTime: 2000-01-23T04:56:07.000+00:00 + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Type: Type + Uuid: Uuid RaidType: Unknown State: Unknown - RaidSize: 6 - EfficiencyRatio: 0.8008282 + Moid: Moid + RaidSize: 2 Key: Key ArrayController: ObjectType: aaa.AuditRecord @@ -938136,8 +974655,79 @@ components: type: object description: An event where the impacted resource type is an aggregate. example: - ObjectType: storage.NetAppAggregateEvent + Parent: null + ImpactResourceUuid: ImpactResourceUuid + ImpactResourceType: unknown ClassId: storage.NetAppAggregateEvent + SvmUuid: SvmUuid + Owners: + - Owners + - Owners + Name: Name + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: storage.NetAppAggregateEvent + ImpactArea: unknown + Cause: Cause + CurrentState: unknown + ImpactResourceName: ImpactResourceName + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key + SharedScope: SharedScope + ImpactLevel: unknown + CreateTime: 2000-01-23T04:56:07.000+00:00 + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + ClusterUuid: ClusterUuid + Duration: Duration + Severity: unknown + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Uuid: Uuid + NodeUuid: NodeUuid + Moid: Moid Aggregate: ObjectType: aaa.AuditRecord link: link @@ -938459,23 +975049,75 @@ components: type: object description: NetApp base disk is a storage array disk. example: - DiskShelfModel: DiskShelfModel + PartNumber: PartNumber NodeName: NodeName - ContainerType: Unknown - DiskBay: 0 ClassId: storage.NetAppBaseDisk - ClusterUuid: ClusterUuid + Name: Name DiskType: Unknown - Array: + Version: Version + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key + Status: Unknown + DiskShelfModel: DiskShelfModel + SharedScope: SharedScope + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + Dn: Dn + DeviceMoId: DeviceMoId + Revision: Revision + State: Present + DiskShelfName: DiskShelfName + ArrayController: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + Parent: null + StorageUtilization: + ObjectType: storage.HitachiArrayUtilization + Used: 5 + CapacityUtilization: 6.0274563 + Total: 5 + ClassId: storage.HitachiArrayUtilization + Available: 0 + Free: 1 + DiskBay: 6 + Owners: + - Owners + - Owners + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified ObjectType: storage.NetAppBaseDisk BaseDiskModel: BaseDiskModel - DiskShelfId: DiskShelfId - Uuid: Uuid Events: - ObjectType: aaa.AuditRecord link: link @@ -938487,9 +975129,28 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector + IsUpgraded: false DiskSerialNumber: DiskSerialNumber - State: Present - DiskPool: + Presence: Presence + DisplayNames: + key: + - DisplayNames + - DisplayNames + Rn: Rn + Protocol: Unknown + Speed: 0 + CreateTime: 2000-01-23T04:56:07.000+00:00 + PreviousFru: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ContainerType: Unknown + ClusterUuid: ClusterUuid + Vendor: Vendor + AccountMoid: AccountMoid + Ancestors: - ObjectType: aaa.AuditRecord link: link Moid: Moid @@ -938500,13 +975161,29 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector - DiskShelfName: DiskShelfName - ArrayController: + Array: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + DiskShelfId: DiskShelfId + Serial: Serial + Type: Unknown + Uuid: Uuid + Model: Model + Moid: Moid + DiskPool: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector title: Storage:Net App Base Disk x-allOf-name: storage.NetAppBaseDisk storage.NetAppBaseDisk.List: @@ -939994,12 +976671,6 @@ components: description: NetApp cluster consists of one or more nodes grouped together as HA pairs to form a scalable cluster. example: - RegisteredDevice: - ObjectType: aaa.AuditRecord - link: link - Moid: Moid - ClassId: mo.MoRef - Selector: Selector FipsCompliant: true ManagementAddress: - ManagementAddress @@ -940007,28 +976678,99 @@ components: NtpServers: - NtpServers - NtpServers - InsecureCiphers: 5 - VersionMajor: 2 DefaultAdminLocked: true ClassId: storage.NetAppCluster - ClusterHealthStatus: Unreachable - ObjectType: storage.NetAppCluster - AutoSupport: - ProxyUrl: ProxyUrl - ObjectType: storage.NetAppAutoSupport - Enabled: true - ClassId: storage.NetAppAutoSupport - From: From - Transport: none - AvgPerformanceMetrics: {} - TelnetEnabled: true - VersionMinor: 7 + Name: Name + DeviceLocation: + ObjectType: equipment.DeviceLocation + Address: Address + ClassId: equipment.DeviceLocation + Latitude: 0.8008282 + Longitude: 6.0274563 + AvgPerformanceMetrics: + ObjectType: storage.NetAppPerformanceMetricsAverage + Period: 1 + Throughput: 5.962133916683182 + ClassId: storage.NetAppPerformanceMetricsAverage + Iops: 0.8008281904610115 + Latency: 6.027456183070403 + Version: Version + RshEnabled: true + ModTime: 2000-01-23T04:56:07.000+00:00 + NameServers: + - NameServers + - NameServers + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key + RegisteredDevice: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + SharedScope: SharedScope + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + Dn: Dn + DeviceMoId: DeviceMoId + HardwareVersion: HardwareVersion + DeviceType: DeviceType ClusterEfficiency: ObjectType: storage.NetAppStorageClusterEfficiency Savings: 1 ClassId: storage.NetAppStorageClusterEfficiency Ratio: 6.0274563 LogicalUsed: 0 + Revision: Revision + DnsDomains: + - DnsDomains + - DnsDomains + Key: Key + Parent: null + StorageUtilization: + ObjectType: storage.HitachiArrayUtilization + Used: 5 + CapacityUtilization: 6.0274563 + Total: 5 + ClassId: storage.HitachiArrayUtilization + Available: 0 + Free: 1 + InsecureCiphers: 5 + VersionMajor: 2 + Owners: + - Owners + - Owners + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ClusterHealthStatus: Unreachable + ObjectType: storage.NetAppCluster Events: - ObjectType: aaa.AuditRecord link: link @@ -940040,15 +976782,47 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector - DnsDomains: - - DnsDomains - - DnsDomains + IsUpgraded: false + Presence: Presence + DisplayNames: + key: + - DisplayNames + - DisplayNames + Rn: Rn + CreateTime: 2000-01-23T04:56:07.000+00:00 + PreviousFru: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Vendor: Vendor + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + AutoSupport: + ProxyUrl: ProxyUrl + ObjectType: storage.NetAppAutoSupport + Enabled: true + ClassId: storage.NetAppAutoSupport + From: From + Transport: none + TelnetEnabled: true + VersionMinor: 7 + Serial: Serial + Uuid: Uuid VersionGeneration: 5 - RshEnabled: true - NameServers: - - NameServers - - NameServers - Key: Key + Model: Model + Moid: Moid Location: Location title: Storage:Net App Cluster x-allOf-name: storage.NetAppCluster @@ -940135,14 +976909,85 @@ components: type: object description: An event where the impacted resource type is a cluster. example: + Parent: null + ImpactResourceUuid: ImpactResourceUuid + ImpactResourceType: unknown + ClassId: storage.NetAppClusterEvent + SvmUuid: SvmUuid + Owners: + - Owners + - Owners + Name: Name + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: storage.NetAppClusterEvent + ImpactArea: unknown + Cause: Cause + CurrentState: unknown + ImpactResourceName: ImpactResourceName + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key + SharedScope: SharedScope + ImpactLevel: unknown + CreateTime: 2000-01-23T04:56:07.000+00:00 + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + ClusterUuid: ClusterUuid + Duration: Duration + Severity: unknown + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector Array: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - ObjectType: storage.NetAppClusterEvent - ClassId: storage.NetAppClusterEvent + Uuid: Uuid + NodeUuid: NodeUuid + Moid: Moid title: Storage:Net App Cluster Event x-allOf-name: storage.NetAppClusterEvent storage.NetAppClusterEvent.List: @@ -940221,14 +977066,80 @@ components: \ of the relationship and specifies the configuration attributes for that\ \ relationship." example: + Parent: null + CopyAllSourceSnapshots: true + TransferScheduleUuid: TransferScheduleUuid + ClassId: storage.NetAppClusterSnapMirrorPolicy + Owners: + - Owners + - Owners + Name: Name + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: storage.NetAppClusterSnapMirrorPolicy + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key + Comment: Comment + SharedScope: SharedScope + CreateTime: 2000-01-23T04:56:07.000+00:00 + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector Array: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - ObjectType: storage.NetAppClusterSnapMirrorPolicy - ClassId: storage.NetAppClusterSnapMirrorPolicy + Type: Type + Uuid: Uuid + Scope: Scope + TransferScheduleName: TransferScheduleName + SyncType: SyncType + Moid: Moid title: Storage:Net App Cluster Snap Mirror Policy x-allOf-name: storage.NetAppClusterSnapMirrorPolicy storage.NetAppClusterSnapMirrorPolicy.List: @@ -940305,6 +977216,55 @@ components: description: NetApp Snapshot policy that is scoped to a cluster. The policy controls the behavior and schedule of snapshots when applied to a volume. example: + SharedScope: SharedScope + Parent: null + CreateTime: 2000-01-23T04:56:07.000+00:00 + Enabled: Enabled + ClassId: storage.NetAppClusterSnapshotPolicy + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Owners: + - Owners + - Owners + Name: Name + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified Array: ObjectType: aaa.AuditRecord link: link @@ -940312,7 +977272,30 @@ components: ClassId: mo.MoRef Selector: Selector ObjectType: storage.NetAppClusterSnapshotPolicy - ClassId: storage.NetAppClusterSnapshotPolicy + Uuid: Uuid + Scope: Scope + Copies: + - ObjectType: storage.NetAppSnapshotPolicySchedule + Label: Label + ClassId: storage.NetAppSnapshotPolicySchedule + Count: 0 + ScheduleName: ScheduleName + - ObjectType: storage.NetAppSnapshotPolicySchedule + Label: Label + ClassId: storage.NetAppSnapshotPolicySchedule + Count: 0 + ScheduleName: ScheduleName + Moid: Moid + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key title: Storage:Net App Cluster Snapshot Policy x-allOf-name: storage.NetAppClusterSnapshotPolicy storage.NetAppClusterSnapshotPolicy.List: @@ -940412,31 +977395,110 @@ components: description: NetApp Data IP interface is a logical interface for data within the svm scope. example: + InterfaceState: Down + IsHome: true + CurrentPort: CurrentPort + Parent: null + CurrentNode: CurrentNode + ClassId: storage.NetAppDataIpInterface + ServicePolicyUuid: ServicePolicyUuid + Owners: + - Owners + - Owners + Name: Name + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + SvmName: SvmName ObjectType: storage.NetAppDataIpInterface - NetAppEthernetPort: + Ipspace: Ipspace + Tenant: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - Tenant: - ObjectType: aaa.AuditRecord + Events: + - ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - Events: - ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + ServicePolicyName: ServicePolicyName + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key + SharedScope: SharedScope + CreateTime: 2000-01-23T04:56:07.000+00:00 + IpFamily: IPv4 + Enabled: Enabled + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + InterfaceIsHome: InterfaceIsHome + AccountMoid: AccountMoid + Ancestors: - ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - ClassId: storage.NetAppDataIpInterface + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + LocationFailover: LocationFailover + Services: + - Services + - Services + NetAppEthernetPort: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Uuid: Uuid + State: down + Moid: Moid + IpAddress: IpAddress + Netmask: Netmask + HomeNode: HomeNode + HomePort: HomePort ArrayController: ObjectType: aaa.AuditRecord link: link @@ -940529,14 +977591,85 @@ components: type: object description: An event where the impacted resource type is an ip interface. example: + Parent: null + ImpactResourceUuid: ImpactResourceUuid + ImpactResourceType: unknown + ClassId: storage.NetAppDataIpInterfaceEvent + SvmUuid: SvmUuid + Owners: + - Owners + - Owners + Name: Name + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified ObjectType: storage.NetAppDataIpInterfaceEvent + ImpactArea: unknown + Cause: Cause + CurrentState: unknown + ImpactResourceName: ImpactResourceName + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key + SharedScope: SharedScope + ImpactLevel: unknown + CreateTime: 2000-01-23T04:56:07.000+00:00 + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + ClusterUuid: ClusterUuid + Duration: Duration + Severity: unknown + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector IpInterface: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - ClassId: storage.NetAppDataIpInterfaceEvent + Uuid: Uuid + NodeUuid: NodeUuid + Moid: Moid title: Storage:Net App Data Ip Interface Event x-allOf-name: storage.NetAppDataIpInterfaceEvent storage.NetAppDataIpInterfaceEvent.List: @@ -940622,14 +977755,85 @@ components: type: object description: An event where the impacted resource type is a disk. example: - ObjectType: storage.NetAppDiskEvent + Parent: null + ImpactResourceUuid: ImpactResourceUuid + ImpactResourceType: unknown ClassId: storage.NetAppDiskEvent + SvmUuid: SvmUuid + Owners: + - Owners + - Owners + Name: Name + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: storage.NetAppDiskEvent + ImpactArea: unknown + Cause: Cause + CurrentState: unknown + ImpactResourceName: ImpactResourceName + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 Disk: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key + SharedScope: SharedScope + ImpactLevel: unknown + CreateTime: 2000-01-23T04:56:07.000+00:00 + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + ClusterUuid: ClusterUuid + Duration: Duration + Severity: unknown + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Uuid: Uuid + NodeUuid: NodeUuid + Moid: Moid title: Storage:Net App Disk Event x-allOf-name: storage.NetAppDiskEvent storage.NetAppDiskEvent.List: @@ -941025,14 +978229,85 @@ components: type: object description: An event where the impacted resource type is an ethernet port. example: + Parent: null + ImpactResourceUuid: ImpactResourceUuid + ImpactResourceType: unknown + ClassId: storage.NetAppEthernetPortEvent + SvmUuid: SvmUuid + Owners: + - Owners + - Owners + Name: Name + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified ObjectType: storage.NetAppEthernetPortEvent + ImpactArea: unknown + Cause: Cause + CurrentState: unknown + ImpactResourceName: ImpactResourceName + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key + SharedScope: SharedScope + ImpactLevel: unknown + CreateTime: 2000-01-23T04:56:07.000+00:00 + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + ClusterUuid: ClusterUuid + Duration: Duration + Severity: unknown + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Uuid: Uuid EthernetPort: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - ClassId: storage.NetAppEthernetPortEvent + NodeUuid: NodeUuid + Moid: Moid title: Storage:Net App Ethernet Port Event x-allOf-name: storage.NetAppEthernetPortEvent storage.NetAppEthernetPortEvent.List: @@ -941290,6 +978565,55 @@ components: Clients that match specific IP addresses and/or specific authentication types are granted access. example: + SharedScope: SharedScope + Parent: null + CreateTime: 2000-01-23T04:56:07.000+00:00 + ClassId: storage.NetAppExportPolicy + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + ClusterUuid: ClusterUuid + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Owners: + - Owners + - Owners + Name: Name + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified SvmName: SvmName Array: ObjectType: aaa.AuditRecord @@ -941298,12 +978622,14 @@ components: ClassId: mo.MoRef Selector: Selector ObjectType: storage.NetAppExportPolicy + Uuid: Uuid Tenant: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + Moid: Moid NetAppExportPolicyRule: - RwRule: - RwRule @@ -941343,8 +978669,16 @@ components: SuperUser: - SuperUser - SuperUser - ClassId: storage.NetAppExportPolicy - ClusterUuid: ClusterUuid + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key PolicyId: 6 title: Storage:Net App Export Policy x-allOf-name: storage.NetAppExportPolicy @@ -941598,11 +978932,39 @@ components: type: object description: NetApp FC Interface is a logical interface. example: + InterfaceState: Down + Parent: null + ClassId: storage.NetAppFcInterface + Owners: + - Owners + - Owners + Name: Name + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified SvmName: SvmName ObjectType: storage.NetAppFcInterface - InterfaceState: Down - VolumeName: VolumeName - Uuid: Uuid Tenant: ObjectType: aaa.AuditRecord link: link @@ -941620,9 +978982,46 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector - State: down + Wwpn: Wwpn + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key + Status: Unknown + Speed: 0 + VolumeName: VolumeName + SharedScope: SharedScope + CreateTime: 2000-01-23T04:56:07.000+00:00 + Iqn: Iqn + Wwnn: Wwnn Enabled: Enabled - ClassId: storage.NetAppFcInterface + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Wwn: Wwn + Type: FC + Uuid: Uuid + State: down + Moid: Moid PhysicalPort: ObjectType: aaa.AuditRecord link: link @@ -941721,7 +979120,9 @@ components: type: object description: An event where the impacted resource type is a FC interface. example: - ObjectType: storage.NetAppFcInterfaceEvent + Parent: null + ImpactResourceUuid: ImpactResourceUuid + ImpactResourceType: unknown ClassId: storage.NetAppFcInterfaceEvent FcInterface: ObjectType: aaa.AuditRecord @@ -941729,6 +979130,75 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector + SvmUuid: SvmUuid + Owners: + - Owners + - Owners + Name: Name + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: storage.NetAppFcInterfaceEvent + ImpactArea: unknown + Cause: Cause + CurrentState: unknown + ImpactResourceName: ImpactResourceName + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key + SharedScope: SharedScope + ImpactLevel: unknown + CreateTime: 2000-01-23T04:56:07.000+00:00 + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + ClusterUuid: ClusterUuid + Duration: Duration + Severity: unknown + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Uuid: Uuid + NodeUuid: NodeUuid + Moid: Moid title: Storage:Net App Fc Interface Event x-allOf-name: storage.NetAppFcInterfaceEvent storage.NetAppFcInterfaceEvent.List: @@ -941872,10 +979342,39 @@ components: type: object description: Fibre Channel (FC) port is a port on a node in a storage array. example: + Parent: null + NodeName: NodeName + ClassId: storage.NetAppFcPort + Owners: + - Owners + - Owners + Name: Name + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified ObjectType: storage.NetAppFcPort SpeedMaximum: SpeedMaximum - Uuid: Uuid - NodeName: NodeName Events: - ObjectType: aaa.AuditRecord link: link @@ -941887,9 +979386,45 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector - State: Unknown + Wwpn: Wwpn PortStatus: PortStatus - ClassId: storage.NetAppFcPort + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key + Status: Unknown + Speed: 0 + SharedScope: SharedScope + CreateTime: 2000-01-23T04:56:07.000+00:00 + Iqn: Iqn + Wwnn: Wwnn + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Wwn: Wwn + Type: FC + Uuid: Uuid + State: Unknown + Moid: Moid ArrayController: ObjectType: aaa.AuditRecord link: link @@ -941982,14 +979517,85 @@ components: type: object description: An event where the impacted resource type is a FC port. example: + Parent: null + ImpactResourceUuid: ImpactResourceUuid + ImpactResourceType: unknown + ClassId: storage.NetAppFcPortEvent + SvmUuid: SvmUuid + Owners: + - Owners + - Owners + Name: Name + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified ObjectType: storage.NetAppFcPortEvent + ImpactArea: unknown + Cause: Cause + CurrentState: unknown + ImpactResourceName: ImpactResourceName + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key + SharedScope: SharedScope + ImpactLevel: unknown + CreateTime: 2000-01-23T04:56:07.000+00:00 + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + ClusterUuid: ClusterUuid + Duration: Duration + Severity: unknown + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector FcPort: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - ClassId: storage.NetAppFcPortEvent + Uuid: Uuid + NodeUuid: NodeUuid + Moid: Moid title: Storage:Net App Fc Port Event x-allOf-name: storage.NetAppFcPortEvent storage.NetAppFcPortEvent.List: @@ -942211,6 +979817,78 @@ components: description: NetApp Initiator Group specifies host access to LUNs on the storage system. example: + Description: Description + SharedScope: SharedScope + Parent: null + Initiators: + - ObjectType: storage.HitachiInitiator + Type: FC + Iqn: Iqn + ClassId: storage.HitachiInitiator + Nqn: Nqn + Name: Name + Wwn: Wwn + - ObjectType: storage.HitachiInitiator + Type: FC + Iqn: Iqn + ClassId: storage.HitachiInitiator + Nqn: Nqn + Name: Name + Wwn: Wwn + StorageUtilization: + ObjectType: storage.HitachiArrayUtilization + Used: 5 + CapacityUtilization: 6.0274563 + Total: 5 + ClassId: storage.HitachiArrayUtilization + Available: 0 + Free: 1 + CreateTime: 2000-01-23T04:56:07.000+00:00 + ClassId: storage.NetAppInitiatorGroup + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Owners: + - Owners + - Owners + Name: Name + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified SvmName: SvmName ObjectType: storage.NetAppInitiatorGroup Uuid: Uuid @@ -942220,8 +979898,19 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector - ClassId: storage.NetAppInitiatorGroup + OsType: OsType + Moid: Moid + DisplayNames: + key: + - DisplayNames + - DisplayNames Protocol: FCP + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key title: Storage:Net App Initiator Group x-allOf-name: storage.NetAppInitiatorGroup storage.NetAppInitiatorGroup.List: @@ -942589,14 +980278,85 @@ components: type: object description: An event where the impacted resource type is an ip interface. example: + Parent: null + ImpactResourceUuid: ImpactResourceUuid + ImpactResourceType: unknown + ClassId: storage.NetAppIpInterfaceEvent + SvmUuid: SvmUuid + Owners: + - Owners + - Owners + Name: Name + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified ObjectType: storage.NetAppIpInterfaceEvent + ImpactArea: unknown + Cause: Cause + CurrentState: unknown + ImpactResourceName: ImpactResourceName + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key + SharedScope: SharedScope + ImpactLevel: unknown + CreateTime: 2000-01-23T04:56:07.000+00:00 + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + ClusterUuid: ClusterUuid + Duration: Duration + Severity: unknown + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector IpInterface: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - ClassId: storage.NetAppIpInterfaceEvent + Uuid: Uuid + NodeUuid: NodeUuid + Moid: Moid title: Storage:Net App Ip Interface Event x-allOf-name: storage.NetAppIpInterfaceEvent storage.NetAppIpInterfaceEvent.List: @@ -943121,11 +980881,59 @@ components: description: NetApp LUN (logical unit number) is an identifier for a device called a logical unit addressed by a SAN protocol. example: - Path: Path - VolumeName: VolumeName - Mapped: true + Description: Description + Parent: null + StorageUtilization: + ObjectType: storage.HitachiArrayUtilization + Used: 5 + CapacityUtilization: 6.0274563 + Total: 5 + ClassId: storage.HitachiArrayUtilization + Available: 0 + Free: 1 + Size: 0 ClassId: storage.NetAppLun - Host: + IsMapped: IsMapped + Owners: + - Owners + - Owners + Name: Name + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + SvmName: SvmName + ObjectType: storage.NetAppLun + NaaId: NaaId + AvgPerformanceMetrics: + ObjectType: storage.NetAppPerformanceMetricsAverage + Period: 1 + Throughput: 5.962133916683182 + ClassId: storage.NetAppPerformanceMetricsAverage + Iops: 0.8008281904610115 + Latency: 6.027456183070403 + OsType: Linux + Events: - ObjectType: aaa.AuditRecord link: link Moid: Moid @@ -943136,21 +980944,32 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector - ContainerState: ContainerState - IsMapped: IsMapped - SvmName: SvmName - Array: + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + StorageContainer: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - ObjectType: storage.NetAppLun - AvgPerformanceMetrics: {} - Serial: Serial - Uuid: Uuid - OsType: Linux - Events: + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key + Path: Path + VolumeName: VolumeName + Mapped: true + SharedScope: SharedScope + CreateTime: 2000-01-23T04:56:07.000+00:00 + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + Host: - ObjectType: aaa.AuditRecord link: link Moid: Moid @@ -943161,13 +980980,29 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector - State: offline - StorageContainer: + AccountMoid: AccountMoid + ContainerState: ContainerState + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Array: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + Serial: Serial + Uuid: Uuid + State: offline + Moid: Moid Key: Key title: Storage:Net App Lun x-allOf-name: storage.NetAppLun @@ -943253,14 +981088,85 @@ components: type: object description: An event where the impacted resource type is a lun. example: + Parent: null + ImpactResourceUuid: ImpactResourceUuid + ImpactResourceType: unknown + ClassId: storage.NetAppLunEvent + SvmUuid: SvmUuid + Owners: + - Owners + - Owners + Name: Name + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified ObjectType: storage.NetAppLunEvent + ImpactArea: unknown + Cause: Cause + CurrentState: unknown + ImpactResourceName: ImpactResourceName + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key Lun: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - ClassId: storage.NetAppLunEvent + SharedScope: SharedScope + ImpactLevel: unknown + CreateTime: 2000-01-23T04:56:07.000+00:00 + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + ClusterUuid: ClusterUuid + Duration: Duration + Severity: unknown + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Uuid: Uuid + NodeUuid: NodeUuid + Moid: Moid title: Storage:Net App Lun Event x-allOf-name: storage.NetAppLunEvent storage.NetAppLunEvent.List: @@ -943360,22 +981266,28 @@ components: \ initiator group. When a LUN is mapped to an initiator group, initiators\ \ in the initiator group are granted access to the LUN." example: - ObjectType: storage.NetAppLunMap - Tenant: - ObjectType: aaa.AuditRecord + VolumeName: VolumeName + SharedScope: SharedScope + Parent: null + CreateTime: 2000-01-23T04:56:07.000+00:00 + ClassId: storage.NetAppLunMap + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + Host: + - ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - Volume: - ObjectType: aaa.AuditRecord + - ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - LunUuid: LunUuid - ClassId: storage.NetAppLunMap - Host: + AccountMoid: AccountMoid + Ancestors: - ObjectType: aaa.AuditRecord link: link Moid: Moid @@ -943386,7 +981298,61 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector + Owners: + - Owners + - Owners + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + Hlu: 0 + ObjectType: storage.NetAppLunMap + Tenant: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Volume: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + LunUuid: LunUuid + Moid: Moid + DisplayNames: + key: + - DisplayNames + - DisplayNames IgroupUuid: IgroupUuid + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key + HostName: HostName title: Storage:Net App Lun Map x-allOf-name: storage.NetAppLunMap storage.NetAppLunMap.List: @@ -944119,31 +982085,86 @@ components: description: NetApp node is a controller in a NetApp cluster. Services and components are controlled and managed by the NetApp node. example: - Array: - ObjectType: aaa.AuditRecord + Parent: null + Systemid: Systemid + ClassId: storage.NetAppNode + OperationalMode: Unknown + Owners: + - Owners + - Owners + Name: Name + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: storage.NetAppNode + AvgPerformanceMetrics: + ObjectType: storage.NetAppPerformanceMetricsAverage + Period: 1 + Throughput: 5.962133916683182 + ClassId: storage.NetAppPerformanceMetricsAverage + Iops: 0.8008281904610115 + Latency: 6.027456183070403 + Version: Version + Events: + - ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - ObjectType: storage.NetAppNode - AvgPerformanceMetrics: {} - Uuid: Uuid - CdpdEnabled: unknown - Health: true - Events: - ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - - ObjectType: aaa.AuditRecord + IsUpgraded: false + Presence: Presence + DisplayNames: + key: + - DisplayNames + - DisplayNames + Rn: Rn + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key + Status: Unknown + SharedScope: SharedScope + Health: true + CreateTime: 2000-01-23T04:56:07.000+00:00 + PreviousFru: + ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - State: State - Systemid: Systemid - ClassId: storage.NetAppNode + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + Dn: Dn HighAvailability: PartnerUuid: PartnerUuid ObjectType: storage.NetAppHighAvailability @@ -944154,6 +982175,33 @@ components: AutoGivebackEnabled: true PartnerName: PartnerName TakeoverState: unknown + Vendor: Vendor + AccountMoid: AccountMoid + DeviceMoId: DeviceMoId + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Array: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Serial: Serial + Uuid: Uuid + Revision: Revision + CdpdEnabled: unknown + State: State + Model: Model + Moid: Moid Key: Key title: Storage:Net App Node x-allOf-name: storage.NetAppNode @@ -944447,8 +982495,79 @@ components: type: object description: An event where the impacted resource type is a node. example: - ObjectType: storage.NetAppNodeEvent + Parent: null + ImpactResourceUuid: ImpactResourceUuid + ImpactResourceType: unknown ClassId: storage.NetAppNodeEvent + SvmUuid: SvmUuid + Owners: + - Owners + - Owners + Name: Name + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: storage.NetAppNodeEvent + ImpactArea: unknown + Cause: Cause + CurrentState: unknown + ImpactResourceName: ImpactResourceName + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key + SharedScope: SharedScope + ImpactLevel: unknown + CreateTime: 2000-01-23T04:56:07.000+00:00 + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + ClusterUuid: ClusterUuid + Duration: Duration + Severity: unknown + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Uuid: Uuid + NodeUuid: NodeUuid + Moid: Moid ArrayController: ObjectType: aaa.AuditRecord link: link @@ -944554,20 +982673,77 @@ components: description: NetApp Non-Data IP interface is a logical interface for management within the cluster scope. example: - Array: - ObjectType: aaa.AuditRecord + InterfaceState: Down + IsHome: true + CurrentPort: CurrentPort + Parent: null + CurrentNode: CurrentNode + ClassId: storage.NetAppNonDataIpInterface + ServicePolicyUuid: ServicePolicyUuid + Owners: + - Owners + - Owners + Name: Name + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + SvmName: SvmName + ObjectType: storage.NetAppNonDataIpInterface + Ipspace: Ipspace + Events: + - ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - ObjectType: storage.NetAppNonDataIpInterface - NetAppEthernetPort: - ObjectType: aaa.AuditRecord + - ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - Events: + ServicePolicyName: ServicePolicyName + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key + SharedScope: SharedScope + CreateTime: 2000-01-23T04:56:07.000+00:00 + IpFamily: IPv4 + Enabled: Enabled + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + InterfaceIsHome: InterfaceIsHome + AccountMoid: AccountMoid + Ancestors: - ObjectType: aaa.AuditRecord link: link Moid: Moid @@ -944578,7 +982754,29 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector - ClassId: storage.NetAppNonDataIpInterface + LocationFailover: LocationFailover + Array: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Services: + - Services + - Services + NetAppEthernetPort: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Uuid: Uuid + State: down + Moid: Moid + IpAddress: IpAddress + Netmask: Netmask + HomeNode: HomeNode + HomePort: HomePort ArrayController: ObjectType: aaa.AuditRecord link: link @@ -944671,14 +982869,85 @@ components: type: object description: An event where the impacted resource type is an ip interface. example: + Parent: null + ImpactResourceUuid: ImpactResourceUuid + ImpactResourceType: unknown + ClassId: storage.NetAppNonDataIpInterfaceEvent + SvmUuid: SvmUuid + Owners: + - Owners + - Owners + Name: Name + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified ObjectType: storage.NetAppNonDataIpInterfaceEvent + ImpactArea: unknown + Cause: Cause + CurrentState: unknown + ImpactResourceName: ImpactResourceName + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key + SharedScope: SharedScope + ImpactLevel: unknown + CreateTime: 2000-01-23T04:56:07.000+00:00 + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + ClusterUuid: ClusterUuid + Duration: Duration + Severity: unknown + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector IpInterface: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - ClassId: storage.NetAppNonDataIpInterfaceEvent + Uuid: Uuid + NodeUuid: NodeUuid + Moid: Moid title: Storage:Net App Non Data Ip Interface Event x-allOf-name: storage.NetAppNonDataIpInterfaceEvent storage.NetAppNonDataIpInterfaceEvent.List: @@ -944899,7 +983168,13 @@ components: - $ref: '#/components/schemas/storage.BasePerformanceMetricsAverage' description: Average performance metrics data for a NetApp storage resource over a given period of time. - example: {} + example: + ObjectType: storage.NetAppPerformanceMetricsAverage + Period: 1 + Throughput: 5.962133916683182 + ClassId: storage.NetAppPerformanceMetricsAverage + Iops: 0.8008281904610115 + Latency: 6.027456183070403 title: Storage:Net App Performance Metrics Average x-allOf-name: storage.NetAppPerformanceMetricsAverage storage.NetAppPort: @@ -945382,8 +983657,71 @@ components: type: object description: Information for a particular sensor on a NetApp storage array controller. example: - ObjectType: storage.NetAppSensor + SharedScope: SharedScope + Parent: null + CreateTime: 2000-01-23T04:56:07.000+00:00 ClassId: storage.NetAppSensor + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Units: Units + Owners: + - Owners + - Owners + Name: Name + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: storage.NetAppSensor + ControllerName: ControllerName + Type: Type + State: State + Value: Value + Moid: Moid + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key ArrayController: ObjectType: aaa.AuditRecord link: link @@ -945675,6 +984013,12 @@ components: - ObjectType type: object description: NetApp Snapshot policy schedule information. + example: + ObjectType: storage.NetAppSnapshotPolicySchedule + Label: Label + ClassId: storage.NetAppSnapshotPolicySchedule + Count: 0 + ScheduleName: ScheduleName nullable: true title: Storage:Net App Snapshot Policy Schedule x-allOf-name: storage.NetAppSnapshotPolicySchedule @@ -945943,23 +984287,80 @@ components: example: NativeFpolicyCount: 0 CifsEnabled: true - IsProtected: IsProtected + Parent: null ClassId: storage.NetAppStorageVm - NvmeEnabled: true - Array: - ObjectType: aaa.AuditRecord + Owners: + - Owners + - Owners + Name: Name + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: storage.NetAppStorageVm + AvgPerformanceMetrics: + ObjectType: storage.NetAppPerformanceMetricsAverage + Period: 1 + Throughput: 5.962133916683182 + ClassId: storage.NetAppPerformanceMetricsAverage + Iops: 0.8008281904610115 + Latency: 6.027456183070403 + Ipspace: Ipspace + Events: + - ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - ObjectType: storage.NetAppStorageVm - AvgPerformanceMetrics: {} - Ipspace: Ipspace - Aggregates: - - Aggregates - - Aggregates - NfsEnabled: true - Events: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + FcpEnabled: true + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + NameServers: + - NameServers + - NameServers + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key + SharedScope: SharedScope + IsProtected: IsProtected + CreateTime: 2000-01-23T04:56:07.000+00:00 + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + NvmeEnabled: true + AccountMoid: AccountMoid + Ancestors: - ObjectType: aaa.AuditRecord link: link Moid: Moid @@ -945970,10 +984371,22 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector + Array: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Uuid: Uuid + Aggregates: + - Aggregates + - Aggregates + NfsEnabled: true + State: Unknown DnsDomains: - DnsDomains - DnsDomains - FcpEnabled: true + Moid: Moid DiskPool: - ObjectType: aaa.AuditRecord link: link @@ -945985,9 +984398,6 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector - NameServers: - - NameServers - - NameServers Subtype: Subtype IscsiEnabled: true Key: Key @@ -946076,6 +984486,39 @@ components: type: object description: An event where the impacted resource type is a storage vm. example: + Parent: null + ImpactResourceUuid: ImpactResourceUuid + ImpactResourceType: unknown + ClassId: storage.NetAppSvmEvent + SvmUuid: SvmUuid + Owners: + - Owners + - Owners + Name: Name + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified ObjectType: storage.NetAppSvmEvent Tenant: ObjectType: aaa.AuditRecord @@ -946083,7 +984526,45 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector - ClassId: storage.NetAppSvmEvent + ImpactArea: unknown + Cause: Cause + CurrentState: unknown + ImpactResourceName: ImpactResourceName + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key + SharedScope: SharedScope + ImpactLevel: unknown + CreateTime: 2000-01-23T04:56:07.000+00:00 + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + ClusterUuid: ClusterUuid + Duration: Duration + Severity: unknown + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Uuid: Uuid + NodeUuid: NodeUuid + Moid: Moid title: Storage:Net App Svm Event x-allOf-name: storage.NetAppSvmEvent storage.NetAppSvmEvent.List: @@ -946167,6 +984648,38 @@ components: \ behavior of the relationship and specifies the configuration attributes\ \ for that relationship." example: + Parent: null + CopyAllSourceSnapshots: true + TransferScheduleUuid: TransferScheduleUuid + ClassId: storage.NetAppSvmSnapMirrorPolicy + Owners: + - Owners + - Owners + Name: Name + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified SvmName: SvmName ObjectType: storage.NetAppSvmSnapMirrorPolicy Tenant: @@ -946175,7 +984688,41 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector - ClassId: storage.NetAppSvmSnapMirrorPolicy + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key + Comment: Comment + SharedScope: SharedScope + CreateTime: 2000-01-23T04:56:07.000+00:00 + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Type: Type + Uuid: Uuid + Scope: Scope + TransferScheduleName: TransferScheduleName + SyncType: SyncType + Moid: Moid title: Storage:Net App Svm Snap Mirror Policy x-allOf-name: storage.NetAppSvmSnapMirrorPolicy storage.NetAppSvmSnapMirrorPolicy.List: @@ -946258,15 +984805,87 @@ components: The policy controls the behavior and schedule of snapshots when applied to a volume. example: + SharedScope: SharedScope + Parent: null + CreateTime: 2000-01-23T04:56:07.000+00:00 + Enabled: Enabled + ClassId: storage.NetAppSvmSnapshotPolicy + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Owners: + - Owners + - Owners + Name: Name + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified SvmName: SvmName ObjectType: storage.NetAppSvmSnapshotPolicy + Uuid: Uuid Tenant: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - ClassId: storage.NetAppSvmSnapshotPolicy + Scope: Scope + Copies: + - ObjectType: storage.NetAppSnapshotPolicySchedule + Label: Label + ClassId: storage.NetAppSnapshotPolicySchedule + Count: 0 + ScheduleName: ScheduleName + - ObjectType: storage.NetAppSnapshotPolicySchedule + Label: Label + ClassId: storage.NetAppSnapshotPolicySchedule + Count: 0 + ScheduleName: ScheduleName + Moid: Moid + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key title: Storage:Net App Svm Snapshot Policy x-allOf-name: storage.NetAppSvmSnapshotPolicy storage.NetAppSvmSnapshotPolicy.List: @@ -946484,24 +985103,58 @@ components: description: NetApp volume are data containers that enable you to partition and manage your data. example: + CreatedTime: 2000-01-23T04:56:07.000+00:00 + Parent: null + StorageUtilization: + ObjectType: storage.HitachiArrayUtilization + Used: 5 + CapacityUtilization: 6.0274563 + Total: 5 + ClassId: storage.HitachiArrayUtilization + Available: 0 + Free: 1 SnapshotUsed: 6.027456183070403 ClassId: storage.NetAppVolume SnapshotAutodeleteEnabled: true SnapshotPolicyUuid: SnapshotPolicyUuid - SnapshotReservePercent: 0 + Owners: + - Owners + - Owners + Name: Name + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified SvmName: SvmName - Array: - ObjectType: aaa.AuditRecord - link: link - Moid: Moid - ClassId: mo.MoRef - Selector: Selector ObjectType: storage.NetAppVolume - AvgPerformanceMetrics: {} - IsObjectStore: true - Type: data-protection + AvgPerformanceMetrics: + ObjectType: storage.NetAppPerformanceMetricsAverage + Period: 1 + Throughput: 5.962133916683182 + ClassId: storage.NetAppPerformanceMetricsAverage + Iops: 0.8008281904610115 + Latency: 6.027456183070403 FlexCacheEndpointType: FlexCacheEndpointType - Uuid: Uuid Tenant: ObjectType: aaa.AuditRecord link: link @@ -946519,9 +985172,49 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector - State: offline ExportPolicyName: ExportPolicyName Style: Style + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key + AutosizeMode: "off" + SharedScope: SharedScope + CreateTime: 2000-01-23T04:56:07.000+00:00 + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + SnapshotReservePercent: 0 + Array: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + IsObjectStore: true + Type: data-protection + Uuid: Uuid + State: offline + Moid: Moid SnapshotPolicyName: SnapshotPolicyName DiskPool: - ObjectType: aaa.AuditRecord @@ -946535,7 +985228,6 @@ components: ClassId: mo.MoRef Selector: Selector Key: Key - AutosizeMode: "off" title: Storage:Net App Volume x-allOf-name: storage.NetAppVolume storage.NetAppVolume.List: @@ -946621,14 +985313,85 @@ components: type: object description: An event where the impacted resource type is a volume. example: + Parent: null + ImpactResourceUuid: ImpactResourceUuid + ImpactResourceType: unknown + ClassId: storage.NetAppVolumeEvent + SvmUuid: SvmUuid + Owners: + - Owners + - Owners + Name: Name + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified ObjectType: storage.NetAppVolumeEvent + ImpactArea: unknown + Cause: Cause + CurrentState: unknown + ImpactResourceName: ImpactResourceName + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key + SharedScope: SharedScope + ImpactLevel: unknown + CreateTime: 2000-01-23T04:56:07.000+00:00 + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + ClusterUuid: ClusterUuid + Duration: Duration + Severity: unknown + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Uuid: Uuid Volume: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - ClassId: storage.NetAppVolumeEvent + NodeUuid: NodeUuid + Moid: Moid title: Storage:Net App Volume Event x-allOf-name: storage.NetAppVolumeEvent storage.NetAppVolumeEvent.List: @@ -946714,6 +985477,57 @@ components: \ FlexVol volume, or an aggregate, that captures the state of the file system\ \ at a point in time." example: + CreatedTime: 2000-01-23T04:56:07.000+00:00 + SharedScope: SharedScope + Parent: null + Size: 0 + CreateTime: 2000-01-23T04:56:07.000+00:00 + ClassId: storage.NetAppVolumeSnapshot + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Source: Source + Owners: + - Owners + - Owners + Name: Name + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified Array: ObjectType: aaa.AuditRecord link: link @@ -946722,13 +985536,24 @@ components: Selector: Selector ObjectType: storage.NetAppVolumeSnapshot Uuid: Uuid - ClassId: storage.NetAppVolumeSnapshot + ProtectionGroupName: ProtectionGroupName + Moid: Moid + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 StorageContainer: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key title: Storage:Net App Volume Snapshot x-allOf-name: storage.NetAppVolumeSnapshot storage.NetAppVolumeSnapshot.List: @@ -947770,6 +986595,12 @@ components: DisabledForRemoval: true NumBlocks: NumBlocks ReadIoErrorCount: 1 + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key EncryptionStatus: EncryptionStatus ConfigurationCheckpoint: ConfigurationCheckpoint FdeCapable: FdeCapable @@ -947779,11 +986610,19 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector + SharedScope: SharedScope OperatingTemperature: 5 + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + Dn: Dn OperQualifierReason: OperQualifierReason + DeviceMoId: DeviceMoId IsPlatformSupported: true PredictedMediaLifeLeftPercent: 4 FailurePredicted: true + Revision: Revision MediaErrorCount: 6 StorageEnclosure: ObjectType: aaa.AuditRecord @@ -947816,6 +986655,7 @@ components: Thermal: Thermal Description: Description PhysicalBlockSize: PhysicalBlockSize + Parent: null InventoryDeviceInfo: ObjectType: aaa.AuditRecord link: link @@ -947826,9 +986666,38 @@ components: VariantType: VariantType NonCoercedSizeBytes: 1 PowerOnHours: 3 + Owners: + - Owners + - Owners + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified DriveState: DriveState RawSize: RawSize ObjectType: storage.PhysicalDisk + IsUpgraded: false + Presence: Presence SasPorts: - ObjectType: aaa.AuditRecord link: link @@ -947840,22 +986709,50 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector + DisplayNames: + key: + - DisplayNames + - DisplayNames + Rn: Rn PowerOnHoursPercentage: 2 Protocol: Protocol IndicatorLed: IndicatorLed PercentReservedCapacityConsumed: 2 + CreateTime: 2000-01-23T04:56:07.000+00:00 + PreviousFru: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector Pid: Pid + Vendor: Vendor StorageController: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector LinkState: LinkState ThresholdOperatingTemperature: 1 + Serial: Serial Type: Type ConfigurationState: ConfigurationState WriteIoErrorCount: 1 + Model: Model + Moid: Moid BlockSize: BlockSize PerformancePercent: 7 title: Storage:Physical Disk @@ -947978,36 +986875,108 @@ components: \ like S-series servers, disk information will be reported by controller separately\ \ and this represents such information." example: - DiskDn: DiskDn + Parent: null + InventoryDeviceInfo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + DiskState: DiskState + ClassId: storage.PhysicalDiskExtension + Owners: + - Owners + - Owners + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified ObjectType: storage.PhysicalDiskExtension + IsUpgraded: false + Presence: Presence + DisplayNames: + key: + - DisplayNames + - DisplayNames + Rn: Rn + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key + DiskDn: DiskDn RegisteredDevice: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + SharedScope: SharedScope Health: Health - InventoryDeviceInfo: + CreateTime: 2000-01-23T04:56:07.000+00:00 + PreviousFru: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - Bootable: Bootable - DiskState: DiskState PhysicalDisk: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - ClassId: storage.PhysicalDiskExtension + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + Dn: Dn + Vendor: Vendor StorageController: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + AccountMoid: AccountMoid + DeviceMoId: DeviceMoId + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Serial: Serial + Revision: Revision + Bootable: Bootable + Model: Model + Moid: Moid DiskId: 0 title: Storage:Physical Disk Extension x-allOf-name: storage.PhysicalDiskExtension @@ -948129,8 +987098,57 @@ components: type: object description: Has usage map between physical disks and virtual drives. example: + Parent: null + InventoryDeviceInfo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + PhysicalDrive: PhysicalDrive + VirtualDrive: VirtualDrive + ClassId: storage.PhysicalDiskUsage + Span: Span + Owners: + - Owners + - Owners + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified NumberOfBlocks: NumberOfBlocks ObjectType: storage.PhysicalDiskUsage + DisplayNames: + key: + - DisplayNames + - DisplayNames + Rn: Rn + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key StorageVirtualDrive: ObjectType: aaa.AuditRecord link: link @@ -948143,18 +987161,29 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector - StartingBlock: StartingBlock - InventoryDeviceInfo: - ObjectType: aaa.AuditRecord + SharedScope: SharedScope + CreateTime: 2000-01-23T04:56:07.000+00:00 + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + Dn: Dn + AccountMoid: AccountMoid + DeviceMoId: DeviceMoId + Ancestors: + - ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + StartingBlock: StartingBlock State: State - PhysicalDrive: PhysicalDrive - VirtualDrive: VirtualDrive - ClassId: storage.PhysicalDiskUsage - Span: Span + Moid: Moid title: Storage:Physical Disk Usage x-allOf-name: storage.PhysicalDiskUsage storage.PhysicalDiskUsage.List: @@ -948248,7 +987277,65 @@ components: type: object description: The details of the Pure storage array. example: + Parent: null + StorageUtilization: + ObjectType: storage.HitachiArrayUtilization + Used: 5 + CapacityUtilization: 6.0274563 + Total: 5 + ClassId: storage.HitachiArrayUtilization + Available: 0 + Free: 1 + ClassId: storage.PureArray + Owners: + - Owners + - Owners + Name: Name + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + DeviceLocation: + ObjectType: equipment.DeviceLocation + Address: Address + ClassId: equipment.DeviceLocation + Latitude: 0.8008282 + Longitude: 6.0274563 ObjectType: storage.PureArray + Version: Version + IsUpgraded: false + Presence: Presence + DisplayNames: + key: + - DisplayNames + - DisplayNames + Rn: Rn + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key ApiVersion: ApiVersion RegisteredDevice: ObjectType: aaa.AuditRecord @@ -948256,7 +987343,40 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector - ClassId: storage.PureArray + SharedScope: SharedScope + CreateTime: 2000-01-23T04:56:07.000+00:00 + PreviousFru: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + Dn: Dn + Vendor: Vendor + AccountMoid: AccountMoid + DeviceMoId: DeviceMoId + HardwareVersion: HardwareVersion + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + DeviceType: DeviceType + Serial: Serial + Uuid: Uuid + Revision: Revision + Model: Model + Moid: Moid title: Storage:Pure Array x-allOf-name: storage.PureArray storage.PureArray.List: @@ -948620,20 +987740,96 @@ components: type: object description: A storage controller entity in Pure FlashArray. example: - Array: + Parent: null + ClassId: storage.PureController + OperationalMode: Unknown + Owners: + - Owners + - Owners + Name: Name + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: storage.PureController + Version: Version + IsUpgraded: false + Presence: Presence + DisplayNames: + key: + - DisplayNames + - DisplayNames + Rn: Rn + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key + Status: Unknown + RegisteredDevice: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - ObjectType: storage.PureController - RegisteredDevice: + SharedScope: SharedScope + CreateTime: 2000-01-23T04:56:07.000+00:00 + PreviousFru: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - ClassId: storage.PureController + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + Dn: Dn + Vendor: Vendor + AccountMoid: AccountMoid + DeviceMoId: DeviceMoId + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Array: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Serial: Serial + Revision: Revision + Model: Model + Moid: Moid title: Storage:Pure Controller x-allOf-name: storage.PureController storage.PureController.List: @@ -948711,20 +987907,107 @@ components: type: object description: Disk entity associated with Pure FlashArray. example: - Array: + PartNumber: PartNumber + Parent: null + StorageUtilization: + ObjectType: storage.HitachiArrayUtilization + Used: 5 + CapacityUtilization: 6.0274563 + Total: 5 + ClassId: storage.HitachiArrayUtilization + Available: 0 + Free: 1 + ClassId: storage.PureDisk + Owners: + - Owners + - Owners + Name: Name + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: storage.PureDisk + Version: Version + IsUpgraded: false + Presence: Presence + DisplayNames: + key: + - DisplayNames + - DisplayNames + Rn: Rn + Protocol: Unknown + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key + Status: Unknown + Speed: 0 + RegisteredDevice: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - ObjectType: storage.PureDisk - RegisteredDevice: + SharedScope: SharedScope + CreateTime: 2000-01-23T04:56:07.000+00:00 + PreviousFru: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - ClassId: storage.PureDisk + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + Dn: Dn + Vendor: Vendor + AccountMoid: AccountMoid + DeviceMoId: DeviceMoId + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Array: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Serial: Serial + Type: Unknown + Revision: Revision + Model: Model + Moid: Moid title: Storage:Pure Disk x-allOf-name: storage.PureDisk storage.PureDisk.List: @@ -948830,33 +988113,116 @@ components: names or iSCSI qualified names) of client computers and to control communications between clients and volumes. example: - Array: + Description: Description + Parent: null + Initiators: + - ObjectType: storage.HitachiInitiator + Type: FC + Iqn: Iqn + ClassId: storage.HitachiInitiator + Nqn: Nqn + Name: Name + Wwn: Wwn + - ObjectType: storage.HitachiInitiator + Type: FC + Iqn: Iqn + ClassId: storage.HitachiInitiator + Nqn: Nqn + Name: Name + Wwn: Wwn + StorageUtilization: + ObjectType: storage.HitachiArrayUtilization + Used: 5 + CapacityUtilization: 6.0274563 + Total: 5 + ClassId: storage.HitachiArrayUtilization + Available: 0 + Free: 1 + HostGroup: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - ObjectType: storage.PureHost - RegisteredDevice: + ClassId: storage.PureHost + Owners: + - Owners + - Owners + Name: Name + ProtectionGroup: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - HostGroup: + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: storage.PureHost + OsType: OsType + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key + RegisteredDevice: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - ClassId: storage.PureHost + SharedScope: SharedScope + CreateTime: 2000-01-23T04:56:07.000+00:00 + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null HostGroupName: HostGroupName - ProtectionGroup: + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Array: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + Moid: Moid title: Storage:Pure Host x-allOf-name: storage.PureHost storage.PureHost.List: @@ -948965,14 +988331,42 @@ components: \ because the connection is shared between all of the hosts within the host\ \ group." example: - Array: + Hosts: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Description: Description + RegisteredDevice: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - ObjectType: storage.PureHostGroup - Hosts: + SharedScope: SharedScope + Parent: null + StorageUtilization: + ObjectType: storage.HitachiArrayUtilization + Used: 5 + CapacityUtilization: 6.0274563 + Total: 5 + ClassId: storage.HitachiArrayUtilization + Available: 0 + Free: 1 + CreateTime: 2000-01-23T04:56:07.000+00:00 + ClassId: storage.PureHostGroup + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + AccountMoid: AccountMoid + Ancestors: - ObjectType: aaa.AuditRecord link: link Moid: Moid @@ -948983,22 +988377,61 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector - RegisteredDevice: + Owners: + - Owners + - Owners + Name: Name + ProtectionGroup: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - HostNames: - - HostNames - - HostNames - ClassId: storage.PureHostGroup - ProtectionGroup: + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + Array: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + ObjectType: storage.PureHostGroup + Moid: Moid + HostNames: + - HostNames + - HostNames + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key title: Storage:Pure Host Group x-allOf-name: storage.PureHostGroup storage.PureHostGroup.List: @@ -949098,40 +988531,100 @@ components: \ and private connection. Pure assign same HLU for all the host in case if\ \ it is connected through host group." example: - Array: + Parent: null + HostGroup: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + ClassId: storage.PureHostLun + Shared: true + Owners: + - Owners + - Owners + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + Hlu: 0 ObjectType: storage.PureHostLun + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key + HostName: HostName + VolumeName: VolumeName RegisteredDevice: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - Volume: + SharedScope: SharedScope + CreateTime: 2000-01-23T04:56:07.000+00:00 + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + Host: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - HostGroup: + HostGroupName: HostGroupName + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Array: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - ClassId: storage.PureHostLun - Host: + Volume: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - HostGroupName: HostGroupName - Shared: true + Moid: Moid title: Storage:Pure Host Lun x-allOf-name: storage.PureHostLun storage.PureHostLun.List: @@ -949233,29 +988726,94 @@ components: type: object description: Port entity in Pure FlashArray. example: - Array: + Parent: null + ClassId: storage.PurePort + Owners: + - Owners + - Owners + Name: Name + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: storage.PurePort + Wwpn: Wwpn + Portal: Portal + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key + Status: Unknown + Speed: 0 + RegisteredDevice: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - ObjectType: storage.PurePort - Failover: Failover - RegisteredDevice: + SharedScope: SharedScope + CreateTime: 2000-01-23T04:56:07.000+00:00 + Iqn: Iqn + Wwnn: Wwnn + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + Nqn: Nqn + Controller: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - Portal: Portal - ClassId: storage.PurePort - Nqn: Nqn - Controller: + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Wwn: Wwn + Array: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + Type: FC + Failover: Failover + Moid: Moid title: Storage:Pure Port x-allOf-name: storage.PurePort storage.PurePort.List: @@ -949388,30 +988946,62 @@ components: (either host or host group). Snapshots are created on protected volume in local array or target array or both as per scheduler configuration. example: - Array: - ObjectType: aaa.AuditRecord + Hosts: + - ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - ObjectType: storage.PureProtectionGroup - Hosts: - ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + Parent: null + Size: 0 + ClassId: storage.PureProtectionGroup + Prefix: Prefix + HostGroups: - ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - RegisteredDevice: - ObjectType: aaa.AuditRecord + - ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + Source: Source + Owners: + - Owners + - Owners + Name: Name + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: storage.PureProtectionGroup Volumes: - ObjectType: aaa.AuditRecord link: link @@ -949423,12 +989013,34 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector - Size: 0 - ClassId: storage.PureProtectionGroup + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key + SnapshotEnabled: true + RegisteredDevice: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + SharedScope: SharedScope + CreateTime: 2000-01-23T04:56:07.000+00:00 + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null Targets: - Targets - Targets - HostGroups: + AccountMoid: AccountMoid + Ancestors: - ObjectType: aaa.AuditRecord link: link Moid: Moid @@ -949439,7 +989051,14 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector - Source: Source + Array: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Moid: Moid + ReplicationEnabled: true title: Storage:Pure Protection Group x-allOf-name: storage.PureProtectionGroup storage.PureProtectionGroup.List: @@ -949530,26 +989149,87 @@ components: type: object description: Protection group snapshot entity in Pure protection group. example: - Array: + CreatedTime: 2000-01-23T04:56:07.000+00:00 + RegisteredDevice: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - ObjectType: storage.PureProtectionGroupSnapshot - RegisteredDevice: - ObjectType: aaa.AuditRecord + SharedScope: SharedScope + Parent: null + Size: 0 + CreateTime: 2000-01-23T04:56:07.000+00:00 + ClassId: storage.PureProtectionGroupSnapshot + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - ClassId: storage.PureProtectionGroupSnapshot + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Source: Source + Owners: + - Owners + - Owners + Name: Name ProtectionGroup: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + Array: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ObjectType: storage.PureProtectionGroupSnapshot + Moid: Moid + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key title: Storage:Pure Protection Group Snapshot x-allOf-name: storage.PureProtectionGroupSnapshot storage.PureProtectionGroupSnapshot.List: @@ -949578,7 +989258,11 @@ components: - $ref: '#/components/schemas/storage.BaseReplicationBlackout' description: Range of time at which to suspend replication. System disables replication during this interval. - example: {} + example: + ObjectType: storage.PureReplicationBlackout + Start: Start + ClassId: storage.PureReplicationBlackout + End: End title: Storage:Pure Replication Blackout x-allOf-name: storage.PureReplicationBlackout storage.PureReplicationSchedule.Response: @@ -949658,31 +989342,98 @@ components: type: object description: Pure snapshot replication schedule entity. example: - Array: + Parent: null + DailyLimit: 0 + ClassId: storage.PureReplicationSchedule + RetentionTime: RetentionTime + Owners: + - Owners + - Owners + Name: Name + ProtectionGroup: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified ObjectType: storage.PureReplicationSchedule + DisplayNames: + key: + - DisplayNames + - DisplayNames + ReplicationTime: ReplicationTime + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key + SnapshotExpiryTime: SnapshotExpiryTime RegisteredDevice: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - DailyLimit: 0 - ReplicationBlackoutIntervals: - - {} - - {} - ClassId: storage.PureReplicationSchedule - SnapshotExpiryTime: SnapshotExpiryTime - ProtectionGroup: + SharedScope: SharedScope + CreateTime: 2000-01-23T04:56:07.000+00:00 + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Array: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + ReplicationBlackoutIntervals: + - ObjectType: storage.PureReplicationBlackout + Start: Start + ClassId: storage.PureReplicationBlackout + End: End + - ObjectType: storage.PureReplicationBlackout + Start: Start + ClassId: storage.PureReplicationBlackout + End: End + Moid: Moid + Frequency: Frequency title: Storage:Pure Replication Schedule x-allOf-name: storage.PureReplicationSchedule storage.PureReplicationSchedule.List: @@ -949781,28 +989532,89 @@ components: type: object description: PureStorage FlashArray snapshot schedule configuration entity. example: - Array: + RegisteredDevice: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - ObjectType: storage.PureSnapshotSchedule - RegisteredDevice: - ObjectType: aaa.AuditRecord + SharedScope: SharedScope + Parent: null + DailyLimit: 0 + CreateTime: 2000-01-23T04:56:07.000+00:00 + ClassId: storage.PureSnapshotSchedule + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + RetentionTime: RetentionTime + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - DailyLimit: 0 - ClassId: storage.PureSnapshotSchedule - SnapshotExpiryTime: SnapshotExpiryTime + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Owners: + - Owners + - Owners + Name: Name ProtectionGroup: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + Array: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ObjectType: storage.PureSnapshotSchedule + SnapshotTime: SnapshotTime + Moid: Moid + Frequency: Frequency + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key + SnapshotExpiryTime: SnapshotExpiryTime title: Storage:Pure Snapshot Schedule x-allOf-name: storage.PureSnapshotSchedule storage.PureSnapshotSchedule.List: @@ -950064,29 +989876,98 @@ components: type: object description: A volume entity in PureStorage FlashArray. example: - Array: + Description: Description + Parent: null + StorageUtilization: + ObjectType: storage.HitachiArrayUtilization + Used: 5 + CapacityUtilization: 6.0274563 + Total: 5 + ClassId: storage.HitachiArrayUtilization + Available: 0 + Free: 1 + Size: 0 + ClassId: storage.PureVolume + Source: Source + Owners: + - Owners + - Owners + Name: Name + Created: 2000-01-23T04:56:07.000+00:00 + ProtectionGroup: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified ObjectType: storage.PureVolume - Serial: Serial + NaaId: NaaId + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key RegisteredDevice: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - ClassId: storage.PureVolume - Source: Source - Created: 2000-01-23T04:56:07.000+00:00 - ProtectionGroup: + SharedScope: SharedScope + CreateTime: 2000-01-23T04:56:07.000+00:00 + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Array: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + Serial: Serial + Moid: Moid title: Storage:Pure Volume x-allOf-name: storage.PureVolume storage.PureVolume.List: @@ -950177,33 +990058,95 @@ components: \ and it cannot be connected to hosts or host groups, and therefore the data\ \ it contains cannot be read or written." example: - Array: + CreatedTime: 2000-01-23T04:56:07.000+00:00 + Parent: null + Size: 0 + ClassId: storage.PureVolumeSnapshot + Source: Source + Owners: + - Owners + - Owners + Name: Name + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: storage.PureVolumeSnapshot + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key + RegisteredDevice: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - ObjectType: storage.PureVolumeSnapshot - Serial: Serial - RegisteredDevice: + SharedScope: SharedScope + CreateTime: 2000-01-23T04:56:07.000+00:00 + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + ProtectionGroupSnapshot: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - Volume: + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Array: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - ClassId: storage.PureVolumeSnapshot - ProtectionGroupSnapshot: + Serial: Serial + Volume: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + ProtectionGroupName: ProtectionGroupName + Moid: Moid title: Storage:Pure Volume Snapshot x-allOf-name: storage.PureVolumeSnapshot storage.PureVolumeSnapshot.List: @@ -950484,43 +990427,115 @@ components: type: object description: SAS Expander present in a server. example: - Operability: Operability - ObjectType: storage.SasExpander - RegisteredDevice: + OperState: OperState + Parent: null + InventoryDeviceInfo: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - OperState: OperState - InventoryDeviceInfo: + ClassId: storage.SasExpander + ComputeRackUnit: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + Owners: + - Owners + - Owners + Name: Name + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + Operability: Operability + ObjectType: storage.SasExpander + IsUpgraded: false EquipmentChassis: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - ExpanderId: 0 - ClassId: storage.SasExpander + Presence: Presence SasAddress: SasAddress - ComputeRackUnit: + DisplayNames: + key: + - DisplayNames + - DisplayNames + Rn: Rn + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key + RegisteredDevice: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + SharedScope: SharedScope + CreateTime: 2000-01-23T04:56:07.000+00:00 + PreviousFru: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ExpanderId: 0 + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + Dn: Dn + Vendor: Vendor Controller: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - Name: Name + AccountMoid: AccountMoid + DeviceMoId: DeviceMoId + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Serial: Serial + Revision: Revision + Model: Model + Moid: Moid title: Storage:Sas Expander x-allOf-name: storage.SasExpander storage.SasExpander.List: @@ -950637,30 +990652,90 @@ components: type: object description: Sas Port details of the SAS endpoint. example: + Address: Address + Parent: null + LinkDescription: LinkDescription + InventoryDeviceInfo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: storage.SasPort + Owners: + - Owners + - Owners + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified EndPointId: 6 ObjectType: storage.SasPort + DisplayNames: + key: + - DisplayNames + - DisplayNames + Rn: Rn + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key RegisteredDevice: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - Address: Address - LinkDescription: LinkDescription - InventoryDeviceInfo: + SharedScope: SharedScope + CreateTime: 2000-01-23T04:56:07.000+00:00 + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + Dn: Dn + AccountMoid: AccountMoid + DeviceMoId: DeviceMoId + StoragePhysicalDisk: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - ClassId: storage.SasPort - LinkSpeed: LinkSpeed - StoragePhysicalDisk: - ObjectType: aaa.AuditRecord + Ancestors: + - ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Moid: Moid + LinkSpeed: LinkSpeed DiskId: 0 title: Storage:Sas Port x-allOf-name: storage.SasPort @@ -950838,16 +990913,15 @@ components: type: object description: Group of disks to configure virtual drive. example: - ObjectType: storage.Span - Slots: - - 0 - - 0 RegisteredDevice: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + SharedScope: SharedScope + Parent: null + CreateTime: 2000-01-23T04:56:07.000+00:00 DiskGroup: ObjectType: aaa.AuditRecord link: link @@ -950855,7 +990929,27 @@ components: ClassId: mo.MoRef Selector: Selector ClassId: storage.Span - SpanId: 6 + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + Dn: Dn + AccountMoid: AccountMoid + DeviceMoId: DeviceMoId + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Owners: + - Owners + - Owners PhysicalDisks: - ObjectType: aaa.AuditRecord link: link @@ -950867,6 +990961,47 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: storage.Span + Slots: + - 0 + - 0 + Moid: Moid + DisplayNames: + key: + - DisplayNames + - DisplayNames + Rn: Rn + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key + SpanId: 6 title: Storage:Span x-allOf-name: storage.Span storage.Span.List: @@ -951166,13 +991301,14 @@ components: state. The encryption of drives can be enabled through this policy using remote keys from a KMIP server. example: - UseJbodForVdCreation: true + Description: Description Organization: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + Parent: null M2VirtualDrive: ObjectType: storage.M2VirtualDriveConfig ControllerSlot: MSTOR-RAID-1 @@ -951180,10 +991316,37 @@ components: ClassId: storage.M2VirtualDriveConfig Name: MStorBootVd UnusedDisksState: NoChange - GlobalHotSpares: GlobalHotSpares ClassId: storage.StoragePolicy RaidAttachedNvmeSlots: RaidAttachedNvmeSlots + Owners: + - Owners + - Owners + Name: Name SecureJbods: SecureJbods + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified ObjectType: storage.StoragePolicy DefaultDriveMode: UnconfiguredGood Profiles: @@ -951208,7 +991371,38 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 DirectAttachedNvmeSlots: DirectAttachedNvmeSlots + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key + UseJbodForVdCreation: true + SharedScope: SharedScope + CreateTime: 2000-01-23T04:56:07.000+00:00 + GlobalHotSpares: GlobalHotSpares + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Moid: Moid Raid0Drive: ObjectType: storage.R0Drive DriveSlotsList: DriveSlotsList @@ -951417,31 +991611,91 @@ components: type: object description: Reference to LocalDisk to build up a VirtualDrive. example: - Role: Role - ObjectType: storage.VdMemberEp - StorageVirtualDrive: + Parent: null + InventoryDeviceInfo: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + ClassId: storage.VdMemberEp + Owners: + - Owners + - Owners + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: storage.VdMemberEp VdMemberEpId: 0 - RegisteredDevice: + Presence: Presence + DisplayNames: + key: + - DisplayNames + - DisplayNames + Rn: Rn + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key + SpanId: SpanId + StorageVirtualDrive: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - InventoryDeviceInfo: + RegisteredDevice: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - Presence: Presence - ClassId: storage.VdMemberEp + SharedScope: SharedScope + CreateTime: 2000-01-23T04:56:07.000+00:00 + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + Dn: Dn OperQualifierReason: OperQualifierReason - SpanId: SpanId + AccountMoid: AccountMoid + DeviceMoId: DeviceMoId + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Role: Role + Moid: Moid title: Storage:Vd Member Ep x-allOf-name: storage.VdMemberEp storage.VdMemberEp.List: @@ -951676,26 +991930,57 @@ components: type: object description: A Virtual Disk Drive or Logical Unit Number. example: - PhysicalBlockSize: PhysicalBlockSize ConfigState: ConfigState - IoPolicy: IoPolicy OperState: OperState - SecurityFlags: SecurityFlags - InventoryDeviceInfo: + Size: Size + VirtualDriveExtension: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - Size: Size - VirtualDriveExtension: + AvailableSize: AvailableSize + ClassId: storage.VirtualDrive + AccessPolicy: AccessPolicy + Name: Name + Operability: Operability + ReadPolicy: ReadPolicy + ConfiguredWriteCachePolicy: ConfiguredWriteCachePolicy + DriveCache: DriveCache + NumBlocks: NumBlocks + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key + RegisteredDevice: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + StripSize: StripSize + SharedScope: SharedScope + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + Dn: Dn + DeviceMoId: DeviceMoId + Revision: Revision + Bootable: Bootable + DriveSecurity: DriveSecurity + PhysicalBlockSize: PhysicalBlockSize + IoPolicy: IoPolicy + Parent: null + SecurityFlags: SecurityFlags + InventoryDeviceInfo: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - AvailableSize: AvailableSize - ClassId: storage.VirtualDrive PhysicalDiskUsages: - ObjectType: aaa.AuditRecord link: link @@ -951707,41 +991992,82 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector - AccessPolicy: AccessPolicy - Name: Name + Owners: + - Owners + - Owners + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified DriveState: DriveState - Operability: Operability ObjectType: storage.VirtualDrive ConnectionProtocol: ConnectionProtocol - ReadPolicy: ReadPolicy - ConfiguredWriteCachePolicy: ConfiguredWriteCachePolicy - DriveCache: DriveCache - NumBlocks: NumBlocks + IsUpgraded: false + Presence: Presence + DisplayNames: + key: + - DisplayNames + - DisplayNames + Rn: Rn StorageVirtualDriveContainer: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - RegisteredDevice: + CreateTime: 2000-01-23T04:56:07.000+00:00 + PreviousFru: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - StripSize: StripSize DiskGroup: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + Vendor: Vendor StorageController: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Serial: Serial Type: Type VirtualDriveId: VirtualDriveId Uuid: Uuid @@ -951757,9 +992083,9 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector - Bootable: Bootable - DriveSecurity: DriveSecurity + Model: Model ActualWriteCachePolicy: ActualWriteCachePolicy + Moid: Moid BlockSize: BlockSize title: Storage:Virtual Drive x-allOf-name: storage.VirtualDrive @@ -951941,27 +992267,96 @@ components: type: object description: A Virtual Disk Drive Container. example: - ObjectType: storage.VirtualDriveContainer - RegisteredDevice: + Parent: null + InventoryDeviceInfo: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + VirtualDrive: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: storage.VirtualDriveContainer + Owners: + - Owners + - Owners + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: storage.VirtualDriveContainer ContainerId: 0 - InventoryDeviceInfo: + IsUpgraded: false + EquipmentChassis: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - EquipmentChassis: + Presence: Presence + DisplayNames: + key: + - DisplayNames + - DisplayNames + Rn: Rn + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key + RegisteredDevice: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - VirtualDrive: + SharedScope: SharedScope + CreateTime: 2000-01-23T04:56:07.000+00:00 + PreviousFru: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + Dn: Dn + Vendor: Vendor + AccountMoid: AccountMoid + DeviceMoId: DeviceMoId + Ancestors: - ObjectType: aaa.AuditRecord link: link Moid: Moid @@ -951972,7 +992367,10 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector - ClassId: storage.VirtualDriveContainer + Serial: Serial + Revision: Revision + Model: Model + Moid: Moid title: Storage:Virtual Drive Container x-allOf-name: storage.VirtualDriveContainer storage.VirtualDriveContainer.List: @@ -952114,41 +992512,101 @@ components: \ In certain cases like S-series servers, virtual drive information will be\ \ reported by the controller separately and this represents such information." example: - VirtualDriveDn: VirtualDriveDn - RegisteredDevice: + Parent: null + InventoryDeviceInfo: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - InventoryDeviceInfo: + VirtualDrive: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - VirtualDrive: + ClassId: storage.VirtualDriveExtension + Owners: + - Owners + - Owners + Name: Name + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + DriveState: DriveState + ObjectType: storage.VirtualDriveExtension + ContainerId: 0 + OperDeviceId: OperDeviceId + DisplayNames: + key: + - DisplayNames + - DisplayNames + Rn: Rn + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key + VirtualDriveDn: VirtualDriveDn + RegisteredDevice: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - ClassId: storage.VirtualDriveExtension + SharedScope: SharedScope + CreateTime: 2000-01-23T04:56:07.000+00:00 + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + Dn: Dn StorageController: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - Name: Name - DriveState: DriveState - ObjectType: storage.VirtualDriveExtension + AccountMoid: AccountMoid + DeviceMoId: DeviceMoId + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector VirtualDriveId: VirtualDriveId Uuid: Uuid - ContainerId: 0 - OperDeviceId: OperDeviceId VendorUuid: VendorUuid Bootable: Bootable + Moid: Moid title: Storage:Virtual Drive Extension x-allOf-name: storage.VirtualDriveExtension storage.VirtualDriveExtension.List: @@ -952646,7 +993104,6 @@ components: description: The syslog policy configure the syslog server to receive CIMC log entries. example: - ObjectType: syslog.Policy RemoteClients: - ObjectType: syslog.RemoteLoggingClient MinSeverity: warning @@ -952666,6 +993123,7 @@ components: ClassId: syslog.RemoteLoggingClient Facility: Facility Protocol: udp + Description: Description LocalClients: - ObjectType: syslog.LocalFileLoggingClient MinSeverity: warning @@ -952679,6 +993137,55 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector + SharedScope: SharedScope + Parent: null + CreateTime: 2000-01-23T04:56:07.000+00:00 + ClassId: syslog.Policy + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Owners: + - Owners + - Owners + Name: Name + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: syslog.Policy Profiles: - ObjectType: aaa.AuditRecord link: link @@ -952690,7 +993197,17 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector - ClassId: syslog.Policy + Moid: Moid + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key title: Syslog x-allOf-name: syslog.Policy syslog.Policy.List: @@ -952777,7 +993294,6 @@ components: description: The syslog policy configure the syslog server to receive CIMC log entries. example: - ObjectType: syslog.PolicyInventory RemoteClients: - ObjectType: syslog.RemoteLoggingClient MinSeverity: warning @@ -952797,12 +993313,7 @@ components: ClassId: syslog.RemoteLoggingClient Facility: Facility Protocol: udp - TargetMo: - ObjectType: aaa.AuditRecord - link: link - Moid: Moid - ClassId: mo.MoRef - Selector: Selector + Description: Description LocalClients: - ObjectType: syslog.LocalFileLoggingClient MinSeverity: warning @@ -952810,7 +993321,68 @@ components: - ObjectType: syslog.LocalFileLoggingClient MinSeverity: warning ClassId: syslog.LocalFileLoggingClient + SharedScope: SharedScope + Parent: null + CreateTime: 2000-01-23T04:56:07.000+00:00 ClassId: syslog.PolicyInventory + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + AccountMoid: AccountMoid + DeviceMoId: DeviceMoId + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Owners: + - Owners + - Owners + Name: Name + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: syslog.PolicyInventory + TargetMo: null + Moid: Moid + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key title: Syslog x-allOf-name: syslog.PolicyInventory syslog.PolicyInventory.List: @@ -953362,12 +993934,90 @@ components: ObjectType: tam.EolAdvisoryDetails Description: Description ClassId: tam.EolAdvisoryDetails + Description: Description Organization: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + Parent: null + ApiDataSources: + - ObjectType: tam.ApiDataSource + Type: intersightApi + Queries: + - ObjectType: tam.QueryEntry + Query: Query + Priority: 0 + ClassId: tam.QueryEntry + Name: Name + - ObjectType: tam.QueryEntry + Query: Query + Priority: 0 + ClassId: tam.QueryEntry + Name: Name + MoType: MoType + ClassId: tam.ApiDataSource + Name: Name + - ObjectType: tam.ApiDataSource + Type: intersightApi + Queries: + - ObjectType: tam.QueryEntry + Query: Query + Priority: 0 + ClassId: tam.QueryEntry + Name: Name + - ObjectType: tam.QueryEntry + Query: Query + Priority: 0 + ClassId: tam.QueryEntry + Name: Name + MoType: MoType + ClassId: tam.ApiDataSource + Name: Name + ClassId: tam.AdvisoryDefinition + Owners: + - Owners + - Owners + Name: Name + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: tam.AdvisoryDefinition + Version: Version + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Workaround: Workaround + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key + SharedScope: SharedScope Actions: - ObjectType: tam.Action AlertType: psirt @@ -953424,46 +994074,36 @@ components: AffectedObjectType: AffectedObjectType Name: Name DateUpdated: 2000-01-23T04:56:07.000+00:00 - ApiDataSources: - - ObjectType: tam.ApiDataSource - Queries: - - ObjectType: tam.QueryEntry - Query: Query - Priority: 0 - ClassId: tam.QueryEntry - Name: Name - - ObjectType: tam.QueryEntry - Query: Query - Priority: 0 - ClassId: tam.QueryEntry - Name: Name - MoType: MoType - ClassId: tam.ApiDataSource - - ObjectType: tam.ApiDataSource - Queries: - - ObjectType: tam.QueryEntry - Query: Query - Priority: 0 - ClassId: tam.QueryEntry - Name: Name - - ObjectType: tam.QueryEntry - Query: Query - Priority: 0 - ClassId: tam.QueryEntry - Name: Name - MoType: MoType - ClassId: tam.ApiDataSource - ClassId: tam.AdvisoryDefinition + CreateTime: 2000-01-23T04:56:07.000+00:00 + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + Severity: + ObjectType: aaa.UserAgent + ClassId: aaa.UserAgent ExternalUrl: ExternalUrl OtherRefUrls: - OtherRefUrls - OtherRefUrls + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector Recommendation: Recommendation DatePublished: 2000-01-23T04:56:07.000+00:00 - ObjectType: tam.AdvisoryDefinition Type: securityAdvisory S3DataSources: - ObjectType: tam.S3DataSource + Type: intersightApi Queries: - ObjectType: tam.QueryEntry Query: Query @@ -953477,7 +994117,9 @@ components: Name: Name S3Path: S3Path ClassId: tam.S3DataSource + Name: Name - ObjectType: tam.S3DataSource + Type: intersightApi Queries: - ObjectType: tam.QueryEntry Query: Query @@ -953491,10 +994133,11 @@ components: Name: Name S3Path: S3Path ClassId: tam.S3DataSource - Version: Version + Name: Name + State: ready + Moid: Moid ExecuteOnPod: tier1 AdvisoryId: AdvisoryId - Workaround: Workaround title: Tam:Advisory Definition x-allOf-name: tam.AdvisoryDefinition tam.AdvisoryDefinition.List: @@ -953916,6 +994559,7 @@ components: devices. example: ObjectType: tam.ApiDataSource + Type: intersightApi Queries: - ObjectType: tam.QueryEntry Query: Query @@ -953929,6 +994573,7 @@ components: Name: Name MoType: MoType ClassId: tam.ApiDataSource + Name: Name title: Tam:Api Data Source x-allOf-name: tam.ApiDataSource tam.BaseAdvisory.Relationship: @@ -954499,6 +995144,7 @@ components: description: S3 based data source used for storing data regarding managed devices. example: ObjectType: tam.S3DataSource + Type: intersightApi Queries: - ObjectType: tam.QueryEntry Query: Query @@ -954512,6 +995158,7 @@ components: Name: Name S3Path: S3Path ClassId: tam.S3DataSource + Name: Name title: Tam:S3 Data Source x-allOf-name: tam.S3DataSource tam.SecurityAdvisory.Response: @@ -954677,17 +995324,97 @@ components: TAC and Intersight devops engineers have the ability to create PSIRT definitions in Intersight. example: - Status: interim - TemporalScore: 1.4658129 + Description: Description Organization: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + Parent: null + ApiDataSources: + - ObjectType: tam.ApiDataSource + Type: intersightApi + Queries: + - ObjectType: tam.QueryEntry + Query: Query + Priority: 0 + ClassId: tam.QueryEntry + Name: Name + - ObjectType: tam.QueryEntry + Query: Query + Priority: 0 + ClassId: tam.QueryEntry + Name: Name + MoType: MoType + ClassId: tam.ApiDataSource + Name: Name + - ObjectType: tam.ApiDataSource + Type: intersightApi + Queries: + - ObjectType: tam.QueryEntry + Query: Query + Priority: 0 + ClassId: tam.QueryEntry + Name: Name + - ObjectType: tam.QueryEntry + Query: Query + Priority: 0 + ClassId: tam.QueryEntry + Name: Name + MoType: MoType + ClassId: tam.ApiDataSource + Name: Name + ClassId: tam.SecurityAdvisory + Owners: + - Owners + - Owners + Name: Name + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + EnvironmentalScore: 6.0274563 + ObjectType: tam.SecurityAdvisory + Version: Version + DisplayNames: + key: + - DisplayNames + - DisplayNames + BaseScore: 0.8008282 + ModTime: 2000-01-23T04:56:07.000+00:00 + Workaround: Workaround + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key + Status: interim + TemporalScore: 1.4658129 CveIds: - CveIds - CveIds + SharedScope: SharedScope Actions: - ObjectType: tam.Action AlertType: psirt @@ -954744,49 +995471,36 @@ components: AffectedObjectType: AffectedObjectType Name: Name DateUpdated: 2000-01-23T04:56:07.000+00:00 - ApiDataSources: - - ObjectType: tam.ApiDataSource - Queries: - - ObjectType: tam.QueryEntry - Query: Query - Priority: 0 - ClassId: tam.QueryEntry - Name: Name - - ObjectType: tam.QueryEntry - Query: Query - Priority: 0 - ClassId: tam.QueryEntry - Name: Name - MoType: MoType - ClassId: tam.ApiDataSource - - ObjectType: tam.ApiDataSource - Queries: - - ObjectType: tam.QueryEntry - Query: Query - Priority: 0 - ClassId: tam.QueryEntry - Name: Name - - ObjectType: tam.QueryEntry - Query: Query - Priority: 0 - ClassId: tam.QueryEntry - Name: Name - MoType: MoType - ClassId: tam.ApiDataSource - ClassId: tam.SecurityAdvisory + CreateTime: 2000-01-23T04:56:07.000+00:00 + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + Severity: + ObjectType: aaa.UserAgent + ClassId: aaa.UserAgent ExternalUrl: ExternalUrl OtherRefUrls: - OtherRefUrls - OtherRefUrls + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector Recommendation: Recommendation DatePublished: 2000-01-23T04:56:07.000+00:00 - EnvironmentalScore: 6.0274563 - ObjectType: tam.SecurityAdvisory - Version: Version + State: ready + Moid: Moid ExecuteOnPod: tier1 - BaseScore: 0.8008282 AdvisoryId: AdvisoryId - Workaround: Workaround title: Tam:Security Advisory x-allOf-name: tam.SecurityAdvisory tam.SecurityAdvisory.List: @@ -954890,6 +995604,9 @@ components: interpretation is specific to each type of advisory. Each advisory type (SecurityAdvisory etc.) is supposed to extend and implement Severity type based on the advisory type requirements. + example: + ObjectType: aaa.UserAgent + ClassId: aaa.UserAgent nullable: true title: Tam:Severity x-allOf-name: tam.Severity @@ -954964,14 +995681,77 @@ components: type: object description: API to trigger on-demand inventory to update MDS objects in Intersight. example: - ObjectType: task.FabricMosScopedInventory + Queries: "" RegisteredDevice: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + SharedScope: SharedScope + Parent: null + CreateTime: 2000-01-23T04:56:07.000+00:00 + Values: + - Values + - Values ClassId: task.FabricMosScopedInventory + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Owners: + - Owners + - Owners + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: task.FabricMosScopedInventory + Type: Type + NamingProperty: NamingProperty + Moid: Moid + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key title: Task:Fabric Mos Scoped Inventory x-allOf-name: task.FabricMosScopedInventory task.HitachiScopedInventory: @@ -955008,14 +995788,77 @@ components: description: API to trigger on-demand HitachiStorage FlashArray inventory to update modified objects in Intersight report. example: - ObjectType: task.HitachiScopedInventory + Queries: "" RegisteredDevice: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + SharedScope: SharedScope + Parent: null + CreateTime: 2000-01-23T04:56:07.000+00:00 + Values: + - Values + - Values ClassId: task.HitachiScopedInventory + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Owners: + - Owners + - Owners + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: task.HitachiScopedInventory + Type: Type + NamingProperty: NamingProperty + Moid: Moid + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key title: Task:Hitachi Scoped Inventory x-allOf-name: task.HitachiScopedInventory task.HyperFlexManagementScopedInventory: @@ -955052,14 +995895,77 @@ components: description: API to trigger on-demand HyperFlex inventory to update modified objects in Intersight report. example: - ObjectType: task.HyperFlexManagementScopedInventory + Queries: "" RegisteredDevice: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + SharedScope: SharedScope + Parent: null + CreateTime: 2000-01-23T04:56:07.000+00:00 + Values: + - Values + - Values ClassId: task.HyperFlexManagementScopedInventory + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Owners: + - Owners + - Owners + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: task.HyperFlexManagementScopedInventory + Type: Type + NamingProperty: NamingProperty + Moid: Moid + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key title: Task:Hyper Flex Management Scoped Inventory x-allOf-name: task.HyperFlexManagementScopedInventory task.HyperflexScopedInventory: @@ -955096,14 +996002,77 @@ components: description: API to trigger on-demand Hyperflex Cluster inventory to update modified objects in Intersight report. example: - ObjectType: task.HyperflexScopedInventory + Queries: "" RegisteredDevice: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + SharedScope: SharedScope + Parent: null + CreateTime: 2000-01-23T04:56:07.000+00:00 + Values: + - Values + - Values ClassId: task.HyperflexScopedInventory + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Owners: + - Owners + - Owners + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: task.HyperflexScopedInventory + Type: Type + NamingProperty: NamingProperty + Moid: Moid + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key title: Task:Hyperflex Scoped Inventory x-allOf-name: task.HyperflexScopedInventory task.MdsScopedInventory: @@ -955140,14 +996109,77 @@ components: description: API to trigger on-demand MDS inventory to update modified objects in Intersight report. example: - ObjectType: task.MdsScopedInventory + Queries: "" RegisteredDevice: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + SharedScope: SharedScope + Parent: null + CreateTime: 2000-01-23T04:56:07.000+00:00 + Values: + - Values + - Values ClassId: task.MdsScopedInventory + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Owners: + - Owners + - Owners + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: task.MdsScopedInventory + Type: Type + NamingProperty: NamingProperty + Moid: Moid + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key title: Task:Mds Scoped Inventory x-allOf-name: task.MdsScopedInventory task.MdsSystemScopedInventory: @@ -955184,14 +996216,77 @@ components: description: API to trigger on-demand MDS System inventory after the workflow execution. example: - ObjectType: task.MdsSystemScopedInventory + Queries: "" RegisteredDevice: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + SharedScope: SharedScope + Parent: null + CreateTime: 2000-01-23T04:56:07.000+00:00 + Values: + - Values + - Values ClassId: task.MdsSystemScopedInventory + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Owners: + - Owners + - Owners + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: task.MdsSystemScopedInventory + Type: Type + NamingProperty: NamingProperty + Moid: Moid + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key title: Task:Mds System Scoped Inventory x-allOf-name: task.MdsSystemScopedInventory task.MerakiScopedInventory: @@ -955227,14 +996322,77 @@ components: type: object description: API to trigger on-demand inventory to update modified objects. example: - ObjectType: task.MerakiScopedInventory + Queries: "" RegisteredDevice: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + SharedScope: SharedScope + Parent: null + CreateTime: 2000-01-23T04:56:07.000+00:00 + Values: + - Values + - Values ClassId: task.MerakiScopedInventory + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Owners: + - Owners + - Owners + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: task.MerakiScopedInventory + Type: Type + NamingProperty: NamingProperty + Moid: Moid + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key title: Task:Meraki Scoped Inventory x-allOf-name: task.MerakiScopedInventory task.NetAppScopedInventory: @@ -955271,14 +996429,77 @@ components: description: API to trigger on-demand NetAppStorage inventory to update modified objects in Intersight report. example: - ObjectType: task.NetAppScopedInventory + Queries: "" RegisteredDevice: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + SharedScope: SharedScope + Parent: null + CreateTime: 2000-01-23T04:56:07.000+00:00 + Values: + - Values + - Values ClassId: task.NetAppScopedInventory + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Owners: + - Owners + - Owners + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: task.NetAppScopedInventory + Type: Type + NamingProperty: NamingProperty + Moid: Moid + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key title: Task:Net App Scoped Inventory x-allOf-name: task.NetAppScopedInventory task.NexusScopedInventory: @@ -955315,14 +996536,77 @@ components: description: API to trigger on-demand Nexus inventory to update modified objects in Intersight report. example: - ObjectType: task.NexusScopedInventory + Queries: "" RegisteredDevice: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + SharedScope: SharedScope + Parent: null + CreateTime: 2000-01-23T04:56:07.000+00:00 + Values: + - Values + - Values ClassId: task.NexusScopedInventory + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Owners: + - Owners + - Owners + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: task.NexusScopedInventory + Type: Type + NamingProperty: NamingProperty + Moid: Moid + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key title: Task:Nexus Scoped Inventory x-allOf-name: task.NexusScopedInventory task.NexusSystemScopedInventory: @@ -955359,14 +996643,77 @@ components: description: API to trigger on-demand Nexus SNMP inventory to update modified objects in Intersight report. example: - ObjectType: task.NexusSystemScopedInventory + Queries: "" RegisteredDevice: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + SharedScope: SharedScope + Parent: null + CreateTime: 2000-01-23T04:56:07.000+00:00 + Values: + - Values + - Values ClassId: task.NexusSystemScopedInventory + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Owners: + - Owners + - Owners + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: task.NexusSystemScopedInventory + Type: Type + NamingProperty: NamingProperty + Moid: Moid + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key title: Task:Nexus System Scoped Inventory x-allOf-name: task.NexusSystemScopedInventory task.NexusVlanScopedInventory: @@ -955403,14 +996750,77 @@ components: description: API to trigger on-demand Nexus VLAN inventory to update modified objects in Intersight report. example: - ObjectType: task.NexusVlanScopedInventory + Queries: "" RegisteredDevice: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + SharedScope: SharedScope + Parent: null + CreateTime: 2000-01-23T04:56:07.000+00:00 + Values: + - Values + - Values ClassId: task.NexusVlanScopedInventory + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Owners: + - Owners + - Owners + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: task.NexusVlanScopedInventory + Type: Type + NamingProperty: NamingProperty + Moid: Moid + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key title: Task:Nexus Vlan Scoped Inventory x-allOf-name: task.NexusVlanScopedInventory task.PublicCloudScopedInventory: @@ -955447,14 +996857,77 @@ components: description: API to trigger on-demand scoped inventory collection for in public clouds. example: - ObjectType: task.PublicCloudScopedInventory + Queries: "" RegisteredDevice: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + SharedScope: SharedScope + Parent: null + CreateTime: 2000-01-23T04:56:07.000+00:00 + Values: + - Values + - Values ClassId: task.PublicCloudScopedInventory + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Owners: + - Owners + - Owners + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: task.PublicCloudScopedInventory + Type: Type + NamingProperty: NamingProperty + Moid: Moid + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key title: Task:Public Cloud Scoped Inventory x-allOf-name: task.PublicCloudScopedInventory task.PureScopedInventory: @@ -955491,14 +996964,77 @@ components: description: API to trigger on-demand PureStorage FlashArray inventory to update modified objects in Intersight report. example: - ObjectType: task.PureScopedInventory + Queries: "" RegisteredDevice: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + SharedScope: SharedScope + Parent: null + CreateTime: 2000-01-23T04:56:07.000+00:00 + Values: + - Values + - Values ClassId: task.PureScopedInventory + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Owners: + - Owners + - Owners + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: task.PureScopedInventory + Type: Type + NamingProperty: NamingProperty + Moid: Moid + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key title: Task:Pure Scoped Inventory x-allOf-name: task.PureScopedInventory task.ServerScopedInventory: @@ -955535,14 +997071,77 @@ components: description: API to trigger on-demand Server inventory to update modified objects in Intersight report. example: - ObjectType: task.ServerScopedInventory + Queries: "" RegisteredDevice: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + SharedScope: SharedScope + Parent: null + CreateTime: 2000-01-23T04:56:07.000+00:00 + Values: + - Values + - Values ClassId: task.ServerScopedInventory + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Owners: + - Owners + - Owners + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: task.ServerScopedInventory + Type: Type + NamingProperty: NamingProperty + Moid: Moid + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key title: Task:Server Scoped Inventory x-allOf-name: task.ServerScopedInventory techsupportmanagement.ApplianceParam: @@ -957727,7 +999326,7 @@ components: description: Thermal Management policy models a configuration that can be applied to Chassis or Server to manage Thermal Features. example: - ObjectType: thermal.Policy + Description: Description Organization: ObjectType: aaa.AuditRecord link: link @@ -957735,6 +999334,55 @@ components: ClassId: mo.MoRef Selector: Selector FanControlMode: Balanced + SharedScope: SharedScope + Parent: null + CreateTime: 2000-01-23T04:56:07.000+00:00 + ClassId: thermal.Policy + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Owners: + - Owners + - Owners + Name: Name + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: thermal.Policy Profiles: - ObjectType: aaa.AuditRecord link: link @@ -957746,7 +999394,17 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector - ClassId: thermal.Policy + Moid: Moid + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key title: Thermal x-allOf-name: thermal.Policy thermal.Policy.List: @@ -957852,16 +999510,71 @@ components: description: Thermal Management policy models a configuration that can be applied to Chassis or Server to manage Thermal Features. example: - ObjectType: thermal.PolicyInventory - TargetMo: - ObjectType: aaa.AuditRecord + Description: Description + FanControlMode: Balanced + SharedScope: SharedScope + Parent: null + AggressiveCooling: Disabled + CreateTime: 2000-01-23T04:56:07.000+00:00 + ClassId: thermal.PolicyInventory + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + AccountMoid: AccountMoid + DeviceMoId: DeviceMoId + Ancestors: + - ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - FanControlMode: Balanced - AggressiveCooling: Disabled - ClassId: thermal.PolicyInventory + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Owners: + - Owners + - Owners + Name: Name + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: thermal.PolicyInventory + TargetMo: null + Moid: Moid + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key title: Thermal x-allOf-name: thermal.PolicyInventory thermal.PolicyInventory.List: @@ -957995,24 +999708,55 @@ components: type: object description: Root container for all UCSM / CIMC MOs. example: - RegisteredDevice: - ObjectType: aaa.AuditRecord + NetworkElements: + - ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - ComputeBlades: - ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - - ObjectType: aaa.AuditRecord + Parent: null + InventoryDeviceInfo: + ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - NetworkElements: + ClassId: top.System + Owners: + - Owners + - Owners + Name: Name + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: top.System + ComputeRackUnits: - ObjectType: aaa.AuditRecord link: link Moid: Moid @@ -958023,36 +999767,65 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector - InventoryDeviceInfo: + DisplayNames: + key: + - DisplayNames + - DisplayNames + Rn: Rn + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key + Ipv6Address: Ipv6Address + Ipv4Address: Ipv4Address + RegisteredDevice: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - Mode: Mode - ClassId: top.System - Name: Name - ManagementController: - ObjectType: aaa.AuditRecord + ComputeBlades: + - ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - ObjectType: top.System - TimeZone: TimeZone - ComputeRackUnits: - ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + SharedScope: SharedScope + CreateTime: 2000-01-23T04:56:07.000+00:00 + Mode: Mode + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + Dn: Dn + AccountMoid: AccountMoid + DeviceMoId: DeviceMoId + Ancestors: - ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - Ipv6Address: Ipv6Address - Ipv4Address: Ipv4Address + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ManagementController: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + TimeZone: TimeZone + Moid: Moid title: Top:System x-allOf-name: top.System top.System.List: @@ -958254,15 +1000027,82 @@ components: description: List of backup images available for target end device for restore operation. example: + Parent: null + ClassId: ucsd.BackupInfo + EncryptionKey: EncryptionKey + ProductVersion: ProductVersion + Owners: + - Owners + - Owners + IsPurged: true + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + LastModified: 2000-01-23T04:56:07.000+00:00 + ObjectType: ucsd.BackupInfo + StageCompletion: StageCompletion + PercentageCompletion: 1 + DisplayNames: + key: + - DisplayNames + - DisplayNames + Protocol: Protocol + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key BackupServerIp: BackupServerIp Status: Status + RegisteredDevice: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + SharedScope: SharedScope + CreateTime: 2000-01-23T04:56:07.000+00:00 BackupSize: 0 StartTime: 2000-01-23T04:56:07.000+00:00 - ClassId: ucsd.BackupInfo + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null Duration: 6 - EncryptionKey: EncryptionKey - ProductVersion: ProductVersion - IsPurged: true + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector Connectors: - DownloadedVersion: DownloadedVersion ObjectType: ucsd.ConnectorPack @@ -958290,13 +1000130,9 @@ components: ClassId: ucsd.ConnectorPack ConnectorFeature: ConnectorFeature Name: Name - LastModified: 2000-01-23T04:56:07.000+00:00 - ObjectType: ucsd.BackupInfo - StageCompletion: StageCompletion BackupFileName: BackupFileName FailureReason: FailureReason - PercentageCompletion: 1 - Protocol: Protocol + Moid: Moid BackupLocation: BackupLocation title: Ucsd:Backup Info x-allOf-name: ucsd.BackupInfo @@ -958605,12 +1000441,64 @@ components: type: object description: A block of contiguous UUID addresses that are part of a pool. example: + SharedScope: SharedScope + Parent: null + CreateTime: 2000-01-23T04:56:07.000+00:00 + ClassId: uuidpool.Block + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + NextIdAllocator: 6 + Prefix: Prefix + AccountMoid: AccountMoid + FreeBlockCount: 0 + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Owners: + - Owners + - Owners + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified ObjectType: uuidpool.Block UuidSuffixBlock: ObjectType: uuidpool.UuidBlock + Size: 150 ClassId: uuidpool.UuidBlock From: From To: To + Moid: Moid Reservations: - ObjectType: aaa.AuditRecord link: link @@ -958622,14 +1000510,22 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector - ClassId: uuidpool.Block Pool: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - Prefix: Prefix + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key title: Uuidpool:Block x-allOf-name: uuidpool.Block uuidpool.Block.List: @@ -958738,6 +1000634,45 @@ components: description: Pool represents a collection of UUID items that can be allocated to server profiles. example: + Description: Description + Organization: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Parent: null + Size: 1 + ClassId: uuidpool.Pool + Prefix: Prefix + Owners: + - Owners + - Owners + Name: Name + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified ObjectType: uuidpool.Pool BlockHeads: - ObjectType: aaa.AuditRecord @@ -958750,34 +1000685,60 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector - Organization: - ObjectType: aaa.AuditRecord + Reservations: + - ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - Reservations: - ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key + Assigned: 0 + SharedScope: SharedScope + CreateTime: 2000-01-23T04:56:07.000+00:00 + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + AssignmentOrder: sequential + AccountMoid: AccountMoid + Ancestors: - ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - ClassId: uuidpool.Pool - Prefix: Prefix + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Moid: Moid UuidSuffixBlocks: - ObjectType: uuidpool.UuidBlock + Size: 150 ClassId: uuidpool.UuidBlock From: From To: To - ObjectType: uuidpool.UuidBlock + Size: 150 ClassId: uuidpool.UuidBlock From: From To: To + Reserved: 6 title: Uuidpool:Pool x-allOf-name: uuidpool.Pool uuidpool.Pool.List: @@ -958875,39 +1000836,94 @@ components: type: object description: PoolMember represents a single UUID that is part of a pool. example: + Assigned: false BlockHead: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - ObjectType: uuidpool.PoolMember - Reservation: + SharedScope: SharedScope + Parent: null + CreateTime: 2000-01-23T04:56:07.000+00:00 + Peer: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - Uuid: Uuid - Peer: - ObjectType: aaa.AuditRecord + AssignedByAnother: false + AssignedToEntity: null + ClassId: uuidpool.PoolMember + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - AssignedToEntity: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Owners: + - Owners + - Owners + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: uuidpool.PoolMember + Reservation: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - ClassId: uuidpool.PoolMember + Uuid: Uuid + Moid: Moid Pool: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key + Reserved: false title: Uuidpool:Pool Member x-allOf-name: uuidpool.PoolMember uuidpool.PoolMember.List: @@ -959007,32 +1001023,84 @@ components: type: object description: "The UUID reservation object, used to hold reserved identity." example: - ObjectType: uuidpool.Reservation Organization: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - Block: + SharedScope: SharedScope + Parent: null + CreateTime: 2000-01-23T04:56:07.000+00:00 + AllocationType: dynamic + Universe: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - Universe: + ClassId: uuidpool.Reservation + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Owners: + - Owners + - Owners + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: uuidpool.Reservation + Moid: Moid + Block: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - ClassId: uuidpool.Reservation Pool: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + DisplayNames: + key: + - DisplayNames + - DisplayNames Identity: Identity PoolMember: ObjectType: aaa.AuditRecord @@ -959040,6 +1001108,12 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key title: Uuidpool:Reservation x-allOf-name: uuidpool.Reservation uuidpool.Reservation.List: @@ -959067,7 +1001141,10 @@ components: allOf: - $ref: '#/components/schemas/pool.ReservationReference' description: The reference to the reservation object. - example: {} + example: + ObjectType: fcpool.ReservationReference + ReservationMoid: ReservationMoid + ClassId: fcpool.ReservationReference title: Uuidpool:Reservation Reference x-allOf-name: uuidpool.ReservationReference uuidpool.Universe.Response: @@ -959186,194 +1001263,252 @@ components: ClassId: mo.VersionContext Timestamp: 2000-01-23T04:56:07.000+00:00 VersionType: Modified - ObjectType: uuidpool.Universe - Moid: Moid - DisplayNames: - key: - - DisplayNames - - DisplayNames - ModTime: 2000-01-23T04:56:07.000+00:00 - Tags: - - Value: Value - Key: Key - - Value: Value - Key: Key - title: Uuidpool:Universe - x-allOf-name: uuidpool.Universe - uuidpool.Universe.List: - allOf: - - $ref: '#/components/schemas/mo.BaseResponse' - - properties: - Count: - description: |- - The total number of 'uuidpool.Universe' resources matching the request, accross all pages. - The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. - format: int32 - type: integer - Results: - description: The array of 'uuidpool.Universe' resources matching the request. - items: - $ref: '#/components/schemas/uuidpool.Universe' - nullable: true - type: array - type: object - description: This resource list is returned as a response to a HTTP GET request - that does not include a specific resource identifier. - title: List of 'uuidpool.Universe' resources - uuidpool.UuidBlock: - allOf: - - $ref: '#/components/schemas/pool.AbstractBlockType' - - description: "Definition of the list of properties defined in 'uuidpool.UuidBlock',\ - \ excluding properties defined in parent classes." - properties: - ClassId: - default: uuidpool.UuidBlock - description: |- - The fully-qualified name of the instantiated, concrete type. - This property is used as a discriminator to identify the type of the payload - when marshaling and unmarshaling data. - enum: - - uuidpool.UuidBlock - type: string - x-enum-as-string: true - ObjectType: - default: uuidpool.UuidBlock - description: |- - The fully-qualified name of the instantiated, concrete type. - The value should be the same as the 'ClassId' property. - enum: - - uuidpool.UuidBlock - type: string - x-enum-as-string: true - From: - description: Starting UUID suffix of the block must be in hexadecimal - format xxxx-xxxxxxxxxxxx. - pattern: "^$|^[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$" - type: string - x-omitempty: true - To: - description: Starting UUID suffix of the block must be in hexadecimal - format xxxx-xxxxxxxxxxxx. - pattern: "^$|^[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$" - type: string - x-omitempty: true - required: - - ClassId - - ObjectType - type: object - description: UUID suffix block representation. - example: - ObjectType: uuidpool.UuidBlock - ClassId: uuidpool.UuidBlock - From: From - To: To - title: Uuidpool:Uuid Block - x-allOf-name: uuidpool.UuidBlock - uuidpool.UuidLease.Response: - description: |- - The response body of a HTTP GET request for the 'uuidpool.UuidLease' resource. - The value may be one of the following types. - 1. When 'tag' is specified in the URL query, the response schema - is a summary of the tag usage. - 1. When '$apply' is specified in the URL query, the response schema - is dynamically-generated schema based on the $apply value. - 1. When '$count' is specified in the URL query, the response is - a simple object providing the count of the resources. - 1. In all other cases, the response is a list of 'uuidpool.UuidLease' resources. - discriminator: - propertyName: ObjectType - oneOf: - - $ref: '#/components/schemas/mo.DocumentCount' - - $ref: '#/components/schemas/uuidpool.UuidLease.List' - - $ref: '#/components/schemas/mo.AggregateTransform' - - $ref: '#/components/schemas/mo.TagSummary' - x-one-of-name: uuidpool.UuidLease.Response - uuidpool.UuidLease.Relationship: - description: "A relationship to the 'uuidpool.UuidLease' resource, or the expanded\ - \ 'uuidpool.UuidLease' resource, or the 'null' value." - discriminator: - propertyName: ClassId - nullable: true - oneOf: - - $ref: '#/components/schemas/mo.MoRef' - - $ref: '#/components/schemas/uuidpool.UuidLease' - x-one-of-name: uuidpool.UuidLease.Relationship - uuidpool.UuidLease: - allOf: - - $ref: '#/components/schemas/pool.AbstractLease' - - description: "Definition of the list of properties defined in 'uuidpool.UuidLease',\ - \ excluding properties defined in parent classes." - properties: - ClassId: - default: uuidpool.UuidLease - description: |- - The fully-qualified name of the instantiated, concrete type. - This property is used as a discriminator to identify the type of the payload - when marshaling and unmarshaling data. - enum: - - uuidpool.UuidLease - type: string - x-enum-as-string: true - ObjectType: - default: uuidpool.UuidLease - description: |- - The fully-qualified name of the instantiated, concrete type. - The value should be the same as the 'ClassId' property. - enum: - - uuidpool.UuidLease - type: string - x-enum-as-string: true - Reservation: - $ref: '#/components/schemas/uuidpool.ReservationReference' - Uuid: - description: UUID Prefix+Suffix numbers. - pattern: "^$|^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$" - type: string - x-createOnly: true - x-omitempty: true - AssignedToEntity: - $ref: '#/components/schemas/mo.BaseMo.Relationship' - Pool: - $ref: '#/components/schemas/uuidpool.Pool.Relationship' - PoolMember: - $ref: '#/components/schemas/uuidpool.PoolMember.Relationship' - Universe: - $ref: '#/components/schemas/uuidpool.Universe.Relationship' - required: - - ClassId - - ObjectType - type: object - description: "UuidLease represents a single UUID that is part of the universe,\ - \ allocated either from a pool or through static assignment." - example: + ObjectType: uuidpool.Universe + Moid: Moid + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key + title: Uuidpool:Universe + x-allOf-name: uuidpool.Universe + uuidpool.Universe.List: + allOf: + - $ref: '#/components/schemas/mo.BaseResponse' + - properties: + Count: + description: |- + The total number of 'uuidpool.Universe' resources matching the request, accross all pages. + The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. + format: int32 + type: integer + Results: + description: The array of 'uuidpool.Universe' resources matching the request. + items: + $ref: '#/components/schemas/uuidpool.Universe' + nullable: true + type: array + type: object + description: This resource list is returned as a response to a HTTP GET request + that does not include a specific resource identifier. + title: List of 'uuidpool.Universe' resources + uuidpool.UuidBlock: + allOf: + - $ref: '#/components/schemas/pool.AbstractBlockType' + - description: "Definition of the list of properties defined in 'uuidpool.UuidBlock',\ + \ excluding properties defined in parent classes." + properties: + ClassId: + default: uuidpool.UuidBlock + description: |- + The fully-qualified name of the instantiated, concrete type. + This property is used as a discriminator to identify the type of the payload + when marshaling and unmarshaling data. + enum: + - uuidpool.UuidBlock + type: string + x-enum-as-string: true + ObjectType: + default: uuidpool.UuidBlock + description: |- + The fully-qualified name of the instantiated, concrete type. + The value should be the same as the 'ClassId' property. + enum: + - uuidpool.UuidBlock + type: string + x-enum-as-string: true + From: + description: Starting UUID suffix of the block must be in hexadecimal + format xxxx-xxxxxxxxxxxx. + pattern: "^$|^[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$" + type: string + x-omitempty: true + To: + description: Starting UUID suffix of the block must be in hexadecimal + format xxxx-xxxxxxxxxxxx. + pattern: "^$|^[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$" + type: string + x-omitempty: true + required: + - ClassId + - ObjectType + type: object + description: UUID suffix block representation. + example: + ObjectType: uuidpool.UuidBlock + Size: 150 + ClassId: uuidpool.UuidBlock + From: From + To: To + title: Uuidpool:Uuid Block + x-allOf-name: uuidpool.UuidBlock + uuidpool.UuidLease.Response: + description: |- + The response body of a HTTP GET request for the 'uuidpool.UuidLease' resource. + The value may be one of the following types. + 1. When 'tag' is specified in the URL query, the response schema + is a summary of the tag usage. + 1. When '$apply' is specified in the URL query, the response schema + is dynamically-generated schema based on the $apply value. + 1. When '$count' is specified in the URL query, the response is + a simple object providing the count of the resources. + 1. In all other cases, the response is a list of 'uuidpool.UuidLease' resources. + discriminator: + propertyName: ObjectType + oneOf: + - $ref: '#/components/schemas/mo.DocumentCount' + - $ref: '#/components/schemas/uuidpool.UuidLease.List' + - $ref: '#/components/schemas/mo.AggregateTransform' + - $ref: '#/components/schemas/mo.TagSummary' + x-one-of-name: uuidpool.UuidLease.Response + uuidpool.UuidLease.Relationship: + description: "A relationship to the 'uuidpool.UuidLease' resource, or the expanded\ + \ 'uuidpool.UuidLease' resource, or the 'null' value." + discriminator: + propertyName: ClassId + nullable: true + oneOf: + - $ref: '#/components/schemas/mo.MoRef' + - $ref: '#/components/schemas/uuidpool.UuidLease' + x-one-of-name: uuidpool.UuidLease.Relationship + uuidpool.UuidLease: + allOf: + - $ref: '#/components/schemas/pool.AbstractLease' + - description: "Definition of the list of properties defined in 'uuidpool.UuidLease',\ + \ excluding properties defined in parent classes." + properties: + ClassId: + default: uuidpool.UuidLease + description: |- + The fully-qualified name of the instantiated, concrete type. + This property is used as a discriminator to identify the type of the payload + when marshaling and unmarshaling data. + enum: + - uuidpool.UuidLease + type: string + x-enum-as-string: true + ObjectType: + default: uuidpool.UuidLease + description: |- + The fully-qualified name of the instantiated, concrete type. + The value should be the same as the 'ClassId' property. + enum: + - uuidpool.UuidLease + type: string + x-enum-as-string: true + Reservation: + $ref: '#/components/schemas/uuidpool.ReservationReference' + Uuid: + description: UUID Prefix+Suffix numbers. + pattern: "^$|^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$" + type: string + x-createOnly: true + x-omitempty: true + AssignedToEntity: + $ref: '#/components/schemas/mo.BaseMo.Relationship' + Pool: + $ref: '#/components/schemas/uuidpool.Pool.Relationship' + PoolMember: + $ref: '#/components/schemas/uuidpool.PoolMember.Relationship' + Universe: + $ref: '#/components/schemas/uuidpool.Universe.Relationship' + required: + - ClassId + - ObjectType + type: object + description: "UuidLease represents a single UUID that is part of the universe,\ + \ allocated either from a pool or through static assignment." + example: + SharedScope: SharedScope + Parent: null + CreateTime: 2000-01-23T04:56:07.000+00:00 + AllocationType: dynamic + AssignedToEntity: null + Universe: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: uuidpool.UuidLease + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Owners: + - Owners + - Owners + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified ObjectType: uuidpool.UuidLease - Reservation: {} + Reservation: + ObjectType: fcpool.ReservationReference + ReservationMoid: ReservationMoid + ClassId: fcpool.ReservationReference Uuid: Uuid - AssignedToEntity: - ObjectType: aaa.AuditRecord - link: link - Moid: Moid - ClassId: mo.MoRef - Selector: Selector - Universe: - ObjectType: aaa.AuditRecord - link: link - Moid: Moid - ClassId: mo.MoRef - Selector: Selector - ClassId: uuidpool.UuidLease + Moid: Moid Pool: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + DisplayNames: + key: + - DisplayNames + - DisplayNames PoolMember: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key + HasDuplicate: false title: Uuidpool:Uuid Lease x-allOf-name: uuidpool.UuidLease uuidpool.UuidLease.List: @@ -961492,6 +1003627,12 @@ components: type: object description: Details of available CPU power across all cores and the free capacity still available. + example: + ObjectType: virtualization.ComputeCapacity + Capacity: 3 + Used: 4 + ClassId: virtualization.ComputeCapacity + Free: 2 nullable: true title: Virtualization:Compute Capacity x-allOf-name: virtualization.ComputeCapacity @@ -961549,6 +1003690,14 @@ components: - ObjectType type: object description: The details of the CPUs on this platform. + example: + Cores: 0 + ObjectType: virtualization.CpuInfo + Speed: 1 + Description: Description + Sockets: 6 + ClassId: virtualization.CpuInfo + Vendor: Vendor nullable: true title: Virtualization:Cpu Info x-allOf-name: virtualization.CpuInfo @@ -961654,8 +1003803,15 @@ components: description: Vmware Esxi Console Session that provides request validation and Session Management. example: - ObjectType: virtualization.EsxiConsole StreamId: StreamId + User: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + EndTime: 2000-01-23T04:56:07.000+00:00 + Parent: null ClassId: virtualization.EsxiConsole DeviceRegistration: ObjectType: aaa.AuditRecord @@ -961663,12 +1003819,81 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector + TargetName: TargetName + Owners: + - Owners + - Owners + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: virtualization.EsxiConsole + Target: null + ClientIpAddress: ClientIpAddress + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key + Status: Active + SharedScope: SharedScope + CreateTime: 2000-01-23T04:56:07.000+00:00 + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null Host: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Role: Role + Moid: Moid + UserIdOrEmail: UserIdOrEmail + Session: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector title: Virtualization:Esxi Console x-allOf-name: virtualization.EsxiConsole virtualization.EsxiConsole.List: @@ -962004,6 +1004229,13 @@ components: type: object description: Captures the common details of the guest personality that runs in a VM. + example: + OperatingSystem: OperatingSystem + ObjectType: virtualization.GuestInfo + Hostname: Hostname + ClassId: virtualization.GuestInfo + IpAddress: IpAddress + Name: Name nullable: true title: Virtualization:Guest Info x-allOf-name: virtualization.GuestInfo @@ -962363,6 +1004595,12 @@ components: - ObjectType type: object description: Measure of memory allocated and used. + example: + ObjectType: virtualization.MemoryCapacity + Capacity: 5 + Used: 7 + ClassId: virtualization.MemoryCapacity + Free: 2 nullable: true title: Virtualization:Memory Capacity x-allOf-name: virtualization.MemoryCapacity @@ -962591,6 +1004829,14 @@ components: - ObjectType type: object description: The details of the product offering. + example: + ObjectType: virtualization.ProductInfo + ProductName: ProductName + Version: Version + Build: Build + ProductType: ProductType + ClassId: virtualization.ProductInfo + ProductVendor: ProductVendor nullable: true title: Virtualization:Product Info x-allOf-name: virtualization.ProductInfo @@ -962646,10 +1004892,10 @@ components: description: Captures the common attributes of a storage entity. example: ObjectType: virtualization.StorageCapacity - Capacity: 2 - Used: 7 + Capacity: 0 + Used: 1 ClassId: virtualization.StorageCapacity - Free: 4 + Free: 6 nullable: true title: Virtualization:Storage Capacity x-allOf-name: virtualization.StorageCapacity @@ -962988,10 +1005234,14 @@ components: Selector: Selector GpuConfigs: - ObjectType: infra.GpuConfiguration - MemorySize: 1 + MemorySize: 5 + DeviceId: 1 + VendorId: 5 ClassId: infra.GpuConfiguration - ObjectType: infra.GpuConfiguration - MemorySize: 1 + MemorySize: 5 + DeviceId: 1 + VendorId: 5 ClassId: infra.GpuConfiguration SharedScope: SharedScope CreateTime: 2000-01-23T04:56:07.000+00:00 @@ -963369,24 +1005619,120 @@ components: description: "A real cluster of resources within a data center in VMware. A\ \ cluster is a convenient grouping of resources such as Host, Datastore, etc." example: - InventoryPath: InventoryPath + ProcessorCapacity: + ObjectType: virtualization.ComputeCapacity + Capacity: 3 + Used: 4 + ClassId: virtualization.ComputeCapacity + Free: 2 + Parent: null + TotalCores: 0 + ClassId: virtualization.VmwareCluster + Owners: + - Owners + - Owners + Name: Name + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified ObjectType: virtualization.VmwareCluster - CpuOverCommitment: 0 + CpuOverCommitment: 6 + DisplayNames: + key: + - DisplayNames + - DisplayNames + Identity: Identity + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key + Status: Unknown RegisteredDevice: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - DatastoreCount: 6 + DatastoreCount: 1 + SharedScope: SharedScope + CreateTime: 2000-01-23T04:56:07.000+00:00 + ProactiveHaEnabled: true + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + MemoryCapacity: + ObjectType: virtualization.MemoryCapacity + Capacity: 5 + Used: 7 + ClassId: virtualization.MemoryCapacity + Free: 2 + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + HypervisorType: ESXi + InventoryPath: InventoryPath + AlarmSummary: + ObjectType: cond.AlarmSummary + Warning: 2 + SuppressedInfo: 5 + Health: Healthy + SuppressedWarning: 5 + ClassId: cond.AlarmSummary + Critical: 0 + SuppressedCritical: 1 + Info: 6 + StorageClusters: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector Datacenter: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - ProactiveHaEnabled: true - ClassId: virtualization.VmwareCluster + Moid: Moid + HypervisorVersion: HypervisorVersion title: Virtualization:Vmware Cluster x-allOf-name: virtualization.VmwareCluster virtualization.VmwareCluster.List: @@ -963536,10 +1005882,9 @@ components: description: "Datacenter object in VMware inventory. It is the logical container\ \ for all other objects like Datastore, Host, VirtualMachine, etc." example: - VmTemplateCount: 3 HostCount: 5 - DatastoreCount: 6 VmCount: 9 + Parent: null ClusterCount: 0 HypervisorManager: ObjectType: aaa.AuditRecord @@ -963547,19 +1005892,86 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector - StandardNetworkCount: 7 ClassId: virtualization.VmwareDatacenter DistributedNetworkCount: 1 + Owners: + - Owners + - Owners + Name: Name + DistributedVirtualSwitchCount: 5 + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: virtualization.VmwareDatacenter + DisplayNames: + key: + - DisplayNames + - DisplayNames + Identity: Identity + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key + VmTemplateCount: 3 + RegisteredDevice: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + DatastoreCount: 6 + SharedScope: SharedScope + CreateTime: 2000-01-23T04:56:07.000+00:00 + StandardNetworkCount: 7 + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + AccountMoid: AccountMoid ParentFolder: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - DistributedVirtualSwitchCount: 5 + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector InventoryPath: InventoryPath - ObjectType: virtualization.VmwareDatacenter + Uuid: Uuid NetworkCount: 2 + Moid: Moid title: Virtualization:Vmware Datacenter x-allOf-name: virtualization.VmwareDatacenter virtualization.VmwareDatacenter.List: @@ -963717,7 +1006129,6 @@ components: description: The VMware Datastore entity with its attributes. Each Datastore belongs to a Datacenter and maybe attached to VMs. example: - Status: Unknown Hosts: - ObjectType: aaa.AuditRecord link: link @@ -963729,7 +1006140,72 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector - VmTemplateCount: 6 + HostCount: 5 + VmCount: 5 + Parent: null + ClassId: virtualization.VmwareDatastore + UnCommitted: 2 + Url: Url + Owners: + - Owners + - Owners + Name: Name + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: virtualization.VmwareDatastore + Capacity: + ObjectType: virtualization.StorageCapacity + Capacity: 0 + Used: 1 + ClassId: virtualization.StorageCapacity + Free: 6 + Clusters: + - null + - null + DisplayNames: + key: + - DisplayNames + - DisplayNames + Identity: Identity + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key + Accessible: true + Status: Unknown + VmTemplateCount: 7 + RegisteredDevice: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + SharedScope: SharedScope + CreateTime: 2000-01-23T04:56:07.000+00:00 ThinProvisioningSupported: true Cluster: ObjectType: aaa.AuditRecord @@ -963737,11 +1006213,24 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector - ClassId: virtualization.VmwareDatastore - UnCommitted: 0 - Url: Url + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector InventoryPath: InventoryPath - ObjectType: virtualization.VmwareDatastore + Type: Unknown DatastoreCluster: ObjectType: aaa.AuditRecord link: link @@ -963750,16 +1006239,13 @@ components: Selector: Selector MaintenanceMode: true MultipleHostAccess: true - Clusters: - - null - - null Datacenter: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - Accessible: true + Moid: Moid title: Virtualization:Vmware Datastore x-allOf-name: virtualization.VmwareDatastore virtualization.VmwareDatastore.List: @@ -963946,31 +1006432,106 @@ components: cluster is a collection of datastores with shared resources and a shared management interface. example: - IoLatencyThreshold: 6 - Status: Unknown + IoLatencyThreshold: 5 StorageDrsEnabled: true SpaceLoadBalanceAutomationMode: SpaceLoadBalanceAutomationMode + HostCount: 6 + VmCount: 1 + Parent: null VmEvacuationAutomationMode: VmEvacuationAutomationMode ClassId: virtualization.VmwareDatastoreCluster IoLoadBalanceAutomationMode: IoLoadBalanceAutomationMode - ReservablePercentThreshold: 5 - InventoryPath: InventoryPath + Owners: + - Owners + - Owners + Name: Name + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified ObjectType: virtualization.VmwareDatastoreCluster - IoLoadImbalanceThreshold: 1 + Capacity: + ObjectType: virtualization.StorageCapacity + Capacity: 0 + Used: 1 + ClassId: virtualization.StorageCapacity + Free: 6 + IoMetricsEnabled: true + UtilizedSpaceThreshold: 3 + DisplayNames: + key: + - DisplayNames + - DisplayNames + Identity: Identity + SpaceThresholdMode: SpaceThresholdMode + ModTime: 2000-01-23T04:56:07.000+00:00 + MinSpaceUtilizationDifference: 7 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key + FreeSpaceThreshold: 5 + PolicyEnforcementAutomationMode: PolicyEnforcementAutomationMode + Status: Unknown + RegisteredDevice: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + DatastoreCount: 0 + SharedScope: SharedScope + CreateTime: 2000-01-23T04:56:07.000+00:00 + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + ReservablePercentThreshold: 9 + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + InventoryPath: InventoryPath + Type: Unknown + IoLoadImbalanceThreshold: 2 Datacenter: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + Moid: Moid RuleEnforcementAutomationMode: RuleEnforcementAutomationMode - IoMetricsEnabled: true - UtilizedSpaceThreshold: 2 AutomationLevel: AutomationLevel - SpaceThresholdMode: SpaceThresholdMode - MinSpaceUtilizationDifference: 5 - FreeSpaceThreshold: 0 - PolicyEnforcementAutomationMode: PolicyEnforcementAutomationMode title: Virtualization:Vmware Datastore Cluster x-allOf-name: virtualization.VmwareDatastoreCluster virtualization.VmwareDatastoreCluster.List: @@ -964195,6 +1006756,52 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector + Parent: null + ClassId: virtualization.VmwareDistributedNetwork + Owners: + - Owners + - Owners + Name: Name + UpLink: true + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: virtualization.VmwareDistributedNetwork + PromiscuousMode: Reject + DisplayNames: + key: + - DisplayNames + - DisplayNames + Identity: Identity + ForgedTransmits: Reject + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key + VlanType: None NicTeamingAndFailover: ObjectType: virtualization.VmwareTeamingAndFailover NetworkFailureDetection: linkStatus @@ -964209,6 +1006816,13 @@ components: - ActiveAdapters Failback: true Name: Name + RegisteredDevice: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + SharedScope: SharedScope VlanRange: - ObjectType: virtualization.VmwareVlanRange VlanRangeEnd: 1 @@ -964218,21 +1006832,33 @@ components: VlanRangeEnd: 1 ClassId: virtualization.VmwareVlanRange VlanRangeStart: 5 + CreateTime: 2000-01-23T04:56:07.000+00:00 DistributedSwitch: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - ClassId: virtualization.VmwareDistributedNetwork + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null MacAddressChanges: Reject - UpLink: true - ObjectType: virtualization.VmwareDistributedNetwork - PromiscuousMode: Reject + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Moid: Moid NumHosts: 0 - ForgedTransmits: Reject NumPorts: 6 - VlanType: None title: Virtualization:Vmware Distributed Network x-allOf-name: virtualization.VmwareDistributedNetwork virtualization.VmwareDistributedNetwork.List: @@ -964390,6 +1007016,65 @@ components: type: object description: The VMware Distributed Virtual Switch object is represented here. example: + Hosts: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Description: Description + NumUplinks: 2 + Parent: null + ClassId: virtualization.VmwareDistributedSwitch + NumStandAlonePorts: 5 + NumNetworks: 5 + Owners: + - Owners + - Owners + Name: Name + Mtu: 6 + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: virtualization.VmwareDistributedSwitch + Version: Version + DisplayNames: + key: + - DisplayNames + - DisplayNames + Identity: Identity + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key ResourceAllocationSystemTraffic: - ObjectType: virtualization.VmwareResourceAllocationSystemTrafficTypes SharesValue: 3 @@ -964405,17 +1007090,6 @@ components: Limit: 7 Shares: low TrafficType: TrafficType - Hosts: - - ObjectType: aaa.AuditRecord - link: link - Moid: Moid - ClassId: mo.MoRef - Selector: Selector - - ObjectType: aaa.AuditRecord - link: link - Moid: Moid - ClassId: mo.MoRef - Selector: Selector NicTeamingAndFailover: ObjectType: virtualization.VmwareTeamingAndFailover NetworkFailureDetection: linkStatus @@ -964430,35 +1007104,52 @@ components: - ActiveAdapters Failback: true Name: Name - Description: Description + RegisteredDevice: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector MaxPort: 0 - NumUplinks: 2 - ClassId: virtualization.VmwareDistributedSwitch - NumStandAlonePorts: 5 - NumNetworks: 5 + SharedScope: SharedScope + CreateTime: 2000-01-23T04:56:07.000+00:00 + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector DiscoveryProtocol: ObjectType: virtualization.VmwareDiscoveryProtocol Type: Type ClassId: virtualization.VmwareDiscoveryProtocol Operation: Operation - Mtu: 6 - ObjectType: virtualization.VmwareDistributedSwitch Uuid: Uuid - Version: Version Datacenter: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + Moid: Moid NetworkIoControl: true NumHosts: 1 SwitchCapacity: ObjectType: virtualization.StorageCapacity - Capacity: 2 - Used: 7 + Capacity: 0 + Used: 1 ClassId: virtualization.StorageCapacity - Free: 4 + Free: 6 title: Virtualization:Vmware Distributed Switch x-allOf-name: virtualization.VmwareDistributedSwitch virtualization.VmwareDistributedSwitch.List: @@ -964576,8 +1007267,15 @@ components: description: "A folder in a VMware vCenter. Folder can be created directly under\ \ the vCenter, under a datacenter, or inside another folder." example: - InventoryPath: InventoryPath - ObjectType: virtualization.VmwareFolder + RegisteredDevice: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + SharedScope: SharedScope + Parent: null + CreateTime: 2000-01-23T04:56:07.000+00:00 Internal: true HypervisorManager: ObjectType: aaa.AuditRecord @@ -964585,14 +1007283,72 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector + ClassId: virtualization.VmwareFolder + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Owners: + - Owners + - Owners + Name: Name + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + InventoryPath: InventoryPath + ObjectType: virtualization.VmwareFolder Datacenter: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - ClassId: virtualization.VmwareFolder + Moid: Moid TypeofFolder: Unknown + DisplayNames: + key: + - DisplayNames + - DisplayNames + Identity: Identity + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key VmwareFolder: ObjectType: aaa.AuditRecord link: link @@ -964798,8 +1007554,12 @@ components: description: The VMware Host entity with its attributes. Every Host belongs to a Datacenter and may run VMs. example: - QuarantineMode: true - VcenterHostId: VcenterHostId + ProcessorCapacity: + ObjectType: virtualization.ComputeCapacity + Capacity: 3 + Used: 4 + ClassId: virtualization.ComputeCapacity + Free: 2 NtpServers: - NtpServers - NtpServers @@ -964809,34 +1007569,100 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector - DistributedSwitches: - - ObjectType: aaa.AuditRecord + ClassId: virtualization.VmwareHost + Name: Name + HyperFlexNode: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ResourceConsumed: + ObjectType: virtualization.VmwareResourceConsumption + CpuConsumed: 6 + ClassId: virtualization.VmwareResourceConsumption + MemoryConsumed: 1 + Identity: Identity + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key + Status: Unknown + RegisteredDevice: + ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + SharedScope: SharedScope + CpuInfo: + Cores: 0 + ObjectType: virtualization.CpuInfo + Speed: 1 + Description: Description + Sockets: 6 + ClassId: virtualization.CpuInfo + Vendor: Vendor + DistributedSwitches: - ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - NetworkAdapterCount: 0 - Cluster: - ObjectType: aaa.AuditRecord + - ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - ClassId: virtualization.VmwareHost + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null BootTime: 2000-01-23T04:56:07.000+00:00 + HwPowerState: Unknown + HypervisorType: ESXi + TimeZone: TimeZone + MaintenanceMode: true + IsSshEnabled: true + ConnectionState: ConnectionState + QuarantineMode: true + Parent: null + NetworkAdapterCount: 0 DnsServers: - DnsServers - DnsServers - HwPowerState: Unknown + Owners: + - Owners + - Owners + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified ObjectType: virtualization.VmwareHost - TimeZone: TimeZone DcInvPath: DcInvPath - Datastores: + DistributedNetworks: - ObjectType: aaa.AuditRecord link: link Moid: Moid @@ -964847,8 +1007673,41 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector - IsSshEnabled: true - DistributedNetworks: + DisplayNames: + key: + - DisplayNames + - DisplayNames + VcenterHostId: VcenterHostId + ProductInfo: + ObjectType: virtualization.ProductInfo + ProductName: ProductName + Version: Version + Build: Build + ProductType: ProductType + ClassId: virtualization.ProductInfo + ProductVendor: ProductVendor + HardwareInfo: + ObjectType: infra.HardwareInfo + MemorySize: 1 + CpuCores: 0 + ClassId: infra.HardwareInfo + CpuSpeed: 6 + CreateTime: 2000-01-23T04:56:07.000+00:00 + Cluster: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + MemoryCapacity: + ObjectType: virtualization.MemoryCapacity + Capacity: 5 + Used: 7 + ClassId: virtualization.MemoryCapacity + Free: 2 + Vendor: Vendor + AccountMoid: AccountMoid + Ancestors: - ObjectType: aaa.AuditRecord link: link Moid: Moid @@ -964859,24 +1007718,28 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector - Datacenter: - ObjectType: aaa.AuditRecord + Serial: Serial + Uuid: Uuid + UpTime: UpTime + Datastores: + - ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - HyperFlexNode: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Model: Model + Datacenter: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - ConnectionState: ConnectionState - ResourceConsumed: - ObjectType: virtualization.VmwareResourceConsumption - CpuConsumed: 6 - ClassId: virtualization.VmwareResourceConsumption - MemoryConsumed: 1 + Moid: Moid StorageAdapterCount: 5 title: Virtualization:Vmware Host x-allOf-name: virtualization.VmwareHost @@ -964924,7 +1007787,98 @@ components: allOf: - $ref: '#/components/schemas/virtualization.BaseHostGpu' description: Common attributes of a GPU device on a VMware host. - example: {} + example: + PciClassId: 5 + Parent: null + DeviceId: 6 + VendorId: 9 + ClassId: virtualization.VmwareHostGpu + PassthroughEnabled: true + SubVendorId: 7 + Owners: + - Owners + - Owners + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: virtualization.VmwareHostGpu + Function: 1 + PassthroughActive: true + DisplayNames: + key: + - DisplayNames + - DisplayNames + Identity: Identity + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key + Bus: 0 + VendorName: VendorName + RegisteredDevice: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + PciId: PciId + SharedScope: SharedScope + CreateTime: 2000-01-23T04:56:07.000+00:00 + Cluster: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + Host: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + SubDeviceId: 2 + Moid: Moid + Slot: 5 + DeviceName: DeviceName title: Virtualization:Vmware Host Gpu x-allOf-name: virtualization.VmwareHostGpu virtualization.VmwareHostGpu.List: @@ -965064,10 +1008018,79 @@ components: description: Details of VMware Kernel Network. example: TcpIpStack: TcpIpStack + Parent: null + ClassId: virtualization.VmwareKernelNetwork + Owners: + - Owners + - Owners + Name: Name + Mtu: 0 + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: virtualization.VmwareKernelNetwork + VsphereProvisioning: true + VsphereReplicationNfc: true + DistributedNetwork: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Network: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + DisplayNames: + key: + - DisplayNames + - DisplayNames + Identity: Identity + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key + SubnetMask: SubnetMask Vsan: true + RegisteredDevice: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector VsphereReplication: true + SharedScope: SharedScope Vmotion: true - ClassId: virtualization.VmwareKernelNetwork + CreateTime: 2000-01-23T04:56:07.000+00:00 + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null Host: ObjectType: aaa.AuditRecord link: link @@ -965076,27 +1008099,23 @@ components: Selector: Selector Management: true MacAddress: MacAddress - Mtu: 0 - ObjectType: virtualization.VmwareKernelNetwork - VsphereProvisioning: true - VsphereReplicationNfc: true - DistributedNetwork: - ObjectType: aaa.AuditRecord + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - Network: - ObjectType: aaa.AuditRecord + - ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + Moid: Moid IpAddress: - IpAddress - IpAddress FaultToleranceLogging: true - SubnetMask: SubnetMask title: Virtualization:Vmware Kernel Network x-allOf-name: virtualization.VmwareKernelNetwork virtualization.VmwareKernelNetwork.List: @@ -965225,7 +1008244,51 @@ components: type: object description: Details of VMware Virtual Network. example: + Parent: null + ClassId: virtualization.VmwareNetwork + Owners: + - Owners + - Owners + Name: Name + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified ObjectType: virtualization.VmwareNetwork + PromiscuousMode: Reject + DisplayNames: + key: + - DisplayNames + - DisplayNames + Identity: Identity + ForgedTransmits: Reject + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key + VlanId: 0 NicTeamingAndFailover: ObjectType: virtualization.VmwareTeamingAndFailover NetworkFailureDetection: linkStatus @@ -965240,14 +1008303,24 @@ components: - ActiveAdapters Failback: true Name: Name - PromiscuousMode: Reject + RegisteredDevice: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + SharedScope: SharedScope VirtualSwitch: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - ClassId: virtualization.VmwareNetwork + CreateTime: 2000-01-23T04:56:07.000+00:00 + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null MacAddressChanges: Reject Host: ObjectType: aaa.AuditRecord @@ -965255,8 +1008328,19 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector - ForgedTransmits: Reject - VlanId: 0 + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Moid: Moid title: Virtualization:Vmware Network x-allOf-name: virtualization.VmwareNetwork virtualization.VmwareNetwork.List: @@ -965365,19 +1008449,84 @@ components: type: object description: Details of VMware physical network interface. example: - ObjectType: virtualization.VmwarePhysicalNetworkInterface + RegisteredDevice: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector SwitchName: SwitchName - Pci: Pci + SharedScope: SharedScope + Parent: null + CreateTime: 2000-01-23T04:56:07.000+00:00 Driver: Driver ClassId: virtualization.VmwarePhysicalNetworkInterface + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null Host: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - LinkSpeed: 0 MacAddress: MacAddress + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Owners: + - Owners + - Owners + Name: Name + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: virtualization.VmwarePhysicalNetworkInterface + Pci: Pci + Moid: Moid + LinkSpeed: 0 + DisplayNames: + key: + - DisplayNames + - DisplayNames + Identity: Identity + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key title: Virtualization:Vmware Physical Network Interface x-allOf-name: virtualization.VmwarePhysicalNetworkInterface virtualization.VmwarePhysicalNetworkInterface.List: @@ -965627,7 +1008776,7 @@ components: RemoteDisplayVncKey: RemoteDisplayVncKey ClassId: virtualization.VmwareRemoteDisplayInfo RemoteDisplayPassword: RemoteDisplayPassword - RemoteDisplayVncPort: 7 + RemoteDisplayVncPort: 4 nullable: true title: Virtualization:Vmware Remote Display Info x-allOf-name: virtualization.VmwareRemoteDisplayInfo @@ -966000,13 +1009149,15 @@ components: type: object description: The VMware uplink port object is represented here. example: - ObjectType: virtualization.VmwareUplinkPort - DistributedNetwork: + RegisteredDevice: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + SharedScope: SharedScope + Parent: null + CreateTime: 2000-01-23T04:56:07.000+00:00 PhysicalNetworkInterface: ObjectType: aaa.AuditRecord link: link @@ -966014,15 +1009165,76 @@ components: ClassId: mo.MoRef Selector: Selector ClassId: virtualization.VmwareUplinkPort + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null Host: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Owners: + - Owners + - Owners + Name: Name + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: virtualization.VmwareUplinkPort + DistributedNetwork: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Moid: Moid + DisplayNames: + key: + - DisplayNames + - DisplayNames Identity: Identity + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key Key: Key - Name: Name title: Virtualization:Vmware Uplink Port x-allOf-name: virtualization.VmwareUplinkPort virtualization.VmwareUplinkPort.List: @@ -966175,20 +1009387,87 @@ components: in Intersight. example: HostCount: 2 - DatastoreCount: 1 VmCount: 7 + Parent: null ClusterCount: 0 ClassId: virtualization.VmwareVcenter TargetName: TargetName - DatacenterCount: 6 + Owners: + - Owners + - Owners + Name: Name DistributedVirtualSwitchCount: 5 + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified ObjectType: virtualization.VmwareVcenter + Version: Version + Build: Build + DisplayNames: + key: + - DisplayNames + - DisplayNames + Identity: Identity + DsClusterCount: 5 + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key + RegisteredDevice: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + DatastoreCount: 1 + SharedScope: SharedScope + CreateTime: 2000-01-23T04:56:07.000+00:00 + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + AccountMoid: AccountMoid + DatacenterCount: 6 + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector VmTemplatesCount: 9 ExternalIp: ExternalIp + Moid: Moid IpAddress: - IpAddress - IpAddress - DsClusterCount: 5 title: Virtualization:Vmware Vcenter x-allOf-name: virtualization.VmwareVcenter virtualization.VmwareVcenter.List: @@ -966403,34 +1009682,99 @@ components: datastore. example: DiskMode: persistent - CompatibilityMode: notApplicable - VmIdentity: VmIdentity + Parent: null + Size: 0 ClassId: virtualization.VmwareVirtualDisk - ControllerKey: 0 StorageAllocationType: notApplicable - Vendor: Vendor - VirtualDiskPath: VirtualDiskPath + Owners: + - Owners + - Owners + Name: Name + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified DiskType: flatDisk ObjectType: virtualization.VmwareVirtualDisk + VdiskId: VdiskId + Sharing: sharingNone + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Shares: + ObjectType: virtualization.VmwareSharesInfo + ClassId: virtualization.VmwareSharesInfo + Level: Level + Shares: 5 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key + RegisteredDevice: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + SharedScope: SharedScope + CompatibilityMode: notApplicable + CreateTime: 2000-01-23T04:56:07.000+00:00 + VmIdentity: VmIdentity + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + ControllerKey: 6 + Vendor: Vendor + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + VirtualDiskPath: VirtualDiskPath Serial: Serial Uuid: Uuid - VdiskId: VdiskId Datastore: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - Sharing: sharingNone LunUuid: LunUuid - Limit: 1 - UnitNumber: 5 - Shares: - ObjectType: virtualization.VmwareSharesInfo - ClassId: virtualization.VmwareSharesInfo - Level: Level - Shares: 5 - Key: 6 + Moid: Moid + Limit: 5 + UnitNumber: 2 + Key: 1 DeviceName: DeviceName VirtualMachine: ObjectType: aaa.AuditRecord @@ -966779,9 +1010123,15 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector + ProcessorCapacity: + ObjectType: virtualization.ComputeCapacity + Capacity: 3 + Used: 4 + ClassId: virtualization.ComputeCapacity + Free: 2 PassthroughDevices: - - 6 - - 6 + - 1 + - 1 ClassId: virtualization.VmwareVirtualMachine HostCompatibility: HostCompatibility ResourcePool: ResourcePool @@ -966789,19 +1010139,45 @@ components: PortGroups: - PortGroups - PortGroups + Name: Name CustomAttributes: - CustomAttributes - CustomAttributes + Capacity: + ObjectType: infra.HardwareInfo + MemorySize: 1 + CpuCores: 0 + ClassId: infra.HardwareInfo + CpuSpeed: 6 GuestState: Unknown + Identity: Identity + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key IsTemplate: true VnicDeviceConfigId: VnicDeviceConfigId + RegisteredDevice: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + SharedScope: SharedScope ResourcePoolOwner: ResourcePoolOwner DhcpEnabled: true + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + BootTime: 2000-01-23T04:56:07.000+00:00 DiskCommitInfo: ObjectType: virtualization.VmwareVmDiskCommitInfo - UnsharedDisk: 2 - UnCommittedDisk: 3 - CommittedDisk: 9 + UnsharedDisk: 7 + UnCommittedDisk: 4 + CommittedDisk: 2 ClassId: virtualization.VmwareVmDiskCommitInfo DnsSuffixList: - DnsSuffixList @@ -966810,49 +1010186,87 @@ components: - MacAddress - MacAddress VmOverallStatus: VmOverallStatus + HypervisorType: ESXi InventoryPath: InventoryPath CpuShares: ObjectType: virtualization.VmwareVmCpuShareInfo - CpuOverheadLimit: 6 - CpuLimit: 0 - CpuShares: 5 + CpuOverheadLimit: 5 + CpuLimit: 1 + CpuShares: 2 ClassId: virtualization.VmwareVmCpuShareInfo - CpuReservation: 1 + CpuReservation: 5 DefaultPowerOffType: DefaultPowerOffType - NetworkCount: 1 + NetworkCount: 7 + State: None ConnectionState: ConnectionState + MemoryUtilization: 6.0274563 DnsServerList: - DnsServerList - DnsServerList InstanceUuid: InstanceUuid + Parent: null ResourcePoolParent: ResourcePoolParent Folder: Folder CpuHotAddEnabled: true + Owners: + - Owners + - Owners + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified ObjectType: virtualization.VmwareVirtualMachine ProtectedVm: true - VmDiskCount: 5 + VmDiskCount: 9 ConfigName: ConfigName VirtualNetworkInterfaces: - - 4 - - 4 + - 9 + - 9 VirtualDisks: - - 1 - - 1 + - 5 + - 5 CpuSocketInfo: - CoresPerSocket: 5 + CoresPerSocket: 7 ObjectType: virtualization.VmwareVmCpuSocketInfo - NumSockets: 7 + NumSockets: 3 ClassId: virtualization.VmwareVmCpuSocketInfo - NumCpus: 2 - VmVnicCount: 9 + NumCpus: 9 + DisplayNames: + key: + - DisplayNames + - DisplayNames + VmCreationTime: 2000-01-23T04:56:07.000+00:00 + VmVnicCount: 6 + PowerState: Unknown RemoteDisplayInfo: ObjectType: virtualization.VmwareRemoteDisplayInfo RemoteDisplayVncKey: RemoteDisplayVncKey ClassId: virtualization.VmwareRemoteDisplayInfo RemoteDisplayPassword: RemoteDisplayPassword - RemoteDisplayVncPort: 7 + RemoteDisplayVncPort: 4 ToolsVersion: ToolsVersion MemoryHotAddEnabled: true + CreateTime: 2000-01-23T04:56:07.000+00:00 ExtraConfig: "" Cluster: ObjectType: aaa.AuditRecord @@ -966867,6 +1010281,13 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector + MemoryCapacity: + ObjectType: virtualization.MemoryCapacity + Capacity: 5 + Used: 7 + ClassId: virtualization.MemoryCapacity + Free: 2 + AccountMoid: AccountMoid RemoteDisplayVncEnabled: true ParentFolder: ObjectType: aaa.AuditRecord @@ -966874,12 +1010295,25 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector Annotation: Annotation + Provider: Unknown + Uuid: Uuid MemShares: ObjectType: virtualization.VmwareVmMemoryShareInfo - MemShares: 1 - MemLimit: 4 - MemOverheadLimit: 7 + MemShares: 6 + MemLimit: 1 + MemOverheadLimit: 1 ClassId: virtualization.VmwareVmMemoryShareInfo MemReservation: 1 Datastores: @@ -966899,7 +1010333,19 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector + Moid: Moid + GuestInfo: + OperatingSystem: OperatingSystem + ObjectType: virtualization.GuestInfo + Hostname: Hostname + ClassId: virtualization.GuestInfo + IpAddress: IpAddress + Name: Name + IpAddress: + - IpAddress + - IpAddress VmPath: VmPath + CpuUtilization: 0.8008282 title: Virtualization:Vmware Virtual Machine x-allOf-name: virtualization.VmwareVirtualMachine virtualization.VmwareVirtualMachine.List: @@ -966986,10 +1010432,88 @@ components: type: object description: Common attributes of virtual GPU device on a VMware virtual machine. example: - ObjectType: virtualization.VmwareVirtualMachineGpu + BackingPciId: BackingPciId + Passthrough: true + RegisteredDevice: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + SharedScope: SharedScope + Parent: null + CreateTime: 2000-01-23T04:56:07.000+00:00 VmIdentity: VmIdentity ClassId: virtualization.VmwareVirtualMachineGpu + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Owners: + - Owners + - Owners + Name: Name + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: virtualization.VmwareVirtualMachineGpu + Moid: Moid + BackingPciDevice: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key Key: 0 + VirtualMachine: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector title: Virtualization:Vmware Virtual Machine Gpu x-allOf-name: virtualization.VmwareVirtualMachineGpu virtualization.VmwareVirtualMachineGpu.List: @@ -967108,17 +1010632,82 @@ components: type: object description: The virtual machine snapshot is represented here. example: - ObjectType: virtualization.VmwareVirtualMachineSnapshot SnapshotSize: 1 - CurrentSnapshot: true Description: Description PredecessorId: 6 + Parent: null + ClassId: virtualization.VmwareVirtualMachineSnapshot + Owners: + - Owners + - Owners + Name: Name + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: virtualization.VmwareVirtualMachineSnapshot RefValue: RefValue + DisplayNames: + key: + - DisplayNames + - DisplayNames + Identity: Identity + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key + Golden: true + CurrentSnapshot: true + RegisteredDevice: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + SharedScope: SharedScope Quiesced: true + CreateTime: 2000-01-23T04:56:07.000+00:00 + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector CreationTime: 2000-01-23T04:56:07.000+00:00 - ClassId: virtualization.VmwareVirtualMachineSnapshot + Moid: Moid Key: 0 - Golden: true VirtualMachine: ObjectType: aaa.AuditRecord link: link @@ -967250,20 +1010839,84 @@ components: type: object description: Details of VMware virtual network interface. example: - ObjectType: virtualization.VmwareVirtualNetworkInterface + Parent: null Connected: true - NetworkType: NetworkType AdapterType: AdapterType - VmIdentity: VmIdentity + ClassId: virtualization.VmwareVirtualNetworkInterface + Owners: + - Owners + - Owners + Name: Name + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: virtualization.VmwareVirtualNetworkInterface + NetworkType: NetworkType Network: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - ClassId: virtualization.VmwareVirtualNetworkInterface - MacAddress: MacAddress + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key ConnectAtPowerOn: true + RegisteredDevice: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + SharedScope: SharedScope + CreateTime: 2000-01-23T04:56:07.000+00:00 + VmIdentity: VmIdentity + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + MacAddress: MacAddress + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Moid: Moid Key: 0 MacAddressType: manual VirtualMachine: @@ -967409,7 +1011062,53 @@ components: type: object description: The VMware Virtual Switch object is represented here. example: + Parent: null + ClassId: virtualization.VmwareVirtualSwitch + NumNetworks: 6 + Owners: + - Owners + - Owners + Name: Name + Mtu: 0 + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified ObjectType: virtualization.VmwareVirtualSwitch + PromiscuousMode: Reject + NumPhysicalNetworkInterfaces: 1 + DisplayNames: + key: + - DisplayNames + - DisplayNames + Identity: Identity + ForgedTransmits: Reject + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key NicTeamingAndFailover: ObjectType: virtualization.VmwareTeamingAndFailover NetworkFailureDetection: linkStatus @@ -967424,8 +1011123,18 @@ components: - ActiveAdapters Failback: true Name: Name - PromiscuousMode: Reject - ClassId: virtualization.VmwareVirtualSwitch + RegisteredDevice: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + SharedScope: SharedScope + CreateTime: 2000-01-23T04:56:07.000+00:00 + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null MacAddressChanges: Reject Host: ObjectType: aaa.AuditRecord @@ -967433,10 +1011142,19 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector - NumPhysicalNetworkInterfaces: 1 - ForgedTransmits: Reject - NumNetworks: 6 - Mtu: 0 + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Moid: Moid title: Virtualization:Vmware Virtual Switch x-allOf-name: virtualization.VmwareVirtualSwitch virtualization.VmwareVirtualSwitch.List: @@ -967564,11 +1011282,11 @@ components: description: Information about the virtual machine's CPU sharing and limits. example: ObjectType: virtualization.VmwareVmCpuShareInfo - CpuOverheadLimit: 6 - CpuLimit: 0 - CpuShares: 5 + CpuOverheadLimit: 5 + CpuLimit: 1 + CpuShares: 2 ClassId: virtualization.VmwareVmCpuShareInfo - CpuReservation: 1 + CpuReservation: 5 nullable: true title: Virtualization:Vmware Vm Cpu Share Info x-allOf-name: virtualization.VmwareVmCpuShareInfo @@ -967619,11 +1011337,11 @@ components: description: "Information about the virtual machine's hardware platform (CPU,\ \ memory)." example: - CoresPerSocket: 5 + CoresPerSocket: 7 ObjectType: virtualization.VmwareVmCpuSocketInfo - NumSockets: 7 + NumSockets: 3 ClassId: virtualization.VmwareVmCpuSocketInfo - NumCpus: 2 + NumCpus: 9 nullable: true title: Virtualization:Vmware Vm Cpu Socket Info x-allOf-name: virtualization.VmwareVmCpuSocketInfo @@ -967677,9 +1011395,9 @@ components: \ and limits. For more information, see VMware documentation." example: ObjectType: virtualization.VmwareVmDiskCommitInfo - UnsharedDisk: 2 - UnCommittedDisk: 3 - CommittedDisk: 9 + UnsharedDisk: 7 + UnCommittedDisk: 4 + CommittedDisk: 2 ClassId: virtualization.VmwareVmDiskCommitInfo nullable: true title: Virtualization:Vmware Vm Disk Commit Info @@ -967739,9 +1011457,9 @@ components: \ For more information, see VMware documentation." example: ObjectType: virtualization.VmwareVmMemoryShareInfo - MemShares: 1 - MemLimit: 4 - MemOverheadLimit: 7 + MemShares: 6 + MemLimit: 1 + MemOverheadLimit: 1 ClassId: virtualization.VmwareVmMemoryShareInfo MemReservation: 1 nullable: true @@ -968081,13 +1011799,64 @@ components: description: Policy to configure virtual media settings on endpoint. example: LowPowerUsb: true - ObjectType: vmedia.Policy + Description: Description Organization: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + SharedScope: SharedScope + Parent: null + CreateTime: 2000-01-23T04:56:07.000+00:00 + Enabled: true + ClassId: vmedia.Policy + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + Encryption: true + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Owners: + - Owners + - Owners + Name: Name + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: vmedia.Policy Mappings: - VolumeName: VolumeName IsPasswordSet: false @@ -968130,9 +1011899,17 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector - Enabled: true - ClassId: vmedia.Policy - Encryption: true + Moid: Moid + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key title: Virtual Media x-allOf-name: vmedia.Policy vmedia.Policy.List: @@ -968234,13 +1012011,60 @@ components: description: Policy to configure virtual media settings on endpoint. example: LowPowerUsb: true - ObjectType: vmedia.PolicyInventory - TargetMo: - ObjectType: aaa.AuditRecord + Description: Description + SharedScope: SharedScope + Parent: null + CreateTime: 2000-01-23T04:56:07.000+00:00 + Enabled: true + ClassId: vmedia.PolicyInventory + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + Encryption: true + AccountMoid: AccountMoid + DeviceMoId: DeviceMoId + Ancestors: + - ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Owners: + - Owners + - Owners + Name: Name + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: vmedia.PolicyInventory + TargetMo: null Mappings: - VolumeName: VolumeName IsPasswordSet: false @@ -968272,9 +1012096,17 @@ components: HostName: HostName RemoteFile: RemoteFile Password: Password - Enabled: true - ClassId: vmedia.PolicyInventory - Encryption: true + Moid: Moid + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key title: Virtual Media x-allOf-name: vmedia.PolicyInventory vmedia.PolicyInventory.List: @@ -968352,14 +1012184,91 @@ components: type: object description: API to launch VMRC console to a VMware virtual machine. example: + User: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + EndTime: 2000-01-23T04:56:07.000+00:00 + Parent: null + ClassId: vmrc.Console + TargetName: TargetName + Owners: + - Owners + - Owners + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified ObjectType: vmrc.Console + Target: null + ClientIpAddress: ClientIpAddress + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key + Status: Active Vcenter: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - ClassId: vmrc.Console + SharedScope: SharedScope + CreateTime: 2000-01-23T04:56:07.000+00:00 + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Role: Role + ClientUrl: ClientUrl + Moid: Moid + UserIdOrEmail: UserIdOrEmail + Session: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector VirtualMachine: ObjectType: aaa.AuditRecord link: link @@ -968822,6 +1012731,7 @@ components: RingSize: 6829 ClassId: vnic.EthRxQueueSettings Count: 203 + Description: Description InterruptSettings: ObjectType: vnic.EthInterruptSettings CoalescingType: MIN @@ -968839,11 +1012749,73 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector + Parent: null + ClassId: vnic.EthAdapterPolicy + Owners: + - Owners + - Owners + Name: Name + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: vnic.EthAdapterPolicy + TxQueueSettings: + ObjectType: vnic.EthTxQueueSettings + RingSize: 2073 + ClassId: vnic.EthTxQueueSettings + Count: 738 + NvgreSettings: + ObjectType: vnic.NvgreSettings + Enabled: false + ClassId: vnic.NvgreSettings + RoceSettings: + ObjectType: vnic.RoceSettings + Version: 3 + ClassOfService: 5 + Enabled: true + QueuePairs: 5784 + ClassId: vnic.RoceSettings + MemoryRegions: 120698 + ResourceGroups: 119 + AdvancedFilter: false + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key + SharedScope: SharedScope CompletionQueueSettings: ObjectType: vnic.CompletionQueueSettings RingSize: 154 ClassId: vnic.CompletionQueueSettings Count: 161 + CreateTime: 2000-01-23T04:56:07.000+00:00 TcpOffloadSettings: LargeSend: true ObjectType: vnic.TcpOffloadSettings @@ -968868,32 +1012840,28 @@ components: ClassId: vnic.RssHashSettings TcpIpv6Hash: true UdpIpv4Hash: false - ClassId: vnic.EthAdapterPolicy + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector RssSettings: true - ObjectType: vnic.EthAdapterPolicy ArfsSettings: ObjectType: vnic.ArfsSettings Enabled: false ClassId: vnic.ArfsSettings - TxQueueSettings: - ObjectType: vnic.EthTxQueueSettings - RingSize: 2073 - ClassId: vnic.EthTxQueueSettings - Count: 738 - NvgreSettings: - ObjectType: vnic.NvgreSettings - Enabled: false - ClassId: vnic.NvgreSettings - RoceSettings: - ObjectType: vnic.RoceSettings - Version: 3 - ClassOfService: 5 - Enabled: true - QueuePairs: 5784 - ClassId: vnic.RoceSettings - MemoryRegions: 120698 - ResourceGroups: 119 - AdvancedFilter: false + Moid: Moid UplinkFailbackTimeout: 61 title: Ethernet Adapter x-allOf-name: vnic.EthAdapterPolicy @@ -969051,6 +1013019,7 @@ components: RingSize: 6829 ClassId: vnic.EthRxQueueSettings Count: 203 + Description: Description InterruptSettings: ObjectType: vnic.EthInterruptSettings CoalescingType: MIN @@ -969062,11 +1013031,73 @@ components: ObjectType: vnic.PtpSettings Enabled: false ClassId: vnic.PtpSettings + Parent: null + ClassId: vnic.EthAdapterPolicyInventory + Owners: + - Owners + - Owners + Name: Name + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: vnic.EthAdapterPolicyInventory + TxQueueSettings: + ObjectType: vnic.EthTxQueueSettings + RingSize: 2073 + ClassId: vnic.EthTxQueueSettings + Count: 738 + NvgreSettings: + ObjectType: vnic.NvgreSettings + Enabled: false + ClassId: vnic.NvgreSettings + RoceSettings: + ObjectType: vnic.RoceSettings + Version: 3 + ClassOfService: 5 + Enabled: true + QueuePairs: 5784 + ClassId: vnic.RoceSettings + MemoryRegions: 120698 + ResourceGroups: 119 + AdvancedFilter: false + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key + SharedScope: SharedScope CompletionQueueSettings: ObjectType: vnic.CompletionQueueSettings RingSize: 154 ClassId: vnic.CompletionQueueSettings Count: 161 + CreateTime: 2000-01-23T04:56:07.000+00:00 TcpOffloadSettings: LargeSend: true ObjectType: vnic.TcpOffloadSettings @@ -969091,38 +1013122,30 @@ components: ClassId: vnic.RssHashSettings TcpIpv6Hash: true UdpIpv4Hash: false - ClassId: vnic.EthAdapterPolicyInventory - RssSettings: true - ObjectType: vnic.EthAdapterPolicyInventory - ArfsSettings: - ObjectType: vnic.ArfsSettings - Enabled: false - ClassId: vnic.ArfsSettings - TargetMo: - ObjectType: aaa.AuditRecord + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + AccountMoid: AccountMoid + DeviceMoId: DeviceMoId + Ancestors: + - ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - TxQueueSettings: - ObjectType: vnic.EthTxQueueSettings - RingSize: 2073 - ClassId: vnic.EthTxQueueSettings - Count: 738 - NvgreSettings: - ObjectType: vnic.NvgreSettings + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + RssSettings: true + ArfsSettings: + ObjectType: vnic.ArfsSettings Enabled: false - ClassId: vnic.NvgreSettings - RoceSettings: - ObjectType: vnic.RoceSettings - Version: 3 - ClassOfService: 5 - Enabled: true - QueuePairs: 5784 - ClassId: vnic.RoceSettings - MemoryRegions: 120698 - ResourceGroups: 119 - AdvancedFilter: false + ClassId: vnic.ArfsSettings + TargetMo: null + Moid: Moid UplinkFailbackTimeout: 48 title: Ethernet Adapter x-allOf-name: vnic.EthAdapterPolicyInventory @@ -969350,6 +1013373,67 @@ components: type: object description: Virtual Ethernet Interface. example: + IscsiIpV4AddressAllocationType: None + VifId: 1 + StaticMacAddress: StaticMacAddress + FailoverEnabled: false + ClassId: vnic.EthIf + Cdn: + ObjectType: vnic.Cdn + Value: Value + ClassId: vnic.Cdn + Source: vnic + Name: Name + EthAdapterPolicy: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Placement: + ObjectType: vnic.PlacementSettings + AutoPciLink: false + AutoSlotId: false + ClassId: vnic.PlacementSettings + SwitchId: None + Id: Id + Uplink: 0 + PciLink: 0 + PciLinkAssignmentMode: Custom + VmqSettings: + NumSubVnics: 23 + ObjectType: vnic.VmqSettings + VmmqAdapterPolicy: VmmqAdapterPolicy + Enabled: false + ClassId: vnic.VmqSettings + MultiQueueSupport: false + NumVmqs: 26 + NumInterrupts: 478 + FabricEthNetworkControlPolicy: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + EthNetworkPolicy: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key + IscsiIpV4Config: + ObjectType: ippool.IpV4Config + PrimaryDns: PrimaryDns + Gateway: Gateway + ClassId: ippool.IpV4Config + Netmask: Netmask + SecondaryDns: SecondaryDns Order: 0 TemplateActions: - ObjectType: motemplate.ActionEntry @@ -969376,62 +1013460,42 @@ components: ClassId: motemplate.ActionParam Name: None ClassId: motemplate.ActionEntry - IscsiIpV4AddressAllocationType: None - VifId: 5 - StaticMacAddress: StaticMacAddress - OverriddenList: - - OverriddenList - - OverriddenList - ClassId: vnic.EthIf - MacAddress: MacAddress - LanConnectivityPolicy: - ObjectType: aaa.AuditRecord + SharedScope: SharedScope + FabricEthNetworkGroupPolicy: + - ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - MacLease: - ObjectType: aaa.AuditRecord + - ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - Profile: + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + MacAddress: MacAddress + MacLease: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - Name: Name - ObjectType: vnic.EthIf - Placement: - ObjectType: vnic.PlacementSettings - AutoPciLink: false - AutoSlotId: false - ClassId: vnic.PlacementSettings - SwitchId: None - Id: Id - Uplink: 0 - PciLink: 0 - PciLinkAssignmentMode: Custom - StandbyVifId: 5 - TemplateSyncStatus: None - IscsiIpv4Address: IscsiIpv4Address - IpLease: + MacPool: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + TemplateSyncStatus: None LcpVnic: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - SpVnics: - - null - - null SrcTemplate: ObjectType: aaa.AuditRecord link: link @@ -969447,13 +1013511,107 @@ components: Type: Transient Message: Message ClassId: motemplate.SyncError - IscsiIpV4Config: - ObjectType: ippool.IpV4Config - PrimaryDns: PrimaryDns - Gateway: Gateway - ClassId: ippool.IpV4Config - Netmask: Netmask - SecondaryDns: SecondaryDns + Parent: null + UsnicSettings: + ObjectType: vnic.UsnicSettings + UsnicAdapterPolicy: UsnicAdapterPolicy + Cos: 1 + ClassId: vnic.UsnicSettings + Count: 158 + Profile: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Owners: + - Owners + - Owners + EthQosPolicy: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + IscsiBootPolicy: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + SriovSettings: + TxCountPerVf: 5 + ObjectType: vnic.SriovSettings + VfCount: 36 + Enabled: true + ClassId: vnic.SriovSettings + IntCountPerVf: 10 + RxCountPerVf: 2 + CompCountPerVf: 2 + ObjectType: vnic.EthIf + SpVnics: + - null + - null + DisplayNames: + key: + - DisplayNames + - DisplayNames + PinGroupName: PinGroupName + CreateTime: 2000-01-23T04:56:07.000+00:00 + OverriddenList: + - OverriddenList + - OverriddenList + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + LanConnectivityPolicy: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + StandbyVifId: 1 + IscsiIpv4Address: IscsiIpv4Address + IpLease: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Moid: Moid MacAddressType: POOL title: Virtual Ethernet Interface x-allOf-name: vnic.EthIf @@ -969728,44 +1013886,16 @@ components: description: Virtual Ethernet Interface. example: IscsiIpV4AddressAllocationType: None - VifId: 2 + VifId: 1 StaticMacAddress: StaticMacAddress FailoverEnabled: false ClassId: vnic.EthIfInventory - UsnicSettings: - ObjectType: vnic.UsnicSettings - UsnicAdapterPolicy: UsnicAdapterPolicy - Cos: 5 - ClassId: vnic.UsnicSettings - Count: 81 Cdn: ObjectType: vnic.Cdn Value: Value ClassId: vnic.Cdn Source: vnic Name: Name - EthQosPolicy: - ObjectType: aaa.AuditRecord - link: link - Moid: Moid - ClassId: mo.MoRef - Selector: Selector - IscsiBootPolicy: - ObjectType: aaa.AuditRecord - link: link - Moid: Moid - ClassId: mo.MoRef - Selector: Selector - SriovSettings: - TxCountPerVf: 4 - ObjectType: vnic.SriovSettings - VfCount: 15 - Enabled: true - ClassId: vnic.SriovSettings - IntCountPerVf: 3 - RxCountPerVf: 5 - CompCountPerVf: 10 - ObjectType: vnic.EthIfInventory EthAdapterPolicy: ObjectType: aaa.AuditRecord link: link @@ -969783,17 +1013913,14 @@ components: PciLink: 0 PciLinkAssignmentMode: Custom VmqSettings: - NumSubVnics: 47 + NumSubVnics: 23 ObjectType: vnic.VmqSettings VmmqAdapterPolicy: VmmqAdapterPolicy Enabled: false ClassId: vnic.VmqSettings MultiQueueSupport: false - NumVmqs: 16 - NumInterrupts: 213 - SpVnics: - - null - - null + NumVmqs: 26 + NumInterrupts: 478 FabricEthNetworkControlPolicy: ObjectType: aaa.AuditRecord link: link @@ -969806,6 +1013933,12 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key IscsiIpV4Config: ObjectType: ippool.IpV4Config PrimaryDns: PrimaryDns @@ -969813,7 +1013946,6 @@ components: ClassId: ippool.IpV4Config Netmask: Netmask SecondaryDns: SecondaryDns - PinGroupName: PinGroupName Order: 0 TemplateActions: - ObjectType: motemplate.ActionEntry @@ -969840,9 +1013972,7 @@ components: ClassId: motemplate.ActionParam Name: None ClassId: motemplate.ActionEntry - OverriddenList: - - OverriddenList - - OverriddenList + SharedScope: SharedScope FabricEthNetworkGroupPolicy: - ObjectType: aaa.AuditRecord link: link @@ -969854,13 +1013984,12 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null MacAddress: MacAddress - LanConnectivityPolicy: - ObjectType: aaa.AuditRecord - link: link - Moid: Moid - ClassId: mo.MoRef - Selector: Selector + DeviceMoId: DeviceMoId MacLease: ObjectType: aaa.AuditRecord link: link @@ -969873,15 +1014002,7 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector - StandbyVifId: 7 TemplateSyncStatus: None - IscsiIpv4Address: IscsiIpv4Address - IpLease: - ObjectType: aaa.AuditRecord - link: link - Moid: Moid - ClassId: mo.MoRef - Selector: Selector LcpVnic: ObjectType: aaa.AuditRecord link: link @@ -969903,6 +1014024,101 @@ components: Type: Transient Message: Message ClassId: motemplate.SyncError + Parent: null + UsnicSettings: + ObjectType: vnic.UsnicSettings + UsnicAdapterPolicy: UsnicAdapterPolicy + Cos: 1 + ClassId: vnic.UsnicSettings + Count: 158 + Owners: + - Owners + - Owners + EthQosPolicy: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + IscsiBootPolicy: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + SriovSettings: + TxCountPerVf: 5 + ObjectType: vnic.SriovSettings + VfCount: 36 + Enabled: true + ClassId: vnic.SriovSettings + IntCountPerVf: 10 + RxCountPerVf: 2 + CompCountPerVf: 2 + ObjectType: vnic.EthIfInventory + SpVnics: + - null + - null + DisplayNames: + key: + - DisplayNames + - DisplayNames + PinGroupName: PinGroupName + CreateTime: 2000-01-23T04:56:07.000+00:00 + OverriddenList: + - OverriddenList + - OverriddenList + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + LanConnectivityPolicy: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + StandbyVifId: 6 + IscsiIpv4Address: IscsiIpv4Address + IpLease: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Moid: Moid MacAddressType: POOL title: Virtual Ethernet Interface x-allOf-name: vnic.EthIfInventory @@ -970088,13 +1014304,16 @@ components: VLAN (Access) or multiple VLANs (Trunk) traffic. You can specify the VLAN to be associated with an Ethernet packet if no tag is found. example: - ObjectType: vnic.EthNetworkPolicy + Description: Description Organization: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + SharedScope: SharedScope + Parent: null + CreateTime: 2000-01-23T04:56:07.000+00:00 VlanSettings: ObjectType: vnic.VlanSettings QinqEnabled: false @@ -970104,7 +1014323,63 @@ components: DefaultVlan: 327 QinqVlan: 2467 ClassId: vnic.EthNetworkPolicy + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Owners: + - Owners + - Owners + Name: Name + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: vnic.EthNetworkPolicy + Moid: Moid TargetPlatform: Standalone + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key title: Ethernet Network x-allOf-name: vnic.EthNetworkPolicy vnic.EthNetworkPolicy.List: @@ -970208,13 +1014483,10 @@ components: VLAN (Access) or multiple VLANs (Trunk) traffic. You can specify the VLAN to be associated with an Ethernet packet if no tag is found. example: - ObjectType: vnic.EthNetworkPolicyInventory - TargetMo: - ObjectType: aaa.AuditRecord - link: link - Moid: Moid - ClassId: mo.MoRef - Selector: Selector + Description: Description + SharedScope: SharedScope + Parent: null + CreateTime: 2000-01-23T04:56:07.000+00:00 VlanSettings: ObjectType: vnic.VlanSettings QinqEnabled: false @@ -970224,7 +1014496,65 @@ components: DefaultVlan: 327 QinqVlan: 2467 ClassId: vnic.EthNetworkPolicyInventory + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + AccountMoid: AccountMoid + DeviceMoId: DeviceMoId + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Owners: + - Owners + - Owners + Name: Name + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: vnic.EthNetworkPolicyInventory + TargetMo: null + Moid: Moid TargetPlatform: Standalone + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key title: Ethernet Network x-allOf-name: vnic.EthNetworkPolicyInventory vnic.EthNetworkPolicyInventory.List: @@ -970373,20 +1014703,79 @@ components: of service for the outgoing traffic. For certain adapters additional controls can be specified like burst and rate on the outgoing traffic. example: - ObjectType: vnic.EthQosPolicy - RateLimit: 59621 + Description: Description Organization: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + SharedScope: SharedScope + Parent: null Cos: 3 Priority: Best Effort - Burst: 80083 + CreateTime: 2000-01-23T04:56:07.000+00:00 ClassId: vnic.EthQosPolicy + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null TrustHostCos: false + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Owners: + - Owners + - Owners + Name: Name Mtu: 2599 + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: vnic.EthQosPolicy + RateLimit: 59621 + Burst: 80083 + Moid: Moid + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key title: Ethernet QoS x-allOf-name: vnic.EthQosPolicy vnic.EthQosPolicy.List: @@ -970540,20 +1014929,75 @@ components: of service for the outgoing traffic. For certain adapters additional controls can be specified like burst and rate on the outgoing traffic. example: + Description: Description + Parent: null + ClassId: vnic.EthQosPolicyInventory + TrustHostCos: false + Owners: + - Owners + - Owners + Name: Name + Mtu: 2599 + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified ObjectType: vnic.EthQosPolicyInventory RateLimit: 59621 - TargetMo: - ObjectType: aaa.AuditRecord + Burst: 80083 + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key + SharedScope: SharedScope + Cos: 3 + Priority: Best Effort + CreateTime: 2000-01-23T04:56:07.000+00:00 + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + AccountMoid: AccountMoid + DeviceMoId: DeviceMoId + Ancestors: + - ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - Cos: 3 - Priority: Best Effort - Burst: 80083 - ClassId: vnic.EthQosPolicyInventory - TrustHostCos: false - Mtu: 2599 + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + TargetMo: null + Moid: Moid title: Ethernet QoS x-allOf-name: vnic.EthQosPolicyInventory vnic.EthQosPolicyInventory.List: @@ -970784,19 +1015228,72 @@ components: type: object description: QoS settings on FI corresponding to a server’s vNIC. example: - ObjectType: vnic.EthVethInventory - RateLimit: 60274 - TargetMo: - ObjectType: aaa.AuditRecord + Description: Description + SharedScope: SharedScope + Parent: null + Priority: Best Effort + CreateTime: 2000-01-23T04:56:07.000+00:00 + ClassId: vnic.EthVethInventory + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + AccountMoid: AccountMoid + DeviceMoId: DeviceMoId + Ancestors: + - ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - Description: Description - Priority: Best Effort - Burst: 81024 - ClassId: vnic.EthVethInventory + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Owners: + - Owners + - Owners Name: Name + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: vnic.EthVethInventory + RateLimit: 60274 + TargetMo: null + Burst: 81024 + Moid: Moid + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key title: Vethernet x-allOf-name: vnic.EthVethInventory vnic.EthVethInventory.List: @@ -970898,18 +1015395,71 @@ components: type: object description: QoS settings of server’s vNIC. example: - ObjectType: vnic.EthVnicInventory - TargetMo: - ObjectType: aaa.AuditRecord + SharedScope: SharedScope + Parent: null + Cos: 0 + CreateTime: 2000-01-23T04:56:07.000+00:00 + ClassId: vnic.EthVnicInventory + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + TrustHostCos: false + AccountMoid: AccountMoid + DeviceMoId: DeviceMoId + Ancestors: + - ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - Cos: 0 - ClassId: vnic.EthVnicInventory - TrustHostCos: false + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Owners: + - Owners + - Owners Mtu: 6 Name: Name + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: vnic.EthVnicInventory + TargetMo: null + Moid: Moid + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key title: Ethernet vnic x-allOf-name: vnic.EthVnicInventory vnic.EthVnicInventory.List: @@ -971065,7 +1015615,6 @@ components: \ FCP Error Recovery, change the default settings of Queues and Interrupt\ \ handling for performance enhancement." example: - IoThrottleCount: 952 LunCount: 1481 LunQueueDepth: 52 RxQueueSettings: @@ -971073,6 +1015622,7 @@ components: RingSize: 64 ClassId: vnic.FcQueueSettings Count: 1 + Description: Description InterruptSettings: ObjectType: vnic.FcInterruptSettings Mode: MSIx @@ -971088,13 +1015638,36 @@ components: Retries: 0 Timeout: 180359 ClassId: vnic.FlogiSettings + Parent: null ClassId: vnic.FcAdapterPolicy - ResourceAllocationTimeout: 16699 - PlogiSettings: - ObjectType: vnic.PlogiSettings - Retries: 105 - Timeout: 188611 - ClassId: vnic.PlogiSettings + Owners: + - Owners + - Owners + Name: Name + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified ObjectType: vnic.FcAdapterPolicy TxQueueSettings: ObjectType: vnic.FcQueueSettings @@ -971109,6 +1015682,42 @@ components: ClassId: vnic.FcErrorRecoverySettings LinkDownTimeout: 143091 PortDownTimeout: 135297 + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key + IoThrottleCount: 952 + SharedScope: SharedScope + CreateTime: 2000-01-23T04:56:07.000+00:00 + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ResourceAllocationTimeout: 16699 + PlogiSettings: + ObjectType: vnic.PlogiSettings + Retries: 105 + Timeout: 188611 + ClassId: vnic.PlogiSettings + Moid: Moid ErrorDetectionTimeout: 8928 ScsiQueueSettings: ObjectType: vnic.ScsiQueueSettings @@ -971276,7 +1015885,6 @@ components: \ FCP Error Recovery, change the default settings of Queues and Interrupt\ \ handling for performance enhancement." example: - IoThrottleCount: 617 LunCount: 601 LunQueueDepth: 151 RxQueueSettings: @@ -971284,6 +1015892,7 @@ components: RingSize: 64 ClassId: vnic.FcQueueSettings Count: 1 + Description: Description InterruptSettings: ObjectType: vnic.FcInterruptSettings Mode: MSIx @@ -971293,20 +1015902,37 @@ components: Retries: 0 Timeout: 180359 ClassId: vnic.FlogiSettings + Parent: null ClassId: vnic.FcAdapterPolicyInventory - ResourceAllocationTimeout: 58555 - PlogiSettings: - ObjectType: vnic.PlogiSettings - Retries: 105 - Timeout: 188611 - ClassId: vnic.PlogiSettings + Owners: + - Owners + - Owners + Name: Name + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified ObjectType: vnic.FcAdapterPolicyInventory - TargetMo: - ObjectType: aaa.AuditRecord - link: link - Moid: Moid - ClassId: mo.MoRef - Selector: Selector TxQueueSettings: ObjectType: vnic.FcQueueSettings RingSize: 64 @@ -971320,6 +1015946,44 @@ components: ClassId: vnic.FcErrorRecoverySettings LinkDownTimeout: 143091 PortDownTimeout: 135297 + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key + IoThrottleCount: 617 + SharedScope: SharedScope + CreateTime: 2000-01-23T04:56:07.000+00:00 + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + AccountMoid: AccountMoid + DeviceMoId: DeviceMoId + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ResourceAllocationTimeout: 58555 + PlogiSettings: + ObjectType: vnic.PlogiSettings + Retries: 105 + Timeout: 188611 + ClassId: vnic.PlogiSettings + TargetMo: null + Moid: Moid ErrorDetectionTimeout: 8928 ScsiQueueSettings: ObjectType: vnic.ScsiQueueSettings @@ -971602,6 +1016266,84 @@ components: type: object description: Virtual Fibre Channel Interface. example: + VifId: 6 + Parent: null + WwpnLease: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + PersistentBindings: true + ClassId: vnic.FcIf + Profile: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Owners: + - Owners + - Owners + Name: Name + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: vnic.FcIf + SanConnectivityPolicy: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + WwpnAddressType: POOL + Placement: + ObjectType: vnic.PlacementSettings + AutoPciLink: false + AutoSlotId: false + ClassId: vnic.PlacementSettings + SwitchId: None + Id: Id + Uplink: 0 + PciLink: 0 + PciLinkAssignmentMode: Custom + StaticWwpnAddress: StaticWwpnAddress + SpVhbas: + - null + - null + Wwpn: Wwpn + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key + PinGroupName: PinGroupName Order: 0 TemplateActions: - ObjectType: motemplate.ActionEntry @@ -971628,46 +1016370,63 @@ components: ClassId: motemplate.ActionParam Name: None ClassId: motemplate.ActionEntry - VifId: 6 - WwpnLease: + WwpnPool: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + SharedScope: SharedScope + CreateTime: 2000-01-23T04:56:07.000+00:00 OverriddenList: - OverriddenList - OverriddenList - ClassId: vnic.FcIf - Profile: + FcNetworkPolicy: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - Name: Name - ObjectType: vnic.FcIf - SanConnectivityPolicy: - ObjectType: aaa.AuditRecord + FcZonePolicies: + - ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - WwpnAddressType: POOL - Placement: - ObjectType: vnic.PlacementSettings - AutoPciLink: false - AutoSlotId: false - ClassId: vnic.PlacementSettings - SwitchId: None - Id: Id - Uplink: 0 - PciLink: 0 - PciLinkAssignmentMode: Custom - StaticWwpnAddress: StaticWwpnAddress - SpVhbas: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + DomainGroupMoid: DomainGroupMoid + PermissionResources: - null - null + FcAdapterPolicy: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Type: fc-initiator + FcQosPolicy: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector TemplateSyncStatus: None ScpVhba: ObjectType: aaa.AuditRecord @@ -971675,13 +1016434,13 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector - Wwpn: Wwpn SrcTemplate: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + Moid: Moid TemplateSyncErrors: - ObjectType: motemplate.SyncError Type: Transient @@ -971930,6 +1016689,7 @@ components: description: Virtual Fibre Channel Interface. example: VifId: 6 + Parent: null WwpnLease: ObjectType: aaa.AuditRecord link: link @@ -971938,7 +1016698,34 @@ components: Selector: Selector PersistentBindings: true ClassId: vnic.FcIfInventory + Owners: + - Owners + - Owners Name: Name + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified ObjectType: vnic.FcIfInventory SanConnectivityPolicy: ObjectType: aaa.AuditRecord @@ -971962,6 +1016749,16 @@ components: - null - null Wwpn: Wwpn + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key PinGroupName: PinGroupName Order: 0 TemplateActions: @@ -971995,6 +1016792,8 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector + SharedScope: SharedScope + CreateTime: 2000-01-23T04:56:07.000+00:00 OverriddenList: - OverriddenList - OverriddenList @@ -972015,12 +1016814,29 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null FcAdapterPolicy: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + AccountMoid: AccountMoid + DeviceMoId: DeviceMoId + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector Type: fc-initiator FcQosPolicy: ObjectType: aaa.AuditRecord @@ -972041,6 +1016857,7 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector + Moid: Moid TemplateSyncErrors: - ObjectType: motemplate.SyncError Type: Transient @@ -972188,19 +1017005,78 @@ components: description: A Fibre Channel Network policy governs the vSAN configuration for the virtual interfaces. example: - ObjectType: vnic.FcNetworkPolicy + Description: Description Organization: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + SharedScope: SharedScope + Parent: null + CreateTime: 2000-01-23T04:56:07.000+00:00 ClassId: vnic.FcNetworkPolicy + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Owners: + - Owners + - Owners + Name: Name VsanSettings: DefaultVlanId: 327 ObjectType: vnic.VsanSettings ClassId: vnic.VsanSettings Id: 2468 + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: vnic.FcNetworkPolicy + Moid: Moid + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key title: Fibre Channel Network x-allOf-name: vnic.FcNetworkPolicy vnic.FcNetworkPolicy.List: @@ -972290,19 +1017166,74 @@ components: description: A Fibre Channel Network policy governs the vSAN configuration for the virtual interfaces. example: - ObjectType: vnic.FcNetworkPolicyInventory - TargetMo: - ObjectType: aaa.AuditRecord + Description: Description + SharedScope: SharedScope + Parent: null + CreateTime: 2000-01-23T04:56:07.000+00:00 + ClassId: vnic.FcNetworkPolicyInventory + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + AccountMoid: AccountMoid + DeviceMoId: DeviceMoId + Ancestors: + - ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - ClassId: vnic.FcNetworkPolicyInventory + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Owners: + - Owners + - Owners + Name: Name VsanSettings: DefaultVlanId: 327 ObjectType: vnic.VsanSettings ClassId: vnic.VsanSettings Id: 2468 + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: vnic.FcNetworkPolicyInventory + TargetMo: null + Moid: Moid + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key title: Fibre Channel Network x-allOf-name: vnic.FcNetworkPolicyInventory vnic.FcNetworkPolicyInventory.List: @@ -972446,19 +1017377,78 @@ components: quality of service for the outgoing traffic. For certain adapters additional controls can also be specified like burst and rate on the outgoing traffic. example: - ObjectType: vnic.FcQosPolicy - RateLimit: 59621 + Description: Description Organization: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + SharedScope: SharedScope + Parent: null Cos: 3 Priority: Best Effort - Burst: 80083 + CreateTime: 2000-01-23T04:56:07.000+00:00 ClassId: vnic.FcQosPolicy + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null MaxDataFieldSize: 528 + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Owners: + - Owners + - Owners + Name: Name + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: vnic.FcQosPolicy + RateLimit: 59621 + Burst: 80083 + Moid: Moid + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key title: Fibre Channel QoS x-allOf-name: vnic.FcQosPolicy vnic.FcQosPolicy.List: @@ -972605,19 +1017595,74 @@ components: quality of service for the outgoing traffic. For certain adapters additional controls can also be specified like burst and rate on the outgoing traffic. example: - ObjectType: vnic.FcQosPolicyInventory - RateLimit: 59621 - TargetMo: - ObjectType: aaa.AuditRecord + Description: Description + SharedScope: SharedScope + Parent: null + Cos: 3 + Priority: Best Effort + CreateTime: 2000-01-23T04:56:07.000+00:00 + ClassId: vnic.FcQosPolicyInventory + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + MaxDataFieldSize: 528 + AccountMoid: AccountMoid + DeviceMoId: DeviceMoId + Ancestors: + - ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - Cos: 3 - Priority: Best Effort + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Owners: + - Owners + - Owners + Name: Name + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: vnic.FcQosPolicyInventory + RateLimit: 59621 + TargetMo: null Burst: 80083 - ClassId: vnic.FcQosPolicyInventory - MaxDataFieldSize: 528 + Moid: Moid + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key title: Fibre Channel QoS x-allOf-name: vnic.FcQosPolicyInventory vnic.FcQosPolicyInventory.List: @@ -972777,18 +1017822,71 @@ components: quality of service for the outgoing traffic. For certain adapters additional controls can also be specified like burst and rate on the outgoing traffic. example: - ObjectType: vnic.FcVethInventory - RateLimit: 60274 - TargetMo: - ObjectType: aaa.AuditRecord + Description: Description + SharedScope: SharedScope + Parent: null + CreateTime: 2000-01-23T04:56:07.000+00:00 + ClassId: vnic.FcVethInventory + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + AccountMoid: AccountMoid + DeviceMoId: DeviceMoId + Ancestors: + - ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - Description: Description - Burst: 81024 - ClassId: vnic.FcVethInventory + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Owners: + - Owners + - Owners Name: Name + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: vnic.FcVethInventory + RateLimit: 60274 + TargetMo: null + Burst: 81024 + Moid: Moid + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key title: Fibre Channel Vethernet x-allOf-name: vnic.FcVethInventory vnic.FcVethInventory.List: @@ -972909,18 +1018007,71 @@ components: quality of service for the outgoing traffic. For certain adapters additional controls can also be specified like burst and rate on the outgoing traffic. example: - ObjectType: vnic.FcVhbaPolicyInventory - TargetMo: - ObjectType: aaa.AuditRecord - link: link - Moid: Moid - ClassId: mo.MoRef - Selector: Selector + SharedScope: SharedScope + Parent: null Cos: 0 Priority: Best Effort + CreateTime: 2000-01-23T04:56:07.000+00:00 ClassId: vnic.FcVhbaPolicyInventory + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null MaxDataFieldSize: 1374 + AccountMoid: AccountMoid + DeviceMoId: DeviceMoId + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Owners: + - Owners + - Owners Name: Name + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: vnic.FcVhbaPolicyInventory + TargetMo: null + Moid: Moid + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key title: Fibre Channel Vhba x-allOf-name: vnic.FcVhbaPolicyInventory vnic.FcVhbaPolicyInventory.List: @@ -973086,17 +1018237,76 @@ components: description: Set of iSCSI properties that govern the host-side behavior of the adapter. example: - ObjectType: vnic.IscsiAdapterPolicy ConnectionTimeOut: 20 + Description: Description Organization: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + SharedScope: SharedScope + Parent: null + CreateTime: 2000-01-23T04:56:07.000+00:00 DhcpTimeout: 204 ClassId: vnic.IscsiAdapterPolicy + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null LunBusyRetryCount: 8 + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Owners: + - Owners + - Owners + Name: Name + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: vnic.IscsiAdapterPolicy + Moid: Moid + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key title: iSCSI Adapter x-allOf-name: vnic.IscsiAdapterPolicy vnic.IscsiAdapterPolicy.List: @@ -973211,17 +1018421,72 @@ components: description: Set of iSCSI properties that govern the host-side behavior of the adapter. example: - ObjectType: vnic.IscsiAdapterPolicyInventory ConnectionTimeOut: 20 - TargetMo: - ObjectType: aaa.AuditRecord + Description: Description + SharedScope: SharedScope + Parent: null + CreateTime: 2000-01-23T04:56:07.000+00:00 + DhcpTimeout: 204 + ClassId: vnic.IscsiAdapterPolicyInventory + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + LunBusyRetryCount: 8 + AccountMoid: AccountMoid + DeviceMoId: DeviceMoId + Ancestors: + - ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - DhcpTimeout: 204 - ClassId: vnic.IscsiAdapterPolicyInventory - LunBusyRetryCount: 8 + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Owners: + - Owners + - Owners + Name: Name + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: vnic.IscsiAdapterPolicyInventory + TargetMo: null + Moid: Moid + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key title: iSCSI Adapter x-allOf-name: vnic.IscsiAdapterPolicyInventory vnic.IscsiAdapterPolicyInventory.List: @@ -973419,7 +1018684,7 @@ components: description: Configuration parameters to enable a server to boot its operating system from an iSCSI target machine located remotely over a network. example: - InitiatorStaticIpV4Address: InitiatorStaticIpV4Address + Description: Description InitiatorStaticIpV4Config: ObjectType: ippool.IpV4Config PrimaryDns: PrimaryDns @@ -973434,13 +1018699,42 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector + Parent: null ClassId: vnic.IscsiBootPolicy + Owners: + - Owners + - Owners + Name: Name IscsiAdapterPolicy: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified ObjectType: vnic.IscsiBootPolicy InitiatorIpSource: DHCP Chap: @@ -973455,7 +1018749,6 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector - AutoTargetvendorName: AutoTargetvendorName SecondaryTargetPolicy: null InitiatorIpPool: ObjectType: aaa.AuditRecord @@ -973463,12 +1018756,43 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key MutualChap: ObjectType: vnic.IscsiAuthProfile IsPasswordSet: false UserId: UserId ClassId: vnic.IscsiAuthProfile Password: Password + InitiatorStaticIpV4Address: InitiatorStaticIpV4Address + SharedScope: SharedScope + CreateTime: 2000-01-23T04:56:07.000+00:00 + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Moid: Moid + AutoTargetvendorName: AutoTargetvendorName title: iSCSI Boot x-allOf-name: vnic.IscsiBootPolicy vnic.IscsiBootPolicy.List: @@ -973610,7 +1018934,7 @@ components: description: Configuration parameters to enable a server to boot its operating system from an iSCSI target machine located remotely over a network. example: - InitiatorStaticIpV4Address: InitiatorStaticIpV4Address + Description: Description InitiatorStaticIpV4Config: ObjectType: ippool.IpV4Config PrimaryDns: PrimaryDns @@ -973619,21 +1018943,44 @@ components: Netmask: Netmask SecondaryDns: SecondaryDns TargetSourceType: Static + Parent: null ClassId: vnic.IscsiBootPolicyInventory + Owners: + - Owners + - Owners + Name: Name IscsiAdapterPolicy: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified ObjectType: vnic.IscsiBootPolicyInventory InitiatorIpSource: DHCP - TargetMo: - ObjectType: aaa.AuditRecord - link: link - Moid: Moid - ClassId: mo.MoRef - Selector: Selector Chap: ObjectType: vnic.IscsiAuthProfile IsPasswordSet: false @@ -973646,7 +1018993,6 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector - AutoTargetvendorName: AutoTargetvendorName SecondaryTargetPolicy: null InitiatorIpPool: ObjectType: aaa.AuditRecord @@ -973654,12 +1019000,45 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key MutualChap: ObjectType: vnic.IscsiAuthProfile IsPasswordSet: false UserId: UserId ClassId: vnic.IscsiAuthProfile Password: Password + InitiatorStaticIpV4Address: InitiatorStaticIpV4Address + SharedScope: SharedScope + CreateTime: 2000-01-23T04:56:07.000+00:00 + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + AccountMoid: AccountMoid + DeviceMoId: DeviceMoId + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + TargetMo: null + Moid: Moid + AutoTargetvendorName: AutoTargetvendorName title: iSCSI Boot x-allOf-name: vnic.IscsiBootPolicyInventory vnic.IscsiBootPolicyInventory.List: @@ -973768,7 +1019147,7 @@ components: description: Configuration parameters that defines the reachability of iSCSI Target portal. example: - ObjectType: vnic.IscsiStaticTargetPolicy + Description: Description Organization: ObjectType: aaa.AuditRecord link: link @@ -973780,10 +1019159,69 @@ components: LunId: 0 Bootable: true ClassId: vnic.Lun + SharedScope: SharedScope + Parent: null + CreateTime: 2000-01-23T04:56:07.000+00:00 Port: 39501 ClassId: vnic.IscsiStaticTargetPolicy - IpAddress: IpAddress + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null TargetName: TargetName + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Owners: + - Owners + - Owners + Name: Name + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: vnic.IscsiStaticTargetPolicy + Moid: Moid + IpAddress: IpAddress + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key title: iSCSI Static Target x-allOf-name: vnic.IscsiStaticTargetPolicy vnic.IscsiStaticTargetPolicy.List: @@ -973896,22 +1019334,77 @@ components: description: Configuration parameters that defines the reachability of iSCSI Target portal. example: - ObjectType: vnic.IscsiStaticTargetPolicyInventory - TargetMo: - ObjectType: aaa.AuditRecord - link: link - Moid: Moid - ClassId: mo.MoRef - Selector: Selector + Description: Description Lun: ObjectType: vnic.Lun LunId: 0 Bootable: true ClassId: vnic.Lun + SharedScope: SharedScope + Parent: null + CreateTime: 2000-01-23T04:56:07.000+00:00 Port: 5249 ClassId: vnic.IscsiStaticTargetPolicyInventory - IpAddress: IpAddress + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null TargetName: TargetName + AccountMoid: AccountMoid + DeviceMoId: DeviceMoId + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Owners: + - Owners + - Owners + Name: Name + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: vnic.IscsiStaticTargetPolicyInventory + TargetMo: null + Moid: Moid + IpAddress: IpAddress + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key title: iSCSI Static Target x-allOf-name: vnic.IscsiStaticTargetPolicyInventory vnic.IscsiStaticTargetPolicyInventory.List: @@ -974065,7 +1019558,7 @@ components: uses Consistent Device Naming to configure the vNIC. You can configure a usNIC or VMQ connection for the vNIC to improve network performance. example: - ObjectType: vnic.LanConnectivityPolicy + Description: Description AzureQosEnabled: false Organization: ObjectType: aaa.AuditRecord @@ -974073,6 +1019566,43 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector + Parent: null + ClassId: vnic.LanConnectivityPolicy + IqnPool: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Owners: + - Owners + - Owners + Name: Name + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: vnic.LanConnectivityPolicy Profiles: - ObjectType: aaa.AuditRecord link: link @@ -974084,9 +1019614,23 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector - IqnAllocationType: None - ClassId: vnic.LanConnectivityPolicy TargetPlatform: Standalone + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key + SharedScope: SharedScope + CreateTime: 2000-01-23T04:56:07.000+00:00 + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null PlacementMode: custom EthIfs: - ObjectType: aaa.AuditRecord @@ -974099,12 +1019643,20 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector - IqnPool: - ObjectType: aaa.AuditRecord + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + IqnAllocationType: None + Moid: Moid StaticIqnName: StaticIqnName title: LAN Connectivity x-allOf-name: vnic.LanConnectivityPolicy @@ -974259,17 +1019811,62 @@ components: uses Consistent Device Naming to configure the vNIC. You can configure a usNIC or VMQ connection for the vNIC to improve network performance. example: - ObjectType: vnic.LanConnectivityPolicyInventory - TargetMo: + Description: Description + AzureQosEnabled: false + Parent: null + ClassId: vnic.LanConnectivityPolicyInventory + IqnPool: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - AzureQosEnabled: false - IqnAllocationType: None - ClassId: vnic.LanConnectivityPolicyInventory + Owners: + - Owners + - Owners + Name: Name + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: vnic.LanConnectivityPolicyInventory TargetPlatform: Standalone + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key + SharedScope: SharedScope + CreateTime: 2000-01-23T04:56:07.000+00:00 + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null PlacementMode: custom EthIfs: - ObjectType: aaa.AuditRecord @@ -974282,12 +1019879,22 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector - IqnPool: - ObjectType: aaa.AuditRecord + AccountMoid: AccountMoid + DeviceMoId: DeviceMoId + Ancestors: + - ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + TargetMo: null + IqnAllocationType: None + Moid: Moid StaticIqnName: StaticIqnName title: LAN Connectivity x-allOf-name: vnic.LanConnectivityPolicyInventory @@ -975107,6 +1020714,49 @@ components: enables configuration of vHBAs that the servers use to communicate with the storage network. example: + Description: Description + Organization: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Parent: null + WwnnPool: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: vnic.SanConnectivityPolicy + Owners: + - Owners + - Owners + Name: Name + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified ObjectType: vnic.SanConnectivityPolicy FcIfs: - ObjectType: aaa.AuditRecord @@ -975120,33 +1020770,49 @@ components: ClassId: mo.MoRef Selector: Selector StaticWwnnAddress: StaticWwnnAddress - WwnnAddressType: POOL - Organization: - ObjectType: aaa.AuditRecord + Profiles: + - ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - Profiles: - ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector + TargetPlatform: Standalone + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key + SharedScope: SharedScope + CreateTime: 2000-01-23T04:56:07.000+00:00 + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + PlacementMode: custom + AccountMoid: AccountMoid + Ancestors: - ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - WwnnPool: - ObjectType: aaa.AuditRecord + - ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - ClassId: vnic.SanConnectivityPolicy - TargetPlatform: Standalone - PlacementMode: custom + WwnnAddressType: POOL + Moid: Moid title: SAN Connectivity x-allOf-name: vnic.SanConnectivityPolicy vnic.SanConnectivityPolicy.List: @@ -975290,6 +1020956,43 @@ components: enables configuration of vHBAs that the servers use to communicate with the storage network. example: + Description: Description + Parent: null + WwnnPool: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: vnic.SanConnectivityPolicyInventory + Owners: + - Owners + - Owners + Name: Name + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified ObjectType: vnic.SanConnectivityPolicyInventory FcIfs: - ObjectType: aaa.AuditRecord @@ -975302,23 +1021005,41 @@ components: Moid: Moid ClassId: mo.MoRef Selector: Selector - TargetMo: - ObjectType: aaa.AuditRecord + StaticWwnnAddress: StaticWwnnAddress + TargetPlatform: Standalone + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key + SharedScope: SharedScope + CreateTime: 2000-01-23T04:56:07.000+00:00 + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + PlacementMode: custom + AccountMoid: AccountMoid + DeviceMoId: DeviceMoId + Ancestors: + - ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - StaticWwnnAddress: StaticWwnnAddress - WwnnAddressType: POOL - WwnnPool: - ObjectType: aaa.AuditRecord + - ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - ClassId: vnic.SanConnectivityPolicyInventory - TargetPlatform: Standalone - PlacementMode: custom + TargetMo: null + WwnnAddressType: POOL + Moid: Moid title: SAN Connectivity x-allOf-name: vnic.SanConnectivityPolicyInventory vnic.SanConnectivityPolicyInventory.List: @@ -975652,14 +1021373,14 @@ components: description: Single Root Input Output Virtualization Settings that enable one physical ethernet socket to appear as multiple NICs to the hypervisor. example: - TxCountPerVf: 4 + TxCountPerVf: 5 ObjectType: vnic.SriovSettings - VfCount: 15 + VfCount: 36 Enabled: true ClassId: vnic.SriovSettings - IntCountPerVf: 3 - RxCountPerVf: 5 - CompCountPerVf: 10 + IntCountPerVf: 10 + RxCountPerVf: 2 + CompCountPerVf: 2 nullable: true title: Single Root Input Output Virtualization Settings x-allOf-name: vnic.SriovSettings @@ -975784,9 +1021505,9 @@ components: example: ObjectType: vnic.UsnicSettings UsnicAdapterPolicy: UsnicAdapterPolicy - Cos: 5 + Cos: 1 ClassId: vnic.UsnicSettings - Count: 81 + Count: 158 nullable: true title: USNIC Settings x-allOf-name: vnic.UsnicSettings @@ -975945,7 +1021666,59 @@ components: When override is disabled on the template, derived vHBA will have same configuration as the template. example: ScpUsageCount: 0 + Description: Description + Organization: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Parent: null + PersistentBindings: true + ClassId: vnic.VhbaTemplate + SwitchId: None + Owners: + - Owners + - Owners + Name: Name + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified ObjectType: vnic.VhbaTemplate + EnableOverride: true + DisplayNames: + key: + - DisplayNames + - DisplayNames + UsageCount: 6 + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key + PinGroupName: PinGroupName TemplateActions: - ObjectType: motemplate.ActionEntry Type: Sync @@ -975971,19 +1021744,62 @@ components: ClassId: motemplate.ActionParam Name: None ClassId: motemplate.ActionEntry - EnableOverride: true - Description: Description - Organization: + WwpnPool: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - ClassId: vnic.VhbaTemplate - SwitchId: None + SharedScope: SharedScope + CreateTime: 2000-01-23T04:56:07.000+00:00 + FcNetworkPolicy: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + FcZonePolicies: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null PeerVhbaName: PeerVhbaName - UsageCount: 6 - Name: Name + FcAdapterPolicy: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Type: fc-initiator + FcQosPolicy: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Moid: Moid title: vHBA template x-allOf-name: vnic.VhbaTemplate vnic.VhbaTemplate.List: @@ -976230,14 +1022046,14 @@ components: description: Virtual Machine Queue Settings for the virtual interface that allow efficient transfer of network traffic to the guest OS. example: - NumSubVnics: 47 + NumSubVnics: 23 ObjectType: vnic.VmqSettings VmmqAdapterPolicy: VmmqAdapterPolicy Enabled: false ClassId: vnic.VmqSettings MultiQueueSupport: false - NumVmqs: 16 - NumInterrupts: 213 + NumVmqs: 26 + NumInterrupts: 478 nullable: true title: VMQ Settings x-allOf-name: vnic.VmqSettings @@ -976400,7 +1022216,119 @@ components: Query: $select=SrcTemplate, OverriddenList When override is disabled on the template, derived vNIC will have same configuration as the template. example: + Description: Description + Organization: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Parent: null + FailoverEnabled: false + ClassId: vnic.VnicTemplate + SwitchId: None + UsnicSettings: + ObjectType: vnic.UsnicSettings + UsnicAdapterPolicy: UsnicAdapterPolicy + Cos: 1 + ClassId: vnic.UsnicSettings + Count: 158 + Cdn: + ObjectType: vnic.Cdn + Value: Value + ClassId: vnic.Cdn + Source: vnic + Owners: + - Owners + - Owners + EthQosPolicy: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + IscsiBootPolicy: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Name: Name + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + SriovSettings: + TxCountPerVf: 5 + ObjectType: vnic.SriovSettings + VfCount: 36 + Enabled: true + ClassId: vnic.SriovSettings + IntCountPerVf: 10 + RxCountPerVf: 2 + CompCountPerVf: 2 ObjectType: vnic.VnicTemplate + EnableOverride: true + EthAdapterPolicy: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + VmqSettings: + NumSubVnics: 23 + ObjectType: vnic.VmqSettings + VmmqAdapterPolicy: VmmqAdapterPolicy + Enabled: false + ClassId: vnic.VmqSettings + MultiQueueSupport: false + NumVmqs: 26 + NumInterrupts: 478 + PeerVnicName: PeerVnicName + FabricEthNetworkControlPolicy: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + EthNetworkPolicy: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + DisplayNames: + key: + - DisplayNames + - DisplayNames + UsageCount: 6 + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key + PinGroupName: PinGroupName TemplateActions: - ObjectType: motemplate.ActionEntry Type: Sync @@ -976426,20 +1022354,43 @@ components: ClassId: motemplate.ActionParam Name: None ClassId: motemplate.ActionEntry - EnableOverride: true - Description: Description - Organization: + SharedScope: SharedScope + CreateTime: 2000-01-23T04:56:07.000+00:00 + FabricEthNetworkGroupPolicy: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + MacPool: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - PeerVnicName: PeerVnicName - ClassId: vnic.VnicTemplate - SwitchId: None - UsageCount: 6 + Moid: Moid LcpUsageCount: 0 - Name: Name title: vNIC template x-allOf-name: vnic.VnicTemplate vnic.VnicTemplate.List: @@ -976937,14 +1022888,140 @@ components: task execution. Each SSH request takes the Ansible command to execute and a response parser specification based off text to extract fields of interest. example: + Description: Description + Parent: null + CancelAction: + - Description: Description + AssetTargetMoid: AssetTargetMoid + ContentType: ContentType + ErrorContentType: ErrorContentType + Timeout: 6 + Label: Label + ClassId: workflow.AnsiblePlaySession + StartDelay: 0 + Outcomes: "" + Name: Name + ResponseSpec: "" + ObjectType: workflow.AnsiblePlaySession + SkipOnCondition: SkipOnCondition + Body: Body + - Description: Description + AssetTargetMoid: AssetTargetMoid + ContentType: ContentType + ErrorContentType: ErrorContentType + Timeout: 6 + Label: Label + ClassId: workflow.AnsiblePlaySession + StartDelay: 0 + Outcomes: "" + Name: Name + ResponseSpec: "" + ObjectType: workflow.AnsiblePlaySession + SkipOnCondition: SkipOnCondition + Body: Body + UiRenderingData: "" + ClassId: workflow.AnsibleBatchExecutor + Outcomes: "" + Owners: + - Owners + - Owners + Name: Name + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified ObjectType: workflow.AnsibleBatchExecutor + RetryFromFailedApi: true + Batch: + - Description: Description + AssetTargetMoid: AssetTargetMoid + ContentType: ContentType + ErrorContentType: ErrorContentType + Timeout: 6 + Label: Label + ClassId: workflow.AnsiblePlaySession + StartDelay: 0 + Outcomes: "" + Name: Name + ResponseSpec: "" + ObjectType: workflow.AnsiblePlaySession + SkipOnCondition: SkipOnCondition + Body: Body + - Description: Description + AssetTargetMoid: AssetTargetMoid + ContentType: ContentType + ErrorContentType: ErrorContentType + Timeout: 6 + Label: Label + ClassId: workflow.AnsiblePlaySession + StartDelay: 0 + Outcomes: "" + Name: Name + ResponseSpec: "" + ObjectType: workflow.AnsiblePlaySession + SkipOnCondition: SkipOnCondition + Body: Body + Output: "" + SkipOnCondition: SkipOnCondition + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key + SharedScope: SharedScope + CreateTime: 2000-01-23T04:56:07.000+00:00 + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector TaskDefinition: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - ClassId: workflow.AnsibleBatchExecutor + Constraints: + ObjectType: workflow.TaskConstraints + TargetDataType: "" + ClassId: workflow.TaskConstraints + Moid: Moid title: Ansible Batch Executor x-allOf-name: workflow.AnsibleBatchExecutor workflow.AnsibleBatchExecutor.List: @@ -977177,6 +1023254,21 @@ components: an API given the request body and response parser specification. API type models a single API request within a batch of requests that get executed within a single workflow task. + example: + Description: Description + AssetTargetMoid: AssetTargetMoid + ContentType: ContentType + ErrorContentType: ErrorContentType + Timeout: 6 + Label: Label + ClassId: workflow.AnsiblePlaySession + StartDelay: 0 + Outcomes: "" + Name: Name + ResponseSpec: "" + ObjectType: workflow.AnsiblePlaySession + SkipOnCondition: SkipOnCondition + Body: Body nullable: true title: API x-allOf-name: workflow.Api @@ -977538,14 +1023630,140 @@ components: task execution. Each API request takes the request body and a response parser specification. example: + Description: Description + Parent: null + CancelAction: + - Description: Description + AssetTargetMoid: AssetTargetMoid + ContentType: ContentType + ErrorContentType: ErrorContentType + Timeout: 6 + Label: Label + ClassId: workflow.AnsiblePlaySession + StartDelay: 0 + Outcomes: "" + Name: Name + ResponseSpec: "" + ObjectType: workflow.AnsiblePlaySession + SkipOnCondition: SkipOnCondition + Body: Body + - Description: Description + AssetTargetMoid: AssetTargetMoid + ContentType: ContentType + ErrorContentType: ErrorContentType + Timeout: 6 + Label: Label + ClassId: workflow.AnsiblePlaySession + StartDelay: 0 + Outcomes: "" + Name: Name + ResponseSpec: "" + ObjectType: workflow.AnsiblePlaySession + SkipOnCondition: SkipOnCondition + Body: Body + UiRenderingData: "" + ClassId: workflow.BatchApiExecutor + Outcomes: "" + Owners: + - Owners + - Owners + Name: Name + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified ObjectType: workflow.BatchApiExecutor + RetryFromFailedApi: true + Batch: + - Description: Description + AssetTargetMoid: AssetTargetMoid + ContentType: ContentType + ErrorContentType: ErrorContentType + Timeout: 6 + Label: Label + ClassId: workflow.AnsiblePlaySession + StartDelay: 0 + Outcomes: "" + Name: Name + ResponseSpec: "" + ObjectType: workflow.AnsiblePlaySession + SkipOnCondition: SkipOnCondition + Body: Body + - Description: Description + AssetTargetMoid: AssetTargetMoid + ContentType: ContentType + ErrorContentType: ErrorContentType + Timeout: 6 + Label: Label + ClassId: workflow.AnsiblePlaySession + StartDelay: 0 + Outcomes: "" + Name: Name + ResponseSpec: "" + ObjectType: workflow.AnsiblePlaySession + SkipOnCondition: SkipOnCondition + Body: Body + Output: "" + SkipOnCondition: SkipOnCondition + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key + SharedScope: SharedScope + CreateTime: 2000-01-23T04:56:07.000+00:00 + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector TaskDefinition: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - ClassId: workflow.BatchApiExecutor + Constraints: + ObjectType: workflow.TaskConstraints + TargetDataType: "" + ClassId: workflow.TaskConstraints + Moid: Moid ErrorResponseHandler: ObjectType: aaa.AuditRecord link: link @@ -978624,11 +1024842,19 @@ components: Status: NotCreated Messages: - ObjectType: servicerequest.Message + Message: Message + CreateTime: 2000-01-23T04:56:07.000+00:00 ServiceItemName: ServiceItemName ClassId: servicerequest.Message + ActionOperation: None + Severity: Info - ObjectType: servicerequest.Message + Message: Message + CreateTime: 2000-01-23T04:56:07.000+00:00 ServiceItemName: ServiceItemName ClassId: servicerequest.Message + ActionOperation: None + Severity: Info SharedScope: SharedScope CreateTime: 2000-01-23T04:56:07.000+00:00 DomainGroupMoid: DomainGroupMoid @@ -979657,17 +1025883,18 @@ components: description: "Label for the enum value. A user friendly short string to\ \ identify the enum value. Label can only contain letters (a-z, A-Z),\ \ numbers (0-9), hyphen (-), period (.), colon (:), space ( ), single\ - \ quote ('), forward slash (/), or an underscore (_) and must have an\ - \ alphanumeric character." - pattern: "^[a-zA-Z0-9]+[+\\s\\/a-zA-Z0-9_'.:-]{0,92}$" + \ quote ('), forward slash (/), round parenthesis ( () ), or an underscore\ + \ (_) and must have an alphanumeric character." + pattern: "^[a-zA-Z0-9]+[+\\s\\/a-zA-Z0-9)(_'.:-]{0,92}$" type: string x-omitempty: true Value: description: "Enum value for this enum entry. Value will be passed to\ \ the workflow as string type for execution. Value can only contain\ \ letters (a-z, A-Z), numbers (0-9), hyphen (-), period (.), colon (:),\ - \ space ( ), forward slash (/), or an underscore (_)." - pattern: "^[a-zA-Z0-9_.:-]*[+\\s\\/a-zA-Z0-9_.:-]{1,64}$" + \ space ( ), round parenthesis ( () ), forward slash (/), or an underscore\ + \ (_)." + pattern: "^[a-zA-Z0-9_.:-]*[+\\s\\/a-zA-Z0-9)(_.:-]{1,64}$" type: string x-omitempty: true required: @@ -979978,8 +1026205,24 @@ components: Name: Name Description: Description Parameters: - - {} - - {} + - Path: Path + ObjectType: content.Parameter + AcceptSingleValue: true + Type: simple + ItemType: simple + Secure: true + ClassId: content.Parameter + ComplexType: ComplexType + Name: Name + - Path: Path + ObjectType: content.Parameter + AcceptSingleValue: true + Type: simple + ItemType: simple + Secure: true + ClassId: content.Parameter + ComplexType: ComplexType + Name: Name SharedScope: SharedScope Parent: null CreateTime: 2000-01-23T04:56:07.000+00:00 @@ -981300,14 +1027543,140 @@ components: task execution. Each API request takes the request body and a response parser specification. example: + Description: Description + Parent: null + CancelAction: + - Description: Description + AssetTargetMoid: AssetTargetMoid + ContentType: ContentType + ErrorContentType: ErrorContentType + Timeout: 6 + Label: Label + ClassId: workflow.AnsiblePlaySession + StartDelay: 0 + Outcomes: "" + Name: Name + ResponseSpec: "" + ObjectType: workflow.AnsiblePlaySession + SkipOnCondition: SkipOnCondition + Body: Body + - Description: Description + AssetTargetMoid: AssetTargetMoid + ContentType: ContentType + ErrorContentType: ErrorContentType + Timeout: 6 + Label: Label + ClassId: workflow.AnsiblePlaySession + StartDelay: 0 + Outcomes: "" + Name: Name + ResponseSpec: "" + ObjectType: workflow.AnsiblePlaySession + SkipOnCondition: SkipOnCondition + Body: Body + UiRenderingData: "" + ClassId: workflow.PowerShellBatchApiExecutor + Outcomes: "" + Owners: + - Owners + - Owners + Name: Name + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified ObjectType: workflow.PowerShellBatchApiExecutor + RetryFromFailedApi: true + Batch: + - Description: Description + AssetTargetMoid: AssetTargetMoid + ContentType: ContentType + ErrorContentType: ErrorContentType + Timeout: 6 + Label: Label + ClassId: workflow.AnsiblePlaySession + StartDelay: 0 + Outcomes: "" + Name: Name + ResponseSpec: "" + ObjectType: workflow.AnsiblePlaySession + SkipOnCondition: SkipOnCondition + Body: Body + - Description: Description + AssetTargetMoid: AssetTargetMoid + ContentType: ContentType + ErrorContentType: ErrorContentType + Timeout: 6 + Label: Label + ClassId: workflow.AnsiblePlaySession + StartDelay: 0 + Outcomes: "" + Name: Name + ResponseSpec: "" + ObjectType: workflow.AnsiblePlaySession + SkipOnCondition: SkipOnCondition + Body: Body + Output: "" + SkipOnCondition: SkipOnCondition + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key + SharedScope: SharedScope + CreateTime: 2000-01-23T04:56:07.000+00:00 + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector TaskDefinition: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - ClassId: workflow.PowerShellBatchApiExecutor + Constraints: + ObjectType: workflow.TaskConstraints + TargetDataType: "" + ClassId: workflow.TaskConstraints + Moid: Moid ErrorResponseHandler: ObjectType: aaa.AuditRecord link: link @@ -981520,6 +1027889,14 @@ components: \ and integers." example: ObjectType: workflow.PrimitiveDataType + DisplayMeta: + ObjectType: workflow.DisplayMeta + InventorySelector: true + ClassId: workflow.DisplayMeta + WidgetType: None + Description: Description + Required: true + Label: Label ClassId: workflow.PrimitiveDataType Properties: ObjectType: workflow.PrimitiveDataProperty @@ -981566,6 +1027943,14 @@ components: ClassId: workflow.MoReferenceProperty Selector: Selector ClassId: workflow.PrimitiveDataProperty + Default: + IsValueSet: true + ObjectType: workflow.DefaultValue + Value: "" + ClassId: workflow.DefaultValue + Override: true + InputParameters: "" + Name: Name title: Workflow:Primitive Data Type x-allOf-name: workflow.PrimitiveDataType workflow.Properties: @@ -983232,8 +1029617,18 @@ components: ClassId: serviceitem.SelectionCriteriaInput Status: NotStarted Messages: - - {} - - {} + - ObjectType: serviceitem.Message + Message: Message + CreateTime: 2000-01-23T04:56:07.000+00:00 + ClassId: serviceitem.Message + ActionOperation: None + Severity: Info + - ObjectType: serviceitem.Message + Message: Message + CreateTime: 2000-01-23T04:56:07.000+00:00 + ClassId: serviceitem.Message + ActionOperation: None + Severity: Info SharedScope: SharedScope CreateTime: 2000-01-23T04:56:07.000+00:00 StartTime: 2000-01-23T04:56:07.000+00:00 @@ -985005,9 +1031400,351 @@ components: ClassId: mo.VersionContext Timestamp: 2000-01-23T04:56:07.000+00:00 VersionType: Modified - ObjectType: workflow.ServiceItemOutput + ObjectType: workflow.ServiceItemOutput + Output: "" + Moid: Moid + DisplayNames: + key: + - DisplayNames + - DisplayNames + ModTime: 2000-01-23T04:56:07.000+00:00 + Tags: + - Value: Value + Key: Key + - Value: Value + Key: Key + title: Service Item Output + x-allOf-name: workflow.ServiceItemOutput + workflow.ServiceItemOutput.List: + allOf: + - $ref: '#/components/schemas/mo.BaseResponse' + - properties: + Count: + description: |- + The total number of 'workflow.ServiceItemOutput' resources matching the request, accross all pages. + The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. + format: int32 + type: integer + Results: + description: The array of 'workflow.ServiceItemOutput' resources matching + the request. + items: + $ref: '#/components/schemas/workflow.ServiceItemOutput' + nullable: true + type: array + type: object + description: This resource list is returned as a response to a HTTP GET request + that does not include a specific resource identifier. + title: List of 'workflow.ServiceItemOutput' resources + workflow.ServiceItemType: + allOf: + - $ref: '#/components/schemas/mo.BaseComplexType' + - description: "Definition of the list of properties defined in 'workflow.ServiceItemType',\ + \ excluding properties defined in parent classes." + properties: + ClassId: + default: workflow.ServiceItemType + description: |- + The fully-qualified name of the instantiated, concrete type. + This property is used as a discriminator to identify the type of the payload + when marshaling and unmarshaling data. + enum: + - workflow.ServiceItemType + type: string + x-enum-as-string: true + ObjectType: + default: workflow.ServiceItemType + description: |- + The fully-qualified name of the instantiated, concrete type. + The value should be the same as the 'ClassId' property. + enum: + - workflow.ServiceItemType + type: string + x-enum-as-string: true + Description: + description: The description of this service item. + type: string + x-omitempty: true + Name: + description: The name of the service item as defined by the user. + pattern: "^[a-zA-Z0-9]+[\\sa-zA-Z0-9_.:-]{1,92}$" + type: string + x-omitempty: true + ServiceItemDefinition: + $ref: '#/components/schemas/mo.MoRef' + ServiceItemInputDefinition: + items: + $ref: '#/components/schemas/workflow.ServiceItemInputDefinitionType' + nullable: true + type: array + required: + - ClassId + - ObjectType + type: object + description: Definition to capture the service items associated with the catalog. + example: + ObjectType: workflow.ServiceItemType + Description: Description + ServiceItemDefinition: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: workflow.ServiceItemType + Name: Name + ServiceItemInputDefinition: + - InputDefinition: + - ObjectType: workflow.ArrayDataType + DisplayMeta: + ObjectType: workflow.DisplayMeta + InventorySelector: true + ClassId: workflow.DisplayMeta + WidgetType: None + Description: Description + Required: true + Label: Label + ClassId: workflow.ArrayDataType + Default: + IsValueSet: true + ObjectType: workflow.DefaultValue + Value: "" + ClassId: workflow.DefaultValue + Override: true + InputParameters: "" + Name: Name + - ObjectType: workflow.ArrayDataType + DisplayMeta: + ObjectType: workflow.DisplayMeta + InventorySelector: true + ClassId: workflow.DisplayMeta + WidgetType: None + Description: Description + Required: true + Label: Label + ClassId: workflow.ArrayDataType + Default: + IsValueSet: true + ObjectType: workflow.DefaultValue + Value: "" + ClassId: workflow.DefaultValue + Override: true + InputParameters: "" + Name: Name + ObjectType: workflow.ServiceItemInputDefinitionType + ActionName: ActionName + ClassId: workflow.ServiceItemInputDefinitionType + ServiceItemActionDefinition: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + OperationType: PostDeployment + InputParameters: "" + - InputDefinition: + - ObjectType: workflow.ArrayDataType + DisplayMeta: + ObjectType: workflow.DisplayMeta + InventorySelector: true + ClassId: workflow.DisplayMeta + WidgetType: None + Description: Description + Required: true + Label: Label + ClassId: workflow.ArrayDataType + Default: + IsValueSet: true + ObjectType: workflow.DefaultValue + Value: "" + ClassId: workflow.DefaultValue + Override: true + InputParameters: "" + Name: Name + - ObjectType: workflow.ArrayDataType + DisplayMeta: + ObjectType: workflow.DisplayMeta + InventorySelector: true + ClassId: workflow.DisplayMeta + WidgetType: None + Description: Description + Required: true + Label: Label + ClassId: workflow.ArrayDataType + Default: + IsValueSet: true + ObjectType: workflow.DefaultValue + Value: "" + ClassId: workflow.DefaultValue + Override: true + InputParameters: "" + Name: Name + ObjectType: workflow.ServiceItemInputDefinitionType + ActionName: ActionName + ClassId: workflow.ServiceItemInputDefinitionType + ServiceItemActionDefinition: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + OperationType: PostDeployment + InputParameters: "" + nullable: true + title: Workflow:Service Item Type + x-allOf-name: workflow.ServiceItemType + workflow.SshBatchExecutor.Response: + description: |- + The response body of a HTTP GET request for the 'workflow.SshBatchExecutor' resource. + The value may be one of the following types. + 1. When 'tag' is specified in the URL query, the response schema + is a summary of the tag usage. + 1. When '$apply' is specified in the URL query, the response schema + is dynamically-generated schema based on the $apply value. + 1. When '$count' is specified in the URL query, the response is + a simple object providing the count of the resources. + 1. In all other cases, the response is a list of 'workflow.SshBatchExecutor' resources. + discriminator: + propertyName: ObjectType + oneOf: + - $ref: '#/components/schemas/mo.DocumentCount' + - $ref: '#/components/schemas/workflow.SshBatchExecutor.List' + - $ref: '#/components/schemas/mo.AggregateTransform' + - $ref: '#/components/schemas/mo.TagSummary' + x-one-of-name: workflow.SshBatchExecutor.Response + workflow.SshBatchExecutor: + allOf: + - $ref: '#/components/schemas/workflow.BatchExecutor' + - description: "Definition of the list of properties defined in 'workflow.SshBatchExecutor',\ + \ excluding properties defined in parent classes." + properties: + ClassId: + default: workflow.SshBatchExecutor + description: |- + The fully-qualified name of the instantiated, concrete type. + This property is used as a discriminator to identify the type of the payload + when marshaling and unmarshaling data. + enum: + - workflow.SshBatchExecutor + type: string + x-enum-as-string: true + ObjectType: + default: workflow.SshBatchExecutor + description: |- + The fully-qualified name of the instantiated, concrete type. + The value should be the same as the 'ClassId' property. + enum: + - workflow.SshBatchExecutor + type: string + x-enum-as-string: true + TaskDefinition: + $ref: '#/components/schemas/workflow.TaskDefinition.Relationship' + required: + - ClassId + - ObjectType + type: object + description: |- + Intersight allows generic tasks to be created by taking the executor request + body and a response parser specification in the form of content.Grammar object. + SSH Batch associates the list of SSH requests to be executed as part of single + task execution. Each SSH request takes the command to execute and a response parser + specification based off text to extract fields of interest. + example: + Description: Description + Parent: null + CancelAction: + - Description: Description + AssetTargetMoid: AssetTargetMoid + ContentType: ContentType + ErrorContentType: ErrorContentType + Timeout: 6 + Label: Label + ClassId: workflow.AnsiblePlaySession + StartDelay: 0 + Outcomes: "" + Name: Name + ResponseSpec: "" + ObjectType: workflow.AnsiblePlaySession + SkipOnCondition: SkipOnCondition + Body: Body + - Description: Description + AssetTargetMoid: AssetTargetMoid + ContentType: ContentType + ErrorContentType: ErrorContentType + Timeout: 6 + Label: Label + ClassId: workflow.AnsiblePlaySession + StartDelay: 0 + Outcomes: "" + Name: Name + ResponseSpec: "" + ObjectType: workflow.AnsiblePlaySession + SkipOnCondition: SkipOnCondition + Body: Body + UiRenderingData: "" + ClassId: workflow.SshBatchExecutor + Outcomes: "" + Owners: + - Owners + - Owners + Name: Name + VersionContext: + ObjectType: mo.VersionContext + InterestedMos: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + Version: Version + MarkedForDeletion: false + RefMo: + ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + ClassId: mo.VersionContext + Timestamp: 2000-01-23T04:56:07.000+00:00 + VersionType: Modified + ObjectType: workflow.SshBatchExecutor + RetryFromFailedApi: true + Batch: + - Description: Description + AssetTargetMoid: AssetTargetMoid + ContentType: ContentType + ErrorContentType: ErrorContentType + Timeout: 6 + Label: Label + ClassId: workflow.AnsiblePlaySession + StartDelay: 0 + Outcomes: "" + Name: Name + ResponseSpec: "" + ObjectType: workflow.AnsiblePlaySession + SkipOnCondition: SkipOnCondition + Body: Body + - Description: Description + AssetTargetMoid: AssetTargetMoid + ContentType: ContentType + ErrorContentType: ErrorContentType + Timeout: 6 + Label: Label + ClassId: workflow.AnsiblePlaySession + StartDelay: 0 + Outcomes: "" + Name: Name + ResponseSpec: "" + ObjectType: workflow.AnsiblePlaySession + SkipOnCondition: SkipOnCondition + Body: Body Output: "" - Moid: Moid + SkipOnCondition: SkipOnCondition DisplayNames: key: - DisplayNames @@ -985018,251 +1031755,35 @@ components: Key: Key - Value: Value Key: Key - title: Service Item Output - x-allOf-name: workflow.ServiceItemOutput - workflow.ServiceItemOutput.List: - allOf: - - $ref: '#/components/schemas/mo.BaseResponse' - - properties: - Count: - description: |- - The total number of 'workflow.ServiceItemOutput' resources matching the request, accross all pages. - The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. - format: int32 - type: integer - Results: - description: The array of 'workflow.ServiceItemOutput' resources matching - the request. - items: - $ref: '#/components/schemas/workflow.ServiceItemOutput' - nullable: true - type: array - type: object - description: This resource list is returned as a response to a HTTP GET request - that does not include a specific resource identifier. - title: List of 'workflow.ServiceItemOutput' resources - workflow.ServiceItemType: - allOf: - - $ref: '#/components/schemas/mo.BaseComplexType' - - description: "Definition of the list of properties defined in 'workflow.ServiceItemType',\ - \ excluding properties defined in parent classes." - properties: - ClassId: - default: workflow.ServiceItemType - description: |- - The fully-qualified name of the instantiated, concrete type. - This property is used as a discriminator to identify the type of the payload - when marshaling and unmarshaling data. - enum: - - workflow.ServiceItemType - type: string - x-enum-as-string: true - ObjectType: - default: workflow.ServiceItemType - description: |- - The fully-qualified name of the instantiated, concrete type. - The value should be the same as the 'ClassId' property. - enum: - - workflow.ServiceItemType - type: string - x-enum-as-string: true - Description: - description: The description of this service item. - type: string - x-omitempty: true - Name: - description: The name of the service item as defined by the user. - pattern: "^[a-zA-Z0-9]+[\\sa-zA-Z0-9_.:-]{1,92}$" - type: string - x-omitempty: true - ServiceItemDefinition: - $ref: '#/components/schemas/mo.MoRef' - ServiceItemInputDefinition: - items: - $ref: '#/components/schemas/workflow.ServiceItemInputDefinitionType' - nullable: true - type: array - required: - - ClassId - - ObjectType - type: object - description: Definition to capture the service items associated with the catalog. - example: - ObjectType: workflow.ServiceItemType - Description: Description - ServiceItemDefinition: - ObjectType: aaa.AuditRecord + SharedScope: SharedScope + CreateTime: 2000-01-23T04:56:07.000+00:00 + DomainGroupMoid: DomainGroupMoid + PermissionResources: + - null + - null + AccountMoid: AccountMoid + Ancestors: + - ObjectType: aaa.AuditRecord + link: link + Moid: Moid + ClassId: mo.MoRef + Selector: Selector + - ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - ClassId: workflow.ServiceItemType - Name: Name - ServiceItemInputDefinition: - - InputDefinition: - - ObjectType: workflow.ArrayDataType - DisplayMeta: - ObjectType: workflow.DisplayMeta - InventorySelector: true - ClassId: workflow.DisplayMeta - WidgetType: None - Description: Description - Required: true - Label: Label - ClassId: workflow.ArrayDataType - Default: - IsValueSet: true - ObjectType: workflow.DefaultValue - Value: "" - ClassId: workflow.DefaultValue - Override: true - InputParameters: "" - Name: Name - - ObjectType: workflow.ArrayDataType - DisplayMeta: - ObjectType: workflow.DisplayMeta - InventorySelector: true - ClassId: workflow.DisplayMeta - WidgetType: None - Description: Description - Required: true - Label: Label - ClassId: workflow.ArrayDataType - Default: - IsValueSet: true - ObjectType: workflow.DefaultValue - Value: "" - ClassId: workflow.DefaultValue - Override: true - InputParameters: "" - Name: Name - ObjectType: workflow.ServiceItemInputDefinitionType - ActionName: ActionName - ClassId: workflow.ServiceItemInputDefinitionType - ServiceItemActionDefinition: - ObjectType: aaa.AuditRecord - link: link - Moid: Moid - ClassId: mo.MoRef - Selector: Selector - OperationType: PostDeployment - InputParameters: "" - - InputDefinition: - - ObjectType: workflow.ArrayDataType - DisplayMeta: - ObjectType: workflow.DisplayMeta - InventorySelector: true - ClassId: workflow.DisplayMeta - WidgetType: None - Description: Description - Required: true - Label: Label - ClassId: workflow.ArrayDataType - Default: - IsValueSet: true - ObjectType: workflow.DefaultValue - Value: "" - ClassId: workflow.DefaultValue - Override: true - InputParameters: "" - Name: Name - - ObjectType: workflow.ArrayDataType - DisplayMeta: - ObjectType: workflow.DisplayMeta - InventorySelector: true - ClassId: workflow.DisplayMeta - WidgetType: None - Description: Description - Required: true - Label: Label - ClassId: workflow.ArrayDataType - Default: - IsValueSet: true - ObjectType: workflow.DefaultValue - Value: "" - ClassId: workflow.DefaultValue - Override: true - InputParameters: "" - Name: Name - ObjectType: workflow.ServiceItemInputDefinitionType - ActionName: ActionName - ClassId: workflow.ServiceItemInputDefinitionType - ServiceItemActionDefinition: - ObjectType: aaa.AuditRecord - link: link - Moid: Moid - ClassId: mo.MoRef - Selector: Selector - OperationType: PostDeployment - InputParameters: "" - nullable: true - title: Workflow:Service Item Type - x-allOf-name: workflow.ServiceItemType - workflow.SshBatchExecutor.Response: - description: |- - The response body of a HTTP GET request for the 'workflow.SshBatchExecutor' resource. - The value may be one of the following types. - 1. When 'tag' is specified in the URL query, the response schema - is a summary of the tag usage. - 1. When '$apply' is specified in the URL query, the response schema - is dynamically-generated schema based on the $apply value. - 1. When '$count' is specified in the URL query, the response is - a simple object providing the count of the resources. - 1. In all other cases, the response is a list of 'workflow.SshBatchExecutor' resources. - discriminator: - propertyName: ObjectType - oneOf: - - $ref: '#/components/schemas/mo.DocumentCount' - - $ref: '#/components/schemas/workflow.SshBatchExecutor.List' - - $ref: '#/components/schemas/mo.AggregateTransform' - - $ref: '#/components/schemas/mo.TagSummary' - x-one-of-name: workflow.SshBatchExecutor.Response - workflow.SshBatchExecutor: - allOf: - - $ref: '#/components/schemas/workflow.BatchExecutor' - - description: "Definition of the list of properties defined in 'workflow.SshBatchExecutor',\ - \ excluding properties defined in parent classes." - properties: - ClassId: - default: workflow.SshBatchExecutor - description: |- - The fully-qualified name of the instantiated, concrete type. - This property is used as a discriminator to identify the type of the payload - when marshaling and unmarshaling data. - enum: - - workflow.SshBatchExecutor - type: string - x-enum-as-string: true - ObjectType: - default: workflow.SshBatchExecutor - description: |- - The fully-qualified name of the instantiated, concrete type. - The value should be the same as the 'ClassId' property. - enum: - - workflow.SshBatchExecutor - type: string - x-enum-as-string: true - TaskDefinition: - $ref: '#/components/schemas/workflow.TaskDefinition.Relationship' - required: - - ClassId - - ObjectType - type: object - description: |- - Intersight allows generic tasks to be created by taking the executor request - body and a response parser specification in the form of content.Grammar object. - SSH Batch associates the list of SSH requests to be executed as part of single - task execution. Each SSH request takes the command to execute and a response parser - specification based off text to extract fields of interest. - example: - ObjectType: workflow.SshBatchExecutor TaskDefinition: ObjectType: aaa.AuditRecord link: link Moid: Moid ClassId: mo.MoRef Selector: Selector - ClassId: workflow.SshBatchExecutor + Constraints: + ObjectType: workflow.TaskConstraints + TargetDataType: "" + ClassId: workflow.TaskConstraints + Moid: Moid title: SSH Batch Executor x-allOf-name: workflow.SshBatchExecutor workflow.SshBatchExecutor.List: @@ -985757,6 +1032278,15 @@ components: minItems: 1 nullable: true type: array + PlatformType: + items: + description: Platform Type property defines target device type. Type + must match the enumerations supported for platform types. + readOnly: true + type: string + x-omitempty: true + nullable: true + type: array Selector: description: Field to hold an Intersight API along with an optional filter to narrow down the search options for target device. @@ -987639,6 +1034169,14 @@ components: ObjectType: workflow.TemplateParser Placeholders: - ObjectType: workflow.PrimitiveDataType + DisplayMeta: + ObjectType: workflow.DisplayMeta + InventorySelector: true + ClassId: workflow.DisplayMeta + WidgetType: None + Description: Description + Required: true + Label: Label ClassId: workflow.PrimitiveDataType Properties: ObjectType: workflow.PrimitiveDataProperty @@ -987685,7 +1034223,23 @@ components: ClassId: workflow.MoReferenceProperty Selector: Selector ClassId: workflow.PrimitiveDataProperty + Default: + IsValueSet: true + ObjectType: workflow.DefaultValue + Value: "" + ClassId: workflow.DefaultValue + Override: true + InputParameters: "" + Name: Name - ObjectType: workflow.PrimitiveDataType + DisplayMeta: + ObjectType: workflow.DisplayMeta + InventorySelector: true + ClassId: workflow.DisplayMeta + WidgetType: None + Description: Description + Required: true + Label: Label ClassId: workflow.PrimitiveDataType Properties: ObjectType: workflow.PrimitiveDataProperty @@ -987732,6 +1034286,14 @@ components: ClassId: workflow.MoReferenceProperty Selector: Selector ClassId: workflow.PrimitiveDataProperty + Default: + IsValueSet: true + ObjectType: workflow.DefaultValue + Value: "" + ClassId: workflow.DefaultValue + Override: true + InputParameters: "" + Name: Name Moid: Moid DisplayNames: key: @@ -990615,6 +1037177,11 @@ components: - path type: object Error: + example: + code: InternalServerError + messageId: messageId + cause: null + message: message properties: code: description: "A value that is used to determine the nature of the error,\ @@ -990668,6 +1037235,8 @@ components: description: The content is an Excel spreadsheet. format: binary type: string + telemetry_DruidExtractionFunctionInlineLookup_allOf_lookup_map: + type: object telemetry_DruidExtractionFunctionInlineLookup_allOf_lookup: properties: type: @@ -990677,6 +1037246,18 @@ components: map: type: object type: object + telemetry_DruidGroupByRequest_allOf_subtotalsSpec: + description: "A JSON array of arrays to return additional result sets for groupings\ + \ of subsets of top level dimensions. The subtotals feature allows computation\ + \ of multiple sub-groupings in a single query. To use this feature, add a\ + \ \"subtotalsSpec\" to your query, which should be a list of subgroup dimension\ + \ sets. It should contain the \"outputName\" from dimensions in your \"dimensions\"\ + \ attribute, in the same order as they appear in the \"dimensions\" attribute." + type: object + telemetry_DruidSegmentMetadataRequest_allOf_toInclude: + description: A JSON Object representing what columns should be included in the + result. Defaults to "all". + type: object securitySchemes: cookieAuth: description: The authentication cookie obtained from a Single-Sign-On SAML assertion. diff --git a/api_aaa.go b/api_aaa.go index 13ed4d6844..93e3ba8ce7 100644 --- a/api_aaa.go +++ b/api_aaa.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -108,10 +108,10 @@ func (a *AaaApiService) CreateAaaRetentionPolicyExecute(r ApiCreateAaaRetentionP localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.aaaRetentionPolicy @@ -478,52 +478,52 @@ func (a *AaaApiService) GetAaaAuditRecordListExecute(r ApiGetAaaAuditRecordListR localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -905,52 +905,52 @@ func (a *AaaApiService) GetAaaRetentionConfigListExecute(r ApiGetAaaRetentionCon localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -1332,52 +1332,52 @@ func (a *AaaApiService) GetAaaRetentionPolicyListExecute(r ApiGetAaaRetentionPol localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -1567,7 +1567,7 @@ func (a *AaaApiService) PatchAaaRetentionPolicyExecute(r ApiPatchAaaRetentionPol localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.aaaRetentionPolicy @@ -1742,7 +1742,7 @@ func (a *AaaApiService) UpdateAaaRetentionPolicyExecute(r ApiUpdateAaaRetentionP localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.aaaRetentionPolicy diff --git a/api_access.go b/api_access.go index 61cbbc8705..a33af1f040 100644 --- a/api_access.go +++ b/api_access.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -108,10 +108,10 @@ func (a *AccessApiService) CreateAccessPolicyExecute(r ApiCreateAccessPolicyRequ localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.accessPolicy @@ -620,52 +620,52 @@ func (a *AccessApiService) GetAccessIpAddressListExecute(r ApiGetAccessIpAddress localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -1200,52 +1200,52 @@ func (a *AccessApiService) GetAccessPolicyInventoryListExecute(r ApiGetAccessPol localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -1474,52 +1474,52 @@ func (a *AccessApiService) GetAccessPolicyListExecute(r ApiGetAccessPolicyListRe localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -1709,7 +1709,7 @@ func (a *AccessApiService) PatchAccessPolicyExecute(r ApiPatchAccessPolicyReques localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.accessPolicy @@ -1884,7 +1884,7 @@ func (a *AccessApiService) UpdateAccessPolicyExecute(r ApiUpdateAccessPolicyRequ localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.accessPolicy diff --git a/api_adapter.go b/api_adapter.go index 0a5bd18789..9ef7031274 100644 --- a/api_adapter.go +++ b/api_adapter.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -108,10 +108,10 @@ func (a *AdapterApiService) CreateAdapterConfigPolicyExecute(r ApiCreateAdapterC localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.adapterConfigPolicy @@ -620,52 +620,52 @@ func (a *AdapterApiService) GetAdapterConfigPolicyListExecute(r ApiGetAdapterCon localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -1047,52 +1047,52 @@ func (a *AdapterApiService) GetAdapterExtEthInterfaceListExecute(r ApiGetAdapter localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -1474,52 +1474,52 @@ func (a *AdapterApiService) GetAdapterHostEthInterfaceListExecute(r ApiGetAdapte localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -1901,52 +1901,52 @@ func (a *AdapterApiService) GetAdapterHostFcInterfaceListExecute(r ApiGetAdapter localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -2328,52 +2328,52 @@ func (a *AdapterApiService) GetAdapterHostIscsiInterfaceListExecute(r ApiGetAdap localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -2908,52 +2908,52 @@ func (a *AdapterApiService) GetAdapterUnitExpanderListExecute(r ApiGetAdapterUni localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -3182,52 +3182,52 @@ func (a *AdapterApiService) GetAdapterUnitListExecute(r ApiGetAdapterUnitListReq localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -3417,7 +3417,7 @@ func (a *AdapterApiService) PatchAdapterConfigPolicyExecute(r ApiPatchAdapterCon localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.adapterConfigPolicy @@ -3592,7 +3592,7 @@ func (a *AdapterApiService) PatchAdapterHostEthInterfaceExecute(r ApiPatchAdapte localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.adapterHostEthInterface @@ -3767,7 +3767,7 @@ func (a *AdapterApiService) PatchAdapterHostFcInterfaceExecute(r ApiPatchAdapter localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.adapterHostFcInterface @@ -3942,7 +3942,7 @@ func (a *AdapterApiService) UpdateAdapterConfigPolicyExecute(r ApiUpdateAdapterC localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.adapterConfigPolicy @@ -4117,7 +4117,7 @@ func (a *AdapterApiService) UpdateAdapterHostEthInterfaceExecute(r ApiUpdateAdap localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.adapterHostEthInterface @@ -4292,7 +4292,7 @@ func (a *AdapterApiService) UpdateAdapterHostFcInterfaceExecute(r ApiUpdateAdapt localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.adapterHostFcInterface diff --git a/api_apic.go b/api_apic.go index e1061027fb..0727e7898e 100644 --- a/api_apic.go +++ b/api_apic.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -297,52 +297,52 @@ func (a *ApicApiService) GetApicAciPodListExecute(r ApiGetApicAciPodListRequest) localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -877,52 +877,52 @@ func (a *ApicApiService) GetApicApplicationEndpointGroupListExecute(r ApiGetApic localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -1151,52 +1151,52 @@ func (a *ApicApiService) GetApicApplicationListExecute(r ApiGetApicApplicationLi localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -1578,52 +1578,52 @@ func (a *ApicApiService) GetApicBridgeDomainListExecute(r ApiGetApicBridgeDomain localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -2005,52 +2005,52 @@ func (a *ApicApiService) GetApicExternalRoutedLayerThreeDomainListExecute(r ApiG localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -2585,52 +2585,52 @@ func (a *ApicApiService) GetApicFabricLeafNodeInterfaceListExecute(r ApiGetApicF localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -2859,52 +2859,52 @@ func (a *ApicApiService) GetApicFabricLeafNodeListExecute(r ApiGetApicFabricLeaf localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -3286,52 +3286,52 @@ func (a *ApicApiService) GetApicOutListExecute(r ApiGetApicOutListRequest) (*Api localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -3713,52 +3713,52 @@ func (a *ApicApiService) GetApicSubnetListExecute(r ApiGetApicSubnetListRequest) localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -4140,52 +4140,52 @@ func (a *ApicApiService) GetApicTenantListExecute(r ApiGetApicTenantListRequest) localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -4567,52 +4567,52 @@ func (a *ApicApiService) GetApicVpcGroupListExecute(r ApiGetApicVpcGroupListRequ localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -4994,52 +4994,52 @@ func (a *ApicApiService) GetApicVrfsListExecute(r ApiGetApicVrfsListRequest) (*A localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} diff --git a/api_appliance.go b/api_appliance.go index 115e9092d1..6e05d31fd6 100644 --- a/api_appliance.go +++ b/api_appliance.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -108,10 +108,10 @@ func (a *ApplianceApiService) CreateApplianceAutoRmaPolicyExecute(r ApiCreateApp localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.applianceAutoRmaPolicy @@ -289,10 +289,10 @@ func (a *ApplianceApiService) CreateApplianceBackupExecute(r ApiCreateApplianceB localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.applianceBackup @@ -470,10 +470,10 @@ func (a *ApplianceApiService) CreateApplianceBackupPolicyExecute(r ApiCreateAppl localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.applianceBackupPolicy @@ -651,10 +651,10 @@ func (a *ApplianceApiService) CreateApplianceClusterInfoExecute(r ApiCreateAppli localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.applianceClusterInfo @@ -832,10 +832,10 @@ func (a *ApplianceApiService) CreateApplianceClusterReplaceNodeExecute(r ApiCrea localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.applianceClusterReplaceNode @@ -1013,10 +1013,10 @@ func (a *ApplianceApiService) CreateApplianceDataExportPolicyExecute(r ApiCreate localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.applianceDataExportPolicy @@ -1194,10 +1194,10 @@ func (a *ApplianceApiService) CreateApplianceDeviceClaimExecute(r ApiCreateAppli localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.applianceDeviceClaim @@ -1375,10 +1375,10 @@ func (a *ApplianceApiService) CreateApplianceDiagSettingExecute(r ApiCreateAppli localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.applianceDiagSetting @@ -1556,10 +1556,10 @@ func (a *ApplianceApiService) CreateApplianceExternalSyslogSettingExecute(r ApiC localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.applianceExternalSyslogSetting @@ -1737,10 +1737,10 @@ func (a *ApplianceApiService) CreateApplianceRemoteFileImportExecute(r ApiCreate localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.applianceRemoteFileImport @@ -1918,10 +1918,10 @@ func (a *ApplianceApiService) CreateApplianceRestoreExecute(r ApiCreateAppliance localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.applianceRestore @@ -2998,52 +2998,52 @@ func (a *ApplianceApiService) GetApplianceAppOpStatusListExecute(r ApiGetApplian localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -3425,52 +3425,52 @@ func (a *ApplianceApiService) GetApplianceAppStatusListExecute(r ApiGetAppliance localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -3852,52 +3852,52 @@ func (a *ApplianceApiService) GetApplianceAutoRmaPolicyListExecute(r ApiGetAppli localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -4279,52 +4279,52 @@ func (a *ApplianceApiService) GetApplianceBackupListExecute(r ApiGetApplianceBac localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -4706,52 +4706,52 @@ func (a *ApplianceApiService) GetApplianceBackupMonitorListExecute(r ApiGetAppli localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -5133,52 +5133,52 @@ func (a *ApplianceApiService) GetApplianceBackupPolicyListExecute(r ApiGetApplia localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -5560,52 +5560,52 @@ func (a *ApplianceApiService) GetApplianceBackupRotateDataListExecute(r ApiGetAp localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -5987,52 +5987,52 @@ func (a *ApplianceApiService) GetApplianceCertificateSettingListExecute(r ApiGet localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -6414,52 +6414,52 @@ func (a *ApplianceApiService) GetApplianceClusterInfoListExecute(r ApiGetApplian localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -6841,52 +6841,52 @@ func (a *ApplianceApiService) GetApplianceClusterInstallListExecute(r ApiGetAppl localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -7268,52 +7268,52 @@ func (a *ApplianceApiService) GetApplianceClusterReplaceNodeListExecute(r ApiGet localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -7695,52 +7695,52 @@ func (a *ApplianceApiService) GetApplianceDataExportPolicyListExecute(r ApiGetAp localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -8122,52 +8122,52 @@ func (a *ApplianceApiService) GetApplianceDeviceCertificateListExecute(r ApiGetA localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -8549,52 +8549,52 @@ func (a *ApplianceApiService) GetApplianceDeviceClaimListExecute(r ApiGetApplian localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -8976,52 +8976,52 @@ func (a *ApplianceApiService) GetApplianceDeviceClusterInstallListExecute(r ApiG localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -9403,52 +9403,52 @@ func (a *ApplianceApiService) GetApplianceDeviceStateListExecute(r ApiGetApplian localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -9830,52 +9830,52 @@ func (a *ApplianceApiService) GetApplianceDeviceUpgradePolicyListExecute(r ApiGe localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -10257,52 +10257,52 @@ func (a *ApplianceApiService) GetApplianceDiagSettingListExecute(r ApiGetApplian localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -10684,52 +10684,52 @@ func (a *ApplianceApiService) GetApplianceExternalSyslogSettingListExecute(r Api localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -11111,52 +11111,52 @@ func (a *ApplianceApiService) GetApplianceFileGatewayListExecute(r ApiGetApplian localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -11538,52 +11538,52 @@ func (a *ApplianceApiService) GetApplianceFileSystemOpStatusListExecute(r ApiGet localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -11965,52 +11965,52 @@ func (a *ApplianceApiService) GetApplianceFileSystemStatusListExecute(r ApiGetAp localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -12392,52 +12392,52 @@ func (a *ApplianceApiService) GetApplianceGroupOpStatusListExecute(r ApiGetAppli localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -12819,52 +12819,52 @@ func (a *ApplianceApiService) GetApplianceGroupStatusListExecute(r ApiGetApplian localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -13246,52 +13246,52 @@ func (a *ApplianceApiService) GetApplianceImageBundleListExecute(r ApiGetApplian localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -13673,52 +13673,52 @@ func (a *ApplianceApiService) GetApplianceMetaManifestListExecute(r ApiGetApplia localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -14100,52 +14100,52 @@ func (a *ApplianceApiService) GetApplianceMetricsConfigListExecute(r ApiGetAppli localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -14527,52 +14527,52 @@ func (a *ApplianceApiService) GetApplianceNetworkLinkStatusListExecute(r ApiGetA localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -14954,52 +14954,52 @@ func (a *ApplianceApiService) GetApplianceNodeInfoListExecute(r ApiGetApplianceN localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -15381,52 +15381,52 @@ func (a *ApplianceApiService) GetApplianceNodeOpStatusListExecute(r ApiGetApplia localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -15808,52 +15808,52 @@ func (a *ApplianceApiService) GetApplianceNodeStatusListExecute(r ApiGetApplianc localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -16241,52 +16241,52 @@ func (a *ApplianceApiService) GetApplianceReleaseNoteListExecute(r ApiGetApplian localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -16668,52 +16668,52 @@ func (a *ApplianceApiService) GetApplianceRemoteFileImportListExecute(r ApiGetAp localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -17095,52 +17095,52 @@ func (a *ApplianceApiService) GetApplianceRestoreListExecute(r ApiGetApplianceRe localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -17522,52 +17522,52 @@ func (a *ApplianceApiService) GetApplianceSetupInfoListExecute(r ApiGetAppliance localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -17949,52 +17949,52 @@ func (a *ApplianceApiService) GetApplianceSystemInfoListExecute(r ApiGetApplianc localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -18376,52 +18376,52 @@ func (a *ApplianceApiService) GetApplianceSystemOpStatusListExecute(r ApiGetAppl localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -18803,52 +18803,52 @@ func (a *ApplianceApiService) GetApplianceSystemStatusListExecute(r ApiGetApplia localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -19230,52 +19230,52 @@ func (a *ApplianceApiService) GetApplianceUpgradeListExecute(r ApiGetApplianceUp localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -19657,52 +19657,52 @@ func (a *ApplianceApiService) GetApplianceUpgradePolicyListExecute(r ApiGetAppli localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -20084,52 +20084,52 @@ func (a *ApplianceApiService) GetApplianceUpgradeTrackerListExecute(r ApiGetAppl localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -20319,7 +20319,7 @@ func (a *ApplianceApiService) PatchApplianceAutoRmaPolicyExecute(r ApiPatchAppli localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.applianceAutoRmaPolicy @@ -20494,7 +20494,7 @@ func (a *ApplianceApiService) PatchApplianceBackupPolicyExecute(r ApiPatchApplia localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.applianceBackupPolicy @@ -20669,7 +20669,7 @@ func (a *ApplianceApiService) PatchApplianceCertificateSettingExecute(r ApiPatch localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.applianceCertificateSetting @@ -20844,7 +20844,7 @@ func (a *ApplianceApiService) PatchApplianceClusterInfoExecute(r ApiPatchApplian localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.applianceClusterInfo @@ -21019,7 +21019,7 @@ func (a *ApplianceApiService) PatchApplianceClusterInstallExecute(r ApiPatchAppl localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.applianceClusterInstall @@ -21194,7 +21194,7 @@ func (a *ApplianceApiService) PatchApplianceClusterReplaceNodeExecute(r ApiPatch localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.applianceClusterReplaceNode @@ -21369,7 +21369,7 @@ func (a *ApplianceApiService) PatchApplianceDataExportPolicyExecute(r ApiPatchAp localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.applianceDataExportPolicy @@ -21544,7 +21544,7 @@ func (a *ApplianceApiService) PatchApplianceDeviceClaimExecute(r ApiPatchApplian localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.applianceDeviceClaim @@ -21719,7 +21719,7 @@ func (a *ApplianceApiService) PatchApplianceDeviceUpgradePolicyExecute(r ApiPatc localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.applianceDeviceUpgradePolicy @@ -21894,7 +21894,7 @@ func (a *ApplianceApiService) PatchApplianceDiagSettingExecute(r ApiPatchApplian localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.applianceDiagSetting @@ -22069,7 +22069,7 @@ func (a *ApplianceApiService) PatchApplianceExternalSyslogSettingExecute(r ApiPa localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.applianceExternalSyslogSetting @@ -22244,7 +22244,7 @@ func (a *ApplianceApiService) PatchApplianceMetricsConfigExecute(r ApiPatchAppli localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.applianceMetricsConfig @@ -22419,7 +22419,7 @@ func (a *ApplianceApiService) PatchApplianceSetupInfoExecute(r ApiPatchAppliance localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.applianceSetupInfo @@ -22594,7 +22594,7 @@ func (a *ApplianceApiService) PatchApplianceUpgradeExecute(r ApiPatchApplianceUp localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.applianceUpgrade @@ -22769,7 +22769,7 @@ func (a *ApplianceApiService) PatchApplianceUpgradePolicyExecute(r ApiPatchAppli localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.applianceUpgradePolicy @@ -22944,7 +22944,7 @@ func (a *ApplianceApiService) UpdateApplianceAutoRmaPolicyExecute(r ApiUpdateApp localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.applianceAutoRmaPolicy @@ -23119,7 +23119,7 @@ func (a *ApplianceApiService) UpdateApplianceBackupPolicyExecute(r ApiUpdateAppl localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.applianceBackupPolicy @@ -23294,7 +23294,7 @@ func (a *ApplianceApiService) UpdateApplianceCertificateSettingExecute(r ApiUpda localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.applianceCertificateSetting @@ -23469,7 +23469,7 @@ func (a *ApplianceApiService) UpdateApplianceClusterInfoExecute(r ApiUpdateAppli localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.applianceClusterInfo @@ -23644,7 +23644,7 @@ func (a *ApplianceApiService) UpdateApplianceClusterInstallExecute(r ApiUpdateAp localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.applianceClusterInstall @@ -23819,7 +23819,7 @@ func (a *ApplianceApiService) UpdateApplianceClusterReplaceNodeExecute(r ApiUpda localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.applianceClusterReplaceNode @@ -23994,7 +23994,7 @@ func (a *ApplianceApiService) UpdateApplianceDataExportPolicyExecute(r ApiUpdate localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.applianceDataExportPolicy @@ -24169,7 +24169,7 @@ func (a *ApplianceApiService) UpdateApplianceDeviceClaimExecute(r ApiUpdateAppli localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.applianceDeviceClaim @@ -24344,7 +24344,7 @@ func (a *ApplianceApiService) UpdateApplianceDeviceUpgradePolicyExecute(r ApiUpd localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.applianceDeviceUpgradePolicy @@ -24519,7 +24519,7 @@ func (a *ApplianceApiService) UpdateApplianceDiagSettingExecute(r ApiUpdateAppli localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.applianceDiagSetting @@ -24694,7 +24694,7 @@ func (a *ApplianceApiService) UpdateApplianceExternalSyslogSettingExecute(r ApiU localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.applianceExternalSyslogSetting @@ -24869,7 +24869,7 @@ func (a *ApplianceApiService) UpdateApplianceMetricsConfigExecute(r ApiUpdateApp localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.applianceMetricsConfig @@ -25044,7 +25044,7 @@ func (a *ApplianceApiService) UpdateApplianceSetupInfoExecute(r ApiUpdateApplian localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.applianceSetupInfo @@ -25219,7 +25219,7 @@ func (a *ApplianceApiService) UpdateApplianceUpgradeExecute(r ApiUpdateAppliance localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.applianceUpgrade @@ -25394,7 +25394,7 @@ func (a *ApplianceApiService) UpdateApplianceUpgradePolicyExecute(r ApiUpdateApp localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.applianceUpgradePolicy diff --git a/api_asset.go b/api_asset.go index 8b799b8050..1f25061249 100644 --- a/api_asset.go +++ b/api_asset.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -108,10 +108,10 @@ func (a *AssetApiService) CreateAssetDeviceClaimExecute(r ApiCreateAssetDeviceCl localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.assetDeviceClaim @@ -289,10 +289,10 @@ func (a *AssetApiService) CreateAssetDeviceContractNotificationExecute(r ApiCrea localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.assetDeviceContractNotification @@ -470,10 +470,10 @@ func (a *AssetApiService) CreateAssetTargetExecute(r ApiCreateAssetTargetRequest localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.assetTarget @@ -2118,52 +2118,52 @@ func (a *AssetApiService) GetAssetClusterMemberListExecute(r ApiGetAssetClusterM localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -2698,52 +2698,52 @@ func (a *AssetApiService) GetAssetDeploymentDeviceListExecute(r ApiGetAssetDeplo localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -2972,52 +2972,52 @@ func (a *AssetApiService) GetAssetDeploymentListExecute(r ApiGetAssetDeploymentL localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -3399,52 +3399,52 @@ func (a *AssetApiService) GetAssetDeviceConfigurationListExecute(r ApiGetAssetDe localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -3826,52 +3826,52 @@ func (a *AssetApiService) GetAssetDeviceConnectorManagerListExecute(r ApiGetAsse localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -4253,52 +4253,52 @@ func (a *AssetApiService) GetAssetDeviceContractInformationListExecute(r ApiGetA localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -4680,52 +4680,52 @@ func (a *AssetApiService) GetAssetDeviceRegistrationListExecute(r ApiGetAssetDev localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -5107,52 +5107,52 @@ func (a *AssetApiService) GetAssetSubscriptionAccountListExecute(r ApiGetAssetSu localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -5687,52 +5687,52 @@ func (a *AssetApiService) GetAssetSubscriptionDeviceContractInformationListExecu localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -5961,52 +5961,52 @@ func (a *AssetApiService) GetAssetSubscriptionListExecute(r ApiGetAssetSubscript localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -6388,52 +6388,52 @@ func (a *AssetApiService) GetAssetTargetListExecute(r ApiGetAssetTargetListReque localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -6623,7 +6623,7 @@ func (a *AssetApiService) PatchAssetDeviceConfigurationExecute(r ApiPatchAssetDe localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.assetDeviceConfiguration @@ -6798,7 +6798,7 @@ func (a *AssetApiService) PatchAssetDeviceContractInformationExecute(r ApiPatchA localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.assetDeviceContractInformation @@ -6973,7 +6973,7 @@ func (a *AssetApiService) PatchAssetDeviceRegistrationExecute(r ApiPatchAssetDev localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.assetDeviceRegistration @@ -7148,7 +7148,7 @@ func (a *AssetApiService) PatchAssetTargetExecute(r ApiPatchAssetTargetRequest) localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.assetTarget @@ -7323,7 +7323,7 @@ func (a *AssetApiService) UpdateAssetDeviceConfigurationExecute(r ApiUpdateAsset localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.assetDeviceConfiguration @@ -7498,7 +7498,7 @@ func (a *AssetApiService) UpdateAssetDeviceContractInformationExecute(r ApiUpdat localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.assetDeviceContractInformation @@ -7673,7 +7673,7 @@ func (a *AssetApiService) UpdateAssetDeviceRegistrationExecute(r ApiUpdateAssetD localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.assetDeviceRegistration @@ -7848,7 +7848,7 @@ func (a *AssetApiService) UpdateAssetTargetExecute(r ApiUpdateAssetTargetRequest localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.assetTarget diff --git a/api_bios.go b/api_bios.go index ed7e7113d1..ae451fcddf 100644 --- a/api_bios.go +++ b/api_bios.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -108,10 +108,10 @@ func (a *BiosApiService) CreateBiosPolicyExecute(r ApiCreateBiosPolicyRequest) ( localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.biosPolicy @@ -620,52 +620,52 @@ func (a *BiosApiService) GetBiosBootDeviceListExecute(r ApiGetBiosBootDeviceList localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -1047,52 +1047,52 @@ func (a *BiosApiService) GetBiosBootModeListExecute(r ApiGetBiosBootModeListRequ localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -1474,52 +1474,52 @@ func (a *BiosApiService) GetBiosPolicyListExecute(r ApiGetBiosPolicyListRequest) localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -1901,52 +1901,52 @@ func (a *BiosApiService) GetBiosSystemBootOrderListExecute(r ApiGetBiosSystemBoo localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -2328,52 +2328,52 @@ func (a *BiosApiService) GetBiosTokenSettingsListExecute(r ApiGetBiosTokenSettin localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -2755,52 +2755,52 @@ func (a *BiosApiService) GetBiosUnitListExecute(r ApiGetBiosUnitListRequest) (*B localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -3182,52 +3182,52 @@ func (a *BiosApiService) GetBiosVfSelectMemoryRasConfigurationListExecute(r ApiG localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -3417,7 +3417,7 @@ func (a *BiosApiService) PatchBiosBootModeExecute(r ApiPatchBiosBootModeRequest) localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.biosBootMode @@ -3592,7 +3592,7 @@ func (a *BiosApiService) PatchBiosPolicyExecute(r ApiPatchBiosPolicyRequest) (*B localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.biosPolicy @@ -3767,7 +3767,7 @@ func (a *BiosApiService) PatchBiosUnitExecute(r ApiPatchBiosUnitRequest) (*BiosU localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.biosUnit @@ -3942,7 +3942,7 @@ func (a *BiosApiService) UpdateBiosBootModeExecute(r ApiUpdateBiosBootModeReques localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.biosBootMode @@ -4117,7 +4117,7 @@ func (a *BiosApiService) UpdateBiosPolicyExecute(r ApiUpdateBiosPolicyRequest) ( localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.biosPolicy @@ -4292,7 +4292,7 @@ func (a *BiosApiService) UpdateBiosUnitExecute(r ApiUpdateBiosUnitRequest) (*Bio localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.biosUnit diff --git a/api_boot.go b/api_boot.go index 1e83991a8a..db609e1707 100644 --- a/api_boot.go +++ b/api_boot.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -108,10 +108,10 @@ func (a *BootApiService) CreateBootPrecisionPolicyExecute(r ApiCreateBootPrecisi localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.bootPrecisionPolicy @@ -620,52 +620,52 @@ func (a *BootApiService) GetBootCddDeviceListExecute(r ApiGetBootCddDeviceListRe localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -1047,52 +1047,52 @@ func (a *BootApiService) GetBootDeviceBootModeListExecute(r ApiGetBootDeviceBoot localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -1474,52 +1474,52 @@ func (a *BootApiService) GetBootDeviceBootSecurityListExecute(r ApiGetBootDevice localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -1901,52 +1901,52 @@ func (a *BootApiService) GetBootHddDeviceListExecute(r ApiGetBootHddDeviceListRe localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -2328,52 +2328,52 @@ func (a *BootApiService) GetBootIscsiDeviceListExecute(r ApiGetBootIscsiDeviceLi localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -2755,52 +2755,52 @@ func (a *BootApiService) GetBootNvmeDeviceListExecute(r ApiGetBootNvmeDeviceList localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -3182,52 +3182,52 @@ func (a *BootApiService) GetBootPchStorageDeviceListExecute(r ApiGetBootPchStora localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -3609,52 +3609,52 @@ func (a *BootApiService) GetBootPrecisionPolicyListExecute(r ApiGetBootPrecision localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -4036,52 +4036,52 @@ func (a *BootApiService) GetBootPxeDeviceListExecute(r ApiGetBootPxeDeviceListRe localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -4463,52 +4463,52 @@ func (a *BootApiService) GetBootSanDeviceListExecute(r ApiGetBootSanDeviceListRe localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -4890,52 +4890,52 @@ func (a *BootApiService) GetBootSdDeviceListExecute(r ApiGetBootSdDeviceListRequ localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -5317,52 +5317,52 @@ func (a *BootApiService) GetBootUefiShellDeviceListExecute(r ApiGetBootUefiShell localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -5744,52 +5744,52 @@ func (a *BootApiService) GetBootUsbDeviceListExecute(r ApiGetBootUsbDeviceListRe localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -6171,52 +6171,52 @@ func (a *BootApiService) GetBootVmediaDeviceListExecute(r ApiGetBootVmediaDevice localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -6406,7 +6406,7 @@ func (a *BootApiService) PatchBootCddDeviceExecute(r ApiPatchBootCddDeviceReques localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.bootCddDevice @@ -6581,7 +6581,7 @@ func (a *BootApiService) PatchBootDeviceBootModeExecute(r ApiPatchBootDeviceBoot localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.bootDeviceBootMode @@ -6756,7 +6756,7 @@ func (a *BootApiService) PatchBootDeviceBootSecurityExecute(r ApiPatchBootDevice localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.bootDeviceBootSecurity @@ -6931,7 +6931,7 @@ func (a *BootApiService) PatchBootHddDeviceExecute(r ApiPatchBootHddDeviceReques localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.bootHddDevice @@ -7106,7 +7106,7 @@ func (a *BootApiService) PatchBootIscsiDeviceExecute(r ApiPatchBootIscsiDeviceRe localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.bootIscsiDevice @@ -7281,7 +7281,7 @@ func (a *BootApiService) PatchBootNvmeDeviceExecute(r ApiPatchBootNvmeDeviceRequ localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.bootNvmeDevice @@ -7456,7 +7456,7 @@ func (a *BootApiService) PatchBootPchStorageDeviceExecute(r ApiPatchBootPchStora localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.bootPchStorageDevice @@ -7631,7 +7631,7 @@ func (a *BootApiService) PatchBootPrecisionPolicyExecute(r ApiPatchBootPrecision localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.bootPrecisionPolicy @@ -7806,7 +7806,7 @@ func (a *BootApiService) PatchBootPxeDeviceExecute(r ApiPatchBootPxeDeviceReques localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.bootPxeDevice @@ -7981,7 +7981,7 @@ func (a *BootApiService) PatchBootSanDeviceExecute(r ApiPatchBootSanDeviceReques localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.bootSanDevice @@ -8156,7 +8156,7 @@ func (a *BootApiService) PatchBootSdDeviceExecute(r ApiPatchBootSdDeviceRequest) localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.bootSdDevice @@ -8331,7 +8331,7 @@ func (a *BootApiService) PatchBootUefiShellDeviceExecute(r ApiPatchBootUefiShell localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.bootUefiShellDevice @@ -8506,7 +8506,7 @@ func (a *BootApiService) PatchBootUsbDeviceExecute(r ApiPatchBootUsbDeviceReques localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.bootUsbDevice @@ -8681,7 +8681,7 @@ func (a *BootApiService) PatchBootVmediaDeviceExecute(r ApiPatchBootVmediaDevice localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.bootVmediaDevice @@ -8856,7 +8856,7 @@ func (a *BootApiService) UpdateBootCddDeviceExecute(r ApiUpdateBootCddDeviceRequ localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.bootCddDevice @@ -9031,7 +9031,7 @@ func (a *BootApiService) UpdateBootDeviceBootModeExecute(r ApiUpdateBootDeviceBo localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.bootDeviceBootMode @@ -9206,7 +9206,7 @@ func (a *BootApiService) UpdateBootDeviceBootSecurityExecute(r ApiUpdateBootDevi localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.bootDeviceBootSecurity @@ -9381,7 +9381,7 @@ func (a *BootApiService) UpdateBootHddDeviceExecute(r ApiUpdateBootHddDeviceRequ localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.bootHddDevice @@ -9556,7 +9556,7 @@ func (a *BootApiService) UpdateBootIscsiDeviceExecute(r ApiUpdateBootIscsiDevice localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.bootIscsiDevice @@ -9731,7 +9731,7 @@ func (a *BootApiService) UpdateBootNvmeDeviceExecute(r ApiUpdateBootNvmeDeviceRe localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.bootNvmeDevice @@ -9906,7 +9906,7 @@ func (a *BootApiService) UpdateBootPchStorageDeviceExecute(r ApiUpdateBootPchSto localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.bootPchStorageDevice @@ -10081,7 +10081,7 @@ func (a *BootApiService) UpdateBootPrecisionPolicyExecute(r ApiUpdateBootPrecisi localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.bootPrecisionPolicy @@ -10256,7 +10256,7 @@ func (a *BootApiService) UpdateBootPxeDeviceExecute(r ApiUpdateBootPxeDeviceRequ localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.bootPxeDevice @@ -10431,7 +10431,7 @@ func (a *BootApiService) UpdateBootSanDeviceExecute(r ApiUpdateBootSanDeviceRequ localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.bootSanDevice @@ -10606,7 +10606,7 @@ func (a *BootApiService) UpdateBootSdDeviceExecute(r ApiUpdateBootSdDeviceReques localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.bootSdDevice @@ -10781,7 +10781,7 @@ func (a *BootApiService) UpdateBootUefiShellDeviceExecute(r ApiUpdateBootUefiShe localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.bootUefiShellDevice @@ -10956,7 +10956,7 @@ func (a *BootApiService) UpdateBootUsbDeviceExecute(r ApiUpdateBootUsbDeviceRequ localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.bootUsbDevice @@ -11131,7 +11131,7 @@ func (a *BootApiService) UpdateBootVmediaDeviceExecute(r ApiUpdateBootVmediaDevi localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.bootVmediaDevice diff --git a/api_bulk.go b/api_bulk.go index 1e57d850f0..eb4611fece 100644 --- a/api_bulk.go +++ b/api_bulk.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -108,10 +108,10 @@ func (a *BulkApiService) CreateBulkExportExecute(r ApiCreateBulkExportRequest) ( localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.bulkExport @@ -296,13 +296,13 @@ func (a *BulkApiService) CreateBulkMoClonerExecute(r ApiCreateBulkMoClonerReques localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } if r.prefer != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "Prefer", r.prefer, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "Prefer", r.prefer, "simple", "") } // body params localVarPostBody = r.bulkMoCloner @@ -487,13 +487,13 @@ func (a *BulkApiService) CreateBulkMoDeepClonerExecute(r ApiCreateBulkMoDeepClon localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } if r.prefer != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "Prefer", r.prefer, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "Prefer", r.prefer, "simple", "") } // body params localVarPostBody = r.bulkMoDeepCloner @@ -678,13 +678,13 @@ func (a *BulkApiService) CreateBulkMoMergerExecute(r ApiCreateBulkMoMergerReques localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } if r.prefer != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "Prefer", r.prefer, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "Prefer", r.prefer, "simple", "") } // body params localVarPostBody = r.bulkMoMerger @@ -869,13 +869,13 @@ func (a *BulkApiService) CreateBulkRequestExecute(r ApiCreateBulkRequestRequest) localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } if r.prefer != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "Prefer", r.prefer, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "Prefer", r.prefer, "simple", "") } // body params localVarPostBody = r.bulkRequest @@ -1384,52 +1384,52 @@ func (a *BulkApiService) GetBulkExportListExecute(r ApiGetBulkExportListRequest) localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -1811,52 +1811,52 @@ func (a *BulkApiService) GetBulkExportedItemListExecute(r ApiGetBulkExportedItem localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -2238,52 +2238,52 @@ func (a *BulkApiService) GetBulkMoClonerListExecute(r ApiGetBulkMoClonerListRequ localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -2665,52 +2665,52 @@ func (a *BulkApiService) GetBulkMoDeepClonerListExecute(r ApiGetBulkMoDeepCloner localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -3092,52 +3092,52 @@ func (a *BulkApiService) GetBulkMoMergerListExecute(r ApiGetBulkMoMergerListRequ localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -3519,52 +3519,52 @@ func (a *BulkApiService) GetBulkRequestListExecute(r ApiGetBulkRequestListReques localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -3946,52 +3946,52 @@ func (a *BulkApiService) GetBulkResultListExecute(r ApiGetBulkResultListRequest) localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -4373,52 +4373,52 @@ func (a *BulkApiService) GetBulkSubRequestObjListExecute(r ApiGetBulkSubRequestO localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -4608,7 +4608,7 @@ func (a *BulkApiService) PatchBulkExportExecute(r ApiPatchBulkExportRequest) (*B localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.bulkExport @@ -4783,7 +4783,7 @@ func (a *BulkApiService) UpdateBulkExportExecute(r ApiUpdateBulkExportRequest) ( localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.bulkExport diff --git a/api_capability.go b/api_capability.go index ef9dace893..fe6d2889a6 100644 --- a/api_capability.go +++ b/api_capability.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -108,10 +108,10 @@ func (a *CapabilityApiService) CreateCapabilityActionsMetaDataExecute(r ApiCreat localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.capabilityActionsMetaData @@ -289,10 +289,10 @@ func (a *CapabilityApiService) CreateCapabilityAdapterDeprecatedDefExecute(r Api localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.capabilityAdapterDeprecatedDef @@ -470,10 +470,10 @@ func (a *CapabilityApiService) CreateCapabilityAdapterUnitDescriptorExecute(r Ap localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.capabilityAdapterUnitDescriptor @@ -651,10 +651,10 @@ func (a *CapabilityApiService) CreateCapabilityChassisDescriptorExecute(r ApiCre localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.capabilityChassisDescriptor @@ -832,10 +832,10 @@ func (a *CapabilityApiService) CreateCapabilityChassisManufacturingDefExecute(r localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.capabilityChassisManufacturingDef @@ -1013,10 +1013,10 @@ func (a *CapabilityApiService) CreateCapabilityCimcFirmwareDescriptorExecute(r A localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.capabilityCimcFirmwareDescriptor @@ -1194,10 +1194,10 @@ func (a *CapabilityApiService) CreateCapabilityEquipmentPhysicalDefExecute(r Api localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.capabilityEquipmentPhysicalDef @@ -1375,10 +1375,10 @@ func (a *CapabilityApiService) CreateCapabilityEquipmentSlotArrayExecute(r ApiCr localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.capabilityEquipmentSlotArray @@ -1556,10 +1556,10 @@ func (a *CapabilityApiService) CreateCapabilityFanModuleDescriptorExecute(r ApiC localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.capabilityFanModuleDescriptor @@ -1737,10 +1737,10 @@ func (a *CapabilityApiService) CreateCapabilityFanModuleManufacturingDefExecute( localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.capabilityFanModuleManufacturingDef @@ -1918,10 +1918,10 @@ func (a *CapabilityApiService) CreateCapabilityFexCapabilityDefExecute(r ApiCrea localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.capabilityFexCapabilityDef @@ -2099,10 +2099,10 @@ func (a *CapabilityApiService) CreateCapabilityFexDescriptorExecute(r ApiCreateC localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.capabilityFexDescriptor @@ -2280,10 +2280,10 @@ func (a *CapabilityApiService) CreateCapabilityFexManufacturingDefExecute(r ApiC localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.capabilityFexManufacturingDef @@ -2461,10 +2461,10 @@ func (a *CapabilityApiService) CreateCapabilityIoCardCapabilityDefExecute(r ApiC localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.capabilityIoCardCapabilityDef @@ -2642,10 +2642,10 @@ func (a *CapabilityApiService) CreateCapabilityIoCardDescriptorExecute(r ApiCrea localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.capabilityIoCardDescriptor @@ -2823,10 +2823,10 @@ func (a *CapabilityApiService) CreateCapabilityIoCardManufacturingDefExecute(r A localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.capabilityIoCardManufacturingDef @@ -3004,10 +3004,10 @@ func (a *CapabilityApiService) CreateCapabilityPortGroupAggregationDefExecute(r localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.capabilityPortGroupAggregationDef @@ -3185,10 +3185,10 @@ func (a *CapabilityApiService) CreateCapabilityPsuDescriptorExecute(r ApiCreateC localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.capabilityPsuDescriptor @@ -3366,10 +3366,10 @@ func (a *CapabilityApiService) CreateCapabilityPsuManufacturingDefExecute(r ApiC localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.capabilityPsuManufacturingDef @@ -3547,10 +3547,10 @@ func (a *CapabilityApiService) CreateCapabilityServerDescriptorExecute(r ApiCrea localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.capabilityServerDescriptor @@ -3728,10 +3728,10 @@ func (a *CapabilityApiService) CreateCapabilityServerModelsCapabilityDefExecute( localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.capabilityServerModelsCapabilityDef @@ -3909,10 +3909,10 @@ func (a *CapabilityApiService) CreateCapabilityServerSchemaDescriptorExecute(r A localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.capabilityServerSchemaDescriptor @@ -4090,10 +4090,10 @@ func (a *CapabilityApiService) CreateCapabilitySiocModuleCapabilityDefExecute(r localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.capabilitySiocModuleCapabilityDef @@ -4271,10 +4271,10 @@ func (a *CapabilityApiService) CreateCapabilitySiocModuleDescriptorExecute(r Api localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.capabilitySiocModuleDescriptor @@ -4452,10 +4452,10 @@ func (a *CapabilityApiService) CreateCapabilitySiocModuleManufacturingDefExecute localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.capabilitySiocModuleManufacturingDef @@ -4633,10 +4633,10 @@ func (a *CapabilityApiService) CreateCapabilitySwitchCapabilityExecute(r ApiCrea localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.capabilitySwitchCapability @@ -4814,10 +4814,10 @@ func (a *CapabilityApiService) CreateCapabilitySwitchDescriptorExecute(r ApiCrea localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.capabilitySwitchDescriptor @@ -4995,10 +4995,10 @@ func (a *CapabilityApiService) CreateCapabilitySwitchEquipmentInfoExecute(r ApiC localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.capabilitySwitchEquipmentInfo @@ -5176,10 +5176,10 @@ func (a *CapabilityApiService) CreateCapabilitySwitchManufacturingDefExecute(r A localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.capabilitySwitchManufacturingDef @@ -5357,10 +5357,10 @@ func (a *CapabilityApiService) CreateCapabilityVicDescriptorExecute(r ApiCreateC localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.capabilityVicDescriptor @@ -10129,52 +10129,52 @@ func (a *CapabilityApiService) GetCapabilityActionsMetaDataListExecute(r ApiGetC localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -10556,52 +10556,52 @@ func (a *CapabilityApiService) GetCapabilityAdapterDeprecatedDefListExecute(r Ap localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -10983,52 +10983,52 @@ func (a *CapabilityApiService) GetCapabilityAdapterFirmwareRequirementListExecut localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -11410,52 +11410,52 @@ func (a *CapabilityApiService) GetCapabilityAdapterUnitDescriptorListExecute(r A localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -11837,52 +11837,52 @@ func (a *CapabilityApiService) GetCapabilityAdapterUpdateConstraintMetaListExecu localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -12264,52 +12264,52 @@ func (a *CapabilityApiService) GetCapabilityAdapterUpgradeSupportMetaListExecute localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -12691,52 +12691,52 @@ func (a *CapabilityApiService) GetCapabilityCatalogListExecute(r ApiGetCapabilit localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -13118,52 +13118,52 @@ func (a *CapabilityApiService) GetCapabilityChassisDescriptorListExecute(r ApiGe localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -13545,52 +13545,52 @@ func (a *CapabilityApiService) GetCapabilityChassisManufacturingDefListExecute(r localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -13972,52 +13972,52 @@ func (a *CapabilityApiService) GetCapabilityChassisUpgradeSupportMetaListExecute localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -14399,52 +14399,52 @@ func (a *CapabilityApiService) GetCapabilityCimcFirmwareDescriptorListExecute(r localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -14826,52 +14826,52 @@ func (a *CapabilityApiService) GetCapabilityCpuEndpointDescriptorListExecute(r A localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -15253,52 +15253,52 @@ func (a *CapabilityApiService) GetCapabilityDimmsEndpointDescriptorListExecute(r localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -15680,52 +15680,52 @@ func (a *CapabilityApiService) GetCapabilityDrivesEndpointDescriptorListExecute( localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -16107,52 +16107,52 @@ func (a *CapabilityApiService) GetCapabilityEquipmentPhysicalDefListExecute(r Ap localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -16534,52 +16534,52 @@ func (a *CapabilityApiService) GetCapabilityEquipmentSlotArrayListExecute(r ApiG localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -16961,52 +16961,52 @@ func (a *CapabilityApiService) GetCapabilityFanModuleDescriptorListExecute(r Api localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -17388,52 +17388,52 @@ func (a *CapabilityApiService) GetCapabilityFanModuleManufacturingDefListExecute localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -17815,52 +17815,52 @@ func (a *CapabilityApiService) GetCapabilityFexCapabilityDefListExecute(r ApiGet localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -18242,52 +18242,52 @@ func (a *CapabilityApiService) GetCapabilityFexDescriptorListExecute(r ApiGetCap localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -18669,52 +18669,52 @@ func (a *CapabilityApiService) GetCapabilityFexManufacturingDefListExecute(r Api localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -19096,52 +19096,52 @@ func (a *CapabilityApiService) GetCapabilityGpuEndpointDescriptorListExecute(r A localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -19523,52 +19523,52 @@ func (a *CapabilityApiService) GetCapabilityHsuIsoFileSupportMetaListExecute(r A localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -19950,52 +19950,52 @@ func (a *CapabilityApiService) GetCapabilityIoCardCapabilityDefListExecute(r Api localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -20377,52 +20377,52 @@ func (a *CapabilityApiService) GetCapabilityIoCardDescriptorListExecute(r ApiGet localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -20804,52 +20804,52 @@ func (a *CapabilityApiService) GetCapabilityIoCardManufacturingDefListExecute(r localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -21231,52 +21231,52 @@ func (a *CapabilityApiService) GetCapabilityIomUpgradeSupportMetaListExecute(r A localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -21658,52 +21658,52 @@ func (a *CapabilityApiService) GetCapabilityPortGroupAggregationDefListExecute(r localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -22085,52 +22085,52 @@ func (a *CapabilityApiService) GetCapabilityProcessorUnitUpdateConstraintMetaLis localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -22512,52 +22512,52 @@ func (a *CapabilityApiService) GetCapabilityPsuDescriptorListExecute(r ApiGetCap localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -22939,52 +22939,52 @@ func (a *CapabilityApiService) GetCapabilityPsuManufacturingDefListExecute(r Api localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -23366,52 +23366,52 @@ func (a *CapabilityApiService) GetCapabilityServerActionsMetaListExecute(r ApiGe localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -23793,52 +23793,52 @@ func (a *CapabilityApiService) GetCapabilityServerDescriptorListExecute(r ApiGet localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -24220,52 +24220,52 @@ func (a *CapabilityApiService) GetCapabilityServerModelsCapabilityDefListExecute localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -24647,52 +24647,52 @@ func (a *CapabilityApiService) GetCapabilityServerSchemaDescriptorListExecute(r localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -25074,52 +25074,52 @@ func (a *CapabilityApiService) GetCapabilityServerUpgradeSupportMetaListExecute( localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -25501,52 +25501,52 @@ func (a *CapabilityApiService) GetCapabilitySiocModuleCapabilityDefListExecute(r localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -25928,52 +25928,52 @@ func (a *CapabilityApiService) GetCapabilitySiocModuleDescriptorListExecute(r Ap localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -26355,52 +26355,52 @@ func (a *CapabilityApiService) GetCapabilitySiocModuleManufacturingDefListExecut localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -26782,52 +26782,52 @@ func (a *CapabilityApiService) GetCapabilityStorageControllerUpdateConstraintMet localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -27209,52 +27209,52 @@ func (a *CapabilityApiService) GetCapabilitySwitchCapabilityListExecute(r ApiGet localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -27636,52 +27636,52 @@ func (a *CapabilityApiService) GetCapabilitySwitchDescriptorListExecute(r ApiGet localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -28063,52 +28063,52 @@ func (a *CapabilityApiService) GetCapabilitySwitchEquipmentInfoListExecute(r Api localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -28490,52 +28490,52 @@ func (a *CapabilityApiService) GetCapabilitySwitchManufacturingDefListExecute(r localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -28917,52 +28917,52 @@ func (a *CapabilityApiService) GetCapabilityTemplateCatalogListExecute(r ApiGetC localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -29344,52 +29344,52 @@ func (a *CapabilityApiService) GetCapabilityUpdateOrderMetaListExecute(r ApiGetC localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -29771,52 +29771,52 @@ func (a *CapabilityApiService) GetCapabilityVicDescriptorListExecute(r ApiGetCap localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -30006,7 +30006,7 @@ func (a *CapabilityApiService) PatchCapabilityActionsMetaDataExecute(r ApiPatchC localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.capabilityActionsMetaData @@ -30181,7 +30181,7 @@ func (a *CapabilityApiService) PatchCapabilityAdapterDeprecatedDefExecute(r ApiP localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.capabilityAdapterDeprecatedDef @@ -30356,7 +30356,7 @@ func (a *CapabilityApiService) PatchCapabilityAdapterUnitDescriptorExecute(r Api localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.capabilityAdapterUnitDescriptor @@ -30531,7 +30531,7 @@ func (a *CapabilityApiService) PatchCapabilityCatalogExecute(r ApiPatchCapabilit localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.capabilityCatalog @@ -30706,7 +30706,7 @@ func (a *CapabilityApiService) PatchCapabilityChassisDescriptorExecute(r ApiPatc localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.capabilityChassisDescriptor @@ -30881,7 +30881,7 @@ func (a *CapabilityApiService) PatchCapabilityChassisManufacturingDefExecute(r A localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.capabilityChassisManufacturingDef @@ -31056,7 +31056,7 @@ func (a *CapabilityApiService) PatchCapabilityCimcFirmwareDescriptorExecute(r Ap localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.capabilityCimcFirmwareDescriptor @@ -31231,7 +31231,7 @@ func (a *CapabilityApiService) PatchCapabilityEquipmentPhysicalDefExecute(r ApiP localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.capabilityEquipmentPhysicalDef @@ -31406,7 +31406,7 @@ func (a *CapabilityApiService) PatchCapabilityEquipmentSlotArrayExecute(r ApiPat localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.capabilityEquipmentSlotArray @@ -31581,7 +31581,7 @@ func (a *CapabilityApiService) PatchCapabilityFanModuleDescriptorExecute(r ApiPa localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.capabilityFanModuleDescriptor @@ -31756,7 +31756,7 @@ func (a *CapabilityApiService) PatchCapabilityFanModuleManufacturingDefExecute(r localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.capabilityFanModuleManufacturingDef @@ -31931,7 +31931,7 @@ func (a *CapabilityApiService) PatchCapabilityFexCapabilityDefExecute(r ApiPatch localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.capabilityFexCapabilityDef @@ -32106,7 +32106,7 @@ func (a *CapabilityApiService) PatchCapabilityFexDescriptorExecute(r ApiPatchCap localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.capabilityFexDescriptor @@ -32281,7 +32281,7 @@ func (a *CapabilityApiService) PatchCapabilityFexManufacturingDefExecute(r ApiPa localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.capabilityFexManufacturingDef @@ -32456,7 +32456,7 @@ func (a *CapabilityApiService) PatchCapabilityIoCardCapabilityDefExecute(r ApiPa localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.capabilityIoCardCapabilityDef @@ -32631,7 +32631,7 @@ func (a *CapabilityApiService) PatchCapabilityIoCardDescriptorExecute(r ApiPatch localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.capabilityIoCardDescriptor @@ -32806,7 +32806,7 @@ func (a *CapabilityApiService) PatchCapabilityIoCardManufacturingDefExecute(r Ap localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.capabilityIoCardManufacturingDef @@ -32981,7 +32981,7 @@ func (a *CapabilityApiService) PatchCapabilityPortGroupAggregationDefExecute(r A localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.capabilityPortGroupAggregationDef @@ -33156,7 +33156,7 @@ func (a *CapabilityApiService) PatchCapabilityPsuDescriptorExecute(r ApiPatchCap localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.capabilityPsuDescriptor @@ -33331,7 +33331,7 @@ func (a *CapabilityApiService) PatchCapabilityPsuManufacturingDefExecute(r ApiPa localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.capabilityPsuManufacturingDef @@ -33506,7 +33506,7 @@ func (a *CapabilityApiService) PatchCapabilityServerActionsMetaExecute(r ApiPatc localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.capabilityServerActionsMeta @@ -33681,7 +33681,7 @@ func (a *CapabilityApiService) PatchCapabilityServerDescriptorExecute(r ApiPatch localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.capabilityServerDescriptor @@ -33856,7 +33856,7 @@ func (a *CapabilityApiService) PatchCapabilityServerModelsCapabilityDefExecute(r localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.capabilityServerModelsCapabilityDef @@ -34031,7 +34031,7 @@ func (a *CapabilityApiService) PatchCapabilityServerSchemaDescriptorExecute(r Ap localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.capabilityServerSchemaDescriptor @@ -34206,7 +34206,7 @@ func (a *CapabilityApiService) PatchCapabilitySiocModuleCapabilityDefExecute(r A localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.capabilitySiocModuleCapabilityDef @@ -34381,7 +34381,7 @@ func (a *CapabilityApiService) PatchCapabilitySiocModuleDescriptorExecute(r ApiP localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.capabilitySiocModuleDescriptor @@ -34556,7 +34556,7 @@ func (a *CapabilityApiService) PatchCapabilitySiocModuleManufacturingDefExecute( localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.capabilitySiocModuleManufacturingDef @@ -34731,7 +34731,7 @@ func (a *CapabilityApiService) PatchCapabilitySwitchCapabilityExecute(r ApiPatch localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.capabilitySwitchCapability @@ -34906,7 +34906,7 @@ func (a *CapabilityApiService) PatchCapabilitySwitchDescriptorExecute(r ApiPatch localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.capabilitySwitchDescriptor @@ -35081,7 +35081,7 @@ func (a *CapabilityApiService) PatchCapabilitySwitchEquipmentInfoExecute(r ApiPa localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.capabilitySwitchEquipmentInfo @@ -35256,7 +35256,7 @@ func (a *CapabilityApiService) PatchCapabilitySwitchManufacturingDefExecute(r Ap localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.capabilitySwitchManufacturingDef @@ -35431,7 +35431,7 @@ func (a *CapabilityApiService) PatchCapabilityVicDescriptorExecute(r ApiPatchCap localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.capabilityVicDescriptor @@ -35606,7 +35606,7 @@ func (a *CapabilityApiService) UpdateCapabilityActionsMetaDataExecute(r ApiUpdat localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.capabilityActionsMetaData @@ -35781,7 +35781,7 @@ func (a *CapabilityApiService) UpdateCapabilityAdapterDeprecatedDefExecute(r Api localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.capabilityAdapterDeprecatedDef @@ -35956,7 +35956,7 @@ func (a *CapabilityApiService) UpdateCapabilityAdapterUnitDescriptorExecute(r Ap localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.capabilityAdapterUnitDescriptor @@ -36131,7 +36131,7 @@ func (a *CapabilityApiService) UpdateCapabilityCatalogExecute(r ApiUpdateCapabil localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.capabilityCatalog @@ -36306,7 +36306,7 @@ func (a *CapabilityApiService) UpdateCapabilityChassisDescriptorExecute(r ApiUpd localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.capabilityChassisDescriptor @@ -36481,7 +36481,7 @@ func (a *CapabilityApiService) UpdateCapabilityChassisManufacturingDefExecute(r localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.capabilityChassisManufacturingDef @@ -36656,7 +36656,7 @@ func (a *CapabilityApiService) UpdateCapabilityCimcFirmwareDescriptorExecute(r A localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.capabilityCimcFirmwareDescriptor @@ -36831,7 +36831,7 @@ func (a *CapabilityApiService) UpdateCapabilityEquipmentPhysicalDefExecute(r Api localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.capabilityEquipmentPhysicalDef @@ -37006,7 +37006,7 @@ func (a *CapabilityApiService) UpdateCapabilityEquipmentSlotArrayExecute(r ApiUp localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.capabilityEquipmentSlotArray @@ -37181,7 +37181,7 @@ func (a *CapabilityApiService) UpdateCapabilityFanModuleDescriptorExecute(r ApiU localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.capabilityFanModuleDescriptor @@ -37356,7 +37356,7 @@ func (a *CapabilityApiService) UpdateCapabilityFanModuleManufacturingDefExecute( localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.capabilityFanModuleManufacturingDef @@ -37531,7 +37531,7 @@ func (a *CapabilityApiService) UpdateCapabilityFexCapabilityDefExecute(r ApiUpda localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.capabilityFexCapabilityDef @@ -37706,7 +37706,7 @@ func (a *CapabilityApiService) UpdateCapabilityFexDescriptorExecute(r ApiUpdateC localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.capabilityFexDescriptor @@ -37881,7 +37881,7 @@ func (a *CapabilityApiService) UpdateCapabilityFexManufacturingDefExecute(r ApiU localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.capabilityFexManufacturingDef @@ -38056,7 +38056,7 @@ func (a *CapabilityApiService) UpdateCapabilityIoCardCapabilityDefExecute(r ApiU localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.capabilityIoCardCapabilityDef @@ -38231,7 +38231,7 @@ func (a *CapabilityApiService) UpdateCapabilityIoCardDescriptorExecute(r ApiUpda localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.capabilityIoCardDescriptor @@ -38406,7 +38406,7 @@ func (a *CapabilityApiService) UpdateCapabilityIoCardManufacturingDefExecute(r A localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.capabilityIoCardManufacturingDef @@ -38581,7 +38581,7 @@ func (a *CapabilityApiService) UpdateCapabilityPortGroupAggregationDefExecute(r localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.capabilityPortGroupAggregationDef @@ -38756,7 +38756,7 @@ func (a *CapabilityApiService) UpdateCapabilityPsuDescriptorExecute(r ApiUpdateC localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.capabilityPsuDescriptor @@ -38931,7 +38931,7 @@ func (a *CapabilityApiService) UpdateCapabilityPsuManufacturingDefExecute(r ApiU localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.capabilityPsuManufacturingDef @@ -39106,7 +39106,7 @@ func (a *CapabilityApiService) UpdateCapabilityServerActionsMetaExecute(r ApiUpd localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.capabilityServerActionsMeta @@ -39281,7 +39281,7 @@ func (a *CapabilityApiService) UpdateCapabilityServerDescriptorExecute(r ApiUpda localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.capabilityServerDescriptor @@ -39456,7 +39456,7 @@ func (a *CapabilityApiService) UpdateCapabilityServerModelsCapabilityDefExecute( localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.capabilityServerModelsCapabilityDef @@ -39631,7 +39631,7 @@ func (a *CapabilityApiService) UpdateCapabilityServerSchemaDescriptorExecute(r A localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.capabilityServerSchemaDescriptor @@ -39806,7 +39806,7 @@ func (a *CapabilityApiService) UpdateCapabilitySiocModuleCapabilityDefExecute(r localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.capabilitySiocModuleCapabilityDef @@ -39981,7 +39981,7 @@ func (a *CapabilityApiService) UpdateCapabilitySiocModuleDescriptorExecute(r Api localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.capabilitySiocModuleDescriptor @@ -40156,7 +40156,7 @@ func (a *CapabilityApiService) UpdateCapabilitySiocModuleManufacturingDefExecute localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.capabilitySiocModuleManufacturingDef @@ -40331,7 +40331,7 @@ func (a *CapabilityApiService) UpdateCapabilitySwitchCapabilityExecute(r ApiUpda localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.capabilitySwitchCapability @@ -40506,7 +40506,7 @@ func (a *CapabilityApiService) UpdateCapabilitySwitchDescriptorExecute(r ApiUpda localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.capabilitySwitchDescriptor @@ -40681,7 +40681,7 @@ func (a *CapabilityApiService) UpdateCapabilitySwitchEquipmentInfoExecute(r ApiU localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.capabilitySwitchEquipmentInfo @@ -40856,7 +40856,7 @@ func (a *CapabilityApiService) UpdateCapabilitySwitchManufacturingDefExecute(r A localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.capabilitySwitchManufacturingDef @@ -41031,7 +41031,7 @@ func (a *CapabilityApiService) UpdateCapabilityVicDescriptorExecute(r ApiUpdateC localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.capabilityVicDescriptor diff --git a/api_catalystsdwan.go b/api_catalystsdwan.go index 825e84fb81..bfe32a77d5 100644 --- a/api_catalystsdwan.go +++ b/api_catalystsdwan.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -297,52 +297,52 @@ func (a *CatalystsdwanApiService) GetCatalystsdwanConfigGroupListExecute(r ApiGe localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -724,52 +724,52 @@ func (a *CatalystsdwanApiService) GetCatalystsdwanPolicyGroupListExecute(r ApiGe localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -1151,52 +1151,52 @@ func (a *CatalystsdwanApiService) GetCatalystsdwanVedgeDeviceListExecute(r ApiGe localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} diff --git a/api_certificatemanagement.go b/api_certificatemanagement.go index f380980d00..ec1dc1c6b4 100644 --- a/api_certificatemanagement.go +++ b/api_certificatemanagement.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -108,10 +108,10 @@ func (a *CertificatemanagementApiService) CreateCertificatemanagementPolicyExecu localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.certificatemanagementPolicy @@ -773,52 +773,52 @@ func (a *CertificatemanagementApiService) GetCertificatemanagementPolicyInventor localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -1047,52 +1047,52 @@ func (a *CertificatemanagementApiService) GetCertificatemanagementPolicyListExec localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -1282,7 +1282,7 @@ func (a *CertificatemanagementApiService) PatchCertificatemanagementPolicyExecut localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.certificatemanagementPolicy @@ -1457,7 +1457,7 @@ func (a *CertificatemanagementApiService) UpdateCertificatemanagementPolicyExecu localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.certificatemanagementPolicy diff --git a/api_chassis.go b/api_chassis.go index 650200bce6..b97fa7bd98 100644 --- a/api_chassis.go +++ b/api_chassis.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -108,10 +108,10 @@ func (a *ChassisApiService) CreateChassisConfigImportExecute(r ApiCreateChassisC localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.chassisConfigImport @@ -289,10 +289,10 @@ func (a *ChassisApiService) CreateChassisProfileExecute(r ApiCreateChassisProfil localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.chassisProfile @@ -470,10 +470,10 @@ func (a *ChassisApiService) CreateChassisProfileTemplateExecute(r ApiCreateChass localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.chassisProfileTemplate @@ -1124,52 +1124,52 @@ func (a *ChassisApiService) GetChassisConfigChangeDetailListExecute(r ApiGetChas localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -1551,52 +1551,52 @@ func (a *ChassisApiService) GetChassisConfigImportListExecute(r ApiGetChassisCon localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -2131,52 +2131,52 @@ func (a *ChassisApiService) GetChassisConfigResultEntryListExecute(r ApiGetChass localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -2405,52 +2405,52 @@ func (a *ChassisApiService) GetChassisConfigResultListExecute(r ApiGetChassisCon localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -2832,52 +2832,52 @@ func (a *ChassisApiService) GetChassisIomProfileListExecute(r ApiGetChassisIomPr localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -3259,52 +3259,52 @@ func (a *ChassisApiService) GetChassisProfileListExecute(r ApiGetChassisProfileL localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -3686,52 +3686,52 @@ func (a *ChassisApiService) GetChassisProfileTemplateListExecute(r ApiGetChassis localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -3921,7 +3921,7 @@ func (a *ChassisApiService) PatchChassisProfileExecute(r ApiPatchChassisProfileR localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.chassisProfile @@ -4096,7 +4096,7 @@ func (a *ChassisApiService) PatchChassisProfileTemplateExecute(r ApiPatchChassis localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.chassisProfileTemplate @@ -4271,7 +4271,7 @@ func (a *ChassisApiService) UpdateChassisProfileExecute(r ApiUpdateChassisProfil localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.chassisProfile @@ -4446,7 +4446,7 @@ func (a *ChassisApiService) UpdateChassisProfileTemplateExecute(r ApiUpdateChass localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.chassisProfileTemplate diff --git a/api_cloud.go b/api_cloud.go index 0feee71fa0..1d35c639f3 100644 --- a/api_cloud.go +++ b/api_cloud.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -108,10 +108,10 @@ func (a *CloudApiService) CreateCloudCollectInventoryExecute(r ApiCreateCloudCol localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.cloudCollectInventory @@ -478,52 +478,52 @@ func (a *CloudApiService) GetCloudAwsBillingUnitListExecute(r ApiGetCloudAwsBill localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -905,52 +905,52 @@ func (a *CloudApiService) GetCloudAwsKeyPairListExecute(r ApiGetCloudAwsKeyPairL localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -1332,52 +1332,52 @@ func (a *CloudApiService) GetCloudAwsNetworkInterfaceListExecute(r ApiGetCloudAw localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -1759,52 +1759,52 @@ func (a *CloudApiService) GetCloudAwsOrganizationalUnitListExecute(r ApiGetCloud localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -2186,52 +2186,52 @@ func (a *CloudApiService) GetCloudAwsSecurityGroupListExecute(r ApiGetCloudAwsSe localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -2613,52 +2613,52 @@ func (a *CloudApiService) GetCloudAwsSubnetListExecute(r ApiGetCloudAwsSubnetLis localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -3040,52 +3040,52 @@ func (a *CloudApiService) GetCloudAwsVirtualMachineListExecute(r ApiGetCloudAwsV localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -3467,52 +3467,52 @@ func (a *CloudApiService) GetCloudAwsVolumeListExecute(r ApiGetCloudAwsVolumeLis localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -3894,52 +3894,52 @@ func (a *CloudApiService) GetCloudAwsVpcListExecute(r ApiGetCloudAwsVpcListReque localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -4321,52 +4321,52 @@ func (a *CloudApiService) GetCloudRegionsListExecute(r ApiGetCloudRegionsListReq localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -4748,52 +4748,52 @@ func (a *CloudApiService) GetCloudSkuContainerTypeListExecute(r ApiGetCloudSkuCo localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -5175,52 +5175,52 @@ func (a *CloudApiService) GetCloudSkuDatabaseTypeListExecute(r ApiGetCloudSkuDat localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -5602,52 +5602,52 @@ func (a *CloudApiService) GetCloudSkuInstanceTypeListExecute(r ApiGetCloudSkuIns localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -6029,52 +6029,52 @@ func (a *CloudApiService) GetCloudSkuNetworkTypeListExecute(r ApiGetCloudSkuNetw localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -6456,52 +6456,52 @@ func (a *CloudApiService) GetCloudSkuRegionRateCardsListExecute(r ApiGetCloudSku localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -6883,52 +6883,52 @@ func (a *CloudApiService) GetCloudSkuVolumeTypeListExecute(r ApiGetCloudSkuVolum localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -7310,52 +7310,52 @@ func (a *CloudApiService) GetCloudTfcAgentpoolListExecute(r ApiGetCloudTfcAgentp localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -7737,52 +7737,52 @@ func (a *CloudApiService) GetCloudTfcOrganizationListExecute(r ApiGetCloudTfcOrg localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -8164,52 +8164,52 @@ func (a *CloudApiService) GetCloudTfcWorkspaceListExecute(r ApiGetCloudTfcWorksp localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -8399,7 +8399,7 @@ func (a *CloudApiService) PatchCloudAwsVirtualMachineExecute(r ApiPatchCloudAwsV localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.cloudAwsVirtualMachine @@ -8574,7 +8574,7 @@ func (a *CloudApiService) PatchCloudRegionsExecute(r ApiPatchCloudRegionsRequest localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.cloudRegions @@ -8749,7 +8749,7 @@ func (a *CloudApiService) UpdateCloudAwsVirtualMachineExecute(r ApiUpdateCloudAw localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.cloudAwsVirtualMachine @@ -8924,7 +8924,7 @@ func (a *CloudApiService) UpdateCloudRegionsExecute(r ApiUpdateCloudRegionsReque localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.cloudRegions diff --git a/api_comm.go b/api_comm.go index 0bbb79beb2..d49906dee5 100644 --- a/api_comm.go +++ b/api_comm.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -108,10 +108,10 @@ func (a *CommApiService) CreateCommHttpProxyPolicyExecute(r ApiCreateCommHttpPro localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.commHttpProxyPolicy @@ -620,52 +620,52 @@ func (a *CommApiService) GetCommHttpProxyPolicyListExecute(r ApiGetCommHttpProxy localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -855,7 +855,7 @@ func (a *CommApiService) PatchCommHttpProxyPolicyExecute(r ApiPatchCommHttpProxy localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.commHttpProxyPolicy @@ -1030,7 +1030,7 @@ func (a *CommApiService) UpdateCommHttpProxyPolicyExecute(r ApiUpdateCommHttpPro localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.commHttpProxyPolicy diff --git a/api_compute.go b/api_compute.go index 509c4ae589..46bbb18cf3 100644 --- a/api_compute.go +++ b/api_compute.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -108,10 +108,10 @@ func (a *ComputeApiService) CreateComputeHostUtilityOperationExecute(r ApiCreate localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.computeHostUtilityOperation @@ -1057,52 +1057,52 @@ func (a *ComputeApiService) GetComputeBladeIdentityListExecute(r ApiGetComputeBl localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -1331,52 +1331,52 @@ func (a *ComputeApiService) GetComputeBladeListExecute(r ApiGetComputeBladeListR localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -1758,52 +1758,52 @@ func (a *ComputeApiService) GetComputeBoardListExecute(r ApiGetComputeBoardListR localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -2185,52 +2185,52 @@ func (a *ComputeApiService) GetComputeDownloadStatusListExecute(r ApiGetComputeD localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -2612,52 +2612,52 @@ func (a *ComputeApiService) GetComputeHostUtilityOperationListExecute(r ApiGetCo localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -3039,52 +3039,52 @@ func (a *ComputeApiService) GetComputeMappingListExecute(r ApiGetComputeMappingL localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -3466,52 +3466,52 @@ func (a *ComputeApiService) GetComputePersonalityListExecute(r ApiGetComputePers localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -3893,52 +3893,52 @@ func (a *ComputeApiService) GetComputePhysicalSummaryListExecute(r ApiGetCompute localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -4473,52 +4473,52 @@ func (a *ComputeApiService) GetComputeRackUnitIdentityListExecute(r ApiGetComput localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -4747,52 +4747,52 @@ func (a *ComputeApiService) GetComputeRackUnitListExecute(r ApiGetComputeRackUni localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -5174,52 +5174,52 @@ func (a *ComputeApiService) GetComputeServerIdPoolListExecute(r ApiGetComputeSer localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -5601,52 +5601,52 @@ func (a *ComputeApiService) GetComputeServerPowerPolicyListExecute(r ApiGetCompu localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -6028,52 +6028,52 @@ func (a *ComputeApiService) GetComputeServerSettingListExecute(r ApiGetComputeSe localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -6455,52 +6455,52 @@ func (a *ComputeApiService) GetComputeVmediaListExecute(r ApiGetComputeVmediaLis localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -6690,7 +6690,7 @@ func (a *ComputeApiService) PatchComputeBladeExecute(r ApiPatchComputeBladeReque localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.computeBlade @@ -6865,7 +6865,7 @@ func (a *ComputeApiService) PatchComputeBladeIdentityExecute(r ApiPatchComputeBl localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.computeBladeIdentity @@ -7040,7 +7040,7 @@ func (a *ComputeApiService) PatchComputeBoardExecute(r ApiPatchComputeBoardReque localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.computeBoard @@ -7215,7 +7215,7 @@ func (a *ComputeApiService) PatchComputeMappingExecute(r ApiPatchComputeMappingR localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.computeMapping @@ -7390,7 +7390,7 @@ func (a *ComputeApiService) PatchComputePersonalityExecute(r ApiPatchComputePers localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.computePersonality @@ -7565,7 +7565,7 @@ func (a *ComputeApiService) PatchComputeRackUnitExecute(r ApiPatchComputeRackUni localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.computeRackUnit @@ -7740,7 +7740,7 @@ func (a *ComputeApiService) PatchComputeRackUnitIdentityExecute(r ApiPatchComput localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.computeRackUnitIdentity @@ -7915,7 +7915,7 @@ func (a *ComputeApiService) PatchComputeServerPowerPolicyExecute(r ApiPatchCompu localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.computeServerPowerPolicy @@ -8090,7 +8090,7 @@ func (a *ComputeApiService) PatchComputeServerSettingExecute(r ApiPatchComputeSe localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.computeServerSetting @@ -8265,7 +8265,7 @@ func (a *ComputeApiService) UpdateComputeBladeExecute(r ApiUpdateComputeBladeReq localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.computeBlade @@ -8440,7 +8440,7 @@ func (a *ComputeApiService) UpdateComputeBladeIdentityExecute(r ApiUpdateCompute localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.computeBladeIdentity @@ -8615,7 +8615,7 @@ func (a *ComputeApiService) UpdateComputeBoardExecute(r ApiUpdateComputeBoardReq localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.computeBoard @@ -8790,7 +8790,7 @@ func (a *ComputeApiService) UpdateComputeMappingExecute(r ApiUpdateComputeMappin localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.computeMapping @@ -8965,7 +8965,7 @@ func (a *ComputeApiService) UpdateComputePersonalityExecute(r ApiUpdateComputePe localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.computePersonality @@ -9140,7 +9140,7 @@ func (a *ComputeApiService) UpdateComputeRackUnitExecute(r ApiUpdateComputeRackU localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.computeRackUnit @@ -9315,7 +9315,7 @@ func (a *ComputeApiService) UpdateComputeRackUnitIdentityExecute(r ApiUpdateComp localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.computeRackUnitIdentity @@ -9490,7 +9490,7 @@ func (a *ComputeApiService) UpdateComputeServerPowerPolicyExecute(r ApiUpdateCom localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.computeServerPowerPolicy @@ -9665,7 +9665,7 @@ func (a *ComputeApiService) UpdateComputeServerSettingExecute(r ApiUpdateCompute localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.computeServerSetting diff --git a/api_cond.go b/api_cond.go index 2a67e6949c..859e145b2b 100644 --- a/api_cond.go +++ b/api_cond.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -108,10 +108,10 @@ func (a *CondApiService) CreateCondAlarmSuppressionExecute(r ApiCreateCondAlarmS localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.condAlarmSuppression @@ -620,52 +620,52 @@ func (a *CondApiService) GetCondAlarmAggregationListExecute(r ApiGetCondAlarmAgg localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -1200,52 +1200,52 @@ func (a *CondApiService) GetCondAlarmClassificationListExecute(r ApiGetCondAlarm localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -1627,52 +1627,52 @@ func (a *CondApiService) GetCondAlarmDefinitionListExecute(r ApiGetCondAlarmDefi localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -1901,52 +1901,52 @@ func (a *CondApiService) GetCondAlarmListExecute(r ApiGetCondAlarmListRequest) ( localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -2328,52 +2328,52 @@ func (a *CondApiService) GetCondAlarmSuppressionListExecute(r ApiGetCondAlarmSup localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -2908,52 +2908,52 @@ func (a *CondApiService) GetCondHclStatusDetailListExecute(r ApiGetCondHclStatus localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -3335,52 +3335,52 @@ func (a *CondApiService) GetCondHclStatusJobListExecute(r ApiGetCondHclStatusJob localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -3609,52 +3609,52 @@ func (a *CondApiService) GetCondHclStatusListExecute(r ApiGetCondHclStatusListRe localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -3844,7 +3844,7 @@ func (a *CondApiService) PatchCondAlarmExecute(r ApiPatchCondAlarmRequest) (*Con localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.condAlarm @@ -4019,7 +4019,7 @@ func (a *CondApiService) PatchCondAlarmSuppressionExecute(r ApiPatchCondAlarmSup localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.condAlarmSuppression @@ -4194,7 +4194,7 @@ func (a *CondApiService) UpdateCondAlarmExecute(r ApiUpdateCondAlarmRequest) (*C localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.condAlarm @@ -4369,7 +4369,7 @@ func (a *CondApiService) UpdateCondAlarmSuppressionExecute(r ApiUpdateCondAlarmS localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.condAlarmSuppression diff --git a/api_connectorpack.go b/api_connectorpack.go index 815f7ae37f..76fa6b488d 100644 --- a/api_connectorpack.go +++ b/api_connectorpack.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -108,10 +108,10 @@ func (a *ConnectorpackApiService) CreateConnectorpackConnectorPackUpgradeExecute localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.connectorpackConnectorPackUpgrade @@ -620,52 +620,52 @@ func (a *ConnectorpackApiService) GetConnectorpackConnectorPackUpgradeListExecut localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -1047,52 +1047,52 @@ func (a *ConnectorpackApiService) GetConnectorpackUpgradeImpactListExecute(r Api localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} diff --git a/api_console.go b/api_console.go index 4787ff6e98..7f8cdf1e31 100644 --- a/api_console.go +++ b/api_console.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -297,52 +297,52 @@ func (a *ConsoleApiService) GetConsoleConsoleConfigListExecute(r ApiGetConsoleCo localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} diff --git a/api_convergedinfra.go b/api_convergedinfra.go index 66a164d506..b7ccb7907a 100644 --- a/api_convergedinfra.go +++ b/api_convergedinfra.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -297,52 +297,52 @@ func (a *ConvergedinfraApiService) GetConvergedinfraAdapterComplianceDetailsList localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -877,52 +877,52 @@ func (a *ConvergedinfraApiService) GetConvergedinfraPodComplianceInfoListExecute localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -1151,52 +1151,52 @@ func (a *ConvergedinfraApiService) GetConvergedinfraPodListExecute(r ApiGetConve localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -1578,52 +1578,52 @@ func (a *ConvergedinfraApiService) GetConvergedinfraServerComplianceDetailsListE localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -2005,52 +2005,52 @@ func (a *ConvergedinfraApiService) GetConvergedinfraStorageComplianceDetailsList localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -2432,52 +2432,52 @@ func (a *ConvergedinfraApiService) GetConvergedinfraSwitchComplianceDetailsListE localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -2667,7 +2667,7 @@ func (a *ConvergedinfraApiService) PatchConvergedinfraPodExecute(r ApiPatchConve localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.convergedinfraPod @@ -2842,7 +2842,7 @@ func (a *ConvergedinfraApiService) UpdateConvergedinfraPodExecute(r ApiUpdateCon localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.convergedinfraPod diff --git a/api_crd.go b/api_crd.go index fae0deb61f..6066c2028b 100644 --- a/api_crd.go +++ b/api_crd.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -108,10 +108,10 @@ func (a *CrdApiService) CreateCrdCustomResourceExecute(r ApiCreateCrdCustomResou localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.crdCustomResource @@ -620,52 +620,52 @@ func (a *CrdApiService) GetCrdCustomResourceListExecute(r ApiGetCrdCustomResourc localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -855,7 +855,7 @@ func (a *CrdApiService) PatchCrdCustomResourceExecute(r ApiPatchCrdCustomResourc localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.crdCustomResource @@ -1030,7 +1030,7 @@ func (a *CrdApiService) UpdateCrdCustomResourceExecute(r ApiUpdateCrdCustomResou localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.crdCustomResource diff --git a/api_deviceconnector.go b/api_deviceconnector.go index 0785a34f13..574c817459 100644 --- a/api_deviceconnector.go +++ b/api_deviceconnector.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -108,10 +108,10 @@ func (a *DeviceconnectorApiService) CreateDeviceconnectorPolicyExecute(r ApiCrea localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.deviceconnectorPolicy @@ -620,52 +620,52 @@ func (a *DeviceconnectorApiService) GetDeviceconnectorPolicyListExecute(r ApiGet localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -855,7 +855,7 @@ func (a *DeviceconnectorApiService) PatchDeviceconnectorPolicyExecute(r ApiPatch localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.deviceconnectorPolicy @@ -1030,7 +1030,7 @@ func (a *DeviceconnectorApiService) UpdateDeviceconnectorPolicyExecute(r ApiUpda localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.deviceconnectorPolicy diff --git a/api_dnac.go b/api_dnac.go index 461641a2a9..e1f91a29cb 100644 --- a/api_dnac.go +++ b/api_dnac.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -450,52 +450,52 @@ func (a *DnacApiService) GetDnacDeviceInterfaceListExecute(r ApiGetDnacDeviceInt localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -724,52 +724,52 @@ func (a *DnacApiService) GetDnacDeviceListExecute(r ApiGetDnacDeviceListRequest) localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -1304,52 +1304,52 @@ func (a *DnacApiService) GetDnacExternalBorderNodeInterfaceListExecute(r ApiGetD localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -1578,52 +1578,52 @@ func (a *DnacApiService) GetDnacExternalBorderNodeListExecute(r ApiGetDnacExtern localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -2005,52 +2005,52 @@ func (a *DnacApiService) GetDnacFabricSiteListExecute(r ApiGetDnacFabricSiteList localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -2585,52 +2585,52 @@ func (a *DnacApiService) GetDnacSiteIpPoolListExecute(r ApiGetDnacSiteIpPoolList localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -2859,52 +2859,52 @@ func (a *DnacApiService) GetDnacSiteListExecute(r ApiGetDnacSiteListRequest) (*D localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -3286,52 +3286,52 @@ func (a *DnacApiService) GetDnacTemplateListExecute(r ApiGetDnacTemplateListRequ localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -3713,52 +3713,52 @@ func (a *DnacApiService) GetDnacTransitListExecute(r ApiGetDnacTransitListReques localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -4140,52 +4140,52 @@ func (a *DnacApiService) GetDnacVirtualNetworkFabricSiteListExecute(r ApiGetDnac localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} diff --git a/api_equipment.go b/api_equipment.go index 9a8cdafdba..8e85656e32 100644 --- a/api_equipment.go +++ b/api_equipment.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -450,52 +450,52 @@ func (a *EquipmentApiService) GetEquipmentChassisIdPoolListExecute(r ApiGetEquip localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -877,52 +877,52 @@ func (a *EquipmentApiService) GetEquipmentChassisIdentityListExecute(r ApiGetEqu localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -1151,52 +1151,52 @@ func (a *EquipmentApiService) GetEquipmentChassisListExecute(r ApiGetEquipmentCh localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -1578,52 +1578,52 @@ func (a *EquipmentApiService) GetEquipmentChassisOperationListExecute(r ApiGetEq localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -2005,52 +2005,52 @@ func (a *EquipmentApiService) GetEquipmentDeviceSummaryListExecute(r ApiGetEquip localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -2432,52 +2432,52 @@ func (a *EquipmentApiService) GetEquipmentEndPointLogListExecute(r ApiGetEquipme localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -2859,52 +2859,52 @@ func (a *EquipmentApiService) GetEquipmentExpanderModuleListExecute(r ApiGetEqui localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -3439,52 +3439,52 @@ func (a *EquipmentApiService) GetEquipmentFanControlListExecute(r ApiGetEquipmen localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -3713,52 +3713,52 @@ func (a *EquipmentApiService) GetEquipmentFanListExecute(r ApiGetEquipmentFanLis localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -4140,52 +4140,52 @@ func (a *EquipmentApiService) GetEquipmentFanModuleListExecute(r ApiGetEquipment localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -4720,52 +4720,52 @@ func (a *EquipmentApiService) GetEquipmentFexIdentityListExecute(r ApiGetEquipme localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -4994,52 +4994,52 @@ func (a *EquipmentApiService) GetEquipmentFexListExecute(r ApiGetEquipmentFexLis localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -5421,52 +5421,52 @@ func (a *EquipmentApiService) GetEquipmentFexOperationListExecute(r ApiGetEquipm localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -5848,52 +5848,52 @@ func (a *EquipmentApiService) GetEquipmentFruListExecute(r ApiGetEquipmentFruLis localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -6275,52 +6275,52 @@ func (a *EquipmentApiService) GetEquipmentHybridDriveSlotListExecute(r ApiGetEqu localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -6702,52 +6702,52 @@ func (a *EquipmentApiService) GetEquipmentIoCardListExecute(r ApiGetEquipmentIoC localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -7129,52 +7129,52 @@ func (a *EquipmentApiService) GetEquipmentIoCardOperationListExecute(r ApiGetEqu localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -7556,52 +7556,52 @@ func (a *EquipmentApiService) GetEquipmentIoExpanderListExecute(r ApiGetEquipmen localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -7983,52 +7983,52 @@ func (a *EquipmentApiService) GetEquipmentLocatorLedListExecute(r ApiGetEquipmen localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -8410,52 +8410,52 @@ func (a *EquipmentApiService) GetEquipmentLogDownloadListExecute(r ApiGetEquipme localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -8990,52 +8990,52 @@ func (a *EquipmentApiService) GetEquipmentPsuControlListExecute(r ApiGetEquipmen localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -9264,52 +9264,52 @@ func (a *EquipmentApiService) GetEquipmentPsuListExecute(r ApiGetEquipmentPsuLis localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -9691,52 +9691,52 @@ func (a *EquipmentApiService) GetEquipmentRackEnclosureListExecute(r ApiGetEquip localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -10118,52 +10118,52 @@ func (a *EquipmentApiService) GetEquipmentRackEnclosureSlotListExecute(r ApiGetE localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -10545,52 +10545,52 @@ func (a *EquipmentApiService) GetEquipmentSensorListExecute(r ApiGetEquipmentSen localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -10972,52 +10972,52 @@ func (a *EquipmentApiService) GetEquipmentSharedIoModuleListExecute(r ApiGetEqui localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -11399,52 +11399,52 @@ func (a *EquipmentApiService) GetEquipmentSwitchCardListExecute(r ApiGetEquipmen localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -11826,52 +11826,52 @@ func (a *EquipmentApiService) GetEquipmentSwitchOperationListExecute(r ApiGetEqu localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -12253,52 +12253,52 @@ func (a *EquipmentApiService) GetEquipmentSystemIoControllerListExecute(r ApiGet localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -12680,52 +12680,52 @@ func (a *EquipmentApiService) GetEquipmentTpmListExecute(r ApiGetEquipmentTpmLis localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -13107,52 +13107,52 @@ func (a *EquipmentApiService) GetEquipmentTransceiverListExecute(r ApiGetEquipme localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -13342,7 +13342,7 @@ func (a *EquipmentApiService) PatchEquipmentChassisExecute(r ApiPatchEquipmentCh localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.equipmentChassis @@ -13517,7 +13517,7 @@ func (a *EquipmentApiService) PatchEquipmentChassisIdentityExecute(r ApiPatchEqu localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.equipmentChassisIdentity @@ -13692,7 +13692,7 @@ func (a *EquipmentApiService) PatchEquipmentChassisOperationExecute(r ApiPatchEq localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.equipmentChassisOperation @@ -13867,7 +13867,7 @@ func (a *EquipmentApiService) PatchEquipmentExpanderModuleExecute(r ApiPatchEqui localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.equipmentExpanderModule @@ -14042,7 +14042,7 @@ func (a *EquipmentApiService) PatchEquipmentFanExecute(r ApiPatchEquipmentFanReq localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.equipmentFan @@ -14217,7 +14217,7 @@ func (a *EquipmentApiService) PatchEquipmentFanControlExecute(r ApiPatchEquipmen localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.equipmentFanControl @@ -14392,7 +14392,7 @@ func (a *EquipmentApiService) PatchEquipmentFanModuleExecute(r ApiPatchEquipment localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.equipmentFanModule @@ -14567,7 +14567,7 @@ func (a *EquipmentApiService) PatchEquipmentFexExecute(r ApiPatchEquipmentFexReq localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.equipmentFex @@ -14742,7 +14742,7 @@ func (a *EquipmentApiService) PatchEquipmentFexIdentityExecute(r ApiPatchEquipme localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.equipmentFexIdentity @@ -14917,7 +14917,7 @@ func (a *EquipmentApiService) PatchEquipmentFexOperationExecute(r ApiPatchEquipm localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.equipmentFexOperation @@ -15092,7 +15092,7 @@ func (a *EquipmentApiService) PatchEquipmentFruExecute(r ApiPatchEquipmentFruReq localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.equipmentFru @@ -15267,7 +15267,7 @@ func (a *EquipmentApiService) PatchEquipmentIoCardExecute(r ApiPatchEquipmentIoC localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.equipmentIoCard @@ -15442,7 +15442,7 @@ func (a *EquipmentApiService) PatchEquipmentIoCardOperationExecute(r ApiPatchEqu localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.equipmentIoCardOperation @@ -15617,7 +15617,7 @@ func (a *EquipmentApiService) PatchEquipmentIoExpanderExecute(r ApiPatchEquipmen localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.equipmentIoExpander @@ -15792,7 +15792,7 @@ func (a *EquipmentApiService) PatchEquipmentLocatorLedExecute(r ApiPatchEquipmen localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.equipmentLocatorLed @@ -15967,7 +15967,7 @@ func (a *EquipmentApiService) PatchEquipmentPsuExecute(r ApiPatchEquipmentPsuReq localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.equipmentPsu @@ -16142,7 +16142,7 @@ func (a *EquipmentApiService) PatchEquipmentPsuControlExecute(r ApiPatchEquipmen localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.equipmentPsuControl @@ -16317,7 +16317,7 @@ func (a *EquipmentApiService) PatchEquipmentRackEnclosureExecute(r ApiPatchEquip localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.equipmentRackEnclosure @@ -16492,7 +16492,7 @@ func (a *EquipmentApiService) PatchEquipmentRackEnclosureSlotExecute(r ApiPatchE localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.equipmentRackEnclosureSlot @@ -16667,7 +16667,7 @@ func (a *EquipmentApiService) PatchEquipmentSharedIoModuleExecute(r ApiPatchEqui localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.equipmentSharedIoModule @@ -16842,7 +16842,7 @@ func (a *EquipmentApiService) PatchEquipmentSwitchCardExecute(r ApiPatchEquipmen localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.equipmentSwitchCard @@ -17017,7 +17017,7 @@ func (a *EquipmentApiService) PatchEquipmentSwitchOperationExecute(r ApiPatchEqu localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.equipmentSwitchOperation @@ -17192,7 +17192,7 @@ func (a *EquipmentApiService) PatchEquipmentSystemIoControllerExecute(r ApiPatch localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.equipmentSystemIoController @@ -17367,7 +17367,7 @@ func (a *EquipmentApiService) PatchEquipmentTpmExecute(r ApiPatchEquipmentTpmReq localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.equipmentTpm @@ -17542,7 +17542,7 @@ func (a *EquipmentApiService) PatchEquipmentTransceiverExecute(r ApiPatchEquipme localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.equipmentTransceiver @@ -17717,7 +17717,7 @@ func (a *EquipmentApiService) UpdateEquipmentChassisExecute(r ApiUpdateEquipment localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.equipmentChassis @@ -17892,7 +17892,7 @@ func (a *EquipmentApiService) UpdateEquipmentChassisIdentityExecute(r ApiUpdateE localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.equipmentChassisIdentity @@ -18067,7 +18067,7 @@ func (a *EquipmentApiService) UpdateEquipmentChassisOperationExecute(r ApiUpdate localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.equipmentChassisOperation @@ -18242,7 +18242,7 @@ func (a *EquipmentApiService) UpdateEquipmentExpanderModuleExecute(r ApiUpdateEq localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.equipmentExpanderModule @@ -18417,7 +18417,7 @@ func (a *EquipmentApiService) UpdateEquipmentFanExecute(r ApiUpdateEquipmentFanR localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.equipmentFan @@ -18592,7 +18592,7 @@ func (a *EquipmentApiService) UpdateEquipmentFanControlExecute(r ApiUpdateEquipm localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.equipmentFanControl @@ -18767,7 +18767,7 @@ func (a *EquipmentApiService) UpdateEquipmentFanModuleExecute(r ApiUpdateEquipme localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.equipmentFanModule @@ -18942,7 +18942,7 @@ func (a *EquipmentApiService) UpdateEquipmentFexExecute(r ApiUpdateEquipmentFexR localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.equipmentFex @@ -19117,7 +19117,7 @@ func (a *EquipmentApiService) UpdateEquipmentFexIdentityExecute(r ApiUpdateEquip localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.equipmentFexIdentity @@ -19292,7 +19292,7 @@ func (a *EquipmentApiService) UpdateEquipmentFexOperationExecute(r ApiUpdateEqui localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.equipmentFexOperation @@ -19467,7 +19467,7 @@ func (a *EquipmentApiService) UpdateEquipmentFruExecute(r ApiUpdateEquipmentFruR localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.equipmentFru @@ -19642,7 +19642,7 @@ func (a *EquipmentApiService) UpdateEquipmentIoCardExecute(r ApiUpdateEquipmentI localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.equipmentIoCard @@ -19817,7 +19817,7 @@ func (a *EquipmentApiService) UpdateEquipmentIoCardOperationExecute(r ApiUpdateE localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.equipmentIoCardOperation @@ -19992,7 +19992,7 @@ func (a *EquipmentApiService) UpdateEquipmentIoExpanderExecute(r ApiUpdateEquipm localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.equipmentIoExpander @@ -20167,7 +20167,7 @@ func (a *EquipmentApiService) UpdateEquipmentLocatorLedExecute(r ApiUpdateEquipm localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.equipmentLocatorLed @@ -20342,7 +20342,7 @@ func (a *EquipmentApiService) UpdateEquipmentPsuExecute(r ApiUpdateEquipmentPsuR localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.equipmentPsu @@ -20517,7 +20517,7 @@ func (a *EquipmentApiService) UpdateEquipmentPsuControlExecute(r ApiUpdateEquipm localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.equipmentPsuControl @@ -20692,7 +20692,7 @@ func (a *EquipmentApiService) UpdateEquipmentRackEnclosureExecute(r ApiUpdateEqu localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.equipmentRackEnclosure @@ -20867,7 +20867,7 @@ func (a *EquipmentApiService) UpdateEquipmentRackEnclosureSlotExecute(r ApiUpdat localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.equipmentRackEnclosureSlot @@ -21042,7 +21042,7 @@ func (a *EquipmentApiService) UpdateEquipmentSharedIoModuleExecute(r ApiUpdateEq localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.equipmentSharedIoModule @@ -21217,7 +21217,7 @@ func (a *EquipmentApiService) UpdateEquipmentSwitchCardExecute(r ApiUpdateEquipm localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.equipmentSwitchCard @@ -21392,7 +21392,7 @@ func (a *EquipmentApiService) UpdateEquipmentSwitchOperationExecute(r ApiUpdateE localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.equipmentSwitchOperation @@ -21567,7 +21567,7 @@ func (a *EquipmentApiService) UpdateEquipmentSystemIoControllerExecute(r ApiUpda localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.equipmentSystemIoController @@ -21742,7 +21742,7 @@ func (a *EquipmentApiService) UpdateEquipmentTpmExecute(r ApiUpdateEquipmentTpmR localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.equipmentTpm @@ -21917,7 +21917,7 @@ func (a *EquipmentApiService) UpdateEquipmentTransceiverExecute(r ApiUpdateEquip localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.equipmentTransceiver diff --git a/api_ether.go b/api_ether.go index 8f05bc332b..6b955a66ae 100644 --- a/api_ether.go +++ b/api_ether.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -297,52 +297,52 @@ func (a *EtherApiService) GetEtherHostPortListExecute(r ApiGetEtherHostPortListR localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -724,52 +724,52 @@ func (a *EtherApiService) GetEtherNetworkPortListExecute(r ApiGetEtherNetworkPor localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -1151,52 +1151,52 @@ func (a *EtherApiService) GetEtherPhysicalPortListExecute(r ApiGetEtherPhysicalP localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -1578,52 +1578,52 @@ func (a *EtherApiService) GetEtherPortChannelListExecute(r ApiGetEtherPortChanne localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -1813,7 +1813,7 @@ func (a *EtherApiService) PatchEtherHostPortExecute(r ApiPatchEtherHostPortReque localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.etherHostPort @@ -1988,7 +1988,7 @@ func (a *EtherApiService) PatchEtherNetworkPortExecute(r ApiPatchEtherNetworkPor localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.etherNetworkPort @@ -2163,7 +2163,7 @@ func (a *EtherApiService) PatchEtherPhysicalPortExecute(r ApiPatchEtherPhysicalP localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.etherPhysicalPort @@ -2338,7 +2338,7 @@ func (a *EtherApiService) UpdateEtherHostPortExecute(r ApiUpdateEtherHostPortReq localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.etherHostPort @@ -2513,7 +2513,7 @@ func (a *EtherApiService) UpdateEtherNetworkPortExecute(r ApiUpdateEtherNetworkP localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.etherNetworkPort @@ -2688,7 +2688,7 @@ func (a *EtherApiService) UpdateEtherPhysicalPortExecute(r ApiUpdateEtherPhysica localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.etherPhysicalPort diff --git a/api_externalsite.go b/api_externalsite.go index 022e015317..a3f4ce2d12 100644 --- a/api_externalsite.go +++ b/api_externalsite.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -108,10 +108,10 @@ func (a *ExternalsiteApiService) CreateExternalsiteAuthorizationExecute(r ApiCre localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.externalsiteAuthorization @@ -478,52 +478,52 @@ func (a *ExternalsiteApiService) GetExternalsiteAuthorizationListExecute(r ApiGe localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -713,7 +713,7 @@ func (a *ExternalsiteApiService) PatchExternalsiteAuthorizationExecute(r ApiPatc localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.externalsiteAuthorization @@ -888,7 +888,7 @@ func (a *ExternalsiteApiService) UpdateExternalsiteAuthorizationExecute(r ApiUpd localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.externalsiteAuthorization diff --git a/api_fabric.go b/api_fabric.go index 4eae3932c1..04ac6d3ef0 100644 --- a/api_fabric.go +++ b/api_fabric.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -108,10 +108,10 @@ func (a *FabricApiService) CreateFabricAppliancePcRoleExecute(r ApiCreateFabricA localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.fabricAppliancePcRole @@ -289,10 +289,10 @@ func (a *FabricApiService) CreateFabricApplianceRoleExecute(r ApiCreateFabricApp localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.fabricApplianceRole @@ -470,10 +470,10 @@ func (a *FabricApiService) CreateFabricEstimateImpactExecute(r ApiCreateFabricEs localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.fabricEstimateImpact @@ -651,10 +651,10 @@ func (a *FabricApiService) CreateFabricEthNetworkControlPolicyExecute(r ApiCreat localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.fabricEthNetworkControlPolicy @@ -832,10 +832,10 @@ func (a *FabricApiService) CreateFabricEthNetworkGroupPolicyExecute(r ApiCreateF localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.fabricEthNetworkGroupPolicy @@ -1013,10 +1013,10 @@ func (a *FabricApiService) CreateFabricEthNetworkPolicyExecute(r ApiCreateFabric localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.fabricEthNetworkPolicy @@ -1194,10 +1194,10 @@ func (a *FabricApiService) CreateFabricFcNetworkPolicyExecute(r ApiCreateFabricF localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.fabricFcNetworkPolicy @@ -1375,10 +1375,10 @@ func (a *FabricApiService) CreateFabricFcStorageRoleExecute(r ApiCreateFabricFcS localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.fabricFcStorageRole @@ -1556,10 +1556,10 @@ func (a *FabricApiService) CreateFabricFcUplinkPcRoleExecute(r ApiCreateFabricFc localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.fabricFcUplinkPcRole @@ -1737,10 +1737,10 @@ func (a *FabricApiService) CreateFabricFcUplinkRoleExecute(r ApiCreateFabricFcUp localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.fabricFcUplinkRole @@ -1918,10 +1918,10 @@ func (a *FabricApiService) CreateFabricFcZonePolicyExecute(r ApiCreateFabricFcZo localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.fabricFcZonePolicy @@ -2099,10 +2099,10 @@ func (a *FabricApiService) CreateFabricFcoeUplinkPcRoleExecute(r ApiCreateFabric localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.fabricFcoeUplinkPcRole @@ -2280,10 +2280,10 @@ func (a *FabricApiService) CreateFabricFcoeUplinkRoleExecute(r ApiCreateFabricFc localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.fabricFcoeUplinkRole @@ -2461,10 +2461,10 @@ func (a *FabricApiService) CreateFabricFlowControlPolicyExecute(r ApiCreateFabri localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.fabricFlowControlPolicy @@ -2642,10 +2642,10 @@ func (a *FabricApiService) CreateFabricLanPinGroupExecute(r ApiCreateFabricLanPi localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.fabricLanPinGroup @@ -2823,10 +2823,10 @@ func (a *FabricApiService) CreateFabricLinkAggregationPolicyExecute(r ApiCreateF localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.fabricLinkAggregationPolicy @@ -3004,10 +3004,10 @@ func (a *FabricApiService) CreateFabricLinkControlPolicyExecute(r ApiCreateFabri localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.fabricLinkControlPolicy @@ -3185,10 +3185,10 @@ func (a *FabricApiService) CreateFabricMulticastPolicyExecute(r ApiCreateFabricM localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.fabricMulticastPolicy @@ -3366,10 +3366,10 @@ func (a *FabricApiService) CreateFabricPcOperationExecute(r ApiCreateFabricPcOpe localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.fabricPcOperation @@ -3547,10 +3547,10 @@ func (a *FabricApiService) CreateFabricPortModeExecute(r ApiCreateFabricPortMode localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.fabricPortMode @@ -3728,10 +3728,10 @@ func (a *FabricApiService) CreateFabricPortOperationExecute(r ApiCreateFabricPor localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.fabricPortOperation @@ -3909,10 +3909,10 @@ func (a *FabricApiService) CreateFabricPortPolicyExecute(r ApiCreateFabricPortPo localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.fabricPortPolicy @@ -4090,10 +4090,10 @@ func (a *FabricApiService) CreateFabricSanPinGroupExecute(r ApiCreateFabricSanPi localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.fabricSanPinGroup @@ -4271,10 +4271,10 @@ func (a *FabricApiService) CreateFabricServerRoleExecute(r ApiCreateFabricServer localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.fabricServerRole @@ -4452,10 +4452,10 @@ func (a *FabricApiService) CreateFabricSpanDestEthPortExecute(r ApiCreateFabricS localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.fabricSpanDestEthPort @@ -4633,10 +4633,10 @@ func (a *FabricApiService) CreateFabricSpanSessionExecute(r ApiCreateFabricSpanS localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.fabricSpanSession @@ -4814,10 +4814,10 @@ func (a *FabricApiService) CreateFabricSpanSourceEthPortExecute(r ApiCreateFabri localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.fabricSpanSourceEthPort @@ -4995,10 +4995,10 @@ func (a *FabricApiService) CreateFabricSpanSourceEthPortChannelExecute(r ApiCrea localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.fabricSpanSourceEthPortChannel @@ -5176,10 +5176,10 @@ func (a *FabricApiService) CreateFabricSpanSourceVlanExecute(r ApiCreateFabricSp localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.fabricSpanSourceVlan @@ -5357,10 +5357,10 @@ func (a *FabricApiService) CreateFabricSpanSourceVnicEthIfExecute(r ApiCreateFab localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.fabricSpanSourceVnicEthIf @@ -5538,10 +5538,10 @@ func (a *FabricApiService) CreateFabricSwitchClusterProfileExecute(r ApiCreateFa localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.fabricSwitchClusterProfile @@ -5719,10 +5719,10 @@ func (a *FabricApiService) CreateFabricSwitchClusterProfileTemplateExecute(r Api localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.fabricSwitchClusterProfileTemplate @@ -5900,10 +5900,10 @@ func (a *FabricApiService) CreateFabricSwitchControlPolicyExecute(r ApiCreateFab localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.fabricSwitchControlPolicy @@ -6081,10 +6081,10 @@ func (a *FabricApiService) CreateFabricSwitchProfileExecute(r ApiCreateFabricSwi localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.fabricSwitchProfile @@ -6262,10 +6262,10 @@ func (a *FabricApiService) CreateFabricSwitchProfileTemplateExecute(r ApiCreateF localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.fabricSwitchProfileTemplate @@ -6443,10 +6443,10 @@ func (a *FabricApiService) CreateFabricSystemQosPolicyExecute(r ApiCreateFabricS localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.fabricSystemQosPolicy @@ -6624,10 +6624,10 @@ func (a *FabricApiService) CreateFabricUplinkPcRoleExecute(r ApiCreateFabricUpli localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.fabricUplinkPcRole @@ -6805,10 +6805,10 @@ func (a *FabricApiService) CreateFabricUplinkRoleExecute(r ApiCreateFabricUplink localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.fabricUplinkRole @@ -6986,10 +6986,10 @@ func (a *FabricApiService) CreateFabricVlanExecute(r ApiCreateFabricVlanRequest) localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.fabricVlan @@ -7167,10 +7167,10 @@ func (a *FabricApiService) CreateFabricVsanExecute(r ApiCreateFabricVsanRequest) localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.fabricVsan @@ -13075,52 +13075,52 @@ func (a *FabricApiService) GetFabricAppliancePcRoleListExecute(r ApiGetFabricApp localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -13502,52 +13502,52 @@ func (a *FabricApiService) GetFabricApplianceRoleListExecute(r ApiGetFabricAppli localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -13929,52 +13929,52 @@ func (a *FabricApiService) GetFabricConfigChangeDetailListExecute(r ApiGetFabric localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -14509,52 +14509,52 @@ func (a *FabricApiService) GetFabricConfigResultEntryListExecute(r ApiGetFabricC localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -14783,52 +14783,52 @@ func (a *FabricApiService) GetFabricConfigResultListExecute(r ApiGetFabricConfig localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -15210,52 +15210,52 @@ func (a *FabricApiService) GetFabricElementIdentityListExecute(r ApiGetFabricEle localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -15790,52 +15790,52 @@ func (a *FabricApiService) GetFabricEthNetworkControlPolicyInventoryListExecute( localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -16064,52 +16064,52 @@ func (a *FabricApiService) GetFabricEthNetworkControlPolicyListExecute(r ApiGetF localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -16644,52 +16644,52 @@ func (a *FabricApiService) GetFabricEthNetworkGroupPolicyInventoryListExecute(r localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -16918,52 +16918,52 @@ func (a *FabricApiService) GetFabricEthNetworkGroupPolicyListExecute(r ApiGetFab localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -17345,52 +17345,52 @@ func (a *FabricApiService) GetFabricEthNetworkPolicyListExecute(r ApiGetFabricEt localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -17772,52 +17772,52 @@ func (a *FabricApiService) GetFabricFcNetworkPolicyListExecute(r ApiGetFabricFcN localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -18199,52 +18199,52 @@ func (a *FabricApiService) GetFabricFcStorageRoleListExecute(r ApiGetFabricFcSto localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -18626,52 +18626,52 @@ func (a *FabricApiService) GetFabricFcUplinkPcRoleListExecute(r ApiGetFabricFcUp localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -19053,52 +19053,52 @@ func (a *FabricApiService) GetFabricFcUplinkRoleListExecute(r ApiGetFabricFcUpli localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -19480,52 +19480,52 @@ func (a *FabricApiService) GetFabricFcZonePolicyListExecute(r ApiGetFabricFcZone localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -19907,52 +19907,52 @@ func (a *FabricApiService) GetFabricFcoeUplinkPcRoleListExecute(r ApiGetFabricFc localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -20334,52 +20334,52 @@ func (a *FabricApiService) GetFabricFcoeUplinkRoleListExecute(r ApiGetFabricFcoe localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -20761,52 +20761,52 @@ func (a *FabricApiService) GetFabricFlowControlPolicyListExecute(r ApiGetFabricF localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -21188,52 +21188,52 @@ func (a *FabricApiService) GetFabricLanPinGroupListExecute(r ApiGetFabricLanPinG localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -21615,52 +21615,52 @@ func (a *FabricApiService) GetFabricLinkAggregationPolicyListExecute(r ApiGetFab localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -22042,52 +22042,52 @@ func (a *FabricApiService) GetFabricLinkControlPolicyListExecute(r ApiGetFabricL localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -22469,52 +22469,52 @@ func (a *FabricApiService) GetFabricMulticastPolicyListExecute(r ApiGetFabricMul localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -22896,52 +22896,52 @@ func (a *FabricApiService) GetFabricPcMemberListExecute(r ApiGetFabricPcMemberLi localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -23323,52 +23323,52 @@ func (a *FabricApiService) GetFabricPcOperationListExecute(r ApiGetFabricPcOpera localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -23750,52 +23750,52 @@ func (a *FabricApiService) GetFabricPortModeListExecute(r ApiGetFabricPortModeLi localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -24177,52 +24177,52 @@ func (a *FabricApiService) GetFabricPortOperationListExecute(r ApiGetFabricPortO localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -24604,52 +24604,52 @@ func (a *FabricApiService) GetFabricPortPolicyListExecute(r ApiGetFabricPortPoli localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -25031,52 +25031,52 @@ func (a *FabricApiService) GetFabricSanPinGroupListExecute(r ApiGetFabricSanPinG localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -25458,52 +25458,52 @@ func (a *FabricApiService) GetFabricServerRoleListExecute(r ApiGetFabricServerRo localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -25885,52 +25885,52 @@ func (a *FabricApiService) GetFabricSpanDestEthPortListExecute(r ApiGetFabricSpa localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -26312,52 +26312,52 @@ func (a *FabricApiService) GetFabricSpanSessionListExecute(r ApiGetFabricSpanSes localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -26892,52 +26892,52 @@ func (a *FabricApiService) GetFabricSpanSourceEthPortChannelListExecute(r ApiGet localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -27166,52 +27166,52 @@ func (a *FabricApiService) GetFabricSpanSourceEthPortListExecute(r ApiGetFabricS localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -27593,52 +27593,52 @@ func (a *FabricApiService) GetFabricSpanSourceVlanListExecute(r ApiGetFabricSpan localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -28020,52 +28020,52 @@ func (a *FabricApiService) GetFabricSpanSourceVnicEthIfListExecute(r ApiGetFabri localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -28447,52 +28447,52 @@ func (a *FabricApiService) GetFabricSwitchClusterProfileListExecute(r ApiGetFabr localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -28874,52 +28874,52 @@ func (a *FabricApiService) GetFabricSwitchClusterProfileTemplateListExecute(r Ap localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -29301,52 +29301,52 @@ func (a *FabricApiService) GetFabricSwitchControlPolicyListExecute(r ApiGetFabri localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -29728,52 +29728,52 @@ func (a *FabricApiService) GetFabricSwitchProfileListExecute(r ApiGetFabricSwitc localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -30155,52 +30155,52 @@ func (a *FabricApiService) GetFabricSwitchProfileTemplateListExecute(r ApiGetFab localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -30582,52 +30582,52 @@ func (a *FabricApiService) GetFabricSystemQosPolicyListExecute(r ApiGetFabricSys localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -31009,52 +31009,52 @@ func (a *FabricApiService) GetFabricUplinkPcRoleListExecute(r ApiGetFabricUplink localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -31436,52 +31436,52 @@ func (a *FabricApiService) GetFabricUplinkRoleListExecute(r ApiGetFabricUplinkRo localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -32016,52 +32016,52 @@ func (a *FabricApiService) GetFabricVlanInventoryListExecute(r ApiGetFabricVlanI localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -32290,52 +32290,52 @@ func (a *FabricApiService) GetFabricVlanListExecute(r ApiGetFabricVlanListReques localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -32717,52 +32717,52 @@ func (a *FabricApiService) GetFabricVlanSetListExecute(r ApiGetFabricVlanSetList localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -33297,52 +33297,52 @@ func (a *FabricApiService) GetFabricVsanInventoryListExecute(r ApiGetFabricVsanI localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -33571,52 +33571,52 @@ func (a *FabricApiService) GetFabricVsanListExecute(r ApiGetFabricVsanListReques localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -33806,7 +33806,7 @@ func (a *FabricApiService) PatchFabricAppliancePcRoleExecute(r ApiPatchFabricApp localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.fabricAppliancePcRole @@ -33981,7 +33981,7 @@ func (a *FabricApiService) PatchFabricApplianceRoleExecute(r ApiPatchFabricAppli localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.fabricApplianceRole @@ -34156,7 +34156,7 @@ func (a *FabricApiService) PatchFabricElementIdentityExecute(r ApiPatchFabricEle localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.fabricElementIdentity @@ -34331,7 +34331,7 @@ func (a *FabricApiService) PatchFabricEthNetworkControlPolicyExecute(r ApiPatchF localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.fabricEthNetworkControlPolicy @@ -34506,7 +34506,7 @@ func (a *FabricApiService) PatchFabricEthNetworkGroupPolicyExecute(r ApiPatchFab localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.fabricEthNetworkGroupPolicy @@ -34681,7 +34681,7 @@ func (a *FabricApiService) PatchFabricEthNetworkPolicyExecute(r ApiPatchFabricEt localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.fabricEthNetworkPolicy @@ -34856,7 +34856,7 @@ func (a *FabricApiService) PatchFabricFcNetworkPolicyExecute(r ApiPatchFabricFcN localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.fabricFcNetworkPolicy @@ -35031,7 +35031,7 @@ func (a *FabricApiService) PatchFabricFcStorageRoleExecute(r ApiPatchFabricFcSto localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.fabricFcStorageRole @@ -35206,7 +35206,7 @@ func (a *FabricApiService) PatchFabricFcUplinkPcRoleExecute(r ApiPatchFabricFcUp localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.fabricFcUplinkPcRole @@ -35381,7 +35381,7 @@ func (a *FabricApiService) PatchFabricFcUplinkRoleExecute(r ApiPatchFabricFcUpli localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.fabricFcUplinkRole @@ -35556,7 +35556,7 @@ func (a *FabricApiService) PatchFabricFcZonePolicyExecute(r ApiPatchFabricFcZone localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.fabricFcZonePolicy @@ -35731,7 +35731,7 @@ func (a *FabricApiService) PatchFabricFcoeUplinkPcRoleExecute(r ApiPatchFabricFc localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.fabricFcoeUplinkPcRole @@ -35906,7 +35906,7 @@ func (a *FabricApiService) PatchFabricFcoeUplinkRoleExecute(r ApiPatchFabricFcoe localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.fabricFcoeUplinkRole @@ -36081,7 +36081,7 @@ func (a *FabricApiService) PatchFabricFlowControlPolicyExecute(r ApiPatchFabricF localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.fabricFlowControlPolicy @@ -36256,7 +36256,7 @@ func (a *FabricApiService) PatchFabricLanPinGroupExecute(r ApiPatchFabricLanPinG localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.fabricLanPinGroup @@ -36431,7 +36431,7 @@ func (a *FabricApiService) PatchFabricLinkAggregationPolicyExecute(r ApiPatchFab localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.fabricLinkAggregationPolicy @@ -36606,7 +36606,7 @@ func (a *FabricApiService) PatchFabricLinkControlPolicyExecute(r ApiPatchFabricL localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.fabricLinkControlPolicy @@ -36781,7 +36781,7 @@ func (a *FabricApiService) PatchFabricMulticastPolicyExecute(r ApiPatchFabricMul localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.fabricMulticastPolicy @@ -36956,7 +36956,7 @@ func (a *FabricApiService) PatchFabricPcOperationExecute(r ApiPatchFabricPcOpera localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.fabricPcOperation @@ -37131,7 +37131,7 @@ func (a *FabricApiService) PatchFabricPortModeExecute(r ApiPatchFabricPortModeRe localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.fabricPortMode @@ -37306,7 +37306,7 @@ func (a *FabricApiService) PatchFabricPortOperationExecute(r ApiPatchFabricPortO localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.fabricPortOperation @@ -37481,7 +37481,7 @@ func (a *FabricApiService) PatchFabricPortPolicyExecute(r ApiPatchFabricPortPoli localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.fabricPortPolicy @@ -37656,7 +37656,7 @@ func (a *FabricApiService) PatchFabricSanPinGroupExecute(r ApiPatchFabricSanPinG localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.fabricSanPinGroup @@ -37831,7 +37831,7 @@ func (a *FabricApiService) PatchFabricServerRoleExecute(r ApiPatchFabricServerRo localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.fabricServerRole @@ -38006,7 +38006,7 @@ func (a *FabricApiService) PatchFabricSpanDestEthPortExecute(r ApiPatchFabricSpa localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.fabricSpanDestEthPort @@ -38181,7 +38181,7 @@ func (a *FabricApiService) PatchFabricSpanSessionExecute(r ApiPatchFabricSpanSes localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.fabricSpanSession @@ -38356,7 +38356,7 @@ func (a *FabricApiService) PatchFabricSwitchClusterProfileExecute(r ApiPatchFabr localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.fabricSwitchClusterProfile @@ -38531,7 +38531,7 @@ func (a *FabricApiService) PatchFabricSwitchClusterProfileTemplateExecute(r ApiP localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.fabricSwitchClusterProfileTemplate @@ -38706,7 +38706,7 @@ func (a *FabricApiService) PatchFabricSwitchControlPolicyExecute(r ApiPatchFabri localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.fabricSwitchControlPolicy @@ -38881,7 +38881,7 @@ func (a *FabricApiService) PatchFabricSwitchProfileExecute(r ApiPatchFabricSwitc localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.fabricSwitchProfile @@ -39056,7 +39056,7 @@ func (a *FabricApiService) PatchFabricSwitchProfileTemplateExecute(r ApiPatchFab localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.fabricSwitchProfileTemplate @@ -39231,7 +39231,7 @@ func (a *FabricApiService) PatchFabricSystemQosPolicyExecute(r ApiPatchFabricSys localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.fabricSystemQosPolicy @@ -39406,7 +39406,7 @@ func (a *FabricApiService) PatchFabricUplinkPcRoleExecute(r ApiPatchFabricUplink localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.fabricUplinkPcRole @@ -39581,7 +39581,7 @@ func (a *FabricApiService) PatchFabricUplinkRoleExecute(r ApiPatchFabricUplinkRo localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.fabricUplinkRole @@ -39756,7 +39756,7 @@ func (a *FabricApiService) PatchFabricVlanExecute(r ApiPatchFabricVlanRequest) ( localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.fabricVlan @@ -39931,7 +39931,7 @@ func (a *FabricApiService) PatchFabricVsanExecute(r ApiPatchFabricVsanRequest) ( localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.fabricVsan @@ -40106,7 +40106,7 @@ func (a *FabricApiService) UpdateFabricAppliancePcRoleExecute(r ApiUpdateFabricA localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.fabricAppliancePcRole @@ -40281,7 +40281,7 @@ func (a *FabricApiService) UpdateFabricApplianceRoleExecute(r ApiUpdateFabricApp localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.fabricApplianceRole @@ -40456,7 +40456,7 @@ func (a *FabricApiService) UpdateFabricElementIdentityExecute(r ApiUpdateFabricE localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.fabricElementIdentity @@ -40631,7 +40631,7 @@ func (a *FabricApiService) UpdateFabricEthNetworkControlPolicyExecute(r ApiUpdat localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.fabricEthNetworkControlPolicy @@ -40806,7 +40806,7 @@ func (a *FabricApiService) UpdateFabricEthNetworkGroupPolicyExecute(r ApiUpdateF localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.fabricEthNetworkGroupPolicy @@ -40981,7 +40981,7 @@ func (a *FabricApiService) UpdateFabricEthNetworkPolicyExecute(r ApiUpdateFabric localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.fabricEthNetworkPolicy @@ -41156,7 +41156,7 @@ func (a *FabricApiService) UpdateFabricFcNetworkPolicyExecute(r ApiUpdateFabricF localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.fabricFcNetworkPolicy @@ -41331,7 +41331,7 @@ func (a *FabricApiService) UpdateFabricFcStorageRoleExecute(r ApiUpdateFabricFcS localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.fabricFcStorageRole @@ -41506,7 +41506,7 @@ func (a *FabricApiService) UpdateFabricFcUplinkPcRoleExecute(r ApiUpdateFabricFc localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.fabricFcUplinkPcRole @@ -41681,7 +41681,7 @@ func (a *FabricApiService) UpdateFabricFcUplinkRoleExecute(r ApiUpdateFabricFcUp localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.fabricFcUplinkRole @@ -41856,7 +41856,7 @@ func (a *FabricApiService) UpdateFabricFcZonePolicyExecute(r ApiUpdateFabricFcZo localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.fabricFcZonePolicy @@ -42031,7 +42031,7 @@ func (a *FabricApiService) UpdateFabricFcoeUplinkPcRoleExecute(r ApiUpdateFabric localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.fabricFcoeUplinkPcRole @@ -42206,7 +42206,7 @@ func (a *FabricApiService) UpdateFabricFcoeUplinkRoleExecute(r ApiUpdateFabricFc localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.fabricFcoeUplinkRole @@ -42381,7 +42381,7 @@ func (a *FabricApiService) UpdateFabricFlowControlPolicyExecute(r ApiUpdateFabri localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.fabricFlowControlPolicy @@ -42556,7 +42556,7 @@ func (a *FabricApiService) UpdateFabricLanPinGroupExecute(r ApiUpdateFabricLanPi localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.fabricLanPinGroup @@ -42731,7 +42731,7 @@ func (a *FabricApiService) UpdateFabricLinkAggregationPolicyExecute(r ApiUpdateF localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.fabricLinkAggregationPolicy @@ -42906,7 +42906,7 @@ func (a *FabricApiService) UpdateFabricLinkControlPolicyExecute(r ApiUpdateFabri localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.fabricLinkControlPolicy @@ -43081,7 +43081,7 @@ func (a *FabricApiService) UpdateFabricMulticastPolicyExecute(r ApiUpdateFabricM localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.fabricMulticastPolicy @@ -43256,7 +43256,7 @@ func (a *FabricApiService) UpdateFabricPcOperationExecute(r ApiUpdateFabricPcOpe localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.fabricPcOperation @@ -43431,7 +43431,7 @@ func (a *FabricApiService) UpdateFabricPortModeExecute(r ApiUpdateFabricPortMode localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.fabricPortMode @@ -43606,7 +43606,7 @@ func (a *FabricApiService) UpdateFabricPortOperationExecute(r ApiUpdateFabricPor localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.fabricPortOperation @@ -43781,7 +43781,7 @@ func (a *FabricApiService) UpdateFabricPortPolicyExecute(r ApiUpdateFabricPortPo localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.fabricPortPolicy @@ -43956,7 +43956,7 @@ func (a *FabricApiService) UpdateFabricSanPinGroupExecute(r ApiUpdateFabricSanPi localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.fabricSanPinGroup @@ -44131,7 +44131,7 @@ func (a *FabricApiService) UpdateFabricServerRoleExecute(r ApiUpdateFabricServer localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.fabricServerRole @@ -44306,7 +44306,7 @@ func (a *FabricApiService) UpdateFabricSpanDestEthPortExecute(r ApiUpdateFabricS localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.fabricSpanDestEthPort @@ -44481,7 +44481,7 @@ func (a *FabricApiService) UpdateFabricSpanSessionExecute(r ApiUpdateFabricSpanS localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.fabricSpanSession @@ -44656,7 +44656,7 @@ func (a *FabricApiService) UpdateFabricSwitchClusterProfileExecute(r ApiUpdateFa localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.fabricSwitchClusterProfile @@ -44831,7 +44831,7 @@ func (a *FabricApiService) UpdateFabricSwitchClusterProfileTemplateExecute(r Api localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.fabricSwitchClusterProfileTemplate @@ -45006,7 +45006,7 @@ func (a *FabricApiService) UpdateFabricSwitchControlPolicyExecute(r ApiUpdateFab localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.fabricSwitchControlPolicy @@ -45181,7 +45181,7 @@ func (a *FabricApiService) UpdateFabricSwitchProfileExecute(r ApiUpdateFabricSwi localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.fabricSwitchProfile @@ -45356,7 +45356,7 @@ func (a *FabricApiService) UpdateFabricSwitchProfileTemplateExecute(r ApiUpdateF localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.fabricSwitchProfileTemplate @@ -45531,7 +45531,7 @@ func (a *FabricApiService) UpdateFabricSystemQosPolicyExecute(r ApiUpdateFabricS localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.fabricSystemQosPolicy @@ -45706,7 +45706,7 @@ func (a *FabricApiService) UpdateFabricUplinkPcRoleExecute(r ApiUpdateFabricUpli localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.fabricUplinkPcRole @@ -45881,7 +45881,7 @@ func (a *FabricApiService) UpdateFabricUplinkRoleExecute(r ApiUpdateFabricUplink localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.fabricUplinkRole @@ -46056,7 +46056,7 @@ func (a *FabricApiService) UpdateFabricVlanExecute(r ApiUpdateFabricVlanRequest) localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.fabricVlan @@ -46231,7 +46231,7 @@ func (a *FabricApiService) UpdateFabricVsanExecute(r ApiUpdateFabricVsanRequest) localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.fabricVsan diff --git a/api_fault.go b/api_fault.go index 4dd4538cd6..a9870190b2 100644 --- a/api_fault.go +++ b/api_fault.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -297,52 +297,52 @@ func (a *FaultApiService) GetFaultInstanceListExecute(r ApiGetFaultInstanceListR localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -532,7 +532,7 @@ func (a *FaultApiService) PatchFaultInstanceExecute(r ApiPatchFaultInstanceReque localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.faultInstance @@ -707,7 +707,7 @@ func (a *FaultApiService) UpdateFaultInstanceExecute(r ApiUpdateFaultInstanceReq localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.faultInstance diff --git a/api_fc.go b/api_fc.go index e1317bd7d1..9317c2ed56 100644 --- a/api_fc.go +++ b/api_fc.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -297,52 +297,52 @@ func (a *FcApiService) GetFcNeighborListExecute(r ApiGetFcNeighborListRequest) ( localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -724,52 +724,52 @@ func (a *FcApiService) GetFcPhysicalPortListExecute(r ApiGetFcPhysicalPortListRe localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -1151,52 +1151,52 @@ func (a *FcApiService) GetFcPortChannelListExecute(r ApiGetFcPortChannelListRequ localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -1386,7 +1386,7 @@ func (a *FcApiService) PatchFcPhysicalPortExecute(r ApiPatchFcPhysicalPortReques localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.fcPhysicalPort @@ -1561,7 +1561,7 @@ func (a *FcApiService) UpdateFcPhysicalPortExecute(r ApiUpdateFcPhysicalPortRequ localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.fcPhysicalPort diff --git a/api_fcpool.go b/api_fcpool.go index 1b1a7624a6..2f4bcef787 100644 --- a/api_fcpool.go +++ b/api_fcpool.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -108,10 +108,10 @@ func (a *FcpoolApiService) CreateFcpoolPoolExecute(r ApiCreateFcpoolPoolRequest) localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.fcpoolPool @@ -289,10 +289,10 @@ func (a *FcpoolApiService) CreateFcpoolReservationExecute(r ApiCreateFcpoolReser localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.fcpoolReservation @@ -1085,52 +1085,52 @@ func (a *FcpoolApiService) GetFcpoolFcBlockListExecute(r ApiGetFcpoolFcBlockList localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -1512,52 +1512,52 @@ func (a *FcpoolApiService) GetFcpoolLeaseListExecute(r ApiGetFcpoolLeaseListRequ localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -1939,52 +1939,52 @@ func (a *FcpoolApiService) GetFcpoolPoolListExecute(r ApiGetFcpoolPoolListReques localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -2366,52 +2366,52 @@ func (a *FcpoolApiService) GetFcpoolPoolMemberListExecute(r ApiGetFcpoolPoolMemb localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -2793,52 +2793,52 @@ func (a *FcpoolApiService) GetFcpoolReservationListExecute(r ApiGetFcpoolReserva localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -3220,52 +3220,52 @@ func (a *FcpoolApiService) GetFcpoolUniverseListExecute(r ApiGetFcpoolUniverseLi localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -3455,7 +3455,7 @@ func (a *FcpoolApiService) PatchFcpoolPoolExecute(r ApiPatchFcpoolPoolRequest) ( localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.fcpoolPool @@ -3630,7 +3630,7 @@ func (a *FcpoolApiService) UpdateFcpoolPoolExecute(r ApiUpdateFcpoolPoolRequest) localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.fcpoolPool diff --git a/api_feedback.go b/api_feedback.go index 849079beb3..e4ca92000d 100644 --- a/api_feedback.go +++ b/api_feedback.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -108,10 +108,10 @@ func (a *FeedbackApiService) CreateFeedbackFeedbackPostExecute(r ApiCreateFeedba localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.feedbackFeedbackPost @@ -286,7 +286,7 @@ func (a *FeedbackApiService) PatchFeedbackFeedbackPostExecute(r ApiPatchFeedback localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.feedbackFeedbackPost @@ -461,7 +461,7 @@ func (a *FeedbackApiService) UpdateFeedbackFeedbackPostExecute(r ApiUpdateFeedba localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.feedbackFeedbackPost diff --git a/api_firmware.go b/api_firmware.go index 51f7f6de50..a5a2343591 100644 --- a/api_firmware.go +++ b/api_firmware.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -108,10 +108,10 @@ func (a *FirmwareApiService) CreateFirmwareBiosDescriptorExecute(r ApiCreateFirm localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.firmwareBiosDescriptor @@ -289,10 +289,10 @@ func (a *FirmwareApiService) CreateFirmwareBoardControllerDescriptorExecute(r Ap localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.firmwareBoardControllerDescriptor @@ -470,10 +470,10 @@ func (a *FirmwareApiService) CreateFirmwareChassisUpgradeExecute(r ApiCreateFirm localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.firmwareChassisUpgrade @@ -651,10 +651,10 @@ func (a *FirmwareApiService) CreateFirmwareCimcDescriptorExecute(r ApiCreateFirm localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.firmwareCimcDescriptor @@ -832,10 +832,10 @@ func (a *FirmwareApiService) CreateFirmwareDimmDescriptorExecute(r ApiCreateFirm localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.firmwareDimmDescriptor @@ -1013,10 +1013,10 @@ func (a *FirmwareApiService) CreateFirmwareDistributableExecute(r ApiCreateFirmw localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.firmwareDistributable @@ -1194,10 +1194,10 @@ func (a *FirmwareApiService) CreateFirmwareDriveDescriptorExecute(r ApiCreateFir localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.firmwareDriveDescriptor @@ -1375,10 +1375,10 @@ func (a *FirmwareApiService) CreateFirmwareDriverDistributableExecute(r ApiCreat localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.firmwareDriverDistributable @@ -1556,10 +1556,10 @@ func (a *FirmwareApiService) CreateFirmwareEulaExecute(r ApiCreateFirmwareEulaRe localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.firmwareEula @@ -1737,10 +1737,10 @@ func (a *FirmwareApiService) CreateFirmwareGpuDescriptorExecute(r ApiCreateFirmw localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.firmwareGpuDescriptor @@ -1918,10 +1918,10 @@ func (a *FirmwareApiService) CreateFirmwareHbaDescriptorExecute(r ApiCreateFirmw localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.firmwareHbaDescriptor @@ -2099,10 +2099,10 @@ func (a *FirmwareApiService) CreateFirmwareIomDescriptorExecute(r ApiCreateFirmw localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.firmwareIomDescriptor @@ -2280,10 +2280,10 @@ func (a *FirmwareApiService) CreateFirmwareMswitchDescriptorExecute(r ApiCreateF localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.firmwareMswitchDescriptor @@ -2461,10 +2461,10 @@ func (a *FirmwareApiService) CreateFirmwareNxosDescriptorExecute(r ApiCreateFirm localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.firmwareNxosDescriptor @@ -2642,10 +2642,10 @@ func (a *FirmwareApiService) CreateFirmwarePcieDescriptorExecute(r ApiCreateFirm localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.firmwarePcieDescriptor @@ -2823,10 +2823,10 @@ func (a *FirmwareApiService) CreateFirmwarePolicyExecute(r ApiCreateFirmwarePoli localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.firmwarePolicy @@ -3004,10 +3004,10 @@ func (a *FirmwareApiService) CreateFirmwarePsuDescriptorExecute(r ApiCreateFirmw localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.firmwarePsuDescriptor @@ -3185,10 +3185,10 @@ func (a *FirmwareApiService) CreateFirmwareSasExpanderDescriptorExecute(r ApiCre localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.firmwareSasExpanderDescriptor @@ -3366,10 +3366,10 @@ func (a *FirmwareApiService) CreateFirmwareServerConfigurationUtilityDistributab localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.firmwareServerConfigurationUtilityDistributable @@ -3547,10 +3547,10 @@ func (a *FirmwareApiService) CreateFirmwareStorageControllerDescriptorExecute(r localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.firmwareStorageControllerDescriptor @@ -3728,10 +3728,10 @@ func (a *FirmwareApiService) CreateFirmwareSwitchUpgradeExecute(r ApiCreateFirmw localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.firmwareSwitchUpgrade @@ -3909,10 +3909,10 @@ func (a *FirmwareApiService) CreateFirmwareUnsupportedVersionUpgradeExecute(r Ap localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.firmwareUnsupportedVersionUpgrade @@ -4090,10 +4090,10 @@ func (a *FirmwareApiService) CreateFirmwareUpgradeExecute(r ApiCreateFirmwareUpg localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.firmwareUpgrade @@ -4271,10 +4271,10 @@ func (a *FirmwareApiService) CreateFirmwareUpgradeImpactExecute(r ApiCreateFirmw localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.firmwareUpgradeImpact @@ -4452,10 +4452,10 @@ func (a *FirmwareApiService) CreateFirmwareUpgradeValidityExecute(r ApiCreateFir localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.firmwareUpgradeValidity @@ -7946,52 +7946,52 @@ func (a *FirmwareApiService) GetFirmwareBiosDescriptorListExecute(r ApiGetFirmwa localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -8373,52 +8373,52 @@ func (a *FirmwareApiService) GetFirmwareBoardControllerDescriptorListExecute(r A localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -8800,52 +8800,52 @@ func (a *FirmwareApiService) GetFirmwareChassisUpgradeListExecute(r ApiGetFirmwa localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -9227,52 +9227,52 @@ func (a *FirmwareApiService) GetFirmwareCimcDescriptorListExecute(r ApiGetFirmwa localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -9654,52 +9654,52 @@ func (a *FirmwareApiService) GetFirmwareDimmDescriptorListExecute(r ApiGetFirmwa localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -10081,52 +10081,52 @@ func (a *FirmwareApiService) GetFirmwareDistributableListExecute(r ApiGetFirmwar localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -10508,52 +10508,52 @@ func (a *FirmwareApiService) GetFirmwareDistributableMetaListExecute(r ApiGetFir localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -10935,52 +10935,52 @@ func (a *FirmwareApiService) GetFirmwareDriveDescriptorListExecute(r ApiGetFirmw localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -11362,52 +11362,52 @@ func (a *FirmwareApiService) GetFirmwareDriverDistributableListExecute(r ApiGetF localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -11789,52 +11789,52 @@ func (a *FirmwareApiService) GetFirmwareEulaListExecute(r ApiGetFirmwareEulaList localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -12216,52 +12216,52 @@ func (a *FirmwareApiService) GetFirmwareFirmwareSummaryListExecute(r ApiGetFirmw localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -12643,52 +12643,52 @@ func (a *FirmwareApiService) GetFirmwareGpuDescriptorListExecute(r ApiGetFirmwar localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -13070,52 +13070,52 @@ func (a *FirmwareApiService) GetFirmwareHbaDescriptorListExecute(r ApiGetFirmwar localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -13497,52 +13497,52 @@ func (a *FirmwareApiService) GetFirmwareIomDescriptorListExecute(r ApiGetFirmwar localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -13924,52 +13924,52 @@ func (a *FirmwareApiService) GetFirmwareMswitchDescriptorListExecute(r ApiGetFir localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -14351,52 +14351,52 @@ func (a *FirmwareApiService) GetFirmwareNxosDescriptorListExecute(r ApiGetFirmwa localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -14778,52 +14778,52 @@ func (a *FirmwareApiService) GetFirmwarePcieDescriptorListExecute(r ApiGetFirmwa localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -15205,52 +15205,52 @@ func (a *FirmwareApiService) GetFirmwarePolicyListExecute(r ApiGetFirmwarePolicy localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -15632,52 +15632,52 @@ func (a *FirmwareApiService) GetFirmwarePsuDescriptorListExecute(r ApiGetFirmwar localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -16059,52 +16059,52 @@ func (a *FirmwareApiService) GetFirmwareRunningFirmwareListExecute(r ApiGetFirmw localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -16486,52 +16486,52 @@ func (a *FirmwareApiService) GetFirmwareSasExpanderDescriptorListExecute(r ApiGe localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -16913,52 +16913,52 @@ func (a *FirmwareApiService) GetFirmwareServerConfigurationUtilityDistributableL localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -17340,52 +17340,52 @@ func (a *FirmwareApiService) GetFirmwareStorageControllerDescriptorListExecute(r localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -17767,52 +17767,52 @@ func (a *FirmwareApiService) GetFirmwareSwitchUpgradeListExecute(r ApiGetFirmwar localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -18194,52 +18194,52 @@ func (a *FirmwareApiService) GetFirmwareUnsupportedVersionUpgradeListExecute(r A localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -18774,52 +18774,52 @@ func (a *FirmwareApiService) GetFirmwareUpgradeImpactStatusListExecute(r ApiGetF localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -19048,52 +19048,52 @@ func (a *FirmwareApiService) GetFirmwareUpgradeListExecute(r ApiGetFirmwareUpgra localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -19475,52 +19475,52 @@ func (a *FirmwareApiService) GetFirmwareUpgradeStatusListExecute(r ApiGetFirmwar localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -19710,7 +19710,7 @@ func (a *FirmwareApiService) PatchFirmwareBiosDescriptorExecute(r ApiPatchFirmwa localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.firmwareBiosDescriptor @@ -19885,7 +19885,7 @@ func (a *FirmwareApiService) PatchFirmwareBoardControllerDescriptorExecute(r Api localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.firmwareBoardControllerDescriptor @@ -20060,7 +20060,7 @@ func (a *FirmwareApiService) PatchFirmwareCimcDescriptorExecute(r ApiPatchFirmwa localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.firmwareCimcDescriptor @@ -20235,7 +20235,7 @@ func (a *FirmwareApiService) PatchFirmwareDimmDescriptorExecute(r ApiPatchFirmwa localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.firmwareDimmDescriptor @@ -20410,7 +20410,7 @@ func (a *FirmwareApiService) PatchFirmwareDistributableExecute(r ApiPatchFirmwar localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.firmwareDistributable @@ -20585,7 +20585,7 @@ func (a *FirmwareApiService) PatchFirmwareDriveDescriptorExecute(r ApiPatchFirmw localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.firmwareDriveDescriptor @@ -20760,7 +20760,7 @@ func (a *FirmwareApiService) PatchFirmwareDriverDistributableExecute(r ApiPatchF localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.firmwareDriverDistributable @@ -20935,7 +20935,7 @@ func (a *FirmwareApiService) PatchFirmwareGpuDescriptorExecute(r ApiPatchFirmwar localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.firmwareGpuDescriptor @@ -21110,7 +21110,7 @@ func (a *FirmwareApiService) PatchFirmwareHbaDescriptorExecute(r ApiPatchFirmwar localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.firmwareHbaDescriptor @@ -21285,7 +21285,7 @@ func (a *FirmwareApiService) PatchFirmwareIomDescriptorExecute(r ApiPatchFirmwar localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.firmwareIomDescriptor @@ -21460,7 +21460,7 @@ func (a *FirmwareApiService) PatchFirmwareMswitchDescriptorExecute(r ApiPatchFir localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.firmwareMswitchDescriptor @@ -21635,7 +21635,7 @@ func (a *FirmwareApiService) PatchFirmwareNxosDescriptorExecute(r ApiPatchFirmwa localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.firmwareNxosDescriptor @@ -21810,7 +21810,7 @@ func (a *FirmwareApiService) PatchFirmwarePcieDescriptorExecute(r ApiPatchFirmwa localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.firmwarePcieDescriptor @@ -21985,7 +21985,7 @@ func (a *FirmwareApiService) PatchFirmwarePolicyExecute(r ApiPatchFirmwarePolicy localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.firmwarePolicy @@ -22160,7 +22160,7 @@ func (a *FirmwareApiService) PatchFirmwarePsuDescriptorExecute(r ApiPatchFirmwar localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.firmwarePsuDescriptor @@ -22335,7 +22335,7 @@ func (a *FirmwareApiService) PatchFirmwareRunningFirmwareExecute(r ApiPatchFirmw localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.firmwareRunningFirmware @@ -22510,7 +22510,7 @@ func (a *FirmwareApiService) PatchFirmwareSasExpanderDescriptorExecute(r ApiPatc localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.firmwareSasExpanderDescriptor @@ -22685,7 +22685,7 @@ func (a *FirmwareApiService) PatchFirmwareServerConfigurationUtilityDistributabl localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.firmwareServerConfigurationUtilityDistributable @@ -22860,7 +22860,7 @@ func (a *FirmwareApiService) PatchFirmwareStorageControllerDescriptorExecute(r A localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.firmwareStorageControllerDescriptor @@ -23035,7 +23035,7 @@ func (a *FirmwareApiService) PatchFirmwareUnsupportedVersionUpgradeExecute(r Api localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.firmwareUnsupportedVersionUpgrade @@ -23210,7 +23210,7 @@ func (a *FirmwareApiService) PatchFirmwareUpgradeExecute(r ApiPatchFirmwareUpgra localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.firmwareUpgrade @@ -23385,7 +23385,7 @@ func (a *FirmwareApiService) UpdateFirmwareBiosDescriptorExecute(r ApiUpdateFirm localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.firmwareBiosDescriptor @@ -23560,7 +23560,7 @@ func (a *FirmwareApiService) UpdateFirmwareBoardControllerDescriptorExecute(r Ap localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.firmwareBoardControllerDescriptor @@ -23735,7 +23735,7 @@ func (a *FirmwareApiService) UpdateFirmwareCimcDescriptorExecute(r ApiUpdateFirm localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.firmwareCimcDescriptor @@ -23910,7 +23910,7 @@ func (a *FirmwareApiService) UpdateFirmwareDimmDescriptorExecute(r ApiUpdateFirm localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.firmwareDimmDescriptor @@ -24085,7 +24085,7 @@ func (a *FirmwareApiService) UpdateFirmwareDistributableExecute(r ApiUpdateFirmw localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.firmwareDistributable @@ -24260,7 +24260,7 @@ func (a *FirmwareApiService) UpdateFirmwareDriveDescriptorExecute(r ApiUpdateFir localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.firmwareDriveDescriptor @@ -24435,7 +24435,7 @@ func (a *FirmwareApiService) UpdateFirmwareDriverDistributableExecute(r ApiUpdat localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.firmwareDriverDistributable @@ -24610,7 +24610,7 @@ func (a *FirmwareApiService) UpdateFirmwareGpuDescriptorExecute(r ApiUpdateFirmw localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.firmwareGpuDescriptor @@ -24785,7 +24785,7 @@ func (a *FirmwareApiService) UpdateFirmwareHbaDescriptorExecute(r ApiUpdateFirmw localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.firmwareHbaDescriptor @@ -24960,7 +24960,7 @@ func (a *FirmwareApiService) UpdateFirmwareIomDescriptorExecute(r ApiUpdateFirmw localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.firmwareIomDescriptor @@ -25135,7 +25135,7 @@ func (a *FirmwareApiService) UpdateFirmwareMswitchDescriptorExecute(r ApiUpdateF localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.firmwareMswitchDescriptor @@ -25310,7 +25310,7 @@ func (a *FirmwareApiService) UpdateFirmwareNxosDescriptorExecute(r ApiUpdateFirm localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.firmwareNxosDescriptor @@ -25485,7 +25485,7 @@ func (a *FirmwareApiService) UpdateFirmwarePcieDescriptorExecute(r ApiUpdateFirm localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.firmwarePcieDescriptor @@ -25660,7 +25660,7 @@ func (a *FirmwareApiService) UpdateFirmwarePolicyExecute(r ApiUpdateFirmwarePoli localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.firmwarePolicy @@ -25835,7 +25835,7 @@ func (a *FirmwareApiService) UpdateFirmwarePsuDescriptorExecute(r ApiUpdateFirmw localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.firmwarePsuDescriptor @@ -26010,7 +26010,7 @@ func (a *FirmwareApiService) UpdateFirmwareRunningFirmwareExecute(r ApiUpdateFir localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.firmwareRunningFirmware @@ -26185,7 +26185,7 @@ func (a *FirmwareApiService) UpdateFirmwareSasExpanderDescriptorExecute(r ApiUpd localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.firmwareSasExpanderDescriptor @@ -26360,7 +26360,7 @@ func (a *FirmwareApiService) UpdateFirmwareServerConfigurationUtilityDistributab localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.firmwareServerConfigurationUtilityDistributable @@ -26535,7 +26535,7 @@ func (a *FirmwareApiService) UpdateFirmwareStorageControllerDescriptorExecute(r localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.firmwareStorageControllerDescriptor @@ -26710,7 +26710,7 @@ func (a *FirmwareApiService) UpdateFirmwareUnsupportedVersionUpgradeExecute(r Ap localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.firmwareUnsupportedVersionUpgrade @@ -26885,7 +26885,7 @@ func (a *FirmwareApiService) UpdateFirmwareUpgradeExecute(r ApiUpdateFirmwareUpg localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.firmwareUpgrade diff --git a/api_fmc.go b/api_fmc.go index 74c46a3edf..3bba359771 100644 --- a/api_fmc.go +++ b/api_fmc.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -450,52 +450,52 @@ func (a *FmcApiService) GetFmcDeviceHaPairListExecute(r ApiGetFmcDeviceHaPairLis localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -724,52 +724,52 @@ func (a *FmcApiService) GetFmcDeviceListExecute(r ApiGetFmcDeviceListRequest) (* localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -1151,52 +1151,52 @@ func (a *FmcApiService) GetFmcDomainListExecute(r ApiGetFmcDomainListRequest) (* localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -1578,52 +1578,52 @@ func (a *FmcApiService) GetFmcPhysicalInterfaceListExecute(r ApiGetFmcPhysicalIn localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} diff --git a/api_forecast.go b/api_forecast.go index 3ceb1c0b1d..c0b28dc454 100644 --- a/api_forecast.go +++ b/api_forecast.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -297,52 +297,52 @@ func (a *ForecastApiService) GetForecastCatalogListExecute(r ApiGetForecastCatal localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -724,52 +724,52 @@ func (a *ForecastApiService) GetForecastDefinitionListExecute(r ApiGetForecastDe localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -1151,52 +1151,52 @@ func (a *ForecastApiService) GetForecastInstanceListExecute(r ApiGetForecastInst localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -1386,7 +1386,7 @@ func (a *ForecastApiService) PatchForecastInstanceExecute(r ApiPatchForecastInst localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.forecastInstance @@ -1561,7 +1561,7 @@ func (a *ForecastApiService) UpdateForecastInstanceExecute(r ApiUpdateForecastIn localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.forecastInstance diff --git a/api_graphics.go b/api_graphics.go index 678c0f6b0b..5741154c40 100644 --- a/api_graphics.go +++ b/api_graphics.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -297,52 +297,52 @@ func (a *GraphicsApiService) GetGraphicsCardListExecute(r ApiGetGraphicsCardList localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -724,52 +724,52 @@ func (a *GraphicsApiService) GetGraphicsControllerListExecute(r ApiGetGraphicsCo localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -959,7 +959,7 @@ func (a *GraphicsApiService) PatchGraphicsCardExecute(r ApiPatchGraphicsCardRequ localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.graphicsCard @@ -1134,7 +1134,7 @@ func (a *GraphicsApiService) PatchGraphicsControllerExecute(r ApiPatchGraphicsCo localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.graphicsController @@ -1309,7 +1309,7 @@ func (a *GraphicsApiService) UpdateGraphicsCardExecute(r ApiUpdateGraphicsCardRe localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.graphicsCard @@ -1484,7 +1484,7 @@ func (a *GraphicsApiService) UpdateGraphicsControllerExecute(r ApiUpdateGraphics localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.graphicsController diff --git a/api_hcl.go b/api_hcl.go index 7b2404986d..71d761d61a 100644 --- a/api_hcl.go +++ b/api_hcl.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -108,10 +108,10 @@ func (a *HclApiService) CreateHclCompatibilityStatusExecute(r ApiCreateHclCompat localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.hclCompatibilityStatus @@ -289,10 +289,10 @@ func (a *HclApiService) CreateHclHyperflexSoftwareCompatibilityInfoExecute(r Api localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.hclHyperflexSoftwareCompatibilityInfo @@ -470,10 +470,10 @@ func (a *HclApiService) CreateHclSupportedDriverNameExecute(r ApiCreateHclSuppor localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.hclSupportedDriverName @@ -982,52 +982,52 @@ func (a *HclApiService) GetHclDriverImageListExecute(r ApiGetHclDriverImageListR localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -1409,52 +1409,52 @@ func (a *HclApiService) GetHclExemptedCatalogListExecute(r ApiGetHclExemptedCata localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -1836,52 +1836,52 @@ func (a *HclApiService) GetHclHwCatalogInfoListExecute(r ApiGetHclHwCatalogInfoL localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -2263,52 +2263,52 @@ func (a *HclApiService) GetHclHyperflexSoftwareCompatibilityInfoListExecute(r Ap localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -2690,52 +2690,52 @@ func (a *HclApiService) GetHclOperatingSystemListExecute(r ApiGetHclOperatingSys localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -3117,52 +3117,52 @@ func (a *HclApiService) GetHclOperatingSystemVendorListExecute(r ApiGetHclOperat localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -3544,52 +3544,52 @@ func (a *HclApiService) GetHclServerHwCatalogInfoListExecute(r ApiGetHclServerHw localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -3779,7 +3779,7 @@ func (a *HclApiService) PatchHclHyperflexSoftwareCompatibilityInfoExecute(r ApiP localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.hclHyperflexSoftwareCompatibilityInfo @@ -3954,7 +3954,7 @@ func (a *HclApiService) UpdateHclHyperflexSoftwareCompatibilityInfoExecute(r Api localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.hclHyperflexSoftwareCompatibilityInfo diff --git a/api_hyperflex.go b/api_hyperflex.go index c5b0d9a7b0..ff3f6e0110 100644 --- a/api_hyperflex.go +++ b/api_hyperflex.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -108,10 +108,10 @@ func (a *HyperflexApiService) CreateHyperflexAppCatalogExecute(r ApiCreateHyperf localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.hyperflexAppCatalog @@ -289,10 +289,10 @@ func (a *HyperflexApiService) CreateHyperflexAutoSupportPolicyExecute(r ApiCreat localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.hyperflexAutoSupportPolicy @@ -470,10 +470,10 @@ func (a *HyperflexApiService) CreateHyperflexCapabilityInfoExecute(r ApiCreateHy localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.hyperflexCapabilityInfo @@ -651,10 +651,10 @@ func (a *HyperflexApiService) CreateHyperflexClusterBackupPolicyExecute(r ApiCre localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.hyperflexClusterBackupPolicy @@ -832,10 +832,10 @@ func (a *HyperflexApiService) CreateHyperflexClusterBackupPolicyDeploymentExecut localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.hyperflexClusterBackupPolicyDeployment @@ -1013,10 +1013,10 @@ func (a *HyperflexApiService) CreateHyperflexClusterNetworkPolicyExecute(r ApiCr localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.hyperflexClusterNetworkPolicy @@ -1194,10 +1194,10 @@ func (a *HyperflexApiService) CreateHyperflexClusterProfileExecute(r ApiCreateHy localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.hyperflexClusterProfile @@ -1375,10 +1375,10 @@ func (a *HyperflexApiService) CreateHyperflexClusterReplicationNetworkPolicyExec localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.hyperflexClusterReplicationNetworkPolicy @@ -1556,10 +1556,10 @@ func (a *HyperflexApiService) CreateHyperflexClusterReplicationNetworkPolicyDepl localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.hyperflexClusterReplicationNetworkPolicyDeployment @@ -1737,10 +1737,10 @@ func (a *HyperflexApiService) CreateHyperflexClusterStoragePolicyExecute(r ApiCr localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.hyperflexClusterStoragePolicy @@ -1918,10 +1918,10 @@ func (a *HyperflexApiService) CreateHyperflexExtFcStoragePolicyExecute(r ApiCrea localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.hyperflexExtFcStoragePolicy @@ -2099,10 +2099,10 @@ func (a *HyperflexApiService) CreateHyperflexExtIscsiStoragePolicyExecute(r ApiC localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.hyperflexExtIscsiStoragePolicy @@ -2280,10 +2280,10 @@ func (a *HyperflexApiService) CreateHyperflexFeatureLimitExternalExecute(r ApiCr localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.hyperflexFeatureLimitExternal @@ -2461,10 +2461,10 @@ func (a *HyperflexApiService) CreateHyperflexFeatureLimitInternalExecute(r ApiCr localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.hyperflexFeatureLimitInternal @@ -2642,10 +2642,10 @@ func (a *HyperflexApiService) CreateHyperflexHealthCheckDefinitionExecute(r ApiC localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.hyperflexHealthCheckDefinition @@ -2823,10 +2823,10 @@ func (a *HyperflexApiService) CreateHyperflexHealthCheckPackageChecksumExecute(r localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.hyperflexHealthCheckPackageChecksum @@ -3004,10 +3004,10 @@ func (a *HyperflexApiService) CreateHyperflexHxdpVersionExecute(r ApiCreateHyper localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.hyperflexHxdpVersion @@ -3185,10 +3185,10 @@ func (a *HyperflexApiService) CreateHyperflexKeyEncryptionKeyExecute(r ApiCreate localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.hyperflexKeyEncryptionKey @@ -3366,10 +3366,10 @@ func (a *HyperflexApiService) CreateHyperflexLocalCredentialPolicyExecute(r ApiC localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.hyperflexLocalCredentialPolicy @@ -3547,10 +3547,10 @@ func (a *HyperflexApiService) CreateHyperflexNodeConfigPolicyExecute(r ApiCreate localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.hyperflexNodeConfigPolicy @@ -3728,10 +3728,10 @@ func (a *HyperflexApiService) CreateHyperflexNodeProfileExecute(r ApiCreateHyper localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.hyperflexNodeProfile @@ -3909,10 +3909,10 @@ func (a *HyperflexApiService) CreateHyperflexProxySettingPolicyExecute(r ApiCrea localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.hyperflexProxySettingPolicy @@ -4090,10 +4090,10 @@ func (a *HyperflexApiService) CreateHyperflexReduceReSyncExecute(r ApiCreateHype localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.hyperflexReduceReSync @@ -4271,10 +4271,10 @@ func (a *HyperflexApiService) CreateHyperflexServerFirmwareVersionExecute(r ApiC localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.hyperflexServerFirmwareVersion @@ -4452,10 +4452,10 @@ func (a *HyperflexApiService) CreateHyperflexServerFirmwareVersionEntryExecute(r localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.hyperflexServerFirmwareVersionEntry @@ -4633,10 +4633,10 @@ func (a *HyperflexApiService) CreateHyperflexServerModelExecute(r ApiCreateHyper localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.hyperflexServerModel @@ -4814,10 +4814,10 @@ func (a *HyperflexApiService) CreateHyperflexServiceAuthTokenExecute(r ApiCreate localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.hyperflexServiceAuthToken @@ -4995,10 +4995,10 @@ func (a *HyperflexApiService) CreateHyperflexSoftwareDistributionComponentExecut localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.hyperflexSoftwareDistributionComponent @@ -5176,10 +5176,10 @@ func (a *HyperflexApiService) CreateHyperflexSoftwareDistributionEntryExecute(r localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.hyperflexSoftwareDistributionEntry @@ -5357,10 +5357,10 @@ func (a *HyperflexApiService) CreateHyperflexSoftwareDistributionVersionExecute( localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.hyperflexSoftwareDistributionVersion @@ -5538,10 +5538,10 @@ func (a *HyperflexApiService) CreateHyperflexSoftwareVersionPolicyExecute(r ApiC localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.hyperflexSoftwareVersionPolicy @@ -5719,10 +5719,10 @@ func (a *HyperflexApiService) CreateHyperflexStartReduceReSyncExecute(r ApiCreat localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.hyperflexStartReduceReSync @@ -5900,10 +5900,10 @@ func (a *HyperflexApiService) CreateHyperflexSysConfigPolicyExecute(r ApiCreateH localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.hyperflexSysConfigPolicy @@ -6081,10 +6081,10 @@ func (a *HyperflexApiService) CreateHyperflexUcsmConfigPolicyExecute(r ApiCreate localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.hyperflexUcsmConfigPolicy @@ -6262,10 +6262,10 @@ func (a *HyperflexApiService) CreateHyperflexVcenterConfigPolicyExecute(r ApiCre localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.hyperflexVcenterConfigPolicy @@ -6443,10 +6443,10 @@ func (a *HyperflexApiService) CreateHyperflexVmImportOperationExecute(r ApiCreat localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.hyperflexVmImportOperation @@ -6624,10 +6624,10 @@ func (a *HyperflexApiService) CreateHyperflexVmRestoreOperationExecute(r ApiCrea localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.hyperflexVmRestoreOperation @@ -12674,52 +12674,52 @@ func (a *HyperflexApiService) GetHyperflexAlarmListExecute(r ApiGetHyperflexAlar localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -13101,52 +13101,52 @@ func (a *HyperflexApiService) GetHyperflexAppCatalogListExecute(r ApiGetHyperfle localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -13528,52 +13528,52 @@ func (a *HyperflexApiService) GetHyperflexAutoSupportPolicyListExecute(r ApiGetH localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -13955,52 +13955,52 @@ func (a *HyperflexApiService) GetHyperflexBackupClusterListExecute(r ApiGetHyper localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -14382,52 +14382,52 @@ func (a *HyperflexApiService) GetHyperflexCapabilityInfoListExecute(r ApiGetHype localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -14962,52 +14962,52 @@ func (a *HyperflexApiService) GetHyperflexClusterBackupPolicyDeploymentListExecu localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -15389,52 +15389,52 @@ func (a *HyperflexApiService) GetHyperflexClusterBackupPolicyInventoryListExecut localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -15663,52 +15663,52 @@ func (a *HyperflexApiService) GetHyperflexClusterBackupPolicyListExecute(r ApiGe localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -16243,52 +16243,52 @@ func (a *HyperflexApiService) GetHyperflexClusterHealthCheckExecutionSnapshotLis localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -16517,52 +16517,52 @@ func (a *HyperflexApiService) GetHyperflexClusterListExecute(r ApiGetHyperflexCl localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -16944,52 +16944,52 @@ func (a *HyperflexApiService) GetHyperflexClusterNetworkPolicyListExecute(r ApiG localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -17371,52 +17371,52 @@ func (a *HyperflexApiService) GetHyperflexClusterProfileListExecute(r ApiGetHype localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -17951,52 +17951,52 @@ func (a *HyperflexApiService) GetHyperflexClusterReplicationNetworkPolicyDeploym localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -18225,52 +18225,52 @@ func (a *HyperflexApiService) GetHyperflexClusterReplicationNetworkPolicyListExe localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -18652,52 +18652,52 @@ func (a *HyperflexApiService) GetHyperflexClusterStoragePolicyListExecute(r ApiG localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -19232,52 +19232,52 @@ func (a *HyperflexApiService) GetHyperflexConfigResultEntryListExecute(r ApiGetH localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -19506,52 +19506,52 @@ func (a *HyperflexApiService) GetHyperflexConfigResultListExecute(r ApiGetHyperf localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -19933,52 +19933,52 @@ func (a *HyperflexApiService) GetHyperflexDataProtectionPeerListExecute(r ApiGet localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -20360,52 +20360,52 @@ func (a *HyperflexApiService) GetHyperflexDatastoreStatisticListExecute(r ApiGet localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -20787,52 +20787,52 @@ func (a *HyperflexApiService) GetHyperflexDevicePackageDownloadStateListExecute( localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -21214,52 +21214,52 @@ func (a *HyperflexApiService) GetHyperflexDriveListExecute(r ApiGetHyperflexDriv localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -21641,52 +21641,52 @@ func (a *HyperflexApiService) GetHyperflexEncryptionListExecute(r ApiGetHyperfle localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -22068,52 +22068,52 @@ func (a *HyperflexApiService) GetHyperflexExtFcStoragePolicyListExecute(r ApiGet localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -22495,52 +22495,52 @@ func (a *HyperflexApiService) GetHyperflexExtIscsiStoragePolicyListExecute(r Api localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -22922,52 +22922,52 @@ func (a *HyperflexApiService) GetHyperflexFeatureLimitExternalListExecute(r ApiG localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -23349,52 +23349,52 @@ func (a *HyperflexApiService) GetHyperflexFeatureLimitInternalListExecute(r ApiG localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -23929,52 +23929,52 @@ func (a *HyperflexApiService) GetHyperflexHealthCheckDefinitionListExecute(r Api localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -24356,52 +24356,52 @@ func (a *HyperflexApiService) GetHyperflexHealthCheckExecutionListExecute(r ApiG localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -24783,52 +24783,52 @@ func (a *HyperflexApiService) GetHyperflexHealthCheckExecutionSnapshotListExecut localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -25210,52 +25210,52 @@ func (a *HyperflexApiService) GetHyperflexHealthCheckPackageChecksumListExecute( localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -25637,52 +25637,52 @@ func (a *HyperflexApiService) GetHyperflexHealthCheckSchedulePolicyListExecute(r localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -25911,52 +25911,52 @@ func (a *HyperflexApiService) GetHyperflexHealthListExecute(r ApiGetHyperflexHea localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -26338,52 +26338,52 @@ func (a *HyperflexApiService) GetHyperflexHwCatalogListExecute(r ApiGetHyperflex localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -26765,52 +26765,52 @@ func (a *HyperflexApiService) GetHyperflexHxdpVersionListExecute(r ApiGetHyperfl localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -27192,52 +27192,52 @@ func (a *HyperflexApiService) GetHyperflexHypervisorHostListExecute(r ApiGetHype localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -27619,52 +27619,52 @@ func (a *HyperflexApiService) GetHyperflexHypervisorVirtualMachineListExecute(r localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -28046,52 +28046,52 @@ func (a *HyperflexApiService) GetHyperflexInitiatorGroupListExecute(r ApiGetHype localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -28473,52 +28473,52 @@ func (a *HyperflexApiService) GetHyperflexIscsiNetworkListExecute(r ApiGetHyperf localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -28900,52 +28900,52 @@ func (a *HyperflexApiService) GetHyperflexKeyEncryptionKeyListExecute(r ApiGetHy localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -29327,52 +29327,52 @@ func (a *HyperflexApiService) GetHyperflexLicenseListExecute(r ApiGetHyperflexLi localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -29754,52 +29754,52 @@ func (a *HyperflexApiService) GetHyperflexLocalCredentialPolicyListExecute(r Api localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -30181,52 +30181,52 @@ func (a *HyperflexApiService) GetHyperflexLunListExecute(r ApiGetHyperflexLunLis localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -30761,52 +30761,52 @@ func (a *HyperflexApiService) GetHyperflexNodeConfigPolicyListExecute(r ApiGetHy localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -31035,52 +31035,52 @@ func (a *HyperflexApiService) GetHyperflexNodeListExecute(r ApiGetHyperflexNodeL localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -31462,52 +31462,52 @@ func (a *HyperflexApiService) GetHyperflexNodeProfileListExecute(r ApiGetHyperfl localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -31889,52 +31889,52 @@ func (a *HyperflexApiService) GetHyperflexProtectedClusterListExecute(r ApiGetHy localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -32316,52 +32316,52 @@ func (a *HyperflexApiService) GetHyperflexProxySettingPolicyListExecute(r ApiGet localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -32743,52 +32743,52 @@ func (a *HyperflexApiService) GetHyperflexReduceReSyncListExecute(r ApiGetHyperf localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -33323,52 +33323,52 @@ func (a *HyperflexApiService) GetHyperflexServerFirmwareVersionEntryListExecute( localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -33597,52 +33597,52 @@ func (a *HyperflexApiService) GetHyperflexServerFirmwareVersionListExecute(r Api localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -34024,52 +34024,52 @@ func (a *HyperflexApiService) GetHyperflexServerModelListExecute(r ApiGetHyperfl localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -34451,52 +34451,52 @@ func (a *HyperflexApiService) GetHyperflexServiceAuthTokenListExecute(r ApiGetHy localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -34878,52 +34878,52 @@ func (a *HyperflexApiService) GetHyperflexSoftwareDistributionComponentListExecu localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -35305,52 +35305,52 @@ func (a *HyperflexApiService) GetHyperflexSoftwareDistributionEntryListExecute(r localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -35732,52 +35732,52 @@ func (a *HyperflexApiService) GetHyperflexSoftwareDistributionVersionListExecute localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -36159,52 +36159,52 @@ func (a *HyperflexApiService) GetHyperflexSoftwareVersionPolicyListExecute(r Api localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -36586,52 +36586,52 @@ func (a *HyperflexApiService) GetHyperflexStartReduceReSyncListExecute(r ApiGetH localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -37013,52 +37013,52 @@ func (a *HyperflexApiService) GetHyperflexStorageContainerListExecute(r ApiGetHy localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -37440,52 +37440,52 @@ func (a *HyperflexApiService) GetHyperflexSysConfigPolicyListExecute(r ApiGetHyp localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -37867,52 +37867,52 @@ func (a *HyperflexApiService) GetHyperflexTargetListExecute(r ApiGetHyperflexTar localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -38294,52 +38294,52 @@ func (a *HyperflexApiService) GetHyperflexUcsmConfigPolicyListExecute(r ApiGetHy localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -38721,52 +38721,52 @@ func (a *HyperflexApiService) GetHyperflexVcenterConfigPolicyListExecute(r ApiGe localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -39148,52 +39148,52 @@ func (a *HyperflexApiService) GetHyperflexVmBackupInfoListExecute(r ApiGetHyperf localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -39575,52 +39575,52 @@ func (a *HyperflexApiService) GetHyperflexVmImportOperationListExecute(r ApiGetH localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -40002,52 +40002,52 @@ func (a *HyperflexApiService) GetHyperflexVmRestoreOperationListExecute(r ApiGet localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -40429,52 +40429,52 @@ func (a *HyperflexApiService) GetHyperflexVmSnapshotInfoListExecute(r ApiGetHype localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -40856,52 +40856,52 @@ func (a *HyperflexApiService) GetHyperflexVolumeListExecute(r ApiGetHyperflexVol localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -41283,52 +41283,52 @@ func (a *HyperflexApiService) GetHyperflexWitnessConfigurationListExecute(r ApiG localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -41518,7 +41518,7 @@ func (a *HyperflexApiService) PatchHyperflexAppCatalogExecute(r ApiPatchHyperfle localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.hyperflexAppCatalog @@ -41693,7 +41693,7 @@ func (a *HyperflexApiService) PatchHyperflexAutoSupportPolicyExecute(r ApiPatchH localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.hyperflexAutoSupportPolicy @@ -41868,7 +41868,7 @@ func (a *HyperflexApiService) PatchHyperflexCapabilityInfoExecute(r ApiPatchHype localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.hyperflexCapabilityInfo @@ -42043,7 +42043,7 @@ func (a *HyperflexApiService) PatchHyperflexClusterExecute(r ApiPatchHyperflexCl localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.hyperflexCluster @@ -42218,7 +42218,7 @@ func (a *HyperflexApiService) PatchHyperflexClusterBackupPolicyExecute(r ApiPatc localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.hyperflexClusterBackupPolicy @@ -42393,7 +42393,7 @@ func (a *HyperflexApiService) PatchHyperflexClusterBackupPolicyDeploymentExecute localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.hyperflexClusterBackupPolicyDeployment @@ -42568,7 +42568,7 @@ func (a *HyperflexApiService) PatchHyperflexClusterNetworkPolicyExecute(r ApiPat localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.hyperflexClusterNetworkPolicy @@ -42743,7 +42743,7 @@ func (a *HyperflexApiService) PatchHyperflexClusterProfileExecute(r ApiPatchHype localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.hyperflexClusterProfile @@ -42918,7 +42918,7 @@ func (a *HyperflexApiService) PatchHyperflexClusterReplicationNetworkPolicyExecu localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.hyperflexClusterReplicationNetworkPolicy @@ -43093,7 +43093,7 @@ func (a *HyperflexApiService) PatchHyperflexClusterReplicationNetworkPolicyDeplo localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.hyperflexClusterReplicationNetworkPolicyDeployment @@ -43268,7 +43268,7 @@ func (a *HyperflexApiService) PatchHyperflexClusterStoragePolicyExecute(r ApiPat localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.hyperflexClusterStoragePolicy @@ -43443,7 +43443,7 @@ func (a *HyperflexApiService) PatchHyperflexDriveExecute(r ApiPatchHyperflexDriv localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.hyperflexDrive @@ -43618,7 +43618,7 @@ func (a *HyperflexApiService) PatchHyperflexExtFcStoragePolicyExecute(r ApiPatch localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.hyperflexExtFcStoragePolicy @@ -43793,7 +43793,7 @@ func (a *HyperflexApiService) PatchHyperflexExtIscsiStoragePolicyExecute(r ApiPa localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.hyperflexExtIscsiStoragePolicy @@ -43968,7 +43968,7 @@ func (a *HyperflexApiService) PatchHyperflexFeatureLimitExternalExecute(r ApiPat localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.hyperflexFeatureLimitExternal @@ -44143,7 +44143,7 @@ func (a *HyperflexApiService) PatchHyperflexFeatureLimitInternalExecute(r ApiPat localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.hyperflexFeatureLimitInternal @@ -44318,7 +44318,7 @@ func (a *HyperflexApiService) PatchHyperflexHealthCheckDefinitionExecute(r ApiPa localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.hyperflexHealthCheckDefinition @@ -44493,7 +44493,7 @@ func (a *HyperflexApiService) PatchHyperflexHealthCheckPackageChecksumExecute(r localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.hyperflexHealthCheckPackageChecksum @@ -44668,7 +44668,7 @@ func (a *HyperflexApiService) PatchHyperflexHxdpVersionExecute(r ApiPatchHyperfl localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.hyperflexHxdpVersion @@ -44843,7 +44843,7 @@ func (a *HyperflexApiService) PatchHyperflexHypervisorHostExecute(r ApiPatchHype localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.hyperflexHypervisorHost @@ -45018,7 +45018,7 @@ func (a *HyperflexApiService) PatchHyperflexHypervisorVirtualMachineExecute(r Ap localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.hyperflexHypervisorVirtualMachine @@ -45193,7 +45193,7 @@ func (a *HyperflexApiService) PatchHyperflexInitiatorGroupExecute(r ApiPatchHype localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.hyperflexInitiatorGroup @@ -45368,7 +45368,7 @@ func (a *HyperflexApiService) PatchHyperflexIscsiNetworkExecute(r ApiPatchHyperf localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.hyperflexIscsiNetwork @@ -45543,7 +45543,7 @@ func (a *HyperflexApiService) PatchHyperflexKeyEncryptionKeyExecute(r ApiPatchHy localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.hyperflexKeyEncryptionKey @@ -45718,7 +45718,7 @@ func (a *HyperflexApiService) PatchHyperflexLocalCredentialPolicyExecute(r ApiPa localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.hyperflexLocalCredentialPolicy @@ -45893,7 +45893,7 @@ func (a *HyperflexApiService) PatchHyperflexLunExecute(r ApiPatchHyperflexLunReq localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.hyperflexLun @@ -46068,7 +46068,7 @@ func (a *HyperflexApiService) PatchHyperflexNodeConfigPolicyExecute(r ApiPatchHy localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.hyperflexNodeConfigPolicy @@ -46243,7 +46243,7 @@ func (a *HyperflexApiService) PatchHyperflexNodeProfileExecute(r ApiPatchHyperfl localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.hyperflexNodeProfile @@ -46418,7 +46418,7 @@ func (a *HyperflexApiService) PatchHyperflexProxySettingPolicyExecute(r ApiPatch localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.hyperflexProxySettingPolicy @@ -46593,7 +46593,7 @@ func (a *HyperflexApiService) PatchHyperflexReduceReSyncExecute(r ApiPatchHyperf localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.hyperflexReduceReSync @@ -46768,7 +46768,7 @@ func (a *HyperflexApiService) PatchHyperflexServerFirmwareVersionExecute(r ApiPa localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.hyperflexServerFirmwareVersion @@ -46943,7 +46943,7 @@ func (a *HyperflexApiService) PatchHyperflexServerFirmwareVersionEntryExecute(r localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.hyperflexServerFirmwareVersionEntry @@ -47118,7 +47118,7 @@ func (a *HyperflexApiService) PatchHyperflexServerModelExecute(r ApiPatchHyperfl localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.hyperflexServerModel @@ -47293,7 +47293,7 @@ func (a *HyperflexApiService) PatchHyperflexServiceAuthTokenExecute(r ApiPatchHy localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.hyperflexServiceAuthToken @@ -47468,7 +47468,7 @@ func (a *HyperflexApiService) PatchHyperflexSoftwareDistributionComponentExecute localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.hyperflexSoftwareDistributionComponent @@ -47643,7 +47643,7 @@ func (a *HyperflexApiService) PatchHyperflexSoftwareDistributionEntryExecute(r A localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.hyperflexSoftwareDistributionEntry @@ -47818,7 +47818,7 @@ func (a *HyperflexApiService) PatchHyperflexSoftwareDistributionVersionExecute(r localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.hyperflexSoftwareDistributionVersion @@ -47993,7 +47993,7 @@ func (a *HyperflexApiService) PatchHyperflexSoftwareVersionPolicyExecute(r ApiPa localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.hyperflexSoftwareVersionPolicy @@ -48168,7 +48168,7 @@ func (a *HyperflexApiService) PatchHyperflexStorageContainerExecute(r ApiPatchHy localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.hyperflexStorageContainer @@ -48343,7 +48343,7 @@ func (a *HyperflexApiService) PatchHyperflexSysConfigPolicyExecute(r ApiPatchHyp localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.hyperflexSysConfigPolicy @@ -48518,7 +48518,7 @@ func (a *HyperflexApiService) PatchHyperflexTargetExecute(r ApiPatchHyperflexTar localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.hyperflexTarget @@ -48693,7 +48693,7 @@ func (a *HyperflexApiService) PatchHyperflexUcsmConfigPolicyExecute(r ApiPatchHy localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.hyperflexUcsmConfigPolicy @@ -48868,7 +48868,7 @@ func (a *HyperflexApiService) PatchHyperflexVcenterConfigPolicyExecute(r ApiPatc localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.hyperflexVcenterConfigPolicy @@ -49043,7 +49043,7 @@ func (a *HyperflexApiService) PatchHyperflexVolumeExecute(r ApiPatchHyperflexVol localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.hyperflexVolume @@ -49218,7 +49218,7 @@ func (a *HyperflexApiService) UpdateHyperflexAppCatalogExecute(r ApiUpdateHyperf localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.hyperflexAppCatalog @@ -49393,7 +49393,7 @@ func (a *HyperflexApiService) UpdateHyperflexAutoSupportPolicyExecute(r ApiUpdat localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.hyperflexAutoSupportPolicy @@ -49568,7 +49568,7 @@ func (a *HyperflexApiService) UpdateHyperflexCapabilityInfoExecute(r ApiUpdateHy localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.hyperflexCapabilityInfo @@ -49743,7 +49743,7 @@ func (a *HyperflexApiService) UpdateHyperflexClusterExecute(r ApiUpdateHyperflex localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.hyperflexCluster @@ -49918,7 +49918,7 @@ func (a *HyperflexApiService) UpdateHyperflexClusterBackupPolicyExecute(r ApiUpd localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.hyperflexClusterBackupPolicy @@ -50093,7 +50093,7 @@ func (a *HyperflexApiService) UpdateHyperflexClusterBackupPolicyDeploymentExecut localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.hyperflexClusterBackupPolicyDeployment @@ -50268,7 +50268,7 @@ func (a *HyperflexApiService) UpdateHyperflexClusterNetworkPolicyExecute(r ApiUp localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.hyperflexClusterNetworkPolicy @@ -50443,7 +50443,7 @@ func (a *HyperflexApiService) UpdateHyperflexClusterProfileExecute(r ApiUpdateHy localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.hyperflexClusterProfile @@ -50618,7 +50618,7 @@ func (a *HyperflexApiService) UpdateHyperflexClusterReplicationNetworkPolicyExec localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.hyperflexClusterReplicationNetworkPolicy @@ -50793,7 +50793,7 @@ func (a *HyperflexApiService) UpdateHyperflexClusterReplicationNetworkPolicyDepl localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.hyperflexClusterReplicationNetworkPolicyDeployment @@ -50968,7 +50968,7 @@ func (a *HyperflexApiService) UpdateHyperflexClusterStoragePolicyExecute(r ApiUp localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.hyperflexClusterStoragePolicy @@ -51143,7 +51143,7 @@ func (a *HyperflexApiService) UpdateHyperflexDriveExecute(r ApiUpdateHyperflexDr localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.hyperflexDrive @@ -51318,7 +51318,7 @@ func (a *HyperflexApiService) UpdateHyperflexExtFcStoragePolicyExecute(r ApiUpda localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.hyperflexExtFcStoragePolicy @@ -51493,7 +51493,7 @@ func (a *HyperflexApiService) UpdateHyperflexExtIscsiStoragePolicyExecute(r ApiU localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.hyperflexExtIscsiStoragePolicy @@ -51668,7 +51668,7 @@ func (a *HyperflexApiService) UpdateHyperflexFeatureLimitExternalExecute(r ApiUp localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.hyperflexFeatureLimitExternal @@ -51843,7 +51843,7 @@ func (a *HyperflexApiService) UpdateHyperflexFeatureLimitInternalExecute(r ApiUp localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.hyperflexFeatureLimitInternal @@ -52018,7 +52018,7 @@ func (a *HyperflexApiService) UpdateHyperflexHealthCheckDefinitionExecute(r ApiU localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.hyperflexHealthCheckDefinition @@ -52193,7 +52193,7 @@ func (a *HyperflexApiService) UpdateHyperflexHealthCheckPackageChecksumExecute(r localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.hyperflexHealthCheckPackageChecksum @@ -52368,7 +52368,7 @@ func (a *HyperflexApiService) UpdateHyperflexHxdpVersionExecute(r ApiUpdateHyper localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.hyperflexHxdpVersion @@ -52543,7 +52543,7 @@ func (a *HyperflexApiService) UpdateHyperflexHypervisorHostExecute(r ApiUpdateHy localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.hyperflexHypervisorHost @@ -52718,7 +52718,7 @@ func (a *HyperflexApiService) UpdateHyperflexHypervisorVirtualMachineExecute(r A localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.hyperflexHypervisorVirtualMachine @@ -52893,7 +52893,7 @@ func (a *HyperflexApiService) UpdateHyperflexInitiatorGroupExecute(r ApiUpdateHy localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.hyperflexInitiatorGroup @@ -53068,7 +53068,7 @@ func (a *HyperflexApiService) UpdateHyperflexIscsiNetworkExecute(r ApiUpdateHype localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.hyperflexIscsiNetwork @@ -53243,7 +53243,7 @@ func (a *HyperflexApiService) UpdateHyperflexKeyEncryptionKeyExecute(r ApiUpdate localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.hyperflexKeyEncryptionKey @@ -53418,7 +53418,7 @@ func (a *HyperflexApiService) UpdateHyperflexLocalCredentialPolicyExecute(r ApiU localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.hyperflexLocalCredentialPolicy @@ -53593,7 +53593,7 @@ func (a *HyperflexApiService) UpdateHyperflexLunExecute(r ApiUpdateHyperflexLunR localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.hyperflexLun @@ -53768,7 +53768,7 @@ func (a *HyperflexApiService) UpdateHyperflexNodeConfigPolicyExecute(r ApiUpdate localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.hyperflexNodeConfigPolicy @@ -53943,7 +53943,7 @@ func (a *HyperflexApiService) UpdateHyperflexNodeProfileExecute(r ApiUpdateHyper localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.hyperflexNodeProfile @@ -54118,7 +54118,7 @@ func (a *HyperflexApiService) UpdateHyperflexProxySettingPolicyExecute(r ApiUpda localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.hyperflexProxySettingPolicy @@ -54293,7 +54293,7 @@ func (a *HyperflexApiService) UpdateHyperflexReduceReSyncExecute(r ApiUpdateHype localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.hyperflexReduceReSync @@ -54468,7 +54468,7 @@ func (a *HyperflexApiService) UpdateHyperflexServerFirmwareVersionExecute(r ApiU localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.hyperflexServerFirmwareVersion @@ -54643,7 +54643,7 @@ func (a *HyperflexApiService) UpdateHyperflexServerFirmwareVersionEntryExecute(r localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.hyperflexServerFirmwareVersionEntry @@ -54818,7 +54818,7 @@ func (a *HyperflexApiService) UpdateHyperflexServerModelExecute(r ApiUpdateHyper localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.hyperflexServerModel @@ -54993,7 +54993,7 @@ func (a *HyperflexApiService) UpdateHyperflexServiceAuthTokenExecute(r ApiUpdate localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.hyperflexServiceAuthToken @@ -55168,7 +55168,7 @@ func (a *HyperflexApiService) UpdateHyperflexSoftwareDistributionComponentExecut localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.hyperflexSoftwareDistributionComponent @@ -55343,7 +55343,7 @@ func (a *HyperflexApiService) UpdateHyperflexSoftwareDistributionEntryExecute(r localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.hyperflexSoftwareDistributionEntry @@ -55518,7 +55518,7 @@ func (a *HyperflexApiService) UpdateHyperflexSoftwareDistributionVersionExecute( localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.hyperflexSoftwareDistributionVersion @@ -55693,7 +55693,7 @@ func (a *HyperflexApiService) UpdateHyperflexSoftwareVersionPolicyExecute(r ApiU localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.hyperflexSoftwareVersionPolicy @@ -55868,7 +55868,7 @@ func (a *HyperflexApiService) UpdateHyperflexStorageContainerExecute(r ApiUpdate localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.hyperflexStorageContainer @@ -56043,7 +56043,7 @@ func (a *HyperflexApiService) UpdateHyperflexSysConfigPolicyExecute(r ApiUpdateH localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.hyperflexSysConfigPolicy @@ -56218,7 +56218,7 @@ func (a *HyperflexApiService) UpdateHyperflexTargetExecute(r ApiUpdateHyperflexT localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.hyperflexTarget @@ -56393,7 +56393,7 @@ func (a *HyperflexApiService) UpdateHyperflexUcsmConfigPolicyExecute(r ApiUpdate localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.hyperflexUcsmConfigPolicy @@ -56568,7 +56568,7 @@ func (a *HyperflexApiService) UpdateHyperflexVcenterConfigPolicyExecute(r ApiUpd localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.hyperflexVcenterConfigPolicy @@ -56743,7 +56743,7 @@ func (a *HyperflexApiService) UpdateHyperflexVolumeExecute(r ApiUpdateHyperflexV localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.hyperflexVolume diff --git a/api_iaas.go b/api_iaas.go index 5383707af8..fa629671c3 100644 --- a/api_iaas.go +++ b/api_iaas.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -439,52 +439,52 @@ func (a *IaasApiService) GetIaasConnectorPackListExecute(r ApiGetIaasConnectorPa localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -866,52 +866,52 @@ func (a *IaasApiService) GetIaasCustomTaskInfoListExecute(r ApiGetIaasCustomTask localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -1293,52 +1293,52 @@ func (a *IaasApiService) GetIaasDeviceStatusListExecute(r ApiGetIaasDeviceStatus localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -1720,52 +1720,52 @@ func (a *IaasApiService) GetIaasDiagnosticMessagesListExecute(r ApiGetIaasDiagno localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -2147,52 +2147,52 @@ func (a *IaasApiService) GetIaasLicenseInfoListExecute(r ApiGetIaasLicenseInfoLi localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -2574,52 +2574,52 @@ func (a *IaasApiService) GetIaasMostRunTasksListExecute(r ApiGetIaasMostRunTasks localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -3001,52 +3001,52 @@ func (a *IaasApiService) GetIaasServiceRequestListExecute(r ApiGetIaasServiceReq localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -3428,52 +3428,52 @@ func (a *IaasApiService) GetIaasSystemTaskInfoListExecute(r ApiGetIaasSystemTask localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -3855,52 +3855,52 @@ func (a *IaasApiService) GetIaasUcsdInfoListExecute(r ApiGetIaasUcsdInfoListRequ localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -4282,52 +4282,52 @@ func (a *IaasApiService) GetIaasUcsdManagedInfraListExecute(r ApiGetIaasUcsdMana localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -4709,52 +4709,52 @@ func (a *IaasApiService) GetIaasUcsdMessagesListExecute(r ApiGetIaasUcsdMessages localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -4944,7 +4944,7 @@ func (a *IaasApiService) PatchIaasUcsdInfoExecute(r ApiPatchIaasUcsdInfoRequest) localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.iaasUcsdInfo @@ -5119,7 +5119,7 @@ func (a *IaasApiService) UpdateIaasUcsdInfoExecute(r ApiUpdateIaasUcsdInfoReques localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.iaasUcsdInfo diff --git a/api_iam.go b/api_iam.go index 129c663575..14c44847c8 100644 --- a/api_iam.go +++ b/api_iam.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -108,10 +108,10 @@ func (a *IamApiService) CreateIamAccountExecute(r ApiCreateIamAccountRequest) (* localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.iamAccount @@ -289,10 +289,10 @@ func (a *IamApiService) CreateIamAccountExperienceExecute(r ApiCreateIamAccountE localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.iamAccountExperience @@ -470,10 +470,10 @@ func (a *IamApiService) CreateIamApiKeyExecute(r ApiCreateIamApiKeyRequest) (*Ia localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.iamApiKey @@ -651,10 +651,10 @@ func (a *IamApiService) CreateIamAppRegistrationExecute(r ApiCreateIamAppRegistr localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.iamAppRegistration @@ -832,10 +832,10 @@ func (a *IamApiService) CreateIamCertificateExecute(r ApiCreateIamCertificateReq localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.iamCertificate @@ -1013,10 +1013,10 @@ func (a *IamApiService) CreateIamCertificateRequestExecute(r ApiCreateIamCertifi localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.iamCertificateRequest @@ -1194,10 +1194,10 @@ func (a *IamApiService) CreateIamDomainNameInfoExecute(r ApiCreateIamDomainNameI localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.iamDomainNameInfo @@ -1375,10 +1375,10 @@ func (a *IamApiService) CreateIamEndPointUserExecute(r ApiCreateIamEndPointUserR localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.iamEndPointUser @@ -1556,10 +1556,10 @@ func (a *IamApiService) CreateIamEndPointUserPolicyExecute(r ApiCreateIamEndPoin localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.iamEndPointUserPolicy @@ -1737,10 +1737,10 @@ func (a *IamApiService) CreateIamEndPointUserRoleExecute(r ApiCreateIamEndPointU localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.iamEndPointUserRole @@ -1918,10 +1918,10 @@ func (a *IamApiService) CreateIamIdpExecute(r ApiCreateIamIdpRequest) (*IamIdp, localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.iamIdp @@ -2099,10 +2099,10 @@ func (a *IamApiService) CreateIamIpAccessManagementExecute(r ApiCreateIamIpAcces localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.iamIpAccessManagement @@ -2280,10 +2280,10 @@ func (a *IamApiService) CreateIamIpAddressExecute(r ApiCreateIamIpAddressRequest localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.iamIpAddress @@ -2461,10 +2461,10 @@ func (a *IamApiService) CreateIamLdapGroupExecute(r ApiCreateIamLdapGroupRequest localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.iamLdapGroup @@ -2642,10 +2642,10 @@ func (a *IamApiService) CreateIamLdapPolicyExecute(r ApiCreateIamLdapPolicyReque localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.iamLdapPolicy @@ -2823,10 +2823,10 @@ func (a *IamApiService) CreateIamLdapProviderExecute(r ApiCreateIamLdapProviderR localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.iamLdapProvider @@ -3004,10 +3004,10 @@ func (a *IamApiService) CreateIamLocalUserPasswordExecute(r ApiCreateIamLocalUse localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.iamLocalUserPassword @@ -3185,10 +3185,10 @@ func (a *IamApiService) CreateIamPermissionExecute(r ApiCreateIamPermissionReque localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.iamPermission @@ -3366,10 +3366,10 @@ func (a *IamApiService) CreateIamPrivateKeySpecExecute(r ApiCreateIamPrivateKeyS localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.iamPrivateKeySpec @@ -3547,10 +3547,10 @@ func (a *IamApiService) CreateIamQualifierExecute(r ApiCreateIamQualifierRequest localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.iamQualifier @@ -3728,10 +3728,10 @@ func (a *IamApiService) CreateIamResourceRolesExecute(r ApiCreateIamResourceRole localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.iamResourceRoles @@ -3909,10 +3909,10 @@ func (a *IamApiService) CreateIamSessionLimitsExecute(r ApiCreateIamSessionLimit localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.iamSessionLimits @@ -4090,10 +4090,10 @@ func (a *IamApiService) CreateIamSharingRuleExecute(r ApiCreateIamSharingRuleReq localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.iamSharingRule @@ -4271,10 +4271,10 @@ func (a *IamApiService) CreateIamTrustPointExecute(r ApiCreateIamTrustPointReque localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.iamTrustPoint @@ -4452,10 +4452,10 @@ func (a *IamApiService) CreateIamUserExecute(r ApiCreateIamUserRequest) (*IamUse localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.iamUser @@ -4633,10 +4633,10 @@ func (a *IamApiService) CreateIamUserGroupExecute(r ApiCreateIamUserGroupRequest localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.iamUserGroup @@ -4814,10 +4814,10 @@ func (a *IamApiService) CreateIamUserSettingExecute(r ApiCreateIamUserSettingReq localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.iamUserSetting @@ -8887,52 +8887,52 @@ func (a *IamApiService) GetIamAccountExperienceListExecute(r ApiGetIamAccountExp localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -9161,52 +9161,52 @@ func (a *IamApiService) GetIamAccountListExecute(r ApiGetIamAccountListRequest) localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -9588,52 +9588,52 @@ func (a *IamApiService) GetIamApiKeyListExecute(r ApiGetIamApiKeyListRequest) (* localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -10015,52 +10015,52 @@ func (a *IamApiService) GetIamAppRegistrationListExecute(r ApiGetIamAppRegistrat localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -10442,52 +10442,52 @@ func (a *IamApiService) GetIamBannerMessageListExecute(r ApiGetIamBannerMessageL localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -10869,52 +10869,52 @@ func (a *IamApiService) GetIamCertificateListExecute(r ApiGetIamCertificateListR localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -11296,52 +11296,52 @@ func (a *IamApiService) GetIamCertificateRequestListExecute(r ApiGetIamCertifica localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -11723,52 +11723,52 @@ func (a *IamApiService) GetIamDomainGroupListExecute(r ApiGetIamDomainGroupListR localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -12150,52 +12150,52 @@ func (a *IamApiService) GetIamDomainNameInfoListExecute(r ApiGetIamDomainNameInf localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -12577,52 +12577,52 @@ func (a *IamApiService) GetIamEndPointPrivilegeListExecute(r ApiGetIamEndPointPr localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -13004,52 +13004,52 @@ func (a *IamApiService) GetIamEndPointRoleListExecute(r ApiGetIamEndPointRoleLis localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -13584,52 +13584,52 @@ func (a *IamApiService) GetIamEndPointUserInventoryListExecute(r ApiGetIamEndPoi localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -13858,52 +13858,52 @@ func (a *IamApiService) GetIamEndPointUserListExecute(r ApiGetIamEndPointUserLis localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -14438,52 +14438,52 @@ func (a *IamApiService) GetIamEndPointUserPolicyInventoryListExecute(r ApiGetIam localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -14712,52 +14712,52 @@ func (a *IamApiService) GetIamEndPointUserPolicyListExecute(r ApiGetIamEndPointU localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -15292,52 +15292,52 @@ func (a *IamApiService) GetIamEndPointUserRoleInventoryListExecute(r ApiGetIamEn localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -15566,52 +15566,52 @@ func (a *IamApiService) GetIamEndPointUserRoleListExecute(r ApiGetIamEndPointUse localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -15993,52 +15993,52 @@ func (a *IamApiService) GetIamIdpListExecute(r ApiGetIamIdpListRequest) (*IamIdp localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -16420,52 +16420,52 @@ func (a *IamApiService) GetIamIdpReferenceListExecute(r ApiGetIamIdpReferenceLis localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -16847,52 +16847,52 @@ func (a *IamApiService) GetIamIpAccessManagementListExecute(r ApiGetIamIpAccessM localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -17274,52 +17274,52 @@ func (a *IamApiService) GetIamIpAddressListExecute(r ApiGetIamIpAddressListReque localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -17701,52 +17701,52 @@ func (a *IamApiService) GetIamLdapConfigParamsListExecute(r ApiGetIamLdapConfigP localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -18128,52 +18128,52 @@ func (a *IamApiService) GetIamLdapGroupListExecute(r ApiGetIamLdapGroupListReque localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -18555,52 +18555,52 @@ func (a *IamApiService) GetIamLdapPolicyListExecute(r ApiGetIamLdapPolicyListReq localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -18982,52 +18982,52 @@ func (a *IamApiService) GetIamLdapProviderListExecute(r ApiGetIamLdapProviderLis localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -19409,52 +19409,52 @@ func (a *IamApiService) GetIamLocalUserPasswordListExecute(r ApiGetIamLocalUserP localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -19836,52 +19836,52 @@ func (a *IamApiService) GetIamLocalUserPasswordPolicyListExecute(r ApiGetIamLoca localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -20263,52 +20263,52 @@ func (a *IamApiService) GetIamOAuthTokenListExecute(r ApiGetIamOAuthTokenListReq localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -20690,52 +20690,52 @@ func (a *IamApiService) GetIamPermissionListExecute(r ApiGetIamPermissionListReq localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -21117,52 +21117,52 @@ func (a *IamApiService) GetIamPrivateKeySpecListExecute(r ApiGetIamPrivateKeySpe localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -21544,52 +21544,52 @@ func (a *IamApiService) GetIamPrivilegeListExecute(r ApiGetIamPrivilegeListReque localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -21971,52 +21971,52 @@ func (a *IamApiService) GetIamPrivilegeSetListExecute(r ApiGetIamPrivilegeSetLis localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -22398,52 +22398,52 @@ func (a *IamApiService) GetIamQualifierListExecute(r ApiGetIamQualifierListReque localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -22825,52 +22825,52 @@ func (a *IamApiService) GetIamResourceLimitsListExecute(r ApiGetIamResourceLimit localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -23252,52 +23252,52 @@ func (a *IamApiService) GetIamResourcePermissionListExecute(r ApiGetIamResourceP localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -23679,52 +23679,52 @@ func (a *IamApiService) GetIamResourceRolesListExecute(r ApiGetIamResourceRolesL localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -24106,52 +24106,52 @@ func (a *IamApiService) GetIamRoleListExecute(r ApiGetIamRoleListRequest) (*IamR localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -24533,52 +24533,52 @@ func (a *IamApiService) GetIamSecurityHolderListExecute(r ApiGetIamSecurityHolde localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -24960,52 +24960,52 @@ func (a *IamApiService) GetIamServiceProviderListExecute(r ApiGetIamServiceProvi localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -25540,52 +25540,52 @@ func (a *IamApiService) GetIamSessionLimitsListExecute(r ApiGetIamSessionLimitsL localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -25814,52 +25814,52 @@ func (a *IamApiService) GetIamSessionListExecute(r ApiGetIamSessionListRequest) localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -26241,52 +26241,52 @@ func (a *IamApiService) GetIamSharingRuleListExecute(r ApiGetIamSharingRuleListR localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -26668,52 +26668,52 @@ func (a *IamApiService) GetIamSystemListExecute(r ApiGetIamSystemListRequest) (* localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -27095,52 +27095,52 @@ func (a *IamApiService) GetIamTrustPointListExecute(r ApiGetIamTrustPointListReq localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -27675,52 +27675,52 @@ func (a *IamApiService) GetIamUserGroupListExecute(r ApiGetIamUserGroupListReque localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -27949,52 +27949,52 @@ func (a *IamApiService) GetIamUserListExecute(r ApiGetIamUserListRequest) (*IamU localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -28376,52 +28376,52 @@ func (a *IamApiService) GetIamUserPreferenceListExecute(r ApiGetIamUserPreferenc localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -28803,52 +28803,52 @@ func (a *IamApiService) GetIamUserSettingListExecute(r ApiGetIamUserSettingListR localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -29038,7 +29038,7 @@ func (a *IamApiService) PatchIamAccountExecute(r ApiPatchIamAccountRequest) (*Ia localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.iamAccount @@ -29213,7 +29213,7 @@ func (a *IamApiService) PatchIamAccountExperienceExecute(r ApiPatchIamAccountExp localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.iamAccountExperience @@ -29388,7 +29388,7 @@ func (a *IamApiService) PatchIamApiKeyExecute(r ApiPatchIamApiKeyRequest) (*IamA localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.iamApiKey @@ -29563,7 +29563,7 @@ func (a *IamApiService) PatchIamAppRegistrationExecute(r ApiPatchIamAppRegistrat localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.iamAppRegistration @@ -29738,7 +29738,7 @@ func (a *IamApiService) PatchIamBannerMessageExecute(r ApiPatchIamBannerMessageR localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.iamBannerMessage @@ -29913,7 +29913,7 @@ func (a *IamApiService) PatchIamCertificateExecute(r ApiPatchIamCertificateReque localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.iamCertificate @@ -30088,7 +30088,7 @@ func (a *IamApiService) PatchIamCertificateRequestExecute(r ApiPatchIamCertifica localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.iamCertificateRequest @@ -30263,7 +30263,7 @@ func (a *IamApiService) PatchIamDomainNameInfoExecute(r ApiPatchIamDomainNameInf localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.iamDomainNameInfo @@ -30438,7 +30438,7 @@ func (a *IamApiService) PatchIamEndPointUserExecute(r ApiPatchIamEndPointUserReq localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.iamEndPointUser @@ -30613,7 +30613,7 @@ func (a *IamApiService) PatchIamEndPointUserPolicyExecute(r ApiPatchIamEndPointU localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.iamEndPointUserPolicy @@ -30788,7 +30788,7 @@ func (a *IamApiService) PatchIamEndPointUserRoleExecute(r ApiPatchIamEndPointUse localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.iamEndPointUserRole @@ -30963,7 +30963,7 @@ func (a *IamApiService) PatchIamIdpExecute(r ApiPatchIamIdpRequest) (*IamIdp, *h localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.iamIdp @@ -31138,7 +31138,7 @@ func (a *IamApiService) PatchIamIdpReferenceExecute(r ApiPatchIamIdpReferenceReq localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.iamIdpReference @@ -31313,7 +31313,7 @@ func (a *IamApiService) PatchIamIpAccessManagementExecute(r ApiPatchIamIpAccessM localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.iamIpAccessManagement @@ -31488,7 +31488,7 @@ func (a *IamApiService) PatchIamIpAddressExecute(r ApiPatchIamIpAddressRequest) localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.iamIpAddress @@ -31663,7 +31663,7 @@ func (a *IamApiService) PatchIamLdapGroupExecute(r ApiPatchIamLdapGroupRequest) localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.iamLdapGroup @@ -31838,7 +31838,7 @@ func (a *IamApiService) PatchIamLdapPolicyExecute(r ApiPatchIamLdapPolicyRequest localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.iamLdapPolicy @@ -32013,7 +32013,7 @@ func (a *IamApiService) PatchIamLdapProviderExecute(r ApiPatchIamLdapProviderReq localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.iamLdapProvider @@ -32188,7 +32188,7 @@ func (a *IamApiService) PatchIamLocalUserPasswordExecute(r ApiPatchIamLocalUserP localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.iamLocalUserPassword @@ -32363,7 +32363,7 @@ func (a *IamApiService) PatchIamLocalUserPasswordPolicyExecute(r ApiPatchIamLoca localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.iamLocalUserPasswordPolicy @@ -32538,7 +32538,7 @@ func (a *IamApiService) PatchIamPermissionExecute(r ApiPatchIamPermissionRequest localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.iamPermission @@ -32713,7 +32713,7 @@ func (a *IamApiService) PatchIamPrivateKeySpecExecute(r ApiPatchIamPrivateKeySpe localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.iamPrivateKeySpec @@ -32888,7 +32888,7 @@ func (a *IamApiService) PatchIamQualifierExecute(r ApiPatchIamQualifierRequest) localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.iamQualifier @@ -33063,7 +33063,7 @@ func (a *IamApiService) PatchIamResourceLimitsExecute(r ApiPatchIamResourceLimit localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.iamResourceLimits @@ -33238,7 +33238,7 @@ func (a *IamApiService) PatchIamResourceRolesExecute(r ApiPatchIamResourceRolesR localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.iamResourceRoles @@ -33413,7 +33413,7 @@ func (a *IamApiService) PatchIamSessionLimitsExecute(r ApiPatchIamSessionLimitsR localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.iamSessionLimits @@ -33588,7 +33588,7 @@ func (a *IamApiService) PatchIamUserExecute(r ApiPatchIamUserRequest) (*IamUser, localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.iamUser @@ -33763,7 +33763,7 @@ func (a *IamApiService) PatchIamUserGroupExecute(r ApiPatchIamUserGroupRequest) localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.iamUserGroup @@ -33938,7 +33938,7 @@ func (a *IamApiService) PatchIamUserPreferenceExecute(r ApiPatchIamUserPreferenc localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.iamUserPreference @@ -34113,7 +34113,7 @@ func (a *IamApiService) PatchIamUserSettingExecute(r ApiPatchIamUserSettingReque localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.iamUserSetting @@ -34288,7 +34288,7 @@ func (a *IamApiService) UpdateIamAccountExecute(r ApiUpdateIamAccountRequest) (* localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.iamAccount @@ -34463,7 +34463,7 @@ func (a *IamApiService) UpdateIamAccountExperienceExecute(r ApiUpdateIamAccountE localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.iamAccountExperience @@ -34638,7 +34638,7 @@ func (a *IamApiService) UpdateIamApiKeyExecute(r ApiUpdateIamApiKeyRequest) (*Ia localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.iamApiKey @@ -34813,7 +34813,7 @@ func (a *IamApiService) UpdateIamAppRegistrationExecute(r ApiUpdateIamAppRegistr localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.iamAppRegistration @@ -34988,7 +34988,7 @@ func (a *IamApiService) UpdateIamBannerMessageExecute(r ApiUpdateIamBannerMessag localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.iamBannerMessage @@ -35163,7 +35163,7 @@ func (a *IamApiService) UpdateIamCertificateExecute(r ApiUpdateIamCertificateReq localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.iamCertificate @@ -35338,7 +35338,7 @@ func (a *IamApiService) UpdateIamCertificateRequestExecute(r ApiUpdateIamCertifi localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.iamCertificateRequest @@ -35513,7 +35513,7 @@ func (a *IamApiService) UpdateIamDomainNameInfoExecute(r ApiUpdateIamDomainNameI localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.iamDomainNameInfo @@ -35688,7 +35688,7 @@ func (a *IamApiService) UpdateIamEndPointUserExecute(r ApiUpdateIamEndPointUserR localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.iamEndPointUser @@ -35863,7 +35863,7 @@ func (a *IamApiService) UpdateIamEndPointUserPolicyExecute(r ApiUpdateIamEndPoin localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.iamEndPointUserPolicy @@ -36038,7 +36038,7 @@ func (a *IamApiService) UpdateIamEndPointUserRoleExecute(r ApiUpdateIamEndPointU localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.iamEndPointUserRole @@ -36213,7 +36213,7 @@ func (a *IamApiService) UpdateIamIdpExecute(r ApiUpdateIamIdpRequest) (*IamIdp, localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.iamIdp @@ -36388,7 +36388,7 @@ func (a *IamApiService) UpdateIamIdpReferenceExecute(r ApiUpdateIamIdpReferenceR localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.iamIdpReference @@ -36563,7 +36563,7 @@ func (a *IamApiService) UpdateIamIpAccessManagementExecute(r ApiUpdateIamIpAcces localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.iamIpAccessManagement @@ -36738,7 +36738,7 @@ func (a *IamApiService) UpdateIamIpAddressExecute(r ApiUpdateIamIpAddressRequest localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.iamIpAddress @@ -36913,7 +36913,7 @@ func (a *IamApiService) UpdateIamLdapGroupExecute(r ApiUpdateIamLdapGroupRequest localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.iamLdapGroup @@ -37088,7 +37088,7 @@ func (a *IamApiService) UpdateIamLdapPolicyExecute(r ApiUpdateIamLdapPolicyReque localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.iamLdapPolicy @@ -37263,7 +37263,7 @@ func (a *IamApiService) UpdateIamLdapProviderExecute(r ApiUpdateIamLdapProviderR localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.iamLdapProvider @@ -37438,7 +37438,7 @@ func (a *IamApiService) UpdateIamLocalUserPasswordExecute(r ApiUpdateIamLocalUse localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.iamLocalUserPassword @@ -37613,7 +37613,7 @@ func (a *IamApiService) UpdateIamLocalUserPasswordPolicyExecute(r ApiUpdateIamLo localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.iamLocalUserPasswordPolicy @@ -37788,7 +37788,7 @@ func (a *IamApiService) UpdateIamPermissionExecute(r ApiUpdateIamPermissionReque localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.iamPermission @@ -37963,7 +37963,7 @@ func (a *IamApiService) UpdateIamPrivateKeySpecExecute(r ApiUpdateIamPrivateKeyS localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.iamPrivateKeySpec @@ -38138,7 +38138,7 @@ func (a *IamApiService) UpdateIamQualifierExecute(r ApiUpdateIamQualifierRequest localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.iamQualifier @@ -38313,7 +38313,7 @@ func (a *IamApiService) UpdateIamResourceLimitsExecute(r ApiUpdateIamResourceLim localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.iamResourceLimits @@ -38488,7 +38488,7 @@ func (a *IamApiService) UpdateIamResourceRolesExecute(r ApiUpdateIamResourceRole localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.iamResourceRoles @@ -38663,7 +38663,7 @@ func (a *IamApiService) UpdateIamSessionLimitsExecute(r ApiUpdateIamSessionLimit localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.iamSessionLimits @@ -38838,7 +38838,7 @@ func (a *IamApiService) UpdateIamUserExecute(r ApiUpdateIamUserRequest) (*IamUse localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.iamUser @@ -39013,7 +39013,7 @@ func (a *IamApiService) UpdateIamUserGroupExecute(r ApiUpdateIamUserGroupRequest localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.iamUserGroup @@ -39188,7 +39188,7 @@ func (a *IamApiService) UpdateIamUserPreferenceExecute(r ApiUpdateIamUserPrefere localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.iamUserPreference @@ -39363,7 +39363,7 @@ func (a *IamApiService) UpdateIamUserSettingExecute(r ApiUpdateIamUserSettingReq localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.iamUserSetting diff --git a/api_inventory.go b/api_inventory.go index a8f0f63154..f4ce1c861d 100644 --- a/api_inventory.go +++ b/api_inventory.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -108,10 +108,10 @@ func (a *InventoryApiService) CreateInventoryRequestExecute(r ApiCreateInventory localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.inventoryRequest @@ -478,52 +478,52 @@ func (a *InventoryApiService) GetInventoryDeviceInfoListExecute(r ApiGetInventor localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -905,52 +905,52 @@ func (a *InventoryApiService) GetInventoryDnMoBindingListExecute(r ApiGetInvento localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -1485,52 +1485,52 @@ func (a *InventoryApiService) GetInventoryGenericInventoryHolderListExecute(r Ap localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -1759,52 +1759,52 @@ func (a *InventoryApiService) GetInventoryGenericInventoryListExecute(r ApiGetIn localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -1994,7 +1994,7 @@ func (a *InventoryApiService) PatchInventoryGenericInventoryExecute(r ApiPatchIn localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.inventoryGenericInventory @@ -2169,7 +2169,7 @@ func (a *InventoryApiService) PatchInventoryGenericInventoryHolderExecute(r ApiP localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.inventoryGenericInventoryHolder @@ -2344,7 +2344,7 @@ func (a *InventoryApiService) UpdateInventoryGenericInventoryExecute(r ApiUpdate localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.inventoryGenericInventory @@ -2519,7 +2519,7 @@ func (a *InventoryApiService) UpdateInventoryGenericInventoryHolderExecute(r Api localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.inventoryGenericInventoryHolder diff --git a/api_ipmioverlan.go b/api_ipmioverlan.go index 80497b9197..baf88865ac 100644 --- a/api_ipmioverlan.go +++ b/api_ipmioverlan.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -108,10 +108,10 @@ func (a *IpmioverlanApiService) CreateIpmioverlanPolicyExecute(r ApiCreateIpmiov localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.ipmioverlanPolicy @@ -773,52 +773,52 @@ func (a *IpmioverlanApiService) GetIpmioverlanPolicyInventoryListExecute(r ApiGe localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -1047,52 +1047,52 @@ func (a *IpmioverlanApiService) GetIpmioverlanPolicyListExecute(r ApiGetIpmiover localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -1282,7 +1282,7 @@ func (a *IpmioverlanApiService) PatchIpmioverlanPolicyExecute(r ApiPatchIpmiover localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.ipmioverlanPolicy @@ -1457,7 +1457,7 @@ func (a *IpmioverlanApiService) UpdateIpmioverlanPolicyExecute(r ApiUpdateIpmiov localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.ipmioverlanPolicy diff --git a/api_ippool.go b/api_ippool.go index 67943fd228..f229869b71 100644 --- a/api_ippool.go +++ b/api_ippool.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -108,10 +108,10 @@ func (a *IppoolApiService) CreateIppoolPoolExecute(r ApiCreateIppoolPoolRequest) localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.ippoolPool @@ -289,10 +289,10 @@ func (a *IppoolApiService) CreateIppoolReservationExecute(r ApiCreateIppoolReser localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.ippoolReservation @@ -1085,52 +1085,52 @@ func (a *IppoolApiService) GetIppoolBlockLeaseListExecute(r ApiGetIppoolBlockLea localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -1512,52 +1512,52 @@ func (a *IppoolApiService) GetIppoolIpLeaseListExecute(r ApiGetIppoolIpLeaseList localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -1939,52 +1939,52 @@ func (a *IppoolApiService) GetIppoolPoolListExecute(r ApiGetIppoolPoolListReques localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -2366,52 +2366,52 @@ func (a *IppoolApiService) GetIppoolPoolMemberListExecute(r ApiGetIppoolPoolMemb localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -2793,52 +2793,52 @@ func (a *IppoolApiService) GetIppoolReservationListExecute(r ApiGetIppoolReserva localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -3220,52 +3220,52 @@ func (a *IppoolApiService) GetIppoolShadowBlockListExecute(r ApiGetIppoolShadowB localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -3647,52 +3647,52 @@ func (a *IppoolApiService) GetIppoolShadowPoolListExecute(r ApiGetIppoolShadowPo localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -4074,52 +4074,52 @@ func (a *IppoolApiService) GetIppoolUniverseListExecute(r ApiGetIppoolUniverseLi localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -4309,7 +4309,7 @@ func (a *IppoolApiService) PatchIppoolPoolExecute(r ApiPatchIppoolPoolRequest) ( localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.ippoolPool @@ -4484,7 +4484,7 @@ func (a *IppoolApiService) UpdateIppoolPoolExecute(r ApiUpdateIppoolPoolRequest) localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.ippoolPool diff --git a/api_iqnpool.go b/api_iqnpool.go index ccf99781eb..a0275cd66e 100644 --- a/api_iqnpool.go +++ b/api_iqnpool.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -108,10 +108,10 @@ func (a *IqnpoolApiService) CreateIqnpoolPoolExecute(r ApiCreateIqnpoolPoolReque localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.iqnpoolPool @@ -289,10 +289,10 @@ func (a *IqnpoolApiService) CreateIqnpoolReservationExecute(r ApiCreateIqnpoolRe localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.iqnpoolReservation @@ -1085,52 +1085,52 @@ func (a *IqnpoolApiService) GetIqnpoolBlockListExecute(r ApiGetIqnpoolBlockListR localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -1512,52 +1512,52 @@ func (a *IqnpoolApiService) GetIqnpoolLeaseListExecute(r ApiGetIqnpoolLeaseListR localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -1939,52 +1939,52 @@ func (a *IqnpoolApiService) GetIqnpoolPoolListExecute(r ApiGetIqnpoolPoolListReq localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -2366,52 +2366,52 @@ func (a *IqnpoolApiService) GetIqnpoolPoolMemberListExecute(r ApiGetIqnpoolPoolM localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -2793,52 +2793,52 @@ func (a *IqnpoolApiService) GetIqnpoolReservationListExecute(r ApiGetIqnpoolRese localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -3220,52 +3220,52 @@ func (a *IqnpoolApiService) GetIqnpoolUniverseListExecute(r ApiGetIqnpoolUnivers localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -3455,7 +3455,7 @@ func (a *IqnpoolApiService) PatchIqnpoolPoolExecute(r ApiPatchIqnpoolPoolRequest localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.iqnpoolPool @@ -3630,7 +3630,7 @@ func (a *IqnpoolApiService) UpdateIqnpoolPoolExecute(r ApiUpdateIqnpoolPoolReque localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.iqnpoolPool diff --git a/api_iwotenant.go b/api_iwotenant.go index e940e8c6a6..34c1f6c41d 100644 --- a/api_iwotenant.go +++ b/api_iwotenant.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -108,10 +108,10 @@ func (a *IwotenantApiService) CreateIwotenantMaintenanceNotificationExecute(r Ap localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.iwotenantMaintenanceNotification @@ -289,10 +289,10 @@ func (a *IwotenantApiService) CreateIwotenantMigrateExecute(r ApiCreateIwotenant localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.iwotenantMigrate @@ -470,10 +470,10 @@ func (a *IwotenantApiService) CreateIwotenantTenantCustomizationExecute(r ApiCre localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.iwotenantTenantCustomization @@ -1266,52 +1266,52 @@ func (a *IwotenantApiService) GetIwotenantMaintenanceNotificationListExecute(r A localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -1693,52 +1693,52 @@ func (a *IwotenantApiService) GetIwotenantMigrateListExecute(r ApiGetIwotenantMi localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -2120,52 +2120,52 @@ func (a *IwotenantApiService) GetIwotenantTenantCustomizationListExecute(r ApiGe localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -2547,52 +2547,52 @@ func (a *IwotenantApiService) GetIwotenantTenantStatusListExecute(r ApiGetIwoten localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -2782,7 +2782,7 @@ func (a *IwotenantApiService) PatchIwotenantMigrateExecute(r ApiPatchIwotenantMi localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.iwotenantMigrate @@ -2957,7 +2957,7 @@ func (a *IwotenantApiService) PatchIwotenantTenantCustomizationExecute(r ApiPatc localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.iwotenantTenantCustomization @@ -3132,7 +3132,7 @@ func (a *IwotenantApiService) UpdateIwotenantMigrateExecute(r ApiUpdateIwotenant localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.iwotenantMigrate @@ -3307,7 +3307,7 @@ func (a *IwotenantApiService) UpdateIwotenantTenantCustomizationExecute(r ApiUpd localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.iwotenantTenantCustomization diff --git a/api_kubernetes.go b/api_kubernetes.go index 94ad8b15ea..efc8ee5ee8 100644 --- a/api_kubernetes.go +++ b/api_kubernetes.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -111,10 +111,10 @@ func (a *KubernetesApiService) CreateKubernetesAciCniApicExecute(r ApiCreateKube localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.kubernetesAciCniApic @@ -295,10 +295,10 @@ func (a *KubernetesApiService) CreateKubernetesAciCniProfileExecute(r ApiCreateK localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.kubernetesAciCniProfile @@ -479,10 +479,10 @@ func (a *KubernetesApiService) CreateKubernetesAciCniTenantClusterAllocationExec localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.kubernetesAciCniTenantClusterAllocation @@ -660,10 +660,10 @@ func (a *KubernetesApiService) CreateKubernetesAddonDefinitionExecute(r ApiCreat localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.kubernetesAddonDefinition @@ -841,10 +841,10 @@ func (a *KubernetesApiService) CreateKubernetesAddonPolicyExecute(r ApiCreateKub localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.kubernetesAddonPolicy @@ -1022,10 +1022,10 @@ func (a *KubernetesApiService) CreateKubernetesAddonRepositoryExecute(r ApiCreat localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.kubernetesAddonRepository @@ -1206,10 +1206,10 @@ func (a *KubernetesApiService) CreateKubernetesBaremetalNodeProfileExecute(r Api localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.kubernetesBaremetalNodeProfile @@ -1387,10 +1387,10 @@ func (a *KubernetesApiService) CreateKubernetesClusterExecute(r ApiCreateKuberne localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.kubernetesCluster @@ -1568,10 +1568,10 @@ func (a *KubernetesApiService) CreateKubernetesClusterAddonProfileExecute(r ApiC localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.kubernetesClusterAddonProfile @@ -1749,10 +1749,10 @@ func (a *KubernetesApiService) CreateKubernetesClusterProfileExecute(r ApiCreate localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.kubernetesClusterProfile @@ -1930,10 +1930,10 @@ func (a *KubernetesApiService) CreateKubernetesContainerRuntimePolicyExecute(r A localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.kubernetesContainerRuntimePolicy @@ -2111,10 +2111,10 @@ func (a *KubernetesApiService) CreateKubernetesHttpProxyPolicyExecute(r ApiCreat localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.kubernetesHttpProxyPolicy @@ -2292,10 +2292,10 @@ func (a *KubernetesApiService) CreateKubernetesNetworkPolicyExecute(r ApiCreateK localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.kubernetesNetworkPolicy @@ -2473,10 +2473,10 @@ func (a *KubernetesApiService) CreateKubernetesNodeGroupProfileExecute(r ApiCrea localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.kubernetesNodeGroupProfile @@ -2654,10 +2654,10 @@ func (a *KubernetesApiService) CreateKubernetesNvidiaGpuProductExecute(r ApiCrea localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.kubernetesNvidiaGpuProduct @@ -2835,10 +2835,10 @@ func (a *KubernetesApiService) CreateKubernetesSysConfigPolicyExecute(r ApiCreat localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.kubernetesSysConfigPolicy @@ -3016,10 +3016,10 @@ func (a *KubernetesApiService) CreateKubernetesTrustedRegistriesPolicyExecute(r localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.kubernetesTrustedRegistriesPolicy @@ -3197,10 +3197,10 @@ func (a *KubernetesApiService) CreateKubernetesVersionExecute(r ApiCreateKuberne localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.kubernetesVersion @@ -3378,10 +3378,10 @@ func (a *KubernetesApiService) CreateKubernetesVersionPolicyExecute(r ApiCreateK localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.kubernetesVersionPolicy @@ -3559,10 +3559,10 @@ func (a *KubernetesApiService) CreateKubernetesVirtualMachineInfraConfigPolicyEx localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.kubernetesVirtualMachineInfraConfigPolicy @@ -3740,10 +3740,10 @@ func (a *KubernetesApiService) CreateKubernetesVirtualMachineInfrastructureProvi localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.kubernetesVirtualMachineInfrastructureProvider @@ -3921,10 +3921,10 @@ func (a *KubernetesApiService) CreateKubernetesVirtualMachineInstanceTypeExecute localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.kubernetesVirtualMachineInstanceType @@ -4102,10 +4102,10 @@ func (a *KubernetesApiService) CreateKubernetesVirtualMachineNodeProfileExecute( localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.kubernetesVirtualMachineNodeProfile @@ -8608,52 +8608,52 @@ func (a *KubernetesApiService) GetKubernetesAciCniApicListExecute(r ApiGetKubern localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -9041,52 +9041,52 @@ func (a *KubernetesApiService) GetKubernetesAciCniProfileListExecute(r ApiGetKub localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -9474,52 +9474,52 @@ func (a *KubernetesApiService) GetKubernetesAciCniTenantClusterAllocationListExe localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -9901,52 +9901,52 @@ func (a *KubernetesApiService) GetKubernetesAddonDefinitionListExecute(r ApiGetK localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -10328,52 +10328,52 @@ func (a *KubernetesApiService) GetKubernetesAddonPolicyListExecute(r ApiGetKuber localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -10755,52 +10755,52 @@ func (a *KubernetesApiService) GetKubernetesAddonRepositoryListExecute(r ApiGetK localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -11188,52 +11188,52 @@ func (a *KubernetesApiService) GetKubernetesBaremetalNodeProfileListExecute(r Ap localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -11615,52 +11615,52 @@ func (a *KubernetesApiService) GetKubernetesCatalogListExecute(r ApiGetKubernete localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -12042,52 +12042,52 @@ func (a *KubernetesApiService) GetKubernetesClusterAddonProfileListExecute(r Api localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -12469,52 +12469,52 @@ func (a *KubernetesApiService) GetKubernetesClusterListExecute(r ApiGetKubernete localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -12896,52 +12896,52 @@ func (a *KubernetesApiService) GetKubernetesClusterProfileListExecute(r ApiGetKu localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -13476,52 +13476,52 @@ func (a *KubernetesApiService) GetKubernetesConfigResultEntryListExecute(r ApiGe localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -13750,52 +13750,52 @@ func (a *KubernetesApiService) GetKubernetesConfigResultListExecute(r ApiGetKube localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -14177,52 +14177,52 @@ func (a *KubernetesApiService) GetKubernetesContainerRuntimePolicyListExecute(r localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -14604,52 +14604,52 @@ func (a *KubernetesApiService) GetKubernetesDaemonSetListExecute(r ApiGetKuberne localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -15031,52 +15031,52 @@ func (a *KubernetesApiService) GetKubernetesDeploymentListExecute(r ApiGetKubern localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -15458,52 +15458,52 @@ func (a *KubernetesApiService) GetKubernetesHttpProxyPolicyListExecute(r ApiGetK localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -15885,52 +15885,52 @@ func (a *KubernetesApiService) GetKubernetesIngressListExecute(r ApiGetKubernete localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -16312,52 +16312,52 @@ func (a *KubernetesApiService) GetKubernetesNetworkPolicyListExecute(r ApiGetKub localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -16892,52 +16892,52 @@ func (a *KubernetesApiService) GetKubernetesNodeGroupProfileListExecute(r ApiGet localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -17166,52 +17166,52 @@ func (a *KubernetesApiService) GetKubernetesNodeListExecute(r ApiGetKubernetesNo localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -17593,52 +17593,52 @@ func (a *KubernetesApiService) GetKubernetesNvidiaGpuProductListExecute(r ApiGet localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -18020,52 +18020,52 @@ func (a *KubernetesApiService) GetKubernetesPodListExecute(r ApiGetKubernetesPod localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -18447,52 +18447,52 @@ func (a *KubernetesApiService) GetKubernetesServiceListExecute(r ApiGetKubernete localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -18874,52 +18874,52 @@ func (a *KubernetesApiService) GetKubernetesStatefulSetListExecute(r ApiGetKuber localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -19301,52 +19301,52 @@ func (a *KubernetesApiService) GetKubernetesSysConfigPolicyListExecute(r ApiGetK localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -19728,52 +19728,52 @@ func (a *KubernetesApiService) GetKubernetesTrustedRegistriesPolicyListExecute(r localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -20155,52 +20155,52 @@ func (a *KubernetesApiService) GetKubernetesVersionListExecute(r ApiGetKubernete localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -20582,52 +20582,52 @@ func (a *KubernetesApiService) GetKubernetesVersionPolicyListExecute(r ApiGetKub localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -21009,52 +21009,52 @@ func (a *KubernetesApiService) GetKubernetesVirtualMachineInfraConfigPolicyListE localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -21436,52 +21436,52 @@ func (a *KubernetesApiService) GetKubernetesVirtualMachineInfrastructureProvider localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -21863,52 +21863,52 @@ func (a *KubernetesApiService) GetKubernetesVirtualMachineInstanceTypeListExecut localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -22290,52 +22290,52 @@ func (a *KubernetesApiService) GetKubernetesVirtualMachineNodeProfileListExecute localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -22528,7 +22528,7 @@ func (a *KubernetesApiService) PatchKubernetesAciCniApicExecute(r ApiPatchKubern localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.kubernetesAciCniApic @@ -22706,7 +22706,7 @@ func (a *KubernetesApiService) PatchKubernetesAciCniProfileExecute(r ApiPatchKub localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.kubernetesAciCniProfile @@ -22884,7 +22884,7 @@ func (a *KubernetesApiService) PatchKubernetesAciCniTenantClusterAllocationExecu localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.kubernetesAciCniTenantClusterAllocation @@ -23059,7 +23059,7 @@ func (a *KubernetesApiService) PatchKubernetesAddonDefinitionExecute(r ApiPatchK localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.kubernetesAddonDefinition @@ -23234,7 +23234,7 @@ func (a *KubernetesApiService) PatchKubernetesAddonPolicyExecute(r ApiPatchKuber localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.kubernetesAddonPolicy @@ -23409,7 +23409,7 @@ func (a *KubernetesApiService) PatchKubernetesAddonRepositoryExecute(r ApiPatchK localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.kubernetesAddonRepository @@ -23587,7 +23587,7 @@ func (a *KubernetesApiService) PatchKubernetesBaremetalNodeProfileExecute(r ApiP localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.kubernetesBaremetalNodeProfile @@ -23762,7 +23762,7 @@ func (a *KubernetesApiService) PatchKubernetesClusterExecute(r ApiPatchKubernete localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.kubernetesCluster @@ -23937,7 +23937,7 @@ func (a *KubernetesApiService) PatchKubernetesClusterAddonProfileExecute(r ApiPa localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.kubernetesClusterAddonProfile @@ -24112,7 +24112,7 @@ func (a *KubernetesApiService) PatchKubernetesClusterProfileExecute(r ApiPatchKu localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.kubernetesClusterProfile @@ -24287,7 +24287,7 @@ func (a *KubernetesApiService) PatchKubernetesContainerRuntimePolicyExecute(r Ap localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.kubernetesContainerRuntimePolicy @@ -24462,7 +24462,7 @@ func (a *KubernetesApiService) PatchKubernetesHttpProxyPolicyExecute(r ApiPatchK localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.kubernetesHttpProxyPolicy @@ -24637,7 +24637,7 @@ func (a *KubernetesApiService) PatchKubernetesNetworkPolicyExecute(r ApiPatchKub localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.kubernetesNetworkPolicy @@ -24812,7 +24812,7 @@ func (a *KubernetesApiService) PatchKubernetesNodeGroupProfileExecute(r ApiPatch localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.kubernetesNodeGroupProfile @@ -24987,7 +24987,7 @@ func (a *KubernetesApiService) PatchKubernetesNvidiaGpuProductExecute(r ApiPatch localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.kubernetesNvidiaGpuProduct @@ -25162,7 +25162,7 @@ func (a *KubernetesApiService) PatchKubernetesSysConfigPolicyExecute(r ApiPatchK localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.kubernetesSysConfigPolicy @@ -25337,7 +25337,7 @@ func (a *KubernetesApiService) PatchKubernetesTrustedRegistriesPolicyExecute(r A localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.kubernetesTrustedRegistriesPolicy @@ -25512,7 +25512,7 @@ func (a *KubernetesApiService) PatchKubernetesVersionExecute(r ApiPatchKubernete localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.kubernetesVersion @@ -25687,7 +25687,7 @@ func (a *KubernetesApiService) PatchKubernetesVersionPolicyExecute(r ApiPatchKub localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.kubernetesVersionPolicy @@ -25862,7 +25862,7 @@ func (a *KubernetesApiService) PatchKubernetesVirtualMachineInfraConfigPolicyExe localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.kubernetesVirtualMachineInfraConfigPolicy @@ -26037,7 +26037,7 @@ func (a *KubernetesApiService) PatchKubernetesVirtualMachineInfrastructureProvid localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.kubernetesVirtualMachineInfrastructureProvider @@ -26212,7 +26212,7 @@ func (a *KubernetesApiService) PatchKubernetesVirtualMachineInstanceTypeExecute( localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.kubernetesVirtualMachineInstanceType @@ -26387,7 +26387,7 @@ func (a *KubernetesApiService) PatchKubernetesVirtualMachineNodeProfileExecute(r localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.kubernetesVirtualMachineNodeProfile @@ -26565,7 +26565,7 @@ func (a *KubernetesApiService) UpdateKubernetesAciCniApicExecute(r ApiUpdateKube localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.kubernetesAciCniApic @@ -26743,7 +26743,7 @@ func (a *KubernetesApiService) UpdateKubernetesAciCniProfileExecute(r ApiUpdateK localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.kubernetesAciCniProfile @@ -26921,7 +26921,7 @@ func (a *KubernetesApiService) UpdateKubernetesAciCniTenantClusterAllocationExec localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.kubernetesAciCniTenantClusterAllocation @@ -27096,7 +27096,7 @@ func (a *KubernetesApiService) UpdateKubernetesAddonDefinitionExecute(r ApiUpdat localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.kubernetesAddonDefinition @@ -27271,7 +27271,7 @@ func (a *KubernetesApiService) UpdateKubernetesAddonPolicyExecute(r ApiUpdateKub localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.kubernetesAddonPolicy @@ -27446,7 +27446,7 @@ func (a *KubernetesApiService) UpdateKubernetesAddonRepositoryExecute(r ApiUpdat localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.kubernetesAddonRepository @@ -27624,7 +27624,7 @@ func (a *KubernetesApiService) UpdateKubernetesBaremetalNodeProfileExecute(r Api localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.kubernetesBaremetalNodeProfile @@ -27799,7 +27799,7 @@ func (a *KubernetesApiService) UpdateKubernetesClusterExecute(r ApiUpdateKuberne localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.kubernetesCluster @@ -27974,7 +27974,7 @@ func (a *KubernetesApiService) UpdateKubernetesClusterAddonProfileExecute(r ApiU localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.kubernetesClusterAddonProfile @@ -28149,7 +28149,7 @@ func (a *KubernetesApiService) UpdateKubernetesClusterProfileExecute(r ApiUpdate localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.kubernetesClusterProfile @@ -28324,7 +28324,7 @@ func (a *KubernetesApiService) UpdateKubernetesContainerRuntimePolicyExecute(r A localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.kubernetesContainerRuntimePolicy @@ -28499,7 +28499,7 @@ func (a *KubernetesApiService) UpdateKubernetesHttpProxyPolicyExecute(r ApiUpdat localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.kubernetesHttpProxyPolicy @@ -28674,7 +28674,7 @@ func (a *KubernetesApiService) UpdateKubernetesNetworkPolicyExecute(r ApiUpdateK localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.kubernetesNetworkPolicy @@ -28849,7 +28849,7 @@ func (a *KubernetesApiService) UpdateKubernetesNodeGroupProfileExecute(r ApiUpda localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.kubernetesNodeGroupProfile @@ -29024,7 +29024,7 @@ func (a *KubernetesApiService) UpdateKubernetesNvidiaGpuProductExecute(r ApiUpda localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.kubernetesNvidiaGpuProduct @@ -29199,7 +29199,7 @@ func (a *KubernetesApiService) UpdateKubernetesSysConfigPolicyExecute(r ApiUpdat localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.kubernetesSysConfigPolicy @@ -29374,7 +29374,7 @@ func (a *KubernetesApiService) UpdateKubernetesTrustedRegistriesPolicyExecute(r localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.kubernetesTrustedRegistriesPolicy @@ -29549,7 +29549,7 @@ func (a *KubernetesApiService) UpdateKubernetesVersionExecute(r ApiUpdateKuberne localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.kubernetesVersion @@ -29724,7 +29724,7 @@ func (a *KubernetesApiService) UpdateKubernetesVersionPolicyExecute(r ApiUpdateK localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.kubernetesVersionPolicy @@ -29899,7 +29899,7 @@ func (a *KubernetesApiService) UpdateKubernetesVirtualMachineInfraConfigPolicyEx localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.kubernetesVirtualMachineInfraConfigPolicy @@ -30074,7 +30074,7 @@ func (a *KubernetesApiService) UpdateKubernetesVirtualMachineInfrastructureProvi localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.kubernetesVirtualMachineInfrastructureProvider @@ -30249,7 +30249,7 @@ func (a *KubernetesApiService) UpdateKubernetesVirtualMachineInstanceTypeExecute localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.kubernetesVirtualMachineInstanceType @@ -30424,7 +30424,7 @@ func (a *KubernetesApiService) UpdateKubernetesVirtualMachineNodeProfileExecute( localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.kubernetesVirtualMachineNodeProfile diff --git a/api_kvm.go b/api_kvm.go index 03d84d8570..dbf1662ba3 100644 --- a/api_kvm.go +++ b/api_kvm.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -108,10 +108,10 @@ func (a *KvmApiService) CreateKvmPolicyExecute(r ApiCreateKvmPolicyRequest) (*Kv localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.kvmPolicy @@ -289,10 +289,10 @@ func (a *KvmApiService) CreateKvmSessionExecute(r ApiCreateKvmSessionRequest) (* localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.kvmSession @@ -470,10 +470,10 @@ func (a *KvmApiService) CreateKvmTunnelExecute(r ApiCreateKvmTunnelRequest) (*Kv localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.kvmTunnel @@ -651,10 +651,10 @@ func (a *KvmApiService) CreateKvmTunneledKvmPolicyExecute(r ApiCreateKvmTunneled localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.kvmTunneledKvmPolicy @@ -1458,52 +1458,52 @@ func (a *KvmApiService) GetKvmPolicyInventoryListExecute(r ApiGetKvmPolicyInvent localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -1732,52 +1732,52 @@ func (a *KvmApiService) GetKvmPolicyListExecute(r ApiGetKvmPolicyListRequest) (* localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -2159,52 +2159,52 @@ func (a *KvmApiService) GetKvmSessionListExecute(r ApiGetKvmSessionListRequest) localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -2586,52 +2586,52 @@ func (a *KvmApiService) GetKvmTunnelListExecute(r ApiGetKvmTunnelListRequest) (* localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -3013,52 +3013,52 @@ func (a *KvmApiService) GetKvmTunneledKvmPolicyListExecute(r ApiGetKvmTunneledKv localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -3248,7 +3248,7 @@ func (a *KvmApiService) PatchKvmPolicyExecute(r ApiPatchKvmPolicyRequest) (*KvmP localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.kvmPolicy @@ -3423,7 +3423,7 @@ func (a *KvmApiService) PatchKvmSessionExecute(r ApiPatchKvmSessionRequest) (*Kv localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.kvmSession @@ -3598,7 +3598,7 @@ func (a *KvmApiService) PatchKvmTunneledKvmPolicyExecute(r ApiPatchKvmTunneledKv localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.kvmTunneledKvmPolicy @@ -3773,7 +3773,7 @@ func (a *KvmApiService) UpdateKvmPolicyExecute(r ApiUpdateKvmPolicyRequest) (*Kv localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.kvmPolicy @@ -3948,7 +3948,7 @@ func (a *KvmApiService) UpdateKvmSessionExecute(r ApiUpdateKvmSessionRequest) (* localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.kvmSession @@ -4123,7 +4123,7 @@ func (a *KvmApiService) UpdateKvmTunneledKvmPolicyExecute(r ApiUpdateKvmTunneled localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.kvmTunneledKvmPolicy diff --git a/api_license.go b/api_license.go index b90993adc2..6d41f85382 100644 --- a/api_license.go +++ b/api_license.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -108,10 +108,10 @@ func (a *LicenseApiService) CreateLicenseIksLicenseCountExecute(r ApiCreateLicen localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.licenseIksLicenseCount @@ -289,10 +289,10 @@ func (a *LicenseApiService) CreateLicenseIncLicenseCountExecute(r ApiCreateLicen localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.licenseIncLicenseCount @@ -470,10 +470,10 @@ func (a *LicenseApiService) CreateLicenseIwoLicenseCountExecute(r ApiCreateLicen localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.licenseIwoLicenseCount @@ -651,10 +651,10 @@ func (a *LicenseApiService) CreateLicenseLicenseInfoExecute(r ApiCreateLicenseLi localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.licenseLicenseInfo @@ -832,10 +832,10 @@ func (a *LicenseApiService) CreateLicenseLicenseReservationOpExecute(r ApiCreate localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.licenseLicenseReservationOp @@ -1202,52 +1202,52 @@ func (a *LicenseApiService) GetLicenseAccountLicenseDataListExecute(r ApiGetLice localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -1629,52 +1629,52 @@ func (a *LicenseApiService) GetLicenseCustomerOpListExecute(r ApiGetLicenseCusto localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -2056,52 +2056,52 @@ func (a *LicenseApiService) GetLicenseIksCustomerOpListExecute(r ApiGetLicenseIk localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -2483,52 +2483,52 @@ func (a *LicenseApiService) GetLicenseIksLicenseCountListExecute(r ApiGetLicense localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -2910,52 +2910,52 @@ func (a *LicenseApiService) GetLicenseIncCustomerOpListExecute(r ApiGetLicenseIn localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -3337,52 +3337,52 @@ func (a *LicenseApiService) GetLicenseIncLicenseCountListExecute(r ApiGetLicense localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -3764,52 +3764,52 @@ func (a *LicenseApiService) GetLicenseIwoCustomerOpListExecute(r ApiGetLicenseIw localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -4191,52 +4191,52 @@ func (a *LicenseApiService) GetLicenseIwoLicenseCountListExecute(r ApiGetLicense localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -4618,52 +4618,52 @@ func (a *LicenseApiService) GetLicenseLicenseInfoListExecute(r ApiGetLicenseLice localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -5045,52 +5045,52 @@ func (a *LicenseApiService) GetLicenseLicenseInfoViewListExecute(r ApiGetLicense localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -5472,52 +5472,52 @@ func (a *LicenseApiService) GetLicenseLicenseRegistrationStatusListExecute(r Api localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -5899,52 +5899,52 @@ func (a *LicenseApiService) GetLicenseLicenseReservationOpListExecute(r ApiGetLi localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -6326,52 +6326,52 @@ func (a *LicenseApiService) GetLicenseSmartlicenseTokenListExecute(r ApiGetLicen localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -6561,7 +6561,7 @@ func (a *LicenseApiService) PatchLicenseAccountLicenseDataExecute(r ApiPatchLice localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.licenseAccountLicenseData @@ -6736,7 +6736,7 @@ func (a *LicenseApiService) PatchLicenseCustomerOpExecute(r ApiPatchLicenseCusto localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.licenseCustomerOp @@ -6911,7 +6911,7 @@ func (a *LicenseApiService) PatchLicenseIksCustomerOpExecute(r ApiPatchLicenseIk localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.licenseIksCustomerOp @@ -7086,7 +7086,7 @@ func (a *LicenseApiService) PatchLicenseIksLicenseCountExecute(r ApiPatchLicense localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.licenseIksLicenseCount @@ -7261,7 +7261,7 @@ func (a *LicenseApiService) PatchLicenseIncCustomerOpExecute(r ApiPatchLicenseIn localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.licenseIncCustomerOp @@ -7436,7 +7436,7 @@ func (a *LicenseApiService) PatchLicenseIncLicenseCountExecute(r ApiPatchLicense localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.licenseIncLicenseCount @@ -7611,7 +7611,7 @@ func (a *LicenseApiService) PatchLicenseIwoCustomerOpExecute(r ApiPatchLicenseIw localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.licenseIwoCustomerOp @@ -7786,7 +7786,7 @@ func (a *LicenseApiService) PatchLicenseIwoLicenseCountExecute(r ApiPatchLicense localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.licenseIwoLicenseCount @@ -7961,7 +7961,7 @@ func (a *LicenseApiService) PatchLicenseLicenseInfoExecute(r ApiPatchLicenseLice localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.licenseLicenseInfo @@ -8136,7 +8136,7 @@ func (a *LicenseApiService) PatchLicenseLicenseRegistrationStatusExecute(r ApiPa localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.licenseLicenseRegistrationStatus @@ -8311,7 +8311,7 @@ func (a *LicenseApiService) PatchLicenseLicenseReservationOpExecute(r ApiPatchLi localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.licenseLicenseReservationOp @@ -8486,7 +8486,7 @@ func (a *LicenseApiService) PatchLicenseSmartlicenseTokenExecute(r ApiPatchLicen localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.licenseSmartlicenseToken @@ -8661,7 +8661,7 @@ func (a *LicenseApiService) UpdateLicenseAccountLicenseDataExecute(r ApiUpdateLi localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.licenseAccountLicenseData @@ -8836,7 +8836,7 @@ func (a *LicenseApiService) UpdateLicenseCustomerOpExecute(r ApiUpdateLicenseCus localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.licenseCustomerOp @@ -9011,7 +9011,7 @@ func (a *LicenseApiService) UpdateLicenseIksCustomerOpExecute(r ApiUpdateLicense localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.licenseIksCustomerOp @@ -9186,7 +9186,7 @@ func (a *LicenseApiService) UpdateLicenseIksLicenseCountExecute(r ApiUpdateLicen localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.licenseIksLicenseCount @@ -9361,7 +9361,7 @@ func (a *LicenseApiService) UpdateLicenseIncCustomerOpExecute(r ApiUpdateLicense localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.licenseIncCustomerOp @@ -9536,7 +9536,7 @@ func (a *LicenseApiService) UpdateLicenseIncLicenseCountExecute(r ApiUpdateLicen localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.licenseIncLicenseCount @@ -9711,7 +9711,7 @@ func (a *LicenseApiService) UpdateLicenseIwoCustomerOpExecute(r ApiUpdateLicense localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.licenseIwoCustomerOp @@ -9886,7 +9886,7 @@ func (a *LicenseApiService) UpdateLicenseIwoLicenseCountExecute(r ApiUpdateLicen localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.licenseIwoLicenseCount @@ -10061,7 +10061,7 @@ func (a *LicenseApiService) UpdateLicenseLicenseInfoExecute(r ApiUpdateLicenseLi localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.licenseLicenseInfo @@ -10236,7 +10236,7 @@ func (a *LicenseApiService) UpdateLicenseLicenseRegistrationStatusExecute(r ApiU localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.licenseLicenseRegistrationStatus @@ -10411,7 +10411,7 @@ func (a *LicenseApiService) UpdateLicenseLicenseReservationOpExecute(r ApiUpdate localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.licenseLicenseReservationOp @@ -10586,7 +10586,7 @@ func (a *LicenseApiService) UpdateLicenseSmartlicenseTokenExecute(r ApiUpdateLic localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.licenseSmartlicenseToken diff --git a/api_ls.go b/api_ls.go index 685632db69..3e7270bf7f 100644 --- a/api_ls.go +++ b/api_ls.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -297,52 +297,52 @@ func (a *LsApiService) GetLsServiceProfileListExecute(r ApiGetLsServiceProfileLi localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -532,7 +532,7 @@ func (a *LsApiService) PatchLsServiceProfileExecute(r ApiPatchLsServiceProfileRe localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.lsServiceProfile @@ -707,7 +707,7 @@ func (a *LsApiService) UpdateLsServiceProfileExecute(r ApiUpdateLsServiceProfile localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.lsServiceProfile diff --git a/api_macpool.go b/api_macpool.go index d2ed67d5a4..f48ac71e5e 100644 --- a/api_macpool.go +++ b/api_macpool.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -108,10 +108,10 @@ func (a *MacpoolApiService) CreateMacpoolPoolExecute(r ApiCreateMacpoolPoolReque localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.macpoolPool @@ -289,10 +289,10 @@ func (a *MacpoolApiService) CreateMacpoolReservationExecute(r ApiCreateMacpoolRe localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.macpoolReservation @@ -1085,52 +1085,52 @@ func (a *MacpoolApiService) GetMacpoolIdBlockListExecute(r ApiGetMacpoolIdBlockL localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -1512,52 +1512,52 @@ func (a *MacpoolApiService) GetMacpoolLeaseListExecute(r ApiGetMacpoolLeaseListR localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -1939,52 +1939,52 @@ func (a *MacpoolApiService) GetMacpoolPoolListExecute(r ApiGetMacpoolPoolListReq localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -2366,52 +2366,52 @@ func (a *MacpoolApiService) GetMacpoolPoolMemberListExecute(r ApiGetMacpoolPoolM localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -2793,52 +2793,52 @@ func (a *MacpoolApiService) GetMacpoolReservationListExecute(r ApiGetMacpoolRese localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -3220,52 +3220,52 @@ func (a *MacpoolApiService) GetMacpoolUniverseListExecute(r ApiGetMacpoolUnivers localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -3455,7 +3455,7 @@ func (a *MacpoolApiService) PatchMacpoolPoolExecute(r ApiPatchMacpoolPoolRequest localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.macpoolPool @@ -3630,7 +3630,7 @@ func (a *MacpoolApiService) UpdateMacpoolPoolExecute(r ApiUpdateMacpoolPoolReque localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.macpoolPool diff --git a/api_management.go b/api_management.go index 6fb0e07bbe..da85298093 100644 --- a/api_management.go +++ b/api_management.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -297,52 +297,52 @@ func (a *ManagementApiService) GetManagementControllerListExecute(r ApiGetManage localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -724,52 +724,52 @@ func (a *ManagementApiService) GetManagementEntityListExecute(r ApiGetManagement localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -1151,52 +1151,52 @@ func (a *ManagementApiService) GetManagementInterfaceListExecute(r ApiGetManagem localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -1386,7 +1386,7 @@ func (a *ManagementApiService) PatchManagementControllerExecute(r ApiPatchManage localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.managementController @@ -1561,7 +1561,7 @@ func (a *ManagementApiService) PatchManagementEntityExecute(r ApiPatchManagement localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.managementEntity @@ -1736,7 +1736,7 @@ func (a *ManagementApiService) PatchManagementInterfaceExecute(r ApiPatchManagem localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.managementInterface @@ -1911,7 +1911,7 @@ func (a *ManagementApiService) UpdateManagementControllerExecute(r ApiUpdateMana localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.managementController @@ -2086,7 +2086,7 @@ func (a *ManagementApiService) UpdateManagementEntityExecute(r ApiUpdateManageme localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.managementEntity @@ -2261,7 +2261,7 @@ func (a *ManagementApiService) UpdateManagementInterfaceExecute(r ApiUpdateManag localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.managementInterface diff --git a/api_marketplace.go b/api_marketplace.go index 17a847be8c..a5291ee6f2 100644 --- a/api_marketplace.go +++ b/api_marketplace.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -108,10 +108,10 @@ func (a *MarketplaceApiService) CreateMarketplaceUseCaseExecute(r ApiCreateMarke localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.marketplaceUseCase @@ -289,10 +289,10 @@ func (a *MarketplaceApiService) CreateMarketplaceUseCaseVersionExecute(r ApiCrea localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.marketplaceUseCaseVersion @@ -943,52 +943,52 @@ func (a *MarketplaceApiService) GetMarketplaceUseCaseListExecute(r ApiGetMarketp localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -1370,52 +1370,52 @@ func (a *MarketplaceApiService) GetMarketplaceUseCaseVersionListExecute(r ApiGet localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -1605,7 +1605,7 @@ func (a *MarketplaceApiService) PatchMarketplaceUseCaseExecute(r ApiPatchMarketp localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.marketplaceUseCase @@ -1780,7 +1780,7 @@ func (a *MarketplaceApiService) PatchMarketplaceUseCaseVersionExecute(r ApiPatch localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.marketplaceUseCaseVersion @@ -1955,7 +1955,7 @@ func (a *MarketplaceApiService) UpdateMarketplaceUseCaseExecute(r ApiUpdateMarke localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.marketplaceUseCase @@ -2130,7 +2130,7 @@ func (a *MarketplaceApiService) UpdateMarketplaceUseCaseVersionExecute(r ApiUpda localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.marketplaceUseCaseVersion diff --git a/api_memory.go b/api_memory.go index 1cb0fe4e4f..c1e3e7f1e2 100644 --- a/api_memory.go +++ b/api_memory.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -108,10 +108,10 @@ func (a *MemoryApiService) CreateMemoryPersistentMemoryPolicyExecute(r ApiCreate localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.memoryPersistentMemoryPolicy @@ -620,52 +620,52 @@ func (a *MemoryApiService) GetMemoryArrayListExecute(r ApiGetMemoryArrayListRequ localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -1047,52 +1047,52 @@ func (a *MemoryApiService) GetMemoryPersistentMemoryConfigResultListExecute(r Ap localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -1474,52 +1474,52 @@ func (a *MemoryApiService) GetMemoryPersistentMemoryConfigurationListExecute(r A localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -2054,52 +2054,52 @@ func (a *MemoryApiService) GetMemoryPersistentMemoryNamespaceConfigResultListExe localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -2328,52 +2328,52 @@ func (a *MemoryApiService) GetMemoryPersistentMemoryNamespaceListExecute(r ApiGe localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -2755,52 +2755,52 @@ func (a *MemoryApiService) GetMemoryPersistentMemoryPolicyListExecute(r ApiGetMe localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -3182,52 +3182,52 @@ func (a *MemoryApiService) GetMemoryPersistentMemoryRegionListExecute(r ApiGetMe localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -3609,52 +3609,52 @@ func (a *MemoryApiService) GetMemoryPersistentMemoryUnitListExecute(r ApiGetMemo localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -4036,52 +4036,52 @@ func (a *MemoryApiService) GetMemoryUnitListExecute(r ApiGetMemoryUnitListReques localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -4271,7 +4271,7 @@ func (a *MemoryApiService) PatchMemoryArrayExecute(r ApiPatchMemoryArrayRequest) localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.memoryArray @@ -4446,7 +4446,7 @@ func (a *MemoryApiService) PatchMemoryPersistentMemoryConfigResultExecute(r ApiP localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.memoryPersistentMemoryConfigResult @@ -4621,7 +4621,7 @@ func (a *MemoryApiService) PatchMemoryPersistentMemoryConfigurationExecute(r Api localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.memoryPersistentMemoryConfiguration @@ -4796,7 +4796,7 @@ func (a *MemoryApiService) PatchMemoryPersistentMemoryNamespaceExecute(r ApiPatc localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.memoryPersistentMemoryNamespace @@ -4971,7 +4971,7 @@ func (a *MemoryApiService) PatchMemoryPersistentMemoryNamespaceConfigResultExecu localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.memoryPersistentMemoryNamespaceConfigResult @@ -5146,7 +5146,7 @@ func (a *MemoryApiService) PatchMemoryPersistentMemoryPolicyExecute(r ApiPatchMe localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.memoryPersistentMemoryPolicy @@ -5321,7 +5321,7 @@ func (a *MemoryApiService) PatchMemoryPersistentMemoryRegionExecute(r ApiPatchMe localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.memoryPersistentMemoryRegion @@ -5496,7 +5496,7 @@ func (a *MemoryApiService) PatchMemoryPersistentMemoryUnitExecute(r ApiPatchMemo localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.memoryPersistentMemoryUnit @@ -5671,7 +5671,7 @@ func (a *MemoryApiService) PatchMemoryUnitExecute(r ApiPatchMemoryUnitRequest) ( localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.memoryUnit @@ -5846,7 +5846,7 @@ func (a *MemoryApiService) UpdateMemoryArrayExecute(r ApiUpdateMemoryArrayReques localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.memoryArray @@ -6021,7 +6021,7 @@ func (a *MemoryApiService) UpdateMemoryPersistentMemoryConfigResultExecute(r Api localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.memoryPersistentMemoryConfigResult @@ -6196,7 +6196,7 @@ func (a *MemoryApiService) UpdateMemoryPersistentMemoryConfigurationExecute(r Ap localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.memoryPersistentMemoryConfiguration @@ -6371,7 +6371,7 @@ func (a *MemoryApiService) UpdateMemoryPersistentMemoryNamespaceExecute(r ApiUpd localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.memoryPersistentMemoryNamespace @@ -6546,7 +6546,7 @@ func (a *MemoryApiService) UpdateMemoryPersistentMemoryNamespaceConfigResultExec localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.memoryPersistentMemoryNamespaceConfigResult @@ -6721,7 +6721,7 @@ func (a *MemoryApiService) UpdateMemoryPersistentMemoryPolicyExecute(r ApiUpdate localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.memoryPersistentMemoryPolicy @@ -6896,7 +6896,7 @@ func (a *MemoryApiService) UpdateMemoryPersistentMemoryRegionExecute(r ApiUpdate localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.memoryPersistentMemoryRegion @@ -7071,7 +7071,7 @@ func (a *MemoryApiService) UpdateMemoryPersistentMemoryUnitExecute(r ApiUpdateMe localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.memoryPersistentMemoryUnit @@ -7246,7 +7246,7 @@ func (a *MemoryApiService) UpdateMemoryUnitExecute(r ApiUpdateMemoryUnitRequest) localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.memoryUnit diff --git a/api_meraki.go b/api_meraki.go index 626a1ce06b..bd880815d4 100644 --- a/api_meraki.go +++ b/api_meraki.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -297,52 +297,52 @@ func (a *MerakiApiService) GetMerakiDeviceListExecute(r ApiGetMerakiDeviceListRe localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -724,52 +724,52 @@ func (a *MerakiApiService) GetMerakiNetworkListExecute(r ApiGetMerakiNetworkList localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -1151,52 +1151,52 @@ func (a *MerakiApiService) GetMerakiOrganizationListExecute(r ApiGetMerakiOrgani localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -1578,52 +1578,52 @@ func (a *MerakiApiService) GetMerakiPortProfileListExecute(r ApiGetMerakiPortPro localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -2005,52 +2005,52 @@ func (a *MerakiApiService) GetMerakiTagListExecute(r ApiGetMerakiTagListRequest) localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} diff --git a/api_meta.go b/api_meta.go index 5e6d6e6fdf..75c8d82ac2 100644 --- a/api_meta.go +++ b/api_meta.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -439,52 +439,52 @@ func (a *MetaApiService) GetMetaDefinitionListExecute(r ApiGetMetaDefinitionList localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} diff --git a/api_metrics.go b/api_metrics.go index 47701b5ff3..ae49858872 100644 --- a/api_metrics.go +++ b/api_metrics.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -108,10 +108,10 @@ func (a *MetricsApiService) CreateMetricsMetricsExplorationExecute(r ApiCreateMe localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.metricsMetricsExploration @@ -620,52 +620,52 @@ func (a *MetricsApiService) GetMetricsMetricsExplorationListExecute(r ApiGetMetr localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -855,7 +855,7 @@ func (a *MetricsApiService) PatchMetricsMetricsExplorationExecute(r ApiPatchMetr localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.metricsMetricsExploration @@ -1030,7 +1030,7 @@ func (a *MetricsApiService) UpdateMetricsMetricsExplorationExecute(r ApiUpdateMe localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.metricsMetricsExploration diff --git a/api_monitoring.go b/api_monitoring.go index df5b8c4aca..cbeeb2ebb2 100644 --- a/api_monitoring.go +++ b/api_monitoring.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -297,52 +297,52 @@ func (a *MonitoringApiService) GetMonitoringHealthStatusListExecute(r ApiGetMoni localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} diff --git a/api_network.go b/api_network.go index 6782c364fa..114c67dbf0 100644 --- a/api_network.go +++ b/api_network.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -297,52 +297,52 @@ func (a *NetworkApiService) GetNetworkDiscoveredNeighborListExecute(r ApiGetNetw localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -724,52 +724,52 @@ func (a *NetworkApiService) GetNetworkDnsListExecute(r ApiGetNetworkDnsListReque localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -1151,52 +1151,52 @@ func (a *NetworkApiService) GetNetworkElementListExecute(r ApiGetNetworkElementL localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -1578,52 +1578,52 @@ func (a *NetworkApiService) GetNetworkElementSummaryListExecute(r ApiGetNetworkE localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -2005,52 +2005,52 @@ func (a *NetworkApiService) GetNetworkFcZoneInfoListExecute(r ApiGetNetworkFcZon localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -2432,52 +2432,52 @@ func (a *NetworkApiService) GetNetworkFeatureControlListExecute(r ApiGetNetworkF localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -2859,52 +2859,52 @@ func (a *NetworkApiService) GetNetworkInterfaceListListExecute(r ApiGetNetworkIn localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -3286,52 +3286,52 @@ func (a *NetworkApiService) GetNetworkLicenseFileListExecute(r ApiGetNetworkLice localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -3713,52 +3713,52 @@ func (a *NetworkApiService) GetNetworkSupervisorCardListExecute(r ApiGetNetworkS localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -4140,52 +4140,52 @@ func (a *NetworkApiService) GetNetworkTelemetryCheckListExecute(r ApiGetNetworkT localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -4567,52 +4567,52 @@ func (a *NetworkApiService) GetNetworkVethernetListExecute(r ApiGetNetworkVether localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -4994,52 +4994,52 @@ func (a *NetworkApiService) GetNetworkVfcListExecute(r ApiGetNetworkVfcListReque localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -5421,52 +5421,52 @@ func (a *NetworkApiService) GetNetworkVlanPortInfoListExecute(r ApiGetNetworkVla localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -5848,52 +5848,52 @@ func (a *NetworkApiService) GetNetworkVpcDomainListExecute(r ApiGetNetworkVpcDom localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -6275,52 +6275,52 @@ func (a *NetworkApiService) GetNetworkVpcMemberListExecute(r ApiGetNetworkVpcMem localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -6702,52 +6702,52 @@ func (a *NetworkApiService) GetNetworkVpcPeerListExecute(r ApiGetNetworkVpcPeerL localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -7129,52 +7129,52 @@ func (a *NetworkApiService) GetNetworkVrfListExecute(r ApiGetNetworkVrfListReque localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -7364,7 +7364,7 @@ func (a *NetworkApiService) PatchNetworkElementExecute(r ApiPatchNetworkElementR localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.networkElement @@ -7539,7 +7539,7 @@ func (a *NetworkApiService) PatchNetworkFcZoneInfoExecute(r ApiPatchNetworkFcZon localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.networkFcZoneInfo @@ -7714,7 +7714,7 @@ func (a *NetworkApiService) PatchNetworkVethernetExecute(r ApiPatchNetworkVether localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.networkVethernet @@ -7889,7 +7889,7 @@ func (a *NetworkApiService) PatchNetworkVfcExecute(r ApiPatchNetworkVfcRequest) localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.networkVfc @@ -8064,7 +8064,7 @@ func (a *NetworkApiService) PatchNetworkVlanPortInfoExecute(r ApiPatchNetworkVla localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.networkVlanPortInfo @@ -8239,7 +8239,7 @@ func (a *NetworkApiService) UpdateNetworkElementExecute(r ApiUpdateNetworkElemen localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.networkElement @@ -8414,7 +8414,7 @@ func (a *NetworkApiService) UpdateNetworkFcZoneInfoExecute(r ApiUpdateNetworkFcZ localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.networkFcZoneInfo @@ -8589,7 +8589,7 @@ func (a *NetworkApiService) UpdateNetworkVethernetExecute(r ApiUpdateNetworkVeth localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.networkVethernet @@ -8764,7 +8764,7 @@ func (a *NetworkApiService) UpdateNetworkVfcExecute(r ApiUpdateNetworkVfcRequest localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.networkVfc @@ -8939,7 +8939,7 @@ func (a *NetworkApiService) UpdateNetworkVlanPortInfoExecute(r ApiUpdateNetworkV localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.networkVlanPortInfo diff --git a/api_networkconfig.go b/api_networkconfig.go index 755691647b..3cc23a0ae7 100644 --- a/api_networkconfig.go +++ b/api_networkconfig.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -108,10 +108,10 @@ func (a *NetworkconfigApiService) CreateNetworkconfigPolicyExecute(r ApiCreateNe localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.networkconfigPolicy @@ -773,52 +773,52 @@ func (a *NetworkconfigApiService) GetNetworkconfigPolicyInventoryListExecute(r A localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -1047,52 +1047,52 @@ func (a *NetworkconfigApiService) GetNetworkconfigPolicyListExecute(r ApiGetNetw localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -1282,7 +1282,7 @@ func (a *NetworkconfigApiService) PatchNetworkconfigPolicyExecute(r ApiPatchNetw localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.networkconfigPolicy @@ -1457,7 +1457,7 @@ func (a *NetworkconfigApiService) UpdateNetworkconfigPolicyExecute(r ApiUpdateNe localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.networkconfigPolicy diff --git a/api_niaapi.go b/api_niaapi.go index 0c81231613..e8ee9008f5 100644 --- a/api_niaapi.go +++ b/api_niaapi.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -297,52 +297,52 @@ func (a *NiaapiApiService) GetNiaapiApicCcoPostListExecute(r ApiGetNiaapiApicCco localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -724,52 +724,52 @@ func (a *NiaapiApiService) GetNiaapiApicFieldNoticeListExecute(r ApiGetNiaapiApi localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -1151,52 +1151,52 @@ func (a *NiaapiApiService) GetNiaapiApicHweolListExecute(r ApiGetNiaapiApicHweol localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -1578,52 +1578,52 @@ func (a *NiaapiApiService) GetNiaapiApicLatestMaintainedReleaseListExecute(r Api localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -2005,52 +2005,52 @@ func (a *NiaapiApiService) GetNiaapiApicReleaseRecommendListExecute(r ApiGetNiaa localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -2432,52 +2432,52 @@ func (a *NiaapiApiService) GetNiaapiApicSweolListExecute(r ApiGetNiaapiApicSweol localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -2859,52 +2859,52 @@ func (a *NiaapiApiService) GetNiaapiDcnmCcoPostListExecute(r ApiGetNiaapiDcnmCco localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -3286,52 +3286,52 @@ func (a *NiaapiApiService) GetNiaapiDcnmFieldNoticeListExecute(r ApiGetNiaapiDcn localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -3713,52 +3713,52 @@ func (a *NiaapiApiService) GetNiaapiDcnmHweolListExecute(r ApiGetNiaapiDcnmHweol localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -4140,52 +4140,52 @@ func (a *NiaapiApiService) GetNiaapiDcnmLatestMaintainedReleaseListExecute(r Api localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -4567,52 +4567,52 @@ func (a *NiaapiApiService) GetNiaapiDcnmReleaseRecommendListExecute(r ApiGetNiaa localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -4994,52 +4994,52 @@ func (a *NiaapiApiService) GetNiaapiDcnmSweolListExecute(r ApiGetNiaapiDcnmSweol localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -5421,52 +5421,52 @@ func (a *NiaapiApiService) GetNiaapiFileDownloaderListExecute(r ApiGetNiaapiFile localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -5848,52 +5848,52 @@ func (a *NiaapiApiService) GetNiaapiNiaMetadataListExecute(r ApiGetNiaapiNiaMeta localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -6275,52 +6275,52 @@ func (a *NiaapiApiService) GetNiaapiNibFileDownloaderListExecute(r ApiGetNiaapiN localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -6702,52 +6702,52 @@ func (a *NiaapiApiService) GetNiaapiNibMetadataListExecute(r ApiGetNiaapiNibMeta localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -7129,52 +7129,52 @@ func (a *NiaapiApiService) GetNiaapiPuvScriptDownloaderListExecute(r ApiGetNiaap localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -7556,52 +7556,52 @@ func (a *NiaapiApiService) GetNiaapiSnValidatorMetadataListExecute(r ApiGetNiaap localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -7983,52 +7983,52 @@ func (a *NiaapiApiService) GetNiaapiUpgradeAssistFileListExecute(r ApiGetNiaapiU localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -8410,52 +8410,52 @@ func (a *NiaapiApiService) GetNiaapiVersionRegexListExecute(r ApiGetNiaapiVersio localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} diff --git a/api_niatelemetry.go b/api_niatelemetry.go index 535e1fdf1b..17ad4eb08b 100644 --- a/api_niatelemetry.go +++ b/api_niatelemetry.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -108,10 +108,10 @@ func (a *NiatelemetryApiService) CreateNiatelemetryNexusCloudAccountExecute(r Ap localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.niatelemetryNexusCloudAccount @@ -289,10 +289,10 @@ func (a *NiatelemetryApiService) CreateNiatelemetryNexusCloudSiteExecute(r ApiCr localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.niatelemetryNexusCloudSite @@ -801,52 +801,52 @@ func (a *NiatelemetryApiService) GetNiatelemetryAaaLdapProviderDetailsListExecut localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -1228,52 +1228,52 @@ func (a *NiatelemetryApiService) GetNiatelemetryAaaRadiusProviderDetailsListExec localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -1655,52 +1655,52 @@ func (a *NiatelemetryApiService) GetNiatelemetryAaaTacacsProviderDetailsListExec localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -2082,52 +2082,52 @@ func (a *NiatelemetryApiService) GetNiatelemetryApicAppPluginDetailsListExecute( localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -2509,52 +2509,52 @@ func (a *NiatelemetryApiService) GetNiatelemetryApicCoreFileDetailsListExecute(r localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -2936,52 +2936,52 @@ func (a *NiatelemetryApiService) GetNiatelemetryApicDbgexpRsExportDestListExecut localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -3363,52 +3363,52 @@ func (a *NiatelemetryApiService) GetNiatelemetryApicDbgexpRsTsSchedulerListExecu localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -3790,52 +3790,52 @@ func (a *NiatelemetryApiService) GetNiatelemetryApicFanDetailsListExecute(r ApiG localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -4217,52 +4217,52 @@ func (a *NiatelemetryApiService) GetNiatelemetryApicFexDetailsListExecute(r ApiG localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -4644,52 +4644,52 @@ func (a *NiatelemetryApiService) GetNiatelemetryApicFlashDetailsListExecute(r Ap localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -5071,52 +5071,52 @@ func (a *NiatelemetryApiService) GetNiatelemetryApicNtpAuthListExecute(r ApiGetN localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -5498,52 +5498,52 @@ func (a *NiatelemetryApiService) GetNiatelemetryApicPerformanceDataListExecute(r localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -5925,52 +5925,52 @@ func (a *NiatelemetryApiService) GetNiatelemetryApicPodDataListExecute(r ApiGetN localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -6352,52 +6352,52 @@ func (a *NiatelemetryApiService) GetNiatelemetryApicPsuDetailsListExecute(r ApiG localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -6779,52 +6779,52 @@ func (a *NiatelemetryApiService) GetNiatelemetryApicRealmDetailsListExecute(r Ap localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -7206,52 +7206,52 @@ func (a *NiatelemetryApiService) GetNiatelemetryApicSnmpClientGrpDetailsListExec localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -7633,52 +7633,52 @@ func (a *NiatelemetryApiService) GetNiatelemetryApicSnmpCommunityAccessDetailsLi localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -8060,52 +8060,52 @@ func (a *NiatelemetryApiService) GetNiatelemetryApicSnmpCommunityDetailsListExec localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -8487,52 +8487,52 @@ func (a *NiatelemetryApiService) GetNiatelemetryApicSnmpTrapDetailsListExecute(r localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -8914,52 +8914,52 @@ func (a *NiatelemetryApiService) GetNiatelemetryApicSnmpTrapFwdServerDetailsList localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -9341,52 +9341,52 @@ func (a *NiatelemetryApiService) GetNiatelemetryApicSnmpVersionThreeDetailsListE localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -9768,52 +9768,52 @@ func (a *NiatelemetryApiService) GetNiatelemetryApicSysLogGrpListExecute(r ApiGe localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -10195,52 +10195,52 @@ func (a *NiatelemetryApiService) GetNiatelemetryApicSysLogSrcListExecute(r ApiGe localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -10622,52 +10622,52 @@ func (a *NiatelemetryApiService) GetNiatelemetryApicTransceiverDetailsListExecut localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -11049,52 +11049,52 @@ func (a *NiatelemetryApiService) GetNiatelemetryApicUiPageCountsListExecute(r Ap localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -11476,52 +11476,52 @@ func (a *NiatelemetryApiService) GetNiatelemetryApicVisionListExecute(r ApiGetNi localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -11903,52 +11903,52 @@ func (a *NiatelemetryApiService) GetNiatelemetryAppDetailsListExecute(r ApiGetNi localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -12330,52 +12330,52 @@ func (a *NiatelemetryApiService) GetNiatelemetryCloudDetailsListExecute(r ApiGet localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -12757,52 +12757,52 @@ func (a *NiatelemetryApiService) GetNiatelemetryCommonPoliciesListExecute(r ApiG localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -13184,52 +13184,52 @@ func (a *NiatelemetryApiService) GetNiatelemetryDcnmFanDetailsListExecute(r ApiG localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -13611,52 +13611,52 @@ func (a *NiatelemetryApiService) GetNiatelemetryDcnmFexDetailsListExecute(r ApiG localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -14038,52 +14038,52 @@ func (a *NiatelemetryApiService) GetNiatelemetryDcnmModuleDetailsListExecute(r A localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -14465,52 +14465,52 @@ func (a *NiatelemetryApiService) GetNiatelemetryDcnmPsuDetailsListExecute(r ApiG localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -14892,52 +14892,52 @@ func (a *NiatelemetryApiService) GetNiatelemetryDcnmTransceiverDetailsListExecut localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -15319,52 +15319,52 @@ func (a *NiatelemetryApiService) GetNiatelemetryEpgListExecute(r ApiGetNiateleme localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -15746,52 +15746,52 @@ func (a *NiatelemetryApiService) GetNiatelemetryFabricModuleDetailsListExecute(r localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -16173,52 +16173,52 @@ func (a *NiatelemetryApiService) GetNiatelemetryFabricNodeControlDetailsListExec localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -16600,52 +16600,52 @@ func (a *NiatelemetryApiService) GetNiatelemetryFabricPodProfileListExecute(r Ap localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -17027,52 +17027,52 @@ func (a *NiatelemetryApiService) GetNiatelemetryFabricPodSsListExecute(r ApiGetN localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -17454,52 +17454,52 @@ func (a *NiatelemetryApiService) GetNiatelemetryFaultListExecute(r ApiGetNiatele localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -17881,52 +17881,52 @@ func (a *NiatelemetryApiService) GetNiatelemetryHcloudDetailsListExecute(r ApiGe localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -18308,52 +18308,52 @@ func (a *NiatelemetryApiService) GetNiatelemetryHealthInsightsDataListExecute(r localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -18735,52 +18735,52 @@ func (a *NiatelemetryApiService) GetNiatelemetryHttpsAclContractDetailsListExecu localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -19162,52 +19162,52 @@ func (a *NiatelemetryApiService) GetNiatelemetryHttpsAclContractFilterMapListExe localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -19589,52 +19589,52 @@ func (a *NiatelemetryApiService) GetNiatelemetryHttpsAclEpgContractMapListExecut localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -20016,52 +20016,52 @@ func (a *NiatelemetryApiService) GetNiatelemetryHttpsAclEpgDetailsListExecute(r localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -20443,52 +20443,52 @@ func (a *NiatelemetryApiService) GetNiatelemetryHttpsAclFilterDetailsListExecute localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -20870,52 +20870,52 @@ func (a *NiatelemetryApiService) GetNiatelemetryInsightGroupDetailsListExecute(r localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -21297,52 +21297,52 @@ func (a *NiatelemetryApiService) GetNiatelemetryLcListExecute(r ApiGetNiatelemet localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -21724,52 +21724,52 @@ func (a *NiatelemetryApiService) GetNiatelemetryLeafPolGrpDetailsListExecute(r A localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -22151,52 +22151,52 @@ func (a *NiatelemetryApiService) GetNiatelemetryMdsNeighborsListExecute(r ApiGet localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -22578,52 +22578,52 @@ func (a *NiatelemetryApiService) GetNiatelemetryMsoContractDetailsListExecute(r localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -23005,52 +23005,52 @@ func (a *NiatelemetryApiService) GetNiatelemetryMsoEpgDetailsListExecute(r ApiGe localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -23432,52 +23432,52 @@ func (a *NiatelemetryApiService) GetNiatelemetryMsoSchemaDetailsListExecute(r Ap localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -23859,52 +23859,52 @@ func (a *NiatelemetryApiService) GetNiatelemetryMsoSiteDetailsListExecute(r ApiG localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -24286,52 +24286,52 @@ func (a *NiatelemetryApiService) GetNiatelemetryMsoTenantDetailsListExecute(r Ap localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -24713,52 +24713,52 @@ func (a *NiatelemetryApiService) GetNiatelemetryNexusCloudAccountListExecute(r A localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -25140,52 +25140,52 @@ func (a *NiatelemetryApiService) GetNiatelemetryNexusCloudSiteListExecute(r ApiG localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -25567,52 +25567,52 @@ func (a *NiatelemetryApiService) GetNiatelemetryNexusDashboardControllerDetailsL localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -25994,52 +25994,52 @@ func (a *NiatelemetryApiService) GetNiatelemetryNexusDashboardDetailsListExecute localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -26421,52 +26421,52 @@ func (a *NiatelemetryApiService) GetNiatelemetryNexusDashboardMemoryDetailsListE localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -26848,52 +26848,52 @@ func (a *NiatelemetryApiService) GetNiatelemetryNexusDashboardsListExecute(r Api localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -27275,52 +27275,52 @@ func (a *NiatelemetryApiService) GetNiatelemetryNiaFeatureUsageListExecute(r Api localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -27855,52 +27855,52 @@ func (a *NiatelemetryApiService) GetNiatelemetryNiaInventoryDcnmListExecute(r Ap localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -28282,52 +28282,52 @@ func (a *NiatelemetryApiService) GetNiatelemetryNiaInventoryFabricListExecute(r localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -28556,52 +28556,52 @@ func (a *NiatelemetryApiService) GetNiatelemetryNiaInventoryListExecute(r ApiGet localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -28983,52 +28983,52 @@ func (a *NiatelemetryApiService) GetNiatelemetryNiaLicenseStateListExecute(r Api localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -29410,52 +29410,52 @@ func (a *NiatelemetryApiService) GetNiatelemetryNiccListExecute(r ApiGetNiatelem localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -29837,52 +29837,52 @@ func (a *NiatelemetryApiService) GetNiatelemetryPasswordStrengthCheckListExecute localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -30264,52 +30264,52 @@ func (a *NiatelemetryApiService) GetNiatelemetryPodCommPoliciesListExecute(r Api localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -30691,52 +30691,52 @@ func (a *NiatelemetryApiService) GetNiatelemetryPodSnmpPoliciesListExecute(r Api localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -31118,52 +31118,52 @@ func (a *NiatelemetryApiService) GetNiatelemetryPodTimeServerPoliciesListExecute localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -31545,52 +31545,52 @@ func (a *NiatelemetryApiService) GetNiatelemetrySiteInventoryListExecute(r ApiGe localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -31972,52 +31972,52 @@ func (a *NiatelemetryApiService) GetNiatelemetrySnmpSrcListExecute(r ApiGetNiate localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -32399,52 +32399,52 @@ func (a *NiatelemetryApiService) GetNiatelemetrySpinePolGrpDetailsListExecute(r localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -32826,52 +32826,52 @@ func (a *NiatelemetryApiService) GetNiatelemetrySshVersionTwoListExecute(r ApiGe localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -33253,52 +33253,52 @@ func (a *NiatelemetryApiService) GetNiatelemetrySupervisorModuleDetailsListExecu localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -33680,52 +33680,52 @@ func (a *NiatelemetryApiService) GetNiatelemetrySyslogRemoteDestListExecute(r Ap localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -34260,52 +34260,52 @@ func (a *NiatelemetryApiService) GetNiatelemetrySyslogSysMsgFacFilterListExecute localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -34534,52 +34534,52 @@ func (a *NiatelemetryApiService) GetNiatelemetrySyslogSysMsgListExecute(r ApiGet localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -34961,52 +34961,52 @@ func (a *NiatelemetryApiService) GetNiatelemetrySystemControllerDetailsListExecu localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -35388,52 +35388,52 @@ func (a *NiatelemetryApiService) GetNiatelemetryTenantListExecute(r ApiGetNiatel localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -35623,7 +35623,7 @@ func (a *NiatelemetryApiService) PatchNiatelemetryNexusCloudAccountExecute(r Api localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.niatelemetryNexusCloudAccount @@ -35798,7 +35798,7 @@ func (a *NiatelemetryApiService) PatchNiatelemetryNexusCloudSiteExecute(r ApiPat localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.niatelemetryNexusCloudSite @@ -35973,7 +35973,7 @@ func (a *NiatelemetryApiService) PatchNiatelemetryNiaInventoryExecute(r ApiPatch localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.niatelemetryNiaInventory @@ -36148,7 +36148,7 @@ func (a *NiatelemetryApiService) UpdateNiatelemetryNexusCloudAccountExecute(r Ap localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.niatelemetryNexusCloudAccount @@ -36323,7 +36323,7 @@ func (a *NiatelemetryApiService) UpdateNiatelemetryNexusCloudSiteExecute(r ApiUp localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.niatelemetryNexusCloudSite @@ -36498,7 +36498,7 @@ func (a *NiatelemetryApiService) UpdateNiatelemetryNiaInventoryExecute(r ApiUpda localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.niatelemetryNiaInventory diff --git a/api_notification.go b/api_notification.go index f139989d38..ae1be2eeb7 100644 --- a/api_notification.go +++ b/api_notification.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -108,10 +108,10 @@ func (a *NotificationApiService) CreateNotificationAccountSubscriptionExecute(r localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.notificationAccountSubscription @@ -620,52 +620,52 @@ func (a *NotificationApiService) GetNotificationAccountSubscriptionListExecute(r localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -855,7 +855,7 @@ func (a *NotificationApiService) PatchNotificationAccountSubscriptionExecute(r A localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.notificationAccountSubscription @@ -1030,7 +1030,7 @@ func (a *NotificationApiService) UpdateNotificationAccountSubscriptionExecute(r localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.notificationAccountSubscription diff --git a/api_ntp.go b/api_ntp.go index 941f6ce1b0..4e797399e3 100644 --- a/api_ntp.go +++ b/api_ntp.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -108,10 +108,10 @@ func (a *NtpApiService) CreateNtpPolicyExecute(r ApiCreateNtpPolicyRequest) (*Nt localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.ntpPolicy @@ -620,52 +620,52 @@ func (a *NtpApiService) GetNtpNtpServerListExecute(r ApiGetNtpNtpServerListReque localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -1047,52 +1047,52 @@ func (a *NtpApiService) GetNtpPolicyListExecute(r ApiGetNtpPolicyListRequest) (* localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -1282,7 +1282,7 @@ func (a *NtpApiService) PatchNtpPolicyExecute(r ApiPatchNtpPolicyRequest) (*NtpP localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.ntpPolicy @@ -1457,7 +1457,7 @@ func (a *NtpApiService) UpdateNtpPolicyExecute(r ApiUpdateNtpPolicyRequest) (*Nt localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.ntpPolicy diff --git a/api_oauth.go b/api_oauth.go index d47fe3846f..44609053c4 100644 --- a/api_oauth.go +++ b/api_oauth.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -108,10 +108,10 @@ func (a *OauthApiService) CreateOauthAuthorizationExecute(r ApiCreateOauthAuthor localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.oauthAuthorization @@ -620,52 +620,52 @@ func (a *OauthApiService) GetOauthAccessTokenListExecute(r ApiGetOauthAccessToke localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -1047,52 +1047,52 @@ func (a *OauthApiService) GetOauthAuthorizationListExecute(r ApiGetOauthAuthoriz localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -1282,7 +1282,7 @@ func (a *OauthApiService) PatchOauthAuthorizationExecute(r ApiPatchOauthAuthoriz localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.oauthAuthorization @@ -1457,7 +1457,7 @@ func (a *OauthApiService) UpdateOauthAuthorizationExecute(r ApiUpdateOauthAuthor localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.oauthAuthorization diff --git a/api_openapi.go b/api_openapi.go index 09b2d438b0..cd5b16a030 100644 --- a/api_openapi.go +++ b/api_openapi.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -108,10 +108,10 @@ func (a *OpenapiApiService) CreateOpenapiOpenApiSpecificationExecute(r ApiCreate localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.openapiOpenApiSpecification @@ -289,10 +289,10 @@ func (a *OpenapiApiService) CreateOpenapiProcessFileExecute(r ApiCreateOpenapiPr localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.openapiProcessFile @@ -470,10 +470,10 @@ func (a *OpenapiApiService) CreateOpenapiTaskGenerationRequestExecute(r ApiCreat localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.openapiTaskGenerationRequest @@ -1550,52 +1550,52 @@ func (a *OpenapiApiService) GetOpenapiApiMethodMetaListExecute(r ApiGetOpenapiAp localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -1977,52 +1977,52 @@ func (a *OpenapiApiService) GetOpenapiOpenApiSpecificationListExecute(r ApiGetOp localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -2404,52 +2404,52 @@ func (a *OpenapiApiService) GetOpenapiProcessFileListExecute(r ApiGetOpenapiProc localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -2831,52 +2831,52 @@ func (a *OpenapiApiService) GetOpenapiTaskGenerationRequestListExecute(r ApiGetO localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -3258,52 +3258,52 @@ func (a *OpenapiApiService) GetOpenapiTaskGenerationResultListExecute(r ApiGetOp localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -3493,7 +3493,7 @@ func (a *OpenapiApiService) PatchOpenapiOpenApiSpecificationExecute(r ApiPatchOp localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.openapiOpenApiSpecification @@ -3668,7 +3668,7 @@ func (a *OpenapiApiService) PatchOpenapiTaskGenerationRequestExecute(r ApiPatchO localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.openapiTaskGenerationRequest @@ -3843,7 +3843,7 @@ func (a *OpenapiApiService) UpdateOpenapiOpenApiSpecificationExecute(r ApiUpdate localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.openapiOpenApiSpecification @@ -4018,7 +4018,7 @@ func (a *OpenapiApiService) UpdateOpenapiTaskGenerationRequestExecute(r ApiUpdat localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.openapiTaskGenerationRequest diff --git a/api_oprs.go b/api_oprs.go index 2bd88e7036..4f0776c5a5 100644 --- a/api_oprs.go +++ b/api_oprs.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -108,10 +108,10 @@ func (a *OprsApiService) CreateOprsDeploymentExecute(r ApiCreateOprsDeploymentRe localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.oprsDeployment @@ -289,10 +289,10 @@ func (a *OprsApiService) CreateOprsSyncTargetListMessageExecute(r ApiCreateOprsS localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.oprsSyncTargetListMessage @@ -943,52 +943,52 @@ func (a *OprsApiService) GetOprsDeploymentListExecute(r ApiGetOprsDeploymentList localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -1370,52 +1370,52 @@ func (a *OprsApiService) GetOprsSyncTargetListMessageListExecute(r ApiGetOprsSyn localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -1605,7 +1605,7 @@ func (a *OprsApiService) PatchOprsDeploymentExecute(r ApiPatchOprsDeploymentRequ localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.oprsDeployment @@ -1780,7 +1780,7 @@ func (a *OprsApiService) PatchOprsSyncTargetListMessageExecute(r ApiPatchOprsSyn localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.oprsSyncTargetListMessage @@ -1955,7 +1955,7 @@ func (a *OprsApiService) UpdateOprsDeploymentExecute(r ApiUpdateOprsDeploymentRe localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.oprsDeployment @@ -2130,7 +2130,7 @@ func (a *OprsApiService) UpdateOprsSyncTargetListMessageExecute(r ApiUpdateOprsS localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.oprsSyncTargetListMessage diff --git a/api_organization.go b/api_organization.go index 92a9505c9b..afe31dce8b 100644 --- a/api_organization.go +++ b/api_organization.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -108,10 +108,10 @@ func (a *OrganizationApiService) CreateOrganizationOrganizationExecute(r ApiCrea localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.organizationOrganization @@ -620,52 +620,52 @@ func (a *OrganizationApiService) GetOrganizationOrganizationListExecute(r ApiGet localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -855,7 +855,7 @@ func (a *OrganizationApiService) PatchOrganizationOrganizationExecute(r ApiPatch localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.organizationOrganization @@ -1030,7 +1030,7 @@ func (a *OrganizationApiService) UpdateOrganizationOrganizationExecute(r ApiUpda localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.organizationOrganization diff --git a/api_os.go b/api_os.go index 76d6ece9b5..d26b029de7 100644 --- a/api_os.go +++ b/api_os.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -108,10 +108,10 @@ func (a *OsApiService) CreateOsBulkInstallInfoExecute(r ApiCreateOsBulkInstallIn localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.osBulkInstallInfo @@ -289,10 +289,10 @@ func (a *OsApiService) CreateOsConfigurationFileExecute(r ApiCreateOsConfigurati localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.osConfigurationFile @@ -470,10 +470,10 @@ func (a *OsApiService) CreateOsInstallExecute(r ApiCreateOsInstallRequest) (*OsI localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.osInstall @@ -651,10 +651,10 @@ func (a *OsApiService) CreateOsOsSupportExecute(r ApiCreateOsOsSupportRequest) ( localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.osOsSupport @@ -832,10 +832,10 @@ func (a *OsApiService) CreateOsTemplateFileExecute(r ApiCreateOsTemplateFileRequ localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.osTemplateFile @@ -1013,10 +1013,10 @@ func (a *OsApiService) CreateOsValidInstallTargetExecute(r ApiCreateOsValidInsta localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.osValidInstallTarget @@ -1525,52 +1525,52 @@ func (a *OsApiService) GetOsBulkInstallInfoListExecute(r ApiGetOsBulkInstallInfo localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -1952,52 +1952,52 @@ func (a *OsApiService) GetOsCatalogListExecute(r ApiGetOsCatalogListRequest) (*O localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -2379,52 +2379,52 @@ func (a *OsApiService) GetOsConfigurationFileListExecute(r ApiGetOsConfiguration localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -2806,52 +2806,52 @@ func (a *OsApiService) GetOsDistributionListExecute(r ApiGetOsDistributionListRe localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -3233,52 +3233,52 @@ func (a *OsApiService) GetOsInstallListExecute(r ApiGetOsInstallListRequest) (*O localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -3660,52 +3660,52 @@ func (a *OsApiService) GetOsSupportedVersionListExecute(r ApiGetOsSupportedVersi localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -3895,7 +3895,7 @@ func (a *OsApiService) PatchOsConfigurationFileExecute(r ApiPatchOsConfiguration localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.osConfigurationFile @@ -4070,7 +4070,7 @@ func (a *OsApiService) UpdateOsConfigurationFileExecute(r ApiUpdateOsConfigurati localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.osConfigurationFile diff --git a/api_partnerintegration.go b/api_partnerintegration.go index 4cdb2596cd..502e41299e 100644 --- a/api_partnerintegration.go +++ b/api_partnerintegration.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -108,10 +108,10 @@ func (a *PartnerintegrationApiService) CreatePartnerintegrationDeviceConnectorEx localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.partnerintegrationDeviceConnector @@ -289,10 +289,10 @@ func (a *PartnerintegrationApiService) CreatePartnerintegrationEtlExecute(r ApiC localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.partnerintegrationEtl @@ -470,10 +470,10 @@ func (a *PartnerintegrationApiService) CreatePartnerintegrationFileExecute(r Api localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.partnerintegrationFile @@ -651,10 +651,10 @@ func (a *PartnerintegrationApiService) CreatePartnerintegrationInventoryExecute( localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.partnerintegrationInventory @@ -832,10 +832,10 @@ func (a *PartnerintegrationApiService) CreatePartnerintegrationMetricsExecute(r localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.partnerintegrationMetrics @@ -1013,10 +1013,10 @@ func (a *PartnerintegrationApiService) CreatePartnerintegrationModelExecute(r Ap localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.partnerintegrationModel @@ -2235,52 +2235,52 @@ func (a *PartnerintegrationApiService) GetPartnerintegrationDcLogsListExecute(r localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -2662,52 +2662,52 @@ func (a *PartnerintegrationApiService) GetPartnerintegrationDeviceConnectorListE localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -3089,52 +3089,52 @@ func (a *PartnerintegrationApiService) GetPartnerintegrationDocIssuesListExecute localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -3516,52 +3516,52 @@ func (a *PartnerintegrationApiService) GetPartnerintegrationEtlListExecute(r Api localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -3943,52 +3943,52 @@ func (a *PartnerintegrationApiService) GetPartnerintegrationFileListExecute(r Ap localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -4370,52 +4370,52 @@ func (a *PartnerintegrationApiService) GetPartnerintegrationInventoryListExecute localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -4797,52 +4797,52 @@ func (a *PartnerintegrationApiService) GetPartnerintegrationLogsListExecute(r Ap localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -5224,52 +5224,52 @@ func (a *PartnerintegrationApiService) GetPartnerintegrationMetricsListExecute(r localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -5651,52 +5651,52 @@ func (a *PartnerintegrationApiService) GetPartnerintegrationModelListExecute(r A localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -5886,7 +5886,7 @@ func (a *PartnerintegrationApiService) PatchPartnerintegrationDeviceConnectorExe localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.partnerintegrationDeviceConnector @@ -6061,7 +6061,7 @@ func (a *PartnerintegrationApiService) PatchPartnerintegrationEtlExecute(r ApiPa localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.partnerintegrationEtl @@ -6236,7 +6236,7 @@ func (a *PartnerintegrationApiService) PatchPartnerintegrationFileExecute(r ApiP localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.partnerintegrationFile @@ -6411,7 +6411,7 @@ func (a *PartnerintegrationApiService) PatchPartnerintegrationInventoryExecute(r localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.partnerintegrationInventory @@ -6586,7 +6586,7 @@ func (a *PartnerintegrationApiService) PatchPartnerintegrationMetricsExecute(r A localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.partnerintegrationMetrics @@ -6761,7 +6761,7 @@ func (a *PartnerintegrationApiService) PatchPartnerintegrationModelExecute(r Api localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.partnerintegrationModel @@ -6936,7 +6936,7 @@ func (a *PartnerintegrationApiService) UpdatePartnerintegrationDeviceConnectorEx localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.partnerintegrationDeviceConnector @@ -7111,7 +7111,7 @@ func (a *PartnerintegrationApiService) UpdatePartnerintegrationEtlExecute(r ApiU localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.partnerintegrationEtl @@ -7286,7 +7286,7 @@ func (a *PartnerintegrationApiService) UpdatePartnerintegrationFileExecute(r Api localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.partnerintegrationFile @@ -7461,7 +7461,7 @@ func (a *PartnerintegrationApiService) UpdatePartnerintegrationInventoryExecute( localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.partnerintegrationInventory @@ -7636,7 +7636,7 @@ func (a *PartnerintegrationApiService) UpdatePartnerintegrationMetricsExecute(r localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.partnerintegrationMetrics @@ -7811,7 +7811,7 @@ func (a *PartnerintegrationApiService) UpdatePartnerintegrationModelExecute(r Ap localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.partnerintegrationModel diff --git a/api_pci.go b/api_pci.go index 4532da43eb..01883abaf9 100644 --- a/api_pci.go +++ b/api_pci.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -297,52 +297,52 @@ func (a *PciApiService) GetPciCoprocessorCardListExecute(r ApiGetPciCoprocessorC localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -724,52 +724,52 @@ func (a *PciApiService) GetPciDeviceListExecute(r ApiGetPciDeviceListRequest) (* localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -1151,52 +1151,52 @@ func (a *PciApiService) GetPciLinkListExecute(r ApiGetPciLinkListRequest) (*PciL localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -1578,52 +1578,52 @@ func (a *PciApiService) GetPciNodeListExecute(r ApiGetPciNodeListRequest) (*PciN localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -2005,52 +2005,52 @@ func (a *PciApiService) GetPciSwitchListExecute(r ApiGetPciSwitchListRequest) (* localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -2240,7 +2240,7 @@ func (a *PciApiService) PatchPciDeviceExecute(r ApiPatchPciDeviceRequest) (*PciD localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.pciDevice @@ -2415,7 +2415,7 @@ func (a *PciApiService) PatchPciLinkExecute(r ApiPatchPciLinkRequest) (*PciLink, localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.pciLink @@ -2590,7 +2590,7 @@ func (a *PciApiService) PatchPciNodeExecute(r ApiPatchPciNodeRequest) (*PciNode, localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.pciNode @@ -2765,7 +2765,7 @@ func (a *PciApiService) PatchPciSwitchExecute(r ApiPatchPciSwitchRequest) (*PciS localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.pciSwitch @@ -2940,7 +2940,7 @@ func (a *PciApiService) UpdatePciDeviceExecute(r ApiUpdatePciDeviceRequest) (*Pc localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.pciDevice @@ -3115,7 +3115,7 @@ func (a *PciApiService) UpdatePciLinkExecute(r ApiUpdatePciLinkRequest) (*PciLin localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.pciLink @@ -3290,7 +3290,7 @@ func (a *PciApiService) UpdatePciNodeExecute(r ApiUpdatePciNodeRequest) (*PciNod localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.pciNode @@ -3465,7 +3465,7 @@ func (a *PciApiService) UpdatePciSwitchExecute(r ApiUpdatePciSwitchRequest) (*Pc localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.pciSwitch diff --git a/api_port.go b/api_port.go index d5b099f560..b10487d8c6 100644 --- a/api_port.go +++ b/api_port.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -297,52 +297,52 @@ func (a *PortApiService) GetPortGroupListExecute(r ApiGetPortGroupListRequest) ( localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -724,52 +724,52 @@ func (a *PortApiService) GetPortMacBindingListExecute(r ApiGetPortMacBindingList localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -1151,52 +1151,52 @@ func (a *PortApiService) GetPortSubGroupListExecute(r ApiGetPortSubGroupListRequ localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -1386,7 +1386,7 @@ func (a *PortApiService) PatchPortGroupExecute(r ApiPatchPortGroupRequest) (*Por localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.portGroup @@ -1561,7 +1561,7 @@ func (a *PortApiService) PatchPortMacBindingExecute(r ApiPatchPortMacBindingRequ localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.portMacBinding @@ -1736,7 +1736,7 @@ func (a *PortApiService) PatchPortSubGroupExecute(r ApiPatchPortSubGroupRequest) localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.portSubGroup @@ -1911,7 +1911,7 @@ func (a *PortApiService) UpdatePortGroupExecute(r ApiUpdatePortGroupRequest) (*P localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.portGroup @@ -2086,7 +2086,7 @@ func (a *PortApiService) UpdatePortMacBindingExecute(r ApiUpdatePortMacBindingRe localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.portMacBinding @@ -2261,7 +2261,7 @@ func (a *PortApiService) UpdatePortSubGroupExecute(r ApiUpdatePortSubGroupReques localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.portSubGroup diff --git a/api_power.go b/api_power.go index cc2c39ec57..ab6002c97a 100644 --- a/api_power.go +++ b/api_power.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -108,10 +108,10 @@ func (a *PowerApiService) CreatePowerPolicyExecute(r ApiCreatePowerPolicyRequest localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.powerPolicy @@ -620,52 +620,52 @@ func (a *PowerApiService) GetPowerControlStateListExecute(r ApiGetPowerControlSt localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -1200,52 +1200,52 @@ func (a *PowerApiService) GetPowerPolicyInventoryListExecute(r ApiGetPowerPolicy localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -1474,52 +1474,52 @@ func (a *PowerApiService) GetPowerPolicyListExecute(r ApiGetPowerPolicyListReque localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -1709,7 +1709,7 @@ func (a *PowerApiService) PatchPowerPolicyExecute(r ApiPatchPowerPolicyRequest) localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.powerPolicy @@ -1884,7 +1884,7 @@ func (a *PowerApiService) UpdatePowerPolicyExecute(r ApiUpdatePowerPolicyRequest localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.powerPolicy diff --git a/api_processor.go b/api_processor.go index e47881876f..d4a3ece4dd 100644 --- a/api_processor.go +++ b/api_processor.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -297,52 +297,52 @@ func (a *ProcessorApiService) GetProcessorUnitListExecute(r ApiGetProcessorUnitL localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -532,7 +532,7 @@ func (a *ProcessorApiService) PatchProcessorUnitExecute(r ApiPatchProcessorUnitR localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.processorUnit @@ -707,7 +707,7 @@ func (a *ProcessorApiService) UpdateProcessorUnitExecute(r ApiUpdateProcessorUni localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.processorUnit diff --git a/api_rack.go b/api_rack.go index b9e1507ccd..65c36627de 100644 --- a/api_rack.go +++ b/api_rack.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -297,52 +297,52 @@ func (a *RackApiService) GetRackUnitPersonalityListExecute(r ApiGetRackUnitPerso localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -532,7 +532,7 @@ func (a *RackApiService) PatchRackUnitPersonalityExecute(r ApiPatchRackUnitPerso localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.rackUnitPersonality @@ -707,7 +707,7 @@ func (a *RackApiService) UpdateRackUnitPersonalityExecute(r ApiUpdateRackUnitPer localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.rackUnitPersonality diff --git a/api_recommendation.go b/api_recommendation.go index a24cd50c9b..e9b410737b 100644 --- a/api_recommendation.go +++ b/api_recommendation.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -108,10 +108,10 @@ func (a *RecommendationApiService) CreateRecommendationHardwareExpansionRequestE localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.recommendationHardwareExpansionRequest @@ -289,10 +289,10 @@ func (a *RecommendationApiService) CreateRecommendationHardwareExpansionRequestI localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.recommendationHardwareExpansionRequestItem @@ -473,10 +473,10 @@ func (a *RecommendationApiService) CreateRecommendationPurchaseOrderEstimateExec localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.recommendationPurchaseOrderEstimate @@ -843,52 +843,52 @@ func (a *RecommendationApiService) GetRecommendationCapacityRunwayListExecute(r localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -1270,52 +1270,52 @@ func (a *RecommendationApiService) GetRecommendationClusterExpansionListExecute( localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -1850,52 +1850,52 @@ func (a *RecommendationApiService) GetRecommendationHardwareExpansionRequestItem localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -2124,52 +2124,52 @@ func (a *RecommendationApiService) GetRecommendationHardwareExpansionRequestList localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -2551,52 +2551,52 @@ func (a *RecommendationApiService) GetRecommendationPhysicalItemListExecute(r Ap localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -2984,52 +2984,52 @@ func (a *RecommendationApiService) GetRecommendationPurchaseOrderEstimateListExe localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -3411,52 +3411,52 @@ func (a *RecommendationApiService) GetRecommendationPurchaseOrderListListExecute localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -3838,52 +3838,52 @@ func (a *RecommendationApiService) GetRecommendationSoftwareItemListExecute(r Ap localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -4073,7 +4073,7 @@ func (a *RecommendationApiService) PatchRecommendationHardwareExpansionRequestEx localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.recommendationHardwareExpansionRequest @@ -4248,7 +4248,7 @@ func (a *RecommendationApiService) PatchRecommendationHardwareExpansionRequestIt localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.recommendationHardwareExpansionRequestItem @@ -4426,7 +4426,7 @@ func (a *RecommendationApiService) PatchRecommendationPurchaseOrderEstimateExecu localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.recommendationPurchaseOrderEstimate @@ -4601,7 +4601,7 @@ func (a *RecommendationApiService) UpdateRecommendationHardwareExpansionRequestE localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.recommendationHardwareExpansionRequest @@ -4776,7 +4776,7 @@ func (a *RecommendationApiService) UpdateRecommendationHardwareExpansionRequestI localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.recommendationHardwareExpansionRequestItem @@ -4954,7 +4954,7 @@ func (a *RecommendationApiService) UpdateRecommendationPurchaseOrderEstimateExec localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.recommendationPurchaseOrderEstimate diff --git a/api_recovery.go b/api_recovery.go index eba1ad5f09..78ede6c655 100644 --- a/api_recovery.go +++ b/api_recovery.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -108,10 +108,10 @@ func (a *RecoveryApiService) CreateRecoveryBackupConfigPolicyExecute(r ApiCreate localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.recoveryBackupConfigPolicy @@ -289,10 +289,10 @@ func (a *RecoveryApiService) CreateRecoveryBackupProfileExecute(r ApiCreateRecov localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.recoveryBackupProfile @@ -470,10 +470,10 @@ func (a *RecoveryApiService) CreateRecoveryOnDemandBackupExecute(r ApiCreateReco localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.recoveryOnDemandBackup @@ -651,10 +651,10 @@ func (a *RecoveryApiService) CreateRecoveryRestoreExecute(r ApiCreateRecoveryRes localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.recoveryRestore @@ -832,10 +832,10 @@ func (a *RecoveryApiService) CreateRecoveryScheduleConfigPolicyExecute(r ApiCrea localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.recoveryScheduleConfigPolicy @@ -1912,52 +1912,52 @@ func (a *RecoveryApiService) GetRecoveryBackupConfigPolicyListExecute(r ApiGetRe localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -2339,52 +2339,52 @@ func (a *RecoveryApiService) GetRecoveryBackupProfileListExecute(r ApiGetRecover localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -2919,52 +2919,52 @@ func (a *RecoveryApiService) GetRecoveryConfigResultEntryListExecute(r ApiGetRec localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -3193,52 +3193,52 @@ func (a *RecoveryApiService) GetRecoveryConfigResultListExecute(r ApiGetRecovery localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -3620,52 +3620,52 @@ func (a *RecoveryApiService) GetRecoveryOnDemandBackupListExecute(r ApiGetRecove localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -4047,52 +4047,52 @@ func (a *RecoveryApiService) GetRecoveryRestoreListExecute(r ApiGetRecoveryResto localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -4474,52 +4474,52 @@ func (a *RecoveryApiService) GetRecoveryScheduleConfigPolicyListExecute(r ApiGet localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -4709,7 +4709,7 @@ func (a *RecoveryApiService) PatchRecoveryBackupConfigPolicyExecute(r ApiPatchRe localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.recoveryBackupConfigPolicy @@ -4884,7 +4884,7 @@ func (a *RecoveryApiService) PatchRecoveryBackupProfileExecute(r ApiPatchRecover localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.recoveryBackupProfile @@ -5059,7 +5059,7 @@ func (a *RecoveryApiService) PatchRecoveryOnDemandBackupExecute(r ApiPatchRecove localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.recoveryOnDemandBackup @@ -5234,7 +5234,7 @@ func (a *RecoveryApiService) PatchRecoveryScheduleConfigPolicyExecute(r ApiPatch localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.recoveryScheduleConfigPolicy @@ -5409,7 +5409,7 @@ func (a *RecoveryApiService) UpdateRecoveryBackupConfigPolicyExecute(r ApiUpdate localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.recoveryBackupConfigPolicy @@ -5584,7 +5584,7 @@ func (a *RecoveryApiService) UpdateRecoveryBackupProfileExecute(r ApiUpdateRecov localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.recoveryBackupProfile @@ -5759,7 +5759,7 @@ func (a *RecoveryApiService) UpdateRecoveryOnDemandBackupExecute(r ApiUpdateReco localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.recoveryOnDemandBackup @@ -5934,7 +5934,7 @@ func (a *RecoveryApiService) UpdateRecoveryScheduleConfigPolicyExecute(r ApiUpda localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.recoveryScheduleConfigPolicy diff --git a/api_resource.go b/api_resource.go index 8374f3991c..898adbd103 100644 --- a/api_resource.go +++ b/api_resource.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -108,10 +108,10 @@ func (a *ResourceApiService) CreateResourceGroupExecute(r ApiCreateResourceGroup localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.resourceGroup @@ -289,10 +289,10 @@ func (a *ResourceApiService) CreateResourceMembershipExecute(r ApiCreateResource localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.resourceMembership @@ -470,10 +470,10 @@ func (a *ResourceApiService) CreateResourceReservationExecute(r ApiCreateResourc localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.resourceReservation @@ -651,10 +651,10 @@ func (a *ResourceApiService) CreateResourceSelectionCriteriaExecute(r ApiCreateR localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.resourceSelectionCriteria @@ -1731,52 +1731,52 @@ func (a *ResourceApiService) GetResourceGroupListExecute(r ApiGetResourceGroupLi localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -2158,52 +2158,52 @@ func (a *ResourceApiService) GetResourceGroupMemberListExecute(r ApiGetResourceG localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -2585,52 +2585,52 @@ func (a *ResourceApiService) GetResourceLicenseResourceCountListExecute(r ApiGet localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -3165,52 +3165,52 @@ func (a *ResourceApiService) GetResourceMembershipHolderListExecute(r ApiGetReso localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -3439,52 +3439,52 @@ func (a *ResourceApiService) GetResourceMembershipListExecute(r ApiGetResourceMe localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -3866,52 +3866,52 @@ func (a *ResourceApiService) GetResourceReservationListExecute(r ApiGetResourceR localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -4293,52 +4293,52 @@ func (a *ResourceApiService) GetResourceSelectionCriteriaListExecute(r ApiGetRes localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -4720,52 +4720,52 @@ func (a *ResourceApiService) GetResourceSharedResourcesInfoHolderListExecute(r A localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -4955,7 +4955,7 @@ func (a *ResourceApiService) PatchResourceGroupExecute(r ApiPatchResourceGroupRe localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.resourceGroup @@ -5130,7 +5130,7 @@ func (a *ResourceApiService) PatchResourceMembershipExecute(r ApiPatchResourceMe localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.resourceMembership @@ -5305,7 +5305,7 @@ func (a *ResourceApiService) PatchResourceReservationExecute(r ApiPatchResourceR localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.resourceReservation @@ -5480,7 +5480,7 @@ func (a *ResourceApiService) PatchResourceSelectionCriteriaExecute(r ApiPatchRes localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.resourceSelectionCriteria @@ -5655,7 +5655,7 @@ func (a *ResourceApiService) UpdateResourceGroupExecute(r ApiUpdateResourceGroup localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.resourceGroup @@ -5830,7 +5830,7 @@ func (a *ResourceApiService) UpdateResourceMembershipExecute(r ApiUpdateResource localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.resourceMembership @@ -6005,7 +6005,7 @@ func (a *ResourceApiService) UpdateResourceReservationExecute(r ApiUpdateResourc localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.resourceReservation @@ -6180,7 +6180,7 @@ func (a *ResourceApiService) UpdateResourceSelectionCriteriaExecute(r ApiUpdateR localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.resourceSelectionCriteria diff --git a/api_resourcepool.go b/api_resourcepool.go index 0da5e8c7fb..a43583a2b6 100644 --- a/api_resourcepool.go +++ b/api_resourcepool.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -108,10 +108,10 @@ func (a *ResourcepoolApiService) CreateResourcepoolPoolExecute(r ApiCreateResour localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.resourcepoolPool @@ -904,52 +904,52 @@ func (a *ResourcepoolApiService) GetResourcepoolLeaseListExecute(r ApiGetResourc localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -1331,52 +1331,52 @@ func (a *ResourcepoolApiService) GetResourcepoolLeaseResourceListExecute(r ApiGe localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -1758,52 +1758,52 @@ func (a *ResourcepoolApiService) GetResourcepoolMembershipReservationListExecute localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -2185,52 +2185,52 @@ func (a *ResourcepoolApiService) GetResourcepoolPoolListExecute(r ApiGetResource localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -2612,52 +2612,52 @@ func (a *ResourcepoolApiService) GetResourcepoolPoolMemberListExecute(r ApiGetRe localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -3039,52 +3039,52 @@ func (a *ResourcepoolApiService) GetResourcepoolUniverseListExecute(r ApiGetReso localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -3274,7 +3274,7 @@ func (a *ResourcepoolApiService) PatchResourcepoolMembershipReservationExecute(r localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.resourcepoolMembershipReservation @@ -3449,7 +3449,7 @@ func (a *ResourcepoolApiService) PatchResourcepoolPoolExecute(r ApiPatchResource localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.resourcepoolPool @@ -3624,7 +3624,7 @@ func (a *ResourcepoolApiService) UpdateResourcepoolMembershipReservationExecute( localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.resourcepoolMembershipReservation @@ -3799,7 +3799,7 @@ func (a *ResourcepoolApiService) UpdateResourcepoolPoolExecute(r ApiUpdateResour localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.resourcepoolPool diff --git a/api_rproxy.go b/api_rproxy.go index e346b412ee..a39e688abb 100644 --- a/api_rproxy.go +++ b/api_rproxy.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -107,10 +107,10 @@ func (a *RproxyApiService) CreateRproxyReverseProxyExecute(r ApiCreateRproxyReve localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.rproxyReverseProxy diff --git a/api_scheduler.go b/api_scheduler.go index 52089e1e0e..9afe25a48e 100644 --- a/api_scheduler.go +++ b/api_scheduler.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -108,10 +108,10 @@ func (a *SchedulerApiService) CreateSchedulerTaskScheduleExecute(r ApiCreateSche localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.schedulerTaskSchedule @@ -762,52 +762,52 @@ func (a *SchedulerApiService) GetSchedulerTaskResultListExecute(r ApiGetSchedule localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -1189,52 +1189,52 @@ func (a *SchedulerApiService) GetSchedulerTaskScheduleListExecute(r ApiGetSchedu localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -1424,7 +1424,7 @@ func (a *SchedulerApiService) PatchSchedulerTaskScheduleExecute(r ApiPatchSchedu localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.schedulerTaskSchedule @@ -1599,7 +1599,7 @@ func (a *SchedulerApiService) UpdateSchedulerTaskScheduleExecute(r ApiUpdateSche localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.schedulerTaskSchedule diff --git a/api_sdaaci.go b/api_sdaaci.go index 11f0f38dc6..ffd62cd595 100644 --- a/api_sdaaci.go +++ b/api_sdaaci.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -108,10 +108,10 @@ func (a *SdaaciApiService) CreateSdaaciConnectionExecute(r ApiCreateSdaaciConnec localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.sdaaciConnection @@ -289,10 +289,10 @@ func (a *SdaaciApiService) CreateSdaaciConnectionDetailExecute(r ApiCreateSdaaci localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.sdaaciConnectionDetail @@ -1096,52 +1096,52 @@ func (a *SdaaciApiService) GetSdaaciConnectionDetailListExecute(r ApiGetSdaaciCo localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -1370,52 +1370,52 @@ func (a *SdaaciApiService) GetSdaaciConnectionListExecute(r ApiGetSdaaciConnecti localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -1605,7 +1605,7 @@ func (a *SdaaciApiService) PatchSdaaciConnectionExecute(r ApiPatchSdaaciConnecti localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.sdaaciConnection @@ -1780,7 +1780,7 @@ func (a *SdaaciApiService) PatchSdaaciConnectionDetailExecute(r ApiPatchSdaaciCo localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.sdaaciConnectionDetail @@ -1955,7 +1955,7 @@ func (a *SdaaciApiService) UpdateSdaaciConnectionExecute(r ApiUpdateSdaaciConnec localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.sdaaciConnection @@ -2130,7 +2130,7 @@ func (a *SdaaciApiService) UpdateSdaaciConnectionDetailExecute(r ApiUpdateSdaaci localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.sdaaciConnectionDetail diff --git a/api_sdcard.go b/api_sdcard.go index c420b1edc9..3c5414aa62 100644 --- a/api_sdcard.go +++ b/api_sdcard.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -108,10 +108,10 @@ func (a *SdcardApiService) CreateSdcardPolicyExecute(r ApiCreateSdcardPolicyRequ localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.sdcardPolicy @@ -773,52 +773,52 @@ func (a *SdcardApiService) GetSdcardPolicyInventoryListExecute(r ApiGetSdcardPol localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -1047,52 +1047,52 @@ func (a *SdcardApiService) GetSdcardPolicyListExecute(r ApiGetSdcardPolicyListRe localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -1282,7 +1282,7 @@ func (a *SdcardApiService) PatchSdcardPolicyExecute(r ApiPatchSdcardPolicyReques localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.sdcardPolicy @@ -1457,7 +1457,7 @@ func (a *SdcardApiService) UpdateSdcardPolicyExecute(r ApiUpdateSdcardPolicyRequ localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.sdcardPolicy diff --git a/api_search.go b/api_search.go index f31cdc9560..c2b72c1202 100644 --- a/api_search.go +++ b/api_search.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -108,10 +108,10 @@ func (a *SearchApiService) CreateSearchSuggestItemExecute(r ApiCreateSearchSugge localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.searchSuggestItem @@ -478,52 +478,52 @@ func (a *SearchApiService) GetSearchSearchItemListExecute(r ApiGetSearchSearchIt localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -905,52 +905,52 @@ func (a *SearchApiService) GetSearchTagItemListExecute(r ApiGetSearchTagItemList localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} diff --git a/api_security.go b/api_security.go index d8213a6c5d..135e9ec9be 100644 --- a/api_security.go +++ b/api_security.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -297,52 +297,52 @@ func (a *SecurityApiService) GetSecurityUnitListExecute(r ApiGetSecurityUnitList localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -532,7 +532,7 @@ func (a *SecurityApiService) PatchSecurityUnitExecute(r ApiPatchSecurityUnitRequ localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.securityUnit @@ -707,7 +707,7 @@ func (a *SecurityApiService) UpdateSecurityUnitExecute(r ApiUpdateSecurityUnitRe localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.securityUnit diff --git a/api_server.go b/api_server.go index a45404e87b..295e33a09d 100644 --- a/api_server.go +++ b/api_server.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -108,10 +108,10 @@ func (a *ServerApiService) CreateServerConfigImportExecute(r ApiCreateServerConf localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.serverConfigImport @@ -289,10 +289,10 @@ func (a *ServerApiService) CreateServerProfileExecute(r ApiCreateServerProfileRe localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.serverProfile @@ -470,10 +470,10 @@ func (a *ServerApiService) CreateServerProfileTemplateExecute(r ApiCreateServerP localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.serverProfileTemplate @@ -1124,52 +1124,52 @@ func (a *ServerApiService) GetServerConfigChangeDetailListExecute(r ApiGetServer localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -1551,52 +1551,52 @@ func (a *ServerApiService) GetServerConfigImportListExecute(r ApiGetServerConfig localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -2131,52 +2131,52 @@ func (a *ServerApiService) GetServerConfigResultEntryListExecute(r ApiGetServerC localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -2405,52 +2405,52 @@ func (a *ServerApiService) GetServerConfigResultListExecute(r ApiGetServerConfig localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -2832,52 +2832,52 @@ func (a *ServerApiService) GetServerDisruptionListExecute(r ApiGetServerDisrupti localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -3259,52 +3259,52 @@ func (a *ServerApiService) GetServerProfileListExecute(r ApiGetServerProfileList localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -3686,52 +3686,52 @@ func (a *ServerApiService) GetServerProfileTemplateListExecute(r ApiGetServerPro localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -3921,7 +3921,7 @@ func (a *ServerApiService) PatchServerProfileExecute(r ApiPatchServerProfileRequ localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.serverProfile @@ -4096,7 +4096,7 @@ func (a *ServerApiService) PatchServerProfileTemplateExecute(r ApiPatchServerPro localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.serverProfileTemplate @@ -4271,7 +4271,7 @@ func (a *ServerApiService) UpdateServerProfileExecute(r ApiUpdateServerProfileRe localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.serverProfile @@ -4446,7 +4446,7 @@ func (a *ServerApiService) UpdateServerProfileTemplateExecute(r ApiUpdateServerP localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.serverProfileTemplate diff --git a/api_servicenow.go b/api_servicenow.go index 9f926b9282..f8aa3ac941 100644 --- a/api_servicenow.go +++ b/api_servicenow.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -297,52 +297,52 @@ func (a *ServicenowApiService) GetServicenowChangeRequestListExecute(r ApiGetSer localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -724,52 +724,52 @@ func (a *ServicenowApiService) GetServicenowIncidentListExecute(r ApiGetServicen localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} diff --git a/api_smtp.go b/api_smtp.go index 6ef7196161..da6e459757 100644 --- a/api_smtp.go +++ b/api_smtp.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -108,10 +108,10 @@ func (a *SmtpApiService) CreateSmtpPolicyExecute(r ApiCreateSmtpPolicyRequest) ( localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.smtpPolicy @@ -620,52 +620,52 @@ func (a *SmtpApiService) GetSmtpPolicyListExecute(r ApiGetSmtpPolicyListRequest) localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -855,7 +855,7 @@ func (a *SmtpApiService) PatchSmtpPolicyExecute(r ApiPatchSmtpPolicyRequest) (*S localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.smtpPolicy @@ -1030,7 +1030,7 @@ func (a *SmtpApiService) UpdateSmtpPolicyExecute(r ApiUpdateSmtpPolicyRequest) ( localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.smtpPolicy diff --git a/api_snmp.go b/api_snmp.go index 6fdf6e2ca2..66a507e7e1 100644 --- a/api_snmp.go +++ b/api_snmp.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -108,10 +108,10 @@ func (a *SnmpApiService) CreateSnmpPolicyExecute(r ApiCreateSnmpPolicyRequest) ( localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.snmpPolicy @@ -773,52 +773,52 @@ func (a *SnmpApiService) GetSnmpPolicyInventoryListExecute(r ApiGetSnmpPolicyInv localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -1047,52 +1047,52 @@ func (a *SnmpApiService) GetSnmpPolicyListExecute(r ApiGetSnmpPolicyListRequest) localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -1282,7 +1282,7 @@ func (a *SnmpApiService) PatchSnmpPolicyExecute(r ApiPatchSnmpPolicyRequest) (*S localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.snmpPolicy @@ -1457,7 +1457,7 @@ func (a *SnmpApiService) UpdateSnmpPolicyExecute(r ApiUpdateSnmpPolicyRequest) ( localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.snmpPolicy diff --git a/api_software.go b/api_software.go index c5d9945ba3..6a482ea899 100644 --- a/api_software.go +++ b/api_software.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -108,10 +108,10 @@ func (a *SoftwareApiService) CreateSoftwareApplianceDistributableExecute(r ApiCr localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.softwareApplianceDistributable @@ -289,10 +289,10 @@ func (a *SoftwareApiService) CreateSoftwareHciBundleDistributableExecute(r ApiCr localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.softwareHciBundleDistributable @@ -470,10 +470,10 @@ func (a *SoftwareApiService) CreateSoftwareHciDistributableExecute(r ApiCreateSo localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.softwareHciDistributable @@ -651,10 +651,10 @@ func (a *SoftwareApiService) CreateSoftwareHclMetaExecute(r ApiCreateSoftwareHcl localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.softwareHclMeta @@ -832,10 +832,10 @@ func (a *SoftwareApiService) CreateSoftwareHyperflexBundleDistributableExecute(r localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.softwareHyperflexBundleDistributable @@ -1013,10 +1013,10 @@ func (a *SoftwareApiService) CreateSoftwareHyperflexDistributableExecute(r ApiCr localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.softwareHyperflexDistributable @@ -1194,10 +1194,10 @@ func (a *SoftwareApiService) CreateSoftwareIksBundleDistributableExecute(r ApiCr localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.softwareIksBundleDistributable @@ -1375,10 +1375,10 @@ func (a *SoftwareApiService) CreateSoftwareReleaseMetaExecute(r ApiCreateSoftwar localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.softwareReleaseMeta @@ -1556,10 +1556,10 @@ func (a *SoftwareApiService) CreateSoftwareSolutionDistributableExecute(r ApiCre localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.softwareSolutionDistributable @@ -1737,10 +1737,10 @@ func (a *SoftwareApiService) CreateSoftwareUcsdBundleDistributableExecute(r ApiC localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.softwareUcsdBundleDistributable @@ -1918,10 +1918,10 @@ func (a *SoftwareApiService) CreateSoftwareUcsdDistributableExecute(r ApiCreateS localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.softwareUcsdDistributable @@ -3850,52 +3850,52 @@ func (a *SoftwareApiService) GetSoftwareApplianceDistributableListExecute(r ApiG localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -4277,52 +4277,52 @@ func (a *SoftwareApiService) GetSoftwareDownloadHistoryListExecute(r ApiGetSoftw localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -4704,52 +4704,52 @@ func (a *SoftwareApiService) GetSoftwareHciBundleDistributableListExecute(r ApiG localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -5131,52 +5131,52 @@ func (a *SoftwareApiService) GetSoftwareHciDistributableListExecute(r ApiGetSoft localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -5558,52 +5558,52 @@ func (a *SoftwareApiService) GetSoftwareHclMetaListExecute(r ApiGetSoftwareHclMe localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -5985,52 +5985,52 @@ func (a *SoftwareApiService) GetSoftwareHyperflexBundleDistributableListExecute( localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -6412,52 +6412,52 @@ func (a *SoftwareApiService) GetSoftwareHyperflexDistributableListExecute(r ApiG localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -6839,52 +6839,52 @@ func (a *SoftwareApiService) GetSoftwareIksBundleDistributableListExecute(r ApiG localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -7266,52 +7266,52 @@ func (a *SoftwareApiService) GetSoftwareReleaseMetaListExecute(r ApiGetSoftwareR localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -7693,52 +7693,52 @@ func (a *SoftwareApiService) GetSoftwareSolutionDistributableListExecute(r ApiGe localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -8120,52 +8120,52 @@ func (a *SoftwareApiService) GetSoftwareUcsdBundleDistributableListExecute(r Api localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -8547,52 +8547,52 @@ func (a *SoftwareApiService) GetSoftwareUcsdDistributableListExecute(r ApiGetSof localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -8782,7 +8782,7 @@ func (a *SoftwareApiService) PatchSoftwareApplianceDistributableExecute(r ApiPat localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.softwareApplianceDistributable @@ -8957,7 +8957,7 @@ func (a *SoftwareApiService) PatchSoftwareHciBundleDistributableExecute(r ApiPat localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.softwareHciBundleDistributable @@ -9132,7 +9132,7 @@ func (a *SoftwareApiService) PatchSoftwareHciDistributableExecute(r ApiPatchSoft localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.softwareHciDistributable @@ -9307,7 +9307,7 @@ func (a *SoftwareApiService) PatchSoftwareHclMetaExecute(r ApiPatchSoftwareHclMe localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.softwareHclMeta @@ -9482,7 +9482,7 @@ func (a *SoftwareApiService) PatchSoftwareHyperflexBundleDistributableExecute(r localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.softwareHyperflexBundleDistributable @@ -9657,7 +9657,7 @@ func (a *SoftwareApiService) PatchSoftwareHyperflexDistributableExecute(r ApiPat localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.softwareHyperflexDistributable @@ -9832,7 +9832,7 @@ func (a *SoftwareApiService) PatchSoftwareIksBundleDistributableExecute(r ApiPat localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.softwareIksBundleDistributable @@ -10007,7 +10007,7 @@ func (a *SoftwareApiService) PatchSoftwareReleaseMetaExecute(r ApiPatchSoftwareR localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.softwareReleaseMeta @@ -10182,7 +10182,7 @@ func (a *SoftwareApiService) PatchSoftwareSolutionDistributableExecute(r ApiPatc localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.softwareSolutionDistributable @@ -10357,7 +10357,7 @@ func (a *SoftwareApiService) PatchSoftwareUcsdBundleDistributableExecute(r ApiPa localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.softwareUcsdBundleDistributable @@ -10532,7 +10532,7 @@ func (a *SoftwareApiService) PatchSoftwareUcsdDistributableExecute(r ApiPatchSof localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.softwareUcsdDistributable @@ -10707,7 +10707,7 @@ func (a *SoftwareApiService) UpdateSoftwareApplianceDistributableExecute(r ApiUp localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.softwareApplianceDistributable @@ -10882,7 +10882,7 @@ func (a *SoftwareApiService) UpdateSoftwareHciBundleDistributableExecute(r ApiUp localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.softwareHciBundleDistributable @@ -11057,7 +11057,7 @@ func (a *SoftwareApiService) UpdateSoftwareHciDistributableExecute(r ApiUpdateSo localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.softwareHciDistributable @@ -11232,7 +11232,7 @@ func (a *SoftwareApiService) UpdateSoftwareHclMetaExecute(r ApiUpdateSoftwareHcl localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.softwareHclMeta @@ -11407,7 +11407,7 @@ func (a *SoftwareApiService) UpdateSoftwareHyperflexBundleDistributableExecute(r localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.softwareHyperflexBundleDistributable @@ -11582,7 +11582,7 @@ func (a *SoftwareApiService) UpdateSoftwareHyperflexDistributableExecute(r ApiUp localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.softwareHyperflexDistributable @@ -11757,7 +11757,7 @@ func (a *SoftwareApiService) UpdateSoftwareIksBundleDistributableExecute(r ApiUp localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.softwareIksBundleDistributable @@ -11932,7 +11932,7 @@ func (a *SoftwareApiService) UpdateSoftwareReleaseMetaExecute(r ApiUpdateSoftwar localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.softwareReleaseMeta @@ -12107,7 +12107,7 @@ func (a *SoftwareApiService) UpdateSoftwareSolutionDistributableExecute(r ApiUpd localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.softwareSolutionDistributable @@ -12282,7 +12282,7 @@ func (a *SoftwareApiService) UpdateSoftwareUcsdBundleDistributableExecute(r ApiU localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.softwareUcsdBundleDistributable @@ -12457,7 +12457,7 @@ func (a *SoftwareApiService) UpdateSoftwareUcsdDistributableExecute(r ApiUpdateS localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.softwareUcsdDistributable diff --git a/api_softwarerepository.go b/api_softwarerepository.go index 3616502cd5..f909f6c770 100644 --- a/api_softwarerepository.go +++ b/api_softwarerepository.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -108,10 +108,10 @@ func (a *SoftwarerepositoryApiService) CreateSoftwarerepositoryAuthorizationExec localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.softwarerepositoryAuthorization @@ -289,10 +289,10 @@ func (a *SoftwarerepositoryApiService) CreateSoftwarerepositoryCategoryMapperExe localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.softwarerepositoryCategoryMapper @@ -470,10 +470,10 @@ func (a *SoftwarerepositoryApiService) CreateSoftwarerepositoryCategoryMapperMod localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.softwarerepositoryCategoryMapperModel @@ -651,10 +651,10 @@ func (a *SoftwarerepositoryApiService) CreateSoftwarerepositoryCategorySupportCo localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.softwarerepositoryCategorySupportConstraint @@ -832,10 +832,10 @@ func (a *SoftwarerepositoryApiService) CreateSoftwarerepositoryCategoryUnsupport localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.softwarerepositoryCategoryUnsupportedModels @@ -1013,10 +1013,10 @@ func (a *SoftwarerepositoryApiService) CreateSoftwarerepositoryOperatingSystemFi localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.softwarerepositoryOperatingSystemFile @@ -1194,10 +1194,10 @@ func (a *SoftwarerepositoryApiService) CreateSoftwarerepositoryReleaseExecute(r localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.softwarerepositoryRelease @@ -2416,52 +2416,52 @@ func (a *SoftwarerepositoryApiService) GetSoftwarerepositoryAuthorizationListExe localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -2843,52 +2843,52 @@ func (a *SoftwarerepositoryApiService) GetSoftwarerepositoryCachedImageListExecu localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -3270,52 +3270,52 @@ func (a *SoftwarerepositoryApiService) GetSoftwarerepositoryCatalogListExecute(r localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -3697,52 +3697,52 @@ func (a *SoftwarerepositoryApiService) GetSoftwarerepositoryCategoryMapperListEx localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -4124,52 +4124,52 @@ func (a *SoftwarerepositoryApiService) GetSoftwarerepositoryCategoryMapperModelL localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -4551,52 +4551,52 @@ func (a *SoftwarerepositoryApiService) GetSoftwarerepositoryCategorySupportConst localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -4978,52 +4978,52 @@ func (a *SoftwarerepositoryApiService) GetSoftwarerepositoryCategoryUnsupportedM localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -5405,52 +5405,52 @@ func (a *SoftwarerepositoryApiService) GetSoftwarerepositoryDownloadSpecListExec localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -5832,52 +5832,52 @@ func (a *SoftwarerepositoryApiService) GetSoftwarerepositoryOperatingSystemFileL localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -6259,52 +6259,52 @@ func (a *SoftwarerepositoryApiService) GetSoftwarerepositoryReleaseListExecute(r localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -6494,7 +6494,7 @@ func (a *SoftwarerepositoryApiService) PatchSoftwarerepositoryAuthorizationExecu localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.softwarerepositoryAuthorization @@ -6669,7 +6669,7 @@ func (a *SoftwarerepositoryApiService) PatchSoftwarerepositoryCategoryMapperExec localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.softwarerepositoryCategoryMapper @@ -6844,7 +6844,7 @@ func (a *SoftwarerepositoryApiService) PatchSoftwarerepositoryCategoryMapperMode localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.softwarerepositoryCategoryMapperModel @@ -7019,7 +7019,7 @@ func (a *SoftwarerepositoryApiService) PatchSoftwarerepositoryCategorySupportCon localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.softwarerepositoryCategorySupportConstraint @@ -7194,7 +7194,7 @@ func (a *SoftwarerepositoryApiService) PatchSoftwarerepositoryCategoryUnsupporte localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.softwarerepositoryCategoryUnsupportedModels @@ -7369,7 +7369,7 @@ func (a *SoftwarerepositoryApiService) PatchSoftwarerepositoryOperatingSystemFil localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.softwarerepositoryOperatingSystemFile @@ -7544,7 +7544,7 @@ func (a *SoftwarerepositoryApiService) PatchSoftwarerepositoryReleaseExecute(r A localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.softwarerepositoryRelease @@ -7719,7 +7719,7 @@ func (a *SoftwarerepositoryApiService) UpdateSoftwarerepositoryAuthorizationExec localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.softwarerepositoryAuthorization @@ -7894,7 +7894,7 @@ func (a *SoftwarerepositoryApiService) UpdateSoftwarerepositoryCategoryMapperExe localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.softwarerepositoryCategoryMapper @@ -8069,7 +8069,7 @@ func (a *SoftwarerepositoryApiService) UpdateSoftwarerepositoryCategoryMapperMod localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.softwarerepositoryCategoryMapperModel @@ -8244,7 +8244,7 @@ func (a *SoftwarerepositoryApiService) UpdateSoftwarerepositoryCategorySupportCo localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.softwarerepositoryCategorySupportConstraint @@ -8419,7 +8419,7 @@ func (a *SoftwarerepositoryApiService) UpdateSoftwarerepositoryCategoryUnsupport localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.softwarerepositoryCategoryUnsupportedModels @@ -8594,7 +8594,7 @@ func (a *SoftwarerepositoryApiService) UpdateSoftwarerepositoryOperatingSystemFi localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.softwarerepositoryOperatingSystemFile @@ -8769,7 +8769,7 @@ func (a *SoftwarerepositoryApiService) UpdateSoftwarerepositoryReleaseExecute(r localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.softwarerepositoryRelease diff --git a/api_sol.go b/api_sol.go index 5c20f55111..b1b562e58e 100644 --- a/api_sol.go +++ b/api_sol.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -108,10 +108,10 @@ func (a *SolApiService) CreateSolPolicyExecute(r ApiCreateSolPolicyRequest) (*So localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.solPolicy @@ -773,52 +773,52 @@ func (a *SolApiService) GetSolPolicyInventoryListExecute(r ApiGetSolPolicyInvent localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -1047,52 +1047,52 @@ func (a *SolApiService) GetSolPolicyListExecute(r ApiGetSolPolicyListRequest) (* localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -1282,7 +1282,7 @@ func (a *SolApiService) PatchSolPolicyExecute(r ApiPatchSolPolicyRequest) (*SolP localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.solPolicy @@ -1457,7 +1457,7 @@ func (a *SolApiService) UpdateSolPolicyExecute(r ApiUpdateSolPolicyRequest) (*So localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.solPolicy diff --git a/api_ssh.go b/api_ssh.go index 9334fb23d1..769e22a531 100644 --- a/api_ssh.go +++ b/api_ssh.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -108,10 +108,10 @@ func (a *SshApiService) CreateSshPolicyExecute(r ApiCreateSshPolicyRequest) (*Ss localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.sshPolicy @@ -773,52 +773,52 @@ func (a *SshApiService) GetSshPolicyInventoryListExecute(r ApiGetSshPolicyInvent localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -1047,52 +1047,52 @@ func (a *SshApiService) GetSshPolicyListExecute(r ApiGetSshPolicyListRequest) (* localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -1282,7 +1282,7 @@ func (a *SshApiService) PatchSshPolicyExecute(r ApiPatchSshPolicyRequest) (*SshP localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.sshPolicy @@ -1457,7 +1457,7 @@ func (a *SshApiService) UpdateSshPolicyExecute(r ApiUpdateSshPolicyRequest) (*Ss localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.sshPolicy diff --git a/api_storage.go b/api_storage.go index e46bada3e3..8997e2c9fb 100644 --- a/api_storage.go +++ b/api_storage.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -108,10 +108,10 @@ func (a *StorageApiService) CreateStorageDriveGroupExecute(r ApiCreateStorageDri localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.storageDriveGroup @@ -289,10 +289,10 @@ func (a *StorageApiService) CreateStorageDriveSecurityPolicyExecute(r ApiCreateS localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.storageDriveSecurityPolicy @@ -470,10 +470,10 @@ func (a *StorageApiService) CreateStorageStoragePolicyExecute(r ApiCreateStorage localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.storageStoragePolicy @@ -1266,52 +1266,52 @@ func (a *StorageApiService) GetStorageBatteryBackupUnitListExecute(r ApiGetStora localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -1846,52 +1846,52 @@ func (a *StorageApiService) GetStorageControllerDriveListExecute(r ApiGetStorage localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -2120,52 +2120,52 @@ func (a *StorageApiService) GetStorageControllerListExecute(r ApiGetStorageContr localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -2547,52 +2547,52 @@ func (a *StorageApiService) GetStorageDiskGroupListExecute(r ApiGetStorageDiskGr localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -2974,52 +2974,52 @@ func (a *StorageApiService) GetStorageDiskSlotListExecute(r ApiGetStorageDiskSlo localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -3401,52 +3401,52 @@ func (a *StorageApiService) GetStorageDriveGroupListExecute(r ApiGetStorageDrive localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -3828,52 +3828,52 @@ func (a *StorageApiService) GetStorageDriveSecurityPolicyListExecute(r ApiGetSto localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -4408,52 +4408,52 @@ func (a *StorageApiService) GetStorageEnclosureDiskListExecute(r ApiGetStorageEn localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -4835,52 +4835,52 @@ func (a *StorageApiService) GetStorageEnclosureDiskSlotEpListExecute(r ApiGetSto localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -5109,52 +5109,52 @@ func (a *StorageApiService) GetStorageEnclosureListExecute(r ApiGetStorageEnclos localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -5536,52 +5536,52 @@ func (a *StorageApiService) GetStorageFileItemListExecute(r ApiGetStorageFileIte localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -5963,52 +5963,52 @@ func (a *StorageApiService) GetStorageFlexFlashControllerListExecute(r ApiGetSto localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -6390,52 +6390,52 @@ func (a *StorageApiService) GetStorageFlexFlashControllerPropsListExecute(r ApiG localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -6817,52 +6817,52 @@ func (a *StorageApiService) GetStorageFlexFlashPhysicalDriveListExecute(r ApiGet localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -7244,52 +7244,52 @@ func (a *StorageApiService) GetStorageFlexFlashVirtualDriveListExecute(r ApiGetS localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -7671,52 +7671,52 @@ func (a *StorageApiService) GetStorageFlexUtilControllerListExecute(r ApiGetStor localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -8098,52 +8098,52 @@ func (a *StorageApiService) GetStorageFlexUtilPhysicalDriveListExecute(r ApiGetS localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -8525,52 +8525,52 @@ func (a *StorageApiService) GetStorageFlexUtilVirtualDriveListExecute(r ApiGetSt localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -8952,52 +8952,52 @@ func (a *StorageApiService) GetStorageHitachiArrayListExecute(r ApiGetStorageHit localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -9379,52 +9379,52 @@ func (a *StorageApiService) GetStorageHitachiControllerListExecute(r ApiGetStora localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -9806,52 +9806,52 @@ func (a *StorageApiService) GetStorageHitachiDiskListExecute(r ApiGetStorageHita localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -10233,52 +10233,52 @@ func (a *StorageApiService) GetStorageHitachiExternalParityGroupListExecute(r Ap localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -10660,52 +10660,52 @@ func (a *StorageApiService) GetStorageHitachiExternalPathGroupListExecute(r ApiG localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -11087,52 +11087,52 @@ func (a *StorageApiService) GetStorageHitachiExternalStorageLunListExecute(r Api localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -11514,52 +11514,52 @@ func (a *StorageApiService) GetStorageHitachiExternalStoragePortListExecute(r Ap localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -11941,52 +11941,52 @@ func (a *StorageApiService) GetStorageHitachiHostListExecute(r ApiGetStorageHita localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -12368,52 +12368,52 @@ func (a *StorageApiService) GetStorageHitachiHostLunListExecute(r ApiGetStorageH localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -12795,52 +12795,52 @@ func (a *StorageApiService) GetStorageHitachiParityGroupListExecute(r ApiGetStor localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -13222,52 +13222,52 @@ func (a *StorageApiService) GetStorageHitachiPoolListExecute(r ApiGetStorageHita localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -13649,52 +13649,52 @@ func (a *StorageApiService) GetStorageHitachiPortListExecute(r ApiGetStorageHita localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -14076,52 +14076,52 @@ func (a *StorageApiService) GetStorageHitachiRemoteCopyPairGadListExecute(r ApiG localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -14503,52 +14503,52 @@ func (a *StorageApiService) GetStorageHitachiRemoteCopyPairTcListExecute(r ApiGe localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -14930,52 +14930,52 @@ func (a *StorageApiService) GetStorageHitachiRemoteCopyPairUrListExecute(r ApiGe localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -15357,52 +15357,52 @@ func (a *StorageApiService) GetStorageHitachiRemoteReplicationListExecute(r ApiG localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -15784,52 +15784,52 @@ func (a *StorageApiService) GetStorageHitachiSnapshotListExecute(r ApiGetStorage localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -16211,52 +16211,52 @@ func (a *StorageApiService) GetStorageHitachiVolumeListExecute(r ApiGetStorageHi localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -16638,52 +16638,52 @@ func (a *StorageApiService) GetStorageHitachiVolumeMigrationPairListExecute(r Ap localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -17065,52 +17065,52 @@ func (a *StorageApiService) GetStorageHyperFlexStorageContainerListExecute(r Api localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -17492,52 +17492,52 @@ func (a *StorageApiService) GetStorageHyperFlexVolumeListExecute(r ApiGetStorage localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -17919,52 +17919,52 @@ func (a *StorageApiService) GetStorageItemListExecute(r ApiGetStorageItemListReq localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -18499,52 +18499,52 @@ func (a *StorageApiService) GetStorageNetAppAggregateEventListExecute(r ApiGetSt localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -18773,52 +18773,52 @@ func (a *StorageApiService) GetStorageNetAppAggregateListExecute(r ApiGetStorage localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -19200,52 +19200,52 @@ func (a *StorageApiService) GetStorageNetAppBaseDiskListExecute(r ApiGetStorageN localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -19627,52 +19627,52 @@ func (a *StorageApiService) GetStorageNetAppCifsServiceListExecute(r ApiGetStora localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -20054,52 +20054,52 @@ func (a *StorageApiService) GetStorageNetAppCifsShareListExecute(r ApiGetStorage localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -20481,52 +20481,52 @@ func (a *StorageApiService) GetStorageNetAppCloudTargetListExecute(r ApiGetStora localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -21061,52 +21061,52 @@ func (a *StorageApiService) GetStorageNetAppClusterEventListExecute(r ApiGetStor localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -21335,52 +21335,52 @@ func (a *StorageApiService) GetStorageNetAppClusterListExecute(r ApiGetStorageNe localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -21762,52 +21762,52 @@ func (a *StorageApiService) GetStorageNetAppClusterSnapMirrorPolicyListExecute(r localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -22189,52 +22189,52 @@ func (a *StorageApiService) GetStorageNetAppClusterSnapshotPolicyListExecute(r A localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -22769,52 +22769,52 @@ func (a *StorageApiService) GetStorageNetAppDataIpInterfaceEventListExecute(r Ap localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -23043,52 +23043,52 @@ func (a *StorageApiService) GetStorageNetAppDataIpInterfaceListExecute(r ApiGetS localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -23470,52 +23470,52 @@ func (a *StorageApiService) GetStorageNetAppDiskEventListExecute(r ApiGetStorage localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -24050,52 +24050,52 @@ func (a *StorageApiService) GetStorageNetAppEthernetPortEventListExecute(r ApiGe localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -24324,52 +24324,52 @@ func (a *StorageApiService) GetStorageNetAppEthernetPortListExecute(r ApiGetStor localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -24751,52 +24751,52 @@ func (a *StorageApiService) GetStorageNetAppExportPolicyListExecute(r ApiGetStor localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -25331,52 +25331,52 @@ func (a *StorageApiService) GetStorageNetAppFcInterfaceEventListExecute(r ApiGet localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -25605,52 +25605,52 @@ func (a *StorageApiService) GetStorageNetAppFcInterfaceListExecute(r ApiGetStora localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -26185,52 +26185,52 @@ func (a *StorageApiService) GetStorageNetAppFcPortEventListExecute(r ApiGetStora localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -26459,52 +26459,52 @@ func (a *StorageApiService) GetStorageNetAppFcPortListExecute(r ApiGetStorageNet localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -26886,52 +26886,52 @@ func (a *StorageApiService) GetStorageNetAppInitiatorGroupListExecute(r ApiGetSt localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -27469,52 +27469,52 @@ func (a *StorageApiService) GetStorageNetAppIpInterfaceEventListExecute(r ApiGet localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -27746,52 +27746,52 @@ func (a *StorageApiService) GetStorageNetAppIpInterfaceListExecute(r ApiGetStora localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -28173,52 +28173,52 @@ func (a *StorageApiService) GetStorageNetAppIscsiServiceListExecute(r ApiGetStor localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -28600,52 +28600,52 @@ func (a *StorageApiService) GetStorageNetAppLicenseListExecute(r ApiGetStorageNe localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -29180,52 +29180,52 @@ func (a *StorageApiService) GetStorageNetAppLunEventListExecute(r ApiGetStorageN localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -29454,52 +29454,52 @@ func (a *StorageApiService) GetStorageNetAppLunListExecute(r ApiGetStorageNetApp localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -29881,52 +29881,52 @@ func (a *StorageApiService) GetStorageNetAppLunMapListExecute(r ApiGetStorageNet localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -30308,52 +30308,52 @@ func (a *StorageApiService) GetStorageNetAppNamespaceListExecute(r ApiGetStorage localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -30735,52 +30735,52 @@ func (a *StorageApiService) GetStorageNetAppNfsClientListExecute(r ApiGetStorage localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -31162,52 +31162,52 @@ func (a *StorageApiService) GetStorageNetAppNfsServiceListExecute(r ApiGetStorag localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -31742,52 +31742,52 @@ func (a *StorageApiService) GetStorageNetAppNodeCdpNeighborListExecute(r ApiGetS localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -32169,52 +32169,52 @@ func (a *StorageApiService) GetStorageNetAppNodeEventListExecute(r ApiGetStorage localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -32443,52 +32443,52 @@ func (a *StorageApiService) GetStorageNetAppNodeListExecute(r ApiGetStorageNetAp localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -33023,52 +33023,52 @@ func (a *StorageApiService) GetStorageNetAppNonDataIpInterfaceEventListExecute(r localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -33297,52 +33297,52 @@ func (a *StorageApiService) GetStorageNetAppNonDataIpInterfaceListExecute(r ApiG localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -33724,52 +33724,52 @@ func (a *StorageApiService) GetStorageNetAppNtpServerListExecute(r ApiGetStorage localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -34151,52 +34151,52 @@ func (a *StorageApiService) GetStorageNetAppQtreeListExecute(r ApiGetStorageNetA localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -34578,52 +34578,52 @@ func (a *StorageApiService) GetStorageNetAppScheduleListExecute(r ApiGetStorageN localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -35005,52 +35005,52 @@ func (a *StorageApiService) GetStorageNetAppSensorListExecute(r ApiGetStorageNet localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -35432,52 +35432,52 @@ func (a *StorageApiService) GetStorageNetAppSnapMirrorRelationshipListExecute(r localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -35859,52 +35859,52 @@ func (a *StorageApiService) GetStorageNetAppStorageVmListExecute(r ApiGetStorage localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -36286,52 +36286,52 @@ func (a *StorageApiService) GetStorageNetAppSvmEventListExecute(r ApiGetStorageN localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -36713,52 +36713,52 @@ func (a *StorageApiService) GetStorageNetAppSvmSnapMirrorPolicyListExecute(r Api localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -37140,52 +37140,52 @@ func (a *StorageApiService) GetStorageNetAppSvmSnapshotPolicyListExecute(r ApiGe localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -37720,52 +37720,52 @@ func (a *StorageApiService) GetStorageNetAppVolumeEventListExecute(r ApiGetStora localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -37994,52 +37994,52 @@ func (a *StorageApiService) GetStorageNetAppVolumeListExecute(r ApiGetStorageNet localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -38421,52 +38421,52 @@ func (a *StorageApiService) GetStorageNetAppVolumeSnapshotListExecute(r ApiGetSt localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -38848,52 +38848,52 @@ func (a *StorageApiService) GetStorageNvmeRaidConfigurationListExecute(r ApiGetS localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -39428,52 +39428,52 @@ func (a *StorageApiService) GetStoragePhysicalDiskExtensionListExecute(r ApiGetS localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -39702,52 +39702,52 @@ func (a *StorageApiService) GetStoragePhysicalDiskListExecute(r ApiGetStoragePhy localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -40129,52 +40129,52 @@ func (a *StorageApiService) GetStoragePhysicalDiskUsageListExecute(r ApiGetStora localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -40556,52 +40556,52 @@ func (a *StorageApiService) GetStoragePureArrayAlertsListExecute(r ApiGetStorage localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -40983,52 +40983,52 @@ func (a *StorageApiService) GetStoragePureArrayListExecute(r ApiGetStoragePureAr localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -41410,52 +41410,52 @@ func (a *StorageApiService) GetStoragePureControllerListExecute(r ApiGetStorageP localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -41837,52 +41837,52 @@ func (a *StorageApiService) GetStoragePureDiskListExecute(r ApiGetStoragePureDis localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -42417,52 +42417,52 @@ func (a *StorageApiService) GetStoragePureHostGroupListExecute(r ApiGetStoragePu localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -42691,52 +42691,52 @@ func (a *StorageApiService) GetStoragePureHostListExecute(r ApiGetStoragePureHos localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -43118,52 +43118,52 @@ func (a *StorageApiService) GetStoragePureHostLunListExecute(r ApiGetStoragePure localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -43545,52 +43545,52 @@ func (a *StorageApiService) GetStoragePurePortListExecute(r ApiGetStoragePurePor localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -43972,52 +43972,52 @@ func (a *StorageApiService) GetStoragePureProtectionGroupListExecute(r ApiGetSto localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -44399,52 +44399,52 @@ func (a *StorageApiService) GetStoragePureProtectionGroupSnapshotListExecute(r A localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -44826,52 +44826,52 @@ func (a *StorageApiService) GetStoragePureReplicationScheduleListExecute(r ApiGe localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -45253,52 +45253,52 @@ func (a *StorageApiService) GetStoragePureSnapshotScheduleListExecute(r ApiGetSt localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -45680,52 +45680,52 @@ func (a *StorageApiService) GetStoragePureTargetArrayListExecute(r ApiGetStorage localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -46107,52 +46107,52 @@ func (a *StorageApiService) GetStoragePureVolumeListExecute(r ApiGetStoragePureV localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -46534,52 +46534,52 @@ func (a *StorageApiService) GetStoragePureVolumeSnapshotListExecute(r ApiGetStor localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -46961,52 +46961,52 @@ func (a *StorageApiService) GetStorageSasExpanderListExecute(r ApiGetStorageSasE localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -47388,52 +47388,52 @@ func (a *StorageApiService) GetStorageSasPortListExecute(r ApiGetStorageSasPortL localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -47815,52 +47815,52 @@ func (a *StorageApiService) GetStorageSpanListExecute(r ApiGetStorageSpanListReq localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -48242,52 +48242,52 @@ func (a *StorageApiService) GetStorageStoragePolicyListExecute(r ApiGetStorageSt localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -48669,52 +48669,52 @@ func (a *StorageApiService) GetStorageVdMemberEpListExecute(r ApiGetStorageVdMem localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -49249,52 +49249,52 @@ func (a *StorageApiService) GetStorageVirtualDriveContainerListExecute(r ApiGetS localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -49676,52 +49676,52 @@ func (a *StorageApiService) GetStorageVirtualDriveExtensionListExecute(r ApiGetS localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -50103,52 +50103,52 @@ func (a *StorageApiService) GetStorageVirtualDriveIdentityListExecute(r ApiGetSt localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -50377,52 +50377,52 @@ func (a *StorageApiService) GetStorageVirtualDriveListExecute(r ApiGetStorageVir localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -50612,7 +50612,7 @@ func (a *StorageApiService) PatchStorageBatteryBackupUnitExecute(r ApiPatchStora localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.storageBatteryBackupUnit @@ -50787,7 +50787,7 @@ func (a *StorageApiService) PatchStorageControllerExecute(r ApiPatchStorageContr localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.storageController @@ -50962,7 +50962,7 @@ func (a *StorageApiService) PatchStorageDiskGroupExecute(r ApiPatchStorageDiskGr localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.storageDiskGroup @@ -51137,7 +51137,7 @@ func (a *StorageApiService) PatchStorageDriveGroupExecute(r ApiPatchStorageDrive localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.storageDriveGroup @@ -51312,7 +51312,7 @@ func (a *StorageApiService) PatchStorageDriveSecurityPolicyExecute(r ApiPatchSto localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.storageDriveSecurityPolicy @@ -51487,7 +51487,7 @@ func (a *StorageApiService) PatchStorageEnclosureExecute(r ApiPatchStorageEnclos localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.storageEnclosure @@ -51662,7 +51662,7 @@ func (a *StorageApiService) PatchStorageEnclosureDiskExecute(r ApiPatchStorageEn localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.storageEnclosureDisk @@ -51837,7 +51837,7 @@ func (a *StorageApiService) PatchStorageEnclosureDiskSlotEpExecute(r ApiPatchSto localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.storageEnclosureDiskSlotEp @@ -52012,7 +52012,7 @@ func (a *StorageApiService) PatchStorageFlexFlashControllerExecute(r ApiPatchSto localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.storageFlexFlashController @@ -52187,7 +52187,7 @@ func (a *StorageApiService) PatchStorageFlexFlashControllerPropsExecute(r ApiPat localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.storageFlexFlashControllerProps @@ -52362,7 +52362,7 @@ func (a *StorageApiService) PatchStorageFlexFlashPhysicalDriveExecute(r ApiPatch localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.storageFlexFlashPhysicalDrive @@ -52537,7 +52537,7 @@ func (a *StorageApiService) PatchStorageFlexFlashVirtualDriveExecute(r ApiPatchS localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.storageFlexFlashVirtualDrive @@ -52712,7 +52712,7 @@ func (a *StorageApiService) PatchStorageFlexUtilControllerExecute(r ApiPatchStor localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.storageFlexUtilController @@ -52887,7 +52887,7 @@ func (a *StorageApiService) PatchStorageFlexUtilPhysicalDriveExecute(r ApiPatchS localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.storageFlexUtilPhysicalDrive @@ -53062,7 +53062,7 @@ func (a *StorageApiService) PatchStorageFlexUtilVirtualDriveExecute(r ApiPatchSt localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.storageFlexUtilVirtualDrive @@ -53237,7 +53237,7 @@ func (a *StorageApiService) PatchStorageHitachiArrayExecute(r ApiPatchStorageHit localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.storageHitachiArray @@ -53412,7 +53412,7 @@ func (a *StorageApiService) PatchStorageNetAppClusterExecute(r ApiPatchStorageNe localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.storageNetAppCluster @@ -53587,7 +53587,7 @@ func (a *StorageApiService) PatchStoragePhysicalDiskExecute(r ApiPatchStoragePhy localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.storagePhysicalDisk @@ -53762,7 +53762,7 @@ func (a *StorageApiService) PatchStoragePhysicalDiskExtensionExecute(r ApiPatchS localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.storagePhysicalDiskExtension @@ -53937,7 +53937,7 @@ func (a *StorageApiService) PatchStoragePhysicalDiskUsageExecute(r ApiPatchStora localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.storagePhysicalDiskUsage @@ -54112,7 +54112,7 @@ func (a *StorageApiService) PatchStoragePureArrayExecute(r ApiPatchStoragePureAr localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.storagePureArray @@ -54287,7 +54287,7 @@ func (a *StorageApiService) PatchStorageSasExpanderExecute(r ApiPatchStorageSasE localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.storageSasExpander @@ -54462,7 +54462,7 @@ func (a *StorageApiService) PatchStorageSasPortExecute(r ApiPatchStorageSasPortR localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.storageSasPort @@ -54637,7 +54637,7 @@ func (a *StorageApiService) PatchStorageSpanExecute(r ApiPatchStorageSpanRequest localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.storageSpan @@ -54812,7 +54812,7 @@ func (a *StorageApiService) PatchStorageStoragePolicyExecute(r ApiPatchStorageSt localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.storageStoragePolicy @@ -54987,7 +54987,7 @@ func (a *StorageApiService) PatchStorageVdMemberEpExecute(r ApiPatchStorageVdMem localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.storageVdMemberEp @@ -55162,7 +55162,7 @@ func (a *StorageApiService) PatchStorageVirtualDriveExecute(r ApiPatchStorageVir localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.storageVirtualDrive @@ -55337,7 +55337,7 @@ func (a *StorageApiService) PatchStorageVirtualDriveContainerExecute(r ApiPatchS localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.storageVirtualDriveContainer @@ -55512,7 +55512,7 @@ func (a *StorageApiService) PatchStorageVirtualDriveExtensionExecute(r ApiPatchS localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.storageVirtualDriveExtension @@ -55687,7 +55687,7 @@ func (a *StorageApiService) UpdateStorageBatteryBackupUnitExecute(r ApiUpdateSto localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.storageBatteryBackupUnit @@ -55862,7 +55862,7 @@ func (a *StorageApiService) UpdateStorageControllerExecute(r ApiUpdateStorageCon localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.storageController @@ -56037,7 +56037,7 @@ func (a *StorageApiService) UpdateStorageDiskGroupExecute(r ApiUpdateStorageDisk localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.storageDiskGroup @@ -56212,7 +56212,7 @@ func (a *StorageApiService) UpdateStorageDriveGroupExecute(r ApiUpdateStorageDri localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.storageDriveGroup @@ -56387,7 +56387,7 @@ func (a *StorageApiService) UpdateStorageDriveSecurityPolicyExecute(r ApiUpdateS localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.storageDriveSecurityPolicy @@ -56562,7 +56562,7 @@ func (a *StorageApiService) UpdateStorageEnclosureExecute(r ApiUpdateStorageEncl localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.storageEnclosure @@ -56737,7 +56737,7 @@ func (a *StorageApiService) UpdateStorageEnclosureDiskExecute(r ApiUpdateStorage localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.storageEnclosureDisk @@ -56912,7 +56912,7 @@ func (a *StorageApiService) UpdateStorageEnclosureDiskSlotEpExecute(r ApiUpdateS localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.storageEnclosureDiskSlotEp @@ -57087,7 +57087,7 @@ func (a *StorageApiService) UpdateStorageFlexFlashControllerExecute(r ApiUpdateS localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.storageFlexFlashController @@ -57262,7 +57262,7 @@ func (a *StorageApiService) UpdateStorageFlexFlashControllerPropsExecute(r ApiUp localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.storageFlexFlashControllerProps @@ -57437,7 +57437,7 @@ func (a *StorageApiService) UpdateStorageFlexFlashPhysicalDriveExecute(r ApiUpda localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.storageFlexFlashPhysicalDrive @@ -57612,7 +57612,7 @@ func (a *StorageApiService) UpdateStorageFlexFlashVirtualDriveExecute(r ApiUpdat localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.storageFlexFlashVirtualDrive @@ -57787,7 +57787,7 @@ func (a *StorageApiService) UpdateStorageFlexUtilControllerExecute(r ApiUpdateSt localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.storageFlexUtilController @@ -57962,7 +57962,7 @@ func (a *StorageApiService) UpdateStorageFlexUtilPhysicalDriveExecute(r ApiUpdat localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.storageFlexUtilPhysicalDrive @@ -58137,7 +58137,7 @@ func (a *StorageApiService) UpdateStorageFlexUtilVirtualDriveExecute(r ApiUpdate localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.storageFlexUtilVirtualDrive @@ -58312,7 +58312,7 @@ func (a *StorageApiService) UpdateStorageHitachiArrayExecute(r ApiUpdateStorageH localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.storageHitachiArray @@ -58487,7 +58487,7 @@ func (a *StorageApiService) UpdateStorageNetAppClusterExecute(r ApiUpdateStorage localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.storageNetAppCluster @@ -58662,7 +58662,7 @@ func (a *StorageApiService) UpdateStoragePhysicalDiskExecute(r ApiUpdateStorageP localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.storagePhysicalDisk @@ -58837,7 +58837,7 @@ func (a *StorageApiService) UpdateStoragePhysicalDiskExtensionExecute(r ApiUpdat localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.storagePhysicalDiskExtension @@ -59012,7 +59012,7 @@ func (a *StorageApiService) UpdateStoragePhysicalDiskUsageExecute(r ApiUpdateSto localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.storagePhysicalDiskUsage @@ -59187,7 +59187,7 @@ func (a *StorageApiService) UpdateStoragePureArrayExecute(r ApiUpdateStoragePure localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.storagePureArray @@ -59362,7 +59362,7 @@ func (a *StorageApiService) UpdateStorageSasExpanderExecute(r ApiUpdateStorageSa localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.storageSasExpander @@ -59537,7 +59537,7 @@ func (a *StorageApiService) UpdateStorageSasPortExecute(r ApiUpdateStorageSasPor localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.storageSasPort @@ -59712,7 +59712,7 @@ func (a *StorageApiService) UpdateStorageSpanExecute(r ApiUpdateStorageSpanReque localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.storageSpan @@ -59887,7 +59887,7 @@ func (a *StorageApiService) UpdateStorageStoragePolicyExecute(r ApiUpdateStorage localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.storageStoragePolicy @@ -60062,7 +60062,7 @@ func (a *StorageApiService) UpdateStorageVdMemberEpExecute(r ApiUpdateStorageVdM localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.storageVdMemberEp @@ -60237,7 +60237,7 @@ func (a *StorageApiService) UpdateStorageVirtualDriveExecute(r ApiUpdateStorageV localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.storageVirtualDrive @@ -60412,7 +60412,7 @@ func (a *StorageApiService) UpdateStorageVirtualDriveContainerExecute(r ApiUpdat localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.storageVirtualDriveContainer @@ -60587,7 +60587,7 @@ func (a *StorageApiService) UpdateStorageVirtualDriveExtensionExecute(r ApiUpdat localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.storageVirtualDriveExtension diff --git a/api_syslog.go b/api_syslog.go index ae7cdf8999..f8969104c1 100644 --- a/api_syslog.go +++ b/api_syslog.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -108,10 +108,10 @@ func (a *SyslogApiService) CreateSyslogPolicyExecute(r ApiCreateSyslogPolicyRequ localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.syslogPolicy @@ -773,52 +773,52 @@ func (a *SyslogApiService) GetSyslogPolicyInventoryListExecute(r ApiGetSyslogPol localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -1047,52 +1047,52 @@ func (a *SyslogApiService) GetSyslogPolicyListExecute(r ApiGetSyslogPolicyListRe localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -1282,7 +1282,7 @@ func (a *SyslogApiService) PatchSyslogPolicyExecute(r ApiPatchSyslogPolicyReques localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.syslogPolicy @@ -1457,7 +1457,7 @@ func (a *SyslogApiService) UpdateSyslogPolicyExecute(r ApiUpdateSyslogPolicyRequ localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.syslogPolicy diff --git a/api_tam.go b/api_tam.go index 70db1361b1..0150d8bc3b 100644 --- a/api_tam.go +++ b/api_tam.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -108,10 +108,10 @@ func (a *TamApiService) CreateTamAdvisoryCountExecute(r ApiCreateTamAdvisoryCoun localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.tamAdvisoryCount @@ -289,10 +289,10 @@ func (a *TamApiService) CreateTamAdvisoryDefinitionExecute(r ApiCreateTamAdvisor localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.tamAdvisoryDefinition @@ -470,10 +470,10 @@ func (a *TamApiService) CreateTamAdvisoryInfoExecute(r ApiCreateTamAdvisoryInfoR localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.tamAdvisoryInfo @@ -651,10 +651,10 @@ func (a *TamApiService) CreateTamAdvisoryInstanceExecute(r ApiCreateTamAdvisoryI localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.tamAdvisoryInstance @@ -832,10 +832,10 @@ func (a *TamApiService) CreateTamSecurityAdvisoryExecute(r ApiCreateTamSecurityA localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.tamSecurityAdvisory @@ -1912,52 +1912,52 @@ func (a *TamApiService) GetTamAdvisoryCountListExecute(r ApiGetTamAdvisoryCountL localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -2339,52 +2339,52 @@ func (a *TamApiService) GetTamAdvisoryDefinitionListExecute(r ApiGetTamAdvisoryD localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -2766,52 +2766,52 @@ func (a *TamApiService) GetTamAdvisoryInfoListExecute(r ApiGetTamAdvisoryInfoLis localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -3193,52 +3193,52 @@ func (a *TamApiService) GetTamAdvisoryInstanceListExecute(r ApiGetTamAdvisoryIns localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -3620,52 +3620,52 @@ func (a *TamApiService) GetTamSecurityAdvisoryListExecute(r ApiGetTamSecurityAdv localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -3855,7 +3855,7 @@ func (a *TamApiService) PatchTamAdvisoryCountExecute(r ApiPatchTamAdvisoryCountR localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.tamAdvisoryCount @@ -4030,7 +4030,7 @@ func (a *TamApiService) PatchTamAdvisoryDefinitionExecute(r ApiPatchTamAdvisoryD localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.tamAdvisoryDefinition @@ -4205,7 +4205,7 @@ func (a *TamApiService) PatchTamAdvisoryInfoExecute(r ApiPatchTamAdvisoryInfoReq localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.tamAdvisoryInfo @@ -4380,7 +4380,7 @@ func (a *TamApiService) PatchTamAdvisoryInstanceExecute(r ApiPatchTamAdvisoryIns localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.tamAdvisoryInstance @@ -4555,7 +4555,7 @@ func (a *TamApiService) PatchTamSecurityAdvisoryExecute(r ApiPatchTamSecurityAdv localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.tamSecurityAdvisory @@ -4730,7 +4730,7 @@ func (a *TamApiService) UpdateTamAdvisoryCountExecute(r ApiUpdateTamAdvisoryCoun localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.tamAdvisoryCount @@ -4905,7 +4905,7 @@ func (a *TamApiService) UpdateTamAdvisoryDefinitionExecute(r ApiUpdateTamAdvisor localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.tamAdvisoryDefinition @@ -5080,7 +5080,7 @@ func (a *TamApiService) UpdateTamAdvisoryInfoExecute(r ApiUpdateTamAdvisoryInfoR localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.tamAdvisoryInfo @@ -5255,7 +5255,7 @@ func (a *TamApiService) UpdateTamAdvisoryInstanceExecute(r ApiUpdateTamAdvisoryI localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.tamAdvisoryInstance @@ -5430,7 +5430,7 @@ func (a *TamApiService) UpdateTamSecurityAdvisoryExecute(r ApiUpdateTamSecurityA localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.tamSecurityAdvisory diff --git a/api_task.go b/api_task.go index f6ed2fb1c6..3cc54a5dfa 100644 --- a/api_task.go +++ b/api_task.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -107,10 +107,10 @@ func (a *TaskApiService) CreateTaskFabricMosScopedInventoryExecute(r ApiCreateTa localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.taskFabricMosScopedInventory @@ -288,10 +288,10 @@ func (a *TaskApiService) CreateTaskHitachiScopedInventoryExecute(r ApiCreateTask localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.taskHitachiScopedInventory @@ -469,10 +469,10 @@ func (a *TaskApiService) CreateTaskHyperFlexManagementScopedInventoryExecute(r A localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.taskHyperFlexManagementScopedInventory @@ -650,10 +650,10 @@ func (a *TaskApiService) CreateTaskHyperflexScopedInventoryExecute(r ApiCreateTa localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.taskHyperflexScopedInventory @@ -831,10 +831,10 @@ func (a *TaskApiService) CreateTaskMdsScopedInventoryExecute(r ApiCreateTaskMdsS localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.taskMdsScopedInventory @@ -1012,10 +1012,10 @@ func (a *TaskApiService) CreateTaskMdsSystemScopedInventoryExecute(r ApiCreateTa localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.taskMdsSystemScopedInventory @@ -1193,10 +1193,10 @@ func (a *TaskApiService) CreateTaskMerakiScopedInventoryExecute(r ApiCreateTaskM localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.taskMerakiScopedInventory @@ -1374,10 +1374,10 @@ func (a *TaskApiService) CreateTaskNetAppScopedInventoryExecute(r ApiCreateTaskN localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.taskNetAppScopedInventory @@ -1555,10 +1555,10 @@ func (a *TaskApiService) CreateTaskNexusScopedInventoryExecute(r ApiCreateTaskNe localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.taskNexusScopedInventory @@ -1736,10 +1736,10 @@ func (a *TaskApiService) CreateTaskNexusSystemScopedInventoryExecute(r ApiCreate localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.taskNexusSystemScopedInventory @@ -1917,10 +1917,10 @@ func (a *TaskApiService) CreateTaskNexusVlanScopedInventoryExecute(r ApiCreateTa localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.taskNexusVlanScopedInventory @@ -2098,10 +2098,10 @@ func (a *TaskApiService) CreateTaskPublicCloudScopedInventoryExecute(r ApiCreate localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.taskPublicCloudScopedInventory @@ -2279,10 +2279,10 @@ func (a *TaskApiService) CreateTaskPureScopedInventoryExecute(r ApiCreateTaskPur localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.taskPureScopedInventory @@ -2460,10 +2460,10 @@ func (a *TaskApiService) CreateTaskServerScopedInventoryExecute(r ApiCreateTaskS localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.taskServerScopedInventory diff --git a/api_techsupportmanagement.go b/api_techsupportmanagement.go index c6e7443e13..8750378f91 100644 --- a/api_techsupportmanagement.go +++ b/api_techsupportmanagement.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -108,10 +108,10 @@ func (a *TechsupportmanagementApiService) CreateTechsupportmanagementCollectionC localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.techsupportmanagementCollectionControlPolicy @@ -289,10 +289,10 @@ func (a *TechsupportmanagementApiService) CreateTechsupportmanagementTechSupport localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.techsupportmanagementTechSupportBundle @@ -943,52 +943,52 @@ func (a *TechsupportmanagementApiService) GetTechsupportmanagementCollectionCont localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -1370,52 +1370,52 @@ func (a *TechsupportmanagementApiService) GetTechsupportmanagementDownloadListEx localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -1797,52 +1797,52 @@ func (a *TechsupportmanagementApiService) GetTechsupportmanagementEndPointListEx localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -2224,52 +2224,52 @@ func (a *TechsupportmanagementApiService) GetTechsupportmanagementTechSupportBun localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -2651,52 +2651,52 @@ func (a *TechsupportmanagementApiService) GetTechsupportmanagementTechSupportSta localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -2886,7 +2886,7 @@ func (a *TechsupportmanagementApiService) PatchTechsupportmanagementCollectionCo localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.techsupportmanagementCollectionControlPolicy @@ -3061,7 +3061,7 @@ func (a *TechsupportmanagementApiService) UpdateTechsupportmanagementCollectionC localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.techsupportmanagementCollectionControlPolicy diff --git a/api_telemetry.go b/api_telemetry.go index fd13c40e7b..ba00e941a9 100644 --- a/api_telemetry.go +++ b/api_telemetry.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/api_terminal.go b/api_terminal.go index faa8e49a87..450fb72a2a 100644 --- a/api_terminal.go +++ b/api_terminal.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -297,52 +297,52 @@ func (a *TerminalApiService) GetTerminalAuditLogListExecute(r ApiGetTerminalAudi localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} diff --git a/api_terraform.go b/api_terraform.go index 2273f342e0..3362fe52e0 100644 --- a/api_terraform.go +++ b/api_terraform.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -108,10 +108,10 @@ func (a *TerraformApiService) CreateTerraformExecutorExecute(r ApiCreateTerrafor localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.terraformExecutor @@ -620,52 +620,52 @@ func (a *TerraformApiService) GetTerraformExecutorListExecute(r ApiGetTerraformE localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -855,7 +855,7 @@ func (a *TerraformApiService) PatchTerraformExecutorExecute(r ApiPatchTerraformE localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.terraformExecutor @@ -1030,7 +1030,7 @@ func (a *TerraformApiService) UpdateTerraformExecutorExecute(r ApiUpdateTerrafor localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.terraformExecutor diff --git a/api_thermal.go b/api_thermal.go index f420fadd2b..790b6afc53 100644 --- a/api_thermal.go +++ b/api_thermal.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -108,10 +108,10 @@ func (a *ThermalApiService) CreateThermalPolicyExecute(r ApiCreateThermalPolicyR localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.thermalPolicy @@ -773,52 +773,52 @@ func (a *ThermalApiService) GetThermalPolicyInventoryListExecute(r ApiGetThermal localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -1047,52 +1047,52 @@ func (a *ThermalApiService) GetThermalPolicyListExecute(r ApiGetThermalPolicyLis localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -1282,7 +1282,7 @@ func (a *ThermalApiService) PatchThermalPolicyExecute(r ApiPatchThermalPolicyReq localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.thermalPolicy @@ -1457,7 +1457,7 @@ func (a *ThermalApiService) UpdateThermalPolicyExecute(r ApiUpdateThermalPolicyR localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.thermalPolicy diff --git a/api_top.go b/api_top.go index 844fc74e4d..905c3763e5 100644 --- a/api_top.go +++ b/api_top.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -297,52 +297,52 @@ func (a *TopApiService) GetTopSystemListExecute(r ApiGetTopSystemListRequest) (* localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -532,7 +532,7 @@ func (a *TopApiService) PatchTopSystemExecute(r ApiPatchTopSystemRequest) (*TopS localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.topSystem @@ -707,7 +707,7 @@ func (a *TopApiService) UpdateTopSystemExecute(r ApiUpdateTopSystemRequest) (*To localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.topSystem diff --git a/api_ucsd.go b/api_ucsd.go index 8eb6aa9bc1..db9ca268cb 100644 --- a/api_ucsd.go +++ b/api_ucsd.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -439,52 +439,52 @@ func (a *UcsdApiService) GetUcsdBackupInfoListExecute(r ApiGetUcsdBackupInfoList localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} diff --git a/api_uuidpool.go b/api_uuidpool.go index 79de4c2076..59ea2121d1 100644 --- a/api_uuidpool.go +++ b/api_uuidpool.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -108,10 +108,10 @@ func (a *UuidpoolApiService) CreateUuidpoolPoolExecute(r ApiCreateUuidpoolPoolRe localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.uuidpoolPool @@ -289,10 +289,10 @@ func (a *UuidpoolApiService) CreateUuidpoolReservationExecute(r ApiCreateUuidpoo localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.uuidpoolReservation @@ -1085,52 +1085,52 @@ func (a *UuidpoolApiService) GetUuidpoolBlockListExecute(r ApiGetUuidpoolBlockLi localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -1512,52 +1512,52 @@ func (a *UuidpoolApiService) GetUuidpoolPoolListExecute(r ApiGetUuidpoolPoolList localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -1939,52 +1939,52 @@ func (a *UuidpoolApiService) GetUuidpoolPoolMemberListExecute(r ApiGetUuidpoolPo localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -2366,52 +2366,52 @@ func (a *UuidpoolApiService) GetUuidpoolReservationListExecute(r ApiGetUuidpoolR localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -2793,52 +2793,52 @@ func (a *UuidpoolApiService) GetUuidpoolUniverseListExecute(r ApiGetUuidpoolUniv localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -3220,52 +3220,52 @@ func (a *UuidpoolApiService) GetUuidpoolUuidLeaseListExecute(r ApiGetUuidpoolUui localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -3455,7 +3455,7 @@ func (a *UuidpoolApiService) PatchUuidpoolPoolExecute(r ApiPatchUuidpoolPoolRequ localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.uuidpoolPool @@ -3630,7 +3630,7 @@ func (a *UuidpoolApiService) UpdateUuidpoolPoolExecute(r ApiUpdateUuidpoolPoolRe localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.uuidpoolPool diff --git a/api_view.go b/api_view.go index 8aaddf822f..ea254b6819 100644 --- a/api_view.go +++ b/api_view.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -297,52 +297,52 @@ func (a *ViewApiService) GetViewHealthStatusListExecute(r ApiGetViewHealthStatus localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -724,52 +724,52 @@ func (a *ViewApiService) GetViewServerListExecute(r ApiGetViewServerListRequest) localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} diff --git a/api_virtualization.go b/api_virtualization.go index e85dec1a7d..3a449732c0 100644 --- a/api_virtualization.go +++ b/api_virtualization.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -108,10 +108,10 @@ func (a *VirtualizationApiService) CreateVirtualizationEsxiConsoleExecute(r ApiC localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.virtualizationEsxiConsole @@ -289,10 +289,10 @@ func (a *VirtualizationApiService) CreateVirtualizationVirtualMachineExecute(r A localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.virtualizationVirtualMachine @@ -801,52 +801,52 @@ func (a *VirtualizationApiService) GetVirtualizationEsxiConsoleListExecute(r Api localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -1228,52 +1228,52 @@ func (a *VirtualizationApiService) GetVirtualizationHostListExecute(r ApiGetVirt localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -1655,52 +1655,52 @@ func (a *VirtualizationApiService) GetVirtualizationVirtualMachineListExecute(r localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -2082,52 +2082,52 @@ func (a *VirtualizationApiService) GetVirtualizationVmwareClusterListExecute(r A localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -2509,52 +2509,52 @@ func (a *VirtualizationApiService) GetVirtualizationVmwareDatacenterListExecute( localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -3089,52 +3089,52 @@ func (a *VirtualizationApiService) GetVirtualizationVmwareDatastoreClusterListEx localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -3363,52 +3363,52 @@ func (a *VirtualizationApiService) GetVirtualizationVmwareDatastoreListExecute(r localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -3790,52 +3790,52 @@ func (a *VirtualizationApiService) GetVirtualizationVmwareDistributedNetworkList localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -4217,52 +4217,52 @@ func (a *VirtualizationApiService) GetVirtualizationVmwareDistributedSwitchListE localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -4644,52 +4644,52 @@ func (a *VirtualizationApiService) GetVirtualizationVmwareFolderListExecute(r Ap localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -5224,52 +5224,52 @@ func (a *VirtualizationApiService) GetVirtualizationVmwareHostGpuListExecute(r A localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -5498,52 +5498,52 @@ func (a *VirtualizationApiService) GetVirtualizationVmwareHostListExecute(r ApiG localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -5925,52 +5925,52 @@ func (a *VirtualizationApiService) GetVirtualizationVmwareKernelNetworkListExecu localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -6352,52 +6352,52 @@ func (a *VirtualizationApiService) GetVirtualizationVmwareNetworkListExecute(r A localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -6779,52 +6779,52 @@ func (a *VirtualizationApiService) GetVirtualizationVmwarePhysicalNetworkInterfa localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -7206,52 +7206,52 @@ func (a *VirtualizationApiService) GetVirtualizationVmwareProactiveHaListExecute localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -7633,52 +7633,52 @@ func (a *VirtualizationApiService) GetVirtualizationVmwareUplinkPortListExecute( localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -8060,52 +8060,52 @@ func (a *VirtualizationApiService) GetVirtualizationVmwareVcenterListExecute(r A localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -8487,52 +8487,52 @@ func (a *VirtualizationApiService) GetVirtualizationVmwareVirtualDiskListExecute localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -9067,52 +9067,52 @@ func (a *VirtualizationApiService) GetVirtualizationVmwareVirtualMachineGpuListE localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -9341,52 +9341,52 @@ func (a *VirtualizationApiService) GetVirtualizationVmwareVirtualMachineListExec localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -9768,52 +9768,52 @@ func (a *VirtualizationApiService) GetVirtualizationVmwareVirtualMachineSnapshot localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -10195,52 +10195,52 @@ func (a *VirtualizationApiService) GetVirtualizationVmwareVirtualNetworkInterfac localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -10622,52 +10622,52 @@ func (a *VirtualizationApiService) GetVirtualizationVmwareVirtualSwitchListExecu localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -10857,7 +10857,7 @@ func (a *VirtualizationApiService) PatchVirtualizationEsxiConsoleExecute(r ApiPa localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.virtualizationEsxiConsole @@ -11032,7 +11032,7 @@ func (a *VirtualizationApiService) PatchVirtualizationHostExecute(r ApiPatchVirt localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.virtualizationHost @@ -11207,7 +11207,7 @@ func (a *VirtualizationApiService) PatchVirtualizationVirtualMachineExecute(r Ap localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.virtualizationVirtualMachine @@ -11382,7 +11382,7 @@ func (a *VirtualizationApiService) PatchVirtualizationVmwareClusterExecute(r Api localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.virtualizationVmwareCluster @@ -11557,7 +11557,7 @@ func (a *VirtualizationApiService) PatchVirtualizationVmwareDatacenterExecute(r localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.virtualizationVmwareDatacenter @@ -11732,7 +11732,7 @@ func (a *VirtualizationApiService) PatchVirtualizationVmwareDatastoreExecute(r A localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.virtualizationVmwareDatastore @@ -11907,7 +11907,7 @@ func (a *VirtualizationApiService) PatchVirtualizationVmwareDatastoreClusterExec localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.virtualizationVmwareDatastoreCluster @@ -12082,7 +12082,7 @@ func (a *VirtualizationApiService) PatchVirtualizationVmwareDistributedNetworkEx localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.virtualizationVmwareDistributedNetwork @@ -12257,7 +12257,7 @@ func (a *VirtualizationApiService) PatchVirtualizationVmwareDistributedSwitchExe localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.virtualizationVmwareDistributedSwitch @@ -12432,7 +12432,7 @@ func (a *VirtualizationApiService) PatchVirtualizationVmwareFolderExecute(r ApiP localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.virtualizationVmwareFolder @@ -12607,7 +12607,7 @@ func (a *VirtualizationApiService) PatchVirtualizationVmwareHostExecute(r ApiPat localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.virtualizationVmwareHost @@ -12782,7 +12782,7 @@ func (a *VirtualizationApiService) PatchVirtualizationVmwareKernelNetworkExecute localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.virtualizationVmwareKernelNetwork @@ -12957,7 +12957,7 @@ func (a *VirtualizationApiService) PatchVirtualizationVmwareNetworkExecute(r Api localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.virtualizationVmwareNetwork @@ -13132,7 +13132,7 @@ func (a *VirtualizationApiService) PatchVirtualizationVmwarePhysicalNetworkInter localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.virtualizationVmwarePhysicalNetworkInterface @@ -13307,7 +13307,7 @@ func (a *VirtualizationApiService) PatchVirtualizationVmwareUplinkPortExecute(r localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.virtualizationVmwareUplinkPort @@ -13482,7 +13482,7 @@ func (a *VirtualizationApiService) PatchVirtualizationVmwareVirtualDiskExecute(r localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.virtualizationVmwareVirtualDisk @@ -13657,7 +13657,7 @@ func (a *VirtualizationApiService) PatchVirtualizationVmwareVirtualMachineExecut localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.virtualizationVmwareVirtualMachine @@ -13832,7 +13832,7 @@ func (a *VirtualizationApiService) PatchVirtualizationVmwareVirtualMachineSnapsh localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.virtualizationVmwareVirtualMachineSnapshot @@ -14007,7 +14007,7 @@ func (a *VirtualizationApiService) PatchVirtualizationVmwareVirtualNetworkInterf localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.virtualizationVmwareVirtualNetworkInterface @@ -14182,7 +14182,7 @@ func (a *VirtualizationApiService) PatchVirtualizationVmwareVirtualSwitchExecute localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.virtualizationVmwareVirtualSwitch @@ -14357,7 +14357,7 @@ func (a *VirtualizationApiService) UpdateVirtualizationEsxiConsoleExecute(r ApiU localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.virtualizationEsxiConsole @@ -14532,7 +14532,7 @@ func (a *VirtualizationApiService) UpdateVirtualizationHostExecute(r ApiUpdateVi localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.virtualizationHost @@ -14707,7 +14707,7 @@ func (a *VirtualizationApiService) UpdateVirtualizationVirtualMachineExecute(r A localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.virtualizationVirtualMachine @@ -14882,7 +14882,7 @@ func (a *VirtualizationApiService) UpdateVirtualizationVmwareClusterExecute(r Ap localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.virtualizationVmwareCluster @@ -15057,7 +15057,7 @@ func (a *VirtualizationApiService) UpdateVirtualizationVmwareDatacenterExecute(r localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.virtualizationVmwareDatacenter @@ -15232,7 +15232,7 @@ func (a *VirtualizationApiService) UpdateVirtualizationVmwareDatastoreExecute(r localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.virtualizationVmwareDatastore @@ -15407,7 +15407,7 @@ func (a *VirtualizationApiService) UpdateVirtualizationVmwareDatastoreClusterExe localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.virtualizationVmwareDatastoreCluster @@ -15582,7 +15582,7 @@ func (a *VirtualizationApiService) UpdateVirtualizationVmwareDistributedNetworkE localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.virtualizationVmwareDistributedNetwork @@ -15757,7 +15757,7 @@ func (a *VirtualizationApiService) UpdateVirtualizationVmwareDistributedSwitchEx localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.virtualizationVmwareDistributedSwitch @@ -15932,7 +15932,7 @@ func (a *VirtualizationApiService) UpdateVirtualizationVmwareFolderExecute(r Api localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.virtualizationVmwareFolder @@ -16107,7 +16107,7 @@ func (a *VirtualizationApiService) UpdateVirtualizationVmwareHostExecute(r ApiUp localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.virtualizationVmwareHost @@ -16282,7 +16282,7 @@ func (a *VirtualizationApiService) UpdateVirtualizationVmwareKernelNetworkExecut localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.virtualizationVmwareKernelNetwork @@ -16457,7 +16457,7 @@ func (a *VirtualizationApiService) UpdateVirtualizationVmwareNetworkExecute(r Ap localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.virtualizationVmwareNetwork @@ -16632,7 +16632,7 @@ func (a *VirtualizationApiService) UpdateVirtualizationVmwarePhysicalNetworkInte localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.virtualizationVmwarePhysicalNetworkInterface @@ -16807,7 +16807,7 @@ func (a *VirtualizationApiService) UpdateVirtualizationVmwareUplinkPortExecute(r localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.virtualizationVmwareUplinkPort @@ -16982,7 +16982,7 @@ func (a *VirtualizationApiService) UpdateVirtualizationVmwareVirtualDiskExecute( localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.virtualizationVmwareVirtualDisk @@ -17157,7 +17157,7 @@ func (a *VirtualizationApiService) UpdateVirtualizationVmwareVirtualMachineExecu localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.virtualizationVmwareVirtualMachine @@ -17332,7 +17332,7 @@ func (a *VirtualizationApiService) UpdateVirtualizationVmwareVirtualMachineSnaps localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.virtualizationVmwareVirtualMachineSnapshot @@ -17507,7 +17507,7 @@ func (a *VirtualizationApiService) UpdateVirtualizationVmwareVirtualNetworkInter localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.virtualizationVmwareVirtualNetworkInterface @@ -17682,7 +17682,7 @@ func (a *VirtualizationApiService) UpdateVirtualizationVmwareVirtualSwitchExecut localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.virtualizationVmwareVirtualSwitch diff --git a/api_vmedia.go b/api_vmedia.go index 69d91a9ece..325a208108 100644 --- a/api_vmedia.go +++ b/api_vmedia.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -108,10 +108,10 @@ func (a *VmediaApiService) CreateVmediaPolicyExecute(r ApiCreateVmediaPolicyRequ localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.vmediaPolicy @@ -773,52 +773,52 @@ func (a *VmediaApiService) GetVmediaPolicyInventoryListExecute(r ApiGetVmediaPol localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -1047,52 +1047,52 @@ func (a *VmediaApiService) GetVmediaPolicyListExecute(r ApiGetVmediaPolicyListRe localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -1282,7 +1282,7 @@ func (a *VmediaApiService) PatchVmediaPolicyExecute(r ApiPatchVmediaPolicyReques localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.vmediaPolicy @@ -1457,7 +1457,7 @@ func (a *VmediaApiService) UpdateVmediaPolicyExecute(r ApiUpdateVmediaPolicyRequ localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.vmediaPolicy diff --git a/api_vmrc.go b/api_vmrc.go index 486a11f768..d67eea475a 100644 --- a/api_vmrc.go +++ b/api_vmrc.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -108,10 +108,10 @@ func (a *VmrcApiService) CreateVmrcConsoleExecute(r ApiCreateVmrcConsoleRequest) localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.vmrcConsole @@ -478,52 +478,52 @@ func (a *VmrcApiService) GetVmrcConsoleListExecute(r ApiGetVmrcConsoleListReques localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -713,7 +713,7 @@ func (a *VmrcApiService) PatchVmrcConsoleExecute(r ApiPatchVmrcConsoleRequest) ( localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.vmrcConsole @@ -888,7 +888,7 @@ func (a *VmrcApiService) UpdateVmrcConsoleExecute(r ApiUpdateVmrcConsoleRequest) localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.vmrcConsole diff --git a/api_vnic.go b/api_vnic.go index c87eb7a478..d9718e15fb 100644 --- a/api_vnic.go +++ b/api_vnic.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -108,10 +108,10 @@ func (a *VnicApiService) CreateVnicEthAdapterPolicyExecute(r ApiCreateVnicEthAda localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.vnicEthAdapterPolicy @@ -289,10 +289,10 @@ func (a *VnicApiService) CreateVnicEthIfExecute(r ApiCreateVnicEthIfRequest) (*V localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.vnicEthIf @@ -470,10 +470,10 @@ func (a *VnicApiService) CreateVnicEthNetworkPolicyExecute(r ApiCreateVnicEthNet localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.vnicEthNetworkPolicy @@ -651,10 +651,10 @@ func (a *VnicApiService) CreateVnicEthQosPolicyExecute(r ApiCreateVnicEthQosPoli localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.vnicEthQosPolicy @@ -832,10 +832,10 @@ func (a *VnicApiService) CreateVnicFcAdapterPolicyExecute(r ApiCreateVnicFcAdapt localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.vnicFcAdapterPolicy @@ -1013,10 +1013,10 @@ func (a *VnicApiService) CreateVnicFcIfExecute(r ApiCreateVnicFcIfRequest) (*Vni localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.vnicFcIf @@ -1194,10 +1194,10 @@ func (a *VnicApiService) CreateVnicFcNetworkPolicyExecute(r ApiCreateVnicFcNetwo localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.vnicFcNetworkPolicy @@ -1375,10 +1375,10 @@ func (a *VnicApiService) CreateVnicFcQosPolicyExecute(r ApiCreateVnicFcQosPolicy localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.vnicFcQosPolicy @@ -1556,10 +1556,10 @@ func (a *VnicApiService) CreateVnicIscsiAdapterPolicyExecute(r ApiCreateVnicIscs localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.vnicIscsiAdapterPolicy @@ -1737,10 +1737,10 @@ func (a *VnicApiService) CreateVnicIscsiBootPolicyExecute(r ApiCreateVnicIscsiBo localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.vnicIscsiBootPolicy @@ -1918,10 +1918,10 @@ func (a *VnicApiService) CreateVnicIscsiStaticTargetPolicyExecute(r ApiCreateVni localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.vnicIscsiStaticTargetPolicy @@ -2099,10 +2099,10 @@ func (a *VnicApiService) CreateVnicLanConnectivityPolicyExecute(r ApiCreateVnicL localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.vnicLanConnectivityPolicy @@ -2280,10 +2280,10 @@ func (a *VnicApiService) CreateVnicSanConnectivityPolicyExecute(r ApiCreateVnicS localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.vnicSanConnectivityPolicy @@ -2461,10 +2461,10 @@ func (a *VnicApiService) CreateVnicVhbaTemplateExecute(r ApiCreateVnicVhbaTempla localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.vnicVhbaTemplate @@ -2642,10 +2642,10 @@ func (a *VnicApiService) CreateVnicVnicTemplateExecute(r ApiCreateVnicVnicTempla localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.vnicVnicTemplate @@ -5295,52 +5295,52 @@ func (a *VnicApiService) GetVnicEthAdapterPolicyInventoryListExecute(r ApiGetVni localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -5569,52 +5569,52 @@ func (a *VnicApiService) GetVnicEthAdapterPolicyListExecute(r ApiGetVnicEthAdapt localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -6149,52 +6149,52 @@ func (a *VnicApiService) GetVnicEthIfInventoryListExecute(r ApiGetVnicEthIfInven localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -6423,52 +6423,52 @@ func (a *VnicApiService) GetVnicEthIfListExecute(r ApiGetVnicEthIfListRequest) ( localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -7003,52 +7003,52 @@ func (a *VnicApiService) GetVnicEthNetworkPolicyInventoryListExecute(r ApiGetVni localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -7277,52 +7277,52 @@ func (a *VnicApiService) GetVnicEthNetworkPolicyListExecute(r ApiGetVnicEthNetwo localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -7857,52 +7857,52 @@ func (a *VnicApiService) GetVnicEthQosPolicyInventoryListExecute(r ApiGetVnicEth localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -8131,52 +8131,52 @@ func (a *VnicApiService) GetVnicEthQosPolicyListExecute(r ApiGetVnicEthQosPolicy localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -8558,52 +8558,52 @@ func (a *VnicApiService) GetVnicEthVethInventoryListExecute(r ApiGetVnicEthVethI localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -8985,52 +8985,52 @@ func (a *VnicApiService) GetVnicEthVnicInventoryListExecute(r ApiGetVnicEthVnicI localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -9565,52 +9565,52 @@ func (a *VnicApiService) GetVnicFcAdapterPolicyInventoryListExecute(r ApiGetVnic localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -9839,52 +9839,52 @@ func (a *VnicApiService) GetVnicFcAdapterPolicyListExecute(r ApiGetVnicFcAdapter localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -10419,52 +10419,52 @@ func (a *VnicApiService) GetVnicFcIfInventoryListExecute(r ApiGetVnicFcIfInvento localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -10693,52 +10693,52 @@ func (a *VnicApiService) GetVnicFcIfListExecute(r ApiGetVnicFcIfListRequest) (*V localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -11273,52 +11273,52 @@ func (a *VnicApiService) GetVnicFcNetworkPolicyInventoryListExecute(r ApiGetVnic localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -11547,52 +11547,52 @@ func (a *VnicApiService) GetVnicFcNetworkPolicyListExecute(r ApiGetVnicFcNetwork localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -12127,52 +12127,52 @@ func (a *VnicApiService) GetVnicFcQosPolicyInventoryListExecute(r ApiGetVnicFcQo localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -12401,52 +12401,52 @@ func (a *VnicApiService) GetVnicFcQosPolicyListExecute(r ApiGetVnicFcQosPolicyLi localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -12828,52 +12828,52 @@ func (a *VnicApiService) GetVnicFcVethInventoryListExecute(r ApiGetVnicFcVethInv localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -13255,52 +13255,52 @@ func (a *VnicApiService) GetVnicFcVhbaPolicyInventoryListExecute(r ApiGetVnicFcV localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -13835,52 +13835,52 @@ func (a *VnicApiService) GetVnicIscsiAdapterPolicyInventoryListExecute(r ApiGetV localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -14109,52 +14109,52 @@ func (a *VnicApiService) GetVnicIscsiAdapterPolicyListExecute(r ApiGetVnicIscsiA localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -14689,52 +14689,52 @@ func (a *VnicApiService) GetVnicIscsiBootPolicyInventoryListExecute(r ApiGetVnic localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -14963,52 +14963,52 @@ func (a *VnicApiService) GetVnicIscsiBootPolicyListExecute(r ApiGetVnicIscsiBoot localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -15543,52 +15543,52 @@ func (a *VnicApiService) GetVnicIscsiStaticTargetPolicyInventoryListExecute(r Ap localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -15817,52 +15817,52 @@ func (a *VnicApiService) GetVnicIscsiStaticTargetPolicyListExecute(r ApiGetVnicI localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -16397,52 +16397,52 @@ func (a *VnicApiService) GetVnicLanConnectivityPolicyInventoryListExecute(r ApiG localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -16671,52 +16671,52 @@ func (a *VnicApiService) GetVnicLanConnectivityPolicyListExecute(r ApiGetVnicLan localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -17098,52 +17098,52 @@ func (a *VnicApiService) GetVnicLcpStatusListExecute(r ApiGetVnicLcpStatusListRe localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -17678,52 +17678,52 @@ func (a *VnicApiService) GetVnicSanConnectivityPolicyInventoryListExecute(r ApiG localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -17952,52 +17952,52 @@ func (a *VnicApiService) GetVnicSanConnectivityPolicyListExecute(r ApiGetVnicSan localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -18379,52 +18379,52 @@ func (a *VnicApiService) GetVnicScpStatusListExecute(r ApiGetVnicScpStatusListRe localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -18806,52 +18806,52 @@ func (a *VnicApiService) GetVnicVhbaTemplateListExecute(r ApiGetVnicVhbaTemplate localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -19233,52 +19233,52 @@ func (a *VnicApiService) GetVnicVnicTemplateListExecute(r ApiGetVnicVnicTemplate localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -19468,7 +19468,7 @@ func (a *VnicApiService) PatchVnicEthAdapterPolicyExecute(r ApiPatchVnicEthAdapt localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.vnicEthAdapterPolicy @@ -19643,7 +19643,7 @@ func (a *VnicApiService) PatchVnicEthIfExecute(r ApiPatchVnicEthIfRequest) (*Vni localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.vnicEthIf @@ -19818,7 +19818,7 @@ func (a *VnicApiService) PatchVnicEthNetworkPolicyExecute(r ApiPatchVnicEthNetwo localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.vnicEthNetworkPolicy @@ -19993,7 +19993,7 @@ func (a *VnicApiService) PatchVnicEthQosPolicyExecute(r ApiPatchVnicEthQosPolicy localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.vnicEthQosPolicy @@ -20168,7 +20168,7 @@ func (a *VnicApiService) PatchVnicFcAdapterPolicyExecute(r ApiPatchVnicFcAdapter localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.vnicFcAdapterPolicy @@ -20343,7 +20343,7 @@ func (a *VnicApiService) PatchVnicFcIfExecute(r ApiPatchVnicFcIfRequest) (*VnicF localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.vnicFcIf @@ -20518,7 +20518,7 @@ func (a *VnicApiService) PatchVnicFcNetworkPolicyExecute(r ApiPatchVnicFcNetwork localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.vnicFcNetworkPolicy @@ -20693,7 +20693,7 @@ func (a *VnicApiService) PatchVnicFcQosPolicyExecute(r ApiPatchVnicFcQosPolicyRe localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.vnicFcQosPolicy @@ -20868,7 +20868,7 @@ func (a *VnicApiService) PatchVnicIscsiAdapterPolicyExecute(r ApiPatchVnicIscsiA localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.vnicIscsiAdapterPolicy @@ -21043,7 +21043,7 @@ func (a *VnicApiService) PatchVnicIscsiBootPolicyExecute(r ApiPatchVnicIscsiBoot localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.vnicIscsiBootPolicy @@ -21218,7 +21218,7 @@ func (a *VnicApiService) PatchVnicIscsiStaticTargetPolicyExecute(r ApiPatchVnicI localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.vnicIscsiStaticTargetPolicy @@ -21393,7 +21393,7 @@ func (a *VnicApiService) PatchVnicLanConnectivityPolicyExecute(r ApiPatchVnicLan localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.vnicLanConnectivityPolicy @@ -21568,7 +21568,7 @@ func (a *VnicApiService) PatchVnicSanConnectivityPolicyExecute(r ApiPatchVnicSan localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.vnicSanConnectivityPolicy @@ -21743,7 +21743,7 @@ func (a *VnicApiService) PatchVnicVhbaTemplateExecute(r ApiPatchVnicVhbaTemplate localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.vnicVhbaTemplate @@ -21918,7 +21918,7 @@ func (a *VnicApiService) PatchVnicVnicTemplateExecute(r ApiPatchVnicVnicTemplate localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.vnicVnicTemplate @@ -22093,7 +22093,7 @@ func (a *VnicApiService) UpdateVnicEthAdapterPolicyExecute(r ApiUpdateVnicEthAda localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.vnicEthAdapterPolicy @@ -22268,7 +22268,7 @@ func (a *VnicApiService) UpdateVnicEthIfExecute(r ApiUpdateVnicEthIfRequest) (*V localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.vnicEthIf @@ -22443,7 +22443,7 @@ func (a *VnicApiService) UpdateVnicEthNetworkPolicyExecute(r ApiUpdateVnicEthNet localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.vnicEthNetworkPolicy @@ -22618,7 +22618,7 @@ func (a *VnicApiService) UpdateVnicEthQosPolicyExecute(r ApiUpdateVnicEthQosPoli localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.vnicEthQosPolicy @@ -22793,7 +22793,7 @@ func (a *VnicApiService) UpdateVnicFcAdapterPolicyExecute(r ApiUpdateVnicFcAdapt localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.vnicFcAdapterPolicy @@ -22968,7 +22968,7 @@ func (a *VnicApiService) UpdateVnicFcIfExecute(r ApiUpdateVnicFcIfRequest) (*Vni localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.vnicFcIf @@ -23143,7 +23143,7 @@ func (a *VnicApiService) UpdateVnicFcNetworkPolicyExecute(r ApiUpdateVnicFcNetwo localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.vnicFcNetworkPolicy @@ -23318,7 +23318,7 @@ func (a *VnicApiService) UpdateVnicFcQosPolicyExecute(r ApiUpdateVnicFcQosPolicy localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.vnicFcQosPolicy @@ -23493,7 +23493,7 @@ func (a *VnicApiService) UpdateVnicIscsiAdapterPolicyExecute(r ApiUpdateVnicIscs localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.vnicIscsiAdapterPolicy @@ -23668,7 +23668,7 @@ func (a *VnicApiService) UpdateVnicIscsiBootPolicyExecute(r ApiUpdateVnicIscsiBo localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.vnicIscsiBootPolicy @@ -23843,7 +23843,7 @@ func (a *VnicApiService) UpdateVnicIscsiStaticTargetPolicyExecute(r ApiUpdateVni localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.vnicIscsiStaticTargetPolicy @@ -24018,7 +24018,7 @@ func (a *VnicApiService) UpdateVnicLanConnectivityPolicyExecute(r ApiUpdateVnicL localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.vnicLanConnectivityPolicy @@ -24193,7 +24193,7 @@ func (a *VnicApiService) UpdateVnicSanConnectivityPolicyExecute(r ApiUpdateVnicS localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.vnicSanConnectivityPolicy @@ -24368,7 +24368,7 @@ func (a *VnicApiService) UpdateVnicVhbaTemplateExecute(r ApiUpdateVnicVhbaTempla localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.vnicVhbaTemplate @@ -24543,7 +24543,7 @@ func (a *VnicApiService) UpdateVnicVnicTemplateExecute(r ApiUpdateVnicVnicTempla localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.vnicVnicTemplate diff --git a/api_vrf.go b/api_vrf.go index 6ecc9b187f..876d965e7d 100644 --- a/api_vrf.go +++ b/api_vrf.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -108,10 +108,10 @@ func (a *VrfApiService) CreateVrfVrfExecute(r ApiCreateVrfVrfRequest) (*VrfVrf, localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.vrfVrf @@ -620,52 +620,52 @@ func (a *VrfApiService) GetVrfVrfListExecute(r ApiGetVrfVrfListRequest) (*VrfVrf localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -855,7 +855,7 @@ func (a *VrfApiService) PatchVrfVrfExecute(r ApiPatchVrfVrfRequest) (*VrfVrf, *h localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.vrfVrf @@ -1030,7 +1030,7 @@ func (a *VrfApiService) UpdateVrfVrfExecute(r ApiUpdateVrfVrfRequest) (*VrfVrf, localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.vrfVrf diff --git a/api_workflow.go b/api_workflow.go index 89a89c6755..95932fe03b 100644 --- a/api_workflow.go +++ b/api_workflow.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -108,10 +108,10 @@ func (a *WorkflowApiService) CreateWorkflowAnsibleBatchExecutorExecute(r ApiCrea localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.workflowAnsibleBatchExecutor @@ -289,10 +289,10 @@ func (a *WorkflowApiService) CreateWorkflowBatchApiExecutorExecute(r ApiCreateWo localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.workflowBatchApiExecutor @@ -470,10 +470,10 @@ func (a *WorkflowApiService) CreateWorkflowCatalogItemDefinitionExecute(r ApiCre localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.workflowCatalogItemDefinition @@ -651,10 +651,10 @@ func (a *WorkflowApiService) CreateWorkflowCatalogServiceRequestExecute(r ApiCre localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.workflowCatalogServiceRequest @@ -832,10 +832,10 @@ func (a *WorkflowApiService) CreateWorkflowCustomDataTypeDefinitionExecute(r Api localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.workflowCustomDataTypeDefinition @@ -1013,10 +1013,10 @@ func (a *WorkflowApiService) CreateWorkflowErrorResponseHandlerExecute(r ApiCrea localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.workflowErrorResponseHandler @@ -1194,10 +1194,10 @@ func (a *WorkflowApiService) CreateWorkflowPowerShellBatchApiExecutorExecute(r A localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.workflowPowerShellBatchApiExecutor @@ -1375,10 +1375,10 @@ func (a *WorkflowApiService) CreateWorkflowRollbackWorkflowExecute(r ApiCreateWo localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.workflowRollbackWorkflow @@ -1556,10 +1556,10 @@ func (a *WorkflowApiService) CreateWorkflowServiceItemActionDefinitionExecute(r localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.workflowServiceItemActionDefinition @@ -1737,10 +1737,10 @@ func (a *WorkflowApiService) CreateWorkflowServiceItemActionInstanceExecute(r Ap localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.workflowServiceItemActionInstance @@ -1918,10 +1918,10 @@ func (a *WorkflowApiService) CreateWorkflowServiceItemDefinitionExecute(r ApiCre localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.workflowServiceItemDefinition @@ -2099,10 +2099,10 @@ func (a *WorkflowApiService) CreateWorkflowServiceItemHealthCheckDefinitionExecu localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.workflowServiceItemHealthCheckDefinition @@ -2280,10 +2280,10 @@ func (a *WorkflowApiService) CreateWorkflowServiceItemInstanceExecute(r ApiCreat localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.workflowServiceItemInstance @@ -2461,10 +2461,10 @@ func (a *WorkflowApiService) CreateWorkflowServiceItemOutputExecute(r ApiCreateW localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.workflowServiceItemOutput @@ -2642,10 +2642,10 @@ func (a *WorkflowApiService) CreateWorkflowSshBatchExecutorExecute(r ApiCreateWo localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.workflowSshBatchExecutor @@ -2823,10 +2823,10 @@ func (a *WorkflowApiService) CreateWorkflowTaskDefinitionExecute(r ApiCreateWork localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.workflowTaskDefinition @@ -3004,10 +3004,10 @@ func (a *WorkflowApiService) CreateWorkflowTemplateEvaluationExecute(r ApiCreate localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.workflowTemplateEvaluation @@ -3185,10 +3185,10 @@ func (a *WorkflowApiService) CreateWorkflowTemplateParserExecute(r ApiCreateWork localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.workflowTemplateParser @@ -3366,10 +3366,10 @@ func (a *WorkflowApiService) CreateWorkflowUiDisplayMetadataExecute(r ApiCreateW localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.workflowUiDisplayMetadata @@ -3547,10 +3547,10 @@ func (a *WorkflowApiService) CreateWorkflowWorkflowDefinitionExecute(r ApiCreate localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.workflowWorkflowDefinition @@ -3728,10 +3728,10 @@ func (a *WorkflowApiService) CreateWorkflowWorkflowInfoExecute(r ApiCreateWorkfl localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.workflowWorkflowInfo @@ -6796,52 +6796,52 @@ func (a *WorkflowApiService) GetWorkflowAnsibleBatchExecutorListExecute(r ApiGet localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -7223,52 +7223,52 @@ func (a *WorkflowApiService) GetWorkflowBatchApiExecutorListExecute(r ApiGetWork localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -7803,52 +7803,52 @@ func (a *WorkflowApiService) GetWorkflowCatalogItemDefinitionListExecute(r ApiGe localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -8077,52 +8077,52 @@ func (a *WorkflowApiService) GetWorkflowCatalogListExecute(r ApiGetWorkflowCatal localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -8504,52 +8504,52 @@ func (a *WorkflowApiService) GetWorkflowCatalogServiceRequestListExecute(r ApiGe localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -8931,52 +8931,52 @@ func (a *WorkflowApiService) GetWorkflowCustomDataTypeDefinitionListExecute(r Ap localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -9358,52 +9358,52 @@ func (a *WorkflowApiService) GetWorkflowErrorResponseHandlerListExecute(r ApiGet localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -9785,52 +9785,52 @@ func (a *WorkflowApiService) GetWorkflowPowerShellBatchApiExecutorListExecute(r localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -10212,52 +10212,52 @@ func (a *WorkflowApiService) GetWorkflowRollbackWorkflowListExecute(r ApiGetWork localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -10639,52 +10639,52 @@ func (a *WorkflowApiService) GetWorkflowServiceItemActionDefinitionListExecute(r localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -11066,52 +11066,52 @@ func (a *WorkflowApiService) GetWorkflowServiceItemActionInstanceListExecute(r A localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -11493,52 +11493,52 @@ func (a *WorkflowApiService) GetWorkflowServiceItemAttributeListExecute(r ApiGet localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -11920,52 +11920,52 @@ func (a *WorkflowApiService) GetWorkflowServiceItemDefinitionListExecute(r ApiGe localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -12347,52 +12347,52 @@ func (a *WorkflowApiService) GetWorkflowServiceItemHealthCheckDefinitionListExec localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -12774,52 +12774,52 @@ func (a *WorkflowApiService) GetWorkflowServiceItemHealthCheckExecutionListExecu localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -13201,52 +13201,52 @@ func (a *WorkflowApiService) GetWorkflowServiceItemInstanceListExecute(r ApiGetW localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -13628,52 +13628,52 @@ func (a *WorkflowApiService) GetWorkflowServiceItemOutputListExecute(r ApiGetWor localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -14055,52 +14055,52 @@ func (a *WorkflowApiService) GetWorkflowSshBatchExecutorListExecute(r ApiGetWork localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -14482,52 +14482,52 @@ func (a *WorkflowApiService) GetWorkflowTaskDebugLogListExecute(r ApiGetWorkflow localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -14909,52 +14909,52 @@ func (a *WorkflowApiService) GetWorkflowTaskDefinitionListExecute(r ApiGetWorkfl localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -15336,52 +15336,52 @@ func (a *WorkflowApiService) GetWorkflowTaskInfoListExecute(r ApiGetWorkflowTask localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -15763,52 +15763,52 @@ func (a *WorkflowApiService) GetWorkflowTaskMetadataListExecute(r ApiGetWorkflow localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -16190,52 +16190,52 @@ func (a *WorkflowApiService) GetWorkflowTemplateFunctionMetaListExecute(r ApiGet localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -16617,52 +16617,52 @@ func (a *WorkflowApiService) GetWorkflowUiDisplayMetadataListExecute(r ApiGetWor localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -17044,52 +17044,52 @@ func (a *WorkflowApiService) GetWorkflowWorkflowDefinitionListExecute(r ApiGetWo localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -17471,52 +17471,52 @@ func (a *WorkflowApiService) GetWorkflowWorkflowInfoListExecute(r ApiGetWorkflow localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -17898,52 +17898,52 @@ func (a *WorkflowApiService) GetWorkflowWorkflowMetadataListExecute(r ApiGetWork localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -18133,7 +18133,7 @@ func (a *WorkflowApiService) PatchWorkflowAnsibleBatchExecutorExecute(r ApiPatch localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.workflowAnsibleBatchExecutor @@ -18308,7 +18308,7 @@ func (a *WorkflowApiService) PatchWorkflowBatchApiExecutorExecute(r ApiPatchWork localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.workflowBatchApiExecutor @@ -18483,7 +18483,7 @@ func (a *WorkflowApiService) PatchWorkflowCatalogItemDefinitionExecute(r ApiPatc localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.workflowCatalogItemDefinition @@ -18658,7 +18658,7 @@ func (a *WorkflowApiService) PatchWorkflowCatalogServiceRequestExecute(r ApiPatc localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.workflowCatalogServiceRequest @@ -18833,7 +18833,7 @@ func (a *WorkflowApiService) PatchWorkflowCustomDataTypeDefinitionExecute(r ApiP localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.workflowCustomDataTypeDefinition @@ -19008,7 +19008,7 @@ func (a *WorkflowApiService) PatchWorkflowErrorResponseHandlerExecute(r ApiPatch localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.workflowErrorResponseHandler @@ -19183,7 +19183,7 @@ func (a *WorkflowApiService) PatchWorkflowPowerShellBatchApiExecutorExecute(r Ap localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.workflowPowerShellBatchApiExecutor @@ -19358,7 +19358,7 @@ func (a *WorkflowApiService) PatchWorkflowRollbackWorkflowExecute(r ApiPatchWork localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.workflowRollbackWorkflow @@ -19533,7 +19533,7 @@ func (a *WorkflowApiService) PatchWorkflowServiceItemActionDefinitionExecute(r A localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.workflowServiceItemActionDefinition @@ -19708,7 +19708,7 @@ func (a *WorkflowApiService) PatchWorkflowServiceItemActionInstanceExecute(r Api localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.workflowServiceItemActionInstance @@ -19883,7 +19883,7 @@ func (a *WorkflowApiService) PatchWorkflowServiceItemDefinitionExecute(r ApiPatc localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.workflowServiceItemDefinition @@ -20058,7 +20058,7 @@ func (a *WorkflowApiService) PatchWorkflowServiceItemHealthCheckDefinitionExecut localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.workflowServiceItemHealthCheckDefinition @@ -20233,7 +20233,7 @@ func (a *WorkflowApiService) PatchWorkflowServiceItemInstanceExecute(r ApiPatchW localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.workflowServiceItemInstance @@ -20408,7 +20408,7 @@ func (a *WorkflowApiService) PatchWorkflowServiceItemOutputExecute(r ApiPatchWor localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.workflowServiceItemOutput @@ -20583,7 +20583,7 @@ func (a *WorkflowApiService) PatchWorkflowSshBatchExecutorExecute(r ApiPatchWork localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.workflowSshBatchExecutor @@ -20758,7 +20758,7 @@ func (a *WorkflowApiService) PatchWorkflowTaskDefinitionExecute(r ApiPatchWorkfl localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.workflowTaskDefinition @@ -20933,7 +20933,7 @@ func (a *WorkflowApiService) PatchWorkflowTaskInfoExecute(r ApiPatchWorkflowTask localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.workflowTaskInfo @@ -21108,7 +21108,7 @@ func (a *WorkflowApiService) PatchWorkflowUiDisplayMetadataExecute(r ApiPatchWor localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.workflowUiDisplayMetadata @@ -21283,7 +21283,7 @@ func (a *WorkflowApiService) PatchWorkflowWorkflowDefinitionExecute(r ApiPatchWo localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.workflowWorkflowDefinition @@ -21458,7 +21458,7 @@ func (a *WorkflowApiService) PatchWorkflowWorkflowInfoExecute(r ApiPatchWorkflow localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.workflowWorkflowInfo @@ -21633,7 +21633,7 @@ func (a *WorkflowApiService) UpdateWorkflowAnsibleBatchExecutorExecute(r ApiUpda localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.workflowAnsibleBatchExecutor @@ -21808,7 +21808,7 @@ func (a *WorkflowApiService) UpdateWorkflowBatchApiExecutorExecute(r ApiUpdateWo localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.workflowBatchApiExecutor @@ -21983,7 +21983,7 @@ func (a *WorkflowApiService) UpdateWorkflowCatalogItemDefinitionExecute(r ApiUpd localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.workflowCatalogItemDefinition @@ -22158,7 +22158,7 @@ func (a *WorkflowApiService) UpdateWorkflowCatalogServiceRequestExecute(r ApiUpd localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.workflowCatalogServiceRequest @@ -22333,7 +22333,7 @@ func (a *WorkflowApiService) UpdateWorkflowCustomDataTypeDefinitionExecute(r Api localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.workflowCustomDataTypeDefinition @@ -22508,7 +22508,7 @@ func (a *WorkflowApiService) UpdateWorkflowErrorResponseHandlerExecute(r ApiUpda localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.workflowErrorResponseHandler @@ -22683,7 +22683,7 @@ func (a *WorkflowApiService) UpdateWorkflowPowerShellBatchApiExecutorExecute(r A localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.workflowPowerShellBatchApiExecutor @@ -22858,7 +22858,7 @@ func (a *WorkflowApiService) UpdateWorkflowRollbackWorkflowExecute(r ApiUpdateWo localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.workflowRollbackWorkflow @@ -23033,7 +23033,7 @@ func (a *WorkflowApiService) UpdateWorkflowServiceItemActionDefinitionExecute(r localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.workflowServiceItemActionDefinition @@ -23208,7 +23208,7 @@ func (a *WorkflowApiService) UpdateWorkflowServiceItemActionInstanceExecute(r Ap localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.workflowServiceItemActionInstance @@ -23383,7 +23383,7 @@ func (a *WorkflowApiService) UpdateWorkflowServiceItemDefinitionExecute(r ApiUpd localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.workflowServiceItemDefinition @@ -23558,7 +23558,7 @@ func (a *WorkflowApiService) UpdateWorkflowServiceItemHealthCheckDefinitionExecu localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.workflowServiceItemHealthCheckDefinition @@ -23733,7 +23733,7 @@ func (a *WorkflowApiService) UpdateWorkflowServiceItemInstanceExecute(r ApiUpdat localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.workflowServiceItemInstance @@ -23908,7 +23908,7 @@ func (a *WorkflowApiService) UpdateWorkflowServiceItemOutputExecute(r ApiUpdateW localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.workflowServiceItemOutput @@ -24083,7 +24083,7 @@ func (a *WorkflowApiService) UpdateWorkflowSshBatchExecutorExecute(r ApiUpdateWo localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.workflowSshBatchExecutor @@ -24258,7 +24258,7 @@ func (a *WorkflowApiService) UpdateWorkflowTaskDefinitionExecute(r ApiUpdateWork localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.workflowTaskDefinition @@ -24433,7 +24433,7 @@ func (a *WorkflowApiService) UpdateWorkflowTaskInfoExecute(r ApiUpdateWorkflowTa localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.workflowTaskInfo @@ -24608,7 +24608,7 @@ func (a *WorkflowApiService) UpdateWorkflowUiDisplayMetadataExecute(r ApiUpdateW localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.workflowUiDisplayMetadata @@ -24783,7 +24783,7 @@ func (a *WorkflowApiService) UpdateWorkflowWorkflowDefinitionExecute(r ApiUpdate localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.workflowWorkflowDefinition @@ -24958,7 +24958,7 @@ func (a *WorkflowApiService) UpdateWorkflowWorkflowInfoExecute(r ApiUpdateWorkfl localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.workflowWorkflowInfo diff --git a/api_workspace.go b/api_workspace.go index 6ac3b289dd..8eb65742e5 100644 --- a/api_workspace.go +++ b/api_workspace.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -108,10 +108,10 @@ func (a *WorkspaceApiService) CreateWorkspaceFolderExecute(r ApiCreateWorkspaceF localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } if r.ifNoneMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-None-Match", r.ifNoneMatch, "simple", "") } // body params localVarPostBody = r.workspaceFolder @@ -620,52 +620,52 @@ func (a *WorkspaceApiService) GetWorkspaceFolderListExecute(r ApiGetWorkspaceFol localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "") } else { var defaultValue string = "" r.filter = &defaultValue } if r.orderby != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "") } if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$top", r.top, "form", "") } else { var defaultValue int32 = 100 r.top = &defaultValue } if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$skip", r.skip, "form", "") } else { var defaultValue int32 = 0 r.skip = &defaultValue } if r.select_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$select", r.select_, "form", "") } else { var defaultValue string = "" r.select_ = &defaultValue } if r.expand != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$expand", r.expand, "form", "") } if r.apply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$apply", r.apply, "form", "") } if r.count != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$count", r.count, "form", "") } if r.inlinecount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "$inlinecount", r.inlinecount, "form", "") } else { var defaultValue string = "allpages" r.inlinecount = &defaultValue } if r.at != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "at", r.at, "form", "") } if r.tags != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -855,7 +855,7 @@ func (a *WorkspaceApiService) PatchWorkspaceFolderExecute(r ApiPatchWorkspaceFol localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.workspaceFolder @@ -1030,7 +1030,7 @@ func (a *WorkspaceApiService) UpdateWorkspaceFolderExecute(r ApiUpdateWorkspaceF localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.ifMatch != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "If-Match", r.ifMatch, "simple", "") } // body params localVarPostBody = r.workspaceFolder diff --git a/client.go b/client.go index f7053b4c0f..0e85ee97c0 100644 --- a/client.go +++ b/client.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -43,7 +43,7 @@ var ( queryDescape = strings.NewReplacer("%5B", "[", "%5D", "]") ) -// APIClient manages communication with the Cisco Intersight API v1.0.11-17956 +// APIClient manages communication with the Cisco Intersight API v1.0.11-18012 // In most cases there should be only one, shared, APIClient. type APIClient struct { cfg *Configuration @@ -474,7 +474,7 @@ func parameterValueToString(obj interface{}, key string) string { // parameterAddToHeaderOrQuery adds the provided object to the request header or url query // supporting deep object syntax -func parameterAddToHeaderOrQuery(headerOrQueryParams interface{}, keyPrefix string, obj interface{}, collectionType string) { +func parameterAddToHeaderOrQuery(headerOrQueryParams interface{}, keyPrefix string, obj interface{}, style string, collectionType string) { var v = reflect.ValueOf(obj) var value = "" if v == reflect.ValueOf(nil) { @@ -490,11 +490,11 @@ func parameterAddToHeaderOrQuery(headerOrQueryParams interface{}, keyPrefix stri if err != nil { return } - parameterAddToHeaderOrQuery(headerOrQueryParams, keyPrefix, dataMap, collectionType) + parameterAddToHeaderOrQuery(headerOrQueryParams, keyPrefix, dataMap, style, collectionType) return } if t, ok := obj.(time.Time); ok { - parameterAddToHeaderOrQuery(headerOrQueryParams, keyPrefix, t.Format(time.RFC3339), collectionType) + parameterAddToHeaderOrQuery(headerOrQueryParams, keyPrefix, t.Format(time.RFC3339Nano), style, collectionType) return } value = v.Type().String() + " value" @@ -506,7 +506,11 @@ func parameterAddToHeaderOrQuery(headerOrQueryParams interface{}, keyPrefix stri var lenIndValue = indValue.Len() for i := 0; i < lenIndValue; i++ { var arrayValue = indValue.Index(i) - parameterAddToHeaderOrQuery(headerOrQueryParams, keyPrefix, arrayValue.Interface(), collectionType) + var keyPrefixForCollectionType = keyPrefix + if style == "deepObject" { + keyPrefixForCollectionType = keyPrefix + "[" + strconv.Itoa(i) + "]" + } + parameterAddToHeaderOrQuery(headerOrQueryParams, keyPrefixForCollectionType, arrayValue.Interface(), style, collectionType) } return @@ -518,14 +522,14 @@ func parameterAddToHeaderOrQuery(headerOrQueryParams interface{}, keyPrefix stri iter := indValue.MapRange() for iter.Next() { k, v := iter.Key(), iter.Value() - parameterAddToHeaderOrQuery(headerOrQueryParams, fmt.Sprintf("%s[%s]", keyPrefix, k.String()), v.Interface(), collectionType) + parameterAddToHeaderOrQuery(headerOrQueryParams, fmt.Sprintf("%s[%s]", keyPrefix, k.String()), v.Interface(), style, collectionType) } return case reflect.Interface: fallthrough case reflect.Ptr: - parameterAddToHeaderOrQuery(headerOrQueryParams, keyPrefix, v.Elem().Interface(), collectionType) + parameterAddToHeaderOrQuery(headerOrQueryParams, keyPrefix, v.Elem().Interface(), style, collectionType) return case reflect.Int, reflect.Int8, reflect.Int16, @@ -846,18 +850,6 @@ func addFile(w *multipart.Writer, fieldName, path string) error { return err } -// Prevent trying to import "fmt" -func reportError(format string, a ...interface{}) error { - return fmt.Errorf(format, a...) -} - -// A wrapper for strict JSON decoding -func newStrictDecoder(data []byte) *json.Decoder { - dec := json.NewDecoder(bytes.NewBuffer(data)) - dec.DisallowUnknownFields() - return dec -} - // Set request body from an interface{} func setBody(body interface{}, contentType string) (bodyBuf *bytes.Buffer, err error) { if bodyBuf == nil { diff --git a/configuration.go b/configuration.go index ccf823843e..52206df85b 100644 --- a/configuration.go +++ b/configuration.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -96,7 +96,7 @@ type Configuration struct { func NewConfiguration() *Configuration { cfg := &Configuration{ DefaultHeader: make(map[string]string), - UserAgent: "OpenAPI-Generator/1.0.11.17956/go", + UserAgent: "OpenAPI-Generator/1.0.11.18012/go", Debug: false, Servers: ServerConfigurations{ { diff --git a/docs/NetworkElementSummary.md b/docs/NetworkElementSummary.md index 61417ecc6c..1f6608523b 100644 --- a/docs/NetworkElementSummary.md +++ b/docs/NetworkElementSummary.md @@ -69,6 +69,7 @@ Name | Type | Description | Notes **SystemUpTime** | Pointer to **string** | System up time of the switch. | [optional] **Thermal** | Pointer to **string** | The Thermal status of the fabric interconnect. * `unknown` - The default state of the sensor (in case no data is received). * `ok` - State of the sensor indicating the sensor's temperature range is okay. * `upper-non-recoverable` - State of the sensor indicating that the temperature is extremely high above normal range. * `upper-critical` - State of the sensor indicating that the temperature is above normal range. * `upper-non-critical` - State of the sensor indicating that the temperature is a little above the normal range. * `lower-non-critical` - State of the sensor indicating that the temperature is a little below the normal range. * `lower-critical` - State of the sensor indicating that the temperature is below normal range. * `lower-non-recoverable` - State of the sensor indicating that the temperature is extremely below normal range. | [optional] [default to "unknown"] **TotalMemory** | Pointer to **int64** | Total available memory on this switch platform. | [optional] [readonly] +**UserLabel** | Pointer to **string** | The user defined label assigned to the server. | [optional] [readonly] **Vendor** | Pointer to **string** | This field identifies the vendor of the given component. | [optional] [readonly] **Version** | Pointer to **string** | Firmware version of the switch. | [optional] [readonly] **InventoryParent** | Pointer to [**NullableMoBaseMoRelationship**](MoBaseMoRelationship.md) | | [optional] @@ -1718,6 +1719,31 @@ SetTotalMemory sets TotalMemory field to given value. HasTotalMemory returns a boolean if a field has been set. +### GetUserLabel + +`func (o *NetworkElementSummary) GetUserLabel() string` + +GetUserLabel returns the UserLabel field if non-nil, zero value otherwise. + +### GetUserLabelOk + +`func (o *NetworkElementSummary) GetUserLabelOk() (*string, bool)` + +GetUserLabelOk returns a tuple with the UserLabel field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUserLabel + +`func (o *NetworkElementSummary) SetUserLabel(v string)` + +SetUserLabel sets UserLabel field to given value. + +### HasUserLabel + +`func (o *NetworkElementSummary) HasUserLabel() bool` + +HasUserLabel returns a boolean if a field has been set. + ### GetVendor `func (o *NetworkElementSummary) GetVendor() string` diff --git a/docs/TelemetryDruidFilter.md b/docs/TelemetryDruidFilter.md index cd36ee43bb..5f95e8d3f9 100644 --- a/docs/TelemetryDruidFilter.md +++ b/docs/TelemetryDruidFilter.md @@ -10,13 +10,13 @@ Name | Type | Description | Notes **ExtractionFn** | Pointer to [**TelemetryDruidExtractionFunction**](TelemetryDruidExtractionFunction.md) | | [optional] **Column** | **string** | Input column or virtual column name to filter. | **MatchValueType** | **string** | String specifying the type of bounds to match. For example STRING, LONG, DOUBLE, FLOAT, ARRAY<STRING>, ARRAY<LONG>, or any other Druid type. The matchValueType determines how Druid interprets the matchValue to assist in converting to the type of the matched column and also defines the type of comparison used when matching values. | -**MatchValue** | **map[string]interface{}** | Value to match, must not be null. | +**MatchValue** | **interface{}** | Value to match, must not be null. | **Dimensions** | [**[]TelemetryDruidDimensionSpec**](TelemetryDruidDimensionSpec.md) | A list of DimensionSpecs, making it possible to apply an extraction function if needed. | **Fields** | [**[]TelemetryDruidFilter**](TelemetryDruidFilter.md) | | **Field** | [**TelemetryDruidFilter**](TelemetryDruidFilter.md) | | **Values** | **[]string** | List of string value to match. | -**Lower** | Pointer to **map[string]interface{}** | Lower bound value to match. At least one of lower or upper must not be null. | [optional] -**Upper** | Pointer to **map[string]interface{}** | Upper bound value to match. At least one of lower or upper must not be null. | [optional] +**Lower** | Pointer to **interface{}** | Lower bound value to match. At least one of lower or upper must not be null. | [optional] +**Upper** | Pointer to **interface{}** | Upper bound value to match. At least one of lower or upper must not be null. | [optional] **LowerStrict** | Pointer to **bool** | Boolean indicating whether to perform strict comparison on the lower bound (\">\" instead of \">=\"). | [optional] **UpperStrict** | Pointer to **bool** | Boolean indicating whether to perform strict comparison on the upper bound (\"<\" instead of \"<=\"). | [optional] **Ordering** | Pointer to **string** | String that specifies the sorting order to use when comparing values against the bound. lexicographic - Sorts values by converting Strings to their UTF-8 byte array representations and comparing lexicographically, byte-by-byte. alphanumeric - Suitable for strings with both numeric and non-numeric content, e.g., \"file12 sorts after file2\" This ordering is not suitable for numbers with decimal points or negative numbers. For example, \"1.3\" precedes \"1.15\" in this ordering because \"15\" has more significant digits than \"3\". Negative numbers are sorted after positive numbers (because numeric characters precede the \"-\" in the negative numbers). numeric - Sorts values as numbers, supports integers and floating point values. Negative values are supported. This sorting order will try to parse all string values as numbers. Unparseable values are treated as nulls, and nulls precede numbers. When comparing two unparseable values (e.g., \"hello\" and \"world\"), this ordering will sort by comparing the unparsed strings lexicographically. strlen - Sorts values by their string lengths. When there is a tie, this comparator falls back to using the String compareTo method. version - Sorts values as versions, e.g., \"10.0 sorts after 9.0\", \"1.0.0-SNAPSHOT sorts after 1.0.0\". | [optional] @@ -32,7 +32,7 @@ Name | Type | Description | Notes ### NewTelemetryDruidFilter -`func NewTelemetryDruidFilter(type_ string, dimension string, value string, column string, matchValueType string, matchValue map[string]interface{}, dimensions []TelemetryDruidDimensionSpec, fields []TelemetryDruidFilter, field TelemetryDruidFilter, values []string, pattern string, intervals []string, query TelemetryDruidQuerySpec, expression string, ) *TelemetryDruidFilter` +`func NewTelemetryDruidFilter(type_ string, dimension string, value string, column string, matchValueType string, matchValue interface{}, dimensions []TelemetryDruidDimensionSpec, fields []TelemetryDruidFilter, field TelemetryDruidFilter, values []string, pattern string, intervals []string, query TelemetryDruidQuerySpec, expression string, ) *TelemetryDruidFilter` NewTelemetryDruidFilter instantiates a new TelemetryDruidFilter object This constructor will assign default values to properties that have it defined, @@ -174,24 +174,34 @@ SetMatchValueType sets MatchValueType field to given value. ### GetMatchValue -`func (o *TelemetryDruidFilter) GetMatchValue() map[string]interface{}` +`func (o *TelemetryDruidFilter) GetMatchValue() interface{}` GetMatchValue returns the MatchValue field if non-nil, zero value otherwise. ### GetMatchValueOk -`func (o *TelemetryDruidFilter) GetMatchValueOk() (*map[string]interface{}, bool)` +`func (o *TelemetryDruidFilter) GetMatchValueOk() (*interface{}, bool)` GetMatchValueOk returns a tuple with the MatchValue field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetMatchValue -`func (o *TelemetryDruidFilter) SetMatchValue(v map[string]interface{})` +`func (o *TelemetryDruidFilter) SetMatchValue(v interface{})` SetMatchValue sets MatchValue field to given value. +### SetMatchValueNil + +`func (o *TelemetryDruidFilter) SetMatchValueNil(b bool)` + + SetMatchValueNil sets the value for MatchValue to be an explicit nil + +### UnsetMatchValue +`func (o *TelemetryDruidFilter) UnsetMatchValue()` + +UnsetMatchValue ensures that no value is present for MatchValue, not even an explicit nil ### GetDimensions `func (o *TelemetryDruidFilter) GetDimensions() []TelemetryDruidDimensionSpec` @@ -274,20 +284,20 @@ SetValues sets Values field to given value. ### GetLower -`func (o *TelemetryDruidFilter) GetLower() map[string]interface{}` +`func (o *TelemetryDruidFilter) GetLower() interface{}` GetLower returns the Lower field if non-nil, zero value otherwise. ### GetLowerOk -`func (o *TelemetryDruidFilter) GetLowerOk() (*map[string]interface{}, bool)` +`func (o *TelemetryDruidFilter) GetLowerOk() (*interface{}, bool)` GetLowerOk returns a tuple with the Lower field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetLower -`func (o *TelemetryDruidFilter) SetLower(v map[string]interface{})` +`func (o *TelemetryDruidFilter) SetLower(v interface{})` SetLower sets Lower field to given value. @@ -297,22 +307,32 @@ SetLower sets Lower field to given value. HasLower returns a boolean if a field has been set. +### SetLowerNil + +`func (o *TelemetryDruidFilter) SetLowerNil(b bool)` + + SetLowerNil sets the value for Lower to be an explicit nil + +### UnsetLower +`func (o *TelemetryDruidFilter) UnsetLower()` + +UnsetLower ensures that no value is present for Lower, not even an explicit nil ### GetUpper -`func (o *TelemetryDruidFilter) GetUpper() map[string]interface{}` +`func (o *TelemetryDruidFilter) GetUpper() interface{}` GetUpper returns the Upper field if non-nil, zero value otherwise. ### GetUpperOk -`func (o *TelemetryDruidFilter) GetUpperOk() (*map[string]interface{}, bool)` +`func (o *TelemetryDruidFilter) GetUpperOk() (*interface{}, bool)` GetUpperOk returns a tuple with the Upper field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetUpper -`func (o *TelemetryDruidFilter) SetUpper(v map[string]interface{})` +`func (o *TelemetryDruidFilter) SetUpper(v interface{})` SetUpper sets Upper field to given value. @@ -322,6 +342,16 @@ SetUpper sets Upper field to given value. HasUpper returns a boolean if a field has been set. +### SetUpperNil + +`func (o *TelemetryDruidFilter) SetUpperNil(b bool)` + + SetUpperNil sets the value for Upper to be an explicit nil + +### UnsetUpper +`func (o *TelemetryDruidFilter) UnsetUpper()` + +UnsetUpper ensures that no value is present for Upper, not even an explicit nil ### GetLowerStrict `func (o *TelemetryDruidFilter) GetLowerStrict() bool` diff --git a/docs/WorkflowEnumEntry.md b/docs/WorkflowEnumEntry.md index 0afa1a7bc4..b0c0634a4c 100644 --- a/docs/WorkflowEnumEntry.md +++ b/docs/WorkflowEnumEntry.md @@ -6,8 +6,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **ClassId** | **string** | The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. | [default to "workflow.EnumEntry"] **ObjectType** | **string** | The fully-qualified name of the instantiated, concrete type. The value should be the same as the 'ClassId' property. | [default to "workflow.EnumEntry"] -**Label** | Pointer to **string** | Label for the enum value. A user friendly short string to identify the enum value. Label can only contain letters (a-z, A-Z), numbers (0-9), hyphen (-), period (.), colon (:), space ( ), single quote ('), forward slash (/), or an underscore (_) and must have an alphanumeric character. | [optional] -**Value** | Pointer to **string** | Enum value for this enum entry. Value will be passed to the workflow as string type for execution. Value can only contain letters (a-z, A-Z), numbers (0-9), hyphen (-), period (.), colon (:), space ( ), forward slash (/), or an underscore (_). | [optional] +**Label** | Pointer to **string** | Label for the enum value. A user friendly short string to identify the enum value. Label can only contain letters (a-z, A-Z), numbers (0-9), hyphen (-), period (.), colon (:), space ( ), single quote ('), forward slash (/), round parenthesis ( () ), or an underscore (_) and must have an alphanumeric character. | [optional] +**Value** | Pointer to **string** | Enum value for this enum entry. Value will be passed to the workflow as string type for execution. Value can only contain letters (a-z, A-Z), numbers (0-9), hyphen (-), period (.), colon (:), space ( ), round parenthesis ( () ), forward slash (/), or an underscore (_). | [optional] ## Methods diff --git a/docs/WorkflowTargetProperty.md b/docs/WorkflowTargetProperty.md index d6078deb00..ec89e6d085 100644 --- a/docs/WorkflowTargetProperty.md +++ b/docs/WorkflowTargetProperty.md @@ -9,6 +9,7 @@ Name | Type | Description | Notes **ConnectorAttribute** | Pointer to **string** | A singleton value which will contain the path to connector object from the selected object. | [optional] **ConstraintAttributes** | Pointer to **[]string** | | [optional] **DisplayAttributes** | Pointer to **[]string** | | [optional] +**PlatformType** | Pointer to **[]string** | | [optional] **Selector** | Pointer to **string** | Field to hold an Intersight API along with an optional filter to narrow down the search options for target device. | [optional] **SelectorProperty** | Pointer to [**NullableWorkflowSelectorProperty**](WorkflowSelectorProperty.md) | | [optional] **SupportedObjects** | Pointer to **[]string** | | [optional] @@ -167,6 +168,41 @@ HasDisplayAttributes returns a boolean if a field has been set. `func (o *WorkflowTargetProperty) UnsetDisplayAttributes()` UnsetDisplayAttributes ensures that no value is present for DisplayAttributes, not even an explicit nil +### GetPlatformType + +`func (o *WorkflowTargetProperty) GetPlatformType() []string` + +GetPlatformType returns the PlatformType field if non-nil, zero value otherwise. + +### GetPlatformTypeOk + +`func (o *WorkflowTargetProperty) GetPlatformTypeOk() (*[]string, bool)` + +GetPlatformTypeOk returns a tuple with the PlatformType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPlatformType + +`func (o *WorkflowTargetProperty) SetPlatformType(v []string)` + +SetPlatformType sets PlatformType field to given value. + +### HasPlatformType + +`func (o *WorkflowTargetProperty) HasPlatformType() bool` + +HasPlatformType returns a boolean if a field has been set. + +### SetPlatformTypeNil + +`func (o *WorkflowTargetProperty) SetPlatformTypeNil(b bool)` + + SetPlatformTypeNil sets the value for PlatformType to be an explicit nil + +### UnsetPlatformType +`func (o *WorkflowTargetProperty) UnsetPlatformType()` + +UnsetPlatformType ensures that no value is present for PlatformType, not even an explicit nil ### GetSelector `func (o *WorkflowTargetProperty) GetSelector() string` diff --git a/model_aaa_abstract_audit_record.go b/model_aaa_abstract_audit_record.go index ad279a5de5..94c72d1a60 100644 --- a/model_aaa_abstract_audit_record.go +++ b/model_aaa_abstract_audit_record.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -95,6 +95,11 @@ func (o *AaaAbstractAuditRecord) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "aaa.AuditRecord" of the ClassId field. +func (o *AaaAbstractAuditRecord) GetDefaultClassId() interface{} { + return "aaa.AuditRecord" +} + // GetObjectType returns the ObjectType field value func (o *AaaAbstractAuditRecord) GetObjectType() string { if o == nil { @@ -119,6 +124,11 @@ func (o *AaaAbstractAuditRecord) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "aaa.AuditRecord" of the ObjectType field. +func (o *AaaAbstractAuditRecord) GetDefaultObjectType() interface{} { + return "aaa.AuditRecord" +} + // GetEvent returns the Event field value if set, zero value otherwise. func (o *AaaAbstractAuditRecord) GetEvent() string { if o == nil || IsNil(o.Event) { @@ -172,7 +182,7 @@ func (o *AaaAbstractAuditRecord) GetMoDisplayNamesOk() (*interface{}, bool) { // HasMoDisplayNames returns a boolean if a field has been set. func (o *AaaAbstractAuditRecord) HasMoDisplayNames() bool { - if o != nil && IsNil(o.MoDisplayNames) { + if o != nil && !IsNil(o.MoDisplayNames) { return true } @@ -269,7 +279,7 @@ func (o *AaaAbstractAuditRecord) GetRequestOk() (*interface{}, bool) { // HasRequest returns a boolean if a field has been set. func (o *AaaAbstractAuditRecord) HasRequest() bool { - if o != nil && IsNil(o.Request) { + if o != nil && !IsNil(o.Request) { return true } @@ -406,7 +416,13 @@ func (o AaaAbstractAuditRecord) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Event) { toSerialize["Event"] = o.Event @@ -449,6 +465,13 @@ func (o *AaaAbstractAuditRecord) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -458,11 +481,23 @@ func (o *AaaAbstractAuditRecord) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type AaaAbstractAuditRecordWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. The enum values provides the list of concrete types that can be instantiated from this abstract type. ClassId string `json:"ClassId"` diff --git a/model_aaa_audit_record.go b/model_aaa_audit_record.go index bf51912c90..8749d2a7a4 100644 --- a/model_aaa_audit_record.go +++ b/model_aaa_audit_record.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -32,7 +32,7 @@ type AaaAuditRecord struct { // The user-friendly label for the object type that was changed. AffectedObjectTypeLabel *string `json:"AffectedObjectTypeLabel,omitempty"` // The email of the associated user that made the change. In case the user is later deleted, we still have some reference to the information. - Email *string `json:"Email,omitempty"` + Email *string "json:\"Email,omitempty\" validate:\"regexp=^$|^[a-zA-Z0-9.!#$%&'*+\\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\\\\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$\"" // The instance id of AuditRecordLocal, which is used to identify if the comming AuditRecordLocal was already processed before. InstId *string `json:"InstId,omitempty"` // The sessionId in which the user made the change. In case that the session is later deleted, we still have some reference to the information. @@ -98,6 +98,11 @@ func (o *AaaAuditRecord) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "aaa.AuditRecord" of the ClassId field. +func (o *AaaAuditRecord) GetDefaultClassId() interface{} { + return "aaa.AuditRecord" +} + // GetObjectType returns the ObjectType field value func (o *AaaAuditRecord) GetObjectType() string { if o == nil { @@ -122,6 +127,11 @@ func (o *AaaAuditRecord) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "aaa.AuditRecord" of the ObjectType field. +func (o *AaaAuditRecord) GetDefaultObjectType() interface{} { + return "aaa.AuditRecord" +} + // GetAffectedObjectTypeLabel returns the AffectedObjectTypeLabel field value if set, zero value otherwise. func (o *AaaAuditRecord) GetAffectedObjectTypeLabel() string { if o == nil || IsNil(o.AffectedObjectTypeLabel) { @@ -493,7 +503,13 @@ func (o AaaAuditRecord) ToMap() (map[string]interface{}, error) { if errAaaAbstractAuditRecord != nil { return map[string]interface{}{}, errAaaAbstractAuditRecord } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.AffectedObjectTypeLabel) { toSerialize["AffectedObjectTypeLabel"] = o.AffectedObjectTypeLabel @@ -542,6 +558,13 @@ func (o *AaaAuditRecord) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -551,11 +574,23 @@ func (o *AaaAuditRecord) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type AaaAuditRecordWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` @@ -564,7 +599,7 @@ func (o *AaaAuditRecord) UnmarshalJSON(data []byte) (err error) { // The user-friendly label for the object type that was changed. AffectedObjectTypeLabel *string `json:"AffectedObjectTypeLabel,omitempty"` // The email of the associated user that made the change. In case the user is later deleted, we still have some reference to the information. - Email *string `json:"Email,omitempty"` + Email *string "json:\"Email,omitempty\" validate:\"regexp=^$|^[a-zA-Z0-9.!#$%&'*+\\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\\\\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$\"" // The instance id of AuditRecordLocal, which is used to identify if the comming AuditRecordLocal was already processed before. InstId *string `json:"InstId,omitempty"` // The sessionId in which the user made the change. In case that the session is later deleted, we still have some reference to the information. diff --git a/model_aaa_audit_record_list.go b/model_aaa_audit_record_list.go index 35859d45cb..19a90889ab 100644 --- a/model_aaa_audit_record_list.go +++ b/model_aaa_audit_record_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *AaaAuditRecordList) GetResultsOk() ([]AaaAuditRecord, bool) { // HasResults returns a boolean if a field has been set. func (o *AaaAuditRecordList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *AaaAuditRecordList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *AaaAuditRecordList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type AaaAuditRecordListWithoutEmbeddedStruct struct { // The total number of 'aaa.AuditRecord' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_aaa_audit_record_response.go b/model_aaa_audit_record_response.go index ac45b6f859..de96dffb9b 100644 --- a/model_aaa_audit_record_response.go +++ b/model_aaa_audit_record_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_aaa_retention_config.go b/model_aaa_retention_config.go index 64542a4c35..e8840db4e7 100644 --- a/model_aaa_retention_config.go +++ b/model_aaa_retention_config.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -82,6 +82,11 @@ func (o *AaaRetentionConfig) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "aaa.RetentionConfig" of the ClassId field. +func (o *AaaRetentionConfig) GetDefaultClassId() interface{} { + return "aaa.RetentionConfig" +} + // GetObjectType returns the ObjectType field value func (o *AaaRetentionConfig) GetObjectType() string { if o == nil { @@ -106,6 +111,11 @@ func (o *AaaRetentionConfig) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "aaa.RetentionConfig" of the ObjectType field. +func (o *AaaRetentionConfig) GetDefaultObjectType() interface{} { + return "aaa.RetentionConfig" +} + // GetRetentionPeriod returns the RetentionPeriod field value if set, zero value otherwise. func (o *AaaRetentionConfig) GetRetentionPeriod() int64 { if o == nil || IsNil(o.RetentionPeriod) { @@ -156,7 +166,13 @@ func (o AaaRetentionConfig) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.RetentionPeriod) { toSerialize["RetentionPeriod"] = o.RetentionPeriod @@ -178,6 +194,13 @@ func (o *AaaRetentionConfig) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -187,11 +210,23 @@ func (o *AaaRetentionConfig) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type AaaRetentionConfigWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_aaa_retention_config_list.go b/model_aaa_retention_config_list.go index a225373e2d..fde52ef303 100644 --- a/model_aaa_retention_config_list.go +++ b/model_aaa_retention_config_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *AaaRetentionConfigList) GetResultsOk() ([]AaaRetentionConfig, bool) { // HasResults returns a boolean if a field has been set. func (o *AaaRetentionConfigList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *AaaRetentionConfigList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *AaaRetentionConfigList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type AaaRetentionConfigListWithoutEmbeddedStruct struct { // The total number of 'aaa.RetentionConfig' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_aaa_retention_config_response.go b/model_aaa_retention_config_response.go index 4e2328092b..7c1d47e6b2 100644 --- a/model_aaa_retention_config_response.go +++ b/model_aaa_retention_config_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_aaa_retention_policy.go b/model_aaa_retention_policy.go index 8a527575d0..a1d9f4332b 100644 --- a/model_aaa_retention_policy.go +++ b/model_aaa_retention_policy.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -83,6 +83,11 @@ func (o *AaaRetentionPolicy) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "aaa.RetentionPolicy" of the ClassId field. +func (o *AaaRetentionPolicy) GetDefaultClassId() interface{} { + return "aaa.RetentionPolicy" +} + // GetObjectType returns the ObjectType field value func (o *AaaRetentionPolicy) GetObjectType() string { if o == nil { @@ -107,6 +112,11 @@ func (o *AaaRetentionPolicy) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "aaa.RetentionPolicy" of the ObjectType field. +func (o *AaaRetentionPolicy) GetDefaultObjectType() interface{} { + return "aaa.RetentionPolicy" +} + // GetRetentionPeriod returns the RetentionPeriod field value if set, zero value otherwise. func (o *AaaRetentionPolicy) GetRetentionPeriod() int64 { if o == nil || IsNil(o.RetentionPeriod) { @@ -200,7 +210,13 @@ func (o AaaRetentionPolicy) ToMap() (map[string]interface{}, error) { if errPolicyAbstractPolicy != nil { return map[string]interface{}{}, errPolicyAbstractPolicy } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.RetentionPeriod) { toSerialize["RetentionPeriod"] = o.RetentionPeriod @@ -225,6 +241,13 @@ func (o *AaaRetentionPolicy) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -234,11 +257,23 @@ func (o *AaaRetentionPolicy) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type AaaRetentionPolicyWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_aaa_retention_policy_list.go b/model_aaa_retention_policy_list.go index 7c2bf959f3..d7dcb6fc0b 100644 --- a/model_aaa_retention_policy_list.go +++ b/model_aaa_retention_policy_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *AaaRetentionPolicyList) GetResultsOk() ([]AaaRetentionPolicy, bool) { // HasResults returns a boolean if a field has been set. func (o *AaaRetentionPolicyList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *AaaRetentionPolicyList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *AaaRetentionPolicyList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type AaaRetentionPolicyListWithoutEmbeddedStruct struct { // The total number of 'aaa.RetentionPolicy' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_aaa_retention_policy_response.go b/model_aaa_retention_policy_response.go index e2a821578d..f669422bed 100644 --- a/model_aaa_retention_policy_response.go +++ b/model_aaa_retention_policy_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_aaa_user_agent.go b/model_aaa_user_agent.go index c5f606be65..8accbca3d8 100644 --- a/model_aaa_user_agent.go +++ b/model_aaa_user_agent.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -92,6 +92,11 @@ func (o *AaaUserAgent) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "aaa.UserAgent" of the ClassId field. +func (o *AaaUserAgent) GetDefaultClassId() interface{} { + return "aaa.UserAgent" +} + // GetObjectType returns the ObjectType field value func (o *AaaUserAgent) GetObjectType() string { if o == nil { @@ -116,6 +121,11 @@ func (o *AaaUserAgent) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "aaa.UserAgent" of the ObjectType field. +func (o *AaaUserAgent) GetDefaultObjectType() interface{} { + return "aaa.UserAgent" +} + // GetOsFamily returns the OsFamily field value if set, zero value otherwise. func (o *AaaUserAgent) GetOsFamily() string { if o == nil || IsNil(o.OsFamily) { @@ -326,7 +336,13 @@ func (o AaaUserAgent) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.OsFamily) { toSerialize["OsFamily"] = o.OsFamily @@ -363,6 +379,13 @@ func (o *AaaUserAgent) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -372,11 +395,23 @@ func (o *AaaUserAgent) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type AaaUserAgentWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_access_address_type.go b/model_access_address_type.go index a8e2d34b05..6f7fe978b9 100644 --- a/model_access_address_type.go +++ b/model_access_address_type.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -92,6 +92,11 @@ func (o *AccessAddressType) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "access.AddressType" of the ClassId field. +func (o *AccessAddressType) GetDefaultClassId() interface{} { + return "access.AddressType" +} + // GetObjectType returns the ObjectType field value func (o *AccessAddressType) GetObjectType() string { if o == nil { @@ -116,6 +121,11 @@ func (o *AccessAddressType) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "access.AddressType" of the ObjectType field. +func (o *AccessAddressType) GetDefaultObjectType() interface{} { + return "access.AddressType" +} + // GetEnableIpV4 returns the EnableIpV4 field value if set, zero value otherwise. func (o *AccessAddressType) GetEnableIpV4() bool { if o == nil || IsNil(o.EnableIpV4) { @@ -198,7 +208,13 @@ func (o AccessAddressType) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.EnableIpV4) { toSerialize["EnableIpV4"] = o.EnableIpV4 @@ -223,6 +239,13 @@ func (o *AccessAddressType) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -232,11 +255,23 @@ func (o *AccessAddressType) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type AccessAddressTypeWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_access_configuration_type.go b/model_access_configuration_type.go index c36fc69dae..94d24d60f6 100644 --- a/model_access_configuration_type.go +++ b/model_access_configuration_type.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -92,6 +92,11 @@ func (o *AccessConfigurationType) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "access.ConfigurationType" of the ClassId field. +func (o *AccessConfigurationType) GetDefaultClassId() interface{} { + return "access.ConfigurationType" +} + // GetObjectType returns the ObjectType field value func (o *AccessConfigurationType) GetObjectType() string { if o == nil { @@ -116,6 +121,11 @@ func (o *AccessConfigurationType) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "access.ConfigurationType" of the ObjectType field. +func (o *AccessConfigurationType) GetDefaultObjectType() interface{} { + return "access.ConfigurationType" +} + // GetConfigureInband returns the ConfigureInband field value if set, zero value otherwise. func (o *AccessConfigurationType) GetConfigureInband() bool { if o == nil || IsNil(o.ConfigureInband) { @@ -198,7 +208,13 @@ func (o AccessConfigurationType) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.ConfigureInband) { toSerialize["ConfigureInband"] = o.ConfigureInband @@ -223,6 +239,13 @@ func (o *AccessConfigurationType) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -232,11 +255,23 @@ func (o *AccessConfigurationType) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type AccessConfigurationTypeWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_access_ip_address.go b/model_access_ip_address.go index 4eb74891f8..3a1fa6dd14 100644 --- a/model_access_ip_address.go +++ b/model_access_ip_address.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -29,11 +29,11 @@ type AccessIpAddress struct { // The fully-qualified name of the instantiated, concrete type. The value should be the same as the 'ClassId' property. ObjectType string `json:"ObjectType"` // IPv4 Address leased to this Server Profile for In-Band Deployment. - Ipv4Address *string `json:"Ipv4Address,omitempty"` + Ipv4Address *string `json:"Ipv4Address,omitempty" validate:"regexp=^$|^([1-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\\\.([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\\\.([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\\\.([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])$"` // IPv4 Address leased to this Server Profile for In-Band Deployment. - Ipv6Address *string `json:"Ipv6Address,omitempty"` + Ipv6Address *string `json:"Ipv6Address,omitempty" validate:"regexp=^$|^(([0-9A-Fa-f]{1,4}:([0-9A-Fa-f]{1,4}:([0-9A-Fa-f]{1,4}:([0-9A-Fa-f]{1,4}:([0-9A-Fa-f]{1,4}:[0-9A-Fa-f]{0,4}|:[0-9A-Fa-f]{1,4})?|(:[0-9A-Fa-f]{1,4}){0,2})|(:[0-9A-Fa-f]{1,4}){0,3})|(:[0-9A-Fa-f]{1,4}){0,4})|:(:[0-9A-Fa-f]{1,4}){0,5})((:[0-9A-Fa-f]{1,4}){2}|:(25[0-5]|(2[0-4]|1[0-9]|[1-9])?[0-9])(\\\\.(25[0-5]|(2[0-4]|1[0-9]|[1-9])?[0-9])){3})|(([0-9A-Fa-f]{1,4}:){1,6}|:):[0-9A-Fa-f]{0,4}|([0-9A-Fa-f]{1,4}:){7}:)$"` // IPv4 Address leased to this Server Profile for Out-Of-Band deployment. - OobIpv4Address *string `json:"OobIpv4Address,omitempty"` + OobIpv4Address *string `json:"OobIpv4Address,omitempty" validate:"regexp=^$|^([1-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\\\.([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\\\.([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\\\.([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])$"` Ipv4Lease NullableIppoolIpLeaseRelationship `json:"Ipv4Lease,omitempty"` Ipv6Lease NullableIppoolIpLeaseRelationship `json:"Ipv6Lease,omitempty"` OobIpv4Lease NullableIppoolIpLeaseRelationship `json:"OobIpv4Lease,omitempty"` @@ -90,6 +90,11 @@ func (o *AccessIpAddress) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "access.IpAddress" of the ClassId field. +func (o *AccessIpAddress) GetDefaultClassId() interface{} { + return "access.IpAddress" +} + // GetObjectType returns the ObjectType field value func (o *AccessIpAddress) GetObjectType() string { if o == nil { @@ -114,6 +119,11 @@ func (o *AccessIpAddress) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "access.IpAddress" of the ObjectType field. +func (o *AccessIpAddress) GetDefaultObjectType() interface{} { + return "access.IpAddress" +} + // GetIpv4Address returns the Ipv4Address field value if set, zero value otherwise. func (o *AccessIpAddress) GetIpv4Address() string { if o == nil || IsNil(o.Ipv4Address) { @@ -400,7 +410,13 @@ func (o AccessIpAddress) ToMap() (map[string]interface{}, error) { if errPolicyAbstractPolicy != nil { return map[string]interface{}{}, errPolicyAbstractPolicy } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Ipv4Address) { toSerialize["Ipv4Address"] = o.Ipv4Address @@ -440,6 +456,13 @@ func (o *AccessIpAddress) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -449,22 +472,34 @@ func (o *AccessIpAddress) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type AccessIpAddressWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` // The fully-qualified name of the instantiated, concrete type. The value should be the same as the 'ClassId' property. ObjectType string `json:"ObjectType"` // IPv4 Address leased to this Server Profile for In-Band Deployment. - Ipv4Address *string `json:"Ipv4Address,omitempty"` + Ipv4Address *string `json:"Ipv4Address,omitempty" validate:"regexp=^$|^([1-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\\\.([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\\\.([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\\\.([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])$"` // IPv4 Address leased to this Server Profile for In-Band Deployment. - Ipv6Address *string `json:"Ipv6Address,omitempty"` + Ipv6Address *string `json:"Ipv6Address,omitempty" validate:"regexp=^$|^(([0-9A-Fa-f]{1,4}:([0-9A-Fa-f]{1,4}:([0-9A-Fa-f]{1,4}:([0-9A-Fa-f]{1,4}:([0-9A-Fa-f]{1,4}:[0-9A-Fa-f]{0,4}|:[0-9A-Fa-f]{1,4})?|(:[0-9A-Fa-f]{1,4}){0,2})|(:[0-9A-Fa-f]{1,4}){0,3})|(:[0-9A-Fa-f]{1,4}){0,4})|:(:[0-9A-Fa-f]{1,4}){0,5})((:[0-9A-Fa-f]{1,4}){2}|:(25[0-5]|(2[0-4]|1[0-9]|[1-9])?[0-9])(\\\\.(25[0-5]|(2[0-4]|1[0-9]|[1-9])?[0-9])){3})|(([0-9A-Fa-f]{1,4}:){1,6}|:):[0-9A-Fa-f]{0,4}|([0-9A-Fa-f]{1,4}:){7}:)$"` // IPv4 Address leased to this Server Profile for Out-Of-Band deployment. - OobIpv4Address *string `json:"OobIpv4Address,omitempty"` + OobIpv4Address *string `json:"OobIpv4Address,omitempty" validate:"regexp=^$|^([1-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\\\.([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\\\.([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\\\.([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])$"` Ipv4Lease NullableIppoolIpLeaseRelationship `json:"Ipv4Lease,omitempty"` Ipv6Lease NullableIppoolIpLeaseRelationship `json:"Ipv6Lease,omitempty"` OobIpv4Lease NullableIppoolIpLeaseRelationship `json:"OobIpv4Lease,omitempty"` diff --git a/model_access_ip_address_list.go b/model_access_ip_address_list.go index 5dfa2d6c71..978bc9c53f 100644 --- a/model_access_ip_address_list.go +++ b/model_access_ip_address_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *AccessIpAddressList) GetResultsOk() ([]AccessIpAddress, bool) { // HasResults returns a boolean if a field has been set. func (o *AccessIpAddressList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *AccessIpAddressList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *AccessIpAddressList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type AccessIpAddressListWithoutEmbeddedStruct struct { // The total number of 'access.IpAddress' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_access_ip_address_response.go b/model_access_ip_address_response.go index 04992a2f72..caa3bdcc1f 100644 --- a/model_access_ip_address_response.go +++ b/model_access_ip_address_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_access_policy.go b/model_access_policy.go index 2b9ca00453..abf9f15913 100644 --- a/model_access_policy.go +++ b/model_access_policy.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -91,6 +91,11 @@ func (o *AccessPolicy) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "access.Policy" of the ClassId field. +func (o *AccessPolicy) GetDefaultClassId() interface{} { + return "access.Policy" +} + // GetObjectType returns the ObjectType field value func (o *AccessPolicy) GetObjectType() string { if o == nil { @@ -115,6 +120,11 @@ func (o *AccessPolicy) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "access.Policy" of the ObjectType field. +func (o *AccessPolicy) GetDefaultObjectType() interface{} { + return "access.Policy" +} + // GetAddressType returns the AddressType field value if set, zero value otherwise (both if not set or set to explicit null). func (o *AccessPolicy) GetAddressType() AccessAddressType { if o == nil || IsNil(o.AddressType.Get()) { @@ -469,7 +479,7 @@ func (o *AccessPolicy) GetProfilesOk() ([]PolicyAbstractConfigProfileRelationshi // HasProfiles returns a boolean if a field has been set. func (o *AccessPolicy) HasProfiles() bool { - if o != nil && IsNil(o.Profiles) { + if o != nil && !IsNil(o.Profiles) { return true } @@ -499,7 +509,13 @@ func (o AccessPolicy) ToMap() (map[string]interface{}, error) { if errPolicyAbstractPolicy != nil { return map[string]interface{}{}, errPolicyAbstractPolicy } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.AddressType.IsSet() { toSerialize["AddressType"] = o.AddressType.Get() @@ -545,6 +561,13 @@ func (o *AccessPolicy) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -554,11 +577,23 @@ func (o *AccessPolicy) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type AccessPolicyWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_access_policy_inventory.go b/model_access_policy_inventory.go index f8c8c88a08..eb2b84583a 100644 --- a/model_access_policy_inventory.go +++ b/model_access_policy_inventory.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -89,6 +89,11 @@ func (o *AccessPolicyInventory) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "access.PolicyInventory" of the ClassId field. +func (o *AccessPolicyInventory) GetDefaultClassId() interface{} { + return "access.PolicyInventory" +} + // GetObjectType returns the ObjectType field value func (o *AccessPolicyInventory) GetObjectType() string { if o == nil { @@ -113,6 +118,11 @@ func (o *AccessPolicyInventory) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "access.PolicyInventory" of the ObjectType field. +func (o *AccessPolicyInventory) GetDefaultObjectType() interface{} { + return "access.PolicyInventory" +} + // GetAddressType returns the AddressType field value if set, zero value otherwise (both if not set or set to explicit null). func (o *AccessPolicyInventory) GetAddressType() AccessAddressType { if o == nil || IsNil(o.AddressType.Get()) { @@ -464,7 +474,13 @@ func (o AccessPolicyInventory) ToMap() (map[string]interface{}, error) { if errPolicyAbstractPolicyInventory != nil { return map[string]interface{}{}, errPolicyAbstractPolicyInventory } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.AddressType.IsSet() { toSerialize["AddressType"] = o.AddressType.Get() @@ -507,6 +523,13 @@ func (o *AccessPolicyInventory) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -516,11 +539,23 @@ func (o *AccessPolicyInventory) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type AccessPolicyInventoryWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_access_policy_inventory_list.go b/model_access_policy_inventory_list.go index c23b3b8752..acc18c3629 100644 --- a/model_access_policy_inventory_list.go +++ b/model_access_policy_inventory_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *AccessPolicyInventoryList) GetResultsOk() ([]AccessPolicyInventory, boo // HasResults returns a boolean if a field has been set. func (o *AccessPolicyInventoryList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *AccessPolicyInventoryList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *AccessPolicyInventoryList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type AccessPolicyInventoryListWithoutEmbeddedStruct struct { // The total number of 'access.PolicyInventory' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_access_policy_inventory_response.go b/model_access_policy_inventory_response.go index f7d54dc766..6ee312bcc4 100644 --- a/model_access_policy_inventory_response.go +++ b/model_access_policy_inventory_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_access_policy_list.go b/model_access_policy_list.go index 15914b3e2c..8eda00256b 100644 --- a/model_access_policy_list.go +++ b/model_access_policy_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *AccessPolicyList) GetResultsOk() ([]AccessPolicy, bool) { // HasResults returns a boolean if a field has been set. func (o *AccessPolicyList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *AccessPolicyList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *AccessPolicyList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type AccessPolicyListWithoutEmbeddedStruct struct { // The total number of 'access.Policy' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_access_policy_response.go b/model_access_policy_response.go index b485a6fd9d..4af2273519 100644 --- a/model_access_policy_response.go +++ b/model_access_policy_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_adapter_adapter_config.go b/model_adapter_adapter_config.go index aaf06160ab..f3165a2561 100644 --- a/model_adapter_adapter_config.go +++ b/model_adapter_adapter_config.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -34,7 +34,7 @@ type AdapterAdapterConfig struct { PhysicalNicModeSettings NullableAdapterPhysicalNicModeSettings `json:"PhysicalNicModeSettings,omitempty"` PortChannelSettings NullableAdapterPortChannelSettings `json:"PortChannelSettings,omitempty"` // PCIe slot where the VIC adapter is installed. Supported values are (1-15) and MLOM. - SlotId *string `json:"SlotId,omitempty"` + SlotId *string `json:"SlotId,omitempty" validate:"regexp=^([1-9]|1[0-5]|MLOM)$"` AdditionalProperties map[string]interface{} } @@ -87,6 +87,11 @@ func (o *AdapterAdapterConfig) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "adapter.AdapterConfig" of the ClassId field. +func (o *AdapterAdapterConfig) GetDefaultClassId() interface{} { + return "adapter.AdapterConfig" +} + // GetObjectType returns the ObjectType field value func (o *AdapterAdapterConfig) GetObjectType() string { if o == nil { @@ -111,6 +116,11 @@ func (o *AdapterAdapterConfig) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "adapter.AdapterConfig" of the ObjectType field. +func (o *AdapterAdapterConfig) GetDefaultObjectType() interface{} { + return "adapter.AdapterConfig" +} + // GetDceInterfaceSettings returns the DceInterfaceSettings field value if set, zero value otherwise (both if not set or set to explicit null). func (o *AdapterAdapterConfig) GetDceInterfaceSettings() []AdapterDceInterfaceSettings { if o == nil { @@ -132,7 +142,7 @@ func (o *AdapterAdapterConfig) GetDceInterfaceSettingsOk() ([]AdapterDceInterfac // HasDceInterfaceSettings returns a boolean if a field has been set. func (o *AdapterAdapterConfig) HasDceInterfaceSettings() bool { - if o != nil && IsNil(o.DceInterfaceSettings) { + if o != nil && !IsNil(o.DceInterfaceSettings) { return true } @@ -366,7 +376,13 @@ func (o AdapterAdapterConfig) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.DceInterfaceSettings != nil { toSerialize["DceInterfaceSettings"] = o.DceInterfaceSettings @@ -403,6 +419,13 @@ func (o *AdapterAdapterConfig) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -412,11 +435,23 @@ func (o *AdapterAdapterConfig) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type AdapterAdapterConfigWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` @@ -428,7 +463,7 @@ func (o *AdapterAdapterConfig) UnmarshalJSON(data []byte) (err error) { PhysicalNicModeSettings NullableAdapterPhysicalNicModeSettings `json:"PhysicalNicModeSettings,omitempty"` PortChannelSettings NullableAdapterPortChannelSettings `json:"PortChannelSettings,omitempty"` // PCIe slot where the VIC adapter is installed. Supported values are (1-15) and MLOM. - SlotId *string `json:"SlotId,omitempty"` + SlotId *string `json:"SlotId,omitempty" validate:"regexp=^([1-9]|1[0-5]|MLOM)$"` } varAdapterAdapterConfigWithoutEmbeddedStruct := AdapterAdapterConfigWithoutEmbeddedStruct{} diff --git a/model_adapter_config_policy.go b/model_adapter_config_policy.go index 3e2256e531..c2dc37d01a 100644 --- a/model_adapter_config_policy.go +++ b/model_adapter_config_policy.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -84,6 +84,11 @@ func (o *AdapterConfigPolicy) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "adapter.ConfigPolicy" of the ClassId field. +func (o *AdapterConfigPolicy) GetDefaultClassId() interface{} { + return "adapter.ConfigPolicy" +} + // GetObjectType returns the ObjectType field value func (o *AdapterConfigPolicy) GetObjectType() string { if o == nil { @@ -108,6 +113,11 @@ func (o *AdapterConfigPolicy) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "adapter.ConfigPolicy" of the ObjectType field. +func (o *AdapterConfigPolicy) GetDefaultObjectType() interface{} { + return "adapter.ConfigPolicy" +} + // GetSettings returns the Settings field value if set, zero value otherwise (both if not set or set to explicit null). func (o *AdapterConfigPolicy) GetSettings() []AdapterAdapterConfig { if o == nil { @@ -129,7 +139,7 @@ func (o *AdapterConfigPolicy) GetSettingsOk() ([]AdapterAdapterConfig, bool) { // HasSettings returns a boolean if a field has been set. func (o *AdapterConfigPolicy) HasSettings() bool { - if o != nil && IsNil(o.Settings) { + if o != nil && !IsNil(o.Settings) { return true } @@ -205,7 +215,7 @@ func (o *AdapterConfigPolicy) GetProfilesOk() ([]PolicyAbstractConfigProfileRela // HasProfiles returns a boolean if a field has been set. func (o *AdapterConfigPolicy) HasProfiles() bool { - if o != nil && IsNil(o.Profiles) { + if o != nil && !IsNil(o.Profiles) { return true } @@ -235,7 +245,13 @@ func (o AdapterConfigPolicy) ToMap() (map[string]interface{}, error) { if errPolicyAbstractPolicy != nil { return map[string]interface{}{}, errPolicyAbstractPolicy } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.Settings != nil { toSerialize["Settings"] = o.Settings @@ -263,6 +279,13 @@ func (o *AdapterConfigPolicy) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -272,11 +295,23 @@ func (o *AdapterConfigPolicy) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type AdapterConfigPolicyWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_adapter_config_policy_list.go b/model_adapter_config_policy_list.go index 882dfb64ca..5b9d2d37b2 100644 --- a/model_adapter_config_policy_list.go +++ b/model_adapter_config_policy_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *AdapterConfigPolicyList) GetResultsOk() ([]AdapterConfigPolicy, bool) { // HasResults returns a boolean if a field has been set. func (o *AdapterConfigPolicyList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *AdapterConfigPolicyList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *AdapterConfigPolicyList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type AdapterConfigPolicyListWithoutEmbeddedStruct struct { // The total number of 'adapter.ConfigPolicy' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_adapter_config_policy_response.go b/model_adapter_config_policy_response.go index d7276a292d..6986ac4785 100644 --- a/model_adapter_config_policy_response.go +++ b/model_adapter_config_policy_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_adapter_dce_interface_settings.go b/model_adapter_dce_interface_settings.go index df8d541e28..9e81701438 100644 --- a/model_adapter_dce_interface_settings.go +++ b/model_adapter_dce_interface_settings.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -88,6 +88,11 @@ func (o *AdapterDceInterfaceSettings) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "adapter.DceInterfaceSettings" of the ClassId field. +func (o *AdapterDceInterfaceSettings) GetDefaultClassId() interface{} { + return "adapter.DceInterfaceSettings" +} + // GetObjectType returns the ObjectType field value func (o *AdapterDceInterfaceSettings) GetObjectType() string { if o == nil { @@ -112,6 +117,11 @@ func (o *AdapterDceInterfaceSettings) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "adapter.DceInterfaceSettings" of the ObjectType field. +func (o *AdapterDceInterfaceSettings) GetDefaultObjectType() interface{} { + return "adapter.DceInterfaceSettings" +} + // GetFecMode returns the FecMode field value if set, zero value otherwise. func (o *AdapterDceInterfaceSettings) GetFecMode() string { if o == nil || IsNil(o.FecMode) { @@ -194,7 +204,13 @@ func (o AdapterDceInterfaceSettings) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.FecMode) { toSerialize["FecMode"] = o.FecMode @@ -219,6 +235,13 @@ func (o *AdapterDceInterfaceSettings) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -228,11 +251,23 @@ func (o *AdapterDceInterfaceSettings) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type AdapterDceInterfaceSettingsWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_adapter_eth_settings.go b/model_adapter_eth_settings.go index 06d0489708..d82370cbc5 100644 --- a/model_adapter_eth_settings.go +++ b/model_adapter_eth_settings.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -86,6 +86,11 @@ func (o *AdapterEthSettings) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "adapter.EthSettings" of the ClassId field. +func (o *AdapterEthSettings) GetDefaultClassId() interface{} { + return "adapter.EthSettings" +} + // GetObjectType returns the ObjectType field value func (o *AdapterEthSettings) GetObjectType() string { if o == nil { @@ -110,6 +115,11 @@ func (o *AdapterEthSettings) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "adapter.EthSettings" of the ObjectType field. +func (o *AdapterEthSettings) GetDefaultObjectType() interface{} { + return "adapter.EthSettings" +} + // GetLldpEnabled returns the LldpEnabled field value if set, zero value otherwise. func (o *AdapterEthSettings) GetLldpEnabled() bool { if o == nil || IsNil(o.LldpEnabled) { @@ -160,7 +170,13 @@ func (o AdapterEthSettings) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.LldpEnabled) { toSerialize["LldpEnabled"] = o.LldpEnabled @@ -182,6 +198,13 @@ func (o *AdapterEthSettings) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -191,11 +214,23 @@ func (o *AdapterEthSettings) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type AdapterEthSettingsWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_adapter_ext_eth_interface.go b/model_adapter_ext_eth_interface.go index 45f2946261..d17414372e 100644 --- a/model_adapter_ext_eth_interface.go +++ b/model_adapter_ext_eth_interface.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,6 +104,11 @@ func (o *AdapterExtEthInterface) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "adapter.ExtEthInterface" of the ClassId field. +func (o *AdapterExtEthInterface) GetDefaultClassId() interface{} { + return "adapter.ExtEthInterface" +} + // GetObjectType returns the ObjectType field value func (o *AdapterExtEthInterface) GetObjectType() string { if o == nil { @@ -128,6 +133,11 @@ func (o *AdapterExtEthInterface) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "adapter.ExtEthInterface" of the ObjectType field. +func (o *AdapterExtEthInterface) GetDefaultObjectType() interface{} { + return "adapter.ExtEthInterface" +} + // GetAdminState returns the AdminState field value if set, zero value otherwise. func (o *AdapterExtEthInterface) GetAdminState() string { if o == nil || IsNil(o.AdminState) { @@ -309,7 +319,7 @@ func (o *AdapterExtEthInterface) GetOperReasonOk() ([]string, bool) { // HasOperReason returns a boolean if a field has been set. func (o *AdapterExtEthInterface) HasOperReason() bool { - if o != nil && IsNil(o.OperReason) { + if o != nil && !IsNil(o.OperReason) { return true } @@ -628,7 +638,13 @@ func (o AdapterExtEthInterface) ToMap() (map[string]interface{}, error) { if errPortInterfaceBase != nil { return map[string]interface{}{}, errPortInterfaceBase } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.AdminState) { toSerialize["AdminState"] = o.AdminState @@ -689,6 +705,13 @@ func (o *AdapterExtEthInterface) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -698,11 +721,23 @@ func (o *AdapterExtEthInterface) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type AdapterExtEthInterfaceWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_adapter_ext_eth_interface_list.go b/model_adapter_ext_eth_interface_list.go index a785dafce8..6fac49266f 100644 --- a/model_adapter_ext_eth_interface_list.go +++ b/model_adapter_ext_eth_interface_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *AdapterExtEthInterfaceList) GetResultsOk() ([]AdapterExtEthInterface, b // HasResults returns a boolean if a field has been set. func (o *AdapterExtEthInterfaceList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *AdapterExtEthInterfaceList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *AdapterExtEthInterfaceList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type AdapterExtEthInterfaceListWithoutEmbeddedStruct struct { // The total number of 'adapter.ExtEthInterface' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_adapter_ext_eth_interface_relationship.go b/model_adapter_ext_eth_interface_relationship.go index 466b3a218d..1b3bb29d26 100644 --- a/model_adapter_ext_eth_interface_relationship.go +++ b/model_adapter_ext_eth_interface_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_adapter_ext_eth_interface_response.go b/model_adapter_ext_eth_interface_response.go index 9e651f2210..80ddec7836 100644 --- a/model_adapter_ext_eth_interface_response.go +++ b/model_adapter_ext_eth_interface_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_adapter_fc_settings.go b/model_adapter_fc_settings.go index 2371da243b..b11b31b780 100644 --- a/model_adapter_fc_settings.go +++ b/model_adapter_fc_settings.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -86,6 +86,11 @@ func (o *AdapterFcSettings) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "adapter.FcSettings" of the ClassId field. +func (o *AdapterFcSettings) GetDefaultClassId() interface{} { + return "adapter.FcSettings" +} + // GetObjectType returns the ObjectType field value func (o *AdapterFcSettings) GetObjectType() string { if o == nil { @@ -110,6 +115,11 @@ func (o *AdapterFcSettings) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "adapter.FcSettings" of the ObjectType field. +func (o *AdapterFcSettings) GetDefaultObjectType() interface{} { + return "adapter.FcSettings" +} + // GetFipEnabled returns the FipEnabled field value if set, zero value otherwise. func (o *AdapterFcSettings) GetFipEnabled() bool { if o == nil || IsNil(o.FipEnabled) { @@ -160,7 +170,13 @@ func (o AdapterFcSettings) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.FipEnabled) { toSerialize["FipEnabled"] = o.FipEnabled @@ -182,6 +198,13 @@ func (o *AdapterFcSettings) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -191,11 +214,23 @@ func (o *AdapterFcSettings) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type AdapterFcSettingsWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_adapter_host_eth_interface.go b/model_adapter_host_eth_interface.go index 940eca42b3..941837ebe9 100644 --- a/model_adapter_host_eth_interface.go +++ b/model_adapter_host_eth_interface.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -139,6 +139,11 @@ func (o *AdapterHostEthInterface) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "adapter.HostEthInterface" of the ClassId field. +func (o *AdapterHostEthInterface) GetDefaultClassId() interface{} { + return "adapter.HostEthInterface" +} + // GetObjectType returns the ObjectType field value func (o *AdapterHostEthInterface) GetObjectType() string { if o == nil { @@ -163,6 +168,11 @@ func (o *AdapterHostEthInterface) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "adapter.HostEthInterface" of the ObjectType field. +func (o *AdapterHostEthInterface) GetDefaultObjectType() interface{} { + return "adapter.HostEthInterface" +} + // GetActiveOperState returns the ActiveOperState field value if set, zero value otherwise. func (o *AdapterHostEthInterface) GetActiveOperState() string { if o == nil || IsNil(o.ActiveOperState) { @@ -440,7 +450,7 @@ func (o *AdapterHostEthInterface) GetOperReasonOk() ([]string, bool) { // HasOperReason returns a boolean if a field has been set. func (o *AdapterHostEthInterface) HasOperReason() bool { - if o != nil && IsNil(o.OperReason) { + if o != nil && !IsNil(o.OperReason) { return true } @@ -1176,7 +1186,13 @@ func (o AdapterHostEthInterface) ToMap() (map[string]interface{}, error) { if errPortInterfaceBase != nil { return map[string]interface{}{}, errPortInterfaceBase } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.ActiveOperState) { toSerialize["ActiveOperState"] = o.ActiveOperState @@ -1282,6 +1298,13 @@ func (o *AdapterHostEthInterface) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -1291,11 +1314,23 @@ func (o *AdapterHostEthInterface) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type AdapterHostEthInterfaceWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_adapter_host_eth_interface_list.go b/model_adapter_host_eth_interface_list.go index 4bb2b7ba08..76253081d9 100644 --- a/model_adapter_host_eth_interface_list.go +++ b/model_adapter_host_eth_interface_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *AdapterHostEthInterfaceList) GetResultsOk() ([]AdapterHostEthInterface, // HasResults returns a boolean if a field has been set. func (o *AdapterHostEthInterfaceList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *AdapterHostEthInterfaceList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *AdapterHostEthInterfaceList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type AdapterHostEthInterfaceListWithoutEmbeddedStruct struct { // The total number of 'adapter.HostEthInterface' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_adapter_host_eth_interface_relationship.go b/model_adapter_host_eth_interface_relationship.go index ab557dfc7f..46e807d3ac 100644 --- a/model_adapter_host_eth_interface_relationship.go +++ b/model_adapter_host_eth_interface_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_adapter_host_eth_interface_response.go b/model_adapter_host_eth_interface_response.go index 9d84f820ab..8f015dd36a 100644 --- a/model_adapter_host_eth_interface_response.go +++ b/model_adapter_host_eth_interface_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_adapter_host_fc_interface.go b/model_adapter_host_fc_interface.go index 234d288725..adf2d5ac4e 100644 --- a/model_adapter_host_fc_interface.go +++ b/model_adapter_host_fc_interface.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -118,6 +118,11 @@ func (o *AdapterHostFcInterface) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "adapter.HostFcInterface" of the ClassId field. +func (o *AdapterHostFcInterface) GetDefaultClassId() interface{} { + return "adapter.HostFcInterface" +} + // GetObjectType returns the ObjectType field value func (o *AdapterHostFcInterface) GetObjectType() string { if o == nil { @@ -142,6 +147,11 @@ func (o *AdapterHostFcInterface) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "adapter.HostFcInterface" of the ObjectType field. +func (o *AdapterHostFcInterface) GetDefaultObjectType() interface{} { + return "adapter.HostFcInterface" +} + // GetAdminState returns the AdminState field value if set, zero value otherwise. func (o *AdapterHostFcInterface) GetAdminState() string { if o == nil || IsNil(o.AdminState) { @@ -291,7 +301,7 @@ func (o *AdapterHostFcInterface) GetOperReasonOk() ([]string, bool) { // HasOperReason returns a boolean if a field has been set. func (o *AdapterHostFcInterface) HasOperReason() bool { - if o != nil && IsNil(o.OperReason) { + if o != nil && !IsNil(o.OperReason) { return true } @@ -856,7 +866,13 @@ func (o AdapterHostFcInterface) ToMap() (map[string]interface{}, error) { if errEquipmentBase != nil { return map[string]interface{}{}, errEquipmentBase } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.AdminState) { toSerialize["AdminState"] = o.AdminState @@ -935,6 +951,13 @@ func (o *AdapterHostFcInterface) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -944,11 +967,23 @@ func (o *AdapterHostFcInterface) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type AdapterHostFcInterfaceWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_adapter_host_fc_interface_list.go b/model_adapter_host_fc_interface_list.go index 288a6ee5f4..7d3fb89dde 100644 --- a/model_adapter_host_fc_interface_list.go +++ b/model_adapter_host_fc_interface_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *AdapterHostFcInterfaceList) GetResultsOk() ([]AdapterHostFcInterface, b // HasResults returns a boolean if a field has been set. func (o *AdapterHostFcInterfaceList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *AdapterHostFcInterfaceList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *AdapterHostFcInterfaceList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type AdapterHostFcInterfaceListWithoutEmbeddedStruct struct { // The total number of 'adapter.HostFcInterface' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_adapter_host_fc_interface_relationship.go b/model_adapter_host_fc_interface_relationship.go index 1c8a8a2d10..28165a4e98 100644 --- a/model_adapter_host_fc_interface_relationship.go +++ b/model_adapter_host_fc_interface_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_adapter_host_fc_interface_response.go b/model_adapter_host_fc_interface_response.go index 3c4d26f04f..7222ea647d 100644 --- a/model_adapter_host_fc_interface_response.go +++ b/model_adapter_host_fc_interface_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_adapter_host_iscsi_interface.go b/model_adapter_host_iscsi_interface.go index 4fca0c8693..7495696553 100644 --- a/model_adapter_host_iscsi_interface.go +++ b/model_adapter_host_iscsi_interface.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -101,6 +101,11 @@ func (o *AdapterHostIscsiInterface) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "adapter.HostIscsiInterface" of the ClassId field. +func (o *AdapterHostIscsiInterface) GetDefaultClassId() interface{} { + return "adapter.HostIscsiInterface" +} + // GetObjectType returns the ObjectType field value func (o *AdapterHostIscsiInterface) GetObjectType() string { if o == nil { @@ -125,6 +130,11 @@ func (o *AdapterHostIscsiInterface) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "adapter.HostIscsiInterface" of the ObjectType field. +func (o *AdapterHostIscsiInterface) GetDefaultObjectType() interface{} { + return "adapter.HostIscsiInterface" +} + // GetAdminState returns the AdminState field value if set, zero value otherwise. func (o *AdapterHostIscsiInterface) GetAdminState() string { if o == nil || IsNil(o.AdminState) { @@ -560,7 +570,13 @@ func (o AdapterHostIscsiInterface) ToMap() (map[string]interface{}, error) { if errEquipmentBase != nil { return map[string]interface{}{}, errEquipmentBase } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.AdminState) { toSerialize["AdminState"] = o.AdminState @@ -615,6 +631,13 @@ func (o *AdapterHostIscsiInterface) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -624,11 +647,23 @@ func (o *AdapterHostIscsiInterface) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type AdapterHostIscsiInterfaceWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_adapter_host_iscsi_interface_list.go b/model_adapter_host_iscsi_interface_list.go index 9965b7b5af..c649825de1 100644 --- a/model_adapter_host_iscsi_interface_list.go +++ b/model_adapter_host_iscsi_interface_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *AdapterHostIscsiInterfaceList) GetResultsOk() ([]AdapterHostIscsiInterf // HasResults returns a boolean if a field has been set. func (o *AdapterHostIscsiInterfaceList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *AdapterHostIscsiInterfaceList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *AdapterHostIscsiInterfaceList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type AdapterHostIscsiInterfaceListWithoutEmbeddedStruct struct { // The total number of 'adapter.HostIscsiInterface' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_adapter_host_iscsi_interface_relationship.go b/model_adapter_host_iscsi_interface_relationship.go index 6ee9d3d31a..c9e2d66577 100644 --- a/model_adapter_host_iscsi_interface_relationship.go +++ b/model_adapter_host_iscsi_interface_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_adapter_host_iscsi_interface_response.go b/model_adapter_host_iscsi_interface_response.go index 5c8ebae6b9..796eaa2eca 100644 --- a/model_adapter_host_iscsi_interface_response.go +++ b/model_adapter_host_iscsi_interface_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_adapter_physical_nic_mode_settings.go b/model_adapter_physical_nic_mode_settings.go index 03e6b9959b..35a0f2ae35 100644 --- a/model_adapter_physical_nic_mode_settings.go +++ b/model_adapter_physical_nic_mode_settings.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -86,6 +86,11 @@ func (o *AdapterPhysicalNicModeSettings) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "adapter.PhysicalNicModeSettings" of the ClassId field. +func (o *AdapterPhysicalNicModeSettings) GetDefaultClassId() interface{} { + return "adapter.PhysicalNicModeSettings" +} + // GetObjectType returns the ObjectType field value func (o *AdapterPhysicalNicModeSettings) GetObjectType() string { if o == nil { @@ -110,6 +115,11 @@ func (o *AdapterPhysicalNicModeSettings) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "adapter.PhysicalNicModeSettings" of the ObjectType field. +func (o *AdapterPhysicalNicModeSettings) GetDefaultObjectType() interface{} { + return "adapter.PhysicalNicModeSettings" +} + // GetPhyNicEnabled returns the PhyNicEnabled field value if set, zero value otherwise. func (o *AdapterPhysicalNicModeSettings) GetPhyNicEnabled() bool { if o == nil || IsNil(o.PhyNicEnabled) { @@ -160,7 +170,13 @@ func (o AdapterPhysicalNicModeSettings) ToMap() (map[string]interface{}, error) if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.PhyNicEnabled) { toSerialize["PhyNicEnabled"] = o.PhyNicEnabled @@ -182,6 +198,13 @@ func (o *AdapterPhysicalNicModeSettings) UnmarshalJSON(data []byte) (err error) "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -191,11 +214,23 @@ func (o *AdapterPhysicalNicModeSettings) UnmarshalJSON(data []byte) (err error) } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type AdapterPhysicalNicModeSettingsWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_adapter_port_channel_settings.go b/model_adapter_port_channel_settings.go index 0981f76b27..82985e6818 100644 --- a/model_adapter_port_channel_settings.go +++ b/model_adapter_port_channel_settings.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -86,6 +86,11 @@ func (o *AdapterPortChannelSettings) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "adapter.PortChannelSettings" of the ClassId field. +func (o *AdapterPortChannelSettings) GetDefaultClassId() interface{} { + return "adapter.PortChannelSettings" +} + // GetObjectType returns the ObjectType field value func (o *AdapterPortChannelSettings) GetObjectType() string { if o == nil { @@ -110,6 +115,11 @@ func (o *AdapterPortChannelSettings) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "adapter.PortChannelSettings" of the ObjectType field. +func (o *AdapterPortChannelSettings) GetDefaultObjectType() interface{} { + return "adapter.PortChannelSettings" +} + // GetEnabled returns the Enabled field value if set, zero value otherwise. func (o *AdapterPortChannelSettings) GetEnabled() bool { if o == nil || IsNil(o.Enabled) { @@ -160,7 +170,13 @@ func (o AdapterPortChannelSettings) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Enabled) { toSerialize["Enabled"] = o.Enabled @@ -182,6 +198,13 @@ func (o *AdapterPortChannelSettings) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -191,11 +214,23 @@ func (o *AdapterPortChannelSettings) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type AdapterPortChannelSettingsWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_adapter_unit.go b/model_adapter_unit.go index 5864046c4a..1d8857baba 100644 --- a/model_adapter_unit.go +++ b/model_adapter_unit.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -119,6 +119,11 @@ func (o *AdapterUnit) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "adapter.Unit" of the ClassId field. +func (o *AdapterUnit) GetDefaultClassId() interface{} { + return "adapter.Unit" +} + // GetObjectType returns the ObjectType field value func (o *AdapterUnit) GetObjectType() string { if o == nil { @@ -143,6 +148,11 @@ func (o *AdapterUnit) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "adapter.Unit" of the ObjectType field. +func (o *AdapterUnit) GetDefaultObjectType() interface{} { + return "adapter.Unit" +} + // GetAdapterId returns the AdapterId field value if set, zero value otherwise. func (o *AdapterUnit) GetAdapterId() string { if o == nil || IsNil(o.AdapterId) { @@ -292,7 +302,7 @@ func (o *AdapterUnit) GetOperReasonOk() ([]string, bool) { // HasOperReason returns a boolean if a field has been set. func (o *AdapterUnit) HasOperReason() bool { - if o != nil && IsNil(o.OperReason) { + if o != nil && !IsNil(o.OperReason) { return true } @@ -753,7 +763,7 @@ func (o *AdapterUnit) GetExtEthIfsOk() ([]AdapterExtEthInterfaceRelationship, bo // HasExtEthIfs returns a boolean if a field has been set. func (o *AdapterUnit) HasExtEthIfs() bool { - if o != nil && IsNil(o.ExtEthIfs) { + if o != nil && !IsNil(o.ExtEthIfs) { return true } @@ -786,7 +796,7 @@ func (o *AdapterUnit) GetHostEthIfsOk() ([]AdapterHostEthInterfaceRelationship, // HasHostEthIfs returns a boolean if a field has been set. func (o *AdapterUnit) HasHostEthIfs() bool { - if o != nil && IsNil(o.HostEthIfs) { + if o != nil && !IsNil(o.HostEthIfs) { return true } @@ -819,7 +829,7 @@ func (o *AdapterUnit) GetHostFcIfsOk() ([]AdapterHostFcInterfaceRelationship, bo // HasHostFcIfs returns a boolean if a field has been set. func (o *AdapterUnit) HasHostFcIfs() bool { - if o != nil && IsNil(o.HostFcIfs) { + if o != nil && !IsNil(o.HostFcIfs) { return true } @@ -852,7 +862,7 @@ func (o *AdapterUnit) GetHostIscsiIfsOk() ([]AdapterHostIscsiInterfaceRelationsh // HasHostIscsiIfs returns a boolean if a field has been set. func (o *AdapterUnit) HasHostIscsiIfs() bool { - if o != nil && IsNil(o.HostIscsiIfs) { + if o != nil && !IsNil(o.HostIscsiIfs) { return true } @@ -968,7 +978,13 @@ func (o AdapterUnit) ToMap() (map[string]interface{}, error) { if errEquipmentBase != nil { return map[string]interface{}{}, errEquipmentBase } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.AdapterId) { toSerialize["AdapterId"] = o.AdapterId @@ -1056,6 +1072,13 @@ func (o *AdapterUnit) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -1065,11 +1088,23 @@ func (o *AdapterUnit) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type AdapterUnitWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_adapter_unit_expander.go b/model_adapter_unit_expander.go index 8fb8eb7f30..25ddc7338a 100644 --- a/model_adapter_unit_expander.go +++ b/model_adapter_unit_expander.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -86,6 +86,11 @@ func (o *AdapterUnitExpander) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "adapter.UnitExpander" of the ClassId field. +func (o *AdapterUnitExpander) GetDefaultClassId() interface{} { + return "adapter.UnitExpander" +} + // GetObjectType returns the ObjectType field value func (o *AdapterUnitExpander) GetObjectType() string { if o == nil { @@ -110,6 +115,11 @@ func (o *AdapterUnitExpander) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "adapter.UnitExpander" of the ObjectType field. +func (o *AdapterUnitExpander) GetDefaultObjectType() interface{} { + return "adapter.UnitExpander" +} + // GetPartNumber returns the PartNumber field value if set, zero value otherwise. func (o *AdapterUnitExpander) GetPartNumber() string { if o == nil || IsNil(o.PartNumber) { @@ -278,7 +288,13 @@ func (o AdapterUnitExpander) ToMap() (map[string]interface{}, error) { if errEquipmentBase != nil { return map[string]interface{}{}, errEquipmentBase } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.PartNumber) { toSerialize["PartNumber"] = o.PartNumber @@ -309,6 +325,13 @@ func (o *AdapterUnitExpander) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -318,11 +341,23 @@ func (o *AdapterUnitExpander) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type AdapterUnitExpanderWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_adapter_unit_expander_list.go b/model_adapter_unit_expander_list.go index a608b724d2..19af12d150 100644 --- a/model_adapter_unit_expander_list.go +++ b/model_adapter_unit_expander_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *AdapterUnitExpanderList) GetResultsOk() ([]AdapterUnitExpander, bool) { // HasResults returns a boolean if a field has been set. func (o *AdapterUnitExpanderList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *AdapterUnitExpanderList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *AdapterUnitExpanderList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type AdapterUnitExpanderListWithoutEmbeddedStruct struct { // The total number of 'adapter.UnitExpander' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_adapter_unit_expander_relationship.go b/model_adapter_unit_expander_relationship.go index 7c1c5f313e..fa010ff76d 100644 --- a/model_adapter_unit_expander_relationship.go +++ b/model_adapter_unit_expander_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_adapter_unit_expander_response.go b/model_adapter_unit_expander_response.go index 5f9beeaaf5..4fc0c968e9 100644 --- a/model_adapter_unit_expander_response.go +++ b/model_adapter_unit_expander_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_adapter_unit_list.go b/model_adapter_unit_list.go index 92af693737..021c28ef94 100644 --- a/model_adapter_unit_list.go +++ b/model_adapter_unit_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *AdapterUnitList) GetResultsOk() ([]AdapterUnit, bool) { // HasResults returns a boolean if a field has been set. func (o *AdapterUnitList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *AdapterUnitList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *AdapterUnitList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type AdapterUnitListWithoutEmbeddedStruct struct { // The total number of 'adapter.Unit' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_adapter_unit_relationship.go b/model_adapter_unit_relationship.go index e6ccd64642..b8cb14d296 100644 --- a/model_adapter_unit_relationship.go +++ b/model_adapter_unit_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_adapter_unit_response.go b/model_adapter_unit_response.go index 44ceb3d371..69d58a4155 100644 --- a/model_adapter_unit_response.go +++ b/model_adapter_unit_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_apic_aci_pod.go b/model_apic_aci_pod.go index 9458186842..d828a5a2f8 100644 --- a/model_apic_aci_pod.go +++ b/model_apic_aci_pod.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -84,6 +84,11 @@ func (o *ApicAciPod) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "apic.AciPod" of the ClassId field. +func (o *ApicAciPod) GetDefaultClassId() interface{} { + return "apic.AciPod" +} + // GetObjectType returns the ObjectType field value func (o *ApicAciPod) GetObjectType() string { if o == nil { @@ -108,6 +113,11 @@ func (o *ApicAciPod) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "apic.AciPod" of the ObjectType field. +func (o *ApicAciPod) GetDefaultObjectType() interface{} { + return "apic.AciPod" +} + // GetName returns the Name field value if set, zero value otherwise. func (o *ApicAciPod) GetName() string { if o == nil || IsNil(o.Name) { @@ -190,7 +200,13 @@ func (o ApicAciPod) ToMap() (map[string]interface{}, error) { if errApicInventoryEntity != nil { return map[string]interface{}{}, errApicInventoryEntity } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Name) { toSerialize["Name"] = o.Name @@ -215,6 +231,13 @@ func (o *ApicAciPod) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -224,11 +247,23 @@ func (o *ApicAciPod) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type ApicAciPodWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_apic_aci_pod_list.go b/model_apic_aci_pod_list.go index e95527d7c1..3830964cad 100644 --- a/model_apic_aci_pod_list.go +++ b/model_apic_aci_pod_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *ApicAciPodList) GetResultsOk() ([]ApicAciPod, bool) { // HasResults returns a boolean if a field has been set. func (o *ApicAciPodList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *ApicAciPodList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *ApicAciPodList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type ApicAciPodListWithoutEmbeddedStruct struct { // The total number of 'apic.AciPod' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_apic_aci_pod_response.go b/model_apic_aci_pod_response.go index 7c2575ee93..9ca192aef6 100644 --- a/model_apic_aci_pod_response.go +++ b/model_apic_aci_pod_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_apic_application.go b/model_apic_application.go index de3b9a9902..d1691bf806 100644 --- a/model_apic_application.go +++ b/model_apic_application.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -85,6 +85,11 @@ func (o *ApicApplication) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "apic.Application" of the ClassId field. +func (o *ApicApplication) GetDefaultClassId() interface{} { + return "apic.Application" +} + // GetObjectType returns the ObjectType field value func (o *ApicApplication) GetObjectType() string { if o == nil { @@ -109,6 +114,11 @@ func (o *ApicApplication) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "apic.Application" of the ObjectType field. +func (o *ApicApplication) GetDefaultObjectType() interface{} { + return "apic.Application" +} + // GetDn returns the Dn field value if set, zero value otherwise. func (o *ApicApplication) GetDn() string { if o == nil || IsNil(o.Dn) { @@ -234,7 +244,13 @@ func (o ApicApplication) ToMap() (map[string]interface{}, error) { if errApicInventoryEntity != nil { return map[string]interface{}{}, errApicInventoryEntity } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Dn) { toSerialize["Dn"] = o.Dn @@ -262,6 +278,13 @@ func (o *ApicApplication) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -271,11 +294,23 @@ func (o *ApicApplication) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type ApicApplicationWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_apic_application_endpoint_group.go b/model_apic_application_endpoint_group.go index 1baa7cf232..491df472d6 100644 --- a/model_apic_application_endpoint_group.go +++ b/model_apic_application_endpoint_group.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -85,6 +85,11 @@ func (o *ApicApplicationEndpointGroup) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "apic.ApplicationEndpointGroup" of the ClassId field. +func (o *ApicApplicationEndpointGroup) GetDefaultClassId() interface{} { + return "apic.ApplicationEndpointGroup" +} + // GetObjectType returns the ObjectType field value func (o *ApicApplicationEndpointGroup) GetObjectType() string { if o == nil { @@ -109,6 +114,11 @@ func (o *ApicApplicationEndpointGroup) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "apic.ApplicationEndpointGroup" of the ObjectType field. +func (o *ApicApplicationEndpointGroup) GetDefaultObjectType() interface{} { + return "apic.ApplicationEndpointGroup" +} + // GetDn returns the Dn field value if set, zero value otherwise. func (o *ApicApplicationEndpointGroup) GetDn() string { if o == nil || IsNil(o.Dn) { @@ -234,7 +244,13 @@ func (o ApicApplicationEndpointGroup) ToMap() (map[string]interface{}, error) { if errApicInventoryEntity != nil { return map[string]interface{}{}, errApicInventoryEntity } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Dn) { toSerialize["Dn"] = o.Dn @@ -262,6 +278,13 @@ func (o *ApicApplicationEndpointGroup) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -271,11 +294,23 @@ func (o *ApicApplicationEndpointGroup) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type ApicApplicationEndpointGroupWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_apic_application_endpoint_group_list.go b/model_apic_application_endpoint_group_list.go index e393d2bb74..75523dab7b 100644 --- a/model_apic_application_endpoint_group_list.go +++ b/model_apic_application_endpoint_group_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *ApicApplicationEndpointGroupList) GetResultsOk() ([]ApicApplicationEndp // HasResults returns a boolean if a field has been set. func (o *ApicApplicationEndpointGroupList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *ApicApplicationEndpointGroupList) UnmarshalJSON(data []byte) (err error "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *ApicApplicationEndpointGroupList) UnmarshalJSON(data []byte) (err error } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type ApicApplicationEndpointGroupListWithoutEmbeddedStruct struct { // The total number of 'apic.ApplicationEndpointGroup' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_apic_application_endpoint_group_response.go b/model_apic_application_endpoint_group_response.go index 5965979e54..b8cda9a9c2 100644 --- a/model_apic_application_endpoint_group_response.go +++ b/model_apic_application_endpoint_group_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_apic_application_list.go b/model_apic_application_list.go index 47701d4faa..30683b677b 100644 --- a/model_apic_application_list.go +++ b/model_apic_application_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *ApicApplicationList) GetResultsOk() ([]ApicApplication, bool) { // HasResults returns a boolean if a field has been set. func (o *ApicApplicationList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *ApicApplicationList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *ApicApplicationList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type ApicApplicationListWithoutEmbeddedStruct struct { // The total number of 'apic.Application' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_apic_application_relationship.go b/model_apic_application_relationship.go index c445bc3b1d..5238dfefaf 100644 --- a/model_apic_application_relationship.go +++ b/model_apic_application_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_apic_application_response.go b/model_apic_application_response.go index 0e0a994261..6c66017330 100644 --- a/model_apic_application_response.go +++ b/model_apic_application_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_apic_bridge_domain.go b/model_apic_bridge_domain.go index 4eba3aa891..44a62d12a9 100644 --- a/model_apic_bridge_domain.go +++ b/model_apic_bridge_domain.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -85,6 +85,11 @@ func (o *ApicBridgeDomain) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "apic.BridgeDomain" of the ClassId field. +func (o *ApicBridgeDomain) GetDefaultClassId() interface{} { + return "apic.BridgeDomain" +} + // GetObjectType returns the ObjectType field value func (o *ApicBridgeDomain) GetObjectType() string { if o == nil { @@ -109,6 +114,11 @@ func (o *ApicBridgeDomain) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "apic.BridgeDomain" of the ObjectType field. +func (o *ApicBridgeDomain) GetDefaultObjectType() interface{} { + return "apic.BridgeDomain" +} + // GetDn returns the Dn field value if set, zero value otherwise. func (o *ApicBridgeDomain) GetDn() string { if o == nil || IsNil(o.Dn) { @@ -234,7 +244,13 @@ func (o ApicBridgeDomain) ToMap() (map[string]interface{}, error) { if errApicInventoryEntity != nil { return map[string]interface{}{}, errApicInventoryEntity } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Dn) { toSerialize["Dn"] = o.Dn @@ -262,6 +278,13 @@ func (o *ApicBridgeDomain) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -271,11 +294,23 @@ func (o *ApicBridgeDomain) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type ApicBridgeDomainWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_apic_bridge_domain_list.go b/model_apic_bridge_domain_list.go index d3d05f5e20..8bccb1a1a8 100644 --- a/model_apic_bridge_domain_list.go +++ b/model_apic_bridge_domain_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *ApicBridgeDomainList) GetResultsOk() ([]ApicBridgeDomain, bool) { // HasResults returns a boolean if a field has been set. func (o *ApicBridgeDomainList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *ApicBridgeDomainList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *ApicBridgeDomainList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type ApicBridgeDomainListWithoutEmbeddedStruct struct { // The total number of 'apic.BridgeDomain' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_apic_bridge_domain_relationship.go b/model_apic_bridge_domain_relationship.go index 7d5ba18dd9..5206fc32aa 100644 --- a/model_apic_bridge_domain_relationship.go +++ b/model_apic_bridge_domain_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_apic_bridge_domain_response.go b/model_apic_bridge_domain_response.go index 75e2e3afac..6c2a355e87 100644 --- a/model_apic_bridge_domain_response.go +++ b/model_apic_bridge_domain_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_apic_external_routed_layer_three_domain.go b/model_apic_external_routed_layer_three_domain.go index 5a34eab83c..bcb693a811 100644 --- a/model_apic_external_routed_layer_three_domain.go +++ b/model_apic_external_routed_layer_three_domain.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -84,6 +84,11 @@ func (o *ApicExternalRoutedLayerThreeDomain) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "apic.ExternalRoutedLayerThreeDomain" of the ClassId field. +func (o *ApicExternalRoutedLayerThreeDomain) GetDefaultClassId() interface{} { + return "apic.ExternalRoutedLayerThreeDomain" +} + // GetObjectType returns the ObjectType field value func (o *ApicExternalRoutedLayerThreeDomain) GetObjectType() string { if o == nil { @@ -108,6 +113,11 @@ func (o *ApicExternalRoutedLayerThreeDomain) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "apic.ExternalRoutedLayerThreeDomain" of the ObjectType field. +func (o *ApicExternalRoutedLayerThreeDomain) GetDefaultObjectType() interface{} { + return "apic.ExternalRoutedLayerThreeDomain" +} + // GetDn returns the Dn field value if set, zero value otherwise. func (o *ApicExternalRoutedLayerThreeDomain) GetDn() string { if o == nil || IsNil(o.Dn) { @@ -190,7 +200,13 @@ func (o ApicExternalRoutedLayerThreeDomain) ToMap() (map[string]interface{}, err if errApicInventoryEntity != nil { return map[string]interface{}{}, errApicInventoryEntity } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Dn) { toSerialize["Dn"] = o.Dn @@ -215,6 +231,13 @@ func (o *ApicExternalRoutedLayerThreeDomain) UnmarshalJSON(data []byte) (err err "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -224,11 +247,23 @@ func (o *ApicExternalRoutedLayerThreeDomain) UnmarshalJSON(data []byte) (err err } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type ApicExternalRoutedLayerThreeDomainWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_apic_external_routed_layer_three_domain_list.go b/model_apic_external_routed_layer_three_domain_list.go index 8a2c158957..557825e23b 100644 --- a/model_apic_external_routed_layer_three_domain_list.go +++ b/model_apic_external_routed_layer_three_domain_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *ApicExternalRoutedLayerThreeDomainList) GetResultsOk() ([]ApicExternalR // HasResults returns a boolean if a field has been set. func (o *ApicExternalRoutedLayerThreeDomainList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *ApicExternalRoutedLayerThreeDomainList) UnmarshalJSON(data []byte) (err "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *ApicExternalRoutedLayerThreeDomainList) UnmarshalJSON(data []byte) (err } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type ApicExternalRoutedLayerThreeDomainListWithoutEmbeddedStruct struct { // The total number of 'apic.ExternalRoutedLayerThreeDomain' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_apic_external_routed_layer_three_domain_response.go b/model_apic_external_routed_layer_three_domain_response.go index 609346af14..dd15901957 100644 --- a/model_apic_external_routed_layer_three_domain_response.go +++ b/model_apic_external_routed_layer_three_domain_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_apic_fabric_leaf_node.go b/model_apic_fabric_leaf_node.go index 0328489402..a063154567 100644 --- a/model_apic_fabric_leaf_node.go +++ b/model_apic_fabric_leaf_node.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -89,6 +89,11 @@ func (o *ApicFabricLeafNode) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "apic.FabricLeafNode" of the ClassId field. +func (o *ApicFabricLeafNode) GetDefaultClassId() interface{} { + return "apic.FabricLeafNode" +} + // GetObjectType returns the ObjectType field value func (o *ApicFabricLeafNode) GetObjectType() string { if o == nil { @@ -113,6 +118,11 @@ func (o *ApicFabricLeafNode) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "apic.FabricLeafNode" of the ObjectType field. +func (o *ApicFabricLeafNode) GetDefaultObjectType() interface{} { + return "apic.FabricLeafNode" +} + // GetAddress returns the Address field value if set, zero value otherwise. func (o *ApicFabricLeafNode) GetAddress() string { if o == nil || IsNil(o.Address) { @@ -302,7 +312,13 @@ func (o ApicFabricLeafNode) ToMap() (map[string]interface{}, error) { if errApicInventoryEntity != nil { return map[string]interface{}{}, errApicInventoryEntity } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Address) { toSerialize["Address"] = o.Address @@ -336,6 +352,13 @@ func (o *ApicFabricLeafNode) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -345,11 +368,23 @@ func (o *ApicFabricLeafNode) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type ApicFabricLeafNodeWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_apic_fabric_leaf_node_details.go b/model_apic_fabric_leaf_node_details.go index 556e827ac4..5ddbaa5289 100644 --- a/model_apic_fabric_leaf_node_details.go +++ b/model_apic_fabric_leaf_node_details.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -84,6 +84,11 @@ func (o *ApicFabricLeafNodeDetails) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "apic.FabricLeafNodeDetails" of the ClassId field. +func (o *ApicFabricLeafNodeDetails) GetDefaultClassId() interface{} { + return "apic.FabricLeafNodeDetails" +} + // GetObjectType returns the ObjectType field value func (o *ApicFabricLeafNodeDetails) GetObjectType() string { if o == nil { @@ -108,6 +113,11 @@ func (o *ApicFabricLeafNodeDetails) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "apic.FabricLeafNodeDetails" of the ObjectType field. +func (o *ApicFabricLeafNodeDetails) GetDefaultObjectType() interface{} { + return "apic.FabricLeafNodeDetails" +} + // GetId returns the Id field value if set, zero value otherwise. func (o *ApicFabricLeafNodeDetails) GetId() string { if o == nil || IsNil(o.Id) { @@ -190,7 +200,13 @@ func (o ApicFabricLeafNodeDetails) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Id) { toSerialize["Id"] = o.Id @@ -215,6 +231,13 @@ func (o *ApicFabricLeafNodeDetails) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -224,11 +247,23 @@ func (o *ApicFabricLeafNodeDetails) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type ApicFabricLeafNodeDetailsWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_apic_fabric_leaf_node_interface.go b/model_apic_fabric_leaf_node_interface.go index 57c0474ffc..d9c6e61a59 100644 --- a/model_apic_fabric_leaf_node_interface.go +++ b/model_apic_fabric_leaf_node_interface.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -89,6 +89,11 @@ func (o *ApicFabricLeafNodeInterface) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "apic.FabricLeafNodeInterface" of the ClassId field. +func (o *ApicFabricLeafNodeInterface) GetDefaultClassId() interface{} { + return "apic.FabricLeafNodeInterface" +} + // GetObjectType returns the ObjectType field value func (o *ApicFabricLeafNodeInterface) GetObjectType() string { if o == nil { @@ -113,6 +118,11 @@ func (o *ApicFabricLeafNodeInterface) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "apic.FabricLeafNodeInterface" of the ObjectType field. +func (o *ApicFabricLeafNodeInterface) GetDefaultObjectType() interface{} { + return "apic.FabricLeafNodeInterface" +} + // GetDn returns the Dn field value if set, zero value otherwise. func (o *ApicFabricLeafNodeInterface) GetDn() string { if o == nil || IsNil(o.Dn) { @@ -302,7 +312,13 @@ func (o ApicFabricLeafNodeInterface) ToMap() (map[string]interface{}, error) { if errApicInventoryEntity != nil { return map[string]interface{}{}, errApicInventoryEntity } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Dn) { toSerialize["Dn"] = o.Dn @@ -336,6 +352,13 @@ func (o *ApicFabricLeafNodeInterface) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -345,11 +368,23 @@ func (o *ApicFabricLeafNodeInterface) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type ApicFabricLeafNodeInterfaceWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_apic_fabric_leaf_node_interface_list.go b/model_apic_fabric_leaf_node_interface_list.go index d479fbe9a9..5a7f3e2e27 100644 --- a/model_apic_fabric_leaf_node_interface_list.go +++ b/model_apic_fabric_leaf_node_interface_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *ApicFabricLeafNodeInterfaceList) GetResultsOk() ([]ApicFabricLeafNodeIn // HasResults returns a boolean if a field has been set. func (o *ApicFabricLeafNodeInterfaceList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *ApicFabricLeafNodeInterfaceList) UnmarshalJSON(data []byte) (err error) "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *ApicFabricLeafNodeInterfaceList) UnmarshalJSON(data []byte) (err error) } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type ApicFabricLeafNodeInterfaceListWithoutEmbeddedStruct struct { // The total number of 'apic.FabricLeafNodeInterface' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_apic_fabric_leaf_node_interface_response.go b/model_apic_fabric_leaf_node_interface_response.go index 18a5024e6b..4bc02e3315 100644 --- a/model_apic_fabric_leaf_node_interface_response.go +++ b/model_apic_fabric_leaf_node_interface_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_apic_fabric_leaf_node_list.go b/model_apic_fabric_leaf_node_list.go index bf7f781401..b1c8fb6dd3 100644 --- a/model_apic_fabric_leaf_node_list.go +++ b/model_apic_fabric_leaf_node_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *ApicFabricLeafNodeList) GetResultsOk() ([]ApicFabricLeafNode, bool) { // HasResults returns a boolean if a field has been set. func (o *ApicFabricLeafNodeList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *ApicFabricLeafNodeList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *ApicFabricLeafNodeList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type ApicFabricLeafNodeListWithoutEmbeddedStruct struct { // The total number of 'apic.FabricLeafNode' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_apic_fabric_leaf_node_relationship.go b/model_apic_fabric_leaf_node_relationship.go index cacbc5a9e8..037ab97881 100644 --- a/model_apic_fabric_leaf_node_relationship.go +++ b/model_apic_fabric_leaf_node_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_apic_fabric_leaf_node_response.go b/model_apic_fabric_leaf_node_response.go index f6f4ca992b..46ffc1c0ca 100644 --- a/model_apic_fabric_leaf_node_response.go +++ b/model_apic_fabric_leaf_node_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_apic_inventory_entity.go b/model_apic_inventory_entity.go index 9f7aa44e0d..31c9394867 100644 --- a/model_apic_inventory_entity.go +++ b/model_apic_inventory_entity.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -184,6 +184,10 @@ func (o *ApicInventoryEntity) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -193,11 +197,23 @@ func (o *ApicInventoryEntity) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type ApicInventoryEntityWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. The enum values provides the list of concrete types that can be instantiated from this abstract type. ClassId string `json:"ClassId"` diff --git a/model_apic_out.go b/model_apic_out.go index bf20c919ff..2f98e79c8e 100644 --- a/model_apic_out.go +++ b/model_apic_out.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -85,6 +85,11 @@ func (o *ApicOut) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "apic.Out" of the ClassId field. +func (o *ApicOut) GetDefaultClassId() interface{} { + return "apic.Out" +} + // GetObjectType returns the ObjectType field value func (o *ApicOut) GetObjectType() string { if o == nil { @@ -109,6 +114,11 @@ func (o *ApicOut) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "apic.Out" of the ObjectType field. +func (o *ApicOut) GetDefaultObjectType() interface{} { + return "apic.Out" +} + // GetDn returns the Dn field value if set, zero value otherwise. func (o *ApicOut) GetDn() string { if o == nil || IsNil(o.Dn) { @@ -234,7 +244,13 @@ func (o ApicOut) ToMap() (map[string]interface{}, error) { if errApicInventoryEntity != nil { return map[string]interface{}{}, errApicInventoryEntity } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Dn) { toSerialize["Dn"] = o.Dn @@ -262,6 +278,13 @@ func (o *ApicOut) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -271,11 +294,23 @@ func (o *ApicOut) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type ApicOutWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_apic_out_list.go b/model_apic_out_list.go index 74b6edbc5b..fe7f4497fb 100644 --- a/model_apic_out_list.go +++ b/model_apic_out_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *ApicOutList) GetResultsOk() ([]ApicOut, bool) { // HasResults returns a boolean if a field has been set. func (o *ApicOutList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *ApicOutList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *ApicOutList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type ApicOutListWithoutEmbeddedStruct struct { // The total number of 'apic.Out' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_apic_out_response.go b/model_apic_out_response.go index c5ffc3e287..00bf3539fd 100644 --- a/model_apic_out_response.go +++ b/model_apic_out_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_apic_subnet.go b/model_apic_subnet.go index 50c077c0c6..ac328cdfdc 100644 --- a/model_apic_subnet.go +++ b/model_apic_subnet.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -87,6 +87,11 @@ func (o *ApicSubnet) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "apic.Subnet" of the ClassId field. +func (o *ApicSubnet) GetDefaultClassId() interface{} { + return "apic.Subnet" +} + // GetObjectType returns the ObjectType field value func (o *ApicSubnet) GetObjectType() string { if o == nil { @@ -111,6 +116,11 @@ func (o *ApicSubnet) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "apic.Subnet" of the ObjectType field. +func (o *ApicSubnet) GetDefaultObjectType() interface{} { + return "apic.Subnet" +} + // GetDn returns the Dn field value if set, zero value otherwise. func (o *ApicSubnet) GetDn() string { if o == nil || IsNil(o.Dn) { @@ -268,7 +278,13 @@ func (o ApicSubnet) ToMap() (map[string]interface{}, error) { if errApicInventoryEntity != nil { return map[string]interface{}{}, errApicInventoryEntity } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Dn) { toSerialize["Dn"] = o.Dn @@ -299,6 +315,13 @@ func (o *ApicSubnet) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -308,11 +331,23 @@ func (o *ApicSubnet) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type ApicSubnetWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_apic_subnet_list.go b/model_apic_subnet_list.go index 45d1445372..45627918f2 100644 --- a/model_apic_subnet_list.go +++ b/model_apic_subnet_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *ApicSubnetList) GetResultsOk() ([]ApicSubnet, bool) { // HasResults returns a boolean if a field has been set. func (o *ApicSubnetList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *ApicSubnetList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *ApicSubnetList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type ApicSubnetListWithoutEmbeddedStruct struct { // The total number of 'apic.Subnet' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_apic_subnet_response.go b/model_apic_subnet_response.go index 70f0786921..ffffba9fef 100644 --- a/model_apic_subnet_response.go +++ b/model_apic_subnet_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_apic_tenant.go b/model_apic_tenant.go index 84fdd886a4..92d17abd73 100644 --- a/model_apic_tenant.go +++ b/model_apic_tenant.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -86,6 +86,11 @@ func (o *ApicTenant) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "apic.Tenant" of the ClassId field. +func (o *ApicTenant) GetDefaultClassId() interface{} { + return "apic.Tenant" +} + // GetObjectType returns the ObjectType field value func (o *ApicTenant) GetObjectType() string { if o == nil { @@ -110,6 +115,11 @@ func (o *ApicTenant) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "apic.Tenant" of the ObjectType field. +func (o *ApicTenant) GetDefaultObjectType() interface{} { + return "apic.Tenant" +} + // GetDescription returns the Description field value if set, zero value otherwise. func (o *ApicTenant) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -224,7 +234,13 @@ func (o ApicTenant) ToMap() (map[string]interface{}, error) { if errApicInventoryEntity != nil { return map[string]interface{}{}, errApicInventoryEntity } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Description) { toSerialize["Description"] = o.Description @@ -252,6 +268,13 @@ func (o *ApicTenant) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -261,11 +284,23 @@ func (o *ApicTenant) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type ApicTenantWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_apic_tenant_list.go b/model_apic_tenant_list.go index 361ba1c6b2..fff5dcdbc9 100644 --- a/model_apic_tenant_list.go +++ b/model_apic_tenant_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *ApicTenantList) GetResultsOk() ([]ApicTenant, bool) { // HasResults returns a boolean if a field has been set. func (o *ApicTenantList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *ApicTenantList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *ApicTenantList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type ApicTenantListWithoutEmbeddedStruct struct { // The total number of 'apic.Tenant' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_apic_tenant_relationship.go b/model_apic_tenant_relationship.go index 7797a6f619..632137875d 100644 --- a/model_apic_tenant_relationship.go +++ b/model_apic_tenant_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_apic_tenant_response.go b/model_apic_tenant_response.go index c56f91459b..a552baba0b 100644 --- a/model_apic_tenant_response.go +++ b/model_apic_tenant_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_apic_vpc_group.go b/model_apic_vpc_group.go index 8197c4cbda..80a89e97c2 100644 --- a/model_apic_vpc_group.go +++ b/model_apic_vpc_group.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -84,6 +84,11 @@ func (o *ApicVpcGroup) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "apic.VpcGroup" of the ClassId field. +func (o *ApicVpcGroup) GetDefaultClassId() interface{} { + return "apic.VpcGroup" +} + // GetObjectType returns the ObjectType field value func (o *ApicVpcGroup) GetObjectType() string { if o == nil { @@ -108,6 +113,11 @@ func (o *ApicVpcGroup) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "apic.VpcGroup" of the ObjectType field. +func (o *ApicVpcGroup) GetDefaultObjectType() interface{} { + return "apic.VpcGroup" +} + // GetDn returns the Dn field value if set, zero value otherwise. func (o *ApicVpcGroup) GetDn() string { if o == nil || IsNil(o.Dn) { @@ -190,7 +200,13 @@ func (o ApicVpcGroup) ToMap() (map[string]interface{}, error) { if errApicInventoryEntity != nil { return map[string]interface{}{}, errApicInventoryEntity } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Dn) { toSerialize["Dn"] = o.Dn @@ -215,6 +231,13 @@ func (o *ApicVpcGroup) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -224,11 +247,23 @@ func (o *ApicVpcGroup) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type ApicVpcGroupWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_apic_vpc_group_list.go b/model_apic_vpc_group_list.go index d8a8066500..16dc23c106 100644 --- a/model_apic_vpc_group_list.go +++ b/model_apic_vpc_group_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *ApicVpcGroupList) GetResultsOk() ([]ApicVpcGroup, bool) { // HasResults returns a boolean if a field has been set. func (o *ApicVpcGroupList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *ApicVpcGroupList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *ApicVpcGroupList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type ApicVpcGroupListWithoutEmbeddedStruct struct { // The total number of 'apic.VpcGroup' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_apic_vpc_group_response.go b/model_apic_vpc_group_response.go index 37db4ca266..84dc2d3ce7 100644 --- a/model_apic_vpc_group_response.go +++ b/model_apic_vpc_group_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_apic_vrfs.go b/model_apic_vrfs.go index ccac1aaad2..24d0784888 100644 --- a/model_apic_vrfs.go +++ b/model_apic_vrfs.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -85,6 +85,11 @@ func (o *ApicVrfs) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "apic.Vrfs" of the ClassId field. +func (o *ApicVrfs) GetDefaultClassId() interface{} { + return "apic.Vrfs" +} + // GetObjectType returns the ObjectType field value func (o *ApicVrfs) GetObjectType() string { if o == nil { @@ -109,6 +114,11 @@ func (o *ApicVrfs) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "apic.Vrfs" of the ObjectType field. +func (o *ApicVrfs) GetDefaultObjectType() interface{} { + return "apic.Vrfs" +} + // GetDn returns the Dn field value if set, zero value otherwise. func (o *ApicVrfs) GetDn() string { if o == nil || IsNil(o.Dn) { @@ -234,7 +244,13 @@ func (o ApicVrfs) ToMap() (map[string]interface{}, error) { if errApicInventoryEntity != nil { return map[string]interface{}{}, errApicInventoryEntity } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Dn) { toSerialize["Dn"] = o.Dn @@ -262,6 +278,13 @@ func (o *ApicVrfs) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -271,11 +294,23 @@ func (o *ApicVrfs) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type ApicVrfsWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_apic_vrfs_list.go b/model_apic_vrfs_list.go index 002b294887..6c86777dd6 100644 --- a/model_apic_vrfs_list.go +++ b/model_apic_vrfs_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *ApicVrfsList) GetResultsOk() ([]ApicVrfs, bool) { // HasResults returns a boolean if a field has been set. func (o *ApicVrfsList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *ApicVrfsList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *ApicVrfsList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type ApicVrfsListWithoutEmbeddedStruct struct { // The total number of 'apic.Vrfs' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_apic_vrfs_response.go b/model_apic_vrfs_response.go index 7056191ace..c29c2295d9 100644 --- a/model_apic_vrfs_response.go +++ b/model_apic_vrfs_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_appliance_api_status.go b/model_appliance_api_status.go index 03dd1cda09..3e3d096c92 100644 --- a/model_appliance_api_status.go +++ b/model_appliance_api_status.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -88,6 +88,11 @@ func (o *ApplianceApiStatus) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "appliance.ApiStatus" of the ClassId field. +func (o *ApplianceApiStatus) GetDefaultClassId() interface{} { + return "appliance.ApiStatus" +} + // GetObjectType returns the ObjectType field value func (o *ApplianceApiStatus) GetObjectType() string { if o == nil { @@ -112,6 +117,11 @@ func (o *ApplianceApiStatus) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "appliance.ApiStatus" of the ObjectType field. +func (o *ApplianceApiStatus) GetDefaultObjectType() interface{} { + return "appliance.ApiStatus" +} + // GetElapsedTime returns the ElapsedTime field value if set, zero value otherwise. func (o *ApplianceApiStatus) GetElapsedTime() float32 { if o == nil || IsNil(o.ElapsedTime) { @@ -258,7 +268,13 @@ func (o ApplianceApiStatus) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.ElapsedTime) { toSerialize["ElapsedTime"] = o.ElapsedTime @@ -289,6 +305,13 @@ func (o *ApplianceApiStatus) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -298,11 +321,23 @@ func (o *ApplianceApiStatus) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type ApplianceApiStatusWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_appliance_app_op_status.go b/model_appliance_app_op_status.go index ede16fce7c..76ada4e2d2 100644 --- a/model_appliance_app_op_status.go +++ b/model_appliance_app_op_status.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -101,6 +101,11 @@ func (o *ApplianceAppOpStatus) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "appliance.AppOpStatus" of the ClassId field. +func (o *ApplianceAppOpStatus) GetDefaultClassId() interface{} { + return "appliance.AppOpStatus" +} + // GetObjectType returns the ObjectType field value func (o *ApplianceAppOpStatus) GetObjectType() string { if o == nil { @@ -125,6 +130,11 @@ func (o *ApplianceAppOpStatus) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "appliance.AppOpStatus" of the ObjectType field. +func (o *ApplianceAppOpStatus) GetDefaultObjectType() interface{} { + return "appliance.AppOpStatus" +} + // GetApiStatuses returns the ApiStatuses field value if set, zero value otherwise (both if not set or set to explicit null). func (o *ApplianceAppOpStatus) GetApiStatuses() []ApplianceApiStatus { if o == nil { @@ -146,7 +156,7 @@ func (o *ApplianceAppOpStatus) GetApiStatusesOk() ([]ApplianceApiStatus, bool) { // HasApiStatuses returns a boolean if a field has been set. func (o *ApplianceAppOpStatus) HasApiStatuses() bool { - if o != nil && IsNil(o.ApiStatuses) { + if o != nil && !IsNil(o.ApiStatuses) { return true } @@ -550,7 +560,13 @@ func (o ApplianceAppOpStatus) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.ApiStatuses != nil { toSerialize["ApiStatuses"] = o.ApiStatuses @@ -605,6 +621,13 @@ func (o *ApplianceAppOpStatus) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -614,11 +637,23 @@ func (o *ApplianceAppOpStatus) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type ApplianceAppOpStatusWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_appliance_app_op_status_list.go b/model_appliance_app_op_status_list.go index ced5c73956..00dca59cd7 100644 --- a/model_appliance_app_op_status_list.go +++ b/model_appliance_app_op_status_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *ApplianceAppOpStatusList) GetResultsOk() ([]ApplianceAppOpStatus, bool) // HasResults returns a boolean if a field has been set. func (o *ApplianceAppOpStatusList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *ApplianceAppOpStatusList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *ApplianceAppOpStatusList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type ApplianceAppOpStatusListWithoutEmbeddedStruct struct { // The total number of 'appliance.AppOpStatus' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_appliance_app_op_status_relationship.go b/model_appliance_app_op_status_relationship.go index e1d0406b0e..4191cabae4 100644 --- a/model_appliance_app_op_status_relationship.go +++ b/model_appliance_app_op_status_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_appliance_app_op_status_response.go b/model_appliance_app_op_status_response.go index 7a1a69ef59..a3dd0fb486 100644 --- a/model_appliance_app_op_status_response.go +++ b/model_appliance_app_op_status_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_appliance_app_status.go b/model_appliance_app_status.go index 7c0af359b0..cf816ae5d1 100644 --- a/model_appliance_app_status.go +++ b/model_appliance_app_status.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -102,6 +102,11 @@ func (o *ApplianceAppStatus) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "appliance.AppStatus" of the ClassId field. +func (o *ApplianceAppStatus) GetDefaultClassId() interface{} { + return "appliance.AppStatus" +} + // GetObjectType returns the ObjectType field value func (o *ApplianceAppStatus) GetObjectType() string { if o == nil { @@ -126,6 +131,11 @@ func (o *ApplianceAppStatus) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "appliance.AppStatus" of the ObjectType field. +func (o *ApplianceAppStatus) GetDefaultObjectType() interface{} { + return "appliance.AppStatus" +} + // GetApiStatuses returns the ApiStatuses field value if set, zero value otherwise (both if not set or set to explicit null). func (o *ApplianceAppStatus) GetApiStatuses() []ApplianceApiStatus { if o == nil { @@ -147,7 +157,7 @@ func (o *ApplianceAppStatus) GetApiStatusesOk() ([]ApplianceApiStatus, bool) { // HasApiStatuses returns a boolean if a field has been set. func (o *ApplianceAppStatus) HasApiStatuses() bool { - if o != nil && IsNil(o.ApiStatuses) { + if o != nil && !IsNil(o.ApiStatuses) { return true } @@ -468,7 +478,7 @@ func (o *ApplianceAppStatus) GetStatusChecksOk() ([]ApplianceStatusCheck, bool) // HasStatusChecks returns a boolean if a field has been set. func (o *ApplianceAppStatus) HasStatusChecks() bool { - if o != nil && IsNil(o.StatusChecks) { + if o != nil && !IsNil(o.StatusChecks) { return true } @@ -584,7 +594,13 @@ func (o ApplianceAppStatus) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.ApiStatuses != nil { toSerialize["ApiStatuses"] = o.ApiStatuses @@ -642,6 +658,13 @@ func (o *ApplianceAppStatus) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -651,11 +674,23 @@ func (o *ApplianceAppStatus) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type ApplianceAppStatusWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_appliance_app_status_list.go b/model_appliance_app_status_list.go index 92c18e5b33..823e65836f 100644 --- a/model_appliance_app_status_list.go +++ b/model_appliance_app_status_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *ApplianceAppStatusList) GetResultsOk() ([]ApplianceAppStatus, bool) { // HasResults returns a boolean if a field has been set. func (o *ApplianceAppStatusList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *ApplianceAppStatusList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *ApplianceAppStatusList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type ApplianceAppStatusListWithoutEmbeddedStruct struct { // The total number of 'appliance.AppStatus' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_appliance_app_status_relationship.go b/model_appliance_app_status_relationship.go index a3d540b62c..51cbb240e7 100644 --- a/model_appliance_app_status_relationship.go +++ b/model_appliance_app_status_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_appliance_app_status_response.go b/model_appliance_app_status_response.go index b7d78aaab6..2732b2367d 100644 --- a/model_appliance_app_status_response.go +++ b/model_appliance_app_status_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_appliance_auto_rma_policy.go b/model_appliance_auto_rma_policy.go index ccab2117e0..ac42db70d3 100644 --- a/model_appliance_auto_rma_policy.go +++ b/model_appliance_auto_rma_policy.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -83,6 +83,11 @@ func (o *ApplianceAutoRmaPolicy) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "appliance.AutoRmaPolicy" of the ClassId field. +func (o *ApplianceAutoRmaPolicy) GetDefaultClassId() interface{} { + return "appliance.AutoRmaPolicy" +} + // GetObjectType returns the ObjectType field value func (o *ApplianceAutoRmaPolicy) GetObjectType() string { if o == nil { @@ -107,6 +112,11 @@ func (o *ApplianceAutoRmaPolicy) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "appliance.AutoRmaPolicy" of the ObjectType field. +func (o *ApplianceAutoRmaPolicy) GetDefaultObjectType() interface{} { + return "appliance.AutoRmaPolicy" +} + // GetEnable returns the Enable field value if set, zero value otherwise. func (o *ApplianceAutoRmaPolicy) GetEnable() bool { if o == nil || IsNil(o.Enable) { @@ -200,7 +210,13 @@ func (o ApplianceAutoRmaPolicy) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Enable) { toSerialize["Enable"] = o.Enable @@ -225,6 +241,13 @@ func (o *ApplianceAutoRmaPolicy) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -234,11 +257,23 @@ func (o *ApplianceAutoRmaPolicy) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type ApplianceAutoRmaPolicyWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_appliance_auto_rma_policy_list.go b/model_appliance_auto_rma_policy_list.go index 209bf1a529..f15432756a 100644 --- a/model_appliance_auto_rma_policy_list.go +++ b/model_appliance_auto_rma_policy_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *ApplianceAutoRmaPolicyList) GetResultsOk() ([]ApplianceAutoRmaPolicy, b // HasResults returns a boolean if a field has been set. func (o *ApplianceAutoRmaPolicyList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *ApplianceAutoRmaPolicyList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *ApplianceAutoRmaPolicyList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type ApplianceAutoRmaPolicyListWithoutEmbeddedStruct struct { // The total number of 'appliance.AutoRmaPolicy' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_appliance_auto_rma_policy_response.go b/model_appliance_auto_rma_policy_response.go index 770833bb9c..b9e81bb3d8 100644 --- a/model_appliance_auto_rma_policy_response.go +++ b/model_appliance_auto_rma_policy_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_appliance_backup.go b/model_appliance_backup.go index 030ac26ac8..777c5c15f3 100644 --- a/model_appliance_backup.go +++ b/model_appliance_backup.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -39,7 +39,7 @@ type ApplianceBackup struct { IsPasswordSet *bool `json:"IsPasswordSet,omitempty"` Messages []string `json:"Messages,omitempty"` // Password to authenticate the fileserver. - Password *string `json:"Password,omitempty"` + Password *string "json:\"Password,omitempty\" validate:\"regexp=^$|^[^`]+$\"" // Start date and time of the backup process. StartTime *time.Time `json:"StartTime,omitempty"` // Status of the backup managed object. * `Started` - Backup or restore process has started. * `Created` - Backup or restore is in created state. * `Failed` - Backup or restore process has failed. * `Completed` - Backup or restore process has completed. * `Copied` - Backup file has been copied. * `Cleanup Failed` - Cleanup of the old backup has failed. @@ -99,6 +99,11 @@ func (o *ApplianceBackup) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "appliance.Backup" of the ClassId field. +func (o *ApplianceBackup) GetDefaultClassId() interface{} { + return "appliance.Backup" +} + // GetObjectType returns the ObjectType field value func (o *ApplianceBackup) GetObjectType() string { if o == nil { @@ -123,6 +128,11 @@ func (o *ApplianceBackup) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "appliance.Backup" of the ObjectType field. +func (o *ApplianceBackup) GetDefaultObjectType() interface{} { + return "appliance.Backup" +} + // GetElapsedTime returns the ElapsedTime field value if set, zero value otherwise. func (o *ApplianceBackup) GetElapsedTime() int64 { if o == nil || IsNil(o.ElapsedTime) { @@ -272,7 +282,7 @@ func (o *ApplianceBackup) GetMessagesOk() ([]string, bool) { // HasMessages returns a boolean if a field has been set. func (o *ApplianceBackup) HasMessages() bool { - if o != nil && IsNil(o.Messages) { + if o != nil && !IsNil(o.Messages) { return true } @@ -441,7 +451,13 @@ func (o ApplianceBackup) ToMap() (map[string]interface{}, error) { if errApplianceBackupBase != nil { return map[string]interface{}{}, errApplianceBackupBase } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.ElapsedTime) { toSerialize["ElapsedTime"] = o.ElapsedTime @@ -487,6 +503,13 @@ func (o *ApplianceBackup) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -496,11 +519,23 @@ func (o *ApplianceBackup) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type ApplianceBackupWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` @@ -516,7 +551,7 @@ func (o *ApplianceBackup) UnmarshalJSON(data []byte) (err error) { IsPasswordSet *bool `json:"IsPasswordSet,omitempty"` Messages []string `json:"Messages,omitempty"` // Password to authenticate the fileserver. - Password *string `json:"Password,omitempty"` + Password *string "json:\"Password,omitempty\" validate:\"regexp=^$|^[^`]+$\"" // Start date and time of the backup process. StartTime *time.Time `json:"StartTime,omitempty"` // Status of the backup managed object. * `Started` - Backup or restore process has started. * `Created` - Backup or restore is in created state. * `Failed` - Backup or restore process has failed. * `Completed` - Backup or restore process has completed. * `Copied` - Backup file has been copied. * `Cleanup Failed` - Cleanup of the old backup has failed. diff --git a/model_appliance_backup_base.go b/model_appliance_backup_base.go index e565b42f6a..7639c0edc5 100644 --- a/model_appliance_backup_base.go +++ b/model_appliance_backup_base.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -29,17 +29,17 @@ type ApplianceBackupBase struct { // The fully-qualified name of the instantiated, concrete type. The value should be the same as the 'ClassId' property. The enum values provides the list of concrete types that can be instantiated from this abstract type. ObjectType string `json:"ObjectType"` // Backup filename to backup or restore. - Filename *string `json:"Filename,omitempty"` + Filename *string `json:"Filename,omitempty" validate:"regexp=^$|^[a-zA-Z0-9][a-zA-Z0-9_\\\\.\\\\-\\\\+]*$"` // Communication protocol used by the file server (e.g. scp, sftp, or CIFS). * `scp` - Secure Copy Protocol (SCP) to access the file server. * `sftp` - SSH File Transfer Protocol (SFTP) to access file server. * `cifs` - Common Internet File System (CIFS) Protocol to access file server. Protocol *string `json:"Protocol,omitempty"` // Hostname of the remote file server. RemoteHost *string `json:"RemoteHost,omitempty"` // File server directory or share name to copy the file. - RemotePath *string `json:"RemotePath,omitempty"` + RemotePath *string "json:\"RemotePath,omitempty\" validate:\"regexp=^$|^[^`]+$\"" // Remote TCP port on the file server (e.g. 22 for scp). RemotePort *int64 `json:"RemotePort,omitempty"` // Username to authenticate the fileserver. - Username *string `json:"Username,omitempty"` + Username *string `json:"Username,omitempty" validate:"regexp=^$|^[a-zA-Z0-9_][a-zA-Z0-9_\\\\.\\\\@\\\\\\\\\\\\-\\\\+]*$"` AdditionalProperties map[string]interface{} } @@ -363,6 +363,10 @@ func (o *ApplianceBackupBase) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -372,28 +376,40 @@ func (o *ApplianceBackupBase) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type ApplianceBackupBaseWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. The enum values provides the list of concrete types that can be instantiated from this abstract type. ClassId string `json:"ClassId"` // The fully-qualified name of the instantiated, concrete type. The value should be the same as the 'ClassId' property. The enum values provides the list of concrete types that can be instantiated from this abstract type. ObjectType string `json:"ObjectType"` // Backup filename to backup or restore. - Filename *string `json:"Filename,omitempty"` + Filename *string `json:"Filename,omitempty" validate:"regexp=^$|^[a-zA-Z0-9][a-zA-Z0-9_\\\\.\\\\-\\\\+]*$"` // Communication protocol used by the file server (e.g. scp, sftp, or CIFS). * `scp` - Secure Copy Protocol (SCP) to access the file server. * `sftp` - SSH File Transfer Protocol (SFTP) to access file server. * `cifs` - Common Internet File System (CIFS) Protocol to access file server. Protocol *string `json:"Protocol,omitempty"` // Hostname of the remote file server. RemoteHost *string `json:"RemoteHost,omitempty"` // File server directory or share name to copy the file. - RemotePath *string `json:"RemotePath,omitempty"` + RemotePath *string "json:\"RemotePath,omitempty\" validate:\"regexp=^$|^[^`]+$\"" // Remote TCP port on the file server (e.g. 22 for scp). RemotePort *int64 `json:"RemotePort,omitempty"` // Username to authenticate the fileserver. - Username *string `json:"Username,omitempty"` + Username *string `json:"Username,omitempty" validate:"regexp=^$|^[a-zA-Z0-9_][a-zA-Z0-9_\\\\.\\\\@\\\\\\\\\\\\-\\\\+]*$"` } varApplianceBackupBaseWithoutEmbeddedStruct := ApplianceBackupBaseWithoutEmbeddedStruct{} diff --git a/model_appliance_backup_list.go b/model_appliance_backup_list.go index a3364a2714..c6305a313d 100644 --- a/model_appliance_backup_list.go +++ b/model_appliance_backup_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *ApplianceBackupList) GetResultsOk() ([]ApplianceBackup, bool) { // HasResults returns a boolean if a field has been set. func (o *ApplianceBackupList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *ApplianceBackupList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *ApplianceBackupList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type ApplianceBackupListWithoutEmbeddedStruct struct { // The total number of 'appliance.Backup' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_appliance_backup_monitor.go b/model_appliance_backup_monitor.go index 6948f19e89..524c290f95 100644 --- a/model_appliance_backup_monitor.go +++ b/model_appliance_backup_monitor.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -87,6 +87,11 @@ func (o *ApplianceBackupMonitor) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "appliance.BackupMonitor" of the ClassId field. +func (o *ApplianceBackupMonitor) GetDefaultClassId() interface{} { + return "appliance.BackupMonitor" +} + // GetObjectType returns the ObjectType field value func (o *ApplianceBackupMonitor) GetObjectType() string { if o == nil { @@ -111,6 +116,11 @@ func (o *ApplianceBackupMonitor) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "appliance.BackupMonitor" of the ObjectType field. +func (o *ApplianceBackupMonitor) GetDefaultObjectType() interface{} { + return "appliance.BackupMonitor" +} + // GetFilename returns the Filename field value if set, zero value otherwise. func (o *ApplianceBackupMonitor) GetFilename() string { if o == nil || IsNil(o.Filename) { @@ -268,7 +278,13 @@ func (o ApplianceBackupMonitor) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Filename) { toSerialize["Filename"] = o.Filename @@ -299,6 +315,13 @@ func (o *ApplianceBackupMonitor) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -308,11 +331,23 @@ func (o *ApplianceBackupMonitor) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type ApplianceBackupMonitorWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_appliance_backup_monitor_list.go b/model_appliance_backup_monitor_list.go index c2f036b3f1..46ca304638 100644 --- a/model_appliance_backup_monitor_list.go +++ b/model_appliance_backup_monitor_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *ApplianceBackupMonitorList) GetResultsOk() ([]ApplianceBackupMonitor, b // HasResults returns a boolean if a field has been set. func (o *ApplianceBackupMonitorList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *ApplianceBackupMonitorList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *ApplianceBackupMonitorList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type ApplianceBackupMonitorListWithoutEmbeddedStruct struct { // The total number of 'appliance.BackupMonitor' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_appliance_backup_monitor_response.go b/model_appliance_backup_monitor_response.go index f337c2b288..3a02960b38 100644 --- a/model_appliance_backup_monitor_response.go +++ b/model_appliance_backup_monitor_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_appliance_backup_policy.go b/model_appliance_backup_policy.go index 4e659a5b13..0adad001b3 100644 --- a/model_appliance_backup_policy.go +++ b/model_appliance_backup_policy.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -36,7 +36,7 @@ type ApplianceBackupPolicy struct { // Backup mode of the appliance. Automatic backups of the appliance are not initiated if this property is set to 'true' and the backup schedule field is ignored. ManualBackup *bool `json:"ManualBackup,omitempty"` // Password to authenticate the file server. - Password *string `json:"Password,omitempty"` + Password *string "json:\"Password,omitempty\" validate:\"regexp=^$|^[^`]+$\"" // The number of backups before earliest backup is overwritten. Requires cleanup policy to be enabled. RetentionCount *int64 `json:"RetentionCount,omitempty"` // If backup rotate policy is set, older backups will automatically be overwritten. The number of backups before overwriting is defined by the retentionCount property. @@ -101,6 +101,11 @@ func (o *ApplianceBackupPolicy) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "appliance.BackupPolicy" of the ClassId field. +func (o *ApplianceBackupPolicy) GetDefaultClassId() interface{} { + return "appliance.BackupPolicy" +} + // GetObjectType returns the ObjectType field value func (o *ApplianceBackupPolicy) GetObjectType() string { if o == nil { @@ -125,6 +130,11 @@ func (o *ApplianceBackupPolicy) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "appliance.BackupPolicy" of the ObjectType field. +func (o *ApplianceBackupPolicy) GetDefaultObjectType() interface{} { + return "appliance.BackupPolicy" +} + // GetBackupTime returns the BackupTime field value if set, zero value otherwise. func (o *ApplianceBackupPolicy) GetBackupTime() time.Time { if o == nil || IsNil(o.BackupTime) { @@ -421,7 +431,13 @@ func (o ApplianceBackupPolicy) ToMap() (map[string]interface{}, error) { if errApplianceBackupBase != nil { return map[string]interface{}{}, errApplianceBackupBase } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.BackupTime) { toSerialize["BackupTime"] = o.BackupTime @@ -464,6 +480,13 @@ func (o *ApplianceBackupPolicy) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -473,11 +496,23 @@ func (o *ApplianceBackupPolicy) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type ApplianceBackupPolicyWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` @@ -490,7 +525,7 @@ func (o *ApplianceBackupPolicy) UnmarshalJSON(data []byte) (err error) { // Backup mode of the appliance. Automatic backups of the appliance are not initiated if this property is set to 'true' and the backup schedule field is ignored. ManualBackup *bool `json:"ManualBackup,omitempty"` // Password to authenticate the file server. - Password *string `json:"Password,omitempty"` + Password *string "json:\"Password,omitempty\" validate:\"regexp=^$|^[^`]+$\"" // The number of backups before earliest backup is overwritten. Requires cleanup policy to be enabled. RetentionCount *int64 `json:"RetentionCount,omitempty"` // If backup rotate policy is set, older backups will automatically be overwritten. The number of backups before overwriting is defined by the retentionCount property. diff --git a/model_appliance_backup_policy_list.go b/model_appliance_backup_policy_list.go index 161616870e..286a270617 100644 --- a/model_appliance_backup_policy_list.go +++ b/model_appliance_backup_policy_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *ApplianceBackupPolicyList) GetResultsOk() ([]ApplianceBackupPolicy, boo // HasResults returns a boolean if a field has been set. func (o *ApplianceBackupPolicyList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *ApplianceBackupPolicyList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *ApplianceBackupPolicyList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type ApplianceBackupPolicyListWithoutEmbeddedStruct struct { // The total number of 'appliance.BackupPolicy' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_appliance_backup_policy_response.go b/model_appliance_backup_policy_response.go index 0991c4439b..68df4d7b76 100644 --- a/model_appliance_backup_policy_response.go +++ b/model_appliance_backup_policy_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_appliance_backup_response.go b/model_appliance_backup_response.go index 1fc96b6b75..047e18feae 100644 --- a/model_appliance_backup_response.go +++ b/model_appliance_backup_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_appliance_backup_rotate_data.go b/model_appliance_backup_rotate_data.go index 154e7f4f05..df61aca8e1 100644 --- a/model_appliance_backup_rotate_data.go +++ b/model_appliance_backup_rotate_data.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -86,6 +86,11 @@ func (o *ApplianceBackupRotateData) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "appliance.BackupRotateData" of the ClassId field. +func (o *ApplianceBackupRotateData) GetDefaultClassId() interface{} { + return "appliance.BackupRotateData" +} + // GetObjectType returns the ObjectType field value func (o *ApplianceBackupRotateData) GetObjectType() string { if o == nil { @@ -110,6 +115,11 @@ func (o *ApplianceBackupRotateData) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "appliance.BackupRotateData" of the ObjectType field. +func (o *ApplianceBackupRotateData) GetDefaultObjectType() interface{} { + return "appliance.BackupRotateData" +} + // GetBackupTime returns the BackupTime field value if set, zero value otherwise. func (o *ApplianceBackupRotateData) GetBackupTime() time.Time { if o == nil || IsNil(o.BackupTime) { @@ -203,7 +213,13 @@ func (o ApplianceBackupRotateData) ToMap() (map[string]interface{}, error) { if errApplianceBackupBase != nil { return map[string]interface{}{}, errApplianceBackupBase } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.BackupTime) { toSerialize["BackupTime"] = o.BackupTime @@ -228,6 +244,13 @@ func (o *ApplianceBackupRotateData) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -237,11 +260,23 @@ func (o *ApplianceBackupRotateData) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type ApplianceBackupRotateDataWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_appliance_backup_rotate_data_list.go b/model_appliance_backup_rotate_data_list.go index 0c7c18bd9d..7aa0fc3e5e 100644 --- a/model_appliance_backup_rotate_data_list.go +++ b/model_appliance_backup_rotate_data_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *ApplianceBackupRotateDataList) GetResultsOk() ([]ApplianceBackupRotateD // HasResults returns a boolean if a field has been set. func (o *ApplianceBackupRotateDataList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *ApplianceBackupRotateDataList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *ApplianceBackupRotateDataList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type ApplianceBackupRotateDataListWithoutEmbeddedStruct struct { // The total number of 'appliance.BackupRotateData' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_appliance_backup_rotate_data_response.go b/model_appliance_backup_rotate_data_response.go index 41831199ab..1a1638b5e2 100644 --- a/model_appliance_backup_rotate_data_response.go +++ b/model_appliance_backup_rotate_data_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_appliance_cert_renewal_phase.go b/model_appliance_cert_renewal_phase.go index e431078cbb..475a994616 100644 --- a/model_appliance_cert_renewal_phase.go +++ b/model_appliance_cert_renewal_phase.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -91,6 +91,11 @@ func (o *ApplianceCertRenewalPhase) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "appliance.CertRenewalPhase" of the ClassId field. +func (o *ApplianceCertRenewalPhase) GetDefaultClassId() interface{} { + return "appliance.CertRenewalPhase" +} + // GetObjectType returns the ObjectType field value func (o *ApplianceCertRenewalPhase) GetObjectType() string { if o == nil { @@ -115,6 +120,11 @@ func (o *ApplianceCertRenewalPhase) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "appliance.CertRenewalPhase" of the ObjectType field. +func (o *ApplianceCertRenewalPhase) GetDefaultObjectType() interface{} { + return "appliance.CertRenewalPhase" +} + // GetEndTime returns the EndTime field value if set, zero value otherwise. func (o *ApplianceCertRenewalPhase) GetEndTime() time.Time { if o == nil || IsNil(o.EndTime) { @@ -293,7 +303,13 @@ func (o ApplianceCertRenewalPhase) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.EndTime) { toSerialize["EndTime"] = o.EndTime @@ -327,6 +343,13 @@ func (o *ApplianceCertRenewalPhase) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -336,11 +359,23 @@ func (o *ApplianceCertRenewalPhase) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type ApplianceCertRenewalPhaseWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_appliance_certificate_setting.go b/model_appliance_certificate_setting.go index cacc814d36..b91f1eedf6 100644 --- a/model_appliance_certificate_setting.go +++ b/model_appliance_certificate_setting.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -82,6 +82,11 @@ func (o *ApplianceCertificateSetting) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "appliance.CertificateSetting" of the ClassId field. +func (o *ApplianceCertificateSetting) GetDefaultClassId() interface{} { + return "appliance.CertificateSetting" +} + // GetObjectType returns the ObjectType field value func (o *ApplianceCertificateSetting) GetObjectType() string { if o == nil { @@ -106,6 +111,11 @@ func (o *ApplianceCertificateSetting) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "appliance.CertificateSetting" of the ObjectType field. +func (o *ApplianceCertificateSetting) GetDefaultObjectType() interface{} { + return "appliance.CertificateSetting" +} + // GetAccount returns the Account field value if set, zero value otherwise (both if not set or set to explicit null). func (o *ApplianceCertificateSetting) GetAccount() IamAccountRelationship { if o == nil || IsNil(o.Account.Get()) { @@ -210,7 +220,13 @@ func (o ApplianceCertificateSetting) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.Account.IsSet() { toSerialize["Account"] = o.Account.Get() @@ -235,6 +251,13 @@ func (o *ApplianceCertificateSetting) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -244,11 +267,23 @@ func (o *ApplianceCertificateSetting) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type ApplianceCertificateSettingWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_appliance_certificate_setting_list.go b/model_appliance_certificate_setting_list.go index e30863f921..c11d11dfed 100644 --- a/model_appliance_certificate_setting_list.go +++ b/model_appliance_certificate_setting_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *ApplianceCertificateSettingList) GetResultsOk() ([]ApplianceCertificate // HasResults returns a boolean if a field has been set. func (o *ApplianceCertificateSettingList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *ApplianceCertificateSettingList) UnmarshalJSON(data []byte) (err error) "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *ApplianceCertificateSettingList) UnmarshalJSON(data []byte) (err error) } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type ApplianceCertificateSettingListWithoutEmbeddedStruct struct { // The total number of 'appliance.CertificateSetting' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_appliance_certificate_setting_response.go b/model_appliance_certificate_setting_response.go index 469ba913fa..ee44ea157b 100644 --- a/model_appliance_certificate_setting_response.go +++ b/model_appliance_certificate_setting_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_appliance_cluster_info.go b/model_appliance_cluster_info.go index 69dec6bc07..05f64d92bc 100644 --- a/model_appliance_cluster_info.go +++ b/model_appliance_cluster_info.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -99,6 +99,11 @@ func (o *ApplianceClusterInfo) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "appliance.ClusterInfo" of the ClassId field. +func (o *ApplianceClusterInfo) GetDefaultClassId() interface{} { + return "appliance.ClusterInfo" +} + // GetObjectType returns the ObjectType field value func (o *ApplianceClusterInfo) GetObjectType() string { if o == nil { @@ -123,6 +128,11 @@ func (o *ApplianceClusterInfo) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "appliance.ClusterInfo" of the ObjectType field. +func (o *ApplianceClusterInfo) GetDefaultObjectType() interface{} { + return "appliance.ClusterInfo" +} + // GetDeploymentSize returns the DeploymentSize field value if set, zero value otherwise. func (o *ApplianceClusterInfo) GetDeploymentSize() string { if o == nil || IsNil(o.DeploymentSize) { @@ -472,7 +482,13 @@ func (o ApplianceClusterInfo) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.DeploymentSize) { toSerialize["DeploymentSize"] = o.DeploymentSize @@ -521,6 +537,13 @@ func (o *ApplianceClusterInfo) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -530,11 +553,23 @@ func (o *ApplianceClusterInfo) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type ApplianceClusterInfoWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_appliance_cluster_info_list.go b/model_appliance_cluster_info_list.go index a975d08d09..37f8ac682b 100644 --- a/model_appliance_cluster_info_list.go +++ b/model_appliance_cluster_info_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *ApplianceClusterInfoList) GetResultsOk() ([]ApplianceClusterInfo, bool) // HasResults returns a boolean if a field has been set. func (o *ApplianceClusterInfoList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *ApplianceClusterInfoList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *ApplianceClusterInfoList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type ApplianceClusterInfoListWithoutEmbeddedStruct struct { // The total number of 'appliance.ClusterInfo' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_appliance_cluster_info_response.go b/model_appliance_cluster_info_response.go index 89da19791b..0d59f1dbfe 100644 --- a/model_appliance_cluster_info_response.go +++ b/model_appliance_cluster_info_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_appliance_cluster_install.go b/model_appliance_cluster_install.go index 06179a2e30..07ec16d9b0 100644 --- a/model_appliance_cluster_install.go +++ b/model_appliance_cluster_install.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -83,6 +83,10 @@ func (o *ApplianceClusterInstall) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -92,11 +96,23 @@ func (o *ApplianceClusterInstall) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type ApplianceClusterInstallWithoutEmbeddedStruct struct { } diff --git a/model_appliance_cluster_install_base.go b/model_appliance_cluster_install_base.go index b17dc7f623..4f8454fed4 100644 --- a/model_appliance_cluster_install_base.go +++ b/model_appliance_cluster_install_base.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -144,7 +144,7 @@ func (o *ApplianceClusterInstallBase) GetCompletedPhasesOk() ([]ApplianceCluster // HasCompletedPhases returns a boolean if a field has been set. func (o *ApplianceClusterInstallBase) HasCompletedPhases() bool { - if o != nil && IsNil(o.CompletedPhases) { + if o != nil && !IsNil(o.CompletedPhases) { return true } @@ -316,7 +316,7 @@ func (o *ApplianceClusterInstallBase) GetMessagesOk() ([]string, bool) { // HasMessages returns a boolean if a field has been set. func (o *ApplianceClusterInstallBase) HasMessages() bool { - if o != nil && IsNil(o.Messages) { + if o != nil && !IsNil(o.Messages) { return true } @@ -349,7 +349,7 @@ func (o *ApplianceClusterInstallBase) GetNodeInfoOk() ([]ApplianceNodeIpInfo, bo // HasNodeInfo returns a boolean if a field has been set. func (o *ApplianceClusterInstallBase) HasNodeInfo() bool { - if o != nil && IsNil(o.NodeInfo) { + if o != nil && !IsNil(o.NodeInfo) { return true } @@ -686,6 +686,10 @@ func (o *ApplianceClusterInstallBase) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -695,11 +699,23 @@ func (o *ApplianceClusterInstallBase) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type ApplianceClusterInstallBaseWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. The enum values provides the list of concrete types that can be instantiated from this abstract type. ClassId string `json:"ClassId"` diff --git a/model_appliance_cluster_install_list.go b/model_appliance_cluster_install_list.go index d390313460..c0a285de0f 100644 --- a/model_appliance_cluster_install_list.go +++ b/model_appliance_cluster_install_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *ApplianceClusterInstallList) GetResultsOk() ([]ApplianceClusterInstall, // HasResults returns a boolean if a field has been set. func (o *ApplianceClusterInstallList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *ApplianceClusterInstallList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *ApplianceClusterInstallList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type ApplianceClusterInstallListWithoutEmbeddedStruct struct { // The total number of 'appliance.ClusterInstall' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_appliance_cluster_install_phase.go b/model_appliance_cluster_install_phase.go index 1cde3e4c26..5ddaa94714 100644 --- a/model_appliance_cluster_install_phase.go +++ b/model_appliance_cluster_install_phase.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -100,6 +100,11 @@ func (o *ApplianceClusterInstallPhase) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "appliance.ClusterInstallPhase" of the ClassId field. +func (o *ApplianceClusterInstallPhase) GetDefaultClassId() interface{} { + return "appliance.ClusterInstallPhase" +} + // GetObjectType returns the ObjectType field value func (o *ApplianceClusterInstallPhase) GetObjectType() string { if o == nil { @@ -124,6 +129,11 @@ func (o *ApplianceClusterInstallPhase) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "appliance.ClusterInstallPhase" of the ObjectType field. +func (o *ApplianceClusterInstallPhase) GetDefaultObjectType() interface{} { + return "appliance.ClusterInstallPhase" +} + // GetCurrentNode returns the CurrentNode field value if set, zero value otherwise. func (o *ApplianceClusterInstallPhase) GetCurrentNode() int64 { if o == nil || IsNil(o.CurrentNode) { @@ -369,7 +379,7 @@ func (o *ApplianceClusterInstallPhase) GetPendingNodesOk() ([]int64, bool) { // HasPendingNodes returns a boolean if a field has been set. func (o *ApplianceClusterInstallPhase) HasPendingNodes() bool { - if o != nil && IsNil(o.PendingNodes) { + if o != nil && !IsNil(o.PendingNodes) { return true } @@ -463,7 +473,13 @@ func (o ApplianceClusterInstallPhase) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.CurrentNode) { toSerialize["CurrentNode"] = o.CurrentNode @@ -512,6 +528,13 @@ func (o *ApplianceClusterInstallPhase) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -521,11 +544,23 @@ func (o *ApplianceClusterInstallPhase) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type ApplianceClusterInstallPhaseWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_appliance_cluster_install_response.go b/model_appliance_cluster_install_response.go index 2cd4ef911a..3b59306cd3 100644 --- a/model_appliance_cluster_install_response.go +++ b/model_appliance_cluster_install_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_appliance_cluster_replace_node.go b/model_appliance_cluster_replace_node.go index f5d7ecb76d..9ab9a1ece6 100644 --- a/model_appliance_cluster_replace_node.go +++ b/model_appliance_cluster_replace_node.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -86,6 +86,11 @@ func (o *ApplianceClusterReplaceNode) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "appliance.ClusterReplaceNode" of the ClassId field. +func (o *ApplianceClusterReplaceNode) GetDefaultClassId() interface{} { + return "appliance.ClusterReplaceNode" +} + // GetObjectType returns the ObjectType field value func (o *ApplianceClusterReplaceNode) GetObjectType() string { if o == nil { @@ -110,6 +115,11 @@ func (o *ApplianceClusterReplaceNode) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "appliance.ClusterReplaceNode" of the ObjectType field. +func (o *ApplianceClusterReplaceNode) GetDefaultObjectType() interface{} { + return "appliance.ClusterReplaceNode" +} + // GetHostname returns the Hostname field value if set, zero value otherwise. func (o *ApplianceClusterReplaceNode) GetHostname() string { if o == nil || IsNil(o.Hostname) { @@ -224,7 +234,13 @@ func (o ApplianceClusterReplaceNode) ToMap() (map[string]interface{}, error) { if errApplianceClusterInstallBase != nil { return map[string]interface{}{}, errApplianceClusterInstallBase } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Hostname) { toSerialize["Hostname"] = o.Hostname @@ -252,6 +268,13 @@ func (o *ApplianceClusterReplaceNode) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -261,11 +284,23 @@ func (o *ApplianceClusterReplaceNode) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type ApplianceClusterReplaceNodeWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_appliance_cluster_replace_node_list.go b/model_appliance_cluster_replace_node_list.go index af0fd60d57..fc4eebd51c 100644 --- a/model_appliance_cluster_replace_node_list.go +++ b/model_appliance_cluster_replace_node_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *ApplianceClusterReplaceNodeList) GetResultsOk() ([]ApplianceClusterRepl // HasResults returns a boolean if a field has been set. func (o *ApplianceClusterReplaceNodeList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *ApplianceClusterReplaceNodeList) UnmarshalJSON(data []byte) (err error) "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *ApplianceClusterReplaceNodeList) UnmarshalJSON(data []byte) (err error) } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type ApplianceClusterReplaceNodeListWithoutEmbeddedStruct struct { // The total number of 'appliance.ClusterReplaceNode' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_appliance_cluster_replace_node_response.go b/model_appliance_cluster_replace_node_response.go index a62bab3964..75316baf94 100644 --- a/model_appliance_cluster_replace_node_response.go +++ b/model_appliance_cluster_replace_node_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_appliance_data_export_policy.go b/model_appliance_data_export_policy.go index aaf673e701..53553233b1 100644 --- a/model_appliance_data_export_policy.go +++ b/model_appliance_data_export_policy.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -88,6 +88,11 @@ func (o *ApplianceDataExportPolicy) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "appliance.DataExportPolicy" of the ClassId field. +func (o *ApplianceDataExportPolicy) GetDefaultClassId() interface{} { + return "appliance.DataExportPolicy" +} + // GetObjectType returns the ObjectType field value func (o *ApplianceDataExportPolicy) GetObjectType() string { if o == nil { @@ -112,6 +117,11 @@ func (o *ApplianceDataExportPolicy) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "appliance.DataExportPolicy" of the ObjectType field. +func (o *ApplianceDataExportPolicy) GetDefaultObjectType() interface{} { + return "appliance.DataExportPolicy" +} + // GetEnable returns the Enable field value if set, zero value otherwise. func (o *ApplianceDataExportPolicy) GetEnable() bool { if o == nil || IsNil(o.Enable) { @@ -283,7 +293,7 @@ func (o *ApplianceDataExportPolicy) GetSubConfigsOk() ([]ApplianceDataExportPoli // HasSubConfigs returns a boolean if a field has been set. func (o *ApplianceDataExportPolicy) HasSubConfigs() bool { - if o != nil && IsNil(o.SubConfigs) { + if o != nil && !IsNil(o.SubConfigs) { return true } @@ -313,7 +323,13 @@ func (o ApplianceDataExportPolicy) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Enable) { toSerialize["Enable"] = o.Enable @@ -347,6 +363,13 @@ func (o *ApplianceDataExportPolicy) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -356,11 +379,23 @@ func (o *ApplianceDataExportPolicy) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type ApplianceDataExportPolicyWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_appliance_data_export_policy_list.go b/model_appliance_data_export_policy_list.go index b26a0b8140..6414f68635 100644 --- a/model_appliance_data_export_policy_list.go +++ b/model_appliance_data_export_policy_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *ApplianceDataExportPolicyList) GetResultsOk() ([]ApplianceDataExportPol // HasResults returns a boolean if a field has been set. func (o *ApplianceDataExportPolicyList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *ApplianceDataExportPolicyList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *ApplianceDataExportPolicyList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type ApplianceDataExportPolicyListWithoutEmbeddedStruct struct { // The total number of 'appliance.DataExportPolicy' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_appliance_data_export_policy_relationship.go b/model_appliance_data_export_policy_relationship.go index 4584656ea2..0840743e35 100644 --- a/model_appliance_data_export_policy_relationship.go +++ b/model_appliance_data_export_policy_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_appliance_data_export_policy_response.go b/model_appliance_data_export_policy_response.go index 0f5d88d84a..be142f74e6 100644 --- a/model_appliance_data_export_policy_response.go +++ b/model_appliance_data_export_policy_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_appliance_device_certificate.go b/model_appliance_device_certificate.go index 8bf9e9dc3c..0f6ca64106 100644 --- a/model_appliance_device_certificate.go +++ b/model_appliance_device_certificate.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -100,6 +100,11 @@ func (o *ApplianceDeviceCertificate) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "appliance.DeviceCertificate" of the ClassId field. +func (o *ApplianceDeviceCertificate) GetDefaultClassId() interface{} { + return "appliance.DeviceCertificate" +} + // GetObjectType returns the ObjectType field value func (o *ApplianceDeviceCertificate) GetObjectType() string { if o == nil { @@ -124,6 +129,11 @@ func (o *ApplianceDeviceCertificate) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "appliance.DeviceCertificate" of the ObjectType field. +func (o *ApplianceDeviceCertificate) GetDefaultObjectType() interface{} { + return "appliance.DeviceCertificate" +} + // GetCaCertificate returns the CaCertificate field value if set, zero value otherwise. func (o *ApplianceDeviceCertificate) GetCaCertificate() string { if o == nil || IsNil(o.CaCertificate) { @@ -241,7 +251,7 @@ func (o *ApplianceDeviceCertificate) GetCompletedPhasesOk() ([]ApplianceCertRene // HasCompletedPhases returns a boolean if a field has been set. func (o *ApplianceDeviceCertificate) HasCompletedPhases() bool { - if o != nil && IsNil(o.CompletedPhases) { + if o != nil && !IsNil(o.CompletedPhases) { return true } @@ -413,7 +423,7 @@ func (o *ApplianceDeviceCertificate) GetMessagesOk() ([]string, bool) { // HasMessages returns a boolean if a field has been set. func (o *ApplianceDeviceCertificate) HasMessages() bool { - if o != nil && IsNil(o.Messages) { + if o != nil && !IsNil(o.Messages) { return true } @@ -507,7 +517,13 @@ func (o ApplianceDeviceCertificate) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.CaCertificate) { toSerialize["CaCertificate"] = o.CaCertificate @@ -559,6 +575,13 @@ func (o *ApplianceDeviceCertificate) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -568,11 +591,23 @@ func (o *ApplianceDeviceCertificate) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type ApplianceDeviceCertificateWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_appliance_device_certificate_list.go b/model_appliance_device_certificate_list.go index 75006b8bef..6e6719c9a0 100644 --- a/model_appliance_device_certificate_list.go +++ b/model_appliance_device_certificate_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *ApplianceDeviceCertificateList) GetResultsOk() ([]ApplianceDeviceCertif // HasResults returns a boolean if a field has been set. func (o *ApplianceDeviceCertificateList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *ApplianceDeviceCertificateList) UnmarshalJSON(data []byte) (err error) "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *ApplianceDeviceCertificateList) UnmarshalJSON(data []byte) (err error) } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type ApplianceDeviceCertificateListWithoutEmbeddedStruct struct { // The total number of 'appliance.DeviceCertificate' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_appliance_device_certificate_response.go b/model_appliance_device_certificate_response.go index e4cfe5e231..b03ae63b04 100644 --- a/model_appliance_device_certificate_response.go +++ b/model_appliance_device_certificate_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_appliance_device_claim.go b/model_appliance_device_claim.go index d002947d62..a209ac4c21 100644 --- a/model_appliance_device_claim.go +++ b/model_appliance_device_claim.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -112,6 +112,11 @@ func (o *ApplianceDeviceClaim) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "appliance.DeviceClaim" of the ClassId field. +func (o *ApplianceDeviceClaim) GetDefaultClassId() interface{} { + return "appliance.DeviceClaim" +} + // GetObjectType returns the ObjectType field value func (o *ApplianceDeviceClaim) GetObjectType() string { if o == nil { @@ -136,6 +141,11 @@ func (o *ApplianceDeviceClaim) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "appliance.DeviceClaim" of the ObjectType field. +func (o *ApplianceDeviceClaim) GetDefaultObjectType() interface{} { + return "appliance.DeviceClaim" +} + // GetDeviceId returns the DeviceId field value if set, zero value otherwise. func (o *ApplianceDeviceClaim) GetDeviceId() string { if o == nil || IsNil(o.DeviceId) { @@ -592,7 +602,13 @@ func (o ApplianceDeviceClaim) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.DeviceId) { toSerialize["DeviceId"] = o.DeviceId @@ -650,6 +666,13 @@ func (o *ApplianceDeviceClaim) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -659,11 +682,23 @@ func (o *ApplianceDeviceClaim) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type ApplianceDeviceClaimWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_appliance_device_claim_list.go b/model_appliance_device_claim_list.go index f17a5fc411..636f65b76e 100644 --- a/model_appliance_device_claim_list.go +++ b/model_appliance_device_claim_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *ApplianceDeviceClaimList) GetResultsOk() ([]ApplianceDeviceClaim, bool) // HasResults returns a boolean if a field has been set. func (o *ApplianceDeviceClaimList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *ApplianceDeviceClaimList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *ApplianceDeviceClaimList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type ApplianceDeviceClaimListWithoutEmbeddedStruct struct { // The total number of 'appliance.DeviceClaim' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_appliance_device_claim_response.go b/model_appliance_device_claim_response.go index 331c6a7d14..718bf79d0a 100644 --- a/model_appliance_device_claim_response.go +++ b/model_appliance_device_claim_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_appliance_device_cluster_install.go b/model_appliance_device_cluster_install.go index d5d960f081..eaea6f2213 100644 --- a/model_appliance_device_cluster_install.go +++ b/model_appliance_device_cluster_install.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -100,6 +100,11 @@ func (o *ApplianceDeviceClusterInstall) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "appliance.DeviceClusterInstall" of the ClassId field. +func (o *ApplianceDeviceClusterInstall) GetDefaultClassId() interface{} { + return "appliance.DeviceClusterInstall" +} + // GetObjectType returns the ObjectType field value func (o *ApplianceDeviceClusterInstall) GetObjectType() string { if o == nil { @@ -124,6 +129,11 @@ func (o *ApplianceDeviceClusterInstall) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "appliance.DeviceClusterInstall" of the ObjectType field. +func (o *ApplianceDeviceClusterInstall) GetDefaultObjectType() interface{} { + return "appliance.DeviceClusterInstall" +} + // GetCompletedPhases returns the CompletedPhases field value if set, zero value otherwise (both if not set or set to explicit null). func (o *ApplianceDeviceClusterInstall) GetCompletedPhases() []ApplianceClusterInstallPhase { if o == nil { @@ -145,7 +155,7 @@ func (o *ApplianceDeviceClusterInstall) GetCompletedPhasesOk() ([]ApplianceClust // HasCompletedPhases returns a boolean if a field has been set. func (o *ApplianceDeviceClusterInstall) HasCompletedPhases() bool { - if o != nil && IsNil(o.CompletedPhases) { + if o != nil && !IsNil(o.CompletedPhases) { return true } @@ -317,7 +327,7 @@ func (o *ApplianceDeviceClusterInstall) GetMessagesOk() ([]string, bool) { // HasMessages returns a boolean if a field has been set. func (o *ApplianceDeviceClusterInstall) HasMessages() bool { - if o != nil && IsNil(o.Messages) { + if o != nil && !IsNil(o.Messages) { return true } @@ -350,7 +360,7 @@ func (o *ApplianceDeviceClusterInstall) GetNodeInfoOk() ([]ApplianceNodeIpInfo, // HasNodeInfo returns a boolean if a field has been set. func (o *ApplianceDeviceClusterInstall) HasNodeInfo() bool { - if o != nil && IsNil(o.NodeInfo) { + if o != nil && !IsNil(o.NodeInfo) { return true } @@ -551,7 +561,13 @@ func (o ApplianceDeviceClusterInstall) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.CompletedPhases != nil { toSerialize["CompletedPhases"] = o.CompletedPhases @@ -606,6 +622,13 @@ func (o *ApplianceDeviceClusterInstall) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -615,11 +638,23 @@ func (o *ApplianceDeviceClusterInstall) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type ApplianceDeviceClusterInstallWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_appliance_device_cluster_install_list.go b/model_appliance_device_cluster_install_list.go index 548d9c76fb..664b4d22e9 100644 --- a/model_appliance_device_cluster_install_list.go +++ b/model_appliance_device_cluster_install_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *ApplianceDeviceClusterInstallList) GetResultsOk() ([]ApplianceDeviceClu // HasResults returns a boolean if a field has been set. func (o *ApplianceDeviceClusterInstallList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *ApplianceDeviceClusterInstallList) UnmarshalJSON(data []byte) (err erro "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *ApplianceDeviceClusterInstallList) UnmarshalJSON(data []byte) (err erro } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type ApplianceDeviceClusterInstallListWithoutEmbeddedStruct struct { // The total number of 'appliance.DeviceClusterInstall' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_appliance_device_cluster_install_response.go b/model_appliance_device_cluster_install_response.go index dba5195670..8992bb0647 100644 --- a/model_appliance_device_cluster_install_response.go +++ b/model_appliance_device_cluster_install_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_appliance_device_state.go b/model_appliance_device_state.go index 03703aa94a..40322379dd 100644 --- a/model_appliance_device_state.go +++ b/model_appliance_device_state.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -117,6 +117,11 @@ func (o *ApplianceDeviceState) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "appliance.DeviceState" of the ClassId field. +func (o *ApplianceDeviceState) GetDefaultClassId() interface{} { + return "appliance.DeviceState" +} + // GetObjectType returns the ObjectType field value func (o *ApplianceDeviceState) GetObjectType() string { if o == nil { @@ -141,6 +146,11 @@ func (o *ApplianceDeviceState) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "appliance.DeviceState" of the ObjectType field. +func (o *ApplianceDeviceState) GetDefaultObjectType() interface{} { + return "appliance.DeviceState" +} + // GetBlockReasons returns the BlockReasons field value if set, zero value otherwise (both if not set or set to explicit null). func (o *ApplianceDeviceState) GetBlockReasons() []string { if o == nil { @@ -162,7 +172,7 @@ func (o *ApplianceDeviceState) GetBlockReasonsOk() ([]string, bool) { // HasBlockReasons returns a boolean if a field has been set. func (o *ApplianceDeviceState) HasBlockReasons() bool { - if o != nil && IsNil(o.BlockReasons) { + if o != nil && !IsNil(o.BlockReasons) { return true } @@ -227,7 +237,7 @@ func (o *ApplianceDeviceState) GetCapabilitiesOk() ([]ApplianceKeyValuePair, boo // HasCapabilities returns a boolean if a field has been set. func (o *ApplianceDeviceState) HasCapabilities() bool { - if o != nil && IsNil(o.Capabilities) { + if o != nil && !IsNil(o.Capabilities) { return true } @@ -559,7 +569,7 @@ func (o *ApplianceDeviceState) GetDownloadedMetadataVersionOk() ([]ApplianceMeta // HasDownloadedMetadataVersion returns a boolean if a field has been set. func (o *ApplianceDeviceState) HasDownloadedMetadataVersion() bool { - if o != nil && IsNil(o.DownloadedMetadataVersion) { + if o != nil && !IsNil(o.DownloadedMetadataVersion) { return true } @@ -867,7 +877,13 @@ func (o ApplianceDeviceState) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.BlockReasons != nil { toSerialize["BlockReasons"] = o.BlockReasons @@ -949,6 +965,13 @@ func (o *ApplianceDeviceState) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -958,11 +981,23 @@ func (o *ApplianceDeviceState) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type ApplianceDeviceStateWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_appliance_device_state_list.go b/model_appliance_device_state_list.go index 1455fa61b4..76a8a54a49 100644 --- a/model_appliance_device_state_list.go +++ b/model_appliance_device_state_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *ApplianceDeviceStateList) GetResultsOk() ([]ApplianceDeviceState, bool) // HasResults returns a boolean if a field has been set. func (o *ApplianceDeviceStateList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *ApplianceDeviceStateList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *ApplianceDeviceStateList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type ApplianceDeviceStateListWithoutEmbeddedStruct struct { // The total number of 'appliance.DeviceState' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_appliance_device_state_response.go b/model_appliance_device_state_response.go index 786e81ce3a..d66934cbd8 100644 --- a/model_appliance_device_state_response.go +++ b/model_appliance_device_state_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_appliance_device_upgrade_policy.go b/model_appliance_device_upgrade_policy.go index 2b4ed8a0ef..456b6f485a 100644 --- a/model_appliance_device_upgrade_policy.go +++ b/model_appliance_device_upgrade_policy.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -105,6 +105,11 @@ func (o *ApplianceDeviceUpgradePolicy) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "appliance.DeviceUpgradePolicy" of the ClassId field. +func (o *ApplianceDeviceUpgradePolicy) GetDefaultClassId() interface{} { + return "appliance.DeviceUpgradePolicy" +} + // GetObjectType returns the ObjectType field value func (o *ApplianceDeviceUpgradePolicy) GetObjectType() string { if o == nil { @@ -129,6 +134,11 @@ func (o *ApplianceDeviceUpgradePolicy) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "appliance.DeviceUpgradePolicy" of the ObjectType field. +func (o *ApplianceDeviceUpgradePolicy) GetDefaultObjectType() interface{} { + return "appliance.DeviceUpgradePolicy" +} + // GetAutoUpgrade returns the AutoUpgrade field value if set, zero value otherwise. func (o *ApplianceDeviceUpgradePolicy) GetAutoUpgrade() bool { if o == nil || IsNil(o.AutoUpgrade) { @@ -457,7 +467,13 @@ func (o ApplianceDeviceUpgradePolicy) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.AutoUpgrade) { toSerialize["AutoUpgrade"] = o.AutoUpgrade @@ -503,6 +519,13 @@ func (o *ApplianceDeviceUpgradePolicy) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -512,11 +535,23 @@ func (o *ApplianceDeviceUpgradePolicy) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type ApplianceDeviceUpgradePolicyWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_appliance_device_upgrade_policy_list.go b/model_appliance_device_upgrade_policy_list.go index b7218c9f6a..56929d9938 100644 --- a/model_appliance_device_upgrade_policy_list.go +++ b/model_appliance_device_upgrade_policy_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *ApplianceDeviceUpgradePolicyList) GetResultsOk() ([]ApplianceDeviceUpgr // HasResults returns a boolean if a field has been set. func (o *ApplianceDeviceUpgradePolicyList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *ApplianceDeviceUpgradePolicyList) UnmarshalJSON(data []byte) (err error "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *ApplianceDeviceUpgradePolicyList) UnmarshalJSON(data []byte) (err error } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type ApplianceDeviceUpgradePolicyListWithoutEmbeddedStruct struct { // The total number of 'appliance.DeviceUpgradePolicy' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_appliance_device_upgrade_policy_relationship.go b/model_appliance_device_upgrade_policy_relationship.go index 1476073d91..5ef436f9c4 100644 --- a/model_appliance_device_upgrade_policy_relationship.go +++ b/model_appliance_device_upgrade_policy_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_appliance_device_upgrade_policy_response.go b/model_appliance_device_upgrade_policy_response.go index c3dab7ea15..6b7852895d 100644 --- a/model_appliance_device_upgrade_policy_response.go +++ b/model_appliance_device_upgrade_policy_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_appliance_diag_setting.go b/model_appliance_diag_setting.go index c614e5abd5..4eeef61b6f 100644 --- a/model_appliance_diag_setting.go +++ b/model_appliance_diag_setting.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -87,6 +87,11 @@ func (o *ApplianceDiagSetting) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "appliance.DiagSetting" of the ClassId field. +func (o *ApplianceDiagSetting) GetDefaultClassId() interface{} { + return "appliance.DiagSetting" +} + // GetObjectType returns the ObjectType field value func (o *ApplianceDiagSetting) GetObjectType() string { if o == nil { @@ -111,6 +116,11 @@ func (o *ApplianceDiagSetting) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "appliance.DiagSetting" of the ObjectType field. +func (o *ApplianceDiagSetting) GetDefaultObjectType() interface{} { + return "appliance.DiagSetting" +} + // GetIsPasswordSet returns the IsPasswordSet field value if set, zero value otherwise. func (o *ApplianceDiagSetting) GetIsPasswordSet() bool { if o == nil || IsNil(o.IsPasswordSet) { @@ -268,7 +278,13 @@ func (o ApplianceDiagSetting) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.IsPasswordSet) { toSerialize["IsPasswordSet"] = o.IsPasswordSet @@ -299,6 +315,13 @@ func (o *ApplianceDiagSetting) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -308,11 +331,23 @@ func (o *ApplianceDiagSetting) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type ApplianceDiagSettingWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_appliance_diag_setting_list.go b/model_appliance_diag_setting_list.go index 50462ea7df..1c542788ac 100644 --- a/model_appliance_diag_setting_list.go +++ b/model_appliance_diag_setting_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *ApplianceDiagSettingList) GetResultsOk() ([]ApplianceDiagSetting, bool) // HasResults returns a boolean if a field has been set. func (o *ApplianceDiagSettingList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *ApplianceDiagSettingList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *ApplianceDiagSettingList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type ApplianceDiagSettingListWithoutEmbeddedStruct struct { // The total number of 'appliance.DiagSetting' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_appliance_diag_setting_response.go b/model_appliance_diag_setting_response.go index c03ef63182..37523b35ea 100644 --- a/model_appliance_diag_setting_response.go +++ b/model_appliance_diag_setting_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_appliance_external_syslog_setting.go b/model_appliance_external_syslog_setting.go index cf82636622..6f8691f831 100644 --- a/model_appliance_external_syslog_setting.go +++ b/model_appliance_external_syslog_setting.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -125,6 +125,11 @@ func (o *ApplianceExternalSyslogSetting) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "appliance.ExternalSyslogSetting" of the ClassId field. +func (o *ApplianceExternalSyslogSetting) GetDefaultClassId() interface{} { + return "appliance.ExternalSyslogSetting" +} + // GetObjectType returns the ObjectType field value func (o *ApplianceExternalSyslogSetting) GetObjectType() string { if o == nil { @@ -149,6 +154,11 @@ func (o *ApplianceExternalSyslogSetting) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "appliance.ExternalSyslogSetting" of the ObjectType field. +func (o *ApplianceExternalSyslogSetting) GetDefaultObjectType() interface{} { + return "appliance.ExternalSyslogSetting" +} + // GetEnabled returns the Enabled field value if set, zero value otherwise. func (o *ApplianceExternalSyslogSetting) GetEnabled() bool { if o == nil || IsNil(o.Enabled) { @@ -466,7 +476,13 @@ func (o ApplianceExternalSyslogSetting) ToMap() (map[string]interface{}, error) if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Enabled) { toSerialize["Enabled"] = o.Enabled @@ -512,6 +528,13 @@ func (o *ApplianceExternalSyslogSetting) UnmarshalJSON(data []byte) (err error) "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -521,11 +544,23 @@ func (o *ApplianceExternalSyslogSetting) UnmarshalJSON(data []byte) (err error) } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type ApplianceExternalSyslogSettingWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_appliance_external_syslog_setting_list.go b/model_appliance_external_syslog_setting_list.go index 6beab98447..a9197d9227 100644 --- a/model_appliance_external_syslog_setting_list.go +++ b/model_appliance_external_syslog_setting_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *ApplianceExternalSyslogSettingList) GetResultsOk() ([]ApplianceExternal // HasResults returns a boolean if a field has been set. func (o *ApplianceExternalSyslogSettingList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *ApplianceExternalSyslogSettingList) UnmarshalJSON(data []byte) (err err "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *ApplianceExternalSyslogSettingList) UnmarshalJSON(data []byte) (err err } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type ApplianceExternalSyslogSettingListWithoutEmbeddedStruct struct { // The total number of 'appliance.ExternalSyslogSetting' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_appliance_external_syslog_setting_response.go b/model_appliance_external_syslog_setting_response.go index 915b3c84b0..14e1a43e20 100644 --- a/model_appliance_external_syslog_setting_response.go +++ b/model_appliance_external_syslog_setting_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_appliance_file_gateway.go b/model_appliance_file_gateway.go index 36cff7653b..9e355f4ba7 100644 --- a/model_appliance_file_gateway.go +++ b/model_appliance_file_gateway.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -100,6 +100,11 @@ func (o *ApplianceFileGateway) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "appliance.FileGateway" of the ClassId field. +func (o *ApplianceFileGateway) GetDefaultClassId() interface{} { + return "appliance.FileGateway" +} + // GetObjectType returns the ObjectType field value func (o *ApplianceFileGateway) GetObjectType() string { if o == nil { @@ -124,6 +129,11 @@ func (o *ApplianceFileGateway) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "appliance.FileGateway" of the ObjectType field. +func (o *ApplianceFileGateway) GetDefaultObjectType() interface{} { + return "appliance.FileGateway" +} + // GetBucketName returns the BucketName field value if set, zero value otherwise. func (o *ApplianceFileGateway) GetBucketName() string { if o == nil || IsNil(o.BucketName) { @@ -473,7 +483,13 @@ func (o ApplianceFileGateway) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.BucketName) { toSerialize["BucketName"] = o.BucketName @@ -522,6 +538,13 @@ func (o *ApplianceFileGateway) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -531,11 +554,23 @@ func (o *ApplianceFileGateway) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type ApplianceFileGatewayWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_appliance_file_gateway_list.go b/model_appliance_file_gateway_list.go index b14f03c044..ab8a83776c 100644 --- a/model_appliance_file_gateway_list.go +++ b/model_appliance_file_gateway_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *ApplianceFileGatewayList) GetResultsOk() ([]ApplianceFileGateway, bool) // HasResults returns a boolean if a field has been set. func (o *ApplianceFileGatewayList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *ApplianceFileGatewayList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *ApplianceFileGatewayList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type ApplianceFileGatewayListWithoutEmbeddedStruct struct { // The total number of 'appliance.FileGateway' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_appliance_file_gateway_response.go b/model_appliance_file_gateway_response.go index 935f45777e..b27a9a890b 100644 --- a/model_appliance_file_gateway_response.go +++ b/model_appliance_file_gateway_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_appliance_file_system_op_status.go b/model_appliance_file_system_op_status.go index 522dcc7468..ebff6cf35c 100644 --- a/model_appliance_file_system_op_status.go +++ b/model_appliance_file_system_op_status.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -90,6 +90,11 @@ func (o *ApplianceFileSystemOpStatus) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "appliance.FileSystemOpStatus" of the ClassId field. +func (o *ApplianceFileSystemOpStatus) GetDefaultClassId() interface{} { + return "appliance.FileSystemOpStatus" +} + // GetObjectType returns the ObjectType field value func (o *ApplianceFileSystemOpStatus) GetObjectType() string { if o == nil { @@ -114,6 +119,11 @@ func (o *ApplianceFileSystemOpStatus) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "appliance.FileSystemOpStatus" of the ObjectType field. +func (o *ApplianceFileSystemOpStatus) GetDefaultObjectType() interface{} { + return "appliance.FileSystemOpStatus" +} + // GetCapacity returns the Capacity field value if set, zero value otherwise. func (o *ApplianceFileSystemOpStatus) GetCapacity() int64 { if o == nil || IsNil(o.Capacity) { @@ -346,7 +356,13 @@ func (o ApplianceFileSystemOpStatus) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Capacity) { toSerialize["Capacity"] = o.Capacity @@ -383,6 +399,13 @@ func (o *ApplianceFileSystemOpStatus) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -392,11 +415,23 @@ func (o *ApplianceFileSystemOpStatus) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type ApplianceFileSystemOpStatusWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_appliance_file_system_op_status_list.go b/model_appliance_file_system_op_status_list.go index 3a885b8f83..169092e181 100644 --- a/model_appliance_file_system_op_status_list.go +++ b/model_appliance_file_system_op_status_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *ApplianceFileSystemOpStatusList) GetResultsOk() ([]ApplianceFileSystemO // HasResults returns a boolean if a field has been set. func (o *ApplianceFileSystemOpStatusList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *ApplianceFileSystemOpStatusList) UnmarshalJSON(data []byte) (err error) "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *ApplianceFileSystemOpStatusList) UnmarshalJSON(data []byte) (err error) } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type ApplianceFileSystemOpStatusListWithoutEmbeddedStruct struct { // The total number of 'appliance.FileSystemOpStatus' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_appliance_file_system_op_status_relationship.go b/model_appliance_file_system_op_status_relationship.go index 1c87923e01..1e77aeaf5c 100644 --- a/model_appliance_file_system_op_status_relationship.go +++ b/model_appliance_file_system_op_status_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_appliance_file_system_op_status_response.go b/model_appliance_file_system_op_status_response.go index 702f195c73..5d7e23a2df 100644 --- a/model_appliance_file_system_op_status_response.go +++ b/model_appliance_file_system_op_status_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_appliance_file_system_status.go b/model_appliance_file_system_status.go index 6f4844325c..a4a9041502 100644 --- a/model_appliance_file_system_status.go +++ b/model_appliance_file_system_status.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -90,6 +90,11 @@ func (o *ApplianceFileSystemStatus) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "appliance.FileSystemStatus" of the ClassId field. +func (o *ApplianceFileSystemStatus) GetDefaultClassId() interface{} { + return "appliance.FileSystemStatus" +} + // GetObjectType returns the ObjectType field value func (o *ApplianceFileSystemStatus) GetObjectType() string { if o == nil { @@ -114,6 +119,11 @@ func (o *ApplianceFileSystemStatus) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "appliance.FileSystemStatus" of the ObjectType field. +func (o *ApplianceFileSystemStatus) GetDefaultObjectType() interface{} { + return "appliance.FileSystemStatus" +} + // GetCapacity returns the Capacity field value if set, zero value otherwise. func (o *ApplianceFileSystemStatus) GetCapacity() int64 { if o == nil || IsNil(o.Capacity) { @@ -231,7 +241,7 @@ func (o *ApplianceFileSystemStatus) GetStatusChecksOk() ([]ApplianceStatusCheck, // HasStatusChecks returns a boolean if a field has been set. func (o *ApplianceFileSystemStatus) HasStatusChecks() bool { - if o != nil && IsNil(o.StatusChecks) { + if o != nil && !IsNil(o.StatusChecks) { return true } @@ -336,7 +346,13 @@ func (o ApplianceFileSystemStatus) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Capacity) { toSerialize["Capacity"] = o.Capacity @@ -373,6 +389,13 @@ func (o *ApplianceFileSystemStatus) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -382,11 +405,23 @@ func (o *ApplianceFileSystemStatus) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type ApplianceFileSystemStatusWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_appliance_file_system_status_list.go b/model_appliance_file_system_status_list.go index f1745f5fad..8966525989 100644 --- a/model_appliance_file_system_status_list.go +++ b/model_appliance_file_system_status_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *ApplianceFileSystemStatusList) GetResultsOk() ([]ApplianceFileSystemSta // HasResults returns a boolean if a field has been set. func (o *ApplianceFileSystemStatusList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *ApplianceFileSystemStatusList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *ApplianceFileSystemStatusList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type ApplianceFileSystemStatusListWithoutEmbeddedStruct struct { // The total number of 'appliance.FileSystemStatus' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_appliance_file_system_status_relationship.go b/model_appliance_file_system_status_relationship.go index 6b1a43d9b8..00868f713e 100644 --- a/model_appliance_file_system_status_relationship.go +++ b/model_appliance_file_system_status_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_appliance_file_system_status_response.go b/model_appliance_file_system_status_response.go index b478b1ae75..9d099ba1ce 100644 --- a/model_appliance_file_system_status_response.go +++ b/model_appliance_file_system_status_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_appliance_group_op_status.go b/model_appliance_group_op_status.go index ccfa48b408..177f7699ae 100644 --- a/model_appliance_group_op_status.go +++ b/model_appliance_group_op_status.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -89,6 +89,11 @@ func (o *ApplianceGroupOpStatus) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "appliance.GroupOpStatus" of the ClassId field. +func (o *ApplianceGroupOpStatus) GetDefaultClassId() interface{} { + return "appliance.GroupOpStatus" +} + // GetObjectType returns the ObjectType field value func (o *ApplianceGroupOpStatus) GetObjectType() string { if o == nil { @@ -113,6 +118,11 @@ func (o *ApplianceGroupOpStatus) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "appliance.GroupOpStatus" of the ObjectType field. +func (o *ApplianceGroupOpStatus) GetDefaultObjectType() interface{} { + return "appliance.GroupOpStatus" +} + // GetDescription returns the Description field value if set, zero value otherwise. func (o *ApplianceGroupOpStatus) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -230,7 +240,7 @@ func (o *ApplianceGroupOpStatus) GetAppsOk() ([]ApplianceAppOpStatusRelationship // HasApps returns a boolean if a field has been set. func (o *ApplianceGroupOpStatus) HasApps() bool { - if o != nil && IsNil(o.Apps) { + if o != nil && !IsNil(o.Apps) { return true } @@ -303,7 +313,13 @@ func (o ApplianceGroupOpStatus) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Description) { toSerialize["Description"] = o.Description @@ -337,6 +353,13 @@ func (o *ApplianceGroupOpStatus) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -346,11 +369,23 @@ func (o *ApplianceGroupOpStatus) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type ApplianceGroupOpStatusWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_appliance_group_op_status_list.go b/model_appliance_group_op_status_list.go index c191bbd5a3..b231856b4f 100644 --- a/model_appliance_group_op_status_list.go +++ b/model_appliance_group_op_status_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *ApplianceGroupOpStatusList) GetResultsOk() ([]ApplianceGroupOpStatus, b // HasResults returns a boolean if a field has been set. func (o *ApplianceGroupOpStatusList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *ApplianceGroupOpStatusList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *ApplianceGroupOpStatusList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type ApplianceGroupOpStatusListWithoutEmbeddedStruct struct { // The total number of 'appliance.GroupOpStatus' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_appliance_group_op_status_relationship.go b/model_appliance_group_op_status_relationship.go index cb52dc7d10..daf0e09b67 100644 --- a/model_appliance_group_op_status_relationship.go +++ b/model_appliance_group_op_status_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_appliance_group_op_status_response.go b/model_appliance_group_op_status_response.go index 8dd010fa9a..a621ab3d0a 100644 --- a/model_appliance_group_op_status_response.go +++ b/model_appliance_group_op_status_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_appliance_group_status.go b/model_appliance_group_status.go index 1515b824a0..566a54d824 100644 --- a/model_appliance_group_status.go +++ b/model_appliance_group_status.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -89,6 +89,11 @@ func (o *ApplianceGroupStatus) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "appliance.GroupStatus" of the ClassId field. +func (o *ApplianceGroupStatus) GetDefaultClassId() interface{} { + return "appliance.GroupStatus" +} + // GetObjectType returns the ObjectType field value func (o *ApplianceGroupStatus) GetObjectType() string { if o == nil { @@ -113,6 +118,11 @@ func (o *ApplianceGroupStatus) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "appliance.GroupStatus" of the ObjectType field. +func (o *ApplianceGroupStatus) GetDefaultObjectType() interface{} { + return "appliance.GroupStatus" +} + // GetDescription returns the Description field value if set, zero value otherwise. func (o *ApplianceGroupStatus) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -230,7 +240,7 @@ func (o *ApplianceGroupStatus) GetAppsOk() ([]ApplianceAppStatusRelationship, bo // HasApps returns a boolean if a field has been set. func (o *ApplianceGroupStatus) HasApps() bool { - if o != nil && IsNil(o.Apps) { + if o != nil && !IsNil(o.Apps) { return true } @@ -303,7 +313,13 @@ func (o ApplianceGroupStatus) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Description) { toSerialize["Description"] = o.Description @@ -337,6 +353,13 @@ func (o *ApplianceGroupStatus) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -346,11 +369,23 @@ func (o *ApplianceGroupStatus) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type ApplianceGroupStatusWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_appliance_group_status_list.go b/model_appliance_group_status_list.go index 38c7b9ad29..cbd6ce6346 100644 --- a/model_appliance_group_status_list.go +++ b/model_appliance_group_status_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *ApplianceGroupStatusList) GetResultsOk() ([]ApplianceGroupStatus, bool) // HasResults returns a boolean if a field has been set. func (o *ApplianceGroupStatusList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *ApplianceGroupStatusList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *ApplianceGroupStatusList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type ApplianceGroupStatusListWithoutEmbeddedStruct struct { // The total number of 'appliance.GroupStatus' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_appliance_group_status_relationship.go b/model_appliance_group_status_relationship.go index f6164dd4d2..8cafdd4391 100644 --- a/model_appliance_group_status_relationship.go +++ b/model_appliance_group_status_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_appliance_group_status_response.go b/model_appliance_group_status_response.go index 7519602749..c214b28a48 100644 --- a/model_appliance_group_status_response.go +++ b/model_appliance_group_status_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_appliance_image_bundle.go b/model_appliance_image_bundle.go index e69f96a8b6..a9321bafc5 100644 --- a/model_appliance_image_bundle.go +++ b/model_appliance_image_bundle.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -121,6 +121,11 @@ func (o *ApplianceImageBundle) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "appliance.ImageBundle" of the ClassId field. +func (o *ApplianceImageBundle) GetDefaultClassId() interface{} { + return "appliance.ImageBundle" +} + // GetObjectType returns the ObjectType field value func (o *ApplianceImageBundle) GetObjectType() string { if o == nil { @@ -145,6 +150,11 @@ func (o *ApplianceImageBundle) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "appliance.ImageBundle" of the ObjectType field. +func (o *ApplianceImageBundle) GetDefaultObjectType() interface{} { + return "appliance.ImageBundle" +} + // GetAnsiblePackages returns the AnsiblePackages field value if set, zero value otherwise (both if not set or set to explicit null). func (o *ApplianceImageBundle) GetAnsiblePackages() []OnpremImagePackage { if o == nil { @@ -166,7 +176,7 @@ func (o *ApplianceImageBundle) GetAnsiblePackagesOk() ([]OnpremImagePackage, boo // HasAnsiblePackages returns a boolean if a field has been set. func (o *ApplianceImageBundle) HasAnsiblePackages() bool { - if o != nil && IsNil(o.AnsiblePackages) { + if o != nil && !IsNil(o.AnsiblePackages) { return true } @@ -231,7 +241,7 @@ func (o *ApplianceImageBundle) GetDcPackagesOk() ([]OnpremImagePackage, bool) { // HasDcPackages returns a boolean if a field has been set. func (o *ApplianceImageBundle) HasDcPackages() bool { - if o != nil && IsNil(o.DcPackages) { + if o != nil && !IsNil(o.DcPackages) { return true } @@ -264,7 +274,7 @@ func (o *ApplianceImageBundle) GetDebugPackagesOk() ([]OnpremImagePackage, bool) // HasDebugPackages returns a boolean if a field has been set. func (o *ApplianceImageBundle) HasDebugPackages() bool { - if o != nil && IsNil(o.DebugPackages) { + if o != nil && !IsNil(o.DebugPackages) { return true } @@ -329,7 +339,7 @@ func (o *ApplianceImageBundle) GetEndpointPackagesOk() ([]OnpremImagePackage, bo // HasEndpointPackages returns a boolean if a field has been set. func (o *ApplianceImageBundle) HasEndpointPackages() bool { - if o != nil && IsNil(o.EndpointPackages) { + if o != nil && !IsNil(o.EndpointPackages) { return true } @@ -426,7 +436,7 @@ func (o *ApplianceImageBundle) GetInfraPackagesOk() ([]OnpremImagePackage, bool) // HasInfraPackages returns a boolean if a field has been set. func (o *ApplianceImageBundle) HasInfraPackages() bool { - if o != nil && IsNil(o.InfraPackages) { + if o != nil && !IsNil(o.InfraPackages) { return true } @@ -459,7 +469,7 @@ func (o *ApplianceImageBundle) GetInitPackagesOk() ([]OnpremImagePackage, bool) // HasInitPackages returns a boolean if a field has been set. func (o *ApplianceImageBundle) HasInitPackages() bool { - if o != nil && IsNil(o.InitPackages) { + if o != nil && !IsNil(o.InitPackages) { return true } @@ -620,7 +630,7 @@ func (o *ApplianceImageBundle) GetServicePackagesOk() ([]OnpremImagePackage, boo // HasServicePackages returns a boolean if a field has been set. func (o *ApplianceImageBundle) HasServicePackages() bool { - if o != nil && IsNil(o.ServicePackages) { + if o != nil && !IsNil(o.ServicePackages) { return true } @@ -685,7 +695,7 @@ func (o *ApplianceImageBundle) GetSystemPackagesOk() ([]OnpremImagePackage, bool // HasSystemPackages returns a boolean if a field has been set. func (o *ApplianceImageBundle) HasSystemPackages() bool { - if o != nil && IsNil(o.SystemPackages) { + if o != nil && !IsNil(o.SystemPackages) { return true } @@ -718,7 +728,7 @@ func (o *ApplianceImageBundle) GetUiPackagesOk() ([]OnpremImagePackage, bool) { // HasUiPackages returns a boolean if a field has been set. func (o *ApplianceImageBundle) HasUiPackages() bool { - if o != nil && IsNil(o.UiPackages) { + if o != nil && !IsNil(o.UiPackages) { return true } @@ -983,7 +993,13 @@ func (o ApplianceImageBundle) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.AnsiblePackages != nil { toSerialize["AnsiblePackages"] = o.AnsiblePackages @@ -1077,6 +1093,13 @@ func (o *ApplianceImageBundle) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -1086,11 +1109,23 @@ func (o *ApplianceImageBundle) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type ApplianceImageBundleWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_appliance_image_bundle_list.go b/model_appliance_image_bundle_list.go index ca97ca6713..8d6461f615 100644 --- a/model_appliance_image_bundle_list.go +++ b/model_appliance_image_bundle_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *ApplianceImageBundleList) GetResultsOk() ([]ApplianceImageBundle, bool) // HasResults returns a boolean if a field has been set. func (o *ApplianceImageBundleList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *ApplianceImageBundleList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *ApplianceImageBundleList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type ApplianceImageBundleListWithoutEmbeddedStruct struct { // The total number of 'appliance.ImageBundle' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_appliance_image_bundle_relationship.go b/model_appliance_image_bundle_relationship.go index f442743678..2616e6f6a9 100644 --- a/model_appliance_image_bundle_relationship.go +++ b/model_appliance_image_bundle_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_appliance_image_bundle_response.go b/model_appliance_image_bundle_response.go index cde45dc538..9831ba4525 100644 --- a/model_appliance_image_bundle_response.go +++ b/model_appliance_image_bundle_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_appliance_key_value_pair.go b/model_appliance_key_value_pair.go index 4436aa9e40..7813674a40 100644 --- a/model_appliance_key_value_pair.go +++ b/model_appliance_key_value_pair.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -84,6 +84,11 @@ func (o *ApplianceKeyValuePair) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "appliance.KeyValuePair" of the ClassId field. +func (o *ApplianceKeyValuePair) GetDefaultClassId() interface{} { + return "appliance.KeyValuePair" +} + // GetObjectType returns the ObjectType field value func (o *ApplianceKeyValuePair) GetObjectType() string { if o == nil { @@ -108,6 +113,11 @@ func (o *ApplianceKeyValuePair) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "appliance.KeyValuePair" of the ObjectType field. +func (o *ApplianceKeyValuePair) GetDefaultObjectType() interface{} { + return "appliance.KeyValuePair" +} + // GetKey returns the Key field value if set, zero value otherwise. func (o *ApplianceKeyValuePair) GetKey() string { if o == nil || IsNil(o.Key) { @@ -190,7 +200,13 @@ func (o ApplianceKeyValuePair) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Key) { toSerialize["Key"] = o.Key @@ -215,6 +231,13 @@ func (o *ApplianceKeyValuePair) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -224,11 +247,23 @@ func (o *ApplianceKeyValuePair) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type ApplianceKeyValuePairWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_appliance_meta_manifest.go b/model_appliance_meta_manifest.go index 4c4e41edd6..08d3e3aec3 100644 --- a/model_appliance_meta_manifest.go +++ b/model_appliance_meta_manifest.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -94,6 +94,11 @@ func (o *ApplianceMetaManifest) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "appliance.MetaManifest" of the ClassId field. +func (o *ApplianceMetaManifest) GetDefaultClassId() interface{} { + return "appliance.MetaManifest" +} + // GetObjectType returns the ObjectType field value func (o *ApplianceMetaManifest) GetObjectType() string { if o == nil { @@ -118,6 +123,11 @@ func (o *ApplianceMetaManifest) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "appliance.MetaManifest" of the ObjectType field. +func (o *ApplianceMetaManifest) GetDefaultObjectType() interface{} { + return "appliance.MetaManifest" +} + // GetCreationDate returns the CreationDate field value if set, zero value otherwise. func (o *ApplianceMetaManifest) GetCreationDate() string { if o == nil || IsNil(o.CreationDate) { @@ -371,7 +381,13 @@ func (o ApplianceMetaManifest) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.CreationDate) { toSerialize["CreationDate"] = o.CreationDate @@ -411,6 +427,13 @@ func (o *ApplianceMetaManifest) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -420,11 +443,23 @@ func (o *ApplianceMetaManifest) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type ApplianceMetaManifestWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_appliance_meta_manifest_list.go b/model_appliance_meta_manifest_list.go index 53c5d4bffa..31beee071c 100644 --- a/model_appliance_meta_manifest_list.go +++ b/model_appliance_meta_manifest_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *ApplianceMetaManifestList) GetResultsOk() ([]ApplianceMetaManifest, boo // HasResults returns a boolean if a field has been set. func (o *ApplianceMetaManifestList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *ApplianceMetaManifestList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *ApplianceMetaManifestList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type ApplianceMetaManifestListWithoutEmbeddedStruct struct { // The total number of 'appliance.MetaManifest' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_appliance_meta_manifest_response.go b/model_appliance_meta_manifest_response.go index f4259ad0ed..8349106867 100644 --- a/model_appliance_meta_manifest_response.go +++ b/model_appliance_meta_manifest_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_appliance_metadata_manifest_version.go b/model_appliance_metadata_manifest_version.go index 7829aa2694..fc926e1c45 100644 --- a/model_appliance_metadata_manifest_version.go +++ b/model_appliance_metadata_manifest_version.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -91,6 +91,11 @@ func (o *ApplianceMetadataManifestVersion) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "appliance.MetadataManifestVersion" of the ClassId field. +func (o *ApplianceMetadataManifestVersion) GetDefaultClassId() interface{} { + return "appliance.MetadataManifestVersion" +} + // GetObjectType returns the ObjectType field value func (o *ApplianceMetadataManifestVersion) GetObjectType() string { if o == nil { @@ -115,6 +120,11 @@ func (o *ApplianceMetadataManifestVersion) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "appliance.MetadataManifestVersion" of the ObjectType field. +func (o *ApplianceMetadataManifestVersion) GetDefaultObjectType() interface{} { + return "appliance.MetadataManifestVersion" +} + // GetFileSha returns the FileSha field value if set, zero value otherwise. func (o *ApplianceMetadataManifestVersion) GetFileSha() string { if o == nil || IsNil(o.FileSha) { @@ -229,7 +239,13 @@ func (o ApplianceMetadataManifestVersion) ToMap() (map[string]interface{}, error if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.FileSha) { toSerialize["FileSha"] = o.FileSha @@ -257,6 +273,13 @@ func (o *ApplianceMetadataManifestVersion) UnmarshalJSON(data []byte) (err error "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -266,11 +289,23 @@ func (o *ApplianceMetadataManifestVersion) UnmarshalJSON(data []byte) (err error } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type ApplianceMetadataManifestVersionWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_appliance_metrics_config.go b/model_appliance_metrics_config.go index d9e391ae70..fcc146dd8d 100644 --- a/model_appliance_metrics_config.go +++ b/model_appliance_metrics_config.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -102,6 +102,11 @@ func (o *ApplianceMetricsConfig) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "appliance.MetricsConfig" of the ClassId field. +func (o *ApplianceMetricsConfig) GetDefaultClassId() interface{} { + return "appliance.MetricsConfig" +} + // GetObjectType returns the ObjectType field value func (o *ApplianceMetricsConfig) GetObjectType() string { if o == nil { @@ -126,6 +131,11 @@ func (o *ApplianceMetricsConfig) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "appliance.MetricsConfig" of the ObjectType field. +func (o *ApplianceMetricsConfig) GetDefaultObjectType() interface{} { + return "appliance.MetricsConfig" +} + // GetCurrentEndpointCount returns the CurrentEndpointCount field value if set, zero value otherwise. func (o *ApplianceMetricsConfig) GetCurrentEndpointCount() int64 { if o == nil || IsNil(o.CurrentEndpointCount) { @@ -443,7 +453,13 @@ func (o ApplianceMetricsConfig) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.CurrentEndpointCount) { toSerialize["CurrentEndpointCount"] = o.CurrentEndpointCount @@ -489,6 +505,13 @@ func (o *ApplianceMetricsConfig) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -498,11 +521,23 @@ func (o *ApplianceMetricsConfig) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type ApplianceMetricsConfigWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_appliance_metrics_config_list.go b/model_appliance_metrics_config_list.go index 59e47d8fe5..4effb4cb22 100644 --- a/model_appliance_metrics_config_list.go +++ b/model_appliance_metrics_config_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *ApplianceMetricsConfigList) GetResultsOk() ([]ApplianceMetricsConfig, b // HasResults returns a boolean if a field has been set. func (o *ApplianceMetricsConfigList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *ApplianceMetricsConfigList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *ApplianceMetricsConfigList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type ApplianceMetricsConfigListWithoutEmbeddedStruct struct { // The total number of 'appliance.MetricsConfig' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_appliance_metrics_config_response.go b/model_appliance_metrics_config_response.go index 15da0600a1..55a7e811b0 100644 --- a/model_appliance_metrics_config_response.go +++ b/model_appliance_metrics_config_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_appliance_network_link_status.go b/model_appliance_network_link_status.go index b651b15ba4..06f931601e 100644 --- a/model_appliance_network_link_status.go +++ b/model_appliance_network_link_status.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -88,6 +88,11 @@ func (o *ApplianceNetworkLinkStatus) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "appliance.NetworkLinkStatus" of the ClassId field. +func (o *ApplianceNetworkLinkStatus) GetDefaultClassId() interface{} { + return "appliance.NetworkLinkStatus" +} + // GetObjectType returns the ObjectType field value func (o *ApplianceNetworkLinkStatus) GetObjectType() string { if o == nil { @@ -112,6 +117,11 @@ func (o *ApplianceNetworkLinkStatus) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "appliance.NetworkLinkStatus" of the ObjectType field. +func (o *ApplianceNetworkLinkStatus) GetDefaultObjectType() interface{} { + return "appliance.NetworkLinkStatus" +} + // GetDestinationHostname returns the DestinationHostname field value if set, zero value otherwise. func (o *ApplianceNetworkLinkStatus) GetDestinationHostname() string { if o == nil || IsNil(o.DestinationHostname) { @@ -312,7 +322,13 @@ func (o ApplianceNetworkLinkStatus) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.DestinationHostname) { toSerialize["DestinationHostname"] = o.DestinationHostname @@ -346,6 +362,13 @@ func (o *ApplianceNetworkLinkStatus) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -355,11 +378,23 @@ func (o *ApplianceNetworkLinkStatus) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type ApplianceNetworkLinkStatusWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_appliance_network_link_status_list.go b/model_appliance_network_link_status_list.go index 3b92e45bb2..ccf2ef0739 100644 --- a/model_appliance_network_link_status_list.go +++ b/model_appliance_network_link_status_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *ApplianceNetworkLinkStatusList) GetResultsOk() ([]ApplianceNetworkLinkS // HasResults returns a boolean if a field has been set. func (o *ApplianceNetworkLinkStatusList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *ApplianceNetworkLinkStatusList) UnmarshalJSON(data []byte) (err error) "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *ApplianceNetworkLinkStatusList) UnmarshalJSON(data []byte) (err error) } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type ApplianceNetworkLinkStatusListWithoutEmbeddedStruct struct { // The total number of 'appliance.NetworkLinkStatus' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_appliance_network_link_status_relationship.go b/model_appliance_network_link_status_relationship.go index 0be04624c3..233961f0de 100644 --- a/model_appliance_network_link_status_relationship.go +++ b/model_appliance_network_link_status_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_appliance_network_link_status_response.go b/model_appliance_network_link_status_response.go index e7cf443fe9..19502d2d66 100644 --- a/model_appliance_network_link_status_response.go +++ b/model_appliance_network_link_status_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_appliance_network_status.go b/model_appliance_network_status.go index e8ec096251..e1a09f000c 100644 --- a/model_appliance_network_status.go +++ b/model_appliance_network_status.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -86,6 +86,11 @@ func (o *ApplianceNetworkStatus) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "appliance.NetworkStatus" of the ClassId field. +func (o *ApplianceNetworkStatus) GetDefaultClassId() interface{} { + return "appliance.NetworkStatus" +} + // GetObjectType returns the ObjectType field value func (o *ApplianceNetworkStatus) GetObjectType() string { if o == nil { @@ -110,6 +115,11 @@ func (o *ApplianceNetworkStatus) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "appliance.NetworkStatus" of the ObjectType field. +func (o *ApplianceNetworkStatus) GetDefaultObjectType() interface{} { + return "appliance.NetworkStatus" +} + // GetDestinationHostname returns the DestinationHostname field value if set, zero value otherwise. func (o *ApplianceNetworkStatus) GetDestinationHostname() string { if o == nil || IsNil(o.DestinationHostname) { @@ -224,7 +234,13 @@ func (o ApplianceNetworkStatus) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.DestinationHostname) { toSerialize["DestinationHostname"] = o.DestinationHostname @@ -252,6 +268,13 @@ func (o *ApplianceNetworkStatus) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -261,11 +284,23 @@ func (o *ApplianceNetworkStatus) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type ApplianceNetworkStatusWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_appliance_node_info.go b/model_appliance_node_info.go index 531a4a013f..400da601a4 100644 --- a/model_appliance_node_info.go +++ b/model_appliance_node_info.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -88,6 +88,11 @@ func (o *ApplianceNodeInfo) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "appliance.NodeInfo" of the ClassId field. +func (o *ApplianceNodeInfo) GetDefaultClassId() interface{} { + return "appliance.NodeInfo" +} + // GetObjectType returns the ObjectType field value func (o *ApplianceNodeInfo) GetObjectType() string { if o == nil { @@ -112,6 +117,11 @@ func (o *ApplianceNodeInfo) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "appliance.NodeInfo" of the ObjectType field. +func (o *ApplianceNodeInfo) GetDefaultObjectType() interface{} { + return "appliance.NodeInfo" +} + // GetHostname returns the Hostname field value if set, zero value otherwise. func (o *ApplianceNodeInfo) GetHostname() string { if o == nil || IsNil(o.Hostname) { @@ -312,7 +322,13 @@ func (o ApplianceNodeInfo) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Hostname) { toSerialize["Hostname"] = o.Hostname @@ -346,6 +362,13 @@ func (o *ApplianceNodeInfo) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -355,11 +378,23 @@ func (o *ApplianceNodeInfo) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type ApplianceNodeInfoWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_appliance_node_info_list.go b/model_appliance_node_info_list.go index f1058c121b..0a43c540d5 100644 --- a/model_appliance_node_info_list.go +++ b/model_appliance_node_info_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *ApplianceNodeInfoList) GetResultsOk() ([]ApplianceNodeInfo, bool) { // HasResults returns a boolean if a field has been set. func (o *ApplianceNodeInfoList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *ApplianceNodeInfoList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *ApplianceNodeInfoList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type ApplianceNodeInfoListWithoutEmbeddedStruct struct { // The total number of 'appliance.NodeInfo' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_appliance_node_info_relationship.go b/model_appliance_node_info_relationship.go index 74353ff5fa..18ea9c8abc 100644 --- a/model_appliance_node_info_relationship.go +++ b/model_appliance_node_info_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_appliance_node_info_response.go b/model_appliance_node_info_response.go index 7731933e3d..8cfda40ea8 100644 --- a/model_appliance_node_info_response.go +++ b/model_appliance_node_info_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_appliance_node_ip_info.go b/model_appliance_node_ip_info.go index c6865152d8..73557a6551 100644 --- a/model_appliance_node_ip_info.go +++ b/model_appliance_node_ip_info.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -94,6 +94,11 @@ func (o *ApplianceNodeIpInfo) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "appliance.NodeIpInfo" of the ClassId field. +func (o *ApplianceNodeIpInfo) GetDefaultClassId() interface{} { + return "appliance.NodeIpInfo" +} + // GetObjectType returns the ObjectType field value func (o *ApplianceNodeIpInfo) GetObjectType() string { if o == nil { @@ -118,6 +123,11 @@ func (o *ApplianceNodeIpInfo) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "appliance.NodeIpInfo" of the ObjectType field. +func (o *ApplianceNodeIpInfo) GetDefaultObjectType() interface{} { + return "appliance.NodeIpInfo" +} + // GetGateway returns the Gateway field value if set, zero value otherwise. func (o *ApplianceNodeIpInfo) GetGateway() string { if o == nil || IsNil(o.Gateway) { @@ -360,7 +370,13 @@ func (o ApplianceNodeIpInfo) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Gateway) { toSerialize["Gateway"] = o.Gateway @@ -400,6 +416,13 @@ func (o *ApplianceNodeIpInfo) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -409,11 +432,23 @@ func (o *ApplianceNodeIpInfo) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type ApplianceNodeIpInfoWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_appliance_node_op_status.go b/model_appliance_node_op_status.go index 5f289880f1..d9dd073768 100644 --- a/model_appliance_node_op_status.go +++ b/model_appliance_node_op_status.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -101,6 +101,11 @@ func (o *ApplianceNodeOpStatus) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "appliance.NodeOpStatus" of the ClassId field. +func (o *ApplianceNodeOpStatus) GetDefaultClassId() interface{} { + return "appliance.NodeOpStatus" +} + // GetObjectType returns the ObjectType field value func (o *ApplianceNodeOpStatus) GetObjectType() string { if o == nil { @@ -125,6 +130,11 @@ func (o *ApplianceNodeOpStatus) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "appliance.NodeOpStatus" of the ObjectType field. +func (o *ApplianceNodeOpStatus) GetDefaultObjectType() interface{} { + return "appliance.NodeOpStatus" +} + // GetClusterNetworkStatus returns the ClusterNetworkStatus field value if set, zero value otherwise (both if not set or set to explicit null). func (o *ApplianceNodeOpStatus) GetClusterNetworkStatus() []ApplianceNetworkStatus { if o == nil { @@ -146,7 +156,7 @@ func (o *ApplianceNodeOpStatus) GetClusterNetworkStatusOk() ([]ApplianceNetworkS // HasClusterNetworkStatus returns a boolean if a field has been set. func (o *ApplianceNodeOpStatus) HasClusterNetworkStatus() bool { - if o != nil && IsNil(o.ClusterNetworkStatus) { + if o != nil && !IsNil(o.ClusterNetworkStatus) { return true } @@ -414,7 +424,7 @@ func (o *ApplianceNodeOpStatus) GetFileSystemOpStatusesOk() ([]ApplianceFileSyst // HasFileSystemOpStatuses returns a boolean if a field has been set. func (o *ApplianceNodeOpStatus) HasFileSystemOpStatuses() bool { - if o != nil && IsNil(o.FileSystemOpStatuses) { + if o != nil && !IsNil(o.FileSystemOpStatuses) { return true } @@ -447,7 +457,7 @@ func (o *ApplianceNodeOpStatus) GetNetworkLinkStatusesOk() ([]ApplianceNetworkLi // HasNetworkLinkStatuses returns a boolean if a field has been set. func (o *ApplianceNodeOpStatus) HasNetworkLinkStatuses() bool { - if o != nil && IsNil(o.NetworkLinkStatuses) { + if o != nil && !IsNil(o.NetworkLinkStatuses) { return true } @@ -606,7 +616,13 @@ func (o ApplianceNodeOpStatus) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.ClusterNetworkStatus != nil { toSerialize["ClusterNetworkStatus"] = o.ClusterNetworkStatus @@ -664,6 +680,13 @@ func (o *ApplianceNodeOpStatus) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -673,11 +696,23 @@ func (o *ApplianceNodeOpStatus) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type ApplianceNodeOpStatusWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_appliance_node_op_status_list.go b/model_appliance_node_op_status_list.go index 52c4107922..b5b5879252 100644 --- a/model_appliance_node_op_status_list.go +++ b/model_appliance_node_op_status_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *ApplianceNodeOpStatusList) GetResultsOk() ([]ApplianceNodeOpStatus, boo // HasResults returns a boolean if a field has been set. func (o *ApplianceNodeOpStatusList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *ApplianceNodeOpStatusList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *ApplianceNodeOpStatusList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type ApplianceNodeOpStatusListWithoutEmbeddedStruct struct { // The total number of 'appliance.NodeOpStatus' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_appliance_node_op_status_relationship.go b/model_appliance_node_op_status_relationship.go index 163e20ce41..ecced5b543 100644 --- a/model_appliance_node_op_status_relationship.go +++ b/model_appliance_node_op_status_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_appliance_node_op_status_response.go b/model_appliance_node_op_status_response.go index e04bc4e24e..d885cacbbe 100644 --- a/model_appliance_node_op_status_response.go +++ b/model_appliance_node_op_status_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_appliance_node_status.go b/model_appliance_node_status.go index abc3eeb180..e197328947 100644 --- a/model_appliance_node_status.go +++ b/model_appliance_node_status.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -95,6 +95,11 @@ func (o *ApplianceNodeStatus) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "appliance.NodeStatus" of the ClassId field. +func (o *ApplianceNodeStatus) GetDefaultClassId() interface{} { + return "appliance.NodeStatus" +} + // GetObjectType returns the ObjectType field value func (o *ApplianceNodeStatus) GetObjectType() string { if o == nil { @@ -119,6 +124,11 @@ func (o *ApplianceNodeStatus) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "appliance.NodeStatus" of the ObjectType field. +func (o *ApplianceNodeStatus) GetDefaultObjectType() interface{} { + return "appliance.NodeStatus" +} + // GetCpuUsage returns the CpuUsage field value if set, zero value otherwise. func (o *ApplianceNodeStatus) GetCpuUsage() float32 { if o == nil || IsNil(o.CpuUsage) { @@ -300,7 +310,7 @@ func (o *ApplianceNodeStatus) GetStatusChecksOk() ([]ApplianceStatusCheck, bool) // HasStatusChecks returns a boolean if a field has been set. func (o *ApplianceNodeStatus) HasStatusChecks() bool { - if o != nil && IsNil(o.StatusChecks) { + if o != nil && !IsNil(o.StatusChecks) { return true } @@ -333,7 +343,7 @@ func (o *ApplianceNodeStatus) GetFileSystemStatusesOk() ([]ApplianceFileSystemSt // HasFileSystemStatuses returns a boolean if a field has been set. func (o *ApplianceNodeStatus) HasFileSystemStatuses() bool { - if o != nil && IsNil(o.FileSystemStatuses) { + if o != nil && !IsNil(o.FileSystemStatuses) { return true } @@ -449,7 +459,13 @@ func (o ApplianceNodeStatus) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.CpuUsage) { toSerialize["CpuUsage"] = o.CpuUsage @@ -495,6 +511,13 @@ func (o *ApplianceNodeStatus) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -504,11 +527,23 @@ func (o *ApplianceNodeStatus) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type ApplianceNodeStatusWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_appliance_node_status_list.go b/model_appliance_node_status_list.go index 40baaf2705..d6f28c4e09 100644 --- a/model_appliance_node_status_list.go +++ b/model_appliance_node_status_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *ApplianceNodeStatusList) GetResultsOk() ([]ApplianceNodeStatus, bool) { // HasResults returns a boolean if a field has been set. func (o *ApplianceNodeStatusList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *ApplianceNodeStatusList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *ApplianceNodeStatusList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type ApplianceNodeStatusListWithoutEmbeddedStruct struct { // The total number of 'appliance.NodeStatus' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_appliance_node_status_relationship.go b/model_appliance_node_status_relationship.go index 47c65073eb..49c67869c1 100644 --- a/model_appliance_node_status_relationship.go +++ b/model_appliance_node_status_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_appliance_node_status_response.go b/model_appliance_node_status_response.go index d5948f4d16..ca95eff46e 100644 --- a/model_appliance_node_status_response.go +++ b/model_appliance_node_status_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_appliance_release_note.go b/model_appliance_release_note.go index 93bfca2518..eba6de0cfa 100644 --- a/model_appliance_release_note.go +++ b/model_appliance_release_note.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -83,6 +83,11 @@ func (o *ApplianceReleaseNote) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "appliance.ReleaseNote" of the ClassId field. +func (o *ApplianceReleaseNote) GetDefaultClassId() interface{} { + return "appliance.ReleaseNote" +} + // GetObjectType returns the ObjectType field value func (o *ApplianceReleaseNote) GetObjectType() string { if o == nil { @@ -107,6 +112,11 @@ func (o *ApplianceReleaseNote) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "appliance.ReleaseNote" of the ObjectType field. +func (o *ApplianceReleaseNote) GetDefaultObjectType() interface{} { + return "appliance.ReleaseNote" +} + // GetNotes returns the Notes field value if set, zero value otherwise (both if not set or set to explicit null). func (o *ApplianceReleaseNote) GetNotes() []OnpremUpgradeNote { if o == nil { @@ -128,7 +138,7 @@ func (o *ApplianceReleaseNote) GetNotesOk() ([]OnpremUpgradeNote, bool) { // HasNotes returns a boolean if a field has been set. func (o *ApplianceReleaseNote) HasNotes() bool { - if o != nil && IsNil(o.Notes) { + if o != nil && !IsNil(o.Notes) { return true } @@ -190,7 +200,13 @@ func (o ApplianceReleaseNote) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.Notes != nil { toSerialize["Notes"] = o.Notes @@ -215,6 +231,13 @@ func (o *ApplianceReleaseNote) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -224,11 +247,23 @@ func (o *ApplianceReleaseNote) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type ApplianceReleaseNoteWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_appliance_release_note_list.go b/model_appliance_release_note_list.go index ee3717570e..6994f2d5a3 100644 --- a/model_appliance_release_note_list.go +++ b/model_appliance_release_note_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *ApplianceReleaseNoteList) GetResultsOk() ([]ApplianceReleaseNote, bool) // HasResults returns a boolean if a field has been set. func (o *ApplianceReleaseNoteList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *ApplianceReleaseNoteList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *ApplianceReleaseNoteList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type ApplianceReleaseNoteListWithoutEmbeddedStruct struct { // The total number of 'appliance.ReleaseNote' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_appliance_release_note_response.go b/model_appliance_release_note_response.go index 08ecf39da9..383eaba755 100644 --- a/model_appliance_release_note_response.go +++ b/model_appliance_release_note_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_appliance_remote_file_import.go b/model_appliance_remote_file_import.go index 4b68db9f91..c96ac09f62 100644 --- a/model_appliance_remote_file_import.go +++ b/model_appliance_remote_file_import.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -101,6 +101,11 @@ func (o *ApplianceRemoteFileImport) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "appliance.RemoteFileImport" of the ClassId field. +func (o *ApplianceRemoteFileImport) GetDefaultClassId() interface{} { + return "appliance.RemoteFileImport" +} + // GetObjectType returns the ObjectType field value func (o *ApplianceRemoteFileImport) GetObjectType() string { if o == nil { @@ -125,6 +130,11 @@ func (o *ApplianceRemoteFileImport) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "appliance.RemoteFileImport" of the ObjectType field. +func (o *ApplianceRemoteFileImport) GetDefaultObjectType() interface{} { + return "appliance.RemoteFileImport" +} + // GetFilename returns the Filename field value if set, zero value otherwise. func (o *ApplianceRemoteFileImport) GetFilename() string { if o == nil || IsNil(o.Filename) { @@ -442,7 +452,13 @@ func (o ApplianceRemoteFileImport) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Filename) { toSerialize["Filename"] = o.Filename @@ -488,6 +504,13 @@ func (o *ApplianceRemoteFileImport) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -497,11 +520,23 @@ func (o *ApplianceRemoteFileImport) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type ApplianceRemoteFileImportWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_appliance_remote_file_import_list.go b/model_appliance_remote_file_import_list.go index 509cd316e3..f328536f66 100644 --- a/model_appliance_remote_file_import_list.go +++ b/model_appliance_remote_file_import_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *ApplianceRemoteFileImportList) GetResultsOk() ([]ApplianceRemoteFileImp // HasResults returns a boolean if a field has been set. func (o *ApplianceRemoteFileImportList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *ApplianceRemoteFileImportList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *ApplianceRemoteFileImportList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type ApplianceRemoteFileImportListWithoutEmbeddedStruct struct { // The total number of 'appliance.RemoteFileImport' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_appliance_remote_file_import_response.go b/model_appliance_remote_file_import_response.go index d0937d244e..544c871c25 100644 --- a/model_appliance_remote_file_import_response.go +++ b/model_appliance_remote_file_import_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_appliance_restore.go b/model_appliance_restore.go index 59475cdfd2..5c74ea8177 100644 --- a/model_appliance_restore.go +++ b/model_appliance_restore.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -37,7 +37,7 @@ type ApplianceRestore struct { IsPasswordSet *bool `json:"IsPasswordSet,omitempty"` Messages []string `json:"Messages,omitempty"` // Password for authenticating with the file server. - Password *string `json:"Password,omitempty"` + Password *string "json:\"Password,omitempty\" validate:\"regexp=^$|^[^`]+$\"" // Start date and time of the restore process. StartTime *time.Time `json:"StartTime,omitempty"` // Status of the restore managed object. * `Started` - Backup or restore process has started. * `Created` - Backup or restore is in created state. * `Failed` - Backup or restore process has failed. * `Completed` - Backup or restore process has completed. * `Copied` - Backup file has been copied. * `Cleanup Failed` - Cleanup of the old backup has failed. @@ -97,6 +97,11 @@ func (o *ApplianceRestore) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "appliance.Restore" of the ClassId field. +func (o *ApplianceRestore) GetDefaultClassId() interface{} { + return "appliance.Restore" +} + // GetObjectType returns the ObjectType field value func (o *ApplianceRestore) GetObjectType() string { if o == nil { @@ -121,6 +126,11 @@ func (o *ApplianceRestore) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "appliance.Restore" of the ObjectType field. +func (o *ApplianceRestore) GetDefaultObjectType() interface{} { + return "appliance.Restore" +} + // GetElapsedTime returns the ElapsedTime field value if set, zero value otherwise. func (o *ApplianceRestore) GetElapsedTime() int64 { if o == nil || IsNil(o.ElapsedTime) { @@ -238,7 +248,7 @@ func (o *ApplianceRestore) GetMessagesOk() ([]string, bool) { // HasMessages returns a boolean if a field has been set. func (o *ApplianceRestore) HasMessages() bool { - if o != nil && IsNil(o.Messages) { + if o != nil && !IsNil(o.Messages) { return true } @@ -407,7 +417,13 @@ func (o ApplianceRestore) ToMap() (map[string]interface{}, error) { if errApplianceBackupBase != nil { return map[string]interface{}{}, errApplianceBackupBase } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.ElapsedTime) { toSerialize["ElapsedTime"] = o.ElapsedTime @@ -450,6 +466,13 @@ func (o *ApplianceRestore) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -459,11 +482,23 @@ func (o *ApplianceRestore) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type ApplianceRestoreWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` @@ -477,7 +512,7 @@ func (o *ApplianceRestore) UnmarshalJSON(data []byte) (err error) { IsPasswordSet *bool `json:"IsPasswordSet,omitempty"` Messages []string `json:"Messages,omitempty"` // Password for authenticating with the file server. - Password *string `json:"Password,omitempty"` + Password *string "json:\"Password,omitempty\" validate:\"regexp=^$|^[^`]+$\"" // Start date and time of the restore process. StartTime *time.Time `json:"StartTime,omitempty"` // Status of the restore managed object. * `Started` - Backup or restore process has started. * `Created` - Backup or restore is in created state. * `Failed` - Backup or restore process has failed. * `Completed` - Backup or restore process has completed. * `Copied` - Backup file has been copied. * `Cleanup Failed` - Cleanup of the old backup has failed. diff --git a/model_appliance_restore_list.go b/model_appliance_restore_list.go index 0d16f6849d..b1bd39f51b 100644 --- a/model_appliance_restore_list.go +++ b/model_appliance_restore_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *ApplianceRestoreList) GetResultsOk() ([]ApplianceRestore, bool) { // HasResults returns a boolean if a field has been set. func (o *ApplianceRestoreList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *ApplianceRestoreList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *ApplianceRestoreList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type ApplianceRestoreListWithoutEmbeddedStruct struct { // The total number of 'appliance.Restore' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_appliance_restore_response.go b/model_appliance_restore_response.go index af0c6e46ac..a325477401 100644 --- a/model_appliance_restore_response.go +++ b/model_appliance_restore_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_appliance_setup_info.go b/model_appliance_setup_info.go index 94933bac37..10908e7ed8 100644 --- a/model_appliance_setup_info.go +++ b/model_appliance_setup_info.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -100,6 +100,11 @@ func (o *ApplianceSetupInfo) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "appliance.SetupInfo" of the ClassId field. +func (o *ApplianceSetupInfo) GetDefaultClassId() interface{} { + return "appliance.SetupInfo" +} + // GetObjectType returns the ObjectType field value func (o *ApplianceSetupInfo) GetObjectType() string { if o == nil { @@ -124,6 +129,11 @@ func (o *ApplianceSetupInfo) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "appliance.SetupInfo" of the ObjectType field. +func (o *ApplianceSetupInfo) GetDefaultObjectType() interface{} { + return "appliance.SetupInfo" +} + // GetBuildType returns the BuildType field value if set, zero value otherwise. func (o *ApplianceSetupInfo) GetBuildType() string { if o == nil || IsNil(o.BuildType) { @@ -177,7 +187,7 @@ func (o *ApplianceSetupInfo) GetCapabilitiesOk() ([]ApplianceKeyValuePair, bool) // HasCapabilities returns a boolean if a field has been set. func (o *ApplianceSetupInfo) HasCapabilities() bool { - if o != nil && IsNil(o.Capabilities) { + if o != nil && !IsNil(o.Capabilities) { return true } @@ -402,7 +412,7 @@ func (o *ApplianceSetupInfo) GetSetupStatesOk() ([]string, bool) { // HasSetupStates returns a boolean if a field has been set. func (o *ApplianceSetupInfo) HasSetupStates() bool { - if o != nil && IsNil(o.SetupStates) { + if o != nil && !IsNil(o.SetupStates) { return true } @@ -507,7 +517,13 @@ func (o ApplianceSetupInfo) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.BuildType) { toSerialize["BuildType"] = o.BuildType @@ -559,6 +575,13 @@ func (o *ApplianceSetupInfo) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -568,11 +591,23 @@ func (o *ApplianceSetupInfo) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type ApplianceSetupInfoWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_appliance_setup_info_list.go b/model_appliance_setup_info_list.go index 8c947ab263..800763e073 100644 --- a/model_appliance_setup_info_list.go +++ b/model_appliance_setup_info_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *ApplianceSetupInfoList) GetResultsOk() ([]ApplianceSetupInfo, bool) { // HasResults returns a boolean if a field has been set. func (o *ApplianceSetupInfoList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *ApplianceSetupInfoList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *ApplianceSetupInfoList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type ApplianceSetupInfoListWithoutEmbeddedStruct struct { // The total number of 'appliance.SetupInfo' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_appliance_setup_info_response.go b/model_appliance_setup_info_response.go index 19355341dc..fb6e12debf 100644 --- a/model_appliance_setup_info_response.go +++ b/model_appliance_setup_info_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_appliance_status_check.go b/model_appliance_status_check.go index f789403f82..5931fb76b9 100644 --- a/model_appliance_status_check.go +++ b/model_appliance_status_check.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -88,6 +88,11 @@ func (o *ApplianceStatusCheck) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "appliance.StatusCheck" of the ClassId field. +func (o *ApplianceStatusCheck) GetDefaultClassId() interface{} { + return "appliance.StatusCheck" +} + // GetObjectType returns the ObjectType field value func (o *ApplianceStatusCheck) GetObjectType() string { if o == nil { @@ -112,6 +117,11 @@ func (o *ApplianceStatusCheck) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "appliance.StatusCheck" of the ObjectType field. +func (o *ApplianceStatusCheck) GetDefaultObjectType() interface{} { + return "appliance.StatusCheck" +} + // GetCode returns the Code field value if set, zero value otherwise. func (o *ApplianceStatusCheck) GetCode() string { if o == nil || IsNil(o.Code) { @@ -194,7 +204,13 @@ func (o ApplianceStatusCheck) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Code) { toSerialize["Code"] = o.Code @@ -219,6 +235,13 @@ func (o *ApplianceStatusCheck) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -228,11 +251,23 @@ func (o *ApplianceStatusCheck) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type ApplianceStatusCheckWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_appliance_system_info.go b/model_appliance_system_info.go index 89484107b7..6bcf2c57fb 100644 --- a/model_appliance_system_info.go +++ b/model_appliance_system_info.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -106,6 +106,11 @@ func (o *ApplianceSystemInfo) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "appliance.SystemInfo" of the ClassId field. +func (o *ApplianceSystemInfo) GetDefaultClassId() interface{} { + return "appliance.SystemInfo" +} + // GetObjectType returns the ObjectType field value func (o *ApplianceSystemInfo) GetObjectType() string { if o == nil { @@ -130,6 +135,11 @@ func (o *ApplianceSystemInfo) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "appliance.SystemInfo" of the ObjectType field. +func (o *ApplianceSystemInfo) GetDefaultObjectType() interface{} { + return "appliance.SystemInfo" +} + // GetCloudConnStatus returns the CloudConnStatus field value if set, zero value otherwise. func (o *ApplianceSystemInfo) GetCloudConnStatus() string { if o == nil || IsNil(o.CloudConnStatus) { @@ -500,7 +510,13 @@ func (o ApplianceSystemInfo) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.CloudConnStatus) { toSerialize["CloudConnStatus"] = o.CloudConnStatus @@ -552,6 +568,13 @@ func (o *ApplianceSystemInfo) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -561,11 +584,23 @@ func (o *ApplianceSystemInfo) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type ApplianceSystemInfoWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_appliance_system_info_list.go b/model_appliance_system_info_list.go index b99dfb3e56..e1d6e1b869 100644 --- a/model_appliance_system_info_list.go +++ b/model_appliance_system_info_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *ApplianceSystemInfoList) GetResultsOk() ([]ApplianceSystemInfo, bool) { // HasResults returns a boolean if a field has been set. func (o *ApplianceSystemInfoList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *ApplianceSystemInfoList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *ApplianceSystemInfoList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type ApplianceSystemInfoListWithoutEmbeddedStruct struct { // The total number of 'appliance.SystemInfo' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_appliance_system_info_relationship.go b/model_appliance_system_info_relationship.go index 2b096d9807..dc57b37742 100644 --- a/model_appliance_system_info_relationship.go +++ b/model_appliance_system_info_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_appliance_system_info_response.go b/model_appliance_system_info_response.go index 3bbc43ed25..37ddb73378 100644 --- a/model_appliance_system_info_response.go +++ b/model_appliance_system_info_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_appliance_system_op_status.go b/model_appliance_system_op_status.go index 549a7717c3..556c2da0e5 100644 --- a/model_appliance_system_op_status.go +++ b/model_appliance_system_op_status.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -89,6 +89,11 @@ func (o *ApplianceSystemOpStatus) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "appliance.SystemOpStatus" of the ClassId field. +func (o *ApplianceSystemOpStatus) GetDefaultClassId() interface{} { + return "appliance.SystemOpStatus" +} + // GetObjectType returns the ObjectType field value func (o *ApplianceSystemOpStatus) GetObjectType() string { if o == nil { @@ -113,6 +118,11 @@ func (o *ApplianceSystemOpStatus) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "appliance.SystemOpStatus" of the ObjectType field. +func (o *ApplianceSystemOpStatus) GetDefaultObjectType() interface{} { + return "appliance.SystemOpStatus" +} + // GetOperationalStatus returns the OperationalStatus field value if set, zero value otherwise. func (o *ApplianceSystemOpStatus) GetOperationalStatus() string { if o == nil || IsNil(o.OperationalStatus) { @@ -209,7 +219,7 @@ func (o *ApplianceSystemOpStatus) GetAppOpStatusesOk() ([]ApplianceAppOpStatusRe // HasAppOpStatuses returns a boolean if a field has been set. func (o *ApplianceSystemOpStatus) HasAppOpStatuses() bool { - if o != nil && IsNil(o.AppOpStatuses) { + if o != nil && !IsNil(o.AppOpStatuses) { return true } @@ -242,7 +252,7 @@ func (o *ApplianceSystemOpStatus) GetGroupOpStatusesOk() ([]ApplianceGroupOpStat // HasGroupOpStatuses returns a boolean if a field has been set. func (o *ApplianceSystemOpStatus) HasGroupOpStatuses() bool { - if o != nil && IsNil(o.GroupOpStatuses) { + if o != nil && !IsNil(o.GroupOpStatuses) { return true } @@ -358,7 +368,13 @@ func (o ApplianceSystemOpStatus) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.OperationalStatus) { toSerialize["OperationalStatus"] = o.OperationalStatus @@ -395,6 +411,13 @@ func (o *ApplianceSystemOpStatus) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -404,11 +427,23 @@ func (o *ApplianceSystemOpStatus) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type ApplianceSystemOpStatusWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_appliance_system_op_status_list.go b/model_appliance_system_op_status_list.go index c9414f13f6..e3e273dfa8 100644 --- a/model_appliance_system_op_status_list.go +++ b/model_appliance_system_op_status_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *ApplianceSystemOpStatusList) GetResultsOk() ([]ApplianceSystemOpStatus, // HasResults returns a boolean if a field has been set. func (o *ApplianceSystemOpStatusList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *ApplianceSystemOpStatusList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *ApplianceSystemOpStatusList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type ApplianceSystemOpStatusListWithoutEmbeddedStruct struct { // The total number of 'appliance.SystemOpStatus' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_appliance_system_op_status_relationship.go b/model_appliance_system_op_status_relationship.go index bb279c71e2..d90a5ff0ba 100644 --- a/model_appliance_system_op_status_relationship.go +++ b/model_appliance_system_op_status_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_appliance_system_op_status_response.go b/model_appliance_system_op_status_response.go index f5d3d5a222..5168ecb044 100644 --- a/model_appliance_system_op_status_response.go +++ b/model_appliance_system_op_status_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_appliance_system_status.go b/model_appliance_system_status.go index d5d6e59e01..ea14734d3b 100644 --- a/model_appliance_system_status.go +++ b/model_appliance_system_status.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -89,6 +89,11 @@ func (o *ApplianceSystemStatus) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "appliance.SystemStatus" of the ClassId field. +func (o *ApplianceSystemStatus) GetDefaultClassId() interface{} { + return "appliance.SystemStatus" +} + // GetObjectType returns the ObjectType field value func (o *ApplianceSystemStatus) GetObjectType() string { if o == nil { @@ -113,6 +118,11 @@ func (o *ApplianceSystemStatus) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "appliance.SystemStatus" of the ObjectType field. +func (o *ApplianceSystemStatus) GetDefaultObjectType() interface{} { + return "appliance.SystemStatus" +} + // GetOperationalStatus returns the OperationalStatus field value if set, zero value otherwise. func (o *ApplianceSystemStatus) GetOperationalStatus() string { if o == nil || IsNil(o.OperationalStatus) { @@ -166,7 +176,7 @@ func (o *ApplianceSystemStatus) GetStatusChecksOk() ([]ApplianceStatusCheck, boo // HasStatusChecks returns a boolean if a field has been set. func (o *ApplianceSystemStatus) HasStatusChecks() bool { - if o != nil && IsNil(o.StatusChecks) { + if o != nil && !IsNil(o.StatusChecks) { return true } @@ -199,7 +209,7 @@ func (o *ApplianceSystemStatus) GetAppStatusesOk() ([]ApplianceAppStatusRelation // HasAppStatuses returns a boolean if a field has been set. func (o *ApplianceSystemStatus) HasAppStatuses() bool { - if o != nil && IsNil(o.AppStatuses) { + if o != nil && !IsNil(o.AppStatuses) { return true } @@ -232,7 +242,7 @@ func (o *ApplianceSystemStatus) GetGroupStatusesOk() ([]ApplianceGroupStatusRela // HasGroupStatuses returns a boolean if a field has been set. func (o *ApplianceSystemStatus) HasGroupStatuses() bool { - if o != nil && IsNil(o.GroupStatuses) { + if o != nil && !IsNil(o.GroupStatuses) { return true } @@ -348,7 +358,13 @@ func (o ApplianceSystemStatus) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.OperationalStatus) { toSerialize["OperationalStatus"] = o.OperationalStatus @@ -385,6 +401,13 @@ func (o *ApplianceSystemStatus) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -394,11 +417,23 @@ func (o *ApplianceSystemStatus) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type ApplianceSystemStatusWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_appliance_system_status_list.go b/model_appliance_system_status_list.go index f88f640561..9c22a69c71 100644 --- a/model_appliance_system_status_list.go +++ b/model_appliance_system_status_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *ApplianceSystemStatusList) GetResultsOk() ([]ApplianceSystemStatus, boo // HasResults returns a boolean if a field has been set. func (o *ApplianceSystemStatusList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *ApplianceSystemStatusList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *ApplianceSystemStatusList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type ApplianceSystemStatusListWithoutEmbeddedStruct struct { // The total number of 'appliance.SystemStatus' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_appliance_system_status_relationship.go b/model_appliance_system_status_relationship.go index 615659c5a5..89464d8484 100644 --- a/model_appliance_system_status_relationship.go +++ b/model_appliance_system_status_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_appliance_system_status_response.go b/model_appliance_system_status_response.go index 29ec63989e..745c3ec847 100644 --- a/model_appliance_system_status_response.go +++ b/model_appliance_system_status_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_appliance_upgrade.go b/model_appliance_upgrade.go index 7d33cce854..fcaafa12be 100644 --- a/model_appliance_upgrade.go +++ b/model_appliance_upgrade.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -129,6 +129,11 @@ func (o *ApplianceUpgrade) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "appliance.Upgrade" of the ClassId field. +func (o *ApplianceUpgrade) GetDefaultClassId() interface{} { + return "appliance.Upgrade" +} + // GetObjectType returns the ObjectType field value func (o *ApplianceUpgrade) GetObjectType() string { if o == nil { @@ -153,6 +158,11 @@ func (o *ApplianceUpgrade) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "appliance.Upgrade" of the ObjectType field. +func (o *ApplianceUpgrade) GetDefaultObjectType() interface{} { + return "appliance.Upgrade" +} + // GetActive returns the Active field value if set, zero value otherwise. func (o *ApplianceUpgrade) GetActive() bool { if o == nil || IsNil(o.Active) { @@ -270,7 +280,7 @@ func (o *ApplianceUpgrade) GetCompletedPhasesOk() ([]OnpremUpgradePhase, bool) { // HasCompletedPhases returns a boolean if a field has been set. func (o *ApplianceUpgrade) HasCompletedPhases() bool { - if o != nil && IsNil(o.CompletedPhases) { + if o != nil && !IsNil(o.CompletedPhases) { return true } @@ -570,7 +580,7 @@ func (o *ApplianceUpgrade) GetMessagesOk() ([]string, bool) { // HasMessages returns a boolean if a field has been set. func (o *ApplianceUpgrade) HasMessages() bool { - if o != nil && IsNil(o.Messages) { + if o != nil && !IsNil(o.Messages) { return true } @@ -603,7 +613,7 @@ func (o *ApplianceUpgrade) GetNodeInfoOk() ([]ApplianceNodeIpInfo, bool) { // HasNodeInfo returns a boolean if a field has been set. func (o *ApplianceUpgrade) HasNodeInfo() bool { - if o != nil && IsNil(o.NodeInfo) { + if o != nil && !IsNil(o.NodeInfo) { return true } @@ -668,7 +678,7 @@ func (o *ApplianceUpgrade) GetRollbackPhasesOk() ([]OnpremUpgradePhase, bool) { // HasRollbackPhases returns a boolean if a field has been set. func (o *ApplianceUpgrade) HasRollbackPhases() bool { - if o != nil && IsNil(o.RollbackPhases) { + if o != nil && !IsNil(o.RollbackPhases) { return true } @@ -733,7 +743,7 @@ func (o *ApplianceUpgrade) GetServicesOk() ([]string, bool) { // HasServices returns a boolean if a field has been set. func (o *ApplianceUpgrade) HasServices() bool { - if o != nil && IsNil(o.Services) { + if o != nil && !IsNil(o.Services) { return true } @@ -894,7 +904,7 @@ func (o *ApplianceUpgrade) GetUiPackagesOk() ([]string, bool) { // HasUiPackages returns a boolean if a field has been set. func (o *ApplianceUpgrade) HasUiPackages() bool { - if o != nil && IsNil(o.UiPackages) { + if o != nil && !IsNil(o.UiPackages) { return true } @@ -1085,7 +1095,13 @@ func (o ApplianceUpgrade) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Active) { toSerialize["Active"] = o.Active @@ -1185,6 +1201,13 @@ func (o *ApplianceUpgrade) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -1194,11 +1217,23 @@ func (o *ApplianceUpgrade) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type ApplianceUpgradeWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_appliance_upgrade_list.go b/model_appliance_upgrade_list.go index 526f7c623d..6b1fb5b842 100644 --- a/model_appliance_upgrade_list.go +++ b/model_appliance_upgrade_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *ApplianceUpgradeList) GetResultsOk() ([]ApplianceUpgrade, bool) { // HasResults returns a boolean if a field has been set. func (o *ApplianceUpgradeList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *ApplianceUpgradeList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *ApplianceUpgradeList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type ApplianceUpgradeListWithoutEmbeddedStruct struct { // The total number of 'appliance.Upgrade' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_appliance_upgrade_policy.go b/model_appliance_upgrade_policy.go index aeb9ecf283..1a3cba3bcf 100644 --- a/model_appliance_upgrade_policy.go +++ b/model_appliance_upgrade_policy.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -107,6 +107,11 @@ func (o *ApplianceUpgradePolicy) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "appliance.UpgradePolicy" of the ClassId field. +func (o *ApplianceUpgradePolicy) GetDefaultClassId() interface{} { + return "appliance.UpgradePolicy" +} + // GetObjectType returns the ObjectType field value func (o *ApplianceUpgradePolicy) GetObjectType() string { if o == nil { @@ -131,6 +136,11 @@ func (o *ApplianceUpgradePolicy) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "appliance.UpgradePolicy" of the ObjectType field. +func (o *ApplianceUpgradePolicy) GetDefaultObjectType() interface{} { + return "appliance.UpgradePolicy" +} + // GetAutoUpgrade returns the AutoUpgrade field value if set, zero value otherwise. func (o *ApplianceUpgradePolicy) GetAutoUpgrade() bool { if o == nil || IsNil(o.AutoUpgrade) { @@ -491,7 +501,13 @@ func (o ApplianceUpgradePolicy) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.AutoUpgrade) { toSerialize["AutoUpgrade"] = o.AutoUpgrade @@ -540,6 +556,13 @@ func (o *ApplianceUpgradePolicy) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -549,11 +572,23 @@ func (o *ApplianceUpgradePolicy) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type ApplianceUpgradePolicyWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_appliance_upgrade_policy_list.go b/model_appliance_upgrade_policy_list.go index a191672d3c..e589b38287 100644 --- a/model_appliance_upgrade_policy_list.go +++ b/model_appliance_upgrade_policy_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *ApplianceUpgradePolicyList) GetResultsOk() ([]ApplianceUpgradePolicy, b // HasResults returns a boolean if a field has been set. func (o *ApplianceUpgradePolicyList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *ApplianceUpgradePolicyList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *ApplianceUpgradePolicyList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type ApplianceUpgradePolicyListWithoutEmbeddedStruct struct { // The total number of 'appliance.UpgradePolicy' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_appliance_upgrade_policy_response.go b/model_appliance_upgrade_policy_response.go index c95b1e953d..e44b206679 100644 --- a/model_appliance_upgrade_policy_response.go +++ b/model_appliance_upgrade_policy_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_appliance_upgrade_relationship.go b/model_appliance_upgrade_relationship.go index 2ef700c5ed..6868e44d5f 100644 --- a/model_appliance_upgrade_relationship.go +++ b/model_appliance_upgrade_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_appliance_upgrade_response.go b/model_appliance_upgrade_response.go index 337d202176..bc142f8d1b 100644 --- a/model_appliance_upgrade_response.go +++ b/model_appliance_upgrade_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_appliance_upgrade_tracker.go b/model_appliance_upgrade_tracker.go index f3b7a2d12e..61c74406c8 100644 --- a/model_appliance_upgrade_tracker.go +++ b/model_appliance_upgrade_tracker.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -87,6 +87,11 @@ func (o *ApplianceUpgradeTracker) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "appliance.UpgradeTracker" of the ClassId field. +func (o *ApplianceUpgradeTracker) GetDefaultClassId() interface{} { + return "appliance.UpgradeTracker" +} + // GetObjectType returns the ObjectType field value func (o *ApplianceUpgradeTracker) GetObjectType() string { if o == nil { @@ -111,6 +116,11 @@ func (o *ApplianceUpgradeTracker) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "appliance.UpgradeTracker" of the ObjectType field. +func (o *ApplianceUpgradeTracker) GetDefaultObjectType() interface{} { + return "appliance.UpgradeTracker" +} + // GetDescription returns the Description field value if set, zero value otherwise. func (o *ApplianceUpgradeTracker) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -268,7 +278,13 @@ func (o ApplianceUpgradeTracker) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Description) { toSerialize["Description"] = o.Description @@ -299,6 +315,13 @@ func (o *ApplianceUpgradeTracker) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -308,11 +331,23 @@ func (o *ApplianceUpgradeTracker) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type ApplianceUpgradeTrackerWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_appliance_upgrade_tracker_list.go b/model_appliance_upgrade_tracker_list.go index 4dabef7608..be86901f5a 100644 --- a/model_appliance_upgrade_tracker_list.go +++ b/model_appliance_upgrade_tracker_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *ApplianceUpgradeTrackerList) GetResultsOk() ([]ApplianceUpgradeTracker, // HasResults returns a boolean if a field has been set. func (o *ApplianceUpgradeTrackerList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *ApplianceUpgradeTrackerList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *ApplianceUpgradeTrackerList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type ApplianceUpgradeTrackerListWithoutEmbeddedStruct struct { // The total number of 'appliance.UpgradeTracker' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_appliance_upgrade_tracker_response.go b/model_appliance_upgrade_tracker_response.go index a0a2400020..c96ca89355 100644 --- a/model_appliance_upgrade_tracker_response.go +++ b/model_appliance_upgrade_tracker_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_asset_address_information.go b/model_asset_address_information.go index af5c88bf47..36e25ed71a 100644 --- a/model_asset_address_information.go +++ b/model_asset_address_information.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -102,6 +102,11 @@ func (o *AssetAddressInformation) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "asset.AddressInformation" of the ClassId field. +func (o *AssetAddressInformation) GetDefaultClassId() interface{} { + return "asset.AddressInformation" +} + // GetObjectType returns the ObjectType field value func (o *AssetAddressInformation) GetObjectType() string { if o == nil { @@ -126,6 +131,11 @@ func (o *AssetAddressInformation) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "asset.AddressInformation" of the ObjectType field. +func (o *AssetAddressInformation) GetDefaultObjectType() interface{} { + return "asset.AddressInformation" +} + // GetAddress1 returns the Address1 field value if set, zero value otherwise. func (o *AssetAddressInformation) GetAddress1() string { if o == nil || IsNil(o.Address1) { @@ -496,7 +506,13 @@ func (o AssetAddressInformation) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Address1) { toSerialize["Address1"] = o.Address1 @@ -548,6 +564,13 @@ func (o *AssetAddressInformation) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -557,11 +580,23 @@ func (o *AssetAddressInformation) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type AssetAddressInformationWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_asset_alarm_summary.go b/model_asset_alarm_summary.go index 010f8d6636..11cbf6be75 100644 --- a/model_asset_alarm_summary.go +++ b/model_asset_alarm_summary.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -94,6 +94,11 @@ func (o *AssetAlarmSummary) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "asset.AlarmSummary" of the ClassId field. +func (o *AssetAlarmSummary) GetDefaultClassId() interface{} { + return "asset.AlarmSummary" +} + // GetObjectType returns the ObjectType field value func (o *AssetAlarmSummary) GetObjectType() string { if o == nil { @@ -118,6 +123,11 @@ func (o *AssetAlarmSummary) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "asset.AlarmSummary" of the ObjectType field. +func (o *AssetAlarmSummary) GetDefaultObjectType() interface{} { + return "asset.AlarmSummary" +} + // GetCritical returns the Critical field value if set, zero value otherwise. func (o *AssetAlarmSummary) GetCritical() int64 { if o == nil || IsNil(o.Critical) { @@ -360,7 +370,13 @@ func (o AssetAlarmSummary) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Critical) { toSerialize["Critical"] = o.Critical @@ -400,6 +416,13 @@ func (o *AssetAlarmSummary) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -409,11 +432,23 @@ func (o *AssetAlarmSummary) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type AssetAlarmSummaryWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_asset_api_key_credential.go b/model_asset_api_key_credential.go index 0bc34e444c..4018d9bc59 100644 --- a/model_asset_api_key_credential.go +++ b/model_asset_api_key_credential.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -84,6 +84,11 @@ func (o *AssetApiKeyCredential) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "asset.ApiKeyCredential" of the ClassId field. +func (o *AssetApiKeyCredential) GetDefaultClassId() interface{} { + return "asset.ApiKeyCredential" +} + // GetObjectType returns the ObjectType field value func (o *AssetApiKeyCredential) GetObjectType() string { if o == nil { @@ -108,6 +113,11 @@ func (o *AssetApiKeyCredential) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "asset.ApiKeyCredential" of the ObjectType field. +func (o *AssetApiKeyCredential) GetDefaultObjectType() interface{} { + return "asset.ApiKeyCredential" +} + // GetApiKey returns the ApiKey field value if set, zero value otherwise. func (o *AssetApiKeyCredential) GetApiKey() string { if o == nil || IsNil(o.ApiKey) { @@ -190,7 +200,13 @@ func (o AssetApiKeyCredential) ToMap() (map[string]interface{}, error) { if errAssetCredential != nil { return map[string]interface{}{}, errAssetCredential } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.ApiKey) { toSerialize["ApiKey"] = o.ApiKey @@ -215,6 +231,13 @@ func (o *AssetApiKeyCredential) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -224,11 +247,23 @@ func (o *AssetApiKeyCredential) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type AssetApiKeyCredentialWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_asset_claim_signature.go b/model_asset_claim_signature.go index 4874660ef3..6bac1334f0 100644 --- a/model_asset_claim_signature.go +++ b/model_asset_claim_signature.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -212,6 +212,10 @@ func (o *AssetClaimSignature) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -221,11 +225,23 @@ func (o *AssetClaimSignature) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type AssetClaimSignatureWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. The enum values provides the list of concrete types that can be instantiated from this abstract type. ClassId string `json:"ClassId"` diff --git a/model_asset_client_certificate_credential.go b/model_asset_client_certificate_credential.go index 3f771833ec..7aa573ad54 100644 --- a/model_asset_client_certificate_credential.go +++ b/model_asset_client_certificate_credential.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -86,6 +86,11 @@ func (o *AssetClientCertificateCredential) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "asset.ClientCertificateCredential" of the ClassId field. +func (o *AssetClientCertificateCredential) GetDefaultClassId() interface{} { + return "asset.ClientCertificateCredential" +} + // GetObjectType returns the ObjectType field value func (o *AssetClientCertificateCredential) GetObjectType() string { if o == nil { @@ -110,6 +115,11 @@ func (o *AssetClientCertificateCredential) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "asset.ClientCertificateCredential" of the ObjectType field. +func (o *AssetClientCertificateCredential) GetDefaultObjectType() interface{} { + return "asset.ClientCertificateCredential" +} + // GetClientCertificate returns the ClientCertificate field value if set, zero value otherwise. func (o *AssetClientCertificateCredential) GetClientCertificate() string { if o == nil || IsNil(o.ClientCertificate) { @@ -224,7 +234,13 @@ func (o AssetClientCertificateCredential) ToMap() (map[string]interface{}, error if errAssetCredential != nil { return map[string]interface{}{}, errAssetCredential } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.ClientCertificate) { toSerialize["ClientCertificate"] = o.ClientCertificate @@ -252,6 +268,13 @@ func (o *AssetClientCertificateCredential) UnmarshalJSON(data []byte) (err error "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -261,11 +284,23 @@ func (o *AssetClientCertificateCredential) UnmarshalJSON(data []byte) (err error } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type AssetClientCertificateCredentialWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_asset_cloud_connection.go b/model_asset_cloud_connection.go index 35a092ef3b..40c52beb15 100644 --- a/model_asset_cloud_connection.go +++ b/model_asset_cloud_connection.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -83,6 +83,10 @@ func (o *AssetCloudConnection) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -92,11 +96,23 @@ func (o *AssetCloudConnection) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type AssetCloudConnectionWithoutEmbeddedStruct struct { } diff --git a/model_asset_cluster_member.go b/model_asset_cluster_member.go index 65ceb316c9..51d5809a86 100644 --- a/model_asset_cluster_member.go +++ b/model_asset_cluster_member.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -90,6 +90,11 @@ func (o *AssetClusterMember) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "asset.ClusterMember" of the ClassId field. +func (o *AssetClusterMember) GetDefaultClassId() interface{} { + return "asset.ClusterMember" +} + // GetObjectType returns the ObjectType field value func (o *AssetClusterMember) GetObjectType() string { if o == nil { @@ -114,6 +119,11 @@ func (o *AssetClusterMember) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "asset.ClusterMember" of the ObjectType field. +func (o *AssetClusterMember) GetDefaultObjectType() interface{} { + return "asset.ClusterMember" +} + // GetLeadership returns the Leadership field value if set, zero value otherwise. func (o *AssetClusterMember) GetLeadership() string { if o == nil || IsNil(o.Leadership) { @@ -346,7 +356,13 @@ func (o AssetClusterMember) ToMap() (map[string]interface{}, error) { if errAssetDeviceConnection != nil { return map[string]interface{}{}, errAssetDeviceConnection } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Leadership) { toSerialize["Leadership"] = o.Leadership @@ -383,6 +399,13 @@ func (o *AssetClusterMember) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -392,11 +415,23 @@ func (o *AssetClusterMember) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type AssetClusterMemberWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_asset_cluster_member_list.go b/model_asset_cluster_member_list.go index 3ba0da6f9a..fc969a4f21 100644 --- a/model_asset_cluster_member_list.go +++ b/model_asset_cluster_member_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *AssetClusterMemberList) GetResultsOk() ([]AssetClusterMember, bool) { // HasResults returns a boolean if a field has been set. func (o *AssetClusterMemberList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *AssetClusterMemberList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *AssetClusterMemberList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type AssetClusterMemberListWithoutEmbeddedStruct struct { // The total number of 'asset.ClusterMember' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_asset_cluster_member_relationship.go b/model_asset_cluster_member_relationship.go index f1b2844ce5..0bb303b873 100644 --- a/model_asset_cluster_member_relationship.go +++ b/model_asset_cluster_member_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_asset_cluster_member_response.go b/model_asset_cluster_member_response.go index 07a89825d3..03dc2751c2 100644 --- a/model_asset_cluster_member_response.go +++ b/model_asset_cluster_member_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_asset_connection.go b/model_asset_connection.go index 44132c90eb..8d5adf1fef 100644 --- a/model_asset_connection.go +++ b/model_asset_connection.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -184,6 +184,10 @@ func (o *AssetConnection) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -193,11 +197,23 @@ func (o *AssetConnection) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type AssetConnectionWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. The enum values provides the list of concrete types that can be instantiated from this abstract type. ClassId string `json:"ClassId"` diff --git a/model_asset_contract_information.go b/model_asset_contract_information.go index 612dfe38b9..824bea6891 100644 --- a/model_asset_contract_information.go +++ b/model_asset_contract_information.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -86,6 +86,11 @@ func (o *AssetContractInformation) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "asset.ContractInformation" of the ClassId field. +func (o *AssetContractInformation) GetDefaultClassId() interface{} { + return "asset.ContractInformation" +} + // GetObjectType returns the ObjectType field value func (o *AssetContractInformation) GetObjectType() string { if o == nil { @@ -110,6 +115,11 @@ func (o *AssetContractInformation) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "asset.ContractInformation" of the ObjectType field. +func (o *AssetContractInformation) GetDefaultObjectType() interface{} { + return "asset.ContractInformation" +} + // GetBillTo returns the BillTo field value if set, zero value otherwise (both if not set or set to explicit null). func (o *AssetContractInformation) GetBillTo() AssetAddressInformation { if o == nil || IsNil(o.BillTo.Get()) { @@ -278,7 +288,13 @@ func (o AssetContractInformation) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.BillTo.IsSet() { toSerialize["BillTo"] = o.BillTo.Get() @@ -309,6 +325,13 @@ func (o *AssetContractInformation) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -318,11 +341,23 @@ func (o *AssetContractInformation) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type AssetContractInformationWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_asset_credential.go b/model_asset_credential.go index 122962add4..9876cf6279 100644 --- a/model_asset_credential.go +++ b/model_asset_credential.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -83,6 +83,10 @@ func (o *AssetCredential) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -92,11 +96,23 @@ func (o *AssetCredential) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type AssetCredentialWithoutEmbeddedStruct struct { } diff --git a/model_asset_customer_information.go b/model_asset_customer_information.go index c8be9e20c8..19376053c9 100644 --- a/model_asset_customer_information.go +++ b/model_asset_customer_information.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -85,6 +85,11 @@ func (o *AssetCustomerInformation) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "asset.CustomerInformation" of the ClassId field. +func (o *AssetCustomerInformation) GetDefaultClassId() interface{} { + return "asset.CustomerInformation" +} + // GetObjectType returns the ObjectType field value func (o *AssetCustomerInformation) GetObjectType() string { if o == nil { @@ -109,6 +114,11 @@ func (o *AssetCustomerInformation) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "asset.CustomerInformation" of the ObjectType field. +func (o *AssetCustomerInformation) GetDefaultObjectType() interface{} { + return "asset.CustomerInformation" +} + // GetAddress returns the Address field value if set, zero value otherwise (both if not set or set to explicit null). func (o *AssetCustomerInformation) GetAddress() AssetAddressInformation { if o == nil || IsNil(o.Address.Get()) { @@ -234,7 +244,13 @@ func (o AssetCustomerInformation) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.Address.IsSet() { toSerialize["Address"] = o.Address.Get() @@ -262,6 +278,13 @@ func (o *AssetCustomerInformation) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -271,11 +294,23 @@ func (o *AssetCustomerInformation) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type AssetCustomerInformationWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_asset_deployment.go b/model_asset_deployment.go index 94d16be889..64c59d4e4a 100644 --- a/model_asset_deployment.go +++ b/model_asset_deployment.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -100,6 +100,11 @@ func (o *AssetDeployment) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "asset.Deployment" of the ClassId field. +func (o *AssetDeployment) GetDefaultClassId() interface{} { + return "asset.Deployment" +} + // GetObjectType returns the ObjectType field value func (o *AssetDeployment) GetObjectType() string { if o == nil { @@ -124,6 +129,11 @@ func (o *AssetDeployment) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "asset.Deployment" of the ObjectType field. +func (o *AssetDeployment) GetDefaultObjectType() interface{} { + return "asset.Deployment" +} + // GetAlarmInfo returns the AlarmInfo field value if set, zero value otherwise (both if not set or set to explicit null). func (o *AssetDeployment) GetAlarmInfo() AssetDeploymentAlarmInfo { if o == nil || IsNil(o.AlarmInfo.Get()) { @@ -423,7 +433,7 @@ func (o *AssetDeployment) GetUnitOfMeasureOk() ([]AssetMeteringType, bool) { // HasUnitOfMeasure returns a boolean if a field has been set. func (o *AssetDeployment) HasUnitOfMeasure() bool { - if o != nil && IsNil(o.UnitOfMeasure) { + if o != nil && !IsNil(o.UnitOfMeasure) { return true } @@ -456,7 +466,7 @@ func (o *AssetDeployment) GetWorkloadsOk() ([]string, bool) { // HasWorkloads returns a boolean if a field has been set. func (o *AssetDeployment) HasWorkloads() bool { - if o != nil && IsNil(o.Workloads) { + if o != nil && !IsNil(o.Workloads) { return true } @@ -489,7 +499,7 @@ func (o *AssetDeployment) GetDevicesOk() ([]AssetDeploymentDeviceRelationship, b // HasDevices returns a boolean if a field has been set. func (o *AssetDeployment) HasDevices() bool { - if o != nil && IsNil(o.Devices) { + if o != nil && !IsNil(o.Devices) { return true } @@ -562,7 +572,13 @@ func (o AssetDeployment) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.AlarmInfo.IsSet() { toSerialize["AlarmInfo"] = o.AlarmInfo.Get() @@ -617,6 +633,13 @@ func (o *AssetDeployment) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -626,11 +649,23 @@ func (o *AssetDeployment) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type AssetDeploymentWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_asset_deployment_alarm_info.go b/model_asset_deployment_alarm_info.go index 95334ee3c7..626968ea5e 100644 --- a/model_asset_deployment_alarm_info.go +++ b/model_asset_deployment_alarm_info.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -81,6 +81,11 @@ func (o *AssetDeploymentAlarmInfo) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "asset.DeploymentAlarmInfo" of the ClassId field. +func (o *AssetDeploymentAlarmInfo) GetDefaultClassId() interface{} { + return "asset.DeploymentAlarmInfo" +} + // GetObjectType returns the ObjectType field value func (o *AssetDeploymentAlarmInfo) GetObjectType() string { if o == nil { @@ -105,6 +110,11 @@ func (o *AssetDeploymentAlarmInfo) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "asset.DeploymentAlarmInfo" of the ObjectType field. +func (o *AssetDeploymentAlarmInfo) GetDefaultObjectType() interface{} { + return "asset.DeploymentAlarmInfo" +} + // GetEnabledAlarms returns the EnabledAlarms field value if set, zero value otherwise (both if not set or set to explicit null). func (o *AssetDeploymentAlarmInfo) GetEnabledAlarms() []string { if o == nil { @@ -126,7 +136,7 @@ func (o *AssetDeploymentAlarmInfo) GetEnabledAlarmsOk() ([]string, bool) { // HasEnabledAlarms returns a boolean if a field has been set. func (o *AssetDeploymentAlarmInfo) HasEnabledAlarms() bool { - if o != nil && IsNil(o.EnabledAlarms) { + if o != nil && !IsNil(o.EnabledAlarms) { return true } @@ -156,7 +166,13 @@ func (o AssetDeploymentAlarmInfo) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.EnabledAlarms != nil { toSerialize["EnabledAlarms"] = o.EnabledAlarms @@ -178,6 +194,13 @@ func (o *AssetDeploymentAlarmInfo) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -187,11 +210,23 @@ func (o *AssetDeploymentAlarmInfo) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type AssetDeploymentAlarmInfoWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_asset_deployment_device.go b/model_asset_deployment_device.go index 8a98b34969..e417296678 100644 --- a/model_asset_deployment_device.go +++ b/model_asset_deployment_device.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -103,6 +103,11 @@ func (o *AssetDeploymentDevice) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "asset.DeploymentDevice" of the ClassId field. +func (o *AssetDeploymentDevice) GetDefaultClassId() interface{} { + return "asset.DeploymentDevice" +} + // GetObjectType returns the ObjectType field value func (o *AssetDeploymentDevice) GetObjectType() string { if o == nil { @@ -127,6 +132,11 @@ func (o *AssetDeploymentDevice) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "asset.DeploymentDevice" of the ObjectType field. +func (o *AssetDeploymentDevice) GetDefaultObjectType() interface{} { + return "asset.DeploymentDevice" +} + // GetAlarmInfo returns the AlarmInfo field value if set, zero value otherwise (both if not set or set to explicit null). func (o *AssetDeploymentDevice) GetAlarmInfo() AssetDeploymentDeviceAlarmInfo { if o == nil || IsNil(o.AlarmInfo.Get()) { @@ -437,7 +447,7 @@ func (o *AssetDeploymentDevice) GetUnitOfMeasureOk() ([]AssetMeteringType, bool) // HasUnitOfMeasure returns a boolean if a field has been set. func (o *AssetDeploymentDevice) HasUnitOfMeasure() bool { - if o != nil && IsNil(o.UnitOfMeasure) { + if o != nil && !IsNil(o.UnitOfMeasure) { return true } @@ -746,7 +756,13 @@ func (o AssetDeploymentDevice) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.AlarmInfo.IsSet() { toSerialize["AlarmInfo"] = o.AlarmInfo.Get() @@ -813,6 +829,13 @@ func (o *AssetDeploymentDevice) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -822,11 +845,23 @@ func (o *AssetDeploymentDevice) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type AssetDeploymentDeviceWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_asset_deployment_device_alarm_info.go b/model_asset_deployment_device_alarm_info.go index 4aae70e7a1..b063bf0014 100644 --- a/model_asset_deployment_device_alarm_info.go +++ b/model_asset_deployment_device_alarm_info.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -81,6 +81,11 @@ func (o *AssetDeploymentDeviceAlarmInfo) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "asset.DeploymentDeviceAlarmInfo" of the ClassId field. +func (o *AssetDeploymentDeviceAlarmInfo) GetDefaultClassId() interface{} { + return "asset.DeploymentDeviceAlarmInfo" +} + // GetObjectType returns the ObjectType field value func (o *AssetDeploymentDeviceAlarmInfo) GetObjectType() string { if o == nil { @@ -105,6 +110,11 @@ func (o *AssetDeploymentDeviceAlarmInfo) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "asset.DeploymentDeviceAlarmInfo" of the ObjectType field. +func (o *AssetDeploymentDeviceAlarmInfo) GetDefaultObjectType() interface{} { + return "asset.DeploymentDeviceAlarmInfo" +} + // GetEnabledAlarms returns the EnabledAlarms field value if set, zero value otherwise (both if not set or set to explicit null). func (o *AssetDeploymentDeviceAlarmInfo) GetEnabledAlarms() []string { if o == nil { @@ -126,7 +136,7 @@ func (o *AssetDeploymentDeviceAlarmInfo) GetEnabledAlarmsOk() ([]string, bool) { // HasEnabledAlarms returns a boolean if a field has been set. func (o *AssetDeploymentDeviceAlarmInfo) HasEnabledAlarms() bool { - if o != nil && IsNil(o.EnabledAlarms) { + if o != nil && !IsNil(o.EnabledAlarms) { return true } @@ -156,7 +166,13 @@ func (o AssetDeploymentDeviceAlarmInfo) ToMap() (map[string]interface{}, error) if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.EnabledAlarms != nil { toSerialize["EnabledAlarms"] = o.EnabledAlarms @@ -178,6 +194,13 @@ func (o *AssetDeploymentDeviceAlarmInfo) UnmarshalJSON(data []byte) (err error) "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -187,11 +210,23 @@ func (o *AssetDeploymentDeviceAlarmInfo) UnmarshalJSON(data []byte) (err error) } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type AssetDeploymentDeviceAlarmInfoWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_asset_deployment_device_information.go b/model_asset_deployment_device_information.go index 1f1db359c0..f1c0f19174 100644 --- a/model_asset_deployment_device_information.go +++ b/model_asset_deployment_device_information.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -101,6 +101,11 @@ func (o *AssetDeploymentDeviceInformation) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "asset.DeploymentDeviceInformation" of the ClassId field. +func (o *AssetDeploymentDeviceInformation) GetDefaultClassId() interface{} { + return "asset.DeploymentDeviceInformation" +} + // GetObjectType returns the ObjectType field value func (o *AssetDeploymentDeviceInformation) GetObjectType() string { if o == nil { @@ -125,6 +130,11 @@ func (o *AssetDeploymentDeviceInformation) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "asset.DeploymentDeviceInformation" of the ObjectType field. +func (o *AssetDeploymentDeviceInformation) GetDefaultObjectType() interface{} { + return "asset.DeploymentDeviceInformation" +} + // GetApplicationName returns the ApplicationName field value if set, zero value otherwise. func (o *AssetDeploymentDeviceInformation) GetApplicationName() string { if o == nil || IsNil(o.ApplicationName) { @@ -210,7 +220,7 @@ func (o *AssetDeploymentDeviceInformation) GetDeviceTransactionsOk() ([]AssetDev // HasDeviceTransactions returns a boolean if a field has been set. func (o *AssetDeploymentDeviceInformation) HasDeviceTransactions() bool { - if o != nil && IsNil(o.DeviceTransactions) { + if o != nil && !IsNil(o.DeviceTransactions) { return true } @@ -496,7 +506,13 @@ func (o AssetDeploymentDeviceInformation) ToMap() (map[string]interface{}, error if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.ApplicationName) { toSerialize["ApplicationName"] = o.ApplicationName @@ -548,6 +564,13 @@ func (o *AssetDeploymentDeviceInformation) UnmarshalJSON(data []byte) (err error "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -557,11 +580,23 @@ func (o *AssetDeploymentDeviceInformation) UnmarshalJSON(data []byte) (err error } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type AssetDeploymentDeviceInformationWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_asset_deployment_device_list.go b/model_asset_deployment_device_list.go index 0afcbd7d02..e04f062513 100644 --- a/model_asset_deployment_device_list.go +++ b/model_asset_deployment_device_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *AssetDeploymentDeviceList) GetResultsOk() ([]AssetDeploymentDevice, boo // HasResults returns a boolean if a field has been set. func (o *AssetDeploymentDeviceList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *AssetDeploymentDeviceList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *AssetDeploymentDeviceList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type AssetDeploymentDeviceListWithoutEmbeddedStruct struct { // The total number of 'asset.DeploymentDevice' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_asset_deployment_device_relationship.go b/model_asset_deployment_device_relationship.go index b1e5887b07..46dcfe8f11 100644 --- a/model_asset_deployment_device_relationship.go +++ b/model_asset_deployment_device_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_asset_deployment_device_response.go b/model_asset_deployment_device_response.go index 2400e417fb..c81fd9f8a0 100644 --- a/model_asset_deployment_device_response.go +++ b/model_asset_deployment_device_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_asset_deployment_list.go b/model_asset_deployment_list.go index d6fa384427..2369b58f25 100644 --- a/model_asset_deployment_list.go +++ b/model_asset_deployment_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *AssetDeploymentList) GetResultsOk() ([]AssetDeployment, bool) { // HasResults returns a boolean if a field has been set. func (o *AssetDeploymentList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *AssetDeploymentList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *AssetDeploymentList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type AssetDeploymentListWithoutEmbeddedStruct struct { // The total number of 'asset.Deployment' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_asset_deployment_relationship.go b/model_asset_deployment_relationship.go index 4fa85d5705..b6031552d6 100644 --- a/model_asset_deployment_relationship.go +++ b/model_asset_deployment_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_asset_deployment_response.go b/model_asset_deployment_response.go index aaf417c4d6..274d353a74 100644 --- a/model_asset_deployment_response.go +++ b/model_asset_deployment_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_asset_device_claim.go b/model_asset_device_claim.go index fdf5ec5554..4f19f1d4c8 100644 --- a/model_asset_device_claim.go +++ b/model_asset_device_claim.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -89,6 +89,11 @@ func (o *AssetDeviceClaim) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "asset.DeviceClaim" of the ClassId field. +func (o *AssetDeviceClaim) GetDefaultClassId() interface{} { + return "asset.DeviceClaim" +} + // GetObjectType returns the ObjectType field value func (o *AssetDeviceClaim) GetObjectType() string { if o == nil { @@ -113,6 +118,11 @@ func (o *AssetDeviceClaim) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "asset.DeviceClaim" of the ObjectType field. +func (o *AssetDeviceClaim) GetDefaultObjectType() interface{} { + return "asset.DeviceClaim" +} + // GetSecurityToken returns the SecurityToken field value if set, zero value otherwise. func (o *AssetDeviceClaim) GetSecurityToken() string { if o == nil || IsNil(o.SecurityToken) { @@ -241,7 +251,7 @@ func (o *AssetDeviceClaim) GetCustomPermissionResourcesOk() ([]MoBaseMoRelations // HasCustomPermissionResources returns a boolean if a field has been set. func (o *AssetDeviceClaim) HasCustomPermissionResources() bool { - if o != nil && IsNil(o.CustomPermissionResources) { + if o != nil && !IsNil(o.CustomPermissionResources) { return true } @@ -357,7 +367,13 @@ func (o AssetDeviceClaim) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.SecurityToken) { toSerialize["SecurityToken"] = o.SecurityToken @@ -394,6 +410,13 @@ func (o *AssetDeviceClaim) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -403,11 +426,23 @@ func (o *AssetDeviceClaim) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type AssetDeviceClaimWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_asset_device_claim_relationship.go b/model_asset_device_claim_relationship.go index 2bcbca001a..46e56fecd3 100644 --- a/model_asset_device_claim_relationship.go +++ b/model_asset_device_claim_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_asset_device_configuration.go b/model_asset_device_configuration.go index 2b14721100..c021bb4f9e 100644 --- a/model_asset_device_configuration.go +++ b/model_asset_device_configuration.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -87,6 +87,11 @@ func (o *AssetDeviceConfiguration) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "asset.DeviceConfiguration" of the ClassId field. +func (o *AssetDeviceConfiguration) GetDefaultClassId() interface{} { + return "asset.DeviceConfiguration" +} + // GetObjectType returns the ObjectType field value func (o *AssetDeviceConfiguration) GetObjectType() string { if o == nil { @@ -111,6 +116,11 @@ func (o *AssetDeviceConfiguration) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "asset.DeviceConfiguration" of the ObjectType field. +func (o *AssetDeviceConfiguration) GetDefaultObjectType() interface{} { + return "asset.DeviceConfiguration" +} + // GetLocalConfigurationLocked returns the LocalConfigurationLocked field value if set, zero value otherwise. func (o *AssetDeviceConfiguration) GetLocalConfigurationLocked() bool { if o == nil || IsNil(o.LocalConfigurationLocked) { @@ -268,7 +278,13 @@ func (o AssetDeviceConfiguration) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.LocalConfigurationLocked) { toSerialize["LocalConfigurationLocked"] = o.LocalConfigurationLocked @@ -299,6 +315,13 @@ func (o *AssetDeviceConfiguration) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -308,11 +331,23 @@ func (o *AssetDeviceConfiguration) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type AssetDeviceConfigurationWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_asset_device_configuration_list.go b/model_asset_device_configuration_list.go index 960b724215..e24b74afea 100644 --- a/model_asset_device_configuration_list.go +++ b/model_asset_device_configuration_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *AssetDeviceConfigurationList) GetResultsOk() ([]AssetDeviceConfiguratio // HasResults returns a boolean if a field has been set. func (o *AssetDeviceConfigurationList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *AssetDeviceConfigurationList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *AssetDeviceConfigurationList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type AssetDeviceConfigurationListWithoutEmbeddedStruct struct { // The total number of 'asset.DeviceConfiguration' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_asset_device_configuration_relationship.go b/model_asset_device_configuration_relationship.go index b8240e718c..f1c8fc3c90 100644 --- a/model_asset_device_configuration_relationship.go +++ b/model_asset_device_configuration_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_asset_device_configuration_response.go b/model_asset_device_configuration_response.go index 189d17bd62..0df8dd28e0 100644 --- a/model_asset_device_configuration_response.go +++ b/model_asset_device_configuration_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_asset_device_connection.go b/model_asset_device_connection.go index 22cc6d00b0..e827618df0 100644 --- a/model_asset_device_connection.go +++ b/model_asset_device_connection.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -471,6 +471,10 @@ func (o *AssetDeviceConnection) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -480,11 +484,23 @@ func (o *AssetDeviceConnection) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type AssetDeviceConnectionWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. The enum values provides the list of concrete types that can be instantiated from this abstract type. ClassId string `json:"ClassId"` diff --git a/model_asset_device_connection_relationship.go b/model_asset_device_connection_relationship.go index e54f0684bb..d02965c01f 100644 --- a/model_asset_device_connection_relationship.go +++ b/model_asset_device_connection_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_asset_device_connector_manager.go b/model_asset_device_connector_manager.go index f4708622b6..b35cd2641e 100644 --- a/model_asset_device_connector_manager.go +++ b/model_asset_device_connector_manager.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -81,6 +81,11 @@ func (o *AssetDeviceConnectorManager) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "asset.DeviceConnectorManager" of the ClassId field. +func (o *AssetDeviceConnectorManager) GetDefaultClassId() interface{} { + return "asset.DeviceConnectorManager" +} + // GetObjectType returns the ObjectType field value func (o *AssetDeviceConnectorManager) GetObjectType() string { if o == nil { @@ -105,6 +110,11 @@ func (o *AssetDeviceConnectorManager) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "asset.DeviceConnectorManager" of the ObjectType field. +func (o *AssetDeviceConnectorManager) GetDefaultObjectType() interface{} { + return "asset.DeviceConnectorManager" +} + // GetRegisteredDevice returns the RegisteredDevice field value if set, zero value otherwise (both if not set or set to explicit null). func (o *AssetDeviceConnectorManager) GetRegisteredDevice() AssetDeviceRegistrationRelationship { if o == nil || IsNil(o.RegisteredDevice.Get()) { @@ -166,7 +176,13 @@ func (o AssetDeviceConnectorManager) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.RegisteredDevice.IsSet() { toSerialize["RegisteredDevice"] = o.RegisteredDevice.Get() @@ -188,6 +204,13 @@ func (o *AssetDeviceConnectorManager) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -197,11 +220,23 @@ func (o *AssetDeviceConnectorManager) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type AssetDeviceConnectorManagerWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_asset_device_connector_manager_list.go b/model_asset_device_connector_manager_list.go index b3a6b1c28c..8d256bb8a3 100644 --- a/model_asset_device_connector_manager_list.go +++ b/model_asset_device_connector_manager_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *AssetDeviceConnectorManagerList) GetResultsOk() ([]AssetDeviceConnector // HasResults returns a boolean if a field has been set. func (o *AssetDeviceConnectorManagerList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *AssetDeviceConnectorManagerList) UnmarshalJSON(data []byte) (err error) "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *AssetDeviceConnectorManagerList) UnmarshalJSON(data []byte) (err error) } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type AssetDeviceConnectorManagerListWithoutEmbeddedStruct struct { // The total number of 'asset.DeviceConnectorManager' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_asset_device_connector_manager_response.go b/model_asset_device_connector_manager_response.go index 19d200e43c..2acd18520a 100644 --- a/model_asset_device_connector_manager_response.go +++ b/model_asset_device_connector_manager_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_asset_device_contract_information.go b/model_asset_device_contract_information.go index ddfec0d962..945c807cdc 100644 --- a/model_asset_device_contract_information.go +++ b/model_asset_device_contract_information.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -138,6 +138,11 @@ func (o *AssetDeviceContractInformation) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "asset.DeviceContractInformation" of the ClassId field. +func (o *AssetDeviceContractInformation) GetDefaultClassId() interface{} { + return "asset.DeviceContractInformation" +} + // GetObjectType returns the ObjectType field value func (o *AssetDeviceContractInformation) GetObjectType() string { if o == nil { @@ -162,6 +167,11 @@ func (o *AssetDeviceContractInformation) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "asset.DeviceContractInformation" of the ObjectType field. +func (o *AssetDeviceContractInformation) GetDefaultObjectType() interface{} { + return "asset.DeviceContractInformation" +} + // GetContract returns the Contract field value if set, zero value otherwise (both if not set or set to explicit null). func (o *AssetDeviceContractInformation) GetContract() AssetContractInformation { if o == nil || IsNil(o.Contract.Get()) { @@ -1217,7 +1227,13 @@ func (o AssetDeviceContractInformation) ToMap() (map[string]interface{}, error) if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.Contract.IsSet() { toSerialize["Contract"] = o.Contract.Get() @@ -1326,6 +1342,13 @@ func (o *AssetDeviceContractInformation) UnmarshalJSON(data []byte) (err error) "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -1335,11 +1358,23 @@ func (o *AssetDeviceContractInformation) UnmarshalJSON(data []byte) (err error) } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type AssetDeviceContractInformationWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_asset_device_contract_information_list.go b/model_asset_device_contract_information_list.go index 20a04b691e..a7e50039df 100644 --- a/model_asset_device_contract_information_list.go +++ b/model_asset_device_contract_information_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *AssetDeviceContractInformationList) GetResultsOk() ([]AssetDeviceContra // HasResults returns a boolean if a field has been set. func (o *AssetDeviceContractInformationList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *AssetDeviceContractInformationList) UnmarshalJSON(data []byte) (err err "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *AssetDeviceContractInformationList) UnmarshalJSON(data []byte) (err err } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type AssetDeviceContractInformationListWithoutEmbeddedStruct struct { // The total number of 'asset.DeviceContractInformation' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_asset_device_contract_information_relationship.go b/model_asset_device_contract_information_relationship.go index 8f0ed23931..f6f71e623c 100644 --- a/model_asset_device_contract_information_relationship.go +++ b/model_asset_device_contract_information_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_asset_device_contract_information_response.go b/model_asset_device_contract_information_response.go index 7fbbe1cc36..26dafa44c5 100644 --- a/model_asset_device_contract_information_response.go +++ b/model_asset_device_contract_information_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_asset_device_contract_notification.go b/model_asset_device_contract_notification.go index 6203c17a3c..224ea6a4fb 100644 --- a/model_asset_device_contract_notification.go +++ b/model_asset_device_contract_notification.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -145,6 +145,11 @@ func (o *AssetDeviceContractNotification) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "asset.DeviceContractNotification" of the ClassId field. +func (o *AssetDeviceContractNotification) GetDefaultClassId() interface{} { + return "asset.DeviceContractNotification" +} + // GetObjectType returns the ObjectType field value func (o *AssetDeviceContractNotification) GetObjectType() string { if o == nil { @@ -169,6 +174,11 @@ func (o *AssetDeviceContractNotification) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "asset.DeviceContractNotification" of the ObjectType field. +func (o *AssetDeviceContractNotification) GetDefaultObjectType() interface{} { + return "asset.DeviceContractNotification" +} + // GetContract returns the Contract field value if set, zero value otherwise (both if not set or set to explicit null). func (o *AssetDeviceContractNotification) GetContract() AssetContractInformation { if o == nil || IsNil(o.Contract.Get()) { @@ -1117,7 +1127,13 @@ func (o AssetDeviceContractNotification) ToMap() (map[string]interface{}, error) if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.Contract.IsSet() { toSerialize["Contract"] = o.Contract.Get() @@ -1217,6 +1233,13 @@ func (o *AssetDeviceContractNotification) UnmarshalJSON(data []byte) (err error) "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -1226,11 +1249,23 @@ func (o *AssetDeviceContractNotification) UnmarshalJSON(data []byte) (err error) } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type AssetDeviceContractNotificationWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_asset_device_endpoint_local_credential.go b/model_asset_device_endpoint_local_credential.go index 4d89c971a7..74a5623b4e 100644 --- a/model_asset_device_endpoint_local_credential.go +++ b/model_asset_device_endpoint_local_credential.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -83,6 +83,10 @@ func (o *AssetDeviceEndpointLocalCredential) UnmarshalJSON(data []byte) (err err "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -92,11 +96,23 @@ func (o *AssetDeviceEndpointLocalCredential) UnmarshalJSON(data []byte) (err err } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type AssetDeviceEndpointLocalCredentialWithoutEmbeddedStruct struct { } diff --git a/model_asset_device_information.go b/model_asset_device_information.go index f13ba8992e..42a748ca3d 100644 --- a/model_asset_device_information.go +++ b/model_asset_device_information.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -108,6 +108,11 @@ func (o *AssetDeviceInformation) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "asset.DeviceInformation" of the ClassId field. +func (o *AssetDeviceInformation) GetDefaultClassId() interface{} { + return "asset.DeviceInformation" +} + // GetObjectType returns the ObjectType field value func (o *AssetDeviceInformation) GetObjectType() string { if o == nil { @@ -132,6 +137,11 @@ func (o *AssetDeviceInformation) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "asset.DeviceInformation" of the ObjectType field. +func (o *AssetDeviceInformation) GetDefaultObjectType() interface{} { + return "asset.DeviceInformation" +} + // GetApplicationName returns the ApplicationName field value if set, zero value otherwise. func (o *AssetDeviceInformation) GetApplicationName() string { if o == nil || IsNil(o.ApplicationName) { @@ -185,7 +195,7 @@ func (o *AssetDeviceInformation) GetDeviceTransactionsOk() ([]AssetDeviceTransac // HasDeviceTransactions returns a boolean if a field has been set. func (o *AssetDeviceInformation) HasDeviceTransactions() bool { - if o != nil && IsNil(o.DeviceTransactions) { + if o != nil && !IsNil(o.DeviceTransactions) { return true } @@ -642,7 +652,13 @@ func (o AssetDeviceInformation) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.ApplicationName) { toSerialize["ApplicationName"] = o.ApplicationName @@ -706,6 +722,13 @@ func (o *AssetDeviceInformation) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -715,11 +738,23 @@ func (o *AssetDeviceInformation) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type AssetDeviceInformationWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_asset_device_registration.go b/model_asset_device_registration.go index 3bc853a56d..7da2560f2d 100644 --- a/model_asset_device_registration.go +++ b/model_asset_device_registration.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -123,6 +123,11 @@ func (o *AssetDeviceRegistration) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "asset.DeviceRegistration" of the ClassId field. +func (o *AssetDeviceRegistration) GetDefaultClassId() interface{} { + return "asset.DeviceRegistration" +} + // GetObjectType returns the ObjectType field value func (o *AssetDeviceRegistration) GetObjectType() string { if o == nil { @@ -147,6 +152,11 @@ func (o *AssetDeviceRegistration) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "asset.DeviceRegistration" of the ObjectType field. +func (o *AssetDeviceRegistration) GetDefaultObjectType() interface{} { + return "asset.DeviceRegistration" +} + // GetAccessKeyId returns the AccessKeyId field value if set, zero value otherwise. func (o *AssetDeviceRegistration) GetAccessKeyId() string { if o == nil || IsNil(o.AccessKeyId) { @@ -264,7 +274,7 @@ func (o *AssetDeviceRegistration) GetDeviceHostnameOk() ([]string, bool) { // HasDeviceHostname returns a boolean if a field has been set. func (o *AssetDeviceRegistration) HasDeviceHostname() bool { - if o != nil && IsNil(o.DeviceHostname) { + if o != nil && !IsNil(o.DeviceHostname) { return true } @@ -297,7 +307,7 @@ func (o *AssetDeviceRegistration) GetDeviceIpAddressOk() ([]string, bool) { // HasDeviceIpAddress returns a boolean if a field has been set. func (o *AssetDeviceRegistration) HasDeviceIpAddress() bool { - if o != nil && IsNil(o.DeviceIpAddress) { + if o != nil && !IsNil(o.DeviceIpAddress) { return true } @@ -405,7 +415,7 @@ func (o *AssetDeviceRegistration) GetPidOk() ([]string, bool) { // HasPid returns a boolean if a field has been set. func (o *AssetDeviceRegistration) HasPid() bool { - if o != nil && IsNil(o.Pid) { + if o != nil && !IsNil(o.Pid) { return true } @@ -566,7 +576,7 @@ func (o *AssetDeviceRegistration) GetSerialOk() ([]string, bool) { // HasSerial returns a boolean if a field has been set. func (o *AssetDeviceRegistration) HasSerial() bool { - if o != nil && IsNil(o.Serial) { + if o != nil && !IsNil(o.Serial) { return true } @@ -717,7 +727,7 @@ func (o *AssetDeviceRegistration) GetClusterMembersOk() ([]AssetClusterMemberRel // HasClusterMembers returns a boolean if a field has been set. func (o *AssetDeviceRegistration) HasClusterMembers() bool { - if o != nil && IsNil(o.ClusterMembers) { + if o != nil && !IsNil(o.ClusterMembers) { return true } @@ -750,7 +760,7 @@ func (o *AssetDeviceRegistration) GetCustomPermissionResourcesOk() ([]MoBaseMoRe // HasCustomPermissionResources returns a boolean if a field has been set. func (o *AssetDeviceRegistration) HasCustomPermissionResources() bool { - if o != nil && IsNil(o.CustomPermissionResources) { + if o != nil && !IsNil(o.CustomPermissionResources) { return true } @@ -995,7 +1005,13 @@ func (o AssetDeviceRegistration) ToMap() (map[string]interface{}, error) { if errAssetDeviceConnection != nil { return map[string]interface{}{}, errAssetDeviceConnection } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.AccessKeyId) { toSerialize["AccessKeyId"] = o.AccessKeyId @@ -1083,6 +1099,13 @@ func (o *AssetDeviceRegistration) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -1092,11 +1115,23 @@ func (o *AssetDeviceRegistration) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type AssetDeviceRegistrationWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_asset_device_registration_list.go b/model_asset_device_registration_list.go index 7cc5bc6e61..891cbda41d 100644 --- a/model_asset_device_registration_list.go +++ b/model_asset_device_registration_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *AssetDeviceRegistrationList) GetResultsOk() ([]AssetDeviceRegistration, // HasResults returns a boolean if a field has been set. func (o *AssetDeviceRegistrationList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *AssetDeviceRegistrationList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *AssetDeviceRegistrationList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type AssetDeviceRegistrationListWithoutEmbeddedStruct struct { // The total number of 'asset.DeviceRegistration' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_asset_device_registration_relationship.go b/model_asset_device_registration_relationship.go index e74fe112b9..b8c606155c 100644 --- a/model_asset_device_registration_relationship.go +++ b/model_asset_device_registration_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_asset_device_registration_response.go b/model_asset_device_registration_response.go index bb9198203f..99b780ce40 100644 --- a/model_asset_device_registration_response.go +++ b/model_asset_device_registration_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_asset_device_statistics.go b/model_asset_device_statistics.go index d456c7507e..bbaf31fe30 100644 --- a/model_asset_device_statistics.go +++ b/model_asset_device_statistics.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -95,6 +95,11 @@ func (o *AssetDeviceStatistics) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "asset.DeviceStatistics" of the ClassId field. +func (o *AssetDeviceStatistics) GetDefaultClassId() interface{} { + return "asset.DeviceStatistics" +} + // GetObjectType returns the ObjectType field value func (o *AssetDeviceStatistics) GetObjectType() string { if o == nil { @@ -119,6 +124,11 @@ func (o *AssetDeviceStatistics) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "asset.DeviceStatistics" of the ObjectType field. +func (o *AssetDeviceStatistics) GetDefaultObjectType() interface{} { + return "asset.DeviceStatistics" +} + // GetClusterDeploymentType returns the ClusterDeploymentType field value if set, zero value otherwise. func (o *AssetDeviceStatistics) GetClusterDeploymentType() string { if o == nil || IsNil(o.ClusterDeploymentType) { @@ -404,7 +414,13 @@ func (o AssetDeviceStatistics) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.ClusterDeploymentType) { toSerialize["ClusterDeploymentType"] = o.ClusterDeploymentType @@ -447,6 +463,13 @@ func (o *AssetDeviceStatistics) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -456,11 +479,23 @@ func (o *AssetDeviceStatistics) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type AssetDeviceStatisticsWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_asset_device_transaction.go b/model_asset_device_transaction.go index 4b8323feb9..b0dca02e24 100644 --- a/model_asset_device_transaction.go +++ b/model_asset_device_transaction.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -94,6 +94,11 @@ func (o *AssetDeviceTransaction) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "asset.DeviceTransaction" of the ClassId field. +func (o *AssetDeviceTransaction) GetDefaultClassId() interface{} { + return "asset.DeviceTransaction" +} + // GetObjectType returns the ObjectType field value func (o *AssetDeviceTransaction) GetObjectType() string { if o == nil { @@ -118,6 +123,11 @@ func (o *AssetDeviceTransaction) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "asset.DeviceTransaction" of the ObjectType field. +func (o *AssetDeviceTransaction) GetDefaultObjectType() interface{} { + return "asset.DeviceTransaction" +} + // GetAction returns the Action field value if set, zero value otherwise. func (o *AssetDeviceTransaction) GetAction() string { if o == nil || IsNil(o.Action) { @@ -360,7 +370,13 @@ func (o AssetDeviceTransaction) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Action) { toSerialize["Action"] = o.Action @@ -400,6 +416,13 @@ func (o *AssetDeviceTransaction) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -409,11 +432,23 @@ func (o *AssetDeviceTransaction) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type AssetDeviceTransactionWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_asset_generic_target_claim_options.go b/model_asset_generic_target_claim_options.go index 9373fb87d2..5d0d819ea6 100644 --- a/model_asset_generic_target_claim_options.go +++ b/model_asset_generic_target_claim_options.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -82,6 +82,11 @@ func (o *AssetGenericTargetClaimOptions) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "asset.GenericTargetClaimOptions" of the ClassId field. +func (o *AssetGenericTargetClaimOptions) GetDefaultClassId() interface{} { + return "asset.GenericTargetClaimOptions" +} + // GetObjectType returns the ObjectType field value func (o *AssetGenericTargetClaimOptions) GetObjectType() string { if o == nil { @@ -106,6 +111,11 @@ func (o *AssetGenericTargetClaimOptions) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "asset.GenericTargetClaimOptions" of the ObjectType field. +func (o *AssetGenericTargetClaimOptions) GetDefaultObjectType() interface{} { + return "asset.GenericTargetClaimOptions" +} + // GetTargetOptions returns the TargetOptions field value if set, zero value otherwise (both if not set or set to explicit null). func (o *AssetGenericTargetClaimOptions) GetTargetOptions() interface{} { if o == nil { @@ -127,7 +137,7 @@ func (o *AssetGenericTargetClaimOptions) GetTargetOptionsOk() (*interface{}, boo // HasTargetOptions returns a boolean if a field has been set. func (o *AssetGenericTargetClaimOptions) HasTargetOptions() bool { - if o != nil && IsNil(o.TargetOptions) { + if o != nil && !IsNil(o.TargetOptions) { return true } @@ -157,7 +167,13 @@ func (o AssetGenericTargetClaimOptions) ToMap() (map[string]interface{}, error) if errAssetServiceOptions != nil { return map[string]interface{}{}, errAssetServiceOptions } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.TargetOptions != nil { toSerialize["TargetOptions"] = o.TargetOptions @@ -179,6 +195,13 @@ func (o *AssetGenericTargetClaimOptions) UnmarshalJSON(data []byte) (err error) "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -188,11 +211,23 @@ func (o *AssetGenericTargetClaimOptions) UnmarshalJSON(data []byte) (err error) } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type AssetGenericTargetClaimOptionsWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_asset_global_ultimate.go b/model_asset_global_ultimate.go index 0415b42dd8..1c37bf75a5 100644 --- a/model_asset_global_ultimate.go +++ b/model_asset_global_ultimate.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -84,6 +84,11 @@ func (o *AssetGlobalUltimate) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "asset.GlobalUltimate" of the ClassId field. +func (o *AssetGlobalUltimate) GetDefaultClassId() interface{} { + return "asset.GlobalUltimate" +} + // GetObjectType returns the ObjectType field value func (o *AssetGlobalUltimate) GetObjectType() string { if o == nil { @@ -108,6 +113,11 @@ func (o *AssetGlobalUltimate) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "asset.GlobalUltimate" of the ObjectType field. +func (o *AssetGlobalUltimate) GetDefaultObjectType() interface{} { + return "asset.GlobalUltimate" +} + // GetId returns the Id field value if set, zero value otherwise. func (o *AssetGlobalUltimate) GetId() string { if o == nil || IsNil(o.Id) { @@ -190,7 +200,13 @@ func (o AssetGlobalUltimate) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Id) { toSerialize["Id"] = o.Id @@ -215,6 +231,13 @@ func (o *AssetGlobalUltimate) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -224,11 +247,23 @@ func (o *AssetGlobalUltimate) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type AssetGlobalUltimateWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_asset_google_cloud_platform_service_account_key_credential.go b/model_asset_google_cloud_platform_service_account_key_credential.go index 950cb76760..40753df3bd 100644 --- a/model_asset_google_cloud_platform_service_account_key_credential.go +++ b/model_asset_google_cloud_platform_service_account_key_credential.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -90,6 +90,11 @@ func (o *AssetGoogleCloudPlatformServiceAccountKeyCredential) SetClassId(v strin o.ClassId = v } +// GetDefaultClassId returns the default value "asset.GoogleCloudPlatformServiceAccountKeyCredential" of the ClassId field. +func (o *AssetGoogleCloudPlatformServiceAccountKeyCredential) GetDefaultClassId() interface{} { + return "asset.GoogleCloudPlatformServiceAccountKeyCredential" +} + // GetObjectType returns the ObjectType field value func (o *AssetGoogleCloudPlatformServiceAccountKeyCredential) GetObjectType() string { if o == nil { @@ -114,6 +119,11 @@ func (o *AssetGoogleCloudPlatformServiceAccountKeyCredential) SetObjectType(v st o.ObjectType = v } +// GetDefaultObjectType returns the default value "asset.GoogleCloudPlatformServiceAccountKeyCredential" of the ObjectType field. +func (o *AssetGoogleCloudPlatformServiceAccountKeyCredential) GetDefaultObjectType() interface{} { + return "asset.GoogleCloudPlatformServiceAccountKeyCredential" +} + // GetIsServiceAccountKeySet returns the IsServiceAccountKeySet field value if set, zero value otherwise. func (o *AssetGoogleCloudPlatformServiceAccountKeyCredential) GetIsServiceAccountKeySet() bool { if o == nil || IsNil(o.IsServiceAccountKeySet) { @@ -228,7 +238,13 @@ func (o AssetGoogleCloudPlatformServiceAccountKeyCredential) ToMap() (map[string if errAssetCredential != nil { return map[string]interface{}{}, errAssetCredential } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.IsServiceAccountKeySet) { toSerialize["IsServiceAccountKeySet"] = o.IsServiceAccountKeySet @@ -256,6 +272,13 @@ func (o *AssetGoogleCloudPlatformServiceAccountKeyCredential) UnmarshalJSON(data "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -265,11 +288,23 @@ func (o *AssetGoogleCloudPlatformServiceAccountKeyCredential) UnmarshalJSON(data } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type AssetGoogleCloudPlatformServiceAccountKeyCredentialWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_asset_http_connection.go b/model_asset_http_connection.go index 12b363154a..132fc39f5b 100644 --- a/model_asset_http_connection.go +++ b/model_asset_http_connection.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -92,6 +92,11 @@ func (o *AssetHttpConnection) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "asset.HttpConnection" of the ClassId field. +func (o *AssetHttpConnection) GetDefaultClassId() interface{} { + return "asset.HttpConnection" +} + // GetObjectType returns the ObjectType field value func (o *AssetHttpConnection) GetObjectType() string { if o == nil { @@ -116,6 +121,11 @@ func (o *AssetHttpConnection) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "asset.HttpConnection" of the ObjectType field. +func (o *AssetHttpConnection) GetDefaultObjectType() interface{} { + return "asset.HttpConnection" +} + // GetCertificateAuthority returns the CertificateAuthority field value if set, zero value otherwise. func (o *AssetHttpConnection) GetCertificateAuthority() string { if o == nil || IsNil(o.CertificateAuthority) { @@ -262,7 +272,13 @@ func (o AssetHttpConnection) ToMap() (map[string]interface{}, error) { if errAssetConnection != nil { return map[string]interface{}{}, errAssetConnection } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.CertificateAuthority) { toSerialize["CertificateAuthority"] = o.CertificateAuthority @@ -293,6 +309,13 @@ func (o *AssetHttpConnection) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -302,11 +325,23 @@ func (o *AssetHttpConnection) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type AssetHttpConnectionWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_asset_intersight_device_connector_connection.go b/model_asset_intersight_device_connector_connection.go index 11606dc71c..4c05de80f8 100644 --- a/model_asset_intersight_device_connector_connection.go +++ b/model_asset_intersight_device_connector_connection.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -83,6 +83,10 @@ func (o *AssetIntersightDeviceConnectorConnection) UnmarshalJSON(data []byte) (e "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -92,11 +96,23 @@ func (o *AssetIntersightDeviceConnectorConnection) UnmarshalJSON(data []byte) (e } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type AssetIntersightDeviceConnectorConnectionWithoutEmbeddedStruct struct { } diff --git a/model_asset_meraki_cloud_options.go b/model_asset_meraki_cloud_options.go index 5dd7824ff4..569a50eeb3 100644 --- a/model_asset_meraki_cloud_options.go +++ b/model_asset_meraki_cloud_options.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -82,6 +82,11 @@ func (o *AssetMerakiCloudOptions) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "asset.MerakiCloudOptions" of the ClassId field. +func (o *AssetMerakiCloudOptions) GetDefaultClassId() interface{} { + return "asset.MerakiCloudOptions" +} + // GetObjectType returns the ObjectType field value func (o *AssetMerakiCloudOptions) GetObjectType() string { if o == nil { @@ -106,6 +111,11 @@ func (o *AssetMerakiCloudOptions) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "asset.MerakiCloudOptions" of the ObjectType field. +func (o *AssetMerakiCloudOptions) GetDefaultObjectType() interface{} { + return "asset.MerakiCloudOptions" +} + // GetOrganizationId returns the OrganizationId field value if set, zero value otherwise. func (o *AssetMerakiCloudOptions) GetOrganizationId() string { if o == nil || IsNil(o.OrganizationId) { @@ -156,7 +166,13 @@ func (o AssetMerakiCloudOptions) ToMap() (map[string]interface{}, error) { if errAssetServiceOptions != nil { return map[string]interface{}{}, errAssetServiceOptions } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.OrganizationId) { toSerialize["OrganizationId"] = o.OrganizationId @@ -178,6 +194,13 @@ func (o *AssetMerakiCloudOptions) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -187,11 +210,23 @@ func (o *AssetMerakiCloudOptions) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type AssetMerakiCloudOptionsWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_asset_metering_type.go b/model_asset_metering_type.go index 31a0fe34f5..c4dc2ed264 100644 --- a/model_asset_metering_type.go +++ b/model_asset_metering_type.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -84,6 +84,11 @@ func (o *AssetMeteringType) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "asset.MeteringType" of the ClassId field. +func (o *AssetMeteringType) GetDefaultClassId() interface{} { + return "asset.MeteringType" +} + // GetObjectType returns the ObjectType field value func (o *AssetMeteringType) GetObjectType() string { if o == nil { @@ -108,6 +113,11 @@ func (o *AssetMeteringType) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "asset.MeteringType" of the ObjectType field. +func (o *AssetMeteringType) GetDefaultObjectType() interface{} { + return "asset.MeteringType" +} + // GetName returns the Name field value if set, zero value otherwise. func (o *AssetMeteringType) GetName() string { if o == nil || IsNil(o.Name) { @@ -190,7 +200,13 @@ func (o AssetMeteringType) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Name) { toSerialize["Name"] = o.Name @@ -215,6 +231,13 @@ func (o *AssetMeteringType) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -224,11 +247,23 @@ func (o *AssetMeteringType) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type AssetMeteringTypeWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_asset_new_relic_credential.go b/model_asset_new_relic_credential.go index 20fed0bc6d..87a6b1d8f2 100644 --- a/model_asset_new_relic_credential.go +++ b/model_asset_new_relic_credential.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -82,6 +82,11 @@ func (o *AssetNewRelicCredential) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "asset.NewRelicCredential" of the ClassId field. +func (o *AssetNewRelicCredential) GetDefaultClassId() interface{} { + return "asset.NewRelicCredential" +} + // GetObjectType returns the ObjectType field value func (o *AssetNewRelicCredential) GetObjectType() string { if o == nil { @@ -106,6 +111,11 @@ func (o *AssetNewRelicCredential) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "asset.NewRelicCredential" of the ObjectType field. +func (o *AssetNewRelicCredential) GetDefaultObjectType() interface{} { + return "asset.NewRelicCredential" +} + // GetGraphQlCredential returns the GraphQlCredential field value if set, zero value otherwise. func (o *AssetNewRelicCredential) GetGraphQlCredential() AssetApiKeyCredential { if o == nil || IsNil(o.GraphQlCredential) { @@ -188,7 +198,13 @@ func (o AssetNewRelicCredential) ToMap() (map[string]interface{}, error) { if errAssetCredential != nil { return map[string]interface{}{}, errAssetCredential } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.GraphQlCredential) { toSerialize["GraphQlCredential"] = o.GraphQlCredential @@ -213,6 +229,13 @@ func (o *AssetNewRelicCredential) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -222,11 +245,23 @@ func (o *AssetNewRelicCredential) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type AssetNewRelicCredentialWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_asset_no_authentication_credential.go b/model_asset_no_authentication_credential.go index 91a57c5154..72133a1db2 100644 --- a/model_asset_no_authentication_credential.go +++ b/model_asset_no_authentication_credential.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -83,6 +83,10 @@ func (o *AssetNoAuthenticationCredential) UnmarshalJSON(data []byte) (err error) "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -92,11 +96,23 @@ func (o *AssetNoAuthenticationCredential) UnmarshalJSON(data []byte) (err error) } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type AssetNoAuthenticationCredentialWithoutEmbeddedStruct struct { } diff --git a/model_asset_oauth_bearer_token_credential.go b/model_asset_oauth_bearer_token_credential.go index d95570f8a4..cca18ec0b7 100644 --- a/model_asset_oauth_bearer_token_credential.go +++ b/model_asset_oauth_bearer_token_credential.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -88,6 +88,11 @@ func (o *AssetOauthBearerTokenCredential) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "asset.OauthBearerTokenCredential" of the ClassId field. +func (o *AssetOauthBearerTokenCredential) GetDefaultClassId() interface{} { + return "asset.OauthBearerTokenCredential" +} + // GetObjectType returns the ObjectType field value func (o *AssetOauthBearerTokenCredential) GetObjectType() string { if o == nil { @@ -112,6 +117,11 @@ func (o *AssetOauthBearerTokenCredential) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "asset.OauthBearerTokenCredential" of the ObjectType field. +func (o *AssetOauthBearerTokenCredential) GetDefaultObjectType() interface{} { + return "asset.OauthBearerTokenCredential" +} + // GetIsTokenSet returns the IsTokenSet field value if set, zero value otherwise. func (o *AssetOauthBearerTokenCredential) GetIsTokenSet() bool { if o == nil || IsNil(o.IsTokenSet) { @@ -258,7 +268,13 @@ func (o AssetOauthBearerTokenCredential) ToMap() (map[string]interface{}, error) if errAssetCredential != nil { return map[string]interface{}{}, errAssetCredential } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.IsTokenSet) { toSerialize["IsTokenSet"] = o.IsTokenSet @@ -289,6 +305,13 @@ func (o *AssetOauthBearerTokenCredential) UnmarshalJSON(data []byte) (err error) "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -298,11 +321,23 @@ func (o *AssetOauthBearerTokenCredential) UnmarshalJSON(data []byte) (err error) } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type AssetOauthBearerTokenCredentialWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_asset_oauth_client_id_secret_credential.go b/model_asset_oauth_client_id_secret_credential.go index c912fc7a7f..c411a45b41 100644 --- a/model_asset_oauth_client_id_secret_credential.go +++ b/model_asset_oauth_client_id_secret_credential.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -86,6 +86,11 @@ func (o *AssetOauthClientIdSecretCredential) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "asset.OauthClientIdSecretCredential" of the ClassId field. +func (o *AssetOauthClientIdSecretCredential) GetDefaultClassId() interface{} { + return "asset.OauthClientIdSecretCredential" +} + // GetObjectType returns the ObjectType field value func (o *AssetOauthClientIdSecretCredential) GetObjectType() string { if o == nil { @@ -110,6 +115,11 @@ func (o *AssetOauthClientIdSecretCredential) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "asset.OauthClientIdSecretCredential" of the ObjectType field. +func (o *AssetOauthClientIdSecretCredential) GetDefaultObjectType() interface{} { + return "asset.OauthClientIdSecretCredential" +} + // GetClientId returns the ClientId field value if set, zero value otherwise. func (o *AssetOauthClientIdSecretCredential) GetClientId() string { if o == nil || IsNil(o.ClientId) { @@ -224,7 +234,13 @@ func (o AssetOauthClientIdSecretCredential) ToMap() (map[string]interface{}, err if errAssetCredential != nil { return map[string]interface{}{}, errAssetCredential } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.ClientId) { toSerialize["ClientId"] = o.ClientId @@ -252,6 +268,13 @@ func (o *AssetOauthClientIdSecretCredential) UnmarshalJSON(data []byte) (err err "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -261,11 +284,23 @@ func (o *AssetOauthClientIdSecretCredential) UnmarshalJSON(data []byte) (err err } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type AssetOauthClientIdSecretCredentialWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_asset_orchestration_civp_vmware_vcenter_options.go b/model_asset_orchestration_civp_vmware_vcenter_options.go index f6b250df17..c599956b8c 100644 --- a/model_asset_orchestration_civp_vmware_vcenter_options.go +++ b/model_asset_orchestration_civp_vmware_vcenter_options.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -84,6 +84,11 @@ func (o *AssetOrchestrationCivpVmwareVcenterOptions) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "asset.OrchestrationCivpVmwareVcenterOptions" of the ClassId field. +func (o *AssetOrchestrationCivpVmwareVcenterOptions) GetDefaultClassId() interface{} { + return "asset.OrchestrationCivpVmwareVcenterOptions" +} + // GetObjectType returns the ObjectType field value func (o *AssetOrchestrationCivpVmwareVcenterOptions) GetObjectType() string { if o == nil { @@ -108,6 +113,11 @@ func (o *AssetOrchestrationCivpVmwareVcenterOptions) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "asset.OrchestrationCivpVmwareVcenterOptions" of the ObjectType field. +func (o *AssetOrchestrationCivpVmwareVcenterOptions) GetDefaultObjectType() interface{} { + return "asset.OrchestrationCivpVmwareVcenterOptions" +} + // GetCivpEnabled returns the CivpEnabled field value if set, zero value otherwise. func (o *AssetOrchestrationCivpVmwareVcenterOptions) GetCivpEnabled() bool { if o == nil || IsNil(o.CivpEnabled) { @@ -190,7 +200,13 @@ func (o AssetOrchestrationCivpVmwareVcenterOptions) ToMap() (map[string]interfac if errAssetServiceOptions != nil { return map[string]interface{}{}, errAssetServiceOptions } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.CivpEnabled) { toSerialize["CivpEnabled"] = o.CivpEnabled @@ -215,6 +231,13 @@ func (o *AssetOrchestrationCivpVmwareVcenterOptions) UnmarshalJSON(data []byte) "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -224,11 +247,23 @@ func (o *AssetOrchestrationCivpVmwareVcenterOptions) UnmarshalJSON(data []byte) } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type AssetOrchestrationCivpVmwareVcenterOptionsWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_asset_orchestration_hitachi_virtual_storage_platform_options.go b/model_asset_orchestration_hitachi_virtual_storage_platform_options.go index 0643f44069..b995a02256 100644 --- a/model_asset_orchestration_hitachi_virtual_storage_platform_options.go +++ b/model_asset_orchestration_hitachi_virtual_storage_platform_options.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -82,6 +82,11 @@ func (o *AssetOrchestrationHitachiVirtualStoragePlatformOptions) SetClassId(v st o.ClassId = v } +// GetDefaultClassId returns the default value "asset.OrchestrationHitachiVirtualStoragePlatformOptions" of the ClassId field. +func (o *AssetOrchestrationHitachiVirtualStoragePlatformOptions) GetDefaultClassId() interface{} { + return "asset.OrchestrationHitachiVirtualStoragePlatformOptions" +} + // GetObjectType returns the ObjectType field value func (o *AssetOrchestrationHitachiVirtualStoragePlatformOptions) GetObjectType() string { if o == nil { @@ -106,6 +111,11 @@ func (o *AssetOrchestrationHitachiVirtualStoragePlatformOptions) SetObjectType(v o.ObjectType = v } +// GetDefaultObjectType returns the default value "asset.OrchestrationHitachiVirtualStoragePlatformOptions" of the ObjectType field. +func (o *AssetOrchestrationHitachiVirtualStoragePlatformOptions) GetDefaultObjectType() interface{} { + return "asset.OrchestrationHitachiVirtualStoragePlatformOptions" +} + // GetOpsCenterManagementAddress returns the OpsCenterManagementAddress field value if set, zero value otherwise. func (o *AssetOrchestrationHitachiVirtualStoragePlatformOptions) GetOpsCenterManagementAddress() string { if o == nil || IsNil(o.OpsCenterManagementAddress) { @@ -156,7 +166,13 @@ func (o AssetOrchestrationHitachiVirtualStoragePlatformOptions) ToMap() (map[str if errAssetServiceOptions != nil { return map[string]interface{}{}, errAssetServiceOptions } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.OpsCenterManagementAddress) { toSerialize["OpsCenterManagementAddress"] = o.OpsCenterManagementAddress @@ -178,6 +194,13 @@ func (o *AssetOrchestrationHitachiVirtualStoragePlatformOptions) UnmarshalJSON(d "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -187,11 +210,23 @@ func (o *AssetOrchestrationHitachiVirtualStoragePlatformOptions) UnmarshalJSON(d } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type AssetOrchestrationHitachiVirtualStoragePlatformOptionsWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_asset_orchestration_hsm_vmware_vcenter_options.go b/model_asset_orchestration_hsm_vmware_vcenter_options.go index 660f960da6..e955a07db7 100644 --- a/model_asset_orchestration_hsm_vmware_vcenter_options.go +++ b/model_asset_orchestration_hsm_vmware_vcenter_options.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -84,6 +84,11 @@ func (o *AssetOrchestrationHsmVmwareVcenterOptions) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "asset.OrchestrationHsmVmwareVcenterOptions" of the ClassId field. +func (o *AssetOrchestrationHsmVmwareVcenterOptions) GetDefaultClassId() interface{} { + return "asset.OrchestrationHsmVmwareVcenterOptions" +} + // GetObjectType returns the ObjectType field value func (o *AssetOrchestrationHsmVmwareVcenterOptions) GetObjectType() string { if o == nil { @@ -108,6 +113,11 @@ func (o *AssetOrchestrationHsmVmwareVcenterOptions) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "asset.OrchestrationHsmVmwareVcenterOptions" of the ObjectType field. +func (o *AssetOrchestrationHsmVmwareVcenterOptions) GetDefaultObjectType() interface{} { + return "asset.OrchestrationHsmVmwareVcenterOptions" +} + // GetHsmEnabled returns the HsmEnabled field value if set, zero value otherwise. func (o *AssetOrchestrationHsmVmwareVcenterOptions) GetHsmEnabled() bool { if o == nil || IsNil(o.HsmEnabled) { @@ -190,7 +200,13 @@ func (o AssetOrchestrationHsmVmwareVcenterOptions) ToMap() (map[string]interface if errAssetServiceOptions != nil { return map[string]interface{}{}, errAssetServiceOptions } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.HsmEnabled) { toSerialize["HsmEnabled"] = o.HsmEnabled @@ -215,6 +231,13 @@ func (o *AssetOrchestrationHsmVmwareVcenterOptions) UnmarshalJSON(data []byte) ( "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -224,11 +247,23 @@ func (o *AssetOrchestrationHsmVmwareVcenterOptions) UnmarshalJSON(data []byte) ( } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type AssetOrchestrationHsmVmwareVcenterOptionsWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_asset_orchestration_service.go b/model_asset_orchestration_service.go index 1a45f3e6fb..ea2dcba54d 100644 --- a/model_asset_orchestration_service.go +++ b/model_asset_orchestration_service.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -83,6 +83,10 @@ func (o *AssetOrchestrationService) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -92,11 +96,23 @@ func (o *AssetOrchestrationService) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type AssetOrchestrationServiceWithoutEmbeddedStruct struct { } diff --git a/model_asset_parent_connection_signature.go b/model_asset_parent_connection_signature.go index db0f0c34c9..d7f3c27253 100644 --- a/model_asset_parent_connection_signature.go +++ b/model_asset_parent_connection_signature.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -84,6 +84,11 @@ func (o *AssetParentConnectionSignature) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "asset.ParentConnectionSignature" of the ClassId field. +func (o *AssetParentConnectionSignature) GetDefaultClassId() interface{} { + return "asset.ParentConnectionSignature" +} + // GetObjectType returns the ObjectType field value func (o *AssetParentConnectionSignature) GetObjectType() string { if o == nil { @@ -108,6 +113,11 @@ func (o *AssetParentConnectionSignature) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "asset.ParentConnectionSignature" of the ObjectType field. +func (o *AssetParentConnectionSignature) GetDefaultObjectType() interface{} { + return "asset.ParentConnectionSignature" +} + // GetDeviceId returns the DeviceId field value if set, zero value otherwise. func (o *AssetParentConnectionSignature) GetDeviceId() string { if o == nil || IsNil(o.DeviceId) { @@ -190,7 +200,13 @@ func (o AssetParentConnectionSignature) ToMap() (map[string]interface{}, error) if errAssetClaimSignature != nil { return map[string]interface{}{}, errAssetClaimSignature } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.DeviceId) { toSerialize["DeviceId"] = o.DeviceId @@ -215,6 +231,13 @@ func (o *AssetParentConnectionSignature) UnmarshalJSON(data []byte) (err error) "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -224,11 +247,23 @@ func (o *AssetParentConnectionSignature) UnmarshalJSON(data []byte) (err error) } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type AssetParentConnectionSignatureWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_asset_private_key_credential.go b/model_asset_private_key_credential.go index 6557388d8d..fd18371af5 100644 --- a/model_asset_private_key_credential.go +++ b/model_asset_private_key_credential.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -90,6 +90,11 @@ func (o *AssetPrivateKeyCredential) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "asset.PrivateKeyCredential" of the ClassId field. +func (o *AssetPrivateKeyCredential) GetDefaultClassId() interface{} { + return "asset.PrivateKeyCredential" +} + // GetObjectType returns the ObjectType field value func (o *AssetPrivateKeyCredential) GetObjectType() string { if o == nil { @@ -114,6 +119,11 @@ func (o *AssetPrivateKeyCredential) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "asset.PrivateKeyCredential" of the ObjectType field. +func (o *AssetPrivateKeyCredential) GetDefaultObjectType() interface{} { + return "asset.PrivateKeyCredential" +} + // GetIsPassphraseSet returns the IsPassphraseSet field value if set, zero value otherwise. func (o *AssetPrivateKeyCredential) GetIsPassphraseSet() bool { if o == nil || IsNil(o.IsPassphraseSet) { @@ -292,7 +302,13 @@ func (o AssetPrivateKeyCredential) ToMap() (map[string]interface{}, error) { if errAssetCredential != nil { return map[string]interface{}{}, errAssetCredential } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.IsPassphraseSet) { toSerialize["IsPassphraseSet"] = o.IsPassphraseSet @@ -326,6 +342,13 @@ func (o *AssetPrivateKeyCredential) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -335,11 +358,23 @@ func (o *AssetPrivateKeyCredential) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type AssetPrivateKeyCredentialWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_asset_product_information.go b/model_asset_product_information.go index f57a0c608f..6a52a0a583 100644 --- a/model_asset_product_information.go +++ b/model_asset_product_information.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -92,6 +92,11 @@ func (o *AssetProductInformation) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "asset.ProductInformation" of the ClassId field. +func (o *AssetProductInformation) GetDefaultClassId() interface{} { + return "asset.ProductInformation" +} + // GetObjectType returns the ObjectType field value func (o *AssetProductInformation) GetObjectType() string { if o == nil { @@ -116,6 +121,11 @@ func (o *AssetProductInformation) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "asset.ProductInformation" of the ObjectType field. +func (o *AssetProductInformation) GetDefaultObjectType() interface{} { + return "asset.ProductInformation" +} + // GetBillTo returns the BillTo field value if set, zero value otherwise (both if not set or set to explicit null). func (o *AssetProductInformation) GetBillTo() AssetAddressInformation { if o == nil || IsNil(o.BillTo.Get()) { @@ -380,7 +390,13 @@ func (o AssetProductInformation) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.BillTo.IsSet() { toSerialize["BillTo"] = o.BillTo.Get() @@ -420,6 +436,13 @@ func (o *AssetProductInformation) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -429,11 +452,23 @@ func (o *AssetProductInformation) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type AssetProductInformationWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_asset_scoped_target_connection.go b/model_asset_scoped_target_connection.go index 2fe9a5a497..ed6ef8dff8 100644 --- a/model_asset_scoped_target_connection.go +++ b/model_asset_scoped_target_connection.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -92,6 +92,11 @@ func (o *AssetScopedTargetConnection) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "asset.ScopedTargetConnection" of the ClassId field. +func (o *AssetScopedTargetConnection) GetDefaultClassId() interface{} { + return "asset.ScopedTargetConnection" +} + // GetObjectType returns the ObjectType field value func (o *AssetScopedTargetConnection) GetObjectType() string { if o == nil { @@ -116,6 +121,11 @@ func (o *AssetScopedTargetConnection) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "asset.ScopedTargetConnection" of the ObjectType field. +func (o *AssetScopedTargetConnection) GetDefaultObjectType() interface{} { + return "asset.ScopedTargetConnection" +} + // GetFullValidation returns the FullValidation field value if set, zero value otherwise. func (o *AssetScopedTargetConnection) GetFullValidation() bool { if o == nil || IsNil(o.FullValidation) { @@ -262,7 +272,13 @@ func (o AssetScopedTargetConnection) ToMap() (map[string]interface{}, error) { if errAssetConnection != nil { return map[string]interface{}{}, errAssetConnection } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.FullValidation) { toSerialize["FullValidation"] = o.FullValidation @@ -293,6 +309,13 @@ func (o *AssetScopedTargetConnection) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -302,11 +325,23 @@ func (o *AssetScopedTargetConnection) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type AssetScopedTargetConnectionWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_asset_service.go b/model_asset_service.go index f252dc2d6d..a1c5c6f75f 100644 --- a/model_asset_service.go +++ b/model_asset_service.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -184,6 +184,10 @@ func (o *AssetService) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -193,11 +197,23 @@ func (o *AssetService) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type AssetServiceWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. The enum values provides the list of concrete types that can be instantiated from this abstract type. ClassId string `json:"ClassId"` diff --git a/model_asset_service_now_credential.go b/model_asset_service_now_credential.go index a9eb69b606..963e735f7c 100644 --- a/model_asset_service_now_credential.go +++ b/model_asset_service_now_credential.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -82,6 +82,11 @@ func (o *AssetServiceNowCredential) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "asset.ServiceNowCredential" of the ClassId field. +func (o *AssetServiceNowCredential) GetDefaultClassId() interface{} { + return "asset.ServiceNowCredential" +} + // GetObjectType returns the ObjectType field value func (o *AssetServiceNowCredential) GetObjectType() string { if o == nil { @@ -106,6 +111,11 @@ func (o *AssetServiceNowCredential) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "asset.ServiceNowCredential" of the ObjectType field. +func (o *AssetServiceNowCredential) GetDefaultObjectType() interface{} { + return "asset.ServiceNowCredential" +} + // GetOauthAuthenticationCredential returns the OauthAuthenticationCredential field value if set, zero value otherwise. func (o *AssetServiceNowCredential) GetOauthAuthenticationCredential() AssetOauthClientIdSecretCredential { if o == nil || IsNil(o.OauthAuthenticationCredential) { @@ -188,7 +198,13 @@ func (o AssetServiceNowCredential) ToMap() (map[string]interface{}, error) { if errAssetCredential != nil { return map[string]interface{}{}, errAssetCredential } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.OauthAuthenticationCredential) { toSerialize["OauthAuthenticationCredential"] = o.OauthAuthenticationCredential @@ -213,6 +229,13 @@ func (o *AssetServiceNowCredential) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -222,11 +245,23 @@ func (o *AssetServiceNowCredential) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type AssetServiceNowCredentialWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_asset_service_options.go b/model_asset_service_options.go index b5fe13894f..e53bb3c8d2 100644 --- a/model_asset_service_options.go +++ b/model_asset_service_options.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -83,6 +83,10 @@ func (o *AssetServiceOptions) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -92,11 +96,23 @@ func (o *AssetServiceOptions) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type AssetServiceOptionsWithoutEmbeddedStruct struct { } diff --git a/model_asset_ssh_connection.go b/model_asset_ssh_connection.go index 84d9443d13..33242604f4 100644 --- a/model_asset_ssh_connection.go +++ b/model_asset_ssh_connection.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -84,6 +84,11 @@ func (o *AssetSshConnection) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "asset.SshConnection" of the ClassId field. +func (o *AssetSshConnection) GetDefaultClassId() interface{} { + return "asset.SshConnection" +} + // GetObjectType returns the ObjectType field value func (o *AssetSshConnection) GetObjectType() string { if o == nil { @@ -108,6 +113,11 @@ func (o *AssetSshConnection) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "asset.SshConnection" of the ObjectType field. +func (o *AssetSshConnection) GetDefaultObjectType() interface{} { + return "asset.SshConnection" +} + // GetManagementAddress returns the ManagementAddress field value if set, zero value otherwise. func (o *AssetSshConnection) GetManagementAddress() string { if o == nil || IsNil(o.ManagementAddress) { @@ -190,7 +200,13 @@ func (o AssetSshConnection) ToMap() (map[string]interface{}, error) { if errAssetConnection != nil { return map[string]interface{}{}, errAssetConnection } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.ManagementAddress) { toSerialize["ManagementAddress"] = o.ManagementAddress @@ -215,6 +231,13 @@ func (o *AssetSshConnection) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -224,11 +247,23 @@ func (o *AssetSshConnection) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type AssetSshConnectionWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_asset_subscription.go b/model_asset_subscription.go index fd8e3b5978..ad105b23a1 100644 --- a/model_asset_subscription.go +++ b/model_asset_subscription.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -87,6 +87,11 @@ func (o *AssetSubscription) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "asset.Subscription" of the ClassId field. +func (o *AssetSubscription) GetDefaultClassId() interface{} { + return "asset.Subscription" +} + // GetObjectType returns the ObjectType field value func (o *AssetSubscription) GetObjectType() string { if o == nil { @@ -111,6 +116,11 @@ func (o *AssetSubscription) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "asset.Subscription" of the ObjectType field. +func (o *AssetSubscription) GetDefaultObjectType() interface{} { + return "asset.Subscription" +} + // GetApplicationName returns the ApplicationName field value if set, zero value otherwise. func (o *AssetSubscription) GetApplicationName() string { if o == nil || IsNil(o.ApplicationName) { @@ -196,7 +206,7 @@ func (o *AssetSubscription) GetDeploymentsOk() ([]AssetDeploymentRelationship, b // HasDeployments returns a boolean if a field has been set. func (o *AssetSubscription) HasDeployments() bool { - if o != nil && IsNil(o.Deployments) { + if o != nil && !IsNil(o.Deployments) { return true } @@ -269,7 +279,13 @@ func (o AssetSubscription) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.ApplicationName) { toSerialize["ApplicationName"] = o.ApplicationName @@ -300,6 +316,13 @@ func (o *AssetSubscription) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -309,11 +332,23 @@ func (o *AssetSubscription) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type AssetSubscriptionWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_asset_subscription_account.go b/model_asset_subscription_account.go index 028989859e..d9c181179c 100644 --- a/model_asset_subscription_account.go +++ b/model_asset_subscription_account.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -81,6 +81,11 @@ func (o *AssetSubscriptionAccount) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "asset.SubscriptionAccount" of the ClassId field. +func (o *AssetSubscriptionAccount) GetDefaultClassId() interface{} { + return "asset.SubscriptionAccount" +} + // GetObjectType returns the ObjectType field value func (o *AssetSubscriptionAccount) GetObjectType() string { if o == nil { @@ -105,6 +110,11 @@ func (o *AssetSubscriptionAccount) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "asset.SubscriptionAccount" of the ObjectType field. +func (o *AssetSubscriptionAccount) GetDefaultObjectType() interface{} { + return "asset.SubscriptionAccount" +} + // GetAccount returns the Account field value if set, zero value otherwise (both if not set or set to explicit null). func (o *AssetSubscriptionAccount) GetAccount() IamAccountRelationship { if o == nil || IsNil(o.Account.Get()) { @@ -166,7 +176,13 @@ func (o AssetSubscriptionAccount) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.Account.IsSet() { toSerialize["Account"] = o.Account.Get() @@ -188,6 +204,13 @@ func (o *AssetSubscriptionAccount) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -197,11 +220,23 @@ func (o *AssetSubscriptionAccount) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type AssetSubscriptionAccountWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_asset_subscription_account_list.go b/model_asset_subscription_account_list.go index a9d255bfc7..6ca307b86e 100644 --- a/model_asset_subscription_account_list.go +++ b/model_asset_subscription_account_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *AssetSubscriptionAccountList) GetResultsOk() ([]AssetSubscriptionAccoun // HasResults returns a boolean if a field has been set. func (o *AssetSubscriptionAccountList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *AssetSubscriptionAccountList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *AssetSubscriptionAccountList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type AssetSubscriptionAccountListWithoutEmbeddedStruct struct { // The total number of 'asset.SubscriptionAccount' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_asset_subscription_account_relationship.go b/model_asset_subscription_account_relationship.go index 823c217502..c2b0475cfa 100644 --- a/model_asset_subscription_account_relationship.go +++ b/model_asset_subscription_account_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_asset_subscription_account_response.go b/model_asset_subscription_account_response.go index 2b60088e87..a74f14eaf2 100644 --- a/model_asset_subscription_account_response.go +++ b/model_asset_subscription_account_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_asset_subscription_device_contract_information.go b/model_asset_subscription_device_contract_information.go index 1ac081b37e..4453634c5c 100644 --- a/model_asset_subscription_device_contract_information.go +++ b/model_asset_subscription_device_contract_information.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -89,6 +89,11 @@ func (o *AssetSubscriptionDeviceContractInformation) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "asset.SubscriptionDeviceContractInformation" of the ClassId field. +func (o *AssetSubscriptionDeviceContractInformation) GetDefaultClassId() interface{} { + return "asset.SubscriptionDeviceContractInformation" +} + // GetObjectType returns the ObjectType field value func (o *AssetSubscriptionDeviceContractInformation) GetObjectType() string { if o == nil { @@ -113,6 +118,11 @@ func (o *AssetSubscriptionDeviceContractInformation) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "asset.SubscriptionDeviceContractInformation" of the ObjectType field. +func (o *AssetSubscriptionDeviceContractInformation) GetDefaultObjectType() interface{} { + return "asset.SubscriptionDeviceContractInformation" +} + // GetDeviceId returns the DeviceId field value if set, zero value otherwise. func (o *AssetSubscriptionDeviceContractInformation) GetDeviceId() string { if o == nil || IsNil(o.DeviceId) { @@ -356,7 +366,13 @@ func (o AssetSubscriptionDeviceContractInformation) ToMap() (map[string]interfac if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.DeviceId) { toSerialize["DeviceId"] = o.DeviceId @@ -393,6 +409,13 @@ func (o *AssetSubscriptionDeviceContractInformation) UnmarshalJSON(data []byte) "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -402,11 +425,23 @@ func (o *AssetSubscriptionDeviceContractInformation) UnmarshalJSON(data []byte) } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type AssetSubscriptionDeviceContractInformationWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_asset_subscription_device_contract_information_list.go b/model_asset_subscription_device_contract_information_list.go index 89ccee56ef..71cd2927b2 100644 --- a/model_asset_subscription_device_contract_information_list.go +++ b/model_asset_subscription_device_contract_information_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *AssetSubscriptionDeviceContractInformationList) GetResultsOk() ([]Asset // HasResults returns a boolean if a field has been set. func (o *AssetSubscriptionDeviceContractInformationList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *AssetSubscriptionDeviceContractInformationList) UnmarshalJSON(data []by "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *AssetSubscriptionDeviceContractInformationList) UnmarshalJSON(data []by } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type AssetSubscriptionDeviceContractInformationListWithoutEmbeddedStruct struct { // The total number of 'asset.SubscriptionDeviceContractInformation' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_asset_subscription_device_contract_information_response.go b/model_asset_subscription_device_contract_information_response.go index 41ccdcfdb1..2e064204a0 100644 --- a/model_asset_subscription_device_contract_information_response.go +++ b/model_asset_subscription_device_contract_information_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_asset_subscription_list.go b/model_asset_subscription_list.go index 6f99f38b29..2ff4a4a3b1 100644 --- a/model_asset_subscription_list.go +++ b/model_asset_subscription_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *AssetSubscriptionList) GetResultsOk() ([]AssetSubscription, bool) { // HasResults returns a boolean if a field has been set. func (o *AssetSubscriptionList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *AssetSubscriptionList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *AssetSubscriptionList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type AssetSubscriptionListWithoutEmbeddedStruct struct { // The total number of 'asset.Subscription' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_asset_subscription_relationship.go b/model_asset_subscription_relationship.go index 63e9c1224b..bc6736bfe7 100644 --- a/model_asset_subscription_relationship.go +++ b/model_asset_subscription_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_asset_subscription_response.go b/model_asset_subscription_response.go index 6e05493ad4..3931d45771 100644 --- a/model_asset_subscription_response.go +++ b/model_asset_subscription_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_asset_sudi_info.go b/model_asset_sudi_info.go index 9fc299e30f..b2f0c227ad 100644 --- a/model_asset_sudi_info.go +++ b/model_asset_sudi_info.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -91,6 +91,11 @@ func (o *AssetSudiInfo) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "asset.SudiInfo" of the ClassId field. +func (o *AssetSudiInfo) GetDefaultClassId() interface{} { + return "asset.SudiInfo" +} + // GetObjectType returns the ObjectType field value func (o *AssetSudiInfo) GetObjectType() string { if o == nil { @@ -115,6 +120,11 @@ func (o *AssetSudiInfo) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "asset.SudiInfo" of the ObjectType field. +func (o *AssetSudiInfo) GetDefaultObjectType() interface{} { + return "asset.SudiInfo" +} + // GetPid returns the Pid field value if set, zero value otherwise. func (o *AssetSudiInfo) GetPid() string { if o == nil || IsNil(o.Pid) { @@ -336,7 +346,13 @@ func (o AssetSudiInfo) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Pid) { toSerialize["Pid"] = o.Pid @@ -373,6 +389,13 @@ func (o *AssetSudiInfo) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -382,11 +405,23 @@ func (o *AssetSudiInfo) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type AssetSudiInfoWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_asset_target.go b/model_asset_target.go index 20c6190645..69badd6fab 100644 --- a/model_asset_target.go +++ b/model_asset_target.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -121,6 +121,11 @@ func (o *AssetTarget) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "asset.Target" of the ClassId field. +func (o *AssetTarget) GetDefaultClassId() interface{} { + return "asset.Target" +} + // GetObjectType returns the ObjectType field value func (o *AssetTarget) GetObjectType() string { if o == nil { @@ -145,6 +150,11 @@ func (o *AssetTarget) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "asset.Target" of the ObjectType field. +func (o *AssetTarget) GetDefaultObjectType() interface{} { + return "asset.Target" +} + // GetAlarmSummary returns the AlarmSummary field value if set, zero value otherwise (both if not set or set to explicit null). func (o *AssetTarget) GetAlarmSummary() AssetAlarmSummary { if o == nil || IsNil(o.AlarmSummary.Get()) { @@ -241,7 +251,7 @@ func (o *AssetTarget) GetConnectionsOk() ([]AssetConnection, bool) { // HasConnections returns a boolean if a field has been set. func (o *AssetTarget) HasConnections() bool { - if o != nil && IsNil(o.Connections) { + if o != nil && !IsNil(o.Connections) { return true } @@ -338,7 +348,7 @@ func (o *AssetTarget) GetIpAddressOk() ([]string, bool) { // HasIpAddress returns a boolean if a field has been set. func (o *AssetTarget) HasIpAddress() bool { - if o != nil && IsNil(o.IpAddress) { + if o != nil && !IsNil(o.IpAddress) { return true } @@ -435,7 +445,7 @@ func (o *AssetTarget) GetProductIdOk() ([]string, bool) { // HasProductId returns a boolean if a field has been set. func (o *AssetTarget) HasProductId() bool { - if o != nil && IsNil(o.ProductId) { + if o != nil && !IsNil(o.ProductId) { return true } @@ -500,7 +510,7 @@ func (o *AssetTarget) GetServicesOk() ([]AssetService, bool) { // HasServices returns a boolean if a field has been set. func (o *AssetTarget) HasServices() bool { - if o != nil && IsNil(o.Services) { + if o != nil && !IsNil(o.Services) { return true } @@ -597,7 +607,7 @@ func (o *AssetTarget) GetTargetIdOk() ([]string, bool) { // HasTargetId returns a boolean if a field has been set. func (o *AssetTarget) HasTargetId() bool { - if o != nil && IsNil(o.TargetId) { + if o != nil && !IsNil(o.TargetId) { return true } @@ -780,7 +790,7 @@ func (o *AssetTarget) GetCustomPermissionResourcesOk() ([]MoBaseMoRelationship, // HasCustomPermissionResources returns a boolean if a field has been set. func (o *AssetTarget) HasCustomPermissionResources() bool { - if o != nil && IsNil(o.CustomPermissionResources) { + if o != nil && !IsNil(o.CustomPermissionResources) { return true } @@ -939,7 +949,13 @@ func (o AssetTarget) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.AlarmSummary.IsSet() { toSerialize["AlarmSummary"] = o.AlarmSummary.Get() @@ -1024,6 +1040,13 @@ func (o *AssetTarget) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -1033,11 +1056,23 @@ func (o *AssetTarget) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type AssetTargetWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_asset_target_key.go b/model_asset_target_key.go index a3b6c6d6bc..2a959b4009 100644 --- a/model_asset_target_key.go +++ b/model_asset_target_key.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -82,6 +82,11 @@ func (o *AssetTargetKey) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "asset.TargetKey" of the ClassId field. +func (o *AssetTargetKey) GetDefaultClassId() interface{} { + return "asset.TargetKey" +} + // GetObjectType returns the ObjectType field value func (o *AssetTargetKey) GetObjectType() string { if o == nil { @@ -106,6 +111,11 @@ func (o *AssetTargetKey) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "asset.TargetKey" of the ObjectType field. +func (o *AssetTargetKey) GetDefaultObjectType() interface{} { + return "asset.TargetKey" +} + // GetIsPrivateKeySet returns the IsPrivateKeySet field value if set, zero value otherwise. func (o *AssetTargetKey) GetIsPrivateKeySet() bool { if o == nil || IsNil(o.IsPrivateKeySet) { @@ -156,7 +166,13 @@ func (o AssetTargetKey) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.IsPrivateKeySet) { toSerialize["IsPrivateKeySet"] = o.IsPrivateKeySet @@ -178,6 +194,13 @@ func (o *AssetTargetKey) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -187,11 +210,23 @@ func (o *AssetTargetKey) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type AssetTargetKeyWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_asset_target_list.go b/model_asset_target_list.go index f536612ac8..1694024cdb 100644 --- a/model_asset_target_list.go +++ b/model_asset_target_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *AssetTargetList) GetResultsOk() ([]AssetTarget, bool) { // HasResults returns a boolean if a field has been set. func (o *AssetTargetList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *AssetTargetList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *AssetTargetList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type AssetTargetListWithoutEmbeddedStruct struct { // The total number of 'asset.Target' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_asset_target_relationship.go b/model_asset_target_relationship.go index 118bea63b7..84a58ed19b 100644 --- a/model_asset_target_relationship.go +++ b/model_asset_target_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_asset_target_response.go b/model_asset_target_response.go index 0f58a75f8a..c7826e9490 100644 --- a/model_asset_target_response.go +++ b/model_asset_target_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_asset_target_signature.go b/model_asset_target_signature.go index 9514184de4..2a094cbed1 100644 --- a/model_asset_target_signature.go +++ b/model_asset_target_signature.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -82,6 +82,11 @@ func (o *AssetTargetSignature) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "asset.TargetSignature" of the ClassId field. +func (o *AssetTargetSignature) GetDefaultClassId() interface{} { + return "asset.TargetSignature" +} + // GetObjectType returns the ObjectType field value func (o *AssetTargetSignature) GetObjectType() string { if o == nil { @@ -106,6 +111,11 @@ func (o *AssetTargetSignature) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "asset.TargetSignature" of the ObjectType field. +func (o *AssetTargetSignature) GetDefaultObjectType() interface{} { + return "asset.TargetSignature" +} + // GetTargetId returns the TargetId field value if set, zero value otherwise. func (o *AssetTargetSignature) GetTargetId() string { if o == nil || IsNil(o.TargetId) { @@ -156,7 +166,13 @@ func (o AssetTargetSignature) ToMap() (map[string]interface{}, error) { if errAssetClaimSignature != nil { return map[string]interface{}{}, errAssetClaimSignature } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.TargetId) { toSerialize["TargetId"] = o.TargetId @@ -178,6 +194,13 @@ func (o *AssetTargetSignature) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -187,11 +210,23 @@ func (o *AssetTargetSignature) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type AssetTargetSignatureWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_asset_target_status_details.go b/model_asset_target_status_details.go index c479d7458c..9744f29c10 100644 --- a/model_asset_target_status_details.go +++ b/model_asset_target_status_details.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -83,6 +83,10 @@ func (o *AssetTargetStatusDetails) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -92,11 +96,23 @@ func (o *AssetTargetStatusDetails) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type AssetTargetStatusDetailsWithoutEmbeddedStruct struct { } diff --git a/model_asset_terraform_integration_service.go b/model_asset_terraform_integration_service.go index 33ace3d5c4..1f050ca542 100644 --- a/model_asset_terraform_integration_service.go +++ b/model_asset_terraform_integration_service.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -83,6 +83,10 @@ func (o *AssetTerraformIntegrationService) UnmarshalJSON(data []byte) (err error "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -92,11 +96,23 @@ func (o *AssetTerraformIntegrationService) UnmarshalJSON(data []byte) (err error } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type AssetTerraformIntegrationServiceWithoutEmbeddedStruct struct { } diff --git a/model_asset_terraform_integration_terraform_agent_options.go b/model_asset_terraform_integration_terraform_agent_options.go index 210967b0c4..df8961d8d4 100644 --- a/model_asset_terraform_integration_terraform_agent_options.go +++ b/model_asset_terraform_integration_terraform_agent_options.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -85,6 +85,11 @@ func (o *AssetTerraformIntegrationTerraformAgentOptions) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "asset.TerraformIntegrationTerraformAgentOptions" of the ClassId field. +func (o *AssetTerraformIntegrationTerraformAgentOptions) GetDefaultClassId() interface{} { + return "asset.TerraformIntegrationTerraformAgentOptions" +} + // GetObjectType returns the ObjectType field value func (o *AssetTerraformIntegrationTerraformAgentOptions) GetObjectType() string { if o == nil { @@ -109,6 +114,11 @@ func (o *AssetTerraformIntegrationTerraformAgentOptions) SetObjectType(v string) o.ObjectType = v } +// GetDefaultObjectType returns the default value "asset.TerraformIntegrationTerraformAgentOptions" of the ObjectType field. +func (o *AssetTerraformIntegrationTerraformAgentOptions) GetDefaultObjectType() interface{} { + return "asset.TerraformIntegrationTerraformAgentOptions" +} + // GetManagedHosts returns the ManagedHosts field value if set, zero value otherwise (both if not set or set to explicit null). func (o *AssetTerraformIntegrationTerraformAgentOptions) GetManagedHosts() []string { if o == nil { @@ -130,7 +140,7 @@ func (o *AssetTerraformIntegrationTerraformAgentOptions) GetManagedHostsOk() ([] // HasManagedHosts returns a boolean if a field has been set. func (o *AssetTerraformIntegrationTerraformAgentOptions) HasManagedHosts() bool { - if o != nil && IsNil(o.ManagedHosts) { + if o != nil && !IsNil(o.ManagedHosts) { return true } @@ -224,7 +234,13 @@ func (o AssetTerraformIntegrationTerraformAgentOptions) ToMap() (map[string]inte if errAssetServiceOptions != nil { return map[string]interface{}{}, errAssetServiceOptions } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.ManagedHosts != nil { toSerialize["ManagedHosts"] = o.ManagedHosts @@ -252,6 +268,13 @@ func (o *AssetTerraformIntegrationTerraformAgentOptions) UnmarshalJSON(data []by "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -261,11 +284,23 @@ func (o *AssetTerraformIntegrationTerraformAgentOptions) UnmarshalJSON(data []by } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type AssetTerraformIntegrationTerraformAgentOptionsWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_asset_terraform_integration_terraform_cloud_options.go b/model_asset_terraform_integration_terraform_cloud_options.go index 59499bc4fd..cbb474771d 100644 --- a/model_asset_terraform_integration_terraform_cloud_options.go +++ b/model_asset_terraform_integration_terraform_cloud_options.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -83,6 +83,11 @@ func (o *AssetTerraformIntegrationTerraformCloudOptions) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "asset.TerraformIntegrationTerraformCloudOptions" of the ClassId field. +func (o *AssetTerraformIntegrationTerraformCloudOptions) GetDefaultClassId() interface{} { + return "asset.TerraformIntegrationTerraformCloudOptions" +} + // GetObjectType returns the ObjectType field value func (o *AssetTerraformIntegrationTerraformCloudOptions) GetObjectType() string { if o == nil { @@ -107,6 +112,11 @@ func (o *AssetTerraformIntegrationTerraformCloudOptions) SetObjectType(v string) o.ObjectType = v } +// GetDefaultObjectType returns the default value "asset.TerraformIntegrationTerraformCloudOptions" of the ObjectType field. +func (o *AssetTerraformIntegrationTerraformCloudOptions) GetDefaultObjectType() interface{} { + return "asset.TerraformIntegrationTerraformCloudOptions" +} + // GetDefaultManagedHosts returns the DefaultManagedHosts field value if set, zero value otherwise (both if not set or set to explicit null). func (o *AssetTerraformIntegrationTerraformCloudOptions) GetDefaultManagedHosts() []string { if o == nil { @@ -128,7 +138,7 @@ func (o *AssetTerraformIntegrationTerraformCloudOptions) GetDefaultManagedHostsO // HasDefaultManagedHosts returns a boolean if a field has been set. func (o *AssetTerraformIntegrationTerraformCloudOptions) HasDefaultManagedHosts() bool { - if o != nil && IsNil(o.DefaultManagedHosts) { + if o != nil && !IsNil(o.DefaultManagedHosts) { return true } @@ -190,7 +200,13 @@ func (o AssetTerraformIntegrationTerraformCloudOptions) ToMap() (map[string]inte if errAssetServiceOptions != nil { return map[string]interface{}{}, errAssetServiceOptions } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.DefaultManagedHosts != nil { toSerialize["DefaultManagedHosts"] = o.DefaultManagedHosts @@ -215,6 +231,13 @@ func (o *AssetTerraformIntegrationTerraformCloudOptions) UnmarshalJSON(data []by "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -224,11 +247,23 @@ func (o *AssetTerraformIntegrationTerraformCloudOptions) UnmarshalJSON(data []by } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type AssetTerraformIntegrationTerraformCloudOptionsWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_asset_username_password_credential.go b/model_asset_username_password_credential.go index a054dfc71d..3df9c9d890 100644 --- a/model_asset_username_password_credential.go +++ b/model_asset_username_password_credential.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -86,6 +86,11 @@ func (o *AssetUsernamePasswordCredential) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "asset.UsernamePasswordCredential" of the ClassId field. +func (o *AssetUsernamePasswordCredential) GetDefaultClassId() interface{} { + return "asset.UsernamePasswordCredential" +} + // GetObjectType returns the ObjectType field value func (o *AssetUsernamePasswordCredential) GetObjectType() string { if o == nil { @@ -110,6 +115,11 @@ func (o *AssetUsernamePasswordCredential) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "asset.UsernamePasswordCredential" of the ObjectType field. +func (o *AssetUsernamePasswordCredential) GetDefaultObjectType() interface{} { + return "asset.UsernamePasswordCredential" +} + // GetIsPasswordSet returns the IsPasswordSet field value if set, zero value otherwise. func (o *AssetUsernamePasswordCredential) GetIsPasswordSet() bool { if o == nil || IsNil(o.IsPasswordSet) { @@ -224,7 +234,13 @@ func (o AssetUsernamePasswordCredential) ToMap() (map[string]interface{}, error) if errAssetCredential != nil { return map[string]interface{}{}, errAssetCredential } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.IsPasswordSet) { toSerialize["IsPasswordSet"] = o.IsPasswordSet @@ -252,6 +268,13 @@ func (o *AssetUsernamePasswordCredential) UnmarshalJSON(data []byte) (err error) "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -261,11 +284,23 @@ func (o *AssetUsernamePasswordCredential) UnmarshalJSON(data []byte) (err error) } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type AssetUsernamePasswordCredentialWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_asset_virtualization_amazon_web_service_options.go b/model_asset_virtualization_amazon_web_service_options.go index 97529177b3..b3f1601cbb 100644 --- a/model_asset_virtualization_amazon_web_service_options.go +++ b/model_asset_virtualization_amazon_web_service_options.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -83,6 +83,13 @@ func (o *AssetVirtualizationAmazonWebServiceOptions) UnmarshalJSON(data []byte) "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -92,11 +99,23 @@ func (o *AssetVirtualizationAmazonWebServiceOptions) UnmarshalJSON(data []byte) } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type AssetVirtualizationAmazonWebServiceOptionsWithoutEmbeddedStruct struct { } diff --git a/model_asset_virtualization_cloud_options.go b/model_asset_virtualization_cloud_options.go index 0152fe4501..541db16023 100644 --- a/model_asset_virtualization_cloud_options.go +++ b/model_asset_virtualization_cloud_options.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -83,6 +83,11 @@ func (o *AssetVirtualizationCloudOptions) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "asset.VirtualizationAmazonWebServiceOptions" of the ClassId field. +func (o *AssetVirtualizationCloudOptions) GetDefaultClassId() interface{} { + return "asset.VirtualizationAmazonWebServiceOptions" +} + // GetObjectType returns the ObjectType field value func (o *AssetVirtualizationCloudOptions) GetObjectType() string { if o == nil { @@ -107,6 +112,11 @@ func (o *AssetVirtualizationCloudOptions) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "asset.VirtualizationAmazonWebServiceOptions" of the ObjectType field. +func (o *AssetVirtualizationCloudOptions) GetDefaultObjectType() interface{} { + return "asset.VirtualizationAmazonWebServiceOptions" +} + // GetManagedRegions returns the ManagedRegions field value if set, zero value otherwise (both if not set or set to explicit null). func (o *AssetVirtualizationCloudOptions) GetManagedRegions() []MoMoRef { if o == nil { @@ -128,7 +138,7 @@ func (o *AssetVirtualizationCloudOptions) GetManagedRegionsOk() ([]MoMoRef, bool // HasManagedRegions returns a boolean if a field has been set. func (o *AssetVirtualizationCloudOptions) HasManagedRegions() bool { - if o != nil && IsNil(o.ManagedRegions) { + if o != nil && !IsNil(o.ManagedRegions) { return true } @@ -190,7 +200,13 @@ func (o AssetVirtualizationCloudOptions) ToMap() (map[string]interface{}, error) if errAssetServiceOptions != nil { return map[string]interface{}{}, errAssetServiceOptions } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.ManagedRegions != nil { toSerialize["ManagedRegions"] = o.ManagedRegions @@ -215,6 +231,13 @@ func (o *AssetVirtualizationCloudOptions) UnmarshalJSON(data []byte) (err error) "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -224,11 +247,23 @@ func (o *AssetVirtualizationCloudOptions) UnmarshalJSON(data []byte) (err error) } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type AssetVirtualizationCloudOptionsWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. The enum values provides the list of concrete types that can be instantiated from this abstract type. ClassId string `json:"ClassId"` diff --git a/model_asset_virtualization_service.go b/model_asset_virtualization_service.go index 7054a2ff93..84b69bddfe 100644 --- a/model_asset_virtualization_service.go +++ b/model_asset_virtualization_service.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -83,6 +83,10 @@ func (o *AssetVirtualizationService) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -92,11 +96,23 @@ func (o *AssetVirtualizationService) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type AssetVirtualizationServiceWithoutEmbeddedStruct struct { } diff --git a/model_asset_vm_host.go b/model_asset_vm_host.go index 8265cfaa45..22d0d23b93 100644 --- a/model_asset_vm_host.go +++ b/model_asset_vm_host.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -88,6 +88,11 @@ func (o *AssetVmHost) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "asset.VmHost" of the ClassId field. +func (o *AssetVmHost) GetDefaultClassId() interface{} { + return "asset.VmHost" +} + // GetObjectType returns the ObjectType field value func (o *AssetVmHost) GetObjectType() string { if o == nil { @@ -112,6 +117,11 @@ func (o *AssetVmHost) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "asset.VmHost" of the ObjectType field. +func (o *AssetVmHost) GetDefaultObjectType() interface{} { + return "asset.VmHost" +} + // GetAccountMoid returns the AccountMoid field value if set, zero value otherwise. func (o *AssetVmHost) GetAccountMoid() string { if o == nil || IsNil(o.AccountMoid) { @@ -258,7 +268,13 @@ func (o AssetVmHost) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.AccountMoid) { toSerialize["AccountMoid"] = o.AccountMoid @@ -289,6 +305,13 @@ func (o *AssetVmHost) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -298,11 +321,23 @@ func (o *AssetVmHost) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type AssetVmHostWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_asset_workload_optimizer_amazon_web_services_billing_options.go b/model_asset_workload_optimizer_amazon_web_services_billing_options.go index b1f2a2955d..fdd013fc4f 100644 --- a/model_asset_workload_optimizer_amazon_web_services_billing_options.go +++ b/model_asset_workload_optimizer_amazon_web_services_billing_options.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -86,6 +86,11 @@ func (o *AssetWorkloadOptimizerAmazonWebServicesBillingOptions) SetClassId(v str o.ClassId = v } +// GetDefaultClassId returns the default value "asset.WorkloadOptimizerAmazonWebServicesBillingOptions" of the ClassId field. +func (o *AssetWorkloadOptimizerAmazonWebServicesBillingOptions) GetDefaultClassId() interface{} { + return "asset.WorkloadOptimizerAmazonWebServicesBillingOptions" +} + // GetObjectType returns the ObjectType field value func (o *AssetWorkloadOptimizerAmazonWebServicesBillingOptions) GetObjectType() string { if o == nil { @@ -110,6 +115,11 @@ func (o *AssetWorkloadOptimizerAmazonWebServicesBillingOptions) SetObjectType(v o.ObjectType = v } +// GetDefaultObjectType returns the default value "asset.WorkloadOptimizerAmazonWebServicesBillingOptions" of the ObjectType field. +func (o *AssetWorkloadOptimizerAmazonWebServicesBillingOptions) GetDefaultObjectType() interface{} { + return "asset.WorkloadOptimizerAmazonWebServicesBillingOptions" +} + // GetCostAndUsageReportBucket returns the CostAndUsageReportBucket field value if set, zero value otherwise. func (o *AssetWorkloadOptimizerAmazonWebServicesBillingOptions) GetCostAndUsageReportBucket() string { if o == nil || IsNil(o.CostAndUsageReportBucket) { @@ -224,7 +234,13 @@ func (o AssetWorkloadOptimizerAmazonWebServicesBillingOptions) ToMap() (map[stri if errAssetServiceOptions != nil { return map[string]interface{}{}, errAssetServiceOptions } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.CostAndUsageReportBucket) { toSerialize["CostAndUsageReportBucket"] = o.CostAndUsageReportBucket @@ -252,6 +268,13 @@ func (o *AssetWorkloadOptimizerAmazonWebServicesBillingOptions) UnmarshalJSON(da "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -261,11 +284,23 @@ func (o *AssetWorkloadOptimizerAmazonWebServicesBillingOptions) UnmarshalJSON(da } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type AssetWorkloadOptimizerAmazonWebServicesBillingOptionsWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_asset_workload_optimizer_dynatrace_options.go b/model_asset_workload_optimizer_dynatrace_options.go index 3a62db457b..3fe8d6dc77 100644 --- a/model_asset_workload_optimizer_dynatrace_options.go +++ b/model_asset_workload_optimizer_dynatrace_options.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -90,6 +90,11 @@ func (o *AssetWorkloadOptimizerDynatraceOptions) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "asset.WorkloadOptimizerDynatraceOptions" of the ClassId field. +func (o *AssetWorkloadOptimizerDynatraceOptions) GetDefaultClassId() interface{} { + return "asset.WorkloadOptimizerDynatraceOptions" +} + // GetObjectType returns the ObjectType field value func (o *AssetWorkloadOptimizerDynatraceOptions) GetObjectType() string { if o == nil { @@ -114,6 +119,11 @@ func (o *AssetWorkloadOptimizerDynatraceOptions) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "asset.WorkloadOptimizerDynatraceOptions" of the ObjectType field. +func (o *AssetWorkloadOptimizerDynatraceOptions) GetDefaultObjectType() interface{} { + return "asset.WorkloadOptimizerDynatraceOptions" +} + // GetCollectTagInfo returns the CollectTagInfo field value if set, zero value otherwise. func (o *AssetWorkloadOptimizerDynatraceOptions) GetCollectTagInfo() bool { if o == nil || IsNil(o.CollectTagInfo) { @@ -228,7 +238,13 @@ func (o AssetWorkloadOptimizerDynatraceOptions) ToMap() (map[string]interface{}, if errAssetServiceOptions != nil { return map[string]interface{}{}, errAssetServiceOptions } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.CollectTagInfo) { toSerialize["CollectTagInfo"] = o.CollectTagInfo @@ -256,6 +272,13 @@ func (o *AssetWorkloadOptimizerDynatraceOptions) UnmarshalJSON(data []byte) (err "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -265,11 +288,23 @@ func (o *AssetWorkloadOptimizerDynatraceOptions) UnmarshalJSON(data []byte) (err } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type AssetWorkloadOptimizerDynatraceOptionsWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_asset_workload_optimizer_google_cloud_platform_billing_options.go b/model_asset_workload_optimizer_google_cloud_platform_billing_options.go index 581e929732..6f45d23085 100644 --- a/model_asset_workload_optimizer_google_cloud_platform_billing_options.go +++ b/model_asset_workload_optimizer_google_cloud_platform_billing_options.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -94,6 +94,11 @@ func (o *AssetWorkloadOptimizerGoogleCloudPlatformBillingOptions) SetClassId(v s o.ClassId = v } +// GetDefaultClassId returns the default value "asset.WorkloadOptimizerGoogleCloudPlatformBillingOptions" of the ClassId field. +func (o *AssetWorkloadOptimizerGoogleCloudPlatformBillingOptions) GetDefaultClassId() interface{} { + return "asset.WorkloadOptimizerGoogleCloudPlatformBillingOptions" +} + // GetObjectType returns the ObjectType field value func (o *AssetWorkloadOptimizerGoogleCloudPlatformBillingOptions) GetObjectType() string { if o == nil { @@ -118,6 +123,11 @@ func (o *AssetWorkloadOptimizerGoogleCloudPlatformBillingOptions) SetObjectType( o.ObjectType = v } +// GetDefaultObjectType returns the default value "asset.WorkloadOptimizerGoogleCloudPlatformBillingOptions" of the ObjectType field. +func (o *AssetWorkloadOptimizerGoogleCloudPlatformBillingOptions) GetDefaultObjectType() interface{} { + return "asset.WorkloadOptimizerGoogleCloudPlatformBillingOptions" +} + // GetBillingAccountId returns the BillingAccountId field value if set, zero value otherwise. func (o *AssetWorkloadOptimizerGoogleCloudPlatformBillingOptions) GetBillingAccountId() string { if o == nil || IsNil(o.BillingAccountId) { @@ -360,7 +370,13 @@ func (o AssetWorkloadOptimizerGoogleCloudPlatformBillingOptions) ToMap() (map[st if errAssetServiceOptions != nil { return map[string]interface{}{}, errAssetServiceOptions } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.BillingAccountId) { toSerialize["BillingAccountId"] = o.BillingAccountId @@ -400,6 +416,13 @@ func (o *AssetWorkloadOptimizerGoogleCloudPlatformBillingOptions) UnmarshalJSON( "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -409,11 +432,23 @@ func (o *AssetWorkloadOptimizerGoogleCloudPlatformBillingOptions) UnmarshalJSON( } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type AssetWorkloadOptimizerGoogleCloudPlatformBillingOptionsWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_asset_workload_optimizer_hyperv_options.go b/model_asset_workload_optimizer_hyperv_options.go index d6eb8b4f0d..965ca75e61 100644 --- a/model_asset_workload_optimizer_hyperv_options.go +++ b/model_asset_workload_optimizer_hyperv_options.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -84,6 +84,11 @@ func (o *AssetWorkloadOptimizerHypervOptions) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "asset.WorkloadOptimizerHypervOptions" of the ClassId field. +func (o *AssetWorkloadOptimizerHypervOptions) GetDefaultClassId() interface{} { + return "asset.WorkloadOptimizerHypervOptions" +} + // GetObjectType returns the ObjectType field value func (o *AssetWorkloadOptimizerHypervOptions) GetObjectType() string { if o == nil { @@ -108,6 +113,11 @@ func (o *AssetWorkloadOptimizerHypervOptions) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "asset.WorkloadOptimizerHypervOptions" of the ObjectType field. +func (o *AssetWorkloadOptimizerHypervOptions) GetDefaultObjectType() interface{} { + return "asset.WorkloadOptimizerHypervOptions" +} + // GetDiscoverHostCluster returns the DiscoverHostCluster field value if set, zero value otherwise. func (o *AssetWorkloadOptimizerHypervOptions) GetDiscoverHostCluster() bool { if o == nil || IsNil(o.DiscoverHostCluster) { @@ -190,7 +200,13 @@ func (o AssetWorkloadOptimizerHypervOptions) ToMap() (map[string]interface{}, er if errAssetServiceOptions != nil { return map[string]interface{}{}, errAssetServiceOptions } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.DiscoverHostCluster) { toSerialize["DiscoverHostCluster"] = o.DiscoverHostCluster @@ -215,6 +231,13 @@ func (o *AssetWorkloadOptimizerHypervOptions) UnmarshalJSON(data []byte) (err er "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -224,11 +247,23 @@ func (o *AssetWorkloadOptimizerHypervOptions) UnmarshalJSON(data []byte) (err er } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type AssetWorkloadOptimizerHypervOptionsWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_asset_workload_optimizer_microsoft_azure_application_insights_options.go b/model_asset_workload_optimizer_microsoft_azure_application_insights_options.go index 64eed19060..3321f4798d 100644 --- a/model_asset_workload_optimizer_microsoft_azure_application_insights_options.go +++ b/model_asset_workload_optimizer_microsoft_azure_application_insights_options.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -88,6 +88,11 @@ func (o *AssetWorkloadOptimizerMicrosoftAzureApplicationInsightsOptions) SetClas o.ClassId = v } +// GetDefaultClassId returns the default value "asset.WorkloadOptimizerMicrosoftAzureApplicationInsightsOptions" of the ClassId field. +func (o *AssetWorkloadOptimizerMicrosoftAzureApplicationInsightsOptions) GetDefaultClassId() interface{} { + return "asset.WorkloadOptimizerMicrosoftAzureApplicationInsightsOptions" +} + // GetObjectType returns the ObjectType field value func (o *AssetWorkloadOptimizerMicrosoftAzureApplicationInsightsOptions) GetObjectType() string { if o == nil { @@ -112,6 +117,11 @@ func (o *AssetWorkloadOptimizerMicrosoftAzureApplicationInsightsOptions) SetObje o.ObjectType = v } +// GetDefaultObjectType returns the default value "asset.WorkloadOptimizerMicrosoftAzureApplicationInsightsOptions" of the ObjectType field. +func (o *AssetWorkloadOptimizerMicrosoftAzureApplicationInsightsOptions) GetDefaultObjectType() interface{} { + return "asset.WorkloadOptimizerMicrosoftAzureApplicationInsightsOptions" +} + // GetEnrollmentNumber returns the EnrollmentNumber field value if set, zero value otherwise. func (o *AssetWorkloadOptimizerMicrosoftAzureApplicationInsightsOptions) GetEnrollmentNumber() string { if o == nil || IsNil(o.EnrollmentNumber) { @@ -258,7 +268,13 @@ func (o AssetWorkloadOptimizerMicrosoftAzureApplicationInsightsOptions) ToMap() if errAssetServiceOptions != nil { return map[string]interface{}{}, errAssetServiceOptions } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.EnrollmentNumber) { toSerialize["EnrollmentNumber"] = o.EnrollmentNumber @@ -289,6 +305,13 @@ func (o *AssetWorkloadOptimizerMicrosoftAzureApplicationInsightsOptions) Unmarsh "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -298,11 +321,23 @@ func (o *AssetWorkloadOptimizerMicrosoftAzureApplicationInsightsOptions) Unmarsh } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type AssetWorkloadOptimizerMicrosoftAzureApplicationInsightsOptionsWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_asset_workload_optimizer_microsoft_azure_billing_options.go b/model_asset_workload_optimizer_microsoft_azure_billing_options.go index 9c5e01bd6a..68b7adf1a2 100644 --- a/model_asset_workload_optimizer_microsoft_azure_billing_options.go +++ b/model_asset_workload_optimizer_microsoft_azure_billing_options.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -92,6 +92,11 @@ func (o *AssetWorkloadOptimizerMicrosoftAzureBillingOptions) SetClassId(v string o.ClassId = v } +// GetDefaultClassId returns the default value "asset.WorkloadOptimizerMicrosoftAzureBillingOptions" of the ClassId field. +func (o *AssetWorkloadOptimizerMicrosoftAzureBillingOptions) GetDefaultClassId() interface{} { + return "asset.WorkloadOptimizerMicrosoftAzureBillingOptions" +} + // GetObjectType returns the ObjectType field value func (o *AssetWorkloadOptimizerMicrosoftAzureBillingOptions) GetObjectType() string { if o == nil { @@ -116,6 +121,11 @@ func (o *AssetWorkloadOptimizerMicrosoftAzureBillingOptions) SetObjectType(v str o.ObjectType = v } +// GetDefaultObjectType returns the default value "asset.WorkloadOptimizerMicrosoftAzureBillingOptions" of the ObjectType field. +func (o *AssetWorkloadOptimizerMicrosoftAzureBillingOptions) GetDefaultObjectType() interface{} { + return "asset.WorkloadOptimizerMicrosoftAzureBillingOptions" +} + // GetBillingAccountId returns the BillingAccountId field value if set, zero value otherwise. func (o *AssetWorkloadOptimizerMicrosoftAzureBillingOptions) GetBillingAccountId() string { if o == nil || IsNil(o.BillingAccountId) { @@ -262,7 +272,13 @@ func (o AssetWorkloadOptimizerMicrosoftAzureBillingOptions) ToMap() (map[string] if errAssetServiceOptions != nil { return map[string]interface{}{}, errAssetServiceOptions } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.BillingAccountId) { toSerialize["BillingAccountId"] = o.BillingAccountId @@ -293,6 +309,13 @@ func (o *AssetWorkloadOptimizerMicrosoftAzureBillingOptions) UnmarshalJSON(data "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -302,11 +325,23 @@ func (o *AssetWorkloadOptimizerMicrosoftAzureBillingOptions) UnmarshalJSON(data } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type AssetWorkloadOptimizerMicrosoftAzureBillingOptionsWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_asset_workload_optimizer_microsoft_azure_enterprise_agreement_options.go b/model_asset_workload_optimizer_microsoft_azure_enterprise_agreement_options.go index 0d7846a7a6..e4a95e45b9 100644 --- a/model_asset_workload_optimizer_microsoft_azure_enterprise_agreement_options.go +++ b/model_asset_workload_optimizer_microsoft_azure_enterprise_agreement_options.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -82,6 +82,11 @@ func (o *AssetWorkloadOptimizerMicrosoftAzureEnterpriseAgreementOptions) SetClas o.ClassId = v } +// GetDefaultClassId returns the default value "asset.WorkloadOptimizerMicrosoftAzureEnterpriseAgreementOptions" of the ClassId field. +func (o *AssetWorkloadOptimizerMicrosoftAzureEnterpriseAgreementOptions) GetDefaultClassId() interface{} { + return "asset.WorkloadOptimizerMicrosoftAzureEnterpriseAgreementOptions" +} + // GetObjectType returns the ObjectType field value func (o *AssetWorkloadOptimizerMicrosoftAzureEnterpriseAgreementOptions) GetObjectType() string { if o == nil { @@ -106,6 +111,11 @@ func (o *AssetWorkloadOptimizerMicrosoftAzureEnterpriseAgreementOptions) SetObje o.ObjectType = v } +// GetDefaultObjectType returns the default value "asset.WorkloadOptimizerMicrosoftAzureEnterpriseAgreementOptions" of the ObjectType field. +func (o *AssetWorkloadOptimizerMicrosoftAzureEnterpriseAgreementOptions) GetDefaultObjectType() interface{} { + return "asset.WorkloadOptimizerMicrosoftAzureEnterpriseAgreementOptions" +} + // GetEnrollmentNumber returns the EnrollmentNumber field value if set, zero value otherwise. func (o *AssetWorkloadOptimizerMicrosoftAzureEnterpriseAgreementOptions) GetEnrollmentNumber() string { if o == nil || IsNil(o.EnrollmentNumber) { @@ -156,7 +166,13 @@ func (o AssetWorkloadOptimizerMicrosoftAzureEnterpriseAgreementOptions) ToMap() if errAssetServiceOptions != nil { return map[string]interface{}{}, errAssetServiceOptions } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.EnrollmentNumber) { toSerialize["EnrollmentNumber"] = o.EnrollmentNumber @@ -178,6 +194,13 @@ func (o *AssetWorkloadOptimizerMicrosoftAzureEnterpriseAgreementOptions) Unmarsh "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -187,11 +210,23 @@ func (o *AssetWorkloadOptimizerMicrosoftAzureEnterpriseAgreementOptions) Unmarsh } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type AssetWorkloadOptimizerMicrosoftAzureEnterpriseAgreementOptionsWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_asset_workload_optimizer_microsoft_azure_service_principal_options.go b/model_asset_workload_optimizer_microsoft_azure_service_principal_options.go index 09002c4b9d..04d7792b2f 100644 --- a/model_asset_workload_optimizer_microsoft_azure_service_principal_options.go +++ b/model_asset_workload_optimizer_microsoft_azure_service_principal_options.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -88,6 +88,11 @@ func (o *AssetWorkloadOptimizerMicrosoftAzureServicePrincipalOptions) SetClassId o.ClassId = v } +// GetDefaultClassId returns the default value "asset.WorkloadOptimizerMicrosoftAzureServicePrincipalOptions" of the ClassId field. +func (o *AssetWorkloadOptimizerMicrosoftAzureServicePrincipalOptions) GetDefaultClassId() interface{} { + return "asset.WorkloadOptimizerMicrosoftAzureServicePrincipalOptions" +} + // GetObjectType returns the ObjectType field value func (o *AssetWorkloadOptimizerMicrosoftAzureServicePrincipalOptions) GetObjectType() string { if o == nil { @@ -112,6 +117,11 @@ func (o *AssetWorkloadOptimizerMicrosoftAzureServicePrincipalOptions) SetObjectT o.ObjectType = v } +// GetDefaultObjectType returns the default value "asset.WorkloadOptimizerMicrosoftAzureServicePrincipalOptions" of the ObjectType field. +func (o *AssetWorkloadOptimizerMicrosoftAzureServicePrincipalOptions) GetDefaultObjectType() interface{} { + return "asset.WorkloadOptimizerMicrosoftAzureServicePrincipalOptions" +} + // GetAzureCloudType returns the AzureCloudType field value if set, zero value otherwise. func (o *AssetWorkloadOptimizerMicrosoftAzureServicePrincipalOptions) GetAzureCloudType() string { if o == nil || IsNil(o.AzureCloudType) { @@ -194,7 +204,13 @@ func (o AssetWorkloadOptimizerMicrosoftAzureServicePrincipalOptions) ToMap() (ma if errAssetServiceOptions != nil { return map[string]interface{}{}, errAssetServiceOptions } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.AzureCloudType) { toSerialize["AzureCloudType"] = o.AzureCloudType @@ -219,6 +235,13 @@ func (o *AssetWorkloadOptimizerMicrosoftAzureServicePrincipalOptions) UnmarshalJ "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -228,11 +251,23 @@ func (o *AssetWorkloadOptimizerMicrosoftAzureServicePrincipalOptions) UnmarshalJ } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type AssetWorkloadOptimizerMicrosoftAzureServicePrincipalOptionsWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_asset_workload_optimizer_microsoft_sql_server_options.go b/model_asset_workload_optimizer_microsoft_sql_server_options.go index cf51924ad5..61d51e9ebd 100644 --- a/model_asset_workload_optimizer_microsoft_sql_server_options.go +++ b/model_asset_workload_optimizer_microsoft_sql_server_options.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -84,6 +84,11 @@ func (o *AssetWorkloadOptimizerMicrosoftSqlServerOptions) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "asset.WorkloadOptimizerMicrosoftSqlServerOptions" of the ClassId field. +func (o *AssetWorkloadOptimizerMicrosoftSqlServerOptions) GetDefaultClassId() interface{} { + return "asset.WorkloadOptimizerMicrosoftSqlServerOptions" +} + // GetObjectType returns the ObjectType field value func (o *AssetWorkloadOptimizerMicrosoftSqlServerOptions) GetObjectType() string { if o == nil { @@ -108,6 +113,11 @@ func (o *AssetWorkloadOptimizerMicrosoftSqlServerOptions) SetObjectType(v string o.ObjectType = v } +// GetDefaultObjectType returns the default value "asset.WorkloadOptimizerMicrosoftSqlServerOptions" of the ObjectType field. +func (o *AssetWorkloadOptimizerMicrosoftSqlServerOptions) GetDefaultObjectType() interface{} { + return "asset.WorkloadOptimizerMicrosoftSqlServerOptions" +} + // GetBrowserServicePort returns the BrowserServicePort field value if set, zero value otherwise. func (o *AssetWorkloadOptimizerMicrosoftSqlServerOptions) GetBrowserServicePort() int64 { if o == nil || IsNil(o.BrowserServicePort) { @@ -190,7 +200,13 @@ func (o AssetWorkloadOptimizerMicrosoftSqlServerOptions) ToMap() (map[string]int if errAssetServiceOptions != nil { return map[string]interface{}{}, errAssetServiceOptions } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.BrowserServicePort) { toSerialize["BrowserServicePort"] = o.BrowserServicePort @@ -215,6 +231,13 @@ func (o *AssetWorkloadOptimizerMicrosoftSqlServerOptions) UnmarshalJSON(data []b "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -224,11 +247,23 @@ func (o *AssetWorkloadOptimizerMicrosoftSqlServerOptions) UnmarshalJSON(data []b } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type AssetWorkloadOptimizerMicrosoftSqlServerOptionsWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_asset_workload_optimizer_new_relic_options.go b/model_asset_workload_optimizer_new_relic_options.go index 3d3600421d..e691b9b5f3 100644 --- a/model_asset_workload_optimizer_new_relic_options.go +++ b/model_asset_workload_optimizer_new_relic_options.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -96,6 +96,11 @@ func (o *AssetWorkloadOptimizerNewRelicOptions) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "asset.WorkloadOptimizerNewRelicOptions" of the ClassId field. +func (o *AssetWorkloadOptimizerNewRelicOptions) GetDefaultClassId() interface{} { + return "asset.WorkloadOptimizerNewRelicOptions" +} + // GetObjectType returns the ObjectType field value func (o *AssetWorkloadOptimizerNewRelicOptions) GetObjectType() string { if o == nil { @@ -120,6 +125,11 @@ func (o *AssetWorkloadOptimizerNewRelicOptions) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "asset.WorkloadOptimizerNewRelicOptions" of the ObjectType field. +func (o *AssetWorkloadOptimizerNewRelicOptions) GetDefaultObjectType() interface{} { + return "asset.WorkloadOptimizerNewRelicOptions" +} + // GetAccountId returns the AccountId field value if set, zero value otherwise. func (o *AssetWorkloadOptimizerNewRelicOptions) GetAccountId() string { if o == nil || IsNil(o.AccountId) { @@ -266,7 +276,13 @@ func (o AssetWorkloadOptimizerNewRelicOptions) ToMap() (map[string]interface{}, if errAssetServiceOptions != nil { return map[string]interface{}{}, errAssetServiceOptions } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.AccountId) { toSerialize["AccountId"] = o.AccountId @@ -297,6 +313,13 @@ func (o *AssetWorkloadOptimizerNewRelicOptions) UnmarshalJSON(data []byte) (err "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -306,11 +329,23 @@ func (o *AssetWorkloadOptimizerNewRelicOptions) UnmarshalJSON(data []byte) (err } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type AssetWorkloadOptimizerNewRelicOptionsWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_asset_workload_optimizer_open_stack_options.go b/model_asset_workload_optimizer_open_stack_options.go index fade3e65c0..113ece4f30 100644 --- a/model_asset_workload_optimizer_open_stack_options.go +++ b/model_asset_workload_optimizer_open_stack_options.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -84,6 +84,11 @@ func (o *AssetWorkloadOptimizerOpenStackOptions) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "asset.WorkloadOptimizerOpenStackOptions" of the ClassId field. +func (o *AssetWorkloadOptimizerOpenStackOptions) GetDefaultClassId() interface{} { + return "asset.WorkloadOptimizerOpenStackOptions" +} + // GetObjectType returns the ObjectType field value func (o *AssetWorkloadOptimizerOpenStackOptions) GetObjectType() string { if o == nil { @@ -108,6 +113,11 @@ func (o *AssetWorkloadOptimizerOpenStackOptions) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "asset.WorkloadOptimizerOpenStackOptions" of the ObjectType field. +func (o *AssetWorkloadOptimizerOpenStackOptions) GetDefaultObjectType() interface{} { + return "asset.WorkloadOptimizerOpenStackOptions" +} + // GetDomain returns the Domain field value if set, zero value otherwise. func (o *AssetWorkloadOptimizerOpenStackOptions) GetDomain() string { if o == nil || IsNil(o.Domain) { @@ -190,7 +200,13 @@ func (o AssetWorkloadOptimizerOpenStackOptions) ToMap() (map[string]interface{}, if errAssetServiceOptions != nil { return map[string]interface{}{}, errAssetServiceOptions } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Domain) { toSerialize["Domain"] = o.Domain @@ -215,6 +231,13 @@ func (o *AssetWorkloadOptimizerOpenStackOptions) UnmarshalJSON(data []byte) (err "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -224,11 +247,23 @@ func (o *AssetWorkloadOptimizerOpenStackOptions) UnmarshalJSON(data []byte) (err } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type AssetWorkloadOptimizerOpenStackOptionsWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_asset_workload_optimizer_oracle_database_server_options.go b/model_asset_workload_optimizer_oracle_database_server_options.go index 0b99c367c0..a14213dbeb 100644 --- a/model_asset_workload_optimizer_oracle_database_server_options.go +++ b/model_asset_workload_optimizer_oracle_database_server_options.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -82,6 +82,11 @@ func (o *AssetWorkloadOptimizerOracleDatabaseServerOptions) SetClassId(v string) o.ClassId = v } +// GetDefaultClassId returns the default value "asset.WorkloadOptimizerOracleDatabaseServerOptions" of the ClassId field. +func (o *AssetWorkloadOptimizerOracleDatabaseServerOptions) GetDefaultClassId() interface{} { + return "asset.WorkloadOptimizerOracleDatabaseServerOptions" +} + // GetObjectType returns the ObjectType field value func (o *AssetWorkloadOptimizerOracleDatabaseServerOptions) GetObjectType() string { if o == nil { @@ -106,6 +111,11 @@ func (o *AssetWorkloadOptimizerOracleDatabaseServerOptions) SetObjectType(v stri o.ObjectType = v } +// GetDefaultObjectType returns the default value "asset.WorkloadOptimizerOracleDatabaseServerOptions" of the ObjectType field. +func (o *AssetWorkloadOptimizerOracleDatabaseServerOptions) GetDefaultObjectType() interface{} { + return "asset.WorkloadOptimizerOracleDatabaseServerOptions" +} + // GetDatabaseId returns the DatabaseId field value if set, zero value otherwise. func (o *AssetWorkloadOptimizerOracleDatabaseServerOptions) GetDatabaseId() string { if o == nil || IsNil(o.DatabaseId) { @@ -156,7 +166,13 @@ func (o AssetWorkloadOptimizerOracleDatabaseServerOptions) ToMap() (map[string]i if errAssetServiceOptions != nil { return map[string]interface{}{}, errAssetServiceOptions } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.DatabaseId) { toSerialize["DatabaseId"] = o.DatabaseId @@ -178,6 +194,13 @@ func (o *AssetWorkloadOptimizerOracleDatabaseServerOptions) UnmarshalJSON(data [ "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -187,11 +210,23 @@ func (o *AssetWorkloadOptimizerOracleDatabaseServerOptions) UnmarshalJSON(data [ } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type AssetWorkloadOptimizerOracleDatabaseServerOptionsWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_asset_workload_optimizer_red_hat_open_stack_options.go b/model_asset_workload_optimizer_red_hat_open_stack_options.go index 5f2f8c6643..9d031b90e9 100644 --- a/model_asset_workload_optimizer_red_hat_open_stack_options.go +++ b/model_asset_workload_optimizer_red_hat_open_stack_options.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -84,6 +84,11 @@ func (o *AssetWorkloadOptimizerRedHatOpenStackOptions) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "asset.WorkloadOptimizerRedHatOpenStackOptions" of the ClassId field. +func (o *AssetWorkloadOptimizerRedHatOpenStackOptions) GetDefaultClassId() interface{} { + return "asset.WorkloadOptimizerRedHatOpenStackOptions" +} + // GetObjectType returns the ObjectType field value func (o *AssetWorkloadOptimizerRedHatOpenStackOptions) GetObjectType() string { if o == nil { @@ -108,6 +113,11 @@ func (o *AssetWorkloadOptimizerRedHatOpenStackOptions) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "asset.WorkloadOptimizerRedHatOpenStackOptions" of the ObjectType field. +func (o *AssetWorkloadOptimizerRedHatOpenStackOptions) GetDefaultObjectType() interface{} { + return "asset.WorkloadOptimizerRedHatOpenStackOptions" +} + // GetDomain returns the Domain field value if set, zero value otherwise. func (o *AssetWorkloadOptimizerRedHatOpenStackOptions) GetDomain() string { if o == nil || IsNil(o.Domain) { @@ -190,7 +200,13 @@ func (o AssetWorkloadOptimizerRedHatOpenStackOptions) ToMap() (map[string]interf if errAssetServiceOptions != nil { return map[string]interface{}{}, errAssetServiceOptions } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Domain) { toSerialize["Domain"] = o.Domain @@ -215,6 +231,13 @@ func (o *AssetWorkloadOptimizerRedHatOpenStackOptions) UnmarshalJSON(data []byte "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -224,11 +247,23 @@ func (o *AssetWorkloadOptimizerRedHatOpenStackOptions) UnmarshalJSON(data []byte } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type AssetWorkloadOptimizerRedHatOpenStackOptionsWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_asset_workload_optimizer_service.go b/model_asset_workload_optimizer_service.go index 75b1d9d778..33ffc0386f 100644 --- a/model_asset_workload_optimizer_service.go +++ b/model_asset_workload_optimizer_service.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -83,6 +83,10 @@ func (o *AssetWorkloadOptimizerService) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -92,11 +96,23 @@ func (o *AssetWorkloadOptimizerService) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type AssetWorkloadOptimizerServiceWithoutEmbeddedStruct struct { } diff --git a/model_asset_workload_optimizer_vmware_vcenter_options.go b/model_asset_workload_optimizer_vmware_vcenter_options.go index 2b53ef2a39..614bec41b8 100644 --- a/model_asset_workload_optimizer_vmware_vcenter_options.go +++ b/model_asset_workload_optimizer_vmware_vcenter_options.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -84,6 +84,11 @@ func (o *AssetWorkloadOptimizerVmwareVcenterOptions) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "asset.WorkloadOptimizerVmwareVcenterOptions" of the ClassId field. +func (o *AssetWorkloadOptimizerVmwareVcenterOptions) GetDefaultClassId() interface{} { + return "asset.WorkloadOptimizerVmwareVcenterOptions" +} + // GetObjectType returns the ObjectType field value func (o *AssetWorkloadOptimizerVmwareVcenterOptions) GetObjectType() string { if o == nil { @@ -108,6 +113,11 @@ func (o *AssetWorkloadOptimizerVmwareVcenterOptions) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "asset.WorkloadOptimizerVmwareVcenterOptions" of the ObjectType field. +func (o *AssetWorkloadOptimizerVmwareVcenterOptions) GetDefaultObjectType() interface{} { + return "asset.WorkloadOptimizerVmwareVcenterOptions" +} + // GetDatastoreBrowsingEnabled returns the DatastoreBrowsingEnabled field value if set, zero value otherwise. func (o *AssetWorkloadOptimizerVmwareVcenterOptions) GetDatastoreBrowsingEnabled() bool { if o == nil || IsNil(o.DatastoreBrowsingEnabled) { @@ -190,7 +200,13 @@ func (o AssetWorkloadOptimizerVmwareVcenterOptions) ToMap() (map[string]interfac if errAssetServiceOptions != nil { return map[string]interface{}{}, errAssetServiceOptions } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.DatastoreBrowsingEnabled) { toSerialize["DatastoreBrowsingEnabled"] = o.DatastoreBrowsingEnabled @@ -215,6 +231,13 @@ func (o *AssetWorkloadOptimizerVmwareVcenterOptions) UnmarshalJSON(data []byte) "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -224,11 +247,23 @@ func (o *AssetWorkloadOptimizerVmwareVcenterOptions) UnmarshalJSON(data []byte) } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type AssetWorkloadOptimizerVmwareVcenterOptionsWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_bios_boot_device.go b/model_bios_boot_device.go index 3b7bfd4a1d..5277cccf10 100644 --- a/model_bios_boot_device.go +++ b/model_bios_boot_device.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -86,6 +86,11 @@ func (o *BiosBootDevice) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "bios.BootDevice" of the ClassId field. +func (o *BiosBootDevice) GetDefaultClassId() interface{} { + return "bios.BootDevice" +} + // GetObjectType returns the ObjectType field value func (o *BiosBootDevice) GetObjectType() string { if o == nil { @@ -110,6 +115,11 @@ func (o *BiosBootDevice) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "bios.BootDevice" of the ObjectType field. +func (o *BiosBootDevice) GetDefaultObjectType() interface{} { + return "bios.BootDevice" +} + // GetDeviceName returns the DeviceName field value if set, zero value otherwise. func (o *BiosBootDevice) GetDeviceName() string { if o == nil || IsNil(o.DeviceName) { @@ -278,7 +288,13 @@ func (o BiosBootDevice) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.DeviceName) { toSerialize["DeviceName"] = o.DeviceName @@ -309,6 +325,13 @@ func (o *BiosBootDevice) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -318,11 +341,23 @@ func (o *BiosBootDevice) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type BiosBootDeviceWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_bios_boot_device_list.go b/model_bios_boot_device_list.go index 6768ba4f9e..67ea26ecc2 100644 --- a/model_bios_boot_device_list.go +++ b/model_bios_boot_device_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *BiosBootDeviceList) GetResultsOk() ([]BiosBootDevice, bool) { // HasResults returns a boolean if a field has been set. func (o *BiosBootDeviceList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *BiosBootDeviceList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *BiosBootDeviceList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type BiosBootDeviceListWithoutEmbeddedStruct struct { // The total number of 'bios.BootDevice' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_bios_boot_device_relationship.go b/model_bios_boot_device_relationship.go index b34a572b1e..2d18b93119 100644 --- a/model_bios_boot_device_relationship.go +++ b/model_bios_boot_device_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_bios_boot_device_response.go b/model_bios_boot_device_response.go index 2734c2cf41..824bbfd33f 100644 --- a/model_bios_boot_device_response.go +++ b/model_bios_boot_device_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_bios_boot_mode.go b/model_bios_boot_mode.go index 44cc4f749e..f22d6c6af4 100644 --- a/model_bios_boot_mode.go +++ b/model_bios_boot_mode.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -86,6 +86,11 @@ func (o *BiosBootMode) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "bios.BootMode" of the ClassId field. +func (o *BiosBootMode) GetDefaultClassId() interface{} { + return "bios.BootMode" +} + // GetObjectType returns the ObjectType field value func (o *BiosBootMode) GetObjectType() string { if o == nil { @@ -110,6 +115,11 @@ func (o *BiosBootMode) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "bios.BootMode" of the ObjectType field. +func (o *BiosBootMode) GetDefaultObjectType() interface{} { + return "bios.BootMode" +} + // GetActualBootMode returns the ActualBootMode field value if set, zero value otherwise. func (o *BiosBootMode) GetActualBootMode() string { if o == nil || IsNil(o.ActualBootMode) { @@ -332,7 +342,13 @@ func (o BiosBootMode) ToMap() (map[string]interface{}, error) { if errInventoryBase != nil { return map[string]interface{}{}, errInventoryBase } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.ActualBootMode) { toSerialize["ActualBootMode"] = o.ActualBootMode @@ -366,6 +382,13 @@ func (o *BiosBootMode) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -375,11 +398,23 @@ func (o *BiosBootMode) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type BiosBootModeWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_bios_boot_mode_list.go b/model_bios_boot_mode_list.go index ce7d5c0b05..87258ee5a2 100644 --- a/model_bios_boot_mode_list.go +++ b/model_bios_boot_mode_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *BiosBootModeList) GetResultsOk() ([]BiosBootMode, bool) { // HasResults returns a boolean if a field has been set. func (o *BiosBootModeList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *BiosBootModeList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *BiosBootModeList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type BiosBootModeListWithoutEmbeddedStruct struct { // The total number of 'bios.BootMode' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_bios_boot_mode_relationship.go b/model_bios_boot_mode_relationship.go index 0625520b87..3265ce2eda 100644 --- a/model_bios_boot_mode_relationship.go +++ b/model_bios_boot_mode_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_bios_boot_mode_response.go b/model_bios_boot_mode_response.go index 77ca1e627b..cb091a0cb8 100644 --- a/model_bios_boot_mode_response.go +++ b/model_bios_boot_mode_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_bios_policy.go b/model_bios_policy.go index aa0120b13a..35c602929c 100644 --- a/model_bios_policy.go +++ b/model_bios_policy.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -93,7 +93,7 @@ type BiosPolicy struct { // BIOS Token for setting APBDIS configuration. * `platform-default` - Default value used by the platform for the BIOS setting. * `0` - Value - 0 for configuring CbsCmnApbdis token. * `1` - Value - 1 for configuring CbsCmnApbdis token. * `Auto` - Value - Auto for configuring CbsCmnApbdis token. CbsCmnApbdis *string `json:"CbsCmnApbdis,omitempty"` // BIOS Token for setting Fixed SOC P-State SP5 F19h configuration (0 - 2 P State). - CbsCmnApbdisDfPstateRs *string `json:"CbsCmnApbdisDfPstateRs,omitempty"` + CbsCmnApbdisDfPstateRs *string `json:"CbsCmnApbdisDfPstateRs,omitempty" validate:"regexp=^([0-2])$|^(platform-default)$"` // BIOS Token for setting AVX512 configuration. * `platform-default` - Default value used by the platform for the BIOS setting. * `Auto` - Value - Auto for configuring CbsCmnCpuAvx512 token. * `disabled` - Value - disabled for configuring CbsCmnCpuAvx512 token. * `enabled` - Value - enabled for configuring CbsCmnCpuAvx512 token. CbsCmnCpuAvx512 *string `json:"CbsCmnCpuAvx512,omitempty"` // BIOS Token for setting Core Performance Boost configuration. * `platform-default` - Default value used by the platform for the BIOS setting. * `Auto` - Value - Auto for configuring CbsCmnCpuCpb token. * `disabled` - Value - disabled for configuring CbsCmnCpuCpb token. @@ -107,7 +107,7 @@ type BiosPolicy struct { // BIOS Token for setting L2 Stream HW Prefetcher configuration. * `platform-default` - Default value used by the platform for the BIOS setting. * `Auto` - Value - Auto for configuring CbsCmnCpuL2streamHwPrefetcher token. * `disabled` - Value - disabled for configuring CbsCmnCpuL2streamHwPrefetcher token. * `enabled` - Value - enabled for configuring CbsCmnCpuL2streamHwPrefetcher token. CbsCmnCpuL2streamHwPrefetcher *string `json:"CbsCmnCpuL2streamHwPrefetcher,omitempty"` // BIOS Token for setting SEV-ES ASID Space Limit configuration (1 - 1007 ASIDs). - CbsCmnCpuSevAsidSpaceLimit *string `json:"CbsCmnCpuSevAsidSpaceLimit,omitempty"` + CbsCmnCpuSevAsidSpaceLimit *string `json:"CbsCmnCpuSevAsidSpaceLimit,omitempty" validate:"regexp=^([1-9]|[1-9]\\\\d|[1-9]\\\\d{2}|100[0-7])$|^(platform-default)$"` // BIOS Token for setting CPU SMEE configuration. * `platform-default` - Default value used by the platform for the BIOS setting. * `Auto` - Value - Auto for configuring CbsCmnCpuSmee token. * `disabled` - Value - disabled for configuring CbsCmnCpuSmee token. * `enabled` - Value - enabled for configuring CbsCmnCpuSmee token. CbsCmnCpuSmee *string `json:"CbsCmnCpuSmee,omitempty"` // BIOS Token for setting Streaming Stores Control configuration. * `platform-default` - Default value used by the platform for the BIOS setting. * `Auto` - Value - Auto for configuring CbsCmnCpuStreamingStoresCtrl token. * `disabled` - Value - disabled for configuring CbsCmnCpuStreamingStoresCtrl token. * `enabled` - Value - enabled for configuring CbsCmnCpuStreamingStoresCtrl token. @@ -167,7 +167,7 @@ type BiosPolicy struct { // BIOS Token for setting SNP Memory Coverage configuration. * `platform-default` - Default value used by the platform for the BIOS setting. * `Auto` - Value - Auto for configuring CbsDbgCpuSnpMemCover token. * `Custom` - Value - Custom for configuring CbsDbgCpuSnpMemCover token. * `disabled` - Value - disabled for configuring CbsDbgCpuSnpMemCover token. * `enabled` - Value - enabled for configuring CbsDbgCpuSnpMemCover token. CbsDbgCpuSnpMemCover *string `json:"CbsDbgCpuSnpMemCover,omitempty"` // BIOS Token for setting SNP Memory Size to Cover in MiB configuration (0 - 1048576 MiB). - CbsDbgCpuSnpMemSizeCover *string `json:"CbsDbgCpuSnpMemSizeCover,omitempty"` + CbsDbgCpuSnpMemSizeCover *string `json:"CbsDbgCpuSnpMemSizeCover,omitempty" validate:"regexp=^(\\\\d|[1-9]\\\\d|[1-9]\\\\d{2}|[1-9]\\\\d{3}|[1-9]\\\\d{4}|[1-9]\\\\d{5}|10[0-3]\\\\d{4}|104[0-7]\\\\d{3}|1048[0-4]\\\\d{2}|10485[0-6]\\\\d|104857[0-6])$|^(platform-default)$"` // BIOS Token for setting 4-link xGMI max speed configuration. * `platform-default` - Default value used by the platform for the BIOS setting. * `20Gbps` - Value - 20Gbps for configuring CbsDfCmn4linkMaxXgmiSpeed token. * `25Gbps` - Value - 25Gbps for configuring CbsDfCmn4linkMaxXgmiSpeed token. * `32Gbps` - Value - 32Gbps for configuring CbsDfCmn4linkMaxXgmiSpeed token. * `Auto` - Value - Auto for configuring CbsDfCmn4linkMaxXgmiSpeed token. CbsDfCmn4linkMaxXgmiSpeed *string `json:"CbsDfCmn4linkMaxXgmiSpeed,omitempty"` // BIOS Token for setting ACPI SRAT L3 Cache As NUMA Domain configuration. * `platform-default` - Default value used by the platform for the BIOS setting. * `Auto` - Value - Auto for configuring CbsDfCmnAcpiSratL3numa token. * `disabled` - Value - disabled for configuring CbsDfCmnAcpiSratL3numa token. * `enabled` - Value - enabled for configuring CbsDfCmnAcpiSratL3numa token. @@ -363,7 +363,7 @@ type BiosPolicy struct { // BIOS Token for setting Memory Refresh Rate configuration. * `platform-default` - Default value used by the platform for the BIOS setting. * `1x Refresh` - Value - 1x Refresh for configuring MemoryRefreshRate token. * `2x Refresh` - Value - 2x Refresh for configuring MemoryRefreshRate token. MemoryRefreshRate *string `json:"MemoryRefreshRate,omitempty"` // BIOS Token for setting Memory Size Limit in GiB configuration (0 - 65535 GiB). - MemorySizeLimit *string `json:"MemorySizeLimit,omitempty"` + MemorySizeLimit *string `json:"MemorySizeLimit,omitempty" validate:"regexp=^(\\\\d|[1-9]\\\\d|[1-9]\\\\d{2}|[1-9]\\\\d{3}|[1-5]\\\\d{4}|6[0-4]\\\\d{3}|65[0-4]\\\\d{2}|655[0-2]\\\\d|6553[0-5])$|^(platform-default)$"` // BIOS Token for setting Memory Thermal Throttling Mode configuration. * `platform-default` - Default value used by the platform for the BIOS setting. * `CLTT with PECI` - Value - CLTT with PECI for configuring MemoryThermalThrottling token. * `Disabled` - Value - Disabled for configuring MemoryThermalThrottling token. MemoryThermalThrottling *string `json:"MemoryThermalThrottling,omitempty"` // BIOS Token for setting Mirroring Mode configuration. * `platform-default` - Default value used by the platform for the BIOS setting. * `inter-socket` - Value - inter-socket for configuring MirroringMode token. * `intra-socket` - Value - intra-socket for configuring MirroringMode token. @@ -409,25 +409,25 @@ type BiosPolicy struct { // BIOS Token for setting Partial Memory Mirror Mode configuration. * `platform-default` - Default value used by the platform for the BIOS setting. * `disabled` - Value - disabled for configuring PartialMirrorModeConfig token. * `Percentage` - Value - Percentage for configuring PartialMirrorModeConfig token. * `Value in GB` - Value - Value in GiB for configuring PartialMirrorModeConfig token. PartialMirrorModeConfig *string `json:"PartialMirrorModeConfig,omitempty"` // BIOS Token for setting Partial Mirror Percentage configuration (0.00 - 50.00 Percentage). - PartialMirrorPercent *string `json:"PartialMirrorPercent,omitempty"` + PartialMirrorPercent *string `json:"PartialMirrorPercent,omitempty" validate:"regexp=^(\\\\d\\\\.\\\\d{1,2}|[1-4]\\\\d\\\\.\\\\d{1,2}|50\\\\.[0]{1,2})$|^(platform-default)$"` // BIOS Token for setting Partial Mirror1 Size in GiB configuration (0 - 65535 GiB). - PartialMirrorValue1 *string `json:"PartialMirrorValue1,omitempty"` + PartialMirrorValue1 *string `json:"PartialMirrorValue1,omitempty" validate:"regexp=^(\\\\d|[1-9]\\\\d|[1-9]\\\\d{2}|[1-9]\\\\d{3}|[1-5]\\\\d{4}|6[0-4]\\\\d{3}|65[0-4]\\\\d{2}|655[0-2]\\\\d|6553[0-5])$|^(platform-default)$"` // BIOS Token for setting Partial Mirror2 Size in GiB configuration (0 - 65535 GiB). - PartialMirrorValue2 *string `json:"PartialMirrorValue2,omitempty"` + PartialMirrorValue2 *string `json:"PartialMirrorValue2,omitempty" validate:"regexp=^(\\\\d|[1-9]\\\\d|[1-9]\\\\d{2}|[1-9]\\\\d{3}|[1-5]\\\\d{4}|6[0-4]\\\\d{3}|65[0-4]\\\\d{2}|655[0-2]\\\\d|6553[0-5])$|^(platform-default)$"` // BIOS Token for setting Partial Mirror3 Size in GiB configuration (0 - 65535 GiB). - PartialMirrorValue3 *string `json:"PartialMirrorValue3,omitempty"` + PartialMirrorValue3 *string `json:"PartialMirrorValue3,omitempty" validate:"regexp=^(\\\\d|[1-9]\\\\d|[1-9]\\\\d{2}|[1-9]\\\\d{3}|[1-5]\\\\d{4}|6[0-4]\\\\d{3}|65[0-4]\\\\d{2}|655[0-2]\\\\d|6553[0-5])$|^(platform-default)$"` // BIOS Token for setting Partial Mirror4 Size in GiB configuration (0 - 65535 GiB). - PartialMirrorValue4 *string `json:"PartialMirrorValue4,omitempty"` + PartialMirrorValue4 *string `json:"PartialMirrorValue4,omitempty" validate:"regexp=^(\\\\d|[1-9]\\\\d|[1-9]\\\\d{2}|[1-9]\\\\d{3}|[1-5]\\\\d{4}|6[0-4]\\\\d{3}|65[0-4]\\\\d{2}|655[0-2]\\\\d|6553[0-5])$|^(platform-default)$"` // BIOS Token for setting Patrol Scrub configuration. * `platform-default` - Default value used by the platform for the BIOS setting. * `disabled` - Value - disabled for configuring PatrolScrub token. * `Enable at End of POST` - Value - Enable at End of POST for configuring PatrolScrub token. * `enabled` - Value - enabled for configuring PatrolScrub token. PatrolScrub *string `json:"PatrolScrub,omitempty"` // BIOS Token for setting Patrol Scrub Interval configuration (5 - 23 Hour). - PatrolScrubDuration *string `json:"PatrolScrubDuration,omitempty"` + PatrolScrubDuration *string `json:"PatrolScrubDuration,omitempty" validate:"regexp=^([5-9]|1\\\\d|2[0-3])$|^(platform-default)$"` // BIOS Token for setting PCIe RAS Support configuration. * `platform-default` - Default value used by the platform for the BIOS setting. * `enabled` - Enables the BIOS setting. * `disabled` - Disables the BIOS setting. PcIeRasSupport *string `json:"PcIeRasSupport,omitempty"` // BIOS Token for setting NVMe SSD Hot-Plug Support configuration. * `platform-default` - Default value used by the platform for the BIOS setting. * `enabled` - Enables the BIOS setting. * `disabled` - Disables the BIOS setting. PcIeSsdHotPlugSupport *string `json:"PcIeSsdHotPlugSupport,omitempty"` // BIOS Token for setting PCIe PLL SSC Percent configuration (0 - 255 (n/10)%). - PchPciePllSsc *string `json:"PchPciePllSsc,omitempty"` + PchPciePllSsc *string `json:"PchPciePllSsc,omitempty" validate:"regexp=^(\\\\d|[1-9]\\\\d|1\\\\d{2}|2[0-4]\\\\d|25[0-5])$|^(platform-default)$"` // BIOS Token for setting xHCI Mode configuration. * `platform-default` - Default value used by the platform for the BIOS setting. * `enabled` - Enables the BIOS setting. * `disabled` - Disables the BIOS setting. PchUsb30mode *string `json:"PchUsb30mode,omitempty"` // BIOS Token for setting All PCIe Slots OptionROM configuration. * `platform-default` - Default value used by the platform for the BIOS setting. * `disabled` - Value - disabled for configuring PciOptionRoMs token. * `enabled` - Value - enabled for configuring PciOptionRoMs token. * `Legacy Only` - Value - Legacy Only for configuring PciOptionRoMs token. * `UEFI Only` - Value - UEFI Only for configuring PciOptionRoMs token. @@ -529,19 +529,19 @@ type BiosPolicy struct { // BIOS Token for setting SGX Auto MP Registration Agent configuration. * `platform-default` - Default value used by the platform for the BIOS setting. * `enabled` - Enables the BIOS setting. * `disabled` - Disables the BIOS setting. SgxAutoRegistrationAgent *string `json:"SgxAutoRegistrationAgent,omitempty"` // BIOS Token for setting SGX Epoch 0 configuration (0 - ffffffffffffffff Hash byte 7-0). - SgxEpoch0 *string `json:"SgxEpoch0,omitempty"` + SgxEpoch0 *string `json:"SgxEpoch0,omitempty" validate:"regexp=^([0-9a-fA-F]{1,16})$|^(platform-default)$"` // BIOS Token for setting SGX Epoch 1 configuration (0 - ffffffffffffffff Hash byte 7-0). - SgxEpoch1 *string `json:"SgxEpoch1,omitempty"` + SgxEpoch1 *string `json:"SgxEpoch1,omitempty" validate:"regexp=^([0-9a-fA-F]{1,16})$|^(platform-default)$"` // BIOS Token for setting SGX Factory Reset configuration. * `platform-default` - Default value used by the platform for the BIOS setting. * `enabled` - Enables the BIOS setting. * `disabled` - Disables the BIOS setting. SgxFactoryReset *string `json:"SgxFactoryReset,omitempty"` // BIOS Token for setting SGX PubKey Hash0 configuration (0 - ffffffffffffffff Hash byte 7-0). - SgxLePubKeyHash0 *string `json:"SgxLePubKeyHash0,omitempty"` + SgxLePubKeyHash0 *string `json:"SgxLePubKeyHash0,omitempty" validate:"regexp=^([0-9a-fA-F]{1,16})$|^(platform-default)$"` // BIOS Token for setting SGX PubKey Hash1 configuration (0 - ffffffffffffffff Hash byte 15-8). - SgxLePubKeyHash1 *string `json:"SgxLePubKeyHash1,omitempty"` + SgxLePubKeyHash1 *string `json:"SgxLePubKeyHash1,omitempty" validate:"regexp=^([0-9a-fA-F]{1,16})$|^(platform-default)$"` // BIOS Token for setting SGX PubKey Hash2 configuration (0 - ffffffffffffffff Hash byte 23-16). - SgxLePubKeyHash2 *string `json:"SgxLePubKeyHash2,omitempty"` + SgxLePubKeyHash2 *string `json:"SgxLePubKeyHash2,omitempty" validate:"regexp=^([0-9a-fA-F]{1,16})$|^(platform-default)$"` // BIOS Token for setting SGX PubKey Hash3 configuration (0 - ffffffffffffffff Hash byte 31-24). - SgxLePubKeyHash3 *string `json:"SgxLePubKeyHash3,omitempty"` + SgxLePubKeyHash3 *string `json:"SgxLePubKeyHash3,omitempty" validate:"regexp=^([0-9a-fA-F]{1,16})$|^(platform-default)$"` // BIOS Token for setting SGX Write Enable configuration. * `platform-default` - Default value used by the platform for the BIOS setting. * `enabled` - Enables the BIOS setting. * `disabled` - Disables the BIOS setting. SgxLeWr *string `json:"SgxLeWr,omitempty"` // BIOS Token for setting SGX Package Information In-Band Access configuration. * `platform-default` - Default value used by the platform for the BIOS setting. * `enabled` - Enables the BIOS setting. * `disabled` - Disables the BIOS setting. @@ -2747,6 +2747,11 @@ func (o *BiosPolicy) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "bios.Policy" of the ClassId field. +func (o *BiosPolicy) GetDefaultClassId() interface{} { + return "bios.Policy" +} + // GetObjectType returns the ObjectType field value func (o *BiosPolicy) GetObjectType() string { if o == nil { @@ -2771,6 +2776,11 @@ func (o *BiosPolicy) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "bios.Policy" of the ObjectType field. +func (o *BiosPolicy) GetDefaultObjectType() interface{} { + return "bios.Policy" +} + // GetAcsControlGpu1state returns the AcsControlGpu1state field value if set, zero value otherwise. func (o *BiosPolicy) GetAcsControlGpu1state() string { if o == nil || IsNil(o.AcsControlGpu1state) { @@ -17043,7 +17053,7 @@ func (o *BiosPolicy) GetProfilesOk() ([]PolicyAbstractConfigProfileRelationship, // HasProfiles returns a boolean if a field has been set. func (o *BiosPolicy) HasProfiles() bool { - if o != nil && IsNil(o.Profiles) { + if o != nil && !IsNil(o.Profiles) { return true } @@ -17073,7 +17083,13 @@ func (o BiosPolicy) ToMap() (map[string]interface{}, error) { if errPolicyAbstractPolicy != nil { return map[string]interface{}{}, errPolicyAbstractPolicy } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.AcsControlGpu1state) { toSerialize["AcsControlGpu1state"] = o.AcsControlGpu1state @@ -18430,6 +18446,13 @@ func (o *BiosPolicy) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -18439,11 +18462,23 @@ func (o *BiosPolicy) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type BiosPolicyWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` @@ -18514,7 +18549,7 @@ func (o *BiosPolicy) UnmarshalJSON(data []byte) (err error) { // BIOS Token for setting APBDIS configuration. * `platform-default` - Default value used by the platform for the BIOS setting. * `0` - Value - 0 for configuring CbsCmnApbdis token. * `1` - Value - 1 for configuring CbsCmnApbdis token. * `Auto` - Value - Auto for configuring CbsCmnApbdis token. CbsCmnApbdis *string `json:"CbsCmnApbdis,omitempty"` // BIOS Token for setting Fixed SOC P-State SP5 F19h configuration (0 - 2 P State). - CbsCmnApbdisDfPstateRs *string `json:"CbsCmnApbdisDfPstateRs,omitempty"` + CbsCmnApbdisDfPstateRs *string `json:"CbsCmnApbdisDfPstateRs,omitempty" validate:"regexp=^([0-2])$|^(platform-default)$"` // BIOS Token for setting AVX512 configuration. * `platform-default` - Default value used by the platform for the BIOS setting. * `Auto` - Value - Auto for configuring CbsCmnCpuAvx512 token. * `disabled` - Value - disabled for configuring CbsCmnCpuAvx512 token. * `enabled` - Value - enabled for configuring CbsCmnCpuAvx512 token. CbsCmnCpuAvx512 *string `json:"CbsCmnCpuAvx512,omitempty"` // BIOS Token for setting Core Performance Boost configuration. * `platform-default` - Default value used by the platform for the BIOS setting. * `Auto` - Value - Auto for configuring CbsCmnCpuCpb token. * `disabled` - Value - disabled for configuring CbsCmnCpuCpb token. @@ -18528,7 +18563,7 @@ func (o *BiosPolicy) UnmarshalJSON(data []byte) (err error) { // BIOS Token for setting L2 Stream HW Prefetcher configuration. * `platform-default` - Default value used by the platform for the BIOS setting. * `Auto` - Value - Auto for configuring CbsCmnCpuL2streamHwPrefetcher token. * `disabled` - Value - disabled for configuring CbsCmnCpuL2streamHwPrefetcher token. * `enabled` - Value - enabled for configuring CbsCmnCpuL2streamHwPrefetcher token. CbsCmnCpuL2streamHwPrefetcher *string `json:"CbsCmnCpuL2streamHwPrefetcher,omitempty"` // BIOS Token for setting SEV-ES ASID Space Limit configuration (1 - 1007 ASIDs). - CbsCmnCpuSevAsidSpaceLimit *string `json:"CbsCmnCpuSevAsidSpaceLimit,omitempty"` + CbsCmnCpuSevAsidSpaceLimit *string `json:"CbsCmnCpuSevAsidSpaceLimit,omitempty" validate:"regexp=^([1-9]|[1-9]\\\\d|[1-9]\\\\d{2}|100[0-7])$|^(platform-default)$"` // BIOS Token for setting CPU SMEE configuration. * `platform-default` - Default value used by the platform for the BIOS setting. * `Auto` - Value - Auto for configuring CbsCmnCpuSmee token. * `disabled` - Value - disabled for configuring CbsCmnCpuSmee token. * `enabled` - Value - enabled for configuring CbsCmnCpuSmee token. CbsCmnCpuSmee *string `json:"CbsCmnCpuSmee,omitempty"` // BIOS Token for setting Streaming Stores Control configuration. * `platform-default` - Default value used by the platform for the BIOS setting. * `Auto` - Value - Auto for configuring CbsCmnCpuStreamingStoresCtrl token. * `disabled` - Value - disabled for configuring CbsCmnCpuStreamingStoresCtrl token. * `enabled` - Value - enabled for configuring CbsCmnCpuStreamingStoresCtrl token. @@ -18588,7 +18623,7 @@ func (o *BiosPolicy) UnmarshalJSON(data []byte) (err error) { // BIOS Token for setting SNP Memory Coverage configuration. * `platform-default` - Default value used by the platform for the BIOS setting. * `Auto` - Value - Auto for configuring CbsDbgCpuSnpMemCover token. * `Custom` - Value - Custom for configuring CbsDbgCpuSnpMemCover token. * `disabled` - Value - disabled for configuring CbsDbgCpuSnpMemCover token. * `enabled` - Value - enabled for configuring CbsDbgCpuSnpMemCover token. CbsDbgCpuSnpMemCover *string `json:"CbsDbgCpuSnpMemCover,omitempty"` // BIOS Token for setting SNP Memory Size to Cover in MiB configuration (0 - 1048576 MiB). - CbsDbgCpuSnpMemSizeCover *string `json:"CbsDbgCpuSnpMemSizeCover,omitempty"` + CbsDbgCpuSnpMemSizeCover *string `json:"CbsDbgCpuSnpMemSizeCover,omitempty" validate:"regexp=^(\\\\d|[1-9]\\\\d|[1-9]\\\\d{2}|[1-9]\\\\d{3}|[1-9]\\\\d{4}|[1-9]\\\\d{5}|10[0-3]\\\\d{4}|104[0-7]\\\\d{3}|1048[0-4]\\\\d{2}|10485[0-6]\\\\d|104857[0-6])$|^(platform-default)$"` // BIOS Token for setting 4-link xGMI max speed configuration. * `platform-default` - Default value used by the platform for the BIOS setting. * `20Gbps` - Value - 20Gbps for configuring CbsDfCmn4linkMaxXgmiSpeed token. * `25Gbps` - Value - 25Gbps for configuring CbsDfCmn4linkMaxXgmiSpeed token. * `32Gbps` - Value - 32Gbps for configuring CbsDfCmn4linkMaxXgmiSpeed token. * `Auto` - Value - Auto for configuring CbsDfCmn4linkMaxXgmiSpeed token. CbsDfCmn4linkMaxXgmiSpeed *string `json:"CbsDfCmn4linkMaxXgmiSpeed,omitempty"` // BIOS Token for setting ACPI SRAT L3 Cache As NUMA Domain configuration. * `platform-default` - Default value used by the platform for the BIOS setting. * `Auto` - Value - Auto for configuring CbsDfCmnAcpiSratL3numa token. * `disabled` - Value - disabled for configuring CbsDfCmnAcpiSratL3numa token. * `enabled` - Value - enabled for configuring CbsDfCmnAcpiSratL3numa token. @@ -18784,7 +18819,7 @@ func (o *BiosPolicy) UnmarshalJSON(data []byte) (err error) { // BIOS Token for setting Memory Refresh Rate configuration. * `platform-default` - Default value used by the platform for the BIOS setting. * `1x Refresh` - Value - 1x Refresh for configuring MemoryRefreshRate token. * `2x Refresh` - Value - 2x Refresh for configuring MemoryRefreshRate token. MemoryRefreshRate *string `json:"MemoryRefreshRate,omitempty"` // BIOS Token for setting Memory Size Limit in GiB configuration (0 - 65535 GiB). - MemorySizeLimit *string `json:"MemorySizeLimit,omitempty"` + MemorySizeLimit *string `json:"MemorySizeLimit,omitempty" validate:"regexp=^(\\\\d|[1-9]\\\\d|[1-9]\\\\d{2}|[1-9]\\\\d{3}|[1-5]\\\\d{4}|6[0-4]\\\\d{3}|65[0-4]\\\\d{2}|655[0-2]\\\\d|6553[0-5])$|^(platform-default)$"` // BIOS Token for setting Memory Thermal Throttling Mode configuration. * `platform-default` - Default value used by the platform for the BIOS setting. * `CLTT with PECI` - Value - CLTT with PECI for configuring MemoryThermalThrottling token. * `Disabled` - Value - Disabled for configuring MemoryThermalThrottling token. MemoryThermalThrottling *string `json:"MemoryThermalThrottling,omitempty"` // BIOS Token for setting Mirroring Mode configuration. * `platform-default` - Default value used by the platform for the BIOS setting. * `inter-socket` - Value - inter-socket for configuring MirroringMode token. * `intra-socket` - Value - intra-socket for configuring MirroringMode token. @@ -18830,25 +18865,25 @@ func (o *BiosPolicy) UnmarshalJSON(data []byte) (err error) { // BIOS Token for setting Partial Memory Mirror Mode configuration. * `platform-default` - Default value used by the platform for the BIOS setting. * `disabled` - Value - disabled for configuring PartialMirrorModeConfig token. * `Percentage` - Value - Percentage for configuring PartialMirrorModeConfig token. * `Value in GB` - Value - Value in GiB for configuring PartialMirrorModeConfig token. PartialMirrorModeConfig *string `json:"PartialMirrorModeConfig,omitempty"` // BIOS Token for setting Partial Mirror Percentage configuration (0.00 - 50.00 Percentage). - PartialMirrorPercent *string `json:"PartialMirrorPercent,omitempty"` + PartialMirrorPercent *string `json:"PartialMirrorPercent,omitempty" validate:"regexp=^(\\\\d\\\\.\\\\d{1,2}|[1-4]\\\\d\\\\.\\\\d{1,2}|50\\\\.[0]{1,2})$|^(platform-default)$"` // BIOS Token for setting Partial Mirror1 Size in GiB configuration (0 - 65535 GiB). - PartialMirrorValue1 *string `json:"PartialMirrorValue1,omitempty"` + PartialMirrorValue1 *string `json:"PartialMirrorValue1,omitempty" validate:"regexp=^(\\\\d|[1-9]\\\\d|[1-9]\\\\d{2}|[1-9]\\\\d{3}|[1-5]\\\\d{4}|6[0-4]\\\\d{3}|65[0-4]\\\\d{2}|655[0-2]\\\\d|6553[0-5])$|^(platform-default)$"` // BIOS Token for setting Partial Mirror2 Size in GiB configuration (0 - 65535 GiB). - PartialMirrorValue2 *string `json:"PartialMirrorValue2,omitempty"` + PartialMirrorValue2 *string `json:"PartialMirrorValue2,omitempty" validate:"regexp=^(\\\\d|[1-9]\\\\d|[1-9]\\\\d{2}|[1-9]\\\\d{3}|[1-5]\\\\d{4}|6[0-4]\\\\d{3}|65[0-4]\\\\d{2}|655[0-2]\\\\d|6553[0-5])$|^(platform-default)$"` // BIOS Token for setting Partial Mirror3 Size in GiB configuration (0 - 65535 GiB). - PartialMirrorValue3 *string `json:"PartialMirrorValue3,omitempty"` + PartialMirrorValue3 *string `json:"PartialMirrorValue3,omitempty" validate:"regexp=^(\\\\d|[1-9]\\\\d|[1-9]\\\\d{2}|[1-9]\\\\d{3}|[1-5]\\\\d{4}|6[0-4]\\\\d{3}|65[0-4]\\\\d{2}|655[0-2]\\\\d|6553[0-5])$|^(platform-default)$"` // BIOS Token for setting Partial Mirror4 Size in GiB configuration (0 - 65535 GiB). - PartialMirrorValue4 *string `json:"PartialMirrorValue4,omitempty"` + PartialMirrorValue4 *string `json:"PartialMirrorValue4,omitempty" validate:"regexp=^(\\\\d|[1-9]\\\\d|[1-9]\\\\d{2}|[1-9]\\\\d{3}|[1-5]\\\\d{4}|6[0-4]\\\\d{3}|65[0-4]\\\\d{2}|655[0-2]\\\\d|6553[0-5])$|^(platform-default)$"` // BIOS Token for setting Patrol Scrub configuration. * `platform-default` - Default value used by the platform for the BIOS setting. * `disabled` - Value - disabled for configuring PatrolScrub token. * `Enable at End of POST` - Value - Enable at End of POST for configuring PatrolScrub token. * `enabled` - Value - enabled for configuring PatrolScrub token. PatrolScrub *string `json:"PatrolScrub,omitempty"` // BIOS Token for setting Patrol Scrub Interval configuration (5 - 23 Hour). - PatrolScrubDuration *string `json:"PatrolScrubDuration,omitempty"` + PatrolScrubDuration *string `json:"PatrolScrubDuration,omitempty" validate:"regexp=^([5-9]|1\\\\d|2[0-3])$|^(platform-default)$"` // BIOS Token for setting PCIe RAS Support configuration. * `platform-default` - Default value used by the platform for the BIOS setting. * `enabled` - Enables the BIOS setting. * `disabled` - Disables the BIOS setting. PcIeRasSupport *string `json:"PcIeRasSupport,omitempty"` // BIOS Token for setting NVMe SSD Hot-Plug Support configuration. * `platform-default` - Default value used by the platform for the BIOS setting. * `enabled` - Enables the BIOS setting. * `disabled` - Disables the BIOS setting. PcIeSsdHotPlugSupport *string `json:"PcIeSsdHotPlugSupport,omitempty"` // BIOS Token for setting PCIe PLL SSC Percent configuration (0 - 255 (n/10)%). - PchPciePllSsc *string `json:"PchPciePllSsc,omitempty"` + PchPciePllSsc *string `json:"PchPciePllSsc,omitempty" validate:"regexp=^(\\\\d|[1-9]\\\\d|1\\\\d{2}|2[0-4]\\\\d|25[0-5])$|^(platform-default)$"` // BIOS Token for setting xHCI Mode configuration. * `platform-default` - Default value used by the platform for the BIOS setting. * `enabled` - Enables the BIOS setting. * `disabled` - Disables the BIOS setting. PchUsb30mode *string `json:"PchUsb30mode,omitempty"` // BIOS Token for setting All PCIe Slots OptionROM configuration. * `platform-default` - Default value used by the platform for the BIOS setting. * `disabled` - Value - disabled for configuring PciOptionRoMs token. * `enabled` - Value - enabled for configuring PciOptionRoMs token. * `Legacy Only` - Value - Legacy Only for configuring PciOptionRoMs token. * `UEFI Only` - Value - UEFI Only for configuring PciOptionRoMs token. @@ -18950,19 +18985,19 @@ func (o *BiosPolicy) UnmarshalJSON(data []byte) (err error) { // BIOS Token for setting SGX Auto MP Registration Agent configuration. * `platform-default` - Default value used by the platform for the BIOS setting. * `enabled` - Enables the BIOS setting. * `disabled` - Disables the BIOS setting. SgxAutoRegistrationAgent *string `json:"SgxAutoRegistrationAgent,omitempty"` // BIOS Token for setting SGX Epoch 0 configuration (0 - ffffffffffffffff Hash byte 7-0). - SgxEpoch0 *string `json:"SgxEpoch0,omitempty"` + SgxEpoch0 *string `json:"SgxEpoch0,omitempty" validate:"regexp=^([0-9a-fA-F]{1,16})$|^(platform-default)$"` // BIOS Token for setting SGX Epoch 1 configuration (0 - ffffffffffffffff Hash byte 7-0). - SgxEpoch1 *string `json:"SgxEpoch1,omitempty"` + SgxEpoch1 *string `json:"SgxEpoch1,omitempty" validate:"regexp=^([0-9a-fA-F]{1,16})$|^(platform-default)$"` // BIOS Token for setting SGX Factory Reset configuration. * `platform-default` - Default value used by the platform for the BIOS setting. * `enabled` - Enables the BIOS setting. * `disabled` - Disables the BIOS setting. SgxFactoryReset *string `json:"SgxFactoryReset,omitempty"` // BIOS Token for setting SGX PubKey Hash0 configuration (0 - ffffffffffffffff Hash byte 7-0). - SgxLePubKeyHash0 *string `json:"SgxLePubKeyHash0,omitempty"` + SgxLePubKeyHash0 *string `json:"SgxLePubKeyHash0,omitempty" validate:"regexp=^([0-9a-fA-F]{1,16})$|^(platform-default)$"` // BIOS Token for setting SGX PubKey Hash1 configuration (0 - ffffffffffffffff Hash byte 15-8). - SgxLePubKeyHash1 *string `json:"SgxLePubKeyHash1,omitempty"` + SgxLePubKeyHash1 *string `json:"SgxLePubKeyHash1,omitempty" validate:"regexp=^([0-9a-fA-F]{1,16})$|^(platform-default)$"` // BIOS Token for setting SGX PubKey Hash2 configuration (0 - ffffffffffffffff Hash byte 23-16). - SgxLePubKeyHash2 *string `json:"SgxLePubKeyHash2,omitempty"` + SgxLePubKeyHash2 *string `json:"SgxLePubKeyHash2,omitempty" validate:"regexp=^([0-9a-fA-F]{1,16})$|^(platform-default)$"` // BIOS Token for setting SGX PubKey Hash3 configuration (0 - ffffffffffffffff Hash byte 31-24). - SgxLePubKeyHash3 *string `json:"SgxLePubKeyHash3,omitempty"` + SgxLePubKeyHash3 *string `json:"SgxLePubKeyHash3,omitempty" validate:"regexp=^([0-9a-fA-F]{1,16})$|^(platform-default)$"` // BIOS Token for setting SGX Write Enable configuration. * `platform-default` - Default value used by the platform for the BIOS setting. * `enabled` - Enables the BIOS setting. * `disabled` - Disables the BIOS setting. SgxLeWr *string `json:"SgxLeWr,omitempty"` // BIOS Token for setting SGX Package Information In-Band Access configuration. * `platform-default` - Default value used by the platform for the BIOS setting. * `enabled` - Enables the BIOS setting. * `disabled` - Disables the BIOS setting. diff --git a/model_bios_policy_list.go b/model_bios_policy_list.go index 5c242743ed..d7e7b66554 100644 --- a/model_bios_policy_list.go +++ b/model_bios_policy_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *BiosPolicyList) GetResultsOk() ([]BiosPolicy, bool) { // HasResults returns a boolean if a field has been set. func (o *BiosPolicyList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *BiosPolicyList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *BiosPolicyList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type BiosPolicyListWithoutEmbeddedStruct struct { // The total number of 'bios.Policy' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_bios_policy_response.go b/model_bios_policy_response.go index e4bc976fcf..712eed9597 100644 --- a/model_bios_policy_response.go +++ b/model_bios_policy_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_bios_system_boot_order.go b/model_bios_system_boot_order.go index 7dd47c7026..ad510c0cfb 100644 --- a/model_bios_system_boot_order.go +++ b/model_bios_system_boot_order.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -90,6 +90,11 @@ func (o *BiosSystemBootOrder) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "bios.SystemBootOrder" of the ClassId field. +func (o *BiosSystemBootOrder) GetDefaultClassId() interface{} { + return "bios.SystemBootOrder" +} + // GetObjectType returns the ObjectType field value func (o *BiosSystemBootOrder) GetObjectType() string { if o == nil { @@ -114,6 +119,11 @@ func (o *BiosSystemBootOrder) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "bios.SystemBootOrder" of the ObjectType field. +func (o *BiosSystemBootOrder) GetDefaultObjectType() interface{} { + return "bios.SystemBootOrder" +} + // GetBootMode returns the BootMode field value if set, zero value otherwise. func (o *BiosSystemBootOrder) GetBootMode() string { if o == nil || IsNil(o.BootMode) { @@ -274,7 +284,7 @@ func (o *BiosSystemBootOrder) GetBootDevicesOk() ([]BiosBootDeviceRelationship, // HasBootDevices returns a boolean if a field has been set. func (o *BiosSystemBootOrder) HasBootDevices() bool { - if o != nil && IsNil(o.BootDevices) { + if o != nil && !IsNil(o.BootDevices) { return true } @@ -347,7 +357,13 @@ func (o BiosSystemBootOrder) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.BootMode) { toSerialize["BootMode"] = o.BootMode @@ -384,6 +400,13 @@ func (o *BiosSystemBootOrder) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -393,11 +416,23 @@ func (o *BiosSystemBootOrder) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type BiosSystemBootOrderWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_bios_system_boot_order_list.go b/model_bios_system_boot_order_list.go index c070e02a45..1f166e7193 100644 --- a/model_bios_system_boot_order_list.go +++ b/model_bios_system_boot_order_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *BiosSystemBootOrderList) GetResultsOk() ([]BiosSystemBootOrder, bool) { // HasResults returns a boolean if a field has been set. func (o *BiosSystemBootOrderList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *BiosSystemBootOrderList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *BiosSystemBootOrderList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type BiosSystemBootOrderListWithoutEmbeddedStruct struct { // The total number of 'bios.SystemBootOrder' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_bios_system_boot_order_relationship.go b/model_bios_system_boot_order_relationship.go index 33645081e6..9bea0c7b83 100644 --- a/model_bios_system_boot_order_relationship.go +++ b/model_bios_system_boot_order_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_bios_system_boot_order_response.go b/model_bios_system_boot_order_response.go index 7eb17b6f4c..e2e0a7c5e0 100644 --- a/model_bios_system_boot_order_response.go +++ b/model_bios_system_boot_order_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_bios_token_settings.go b/model_bios_token_settings.go index 5bbe9873ac..ab5e833b41 100644 --- a/model_bios_token_settings.go +++ b/model_bios_token_settings.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -90,6 +90,11 @@ func (o *BiosTokenSettings) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "bios.TokenSettings" of the ClassId field. +func (o *BiosTokenSettings) GetDefaultClassId() interface{} { + return "bios.TokenSettings" +} + // GetObjectType returns the ObjectType field value func (o *BiosTokenSettings) GetObjectType() string { if o == nil { @@ -114,6 +119,11 @@ func (o *BiosTokenSettings) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "bios.TokenSettings" of the ObjectType field. +func (o *BiosTokenSettings) GetDefaultObjectType() interface{} { + return "bios.TokenSettings" +} + // GetIsAssigned returns the IsAssigned field value if set, zero value otherwise. func (o *BiosTokenSettings) GetIsAssigned() string { if o == nil || IsNil(o.IsAssigned) { @@ -400,7 +410,13 @@ func (o BiosTokenSettings) ToMap() (map[string]interface{}, error) { if errInventoryBase != nil { return map[string]interface{}{}, errInventoryBase } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.IsAssigned) { toSerialize["IsAssigned"] = o.IsAssigned @@ -440,6 +456,13 @@ func (o *BiosTokenSettings) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -449,11 +472,23 @@ func (o *BiosTokenSettings) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type BiosTokenSettingsWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_bios_token_settings_list.go b/model_bios_token_settings_list.go index 1b0935225e..8d639b3d97 100644 --- a/model_bios_token_settings_list.go +++ b/model_bios_token_settings_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *BiosTokenSettingsList) GetResultsOk() ([]BiosTokenSettings, bool) { // HasResults returns a boolean if a field has been set. func (o *BiosTokenSettingsList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *BiosTokenSettingsList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *BiosTokenSettingsList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type BiosTokenSettingsListWithoutEmbeddedStruct struct { // The total number of 'bios.TokenSettings' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_bios_token_settings_relationship.go b/model_bios_token_settings_relationship.go index b053b9964e..b5efd6439e 100644 --- a/model_bios_token_settings_relationship.go +++ b/model_bios_token_settings_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_bios_token_settings_response.go b/model_bios_token_settings_response.go index 5ab110fdd4..6f21728f53 100644 --- a/model_bios_token_settings_response.go +++ b/model_bios_token_settings_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_bios_unit.go b/model_bios_unit.go index 1c8810a1af..a63c1c9ecb 100644 --- a/model_bios_unit.go +++ b/model_bios_unit.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -91,6 +91,11 @@ func (o *BiosUnit) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "bios.Unit" of the ClassId field. +func (o *BiosUnit) GetDefaultClassId() interface{} { + return "bios.Unit" +} + // GetObjectType returns the ObjectType field value func (o *BiosUnit) GetObjectType() string { if o == nil { @@ -115,6 +120,11 @@ func (o *BiosUnit) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "bios.Unit" of the ObjectType field. +func (o *BiosUnit) GetDefaultObjectType() interface{} { + return "bios.Unit" +} + // GetInitSeq returns the InitSeq field value if set, zero value otherwise. func (o *BiosUnit) GetInitSeq() string { if o == nil || IsNil(o.InitSeq) { @@ -372,7 +382,7 @@ func (o *BiosUnit) GetRunningFirmwareOk() ([]FirmwareRunningFirmwareRelationship // HasRunningFirmware returns a boolean if a field has been set. func (o *BiosUnit) HasRunningFirmware() bool { - if o != nil && IsNil(o.RunningFirmware) { + if o != nil && !IsNil(o.RunningFirmware) { return true } @@ -445,7 +455,13 @@ func (o BiosUnit) ToMap() (map[string]interface{}, error) { if errEquipmentBase != nil { return map[string]interface{}{}, errEquipmentBase } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.InitSeq) { toSerialize["InitSeq"] = o.InitSeq @@ -488,6 +504,13 @@ func (o *BiosUnit) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -497,11 +520,23 @@ func (o *BiosUnit) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type BiosUnitWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_bios_unit_list.go b/model_bios_unit_list.go index ea359f7d3b..0f107e3e01 100644 --- a/model_bios_unit_list.go +++ b/model_bios_unit_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *BiosUnitList) GetResultsOk() ([]BiosUnit, bool) { // HasResults returns a boolean if a field has been set. func (o *BiosUnitList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *BiosUnitList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *BiosUnitList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type BiosUnitListWithoutEmbeddedStruct struct { // The total number of 'bios.Unit' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_bios_unit_relationship.go b/model_bios_unit_relationship.go index 3a476ad3dc..88713dfb66 100644 --- a/model_bios_unit_relationship.go +++ b/model_bios_unit_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_bios_unit_response.go b/model_bios_unit_response.go index 2b7a060f90..4d7919e903 100644 --- a/model_bios_unit_response.go +++ b/model_bios_unit_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_bios_vf_select_memory_ras_configuration.go b/model_bios_vf_select_memory_ras_configuration.go index abf0b22c38..13ea77a7e7 100644 --- a/model_bios_vf_select_memory_ras_configuration.go +++ b/model_bios_vf_select_memory_ras_configuration.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -88,6 +88,11 @@ func (o *BiosVfSelectMemoryRasConfiguration) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "bios.VfSelectMemoryRasConfiguration" of the ClassId field. +func (o *BiosVfSelectMemoryRasConfiguration) GetDefaultClassId() interface{} { + return "bios.VfSelectMemoryRasConfiguration" +} + // GetObjectType returns the ObjectType field value func (o *BiosVfSelectMemoryRasConfiguration) GetObjectType() string { if o == nil { @@ -112,6 +117,11 @@ func (o *BiosVfSelectMemoryRasConfiguration) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "bios.VfSelectMemoryRasConfiguration" of the ObjectType field. +func (o *BiosVfSelectMemoryRasConfiguration) GetDefaultObjectType() interface{} { + return "bios.VfSelectMemoryRasConfiguration" +} + // GetSerial returns the Serial field value if set, zero value otherwise. func (o *BiosVfSelectMemoryRasConfiguration) GetSerial() string { if o == nil || IsNil(o.Serial) { @@ -366,7 +376,13 @@ func (o BiosVfSelectMemoryRasConfiguration) ToMap() (map[string]interface{}, err if errInventoryBase != nil { return map[string]interface{}{}, errInventoryBase } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Serial) { toSerialize["Serial"] = o.Serial @@ -403,6 +419,13 @@ func (o *BiosVfSelectMemoryRasConfiguration) UnmarshalJSON(data []byte) (err err "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -412,11 +435,23 @@ func (o *BiosVfSelectMemoryRasConfiguration) UnmarshalJSON(data []byte) (err err } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type BiosVfSelectMemoryRasConfigurationWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_bios_vf_select_memory_ras_configuration_list.go b/model_bios_vf_select_memory_ras_configuration_list.go index d5a2bf0ce2..51cdbaa85a 100644 --- a/model_bios_vf_select_memory_ras_configuration_list.go +++ b/model_bios_vf_select_memory_ras_configuration_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *BiosVfSelectMemoryRasConfigurationList) GetResultsOk() ([]BiosVfSelectM // HasResults returns a boolean if a field has been set. func (o *BiosVfSelectMemoryRasConfigurationList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *BiosVfSelectMemoryRasConfigurationList) UnmarshalJSON(data []byte) (err "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *BiosVfSelectMemoryRasConfigurationList) UnmarshalJSON(data []byte) (err } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type BiosVfSelectMemoryRasConfigurationListWithoutEmbeddedStruct struct { // The total number of 'bios.VfSelectMemoryRasConfiguration' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_bios_vf_select_memory_ras_configuration_relationship.go b/model_bios_vf_select_memory_ras_configuration_relationship.go index 4ae55a24e7..6841cc1148 100644 --- a/model_bios_vf_select_memory_ras_configuration_relationship.go +++ b/model_bios_vf_select_memory_ras_configuration_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_bios_vf_select_memory_ras_configuration_response.go b/model_bios_vf_select_memory_ras_configuration_response.go index cde37a5bbc..3f6e5fabef 100644 --- a/model_bios_vf_select_memory_ras_configuration_response.go +++ b/model_bios_vf_select_memory_ras_configuration_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_boot_bootloader.go b/model_boot_bootloader.go index b1aca82b8e..80e098631b 100644 --- a/model_boot_bootloader.go +++ b/model_boot_bootloader.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -86,6 +86,11 @@ func (o *BootBootloader) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "boot.Bootloader" of the ClassId field. +func (o *BootBootloader) GetDefaultClassId() interface{} { + return "boot.Bootloader" +} + // GetObjectType returns the ObjectType field value func (o *BootBootloader) GetObjectType() string { if o == nil { @@ -110,6 +115,11 @@ func (o *BootBootloader) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "boot.Bootloader" of the ObjectType field. +func (o *BootBootloader) GetDefaultObjectType() interface{} { + return "boot.Bootloader" +} + // GetDescription returns the Description field value if set, zero value otherwise. func (o *BootBootloader) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -224,7 +234,13 @@ func (o BootBootloader) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Description) { toSerialize["Description"] = o.Description @@ -252,6 +268,13 @@ func (o *BootBootloader) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -261,11 +284,23 @@ func (o *BootBootloader) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type BootBootloaderWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_boot_cdd_device.go b/model_boot_cdd_device.go index f15d2b4c1b..a6f95ea5b6 100644 --- a/model_boot_cdd_device.go +++ b/model_boot_cdd_device.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -83,6 +83,11 @@ func (o *BootCddDevice) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "boot.CddDevice" of the ClassId field. +func (o *BootCddDevice) GetDefaultClassId() interface{} { + return "boot.CddDevice" +} + // GetObjectType returns the ObjectType field value func (o *BootCddDevice) GetObjectType() string { if o == nil { @@ -107,6 +112,11 @@ func (o *BootCddDevice) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "boot.CddDevice" of the ObjectType field. +func (o *BootCddDevice) GetDefaultObjectType() interface{} { + return "boot.CddDevice" +} + // GetComputePhysical returns the ComputePhysical field value if set, zero value otherwise (both if not set or set to explicit null). func (o *BootCddDevice) GetComputePhysical() ComputePhysicalRelationship { if o == nil || IsNil(o.ComputePhysical.Get()) { @@ -254,7 +264,13 @@ func (o BootCddDevice) ToMap() (map[string]interface{}, error) { if errBootConfiguredDevice != nil { return map[string]interface{}{}, errBootConfiguredDevice } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.ComputePhysical.IsSet() { toSerialize["ComputePhysical"] = o.ComputePhysical.Get() @@ -282,6 +298,13 @@ func (o *BootCddDevice) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -291,11 +314,23 @@ func (o *BootCddDevice) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type BootCddDeviceWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_boot_cdd_device_list.go b/model_boot_cdd_device_list.go index 4889358d32..724ac95857 100644 --- a/model_boot_cdd_device_list.go +++ b/model_boot_cdd_device_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *BootCddDeviceList) GetResultsOk() ([]BootCddDevice, bool) { // HasResults returns a boolean if a field has been set. func (o *BootCddDeviceList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *BootCddDeviceList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *BootCddDeviceList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type BootCddDeviceListWithoutEmbeddedStruct struct { // The total number of 'boot.CddDevice' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_boot_cdd_device_relationship.go b/model_boot_cdd_device_relationship.go index dfa2e2ec5d..b2e1a00739 100644 --- a/model_boot_cdd_device_relationship.go +++ b/model_boot_cdd_device_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_boot_cdd_device_response.go b/model_boot_cdd_device_response.go index dc0ec88e5f..ca8ea3d82e 100644 --- a/model_boot_cdd_device_response.go +++ b/model_boot_cdd_device_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_boot_configured_device.go b/model_boot_configured_device.go index 008f612e07..526a26efd4 100644 --- a/model_boot_configured_device.go +++ b/model_boot_configured_device.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -285,6 +285,10 @@ func (o *BootConfiguredDevice) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -294,11 +298,23 @@ func (o *BootConfiguredDevice) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type BootConfiguredDeviceWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. The enum values provides the list of concrete types that can be instantiated from this abstract type. ClassId string `json:"ClassId"` diff --git a/model_boot_device_base.go b/model_boot_device_base.go index bb38b7fd2d..999ae9ed86 100644 --- a/model_boot_device_base.go +++ b/model_boot_device_base.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -31,7 +31,7 @@ type BootDeviceBase struct { // Specifies if the boot device is enabled or disabled. Enabled *bool `json:"Enabled,omitempty"` // A name that helps identify a boot device. It can be any string that adheres to the following constraints. It should start and end with an alphanumeric character. It can have underscores and hyphens. It cannot be more than 30 characters. - Name *string `json:"Name,omitempty"` + Name *string `json:"Name,omitempty" validate:"regexp=((^[a-zA-Z0-9]$){1,30}|(^(([a-zA-Z0-9])([a-zA-Z0-9_\\\\-]{0,28})([a-zA-Z0-9]))$))"` AdditionalProperties map[string]interface{} } @@ -215,6 +215,10 @@ func (o *BootDeviceBase) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -224,11 +228,23 @@ func (o *BootDeviceBase) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type BootDeviceBaseWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. The enum values provides the list of concrete types that can be instantiated from this abstract type. ClassId string `json:"ClassId"` @@ -237,7 +253,7 @@ func (o *BootDeviceBase) UnmarshalJSON(data []byte) (err error) { // Specifies if the boot device is enabled or disabled. Enabled *bool `json:"Enabled,omitempty"` // A name that helps identify a boot device. It can be any string that adheres to the following constraints. It should start and end with an alphanumeric character. It can have underscores and hyphens. It cannot be more than 30 characters. - Name *string `json:"Name,omitempty"` + Name *string `json:"Name,omitempty" validate:"regexp=((^[a-zA-Z0-9]$){1,30}|(^(([a-zA-Z0-9])([a-zA-Z0-9_\\\\-]{0,28})([a-zA-Z0-9]))$))"` } varBootDeviceBaseWithoutEmbeddedStruct := BootDeviceBaseWithoutEmbeddedStruct{} diff --git a/model_boot_device_boot_mode.go b/model_boot_device_boot_mode.go index fe79bb1f29..3fb1e091e0 100644 --- a/model_boot_device_boot_mode.go +++ b/model_boot_device_boot_mode.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -86,6 +86,11 @@ func (o *BootDeviceBootMode) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "boot.DeviceBootMode" of the ClassId field. +func (o *BootDeviceBootMode) GetDefaultClassId() interface{} { + return "boot.DeviceBootMode" +} + // GetObjectType returns the ObjectType field value func (o *BootDeviceBootMode) GetObjectType() string { if o == nil { @@ -110,6 +115,11 @@ func (o *BootDeviceBootMode) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "boot.DeviceBootMode" of the ObjectType field. +func (o *BootDeviceBootMode) GetDefaultObjectType() interface{} { + return "boot.DeviceBootMode" +} + // GetConfiguredBootMode returns the ConfiguredBootMode field value if set, zero value otherwise. func (o *BootDeviceBootMode) GetConfiguredBootMode() string { if o == nil || IsNil(o.ConfiguredBootMode) { @@ -332,7 +342,13 @@ func (o BootDeviceBootMode) ToMap() (map[string]interface{}, error) { if errInventoryBase != nil { return map[string]interface{}{}, errInventoryBase } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.ConfiguredBootMode) { toSerialize["ConfiguredBootMode"] = o.ConfiguredBootMode @@ -366,6 +382,13 @@ func (o *BootDeviceBootMode) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -375,11 +398,23 @@ func (o *BootDeviceBootMode) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type BootDeviceBootModeWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_boot_device_boot_mode_list.go b/model_boot_device_boot_mode_list.go index 62acd4c2dd..d626a5066e 100644 --- a/model_boot_device_boot_mode_list.go +++ b/model_boot_device_boot_mode_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *BootDeviceBootModeList) GetResultsOk() ([]BootDeviceBootMode, bool) { // HasResults returns a boolean if a field has been set. func (o *BootDeviceBootModeList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *BootDeviceBootModeList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *BootDeviceBootModeList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type BootDeviceBootModeListWithoutEmbeddedStruct struct { // The total number of 'boot.DeviceBootMode' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_boot_device_boot_mode_relationship.go b/model_boot_device_boot_mode_relationship.go index dd467d565a..c6ed298fe8 100644 --- a/model_boot_device_boot_mode_relationship.go +++ b/model_boot_device_boot_mode_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_boot_device_boot_mode_response.go b/model_boot_device_boot_mode_response.go index 2196e89ad3..056227d9dd 100644 --- a/model_boot_device_boot_mode_response.go +++ b/model_boot_device_boot_mode_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_boot_device_boot_security.go b/model_boot_device_boot_security.go index 6734711e85..5a01554256 100644 --- a/model_boot_device_boot_security.go +++ b/model_boot_device_boot_security.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -85,6 +85,11 @@ func (o *BootDeviceBootSecurity) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "boot.DeviceBootSecurity" of the ClassId field. +func (o *BootDeviceBootSecurity) GetDefaultClassId() interface{} { + return "boot.DeviceBootSecurity" +} + // GetObjectType returns the ObjectType field value func (o *BootDeviceBootSecurity) GetObjectType() string { if o == nil { @@ -109,6 +114,11 @@ func (o *BootDeviceBootSecurity) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "boot.DeviceBootSecurity" of the ObjectType field. +func (o *BootDeviceBootSecurity) GetDefaultObjectType() interface{} { + return "boot.DeviceBootSecurity" +} + // GetSecureBoot returns the SecureBoot field value if set, zero value otherwise. func (o *BootDeviceBootSecurity) GetSecureBoot() string { if o == nil || IsNil(o.SecureBoot) { @@ -288,7 +298,13 @@ func (o BootDeviceBootSecurity) ToMap() (map[string]interface{}, error) { if errInventoryBase != nil { return map[string]interface{}{}, errInventoryBase } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.SecureBoot) { toSerialize["SecureBoot"] = o.SecureBoot @@ -319,6 +335,13 @@ func (o *BootDeviceBootSecurity) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -328,11 +351,23 @@ func (o *BootDeviceBootSecurity) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type BootDeviceBootSecurityWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_boot_device_boot_security_list.go b/model_boot_device_boot_security_list.go index f9fef63363..ee52433d95 100644 --- a/model_boot_device_boot_security_list.go +++ b/model_boot_device_boot_security_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *BootDeviceBootSecurityList) GetResultsOk() ([]BootDeviceBootSecurity, b // HasResults returns a boolean if a field has been set. func (o *BootDeviceBootSecurityList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *BootDeviceBootSecurityList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *BootDeviceBootSecurityList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type BootDeviceBootSecurityListWithoutEmbeddedStruct struct { // The total number of 'boot.DeviceBootSecurity' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_boot_device_boot_security_relationship.go b/model_boot_device_boot_security_relationship.go index b53746f915..a82a4ec7e7 100644 --- a/model_boot_device_boot_security_relationship.go +++ b/model_boot_device_boot_security_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_boot_device_boot_security_response.go b/model_boot_device_boot_security_response.go index 35bddd2b49..2d4013aae6 100644 --- a/model_boot_device_boot_security_response.go +++ b/model_boot_device_boot_security_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_boot_flex_mmc.go b/model_boot_flex_mmc.go index aee305894c..dbfd91ea37 100644 --- a/model_boot_flex_mmc.go +++ b/model_boot_flex_mmc.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -88,6 +88,11 @@ func (o *BootFlexMmc) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "boot.FlexMmc" of the ClassId field. +func (o *BootFlexMmc) GetDefaultClassId() interface{} { + return "boot.FlexMmc" +} + // GetObjectType returns the ObjectType field value func (o *BootFlexMmc) GetObjectType() string { if o == nil { @@ -112,6 +117,11 @@ func (o *BootFlexMmc) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "boot.FlexMmc" of the ObjectType field. +func (o *BootFlexMmc) GetDefaultObjectType() interface{} { + return "boot.FlexMmc" +} + // GetSubtype returns the Subtype field value if set, zero value otherwise. func (o *BootFlexMmc) GetSubtype() string { if o == nil || IsNil(o.Subtype) { @@ -162,7 +172,13 @@ func (o BootFlexMmc) ToMap() (map[string]interface{}, error) { if errBootDeviceBase != nil { return map[string]interface{}{}, errBootDeviceBase } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Subtype) { toSerialize["Subtype"] = o.Subtype @@ -184,6 +200,13 @@ func (o *BootFlexMmc) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -193,11 +216,23 @@ func (o *BootFlexMmc) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type BootFlexMmcWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_boot_hdd_device.go b/model_boot_hdd_device.go index 0bf8a806ba..f0b3bc9892 100644 --- a/model_boot_hdd_device.go +++ b/model_boot_hdd_device.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -83,6 +83,11 @@ func (o *BootHddDevice) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "boot.HddDevice" of the ClassId field. +func (o *BootHddDevice) GetDefaultClassId() interface{} { + return "boot.HddDevice" +} + // GetObjectType returns the ObjectType field value func (o *BootHddDevice) GetObjectType() string { if o == nil { @@ -107,6 +112,11 @@ func (o *BootHddDevice) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "boot.HddDevice" of the ObjectType field. +func (o *BootHddDevice) GetDefaultObjectType() interface{} { + return "boot.HddDevice" +} + // GetComputePhysical returns the ComputePhysical field value if set, zero value otherwise (both if not set or set to explicit null). func (o *BootHddDevice) GetComputePhysical() ComputePhysicalRelationship { if o == nil || IsNil(o.ComputePhysical.Get()) { @@ -254,7 +264,13 @@ func (o BootHddDevice) ToMap() (map[string]interface{}, error) { if errBootConfiguredDevice != nil { return map[string]interface{}{}, errBootConfiguredDevice } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.ComputePhysical.IsSet() { toSerialize["ComputePhysical"] = o.ComputePhysical.Get() @@ -282,6 +298,13 @@ func (o *BootHddDevice) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -291,11 +314,23 @@ func (o *BootHddDevice) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type BootHddDeviceWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_boot_hdd_device_list.go b/model_boot_hdd_device_list.go index ea189c5a2a..d6c2024881 100644 --- a/model_boot_hdd_device_list.go +++ b/model_boot_hdd_device_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *BootHddDeviceList) GetResultsOk() ([]BootHddDevice, bool) { // HasResults returns a boolean if a field has been set. func (o *BootHddDeviceList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *BootHddDeviceList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *BootHddDeviceList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type BootHddDeviceListWithoutEmbeddedStruct struct { // The total number of 'boot.HddDevice' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_boot_hdd_device_relationship.go b/model_boot_hdd_device_relationship.go index b77e607f8d..04e1e2db1c 100644 --- a/model_boot_hdd_device_relationship.go +++ b/model_boot_hdd_device_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_boot_hdd_device_response.go b/model_boot_hdd_device_response.go index 04952b111b..08673c6a99 100644 --- a/model_boot_hdd_device_response.go +++ b/model_boot_hdd_device_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_boot_http.go b/model_boot_http.go index 9e4c7d431e..eabe17ee4c 100644 --- a/model_boot_http.go +++ b/model_boot_http.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -29,7 +29,7 @@ type BootHttp struct { // The fully-qualified name of the instantiated, concrete type. The value should be the same as the 'ClassId' property. ObjectType string `json:"ObjectType"` // The name of the underlying virtual ethernet interface used by the HTTP boot device. - InterfaceName *string `json:"InterfaceName,omitempty"` + InterfaceName *string `json:"InterfaceName,omitempty" validate:"regexp=^[a-zA-Z0-9-._:]*$"` // Lists the supported Interface Source for HTTP device. Supported values are \"name\" and \"mac\". * `name` - Use interface name to select virtual ethernet interface. * `mac` - Use MAC address to select virtual ethernet interface. * `port` - Use port to select virtual ethernet interface. InterfaceSource *string `json:"InterfaceSource,omitempty"` // The IP config type to use during the HTTP boot process. For DHCP configuration, the IP address, DNS server, netmask and gateway details are obtained from DHCP server. For static configuration, please provide the IP address, DNS server, netmask, and gateway details. * `DHCP` - The type of the IP config is DHCP. * `Static` - The type of the IP config is Static. @@ -37,13 +37,13 @@ type BootHttp struct { // The IP address family type to use during the HTTP boot process. * `IPv4` - The type of the IP address is IPv4. * `IPv6` - The type of the IP address is IPv6. IpType *string `json:"IpType,omitempty"` // The MAC Address of the underlying virtual ethernet interface used by the HTTP boot device. - MacAddress *string `json:"MacAddress,omitempty"` + MacAddress *string `json:"MacAddress,omitempty" validate:"regexp=^$|^(((\\\\d|([a-f]|[A-F])){2}:){5}(\\\\d|([a-f]|[A-F])){2})$"` // The Port ID of the adapter on which the underlying virtual ethernet interface is present. If no port is specified, the default value is -1. Supported values are 0 to 255. Port *int64 `json:"Port,omitempty"` // Protocol to be used for HTTP boot. HTTPS require root certificate for authentication. * `HTTPS` - Secure HTTP protocol, certificate required for authentication. * `HTTP` - HTTP protocol without security certificate requirement. Protocol *string `json:"Protocol,omitempty"` // The slot ID of the adapter on which the underlying virtual ethernet interface is present. Supported values are ( 1 - 255, \"MLOM\", \"L\", \"L1\", \"L2\", \"OCP\"). - Slot *string `json:"Slot,omitempty"` + Slot *string `json:"Slot,omitempty" validate:"regexp=^$|^([1-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5]|L|MLOM|L1|L2|OCP)$"` StaticIpV4Settings NullableBootStaticIpV4Settings `json:"StaticIpV4Settings,omitempty"` StaticIpV6Settings NullableBootStaticIpV6Settings `json:"StaticIpV6Settings,omitempty"` // Boot resource location in URI format. @@ -122,6 +122,11 @@ func (o *BootHttp) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "boot.Http" of the ClassId field. +func (o *BootHttp) GetDefaultClassId() interface{} { + return "boot.Http" +} + // GetObjectType returns the ObjectType field value func (o *BootHttp) GetObjectType() string { if o == nil { @@ -146,6 +151,11 @@ func (o *BootHttp) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "boot.Http" of the ObjectType field. +func (o *BootHttp) GetDefaultObjectType() interface{} { + return "boot.Http" +} + // GetInterfaceName returns the InterfaceName field value if set, zero value otherwise. func (o *BootHttp) GetInterfaceName() string { if o == nil || IsNil(o.InterfaceName) { @@ -538,7 +548,13 @@ func (o BootHttp) ToMap() (map[string]interface{}, error) { if errBootDeviceBase != nil { return map[string]interface{}{}, errBootDeviceBase } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.InterfaceName) { toSerialize["InterfaceName"] = o.InterfaceName @@ -590,6 +606,13 @@ func (o *BootHttp) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -599,18 +622,30 @@ func (o *BootHttp) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type BootHttpWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` // The fully-qualified name of the instantiated, concrete type. The value should be the same as the 'ClassId' property. ObjectType string `json:"ObjectType"` // The name of the underlying virtual ethernet interface used by the HTTP boot device. - InterfaceName *string `json:"InterfaceName,omitempty"` + InterfaceName *string `json:"InterfaceName,omitempty" validate:"regexp=^[a-zA-Z0-9-._:]*$"` // Lists the supported Interface Source for HTTP device. Supported values are \"name\" and \"mac\". * `name` - Use interface name to select virtual ethernet interface. * `mac` - Use MAC address to select virtual ethernet interface. * `port` - Use port to select virtual ethernet interface. InterfaceSource *string `json:"InterfaceSource,omitempty"` // The IP config type to use during the HTTP boot process. For DHCP configuration, the IP address, DNS server, netmask and gateway details are obtained from DHCP server. For static configuration, please provide the IP address, DNS server, netmask, and gateway details. * `DHCP` - The type of the IP config is DHCP. * `Static` - The type of the IP config is Static. @@ -618,13 +653,13 @@ func (o *BootHttp) UnmarshalJSON(data []byte) (err error) { // The IP address family type to use during the HTTP boot process. * `IPv4` - The type of the IP address is IPv4. * `IPv6` - The type of the IP address is IPv6. IpType *string `json:"IpType,omitempty"` // The MAC Address of the underlying virtual ethernet interface used by the HTTP boot device. - MacAddress *string `json:"MacAddress,omitempty"` + MacAddress *string `json:"MacAddress,omitempty" validate:"regexp=^$|^(((\\\\d|([a-f]|[A-F])){2}:){5}(\\\\d|([a-f]|[A-F])){2})$"` // The Port ID of the adapter on which the underlying virtual ethernet interface is present. If no port is specified, the default value is -1. Supported values are 0 to 255. Port *int64 `json:"Port,omitempty"` // Protocol to be used for HTTP boot. HTTPS require root certificate for authentication. * `HTTPS` - Secure HTTP protocol, certificate required for authentication. * `HTTP` - HTTP protocol without security certificate requirement. Protocol *string `json:"Protocol,omitempty"` // The slot ID of the adapter on which the underlying virtual ethernet interface is present. Supported values are ( 1 - 255, \"MLOM\", \"L\", \"L1\", \"L2\", \"OCP\"). - Slot *string `json:"Slot,omitempty"` + Slot *string `json:"Slot,omitempty" validate:"regexp=^$|^([1-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5]|L|MLOM|L1|L2|OCP)$"` StaticIpV4Settings NullableBootStaticIpV4Settings `json:"StaticIpV4Settings,omitempty"` StaticIpV6Settings NullableBootStaticIpV6Settings `json:"StaticIpV6Settings,omitempty"` // Boot resource location in URI format. diff --git a/model_boot_iscsi.go b/model_boot_iscsi.go index 5ef5b1e9e8..f8dedecfb9 100644 --- a/model_boot_iscsi.go +++ b/model_boot_iscsi.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -30,11 +30,11 @@ type BootIscsi struct { ObjectType string `json:"ObjectType"` Bootloader NullableBootBootloader `json:"Bootloader,omitempty"` // The name of the underlying virtual ethernet interface used by the iSCSI boot device. - InterfaceName *string `json:"InterfaceName,omitempty"` + InterfaceName *string `json:"InterfaceName,omitempty" validate:"regexp=^[a-zA-Z0-9-._:]*$"` // Port ID of the ISCSI boot device. Port *int64 `json:"Port,omitempty"` // The slot id of the device. Supported values are (1 - 255, \"MLOM\", \"L\", \"L1\", \"L2\", \"OCP\"). - Slot *string `json:"Slot,omitempty"` + Slot *string `json:"Slot,omitempty" validate:"regexp=^$|^([1-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5]|L|MLOM|L1|L2|OCP)$"` AdditionalProperties map[string]interface{} } @@ -93,6 +93,11 @@ func (o *BootIscsi) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "boot.Iscsi" of the ClassId field. +func (o *BootIscsi) GetDefaultClassId() interface{} { + return "boot.Iscsi" +} + // GetObjectType returns the ObjectType field value func (o *BootIscsi) GetObjectType() string { if o == nil { @@ -117,6 +122,11 @@ func (o *BootIscsi) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "boot.Iscsi" of the ObjectType field. +func (o *BootIscsi) GetDefaultObjectType() interface{} { + return "boot.Iscsi" +} + // GetBootloader returns the Bootloader field value if set, zero value otherwise (both if not set or set to explicit null). func (o *BootIscsi) GetBootloader() BootBootloader { if o == nil || IsNil(o.Bootloader.Get()) { @@ -274,7 +284,13 @@ func (o BootIscsi) ToMap() (map[string]interface{}, error) { if errBootDeviceBase != nil { return map[string]interface{}{}, errBootDeviceBase } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.Bootloader.IsSet() { toSerialize["Bootloader"] = o.Bootloader.Get() @@ -305,6 +321,13 @@ func (o *BootIscsi) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -314,11 +337,23 @@ func (o *BootIscsi) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type BootIscsiWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` @@ -326,11 +361,11 @@ func (o *BootIscsi) UnmarshalJSON(data []byte) (err error) { ObjectType string `json:"ObjectType"` Bootloader NullableBootBootloader `json:"Bootloader,omitempty"` // The name of the underlying virtual ethernet interface used by the iSCSI boot device. - InterfaceName *string `json:"InterfaceName,omitempty"` + InterfaceName *string `json:"InterfaceName,omitempty" validate:"regexp=^[a-zA-Z0-9-._:]*$"` // Port ID of the ISCSI boot device. Port *int64 `json:"Port,omitempty"` // The slot id of the device. Supported values are (1 - 255, \"MLOM\", \"L\", \"L1\", \"L2\", \"OCP\"). - Slot *string `json:"Slot,omitempty"` + Slot *string `json:"Slot,omitempty" validate:"regexp=^$|^([1-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5]|L|MLOM|L1|L2|OCP)$"` } varBootIscsiWithoutEmbeddedStruct := BootIscsiWithoutEmbeddedStruct{} diff --git a/model_boot_iscsi_device.go b/model_boot_iscsi_device.go index a9f005f805..c7640d4e8a 100644 --- a/model_boot_iscsi_device.go +++ b/model_boot_iscsi_device.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -83,6 +83,11 @@ func (o *BootIscsiDevice) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "boot.IscsiDevice" of the ClassId field. +func (o *BootIscsiDevice) GetDefaultClassId() interface{} { + return "boot.IscsiDevice" +} + // GetObjectType returns the ObjectType field value func (o *BootIscsiDevice) GetObjectType() string { if o == nil { @@ -107,6 +112,11 @@ func (o *BootIscsiDevice) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "boot.IscsiDevice" of the ObjectType field. +func (o *BootIscsiDevice) GetDefaultObjectType() interface{} { + return "boot.IscsiDevice" +} + // GetComputePhysical returns the ComputePhysical field value if set, zero value otherwise (both if not set or set to explicit null). func (o *BootIscsiDevice) GetComputePhysical() ComputePhysicalRelationship { if o == nil || IsNil(o.ComputePhysical.Get()) { @@ -254,7 +264,13 @@ func (o BootIscsiDevice) ToMap() (map[string]interface{}, error) { if errBootConfiguredDevice != nil { return map[string]interface{}{}, errBootConfiguredDevice } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.ComputePhysical.IsSet() { toSerialize["ComputePhysical"] = o.ComputePhysical.Get() @@ -282,6 +298,13 @@ func (o *BootIscsiDevice) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -291,11 +314,23 @@ func (o *BootIscsiDevice) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type BootIscsiDeviceWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_boot_iscsi_device_list.go b/model_boot_iscsi_device_list.go index 79cf295de1..c736501b8d 100644 --- a/model_boot_iscsi_device_list.go +++ b/model_boot_iscsi_device_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *BootIscsiDeviceList) GetResultsOk() ([]BootIscsiDevice, bool) { // HasResults returns a boolean if a field has been set. func (o *BootIscsiDeviceList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *BootIscsiDeviceList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *BootIscsiDeviceList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type BootIscsiDeviceListWithoutEmbeddedStruct struct { // The total number of 'boot.IscsiDevice' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_boot_iscsi_device_relationship.go b/model_boot_iscsi_device_relationship.go index db26bc45b3..3b7bed23f5 100644 --- a/model_boot_iscsi_device_relationship.go +++ b/model_boot_iscsi_device_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_boot_iscsi_device_response.go b/model_boot_iscsi_device_response.go index 1f9ab8637e..ed200ee39f 100644 --- a/model_boot_iscsi_device_response.go +++ b/model_boot_iscsi_device_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_boot_local_cdd.go b/model_boot_local_cdd.go index d12618ee26..2494664f41 100644 --- a/model_boot_local_cdd.go +++ b/model_boot_local_cdd.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -85,6 +85,10 @@ func (o *BootLocalCdd) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -94,11 +98,23 @@ func (o *BootLocalCdd) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type BootLocalCddWithoutEmbeddedStruct struct { } diff --git a/model_boot_local_disk.go b/model_boot_local_disk.go index a29ec62308..0d923e63db 100644 --- a/model_boot_local_disk.go +++ b/model_boot_local_disk.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -30,7 +30,7 @@ type BootLocalDisk struct { ObjectType string `json:"ObjectType"` Bootloader NullableBootBootloader `json:"Bootloader,omitempty"` // The slot id of the local disk device. Supported values for Standalone Rack servers are (1-205, \"M\", \"HBA\", \"SAS\", \"RAID\", \"MRAID\", \"MRAID1\", \"MRAID2\", \"MSTOR-RAID\"). Supported values for FI-attached servers are (1-205, \"RAID\", \"MRAID\", \"FMEZZ1-SAS\", \"MRAID1\", \"MRAID2\", \"MSTOR-RAID\", \"MSTOR-RAID-1\", \"MSTOR-RAID-2\"). - Slot *string `json:"Slot,omitempty"` + Slot *string `json:"Slot,omitempty" validate:"regexp=^$|^([1-9]|[1-9][0-9]|1[0-9][0-9]|20[0-5]|M|HBA|SAS|MRAID|RAID|MRAID1|MRAID2|MSTOR-RAID|FMEZZ1-SAS|MSTOR-RAID-1|MSTOR-RAID-2)$"` AdditionalProperties map[string]interface{} } @@ -85,6 +85,11 @@ func (o *BootLocalDisk) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "boot.LocalDisk" of the ClassId field. +func (o *BootLocalDisk) GetDefaultClassId() interface{} { + return "boot.LocalDisk" +} + // GetObjectType returns the ObjectType field value func (o *BootLocalDisk) GetObjectType() string { if o == nil { @@ -109,6 +114,11 @@ func (o *BootLocalDisk) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "boot.LocalDisk" of the ObjectType field. +func (o *BootLocalDisk) GetDefaultObjectType() interface{} { + return "boot.LocalDisk" +} + // GetBootloader returns the Bootloader field value if set, zero value otherwise (both if not set or set to explicit null). func (o *BootLocalDisk) GetBootloader() BootBootloader { if o == nil || IsNil(o.Bootloader.Get()) { @@ -202,7 +212,13 @@ func (o BootLocalDisk) ToMap() (map[string]interface{}, error) { if errBootDeviceBase != nil { return map[string]interface{}{}, errBootDeviceBase } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.Bootloader.IsSet() { toSerialize["Bootloader"] = o.Bootloader.Get() @@ -227,6 +243,13 @@ func (o *BootLocalDisk) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -236,11 +259,23 @@ func (o *BootLocalDisk) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type BootLocalDiskWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` @@ -248,7 +283,7 @@ func (o *BootLocalDisk) UnmarshalJSON(data []byte) (err error) { ObjectType string `json:"ObjectType"` Bootloader NullableBootBootloader `json:"Bootloader,omitempty"` // The slot id of the local disk device. Supported values for Standalone Rack servers are (1-205, \"M\", \"HBA\", \"SAS\", \"RAID\", \"MRAID\", \"MRAID1\", \"MRAID2\", \"MSTOR-RAID\"). Supported values for FI-attached servers are (1-205, \"RAID\", \"MRAID\", \"FMEZZ1-SAS\", \"MRAID1\", \"MRAID2\", \"MSTOR-RAID\", \"MSTOR-RAID-1\", \"MSTOR-RAID-2\"). - Slot *string `json:"Slot,omitempty"` + Slot *string `json:"Slot,omitempty" validate:"regexp=^$|^([1-9]|[1-9][0-9]|1[0-9][0-9]|20[0-5]|M|HBA|SAS|MRAID|RAID|MRAID1|MRAID2|MSTOR-RAID|FMEZZ1-SAS|MSTOR-RAID-1|MSTOR-RAID-2)$"` } varBootLocalDiskWithoutEmbeddedStruct := BootLocalDiskWithoutEmbeddedStruct{} diff --git a/model_boot_nvme.go b/model_boot_nvme.go index 2961e09c50..1b62fbdfee 100644 --- a/model_boot_nvme.go +++ b/model_boot_nvme.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -83,6 +83,11 @@ func (o *BootNvme) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "boot.Nvme" of the ClassId field. +func (o *BootNvme) GetDefaultClassId() interface{} { + return "boot.Nvme" +} + // GetObjectType returns the ObjectType field value func (o *BootNvme) GetObjectType() string { if o == nil { @@ -107,6 +112,11 @@ func (o *BootNvme) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "boot.Nvme" of the ObjectType field. +func (o *BootNvme) GetDefaultObjectType() interface{} { + return "boot.Nvme" +} + // GetBootloader returns the Bootloader field value if set, zero value otherwise (both if not set or set to explicit null). func (o *BootNvme) GetBootloader() BootBootloader { if o == nil || IsNil(o.Bootloader.Get()) { @@ -168,7 +178,13 @@ func (o BootNvme) ToMap() (map[string]interface{}, error) { if errBootDeviceBase != nil { return map[string]interface{}{}, errBootDeviceBase } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.Bootloader.IsSet() { toSerialize["Bootloader"] = o.Bootloader.Get() @@ -190,6 +206,13 @@ func (o *BootNvme) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -199,11 +222,23 @@ func (o *BootNvme) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type BootNvmeWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_boot_nvme_device.go b/model_boot_nvme_device.go index d2e2f2b11c..5f9aafb8d0 100644 --- a/model_boot_nvme_device.go +++ b/model_boot_nvme_device.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -83,6 +83,11 @@ func (o *BootNvmeDevice) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "boot.NvmeDevice" of the ClassId field. +func (o *BootNvmeDevice) GetDefaultClassId() interface{} { + return "boot.NvmeDevice" +} + // GetObjectType returns the ObjectType field value func (o *BootNvmeDevice) GetObjectType() string { if o == nil { @@ -107,6 +112,11 @@ func (o *BootNvmeDevice) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "boot.NvmeDevice" of the ObjectType field. +func (o *BootNvmeDevice) GetDefaultObjectType() interface{} { + return "boot.NvmeDevice" +} + // GetComputePhysical returns the ComputePhysical field value if set, zero value otherwise (both if not set or set to explicit null). func (o *BootNvmeDevice) GetComputePhysical() ComputePhysicalRelationship { if o == nil || IsNil(o.ComputePhysical.Get()) { @@ -254,7 +264,13 @@ func (o BootNvmeDevice) ToMap() (map[string]interface{}, error) { if errBootConfiguredDevice != nil { return map[string]interface{}{}, errBootConfiguredDevice } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.ComputePhysical.IsSet() { toSerialize["ComputePhysical"] = o.ComputePhysical.Get() @@ -282,6 +298,13 @@ func (o *BootNvmeDevice) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -291,11 +314,23 @@ func (o *BootNvmeDevice) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type BootNvmeDeviceWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_boot_nvme_device_list.go b/model_boot_nvme_device_list.go index 1eacabd1f4..af1892052e 100644 --- a/model_boot_nvme_device_list.go +++ b/model_boot_nvme_device_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *BootNvmeDeviceList) GetResultsOk() ([]BootNvmeDevice, bool) { // HasResults returns a boolean if a field has been set. func (o *BootNvmeDeviceList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *BootNvmeDeviceList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *BootNvmeDeviceList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type BootNvmeDeviceListWithoutEmbeddedStruct struct { // The total number of 'boot.NvmeDevice' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_boot_nvme_device_relationship.go b/model_boot_nvme_device_relationship.go index 011d58402b..2970a661e5 100644 --- a/model_boot_nvme_device_relationship.go +++ b/model_boot_nvme_device_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_boot_nvme_device_response.go b/model_boot_nvme_device_response.go index ed587f8962..2fd90c527a 100644 --- a/model_boot_nvme_device_response.go +++ b/model_boot_nvme_device_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_boot_pch_storage.go b/model_boot_pch_storage.go index 1a2b4f6ac9..908a4337ff 100644 --- a/model_boot_pch_storage.go +++ b/model_boot_pch_storage.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -89,6 +89,11 @@ func (o *BootPchStorage) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "boot.PchStorage" of the ClassId field. +func (o *BootPchStorage) GetDefaultClassId() interface{} { + return "boot.PchStorage" +} + // GetObjectType returns the ObjectType field value func (o *BootPchStorage) GetObjectType() string { if o == nil { @@ -113,6 +118,11 @@ func (o *BootPchStorage) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "boot.PchStorage" of the ObjectType field. +func (o *BootPchStorage) GetDefaultObjectType() interface{} { + return "boot.PchStorage" +} + // GetBootloader returns the Bootloader field value if set, zero value otherwise (both if not set or set to explicit null). func (o *BootPchStorage) GetBootloader() BootBootloader { if o == nil || IsNil(o.Bootloader.Get()) { @@ -206,7 +216,13 @@ func (o BootPchStorage) ToMap() (map[string]interface{}, error) { if errBootDeviceBase != nil { return map[string]interface{}{}, errBootDeviceBase } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.Bootloader.IsSet() { toSerialize["Bootloader"] = o.Bootloader.Get() @@ -231,6 +247,13 @@ func (o *BootPchStorage) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -240,11 +263,23 @@ func (o *BootPchStorage) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type BootPchStorageWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_boot_pch_storage_device.go b/model_boot_pch_storage_device.go index 7957193d86..0155623892 100644 --- a/model_boot_pch_storage_device.go +++ b/model_boot_pch_storage_device.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -83,6 +83,11 @@ func (o *BootPchStorageDevice) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "boot.PchStorageDevice" of the ClassId field. +func (o *BootPchStorageDevice) GetDefaultClassId() interface{} { + return "boot.PchStorageDevice" +} + // GetObjectType returns the ObjectType field value func (o *BootPchStorageDevice) GetObjectType() string { if o == nil { @@ -107,6 +112,11 @@ func (o *BootPchStorageDevice) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "boot.PchStorageDevice" of the ObjectType field. +func (o *BootPchStorageDevice) GetDefaultObjectType() interface{} { + return "boot.PchStorageDevice" +} + // GetComputePhysical returns the ComputePhysical field value if set, zero value otherwise (both if not set or set to explicit null). func (o *BootPchStorageDevice) GetComputePhysical() ComputePhysicalRelationship { if o == nil || IsNil(o.ComputePhysical.Get()) { @@ -254,7 +264,13 @@ func (o BootPchStorageDevice) ToMap() (map[string]interface{}, error) { if errBootConfiguredDevice != nil { return map[string]interface{}{}, errBootConfiguredDevice } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.ComputePhysical.IsSet() { toSerialize["ComputePhysical"] = o.ComputePhysical.Get() @@ -282,6 +298,13 @@ func (o *BootPchStorageDevice) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -291,11 +314,23 @@ func (o *BootPchStorageDevice) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type BootPchStorageDeviceWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_boot_pch_storage_device_list.go b/model_boot_pch_storage_device_list.go index c61fc196ad..c8910f5122 100644 --- a/model_boot_pch_storage_device_list.go +++ b/model_boot_pch_storage_device_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *BootPchStorageDeviceList) GetResultsOk() ([]BootPchStorageDevice, bool) // HasResults returns a boolean if a field has been set. func (o *BootPchStorageDeviceList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *BootPchStorageDeviceList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *BootPchStorageDeviceList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type BootPchStorageDeviceListWithoutEmbeddedStruct struct { // The total number of 'boot.PchStorageDevice' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_boot_pch_storage_device_relationship.go b/model_boot_pch_storage_device_relationship.go index 6c8c304664..be7fceecf6 100644 --- a/model_boot_pch_storage_device_relationship.go +++ b/model_boot_pch_storage_device_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_boot_pch_storage_device_response.go b/model_boot_pch_storage_device_response.go index fe1a13033e..97f1b9ec52 100644 --- a/model_boot_pch_storage_device_response.go +++ b/model_boot_pch_storage_device_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_boot_precision_policy.go b/model_boot_precision_policy.go index 4dfd8a6ab7..8616fe5f6f 100644 --- a/model_boot_precision_policy.go +++ b/model_boot_precision_policy.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -96,6 +96,11 @@ func (o *BootPrecisionPolicy) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "boot.PrecisionPolicy" of the ClassId field. +func (o *BootPrecisionPolicy) GetDefaultClassId() interface{} { + return "boot.PrecisionPolicy" +} + // GetObjectType returns the ObjectType field value func (o *BootPrecisionPolicy) GetObjectType() string { if o == nil { @@ -120,6 +125,11 @@ func (o *BootPrecisionPolicy) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "boot.PrecisionPolicy" of the ObjectType field. +func (o *BootPrecisionPolicy) GetDefaultObjectType() interface{} { + return "boot.PrecisionPolicy" +} + // GetBootDevices returns the BootDevices field value if set, zero value otherwise (both if not set or set to explicit null). func (o *BootPrecisionPolicy) GetBootDevices() []BootDeviceBase { if o == nil { @@ -141,7 +151,7 @@ func (o *BootPrecisionPolicy) GetBootDevicesOk() ([]BootDeviceBase, bool) { // HasBootDevices returns a boolean if a field has been set. func (o *BootPrecisionPolicy) HasBootDevices() bool { - if o != nil && IsNil(o.BootDevices) { + if o != nil && !IsNil(o.BootDevices) { return true } @@ -281,7 +291,7 @@ func (o *BootPrecisionPolicy) GetProfilesOk() ([]PolicyAbstractConfigProfileRela // HasProfiles returns a boolean if a field has been set. func (o *BootPrecisionPolicy) HasProfiles() bool { - if o != nil && IsNil(o.Profiles) { + if o != nil && !IsNil(o.Profiles) { return true } @@ -311,7 +321,13 @@ func (o BootPrecisionPolicy) ToMap() (map[string]interface{}, error) { if errPolicyAbstractPolicy != nil { return map[string]interface{}{}, errPolicyAbstractPolicy } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.BootDevices != nil { toSerialize["BootDevices"] = o.BootDevices @@ -345,6 +361,13 @@ func (o *BootPrecisionPolicy) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -354,11 +377,23 @@ func (o *BootPrecisionPolicy) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type BootPrecisionPolicyWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_boot_precision_policy_list.go b/model_boot_precision_policy_list.go index d2731dddcd..039018c614 100644 --- a/model_boot_precision_policy_list.go +++ b/model_boot_precision_policy_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *BootPrecisionPolicyList) GetResultsOk() ([]BootPrecisionPolicy, bool) { // HasResults returns a boolean if a field has been set. func (o *BootPrecisionPolicyList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *BootPrecisionPolicyList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *BootPrecisionPolicyList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type BootPrecisionPolicyListWithoutEmbeddedStruct struct { // The total number of 'boot.PrecisionPolicy' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_boot_precision_policy_response.go b/model_boot_precision_policy_response.go index d5588f014f..409ce7423b 100644 --- a/model_boot_precision_policy_response.go +++ b/model_boot_precision_policy_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_boot_pxe.go b/model_boot_pxe.go index f63bbb9a0c..313a653db5 100644 --- a/model_boot_pxe.go +++ b/model_boot_pxe.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -29,17 +29,17 @@ type BootPxe struct { // The fully-qualified name of the instantiated, concrete type. The value should be the same as the 'ClassId' property. ObjectType string `json:"ObjectType"` // The name of the underlying virtual ethernet interface used by the PXE boot device. - InterfaceName *string `json:"InterfaceName,omitempty"` + InterfaceName *string `json:"InterfaceName,omitempty" validate:"regexp=^[a-zA-Z0-9-._:]*$"` // Lists the supported methods to provide network boot device configuration. Supported values are \"name\" and \"mac\". * `name` - Use interface name to select virtual ethernet interface. * `mac` - Use MAC address to select virtual ethernet interface. * `port` - Use port to select virtual ethernet interface. InterfaceSource *string `json:"InterfaceSource,omitempty"` // The IP Address family type to use during the PXE Boot process. * `None` - Default value if IpType is not specified. * `IPv4` - The IPv4 address family type. * `IPv6` - The IPv6 address family type. IpType *string `json:"IpType,omitempty"` // The MAC Address of the underlying virtual ethernet interface used by the PXE boot device. - MacAddress *string `json:"MacAddress,omitempty"` + MacAddress *string `json:"MacAddress,omitempty" validate:"regexp=^$|^(((\\\\d|([a-f]|[A-F])){2}:){5}(\\\\d|([a-f]|[A-F])){2})$"` // The Port ID of the adapter on which the underlying virtual ethernet interface is present. If no port is specified, the default value is -1. Supported values are 0 to 255. Port *int64 `json:"Port,omitempty"` // The slot ID of the adapter on which the underlying virtual ethernet interface is present. Supported values are ( 1 - 255, \"MLOM\", \"L\", \"L1\", \"L2\", \"OCP\"). - Slot *string `json:"Slot,omitempty"` + Slot *string `json:"Slot,omitempty" validate:"regexp=^$|^([1-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5]|L|MLOM|L1|L2|OCP)$"` AdditionalProperties map[string]interface{} } @@ -106,6 +106,11 @@ func (o *BootPxe) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "boot.Pxe" of the ClassId field. +func (o *BootPxe) GetDefaultClassId() interface{} { + return "boot.Pxe" +} + // GetObjectType returns the ObjectType field value func (o *BootPxe) GetObjectType() string { if o == nil { @@ -130,6 +135,11 @@ func (o *BootPxe) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "boot.Pxe" of the ObjectType field. +func (o *BootPxe) GetDefaultObjectType() interface{} { + return "boot.Pxe" +} + // GetInterfaceName returns the InterfaceName field value if set, zero value otherwise. func (o *BootPxe) GetInterfaceName() string { if o == nil || IsNil(o.InterfaceName) { @@ -340,7 +350,13 @@ func (o BootPxe) ToMap() (map[string]interface{}, error) { if errBootDeviceBase != nil { return map[string]interface{}{}, errBootDeviceBase } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.InterfaceName) { toSerialize["InterfaceName"] = o.InterfaceName @@ -377,6 +393,13 @@ func (o *BootPxe) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -386,28 +409,40 @@ func (o *BootPxe) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type BootPxeWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` // The fully-qualified name of the instantiated, concrete type. The value should be the same as the 'ClassId' property. ObjectType string `json:"ObjectType"` // The name of the underlying virtual ethernet interface used by the PXE boot device. - InterfaceName *string `json:"InterfaceName,omitempty"` + InterfaceName *string `json:"InterfaceName,omitempty" validate:"regexp=^[a-zA-Z0-9-._:]*$"` // Lists the supported methods to provide network boot device configuration. Supported values are \"name\" and \"mac\". * `name` - Use interface name to select virtual ethernet interface. * `mac` - Use MAC address to select virtual ethernet interface. * `port` - Use port to select virtual ethernet interface. InterfaceSource *string `json:"InterfaceSource,omitempty"` // The IP Address family type to use during the PXE Boot process. * `None` - Default value if IpType is not specified. * `IPv4` - The IPv4 address family type. * `IPv6` - The IPv6 address family type. IpType *string `json:"IpType,omitempty"` // The MAC Address of the underlying virtual ethernet interface used by the PXE boot device. - MacAddress *string `json:"MacAddress,omitempty"` + MacAddress *string `json:"MacAddress,omitempty" validate:"regexp=^$|^(((\\\\d|([a-f]|[A-F])){2}:){5}(\\\\d|([a-f]|[A-F])){2})$"` // The Port ID of the adapter on which the underlying virtual ethernet interface is present. If no port is specified, the default value is -1. Supported values are 0 to 255. Port *int64 `json:"Port,omitempty"` // The slot ID of the adapter on which the underlying virtual ethernet interface is present. Supported values are ( 1 - 255, \"MLOM\", \"L\", \"L1\", \"L2\", \"OCP\"). - Slot *string `json:"Slot,omitempty"` + Slot *string `json:"Slot,omitempty" validate:"regexp=^$|^([1-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5]|L|MLOM|L1|L2|OCP)$"` } varBootPxeWithoutEmbeddedStruct := BootPxeWithoutEmbeddedStruct{} diff --git a/model_boot_pxe_device.go b/model_boot_pxe_device.go index 7e1df006b6..b5f23c7390 100644 --- a/model_boot_pxe_device.go +++ b/model_boot_pxe_device.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -83,6 +83,11 @@ func (o *BootPxeDevice) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "boot.PxeDevice" of the ClassId field. +func (o *BootPxeDevice) GetDefaultClassId() interface{} { + return "boot.PxeDevice" +} + // GetObjectType returns the ObjectType field value func (o *BootPxeDevice) GetObjectType() string { if o == nil { @@ -107,6 +112,11 @@ func (o *BootPxeDevice) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "boot.PxeDevice" of the ObjectType field. +func (o *BootPxeDevice) GetDefaultObjectType() interface{} { + return "boot.PxeDevice" +} + // GetComputePhysical returns the ComputePhysical field value if set, zero value otherwise (both if not set or set to explicit null). func (o *BootPxeDevice) GetComputePhysical() ComputePhysicalRelationship { if o == nil || IsNil(o.ComputePhysical.Get()) { @@ -254,7 +264,13 @@ func (o BootPxeDevice) ToMap() (map[string]interface{}, error) { if errBootConfiguredDevice != nil { return map[string]interface{}{}, errBootConfiguredDevice } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.ComputePhysical.IsSet() { toSerialize["ComputePhysical"] = o.ComputePhysical.Get() @@ -282,6 +298,13 @@ func (o *BootPxeDevice) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -291,11 +314,23 @@ func (o *BootPxeDevice) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type BootPxeDeviceWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_boot_pxe_device_list.go b/model_boot_pxe_device_list.go index d9c255fe1a..7509fd3a6c 100644 --- a/model_boot_pxe_device_list.go +++ b/model_boot_pxe_device_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *BootPxeDeviceList) GetResultsOk() ([]BootPxeDevice, bool) { // HasResults returns a boolean if a field has been set. func (o *BootPxeDeviceList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *BootPxeDeviceList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *BootPxeDeviceList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type BootPxeDeviceListWithoutEmbeddedStruct struct { // The total number of 'boot.PxeDevice' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_boot_pxe_device_relationship.go b/model_boot_pxe_device_relationship.go index 777c56ee06..be222cd1d3 100644 --- a/model_boot_pxe_device_relationship.go +++ b/model_boot_pxe_device_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_boot_pxe_device_response.go b/model_boot_pxe_device_response.go index e83ec2b202..9bebe2563f 100644 --- a/model_boot_pxe_device_response.go +++ b/model_boot_pxe_device_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_boot_san.go b/model_boot_san.go index 27fc02fcef..61232bb295 100644 --- a/model_boot_san.go +++ b/model_boot_san.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -30,13 +30,13 @@ type BootSan struct { ObjectType string `json:"ObjectType"` Bootloader NullableBootBootloader `json:"Bootloader,omitempty"` // The name of the underlying vHBA interface to be used by the SAN boot device. - InterfaceName *string `json:"InterfaceName,omitempty"` + InterfaceName *string `json:"InterfaceName,omitempty" validate:"regexp=^[a-zA-Z0-9-._:]*$"` // The Logical Unit Number (LUN) of the device. For SAN boot configuration to be deployed on a server with 1300 family of Cisco VIC adapters, the recommendation is for the boot LUN to be numbered as 0 to ensure that LUN is mounted as the first disk from which the server boots. Lun *int64 `json:"Lun,omitempty"` // Slot ID of the device. Supported values are ( 1 - 255, \"MLOM\", \"L1\", \"L2\" ). - Slot *string `json:"Slot,omitempty"` + Slot *string `json:"Slot,omitempty" validate:"regexp=^$|^([1-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5]|MLOM|L1|L2)$"` // The WWPN Address of the underlying fibre channel interface used by the SAN boot device. Value must be in hexadecimal format xx:xx:xx:xx:xx:xx:xx:xx. - Wwpn *string `json:"Wwpn,omitempty"` + Wwpn *string `json:"Wwpn,omitempty" validate:"regexp=^$|(^([0-9a-fA-F]{2}:){7}[0-9a-fA-F]{2}$)"` AdditionalProperties map[string]interface{} } @@ -95,6 +95,11 @@ func (o *BootSan) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "boot.San" of the ClassId field. +func (o *BootSan) GetDefaultClassId() interface{} { + return "boot.San" +} + // GetObjectType returns the ObjectType field value func (o *BootSan) GetObjectType() string { if o == nil { @@ -119,6 +124,11 @@ func (o *BootSan) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "boot.San" of the ObjectType field. +func (o *BootSan) GetDefaultObjectType() interface{} { + return "boot.San" +} + // GetBootloader returns the Bootloader field value if set, zero value otherwise (both if not set or set to explicit null). func (o *BootSan) GetBootloader() BootBootloader { if o == nil || IsNil(o.Bootloader.Get()) { @@ -308,7 +318,13 @@ func (o BootSan) ToMap() (map[string]interface{}, error) { if errBootDeviceBase != nil { return map[string]interface{}{}, errBootDeviceBase } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.Bootloader.IsSet() { toSerialize["Bootloader"] = o.Bootloader.Get() @@ -342,6 +358,13 @@ func (o *BootSan) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -351,11 +374,23 @@ func (o *BootSan) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type BootSanWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` @@ -363,13 +398,13 @@ func (o *BootSan) UnmarshalJSON(data []byte) (err error) { ObjectType string `json:"ObjectType"` Bootloader NullableBootBootloader `json:"Bootloader,omitempty"` // The name of the underlying vHBA interface to be used by the SAN boot device. - InterfaceName *string `json:"InterfaceName,omitempty"` + InterfaceName *string `json:"InterfaceName,omitempty" validate:"regexp=^[a-zA-Z0-9-._:]*$"` // The Logical Unit Number (LUN) of the device. For SAN boot configuration to be deployed on a server with 1300 family of Cisco VIC adapters, the recommendation is for the boot LUN to be numbered as 0 to ensure that LUN is mounted as the first disk from which the server boots. Lun *int64 `json:"Lun,omitempty"` // Slot ID of the device. Supported values are ( 1 - 255, \"MLOM\", \"L1\", \"L2\" ). - Slot *string `json:"Slot,omitempty"` + Slot *string `json:"Slot,omitempty" validate:"regexp=^$|^([1-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5]|MLOM|L1|L2)$"` // The WWPN Address of the underlying fibre channel interface used by the SAN boot device. Value must be in hexadecimal format xx:xx:xx:xx:xx:xx:xx:xx. - Wwpn *string `json:"Wwpn,omitempty"` + Wwpn *string `json:"Wwpn,omitempty" validate:"regexp=^$|(^([0-9a-fA-F]{2}:){7}[0-9a-fA-F]{2}$)"` } varBootSanWithoutEmbeddedStruct := BootSanWithoutEmbeddedStruct{} diff --git a/model_boot_san_device.go b/model_boot_san_device.go index 474901bf2a..041a47d116 100644 --- a/model_boot_san_device.go +++ b/model_boot_san_device.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -83,6 +83,11 @@ func (o *BootSanDevice) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "boot.SanDevice" of the ClassId field. +func (o *BootSanDevice) GetDefaultClassId() interface{} { + return "boot.SanDevice" +} + // GetObjectType returns the ObjectType field value func (o *BootSanDevice) GetObjectType() string { if o == nil { @@ -107,6 +112,11 @@ func (o *BootSanDevice) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "boot.SanDevice" of the ObjectType field. +func (o *BootSanDevice) GetDefaultObjectType() interface{} { + return "boot.SanDevice" +} + // GetComputePhysical returns the ComputePhysical field value if set, zero value otherwise (both if not set or set to explicit null). func (o *BootSanDevice) GetComputePhysical() ComputePhysicalRelationship { if o == nil || IsNil(o.ComputePhysical.Get()) { @@ -254,7 +264,13 @@ func (o BootSanDevice) ToMap() (map[string]interface{}, error) { if errBootConfiguredDevice != nil { return map[string]interface{}{}, errBootConfiguredDevice } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.ComputePhysical.IsSet() { toSerialize["ComputePhysical"] = o.ComputePhysical.Get() @@ -282,6 +298,13 @@ func (o *BootSanDevice) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -291,11 +314,23 @@ func (o *BootSanDevice) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type BootSanDeviceWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_boot_san_device_list.go b/model_boot_san_device_list.go index 433dc10143..41345032e5 100644 --- a/model_boot_san_device_list.go +++ b/model_boot_san_device_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *BootSanDeviceList) GetResultsOk() ([]BootSanDevice, bool) { // HasResults returns a boolean if a field has been set. func (o *BootSanDeviceList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *BootSanDeviceList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *BootSanDeviceList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type BootSanDeviceListWithoutEmbeddedStruct struct { // The total number of 'boot.SanDevice' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_boot_san_device_relationship.go b/model_boot_san_device_relationship.go index 7f4d5b8902..0d17eef3e1 100644 --- a/model_boot_san_device_relationship.go +++ b/model_boot_san_device_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_boot_san_device_response.go b/model_boot_san_device_response.go index cbf7a251b4..740384097a 100644 --- a/model_boot_san_device_response.go +++ b/model_boot_san_device_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_boot_sd_card.go b/model_boot_sd_card.go index 8f152f938d..e9b25154dd 100644 --- a/model_boot_sd_card.go +++ b/model_boot_sd_card.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -95,6 +95,11 @@ func (o *BootSdCard) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "boot.SdCard" of the ClassId field. +func (o *BootSdCard) GetDefaultClassId() interface{} { + return "boot.SdCard" +} + // GetObjectType returns the ObjectType field value func (o *BootSdCard) GetObjectType() string { if o == nil { @@ -119,6 +124,11 @@ func (o *BootSdCard) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "boot.SdCard" of the ObjectType field. +func (o *BootSdCard) GetDefaultObjectType() interface{} { + return "boot.SdCard" +} + // GetBootloader returns the Bootloader field value if set, zero value otherwise (both if not set or set to explicit null). func (o *BootSdCard) GetBootloader() BootBootloader { if o == nil || IsNil(o.Bootloader.Get()) { @@ -244,7 +254,13 @@ func (o BootSdCard) ToMap() (map[string]interface{}, error) { if errBootDeviceBase != nil { return map[string]interface{}{}, errBootDeviceBase } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.Bootloader.IsSet() { toSerialize["Bootloader"] = o.Bootloader.Get() @@ -272,6 +288,13 @@ func (o *BootSdCard) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -281,11 +304,23 @@ func (o *BootSdCard) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type BootSdCardWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_boot_sd_device.go b/model_boot_sd_device.go index 7305b3b649..742f16c2a2 100644 --- a/model_boot_sd_device.go +++ b/model_boot_sd_device.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -83,6 +83,11 @@ func (o *BootSdDevice) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "boot.SdDevice" of the ClassId field. +func (o *BootSdDevice) GetDefaultClassId() interface{} { + return "boot.SdDevice" +} + // GetObjectType returns the ObjectType field value func (o *BootSdDevice) GetObjectType() string { if o == nil { @@ -107,6 +112,11 @@ func (o *BootSdDevice) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "boot.SdDevice" of the ObjectType field. +func (o *BootSdDevice) GetDefaultObjectType() interface{} { + return "boot.SdDevice" +} + // GetComputePhysical returns the ComputePhysical field value if set, zero value otherwise (both if not set or set to explicit null). func (o *BootSdDevice) GetComputePhysical() ComputePhysicalRelationship { if o == nil || IsNil(o.ComputePhysical.Get()) { @@ -254,7 +264,13 @@ func (o BootSdDevice) ToMap() (map[string]interface{}, error) { if errBootConfiguredDevice != nil { return map[string]interface{}{}, errBootConfiguredDevice } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.ComputePhysical.IsSet() { toSerialize["ComputePhysical"] = o.ComputePhysical.Get() @@ -282,6 +298,13 @@ func (o *BootSdDevice) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -291,11 +314,23 @@ func (o *BootSdDevice) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type BootSdDeviceWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_boot_sd_device_list.go b/model_boot_sd_device_list.go index 5f86faa251..200d113a2e 100644 --- a/model_boot_sd_device_list.go +++ b/model_boot_sd_device_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *BootSdDeviceList) GetResultsOk() ([]BootSdDevice, bool) { // HasResults returns a boolean if a field has been set. func (o *BootSdDeviceList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *BootSdDeviceList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *BootSdDeviceList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type BootSdDeviceListWithoutEmbeddedStruct struct { // The total number of 'boot.SdDevice' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_boot_sd_device_relationship.go b/model_boot_sd_device_relationship.go index 794a1d68d2..a80810a7a3 100644 --- a/model_boot_sd_device_relationship.go +++ b/model_boot_sd_device_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_boot_sd_device_response.go b/model_boot_sd_device_response.go index a893f97594..d7aadf93c9 100644 --- a/model_boot_sd_device_response.go +++ b/model_boot_sd_device_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_boot_static_ip_v4_settings.go b/model_boot_static_ip_v4_settings.go index 8ea9ad277d..7d74b8bc19 100644 --- a/model_boot_static_ip_v4_settings.go +++ b/model_boot_static_ip_v4_settings.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -29,13 +29,13 @@ type BootStaticIpV4Settings struct { // The fully-qualified name of the instantiated, concrete type. The value should be the same as the 'ClassId' property. ObjectType string `json:"ObjectType"` // IP address of DNS server. - DnsIp *string `json:"DnsIp,omitempty"` + DnsIp *string `json:"DnsIp,omitempty" validate:"regexp=^$|^([1-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\\\.([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\\\.([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\\\.([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])$"` // IP address of default gateway. - GatewayIp *string `json:"GatewayIp,omitempty"` + GatewayIp *string `json:"GatewayIp,omitempty" validate:"regexp=^$|^([1-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\\\.([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\\\.([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\\\.([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])$"` // Ipv4 static Internet Protocol address. - Ip *string `json:"Ip,omitempty"` + Ip *string `json:"Ip,omitempty" validate:"regexp=^$|^([1-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\\\.([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\\\.([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\\\.([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])$"` // Network mask of the IP address. - NetworkMask *string `json:"NetworkMask,omitempty"` + NetworkMask *string `json:"NetworkMask,omitempty" validate:"regexp=^$|^(((255\\\\.){3}(255|254|252|248|240|224|192|128|0+))|((255\\\\.){2}(255|254|252|248|240|224|192|128|0+)\\\\.0)|((255\\\\.)(255|254|252|248|240|224|192|128|0+)(\\\\.0+){2})|((255|254|252|248|240|224|192|128|0+)(\\\\.0+){3}))$"` AdditionalProperties map[string]interface{} } @@ -88,6 +88,11 @@ func (o *BootStaticIpV4Settings) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "boot.StaticIpV4Settings" of the ClassId field. +func (o *BootStaticIpV4Settings) GetDefaultClassId() interface{} { + return "boot.StaticIpV4Settings" +} + // GetObjectType returns the ObjectType field value func (o *BootStaticIpV4Settings) GetObjectType() string { if o == nil { @@ -112,6 +117,11 @@ func (o *BootStaticIpV4Settings) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "boot.StaticIpV4Settings" of the ObjectType field. +func (o *BootStaticIpV4Settings) GetDefaultObjectType() interface{} { + return "boot.StaticIpV4Settings" +} + // GetDnsIp returns the DnsIp field value if set, zero value otherwise. func (o *BootStaticIpV4Settings) GetDnsIp() string { if o == nil || IsNil(o.DnsIp) { @@ -258,7 +268,13 @@ func (o BootStaticIpV4Settings) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.DnsIp) { toSerialize["DnsIp"] = o.DnsIp @@ -289,6 +305,13 @@ func (o *BootStaticIpV4Settings) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -298,24 +321,36 @@ func (o *BootStaticIpV4Settings) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type BootStaticIpV4SettingsWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` // The fully-qualified name of the instantiated, concrete type. The value should be the same as the 'ClassId' property. ObjectType string `json:"ObjectType"` // IP address of DNS server. - DnsIp *string `json:"DnsIp,omitempty"` + DnsIp *string `json:"DnsIp,omitempty" validate:"regexp=^$|^([1-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\\\.([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\\\.([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\\\.([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])$"` // IP address of default gateway. - GatewayIp *string `json:"GatewayIp,omitempty"` + GatewayIp *string `json:"GatewayIp,omitempty" validate:"regexp=^$|^([1-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\\\.([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\\\.([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\\\.([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])$"` // Ipv4 static Internet Protocol address. - Ip *string `json:"Ip,omitempty"` + Ip *string `json:"Ip,omitempty" validate:"regexp=^$|^([1-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\\\.([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\\\.([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\\\.([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])$"` // Network mask of the IP address. - NetworkMask *string `json:"NetworkMask,omitempty"` + NetworkMask *string `json:"NetworkMask,omitempty" validate:"regexp=^$|^(((255\\\\.){3}(255|254|252|248|240|224|192|128|0+))|((255\\\\.){2}(255|254|252|248|240|224|192|128|0+)\\\\.0)|((255\\\\.)(255|254|252|248|240|224|192|128|0+)(\\\\.0+){2})|((255|254|252|248|240|224|192|128|0+)(\\\\.0+){3}))$"` } varBootStaticIpV4SettingsWithoutEmbeddedStruct := BootStaticIpV4SettingsWithoutEmbeddedStruct{} diff --git a/model_boot_static_ip_v6_settings.go b/model_boot_static_ip_v6_settings.go index 54513a0755..536f0f248d 100644 --- a/model_boot_static_ip_v6_settings.go +++ b/model_boot_static_ip_v6_settings.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -29,11 +29,11 @@ type BootStaticIpV6Settings struct { // The fully-qualified name of the instantiated, concrete type. The value should be the same as the 'ClassId' property. ObjectType string `json:"ObjectType"` // IP address of DNS server. - DnsIp *string `json:"DnsIp,omitempty"` + DnsIp *string `json:"DnsIp,omitempty" validate:"regexp=^$|^(([0-9A-Fa-f]{1,4}:([0-9A-Fa-f]{1,4}:([0-9A-Fa-f]{1,4}:([0-9A-Fa-f]{1,4}:([0-9A-Fa-f]{1,4}:[0-9A-Fa-f]{0,4}|:[0-9A-Fa-f]{1,4})?|(:[0-9A-Fa-f]{1,4}){0,2})|(:[0-9A-Fa-f]{1,4}){0,3})|(:[0-9A-Fa-f]{1,4}){0,4})|:(:[0-9A-Fa-f]{1,4}){0,5})((:[0-9A-Fa-f]{1,4}){2}|:(25[0-5]|(2[0-4]|1[0-9]|[1-9])?[0-9])(\\\\.(25[0-5]|(2[0-4]|1[0-9]|[1-9])?[0-9])){3})|(([0-9A-Fa-f]{1,4}:){1,6}|:):[0-9A-Fa-f]{0,4}|([0-9A-Fa-f]{1,4}:){7}:)$"` // IP address of default gateway. - GatewayIp *string `json:"GatewayIp,omitempty"` + GatewayIp *string `json:"GatewayIp,omitempty" validate:"regexp=^$|^(([0-9A-Fa-f]{1,4}:([0-9A-Fa-f]{1,4}:([0-9A-Fa-f]{1,4}:([0-9A-Fa-f]{1,4}:([0-9A-Fa-f]{1,4}:[0-9A-Fa-f]{0,4}|:[0-9A-Fa-f]{1,4})?|(:[0-9A-Fa-f]{1,4}){0,2})|(:[0-9A-Fa-f]{1,4}){0,3})|(:[0-9A-Fa-f]{1,4}){0,4})|:(:[0-9A-Fa-f]{1,4}){0,5})((:[0-9A-Fa-f]{1,4}){2}|:(25[0-5]|(2[0-4]|1[0-9]|[1-9])?[0-9])(\\\\.(25[0-5]|(2[0-4]|1[0-9]|[1-9])?[0-9])){3})|(([0-9A-Fa-f]{1,4}:){1,6}|:):[0-9A-Fa-f]{0,4}|([0-9A-Fa-f]{1,4}:){7}:)$"` // Ipv6 static Internet Protocol address. - Ip *string `json:"Ip,omitempty"` + Ip *string `json:"Ip,omitempty" validate:"regexp=^$|^(([0-9A-Fa-f]{1,4}:([0-9A-Fa-f]{1,4}:([0-9A-Fa-f]{1,4}:([0-9A-Fa-f]{1,4}:([0-9A-Fa-f]{1,4}:[0-9A-Fa-f]{0,4}|:[0-9A-Fa-f]{1,4})?|(:[0-9A-Fa-f]{1,4}){0,2})|(:[0-9A-Fa-f]{1,4}){0,3})|(:[0-9A-Fa-f]{1,4}){0,4})|:(:[0-9A-Fa-f]{1,4}){0,5})((:[0-9A-Fa-f]{1,4}){2}|:(25[0-5]|(2[0-4]|1[0-9]|[1-9])?[0-9])(\\\\.(25[0-5]|(2[0-4]|1[0-9]|[1-9])?[0-9])){3})|(([0-9A-Fa-f]{1,4}:){1,6}|:):[0-9A-Fa-f]{0,4}|([0-9A-Fa-f]{1,4}:){7}:)$"` // A prefix length which masks the IP address and divides the IP address into network address and host address. PrefixLength *int64 `json:"PrefixLength,omitempty"` AdditionalProperties map[string]interface{} @@ -92,6 +92,11 @@ func (o *BootStaticIpV6Settings) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "boot.StaticIpV6Settings" of the ClassId field. +func (o *BootStaticIpV6Settings) GetDefaultClassId() interface{} { + return "boot.StaticIpV6Settings" +} + // GetObjectType returns the ObjectType field value func (o *BootStaticIpV6Settings) GetObjectType() string { if o == nil { @@ -116,6 +121,11 @@ func (o *BootStaticIpV6Settings) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "boot.StaticIpV6Settings" of the ObjectType field. +func (o *BootStaticIpV6Settings) GetDefaultObjectType() interface{} { + return "boot.StaticIpV6Settings" +} + // GetDnsIp returns the DnsIp field value if set, zero value otherwise. func (o *BootStaticIpV6Settings) GetDnsIp() string { if o == nil || IsNil(o.DnsIp) { @@ -262,7 +272,13 @@ func (o BootStaticIpV6Settings) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.DnsIp) { toSerialize["DnsIp"] = o.DnsIp @@ -293,6 +309,13 @@ func (o *BootStaticIpV6Settings) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -302,22 +325,34 @@ func (o *BootStaticIpV6Settings) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type BootStaticIpV6SettingsWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` // The fully-qualified name of the instantiated, concrete type. The value should be the same as the 'ClassId' property. ObjectType string `json:"ObjectType"` // IP address of DNS server. - DnsIp *string `json:"DnsIp,omitempty"` + DnsIp *string `json:"DnsIp,omitempty" validate:"regexp=^$|^(([0-9A-Fa-f]{1,4}:([0-9A-Fa-f]{1,4}:([0-9A-Fa-f]{1,4}:([0-9A-Fa-f]{1,4}:([0-9A-Fa-f]{1,4}:[0-9A-Fa-f]{0,4}|:[0-9A-Fa-f]{1,4})?|(:[0-9A-Fa-f]{1,4}){0,2})|(:[0-9A-Fa-f]{1,4}){0,3})|(:[0-9A-Fa-f]{1,4}){0,4})|:(:[0-9A-Fa-f]{1,4}){0,5})((:[0-9A-Fa-f]{1,4}){2}|:(25[0-5]|(2[0-4]|1[0-9]|[1-9])?[0-9])(\\\\.(25[0-5]|(2[0-4]|1[0-9]|[1-9])?[0-9])){3})|(([0-9A-Fa-f]{1,4}:){1,6}|:):[0-9A-Fa-f]{0,4}|([0-9A-Fa-f]{1,4}:){7}:)$"` // IP address of default gateway. - GatewayIp *string `json:"GatewayIp,omitempty"` + GatewayIp *string `json:"GatewayIp,omitempty" validate:"regexp=^$|^(([0-9A-Fa-f]{1,4}:([0-9A-Fa-f]{1,4}:([0-9A-Fa-f]{1,4}:([0-9A-Fa-f]{1,4}:([0-9A-Fa-f]{1,4}:[0-9A-Fa-f]{0,4}|:[0-9A-Fa-f]{1,4})?|(:[0-9A-Fa-f]{1,4}){0,2})|(:[0-9A-Fa-f]{1,4}){0,3})|(:[0-9A-Fa-f]{1,4}){0,4})|:(:[0-9A-Fa-f]{1,4}){0,5})((:[0-9A-Fa-f]{1,4}){2}|:(25[0-5]|(2[0-4]|1[0-9]|[1-9])?[0-9])(\\\\.(25[0-5]|(2[0-4]|1[0-9]|[1-9])?[0-9])){3})|(([0-9A-Fa-f]{1,4}:){1,6}|:):[0-9A-Fa-f]{0,4}|([0-9A-Fa-f]{1,4}:){7}:)$"` // Ipv6 static Internet Protocol address. - Ip *string `json:"Ip,omitempty"` + Ip *string `json:"Ip,omitempty" validate:"regexp=^$|^(([0-9A-Fa-f]{1,4}:([0-9A-Fa-f]{1,4}:([0-9A-Fa-f]{1,4}:([0-9A-Fa-f]{1,4}:([0-9A-Fa-f]{1,4}:[0-9A-Fa-f]{0,4}|:[0-9A-Fa-f]{1,4})?|(:[0-9A-Fa-f]{1,4}){0,2})|(:[0-9A-Fa-f]{1,4}){0,3})|(:[0-9A-Fa-f]{1,4}){0,4})|:(:[0-9A-Fa-f]{1,4}){0,5})((:[0-9A-Fa-f]{1,4}){2}|:(25[0-5]|(2[0-4]|1[0-9]|[1-9])?[0-9])(\\\\.(25[0-5]|(2[0-4]|1[0-9]|[1-9])?[0-9])){3})|(([0-9A-Fa-f]{1,4}:){1,6}|:):[0-9A-Fa-f]{0,4}|([0-9A-Fa-f]{1,4}:){7}:)$"` // A prefix length which masks the IP address and divides the IP address into network address and host address. PrefixLength *int64 `json:"PrefixLength,omitempty"` } diff --git a/model_boot_uefi_shell.go b/model_boot_uefi_shell.go index 75825076f5..46bcfc742a 100644 --- a/model_boot_uefi_shell.go +++ b/model_boot_uefi_shell.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -85,6 +85,10 @@ func (o *BootUefiShell) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -94,11 +98,23 @@ func (o *BootUefiShell) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type BootUefiShellWithoutEmbeddedStruct struct { } diff --git a/model_boot_uefi_shell_device.go b/model_boot_uefi_shell_device.go index 39a2dedd79..0f776982fb 100644 --- a/model_boot_uefi_shell_device.go +++ b/model_boot_uefi_shell_device.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -83,6 +83,11 @@ func (o *BootUefiShellDevice) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "boot.UefiShellDevice" of the ClassId field. +func (o *BootUefiShellDevice) GetDefaultClassId() interface{} { + return "boot.UefiShellDevice" +} + // GetObjectType returns the ObjectType field value func (o *BootUefiShellDevice) GetObjectType() string { if o == nil { @@ -107,6 +112,11 @@ func (o *BootUefiShellDevice) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "boot.UefiShellDevice" of the ObjectType field. +func (o *BootUefiShellDevice) GetDefaultObjectType() interface{} { + return "boot.UefiShellDevice" +} + // GetComputePhysical returns the ComputePhysical field value if set, zero value otherwise (both if not set or set to explicit null). func (o *BootUefiShellDevice) GetComputePhysical() ComputePhysicalRelationship { if o == nil || IsNil(o.ComputePhysical.Get()) { @@ -254,7 +264,13 @@ func (o BootUefiShellDevice) ToMap() (map[string]interface{}, error) { if errBootConfiguredDevice != nil { return map[string]interface{}{}, errBootConfiguredDevice } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.ComputePhysical.IsSet() { toSerialize["ComputePhysical"] = o.ComputePhysical.Get() @@ -282,6 +298,13 @@ func (o *BootUefiShellDevice) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -291,11 +314,23 @@ func (o *BootUefiShellDevice) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type BootUefiShellDeviceWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_boot_uefi_shell_device_list.go b/model_boot_uefi_shell_device_list.go index 3cc2a56db0..81419af598 100644 --- a/model_boot_uefi_shell_device_list.go +++ b/model_boot_uefi_shell_device_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *BootUefiShellDeviceList) GetResultsOk() ([]BootUefiShellDevice, bool) { // HasResults returns a boolean if a field has been set. func (o *BootUefiShellDeviceList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *BootUefiShellDeviceList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *BootUefiShellDeviceList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type BootUefiShellDeviceListWithoutEmbeddedStruct struct { // The total number of 'boot.UefiShellDevice' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_boot_uefi_shell_device_relationship.go b/model_boot_uefi_shell_device_relationship.go index 690630e22b..394e975d86 100644 --- a/model_boot_uefi_shell_device_relationship.go +++ b/model_boot_uefi_shell_device_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_boot_uefi_shell_device_response.go b/model_boot_uefi_shell_device_response.go index 91c7c82d54..0558e16bc7 100644 --- a/model_boot_uefi_shell_device_response.go +++ b/model_boot_uefi_shell_device_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_boot_usb.go b/model_boot_usb.go index 529f27ea6c..4c37dc8dec 100644 --- a/model_boot_usb.go +++ b/model_boot_usb.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -88,6 +88,11 @@ func (o *BootUsb) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "boot.Usb" of the ClassId field. +func (o *BootUsb) GetDefaultClassId() interface{} { + return "boot.Usb" +} + // GetObjectType returns the ObjectType field value func (o *BootUsb) GetObjectType() string { if o == nil { @@ -112,6 +117,11 @@ func (o *BootUsb) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "boot.Usb" of the ObjectType field. +func (o *BootUsb) GetDefaultObjectType() interface{} { + return "boot.Usb" +} + // GetSubtype returns the Subtype field value if set, zero value otherwise. func (o *BootUsb) GetSubtype() string { if o == nil || IsNil(o.Subtype) { @@ -162,7 +172,13 @@ func (o BootUsb) ToMap() (map[string]interface{}, error) { if errBootDeviceBase != nil { return map[string]interface{}{}, errBootDeviceBase } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Subtype) { toSerialize["Subtype"] = o.Subtype @@ -184,6 +200,13 @@ func (o *BootUsb) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -193,11 +216,23 @@ func (o *BootUsb) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type BootUsbWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_boot_usb_device.go b/model_boot_usb_device.go index c9050cbacf..9cf5ded54e 100644 --- a/model_boot_usb_device.go +++ b/model_boot_usb_device.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -83,6 +83,11 @@ func (o *BootUsbDevice) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "boot.UsbDevice" of the ClassId field. +func (o *BootUsbDevice) GetDefaultClassId() interface{} { + return "boot.UsbDevice" +} + // GetObjectType returns the ObjectType field value func (o *BootUsbDevice) GetObjectType() string { if o == nil { @@ -107,6 +112,11 @@ func (o *BootUsbDevice) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "boot.UsbDevice" of the ObjectType field. +func (o *BootUsbDevice) GetDefaultObjectType() interface{} { + return "boot.UsbDevice" +} + // GetComputePhysical returns the ComputePhysical field value if set, zero value otherwise (both if not set or set to explicit null). func (o *BootUsbDevice) GetComputePhysical() ComputePhysicalRelationship { if o == nil || IsNil(o.ComputePhysical.Get()) { @@ -254,7 +264,13 @@ func (o BootUsbDevice) ToMap() (map[string]interface{}, error) { if errBootConfiguredDevice != nil { return map[string]interface{}{}, errBootConfiguredDevice } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.ComputePhysical.IsSet() { toSerialize["ComputePhysical"] = o.ComputePhysical.Get() @@ -282,6 +298,13 @@ func (o *BootUsbDevice) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -291,11 +314,23 @@ func (o *BootUsbDevice) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type BootUsbDeviceWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_boot_usb_device_list.go b/model_boot_usb_device_list.go index f93e27912d..66c085979c 100644 --- a/model_boot_usb_device_list.go +++ b/model_boot_usb_device_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *BootUsbDeviceList) GetResultsOk() ([]BootUsbDevice, bool) { // HasResults returns a boolean if a field has been set. func (o *BootUsbDeviceList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *BootUsbDeviceList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *BootUsbDeviceList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type BootUsbDeviceListWithoutEmbeddedStruct struct { // The total number of 'boot.UsbDevice' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_boot_usb_device_relationship.go b/model_boot_usb_device_relationship.go index b07273c867..aca80523b5 100644 --- a/model_boot_usb_device_relationship.go +++ b/model_boot_usb_device_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_boot_usb_device_response.go b/model_boot_usb_device_response.go index 4655685f37..593d117cc7 100644 --- a/model_boot_usb_device_response.go +++ b/model_boot_usb_device_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_boot_virtual_media.go b/model_boot_virtual_media.go index 06ac46ddf9..13ba861327 100644 --- a/model_boot_virtual_media.go +++ b/model_boot_virtual_media.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -88,6 +88,11 @@ func (o *BootVirtualMedia) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "boot.VirtualMedia" of the ClassId field. +func (o *BootVirtualMedia) GetDefaultClassId() interface{} { + return "boot.VirtualMedia" +} + // GetObjectType returns the ObjectType field value func (o *BootVirtualMedia) GetObjectType() string { if o == nil { @@ -112,6 +117,11 @@ func (o *BootVirtualMedia) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "boot.VirtualMedia" of the ObjectType field. +func (o *BootVirtualMedia) GetDefaultObjectType() interface{} { + return "boot.VirtualMedia" +} + // GetSubtype returns the Subtype field value if set, zero value otherwise. func (o *BootVirtualMedia) GetSubtype() string { if o == nil || IsNil(o.Subtype) { @@ -162,7 +172,13 @@ func (o BootVirtualMedia) ToMap() (map[string]interface{}, error) { if errBootDeviceBase != nil { return map[string]interface{}{}, errBootDeviceBase } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Subtype) { toSerialize["Subtype"] = o.Subtype @@ -184,6 +200,13 @@ func (o *BootVirtualMedia) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -193,11 +216,23 @@ func (o *BootVirtualMedia) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type BootVirtualMediaWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_boot_vmedia_device.go b/model_boot_vmedia_device.go index 62f907afba..0ba974c1a4 100644 --- a/model_boot_vmedia_device.go +++ b/model_boot_vmedia_device.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -83,6 +83,11 @@ func (o *BootVmediaDevice) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "boot.VmediaDevice" of the ClassId field. +func (o *BootVmediaDevice) GetDefaultClassId() interface{} { + return "boot.VmediaDevice" +} + // GetObjectType returns the ObjectType field value func (o *BootVmediaDevice) GetObjectType() string { if o == nil { @@ -107,6 +112,11 @@ func (o *BootVmediaDevice) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "boot.VmediaDevice" of the ObjectType field. +func (o *BootVmediaDevice) GetDefaultObjectType() interface{} { + return "boot.VmediaDevice" +} + // GetComputePhysical returns the ComputePhysical field value if set, zero value otherwise (both if not set or set to explicit null). func (o *BootVmediaDevice) GetComputePhysical() ComputePhysicalRelationship { if o == nil || IsNil(o.ComputePhysical.Get()) { @@ -254,7 +264,13 @@ func (o BootVmediaDevice) ToMap() (map[string]interface{}, error) { if errBootConfiguredDevice != nil { return map[string]interface{}{}, errBootConfiguredDevice } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.ComputePhysical.IsSet() { toSerialize["ComputePhysical"] = o.ComputePhysical.Get() @@ -282,6 +298,13 @@ func (o *BootVmediaDevice) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -291,11 +314,23 @@ func (o *BootVmediaDevice) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type BootVmediaDeviceWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_boot_vmedia_device_list.go b/model_boot_vmedia_device_list.go index 98ce85b530..e571b84eee 100644 --- a/model_boot_vmedia_device_list.go +++ b/model_boot_vmedia_device_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *BootVmediaDeviceList) GetResultsOk() ([]BootVmediaDevice, bool) { // HasResults returns a boolean if a field has been set. func (o *BootVmediaDeviceList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *BootVmediaDeviceList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *BootVmediaDeviceList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type BootVmediaDeviceListWithoutEmbeddedStruct struct { // The total number of 'boot.VmediaDevice' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_boot_vmedia_device_relationship.go b/model_boot_vmedia_device_relationship.go index c6ffaa377b..fd6864c74f 100644 --- a/model_boot_vmedia_device_relationship.go +++ b/model_boot_vmedia_device_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_boot_vmedia_device_response.go b/model_boot_vmedia_device_response.go index e9ff49ee08..90afd6c649 100644 --- a/model_boot_vmedia_device_response.go +++ b/model_boot_vmedia_device_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_bulk_api_result.go b/model_bulk_api_result.go index fddfa78449..4d49d1ccc3 100644 --- a/model_bulk_api_result.go +++ b/model_bulk_api_result.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -82,6 +82,11 @@ func (o *BulkApiResult) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "bulk.RestResult" of the ClassId field. +func (o *BulkApiResult) GetDefaultClassId() interface{} { + return "bulk.RestResult" +} + // GetObjectType returns the ObjectType field value func (o *BulkApiResult) GetObjectType() string { if o == nil { @@ -106,6 +111,11 @@ func (o *BulkApiResult) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "bulk.RestResult" of the ObjectType field. +func (o *BulkApiResult) GetDefaultObjectType() interface{} { + return "bulk.RestResult" +} + // GetStatus returns the Status field value if set, zero value otherwise. func (o *BulkApiResult) GetStatus() int64 { if o == nil || IsNil(o.Status) { @@ -156,7 +166,13 @@ func (o BulkApiResult) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Status) { toSerialize["Status"] = o.Status @@ -178,6 +194,13 @@ func (o *BulkApiResult) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -187,11 +210,23 @@ func (o *BulkApiResult) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type BulkApiResultWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. The enum values provides the list of concrete types that can be instantiated from this abstract type. ClassId string `json:"ClassId"` diff --git a/model_bulk_export.go b/model_bulk_export.go index 2b1dce6247..42baf5bfab 100644 --- a/model_bulk_export.go +++ b/model_bulk_export.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -42,7 +42,7 @@ type BulkExport struct { IncludeOrgIdentity *bool `json:"IncludeOrgIdentity,omitempty"` Items []MoMoRef `json:"Items,omitempty"` // An identifier for the export instance. Name can only contain letters (a-z, A-Z), numbers (0-9), hyphen (-) or an underscore (_). - Name *string `json:"Name,omitempty"` + Name *string `json:"Name,omitempty" validate:"regexp=^[a-zA-Z0-9][a-zA-Z0-9_-]{1,92}$"` // The permission identifier which indicates the permission that current user has that will allow to start this export operation. PermissionId *string `json:"PermissionId,omitempty"` // Status of the export operation. * `` - The operation has not started. * `InProgress` - The operation is in progress. * `OrderInProgress` - The archive operation is in progress. * `Success` - The operation has succeeded. * `Failed` - The operation has failed. * `OperationTimedOut` - The operation has timed out. * `OperationCancelled` - The operation has been cancelled. * `CancelInProgress` - The operation is being cancelled. @@ -114,6 +114,11 @@ func (o *BulkExport) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "bulk.Export" of the ClassId field. +func (o *BulkExport) GetDefaultClassId() interface{} { + return "bulk.Export" +} + // GetObjectType returns the ObjectType field value func (o *BulkExport) GetObjectType() string { if o == nil { @@ -138,6 +143,11 @@ func (o *BulkExport) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "bulk.Export" of the ObjectType field. +func (o *BulkExport) GetDefaultObjectType() interface{} { + return "bulk.Export" +} + // GetAction returns the Action field value if set, zero value otherwise. func (o *BulkExport) GetAction() string { if o == nil || IsNil(o.Action) { @@ -191,7 +201,7 @@ func (o *BulkExport) GetExcludePeersOk() ([]string, bool) { // HasExcludePeers returns a boolean if a field has been set. func (o *BulkExport) HasExcludePeers() bool { - if o != nil && IsNil(o.ExcludePeers) { + if o != nil && !IsNil(o.ExcludePeers) { return true } @@ -288,7 +298,7 @@ func (o *BulkExport) GetExportedObjectsOk() ([]BulkSubRequest, bool) { // HasExportedObjects returns a boolean if a field has been set. func (o *BulkExport) HasExportedObjects() bool { - if o != nil && IsNil(o.ExportedObjects) { + if o != nil && !IsNil(o.ExportedObjects) { return true } @@ -321,7 +331,7 @@ func (o *BulkExport) GetImportOrderOk() (*interface{}, bool) { // HasImportOrder returns a boolean if a field has been set. func (o *BulkExport) HasImportOrder() bool { - if o != nil && IsNil(o.ImportOrder) { + if o != nil && !IsNil(o.ImportOrder) { return true } @@ -386,7 +396,7 @@ func (o *BulkExport) GetItemsOk() ([]MoMoRef, bool) { // HasItems returns a boolean if a field has been set. func (o *BulkExport) HasItems() bool { - if o != nil && IsNil(o.Items) { + if o != nil && !IsNil(o.Items) { return true } @@ -579,7 +589,7 @@ func (o *BulkExport) GetExportedItemsOk() ([]BulkExportedItemRelationship, bool) // HasExportedItems returns a boolean if a field has been set. func (o *BulkExport) HasExportedItems() bool { - if o != nil && IsNil(o.ExportedItems) { + if o != nil && !IsNil(o.ExportedItems) { return true } @@ -652,7 +662,13 @@ func (o BulkExport) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Action) { toSerialize["Action"] = o.Action @@ -716,6 +732,13 @@ func (o *BulkExport) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -725,11 +748,23 @@ func (o *BulkExport) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type BulkExportWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` @@ -749,7 +784,7 @@ func (o *BulkExport) UnmarshalJSON(data []byte) (err error) { IncludeOrgIdentity *bool `json:"IncludeOrgIdentity,omitempty"` Items []MoMoRef `json:"Items,omitempty"` // An identifier for the export instance. Name can only contain letters (a-z, A-Z), numbers (0-9), hyphen (-) or an underscore (_). - Name *string `json:"Name,omitempty"` + Name *string `json:"Name,omitempty" validate:"regexp=^[a-zA-Z0-9][a-zA-Z0-9_-]{1,92}$"` // The permission identifier which indicates the permission that current user has that will allow to start this export operation. PermissionId *string `json:"PermissionId,omitempty"` // Status of the export operation. * `` - The operation has not started. * `InProgress` - The operation is in progress. * `OrderInProgress` - The archive operation is in progress. * `Success` - The operation has succeeded. * `Failed` - The operation has failed. * `OperationTimedOut` - The operation has timed out. * `OperationCancelled` - The operation has been cancelled. * `CancelInProgress` - The operation is being cancelled. diff --git a/model_bulk_export_list.go b/model_bulk_export_list.go index 0fb551a417..0eeb10067f 100644 --- a/model_bulk_export_list.go +++ b/model_bulk_export_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *BulkExportList) GetResultsOk() ([]BulkExport, bool) { // HasResults returns a boolean if a field has been set. func (o *BulkExportList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *BulkExportList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *BulkExportList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type BulkExportListWithoutEmbeddedStruct struct { // The total number of 'bulk.Export' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_bulk_export_relationship.go b/model_bulk_export_relationship.go index 1196a561fb..16993ac535 100644 --- a/model_bulk_export_relationship.go +++ b/model_bulk_export_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_bulk_export_response.go b/model_bulk_export_response.go index 6d7577f21a..a1b84dc20f 100644 --- a/model_bulk_export_response.go +++ b/model_bulk_export_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_bulk_exported_item.go b/model_bulk_exported_item.go index 4d5f67b11d..e8e81135be 100644 --- a/model_bulk_exported_item.go +++ b/model_bulk_exported_item.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,6 +104,11 @@ func (o *BulkExportedItem) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "bulk.ExportedItem" of the ClassId field. +func (o *BulkExportedItem) GetDefaultClassId() interface{} { + return "bulk.ExportedItem" +} + // GetObjectType returns the ObjectType field value func (o *BulkExportedItem) GetObjectType() string { if o == nil { @@ -128,6 +133,11 @@ func (o *BulkExportedItem) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "bulk.ExportedItem" of the ObjectType field. +func (o *BulkExportedItem) GetDefaultObjectType() interface{} { + return "bulk.ExportedItem" +} + // GetExcludePeers returns the ExcludePeers field value if set, zero value otherwise (both if not set or set to explicit null). func (o *BulkExportedItem) GetExcludePeers() []string { if o == nil { @@ -149,7 +159,7 @@ func (o *BulkExportedItem) GetExcludePeersOk() ([]string, bool) { // HasExcludePeers returns a boolean if a field has been set. func (o *BulkExportedItem) HasExcludePeers() bool { - if o != nil && IsNil(o.ExcludePeers) { + if o != nil && !IsNil(o.ExcludePeers) { return true } @@ -588,7 +598,7 @@ func (o *BulkExportedItem) GetRelatedItemsOk() ([]BulkExportedItemRelationship, // HasRelatedItems returns a boolean if a field has been set. func (o *BulkExportedItem) HasRelatedItems() bool { - if o != nil && IsNil(o.RelatedItems) { + if o != nil && !IsNil(o.RelatedItems) { return true } @@ -618,7 +628,13 @@ func (o BulkExportedItem) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.ExcludePeers != nil { toSerialize["ExcludePeers"] = o.ExcludePeers @@ -679,6 +695,13 @@ func (o *BulkExportedItem) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -688,11 +711,23 @@ func (o *BulkExportedItem) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type BulkExportedItemWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_bulk_exported_item_list.go b/model_bulk_exported_item_list.go index ba24a53d41..eb16430360 100644 --- a/model_bulk_exported_item_list.go +++ b/model_bulk_exported_item_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *BulkExportedItemList) GetResultsOk() ([]BulkExportedItem, bool) { // HasResults returns a boolean if a field has been set. func (o *BulkExportedItemList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *BulkExportedItemList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *BulkExportedItemList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type BulkExportedItemListWithoutEmbeddedStruct struct { // The total number of 'bulk.ExportedItem' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_bulk_exported_item_relationship.go b/model_bulk_exported_item_relationship.go index 9d15bfd567..df62a3f943 100644 --- a/model_bulk_exported_item_relationship.go +++ b/model_bulk_exported_item_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_bulk_exported_item_response.go b/model_bulk_exported_item_response.go index 80a29c8d49..d274e47162 100644 --- a/model_bulk_exported_item_response.go +++ b/model_bulk_exported_item_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_bulk_http_header.go b/model_bulk_http_header.go index b601f2233a..ba440595b0 100644 --- a/model_bulk_http_header.go +++ b/model_bulk_http_header.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -84,6 +84,11 @@ func (o *BulkHttpHeader) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "bulk.HttpHeader" of the ClassId field. +func (o *BulkHttpHeader) GetDefaultClassId() interface{} { + return "bulk.HttpHeader" +} + // GetObjectType returns the ObjectType field value func (o *BulkHttpHeader) GetObjectType() string { if o == nil { @@ -108,6 +113,11 @@ func (o *BulkHttpHeader) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "bulk.HttpHeader" of the ObjectType field. +func (o *BulkHttpHeader) GetDefaultObjectType() interface{} { + return "bulk.HttpHeader" +} + // GetName returns the Name field value if set, zero value otherwise. func (o *BulkHttpHeader) GetName() string { if o == nil || IsNil(o.Name) { @@ -190,7 +200,13 @@ func (o BulkHttpHeader) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Name) { toSerialize["Name"] = o.Name @@ -215,6 +231,13 @@ func (o *BulkHttpHeader) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -224,11 +247,23 @@ func (o *BulkHttpHeader) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type BulkHttpHeaderWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_bulk_mo_cloner.go b/model_bulk_mo_cloner.go index 0643688536..c13a43154d 100644 --- a/model_bulk_mo_cloner.go +++ b/model_bulk_mo_cloner.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -33,7 +33,7 @@ type BulkMoCloner struct { Sources []MoBaseMo `json:"Sources,omitempty"` Targets []MoBaseMo `json:"Targets,omitempty"` // A user-friendly short name to identify the workflow. Name can only contain letters (a-z, A-Z), numbers (0-9), hyphen (-), period (.), colon (:), space ( ), forward slash (/), comma or an underscore (_). - WorkflowNameSuffix *string `json:"WorkflowNameSuffix,omitempty"` + WorkflowNameSuffix *string `json:"WorkflowNameSuffix,omitempty" validate:"regexp=^$|^[a-zA-Z0-9]{1}[\\\\sa-zA-Z0-9_.\\\\,\\/:-]{0,63}$"` AsyncResult NullableBulkResultRelationship `json:"AsyncResult,omitempty"` Organization NullableOrganizationOrganizationRelationship `json:"Organization,omitempty"` AdditionalProperties map[string]interface{} @@ -88,6 +88,11 @@ func (o *BulkMoCloner) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "bulk.MoCloner" of the ClassId field. +func (o *BulkMoCloner) GetDefaultClassId() interface{} { + return "bulk.MoCloner" +} + // GetObjectType returns the ObjectType field value func (o *BulkMoCloner) GetObjectType() string { if o == nil { @@ -112,6 +117,11 @@ func (o *BulkMoCloner) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "bulk.MoCloner" of the ObjectType field. +func (o *BulkMoCloner) GetDefaultObjectType() interface{} { + return "bulk.MoCloner" +} + // GetExcludeProperties returns the ExcludeProperties field value if set, zero value otherwise (both if not set or set to explicit null). func (o *BulkMoCloner) GetExcludeProperties() []string { if o == nil { @@ -133,7 +143,7 @@ func (o *BulkMoCloner) GetExcludePropertiesOk() ([]string, bool) { // HasExcludeProperties returns a boolean if a field has been set. func (o *BulkMoCloner) HasExcludeProperties() bool { - if o != nil && IsNil(o.ExcludeProperties) { + if o != nil && !IsNil(o.ExcludeProperties) { return true } @@ -166,7 +176,7 @@ func (o *BulkMoCloner) GetResponsesOk() ([]BulkRestResult, bool) { // HasResponses returns a boolean if a field has been set. func (o *BulkMoCloner) HasResponses() bool { - if o != nil && IsNil(o.Responses) { + if o != nil && !IsNil(o.Responses) { return true } @@ -199,7 +209,7 @@ func (o *BulkMoCloner) GetSourcesOk() ([]MoBaseMo, bool) { // HasSources returns a boolean if a field has been set. func (o *BulkMoCloner) HasSources() bool { - if o != nil && IsNil(o.Sources) { + if o != nil && !IsNil(o.Sources) { return true } @@ -232,7 +242,7 @@ func (o *BulkMoCloner) GetTargetsOk() ([]MoBaseMo, bool) { // HasTargets returns a boolean if a field has been set. func (o *BulkMoCloner) HasTargets() bool { - if o != nil && IsNil(o.Targets) { + if o != nil && !IsNil(o.Targets) { return true } @@ -380,7 +390,13 @@ func (o BulkMoCloner) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.ExcludeProperties != nil { toSerialize["ExcludeProperties"] = o.ExcludeProperties @@ -420,6 +436,13 @@ func (o *BulkMoCloner) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -429,11 +452,23 @@ func (o *BulkMoCloner) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type BulkMoClonerWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` @@ -444,7 +479,7 @@ func (o *BulkMoCloner) UnmarshalJSON(data []byte) (err error) { Sources []MoBaseMo `json:"Sources,omitempty"` Targets []MoBaseMo `json:"Targets,omitempty"` // A user-friendly short name to identify the workflow. Name can only contain letters (a-z, A-Z), numbers (0-9), hyphen (-), period (.), colon (:), space ( ), forward slash (/), comma or an underscore (_). - WorkflowNameSuffix *string `json:"WorkflowNameSuffix,omitempty"` + WorkflowNameSuffix *string `json:"WorkflowNameSuffix,omitempty" validate:"regexp=^$|^[a-zA-Z0-9]{1}[\\\\sa-zA-Z0-9_.\\\\,\\/:-]{0,63}$"` AsyncResult NullableBulkResultRelationship `json:"AsyncResult,omitempty"` Organization NullableOrganizationOrganizationRelationship `json:"Organization,omitempty"` } diff --git a/model_bulk_mo_cloner_list.go b/model_bulk_mo_cloner_list.go index 76a0723dac..583b4a5bb1 100644 --- a/model_bulk_mo_cloner_list.go +++ b/model_bulk_mo_cloner_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *BulkMoClonerList) GetResultsOk() ([]BulkMoCloner, bool) { // HasResults returns a boolean if a field has been set. func (o *BulkMoClonerList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *BulkMoClonerList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *BulkMoClonerList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type BulkMoClonerListWithoutEmbeddedStruct struct { // The total number of 'bulk.MoCloner' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_bulk_mo_cloner_relationship.go b/model_bulk_mo_cloner_relationship.go index 984aeacc77..ab868f3963 100644 --- a/model_bulk_mo_cloner_relationship.go +++ b/model_bulk_mo_cloner_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_bulk_mo_cloner_response.go b/model_bulk_mo_cloner_response.go index 8cf3e8f66b..17843aa437 100644 --- a/model_bulk_mo_cloner_response.go +++ b/model_bulk_mo_cloner_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_bulk_mo_deep_cloner.go b/model_bulk_mo_deep_cloner.go index 9e742aeb89..0acdfa1ef5 100644 --- a/model_bulk_mo_deep_cloner.go +++ b/model_bulk_mo_deep_cloner.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -30,13 +30,13 @@ type BulkMoDeepCloner struct { ObjectType string `json:"ObjectType"` ExcludeProperties []string `json:"ExcludeProperties,omitempty"` // Name suffix to be applied to all the MOs being cloned when ReferencePolicy chosen is CreateNew. Name can only contain letters (a-z, A-Z), numbers (0-9), hyphen (-) or an underscore (_). - ReferenceNameSuffix *string `json:"ReferenceNameSuffix,omitempty"` + ReferenceNameSuffix *string `json:"ReferenceNameSuffix,omitempty" validate:"regexp=^$|^[a-zA-Z0-9_-]{1,64}$"` // User selected reference clone behavior. Applies to all the MOs being cloned. * `ReuseAll` - Any policies in the destination organization whose name matches the policy referenced in the cloned policy will be attached. If no policyin the destination organization matches by name, a policy will be cloned with the same name.Pool references will always be matched by name. If not found, the pool will be cloned in the destination organization, but no identifierblocks will be created. * `CreateNew` - New policies will be created for the source and all the attached policies. If a policy of the same name and type already exists in thedestination organization or any organization from which it shares policies, a clone will be created with the provided suffix added to the name.Pool references will always be matched by name. If not found, the pool will be cloned in the destination organization, but no identifierblocks will be created. ReferencePolicy *string `json:"ReferencePolicy,omitempty"` Source *MoMoRef `json:"Source,omitempty"` Targets []MoBaseMo `json:"Targets,omitempty"` // A user-friendly short name to identify the workflow. Name can only contain letters (a-z, A-Z), numbers (0-9), hyphen (-), period (.), colon (:), space ( ), forward slash (/), comma or an underscore (_). - WorkflowNameSuffix *string `json:"WorkflowNameSuffix,omitempty"` + WorkflowNameSuffix *string `json:"WorkflowNameSuffix,omitempty" validate:"regexp=^$|^[a-zA-Z0-9]{1}[\\\\sa-zA-Z0-9_.\\\\,\\/:-]{0,63}$"` AsyncResult NullableBulkResultRelationship `json:"AsyncResult,omitempty"` Organization NullableOrganizationOrganizationRelationship `json:"Organization,omitempty"` AdditionalProperties map[string]interface{} @@ -95,6 +95,11 @@ func (o *BulkMoDeepCloner) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "bulk.MoDeepCloner" of the ClassId field. +func (o *BulkMoDeepCloner) GetDefaultClassId() interface{} { + return "bulk.MoDeepCloner" +} + // GetObjectType returns the ObjectType field value func (o *BulkMoDeepCloner) GetObjectType() string { if o == nil { @@ -119,6 +124,11 @@ func (o *BulkMoDeepCloner) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "bulk.MoDeepCloner" of the ObjectType field. +func (o *BulkMoDeepCloner) GetDefaultObjectType() interface{} { + return "bulk.MoDeepCloner" +} + // GetExcludeProperties returns the ExcludeProperties field value if set, zero value otherwise (both if not set or set to explicit null). func (o *BulkMoDeepCloner) GetExcludeProperties() []string { if o == nil { @@ -140,7 +150,7 @@ func (o *BulkMoDeepCloner) GetExcludePropertiesOk() ([]string, bool) { // HasExcludeProperties returns a boolean if a field has been set. func (o *BulkMoDeepCloner) HasExcludeProperties() bool { - if o != nil && IsNil(o.ExcludeProperties) { + if o != nil && !IsNil(o.ExcludeProperties) { return true } @@ -269,7 +279,7 @@ func (o *BulkMoDeepCloner) GetTargetsOk() ([]MoBaseMo, bool) { // HasTargets returns a boolean if a field has been set. func (o *BulkMoDeepCloner) HasTargets() bool { - if o != nil && IsNil(o.Targets) { + if o != nil && !IsNil(o.Targets) { return true } @@ -417,7 +427,13 @@ func (o BulkMoDeepCloner) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.ExcludeProperties != nil { toSerialize["ExcludeProperties"] = o.ExcludeProperties @@ -460,6 +476,13 @@ func (o *BulkMoDeepCloner) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -469,11 +492,23 @@ func (o *BulkMoDeepCloner) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type BulkMoDeepClonerWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` @@ -481,13 +516,13 @@ func (o *BulkMoDeepCloner) UnmarshalJSON(data []byte) (err error) { ObjectType string `json:"ObjectType"` ExcludeProperties []string `json:"ExcludeProperties,omitempty"` // Name suffix to be applied to all the MOs being cloned when ReferencePolicy chosen is CreateNew. Name can only contain letters (a-z, A-Z), numbers (0-9), hyphen (-) or an underscore (_). - ReferenceNameSuffix *string `json:"ReferenceNameSuffix,omitempty"` + ReferenceNameSuffix *string `json:"ReferenceNameSuffix,omitempty" validate:"regexp=^$|^[a-zA-Z0-9_-]{1,64}$"` // User selected reference clone behavior. Applies to all the MOs being cloned. * `ReuseAll` - Any policies in the destination organization whose name matches the policy referenced in the cloned policy will be attached. If no policyin the destination organization matches by name, a policy will be cloned with the same name.Pool references will always be matched by name. If not found, the pool will be cloned in the destination organization, but no identifierblocks will be created. * `CreateNew` - New policies will be created for the source and all the attached policies. If a policy of the same name and type already exists in thedestination organization or any organization from which it shares policies, a clone will be created with the provided suffix added to the name.Pool references will always be matched by name. If not found, the pool will be cloned in the destination organization, but no identifierblocks will be created. ReferencePolicy *string `json:"ReferencePolicy,omitempty"` Source *MoMoRef `json:"Source,omitempty"` Targets []MoBaseMo `json:"Targets,omitempty"` // A user-friendly short name to identify the workflow. Name can only contain letters (a-z, A-Z), numbers (0-9), hyphen (-), period (.), colon (:), space ( ), forward slash (/), comma or an underscore (_). - WorkflowNameSuffix *string `json:"WorkflowNameSuffix,omitempty"` + WorkflowNameSuffix *string `json:"WorkflowNameSuffix,omitempty" validate:"regexp=^$|^[a-zA-Z0-9]{1}[\\\\sa-zA-Z0-9_.\\\\,\\/:-]{0,63}$"` AsyncResult NullableBulkResultRelationship `json:"AsyncResult,omitempty"` Organization NullableOrganizationOrganizationRelationship `json:"Organization,omitempty"` } diff --git a/model_bulk_mo_deep_cloner_list.go b/model_bulk_mo_deep_cloner_list.go index 4168869850..9837dd15c4 100644 --- a/model_bulk_mo_deep_cloner_list.go +++ b/model_bulk_mo_deep_cloner_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *BulkMoDeepClonerList) GetResultsOk() ([]BulkMoDeepCloner, bool) { // HasResults returns a boolean if a field has been set. func (o *BulkMoDeepClonerList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *BulkMoDeepClonerList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *BulkMoDeepClonerList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type BulkMoDeepClonerListWithoutEmbeddedStruct struct { // The total number of 'bulk.MoDeepCloner' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_bulk_mo_deep_cloner_relationship.go b/model_bulk_mo_deep_cloner_relationship.go index bb850ef2ff..3c5ca6d9e5 100644 --- a/model_bulk_mo_deep_cloner_relationship.go +++ b/model_bulk_mo_deep_cloner_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_bulk_mo_deep_cloner_response.go b/model_bulk_mo_deep_cloner_response.go index fb97ba155c..8978bcb88b 100644 --- a/model_bulk_mo_deep_cloner_response.go +++ b/model_bulk_mo_deep_cloner_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_bulk_mo_merger.go b/model_bulk_mo_merger.go index 3b5cdaf703..db52248cf5 100644 --- a/model_bulk_mo_merger.go +++ b/model_bulk_mo_merger.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -35,7 +35,7 @@ type BulkMoMerger struct { TargetConfig *MoBaseMo `json:"TargetConfig,omitempty"` Targets []MoBaseMo `json:"Targets,omitempty"` // A user-friendly short name to identify the workflow. Name can only contain letters (a-z, A-Z), numbers (0-9), hyphen (-), period (.), colon (:), space ( ), forward slash (/), comma or an underscore (_). - WorkflowNameSuffix *string `json:"WorkflowNameSuffix,omitempty"` + WorkflowNameSuffix *string `json:"WorkflowNameSuffix,omitempty" validate:"regexp=^$|^[a-zA-Z0-9]{1}[\\\\sa-zA-Z0-9_.\\\\,\\/:-]{0,63}$"` AsyncResult NullableBulkResultRelationship `json:"AsyncResult,omitempty"` Organization NullableOrganizationOrganizationRelationship `json:"Organization,omitempty"` AdditionalProperties map[string]interface{} @@ -94,6 +94,11 @@ func (o *BulkMoMerger) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "bulk.MoMerger" of the ClassId field. +func (o *BulkMoMerger) GetDefaultClassId() interface{} { + return "bulk.MoMerger" +} + // GetObjectType returns the ObjectType field value func (o *BulkMoMerger) GetObjectType() string { if o == nil { @@ -118,6 +123,11 @@ func (o *BulkMoMerger) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "bulk.MoMerger" of the ObjectType field. +func (o *BulkMoMerger) GetDefaultObjectType() interface{} { + return "bulk.MoMerger" +} + // GetMergeAction returns the MergeAction field value if set, zero value otherwise. func (o *BulkMoMerger) GetMergeAction() string { if o == nil || IsNil(o.MergeAction) { @@ -171,7 +181,7 @@ func (o *BulkMoMerger) GetResponsesOk() ([]BulkRestResult, bool) { // HasResponses returns a boolean if a field has been set. func (o *BulkMoMerger) HasResponses() bool { - if o != nil && IsNil(o.Responses) { + if o != nil && !IsNil(o.Responses) { return true } @@ -204,7 +214,7 @@ func (o *BulkMoMerger) GetSourcesOk() ([]MoBaseMo, bool) { // HasSources returns a boolean if a field has been set. func (o *BulkMoMerger) HasSources() bool { - if o != nil && IsNil(o.Sources) { + if o != nil && !IsNil(o.Sources) { return true } @@ -269,7 +279,7 @@ func (o *BulkMoMerger) GetTargetsOk() ([]MoBaseMo, bool) { // HasTargets returns a boolean if a field has been set. func (o *BulkMoMerger) HasTargets() bool { - if o != nil && IsNil(o.Targets) { + if o != nil && !IsNil(o.Targets) { return true } @@ -417,7 +427,13 @@ func (o BulkMoMerger) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.MergeAction) { toSerialize["MergeAction"] = o.MergeAction @@ -460,6 +476,13 @@ func (o *BulkMoMerger) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -469,11 +492,23 @@ func (o *BulkMoMerger) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type BulkMoMergerWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` @@ -486,7 +521,7 @@ func (o *BulkMoMerger) UnmarshalJSON(data []byte) (err error) { TargetConfig *MoBaseMo `json:"TargetConfig,omitempty"` Targets []MoBaseMo `json:"Targets,omitempty"` // A user-friendly short name to identify the workflow. Name can only contain letters (a-z, A-Z), numbers (0-9), hyphen (-), period (.), colon (:), space ( ), forward slash (/), comma or an underscore (_). - WorkflowNameSuffix *string `json:"WorkflowNameSuffix,omitempty"` + WorkflowNameSuffix *string `json:"WorkflowNameSuffix,omitempty" validate:"regexp=^$|^[a-zA-Z0-9]{1}[\\\\sa-zA-Z0-9_.\\\\,\\/:-]{0,63}$"` AsyncResult NullableBulkResultRelationship `json:"AsyncResult,omitempty"` Organization NullableOrganizationOrganizationRelationship `json:"Organization,omitempty"` } diff --git a/model_bulk_mo_merger_list.go b/model_bulk_mo_merger_list.go index 8c58395087..7e4d8335b0 100644 --- a/model_bulk_mo_merger_list.go +++ b/model_bulk_mo_merger_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *BulkMoMergerList) GetResultsOk() ([]BulkMoMerger, bool) { // HasResults returns a boolean if a field has been set. func (o *BulkMoMergerList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *BulkMoMergerList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *BulkMoMergerList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type BulkMoMergerListWithoutEmbeddedStruct struct { // The total number of 'bulk.MoMerger' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_bulk_mo_merger_relationship.go b/model_bulk_mo_merger_relationship.go index de77f8e875..47384ebe11 100644 --- a/model_bulk_mo_merger_relationship.go +++ b/model_bulk_mo_merger_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_bulk_mo_merger_response.go b/model_bulk_mo_merger_response.go index 9e6114b2db..6118bd5fb8 100644 --- a/model_bulk_mo_merger_response.go +++ b/model_bulk_mo_merger_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_bulk_multi_relation_entry_patch.go b/model_bulk_multi_relation_entry_patch.go index 5d15af4a08..6fd868d085 100644 --- a/model_bulk_multi_relation_entry_patch.go +++ b/model_bulk_multi_relation_entry_patch.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -83,6 +83,10 @@ func (o *BulkMultiRelationEntryPatch) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -92,11 +96,23 @@ func (o *BulkMultiRelationEntryPatch) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type BulkMultiRelationEntryPatchWithoutEmbeddedStruct struct { } diff --git a/model_bulk_patch_content.go b/model_bulk_patch_content.go index b329449dc3..582e0684f2 100644 --- a/model_bulk_patch_content.go +++ b/model_bulk_patch_content.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -83,6 +83,10 @@ func (o *BulkPatchContent) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -92,11 +96,23 @@ func (o *BulkPatchContent) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type BulkPatchContentWithoutEmbeddedStruct struct { } diff --git a/model_bulk_request.go b/model_bulk_request.go index 481949062b..95321e9b98 100644 --- a/model_bulk_request.go +++ b/model_bulk_request.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -120,6 +120,11 @@ func (o *BulkRequest) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "bulk.Request" of the ClassId field. +func (o *BulkRequest) GetDefaultClassId() interface{} { + return "bulk.Request" +} + // GetObjectType returns the ObjectType field value func (o *BulkRequest) GetObjectType() string { if o == nil { @@ -144,6 +149,11 @@ func (o *BulkRequest) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "bulk.Request" of the ObjectType field. +func (o *BulkRequest) GetDefaultObjectType() interface{} { + return "bulk.Request" +} + // GetActionOnError returns the ActionOnError field value if set, zero value otherwise. func (o *BulkRequest) GetActionOnError() string { if o == nil || IsNil(o.ActionOnError) { @@ -197,7 +207,7 @@ func (o *BulkRequest) GetActionsOk() ([]string, bool) { // HasActions returns a boolean if a field has been set. func (o *BulkRequest) HasActions() bool { - if o != nil && IsNil(o.Actions) { + if o != nil && !IsNil(o.Actions) { return true } @@ -262,7 +272,7 @@ func (o *BulkRequest) GetHeadersOk() ([]BulkHttpHeader, bool) { // HasHeaders returns a boolean if a field has been set. func (o *BulkRequest) HasHeaders() bool { - if o != nil && IsNil(o.Headers) { + if o != nil && !IsNil(o.Headers) { return true } @@ -391,7 +401,7 @@ func (o *BulkRequest) GetRequestsOk() ([]BulkSubRequest, bool) { // HasRequests returns a boolean if a field has been set. func (o *BulkRequest) HasRequests() bool { - if o != nil && IsNil(o.Requests) { + if o != nil && !IsNil(o.Requests) { return true } @@ -424,7 +434,7 @@ func (o *BulkRequest) GetResultsOk() ([]BulkApiResult, bool) { // HasResults returns a boolean if a field has been set. func (o *BulkRequest) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -623,7 +633,7 @@ func (o *BulkRequest) GetAsyncResultsOk() ([]BulkSubRequestObjRelationship, bool // HasAsyncResults returns a boolean if a field has been set. func (o *BulkRequest) HasAsyncResults() bool { - if o != nil && IsNil(o.AsyncResults) { + if o != nil && !IsNil(o.AsyncResults) { return true } @@ -656,7 +666,7 @@ func (o *BulkRequest) GetAsyncResultsFailedOk() ([]BulkSubRequestObjRelationship // HasAsyncResultsFailed returns a boolean if a field has been set. func (o *BulkRequest) HasAsyncResultsFailed() bool { - if o != nil && IsNil(o.AsyncResultsFailed) { + if o != nil && !IsNil(o.AsyncResultsFailed) { return true } @@ -772,7 +782,13 @@ func (o BulkRequest) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.ActionOnError) { toSerialize["ActionOnError"] = o.ActionOnError @@ -845,6 +861,13 @@ func (o *BulkRequest) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -854,11 +877,23 @@ func (o *BulkRequest) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type BulkRequestWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_bulk_request_list.go b/model_bulk_request_list.go index 0fbe9610e7..e4f21260f1 100644 --- a/model_bulk_request_list.go +++ b/model_bulk_request_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *BulkRequestList) GetResultsOk() ([]BulkRequest, bool) { // HasResults returns a boolean if a field has been set. func (o *BulkRequestList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *BulkRequestList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *BulkRequestList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type BulkRequestListWithoutEmbeddedStruct struct { // The total number of 'bulk.Request' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_bulk_request_relationship.go b/model_bulk_request_relationship.go index 97e43c119f..cd701f5061 100644 --- a/model_bulk_request_relationship.go +++ b/model_bulk_request_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_bulk_request_response.go b/model_bulk_request_response.go index db0bad030b..91f958bd84 100644 --- a/model_bulk_request_response.go +++ b/model_bulk_request_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_bulk_rest_result.go b/model_bulk_rest_result.go index 2f8325c4e6..cd587da4c8 100644 --- a/model_bulk_rest_result.go +++ b/model_bulk_rest_result.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -83,6 +83,11 @@ func (o *BulkRestResult) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "bulk.RestResult" of the ClassId field. +func (o *BulkRestResult) GetDefaultClassId() interface{} { + return "bulk.RestResult" +} + // GetObjectType returns the ObjectType field value func (o *BulkRestResult) GetObjectType() string { if o == nil { @@ -107,6 +112,11 @@ func (o *BulkRestResult) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "bulk.RestResult" of the ObjectType field. +func (o *BulkRestResult) GetDefaultObjectType() interface{} { + return "bulk.RestResult" +} + // GetBody returns the Body field value if set, zero value otherwise. func (o *BulkRestResult) GetBody() MoBaseMo { if o == nil || IsNil(o.Body) { @@ -189,7 +199,13 @@ func (o BulkRestResult) ToMap() (map[string]interface{}, error) { if errBulkApiResult != nil { return map[string]interface{}{}, errBulkApiResult } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Body) { toSerialize["Body"] = o.Body @@ -214,6 +230,13 @@ func (o *BulkRestResult) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -223,11 +246,23 @@ func (o *BulkRestResult) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type BulkRestResultWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_bulk_rest_sub_request.go b/model_bulk_rest_sub_request.go index 6b9e867d2d..b71a21749c 100644 --- a/model_bulk_rest_sub_request.go +++ b/model_bulk_rest_sub_request.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -85,6 +85,11 @@ func (o *BulkRestSubRequest) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "bulk.RestSubRequest" of the ClassId field. +func (o *BulkRestSubRequest) GetDefaultClassId() interface{} { + return "bulk.RestSubRequest" +} + // GetObjectType returns the ObjectType field value func (o *BulkRestSubRequest) GetObjectType() string { if o == nil { @@ -109,6 +114,11 @@ func (o *BulkRestSubRequest) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "bulk.RestSubRequest" of the ObjectType field. +func (o *BulkRestSubRequest) GetDefaultObjectType() interface{} { + return "bulk.RestSubRequest" +} + // GetBody returns the Body field value if set, zero value otherwise. func (o *BulkRestSubRequest) GetBody() MoBaseMo { if o == nil || IsNil(o.Body) { @@ -191,7 +201,13 @@ func (o BulkRestSubRequest) ToMap() (map[string]interface{}, error) { if errBulkSubRequest != nil { return map[string]interface{}{}, errBulkSubRequest } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Body) { toSerialize["Body"] = o.Body @@ -216,6 +232,13 @@ func (o *BulkRestSubRequest) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -225,11 +248,23 @@ func (o *BulkRestSubRequest) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type BulkRestSubRequestWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_bulk_result.go b/model_bulk_result.go index 693f80017e..0433e13435 100644 --- a/model_bulk_result.go +++ b/model_bulk_result.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,6 +104,11 @@ func (o *BulkResult) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "bulk.Result" of the ClassId field. +func (o *BulkResult) GetDefaultClassId() interface{} { + return "bulk.Result" +} + // GetObjectType returns the ObjectType field value func (o *BulkResult) GetObjectType() string { if o == nil { @@ -128,6 +133,11 @@ func (o *BulkResult) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "bulk.Result" of the ObjectType field. +func (o *BulkResult) GetDefaultObjectType() interface{} { + return "bulk.Result" +} + // GetActionOnError returns the ActionOnError field value if set, zero value otherwise. func (o *BulkResult) GetActionOnError() string { if o == nil || IsNil(o.ActionOnError) { @@ -245,7 +255,7 @@ func (o *BulkResult) GetRequestOk() (*interface{}, bool) { // HasRequest returns a boolean if a field has been set. func (o *BulkResult) HasRequest() bool { - if o != nil && IsNil(o.Request) { + if o != nil && !IsNil(o.Request) { return true } @@ -578,7 +588,7 @@ func (o *BulkResult) GetResultsOk() ([]BulkSubRequestObjRelationship, bool) { // HasResults returns a boolean if a field has been set. func (o *BulkResult) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -651,7 +661,13 @@ func (o BulkResult) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.ActionOnError) { toSerialize["ActionOnError"] = o.ActionOnError @@ -712,6 +728,13 @@ func (o *BulkResult) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -721,11 +744,23 @@ func (o *BulkResult) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type BulkResultWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_bulk_result_list.go b/model_bulk_result_list.go index e5b63914e9..422d4c7ab1 100644 --- a/model_bulk_result_list.go +++ b/model_bulk_result_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *BulkResultList) GetResultsOk() ([]BulkResult, bool) { // HasResults returns a boolean if a field has been set. func (o *BulkResultList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *BulkResultList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *BulkResultList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type BulkResultListWithoutEmbeddedStruct struct { // The total number of 'bulk.Result' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_bulk_result_relationship.go b/model_bulk_result_relationship.go index b5e2cc50e6..a7e66931e0 100644 --- a/model_bulk_result_relationship.go +++ b/model_bulk_result_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_bulk_result_response.go b/model_bulk_result_response.go index b399116298..cdaf3177bb 100644 --- a/model_bulk_result_response.go +++ b/model_bulk_result_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_bulk_sec_resource_roles.go b/model_bulk_sec_resource_roles.go index c46347e59f..f4fb0d1a12 100644 --- a/model_bulk_sec_resource_roles.go +++ b/model_bulk_sec_resource_roles.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -83,6 +83,10 @@ func (o *BulkSecResourceRoles) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -92,11 +96,23 @@ func (o *BulkSecResourceRoles) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type BulkSecResourceRolesWithoutEmbeddedStruct struct { } diff --git a/model_bulk_sub_request.go b/model_bulk_sub_request.go index 44781c0d36..1f405bb5e2 100644 --- a/model_bulk_sub_request.go +++ b/model_bulk_sub_request.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -88,6 +88,11 @@ func (o *BulkSubRequest) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "bulk.RestSubRequest" of the ClassId field. +func (o *BulkSubRequest) GetDefaultClassId() interface{} { + return "bulk.RestSubRequest" +} + // GetObjectType returns the ObjectType field value func (o *BulkSubRequest) GetObjectType() string { if o == nil { @@ -112,6 +117,11 @@ func (o *BulkSubRequest) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "bulk.RestSubRequest" of the ObjectType field. +func (o *BulkSubRequest) GetDefaultObjectType() interface{} { + return "bulk.RestSubRequest" +} + // GetUri returns the Uri field value if set, zero value otherwise. func (o *BulkSubRequest) GetUri() string { if o == nil || IsNil(o.Uri) { @@ -194,7 +204,13 @@ func (o BulkSubRequest) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Uri) { toSerialize["Uri"] = o.Uri @@ -219,6 +235,13 @@ func (o *BulkSubRequest) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -228,11 +251,23 @@ func (o *BulkSubRequest) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type BulkSubRequestWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. The enum values provides the list of concrete types that can be instantiated from this abstract type. ClassId string `json:"ClassId"` diff --git a/model_bulk_sub_request_obj.go b/model_bulk_sub_request_obj.go index 122be2df26..ca6dff8963 100644 --- a/model_bulk_sub_request_obj.go +++ b/model_bulk_sub_request_obj.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -110,6 +110,11 @@ func (o *BulkSubRequestObj) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "bulk.SubRequestObj" of the ClassId field. +func (o *BulkSubRequestObj) GetDefaultClassId() interface{} { + return "bulk.SubRequestObj" +} + // GetObjectType returns the ObjectType field value func (o *BulkSubRequestObj) GetObjectType() string { if o == nil { @@ -134,6 +139,11 @@ func (o *BulkSubRequestObj) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "bulk.SubRequestObj" of the ObjectType field. +func (o *BulkSubRequestObj) GetDefaultObjectType() interface{} { + return "bulk.SubRequestObj" +} + // GetBody returns the Body field value if set, zero value otherwise. func (o *BulkSubRequestObj) GetBody() MoBaseMo { if o == nil || IsNil(o.Body) { @@ -665,7 +675,13 @@ func (o BulkSubRequestObj) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Body) { toSerialize["Body"] = o.Body @@ -729,6 +745,13 @@ func (o *BulkSubRequestObj) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -738,11 +761,23 @@ func (o *BulkSubRequestObj) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type BulkSubRequestObjWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_bulk_sub_request_obj_list.go b/model_bulk_sub_request_obj_list.go index ea1f1fb82c..ad51fcc8c6 100644 --- a/model_bulk_sub_request_obj_list.go +++ b/model_bulk_sub_request_obj_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *BulkSubRequestObjList) GetResultsOk() ([]BulkSubRequestObj, bool) { // HasResults returns a boolean if a field has been set. func (o *BulkSubRequestObjList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *BulkSubRequestObjList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *BulkSubRequestObjList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type BulkSubRequestObjListWithoutEmbeddedStruct struct { // The total number of 'bulk.SubRequestObj' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_bulk_sub_request_obj_relationship.go b/model_bulk_sub_request_obj_relationship.go index ca06835b51..a27641fa2c 100644 --- a/model_bulk_sub_request_obj_relationship.go +++ b/model_bulk_sub_request_obj_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_bulk_sub_request_obj_response.go b/model_bulk_sub_request_obj_response.go index 3c565ce4fa..4481d86760 100644 --- a/model_bulk_sub_request_obj_response.go +++ b/model_bulk_sub_request_obj_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_capability_actions_meta_data.go b/model_capability_actions_meta_data.go index 1476fa3f11..db7c1418eb 100644 --- a/model_capability_actions_meta_data.go +++ b/model_capability_actions_meta_data.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -95,6 +95,11 @@ func (o *CapabilityActionsMetaData) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "capability.ActionsMetaData" of the ClassId field. +func (o *CapabilityActionsMetaData) GetDefaultClassId() interface{} { + return "capability.ActionsMetaData" +} + // GetObjectType returns the ObjectType field value func (o *CapabilityActionsMetaData) GetObjectType() string { if o == nil { @@ -119,6 +124,11 @@ func (o *CapabilityActionsMetaData) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "capability.ActionsMetaData" of the ObjectType field. +func (o *CapabilityActionsMetaData) GetDefaultObjectType() interface{} { + return "capability.ActionsMetaData" +} + // GetMaxFwVersion returns the MaxFwVersion field value if set, zero value otherwise. func (o *CapabilityActionsMetaData) GetMaxFwVersion() string { if o == nil || IsNil(o.MaxFwVersion) { @@ -236,7 +246,7 @@ func (o *CapabilityActionsMetaData) GetSupportedActionsOk() ([]string, bool) { // HasSupportedActions returns a boolean if a field has been set. func (o *CapabilityActionsMetaData) HasSupportedActions() bool { - if o != nil && IsNil(o.SupportedActions) { + if o != nil && !IsNil(o.SupportedActions) { return true } @@ -330,7 +340,13 @@ func (o CapabilityActionsMetaData) ToMap() (map[string]interface{}, error) { if errCapabilityCapability != nil { return map[string]interface{}{}, errCapabilityCapability } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.MaxFwVersion) { toSerialize["MaxFwVersion"] = o.MaxFwVersion @@ -367,6 +383,13 @@ func (o *CapabilityActionsMetaData) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -376,11 +399,23 @@ func (o *CapabilityActionsMetaData) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type CapabilityActionsMetaDataWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_capability_actions_meta_data_list.go b/model_capability_actions_meta_data_list.go index d424b15a3c..2cf3770413 100644 --- a/model_capability_actions_meta_data_list.go +++ b/model_capability_actions_meta_data_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *CapabilityActionsMetaDataList) GetResultsOk() ([]CapabilityActionsMetaD // HasResults returns a boolean if a field has been set. func (o *CapabilityActionsMetaDataList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *CapabilityActionsMetaDataList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *CapabilityActionsMetaDataList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type CapabilityActionsMetaDataListWithoutEmbeddedStruct struct { // The total number of 'capability.ActionsMetaData' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_capability_actions_meta_data_response.go b/model_capability_actions_meta_data_response.go index 5baabf6653..dfb0ca2535 100644 --- a/model_capability_actions_meta_data_response.go +++ b/model_capability_actions_meta_data_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_capability_adapter_deprecated_def.go b/model_capability_adapter_deprecated_def.go index e6b438e58d..47b08c5316 100644 --- a/model_capability_adapter_deprecated_def.go +++ b/model_capability_adapter_deprecated_def.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -84,6 +84,11 @@ func (o *CapabilityAdapterDeprecatedDef) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "capability.AdapterDeprecatedDef" of the ClassId field. +func (o *CapabilityAdapterDeprecatedDef) GetDefaultClassId() interface{} { + return "capability.AdapterDeprecatedDef" +} + // GetObjectType returns the ObjectType field value func (o *CapabilityAdapterDeprecatedDef) GetObjectType() string { if o == nil { @@ -108,6 +113,11 @@ func (o *CapabilityAdapterDeprecatedDef) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "capability.AdapterDeprecatedDef" of the ObjectType field. +func (o *CapabilityAdapterDeprecatedDef) GetDefaultObjectType() interface{} { + return "capability.AdapterDeprecatedDef" +} + // GetModel returns the Model field value if set, zero value otherwise. func (o *CapabilityAdapterDeprecatedDef) GetModel() string { if o == nil || IsNil(o.Model) { @@ -190,7 +200,13 @@ func (o CapabilityAdapterDeprecatedDef) ToMap() (map[string]interface{}, error) if errCapabilityCapability != nil { return map[string]interface{}{}, errCapabilityCapability } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Model) { toSerialize["Model"] = o.Model @@ -215,6 +231,13 @@ func (o *CapabilityAdapterDeprecatedDef) UnmarshalJSON(data []byte) (err error) "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -224,11 +247,23 @@ func (o *CapabilityAdapterDeprecatedDef) UnmarshalJSON(data []byte) (err error) } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type CapabilityAdapterDeprecatedDefWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_capability_adapter_deprecated_def_list.go b/model_capability_adapter_deprecated_def_list.go index 677fd262a6..46237e96c0 100644 --- a/model_capability_adapter_deprecated_def_list.go +++ b/model_capability_adapter_deprecated_def_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *CapabilityAdapterDeprecatedDefList) GetResultsOk() ([]CapabilityAdapter // HasResults returns a boolean if a field has been set. func (o *CapabilityAdapterDeprecatedDefList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *CapabilityAdapterDeprecatedDefList) UnmarshalJSON(data []byte) (err err "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *CapabilityAdapterDeprecatedDefList) UnmarshalJSON(data []byte) (err err } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type CapabilityAdapterDeprecatedDefListWithoutEmbeddedStruct struct { // The total number of 'capability.AdapterDeprecatedDef' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_capability_adapter_deprecated_def_response.go b/model_capability_adapter_deprecated_def_response.go index 6b6cdfc171..b31061f328 100644 --- a/model_capability_adapter_deprecated_def_response.go +++ b/model_capability_adapter_deprecated_def_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_capability_adapter_firmware_requirement.go b/model_capability_adapter_firmware_requirement.go index 5f42d55c84..e0e6b3f5fb 100644 --- a/model_capability_adapter_firmware_requirement.go +++ b/model_capability_adapter_firmware_requirement.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -91,6 +91,11 @@ func (o *CapabilityAdapterFirmwareRequirement) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "capability.AdapterFirmwareRequirement" of the ClassId field. +func (o *CapabilityAdapterFirmwareRequirement) GetDefaultClassId() interface{} { + return "capability.AdapterFirmwareRequirement" +} + // GetObjectType returns the ObjectType field value func (o *CapabilityAdapterFirmwareRequirement) GetObjectType() string { if o == nil { @@ -115,6 +120,11 @@ func (o *CapabilityAdapterFirmwareRequirement) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "capability.AdapterFirmwareRequirement" of the ObjectType field. +func (o *CapabilityAdapterFirmwareRequirement) GetDefaultObjectType() interface{} { + return "capability.AdapterFirmwareRequirement" +} + // GetAdapterSeries returns the AdapterSeries field value if set, zero value otherwise. func (o *CapabilityAdapterFirmwareRequirement) GetAdapterSeries() string { if o == nil || IsNil(o.AdapterSeries) { @@ -296,7 +306,7 @@ func (o *CapabilityAdapterFirmwareRequirement) GetSupportedModelsOk() ([]string, // HasSupportedModels returns a boolean if a field has been set. func (o *CapabilityAdapterFirmwareRequirement) HasSupportedModels() bool { - if o != nil && IsNil(o.SupportedModels) { + if o != nil && !IsNil(o.SupportedModels) { return true } @@ -326,7 +336,13 @@ func (o CapabilityAdapterFirmwareRequirement) ToMap() (map[string]interface{}, e if errCapabilityCapability != nil { return map[string]interface{}{}, errCapabilityCapability } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.AdapterSeries) { toSerialize["AdapterSeries"] = o.AdapterSeries @@ -363,6 +379,13 @@ func (o *CapabilityAdapterFirmwareRequirement) UnmarshalJSON(data []byte) (err e "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -372,11 +395,23 @@ func (o *CapabilityAdapterFirmwareRequirement) UnmarshalJSON(data []byte) (err e } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type CapabilityAdapterFirmwareRequirementWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_capability_adapter_firmware_requirement_list.go b/model_capability_adapter_firmware_requirement_list.go index 681863379b..613128493e 100644 --- a/model_capability_adapter_firmware_requirement_list.go +++ b/model_capability_adapter_firmware_requirement_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *CapabilityAdapterFirmwareRequirementList) GetResultsOk() ([]CapabilityA // HasResults returns a boolean if a field has been set. func (o *CapabilityAdapterFirmwareRequirementList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *CapabilityAdapterFirmwareRequirementList) UnmarshalJSON(data []byte) (e "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *CapabilityAdapterFirmwareRequirementList) UnmarshalJSON(data []byte) (e } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type CapabilityAdapterFirmwareRequirementListWithoutEmbeddedStruct struct { // The total number of 'capability.AdapterFirmwareRequirement' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_capability_adapter_firmware_requirement_response.go b/model_capability_adapter_firmware_requirement_response.go index 0e8d324978..85a77bbfc4 100644 --- a/model_capability_adapter_firmware_requirement_response.go +++ b/model_capability_adapter_firmware_requirement_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_capability_adapter_unit_descriptor.go b/model_capability_adapter_unit_descriptor.go index c4f181f78d..424f3e3e20 100644 --- a/model_capability_adapter_unit_descriptor.go +++ b/model_capability_adapter_unit_descriptor.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -149,6 +149,11 @@ func (o *CapabilityAdapterUnitDescriptor) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "capability.AdapterUnitDescriptor" of the ClassId field. +func (o *CapabilityAdapterUnitDescriptor) GetDefaultClassId() interface{} { + return "capability.AdapterUnitDescriptor" +} + // GetObjectType returns the ObjectType field value func (o *CapabilityAdapterUnitDescriptor) GetObjectType() string { if o == nil { @@ -173,6 +178,11 @@ func (o *CapabilityAdapterUnitDescriptor) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "capability.AdapterUnitDescriptor" of the ObjectType field. +func (o *CapabilityAdapterUnitDescriptor) GetDefaultObjectType() interface{} { + return "capability.AdapterUnitDescriptor" +} + // GetAdapterGeneration returns the AdapterGeneration field value if set, zero value otherwise. func (o *CapabilityAdapterUnitDescriptor) GetAdapterGeneration() int32 { if o == nil || IsNil(o.AdapterGeneration) { @@ -290,7 +300,7 @@ func (o *CapabilityAdapterUnitDescriptor) GetFeaturesOk() ([]CapabilityFeatureCo // HasFeatures returns a boolean if a field has been set. func (o *CapabilityAdapterUnitDescriptor) HasFeatures() bool { - if o != nil && IsNil(o.Features) { + if o != nil && !IsNil(o.Features) { return true } @@ -736,7 +746,13 @@ func (o CapabilityAdapterUnitDescriptor) ToMap() (map[string]interface{}, error) if errCapabilityHardwareDescriptor != nil { return map[string]interface{}{}, errCapabilityHardwareDescriptor } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.AdapterGeneration) { toSerialize["AdapterGeneration"] = o.AdapterGeneration @@ -806,6 +822,13 @@ func (o *CapabilityAdapterUnitDescriptor) UnmarshalJSON(data []byte) (err error) "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -815,11 +838,23 @@ func (o *CapabilityAdapterUnitDescriptor) UnmarshalJSON(data []byte) (err error) } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type CapabilityAdapterUnitDescriptorWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_capability_adapter_unit_descriptor_list.go b/model_capability_adapter_unit_descriptor_list.go index 2d930e10dd..51b112317d 100644 --- a/model_capability_adapter_unit_descriptor_list.go +++ b/model_capability_adapter_unit_descriptor_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *CapabilityAdapterUnitDescriptorList) GetResultsOk() ([]CapabilityAdapte // HasResults returns a boolean if a field has been set. func (o *CapabilityAdapterUnitDescriptorList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *CapabilityAdapterUnitDescriptorList) UnmarshalJSON(data []byte) (err er "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *CapabilityAdapterUnitDescriptorList) UnmarshalJSON(data []byte) (err er } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type CapabilityAdapterUnitDescriptorListWithoutEmbeddedStruct struct { // The total number of 'capability.AdapterUnitDescriptor' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_capability_adapter_unit_descriptor_response.go b/model_capability_adapter_unit_descriptor_response.go index 31e4fdaa25..d55512190d 100644 --- a/model_capability_adapter_unit_descriptor_response.go +++ b/model_capability_adapter_unit_descriptor_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_capability_adapter_update_constraint_meta.go b/model_capability_adapter_update_constraint_meta.go index 3a8850b961..c1cb5cf79d 100644 --- a/model_capability_adapter_update_constraint_meta.go +++ b/model_capability_adapter_update_constraint_meta.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -82,6 +82,11 @@ func (o *CapabilityAdapterUpdateConstraintMeta) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "capability.AdapterUpdateConstraintMeta" of the ClassId field. +func (o *CapabilityAdapterUpdateConstraintMeta) GetDefaultClassId() interface{} { + return "capability.AdapterUpdateConstraintMeta" +} + // GetObjectType returns the ObjectType field value func (o *CapabilityAdapterUpdateConstraintMeta) GetObjectType() string { if o == nil { @@ -106,6 +111,11 @@ func (o *CapabilityAdapterUpdateConstraintMeta) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "capability.AdapterUpdateConstraintMeta" of the ObjectType field. +func (o *CapabilityAdapterUpdateConstraintMeta) GetDefaultObjectType() interface{} { + return "capability.AdapterUpdateConstraintMeta" +} + // GetSupportedPlatform returns the SupportedPlatform field value if set, zero value otherwise. func (o *CapabilityAdapterUpdateConstraintMeta) GetSupportedPlatform() string { if o == nil || IsNil(o.SupportedPlatform) { @@ -156,7 +166,13 @@ func (o CapabilityAdapterUpdateConstraintMeta) ToMap() (map[string]interface{}, if errCapabilityUpdateConstraintMeta != nil { return map[string]interface{}{}, errCapabilityUpdateConstraintMeta } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.SupportedPlatform) { toSerialize["SupportedPlatform"] = o.SupportedPlatform @@ -178,6 +194,13 @@ func (o *CapabilityAdapterUpdateConstraintMeta) UnmarshalJSON(data []byte) (err "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -187,11 +210,23 @@ func (o *CapabilityAdapterUpdateConstraintMeta) UnmarshalJSON(data []byte) (err } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type CapabilityAdapterUpdateConstraintMetaWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_capability_adapter_update_constraint_meta_list.go b/model_capability_adapter_update_constraint_meta_list.go index 73d0b77bd0..ac8e9d3434 100644 --- a/model_capability_adapter_update_constraint_meta_list.go +++ b/model_capability_adapter_update_constraint_meta_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *CapabilityAdapterUpdateConstraintMetaList) GetResultsOk() ([]Capability // HasResults returns a boolean if a field has been set. func (o *CapabilityAdapterUpdateConstraintMetaList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *CapabilityAdapterUpdateConstraintMetaList) UnmarshalJSON(data []byte) ( "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *CapabilityAdapterUpdateConstraintMetaList) UnmarshalJSON(data []byte) ( } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type CapabilityAdapterUpdateConstraintMetaListWithoutEmbeddedStruct struct { // The total number of 'capability.AdapterUpdateConstraintMeta' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_capability_adapter_update_constraint_meta_response.go b/model_capability_adapter_update_constraint_meta_response.go index abc177f80a..8fe667b4b7 100644 --- a/model_capability_adapter_update_constraint_meta_response.go +++ b/model_capability_adapter_update_constraint_meta_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_capability_adapter_upgrade_support_meta.go b/model_capability_adapter_upgrade_support_meta.go index 0b27d5c2f5..bf8814c595 100644 --- a/model_capability_adapter_upgrade_support_meta.go +++ b/model_capability_adapter_upgrade_support_meta.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -85,6 +85,11 @@ func (o *CapabilityAdapterUpgradeSupportMeta) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "capability.AdapterUpgradeSupportMeta" of the ClassId field. +func (o *CapabilityAdapterUpgradeSupportMeta) GetDefaultClassId() interface{} { + return "capability.AdapterUpgradeSupportMeta" +} + // GetObjectType returns the ObjectType field value func (o *CapabilityAdapterUpgradeSupportMeta) GetObjectType() string { if o == nil { @@ -109,6 +114,11 @@ func (o *CapabilityAdapterUpgradeSupportMeta) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "capability.AdapterUpgradeSupportMeta" of the ObjectType field. +func (o *CapabilityAdapterUpgradeSupportMeta) GetDefaultObjectType() interface{} { + return "capability.AdapterUpgradeSupportMeta" +} + // GetDescription returns the Description field value if set, zero value otherwise. func (o *CapabilityAdapterUpgradeSupportMeta) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -194,7 +204,7 @@ func (o *CapabilityAdapterUpgradeSupportMeta) GetSupportedModelsOk() ([]string, // HasSupportedModels returns a boolean if a field has been set. func (o *CapabilityAdapterUpgradeSupportMeta) HasSupportedModels() bool { - if o != nil && IsNil(o.SupportedModels) { + if o != nil && !IsNil(o.SupportedModels) { return true } @@ -224,7 +234,13 @@ func (o CapabilityAdapterUpgradeSupportMeta) ToMap() (map[string]interface{}, er if errCapabilityCapability != nil { return map[string]interface{}{}, errCapabilityCapability } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Description) { toSerialize["Description"] = o.Description @@ -252,6 +268,13 @@ func (o *CapabilityAdapterUpgradeSupportMeta) UnmarshalJSON(data []byte) (err er "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -261,11 +284,23 @@ func (o *CapabilityAdapterUpgradeSupportMeta) UnmarshalJSON(data []byte) (err er } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type CapabilityAdapterUpgradeSupportMetaWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_capability_adapter_upgrade_support_meta_list.go b/model_capability_adapter_upgrade_support_meta_list.go index 2116956a16..4edcc27b9d 100644 --- a/model_capability_adapter_upgrade_support_meta_list.go +++ b/model_capability_adapter_upgrade_support_meta_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *CapabilityAdapterUpgradeSupportMetaList) GetResultsOk() ([]CapabilityAd // HasResults returns a boolean if a field has been set. func (o *CapabilityAdapterUpgradeSupportMetaList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *CapabilityAdapterUpgradeSupportMetaList) UnmarshalJSON(data []byte) (er "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *CapabilityAdapterUpgradeSupportMetaList) UnmarshalJSON(data []byte) (er } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type CapabilityAdapterUpgradeSupportMetaListWithoutEmbeddedStruct struct { // The total number of 'capability.AdapterUpgradeSupportMeta' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_capability_adapter_upgrade_support_meta_response.go b/model_capability_adapter_upgrade_support_meta_response.go index 08b0197c32..ec148c6224 100644 --- a/model_capability_adapter_upgrade_support_meta_response.go +++ b/model_capability_adapter_upgrade_support_meta_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_capability_capability.go b/model_capability_capability.go index 5ae23d5587..09a4158652 100644 --- a/model_capability_capability.go +++ b/model_capability_capability.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -174,6 +174,10 @@ func (o *CapabilityCapability) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -183,11 +187,23 @@ func (o *CapabilityCapability) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type CapabilityCapabilityWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. The enum values provides the list of concrete types that can be instantiated from this abstract type. ClassId string `json:"ClassId"` diff --git a/model_capability_capability_relationship.go b/model_capability_capability_relationship.go index 67ec5ba753..e561ffc77b 100644 --- a/model_capability_capability_relationship.go +++ b/model_capability_capability_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_capability_catalog.go b/model_capability_catalog.go index 897d3ec308..846fe89fd2 100644 --- a/model_capability_catalog.go +++ b/model_capability_catalog.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -83,6 +83,11 @@ func (o *CapabilityCatalog) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "capability.Catalog" of the ClassId field. +func (o *CapabilityCatalog) GetDefaultClassId() interface{} { + return "capability.Catalog" +} + // GetObjectType returns the ObjectType field value func (o *CapabilityCatalog) GetObjectType() string { if o == nil { @@ -107,6 +112,11 @@ func (o *CapabilityCatalog) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "capability.Catalog" of the ObjectType field. +func (o *CapabilityCatalog) GetDefaultObjectType() interface{} { + return "capability.Catalog" +} + // GetName returns the Name field value if set, zero value otherwise. func (o *CapabilityCatalog) GetName() string { if o == nil || IsNil(o.Name) { @@ -200,7 +210,13 @@ func (o CapabilityCatalog) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Name) { toSerialize["Name"] = o.Name @@ -225,6 +241,13 @@ func (o *CapabilityCatalog) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -234,11 +257,23 @@ func (o *CapabilityCatalog) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type CapabilityCatalogWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_capability_catalog_list.go b/model_capability_catalog_list.go index a7b53cdc40..940989ea7c 100644 --- a/model_capability_catalog_list.go +++ b/model_capability_catalog_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *CapabilityCatalogList) GetResultsOk() ([]CapabilityCatalog, bool) { // HasResults returns a boolean if a field has been set. func (o *CapabilityCatalogList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *CapabilityCatalogList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *CapabilityCatalogList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type CapabilityCatalogListWithoutEmbeddedStruct struct { // The total number of 'capability.Catalog' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_capability_catalog_response.go b/model_capability_catalog_response.go index b944c099e3..bcb479b289 100644 --- a/model_capability_catalog_response.go +++ b/model_capability_catalog_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_capability_chassis_descriptor.go b/model_capability_chassis_descriptor.go index bb3b8be29f..8e31e2a1d3 100644 --- a/model_capability_chassis_descriptor.go +++ b/model_capability_chassis_descriptor.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -82,6 +82,11 @@ func (o *CapabilityChassisDescriptor) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "capability.ChassisDescriptor" of the ClassId field. +func (o *CapabilityChassisDescriptor) GetDefaultClassId() interface{} { + return "capability.ChassisDescriptor" +} + // GetObjectType returns the ObjectType field value func (o *CapabilityChassisDescriptor) GetObjectType() string { if o == nil { @@ -106,6 +111,11 @@ func (o *CapabilityChassisDescriptor) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "capability.ChassisDescriptor" of the ObjectType field. +func (o *CapabilityChassisDescriptor) GetDefaultObjectType() interface{} { + return "capability.ChassisDescriptor" +} + // GetRevision returns the Revision field value if set, zero value otherwise. func (o *CapabilityChassisDescriptor) GetRevision() string { if o == nil || IsNil(o.Revision) { @@ -156,7 +166,13 @@ func (o CapabilityChassisDescriptor) ToMap() (map[string]interface{}, error) { if errCapabilityHardwareDescriptor != nil { return map[string]interface{}{}, errCapabilityHardwareDescriptor } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Revision) { toSerialize["Revision"] = o.Revision @@ -178,6 +194,13 @@ func (o *CapabilityChassisDescriptor) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -187,11 +210,23 @@ func (o *CapabilityChassisDescriptor) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type CapabilityChassisDescriptorWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_capability_chassis_descriptor_list.go b/model_capability_chassis_descriptor_list.go index 877ad505ee..243d8d563d 100644 --- a/model_capability_chassis_descriptor_list.go +++ b/model_capability_chassis_descriptor_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *CapabilityChassisDescriptorList) GetResultsOk() ([]CapabilityChassisDes // HasResults returns a boolean if a field has been set. func (o *CapabilityChassisDescriptorList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *CapabilityChassisDescriptorList) UnmarshalJSON(data []byte) (err error) "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *CapabilityChassisDescriptorList) UnmarshalJSON(data []byte) (err error) } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type CapabilityChassisDescriptorListWithoutEmbeddedStruct struct { // The total number of 'capability.ChassisDescriptor' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_capability_chassis_descriptor_response.go b/model_capability_chassis_descriptor_response.go index 8c3a34107f..078bd8663d 100644 --- a/model_capability_chassis_descriptor_response.go +++ b/model_capability_chassis_descriptor_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_capability_chassis_manufacturing_def.go b/model_capability_chassis_manufacturing_def.go index e187662379..6db7f0a651 100644 --- a/model_capability_chassis_manufacturing_def.go +++ b/model_capability_chassis_manufacturing_def.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -94,6 +94,11 @@ func (o *CapabilityChassisManufacturingDef) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "capability.ChassisManufacturingDef" of the ClassId field. +func (o *CapabilityChassisManufacturingDef) GetDefaultClassId() interface{} { + return "capability.ChassisManufacturingDef" +} + // GetObjectType returns the ObjectType field value func (o *CapabilityChassisManufacturingDef) GetObjectType() string { if o == nil { @@ -118,6 +123,11 @@ func (o *CapabilityChassisManufacturingDef) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "capability.ChassisManufacturingDef" of the ObjectType field. +func (o *CapabilityChassisManufacturingDef) GetDefaultObjectType() interface{} { + return "capability.ChassisManufacturingDef" +} + // GetCaption returns the Caption field value if set, zero value otherwise. func (o *CapabilityChassisManufacturingDef) GetCaption() string { if o == nil || IsNil(o.Caption) { @@ -360,7 +370,13 @@ func (o CapabilityChassisManufacturingDef) ToMap() (map[string]interface{}, erro if errCapabilityCapability != nil { return map[string]interface{}{}, errCapabilityCapability } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Caption) { toSerialize["Caption"] = o.Caption @@ -400,6 +416,13 @@ func (o *CapabilityChassisManufacturingDef) UnmarshalJSON(data []byte) (err erro "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -409,11 +432,23 @@ func (o *CapabilityChassisManufacturingDef) UnmarshalJSON(data []byte) (err erro } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type CapabilityChassisManufacturingDefWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_capability_chassis_manufacturing_def_list.go b/model_capability_chassis_manufacturing_def_list.go index ba44e62a6b..71c434e774 100644 --- a/model_capability_chassis_manufacturing_def_list.go +++ b/model_capability_chassis_manufacturing_def_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *CapabilityChassisManufacturingDefList) GetResultsOk() ([]CapabilityChas // HasResults returns a boolean if a field has been set. func (o *CapabilityChassisManufacturingDefList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *CapabilityChassisManufacturingDefList) UnmarshalJSON(data []byte) (err "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *CapabilityChassisManufacturingDefList) UnmarshalJSON(data []byte) (err } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type CapabilityChassisManufacturingDefListWithoutEmbeddedStruct struct { // The total number of 'capability.ChassisManufacturingDef' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_capability_chassis_manufacturing_def_response.go b/model_capability_chassis_manufacturing_def_response.go index f2faa8543a..159eb6a3b5 100644 --- a/model_capability_chassis_manufacturing_def_response.go +++ b/model_capability_chassis_manufacturing_def_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_capability_chassis_upgrade_support_meta.go b/model_capability_chassis_upgrade_support_meta.go index 7d7df2d224..a0f3d8524f 100644 --- a/model_capability_chassis_upgrade_support_meta.go +++ b/model_capability_chassis_upgrade_support_meta.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -87,6 +87,11 @@ func (o *CapabilityChassisUpgradeSupportMeta) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "capability.ChassisUpgradeSupportMeta" of the ClassId field. +func (o *CapabilityChassisUpgradeSupportMeta) GetDefaultClassId() interface{} { + return "capability.ChassisUpgradeSupportMeta" +} + // GetObjectType returns the ObjectType field value func (o *CapabilityChassisUpgradeSupportMeta) GetObjectType() string { if o == nil { @@ -111,6 +116,11 @@ func (o *CapabilityChassisUpgradeSupportMeta) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "capability.ChassisUpgradeSupportMeta" of the ObjectType field. +func (o *CapabilityChassisUpgradeSupportMeta) GetDefaultObjectType() interface{} { + return "capability.ChassisUpgradeSupportMeta" +} + // GetAdaptersUpgradedViaHsu returns the AdaptersUpgradedViaHsu field value if set, zero value otherwise. func (o *CapabilityChassisUpgradeSupportMeta) GetAdaptersUpgradedViaHsu() bool { if o == nil || IsNil(o.AdaptersUpgradedViaHsu) { @@ -228,7 +238,7 @@ func (o *CapabilityChassisUpgradeSupportMeta) GetSupportedModelsOk() ([]string, // HasSupportedModels returns a boolean if a field has been set. func (o *CapabilityChassisUpgradeSupportMeta) HasSupportedModels() bool { - if o != nil && IsNil(o.SupportedModels) { + if o != nil && !IsNil(o.SupportedModels) { return true } @@ -258,7 +268,13 @@ func (o CapabilityChassisUpgradeSupportMeta) ToMap() (map[string]interface{}, er if errCapabilityCapability != nil { return map[string]interface{}{}, errCapabilityCapability } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.AdaptersUpgradedViaHsu) { toSerialize["AdaptersUpgradedViaHsu"] = o.AdaptersUpgradedViaHsu @@ -289,6 +305,13 @@ func (o *CapabilityChassisUpgradeSupportMeta) UnmarshalJSON(data []byte) (err er "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -298,11 +321,23 @@ func (o *CapabilityChassisUpgradeSupportMeta) UnmarshalJSON(data []byte) (err er } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type CapabilityChassisUpgradeSupportMetaWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_capability_chassis_upgrade_support_meta_list.go b/model_capability_chassis_upgrade_support_meta_list.go index cd768e9ea3..5183d6d6dd 100644 --- a/model_capability_chassis_upgrade_support_meta_list.go +++ b/model_capability_chassis_upgrade_support_meta_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *CapabilityChassisUpgradeSupportMetaList) GetResultsOk() ([]CapabilityCh // HasResults returns a boolean if a field has been set. func (o *CapabilityChassisUpgradeSupportMetaList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *CapabilityChassisUpgradeSupportMetaList) UnmarshalJSON(data []byte) (er "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *CapabilityChassisUpgradeSupportMetaList) UnmarshalJSON(data []byte) (er } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type CapabilityChassisUpgradeSupportMetaListWithoutEmbeddedStruct struct { // The total number of 'capability.ChassisUpgradeSupportMeta' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_capability_chassis_upgrade_support_meta_response.go b/model_capability_chassis_upgrade_support_meta_response.go index 86544d5f60..a27877ab67 100644 --- a/model_capability_chassis_upgrade_support_meta_response.go +++ b/model_capability_chassis_upgrade_support_meta_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_capability_cimc_firmware_descriptor.go b/model_capability_cimc_firmware_descriptor.go index 88e28c4812..7ec68224cf 100644 --- a/model_capability_cimc_firmware_descriptor.go +++ b/model_capability_cimc_firmware_descriptor.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -88,6 +88,11 @@ func (o *CapabilityCimcFirmwareDescriptor) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "capability.CimcFirmwareDescriptor" of the ClassId field. +func (o *CapabilityCimcFirmwareDescriptor) GetDefaultClassId() interface{} { + return "capability.CimcFirmwareDescriptor" +} + // GetObjectType returns the ObjectType field value func (o *CapabilityCimcFirmwareDescriptor) GetObjectType() string { if o == nil { @@ -112,6 +117,11 @@ func (o *CapabilityCimcFirmwareDescriptor) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "capability.CimcFirmwareDescriptor" of the ObjectType field. +func (o *CapabilityCimcFirmwareDescriptor) GetDefaultObjectType() interface{} { + return "capability.CimcFirmwareDescriptor" +} + // GetAdapterEpProxyEnabled returns the AdapterEpProxyEnabled field value if set, zero value otherwise. func (o *CapabilityCimcFirmwareDescriptor) GetAdapterEpProxyEnabled() bool { if o == nil || IsNil(o.AdapterEpProxyEnabled) { @@ -258,7 +268,13 @@ func (o CapabilityCimcFirmwareDescriptor) ToMap() (map[string]interface{}, error if errCapabilityHardwareDescriptor != nil { return map[string]interface{}{}, errCapabilityHardwareDescriptor } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.AdapterEpProxyEnabled) { toSerialize["AdapterEpProxyEnabled"] = o.AdapterEpProxyEnabled @@ -289,6 +305,13 @@ func (o *CapabilityCimcFirmwareDescriptor) UnmarshalJSON(data []byte) (err error "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -298,11 +321,23 @@ func (o *CapabilityCimcFirmwareDescriptor) UnmarshalJSON(data []byte) (err error } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type CapabilityCimcFirmwareDescriptorWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_capability_cimc_firmware_descriptor_list.go b/model_capability_cimc_firmware_descriptor_list.go index 7ff8461a48..aa55b3de1c 100644 --- a/model_capability_cimc_firmware_descriptor_list.go +++ b/model_capability_cimc_firmware_descriptor_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *CapabilityCimcFirmwareDescriptorList) GetResultsOk() ([]CapabilityCimcF // HasResults returns a boolean if a field has been set. func (o *CapabilityCimcFirmwareDescriptorList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *CapabilityCimcFirmwareDescriptorList) UnmarshalJSON(data []byte) (err e "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *CapabilityCimcFirmwareDescriptorList) UnmarshalJSON(data []byte) (err e } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type CapabilityCimcFirmwareDescriptorListWithoutEmbeddedStruct struct { // The total number of 'capability.CimcFirmwareDescriptor' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_capability_cimc_firmware_descriptor_response.go b/model_capability_cimc_firmware_descriptor_response.go index 0171eacbbf..c3af3af129 100644 --- a/model_capability_cimc_firmware_descriptor_response.go +++ b/model_capability_cimc_firmware_descriptor_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_capability_cpu_endpoint_descriptor.go b/model_capability_cpu_endpoint_descriptor.go index 32bee23aa7..ab0df8237b 100644 --- a/model_capability_cpu_endpoint_descriptor.go +++ b/model_capability_cpu_endpoint_descriptor.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -91,6 +91,11 @@ func (o *CapabilityCpuEndpointDescriptor) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "capability.CpuEndpointDescriptor" of the ClassId field. +func (o *CapabilityCpuEndpointDescriptor) GetDefaultClassId() interface{} { + return "capability.CpuEndpointDescriptor" +} + // GetObjectType returns the ObjectType field value func (o *CapabilityCpuEndpointDescriptor) GetObjectType() string { if o == nil { @@ -115,6 +120,11 @@ func (o *CapabilityCpuEndpointDescriptor) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "capability.CpuEndpointDescriptor" of the ObjectType field. +func (o *CapabilityCpuEndpointDescriptor) GetDefaultObjectType() interface{} { + return "capability.CpuEndpointDescriptor" +} + // GetDescription returns the Description field value if set, zero value otherwise. func (o *CapabilityCpuEndpointDescriptor) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -264,7 +274,7 @@ func (o *CapabilityCpuEndpointDescriptor) GetSupportedPlatformsPidsOk() ([]strin // HasSupportedPlatformsPids returns a boolean if a field has been set. func (o *CapabilityCpuEndpointDescriptor) HasSupportedPlatformsPids() bool { - if o != nil && IsNil(o.SupportedPlatformsPids) { + if o != nil && !IsNil(o.SupportedPlatformsPids) { return true } @@ -326,7 +336,13 @@ func (o CapabilityCpuEndpointDescriptor) ToMap() (map[string]interface{}, error) if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Description) { toSerialize["Description"] = o.Description @@ -363,6 +379,13 @@ func (o *CapabilityCpuEndpointDescriptor) UnmarshalJSON(data []byte) (err error) "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -372,11 +395,23 @@ func (o *CapabilityCpuEndpointDescriptor) UnmarshalJSON(data []byte) (err error) } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type CapabilityCpuEndpointDescriptorWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_capability_cpu_endpoint_descriptor_list.go b/model_capability_cpu_endpoint_descriptor_list.go index ac0bfd95b9..d4e4ba22ae 100644 --- a/model_capability_cpu_endpoint_descriptor_list.go +++ b/model_capability_cpu_endpoint_descriptor_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *CapabilityCpuEndpointDescriptorList) GetResultsOk() ([]CapabilityCpuEnd // HasResults returns a boolean if a field has been set. func (o *CapabilityCpuEndpointDescriptorList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *CapabilityCpuEndpointDescriptorList) UnmarshalJSON(data []byte) (err er "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *CapabilityCpuEndpointDescriptorList) UnmarshalJSON(data []byte) (err er } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type CapabilityCpuEndpointDescriptorListWithoutEmbeddedStruct struct { // The total number of 'capability.CpuEndpointDescriptor' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_capability_cpu_endpoint_descriptor_response.go b/model_capability_cpu_endpoint_descriptor_response.go index 155fde5c60..862eb4691d 100644 --- a/model_capability_cpu_endpoint_descriptor_response.go +++ b/model_capability_cpu_endpoint_descriptor_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_capability_dimms_endpoint_descriptor.go b/model_capability_dimms_endpoint_descriptor.go index 25f38aa27f..a9652dde55 100644 --- a/model_capability_dimms_endpoint_descriptor.go +++ b/model_capability_dimms_endpoint_descriptor.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -91,6 +91,11 @@ func (o *CapabilityDimmsEndpointDescriptor) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "capability.DimmsEndpointDescriptor" of the ClassId field. +func (o *CapabilityDimmsEndpointDescriptor) GetDefaultClassId() interface{} { + return "capability.DimmsEndpointDescriptor" +} + // GetObjectType returns the ObjectType field value func (o *CapabilityDimmsEndpointDescriptor) GetObjectType() string { if o == nil { @@ -115,6 +120,11 @@ func (o *CapabilityDimmsEndpointDescriptor) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "capability.DimmsEndpointDescriptor" of the ObjectType field. +func (o *CapabilityDimmsEndpointDescriptor) GetDefaultObjectType() interface{} { + return "capability.DimmsEndpointDescriptor" +} + // GetDescription returns the Description field value if set, zero value otherwise. func (o *CapabilityDimmsEndpointDescriptor) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -264,7 +274,7 @@ func (o *CapabilityDimmsEndpointDescriptor) GetSupportedPlatformsPidsOk() ([]str // HasSupportedPlatformsPids returns a boolean if a field has been set. func (o *CapabilityDimmsEndpointDescriptor) HasSupportedPlatformsPids() bool { - if o != nil && IsNil(o.SupportedPlatformsPids) { + if o != nil && !IsNil(o.SupportedPlatformsPids) { return true } @@ -326,7 +336,13 @@ func (o CapabilityDimmsEndpointDescriptor) ToMap() (map[string]interface{}, erro if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Description) { toSerialize["Description"] = o.Description @@ -363,6 +379,13 @@ func (o *CapabilityDimmsEndpointDescriptor) UnmarshalJSON(data []byte) (err erro "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -372,11 +395,23 @@ func (o *CapabilityDimmsEndpointDescriptor) UnmarshalJSON(data []byte) (err erro } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type CapabilityDimmsEndpointDescriptorWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_capability_dimms_endpoint_descriptor_list.go b/model_capability_dimms_endpoint_descriptor_list.go index 90ab0af790..bb9c7a1598 100644 --- a/model_capability_dimms_endpoint_descriptor_list.go +++ b/model_capability_dimms_endpoint_descriptor_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *CapabilityDimmsEndpointDescriptorList) GetResultsOk() ([]CapabilityDimm // HasResults returns a boolean if a field has been set. func (o *CapabilityDimmsEndpointDescriptorList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *CapabilityDimmsEndpointDescriptorList) UnmarshalJSON(data []byte) (err "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *CapabilityDimmsEndpointDescriptorList) UnmarshalJSON(data []byte) (err } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type CapabilityDimmsEndpointDescriptorListWithoutEmbeddedStruct struct { // The total number of 'capability.DimmsEndpointDescriptor' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_capability_dimms_endpoint_descriptor_response.go b/model_capability_dimms_endpoint_descriptor_response.go index 7d759d22f6..82ba61471f 100644 --- a/model_capability_dimms_endpoint_descriptor_response.go +++ b/model_capability_dimms_endpoint_descriptor_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_capability_drives_endpoint_descriptor.go b/model_capability_drives_endpoint_descriptor.go index c8cc65015c..545bce4f56 100644 --- a/model_capability_drives_endpoint_descriptor.go +++ b/model_capability_drives_endpoint_descriptor.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -93,6 +93,11 @@ func (o *CapabilityDrivesEndpointDescriptor) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "capability.DrivesEndpointDescriptor" of the ClassId field. +func (o *CapabilityDrivesEndpointDescriptor) GetDefaultClassId() interface{} { + return "capability.DrivesEndpointDescriptor" +} + // GetObjectType returns the ObjectType field value func (o *CapabilityDrivesEndpointDescriptor) GetObjectType() string { if o == nil { @@ -117,6 +122,11 @@ func (o *CapabilityDrivesEndpointDescriptor) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "capability.DrivesEndpointDescriptor" of the ObjectType field. +func (o *CapabilityDrivesEndpointDescriptor) GetDefaultObjectType() interface{} { + return "capability.DrivesEndpointDescriptor" +} + // GetAliasModel returns the AliasModel field value if set, zero value otherwise. func (o *CapabilityDrivesEndpointDescriptor) GetAliasModel() string { if o == nil || IsNil(o.AliasModel) { @@ -298,7 +308,7 @@ func (o *CapabilityDrivesEndpointDescriptor) GetSupportedPlatformsPidsOk() ([]st // HasSupportedPlatformsPids returns a boolean if a field has been set. func (o *CapabilityDrivesEndpointDescriptor) HasSupportedPlatformsPids() bool { - if o != nil && IsNil(o.SupportedPlatformsPids) { + if o != nil && !IsNil(o.SupportedPlatformsPids) { return true } @@ -360,7 +370,13 @@ func (o CapabilityDrivesEndpointDescriptor) ToMap() (map[string]interface{}, err if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.AliasModel) { toSerialize["AliasModel"] = o.AliasModel @@ -400,6 +416,13 @@ func (o *CapabilityDrivesEndpointDescriptor) UnmarshalJSON(data []byte) (err err "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -409,11 +432,23 @@ func (o *CapabilityDrivesEndpointDescriptor) UnmarshalJSON(data []byte) (err err } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type CapabilityDrivesEndpointDescriptorWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_capability_drives_endpoint_descriptor_list.go b/model_capability_drives_endpoint_descriptor_list.go index 9c8dfd6850..c2d409b780 100644 --- a/model_capability_drives_endpoint_descriptor_list.go +++ b/model_capability_drives_endpoint_descriptor_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *CapabilityDrivesEndpointDescriptorList) GetResultsOk() ([]CapabilityDri // HasResults returns a boolean if a field has been set. func (o *CapabilityDrivesEndpointDescriptorList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *CapabilityDrivesEndpointDescriptorList) UnmarshalJSON(data []byte) (err "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *CapabilityDrivesEndpointDescriptorList) UnmarshalJSON(data []byte) (err } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type CapabilityDrivesEndpointDescriptorListWithoutEmbeddedStruct struct { // The total number of 'capability.DrivesEndpointDescriptor' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_capability_drives_endpoint_descriptor_response.go b/model_capability_drives_endpoint_descriptor_response.go index e7349452f0..7693a3d97f 100644 --- a/model_capability_drives_endpoint_descriptor_response.go +++ b/model_capability_drives_endpoint_descriptor_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_capability_endpoint_descriptor.go b/model_capability_endpoint_descriptor.go index 9f529f1902..064a710c13 100644 --- a/model_capability_endpoint_descriptor.go +++ b/model_capability_endpoint_descriptor.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -259,7 +259,7 @@ func (o *CapabilityEndpointDescriptor) GetCapabilitiesOk() ([]CapabilityCapabili // HasCapabilities returns a boolean if a field has been set. func (o *CapabilityEndpointDescriptor) HasCapabilities() bool { - if o != nil && IsNil(o.Capabilities) { + if o != nil && !IsNil(o.Capabilities) { return true } @@ -323,6 +323,10 @@ func (o *CapabilityEndpointDescriptor) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -332,11 +336,23 @@ func (o *CapabilityEndpointDescriptor) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type CapabilityEndpointDescriptorWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. The enum values provides the list of concrete types that can be instantiated from this abstract type. ClassId string `json:"ClassId"` diff --git a/model_capability_equipment_physical_def.go b/model_capability_equipment_physical_def.go index 57df015d63..da7e777c97 100644 --- a/model_capability_equipment_physical_def.go +++ b/model_capability_equipment_physical_def.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -96,6 +96,11 @@ func (o *CapabilityEquipmentPhysicalDef) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "capability.EquipmentPhysicalDef" of the ClassId field. +func (o *CapabilityEquipmentPhysicalDef) GetDefaultClassId() interface{} { + return "capability.EquipmentPhysicalDef" +} + // GetObjectType returns the ObjectType field value func (o *CapabilityEquipmentPhysicalDef) GetObjectType() string { if o == nil { @@ -120,6 +125,11 @@ func (o *CapabilityEquipmentPhysicalDef) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "capability.EquipmentPhysicalDef" of the ObjectType field. +func (o *CapabilityEquipmentPhysicalDef) GetDefaultObjectType() interface{} { + return "capability.EquipmentPhysicalDef" +} + // GetDepth returns the Depth field value if set, zero value otherwise. func (o *CapabilityEquipmentPhysicalDef) GetDepth() float32 { if o == nil || IsNil(o.Depth) { @@ -362,7 +372,13 @@ func (o CapabilityEquipmentPhysicalDef) ToMap() (map[string]interface{}, error) if errCapabilitySwitchCapabilityDef != nil { return map[string]interface{}{}, errCapabilitySwitchCapabilityDef } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Depth) { toSerialize["Depth"] = o.Depth @@ -402,6 +418,13 @@ func (o *CapabilityEquipmentPhysicalDef) UnmarshalJSON(data []byte) (err error) "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -411,11 +434,23 @@ func (o *CapabilityEquipmentPhysicalDef) UnmarshalJSON(data []byte) (err error) } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type CapabilityEquipmentPhysicalDefWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_capability_equipment_physical_def_list.go b/model_capability_equipment_physical_def_list.go index 1b125e982a..4841a7dcce 100644 --- a/model_capability_equipment_physical_def_list.go +++ b/model_capability_equipment_physical_def_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *CapabilityEquipmentPhysicalDefList) GetResultsOk() ([]CapabilityEquipme // HasResults returns a boolean if a field has been set. func (o *CapabilityEquipmentPhysicalDefList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *CapabilityEquipmentPhysicalDefList) UnmarshalJSON(data []byte) (err err "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *CapabilityEquipmentPhysicalDefList) UnmarshalJSON(data []byte) (err err } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type CapabilityEquipmentPhysicalDefListWithoutEmbeddedStruct struct { // The total number of 'capability.EquipmentPhysicalDef' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_capability_equipment_physical_def_response.go b/model_capability_equipment_physical_def_response.go index cbf49f5ea9..a0b544554e 100644 --- a/model_capability_equipment_physical_def_response.go +++ b/model_capability_equipment_physical_def_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_capability_equipment_slot_array.go b/model_capability_equipment_slot_array.go index 8d0bb3d2f9..21840bf638 100644 --- a/model_capability_equipment_slot_array.go +++ b/model_capability_equipment_slot_array.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -114,6 +114,11 @@ func (o *CapabilityEquipmentSlotArray) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "capability.EquipmentSlotArray" of the ClassId field. +func (o *CapabilityEquipmentSlotArray) GetDefaultClassId() interface{} { + return "capability.EquipmentSlotArray" +} + // GetObjectType returns the ObjectType field value func (o *CapabilityEquipmentSlotArray) GetObjectType() string { if o == nil { @@ -138,6 +143,11 @@ func (o *CapabilityEquipmentSlotArray) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "capability.EquipmentSlotArray" of the ObjectType field. +func (o *CapabilityEquipmentSlotArray) GetDefaultObjectType() interface{} { + return "capability.EquipmentSlotArray" +} + // GetFirstIndex returns the FirstIndex field value if set, zero value otherwise. func (o *CapabilityEquipmentSlotArray) GetFirstIndex() float32 { if o == nil || IsNil(o.FirstIndex) { @@ -668,7 +678,13 @@ func (o CapabilityEquipmentSlotArray) ToMap() (map[string]interface{}, error) { if errCapabilitySwitchCapabilityDef != nil { return map[string]interface{}{}, errCapabilitySwitchCapabilityDef } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.FirstIndex) { toSerialize["FirstIndex"] = o.FirstIndex @@ -735,6 +751,13 @@ func (o *CapabilityEquipmentSlotArray) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -744,11 +767,23 @@ func (o *CapabilityEquipmentSlotArray) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type CapabilityEquipmentSlotArrayWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_capability_equipment_slot_array_list.go b/model_capability_equipment_slot_array_list.go index 515d03f14f..62f6b3cdcb 100644 --- a/model_capability_equipment_slot_array_list.go +++ b/model_capability_equipment_slot_array_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *CapabilityEquipmentSlotArrayList) GetResultsOk() ([]CapabilityEquipment // HasResults returns a boolean if a field has been set. func (o *CapabilityEquipmentSlotArrayList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *CapabilityEquipmentSlotArrayList) UnmarshalJSON(data []byte) (err error "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *CapabilityEquipmentSlotArrayList) UnmarshalJSON(data []byte) (err error } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type CapabilityEquipmentSlotArrayListWithoutEmbeddedStruct struct { // The total number of 'capability.EquipmentSlotArray' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_capability_equipment_slot_array_response.go b/model_capability_equipment_slot_array_response.go index 61d60955f6..29471e87e1 100644 --- a/model_capability_equipment_slot_array_response.go +++ b/model_capability_equipment_slot_array_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_capability_fan_module_descriptor.go b/model_capability_fan_module_descriptor.go index 545b428ec7..79596d439a 100644 --- a/model_capability_fan_module_descriptor.go +++ b/model_capability_fan_module_descriptor.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -82,6 +82,11 @@ func (o *CapabilityFanModuleDescriptor) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "capability.FanModuleDescriptor" of the ClassId field. +func (o *CapabilityFanModuleDescriptor) GetDefaultClassId() interface{} { + return "capability.FanModuleDescriptor" +} + // GetObjectType returns the ObjectType field value func (o *CapabilityFanModuleDescriptor) GetObjectType() string { if o == nil { @@ -106,6 +111,11 @@ func (o *CapabilityFanModuleDescriptor) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "capability.FanModuleDescriptor" of the ObjectType field. +func (o *CapabilityFanModuleDescriptor) GetDefaultObjectType() interface{} { + return "capability.FanModuleDescriptor" +} + // GetRevision returns the Revision field value if set, zero value otherwise. func (o *CapabilityFanModuleDescriptor) GetRevision() string { if o == nil || IsNil(o.Revision) { @@ -156,7 +166,13 @@ func (o CapabilityFanModuleDescriptor) ToMap() (map[string]interface{}, error) { if errCapabilityHardwareDescriptor != nil { return map[string]interface{}{}, errCapabilityHardwareDescriptor } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Revision) { toSerialize["Revision"] = o.Revision @@ -178,6 +194,13 @@ func (o *CapabilityFanModuleDescriptor) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -187,11 +210,23 @@ func (o *CapabilityFanModuleDescriptor) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type CapabilityFanModuleDescriptorWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_capability_fan_module_descriptor_list.go b/model_capability_fan_module_descriptor_list.go index 191fc11c57..4bc86f1c1f 100644 --- a/model_capability_fan_module_descriptor_list.go +++ b/model_capability_fan_module_descriptor_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *CapabilityFanModuleDescriptorList) GetResultsOk() ([]CapabilityFanModul // HasResults returns a boolean if a field has been set. func (o *CapabilityFanModuleDescriptorList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *CapabilityFanModuleDescriptorList) UnmarshalJSON(data []byte) (err erro "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *CapabilityFanModuleDescriptorList) UnmarshalJSON(data []byte) (err erro } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type CapabilityFanModuleDescriptorListWithoutEmbeddedStruct struct { // The total number of 'capability.FanModuleDescriptor' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_capability_fan_module_descriptor_response.go b/model_capability_fan_module_descriptor_response.go index 7c7d5a07e8..271815ec63 100644 --- a/model_capability_fan_module_descriptor_response.go +++ b/model_capability_fan_module_descriptor_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_capability_fan_module_manufacturing_def.go b/model_capability_fan_module_manufacturing_def.go index cfb70b08de..b2f1e3b14b 100644 --- a/model_capability_fan_module_manufacturing_def.go +++ b/model_capability_fan_module_manufacturing_def.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -92,6 +92,11 @@ func (o *CapabilityFanModuleManufacturingDef) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "capability.FanModuleManufacturingDef" of the ClassId field. +func (o *CapabilityFanModuleManufacturingDef) GetDefaultClassId() interface{} { + return "capability.FanModuleManufacturingDef" +} + // GetObjectType returns the ObjectType field value func (o *CapabilityFanModuleManufacturingDef) GetObjectType() string { if o == nil { @@ -116,6 +121,11 @@ func (o *CapabilityFanModuleManufacturingDef) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "capability.FanModuleManufacturingDef" of the ObjectType field. +func (o *CapabilityFanModuleManufacturingDef) GetDefaultObjectType() interface{} { + return "capability.FanModuleManufacturingDef" +} + // GetCaption returns the Caption field value if set, zero value otherwise. func (o *CapabilityFanModuleManufacturingDef) GetCaption() string { if o == nil || IsNil(o.Caption) { @@ -326,7 +336,13 @@ func (o CapabilityFanModuleManufacturingDef) ToMap() (map[string]interface{}, er if errCapabilityCapability != nil { return map[string]interface{}{}, errCapabilityCapability } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Caption) { toSerialize["Caption"] = o.Caption @@ -363,6 +379,13 @@ func (o *CapabilityFanModuleManufacturingDef) UnmarshalJSON(data []byte) (err er "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -372,11 +395,23 @@ func (o *CapabilityFanModuleManufacturingDef) UnmarshalJSON(data []byte) (err er } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type CapabilityFanModuleManufacturingDefWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_capability_fan_module_manufacturing_def_list.go b/model_capability_fan_module_manufacturing_def_list.go index ee5ea36092..67813b160e 100644 --- a/model_capability_fan_module_manufacturing_def_list.go +++ b/model_capability_fan_module_manufacturing_def_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *CapabilityFanModuleManufacturingDefList) GetResultsOk() ([]CapabilityFa // HasResults returns a boolean if a field has been set. func (o *CapabilityFanModuleManufacturingDefList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *CapabilityFanModuleManufacturingDefList) UnmarshalJSON(data []byte) (er "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *CapabilityFanModuleManufacturingDefList) UnmarshalJSON(data []byte) (er } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type CapabilityFanModuleManufacturingDefListWithoutEmbeddedStruct struct { // The total number of 'capability.FanModuleManufacturingDef' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_capability_fan_module_manufacturing_def_response.go b/model_capability_fan_module_manufacturing_def_response.go index 3a8ab11b61..d76538a507 100644 --- a/model_capability_fan_module_manufacturing_def_response.go +++ b/model_capability_fan_module_manufacturing_def_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_capability_feature_config.go b/model_capability_feature_config.go index a13192a395..945d6feeb7 100644 --- a/model_capability_feature_config.go +++ b/model_capability_feature_config.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -100,6 +100,11 @@ func (o *CapabilityFeatureConfig) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "capability.FeatureConfig" of the ClassId field. +func (o *CapabilityFeatureConfig) GetDefaultClassId() interface{} { + return "capability.FeatureConfig" +} + // GetObjectType returns the ObjectType field value func (o *CapabilityFeatureConfig) GetObjectType() string { if o == nil { @@ -124,6 +129,11 @@ func (o *CapabilityFeatureConfig) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "capability.FeatureConfig" of the ObjectType field. +func (o *CapabilityFeatureConfig) GetDefaultObjectType() interface{} { + return "capability.FeatureConfig" +} + // GetFeatureName returns the FeatureName field value if set, zero value otherwise. func (o *CapabilityFeatureConfig) GetFeatureName() string { if o == nil || IsNil(o.FeatureName) { @@ -241,7 +251,7 @@ func (o *CapabilityFeatureConfig) GetSupportedFwVersionsOk() ([]string, bool) { // HasSupportedFwVersions returns a boolean if a field has been set. func (o *CapabilityFeatureConfig) HasSupportedFwVersions() bool { - if o != nil && IsNil(o.SupportedFwVersions) { + if o != nil && !IsNil(o.SupportedFwVersions) { return true } @@ -274,7 +284,7 @@ func (o *CapabilityFeatureConfig) GetSupportedInAdaptersOk() ([]string, bool) { // HasSupportedInAdapters returns a boolean if a field has been set. func (o *CapabilityFeatureConfig) HasSupportedInAdapters() bool { - if o != nil && IsNil(o.SupportedInAdapters) { + if o != nil && !IsNil(o.SupportedInAdapters) { return true } @@ -307,7 +317,7 @@ func (o *CapabilityFeatureConfig) GetSupportedInGenerationsOk() ([]int32, bool) // HasSupportedInGenerations returns a boolean if a field has been set. func (o *CapabilityFeatureConfig) HasSupportedInGenerations() bool { - if o != nil && IsNil(o.SupportedInGenerations) { + if o != nil && !IsNil(o.SupportedInGenerations) { return true } @@ -340,7 +350,7 @@ func (o *CapabilityFeatureConfig) GetUnsupportedFeatureMatrixOk() ([]CapabilityU // HasUnsupportedFeatureMatrix returns a boolean if a field has been set. func (o *CapabilityFeatureConfig) HasUnsupportedFeatureMatrix() bool { - if o != nil && IsNil(o.UnsupportedFeatureMatrix) { + if o != nil && !IsNil(o.UnsupportedFeatureMatrix) { return true } @@ -402,7 +412,13 @@ func (o CapabilityFeatureConfig) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.FeatureName) { toSerialize["FeatureName"] = o.FeatureName @@ -445,6 +461,13 @@ func (o *CapabilityFeatureConfig) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -454,11 +477,23 @@ func (o *CapabilityFeatureConfig) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type CapabilityFeatureConfigWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_capability_fex_capability_def.go b/model_capability_fex_capability_def.go index 67c62311ae..00ac84d847 100644 --- a/model_capability_fex_capability_def.go +++ b/model_capability_fex_capability_def.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -82,6 +82,11 @@ func (o *CapabilityFexCapabilityDef) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "capability.FexCapabilityDef" of the ClassId field. +func (o *CapabilityFexCapabilityDef) GetDefaultClassId() interface{} { + return "capability.FexCapabilityDef" +} + // GetObjectType returns the ObjectType field value func (o *CapabilityFexCapabilityDef) GetObjectType() string { if o == nil { @@ -106,6 +111,11 @@ func (o *CapabilityFexCapabilityDef) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "capability.FexCapabilityDef" of the ObjectType field. +func (o *CapabilityFexCapabilityDef) GetDefaultObjectType() interface{} { + return "capability.FexCapabilityDef" +} + // GetFecConfigOnHifPortSupported returns the FecConfigOnHifPortSupported field value if set, zero value otherwise. func (o *CapabilityFexCapabilityDef) GetFecConfigOnHifPortSupported() bool { if o == nil || IsNil(o.FecConfigOnHifPortSupported) { @@ -156,7 +166,13 @@ func (o CapabilityFexCapabilityDef) ToMap() (map[string]interface{}, error) { if errCapabilityCapability != nil { return map[string]interface{}{}, errCapabilityCapability } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.FecConfigOnHifPortSupported) { toSerialize["FecConfigOnHifPortSupported"] = o.FecConfigOnHifPortSupported @@ -178,6 +194,13 @@ func (o *CapabilityFexCapabilityDef) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -187,11 +210,23 @@ func (o *CapabilityFexCapabilityDef) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type CapabilityFexCapabilityDefWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_capability_fex_capability_def_list.go b/model_capability_fex_capability_def_list.go index c50bba7b97..e551dd3e03 100644 --- a/model_capability_fex_capability_def_list.go +++ b/model_capability_fex_capability_def_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *CapabilityFexCapabilityDefList) GetResultsOk() ([]CapabilityFexCapabili // HasResults returns a boolean if a field has been set. func (o *CapabilityFexCapabilityDefList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *CapabilityFexCapabilityDefList) UnmarshalJSON(data []byte) (err error) "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *CapabilityFexCapabilityDefList) UnmarshalJSON(data []byte) (err error) } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type CapabilityFexCapabilityDefListWithoutEmbeddedStruct struct { // The total number of 'capability.FexCapabilityDef' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_capability_fex_capability_def_response.go b/model_capability_fex_capability_def_response.go index d95265c5c4..116c1b16b4 100644 --- a/model_capability_fex_capability_def_response.go +++ b/model_capability_fex_capability_def_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_capability_fex_descriptor.go b/model_capability_fex_descriptor.go index 1bbe7efe0e..aaf9de5955 100644 --- a/model_capability_fex_descriptor.go +++ b/model_capability_fex_descriptor.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -82,6 +82,11 @@ func (o *CapabilityFexDescriptor) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "capability.FexDescriptor" of the ClassId field. +func (o *CapabilityFexDescriptor) GetDefaultClassId() interface{} { + return "capability.FexDescriptor" +} + // GetObjectType returns the ObjectType field value func (o *CapabilityFexDescriptor) GetObjectType() string { if o == nil { @@ -106,6 +111,11 @@ func (o *CapabilityFexDescriptor) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "capability.FexDescriptor" of the ObjectType field. +func (o *CapabilityFexDescriptor) GetDefaultObjectType() interface{} { + return "capability.FexDescriptor" +} + // GetRevision returns the Revision field value if set, zero value otherwise. func (o *CapabilityFexDescriptor) GetRevision() string { if o == nil || IsNil(o.Revision) { @@ -156,7 +166,13 @@ func (o CapabilityFexDescriptor) ToMap() (map[string]interface{}, error) { if errCapabilityHardwareDescriptor != nil { return map[string]interface{}{}, errCapabilityHardwareDescriptor } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Revision) { toSerialize["Revision"] = o.Revision @@ -178,6 +194,13 @@ func (o *CapabilityFexDescriptor) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -187,11 +210,23 @@ func (o *CapabilityFexDescriptor) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type CapabilityFexDescriptorWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_capability_fex_descriptor_list.go b/model_capability_fex_descriptor_list.go index c238052582..e55207c404 100644 --- a/model_capability_fex_descriptor_list.go +++ b/model_capability_fex_descriptor_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *CapabilityFexDescriptorList) GetResultsOk() ([]CapabilityFexDescriptor, // HasResults returns a boolean if a field has been set. func (o *CapabilityFexDescriptorList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *CapabilityFexDescriptorList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *CapabilityFexDescriptorList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type CapabilityFexDescriptorListWithoutEmbeddedStruct struct { // The total number of 'capability.FexDescriptor' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_capability_fex_descriptor_response.go b/model_capability_fex_descriptor_response.go index c0402a4b66..49135bc1e8 100644 --- a/model_capability_fex_descriptor_response.go +++ b/model_capability_fex_descriptor_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_capability_fex_manufacturing_def.go b/model_capability_fex_manufacturing_def.go index 4fe0b83d52..8201700a53 100644 --- a/model_capability_fex_manufacturing_def.go +++ b/model_capability_fex_manufacturing_def.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -94,6 +94,11 @@ func (o *CapabilityFexManufacturingDef) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "capability.FexManufacturingDef" of the ClassId field. +func (o *CapabilityFexManufacturingDef) GetDefaultClassId() interface{} { + return "capability.FexManufacturingDef" +} + // GetObjectType returns the ObjectType field value func (o *CapabilityFexManufacturingDef) GetObjectType() string { if o == nil { @@ -118,6 +123,11 @@ func (o *CapabilityFexManufacturingDef) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "capability.FexManufacturingDef" of the ObjectType field. +func (o *CapabilityFexManufacturingDef) GetDefaultObjectType() interface{} { + return "capability.FexManufacturingDef" +} + // GetCaption returns the Caption field value if set, zero value otherwise. func (o *CapabilityFexManufacturingDef) GetCaption() string { if o == nil || IsNil(o.Caption) { @@ -360,7 +370,13 @@ func (o CapabilityFexManufacturingDef) ToMap() (map[string]interface{}, error) { if errCapabilityCapability != nil { return map[string]interface{}{}, errCapabilityCapability } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Caption) { toSerialize["Caption"] = o.Caption @@ -400,6 +416,13 @@ func (o *CapabilityFexManufacturingDef) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -409,11 +432,23 @@ func (o *CapabilityFexManufacturingDef) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type CapabilityFexManufacturingDefWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_capability_fex_manufacturing_def_list.go b/model_capability_fex_manufacturing_def_list.go index 2d9f9fe034..424feb3225 100644 --- a/model_capability_fex_manufacturing_def_list.go +++ b/model_capability_fex_manufacturing_def_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *CapabilityFexManufacturingDefList) GetResultsOk() ([]CapabilityFexManuf // HasResults returns a boolean if a field has been set. func (o *CapabilityFexManufacturingDefList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *CapabilityFexManufacturingDefList) UnmarshalJSON(data []byte) (err erro "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *CapabilityFexManufacturingDefList) UnmarshalJSON(data []byte) (err erro } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type CapabilityFexManufacturingDefListWithoutEmbeddedStruct struct { // The total number of 'capability.FexManufacturingDef' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_capability_fex_manufacturing_def_response.go b/model_capability_fex_manufacturing_def_response.go index 082fca0d32..3ebbe77f94 100644 --- a/model_capability_fex_manufacturing_def_response.go +++ b/model_capability_fex_manufacturing_def_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_capability_gpu_endpoint_descriptor.go b/model_capability_gpu_endpoint_descriptor.go index 0435613ad0..029c6ee3c5 100644 --- a/model_capability_gpu_endpoint_descriptor.go +++ b/model_capability_gpu_endpoint_descriptor.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -91,6 +91,11 @@ func (o *CapabilityGpuEndpointDescriptor) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "capability.GpuEndpointDescriptor" of the ClassId field. +func (o *CapabilityGpuEndpointDescriptor) GetDefaultClassId() interface{} { + return "capability.GpuEndpointDescriptor" +} + // GetObjectType returns the ObjectType field value func (o *CapabilityGpuEndpointDescriptor) GetObjectType() string { if o == nil { @@ -115,6 +120,11 @@ func (o *CapabilityGpuEndpointDescriptor) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "capability.GpuEndpointDescriptor" of the ObjectType field. +func (o *CapabilityGpuEndpointDescriptor) GetDefaultObjectType() interface{} { + return "capability.GpuEndpointDescriptor" +} + // GetDescription returns the Description field value if set, zero value otherwise. func (o *CapabilityGpuEndpointDescriptor) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -264,7 +274,7 @@ func (o *CapabilityGpuEndpointDescriptor) GetSupportedPlatformsPidsOk() ([]strin // HasSupportedPlatformsPids returns a boolean if a field has been set. func (o *CapabilityGpuEndpointDescriptor) HasSupportedPlatformsPids() bool { - if o != nil && IsNil(o.SupportedPlatformsPids) { + if o != nil && !IsNil(o.SupportedPlatformsPids) { return true } @@ -326,7 +336,13 @@ func (o CapabilityGpuEndpointDescriptor) ToMap() (map[string]interface{}, error) if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Description) { toSerialize["Description"] = o.Description @@ -363,6 +379,13 @@ func (o *CapabilityGpuEndpointDescriptor) UnmarshalJSON(data []byte) (err error) "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -372,11 +395,23 @@ func (o *CapabilityGpuEndpointDescriptor) UnmarshalJSON(data []byte) (err error) } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type CapabilityGpuEndpointDescriptorWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_capability_gpu_endpoint_descriptor_list.go b/model_capability_gpu_endpoint_descriptor_list.go index 039223d3ff..945f4b3cdc 100644 --- a/model_capability_gpu_endpoint_descriptor_list.go +++ b/model_capability_gpu_endpoint_descriptor_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *CapabilityGpuEndpointDescriptorList) GetResultsOk() ([]CapabilityGpuEnd // HasResults returns a boolean if a field has been set. func (o *CapabilityGpuEndpointDescriptorList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *CapabilityGpuEndpointDescriptorList) UnmarshalJSON(data []byte) (err er "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *CapabilityGpuEndpointDescriptorList) UnmarshalJSON(data []byte) (err er } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type CapabilityGpuEndpointDescriptorListWithoutEmbeddedStruct struct { // The total number of 'capability.GpuEndpointDescriptor' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_capability_gpu_endpoint_descriptor_response.go b/model_capability_gpu_endpoint_descriptor_response.go index a57565e80a..3d78376b1b 100644 --- a/model_capability_gpu_endpoint_descriptor_response.go +++ b/model_capability_gpu_endpoint_descriptor_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_capability_hardware_descriptor.go b/model_capability_hardware_descriptor.go index 8c17c71824..a003e6c556 100644 --- a/model_capability_hardware_descriptor.go +++ b/model_capability_hardware_descriptor.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -83,6 +83,10 @@ func (o *CapabilityHardwareDescriptor) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -92,11 +96,23 @@ func (o *CapabilityHardwareDescriptor) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type CapabilityHardwareDescriptorWithoutEmbeddedStruct struct { } diff --git a/model_capability_hsu_iso_file_support_meta.go b/model_capability_hsu_iso_file_support_meta.go index ebb07b5611..b44cd96ed3 100644 --- a/model_capability_hsu_iso_file_support_meta.go +++ b/model_capability_hsu_iso_file_support_meta.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -87,6 +87,11 @@ func (o *CapabilityHsuIsoFileSupportMeta) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "capability.HsuIsoFileSupportMeta" of the ClassId field. +func (o *CapabilityHsuIsoFileSupportMeta) GetDefaultClassId() interface{} { + return "capability.HsuIsoFileSupportMeta" +} + // GetObjectType returns the ObjectType field value func (o *CapabilityHsuIsoFileSupportMeta) GetObjectType() string { if o == nil { @@ -111,6 +116,11 @@ func (o *CapabilityHsuIsoFileSupportMeta) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "capability.HsuIsoFileSupportMeta" of the ObjectType field. +func (o *CapabilityHsuIsoFileSupportMeta) GetDefaultObjectType() interface{} { + return "capability.HsuIsoFileSupportMeta" +} + // GetDefaultFileName returns the DefaultFileName field value if set, zero value otherwise. func (o *CapabilityHsuIsoFileSupportMeta) GetDefaultFileName() string { if o == nil || IsNil(o.DefaultFileName) { @@ -196,7 +206,7 @@ func (o *CapabilityHsuIsoFileSupportMeta) GetModelSpecificConstraintOk() ([]Capa // HasModelSpecificConstraint returns a boolean if a field has been set. func (o *CapabilityHsuIsoFileSupportMeta) HasModelSpecificConstraint() bool { - if o != nil && IsNil(o.ModelSpecificConstraint) { + if o != nil && !IsNil(o.ModelSpecificConstraint) { return true } @@ -258,7 +268,13 @@ func (o CapabilityHsuIsoFileSupportMeta) ToMap() (map[string]interface{}, error) if errCapabilityCapability != nil { return map[string]interface{}{}, errCapabilityCapability } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.DefaultFileName) { toSerialize["DefaultFileName"] = o.DefaultFileName @@ -289,6 +305,13 @@ func (o *CapabilityHsuIsoFileSupportMeta) UnmarshalJSON(data []byte) (err error) "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -298,11 +321,23 @@ func (o *CapabilityHsuIsoFileSupportMeta) UnmarshalJSON(data []byte) (err error) } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type CapabilityHsuIsoFileSupportMetaWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_capability_hsu_iso_file_support_meta_list.go b/model_capability_hsu_iso_file_support_meta_list.go index e883e16aeb..ed1c406778 100644 --- a/model_capability_hsu_iso_file_support_meta_list.go +++ b/model_capability_hsu_iso_file_support_meta_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *CapabilityHsuIsoFileSupportMetaList) GetResultsOk() ([]CapabilityHsuIso // HasResults returns a boolean if a field has been set. func (o *CapabilityHsuIsoFileSupportMetaList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *CapabilityHsuIsoFileSupportMetaList) UnmarshalJSON(data []byte) (err er "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *CapabilityHsuIsoFileSupportMetaList) UnmarshalJSON(data []byte) (err er } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type CapabilityHsuIsoFileSupportMetaListWithoutEmbeddedStruct struct { // The total number of 'capability.HsuIsoFileSupportMeta' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_capability_hsu_iso_file_support_meta_response.go b/model_capability_hsu_iso_file_support_meta_response.go index 8fd8632b36..55f6ee2a2c 100644 --- a/model_capability_hsu_iso_file_support_meta_response.go +++ b/model_capability_hsu_iso_file_support_meta_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_capability_hsu_iso_model_specific_constraint.go b/model_capability_hsu_iso_model_specific_constraint.go index 2ae8c1a02e..528bd005a1 100644 --- a/model_capability_hsu_iso_model_specific_constraint.go +++ b/model_capability_hsu_iso_model_specific_constraint.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -86,6 +86,11 @@ func (o *CapabilityHsuIsoModelSpecificConstraint) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "capability.HsuIsoModelSpecificConstraint" of the ClassId field. +func (o *CapabilityHsuIsoModelSpecificConstraint) GetDefaultClassId() interface{} { + return "capability.HsuIsoModelSpecificConstraint" +} + // GetObjectType returns the ObjectType field value func (o *CapabilityHsuIsoModelSpecificConstraint) GetObjectType() string { if o == nil { @@ -110,6 +115,11 @@ func (o *CapabilityHsuIsoModelSpecificConstraint) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "capability.HsuIsoModelSpecificConstraint" of the ObjectType field. +func (o *CapabilityHsuIsoModelSpecificConstraint) GetDefaultObjectType() interface{} { + return "capability.HsuIsoModelSpecificConstraint" +} + // GetFileName returns the FileName field value if set, zero value otherwise. func (o *CapabilityHsuIsoModelSpecificConstraint) GetFileName() string { if o == nil || IsNil(o.FileName) { @@ -224,7 +234,13 @@ func (o CapabilityHsuIsoModelSpecificConstraint) ToMap() (map[string]interface{} if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.FileName) { toSerialize["FileName"] = o.FileName @@ -252,6 +268,13 @@ func (o *CapabilityHsuIsoModelSpecificConstraint) UnmarshalJSON(data []byte) (er "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -261,11 +284,23 @@ func (o *CapabilityHsuIsoModelSpecificConstraint) UnmarshalJSON(data []byte) (er } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type CapabilityHsuIsoModelSpecificConstraintWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_capability_io_card_capability_def.go b/model_capability_io_card_capability_def.go index 9c2ad5f004..206f9cfa6b 100644 --- a/model_capability_io_card_capability_def.go +++ b/model_capability_io_card_capability_def.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -82,6 +82,11 @@ func (o *CapabilityIoCardCapabilityDef) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "capability.IoCardCapabilityDef" of the ClassId field. +func (o *CapabilityIoCardCapabilityDef) GetDefaultClassId() interface{} { + return "capability.IoCardCapabilityDef" +} + // GetObjectType returns the ObjectType field value func (o *CapabilityIoCardCapabilityDef) GetObjectType() string { if o == nil { @@ -106,6 +111,11 @@ func (o *CapabilityIoCardCapabilityDef) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "capability.IoCardCapabilityDef" of the ObjectType field. +func (o *CapabilityIoCardCapabilityDef) GetDefaultObjectType() interface{} { + return "capability.IoCardCapabilityDef" +} + // GetDcSupported returns the DcSupported field value if set, zero value otherwise. func (o *CapabilityIoCardCapabilityDef) GetDcSupported() bool { if o == nil || IsNil(o.DcSupported) { @@ -156,7 +166,13 @@ func (o CapabilityIoCardCapabilityDef) ToMap() (map[string]interface{}, error) { if errCapabilityCapability != nil { return map[string]interface{}{}, errCapabilityCapability } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.DcSupported) { toSerialize["DcSupported"] = o.DcSupported @@ -178,6 +194,13 @@ func (o *CapabilityIoCardCapabilityDef) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -187,11 +210,23 @@ func (o *CapabilityIoCardCapabilityDef) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type CapabilityIoCardCapabilityDefWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_capability_io_card_capability_def_list.go b/model_capability_io_card_capability_def_list.go index 46307c6106..96c3b7ad8c 100644 --- a/model_capability_io_card_capability_def_list.go +++ b/model_capability_io_card_capability_def_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *CapabilityIoCardCapabilityDefList) GetResultsOk() ([]CapabilityIoCardCa // HasResults returns a boolean if a field has been set. func (o *CapabilityIoCardCapabilityDefList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *CapabilityIoCardCapabilityDefList) UnmarshalJSON(data []byte) (err erro "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *CapabilityIoCardCapabilityDefList) UnmarshalJSON(data []byte) (err erro } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type CapabilityIoCardCapabilityDefListWithoutEmbeddedStruct struct { // The total number of 'capability.IoCardCapabilityDef' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_capability_io_card_capability_def_response.go b/model_capability_io_card_capability_def_response.go index 911a0f04de..183eb52cb2 100644 --- a/model_capability_io_card_capability_def_response.go +++ b/model_capability_io_card_capability_def_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_capability_io_card_descriptor.go b/model_capability_io_card_descriptor.go index 710850f2e9..7d2f6d50ee 100644 --- a/model_capability_io_card_descriptor.go +++ b/model_capability_io_card_descriptor.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -107,6 +107,11 @@ func (o *CapabilityIoCardDescriptor) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "capability.IoCardDescriptor" of the ClassId field. +func (o *CapabilityIoCardDescriptor) GetDefaultClassId() interface{} { + return "capability.IoCardDescriptor" +} + // GetObjectType returns the ObjectType field value func (o *CapabilityIoCardDescriptor) GetObjectType() string { if o == nil { @@ -131,6 +136,11 @@ func (o *CapabilityIoCardDescriptor) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "capability.IoCardDescriptor" of the ObjectType field. +func (o *CapabilityIoCardDescriptor) GetDefaultObjectType() interface{} { + return "capability.IoCardDescriptor" +} + // GetBifPortNum returns the BifPortNum field value if set, zero value otherwise. func (o *CapabilityIoCardDescriptor) GetBifPortNum() int64 { if o == nil || IsNil(o.BifPortNum) { @@ -376,7 +386,7 @@ func (o *CapabilityIoCardDescriptor) GetUnsupportedPoliciesOk() ([]string, bool) // HasUnsupportedPolicies returns a boolean if a field has been set. func (o *CapabilityIoCardDescriptor) HasUnsupportedPolicies() bool { - if o != nil && IsNil(o.UnsupportedPolicies) { + if o != nil && !IsNil(o.UnsupportedPolicies) { return true } @@ -406,7 +416,13 @@ func (o CapabilityIoCardDescriptor) ToMap() (map[string]interface{}, error) { if errCapabilityHardwareDescriptor != nil { return map[string]interface{}{}, errCapabilityHardwareDescriptor } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.BifPortNum) { toSerialize["BifPortNum"] = o.BifPortNum @@ -449,6 +465,13 @@ func (o *CapabilityIoCardDescriptor) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -458,11 +481,23 @@ func (o *CapabilityIoCardDescriptor) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type CapabilityIoCardDescriptorWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_capability_io_card_descriptor_list.go b/model_capability_io_card_descriptor_list.go index abb99de9a6..681515acdd 100644 --- a/model_capability_io_card_descriptor_list.go +++ b/model_capability_io_card_descriptor_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *CapabilityIoCardDescriptorList) GetResultsOk() ([]CapabilityIoCardDescr // HasResults returns a boolean if a field has been set. func (o *CapabilityIoCardDescriptorList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *CapabilityIoCardDescriptorList) UnmarshalJSON(data []byte) (err error) "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *CapabilityIoCardDescriptorList) UnmarshalJSON(data []byte) (err error) } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type CapabilityIoCardDescriptorListWithoutEmbeddedStruct struct { // The total number of 'capability.IoCardDescriptor' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_capability_io_card_descriptor_response.go b/model_capability_io_card_descriptor_response.go index 9ccc593c9a..2148d74c9f 100644 --- a/model_capability_io_card_descriptor_response.go +++ b/model_capability_io_card_descriptor_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_capability_io_card_manufacturing_def.go b/model_capability_io_card_manufacturing_def.go index 556472bd45..50680dd7d2 100644 --- a/model_capability_io_card_manufacturing_def.go +++ b/model_capability_io_card_manufacturing_def.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -92,6 +92,11 @@ func (o *CapabilityIoCardManufacturingDef) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "capability.IoCardManufacturingDef" of the ClassId field. +func (o *CapabilityIoCardManufacturingDef) GetDefaultClassId() interface{} { + return "capability.IoCardManufacturingDef" +} + // GetObjectType returns the ObjectType field value func (o *CapabilityIoCardManufacturingDef) GetObjectType() string { if o == nil { @@ -116,6 +121,11 @@ func (o *CapabilityIoCardManufacturingDef) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "capability.IoCardManufacturingDef" of the ObjectType field. +func (o *CapabilityIoCardManufacturingDef) GetDefaultObjectType() interface{} { + return "capability.IoCardManufacturingDef" +} + // GetCaption returns the Caption field value if set, zero value otherwise. func (o *CapabilityIoCardManufacturingDef) GetCaption() string { if o == nil || IsNil(o.Caption) { @@ -326,7 +336,13 @@ func (o CapabilityIoCardManufacturingDef) ToMap() (map[string]interface{}, error if errCapabilityCapability != nil { return map[string]interface{}{}, errCapabilityCapability } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Caption) { toSerialize["Caption"] = o.Caption @@ -363,6 +379,13 @@ func (o *CapabilityIoCardManufacturingDef) UnmarshalJSON(data []byte) (err error "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -372,11 +395,23 @@ func (o *CapabilityIoCardManufacturingDef) UnmarshalJSON(data []byte) (err error } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type CapabilityIoCardManufacturingDefWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_capability_io_card_manufacturing_def_list.go b/model_capability_io_card_manufacturing_def_list.go index 341220aa6f..a660e87078 100644 --- a/model_capability_io_card_manufacturing_def_list.go +++ b/model_capability_io_card_manufacturing_def_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *CapabilityIoCardManufacturingDefList) GetResultsOk() ([]CapabilityIoCar // HasResults returns a boolean if a field has been set. func (o *CapabilityIoCardManufacturingDefList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *CapabilityIoCardManufacturingDefList) UnmarshalJSON(data []byte) (err e "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *CapabilityIoCardManufacturingDefList) UnmarshalJSON(data []byte) (err e } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type CapabilityIoCardManufacturingDefListWithoutEmbeddedStruct struct { // The total number of 'capability.IoCardManufacturingDef' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_capability_io_card_manufacturing_def_response.go b/model_capability_io_card_manufacturing_def_response.go index 90cf50b2fa..f027f31ac4 100644 --- a/model_capability_io_card_manufacturing_def_response.go +++ b/model_capability_io_card_manufacturing_def_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_capability_iom_upgrade_support_meta.go b/model_capability_iom_upgrade_support_meta.go index 6badf1839b..d11a6ca166 100644 --- a/model_capability_iom_upgrade_support_meta.go +++ b/model_capability_iom_upgrade_support_meta.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -87,6 +87,11 @@ func (o *CapabilityIomUpgradeSupportMeta) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "capability.IomUpgradeSupportMeta" of the ClassId field. +func (o *CapabilityIomUpgradeSupportMeta) GetDefaultClassId() interface{} { + return "capability.IomUpgradeSupportMeta" +} + // GetObjectType returns the ObjectType field value func (o *CapabilityIomUpgradeSupportMeta) GetObjectType() string { if o == nil { @@ -111,6 +116,11 @@ func (o *CapabilityIomUpgradeSupportMeta) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "capability.IomUpgradeSupportMeta" of the ObjectType field. +func (o *CapabilityIomUpgradeSupportMeta) GetDefaultObjectType() interface{} { + return "capability.IomUpgradeSupportMeta" +} + // GetDescription returns the Description field value if set, zero value otherwise. func (o *CapabilityIomUpgradeSupportMeta) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -228,7 +238,7 @@ func (o *CapabilityIomUpgradeSupportMeta) GetSupportedModelsOk() ([]string, bool // HasSupportedModels returns a boolean if a field has been set. func (o *CapabilityIomUpgradeSupportMeta) HasSupportedModels() bool { - if o != nil && IsNil(o.SupportedModels) { + if o != nil && !IsNil(o.SupportedModels) { return true } @@ -258,7 +268,13 @@ func (o CapabilityIomUpgradeSupportMeta) ToMap() (map[string]interface{}, error) if errCapabilityCapability != nil { return map[string]interface{}{}, errCapabilityCapability } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Description) { toSerialize["Description"] = o.Description @@ -289,6 +305,13 @@ func (o *CapabilityIomUpgradeSupportMeta) UnmarshalJSON(data []byte) (err error) "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -298,11 +321,23 @@ func (o *CapabilityIomUpgradeSupportMeta) UnmarshalJSON(data []byte) (err error) } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type CapabilityIomUpgradeSupportMetaWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_capability_iom_upgrade_support_meta_list.go b/model_capability_iom_upgrade_support_meta_list.go index 0e06c36e5a..ac7c38580f 100644 --- a/model_capability_iom_upgrade_support_meta_list.go +++ b/model_capability_iom_upgrade_support_meta_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *CapabilityIomUpgradeSupportMetaList) GetResultsOk() ([]CapabilityIomUpg // HasResults returns a boolean if a field has been set. func (o *CapabilityIomUpgradeSupportMetaList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *CapabilityIomUpgradeSupportMetaList) UnmarshalJSON(data []byte) (err er "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *CapabilityIomUpgradeSupportMetaList) UnmarshalJSON(data []byte) (err er } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type CapabilityIomUpgradeSupportMetaListWithoutEmbeddedStruct struct { // The total number of 'capability.IomUpgradeSupportMeta' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_capability_iom_upgrade_support_meta_response.go b/model_capability_iom_upgrade_support_meta_response.go index 498436b1e7..20f7c93de4 100644 --- a/model_capability_iom_upgrade_support_meta_response.go +++ b/model_capability_iom_upgrade_support_meta_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_capability_port_group_aggregation_def.go b/model_capability_port_group_aggregation_def.go index 2576277262..c48a952288 100644 --- a/model_capability_port_group_aggregation_def.go +++ b/model_capability_port_group_aggregation_def.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -86,6 +86,11 @@ func (o *CapabilityPortGroupAggregationDef) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "capability.PortGroupAggregationDef" of the ClassId field. +func (o *CapabilityPortGroupAggregationDef) GetDefaultClassId() interface{} { + return "capability.PortGroupAggregationDef" +} + // GetObjectType returns the ObjectType field value func (o *CapabilityPortGroupAggregationDef) GetObjectType() string { if o == nil { @@ -110,6 +115,11 @@ func (o *CapabilityPortGroupAggregationDef) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "capability.PortGroupAggregationDef" of the ObjectType field. +func (o *CapabilityPortGroupAggregationDef) GetDefaultObjectType() interface{} { + return "capability.PortGroupAggregationDef" +} + // GetAggregationCap returns the AggregationCap field value if set, zero value otherwise. func (o *CapabilityPortGroupAggregationDef) GetAggregationCap() string { if o == nil || IsNil(o.AggregationCap) { @@ -224,7 +234,13 @@ func (o CapabilityPortGroupAggregationDef) ToMap() (map[string]interface{}, erro if errCapabilityCapability != nil { return map[string]interface{}{}, errCapabilityCapability } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.AggregationCap) { toSerialize["AggregationCap"] = o.AggregationCap @@ -252,6 +268,13 @@ func (o *CapabilityPortGroupAggregationDef) UnmarshalJSON(data []byte) (err erro "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -261,11 +284,23 @@ func (o *CapabilityPortGroupAggregationDef) UnmarshalJSON(data []byte) (err erro } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type CapabilityPortGroupAggregationDefWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_capability_port_group_aggregation_def_list.go b/model_capability_port_group_aggregation_def_list.go index f23ea17e11..a00969292f 100644 --- a/model_capability_port_group_aggregation_def_list.go +++ b/model_capability_port_group_aggregation_def_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *CapabilityPortGroupAggregationDefList) GetResultsOk() ([]CapabilityPort // HasResults returns a boolean if a field has been set. func (o *CapabilityPortGroupAggregationDefList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *CapabilityPortGroupAggregationDefList) UnmarshalJSON(data []byte) (err "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *CapabilityPortGroupAggregationDefList) UnmarshalJSON(data []byte) (err } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type CapabilityPortGroupAggregationDefListWithoutEmbeddedStruct struct { // The total number of 'capability.PortGroupAggregationDef' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_capability_port_group_aggregation_def_response.go b/model_capability_port_group_aggregation_def_response.go index b3bfafad23..89f4e58611 100644 --- a/model_capability_port_group_aggregation_def_response.go +++ b/model_capability_port_group_aggregation_def_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_capability_port_range.go b/model_capability_port_range.go index e25cb687a4..2342793e80 100644 --- a/model_capability_port_range.go +++ b/model_capability_port_range.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -88,6 +88,11 @@ func (o *CapabilityPortRange) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "capability.PortRange" of the ClassId field. +func (o *CapabilityPortRange) GetDefaultClassId() interface{} { + return "capability.PortRange" +} + // GetObjectType returns the ObjectType field value func (o *CapabilityPortRange) GetObjectType() string { if o == nil { @@ -112,6 +117,11 @@ func (o *CapabilityPortRange) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "capability.PortRange" of the ObjectType field. +func (o *CapabilityPortRange) GetDefaultObjectType() interface{} { + return "capability.PortRange" +} + // GetEndPortId returns the EndPortId field value if set, zero value otherwise. func (o *CapabilityPortRange) GetEndPortId() int64 { if o == nil || IsNil(o.EndPortId) { @@ -258,7 +268,13 @@ func (o CapabilityPortRange) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.EndPortId) { toSerialize["EndPortId"] = o.EndPortId @@ -289,6 +305,13 @@ func (o *CapabilityPortRange) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -298,11 +321,23 @@ func (o *CapabilityPortRange) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type CapabilityPortRangeWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_capability_processor_unit_update_constraint_meta.go b/model_capability_processor_unit_update_constraint_meta.go index 5a4f0bf692..4c9f51650f 100644 --- a/model_capability_processor_unit_update_constraint_meta.go +++ b/model_capability_processor_unit_update_constraint_meta.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -83,6 +83,10 @@ func (o *CapabilityProcessorUnitUpdateConstraintMeta) UnmarshalJSON(data []byte) "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -92,11 +96,23 @@ func (o *CapabilityProcessorUnitUpdateConstraintMeta) UnmarshalJSON(data []byte) } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type CapabilityProcessorUnitUpdateConstraintMetaWithoutEmbeddedStruct struct { } diff --git a/model_capability_processor_unit_update_constraint_meta_list.go b/model_capability_processor_unit_update_constraint_meta_list.go index 3c4ec2878c..4abed0f783 100644 --- a/model_capability_processor_unit_update_constraint_meta_list.go +++ b/model_capability_processor_unit_update_constraint_meta_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *CapabilityProcessorUnitUpdateConstraintMetaList) GetResultsOk() ([]Capa // HasResults returns a boolean if a field has been set. func (o *CapabilityProcessorUnitUpdateConstraintMetaList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *CapabilityProcessorUnitUpdateConstraintMetaList) UnmarshalJSON(data []b "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *CapabilityProcessorUnitUpdateConstraintMetaList) UnmarshalJSON(data []b } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type CapabilityProcessorUnitUpdateConstraintMetaListWithoutEmbeddedStruct struct { // The total number of 'capability.ProcessorUnitUpdateConstraintMeta' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_capability_processor_unit_update_constraint_meta_response.go b/model_capability_processor_unit_update_constraint_meta_response.go index eea89699ce..50fd279a70 100644 --- a/model_capability_processor_unit_update_constraint_meta_response.go +++ b/model_capability_processor_unit_update_constraint_meta_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_capability_psu_descriptor.go b/model_capability_psu_descriptor.go index 9b0ef0f756..6746d99246 100644 --- a/model_capability_psu_descriptor.go +++ b/model_capability_psu_descriptor.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -82,6 +82,11 @@ func (o *CapabilityPsuDescriptor) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "capability.PsuDescriptor" of the ClassId field. +func (o *CapabilityPsuDescriptor) GetDefaultClassId() interface{} { + return "capability.PsuDescriptor" +} + // GetObjectType returns the ObjectType field value func (o *CapabilityPsuDescriptor) GetObjectType() string { if o == nil { @@ -106,6 +111,11 @@ func (o *CapabilityPsuDescriptor) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "capability.PsuDescriptor" of the ObjectType field. +func (o *CapabilityPsuDescriptor) GetDefaultObjectType() interface{} { + return "capability.PsuDescriptor" +} + // GetRevision returns the Revision field value if set, zero value otherwise. func (o *CapabilityPsuDescriptor) GetRevision() string { if o == nil || IsNil(o.Revision) { @@ -156,7 +166,13 @@ func (o CapabilityPsuDescriptor) ToMap() (map[string]interface{}, error) { if errCapabilityHardwareDescriptor != nil { return map[string]interface{}{}, errCapabilityHardwareDescriptor } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Revision) { toSerialize["Revision"] = o.Revision @@ -178,6 +194,13 @@ func (o *CapabilityPsuDescriptor) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -187,11 +210,23 @@ func (o *CapabilityPsuDescriptor) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type CapabilityPsuDescriptorWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_capability_psu_descriptor_list.go b/model_capability_psu_descriptor_list.go index 89f532568a..ad008ad557 100644 --- a/model_capability_psu_descriptor_list.go +++ b/model_capability_psu_descriptor_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *CapabilityPsuDescriptorList) GetResultsOk() ([]CapabilityPsuDescriptor, // HasResults returns a boolean if a field has been set. func (o *CapabilityPsuDescriptorList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *CapabilityPsuDescriptorList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *CapabilityPsuDescriptorList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type CapabilityPsuDescriptorListWithoutEmbeddedStruct struct { // The total number of 'capability.PsuDescriptor' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_capability_psu_descriptor_response.go b/model_capability_psu_descriptor_response.go index 4c50169119..c4e0f10389 100644 --- a/model_capability_psu_descriptor_response.go +++ b/model_capability_psu_descriptor_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_capability_psu_manufacturing_def.go b/model_capability_psu_manufacturing_def.go index ade18d7104..7597f30167 100644 --- a/model_capability_psu_manufacturing_def.go +++ b/model_capability_psu_manufacturing_def.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -92,6 +92,11 @@ func (o *CapabilityPsuManufacturingDef) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "capability.PsuManufacturingDef" of the ClassId field. +func (o *CapabilityPsuManufacturingDef) GetDefaultClassId() interface{} { + return "capability.PsuManufacturingDef" +} + // GetObjectType returns the ObjectType field value func (o *CapabilityPsuManufacturingDef) GetObjectType() string { if o == nil { @@ -116,6 +121,11 @@ func (o *CapabilityPsuManufacturingDef) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "capability.PsuManufacturingDef" of the ObjectType field. +func (o *CapabilityPsuManufacturingDef) GetDefaultObjectType() interface{} { + return "capability.PsuManufacturingDef" +} + // GetCaption returns the Caption field value if set, zero value otherwise. func (o *CapabilityPsuManufacturingDef) GetCaption() string { if o == nil || IsNil(o.Caption) { @@ -326,7 +336,13 @@ func (o CapabilityPsuManufacturingDef) ToMap() (map[string]interface{}, error) { if errCapabilityCapability != nil { return map[string]interface{}{}, errCapabilityCapability } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Caption) { toSerialize["Caption"] = o.Caption @@ -363,6 +379,13 @@ func (o *CapabilityPsuManufacturingDef) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -372,11 +395,23 @@ func (o *CapabilityPsuManufacturingDef) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type CapabilityPsuManufacturingDefWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_capability_psu_manufacturing_def_list.go b/model_capability_psu_manufacturing_def_list.go index 65e84df48a..7f07eccbc6 100644 --- a/model_capability_psu_manufacturing_def_list.go +++ b/model_capability_psu_manufacturing_def_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *CapabilityPsuManufacturingDefList) GetResultsOk() ([]CapabilityPsuManuf // HasResults returns a boolean if a field has been set. func (o *CapabilityPsuManufacturingDefList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *CapabilityPsuManufacturingDefList) UnmarshalJSON(data []byte) (err erro "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *CapabilityPsuManufacturingDefList) UnmarshalJSON(data []byte) (err erro } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type CapabilityPsuManufacturingDefListWithoutEmbeddedStruct struct { // The total number of 'capability.PsuManufacturingDef' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_capability_psu_manufacturing_def_response.go b/model_capability_psu_manufacturing_def_response.go index 3b0819b59c..69b61823f8 100644 --- a/model_capability_psu_manufacturing_def_response.go +++ b/model_capability_psu_manufacturing_def_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_capability_server_actions_meta.go b/model_capability_server_actions_meta.go index 4015bc1dae..a62088606a 100644 --- a/model_capability_server_actions_meta.go +++ b/model_capability_server_actions_meta.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -86,6 +86,11 @@ func (o *CapabilityServerActionsMeta) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "capability.ServerActionsMeta" of the ClassId field. +func (o *CapabilityServerActionsMeta) GetDefaultClassId() interface{} { + return "capability.ServerActionsMeta" +} + // GetObjectType returns the ObjectType field value func (o *CapabilityServerActionsMeta) GetObjectType() string { if o == nil { @@ -110,6 +115,11 @@ func (o *CapabilityServerActionsMeta) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "capability.ServerActionsMeta" of the ObjectType field. +func (o *CapabilityServerActionsMeta) GetDefaultObjectType() interface{} { + return "capability.ServerActionsMeta" +} + // GetActionName returns the ActionName field value if set, zero value otherwise. func (o *CapabilityServerActionsMeta) GetActionName() string { if o == nil || IsNil(o.ActionName) { @@ -224,7 +234,13 @@ func (o CapabilityServerActionsMeta) ToMap() (map[string]interface{}, error) { if errCapabilityCapability != nil { return map[string]interface{}{}, errCapabilityCapability } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.ActionName) { toSerialize["ActionName"] = o.ActionName @@ -252,6 +268,13 @@ func (o *CapabilityServerActionsMeta) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -261,11 +284,23 @@ func (o *CapabilityServerActionsMeta) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type CapabilityServerActionsMetaWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_capability_server_actions_meta_list.go b/model_capability_server_actions_meta_list.go index 886e3bced0..8c53be0492 100644 --- a/model_capability_server_actions_meta_list.go +++ b/model_capability_server_actions_meta_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *CapabilityServerActionsMetaList) GetResultsOk() ([]CapabilityServerActi // HasResults returns a boolean if a field has been set. func (o *CapabilityServerActionsMetaList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *CapabilityServerActionsMetaList) UnmarshalJSON(data []byte) (err error) "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *CapabilityServerActionsMetaList) UnmarshalJSON(data []byte) (err error) } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type CapabilityServerActionsMetaListWithoutEmbeddedStruct struct { // The total number of 'capability.ServerActionsMeta' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_capability_server_actions_meta_response.go b/model_capability_server_actions_meta_response.go index 9bf7bf8f7c..40eaa7445a 100644 --- a/model_capability_server_actions_meta_response.go +++ b/model_capability_server_actions_meta_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_capability_server_component_constraint.go b/model_capability_server_component_constraint.go index ea17231980..a7ee3f5ae7 100644 --- a/model_capability_server_component_constraint.go +++ b/model_capability_server_component_constraint.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -84,6 +84,11 @@ func (o *CapabilityServerComponentConstraint) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "capability.ServerComponentConstraint" of the ClassId field. +func (o *CapabilityServerComponentConstraint) GetDefaultClassId() interface{} { + return "capability.ServerComponentConstraint" +} + // GetObjectType returns the ObjectType field value func (o *CapabilityServerComponentConstraint) GetObjectType() string { if o == nil { @@ -108,6 +113,11 @@ func (o *CapabilityServerComponentConstraint) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "capability.ServerComponentConstraint" of the ObjectType field. +func (o *CapabilityServerComponentConstraint) GetDefaultObjectType() interface{} { + return "capability.ServerComponentConstraint" +} + // GetMinSupportedVersion returns the MinSupportedVersion field value if set, zero value otherwise. func (o *CapabilityServerComponentConstraint) GetMinSupportedVersion() string { if o == nil || IsNil(o.MinSupportedVersion) { @@ -190,7 +200,13 @@ func (o CapabilityServerComponentConstraint) ToMap() (map[string]interface{}, er if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.MinSupportedVersion) { toSerialize["MinSupportedVersion"] = o.MinSupportedVersion @@ -215,6 +231,13 @@ func (o *CapabilityServerComponentConstraint) UnmarshalJSON(data []byte) (err er "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -224,11 +247,23 @@ func (o *CapabilityServerComponentConstraint) UnmarshalJSON(data []byte) (err er } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type CapabilityServerComponentConstraintWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_capability_server_descriptor.go b/model_capability_server_descriptor.go index cbb9556655..745a74633f 100644 --- a/model_capability_server_descriptor.go +++ b/model_capability_server_descriptor.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -86,6 +86,11 @@ func (o *CapabilityServerDescriptor) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "capability.ServerDescriptor" of the ClassId field. +func (o *CapabilityServerDescriptor) GetDefaultClassId() interface{} { + return "capability.ServerDescriptor" +} + // GetObjectType returns the ObjectType field value func (o *CapabilityServerDescriptor) GetObjectType() string { if o == nil { @@ -110,6 +115,11 @@ func (o *CapabilityServerDescriptor) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "capability.ServerDescriptor" of the ObjectType field. +func (o *CapabilityServerDescriptor) GetDefaultObjectType() interface{} { + return "capability.ServerDescriptor" +} + // GetIsNcsiEnabled returns the IsNcsiEnabled field value if set, zero value otherwise. func (o *CapabilityServerDescriptor) GetIsNcsiEnabled() bool { if o == nil || IsNil(o.IsNcsiEnabled) { @@ -224,7 +234,13 @@ func (o CapabilityServerDescriptor) ToMap() (map[string]interface{}, error) { if errCapabilityHardwareDescriptor != nil { return map[string]interface{}{}, errCapabilityHardwareDescriptor } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.IsNcsiEnabled) { toSerialize["IsNcsiEnabled"] = o.IsNcsiEnabled @@ -252,6 +268,13 @@ func (o *CapabilityServerDescriptor) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -261,11 +284,23 @@ func (o *CapabilityServerDescriptor) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type CapabilityServerDescriptorWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_capability_server_descriptor_list.go b/model_capability_server_descriptor_list.go index 76a52f06ae..ef0bb31910 100644 --- a/model_capability_server_descriptor_list.go +++ b/model_capability_server_descriptor_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *CapabilityServerDescriptorList) GetResultsOk() ([]CapabilityServerDescr // HasResults returns a boolean if a field has been set. func (o *CapabilityServerDescriptorList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *CapabilityServerDescriptorList) UnmarshalJSON(data []byte) (err error) "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *CapabilityServerDescriptorList) UnmarshalJSON(data []byte) (err error) } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type CapabilityServerDescriptorListWithoutEmbeddedStruct struct { // The total number of 'capability.ServerDescriptor' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_capability_server_descriptor_response.go b/model_capability_server_descriptor_response.go index 54ac93256e..d3d190ead2 100644 --- a/model_capability_server_descriptor_response.go +++ b/model_capability_server_descriptor_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_capability_server_models_capability_def.go b/model_capability_server_models_capability_def.go index 5694506d98..7a0bc588bf 100644 --- a/model_capability_server_models_capability_def.go +++ b/model_capability_server_models_capability_def.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -83,6 +83,11 @@ func (o *CapabilityServerModelsCapabilityDef) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "capability.ServerModelsCapabilityDef" of the ClassId field. +func (o *CapabilityServerModelsCapabilityDef) GetDefaultClassId() interface{} { + return "capability.ServerModelsCapabilityDef" +} + // GetObjectType returns the ObjectType field value func (o *CapabilityServerModelsCapabilityDef) GetObjectType() string { if o == nil { @@ -107,6 +112,11 @@ func (o *CapabilityServerModelsCapabilityDef) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "capability.ServerModelsCapabilityDef" of the ObjectType field. +func (o *CapabilityServerModelsCapabilityDef) GetDefaultObjectType() interface{} { + return "capability.ServerModelsCapabilityDef" +} + // GetModels returns the Models field value if set, zero value otherwise (both if not set or set to explicit null). func (o *CapabilityServerModelsCapabilityDef) GetModels() []string { if o == nil { @@ -128,7 +138,7 @@ func (o *CapabilityServerModelsCapabilityDef) GetModelsOk() ([]string, bool) { // HasModels returns a boolean if a field has been set. func (o *CapabilityServerModelsCapabilityDef) HasModels() bool { - if o != nil && IsNil(o.Models) { + if o != nil && !IsNil(o.Models) { return true } @@ -190,7 +200,13 @@ func (o CapabilityServerModelsCapabilityDef) ToMap() (map[string]interface{}, er if errCapabilityCapability != nil { return map[string]interface{}{}, errCapabilityCapability } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.Models != nil { toSerialize["Models"] = o.Models @@ -215,6 +231,13 @@ func (o *CapabilityServerModelsCapabilityDef) UnmarshalJSON(data []byte) (err er "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -224,11 +247,23 @@ func (o *CapabilityServerModelsCapabilityDef) UnmarshalJSON(data []byte) (err er } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type CapabilityServerModelsCapabilityDefWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_capability_server_models_capability_def_list.go b/model_capability_server_models_capability_def_list.go index e6ec7c9060..4751d5780d 100644 --- a/model_capability_server_models_capability_def_list.go +++ b/model_capability_server_models_capability_def_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *CapabilityServerModelsCapabilityDefList) GetResultsOk() ([]CapabilitySe // HasResults returns a boolean if a field has been set. func (o *CapabilityServerModelsCapabilityDefList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *CapabilityServerModelsCapabilityDefList) UnmarshalJSON(data []byte) (er "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *CapabilityServerModelsCapabilityDefList) UnmarshalJSON(data []byte) (er } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type CapabilityServerModelsCapabilityDefListWithoutEmbeddedStruct struct { // The total number of 'capability.ServerModelsCapabilityDef' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_capability_server_models_capability_def_response.go b/model_capability_server_models_capability_def_response.go index 3a5e043ad2..8a0f8fe035 100644 --- a/model_capability_server_models_capability_def_response.go +++ b/model_capability_server_models_capability_def_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_capability_server_schema_descriptor.go b/model_capability_server_schema_descriptor.go index 98da503876..f9ad90aba5 100644 --- a/model_capability_server_schema_descriptor.go +++ b/model_capability_server_schema_descriptor.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -84,6 +84,11 @@ func (o *CapabilityServerSchemaDescriptor) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "capability.ServerSchemaDescriptor" of the ClassId field. +func (o *CapabilityServerSchemaDescriptor) GetDefaultClassId() interface{} { + return "capability.ServerSchemaDescriptor" +} + // GetObjectType returns the ObjectType field value func (o *CapabilityServerSchemaDescriptor) GetObjectType() string { if o == nil { @@ -108,6 +113,11 @@ func (o *CapabilityServerSchemaDescriptor) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "capability.ServerSchemaDescriptor" of the ObjectType field. +func (o *CapabilityServerSchemaDescriptor) GetDefaultObjectType() interface{} { + return "capability.ServerSchemaDescriptor" +} + // GetLocatorLedName returns the LocatorLedName field value if set, zero value otherwise. func (o *CapabilityServerSchemaDescriptor) GetLocatorLedName() string { if o == nil || IsNil(o.LocatorLedName) { @@ -190,7 +200,13 @@ func (o CapabilityServerSchemaDescriptor) ToMap() (map[string]interface{}, error if errCapabilityHardwareDescriptor != nil { return map[string]interface{}{}, errCapabilityHardwareDescriptor } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.LocatorLedName) { toSerialize["LocatorLedName"] = o.LocatorLedName @@ -215,6 +231,13 @@ func (o *CapabilityServerSchemaDescriptor) UnmarshalJSON(data []byte) (err error "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -224,11 +247,23 @@ func (o *CapabilityServerSchemaDescriptor) UnmarshalJSON(data []byte) (err error } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type CapabilityServerSchemaDescriptorWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_capability_server_schema_descriptor_list.go b/model_capability_server_schema_descriptor_list.go index 942c58fc9c..9929558fab 100644 --- a/model_capability_server_schema_descriptor_list.go +++ b/model_capability_server_schema_descriptor_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *CapabilityServerSchemaDescriptorList) GetResultsOk() ([]CapabilityServe // HasResults returns a boolean if a field has been set. func (o *CapabilityServerSchemaDescriptorList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *CapabilityServerSchemaDescriptorList) UnmarshalJSON(data []byte) (err e "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *CapabilityServerSchemaDescriptorList) UnmarshalJSON(data []byte) (err e } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type CapabilityServerSchemaDescriptorListWithoutEmbeddedStruct struct { // The total number of 'capability.ServerSchemaDescriptor' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_capability_server_schema_descriptor_response.go b/model_capability_server_schema_descriptor_response.go index 6ad124c302..73db559b4e 100644 --- a/model_capability_server_schema_descriptor_response.go +++ b/model_capability_server_schema_descriptor_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_capability_server_upgrade_support_meta.go b/model_capability_server_upgrade_support_meta.go index 334ae972b2..ff5754efb8 100644 --- a/model_capability_server_upgrade_support_meta.go +++ b/model_capability_server_upgrade_support_meta.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -87,6 +87,11 @@ func (o *CapabilityServerUpgradeSupportMeta) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "capability.ServerUpgradeSupportMeta" of the ClassId field. +func (o *CapabilityServerUpgradeSupportMeta) GetDefaultClassId() interface{} { + return "capability.ServerUpgradeSupportMeta" +} + // GetObjectType returns the ObjectType field value func (o *CapabilityServerUpgradeSupportMeta) GetObjectType() string { if o == nil { @@ -111,6 +116,11 @@ func (o *CapabilityServerUpgradeSupportMeta) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "capability.ServerUpgradeSupportMeta" of the ObjectType field. +func (o *CapabilityServerUpgradeSupportMeta) GetDefaultObjectType() interface{} { + return "capability.ServerUpgradeSupportMeta" +} + // GetDescription returns the Description field value if set, zero value otherwise. func (o *CapabilityServerUpgradeSupportMeta) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -228,7 +238,7 @@ func (o *CapabilityServerUpgradeSupportMeta) GetSupportedModelsOk() ([]string, b // HasSupportedModels returns a boolean if a field has been set. func (o *CapabilityServerUpgradeSupportMeta) HasSupportedModels() bool { - if o != nil && IsNil(o.SupportedModels) { + if o != nil && !IsNil(o.SupportedModels) { return true } @@ -258,7 +268,13 @@ func (o CapabilityServerUpgradeSupportMeta) ToMap() (map[string]interface{}, err if errCapabilityCapability != nil { return map[string]interface{}{}, errCapabilityCapability } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Description) { toSerialize["Description"] = o.Description @@ -289,6 +305,13 @@ func (o *CapabilityServerUpgradeSupportMeta) UnmarshalJSON(data []byte) (err err "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -298,11 +321,23 @@ func (o *CapabilityServerUpgradeSupportMeta) UnmarshalJSON(data []byte) (err err } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type CapabilityServerUpgradeSupportMetaWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_capability_server_upgrade_support_meta_list.go b/model_capability_server_upgrade_support_meta_list.go index 707961a699..1f9d87dc42 100644 --- a/model_capability_server_upgrade_support_meta_list.go +++ b/model_capability_server_upgrade_support_meta_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *CapabilityServerUpgradeSupportMetaList) GetResultsOk() ([]CapabilitySer // HasResults returns a boolean if a field has been set. func (o *CapabilityServerUpgradeSupportMetaList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *CapabilityServerUpgradeSupportMetaList) UnmarshalJSON(data []byte) (err "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *CapabilityServerUpgradeSupportMetaList) UnmarshalJSON(data []byte) (err } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type CapabilityServerUpgradeSupportMetaListWithoutEmbeddedStruct struct { // The total number of 'capability.ServerUpgradeSupportMeta' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_capability_server_upgrade_support_meta_response.go b/model_capability_server_upgrade_support_meta_response.go index 28600a3585..c061eb0e7a 100644 --- a/model_capability_server_upgrade_support_meta_response.go +++ b/model_capability_server_upgrade_support_meta_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_capability_sioc_module_capability_def.go b/model_capability_sioc_module_capability_def.go index 30e2be727c..a658c27444 100644 --- a/model_capability_sioc_module_capability_def.go +++ b/model_capability_sioc_module_capability_def.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -82,6 +82,11 @@ func (o *CapabilitySiocModuleCapabilityDef) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "capability.SiocModuleCapabilityDef" of the ClassId field. +func (o *CapabilitySiocModuleCapabilityDef) GetDefaultClassId() interface{} { + return "capability.SiocModuleCapabilityDef" +} + // GetObjectType returns the ObjectType field value func (o *CapabilitySiocModuleCapabilityDef) GetObjectType() string { if o == nil { @@ -106,6 +111,11 @@ func (o *CapabilitySiocModuleCapabilityDef) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "capability.SiocModuleCapabilityDef" of the ObjectType field. +func (o *CapabilitySiocModuleCapabilityDef) GetDefaultObjectType() interface{} { + return "capability.SiocModuleCapabilityDef" +} + // GetDcSupported returns the DcSupported field value if set, zero value otherwise. func (o *CapabilitySiocModuleCapabilityDef) GetDcSupported() bool { if o == nil || IsNil(o.DcSupported) { @@ -156,7 +166,13 @@ func (o CapabilitySiocModuleCapabilityDef) ToMap() (map[string]interface{}, erro if errCapabilityCapability != nil { return map[string]interface{}{}, errCapabilityCapability } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.DcSupported) { toSerialize["DcSupported"] = o.DcSupported @@ -178,6 +194,13 @@ func (o *CapabilitySiocModuleCapabilityDef) UnmarshalJSON(data []byte) (err erro "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -187,11 +210,23 @@ func (o *CapabilitySiocModuleCapabilityDef) UnmarshalJSON(data []byte) (err erro } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type CapabilitySiocModuleCapabilityDefWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_capability_sioc_module_capability_def_list.go b/model_capability_sioc_module_capability_def_list.go index 031b8bf458..65dc904bad 100644 --- a/model_capability_sioc_module_capability_def_list.go +++ b/model_capability_sioc_module_capability_def_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *CapabilitySiocModuleCapabilityDefList) GetResultsOk() ([]CapabilitySioc // HasResults returns a boolean if a field has been set. func (o *CapabilitySiocModuleCapabilityDefList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *CapabilitySiocModuleCapabilityDefList) UnmarshalJSON(data []byte) (err "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *CapabilitySiocModuleCapabilityDefList) UnmarshalJSON(data []byte) (err } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type CapabilitySiocModuleCapabilityDefListWithoutEmbeddedStruct struct { // The total number of 'capability.SiocModuleCapabilityDef' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_capability_sioc_module_capability_def_response.go b/model_capability_sioc_module_capability_def_response.go index 2af4d412d3..04f48ca516 100644 --- a/model_capability_sioc_module_capability_def_response.go +++ b/model_capability_sioc_module_capability_def_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_capability_sioc_module_descriptor.go b/model_capability_sioc_module_descriptor.go index da0127988a..05a5cf32ec 100644 --- a/model_capability_sioc_module_descriptor.go +++ b/model_capability_sioc_module_descriptor.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -82,6 +82,11 @@ func (o *CapabilitySiocModuleDescriptor) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "capability.SiocModuleDescriptor" of the ClassId field. +func (o *CapabilitySiocModuleDescriptor) GetDefaultClassId() interface{} { + return "capability.SiocModuleDescriptor" +} + // GetObjectType returns the ObjectType field value func (o *CapabilitySiocModuleDescriptor) GetObjectType() string { if o == nil { @@ -106,6 +111,11 @@ func (o *CapabilitySiocModuleDescriptor) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "capability.SiocModuleDescriptor" of the ObjectType field. +func (o *CapabilitySiocModuleDescriptor) GetDefaultObjectType() interface{} { + return "capability.SiocModuleDescriptor" +} + // GetRevision returns the Revision field value if set, zero value otherwise. func (o *CapabilitySiocModuleDescriptor) GetRevision() string { if o == nil || IsNil(o.Revision) { @@ -156,7 +166,13 @@ func (o CapabilitySiocModuleDescriptor) ToMap() (map[string]interface{}, error) if errCapabilityHardwareDescriptor != nil { return map[string]interface{}{}, errCapabilityHardwareDescriptor } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Revision) { toSerialize["Revision"] = o.Revision @@ -178,6 +194,13 @@ func (o *CapabilitySiocModuleDescriptor) UnmarshalJSON(data []byte) (err error) "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -187,11 +210,23 @@ func (o *CapabilitySiocModuleDescriptor) UnmarshalJSON(data []byte) (err error) } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type CapabilitySiocModuleDescriptorWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_capability_sioc_module_descriptor_list.go b/model_capability_sioc_module_descriptor_list.go index d35aba22d4..fd6b1e6909 100644 --- a/model_capability_sioc_module_descriptor_list.go +++ b/model_capability_sioc_module_descriptor_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *CapabilitySiocModuleDescriptorList) GetResultsOk() ([]CapabilitySiocMod // HasResults returns a boolean if a field has been set. func (o *CapabilitySiocModuleDescriptorList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *CapabilitySiocModuleDescriptorList) UnmarshalJSON(data []byte) (err err "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *CapabilitySiocModuleDescriptorList) UnmarshalJSON(data []byte) (err err } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type CapabilitySiocModuleDescriptorListWithoutEmbeddedStruct struct { // The total number of 'capability.SiocModuleDescriptor' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_capability_sioc_module_descriptor_response.go b/model_capability_sioc_module_descriptor_response.go index fa17855ec1..95e468e106 100644 --- a/model_capability_sioc_module_descriptor_response.go +++ b/model_capability_sioc_module_descriptor_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_capability_sioc_module_manufacturing_def.go b/model_capability_sioc_module_manufacturing_def.go index 83acfb6fc5..eb860421d3 100644 --- a/model_capability_sioc_module_manufacturing_def.go +++ b/model_capability_sioc_module_manufacturing_def.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -92,6 +92,11 @@ func (o *CapabilitySiocModuleManufacturingDef) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "capability.SiocModuleManufacturingDef" of the ClassId field. +func (o *CapabilitySiocModuleManufacturingDef) GetDefaultClassId() interface{} { + return "capability.SiocModuleManufacturingDef" +} + // GetObjectType returns the ObjectType field value func (o *CapabilitySiocModuleManufacturingDef) GetObjectType() string { if o == nil { @@ -116,6 +121,11 @@ func (o *CapabilitySiocModuleManufacturingDef) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "capability.SiocModuleManufacturingDef" of the ObjectType field. +func (o *CapabilitySiocModuleManufacturingDef) GetDefaultObjectType() interface{} { + return "capability.SiocModuleManufacturingDef" +} + // GetCaption returns the Caption field value if set, zero value otherwise. func (o *CapabilitySiocModuleManufacturingDef) GetCaption() string { if o == nil || IsNil(o.Caption) { @@ -326,7 +336,13 @@ func (o CapabilitySiocModuleManufacturingDef) ToMap() (map[string]interface{}, e if errCapabilityCapability != nil { return map[string]interface{}{}, errCapabilityCapability } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Caption) { toSerialize["Caption"] = o.Caption @@ -363,6 +379,13 @@ func (o *CapabilitySiocModuleManufacturingDef) UnmarshalJSON(data []byte) (err e "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -372,11 +395,23 @@ func (o *CapabilitySiocModuleManufacturingDef) UnmarshalJSON(data []byte) (err e } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type CapabilitySiocModuleManufacturingDefWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_capability_sioc_module_manufacturing_def_list.go b/model_capability_sioc_module_manufacturing_def_list.go index c59cb569da..0d0d94b26d 100644 --- a/model_capability_sioc_module_manufacturing_def_list.go +++ b/model_capability_sioc_module_manufacturing_def_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *CapabilitySiocModuleManufacturingDefList) GetResultsOk() ([]CapabilityS // HasResults returns a boolean if a field has been set. func (o *CapabilitySiocModuleManufacturingDefList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *CapabilitySiocModuleManufacturingDefList) UnmarshalJSON(data []byte) (e "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *CapabilitySiocModuleManufacturingDefList) UnmarshalJSON(data []byte) (e } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type CapabilitySiocModuleManufacturingDefListWithoutEmbeddedStruct struct { // The total number of 'capability.SiocModuleManufacturingDef' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_capability_sioc_module_manufacturing_def_response.go b/model_capability_sioc_module_manufacturing_def_response.go index dd6a03de38..705ad0be0b 100644 --- a/model_capability_sioc_module_manufacturing_def_response.go +++ b/model_capability_sioc_module_manufacturing_def_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_capability_storage_controller_update_constraint_meta.go b/model_capability_storage_controller_update_constraint_meta.go index acd385c9b2..0f49f41569 100644 --- a/model_capability_storage_controller_update_constraint_meta.go +++ b/model_capability_storage_controller_update_constraint_meta.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -83,6 +83,10 @@ func (o *CapabilityStorageControllerUpdateConstraintMeta) UnmarshalJSON(data []b "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -92,11 +96,23 @@ func (o *CapabilityStorageControllerUpdateConstraintMeta) UnmarshalJSON(data []b } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type CapabilityStorageControllerUpdateConstraintMetaWithoutEmbeddedStruct struct { } diff --git a/model_capability_storage_controller_update_constraint_meta_list.go b/model_capability_storage_controller_update_constraint_meta_list.go index 14d62c98cc..47a8cde226 100644 --- a/model_capability_storage_controller_update_constraint_meta_list.go +++ b/model_capability_storage_controller_update_constraint_meta_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *CapabilityStorageControllerUpdateConstraintMetaList) GetResultsOk() ([] // HasResults returns a boolean if a field has been set. func (o *CapabilityStorageControllerUpdateConstraintMetaList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *CapabilityStorageControllerUpdateConstraintMetaList) UnmarshalJSON(data "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *CapabilityStorageControllerUpdateConstraintMetaList) UnmarshalJSON(data } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type CapabilityStorageControllerUpdateConstraintMetaListWithoutEmbeddedStruct struct { // The total number of 'capability.StorageControllerUpdateConstraintMeta' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_capability_storage_controller_update_constraint_meta_response.go b/model_capability_storage_controller_update_constraint_meta_response.go index 7834eab7af..b93d863768 100644 --- a/model_capability_storage_controller_update_constraint_meta_response.go +++ b/model_capability_storage_controller_update_constraint_meta_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_capability_switch_capability.go b/model_capability_switch_capability.go index 06a152fd33..e404280bf2 100644 --- a/model_capability_switch_capability.go +++ b/model_capability_switch_capability.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -123,6 +123,11 @@ func (o *CapabilitySwitchCapability) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "capability.SwitchCapability" of the ClassId field. +func (o *CapabilitySwitchCapability) GetDefaultClassId() interface{} { + return "capability.SwitchCapability" +} + // GetObjectType returns the ObjectType field value func (o *CapabilitySwitchCapability) GetObjectType() string { if o == nil { @@ -147,6 +152,11 @@ func (o *CapabilitySwitchCapability) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "capability.SwitchCapability" of the ObjectType field. +func (o *CapabilitySwitchCapability) GetDefaultObjectType() interface{} { + return "capability.SwitchCapability" +} + // GetDefaultFcoeVlan returns the DefaultFcoeVlan field value if set, zero value otherwise. func (o *CapabilitySwitchCapability) GetDefaultFcoeVlan() int64 { if o == nil || IsNil(o.DefaultFcoeVlan) { @@ -264,7 +274,7 @@ func (o *CapabilitySwitchCapability) GetFcEndHostModeReservedVsansOk() ([]Capabi // HasFcEndHostModeReservedVsans returns a boolean if a field has been set. func (o *CapabilitySwitchCapability) HasFcEndHostModeReservedVsans() bool { - if o != nil && IsNil(o.FcEndHostModeReservedVsans) { + if o != nil && !IsNil(o.FcEndHostModeReservedVsans) { return true } @@ -629,7 +639,7 @@ func (o *CapabilitySwitchCapability) GetPortsSupporting100gSpeedOk() ([]Capabili // HasPortsSupporting100gSpeed returns a boolean if a field has been set. func (o *CapabilitySwitchCapability) HasPortsSupporting100gSpeed() bool { - if o != nil && IsNil(o.PortsSupporting100gSpeed) { + if o != nil && !IsNil(o.PortsSupporting100gSpeed) { return true } @@ -662,7 +672,7 @@ func (o *CapabilitySwitchCapability) GetPortsSupporting10gSpeedOk() ([]Capabilit // HasPortsSupporting10gSpeed returns a boolean if a field has been set. func (o *CapabilitySwitchCapability) HasPortsSupporting10gSpeed() bool { - if o != nil && IsNil(o.PortsSupporting10gSpeed) { + if o != nil && !IsNil(o.PortsSupporting10gSpeed) { return true } @@ -695,7 +705,7 @@ func (o *CapabilitySwitchCapability) GetPortsSupporting1gSpeedOk() ([]Capability // HasPortsSupporting1gSpeed returns a boolean if a field has been set. func (o *CapabilitySwitchCapability) HasPortsSupporting1gSpeed() bool { - if o != nil && IsNil(o.PortsSupporting1gSpeed) { + if o != nil && !IsNil(o.PortsSupporting1gSpeed) { return true } @@ -728,7 +738,7 @@ func (o *CapabilitySwitchCapability) GetPortsSupporting25gSpeedOk() ([]Capabilit // HasPortsSupporting25gSpeed returns a boolean if a field has been set. func (o *CapabilitySwitchCapability) HasPortsSupporting25gSpeed() bool { - if o != nil && IsNil(o.PortsSupporting25gSpeed) { + if o != nil && !IsNil(o.PortsSupporting25gSpeed) { return true } @@ -761,7 +771,7 @@ func (o *CapabilitySwitchCapability) GetPortsSupporting40gSpeedOk() ([]Capabilit // HasPortsSupporting40gSpeed returns a boolean if a field has been set. func (o *CapabilitySwitchCapability) HasPortsSupporting40gSpeed() bool { - if o != nil && IsNil(o.PortsSupporting40gSpeed) { + if o != nil && !IsNil(o.PortsSupporting40gSpeed) { return true } @@ -794,7 +804,7 @@ func (o *CapabilitySwitchCapability) GetPortsSupportingBreakoutOk() ([]Capabilit // HasPortsSupportingBreakout returns a boolean if a field has been set. func (o *CapabilitySwitchCapability) HasPortsSupportingBreakout() bool { - if o != nil && IsNil(o.PortsSupportingBreakout) { + if o != nil && !IsNil(o.PortsSupportingBreakout) { return true } @@ -827,7 +837,7 @@ func (o *CapabilitySwitchCapability) GetPortsSupportingFcoeOk() ([]CapabilityPor // HasPortsSupportingFcoe returns a boolean if a field has been set. func (o *CapabilitySwitchCapability) HasPortsSupportingFcoe() bool { - if o != nil && IsNil(o.PortsSupportingFcoe) { + if o != nil && !IsNil(o.PortsSupportingFcoe) { return true } @@ -860,7 +870,7 @@ func (o *CapabilitySwitchCapability) GetPortsSupportingServerRoleOk() ([]Capabil // HasPortsSupportingServerRole returns a boolean if a field has been set. func (o *CapabilitySwitchCapability) HasPortsSupportingServerRole() bool { - if o != nil && IsNil(o.PortsSupportingServerRole) { + if o != nil && !IsNil(o.PortsSupportingServerRole) { return true } @@ -893,7 +903,7 @@ func (o *CapabilitySwitchCapability) GetReservedVsansOk() ([]CapabilityPortRange // HasReservedVsans returns a boolean if a field has been set. func (o *CapabilitySwitchCapability) HasReservedVsans() bool { - if o != nil && IsNil(o.ReservedVsans) { + if o != nil && !IsNil(o.ReservedVsans) { return true } @@ -958,7 +968,7 @@ func (o *CapabilitySwitchCapability) GetServerRoleSupportedOnBreakoutOk() ([]str // HasServerRoleSupportedOnBreakout returns a boolean if a field has been set. func (o *CapabilitySwitchCapability) HasServerRoleSupportedOnBreakout() bool { - if o != nil && IsNil(o.ServerRoleSupportedOnBreakout) { + if o != nil && !IsNil(o.ServerRoleSupportedOnBreakout) { return true } @@ -1034,7 +1044,7 @@ func (o *CapabilitySwitchCapability) GetSwitchingModeCapabilitiesOk() ([]Capabil // HasSwitchingModeCapabilities returns a boolean if a field has been set. func (o *CapabilitySwitchCapability) HasSwitchingModeCapabilities() bool { - if o != nil && IsNil(o.SwitchingModeCapabilities) { + if o != nil && !IsNil(o.SwitchingModeCapabilities) { return true } @@ -1110,7 +1120,7 @@ func (o *CapabilitySwitchCapability) GetUnifiedPortsOk() ([]CapabilityPortRange, // HasUnifiedPorts returns a boolean if a field has been set. func (o *CapabilitySwitchCapability) HasUnifiedPorts() bool { - if o != nil && IsNil(o.UnifiedPorts) { + if o != nil && !IsNil(o.UnifiedPorts) { return true } @@ -1204,7 +1214,13 @@ func (o CapabilitySwitchCapability) ToMap() (map[string]interface{}, error) { if errCapabilitySwitchCapabilityDef != nil { return map[string]interface{}{}, errCapabilitySwitchCapabilityDef } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.DefaultFcoeVlan) { toSerialize["DefaultFcoeVlan"] = o.DefaultFcoeVlan @@ -1313,6 +1329,13 @@ func (o *CapabilitySwitchCapability) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -1322,11 +1345,23 @@ func (o *CapabilitySwitchCapability) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type CapabilitySwitchCapabilityWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_capability_switch_capability_def.go b/model_capability_switch_capability_def.go index 6b356c89f4..24a0f7170a 100644 --- a/model_capability_switch_capability_def.go +++ b/model_capability_switch_capability_def.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -252,6 +252,10 @@ func (o *CapabilitySwitchCapabilityDef) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -261,11 +265,23 @@ func (o *CapabilitySwitchCapabilityDef) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type CapabilitySwitchCapabilityDefWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. The enum values provides the list of concrete types that can be instantiated from this abstract type. ClassId string `json:"ClassId"` diff --git a/model_capability_switch_capability_list.go b/model_capability_switch_capability_list.go index 780c9bd327..2204fa20fc 100644 --- a/model_capability_switch_capability_list.go +++ b/model_capability_switch_capability_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *CapabilitySwitchCapabilityList) GetResultsOk() ([]CapabilitySwitchCapab // HasResults returns a boolean if a field has been set. func (o *CapabilitySwitchCapabilityList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *CapabilitySwitchCapabilityList) UnmarshalJSON(data []byte) (err error) "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *CapabilitySwitchCapabilityList) UnmarshalJSON(data []byte) (err error) } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type CapabilitySwitchCapabilityListWithoutEmbeddedStruct struct { // The total number of 'capability.SwitchCapability' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_capability_switch_capability_response.go b/model_capability_switch_capability_response.go index 0f7c02338d..71c344b76f 100644 --- a/model_capability_switch_capability_response.go +++ b/model_capability_switch_capability_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_capability_switch_descriptor.go b/model_capability_switch_descriptor.go index 51cf71b9c2..4500bf4e27 100644 --- a/model_capability_switch_descriptor.go +++ b/model_capability_switch_descriptor.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -90,6 +90,11 @@ func (o *CapabilitySwitchDescriptor) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "capability.SwitchDescriptor" of the ClassId field. +func (o *CapabilitySwitchDescriptor) GetDefaultClassId() interface{} { + return "capability.SwitchDescriptor" +} + // GetObjectType returns the ObjectType field value func (o *CapabilitySwitchDescriptor) GetObjectType() string { if o == nil { @@ -114,6 +119,11 @@ func (o *CapabilitySwitchDescriptor) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "capability.SwitchDescriptor" of the ObjectType field. +func (o *CapabilitySwitchDescriptor) GetDefaultObjectType() interface{} { + return "capability.SwitchDescriptor" +} + // GetExpectedMemory returns the ExpectedMemory field value if set, zero value otherwise. func (o *CapabilitySwitchDescriptor) GetExpectedMemory() int64 { if o == nil || IsNil(o.ExpectedMemory) { @@ -228,7 +238,13 @@ func (o CapabilitySwitchDescriptor) ToMap() (map[string]interface{}, error) { if errCapabilityHardwareDescriptor != nil { return map[string]interface{}{}, errCapabilityHardwareDescriptor } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.ExpectedMemory) { toSerialize["ExpectedMemory"] = o.ExpectedMemory @@ -256,6 +272,13 @@ func (o *CapabilitySwitchDescriptor) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -265,11 +288,23 @@ func (o *CapabilitySwitchDescriptor) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type CapabilitySwitchDescriptorWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_capability_switch_descriptor_list.go b/model_capability_switch_descriptor_list.go index fbab7d15b2..e56bceaeec 100644 --- a/model_capability_switch_descriptor_list.go +++ b/model_capability_switch_descriptor_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *CapabilitySwitchDescriptorList) GetResultsOk() ([]CapabilitySwitchDescr // HasResults returns a boolean if a field has been set. func (o *CapabilitySwitchDescriptorList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *CapabilitySwitchDescriptorList) UnmarshalJSON(data []byte) (err error) "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *CapabilitySwitchDescriptorList) UnmarshalJSON(data []byte) (err error) } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type CapabilitySwitchDescriptorListWithoutEmbeddedStruct struct { // The total number of 'capability.SwitchDescriptor' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_capability_switch_descriptor_response.go b/model_capability_switch_descriptor_response.go index 9c03b49b60..2053b1ce45 100644 --- a/model_capability_switch_descriptor_response.go +++ b/model_capability_switch_descriptor_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_capability_switch_equipment_info.go b/model_capability_switch_equipment_info.go index 3d50241d04..3f1b514077 100644 --- a/model_capability_switch_equipment_info.go +++ b/model_capability_switch_equipment_info.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -84,6 +84,11 @@ func (o *CapabilitySwitchEquipmentInfo) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "capability.SwitchEquipmentInfo" of the ClassId field. +func (o *CapabilitySwitchEquipmentInfo) GetDefaultClassId() interface{} { + return "capability.SwitchEquipmentInfo" +} + // GetObjectType returns the ObjectType field value func (o *CapabilitySwitchEquipmentInfo) GetObjectType() string { if o == nil { @@ -108,6 +113,11 @@ func (o *CapabilitySwitchEquipmentInfo) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "capability.SwitchEquipmentInfo" of the ObjectType field. +func (o *CapabilitySwitchEquipmentInfo) GetDefaultObjectType() interface{} { + return "capability.SwitchEquipmentInfo" +} + // GetMaxFanModules returns the MaxFanModules field value if set, zero value otherwise. func (o *CapabilitySwitchEquipmentInfo) GetMaxFanModules() int64 { if o == nil || IsNil(o.MaxFanModules) { @@ -190,7 +200,13 @@ func (o CapabilitySwitchEquipmentInfo) ToMap() (map[string]interface{}, error) { if errCapabilitySwitchIdentityDef != nil { return map[string]interface{}{}, errCapabilitySwitchIdentityDef } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.MaxFanModules) { toSerialize["MaxFanModules"] = o.MaxFanModules @@ -215,6 +231,13 @@ func (o *CapabilitySwitchEquipmentInfo) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -224,11 +247,23 @@ func (o *CapabilitySwitchEquipmentInfo) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type CapabilitySwitchEquipmentInfoWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_capability_switch_equipment_info_list.go b/model_capability_switch_equipment_info_list.go index d4b1ab8f87..fe245c6e0e 100644 --- a/model_capability_switch_equipment_info_list.go +++ b/model_capability_switch_equipment_info_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *CapabilitySwitchEquipmentInfoList) GetResultsOk() ([]CapabilitySwitchEq // HasResults returns a boolean if a field has been set. func (o *CapabilitySwitchEquipmentInfoList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *CapabilitySwitchEquipmentInfoList) UnmarshalJSON(data []byte) (err erro "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *CapabilitySwitchEquipmentInfoList) UnmarshalJSON(data []byte) (err erro } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type CapabilitySwitchEquipmentInfoListWithoutEmbeddedStruct struct { // The total number of 'capability.SwitchEquipmentInfo' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_capability_switch_equipment_info_response.go b/model_capability_switch_equipment_info_response.go index 7d1e5f412b..d841492d59 100644 --- a/model_capability_switch_equipment_info_response.go +++ b/model_capability_switch_equipment_info_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_capability_switch_identity_def.go b/model_capability_switch_identity_def.go index ff14ccf95f..50d2be85cb 100644 --- a/model_capability_switch_identity_def.go +++ b/model_capability_switch_identity_def.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -86,6 +86,11 @@ func (o *CapabilitySwitchIdentityDef) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "capability.SwitchEquipmentInfo" of the ClassId field. +func (o *CapabilitySwitchIdentityDef) GetDefaultClassId() interface{} { + return "capability.SwitchEquipmentInfo" +} + // GetObjectType returns the ObjectType field value func (o *CapabilitySwitchIdentityDef) GetObjectType() string { if o == nil { @@ -110,6 +115,11 @@ func (o *CapabilitySwitchIdentityDef) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "capability.SwitchEquipmentInfo" of the ObjectType field. +func (o *CapabilitySwitchIdentityDef) GetDefaultObjectType() interface{} { + return "capability.SwitchEquipmentInfo" +} + // GetPid returns the Pid field value if set, zero value otherwise. func (o *CapabilitySwitchIdentityDef) GetPid() string { if o == nil || IsNil(o.Pid) { @@ -224,7 +234,13 @@ func (o CapabilitySwitchIdentityDef) ToMap() (map[string]interface{}, error) { if errCapabilityCapability != nil { return map[string]interface{}{}, errCapabilityCapability } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Pid) { toSerialize["Pid"] = o.Pid @@ -252,6 +268,13 @@ func (o *CapabilitySwitchIdentityDef) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -261,11 +284,23 @@ func (o *CapabilitySwitchIdentityDef) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type CapabilitySwitchIdentityDefWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. The enum values provides the list of concrete types that can be instantiated from this abstract type. ClassId string `json:"ClassId"` diff --git a/model_capability_switch_manufacturing_def.go b/model_capability_switch_manufacturing_def.go index e82dc927e5..48091f1401 100644 --- a/model_capability_switch_manufacturing_def.go +++ b/model_capability_switch_manufacturing_def.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -90,6 +90,11 @@ func (o *CapabilitySwitchManufacturingDef) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "capability.SwitchManufacturingDef" of the ClassId field. +func (o *CapabilitySwitchManufacturingDef) GetDefaultClassId() interface{} { + return "capability.SwitchManufacturingDef" +} + // GetObjectType returns the ObjectType field value func (o *CapabilitySwitchManufacturingDef) GetObjectType() string { if o == nil { @@ -114,6 +119,11 @@ func (o *CapabilitySwitchManufacturingDef) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "capability.SwitchManufacturingDef" of the ObjectType field. +func (o *CapabilitySwitchManufacturingDef) GetDefaultObjectType() interface{} { + return "capability.SwitchManufacturingDef" +} + // GetCaption returns the Caption field value if set, zero value otherwise. func (o *CapabilitySwitchManufacturingDef) GetCaption() string { if o == nil || IsNil(o.Caption) { @@ -260,7 +270,13 @@ func (o CapabilitySwitchManufacturingDef) ToMap() (map[string]interface{}, error if errCapabilitySwitchCapabilityDef != nil { return map[string]interface{}{}, errCapabilitySwitchCapabilityDef } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Caption) { toSerialize["Caption"] = o.Caption @@ -291,6 +307,13 @@ func (o *CapabilitySwitchManufacturingDef) UnmarshalJSON(data []byte) (err error "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -300,11 +323,23 @@ func (o *CapabilitySwitchManufacturingDef) UnmarshalJSON(data []byte) (err error } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type CapabilitySwitchManufacturingDefWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_capability_switch_manufacturing_def_list.go b/model_capability_switch_manufacturing_def_list.go index 1e108cab3b..875ec12016 100644 --- a/model_capability_switch_manufacturing_def_list.go +++ b/model_capability_switch_manufacturing_def_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *CapabilitySwitchManufacturingDefList) GetResultsOk() ([]CapabilitySwitc // HasResults returns a boolean if a field has been set. func (o *CapabilitySwitchManufacturingDefList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *CapabilitySwitchManufacturingDefList) UnmarshalJSON(data []byte) (err e "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *CapabilitySwitchManufacturingDefList) UnmarshalJSON(data []byte) (err e } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type CapabilitySwitchManufacturingDefListWithoutEmbeddedStruct struct { // The total number of 'capability.SwitchManufacturingDef' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_capability_switch_manufacturing_def_response.go b/model_capability_switch_manufacturing_def_response.go index cfd6c902f0..242c503788 100644 --- a/model_capability_switch_manufacturing_def_response.go +++ b/model_capability_switch_manufacturing_def_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_capability_switch_network_limits.go b/model_capability_switch_network_limits.go index c1db6ddcb7..47abd0417d 100644 --- a/model_capability_switch_network_limits.go +++ b/model_capability_switch_network_limits.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -110,6 +110,11 @@ func (o *CapabilitySwitchNetworkLimits) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "capability.SwitchNetworkLimits" of the ClassId field. +func (o *CapabilitySwitchNetworkLimits) GetDefaultClassId() interface{} { + return "capability.SwitchNetworkLimits" +} + // GetObjectType returns the ObjectType field value func (o *CapabilitySwitchNetworkLimits) GetObjectType() string { if o == nil { @@ -134,6 +139,11 @@ func (o *CapabilitySwitchNetworkLimits) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "capability.SwitchNetworkLimits" of the ObjectType field. +func (o *CapabilitySwitchNetworkLimits) GetDefaultObjectType() interface{} { + return "capability.SwitchNetworkLimits" +} + // GetMaxCompressedPortVlanCount returns the MaxCompressedPortVlanCount field value if set, zero value otherwise. func (o *CapabilitySwitchNetworkLimits) GetMaxCompressedPortVlanCount() int64 { if o == nil || IsNil(o.MaxCompressedPortVlanCount) { @@ -632,7 +642,13 @@ func (o CapabilitySwitchNetworkLimits) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.MaxCompressedPortVlanCount) { toSerialize["MaxCompressedPortVlanCount"] = o.MaxCompressedPortVlanCount @@ -696,6 +712,13 @@ func (o *CapabilitySwitchNetworkLimits) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -705,11 +728,23 @@ func (o *CapabilitySwitchNetworkLimits) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type CapabilitySwitchNetworkLimitsWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_capability_switch_storage_limits.go b/model_capability_switch_storage_limits.go index f5a51af0c0..76d0aaddc5 100644 --- a/model_capability_switch_storage_limits.go +++ b/model_capability_switch_storage_limits.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -90,6 +90,11 @@ func (o *CapabilitySwitchStorageLimits) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "capability.SwitchStorageLimits" of the ClassId field. +func (o *CapabilitySwitchStorageLimits) GetDefaultClassId() interface{} { + return "capability.SwitchStorageLimits" +} + // GetObjectType returns the ObjectType field value func (o *CapabilitySwitchStorageLimits) GetObjectType() string { if o == nil { @@ -114,6 +119,11 @@ func (o *CapabilitySwitchStorageLimits) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "capability.SwitchStorageLimits" of the ObjectType field. +func (o *CapabilitySwitchStorageLimits) GetDefaultObjectType() interface{} { + return "capability.SwitchStorageLimits" +} + // GetMaximumUserZoneCount returns the MaximumUserZoneCount field value if set, zero value otherwise. func (o *CapabilitySwitchStorageLimits) GetMaximumUserZoneCount() int64 { if o == nil || IsNil(o.MaximumUserZoneCount) { @@ -292,7 +302,13 @@ func (o CapabilitySwitchStorageLimits) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.MaximumUserZoneCount) { toSerialize["MaximumUserZoneCount"] = o.MaximumUserZoneCount @@ -326,6 +342,13 @@ func (o *CapabilitySwitchStorageLimits) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -335,11 +358,23 @@ func (o *CapabilitySwitchStorageLimits) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type CapabilitySwitchStorageLimitsWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_capability_switch_system_limits.go b/model_capability_switch_system_limits.go index a6ad510702..7e2265924f 100644 --- a/model_capability_switch_system_limits.go +++ b/model_capability_switch_system_limits.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -86,6 +86,11 @@ func (o *CapabilitySwitchSystemLimits) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "capability.SwitchSystemLimits" of the ClassId field. +func (o *CapabilitySwitchSystemLimits) GetDefaultClassId() interface{} { + return "capability.SwitchSystemLimits" +} + // GetObjectType returns the ObjectType field value func (o *CapabilitySwitchSystemLimits) GetObjectType() string { if o == nil { @@ -110,6 +115,11 @@ func (o *CapabilitySwitchSystemLimits) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "capability.SwitchSystemLimits" of the ObjectType field. +func (o *CapabilitySwitchSystemLimits) GetDefaultObjectType() interface{} { + return "capability.SwitchSystemLimits" +} + // GetMaximumChassisCount returns the MaximumChassisCount field value if set, zero value otherwise. func (o *CapabilitySwitchSystemLimits) GetMaximumChassisCount() int64 { if o == nil || IsNil(o.MaximumChassisCount) { @@ -224,7 +234,13 @@ func (o CapabilitySwitchSystemLimits) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.MaximumChassisCount) { toSerialize["MaximumChassisCount"] = o.MaximumChassisCount @@ -252,6 +268,13 @@ func (o *CapabilitySwitchSystemLimits) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -261,11 +284,23 @@ func (o *CapabilitySwitchSystemLimits) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type CapabilitySwitchSystemLimitsWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_capability_switching_mode_capability.go b/model_capability_switching_mode_capability.go index 53bd78ae23..d91c7af18b 100644 --- a/model_capability_switching_mode_capability.go +++ b/model_capability_switching_mode_capability.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -88,6 +88,11 @@ func (o *CapabilitySwitchingModeCapability) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "capability.SwitchingModeCapability" of the ClassId field. +func (o *CapabilitySwitchingModeCapability) GetDefaultClassId() interface{} { + return "capability.SwitchingModeCapability" +} + // GetObjectType returns the ObjectType field value func (o *CapabilitySwitchingModeCapability) GetObjectType() string { if o == nil { @@ -112,6 +117,11 @@ func (o *CapabilitySwitchingModeCapability) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "capability.SwitchingModeCapability" of the ObjectType field. +func (o *CapabilitySwitchingModeCapability) GetDefaultObjectType() interface{} { + return "capability.SwitchingModeCapability" +} + // GetSwitchingMode returns the SwitchingMode field value if set, zero value otherwise. func (o *CapabilitySwitchingModeCapability) GetSwitchingMode() string { if o == nil || IsNil(o.SwitchingMode) { @@ -194,7 +204,13 @@ func (o CapabilitySwitchingModeCapability) ToMap() (map[string]interface{}, erro if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.SwitchingMode) { toSerialize["SwitchingMode"] = o.SwitchingMode @@ -219,6 +235,13 @@ func (o *CapabilitySwitchingModeCapability) UnmarshalJSON(data []byte) (err erro "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -228,11 +251,23 @@ func (o *CapabilitySwitchingModeCapability) UnmarshalJSON(data []byte) (err erro } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type CapabilitySwitchingModeCapabilityWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_capability_template_catalog.go b/model_capability_template_catalog.go index 32ec37431f..6df7692803 100644 --- a/model_capability_template_catalog.go +++ b/model_capability_template_catalog.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -81,6 +81,11 @@ func (o *CapabilityTemplateCatalog) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "capability.TemplateCatalog" of the ClassId field. +func (o *CapabilityTemplateCatalog) GetDefaultClassId() interface{} { + return "capability.TemplateCatalog" +} + // GetObjectType returns the ObjectType field value func (o *CapabilityTemplateCatalog) GetObjectType() string { if o == nil { @@ -105,6 +110,11 @@ func (o *CapabilityTemplateCatalog) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "capability.TemplateCatalog" of the ObjectType field. +func (o *CapabilityTemplateCatalog) GetDefaultObjectType() interface{} { + return "capability.TemplateCatalog" +} + // GetAllowedOverrideList returns the AllowedOverrideList field value if set, zero value otherwise (both if not set or set to explicit null). func (o *CapabilityTemplateCatalog) GetAllowedOverrideList() []string { if o == nil { @@ -126,7 +136,7 @@ func (o *CapabilityTemplateCatalog) GetAllowedOverrideListOk() ([]string, bool) // HasAllowedOverrideList returns a boolean if a field has been set. func (o *CapabilityTemplateCatalog) HasAllowedOverrideList() bool { - if o != nil && IsNil(o.AllowedOverrideList) { + if o != nil && !IsNil(o.AllowedOverrideList) { return true } @@ -156,7 +166,13 @@ func (o CapabilityTemplateCatalog) ToMap() (map[string]interface{}, error) { if errCapabilityCapability != nil { return map[string]interface{}{}, errCapabilityCapability } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.AllowedOverrideList != nil { toSerialize["AllowedOverrideList"] = o.AllowedOverrideList @@ -178,6 +194,13 @@ func (o *CapabilityTemplateCatalog) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -187,11 +210,23 @@ func (o *CapabilityTemplateCatalog) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type CapabilityTemplateCatalogWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_capability_template_catalog_list.go b/model_capability_template_catalog_list.go index 8d9bdb445b..8aec751ed1 100644 --- a/model_capability_template_catalog_list.go +++ b/model_capability_template_catalog_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *CapabilityTemplateCatalogList) GetResultsOk() ([]CapabilityTemplateCata // HasResults returns a boolean if a field has been set. func (o *CapabilityTemplateCatalogList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *CapabilityTemplateCatalogList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *CapabilityTemplateCatalogList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type CapabilityTemplateCatalogListWithoutEmbeddedStruct struct { // The total number of 'capability.TemplateCatalog' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_capability_template_catalog_response.go b/model_capability_template_catalog_response.go index ce39c378c5..61222f154e 100644 --- a/model_capability_template_catalog_response.go +++ b/model_capability_template_catalog_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_capability_unsupported_feature_config.go b/model_capability_unsupported_feature_config.go index 8e1a9bd6f0..83dc21a2cd 100644 --- a/model_capability_unsupported_feature_config.go +++ b/model_capability_unsupported_feature_config.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -87,6 +87,11 @@ func (o *CapabilityUnsupportedFeatureConfig) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "capability.UnsupportedFeatureConfig" of the ClassId field. +func (o *CapabilityUnsupportedFeatureConfig) GetDefaultClassId() interface{} { + return "capability.UnsupportedFeatureConfig" +} + // GetObjectType returns the ObjectType field value func (o *CapabilityUnsupportedFeatureConfig) GetObjectType() string { if o == nil { @@ -111,6 +116,11 @@ func (o *CapabilityUnsupportedFeatureConfig) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "capability.UnsupportedFeatureConfig" of the ObjectType field. +func (o *CapabilityUnsupportedFeatureConfig) GetDefaultObjectType() interface{} { + return "capability.UnsupportedFeatureConfig" +} + // GetGeneration returns the Generation field value if set, zero value otherwise. func (o *CapabilityUnsupportedFeatureConfig) GetGeneration() int32 { if o == nil || IsNil(o.Generation) { @@ -164,7 +174,7 @@ func (o *CapabilityUnsupportedFeatureConfig) GetUnsupportdFeaturesOk() ([]string // HasUnsupportdFeatures returns a boolean if a field has been set. func (o *CapabilityUnsupportedFeatureConfig) HasUnsupportdFeatures() bool { - if o != nil && IsNil(o.UnsupportdFeatures) { + if o != nil && !IsNil(o.UnsupportdFeatures) { return true } @@ -194,7 +204,13 @@ func (o CapabilityUnsupportedFeatureConfig) ToMap() (map[string]interface{}, err if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Generation) { toSerialize["Generation"] = o.Generation @@ -219,6 +235,13 @@ func (o *CapabilityUnsupportedFeatureConfig) UnmarshalJSON(data []byte) (err err "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -228,11 +251,23 @@ func (o *CapabilityUnsupportedFeatureConfig) UnmarshalJSON(data []byte) (err err } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type CapabilityUnsupportedFeatureConfigWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_capability_update_constraint_meta.go b/model_capability_update_constraint_meta.go index 631e1b7f7d..ec381fc59d 100644 --- a/model_capability_update_constraint_meta.go +++ b/model_capability_update_constraint_meta.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -259,7 +259,7 @@ func (o *CapabilityUpdateConstraintMeta) GetServerSpecificConstraintOk() ([]Capa // HasServerSpecificConstraint returns a boolean if a field has been set. func (o *CapabilityUpdateConstraintMeta) HasServerSpecificConstraint() bool { - if o != nil && IsNil(o.ServerSpecificConstraint) { + if o != nil && !IsNil(o.ServerSpecificConstraint) { return true } @@ -292,7 +292,7 @@ func (o *CapabilityUpdateConstraintMeta) GetSupportedPlatformsOk() ([]string, bo // HasSupportedPlatforms returns a boolean if a field has been set. func (o *CapabilityUpdateConstraintMeta) HasSupportedPlatforms() bool { - if o != nil && IsNil(o.SupportedPlatforms) { + if o != nil && !IsNil(o.SupportedPlatforms) { return true } @@ -359,6 +359,10 @@ func (o *CapabilityUpdateConstraintMeta) UnmarshalJSON(data []byte) (err error) "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -368,11 +372,23 @@ func (o *CapabilityUpdateConstraintMeta) UnmarshalJSON(data []byte) (err error) } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type CapabilityUpdateConstraintMetaWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. The enum values provides the list of concrete types that can be instantiated from this abstract type. ClassId string `json:"ClassId"` diff --git a/model_capability_update_order_list_type.go b/model_capability_update_order_list_type.go index 1cedb7e3b8..d5a336e8ec 100644 --- a/model_capability_update_order_list_type.go +++ b/model_capability_update_order_list_type.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -87,6 +87,11 @@ func (o *CapabilityUpdateOrderListType) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "capability.UpdateOrderListType" of the ClassId field. +func (o *CapabilityUpdateOrderListType) GetDefaultClassId() interface{} { + return "capability.UpdateOrderListType" +} + // GetObjectType returns the ObjectType field value func (o *CapabilityUpdateOrderListType) GetObjectType() string { if o == nil { @@ -111,6 +116,11 @@ func (o *CapabilityUpdateOrderListType) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "capability.UpdateOrderListType" of the ObjectType field. +func (o *CapabilityUpdateOrderListType) GetDefaultObjectType() interface{} { + return "capability.UpdateOrderListType" +} + // GetInterimVersion returns the InterimVersion field value if set, zero value otherwise. func (o *CapabilityUpdateOrderListType) GetInterimVersion() string { if o == nil || IsNil(o.InterimVersion) { @@ -196,7 +206,7 @@ func (o *CapabilityUpdateOrderListType) GetSupportedModelsOk() ([]string, bool) // HasSupportedModels returns a boolean if a field has been set. func (o *CapabilityUpdateOrderListType) HasSupportedModels() bool { - if o != nil && IsNil(o.SupportedModels) { + if o != nil && !IsNil(o.SupportedModels) { return true } @@ -258,7 +268,13 @@ func (o CapabilityUpdateOrderListType) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.InterimVersion) { toSerialize["InterimVersion"] = o.InterimVersion @@ -289,6 +305,13 @@ func (o *CapabilityUpdateOrderListType) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -298,11 +321,23 @@ func (o *CapabilityUpdateOrderListType) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type CapabilityUpdateOrderListTypeWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_capability_update_order_meta.go b/model_capability_update_order_meta.go index 88f5462238..668da0a4d7 100644 --- a/model_capability_update_order_meta.go +++ b/model_capability_update_order_meta.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -87,6 +87,11 @@ func (o *CapabilityUpdateOrderMeta) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "capability.UpdateOrderMeta" of the ClassId field. +func (o *CapabilityUpdateOrderMeta) GetDefaultClassId() interface{} { + return "capability.UpdateOrderMeta" +} + // GetObjectType returns the ObjectType field value func (o *CapabilityUpdateOrderMeta) GetObjectType() string { if o == nil { @@ -111,6 +116,11 @@ func (o *CapabilityUpdateOrderMeta) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "capability.UpdateOrderMeta" of the ObjectType field. +func (o *CapabilityUpdateOrderMeta) GetDefaultObjectType() interface{} { + return "capability.UpdateOrderMeta" +} + // GetCategory returns the Category field value if set, zero value otherwise. func (o *CapabilityUpdateOrderMeta) GetCategory() string { if o == nil || IsNil(o.Category) { @@ -228,7 +238,7 @@ func (o *CapabilityUpdateOrderMeta) GetUpdateOrderOk() ([]CapabilityUpdateOrderL // HasUpdateOrder returns a boolean if a field has been set. func (o *CapabilityUpdateOrderMeta) HasUpdateOrder() bool { - if o != nil && IsNil(o.UpdateOrder) { + if o != nil && !IsNil(o.UpdateOrder) { return true } @@ -258,7 +268,13 @@ func (o CapabilityUpdateOrderMeta) ToMap() (map[string]interface{}, error) { if errCapabilityCapability != nil { return map[string]interface{}{}, errCapabilityCapability } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Category) { toSerialize["Category"] = o.Category @@ -289,6 +305,13 @@ func (o *CapabilityUpdateOrderMeta) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -298,11 +321,23 @@ func (o *CapabilityUpdateOrderMeta) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type CapabilityUpdateOrderMetaWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_capability_update_order_meta_list.go b/model_capability_update_order_meta_list.go index c74cbf3a72..334a584e5d 100644 --- a/model_capability_update_order_meta_list.go +++ b/model_capability_update_order_meta_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *CapabilityUpdateOrderMetaList) GetResultsOk() ([]CapabilityUpdateOrderM // HasResults returns a boolean if a field has been set. func (o *CapabilityUpdateOrderMetaList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *CapabilityUpdateOrderMetaList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *CapabilityUpdateOrderMetaList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type CapabilityUpdateOrderMetaListWithoutEmbeddedStruct struct { // The total number of 'capability.UpdateOrderMeta' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_capability_update_order_meta_response.go b/model_capability_update_order_meta_response.go index 75a50fa5ed..3f7f98e34e 100644 --- a/model_capability_update_order_meta_response.go +++ b/model_capability_update_order_meta_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_capability_vic_descriptor.go b/model_capability_vic_descriptor.go index 178f8f1fc2..f66936f184 100644 --- a/model_capability_vic_descriptor.go +++ b/model_capability_vic_descriptor.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -84,6 +84,11 @@ func (o *CapabilityVicDescriptor) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "capability.VicDescriptor" of the ClassId field. +func (o *CapabilityVicDescriptor) GetDefaultClassId() interface{} { + return "capability.VicDescriptor" +} + // GetObjectType returns the ObjectType field value func (o *CapabilityVicDescriptor) GetObjectType() string { if o == nil { @@ -108,6 +113,11 @@ func (o *CapabilityVicDescriptor) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "capability.VicDescriptor" of the ObjectType field. +func (o *CapabilityVicDescriptor) GetDefaultObjectType() interface{} { + return "capability.VicDescriptor" +} + // GetModel returns the Model field value if set, zero value otherwise. func (o *CapabilityVicDescriptor) GetModel() string { if o == nil || IsNil(o.Model) { @@ -190,7 +200,13 @@ func (o CapabilityVicDescriptor) ToMap() (map[string]interface{}, error) { if errCapabilityCapability != nil { return map[string]interface{}{}, errCapabilityCapability } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Model) { toSerialize["Model"] = o.Model @@ -215,6 +231,13 @@ func (o *CapabilityVicDescriptor) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -224,11 +247,23 @@ func (o *CapabilityVicDescriptor) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type CapabilityVicDescriptorWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_capability_vic_descriptor_list.go b/model_capability_vic_descriptor_list.go index 2391a33ee2..6a0108892a 100644 --- a/model_capability_vic_descriptor_list.go +++ b/model_capability_vic_descriptor_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *CapabilityVicDescriptorList) GetResultsOk() ([]CapabilityVicDescriptor, // HasResults returns a boolean if a field has been set. func (o *CapabilityVicDescriptorList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *CapabilityVicDescriptorList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *CapabilityVicDescriptorList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type CapabilityVicDescriptorListWithoutEmbeddedStruct struct { // The total number of 'capability.VicDescriptor' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_capability_vic_descriptor_response.go b/model_capability_vic_descriptor_response.go index ba3db91df6..741c3589e0 100644 --- a/model_capability_vic_descriptor_response.go +++ b/model_capability_vic_descriptor_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_catalystsdwan_config_group.go b/model_catalystsdwan_config_group.go index af4aa6391e..6d05785193 100644 --- a/model_catalystsdwan_config_group.go +++ b/model_catalystsdwan_config_group.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -89,6 +89,11 @@ func (o *CatalystsdwanConfigGroup) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "catalystsdwan.ConfigGroup" of the ClassId field. +func (o *CatalystsdwanConfigGroup) GetDefaultClassId() interface{} { + return "catalystsdwan.ConfigGroup" +} + // GetObjectType returns the ObjectType field value func (o *CatalystsdwanConfigGroup) GetObjectType() string { if o == nil { @@ -113,6 +118,11 @@ func (o *CatalystsdwanConfigGroup) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "catalystsdwan.ConfigGroup" of the ObjectType field. +func (o *CatalystsdwanConfigGroup) GetDefaultObjectType() interface{} { + return "catalystsdwan.ConfigGroup" +} + // GetConfigGroupId returns the ConfigGroupId field value if set, zero value otherwise. func (o *CatalystsdwanConfigGroup) GetConfigGroupId() string { if o == nil || IsNil(o.ConfigGroupId) { @@ -166,7 +176,7 @@ func (o *CatalystsdwanConfigGroup) GetDevicesOk() ([]string, bool) { // HasDevices returns a boolean if a field has been set. func (o *CatalystsdwanConfigGroup) HasDevices() bool { - if o != nil && IsNil(o.Devices) { + if o != nil && !IsNil(o.Devices) { return true } @@ -292,7 +302,13 @@ func (o CatalystsdwanConfigGroup) ToMap() (map[string]interface{}, error) { if errCatalystsdwanInventoryEntity != nil { return map[string]interface{}{}, errCatalystsdwanInventoryEntity } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.ConfigGroupId) { toSerialize["ConfigGroupId"] = o.ConfigGroupId @@ -326,6 +342,13 @@ func (o *CatalystsdwanConfigGroup) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -335,11 +358,23 @@ func (o *CatalystsdwanConfigGroup) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type CatalystsdwanConfigGroupWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_catalystsdwan_config_group_list.go b/model_catalystsdwan_config_group_list.go index e72ebfdfd5..0129b9256e 100644 --- a/model_catalystsdwan_config_group_list.go +++ b/model_catalystsdwan_config_group_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *CatalystsdwanConfigGroupList) GetResultsOk() ([]CatalystsdwanConfigGrou // HasResults returns a boolean if a field has been set. func (o *CatalystsdwanConfigGroupList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *CatalystsdwanConfigGroupList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *CatalystsdwanConfigGroupList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type CatalystsdwanConfigGroupListWithoutEmbeddedStruct struct { // The total number of 'catalystsdwan.ConfigGroup' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_catalystsdwan_config_group_response.go b/model_catalystsdwan_config_group_response.go index 6b90a469a7..0192db0cb3 100644 --- a/model_catalystsdwan_config_group_response.go +++ b/model_catalystsdwan_config_group_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_catalystsdwan_inventory_entity.go b/model_catalystsdwan_inventory_entity.go index f105a478f4..724acf7f0d 100644 --- a/model_catalystsdwan_inventory_entity.go +++ b/model_catalystsdwan_inventory_entity.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -184,6 +184,10 @@ func (o *CatalystsdwanInventoryEntity) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -193,11 +197,23 @@ func (o *CatalystsdwanInventoryEntity) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type CatalystsdwanInventoryEntityWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. The enum values provides the list of concrete types that can be instantiated from this abstract type. ClassId string `json:"ClassId"` diff --git a/model_catalystsdwan_policy_group.go b/model_catalystsdwan_policy_group.go index 9ac6a7a92f..61e66cc159 100644 --- a/model_catalystsdwan_policy_group.go +++ b/model_catalystsdwan_policy_group.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -93,6 +93,11 @@ func (o *CatalystsdwanPolicyGroup) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "catalystsdwan.PolicyGroup" of the ClassId field. +func (o *CatalystsdwanPolicyGroup) GetDefaultClassId() interface{} { + return "catalystsdwan.PolicyGroup" +} + // GetObjectType returns the ObjectType field value func (o *CatalystsdwanPolicyGroup) GetObjectType() string { if o == nil { @@ -117,6 +122,11 @@ func (o *CatalystsdwanPolicyGroup) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "catalystsdwan.PolicyGroup" of the ObjectType field. +func (o *CatalystsdwanPolicyGroup) GetDefaultObjectType() interface{} { + return "catalystsdwan.PolicyGroup" +} + // GetDevices returns the Devices field value if set, zero value otherwise (both if not set or set to explicit null). func (o *CatalystsdwanPolicyGroup) GetDevices() []string { if o == nil { @@ -138,7 +148,7 @@ func (o *CatalystsdwanPolicyGroup) GetDevicesOk() ([]string, bool) { // HasDevices returns a boolean if a field has been set. func (o *CatalystsdwanPolicyGroup) HasDevices() bool { - if o != nil && IsNil(o.Devices) { + if o != nil && !IsNil(o.Devices) { return true } @@ -360,7 +370,13 @@ func (o CatalystsdwanPolicyGroup) ToMap() (map[string]interface{}, error) { if errCatalystsdwanInventoryEntity != nil { return map[string]interface{}{}, errCatalystsdwanInventoryEntity } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.Devices != nil { toSerialize["Devices"] = o.Devices @@ -400,6 +416,13 @@ func (o *CatalystsdwanPolicyGroup) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -409,11 +432,23 @@ func (o *CatalystsdwanPolicyGroup) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type CatalystsdwanPolicyGroupWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_catalystsdwan_policy_group_list.go b/model_catalystsdwan_policy_group_list.go index 154cdda881..e638079f46 100644 --- a/model_catalystsdwan_policy_group_list.go +++ b/model_catalystsdwan_policy_group_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *CatalystsdwanPolicyGroupList) GetResultsOk() ([]CatalystsdwanPolicyGrou // HasResults returns a boolean if a field has been set. func (o *CatalystsdwanPolicyGroupList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *CatalystsdwanPolicyGroupList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *CatalystsdwanPolicyGroupList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type CatalystsdwanPolicyGroupListWithoutEmbeddedStruct struct { // The total number of 'catalystsdwan.PolicyGroup' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_catalystsdwan_policy_group_response.go b/model_catalystsdwan_policy_group_response.go index dca035ccc6..cda866636c 100644 --- a/model_catalystsdwan_policy_group_response.go +++ b/model_catalystsdwan_policy_group_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_catalystsdwan_vedge_device.go b/model_catalystsdwan_vedge_device.go index fda7da9072..5edd773e79 100644 --- a/model_catalystsdwan_vedge_device.go +++ b/model_catalystsdwan_vedge_device.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -103,6 +103,11 @@ func (o *CatalystsdwanVedgeDevice) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "catalystsdwan.VedgeDevice" of the ClassId field. +func (o *CatalystsdwanVedgeDevice) GetDefaultClassId() interface{} { + return "catalystsdwan.VedgeDevice" +} + // GetObjectType returns the ObjectType field value func (o *CatalystsdwanVedgeDevice) GetObjectType() string { if o == nil { @@ -127,6 +132,11 @@ func (o *CatalystsdwanVedgeDevice) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "catalystsdwan.VedgeDevice" of the ObjectType field. +func (o *CatalystsdwanVedgeDevice) GetDefaultObjectType() interface{} { + return "catalystsdwan.VedgeDevice" +} + // GetConfigStatusMessage returns the ConfigStatusMessage field value if set, zero value otherwise. func (o *CatalystsdwanVedgeDevice) GetConfigStatusMessage() string { if o == nil || IsNil(o.ConfigStatusMessage) { @@ -540,7 +550,13 @@ func (o CatalystsdwanVedgeDevice) ToMap() (map[string]interface{}, error) { if errEquipmentAbstractDevice != nil { return map[string]interface{}{}, errEquipmentAbstractDevice } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.ConfigStatusMessage) { toSerialize["ConfigStatusMessage"] = o.ConfigStatusMessage @@ -595,6 +611,13 @@ func (o *CatalystsdwanVedgeDevice) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -604,11 +627,23 @@ func (o *CatalystsdwanVedgeDevice) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type CatalystsdwanVedgeDeviceWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_catalystsdwan_vedge_device_list.go b/model_catalystsdwan_vedge_device_list.go index 7928566feb..8eb4f3b0d6 100644 --- a/model_catalystsdwan_vedge_device_list.go +++ b/model_catalystsdwan_vedge_device_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *CatalystsdwanVedgeDeviceList) GetResultsOk() ([]CatalystsdwanVedgeDevic // HasResults returns a boolean if a field has been set. func (o *CatalystsdwanVedgeDeviceList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *CatalystsdwanVedgeDeviceList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *CatalystsdwanVedgeDeviceList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type CatalystsdwanVedgeDeviceListWithoutEmbeddedStruct struct { // The total number of 'catalystsdwan.VedgeDevice' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_catalystsdwan_vedge_device_response.go b/model_catalystsdwan_vedge_device_response.go index 52d786b4bd..b2aa4bc265 100644 --- a/model_catalystsdwan_vedge_device_response.go +++ b/model_catalystsdwan_vedge_device_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_certificatemanagement_certificate_base.go b/model_certificatemanagement_certificate_base.go index dbd648c1e7..5dff152249 100644 --- a/model_certificatemanagement_certificate_base.go +++ b/model_certificatemanagement_certificate_base.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -225,6 +225,10 @@ func (o *CertificatemanagementCertificateBase) UnmarshalJSON(data []byte) (err e "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -234,11 +238,23 @@ func (o *CertificatemanagementCertificateBase) UnmarshalJSON(data []byte) (err e } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type CertificatemanagementCertificateBaseWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. The enum values provides the list of concrete types that can be instantiated from this abstract type. ClassId string `json:"ClassId"` diff --git a/model_certificatemanagement_imc.go b/model_certificatemanagement_imc.go index 5fd7a8305b..0a8efa7993 100644 --- a/model_certificatemanagement_imc.go +++ b/model_certificatemanagement_imc.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -92,6 +92,11 @@ func (o *CertificatemanagementImc) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "certificatemanagement.Imc" of the ClassId field. +func (o *CertificatemanagementImc) GetDefaultClassId() interface{} { + return "certificatemanagement.Imc" +} + // GetObjectType returns the ObjectType field value func (o *CertificatemanagementImc) GetObjectType() string { if o == nil { @@ -116,6 +121,11 @@ func (o *CertificatemanagementImc) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "certificatemanagement.Imc" of the ObjectType field. +func (o *CertificatemanagementImc) GetDefaultObjectType() interface{} { + return "certificatemanagement.Imc" +} + // GetCertType returns the CertType field value if set, zero value otherwise. func (o *CertificatemanagementImc) GetCertType() string { if o == nil || IsNil(o.CertType) { @@ -230,7 +240,13 @@ func (o CertificatemanagementImc) ToMap() (map[string]interface{}, error) { if errCertificatemanagementCertificateBase != nil { return map[string]interface{}{}, errCertificatemanagementCertificateBase } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.CertType) { toSerialize["CertType"] = o.CertType @@ -258,6 +274,13 @@ func (o *CertificatemanagementImc) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -267,11 +290,23 @@ func (o *CertificatemanagementImc) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type CertificatemanagementImcWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_certificatemanagement_policy.go b/model_certificatemanagement_policy.go index 7d65905d91..0d36217c6c 100644 --- a/model_certificatemanagement_policy.go +++ b/model_certificatemanagement_policy.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -84,6 +84,11 @@ func (o *CertificatemanagementPolicy) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "certificatemanagement.Policy" of the ClassId field. +func (o *CertificatemanagementPolicy) GetDefaultClassId() interface{} { + return "certificatemanagement.Policy" +} + // GetObjectType returns the ObjectType field value func (o *CertificatemanagementPolicy) GetObjectType() string { if o == nil { @@ -108,6 +113,11 @@ func (o *CertificatemanagementPolicy) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "certificatemanagement.Policy" of the ObjectType field. +func (o *CertificatemanagementPolicy) GetDefaultObjectType() interface{} { + return "certificatemanagement.Policy" +} + // GetCertificates returns the Certificates field value if set, zero value otherwise (both if not set or set to explicit null). func (o *CertificatemanagementPolicy) GetCertificates() []CertificatemanagementCertificateBase { if o == nil { @@ -129,7 +139,7 @@ func (o *CertificatemanagementPolicy) GetCertificatesOk() ([]Certificatemanageme // HasCertificates returns a boolean if a field has been set. func (o *CertificatemanagementPolicy) HasCertificates() bool { - if o != nil && IsNil(o.Certificates) { + if o != nil && !IsNil(o.Certificates) { return true } @@ -205,7 +215,7 @@ func (o *CertificatemanagementPolicy) GetProfilesOk() ([]PolicyAbstractConfigPro // HasProfiles returns a boolean if a field has been set. func (o *CertificatemanagementPolicy) HasProfiles() bool { - if o != nil && IsNil(o.Profiles) { + if o != nil && !IsNil(o.Profiles) { return true } @@ -235,7 +245,13 @@ func (o CertificatemanagementPolicy) ToMap() (map[string]interface{}, error) { if errPolicyAbstractPolicy != nil { return map[string]interface{}{}, errPolicyAbstractPolicy } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.Certificates != nil { toSerialize["Certificates"] = o.Certificates @@ -263,6 +279,13 @@ func (o *CertificatemanagementPolicy) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -272,11 +295,23 @@ func (o *CertificatemanagementPolicy) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type CertificatemanagementPolicyWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_certificatemanagement_policy_inventory.go b/model_certificatemanagement_policy_inventory.go index 0f1f5a7a58..3bc686a152 100644 --- a/model_certificatemanagement_policy_inventory.go +++ b/model_certificatemanagement_policy_inventory.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -82,6 +82,11 @@ func (o *CertificatemanagementPolicyInventory) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "certificatemanagement.PolicyInventory" of the ClassId field. +func (o *CertificatemanagementPolicyInventory) GetDefaultClassId() interface{} { + return "certificatemanagement.PolicyInventory" +} + // GetObjectType returns the ObjectType field value func (o *CertificatemanagementPolicyInventory) GetObjectType() string { if o == nil { @@ -106,6 +111,11 @@ func (o *CertificatemanagementPolicyInventory) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "certificatemanagement.PolicyInventory" of the ObjectType field. +func (o *CertificatemanagementPolicyInventory) GetDefaultObjectType() interface{} { + return "certificatemanagement.PolicyInventory" +} + // GetCertificates returns the Certificates field value if set, zero value otherwise (both if not set or set to explicit null). func (o *CertificatemanagementPolicyInventory) GetCertificates() []CertificatemanagementCertificateBase { if o == nil { @@ -127,7 +137,7 @@ func (o *CertificatemanagementPolicyInventory) GetCertificatesOk() ([]Certificat // HasCertificates returns a boolean if a field has been set. func (o *CertificatemanagementPolicyInventory) HasCertificates() bool { - if o != nil && IsNil(o.Certificates) { + if o != nil && !IsNil(o.Certificates) { return true } @@ -200,7 +210,13 @@ func (o CertificatemanagementPolicyInventory) ToMap() (map[string]interface{}, e if errPolicyAbstractPolicyInventory != nil { return map[string]interface{}{}, errPolicyAbstractPolicyInventory } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.Certificates != nil { toSerialize["Certificates"] = o.Certificates @@ -225,6 +241,13 @@ func (o *CertificatemanagementPolicyInventory) UnmarshalJSON(data []byte) (err e "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -234,11 +257,23 @@ func (o *CertificatemanagementPolicyInventory) UnmarshalJSON(data []byte) (err e } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type CertificatemanagementPolicyInventoryWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_certificatemanagement_policy_inventory_list.go b/model_certificatemanagement_policy_inventory_list.go index ab193e0e15..6e4cb77864 100644 --- a/model_certificatemanagement_policy_inventory_list.go +++ b/model_certificatemanagement_policy_inventory_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *CertificatemanagementPolicyInventoryList) GetResultsOk() ([]Certificate // HasResults returns a boolean if a field has been set. func (o *CertificatemanagementPolicyInventoryList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *CertificatemanagementPolicyInventoryList) UnmarshalJSON(data []byte) (e "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *CertificatemanagementPolicyInventoryList) UnmarshalJSON(data []byte) (e } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type CertificatemanagementPolicyInventoryListWithoutEmbeddedStruct struct { // The total number of 'certificatemanagement.PolicyInventory' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_certificatemanagement_policy_inventory_response.go b/model_certificatemanagement_policy_inventory_response.go index 5843a3ff71..9403d15647 100644 --- a/model_certificatemanagement_policy_inventory_response.go +++ b/model_certificatemanagement_policy_inventory_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_certificatemanagement_policy_list.go b/model_certificatemanagement_policy_list.go index d66d9847c5..2ab53aeef7 100644 --- a/model_certificatemanagement_policy_list.go +++ b/model_certificatemanagement_policy_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *CertificatemanagementPolicyList) GetResultsOk() ([]Certificatemanagemen // HasResults returns a boolean if a field has been set. func (o *CertificatemanagementPolicyList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *CertificatemanagementPolicyList) UnmarshalJSON(data []byte) (err error) "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *CertificatemanagementPolicyList) UnmarshalJSON(data []byte) (err error) } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type CertificatemanagementPolicyListWithoutEmbeddedStruct struct { // The total number of 'certificatemanagement.Policy' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_certificatemanagement_policy_response.go b/model_certificatemanagement_policy_response.go index e21ef1792e..8c315d3f2c 100644 --- a/model_certificatemanagement_policy_response.go +++ b/model_certificatemanagement_policy_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_certificatemanagement_root_ca_certificate.go b/model_certificatemanagement_root_ca_certificate.go index 2b3f6e053d..0881eeea37 100644 --- a/model_certificatemanagement_root_ca_certificate.go +++ b/model_certificatemanagement_root_ca_certificate.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -29,7 +29,7 @@ type CertificatemanagementRootCaCertificate struct { // The fully-qualified name of the instantiated, concrete type. The value should be the same as the 'ClassId' property. ObjectType string `json:"ObjectType"` // A name that helps identify a certificate. It can be any string that adheres to the following constraints. It should start and end with an alphanumeric character. It can have underscores and hyphens. It cannot be more than 30 characters. - CertificateName *string `json:"CertificateName,omitempty"` + CertificateName *string `json:"CertificateName,omitempty" validate:"regexp=((^[a-zA-Z0-9]$){1,30}|(^(([a-zA-Z0-9])([a-zA-Z0-9_\\\\-]{0,28})([a-zA-Z0-9]))$))"` AdditionalProperties map[string]interface{} } @@ -84,6 +84,11 @@ func (o *CertificatemanagementRootCaCertificate) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "certificatemanagement.RootCaCertificate" of the ClassId field. +func (o *CertificatemanagementRootCaCertificate) GetDefaultClassId() interface{} { + return "certificatemanagement.RootCaCertificate" +} + // GetObjectType returns the ObjectType field value func (o *CertificatemanagementRootCaCertificate) GetObjectType() string { if o == nil { @@ -108,6 +113,11 @@ func (o *CertificatemanagementRootCaCertificate) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "certificatemanagement.RootCaCertificate" of the ObjectType field. +func (o *CertificatemanagementRootCaCertificate) GetDefaultObjectType() interface{} { + return "certificatemanagement.RootCaCertificate" +} + // GetCertificateName returns the CertificateName field value if set, zero value otherwise. func (o *CertificatemanagementRootCaCertificate) GetCertificateName() string { if o == nil || IsNil(o.CertificateName) { @@ -158,7 +168,13 @@ func (o CertificatemanagementRootCaCertificate) ToMap() (map[string]interface{}, if errCertificatemanagementCertificateBase != nil { return map[string]interface{}{}, errCertificatemanagementCertificateBase } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.CertificateName) { toSerialize["CertificateName"] = o.CertificateName @@ -180,6 +196,13 @@ func (o *CertificatemanagementRootCaCertificate) UnmarshalJSON(data []byte) (err "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -189,18 +212,30 @@ func (o *CertificatemanagementRootCaCertificate) UnmarshalJSON(data []byte) (err } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type CertificatemanagementRootCaCertificateWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` // The fully-qualified name of the instantiated, concrete type. The value should be the same as the 'ClassId' property. ObjectType string `json:"ObjectType"` // A name that helps identify a certificate. It can be any string that adheres to the following constraints. It should start and end with an alphanumeric character. It can have underscores and hyphens. It cannot be more than 30 characters. - CertificateName *string `json:"CertificateName,omitempty"` + CertificateName *string `json:"CertificateName,omitempty" validate:"regexp=((^[a-zA-Z0-9]$){1,30}|(^(([a-zA-Z0-9])([a-zA-Z0-9_\\\\-]{0,28})([a-zA-Z0-9]))$))"` } varCertificatemanagementRootCaCertificateWithoutEmbeddedStruct := CertificatemanagementRootCaCertificateWithoutEmbeddedStruct{} diff --git a/model_chassis_base_profile.go b/model_chassis_base_profile.go index b3ae6253ab..f332ead165 100644 --- a/model_chassis_base_profile.go +++ b/model_chassis_base_profile.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -209,7 +209,7 @@ func (o *ChassisBaseProfile) GetIomProfilesOk() ([]ChassisIomProfileRelationship // HasIomProfiles returns a boolean if a field has been set. func (o *ChassisBaseProfile) HasIomProfiles() bool { - if o != nil && IsNil(o.IomProfiles) { + if o != nil && !IsNil(o.IomProfiles) { return true } @@ -267,6 +267,10 @@ func (o *ChassisBaseProfile) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -276,11 +280,23 @@ func (o *ChassisBaseProfile) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type ChassisBaseProfileWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. The enum values provides the list of concrete types that can be instantiated from this abstract type. ClassId string `json:"ClassId"` diff --git a/model_chassis_base_profile_relationship.go b/model_chassis_base_profile_relationship.go index 8157f0ea32..aff29d2d18 100644 --- a/model_chassis_base_profile_relationship.go +++ b/model_chassis_base_profile_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_chassis_config_change_detail.go b/model_chassis_config_change_detail.go index 175849d344..d9ae164eb5 100644 --- a/model_chassis_config_change_detail.go +++ b/model_chassis_config_change_detail.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -86,6 +86,11 @@ func (o *ChassisConfigChangeDetail) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "chassis.ConfigChangeDetail" of the ClassId field. +func (o *ChassisConfigChangeDetail) GetDefaultClassId() interface{} { + return "chassis.ConfigChangeDetail" +} + // GetObjectType returns the ObjectType field value func (o *ChassisConfigChangeDetail) GetObjectType() string { if o == nil { @@ -110,6 +115,11 @@ func (o *ChassisConfigChangeDetail) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "chassis.ConfigChangeDetail" of the ObjectType field. +func (o *ChassisConfigChangeDetail) GetDefaultObjectType() interface{} { + return "chassis.ConfigChangeDetail" +} + // GetIomProfile returns the IomProfile field value if set, zero value otherwise (both if not set or set to explicit null). func (o *ChassisConfigChangeDetail) GetIomProfile() ChassisIomProfileRelationship { if o == nil || IsNil(o.IomProfile.Get()) { @@ -214,7 +224,13 @@ func (o ChassisConfigChangeDetail) ToMap() (map[string]interface{}, error) { if errPolicyAbstractConfigChangeDetail != nil { return map[string]interface{}{}, errPolicyAbstractConfigChangeDetail } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.IomProfile.IsSet() { toSerialize["IomProfile"] = o.IomProfile.Get() @@ -239,6 +255,13 @@ func (o *ChassisConfigChangeDetail) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -248,11 +271,23 @@ func (o *ChassisConfigChangeDetail) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type ChassisConfigChangeDetailWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_chassis_config_change_detail_list.go b/model_chassis_config_change_detail_list.go index ad49064aca..26ddb21e1b 100644 --- a/model_chassis_config_change_detail_list.go +++ b/model_chassis_config_change_detail_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *ChassisConfigChangeDetailList) GetResultsOk() ([]ChassisConfigChangeDet // HasResults returns a boolean if a field has been set. func (o *ChassisConfigChangeDetailList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *ChassisConfigChangeDetailList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *ChassisConfigChangeDetailList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type ChassisConfigChangeDetailListWithoutEmbeddedStruct struct { // The total number of 'chassis.ConfigChangeDetail' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_chassis_config_change_detail_relationship.go b/model_chassis_config_change_detail_relationship.go index 7295df4717..2b8670f29e 100644 --- a/model_chassis_config_change_detail_relationship.go +++ b/model_chassis_config_change_detail_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_chassis_config_change_detail_response.go b/model_chassis_config_change_detail_response.go index dfdee581e3..690be64313 100644 --- a/model_chassis_config_change_detail_response.go +++ b/model_chassis_config_change_detail_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_chassis_config_import.go b/model_chassis_config_import.go index 12b22deb1f..5723aabd83 100644 --- a/model_chassis_config_import.go +++ b/model_chassis_config_import.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -31,10 +31,10 @@ type ChassisConfigImport struct { // Description of the imported profile. Description *string `json:"Description,omitempty"` // Policy prefix for the policies of the imported chassis profile. - PolicyPrefix *string `json:"PolicyPrefix,omitempty"` + PolicyPrefix *string `json:"PolicyPrefix,omitempty" validate:"regexp=^[a-zA-Z0-9_.:-]{1,32}$"` PolicyTypes []string `json:"PolicyTypes,omitempty"` // Profile name for the imported chassis profile. - ProfileName *string `json:"ProfileName,omitempty"` + ProfileName *string `json:"ProfileName,omitempty" validate:"regexp=^[a-zA-Z0-9_.:-]{1,64}$"` Chassis NullableEquipmentChassisRelationship `json:"Chassis,omitempty"` ChassisProfile NullableChassisProfileRelationship `json:"ChassisProfile,omitempty"` Organization NullableOrganizationOrganizationRelationship `json:"Organization,omitempty"` @@ -90,6 +90,11 @@ func (o *ChassisConfigImport) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "chassis.ConfigImport" of the ClassId field. +func (o *ChassisConfigImport) GetDefaultClassId() interface{} { + return "chassis.ConfigImport" +} + // GetObjectType returns the ObjectType field value func (o *ChassisConfigImport) GetObjectType() string { if o == nil { @@ -114,6 +119,11 @@ func (o *ChassisConfigImport) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "chassis.ConfigImport" of the ObjectType field. +func (o *ChassisConfigImport) GetDefaultObjectType() interface{} { + return "chassis.ConfigImport" +} + // GetDescription returns the Description field value if set, zero value otherwise. func (o *ChassisConfigImport) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -199,7 +209,7 @@ func (o *ChassisConfigImport) GetPolicyTypesOk() ([]string, bool) { // HasPolicyTypes returns a boolean if a field has been set. func (o *ChassisConfigImport) HasPolicyTypes() bool { - if o != nil && IsNil(o.PolicyTypes) { + if o != nil && !IsNil(o.PolicyTypes) { return true } @@ -390,7 +400,13 @@ func (o ChassisConfigImport) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Description) { toSerialize["Description"] = o.Description @@ -430,6 +446,13 @@ func (o *ChassisConfigImport) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -439,11 +462,23 @@ func (o *ChassisConfigImport) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type ChassisConfigImportWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` @@ -452,10 +487,10 @@ func (o *ChassisConfigImport) UnmarshalJSON(data []byte) (err error) { // Description of the imported profile. Description *string `json:"Description,omitempty"` // Policy prefix for the policies of the imported chassis profile. - PolicyPrefix *string `json:"PolicyPrefix,omitempty"` + PolicyPrefix *string `json:"PolicyPrefix,omitempty" validate:"regexp=^[a-zA-Z0-9_.:-]{1,32}$"` PolicyTypes []string `json:"PolicyTypes,omitempty"` // Profile name for the imported chassis profile. - ProfileName *string `json:"ProfileName,omitempty"` + ProfileName *string `json:"ProfileName,omitempty" validate:"regexp=^[a-zA-Z0-9_.:-]{1,64}$"` Chassis NullableEquipmentChassisRelationship `json:"Chassis,omitempty"` ChassisProfile NullableChassisProfileRelationship `json:"ChassisProfile,omitempty"` Organization NullableOrganizationOrganizationRelationship `json:"Organization,omitempty"` diff --git a/model_chassis_config_import_list.go b/model_chassis_config_import_list.go index e3be07aeac..a2f9a735f1 100644 --- a/model_chassis_config_import_list.go +++ b/model_chassis_config_import_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *ChassisConfigImportList) GetResultsOk() ([]ChassisConfigImport, bool) { // HasResults returns a boolean if a field has been set. func (o *ChassisConfigImportList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *ChassisConfigImportList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *ChassisConfigImportList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type ChassisConfigImportListWithoutEmbeddedStruct struct { // The total number of 'chassis.ConfigImport' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_chassis_config_import_response.go b/model_chassis_config_import_response.go index 62e7122a0a..74a54d9fc6 100644 --- a/model_chassis_config_import_response.go +++ b/model_chassis_config_import_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_chassis_config_result.go b/model_chassis_config_result.go index 414b9634ab..a8d690e5c3 100644 --- a/model_chassis_config_result.go +++ b/model_chassis_config_result.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -84,6 +84,11 @@ func (o *ChassisConfigResult) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "chassis.ConfigResult" of the ClassId field. +func (o *ChassisConfigResult) GetDefaultClassId() interface{} { + return "chassis.ConfigResult" +} + // GetObjectType returns the ObjectType field value func (o *ChassisConfigResult) GetObjectType() string { if o == nil { @@ -108,6 +113,11 @@ func (o *ChassisConfigResult) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "chassis.ConfigResult" of the ObjectType field. +func (o *ChassisConfigResult) GetDefaultObjectType() interface{} { + return "chassis.ConfigResult" +} + // GetIomProfile returns the IomProfile field value if set, zero value otherwise (both if not set or set to explicit null). func (o *ChassisConfigResult) GetIomProfile() ChassisIomProfileRelationship { if o == nil || IsNil(o.IomProfile.Get()) { @@ -215,7 +225,7 @@ func (o *ChassisConfigResult) GetResultEntriesOk() ([]ChassisConfigResultEntryRe // HasResultEntries returns a boolean if a field has been set. func (o *ChassisConfigResult) HasResultEntries() bool { - if o != nil && IsNil(o.ResultEntries) { + if o != nil && !IsNil(o.ResultEntries) { return true } @@ -245,7 +255,13 @@ func (o ChassisConfigResult) ToMap() (map[string]interface{}, error) { if errPolicyAbstractConfigResult != nil { return map[string]interface{}{}, errPolicyAbstractConfigResult } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.IomProfile.IsSet() { toSerialize["IomProfile"] = o.IomProfile.Get() @@ -273,6 +289,13 @@ func (o *ChassisConfigResult) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -282,11 +305,23 @@ func (o *ChassisConfigResult) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type ChassisConfigResultWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_chassis_config_result_entry.go b/model_chassis_config_result_entry.go index 47d044d351..a83bc0c1af 100644 --- a/model_chassis_config_result_entry.go +++ b/model_chassis_config_result_entry.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -81,6 +81,11 @@ func (o *ChassisConfigResultEntry) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "chassis.ConfigResultEntry" of the ClassId field. +func (o *ChassisConfigResultEntry) GetDefaultClassId() interface{} { + return "chassis.ConfigResultEntry" +} + // GetObjectType returns the ObjectType field value func (o *ChassisConfigResultEntry) GetObjectType() string { if o == nil { @@ -105,6 +110,11 @@ func (o *ChassisConfigResultEntry) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "chassis.ConfigResultEntry" of the ObjectType field. +func (o *ChassisConfigResultEntry) GetDefaultObjectType() interface{} { + return "chassis.ConfigResultEntry" +} + // GetConfigResult returns the ConfigResult field value if set, zero value otherwise (both if not set or set to explicit null). func (o *ChassisConfigResultEntry) GetConfigResult() ChassisConfigResultRelationship { if o == nil || IsNil(o.ConfigResult.Get()) { @@ -166,7 +176,13 @@ func (o ChassisConfigResultEntry) ToMap() (map[string]interface{}, error) { if errPolicyAbstractConfigResultEntry != nil { return map[string]interface{}{}, errPolicyAbstractConfigResultEntry } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.ConfigResult.IsSet() { toSerialize["ConfigResult"] = o.ConfigResult.Get() @@ -188,6 +204,13 @@ func (o *ChassisConfigResultEntry) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -197,11 +220,23 @@ func (o *ChassisConfigResultEntry) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type ChassisConfigResultEntryWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_chassis_config_result_entry_list.go b/model_chassis_config_result_entry_list.go index 90ced46d65..0306693945 100644 --- a/model_chassis_config_result_entry_list.go +++ b/model_chassis_config_result_entry_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *ChassisConfigResultEntryList) GetResultsOk() ([]ChassisConfigResultEntr // HasResults returns a boolean if a field has been set. func (o *ChassisConfigResultEntryList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *ChassisConfigResultEntryList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *ChassisConfigResultEntryList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type ChassisConfigResultEntryListWithoutEmbeddedStruct struct { // The total number of 'chassis.ConfigResultEntry' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_chassis_config_result_entry_relationship.go b/model_chassis_config_result_entry_relationship.go index 264341090f..d97498b9d0 100644 --- a/model_chassis_config_result_entry_relationship.go +++ b/model_chassis_config_result_entry_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_chassis_config_result_entry_response.go b/model_chassis_config_result_entry_response.go index 0360d3db9a..68acdb18c0 100644 --- a/model_chassis_config_result_entry_response.go +++ b/model_chassis_config_result_entry_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_chassis_config_result_list.go b/model_chassis_config_result_list.go index cd1ec4e98a..a832df2d2d 100644 --- a/model_chassis_config_result_list.go +++ b/model_chassis_config_result_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *ChassisConfigResultList) GetResultsOk() ([]ChassisConfigResult, bool) { // HasResults returns a boolean if a field has been set. func (o *ChassisConfigResultList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *ChassisConfigResultList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *ChassisConfigResultList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type ChassisConfigResultListWithoutEmbeddedStruct struct { // The total number of 'chassis.ConfigResult' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_chassis_config_result_relationship.go b/model_chassis_config_result_relationship.go index 9646f84075..7ae88bcc4c 100644 --- a/model_chassis_config_result_relationship.go +++ b/model_chassis_config_result_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_chassis_config_result_response.go b/model_chassis_config_result_response.go index 596ad9e495..6a251545ba 100644 --- a/model_chassis_config_result_response.go +++ b/model_chassis_config_result_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_chassis_iom_profile.go b/model_chassis_iom_profile.go index 5e9bd6cfa0..a883c7ac19 100644 --- a/model_chassis_iom_profile.go +++ b/model_chassis_iom_profile.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -96,6 +96,11 @@ func (o *ChassisIomProfile) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "chassis.IomProfile" of the ClassId field. +func (o *ChassisIomProfile) GetDefaultClassId() interface{} { + return "chassis.IomProfile" +} + // GetObjectType returns the ObjectType field value func (o *ChassisIomProfile) GetObjectType() string { if o == nil { @@ -120,6 +125,11 @@ func (o *ChassisIomProfile) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "chassis.IomProfile" of the ObjectType field. +func (o *ChassisIomProfile) GetDefaultObjectType() interface{} { + return "chassis.IomProfile" +} + // GetConfigChanges returns the ConfigChanges field value if set, zero value otherwise (both if not set or set to explicit null). func (o *ChassisIomProfile) GetConfigChanges() PolicyConfigChange { if o == nil || IsNil(o.ConfigChanges.Get()) { @@ -216,7 +226,7 @@ func (o *ChassisIomProfile) GetConfigChangeDetailsOk() ([]ChassisConfigChangeDet // HasConfigChangeDetails returns a boolean if a field has been set. func (o *ChassisIomProfile) HasConfigChangeDetails() bool { - if o != nil && IsNil(o.ConfigChangeDetails) { + if o != nil && !IsNil(o.ConfigChangeDetails) { return true } @@ -375,7 +385,13 @@ func (o ChassisIomProfile) ToMap() (map[string]interface{}, error) { if errPolicyAbstractConfigProfile != nil { return map[string]interface{}{}, errPolicyAbstractConfigProfile } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.ConfigChanges.IsSet() { toSerialize["ConfigChanges"] = o.ConfigChanges.Get() @@ -412,6 +428,13 @@ func (o *ChassisIomProfile) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -421,11 +444,23 @@ func (o *ChassisIomProfile) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type ChassisIomProfileWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_chassis_iom_profile_list.go b/model_chassis_iom_profile_list.go index 6657f8bcbd..33a95ed0f0 100644 --- a/model_chassis_iom_profile_list.go +++ b/model_chassis_iom_profile_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *ChassisIomProfileList) GetResultsOk() ([]ChassisIomProfile, bool) { // HasResults returns a boolean if a field has been set. func (o *ChassisIomProfileList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *ChassisIomProfileList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *ChassisIomProfileList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type ChassisIomProfileListWithoutEmbeddedStruct struct { // The total number of 'chassis.IomProfile' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_chassis_iom_profile_relationship.go b/model_chassis_iom_profile_relationship.go index 071c858735..dd56586234 100644 --- a/model_chassis_iom_profile_relationship.go +++ b/model_chassis_iom_profile_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_chassis_iom_profile_response.go b/model_chassis_iom_profile_response.go index 622cd8e005..8a400501f9 100644 --- a/model_chassis_iom_profile_response.go +++ b/model_chassis_iom_profile_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_chassis_profile.go b/model_chassis_profile.go index 7f7e0a3037..685e8638af 100644 --- a/model_chassis_profile.go +++ b/model_chassis_profile.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -31,7 +31,7 @@ type ChassisProfile struct { ConfigChangeContext NullablePolicyConfigChangeContext `json:"ConfigChangeContext,omitempty"` ConfigChanges NullablePolicyConfigChange `json:"ConfigChanges,omitempty"` // User label assigned to the chassis profile. - UserLabel *string `json:"UserLabel,omitempty"` + UserLabel *string `json:"UserLabel,omitempty" validate:"regexp=^[ !#$%&\\\\(\\\\)\\\\*\\\\+,\\\\-\\\\.\\/:;\\\\?@\\\\[\\\\]_\\\\{\\\\|\\\\}~a-zA-Z0-9]*$"` AssignedChassis NullableEquipmentChassisRelationship `json:"AssignedChassis,omitempty"` AssociatedChassis NullableEquipmentChassisRelationship `json:"AssociatedChassis,omitempty"` // An array of relationships to chassisConfigChangeDetail resources. @@ -97,6 +97,11 @@ func (o *ChassisProfile) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "chassis.Profile" of the ClassId field. +func (o *ChassisProfile) GetDefaultClassId() interface{} { + return "chassis.Profile" +} + // GetObjectType returns the ObjectType field value func (o *ChassisProfile) GetObjectType() string { if o == nil { @@ -121,6 +126,11 @@ func (o *ChassisProfile) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "chassis.Profile" of the ObjectType field. +func (o *ChassisProfile) GetDefaultObjectType() interface{} { + return "chassis.Profile" +} + // GetConfigChangeContext returns the ConfigChangeContext field value if set, zero value otherwise (both if not set or set to explicit null). func (o *ChassisProfile) GetConfigChangeContext() PolicyConfigChangeContext { if o == nil || IsNil(o.ConfigChangeContext.Get()) { @@ -346,7 +356,7 @@ func (o *ChassisProfile) GetConfigChangeDetailsOk() ([]ChassisConfigChangeDetail // HasConfigChangeDetails returns a boolean if a field has been set. func (o *ChassisProfile) HasConfigChangeDetails() bool { - if o != nil && IsNil(o.ConfigChangeDetails) { + if o != nil && !IsNil(o.ConfigChangeDetails) { return true } @@ -422,7 +432,7 @@ func (o *ChassisProfile) GetRunningWorkflowsOk() ([]WorkflowWorkflowInfoRelation // HasRunningWorkflows returns a boolean if a field has been set. func (o *ChassisProfile) HasRunningWorkflows() bool { - if o != nil && IsNil(o.RunningWorkflows) { + if o != nil && !IsNil(o.RunningWorkflows) { return true } @@ -452,7 +462,13 @@ func (o ChassisProfile) ToMap() (map[string]interface{}, error) { if errChassisBaseProfile != nil { return map[string]interface{}{}, errChassisBaseProfile } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.ConfigChangeContext.IsSet() { toSerialize["ConfigChangeContext"] = o.ConfigChangeContext.Get() @@ -495,6 +511,13 @@ func (o *ChassisProfile) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -504,11 +527,23 @@ func (o *ChassisProfile) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type ChassisProfileWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` @@ -517,7 +552,7 @@ func (o *ChassisProfile) UnmarshalJSON(data []byte) (err error) { ConfigChangeContext NullablePolicyConfigChangeContext `json:"ConfigChangeContext,omitempty"` ConfigChanges NullablePolicyConfigChange `json:"ConfigChanges,omitempty"` // User label assigned to the chassis profile. - UserLabel *string `json:"UserLabel,omitempty"` + UserLabel *string `json:"UserLabel,omitempty" validate:"regexp=^[ !#$%&\\\\(\\\\)\\\\*\\\\+,\\\\-\\\\.\\/:;\\\\?@\\\\[\\\\]_\\\\{\\\\|\\\\}~a-zA-Z0-9]*$"` AssignedChassis NullableEquipmentChassisRelationship `json:"AssignedChassis,omitempty"` AssociatedChassis NullableEquipmentChassisRelationship `json:"AssociatedChassis,omitempty"` // An array of relationships to chassisConfigChangeDetail resources. diff --git a/model_chassis_profile_list.go b/model_chassis_profile_list.go index 4ba72c75d8..f079ac0367 100644 --- a/model_chassis_profile_list.go +++ b/model_chassis_profile_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *ChassisProfileList) GetResultsOk() ([]ChassisProfile, bool) { // HasResults returns a boolean if a field has been set. func (o *ChassisProfileList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *ChassisProfileList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *ChassisProfileList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type ChassisProfileListWithoutEmbeddedStruct struct { // The total number of 'chassis.Profile' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_chassis_profile_relationship.go b/model_chassis_profile_relationship.go index 99379c9f99..23fb06943b 100644 --- a/model_chassis_profile_relationship.go +++ b/model_chassis_profile_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_chassis_profile_response.go b/model_chassis_profile_response.go index 7a9fded31d..c74546e6a9 100644 --- a/model_chassis_profile_response.go +++ b/model_chassis_profile_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_chassis_profile_template.go b/model_chassis_profile_template.go index ec3c8c7e4f..df7832c827 100644 --- a/model_chassis_profile_template.go +++ b/model_chassis_profile_template.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -89,6 +89,11 @@ func (o *ChassisProfileTemplate) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "chassis.ProfileTemplate" of the ClassId field. +func (o *ChassisProfileTemplate) GetDefaultClassId() interface{} { + return "chassis.ProfileTemplate" +} + // GetObjectType returns the ObjectType field value func (o *ChassisProfileTemplate) GetObjectType() string { if o == nil { @@ -113,6 +118,11 @@ func (o *ChassisProfileTemplate) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "chassis.ProfileTemplate" of the ObjectType field. +func (o *ChassisProfileTemplate) GetDefaultObjectType() interface{} { + return "chassis.ProfileTemplate" +} + // GetUsage returns the Usage field value if set, zero value otherwise. func (o *ChassisProfileTemplate) GetUsage() int64 { if o == nil || IsNil(o.Usage) { @@ -206,7 +216,13 @@ func (o ChassisProfileTemplate) ToMap() (map[string]interface{}, error) { if errChassisBaseProfile != nil { return map[string]interface{}{}, errChassisBaseProfile } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Usage) { toSerialize["Usage"] = o.Usage @@ -231,6 +247,13 @@ func (o *ChassisProfileTemplate) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -240,11 +263,23 @@ func (o *ChassisProfileTemplate) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type ChassisProfileTemplateWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_chassis_profile_template_list.go b/model_chassis_profile_template_list.go index e075032bb7..f4f163474e 100644 --- a/model_chassis_profile_template_list.go +++ b/model_chassis_profile_template_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *ChassisProfileTemplateList) GetResultsOk() ([]ChassisProfileTemplate, b // HasResults returns a boolean if a field has been set. func (o *ChassisProfileTemplateList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *ChassisProfileTemplateList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *ChassisProfileTemplateList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type ChassisProfileTemplateListWithoutEmbeddedStruct struct { // The total number of 'chassis.ProfileTemplate' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_chassis_profile_template_response.go b/model_chassis_profile_template_response.go index 9bfeff1822..ca322b094e 100644 --- a/model_chassis_profile_template_response.go +++ b/model_chassis_profile_template_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_cloud_availability_zone.go b/model_cloud_availability_zone.go index dca9ce205e..3d48244772 100644 --- a/model_cloud_availability_zone.go +++ b/model_cloud_availability_zone.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -84,6 +84,11 @@ func (o *CloudAvailabilityZone) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "cloud.AvailabilityZone" of the ClassId field. +func (o *CloudAvailabilityZone) GetDefaultClassId() interface{} { + return "cloud.AvailabilityZone" +} + // GetObjectType returns the ObjectType field value func (o *CloudAvailabilityZone) GetObjectType() string { if o == nil { @@ -108,6 +113,11 @@ func (o *CloudAvailabilityZone) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "cloud.AvailabilityZone" of the ObjectType field. +func (o *CloudAvailabilityZone) GetDefaultObjectType() interface{} { + return "cloud.AvailabilityZone" +} + // GetName returns the Name field value if set, zero value otherwise. func (o *CloudAvailabilityZone) GetName() string { if o == nil || IsNil(o.Name) { @@ -190,7 +200,13 @@ func (o CloudAvailabilityZone) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Name) { toSerialize["Name"] = o.Name @@ -215,6 +231,13 @@ func (o *CloudAvailabilityZone) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -224,11 +247,23 @@ func (o *CloudAvailabilityZone) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type CloudAvailabilityZoneWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_cloud_aws_billing_unit.go b/model_cloud_aws_billing_unit.go index a0082f6717..f049b77b94 100644 --- a/model_cloud_aws_billing_unit.go +++ b/model_cloud_aws_billing_unit.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -29,7 +29,7 @@ type CloudAwsBillingUnit struct { // The fully-qualified name of the instantiated, concrete type. The value should be the same as the 'ClassId' property. ObjectType string `json:"ObjectType"` // Email address of the account holder. - Email *string `json:"Email,omitempty"` + Email *string "json:\"Email,omitempty\" validate:\"regexp=^$|^[a-zA-Z0-9.!#$%&'*+\\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\\\\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$\"" RegisteredDevice NullableAssetDeviceRegistrationRelationship `json:"RegisteredDevice,omitempty"` AdditionalProperties map[string]interface{} } @@ -83,6 +83,11 @@ func (o *CloudAwsBillingUnit) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "cloud.AwsBillingUnit" of the ClassId field. +func (o *CloudAwsBillingUnit) GetDefaultClassId() interface{} { + return "cloud.AwsBillingUnit" +} + // GetObjectType returns the ObjectType field value func (o *CloudAwsBillingUnit) GetObjectType() string { if o == nil { @@ -107,6 +112,11 @@ func (o *CloudAwsBillingUnit) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "cloud.AwsBillingUnit" of the ObjectType field. +func (o *CloudAwsBillingUnit) GetDefaultObjectType() interface{} { + return "cloud.AwsBillingUnit" +} + // GetEmail returns the Email field value if set, zero value otherwise. func (o *CloudAwsBillingUnit) GetEmail() string { if o == nil || IsNil(o.Email) { @@ -200,7 +210,13 @@ func (o CloudAwsBillingUnit) ToMap() (map[string]interface{}, error) { if errCloudBaseBillingUnit != nil { return map[string]interface{}{}, errCloudBaseBillingUnit } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Email) { toSerialize["Email"] = o.Email @@ -225,6 +241,13 @@ func (o *CloudAwsBillingUnit) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -234,18 +257,30 @@ func (o *CloudAwsBillingUnit) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type CloudAwsBillingUnitWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` // The fully-qualified name of the instantiated, concrete type. The value should be the same as the 'ClassId' property. ObjectType string `json:"ObjectType"` // Email address of the account holder. - Email *string `json:"Email,omitempty"` + Email *string "json:\"Email,omitempty\" validate:\"regexp=^$|^[a-zA-Z0-9.!#$%&'*+\\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\\\\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$\"" RegisteredDevice NullableAssetDeviceRegistrationRelationship `json:"RegisteredDevice,omitempty"` } diff --git a/model_cloud_aws_billing_unit_list.go b/model_cloud_aws_billing_unit_list.go index d1615b9e85..f862e38b40 100644 --- a/model_cloud_aws_billing_unit_list.go +++ b/model_cloud_aws_billing_unit_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *CloudAwsBillingUnitList) GetResultsOk() ([]CloudAwsBillingUnit, bool) { // HasResults returns a boolean if a field has been set. func (o *CloudAwsBillingUnitList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *CloudAwsBillingUnitList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *CloudAwsBillingUnitList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type CloudAwsBillingUnitListWithoutEmbeddedStruct struct { // The total number of 'cloud.AwsBillingUnit' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_cloud_aws_billing_unit_relationship.go b/model_cloud_aws_billing_unit_relationship.go index 146e0b6a03..343a354187 100644 --- a/model_cloud_aws_billing_unit_relationship.go +++ b/model_cloud_aws_billing_unit_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_cloud_aws_billing_unit_response.go b/model_cloud_aws_billing_unit_response.go index df2bd90fdb..02f87d10de 100644 --- a/model_cloud_aws_billing_unit_response.go +++ b/model_cloud_aws_billing_unit_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_cloud_aws_key_pair.go b/model_cloud_aws_key_pair.go index 608424fe98..fa691998a0 100644 --- a/model_cloud_aws_key_pair.go +++ b/model_cloud_aws_key_pair.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -85,6 +85,11 @@ func (o *CloudAwsKeyPair) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "cloud.AwsKeyPair" of the ClassId field. +func (o *CloudAwsKeyPair) GetDefaultClassId() interface{} { + return "cloud.AwsKeyPair" +} + // GetObjectType returns the ObjectType field value func (o *CloudAwsKeyPair) GetObjectType() string { if o == nil { @@ -109,6 +114,11 @@ func (o *CloudAwsKeyPair) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "cloud.AwsKeyPair" of the ObjectType field. +func (o *CloudAwsKeyPair) GetDefaultObjectType() interface{} { + return "cloud.AwsKeyPair" +} + // GetFingerPrint returns the FingerPrint field value if set, zero value otherwise. func (o *CloudAwsKeyPair) GetFingerPrint() string { if o == nil || IsNil(o.FingerPrint) { @@ -234,7 +244,13 @@ func (o CloudAwsKeyPair) ToMap() (map[string]interface{}, error) { if errCloudBaseEntity != nil { return map[string]interface{}{}, errCloudBaseEntity } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.FingerPrint) { toSerialize["FingerPrint"] = o.FingerPrint @@ -262,6 +278,13 @@ func (o *CloudAwsKeyPair) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -271,11 +294,23 @@ func (o *CloudAwsKeyPair) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type CloudAwsKeyPairWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_cloud_aws_key_pair_list.go b/model_cloud_aws_key_pair_list.go index 9c59fbae7c..ccc98207cd 100644 --- a/model_cloud_aws_key_pair_list.go +++ b/model_cloud_aws_key_pair_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *CloudAwsKeyPairList) GetResultsOk() ([]CloudAwsKeyPair, bool) { // HasResults returns a boolean if a field has been set. func (o *CloudAwsKeyPairList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *CloudAwsKeyPairList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *CloudAwsKeyPairList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type CloudAwsKeyPairListWithoutEmbeddedStruct struct { // The total number of 'cloud.AwsKeyPair' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_cloud_aws_key_pair_relationship.go b/model_cloud_aws_key_pair_relationship.go index e74251d6cc..dd6ea38bc4 100644 --- a/model_cloud_aws_key_pair_relationship.go +++ b/model_cloud_aws_key_pair_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_cloud_aws_key_pair_response.go b/model_cloud_aws_key_pair_response.go index 5bd1e1f0c9..49cdcf9a9e 100644 --- a/model_cloud_aws_key_pair_response.go +++ b/model_cloud_aws_key_pair_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_cloud_aws_network_interface.go b/model_cloud_aws_network_interface.go index 0a338db174..2af02f26b0 100644 --- a/model_cloud_aws_network_interface.go +++ b/model_cloud_aws_network_interface.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -96,6 +96,11 @@ func (o *CloudAwsNetworkInterface) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "cloud.AwsNetworkInterface" of the ClassId field. +func (o *CloudAwsNetworkInterface) GetDefaultClassId() interface{} { + return "cloud.AwsNetworkInterface" +} + // GetObjectType returns the ObjectType field value func (o *CloudAwsNetworkInterface) GetObjectType() string { if o == nil { @@ -120,6 +125,11 @@ func (o *CloudAwsNetworkInterface) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "cloud.AwsNetworkInterface" of the ObjectType field. +func (o *CloudAwsNetworkInterface) GetDefaultObjectType() interface{} { + return "cloud.AwsNetworkInterface" +} + // GetInstanceAttachment returns the InstanceAttachment field value if set, zero value otherwise (both if not set or set to explicit null). func (o *CloudAwsNetworkInterface) GetInstanceAttachment() CloudNetworkInstanceAttachment { if o == nil || IsNil(o.InstanceAttachment.Get()) { @@ -248,7 +258,7 @@ func (o *CloudAwsNetworkInterface) GetPrivateIpAddressOk() ([]string, bool) { // HasPrivateIpAddress returns a boolean if a field has been set. func (o *CloudAwsNetworkInterface) HasPrivateIpAddress() bool { - if o != nil && IsNil(o.PrivateIpAddress) { + if o != nil && !IsNil(o.PrivateIpAddress) { return true } @@ -313,7 +323,7 @@ func (o *CloudAwsNetworkInterface) GetPublicIpAddressOk() ([]string, bool) { // HasPublicIpAddress returns a boolean if a field has been set. func (o *CloudAwsNetworkInterface) HasPublicIpAddress() bool { - if o != nil && IsNil(o.PublicIpAddress) { + if o != nil && !IsNil(o.PublicIpAddress) { return true } @@ -346,7 +356,7 @@ func (o *CloudAwsNetworkInterface) GetSecurityGroupsOk() ([]string, bool) { // HasSecurityGroups returns a boolean if a field has been set. func (o *CloudAwsNetworkInterface) HasSecurityGroups() bool { - if o != nil && IsNil(o.SecurityGroups) { + if o != nil && !IsNil(o.SecurityGroups) { return true } @@ -451,7 +461,13 @@ func (o CloudAwsNetworkInterface) ToMap() (map[string]interface{}, error) { if errCloudBaseNetworkInterface != nil { return map[string]interface{}{}, errCloudBaseNetworkInterface } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.InstanceAttachment.IsSet() { toSerialize["InstanceAttachment"] = o.InstanceAttachment.Get() @@ -497,6 +513,13 @@ func (o *CloudAwsNetworkInterface) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -506,11 +529,23 @@ func (o *CloudAwsNetworkInterface) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type CloudAwsNetworkInterfaceWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_cloud_aws_network_interface_list.go b/model_cloud_aws_network_interface_list.go index a09af87357..df6b37f0a6 100644 --- a/model_cloud_aws_network_interface_list.go +++ b/model_cloud_aws_network_interface_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *CloudAwsNetworkInterfaceList) GetResultsOk() ([]CloudAwsNetworkInterfac // HasResults returns a boolean if a field has been set. func (o *CloudAwsNetworkInterfaceList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *CloudAwsNetworkInterfaceList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *CloudAwsNetworkInterfaceList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type CloudAwsNetworkInterfaceListWithoutEmbeddedStruct struct { // The total number of 'cloud.AwsNetworkInterface' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_cloud_aws_network_interface_response.go b/model_cloud_aws_network_interface_response.go index dfd9c85be3..a8b26337c4 100644 --- a/model_cloud_aws_network_interface_response.go +++ b/model_cloud_aws_network_interface_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_cloud_aws_organizational_unit.go b/model_cloud_aws_organizational_unit.go index 96d0f1085c..1fdd7f3b9a 100644 --- a/model_cloud_aws_organizational_unit.go +++ b/model_cloud_aws_organizational_unit.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -86,6 +86,11 @@ func (o *CloudAwsOrganizationalUnit) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "cloud.AwsOrganizationalUnit" of the ClassId field. +func (o *CloudAwsOrganizationalUnit) GetDefaultClassId() interface{} { + return "cloud.AwsOrganizationalUnit" +} + // GetObjectType returns the ObjectType field value func (o *CloudAwsOrganizationalUnit) GetObjectType() string { if o == nil { @@ -110,6 +115,11 @@ func (o *CloudAwsOrganizationalUnit) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "cloud.AwsOrganizationalUnit" of the ObjectType field. +func (o *CloudAwsOrganizationalUnit) GetDefaultObjectType() interface{} { + return "cloud.AwsOrganizationalUnit" +} + // GetIdentity returns the Identity field value if set, zero value otherwise. func (o *CloudAwsOrganizationalUnit) GetIdentity() string { if o == nil || IsNil(o.Identity) { @@ -278,7 +288,13 @@ func (o CloudAwsOrganizationalUnit) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Identity) { toSerialize["Identity"] = o.Identity @@ -309,6 +325,13 @@ func (o *CloudAwsOrganizationalUnit) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -318,11 +341,23 @@ func (o *CloudAwsOrganizationalUnit) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type CloudAwsOrganizationalUnitWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_cloud_aws_organizational_unit_list.go b/model_cloud_aws_organizational_unit_list.go index 9b091a854a..7cd8ad6171 100644 --- a/model_cloud_aws_organizational_unit_list.go +++ b/model_cloud_aws_organizational_unit_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *CloudAwsOrganizationalUnitList) GetResultsOk() ([]CloudAwsOrganizationa // HasResults returns a boolean if a field has been set. func (o *CloudAwsOrganizationalUnitList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *CloudAwsOrganizationalUnitList) UnmarshalJSON(data []byte) (err error) "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *CloudAwsOrganizationalUnitList) UnmarshalJSON(data []byte) (err error) } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type CloudAwsOrganizationalUnitListWithoutEmbeddedStruct struct { // The total number of 'cloud.AwsOrganizationalUnit' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_cloud_aws_organizational_unit_relationship.go b/model_cloud_aws_organizational_unit_relationship.go index 0f791dc162..e72c931bd4 100644 --- a/model_cloud_aws_organizational_unit_relationship.go +++ b/model_cloud_aws_organizational_unit_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_cloud_aws_organizational_unit_response.go b/model_cloud_aws_organizational_unit_response.go index 488184d0ba..a327ce50be 100644 --- a/model_cloud_aws_organizational_unit_response.go +++ b/model_cloud_aws_organizational_unit_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_cloud_aws_security_group.go b/model_cloud_aws_security_group.go index 33f218a065..3e7b699aa1 100644 --- a/model_cloud_aws_security_group.go +++ b/model_cloud_aws_security_group.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -85,6 +85,11 @@ func (o *CloudAwsSecurityGroup) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "cloud.AwsSecurityGroup" of the ClassId field. +func (o *CloudAwsSecurityGroup) GetDefaultClassId() interface{} { + return "cloud.AwsSecurityGroup" +} + // GetObjectType returns the ObjectType field value func (o *CloudAwsSecurityGroup) GetObjectType() string { if o == nil { @@ -109,6 +114,11 @@ func (o *CloudAwsSecurityGroup) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "cloud.AwsSecurityGroup" of the ObjectType field. +func (o *CloudAwsSecurityGroup) GetDefaultObjectType() interface{} { + return "cloud.AwsSecurityGroup" +} + // GetEgressRules returns the EgressRules field value if set, zero value otherwise (both if not set or set to explicit null). func (o *CloudAwsSecurityGroup) GetEgressRules() []CloudSecurityGroupRule { if o == nil { @@ -130,7 +140,7 @@ func (o *CloudAwsSecurityGroup) GetEgressRulesOk() ([]CloudSecurityGroupRule, bo // HasEgressRules returns a boolean if a field has been set. func (o *CloudAwsSecurityGroup) HasEgressRules() bool { - if o != nil && IsNil(o.EgressRules) { + if o != nil && !IsNil(o.EgressRules) { return true } @@ -163,7 +173,7 @@ func (o *CloudAwsSecurityGroup) GetIngressRulesOk() ([]CloudSecurityGroupRule, b // HasIngressRules returns a boolean if a field has been set. func (o *CloudAwsSecurityGroup) HasIngressRules() bool { - if o != nil && IsNil(o.IngressRules) { + if o != nil && !IsNil(o.IngressRules) { return true } @@ -196,7 +206,7 @@ func (o *CloudAwsSecurityGroup) GetSecurityGroupTagsOk() ([]CloudCloudTag, bool) // HasSecurityGroupTags returns a boolean if a field has been set. func (o *CloudAwsSecurityGroup) HasSecurityGroupTags() bool { - if o != nil && IsNil(o.SecurityGroupTags) { + if o != nil && !IsNil(o.SecurityGroupTags) { return true } @@ -312,7 +322,13 @@ func (o CloudAwsSecurityGroup) ToMap() (map[string]interface{}, error) { if errCloudBaseEntity != nil { return map[string]interface{}{}, errCloudBaseEntity } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.EgressRules != nil { toSerialize["EgressRules"] = o.EgressRules @@ -346,6 +362,13 @@ func (o *CloudAwsSecurityGroup) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -355,11 +378,23 @@ func (o *CloudAwsSecurityGroup) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type CloudAwsSecurityGroupWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_cloud_aws_security_group_list.go b/model_cloud_aws_security_group_list.go index 6d962840ca..ff5efcb47b 100644 --- a/model_cloud_aws_security_group_list.go +++ b/model_cloud_aws_security_group_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *CloudAwsSecurityGroupList) GetResultsOk() ([]CloudAwsSecurityGroup, boo // HasResults returns a boolean if a field has been set. func (o *CloudAwsSecurityGroupList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *CloudAwsSecurityGroupList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *CloudAwsSecurityGroupList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type CloudAwsSecurityGroupListWithoutEmbeddedStruct struct { // The total number of 'cloud.AwsSecurityGroup' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_cloud_aws_security_group_relationship.go b/model_cloud_aws_security_group_relationship.go index 92e198fa5b..d5cc7f5890 100644 --- a/model_cloud_aws_security_group_relationship.go +++ b/model_cloud_aws_security_group_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_cloud_aws_security_group_response.go b/model_cloud_aws_security_group_response.go index 7566b2f3aa..168aec8c9c 100644 --- a/model_cloud_aws_security_group_response.go +++ b/model_cloud_aws_security_group_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_cloud_aws_subnet.go b/model_cloud_aws_subnet.go index 3978e00957..dda7a5537e 100644 --- a/model_cloud_aws_subnet.go +++ b/model_cloud_aws_subnet.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -96,6 +96,11 @@ func (o *CloudAwsSubnet) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "cloud.AwsSubnet" of the ClassId field. +func (o *CloudAwsSubnet) GetDefaultClassId() interface{} { + return "cloud.AwsSubnet" +} + // GetObjectType returns the ObjectType field value func (o *CloudAwsSubnet) GetObjectType() string { if o == nil { @@ -120,6 +125,11 @@ func (o *CloudAwsSubnet) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "cloud.AwsSubnet" of the ObjectType field. +func (o *CloudAwsSubnet) GetDefaultObjectType() interface{} { + return "cloud.AwsSubnet" +} + // GetAutoAssignPrivateIpV6 returns the AutoAssignPrivateIpV6 field value if set, zero value otherwise. func (o *CloudAwsSubnet) GetAutoAssignPrivateIpV6() bool { if o == nil || IsNil(o.AutoAssignPrivateIpV6) { @@ -365,7 +375,7 @@ func (o *CloudAwsSubnet) GetSubnetTagsOk() ([]CloudCloudTag, bool) { // HasSubnetTags returns a boolean if a field has been set. func (o *CloudAwsSubnet) HasSubnetTags() bool { - if o != nil && IsNil(o.SubnetTags) { + if o != nil && !IsNil(o.SubnetTags) { return true } @@ -438,7 +448,13 @@ func (o CloudAwsSubnet) ToMap() (map[string]interface{}, error) { if errCloudBaseNetwork != nil { return map[string]interface{}{}, errCloudBaseNetwork } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.AutoAssignPrivateIpV6) { toSerialize["AutoAssignPrivateIpV6"] = o.AutoAssignPrivateIpV6 @@ -484,6 +500,13 @@ func (o *CloudAwsSubnet) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -493,11 +516,23 @@ func (o *CloudAwsSubnet) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type CloudAwsSubnetWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_cloud_aws_subnet_list.go b/model_cloud_aws_subnet_list.go index 5e93e72ae0..072e4e245e 100644 --- a/model_cloud_aws_subnet_list.go +++ b/model_cloud_aws_subnet_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *CloudAwsSubnetList) GetResultsOk() ([]CloudAwsSubnet, bool) { // HasResults returns a boolean if a field has been set. func (o *CloudAwsSubnetList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *CloudAwsSubnetList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *CloudAwsSubnetList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type CloudAwsSubnetListWithoutEmbeddedStruct struct { // The total number of 'cloud.AwsSubnet' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_cloud_aws_subnet_relationship.go b/model_cloud_aws_subnet_relationship.go index f7e14636fa..92e03ecc13 100644 --- a/model_cloud_aws_subnet_relationship.go +++ b/model_cloud_aws_subnet_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_cloud_aws_subnet_response.go b/model_cloud_aws_subnet_response.go index 92fd836263..88129df422 100644 --- a/model_cloud_aws_subnet_response.go +++ b/model_cloud_aws_subnet_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_cloud_aws_virtual_machine.go b/model_cloud_aws_virtual_machine.go index 41c9de7ef1..c9b97b17e1 100644 --- a/model_cloud_aws_virtual_machine.go +++ b/model_cloud_aws_virtual_machine.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -93,6 +93,11 @@ func (o *CloudAwsVirtualMachine) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "cloud.AwsVirtualMachine" of the ClassId field. +func (o *CloudAwsVirtualMachine) GetDefaultClassId() interface{} { + return "cloud.AwsVirtualMachine" +} + // GetObjectType returns the ObjectType field value func (o *CloudAwsVirtualMachine) GetObjectType() string { if o == nil { @@ -117,6 +122,11 @@ func (o *CloudAwsVirtualMachine) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "cloud.AwsVirtualMachine" of the ObjectType field. +func (o *CloudAwsVirtualMachine) GetDefaultObjectType() interface{} { + return "cloud.AwsVirtualMachine" +} + // GetAwsBillingUnit returns the AwsBillingUnit field value if set, zero value otherwise (both if not set or set to explicit null). func (o *CloudAwsVirtualMachine) GetAwsBillingUnit() CloudAwsBillingUnitRelationship { if o == nil || IsNil(o.AwsBillingUnit.Get()) { @@ -267,7 +277,7 @@ func (o *CloudAwsVirtualMachine) GetSecurityGroupsOk() ([]CloudAwsSecurityGroupR // HasSecurityGroups returns a boolean if a field has been set. func (o *CloudAwsVirtualMachine) HasSecurityGroups() bool { - if o != nil && IsNil(o.SecurityGroups) { + if o != nil && !IsNil(o.SecurityGroups) { return true } @@ -297,7 +307,13 @@ func (o CloudAwsVirtualMachine) ToMap() (map[string]interface{}, error) { if errCloudBaseVirtualMachine != nil { return map[string]interface{}{}, errCloudBaseVirtualMachine } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.AwsBillingUnit.IsSet() { toSerialize["AwsBillingUnit"] = o.AwsBillingUnit.Get() @@ -328,6 +344,13 @@ func (o *CloudAwsVirtualMachine) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -337,11 +360,23 @@ func (o *CloudAwsVirtualMachine) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type CloudAwsVirtualMachineWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_cloud_aws_virtual_machine_list.go b/model_cloud_aws_virtual_machine_list.go index efc55a0b7a..c2c5fa51e7 100644 --- a/model_cloud_aws_virtual_machine_list.go +++ b/model_cloud_aws_virtual_machine_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *CloudAwsVirtualMachineList) GetResultsOk() ([]CloudAwsVirtualMachine, b // HasResults returns a boolean if a field has been set. func (o *CloudAwsVirtualMachineList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *CloudAwsVirtualMachineList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *CloudAwsVirtualMachineList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type CloudAwsVirtualMachineListWithoutEmbeddedStruct struct { // The total number of 'cloud.AwsVirtualMachine' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_cloud_aws_virtual_machine_response.go b/model_cloud_aws_virtual_machine_response.go index 60d53bfde1..40dac2501e 100644 --- a/model_cloud_aws_virtual_machine_response.go +++ b/model_cloud_aws_virtual_machine_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_cloud_aws_volume.go b/model_cloud_aws_volume.go index 7470401a6d..45bb7ab742 100644 --- a/model_cloud_aws_volume.go +++ b/model_cloud_aws_volume.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -81,6 +81,11 @@ func (o *CloudAwsVolume) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "cloud.AwsVolume" of the ClassId field. +func (o *CloudAwsVolume) GetDefaultClassId() interface{} { + return "cloud.AwsVolume" +} + // GetObjectType returns the ObjectType field value func (o *CloudAwsVolume) GetObjectType() string { if o == nil { @@ -105,6 +110,11 @@ func (o *CloudAwsVolume) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "cloud.AwsVolume" of the ObjectType field. +func (o *CloudAwsVolume) GetDefaultObjectType() interface{} { + return "cloud.AwsVolume" +} + // GetAwsBillingUnit returns the AwsBillingUnit field value if set, zero value otherwise (both if not set or set to explicit null). func (o *CloudAwsVolume) GetAwsBillingUnit() CloudAwsBillingUnitRelationship { if o == nil || IsNil(o.AwsBillingUnit.Get()) { @@ -166,7 +176,13 @@ func (o CloudAwsVolume) ToMap() (map[string]interface{}, error) { if errCloudBaseVolume != nil { return map[string]interface{}{}, errCloudBaseVolume } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.AwsBillingUnit.IsSet() { toSerialize["AwsBillingUnit"] = o.AwsBillingUnit.Get() @@ -188,6 +204,13 @@ func (o *CloudAwsVolume) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -197,11 +220,23 @@ func (o *CloudAwsVolume) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type CloudAwsVolumeWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_cloud_aws_volume_list.go b/model_cloud_aws_volume_list.go index bcc27cc6fc..73d4c34456 100644 --- a/model_cloud_aws_volume_list.go +++ b/model_cloud_aws_volume_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *CloudAwsVolumeList) GetResultsOk() ([]CloudAwsVolume, bool) { // HasResults returns a boolean if a field has been set. func (o *CloudAwsVolumeList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *CloudAwsVolumeList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *CloudAwsVolumeList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type CloudAwsVolumeListWithoutEmbeddedStruct struct { // The total number of 'cloud.AwsVolume' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_cloud_aws_volume_response.go b/model_cloud_aws_volume_response.go index 05be1c4045..af525baf9f 100644 --- a/model_cloud_aws_volume_response.go +++ b/model_cloud_aws_volume_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_cloud_aws_vpc.go b/model_cloud_aws_vpc.go index f373a9ec88..872b0337bf 100644 --- a/model_cloud_aws_vpc.go +++ b/model_cloud_aws_vpc.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -94,6 +94,11 @@ func (o *CloudAwsVpc) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "cloud.AwsVpc" of the ClassId field. +func (o *CloudAwsVpc) GetDefaultClassId() interface{} { + return "cloud.AwsVpc" +} + // GetObjectType returns the ObjectType field value func (o *CloudAwsVpc) GetObjectType() string { if o == nil { @@ -118,6 +123,11 @@ func (o *CloudAwsVpc) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "cloud.AwsVpc" of the ObjectType field. +func (o *CloudAwsVpc) GetDefaultObjectType() interface{} { + return "cloud.AwsVpc" +} + // GetDnsHostName returns the DnsHostName field value if set, zero value otherwise. func (o *CloudAwsVpc) GetDnsHostName() bool { if o == nil || IsNil(o.DnsHostName) { @@ -203,7 +213,7 @@ func (o *CloudAwsVpc) GetIpv4CidrOk() ([]string, bool) { // HasIpv4Cidr returns a boolean if a field has been set. func (o *CloudAwsVpc) HasIpv4Cidr() bool { - if o != nil && IsNil(o.Ipv4Cidr) { + if o != nil && !IsNil(o.Ipv4Cidr) { return true } @@ -236,7 +246,7 @@ func (o *CloudAwsVpc) GetIpv6CidrOk() ([]string, bool) { // HasIpv6Cidr returns a boolean if a field has been set. func (o *CloudAwsVpc) HasIpv6Cidr() bool { - if o != nil && IsNil(o.Ipv6Cidr) { + if o != nil && !IsNil(o.Ipv6Cidr) { return true } @@ -365,7 +375,7 @@ func (o *CloudAwsVpc) GetVpcTagsOk() ([]CloudCloudTag, bool) { // HasVpcTags returns a boolean if a field has been set. func (o *CloudAwsVpc) HasVpcTags() bool { - if o != nil && IsNil(o.VpcTags) { + if o != nil && !IsNil(o.VpcTags) { return true } @@ -438,7 +448,13 @@ func (o CloudAwsVpc) ToMap() (map[string]interface{}, error) { if errCloudBasePlacement != nil { return map[string]interface{}{}, errCloudBasePlacement } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.DnsHostName) { toSerialize["DnsHostName"] = o.DnsHostName @@ -484,6 +500,13 @@ func (o *CloudAwsVpc) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -493,11 +516,23 @@ func (o *CloudAwsVpc) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type CloudAwsVpcWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_cloud_aws_vpc_list.go b/model_cloud_aws_vpc_list.go index 1f8dd6aa61..0b465a588f 100644 --- a/model_cloud_aws_vpc_list.go +++ b/model_cloud_aws_vpc_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *CloudAwsVpcList) GetResultsOk() ([]CloudAwsVpc, bool) { // HasResults returns a boolean if a field has been set. func (o *CloudAwsVpcList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *CloudAwsVpcList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *CloudAwsVpcList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type CloudAwsVpcListWithoutEmbeddedStruct struct { // The total number of 'cloud.AwsVpc' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_cloud_aws_vpc_relationship.go b/model_cloud_aws_vpc_relationship.go index bf0ec2c0bb..e52c59a22c 100644 --- a/model_cloud_aws_vpc_relationship.go +++ b/model_cloud_aws_vpc_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_cloud_aws_vpc_response.go b/model_cloud_aws_vpc_response.go index 8686bb831c..f684dc443c 100644 --- a/model_cloud_aws_vpc_response.go +++ b/model_cloud_aws_vpc_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_cloud_base_billing_unit.go b/model_cloud_base_billing_unit.go index 10b3d73c19..dc0836cd25 100644 --- a/model_cloud_base_billing_unit.go +++ b/model_cloud_base_billing_unit.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -86,6 +86,11 @@ func (o *CloudBaseBillingUnit) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "cloud.AwsBillingUnit" of the ClassId field. +func (o *CloudBaseBillingUnit) GetDefaultClassId() interface{} { + return "cloud.AwsBillingUnit" +} + // GetObjectType returns the ObjectType field value func (o *CloudBaseBillingUnit) GetObjectType() string { if o == nil { @@ -110,6 +115,11 @@ func (o *CloudBaseBillingUnit) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "cloud.AwsBillingUnit" of the ObjectType field. +func (o *CloudBaseBillingUnit) GetDefaultObjectType() interface{} { + return "cloud.AwsBillingUnit" +} + // GetIdentity returns the Identity field value if set, zero value otherwise. func (o *CloudBaseBillingUnit) GetIdentity() string { if o == nil || IsNil(o.Identity) { @@ -224,7 +234,13 @@ func (o CloudBaseBillingUnit) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Identity) { toSerialize["Identity"] = o.Identity @@ -252,6 +268,13 @@ func (o *CloudBaseBillingUnit) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -261,11 +284,23 @@ func (o *CloudBaseBillingUnit) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type CloudBaseBillingUnitWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. The enum values provides the list of concrete types that can be instantiated from this abstract type. ClassId string `json:"ClassId"` diff --git a/model_cloud_base_entity.go b/model_cloud_base_entity.go index 7b0d5ca57e..f6e701e4c5 100644 --- a/model_cloud_base_entity.go +++ b/model_cloud_base_entity.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -426,6 +426,10 @@ func (o *CloudBaseEntity) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -435,11 +439,23 @@ func (o *CloudBaseEntity) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type CloudBaseEntityWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. The enum values provides the list of concrete types that can be instantiated from this abstract type. ClassId string `json:"ClassId"` diff --git a/model_cloud_base_network.go b/model_cloud_base_network.go index 60f21db7ad..483e8dcfff 100644 --- a/model_cloud_base_network.go +++ b/model_cloud_base_network.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -85,6 +85,11 @@ func (o *CloudBaseNetwork) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "cloud.AwsSubnet" of the ClassId field. +func (o *CloudBaseNetwork) GetDefaultClassId() interface{} { + return "cloud.AwsSubnet" +} + // GetObjectType returns the ObjectType field value func (o *CloudBaseNetwork) GetObjectType() string { if o == nil { @@ -109,6 +114,11 @@ func (o *CloudBaseNetwork) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "cloud.AwsSubnet" of the ObjectType field. +func (o *CloudBaseNetwork) GetDefaultObjectType() interface{} { + return "cloud.AwsSubnet" +} + // GetBillingUnit returns the BillingUnit field value if set, zero value otherwise (both if not set or set to explicit null). func (o *CloudBaseNetwork) GetBillingUnit() CloudBillingUnit { if o == nil || IsNil(o.BillingUnit.Get()) { @@ -288,7 +298,13 @@ func (o CloudBaseNetwork) ToMap() (map[string]interface{}, error) { if errVirtualizationBaseNetwork != nil { return map[string]interface{}{}, errVirtualizationBaseNetwork } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.BillingUnit.IsSet() { toSerialize["BillingUnit"] = o.BillingUnit.Get() @@ -319,6 +335,13 @@ func (o *CloudBaseNetwork) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -328,11 +351,23 @@ func (o *CloudBaseNetwork) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type CloudBaseNetworkWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. The enum values provides the list of concrete types that can be instantiated from this abstract type. ClassId string `json:"ClassId"` diff --git a/model_cloud_base_network_interface.go b/model_cloud_base_network_interface.go index 927b9dd0a2..e97d742612 100644 --- a/model_cloud_base_network_interface.go +++ b/model_cloud_base_network_interface.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -91,6 +91,11 @@ func (o *CloudBaseNetworkInterface) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "cloud.AwsNetworkInterface" of the ClassId field. +func (o *CloudBaseNetworkInterface) GetDefaultClassId() interface{} { + return "cloud.AwsNetworkInterface" +} + // GetObjectType returns the ObjectType field value func (o *CloudBaseNetworkInterface) GetObjectType() string { if o == nil { @@ -115,6 +120,11 @@ func (o *CloudBaseNetworkInterface) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "cloud.AwsNetworkInterface" of the ObjectType field. +func (o *CloudBaseNetworkInterface) GetDefaultObjectType() interface{} { + return "cloud.AwsNetworkInterface" +} + // GetBillingUnit returns the BillingUnit field value if set, zero value otherwise (both if not set or set to explicit null). func (o *CloudBaseNetworkInterface) GetBillingUnit() CloudBillingUnit { if o == nil || IsNil(o.BillingUnit.Get()) { @@ -358,7 +368,13 @@ func (o CloudBaseNetworkInterface) ToMap() (map[string]interface{}, error) { if errVirtualizationBaseVirtualNetworkInterfaceCard != nil { return map[string]interface{}{}, errVirtualizationBaseVirtualNetworkInterfaceCard } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.BillingUnit.IsSet() { toSerialize["BillingUnit"] = o.BillingUnit.Get() @@ -395,6 +411,13 @@ func (o *CloudBaseNetworkInterface) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -404,11 +427,23 @@ func (o *CloudBaseNetworkInterface) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type CloudBaseNetworkInterfaceWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. The enum values provides the list of concrete types that can be instantiated from this abstract type. ClassId string `json:"ClassId"` diff --git a/model_cloud_base_placement.go b/model_cloud_base_placement.go index 10b01502d4..6b3fcfaf19 100644 --- a/model_cloud_base_placement.go +++ b/model_cloud_base_placement.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -85,6 +85,11 @@ func (o *CloudBasePlacement) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "cloud.AwsVpc" of the ClassId field. +func (o *CloudBasePlacement) GetDefaultClassId() interface{} { + return "cloud.AwsVpc" +} + // GetObjectType returns the ObjectType field value func (o *CloudBasePlacement) GetObjectType() string { if o == nil { @@ -109,6 +114,11 @@ func (o *CloudBasePlacement) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "cloud.AwsVpc" of the ObjectType field. +func (o *CloudBasePlacement) GetDefaultObjectType() interface{} { + return "cloud.AwsVpc" +} + // GetBillingUnit returns the BillingUnit field value if set, zero value otherwise (both if not set or set to explicit null). func (o *CloudBasePlacement) GetBillingUnit() CloudBillingUnit { if o == nil || IsNil(o.BillingUnit.Get()) { @@ -288,7 +298,13 @@ func (o CloudBasePlacement) ToMap() (map[string]interface{}, error) { if errVirtualizationBasePlacement != nil { return map[string]interface{}{}, errVirtualizationBasePlacement } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.BillingUnit.IsSet() { toSerialize["BillingUnit"] = o.BillingUnit.Get() @@ -319,6 +335,13 @@ func (o *CloudBasePlacement) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -328,11 +351,23 @@ func (o *CloudBasePlacement) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type CloudBasePlacementWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. The enum values provides the list of concrete types that can be instantiated from this abstract type. ClassId string `json:"ClassId"` diff --git a/model_cloud_base_sku.go b/model_cloud_base_sku.go index 28e7fc3fd4..fa4424e143 100644 --- a/model_cloud_base_sku.go +++ b/model_cloud_base_sku.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -228,7 +228,7 @@ func (o *CloudBaseSku) GetCustomAttributesOk() ([]CloudCustomAttributes, bool) { // HasCustomAttributes returns a boolean if a field has been set. func (o *CloudBaseSku) HasCustomAttributes() bool { - if o != nil && IsNil(o.CustomAttributes) { + if o != nil && !IsNil(o.CustomAttributes) { return true } @@ -728,6 +728,10 @@ func (o *CloudBaseSku) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -737,11 +741,23 @@ func (o *CloudBaseSku) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type CloudBaseSkuWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. The enum values provides the list of concrete types that can be instantiated from this abstract type. ClassId string `json:"ClassId"` diff --git a/model_cloud_base_sku_relationship.go b/model_cloud_base_sku_relationship.go index 9facf0b095..b9a3652cba 100644 --- a/model_cloud_base_sku_relationship.go +++ b/model_cloud_base_sku_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_cloud_base_virtual_machine.go b/model_cloud_base_virtual_machine.go index 9b256996fc..1a4b386dbf 100644 --- a/model_cloud_base_virtual_machine.go +++ b/model_cloud_base_virtual_machine.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -105,6 +105,11 @@ func (o *CloudBaseVirtualMachine) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "cloud.AwsVirtualMachine" of the ClassId field. +func (o *CloudBaseVirtualMachine) GetDefaultClassId() interface{} { + return "cloud.AwsVirtualMachine" +} + // GetObjectType returns the ObjectType field value func (o *CloudBaseVirtualMachine) GetObjectType() string { if o == nil { @@ -129,6 +134,11 @@ func (o *CloudBaseVirtualMachine) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "cloud.AwsVirtualMachine" of the ObjectType field. +func (o *CloudBaseVirtualMachine) GetDefaultObjectType() interface{} { + return "cloud.AwsVirtualMachine" +} + // GetBillingUnit returns the BillingUnit field value if set, zero value otherwise (both if not set or set to explicit null). func (o *CloudBaseVirtualMachine) GetBillingUnit() CloudBillingUnit { if o == nil || IsNil(o.BillingUnit.Get()) { @@ -279,7 +289,7 @@ func (o *CloudBaseVirtualMachine) GetNetworkInterfaceAttachmentsOk() ([]CloudNet // HasNetworkInterfaceAttachments returns a boolean if a field has been set. func (o *CloudBaseVirtualMachine) HasNetworkInterfaceAttachments() bool { - if o != nil && IsNil(o.NetworkInterfaceAttachments) { + if o != nil && !IsNil(o.NetworkInterfaceAttachments) { return true } @@ -483,7 +493,7 @@ func (o *CloudBaseVirtualMachine) GetVirtualMachineTagsOk() ([]CloudCloudTag, bo // HasVirtualMachineTags returns a boolean if a field has been set. func (o *CloudBaseVirtualMachine) HasVirtualMachineTags() bool { - if o != nil && IsNil(o.VirtualMachineTags) { + if o != nil && !IsNil(o.VirtualMachineTags) { return true } @@ -516,7 +526,7 @@ func (o *CloudBaseVirtualMachine) GetVolumeAttachmentsOk() ([]CloudVolumeAttachm // HasVolumeAttachments returns a boolean if a field has been set. func (o *CloudBaseVirtualMachine) HasVolumeAttachments() bool { - if o != nil && IsNil(o.VolumeAttachments) { + if o != nil && !IsNil(o.VolumeAttachments) { return true } @@ -589,7 +599,13 @@ func (o CloudBaseVirtualMachine) ToMap() (map[string]interface{}, error) { if errVirtualizationBaseVirtualMachine != nil { return map[string]interface{}{}, errVirtualizationBaseVirtualMachine } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.BillingUnit.IsSet() { toSerialize["BillingUnit"] = o.BillingUnit.Get() @@ -644,6 +660,13 @@ func (o *CloudBaseVirtualMachine) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -653,11 +676,23 @@ func (o *CloudBaseVirtualMachine) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type CloudBaseVirtualMachineWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. The enum values provides the list of concrete types that can be instantiated from this abstract type. ClassId string `json:"ClassId"` diff --git a/model_cloud_base_volume.go b/model_cloud_base_volume.go index ed156250b4..9d04a231e4 100644 --- a/model_cloud_base_volume.go +++ b/model_cloud_base_volume.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -100,6 +100,11 @@ func (o *CloudBaseVolume) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "cloud.AwsVolume" of the ClassId field. +func (o *CloudBaseVolume) GetDefaultClassId() interface{} { + return "cloud.AwsVolume" +} + // GetObjectType returns the ObjectType field value func (o *CloudBaseVolume) GetObjectType() string { if o == nil { @@ -124,6 +129,11 @@ func (o *CloudBaseVolume) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "cloud.AwsVolume" of the ObjectType field. +func (o *CloudBaseVolume) GetDefaultObjectType() interface{} { + return "cloud.AwsVolume" +} + // GetBillingUnit returns the BillingUnit field value if set, zero value otherwise (both if not set or set to explicit null). func (o *CloudBaseVolume) GetBillingUnit() CloudBillingUnit { if o == nil || IsNil(o.BillingUnit.Get()) { @@ -252,7 +262,7 @@ func (o *CloudBaseVolume) GetInstanceAttachmentsOk() ([]CloudVolumeInstanceAttac // HasInstanceAttachments returns a boolean if a field has been set. func (o *CloudBaseVolume) HasInstanceAttachments() bool { - if o != nil && IsNil(o.InstanceAttachments) { + if o != nil && !IsNil(o.InstanceAttachments) { return true } @@ -499,7 +509,7 @@ func (o *CloudBaseVolume) GetVolumeTagsOk() ([]CloudCloudTag, bool) { // HasVolumeTags returns a boolean if a field has been set. func (o *CloudBaseVolume) HasVolumeTags() bool { - if o != nil && IsNil(o.VolumeTags) { + if o != nil && !IsNil(o.VolumeTags) { return true } @@ -615,7 +625,13 @@ func (o CloudBaseVolume) ToMap() (map[string]interface{}, error) { if errVirtualizationBaseVirtualDisk != nil { return map[string]interface{}{}, errVirtualizationBaseVirtualDisk } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.BillingUnit.IsSet() { toSerialize["BillingUnit"] = o.BillingUnit.Get() @@ -673,6 +689,13 @@ func (o *CloudBaseVolume) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -682,11 +705,23 @@ func (o *CloudBaseVolume) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type CloudBaseVolumeWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. The enum values provides the list of concrete types that can be instantiated from this abstract type. ClassId string `json:"ClassId"` diff --git a/model_cloud_billing_unit.go b/model_cloud_billing_unit.go index 13dd1578b7..f7e034b64e 100644 --- a/model_cloud_billing_unit.go +++ b/model_cloud_billing_unit.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -84,6 +84,11 @@ func (o *CloudBillingUnit) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "cloud.BillingUnit" of the ClassId field. +func (o *CloudBillingUnit) GetDefaultClassId() interface{} { + return "cloud.BillingUnit" +} + // GetObjectType returns the ObjectType field value func (o *CloudBillingUnit) GetObjectType() string { if o == nil { @@ -108,6 +113,11 @@ func (o *CloudBillingUnit) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "cloud.BillingUnit" of the ObjectType field. +func (o *CloudBillingUnit) GetDefaultObjectType() interface{} { + return "cloud.BillingUnit" +} + // GetBillingId returns the BillingId field value if set, zero value otherwise. func (o *CloudBillingUnit) GetBillingId() string { if o == nil || IsNil(o.BillingId) { @@ -190,7 +200,13 @@ func (o CloudBillingUnit) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.BillingId) { toSerialize["BillingId"] = o.BillingId @@ -215,6 +231,13 @@ func (o *CloudBillingUnit) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -224,11 +247,23 @@ func (o *CloudBillingUnit) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type CloudBillingUnitWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_cloud_cloud_region.go b/model_cloud_cloud_region.go index 84fa112f23..79bff30ad9 100644 --- a/model_cloud_cloud_region.go +++ b/model_cloud_cloud_region.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -84,6 +84,11 @@ func (o *CloudCloudRegion) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "cloud.CloudRegion" of the ClassId field. +func (o *CloudCloudRegion) GetDefaultClassId() interface{} { + return "cloud.CloudRegion" +} + // GetObjectType returns the ObjectType field value func (o *CloudCloudRegion) GetObjectType() string { if o == nil { @@ -108,6 +113,11 @@ func (o *CloudCloudRegion) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "cloud.CloudRegion" of the ObjectType field. +func (o *CloudCloudRegion) GetDefaultObjectType() interface{} { + return "cloud.CloudRegion" +} + // GetName returns the Name field value if set, zero value otherwise. func (o *CloudCloudRegion) GetName() string { if o == nil || IsNil(o.Name) { @@ -190,7 +200,13 @@ func (o CloudCloudRegion) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Name) { toSerialize["Name"] = o.Name @@ -215,6 +231,13 @@ func (o *CloudCloudRegion) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -224,11 +247,23 @@ func (o *CloudCloudRegion) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type CloudCloudRegionWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_cloud_cloud_tag.go b/model_cloud_cloud_tag.go index 3595e00cb5..c579d44565 100644 --- a/model_cloud_cloud_tag.go +++ b/model_cloud_cloud_tag.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -84,6 +84,11 @@ func (o *CloudCloudTag) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "cloud.CloudTag" of the ClassId field. +func (o *CloudCloudTag) GetDefaultClassId() interface{} { + return "cloud.CloudTag" +} + // GetObjectType returns the ObjectType field value func (o *CloudCloudTag) GetObjectType() string { if o == nil { @@ -108,6 +113,11 @@ func (o *CloudCloudTag) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "cloud.CloudTag" of the ObjectType field. +func (o *CloudCloudTag) GetDefaultObjectType() interface{} { + return "cloud.CloudTag" +} + // GetKey returns the Key field value if set, zero value otherwise. func (o *CloudCloudTag) GetKey() string { if o == nil || IsNil(o.Key) { @@ -190,7 +200,13 @@ func (o CloudCloudTag) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Key) { toSerialize["Key"] = o.Key @@ -215,6 +231,13 @@ func (o *CloudCloudTag) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -224,11 +247,23 @@ func (o *CloudCloudTag) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type CloudCloudTagWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_cloud_collect_inventory.go b/model_cloud_collect_inventory.go index 4e641384f2..9192a3205b 100644 --- a/model_cloud_collect_inventory.go +++ b/model_cloud_collect_inventory.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -83,6 +83,11 @@ func (o *CloudCollectInventory) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "cloud.CollectInventory" of the ClassId field. +func (o *CloudCollectInventory) GetDefaultClassId() interface{} { + return "cloud.CollectInventory" +} + // GetObjectType returns the ObjectType field value func (o *CloudCollectInventory) GetObjectType() string { if o == nil { @@ -107,6 +112,11 @@ func (o *CloudCollectInventory) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "cloud.CollectInventory" of the ObjectType field. +func (o *CloudCollectInventory) GetDefaultObjectType() interface{} { + return "cloud.CollectInventory" +} + // GetTargetId returns the TargetId field value if set, zero value otherwise. func (o *CloudCollectInventory) GetTargetId() string { if o == nil || IsNil(o.TargetId) { @@ -200,7 +210,13 @@ func (o CloudCollectInventory) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.TargetId) { toSerialize["TargetId"] = o.TargetId @@ -225,6 +241,13 @@ func (o *CloudCollectInventory) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -234,11 +257,23 @@ func (o *CloudCollectInventory) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type CloudCollectInventoryWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_cloud_custom_attributes.go b/model_cloud_custom_attributes.go index f1c2606106..cf18dad523 100644 --- a/model_cloud_custom_attributes.go +++ b/model_cloud_custom_attributes.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -86,6 +86,11 @@ func (o *CloudCustomAttributes) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "cloud.CustomAttributes" of the ClassId field. +func (o *CloudCustomAttributes) GetDefaultClassId() interface{} { + return "cloud.CustomAttributes" +} + // GetObjectType returns the ObjectType field value func (o *CloudCustomAttributes) GetObjectType() string { if o == nil { @@ -110,6 +115,11 @@ func (o *CloudCustomAttributes) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "cloud.CustomAttributes" of the ObjectType field. +func (o *CloudCustomAttributes) GetDefaultObjectType() interface{} { + return "cloud.CustomAttributes" +} + // GetAttributeName returns the AttributeName field value if set, zero value otherwise. func (o *CloudCustomAttributes) GetAttributeName() string { if o == nil || IsNil(o.AttributeName) { @@ -224,7 +234,13 @@ func (o CloudCustomAttributes) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.AttributeName) { toSerialize["AttributeName"] = o.AttributeName @@ -252,6 +268,13 @@ func (o *CloudCustomAttributes) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -261,11 +284,23 @@ func (o *CloudCustomAttributes) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type CloudCustomAttributesWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_cloud_image_reference.go b/model_cloud_image_reference.go index 46ee742881..4edbe2c64b 100644 --- a/model_cloud_image_reference.go +++ b/model_cloud_image_reference.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -84,6 +84,11 @@ func (o *CloudImageReference) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "cloud.ImageReference" of the ClassId field. +func (o *CloudImageReference) GetDefaultClassId() interface{} { + return "cloud.ImageReference" +} + // GetObjectType returns the ObjectType field value func (o *CloudImageReference) GetObjectType() string { if o == nil { @@ -108,6 +113,11 @@ func (o *CloudImageReference) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "cloud.ImageReference" of the ObjectType field. +func (o *CloudImageReference) GetDefaultObjectType() interface{} { + return "cloud.ImageReference" +} + // GetImageId returns the ImageId field value if set, zero value otherwise. func (o *CloudImageReference) GetImageId() string { if o == nil || IsNil(o.ImageId) { @@ -190,7 +200,13 @@ func (o CloudImageReference) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.ImageId) { toSerialize["ImageId"] = o.ImageId @@ -215,6 +231,13 @@ func (o *CloudImageReference) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -224,11 +247,23 @@ func (o *CloudImageReference) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type CloudImageReferenceWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_cloud_instance_type.go b/model_cloud_instance_type.go index 069d9f742b..021e0d387d 100644 --- a/model_cloud_instance_type.go +++ b/model_cloud_instance_type.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -94,6 +94,11 @@ func (o *CloudInstanceType) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "cloud.InstanceType" of the ClassId field. +func (o *CloudInstanceType) GetDefaultClassId() interface{} { + return "cloud.InstanceType" +} + // GetObjectType returns the ObjectType field value func (o *CloudInstanceType) GetObjectType() string { if o == nil { @@ -118,6 +123,11 @@ func (o *CloudInstanceType) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "cloud.InstanceType" of the ObjectType field. +func (o *CloudInstanceType) GetDefaultObjectType() interface{} { + return "cloud.InstanceType" +} + // GetArchitecture returns the Architecture field value if set, zero value otherwise. func (o *CloudInstanceType) GetArchitecture() string { if o == nil || IsNil(o.Architecture) { @@ -360,7 +370,13 @@ func (o CloudInstanceType) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Architecture) { toSerialize["Architecture"] = o.Architecture @@ -400,6 +416,13 @@ func (o *CloudInstanceType) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -409,11 +432,23 @@ func (o *CloudInstanceType) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type CloudInstanceTypeWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_cloud_network_access_config.go b/model_cloud_network_access_config.go index 3e92ab7bcf..209b726ca2 100644 --- a/model_cloud_network_access_config.go +++ b/model_cloud_network_access_config.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -85,6 +85,11 @@ func (o *CloudNetworkAccessConfig) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "cloud.NetworkAccessConfig" of the ClassId field. +func (o *CloudNetworkAccessConfig) GetDefaultClassId() interface{} { + return "cloud.NetworkAccessConfig" +} + // GetObjectType returns the ObjectType field value func (o *CloudNetworkAccessConfig) GetObjectType() string { if o == nil { @@ -109,6 +114,11 @@ func (o *CloudNetworkAccessConfig) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "cloud.NetworkAccessConfig" of the ObjectType field. +func (o *CloudNetworkAccessConfig) GetDefaultObjectType() interface{} { + return "cloud.NetworkAccessConfig" +} + // GetExternalIps returns the ExternalIps field value if set, zero value otherwise (both if not set or set to explicit null). func (o *CloudNetworkAccessConfig) GetExternalIps() []CloudNetworkAddress { if o == nil { @@ -130,7 +140,7 @@ func (o *CloudNetworkAccessConfig) GetExternalIpsOk() ([]CloudNetworkAddress, bo // HasExternalIps returns a boolean if a field has been set. func (o *CloudNetworkAccessConfig) HasExternalIps() bool { - if o != nil && IsNil(o.ExternalIps) { + if o != nil && !IsNil(o.ExternalIps) { return true } @@ -224,7 +234,13 @@ func (o CloudNetworkAccessConfig) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.ExternalIps != nil { toSerialize["ExternalIps"] = o.ExternalIps @@ -252,6 +268,13 @@ func (o *CloudNetworkAccessConfig) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -261,11 +284,23 @@ func (o *CloudNetworkAccessConfig) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type CloudNetworkAccessConfigWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_cloud_network_address.go b/model_cloud_network_address.go index 7da87b8454..3e82e97268 100644 --- a/model_cloud_network_address.go +++ b/model_cloud_network_address.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -86,6 +86,11 @@ func (o *CloudNetworkAddress) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "cloud.NetworkAddress" of the ClassId field. +func (o *CloudNetworkAddress) GetDefaultClassId() interface{} { + return "cloud.NetworkAddress" +} + // GetObjectType returns the ObjectType field value func (o *CloudNetworkAddress) GetObjectType() string { if o == nil { @@ -110,6 +115,11 @@ func (o *CloudNetworkAddress) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "cloud.NetworkAddress" of the ObjectType field. +func (o *CloudNetworkAddress) GetDefaultObjectType() interface{} { + return "cloud.NetworkAddress" +} + // GetIp returns the Ip field value if set, zero value otherwise. func (o *CloudNetworkAddress) GetIp() string { if o == nil || IsNil(o.Ip) { @@ -224,7 +234,13 @@ func (o CloudNetworkAddress) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Ip) { toSerialize["Ip"] = o.Ip @@ -252,6 +268,13 @@ func (o *CloudNetworkAddress) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -261,11 +284,23 @@ func (o *CloudNetworkAddress) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type CloudNetworkAddressWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_cloud_network_instance_attachment.go b/model_cloud_network_instance_attachment.go index 6c40d91cb6..978f4bf543 100644 --- a/model_cloud_network_instance_attachment.go +++ b/model_cloud_network_instance_attachment.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -91,6 +91,11 @@ func (o *CloudNetworkInstanceAttachment) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "cloud.NetworkInstanceAttachment" of the ClassId field. +func (o *CloudNetworkInstanceAttachment) GetDefaultClassId() interface{} { + return "cloud.NetworkInstanceAttachment" +} + // GetObjectType returns the ObjectType field value func (o *CloudNetworkInstanceAttachment) GetObjectType() string { if o == nil { @@ -115,6 +120,11 @@ func (o *CloudNetworkInstanceAttachment) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "cloud.NetworkInstanceAttachment" of the ObjectType field. +func (o *CloudNetworkInstanceAttachment) GetDefaultObjectType() interface{} { + return "cloud.NetworkInstanceAttachment" +} + // GetAttachTime returns the AttachTime field value if set, zero value otherwise. func (o *CloudNetworkInstanceAttachment) GetAttachTime() time.Time { if o == nil || IsNil(o.AttachTime) { @@ -293,7 +303,13 @@ func (o CloudNetworkInstanceAttachment) ToMap() (map[string]interface{}, error) if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.AttachTime) { toSerialize["AttachTime"] = o.AttachTime @@ -327,6 +343,13 @@ func (o *CloudNetworkInstanceAttachment) UnmarshalJSON(data []byte) (err error) "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -336,11 +359,23 @@ func (o *CloudNetworkInstanceAttachment) UnmarshalJSON(data []byte) (err error) } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type CloudNetworkInstanceAttachmentWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_cloud_network_interface_attachment.go b/model_cloud_network_interface_attachment.go index a915a45f99..4076d8bb75 100644 --- a/model_cloud_network_interface_attachment.go +++ b/model_cloud_network_interface_attachment.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -100,6 +100,11 @@ func (o *CloudNetworkInterfaceAttachment) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "cloud.NetworkInterfaceAttachment" of the ClassId field. +func (o *CloudNetworkInterfaceAttachment) GetDefaultClassId() interface{} { + return "cloud.NetworkInterfaceAttachment" +} + // GetObjectType returns the ObjectType field value func (o *CloudNetworkInterfaceAttachment) GetObjectType() string { if o == nil { @@ -124,6 +129,11 @@ func (o *CloudNetworkInterfaceAttachment) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "cloud.NetworkInterfaceAttachment" of the ObjectType field. +func (o *CloudNetworkInterfaceAttachment) GetDefaultObjectType() interface{} { + return "cloud.NetworkInterfaceAttachment" +} + // GetAccessConfig returns the AccessConfig field value if set, zero value otherwise (both if not set or set to explicit null). func (o *CloudNetworkInterfaceAttachment) GetAccessConfig() CloudNetworkAccessConfig { if o == nil || IsNil(o.AccessConfig.Get()) { @@ -380,7 +390,7 @@ func (o *CloudNetworkInterfaceAttachment) GetPrivateAddressOk() ([]CloudNetworkA // HasPrivateAddress returns a boolean if a field has been set. func (o *CloudNetworkInterfaceAttachment) HasPrivateAddress() bool { - if o != nil && IsNil(o.PrivateAddress) { + if o != nil && !IsNil(o.PrivateAddress) { return true } @@ -413,7 +423,7 @@ func (o *CloudNetworkInterfaceAttachment) GetPublicAddressOk() ([]CloudNetworkAd // HasPublicAddress returns a boolean if a field has been set. func (o *CloudNetworkInterfaceAttachment) HasPublicAddress() bool { - if o != nil && IsNil(o.PublicAddress) { + if o != nil && !IsNil(o.PublicAddress) { return true } @@ -446,7 +456,7 @@ func (o *CloudNetworkInterfaceAttachment) GetSecurityGroupsOk() ([]string, bool) // HasSecurityGroups returns a boolean if a field has been set. func (o *CloudNetworkInterfaceAttachment) HasSecurityGroups() bool { - if o != nil && IsNil(o.SecurityGroups) { + if o != nil && !IsNil(o.SecurityGroups) { return true } @@ -540,7 +550,13 @@ func (o CloudNetworkInterfaceAttachment) ToMap() (map[string]interface{}, error) if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.AccessConfig.IsSet() { toSerialize["AccessConfig"] = o.AccessConfig.Get() @@ -595,6 +611,13 @@ func (o *CloudNetworkInterfaceAttachment) UnmarshalJSON(data []byte) (err error) "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -604,11 +627,23 @@ func (o *CloudNetworkInterfaceAttachment) UnmarshalJSON(data []byte) (err error) } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type CloudNetworkInterfaceAttachmentWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_cloud_regions.go b/model_cloud_regions.go index 291134bb8f..76c0c24456 100644 --- a/model_cloud_regions.go +++ b/model_cloud_regions.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -107,6 +107,11 @@ func (o *CloudRegions) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "cloud.Regions" of the ClassId field. +func (o *CloudRegions) GetDefaultClassId() interface{} { + return "cloud.Regions" +} + // GetObjectType returns the ObjectType field value func (o *CloudRegions) GetObjectType() string { if o == nil { @@ -131,6 +136,11 @@ func (o *CloudRegions) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "cloud.Regions" of the ObjectType field. +func (o *CloudRegions) GetDefaultObjectType() interface{} { + return "cloud.Regions" +} + // GetAlternateNames returns the AlternateNames field value if set, zero value otherwise (both if not set or set to explicit null). func (o *CloudRegions) GetAlternateNames() []string { if o == nil { @@ -152,7 +162,7 @@ func (o *CloudRegions) GetAlternateNamesOk() ([]string, bool) { // HasAlternateNames returns a boolean if a field has been set. func (o *CloudRegions) HasAlternateNames() bool { - if o != nil && IsNil(o.AlternateNames) { + if o != nil && !IsNil(o.AlternateNames) { return true } @@ -441,7 +451,7 @@ func (o *CloudRegions) GetZonesOk() ([]string, bool) { // HasZones returns a boolean if a field has been set. func (o *CloudRegions) HasZones() bool { - if o != nil && IsNil(o.Zones) { + if o != nil && !IsNil(o.Zones) { return true } @@ -514,7 +524,13 @@ func (o CloudRegions) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.AlternateNames != nil { toSerialize["AlternateNames"] = o.AlternateNames @@ -566,6 +582,13 @@ func (o *CloudRegions) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -575,11 +598,23 @@ func (o *CloudRegions) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type CloudRegionsWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_cloud_regions_list.go b/model_cloud_regions_list.go index 21f85b4a8a..8a65968e3e 100644 --- a/model_cloud_regions_list.go +++ b/model_cloud_regions_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *CloudRegionsList) GetResultsOk() ([]CloudRegions, bool) { // HasResults returns a boolean if a field has been set. func (o *CloudRegionsList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *CloudRegionsList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *CloudRegionsList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type CloudRegionsListWithoutEmbeddedStruct struct { // The total number of 'cloud.Regions' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_cloud_regions_relationship.go b/model_cloud_regions_relationship.go index 84b2d9f4a8..a961c80570 100644 --- a/model_cloud_regions_relationship.go +++ b/model_cloud_regions_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_cloud_regions_response.go b/model_cloud_regions_response.go index a8681f3b22..996e3244bf 100644 --- a/model_cloud_regions_response.go +++ b/model_cloud_regions_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_cloud_security_group_rule.go b/model_cloud_security_group_rule.go index 6007622148..0b73a159ff 100644 --- a/model_cloud_security_group_rule.go +++ b/model_cloud_security_group_rule.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -102,6 +102,11 @@ func (o *CloudSecurityGroupRule) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "cloud.SecurityGroupRule" of the ClassId field. +func (o *CloudSecurityGroupRule) GetDefaultClassId() interface{} { + return "cloud.SecurityGroupRule" +} + // GetObjectType returns the ObjectType field value func (o *CloudSecurityGroupRule) GetObjectType() string { if o == nil { @@ -126,6 +131,11 @@ func (o *CloudSecurityGroupRule) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "cloud.SecurityGroupRule" of the ObjectType field. +func (o *CloudSecurityGroupRule) GetDefaultObjectType() interface{} { + return "cloud.SecurityGroupRule" +} + // GetAction returns the Action field value if set, zero value otherwise. func (o *CloudSecurityGroupRule) GetAction() string { if o == nil || IsNil(o.Action) { @@ -371,7 +381,7 @@ func (o *CloudSecurityGroupRule) GetPortListOk() ([]int64, bool) { // HasPortList returns a boolean if a field has been set. func (o *CloudSecurityGroupRule) HasPortList() bool { - if o != nil && IsNil(o.PortList) { + if o != nil && !IsNil(o.PortList) { return true } @@ -436,7 +446,7 @@ func (o *CloudSecurityGroupRule) GetSourceCidrOk() ([]string, bool) { // HasSourceCidr returns a boolean if a field has been set. func (o *CloudSecurityGroupRule) HasSourceCidr() bool { - if o != nil && IsNil(o.SourceCidr) { + if o != nil && !IsNil(o.SourceCidr) { return true } @@ -530,7 +540,13 @@ func (o CloudSecurityGroupRule) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Action) { toSerialize["Action"] = o.Action @@ -585,6 +601,13 @@ func (o *CloudSecurityGroupRule) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -594,11 +617,23 @@ func (o *CloudSecurityGroupRule) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type CloudSecurityGroupRuleWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_cloud_sku_container_type.go b/model_cloud_sku_container_type.go index 2f82544a44..c23117d4b3 100644 --- a/model_cloud_sku_container_type.go +++ b/model_cloud_sku_container_type.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -96,6 +96,11 @@ func (o *CloudSkuContainerType) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "cloud.SkuContainerType" of the ClassId field. +func (o *CloudSkuContainerType) GetDefaultClassId() interface{} { + return "cloud.SkuContainerType" +} + // GetObjectType returns the ObjectType field value func (o *CloudSkuContainerType) GetObjectType() string { if o == nil { @@ -120,6 +125,11 @@ func (o *CloudSkuContainerType) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "cloud.SkuContainerType" of the ObjectType field. +func (o *CloudSkuContainerType) GetDefaultObjectType() interface{} { + return "cloud.SkuContainerType" +} + // GetCpuUnit returns the CpuUnit field value if set, zero value otherwise. func (o *CloudSkuContainerType) GetCpuUnit() string { if o == nil || IsNil(o.CpuUnit) { @@ -202,7 +212,13 @@ func (o CloudSkuContainerType) ToMap() (map[string]interface{}, error) { if errCloudBaseSku != nil { return map[string]interface{}{}, errCloudBaseSku } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.CpuUnit) { toSerialize["CpuUnit"] = o.CpuUnit @@ -227,6 +243,13 @@ func (o *CloudSkuContainerType) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -236,11 +259,23 @@ func (o *CloudSkuContainerType) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type CloudSkuContainerTypeWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_cloud_sku_container_type_list.go b/model_cloud_sku_container_type_list.go index 88032f362b..d1051fd077 100644 --- a/model_cloud_sku_container_type_list.go +++ b/model_cloud_sku_container_type_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *CloudSkuContainerTypeList) GetResultsOk() ([]CloudSkuContainerType, boo // HasResults returns a boolean if a field has been set. func (o *CloudSkuContainerTypeList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *CloudSkuContainerTypeList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *CloudSkuContainerTypeList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type CloudSkuContainerTypeListWithoutEmbeddedStruct struct { // The total number of 'cloud.SkuContainerType' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_cloud_sku_container_type_response.go b/model_cloud_sku_container_type_response.go index c5eb92c6ad..17af7d9ea6 100644 --- a/model_cloud_sku_container_type_response.go +++ b/model_cloud_sku_container_type_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_cloud_sku_database_type.go b/model_cloud_sku_database_type.go index 5300af47d2..4160a26491 100644 --- a/model_cloud_sku_database_type.go +++ b/model_cloud_sku_database_type.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -96,6 +96,11 @@ func (o *CloudSkuDatabaseType) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "cloud.SkuDatabaseType" of the ClassId field. +func (o *CloudSkuDatabaseType) GetDefaultClassId() interface{} { + return "cloud.SkuDatabaseType" +} + // GetObjectType returns the ObjectType field value func (o *CloudSkuDatabaseType) GetObjectType() string { if o == nil { @@ -120,6 +125,11 @@ func (o *CloudSkuDatabaseType) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "cloud.SkuDatabaseType" of the ObjectType field. +func (o *CloudSkuDatabaseType) GetDefaultObjectType() interface{} { + return "cloud.SkuDatabaseType" +} + // GetDatabaseEdition returns the DatabaseEdition field value if set, zero value otherwise. func (o *CloudSkuDatabaseType) GetDatabaseEdition() string { if o == nil || IsNil(o.DatabaseEdition) { @@ -266,7 +276,13 @@ func (o CloudSkuDatabaseType) ToMap() (map[string]interface{}, error) { if errCloudBaseSku != nil { return map[string]interface{}{}, errCloudBaseSku } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.DatabaseEdition) { toSerialize["DatabaseEdition"] = o.DatabaseEdition @@ -297,6 +313,13 @@ func (o *CloudSkuDatabaseType) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -306,11 +329,23 @@ func (o *CloudSkuDatabaseType) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type CloudSkuDatabaseTypeWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_cloud_sku_database_type_list.go b/model_cloud_sku_database_type_list.go index 2efa20a9cd..928a7c6c5b 100644 --- a/model_cloud_sku_database_type_list.go +++ b/model_cloud_sku_database_type_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *CloudSkuDatabaseTypeList) GetResultsOk() ([]CloudSkuDatabaseType, bool) // HasResults returns a boolean if a field has been set. func (o *CloudSkuDatabaseTypeList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *CloudSkuDatabaseTypeList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *CloudSkuDatabaseTypeList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type CloudSkuDatabaseTypeListWithoutEmbeddedStruct struct { // The total number of 'cloud.SkuDatabaseType' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_cloud_sku_database_type_response.go b/model_cloud_sku_database_type_response.go index 69e2be4c54..9f437258f0 100644 --- a/model_cloud_sku_database_type_response.go +++ b/model_cloud_sku_database_type_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_cloud_sku_instance_type.go b/model_cloud_sku_instance_type.go index 4745fedf6a..ec02c7d1cc 100644 --- a/model_cloud_sku_instance_type.go +++ b/model_cloud_sku_instance_type.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -124,6 +124,11 @@ func (o *CloudSkuInstanceType) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "cloud.SkuInstanceType" of the ClassId field. +func (o *CloudSkuInstanceType) GetDefaultClassId() interface{} { + return "cloud.SkuInstanceType" +} + // GetObjectType returns the ObjectType field value func (o *CloudSkuInstanceType) GetObjectType() string { if o == nil { @@ -148,6 +153,11 @@ func (o *CloudSkuInstanceType) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "cloud.SkuInstanceType" of the ObjectType field. +func (o *CloudSkuInstanceType) GetDefaultObjectType() interface{} { + return "cloud.SkuInstanceType" +} + // GetArchitectureType returns the ArchitectureType field value if set, zero value otherwise. func (o *CloudSkuInstanceType) GetArchitectureType() string { if o == nil || IsNil(o.ArchitectureType) { @@ -486,7 +496,13 @@ func (o CloudSkuInstanceType) ToMap() (map[string]interface{}, error) { if errCloudBaseSku != nil { return map[string]interface{}{}, errCloudBaseSku } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.ArchitectureType) { toSerialize["ArchitectureType"] = o.ArchitectureType @@ -535,6 +551,13 @@ func (o *CloudSkuInstanceType) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -544,11 +567,23 @@ func (o *CloudSkuInstanceType) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type CloudSkuInstanceTypeWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_cloud_sku_instance_type_list.go b/model_cloud_sku_instance_type_list.go index acbff63e4e..003133134c 100644 --- a/model_cloud_sku_instance_type_list.go +++ b/model_cloud_sku_instance_type_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *CloudSkuInstanceTypeList) GetResultsOk() ([]CloudSkuInstanceType, bool) // HasResults returns a boolean if a field has been set. func (o *CloudSkuInstanceTypeList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *CloudSkuInstanceTypeList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *CloudSkuInstanceTypeList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type CloudSkuInstanceTypeListWithoutEmbeddedStruct struct { // The total number of 'cloud.SkuInstanceType' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_cloud_sku_instance_type_response.go b/model_cloud_sku_instance_type_response.go index c3756f8cfe..31ce66355e 100644 --- a/model_cloud_sku_instance_type_response.go +++ b/model_cloud_sku_instance_type_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_cloud_sku_network_type.go b/model_cloud_sku_network_type.go index 6c2e11e1a6..d9b04c58a0 100644 --- a/model_cloud_sku_network_type.go +++ b/model_cloud_sku_network_type.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -91,6 +91,10 @@ func (o *CloudSkuNetworkType) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -100,11 +104,23 @@ func (o *CloudSkuNetworkType) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type CloudSkuNetworkTypeWithoutEmbeddedStruct struct { } diff --git a/model_cloud_sku_network_type_list.go b/model_cloud_sku_network_type_list.go index 7e89a5c1ea..733b95d381 100644 --- a/model_cloud_sku_network_type_list.go +++ b/model_cloud_sku_network_type_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *CloudSkuNetworkTypeList) GetResultsOk() ([]CloudSkuNetworkType, bool) { // HasResults returns a boolean if a field has been set. func (o *CloudSkuNetworkTypeList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *CloudSkuNetworkTypeList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *CloudSkuNetworkTypeList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type CloudSkuNetworkTypeListWithoutEmbeddedStruct struct { // The total number of 'cloud.SkuNetworkType' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_cloud_sku_network_type_response.go b/model_cloud_sku_network_type_response.go index 8992c99c1c..fc3b9bc05d 100644 --- a/model_cloud_sku_network_type_response.go +++ b/model_cloud_sku_network_type_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_cloud_sku_region_rate_cards.go b/model_cloud_sku_region_rate_cards.go index 93685cdb1b..ef33b1bf07 100644 --- a/model_cloud_sku_region_rate_cards.go +++ b/model_cloud_sku_region_rate_cards.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -117,6 +117,11 @@ func (o *CloudSkuRegionRateCards) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "cloud.SkuRegionRateCards" of the ClassId field. +func (o *CloudSkuRegionRateCards) GetDefaultClassId() interface{} { + return "cloud.SkuRegionRateCards" +} + // GetObjectType returns the ObjectType field value func (o *CloudSkuRegionRateCards) GetObjectType() string { if o == nil { @@ -141,6 +146,11 @@ func (o *CloudSkuRegionRateCards) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "cloud.SkuRegionRateCards" of the ObjectType field. +func (o *CloudSkuRegionRateCards) GetDefaultObjectType() interface{} { + return "cloud.SkuRegionRateCards" +} + // GetCurrency returns the Currency field value if set, zero value otherwise. func (o *CloudSkuRegionRateCards) GetCurrency() string { if o == nil || IsNil(o.Currency) { @@ -194,7 +204,7 @@ func (o *CloudSkuRegionRateCards) GetCustomAttributesOk() ([]CloudCustomAttribut // HasCustomAttributes returns a boolean if a field has been set. func (o *CloudSkuRegionRateCards) HasCustomAttributes() bool { - if o != nil && IsNil(o.CustomAttributes) { + if o != nil && !IsNil(o.CustomAttributes) { return true } @@ -630,7 +640,13 @@ func (o CloudSkuRegionRateCards) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Currency) { toSerialize["Currency"] = o.Currency @@ -691,6 +707,13 @@ func (o *CloudSkuRegionRateCards) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -700,11 +723,23 @@ func (o *CloudSkuRegionRateCards) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type CloudSkuRegionRateCardsWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_cloud_sku_region_rate_cards_list.go b/model_cloud_sku_region_rate_cards_list.go index ff4441e218..ce743ed3f5 100644 --- a/model_cloud_sku_region_rate_cards_list.go +++ b/model_cloud_sku_region_rate_cards_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *CloudSkuRegionRateCardsList) GetResultsOk() ([]CloudSkuRegionRateCards, // HasResults returns a boolean if a field has been set. func (o *CloudSkuRegionRateCardsList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *CloudSkuRegionRateCardsList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *CloudSkuRegionRateCardsList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type CloudSkuRegionRateCardsListWithoutEmbeddedStruct struct { // The total number of 'cloud.SkuRegionRateCards' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_cloud_sku_region_rate_cards_response.go b/model_cloud_sku_region_rate_cards_response.go index b52cca85c5..815bbf5e54 100644 --- a/model_cloud_sku_region_rate_cards_response.go +++ b/model_cloud_sku_region_rate_cards_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_cloud_sku_volume_type.go b/model_cloud_sku_volume_type.go index ee06158544..e143058544 100644 --- a/model_cloud_sku_volume_type.go +++ b/model_cloud_sku_volume_type.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -118,6 +118,11 @@ func (o *CloudSkuVolumeType) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "cloud.SkuVolumeType" of the ClassId field. +func (o *CloudSkuVolumeType) GetDefaultClassId() interface{} { + return "cloud.SkuVolumeType" +} + // GetObjectType returns the ObjectType field value func (o *CloudSkuVolumeType) GetObjectType() string { if o == nil { @@ -142,6 +147,11 @@ func (o *CloudSkuVolumeType) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "cloud.SkuVolumeType" of the ObjectType field. +func (o *CloudSkuVolumeType) GetDefaultObjectType() interface{} { + return "cloud.SkuVolumeType" +} + // GetIopsUnit returns the IopsUnit field value if set, zero value otherwise. func (o *CloudSkuVolumeType) GetIopsUnit() string { if o == nil || IsNil(o.IopsUnit) { @@ -640,7 +650,13 @@ func (o CloudSkuVolumeType) ToMap() (map[string]interface{}, error) { if errCloudBaseSku != nil { return map[string]interface{}{}, errCloudBaseSku } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.IopsUnit) { toSerialize["IopsUnit"] = o.IopsUnit @@ -704,6 +720,13 @@ func (o *CloudSkuVolumeType) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -713,11 +736,23 @@ func (o *CloudSkuVolumeType) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type CloudSkuVolumeTypeWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_cloud_sku_volume_type_list.go b/model_cloud_sku_volume_type_list.go index d4485acc7f..c0586976b6 100644 --- a/model_cloud_sku_volume_type_list.go +++ b/model_cloud_sku_volume_type_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *CloudSkuVolumeTypeList) GetResultsOk() ([]CloudSkuVolumeType, bool) { // HasResults returns a boolean if a field has been set. func (o *CloudSkuVolumeTypeList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *CloudSkuVolumeTypeList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *CloudSkuVolumeTypeList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type CloudSkuVolumeTypeListWithoutEmbeddedStruct struct { // The total number of 'cloud.SkuVolumeType' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_cloud_sku_volume_type_response.go b/model_cloud_sku_volume_type_response.go index 92355db8bd..b8d7b7577e 100644 --- a/model_cloud_sku_volume_type_response.go +++ b/model_cloud_sku_volume_type_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_cloud_tfc_agentpool.go b/model_cloud_tfc_agentpool.go index 88b3ba1a18..c9bd2d5bdb 100644 --- a/model_cloud_tfc_agentpool.go +++ b/model_cloud_tfc_agentpool.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -89,6 +89,11 @@ func (o *CloudTfcAgentpool) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "cloud.TfcAgentpool" of the ClassId field. +func (o *CloudTfcAgentpool) GetDefaultClassId() interface{} { + return "cloud.TfcAgentpool" +} + // GetObjectType returns the ObjectType field value func (o *CloudTfcAgentpool) GetObjectType() string { if o == nil { @@ -113,6 +118,11 @@ func (o *CloudTfcAgentpool) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "cloud.TfcAgentpool" of the ObjectType field. +func (o *CloudTfcAgentpool) GetDefaultObjectType() interface{} { + return "cloud.TfcAgentpool" +} + // GetIdentity returns the Identity field value if set, zero value otherwise. func (o *CloudTfcAgentpool) GetIdentity() string { if o == nil || IsNil(o.Identity) { @@ -302,7 +312,13 @@ func (o CloudTfcAgentpool) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Identity) { toSerialize["Identity"] = o.Identity @@ -336,6 +352,13 @@ func (o *CloudTfcAgentpool) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -345,11 +368,23 @@ func (o *CloudTfcAgentpool) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type CloudTfcAgentpoolWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_cloud_tfc_agentpool_list.go b/model_cloud_tfc_agentpool_list.go index c928b351cf..aad95aa385 100644 --- a/model_cloud_tfc_agentpool_list.go +++ b/model_cloud_tfc_agentpool_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *CloudTfcAgentpoolList) GetResultsOk() ([]CloudTfcAgentpool, bool) { // HasResults returns a boolean if a field has been set. func (o *CloudTfcAgentpoolList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *CloudTfcAgentpoolList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *CloudTfcAgentpoolList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type CloudTfcAgentpoolListWithoutEmbeddedStruct struct { // The total number of 'cloud.TfcAgentpool' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_cloud_tfc_agentpool_response.go b/model_cloud_tfc_agentpool_response.go index 58a2e52f46..698b8d9d28 100644 --- a/model_cloud_tfc_agentpool_response.go +++ b/model_cloud_tfc_agentpool_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_cloud_tfc_organization.go b/model_cloud_tfc_organization.go index 85eae4a5ba..77b268623f 100644 --- a/model_cloud_tfc_organization.go +++ b/model_cloud_tfc_organization.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -97,6 +97,11 @@ func (o *CloudTfcOrganization) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "cloud.TfcOrganization" of the ClassId field. +func (o *CloudTfcOrganization) GetDefaultClassId() interface{} { + return "cloud.TfcOrganization" +} + // GetObjectType returns the ObjectType field value func (o *CloudTfcOrganization) GetObjectType() string { if o == nil { @@ -121,6 +126,11 @@ func (o *CloudTfcOrganization) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "cloud.TfcOrganization" of the ObjectType field. +func (o *CloudTfcOrganization) GetDefaultObjectType() interface{} { + return "cloud.TfcOrganization" +} + // GetAgentCeiling returns the AgentCeiling field value if set, zero value otherwise. func (o *CloudTfcOrganization) GetAgentCeiling() int64 { if o == nil || IsNil(o.AgentCeiling) { @@ -438,7 +448,13 @@ func (o CloudTfcOrganization) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.AgentCeiling) { toSerialize["AgentCeiling"] = o.AgentCeiling @@ -484,6 +500,13 @@ func (o *CloudTfcOrganization) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -493,11 +516,23 @@ func (o *CloudTfcOrganization) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type CloudTfcOrganizationWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_cloud_tfc_organization_list.go b/model_cloud_tfc_organization_list.go index 3dc5fedc10..0a3672d6f7 100644 --- a/model_cloud_tfc_organization_list.go +++ b/model_cloud_tfc_organization_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *CloudTfcOrganizationList) GetResultsOk() ([]CloudTfcOrganization, bool) // HasResults returns a boolean if a field has been set. func (o *CloudTfcOrganizationList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *CloudTfcOrganizationList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *CloudTfcOrganizationList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type CloudTfcOrganizationListWithoutEmbeddedStruct struct { // The total number of 'cloud.TfcOrganization' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_cloud_tfc_organization_relationship.go b/model_cloud_tfc_organization_relationship.go index fb8be630fa..101bdee7ee 100644 --- a/model_cloud_tfc_organization_relationship.go +++ b/model_cloud_tfc_organization_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_cloud_tfc_organization_response.go b/model_cloud_tfc_organization_response.go index 0ffd76ddae..5aee4b2326 100644 --- a/model_cloud_tfc_organization_response.go +++ b/model_cloud_tfc_organization_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_cloud_tfc_workspace.go b/model_cloud_tfc_workspace.go index 971ea2cc20..765d0be45c 100644 --- a/model_cloud_tfc_workspace.go +++ b/model_cloud_tfc_workspace.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -94,6 +94,11 @@ func (o *CloudTfcWorkspace) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "cloud.TfcWorkspace" of the ClassId field. +func (o *CloudTfcWorkspace) GetDefaultClassId() interface{} { + return "cloud.TfcWorkspace" +} + // GetObjectType returns the ObjectType field value func (o *CloudTfcWorkspace) GetObjectType() string { if o == nil { @@ -118,6 +123,11 @@ func (o *CloudTfcWorkspace) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "cloud.TfcWorkspace" of the ObjectType field. +func (o *CloudTfcWorkspace) GetDefaultObjectType() interface{} { + return "cloud.TfcWorkspace" +} + // GetAgentPoolId returns the AgentPoolId field value if set, zero value otherwise. func (o *CloudTfcWorkspace) GetAgentPoolId() string { if o == nil || IsNil(o.AgentPoolId) { @@ -331,7 +341,7 @@ func (o *CloudTfcWorkspace) GetWorkspaceVariablesOk() ([]CloudTfcWorkspaceVariab // HasWorkspaceVariables returns a boolean if a field has been set. func (o *CloudTfcWorkspace) HasWorkspaceVariables() bool { - if o != nil && IsNil(o.WorkspaceVariables) { + if o != nil && !IsNil(o.WorkspaceVariables) { return true } @@ -404,7 +414,13 @@ func (o CloudTfcWorkspace) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.AgentPoolId) { toSerialize["AgentPoolId"] = o.AgentPoolId @@ -447,6 +463,13 @@ func (o *CloudTfcWorkspace) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -456,11 +479,23 @@ func (o *CloudTfcWorkspace) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type CloudTfcWorkspaceWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_cloud_tfc_workspace_list.go b/model_cloud_tfc_workspace_list.go index 797895dbf2..7f75b5f094 100644 --- a/model_cloud_tfc_workspace_list.go +++ b/model_cloud_tfc_workspace_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *CloudTfcWorkspaceList) GetResultsOk() ([]CloudTfcWorkspace, bool) { // HasResults returns a boolean if a field has been set. func (o *CloudTfcWorkspaceList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *CloudTfcWorkspaceList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *CloudTfcWorkspaceList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type CloudTfcWorkspaceListWithoutEmbeddedStruct struct { // The total number of 'cloud.TfcWorkspace' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_cloud_tfc_workspace_response.go b/model_cloud_tfc_workspace_response.go index 19ee1d40a0..e7603f2490 100644 --- a/model_cloud_tfc_workspace_response.go +++ b/model_cloud_tfc_workspace_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_cloud_tfc_workspace_variables.go b/model_cloud_tfc_workspace_variables.go index e62704c479..aa6b9e267a 100644 --- a/model_cloud_tfc_workspace_variables.go +++ b/model_cloud_tfc_workspace_variables.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -94,6 +94,11 @@ func (o *CloudTfcWorkspaceVariables) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "cloud.TfcWorkspaceVariables" of the ClassId field. +func (o *CloudTfcWorkspaceVariables) GetDefaultClassId() interface{} { + return "cloud.TfcWorkspaceVariables" +} + // GetObjectType returns the ObjectType field value func (o *CloudTfcWorkspaceVariables) GetObjectType() string { if o == nil { @@ -118,6 +123,11 @@ func (o *CloudTfcWorkspaceVariables) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "cloud.TfcWorkspaceVariables" of the ObjectType field. +func (o *CloudTfcWorkspaceVariables) GetDefaultObjectType() interface{} { + return "cloud.TfcWorkspaceVariables" +} + // GetCategory returns the Category field value if set, zero value otherwise. func (o *CloudTfcWorkspaceVariables) GetCategory() string { if o == nil || IsNil(o.Category) { @@ -360,7 +370,13 @@ func (o CloudTfcWorkspaceVariables) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Category) { toSerialize["Category"] = o.Category @@ -400,6 +416,13 @@ func (o *CloudTfcWorkspaceVariables) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -409,11 +432,23 @@ func (o *CloudTfcWorkspaceVariables) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type CloudTfcWorkspaceVariablesWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_cloud_volume_attachment.go b/model_cloud_volume_attachment.go index 2cb5572d69..96f218e51c 100644 --- a/model_cloud_volume_attachment.go +++ b/model_cloud_volume_attachment.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -95,6 +95,11 @@ func (o *CloudVolumeAttachment) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "cloud.VolumeAttachment" of the ClassId field. +func (o *CloudVolumeAttachment) GetDefaultClassId() interface{} { + return "cloud.VolumeAttachment" +} + // GetObjectType returns the ObjectType field value func (o *CloudVolumeAttachment) GetObjectType() string { if o == nil { @@ -119,6 +124,11 @@ func (o *CloudVolumeAttachment) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "cloud.VolumeAttachment" of the ObjectType field. +func (o *CloudVolumeAttachment) GetDefaultObjectType() interface{} { + return "cloud.VolumeAttachment" +} + // GetAttachedTime returns the AttachedTime field value if set, zero value otherwise. func (o *CloudVolumeAttachment) GetAttachedTime() time.Time { if o == nil || IsNil(o.AttachedTime) { @@ -361,7 +371,13 @@ func (o CloudVolumeAttachment) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.AttachedTime) { toSerialize["AttachedTime"] = o.AttachedTime @@ -401,6 +417,13 @@ func (o *CloudVolumeAttachment) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -410,11 +433,23 @@ func (o *CloudVolumeAttachment) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type CloudVolumeAttachmentWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_cloud_volume_instance_attachment.go b/model_cloud_volume_instance_attachment.go index d47f227419..46de7c5618 100644 --- a/model_cloud_volume_instance_attachment.go +++ b/model_cloud_volume_instance_attachment.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -91,6 +91,11 @@ func (o *CloudVolumeInstanceAttachment) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "cloud.VolumeInstanceAttachment" of the ClassId field. +func (o *CloudVolumeInstanceAttachment) GetDefaultClassId() interface{} { + return "cloud.VolumeInstanceAttachment" +} + // GetObjectType returns the ObjectType field value func (o *CloudVolumeInstanceAttachment) GetObjectType() string { if o == nil { @@ -115,6 +120,11 @@ func (o *CloudVolumeInstanceAttachment) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "cloud.VolumeInstanceAttachment" of the ObjectType field. +func (o *CloudVolumeInstanceAttachment) GetDefaultObjectType() interface{} { + return "cloud.VolumeInstanceAttachment" +} + // GetAttachTime returns the AttachTime field value if set, zero value otherwise. func (o *CloudVolumeInstanceAttachment) GetAttachTime() time.Time { if o == nil || IsNil(o.AttachTime) { @@ -293,7 +303,13 @@ func (o CloudVolumeInstanceAttachment) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.AttachTime) { toSerialize["AttachTime"] = o.AttachTime @@ -327,6 +343,13 @@ func (o *CloudVolumeInstanceAttachment) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -336,11 +359,23 @@ func (o *CloudVolumeInstanceAttachment) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type CloudVolumeInstanceAttachmentWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_cloud_volume_iops_info.go b/model_cloud_volume_iops_info.go index 1c4c9c3acc..fdb48723da 100644 --- a/model_cloud_volume_iops_info.go +++ b/model_cloud_volume_iops_info.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -88,6 +88,11 @@ func (o *CloudVolumeIopsInfo) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "cloud.VolumeIopsInfo" of the ClassId field. +func (o *CloudVolumeIopsInfo) GetDefaultClassId() interface{} { + return "cloud.VolumeIopsInfo" +} + // GetObjectType returns the ObjectType field value func (o *CloudVolumeIopsInfo) GetObjectType() string { if o == nil { @@ -112,6 +117,11 @@ func (o *CloudVolumeIopsInfo) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "cloud.VolumeIopsInfo" of the ObjectType field. +func (o *CloudVolumeIopsInfo) GetDefaultObjectType() interface{} { + return "cloud.VolumeIopsInfo" +} + // GetIopsReadLimit returns the IopsReadLimit field value if set, zero value otherwise. func (o *CloudVolumeIopsInfo) GetIopsReadLimit() int64 { if o == nil || IsNil(o.IopsReadLimit) { @@ -258,7 +268,13 @@ func (o CloudVolumeIopsInfo) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.IopsReadLimit) { toSerialize["IopsReadLimit"] = o.IopsReadLimit @@ -289,6 +305,13 @@ func (o *CloudVolumeIopsInfo) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -298,11 +321,23 @@ func (o *CloudVolumeIopsInfo) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type CloudVolumeIopsInfoWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_cloud_volume_type.go b/model_cloud_volume_type.go index 976b2dda21..d8f5c9f3b5 100644 --- a/model_cloud_volume_type.go +++ b/model_cloud_volume_type.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -84,6 +84,11 @@ func (o *CloudVolumeType) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "cloud.VolumeType" of the ClassId field. +func (o *CloudVolumeType) GetDefaultClassId() interface{} { + return "cloud.VolumeType" +} + // GetObjectType returns the ObjectType field value func (o *CloudVolumeType) GetObjectType() string { if o == nil { @@ -108,6 +113,11 @@ func (o *CloudVolumeType) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "cloud.VolumeType" of the ObjectType field. +func (o *CloudVolumeType) GetDefaultObjectType() interface{} { + return "cloud.VolumeType" +} + // GetName returns the Name field value if set, zero value otherwise. func (o *CloudVolumeType) GetName() string { if o == nil || IsNil(o.Name) { @@ -190,7 +200,13 @@ func (o CloudVolumeType) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Name) { toSerialize["Name"] = o.Name @@ -215,6 +231,13 @@ func (o *CloudVolumeType) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -224,11 +247,23 @@ func (o *CloudVolumeType) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type CloudVolumeTypeWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_cmrf_cm_rf.go b/model_cmrf_cm_rf.go index 053984dbde..9a41d96cf3 100644 --- a/model_cmrf_cm_rf.go +++ b/model_cmrf_cm_rf.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -120,6 +120,10 @@ func (o *CmrfCmRf) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -129,11 +133,23 @@ func (o *CmrfCmRf) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type CmrfCmRfWithoutEmbeddedStruct struct { // The Moid of the referenced REST resource. Moid *string `json:"Moid,omitempty"` diff --git a/model_comm_abstract_http_proxy_policy.go b/model_comm_abstract_http_proxy_policy.go index 8f3c556128..cc42895277 100644 --- a/model_comm_abstract_http_proxy_policy.go +++ b/model_comm_abstract_http_proxy_policy.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -29,7 +29,7 @@ type CommAbstractHttpProxyPolicy struct { // The fully-qualified name of the instantiated, concrete type. The value should be the same as the 'ClassId' property. The enum values provides the list of concrete types that can be instantiated from this abstract type. ObjectType string `json:"ObjectType"` // HTTP Proxy server FQDN or IP. - Hostname *string `json:"Hostname,omitempty"` + Hostname *string `json:"Hostname,omitempty" validate:"regexp=^[A-Za-z]([A-Za-z0-9-]*[A-Za-z0-9])?$|^[A-Za-z0-9]([A-Za-z0-9-]*[A-Za-z0-9])?(\\\\.[A-Za-z0-9]([A-Za-z0-9-]*[A-Za-z0-9])?)*(\\\\.[A-Za-z]([A-Za-z0-9-]*[A-Za-z0-9])?)$|^([1-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\\\.([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\\\.([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\\\.([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])$"` // Indicates whether the value of the 'password' property has been set. IsPasswordSet *bool `json:"IsPasswordSet,omitempty"` // The password for the HTTP Proxy. @@ -91,6 +91,11 @@ func (o *CommAbstractHttpProxyPolicy) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "comm.HttpProxyPolicy" of the ClassId field. +func (o *CommAbstractHttpProxyPolicy) GetDefaultClassId() interface{} { + return "comm.HttpProxyPolicy" +} + // GetObjectType returns the ObjectType field value func (o *CommAbstractHttpProxyPolicy) GetObjectType() string { if o == nil { @@ -115,6 +120,11 @@ func (o *CommAbstractHttpProxyPolicy) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "comm.HttpProxyPolicy" of the ObjectType field. +func (o *CommAbstractHttpProxyPolicy) GetDefaultObjectType() interface{} { + return "comm.HttpProxyPolicy" +} + // GetHostname returns the Hostname field value if set, zero value otherwise. func (o *CommAbstractHttpProxyPolicy) GetHostname() string { if o == nil || IsNil(o.Hostname) { @@ -336,7 +346,13 @@ func (o CommAbstractHttpProxyPolicy) ToMap() (map[string]interface{}, error) { if errPolicyAbstractPolicy != nil { return map[string]interface{}{}, errPolicyAbstractPolicy } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Hostname) { toSerialize["Hostname"] = o.Hostname @@ -373,6 +389,13 @@ func (o *CommAbstractHttpProxyPolicy) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -382,18 +405,30 @@ func (o *CommAbstractHttpProxyPolicy) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type CommAbstractHttpProxyPolicyWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. The enum values provides the list of concrete types that can be instantiated from this abstract type. ClassId string `json:"ClassId"` // The fully-qualified name of the instantiated, concrete type. The value should be the same as the 'ClassId' property. The enum values provides the list of concrete types that can be instantiated from this abstract type. ObjectType string `json:"ObjectType"` // HTTP Proxy server FQDN or IP. - Hostname *string `json:"Hostname,omitempty"` + Hostname *string `json:"Hostname,omitempty" validate:"regexp=^[A-Za-z]([A-Za-z0-9-]*[A-Za-z0-9])?$|^[A-Za-z0-9]([A-Za-z0-9-]*[A-Za-z0-9])?(\\\\.[A-Za-z0-9]([A-Za-z0-9-]*[A-Za-z0-9])?)*(\\\\.[A-Za-z]([A-Za-z0-9-]*[A-Za-z0-9])?)$|^([1-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\\\.([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\\\.([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\\\.([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])$"` // Indicates whether the value of the 'password' property has been set. IsPasswordSet *bool `json:"IsPasswordSet,omitempty"` // The password for the HTTP Proxy. diff --git a/model_comm_http_proxy_policy.go b/model_comm_http_proxy_policy.go index 3a529fd47f..a6c3ef3d96 100644 --- a/model_comm_http_proxy_policy.go +++ b/model_comm_http_proxy_policy.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -82,6 +82,11 @@ func (o *CommHttpProxyPolicy) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "comm.HttpProxyPolicy" of the ClassId field. +func (o *CommHttpProxyPolicy) GetDefaultClassId() interface{} { + return "comm.HttpProxyPolicy" +} + // GetObjectType returns the ObjectType field value func (o *CommHttpProxyPolicy) GetObjectType() string { if o == nil { @@ -106,6 +111,11 @@ func (o *CommHttpProxyPolicy) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "comm.HttpProxyPolicy" of the ObjectType field. +func (o *CommHttpProxyPolicy) GetDefaultObjectType() interface{} { + return "comm.HttpProxyPolicy" +} + // GetClusterProfiles returns the ClusterProfiles field value if set, zero value otherwise (both if not set or set to explicit null). func (o *CommHttpProxyPolicy) GetClusterProfiles() []HyperflexClusterProfileRelationship { if o == nil { @@ -127,7 +137,7 @@ func (o *CommHttpProxyPolicy) GetClusterProfilesOk() ([]HyperflexClusterProfileR // HasClusterProfiles returns a boolean if a field has been set. func (o *CommHttpProxyPolicy) HasClusterProfiles() bool { - if o != nil && IsNil(o.ClusterProfiles) { + if o != nil && !IsNil(o.ClusterProfiles) { return true } @@ -157,7 +167,13 @@ func (o CommHttpProxyPolicy) ToMap() (map[string]interface{}, error) { if errCommAbstractHttpProxyPolicy != nil { return map[string]interface{}{}, errCommAbstractHttpProxyPolicy } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.ClusterProfiles != nil { toSerialize["ClusterProfiles"] = o.ClusterProfiles @@ -179,6 +195,13 @@ func (o *CommHttpProxyPolicy) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -188,11 +211,23 @@ func (o *CommHttpProxyPolicy) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type CommHttpProxyPolicyWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_comm_http_proxy_policy_list.go b/model_comm_http_proxy_policy_list.go index 3356c23774..4e1e7c6eff 100644 --- a/model_comm_http_proxy_policy_list.go +++ b/model_comm_http_proxy_policy_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *CommHttpProxyPolicyList) GetResultsOk() ([]CommHttpProxyPolicy, bool) { // HasResults returns a boolean if a field has been set. func (o *CommHttpProxyPolicyList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *CommHttpProxyPolicyList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *CommHttpProxyPolicyList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type CommHttpProxyPolicyListWithoutEmbeddedStruct struct { // The total number of 'comm.HttpProxyPolicy' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_comm_http_proxy_policy_relationship.go b/model_comm_http_proxy_policy_relationship.go index 3d9c06e565..041cf15c4c 100644 --- a/model_comm_http_proxy_policy_relationship.go +++ b/model_comm_http_proxy_policy_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_comm_http_proxy_policy_response.go b/model_comm_http_proxy_policy_response.go index 1471608a41..d2b762f984 100644 --- a/model_comm_http_proxy_policy_response.go +++ b/model_comm_http_proxy_policy_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_comm_ip_v4_address_block.go b/model_comm_ip_v4_address_block.go index 6244689622..63d0172e17 100644 --- a/model_comm_ip_v4_address_block.go +++ b/model_comm_ip_v4_address_block.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -29,9 +29,9 @@ type CommIpV4AddressBlock struct { // The fully-qualified name of the instantiated, concrete type. The value should be the same as the 'ClassId' property. ObjectType string `json:"ObjectType"` // The end address of the IPv4 block. - EndAddress *string `json:"EndAddress,omitempty"` + EndAddress *string `json:"EndAddress,omitempty" validate:"regexp=^$|^([1-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\\\.([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\\\.([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\\\.([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])$"` // The start address of the IPv4 block. - StartAddress *string `json:"StartAddress,omitempty"` + StartAddress *string `json:"StartAddress,omitempty" validate:"regexp=^$|^([1-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\\\.([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\\\.([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\\\.([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])$"` AdditionalProperties map[string]interface{} } @@ -84,6 +84,11 @@ func (o *CommIpV4AddressBlock) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "comm.IpV4AddressBlock" of the ClassId field. +func (o *CommIpV4AddressBlock) GetDefaultClassId() interface{} { + return "comm.IpV4AddressBlock" +} + // GetObjectType returns the ObjectType field value func (o *CommIpV4AddressBlock) GetObjectType() string { if o == nil { @@ -108,6 +113,11 @@ func (o *CommIpV4AddressBlock) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "comm.IpV4AddressBlock" of the ObjectType field. +func (o *CommIpV4AddressBlock) GetDefaultObjectType() interface{} { + return "comm.IpV4AddressBlock" +} + // GetEndAddress returns the EndAddress field value if set, zero value otherwise. func (o *CommIpV4AddressBlock) GetEndAddress() string { if o == nil || IsNil(o.EndAddress) { @@ -190,7 +200,13 @@ func (o CommIpV4AddressBlock) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.EndAddress) { toSerialize["EndAddress"] = o.EndAddress @@ -215,6 +231,13 @@ func (o *CommIpV4AddressBlock) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -224,20 +247,32 @@ func (o *CommIpV4AddressBlock) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type CommIpV4AddressBlockWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` // The fully-qualified name of the instantiated, concrete type. The value should be the same as the 'ClassId' property. ObjectType string `json:"ObjectType"` // The end address of the IPv4 block. - EndAddress *string `json:"EndAddress,omitempty"` + EndAddress *string `json:"EndAddress,omitempty" validate:"regexp=^$|^([1-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\\\.([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\\\.([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\\\.([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])$"` // The start address of the IPv4 block. - StartAddress *string `json:"StartAddress,omitempty"` + StartAddress *string `json:"StartAddress,omitempty" validate:"regexp=^$|^([1-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\\\.([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\\\.([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\\\.([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])$"` } varCommIpV4AddressBlockWithoutEmbeddedStruct := CommIpV4AddressBlockWithoutEmbeddedStruct{} diff --git a/model_comm_ip_v4_interface.go b/model_comm_ip_v4_interface.go index 012a1f7eee..0a8e91705b 100644 --- a/model_comm_ip_v4_interface.go +++ b/model_comm_ip_v4_interface.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -29,11 +29,11 @@ type CommIpV4Interface struct { // The fully-qualified name of the instantiated, concrete type. The value should be the same as the 'ClassId' property. ObjectType string `json:"ObjectType"` // The IPv4 address of the default gateway. - Gateway *string `json:"Gateway,omitempty"` + Gateway *string `json:"Gateway,omitempty" validate:"regexp=^$|^([1-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\\\.([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\\\.([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\\\.([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])$"` // The IPv4 Address, represented in the standard dot-decimal notation, e.g. 192.168.1.3. - IpAddress *string `json:"IpAddress,omitempty"` + IpAddress *string `json:"IpAddress,omitempty" validate:"regexp=^$|^([1-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\\\.([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\\\.([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\\\.([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])$"` // The IPv4 Netmask, represented in the standard dot-decimal notation, e.g. 255.255.255.0. - Netmask *string `json:"Netmask,omitempty"` + Netmask *string `json:"Netmask,omitempty" validate:"regexp=^$|^(((255.){3}(255|254|252|248|240|224|192|128|0+))|((255.){2}(255|254|252|248|240|224|192|128|0+).0)|((255.)(255|254|252|248|240|224|192|128|0+)(.0+){2})|((255|254|252|248|240|224|192|128|0+)(.0+){3}))$"` AdditionalProperties map[string]interface{} } @@ -86,6 +86,11 @@ func (o *CommIpV4Interface) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "comm.IpV4Interface" of the ClassId field. +func (o *CommIpV4Interface) GetDefaultClassId() interface{} { + return "comm.IpV4Interface" +} + // GetObjectType returns the ObjectType field value func (o *CommIpV4Interface) GetObjectType() string { if o == nil { @@ -110,6 +115,11 @@ func (o *CommIpV4Interface) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "comm.IpV4Interface" of the ObjectType field. +func (o *CommIpV4Interface) GetDefaultObjectType() interface{} { + return "comm.IpV4Interface" +} + // GetGateway returns the Gateway field value if set, zero value otherwise. func (o *CommIpV4Interface) GetGateway() string { if o == nil || IsNil(o.Gateway) { @@ -224,7 +234,13 @@ func (o CommIpV4Interface) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Gateway) { toSerialize["Gateway"] = o.Gateway @@ -252,6 +268,13 @@ func (o *CommIpV4Interface) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -261,22 +284,34 @@ func (o *CommIpV4Interface) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type CommIpV4InterfaceWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` // The fully-qualified name of the instantiated, concrete type. The value should be the same as the 'ClassId' property. ObjectType string `json:"ObjectType"` // The IPv4 address of the default gateway. - Gateway *string `json:"Gateway,omitempty"` + Gateway *string `json:"Gateway,omitempty" validate:"regexp=^$|^([1-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\\\.([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\\\.([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\\\.([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])$"` // The IPv4 Address, represented in the standard dot-decimal notation, e.g. 192.168.1.3. - IpAddress *string `json:"IpAddress,omitempty"` + IpAddress *string `json:"IpAddress,omitempty" validate:"regexp=^$|^([1-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\\\.([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\\\.([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\\\.([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])$"` // The IPv4 Netmask, represented in the standard dot-decimal notation, e.g. 255.255.255.0. - Netmask *string `json:"Netmask,omitempty"` + Netmask *string `json:"Netmask,omitempty" validate:"regexp=^$|^(((255.){3}(255|254|252|248|240|224|192|128|0+))|((255.){2}(255|254|252|248|240|224|192|128|0+).0)|((255.)(255|254|252|248|240|224|192|128|0+)(.0+){2})|((255|254|252|248|240|224|192|128|0+)(.0+){3}))$"` } varCommIpV4InterfaceWithoutEmbeddedStruct := CommIpV4InterfaceWithoutEmbeddedStruct{} diff --git a/model_comm_ip_v6_interface.go b/model_comm_ip_v6_interface.go index 197ed8c3be..fc61a0c637 100644 --- a/model_comm_ip_v6_interface.go +++ b/model_comm_ip_v6_interface.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -29,9 +29,9 @@ type CommIpV6Interface struct { // The fully-qualified name of the instantiated, concrete type. The value should be the same as the 'ClassId' property. ObjectType string `json:"ObjectType"` // The IPv6 address of the default gateway. - Gateway *string `json:"Gateway,omitempty"` + Gateway *string `json:"Gateway,omitempty" validate:"regexp=^$|^(([0-9A-Fa-f]{1,4}:([0-9A-Fa-f]{1,4}:([0-9A-Fa-f]{1,4}:([0-9A-Fa-f]{1,4}:([0-9A-Fa-f]{1,4}:[0-9A-Fa-f]{0,4}|:[0-9A-Fa-f]{1,4})?|(:[0-9A-Fa-f]{1,4}){0,2})|(:[0-9A-Fa-f]{1,4}){0,3})|(:[0-9A-Fa-f]{1,4}){0,4})|:(:[0-9A-Fa-f]{1,4}){0,5})((:[0-9A-Fa-f]{1,4}){2}|:(25[0-5]|(2[0-4]|1[0-9]|[1-9])?[0-9])(\\\\.(25[0-5]|(2[0-4]|1[0-9]|[1-9])?[0-9])){3})|(([0-9A-Fa-f]{1,4}:){1,6}|:):[0-9A-Fa-f]{0,4}|([0-9A-Fa-f]{1,4}:){7}:)$"` // The IPv6 Address, represented as eight groups of four hexadecimal digits, separated by colons. - IpAddress *string `json:"IpAddress,omitempty"` + IpAddress *string `json:"IpAddress,omitempty" validate:"regexp=^$|^(([0-9A-Fa-f]{1,4}:([0-9A-Fa-f]{1,4}:([0-9A-Fa-f]{1,4}:([0-9A-Fa-f]{1,4}:([0-9A-Fa-f]{1,4}:[0-9A-Fa-f]{0,4}|:[0-9A-Fa-f]{1,4})?|(:[0-9A-Fa-f]{1,4}){0,2})|(:[0-9A-Fa-f]{1,4}){0,3})|(:[0-9A-Fa-f]{1,4}){0,4})|:(:[0-9A-Fa-f]{1,4}){0,5})((:[0-9A-Fa-f]{1,4}){2}|:(25[0-5]|(2[0-4]|1[0-9]|[1-9])?[0-9])(\\\\.(25[0-5]|(2[0-4]|1[0-9]|[1-9])?[0-9])){3})|(([0-9A-Fa-f]{1,4}:){1,6}|:):[0-9A-Fa-f]{0,4}|([0-9A-Fa-f]{1,4}:){7}:)$"` // The IPv6 Prefix, represented as eight groups of four hexadecimal digits, separated by colons. Prefix *string `json:"Prefix,omitempty"` AdditionalProperties map[string]interface{} @@ -86,6 +86,11 @@ func (o *CommIpV6Interface) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "comm.IpV6Interface" of the ClassId field. +func (o *CommIpV6Interface) GetDefaultClassId() interface{} { + return "comm.IpV6Interface" +} + // GetObjectType returns the ObjectType field value func (o *CommIpV6Interface) GetObjectType() string { if o == nil { @@ -110,6 +115,11 @@ func (o *CommIpV6Interface) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "comm.IpV6Interface" of the ObjectType field. +func (o *CommIpV6Interface) GetDefaultObjectType() interface{} { + return "comm.IpV6Interface" +} + // GetGateway returns the Gateway field value if set, zero value otherwise. func (o *CommIpV6Interface) GetGateway() string { if o == nil || IsNil(o.Gateway) { @@ -224,7 +234,13 @@ func (o CommIpV6Interface) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Gateway) { toSerialize["Gateway"] = o.Gateway @@ -252,6 +268,13 @@ func (o *CommIpV6Interface) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -261,20 +284,32 @@ func (o *CommIpV6Interface) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type CommIpV6InterfaceWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` // The fully-qualified name of the instantiated, concrete type. The value should be the same as the 'ClassId' property. ObjectType string `json:"ObjectType"` // The IPv6 address of the default gateway. - Gateway *string `json:"Gateway,omitempty"` + Gateway *string `json:"Gateway,omitempty" validate:"regexp=^$|^(([0-9A-Fa-f]{1,4}:([0-9A-Fa-f]{1,4}:([0-9A-Fa-f]{1,4}:([0-9A-Fa-f]{1,4}:([0-9A-Fa-f]{1,4}:[0-9A-Fa-f]{0,4}|:[0-9A-Fa-f]{1,4})?|(:[0-9A-Fa-f]{1,4}){0,2})|(:[0-9A-Fa-f]{1,4}){0,3})|(:[0-9A-Fa-f]{1,4}){0,4})|:(:[0-9A-Fa-f]{1,4}){0,5})((:[0-9A-Fa-f]{1,4}){2}|:(25[0-5]|(2[0-4]|1[0-9]|[1-9])?[0-9])(\\\\.(25[0-5]|(2[0-4]|1[0-9]|[1-9])?[0-9])){3})|(([0-9A-Fa-f]{1,4}:){1,6}|:):[0-9A-Fa-f]{0,4}|([0-9A-Fa-f]{1,4}:){7}:)$"` // The IPv6 Address, represented as eight groups of four hexadecimal digits, separated by colons. - IpAddress *string `json:"IpAddress,omitempty"` + IpAddress *string `json:"IpAddress,omitempty" validate:"regexp=^$|^(([0-9A-Fa-f]{1,4}:([0-9A-Fa-f]{1,4}:([0-9A-Fa-f]{1,4}:([0-9A-Fa-f]{1,4}:([0-9A-Fa-f]{1,4}:[0-9A-Fa-f]{0,4}|:[0-9A-Fa-f]{1,4})?|(:[0-9A-Fa-f]{1,4}){0,2})|(:[0-9A-Fa-f]{1,4}){0,3})|(:[0-9A-Fa-f]{1,4}){0,4})|:(:[0-9A-Fa-f]{1,4}){0,5})((:[0-9A-Fa-f]{1,4}){2}|:(25[0-5]|(2[0-4]|1[0-9]|[1-9])?[0-9])(\\\\.(25[0-5]|(2[0-4]|1[0-9]|[1-9])?[0-9])){3})|(([0-9A-Fa-f]{1,4}:){1,6}|:):[0-9A-Fa-f]{0,4}|([0-9A-Fa-f]{1,4}:){7}:)$"` // The IPv6 Prefix, represented as eight groups of four hexadecimal digits, separated by colons. Prefix *string `json:"Prefix,omitempty"` } diff --git a/model_compute_alarm_summary.go b/model_compute_alarm_summary.go index 56a85b39c9..8d1e362ff9 100644 --- a/model_compute_alarm_summary.go +++ b/model_compute_alarm_summary.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -96,6 +96,11 @@ func (o *ComputeAlarmSummary) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "compute.AlarmSummary" of the ClassId field. +func (o *ComputeAlarmSummary) GetDefaultClassId() interface{} { + return "compute.AlarmSummary" +} + // GetObjectType returns the ObjectType field value func (o *ComputeAlarmSummary) GetObjectType() string { if o == nil { @@ -120,6 +125,11 @@ func (o *ComputeAlarmSummary) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "compute.AlarmSummary" of the ObjectType field. +func (o *ComputeAlarmSummary) GetDefaultObjectType() interface{} { + return "compute.AlarmSummary" +} + // GetCritical returns the Critical field value if set, zero value otherwise. func (o *ComputeAlarmSummary) GetCritical() int64 { if o == nil || IsNil(o.Critical) { @@ -394,7 +404,13 @@ func (o ComputeAlarmSummary) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Critical) { toSerialize["Critical"] = o.Critical @@ -437,6 +453,13 @@ func (o *ComputeAlarmSummary) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -446,11 +469,23 @@ func (o *ComputeAlarmSummary) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type ComputeAlarmSummaryWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_compute_base_cluster.go b/model_compute_base_cluster.go index c32a0c918f..14bff89290 100644 --- a/model_compute_base_cluster.go +++ b/model_compute_base_cluster.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -123,7 +123,7 @@ func (o *ComputeBaseCluster) GetStorageClustersOk() ([]StorageBaseClusterRelatio // HasStorageClusters returns a boolean if a field has been set. func (o *ComputeBaseCluster) HasStorageClusters() bool { - if o != nil && IsNil(o.StorageClusters) { + if o != nil && !IsNil(o.StorageClusters) { return true } @@ -175,6 +175,10 @@ func (o *ComputeBaseCluster) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -184,11 +188,23 @@ func (o *ComputeBaseCluster) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type ComputeBaseClusterWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. The enum values provides the list of concrete types that can be instantiated from this abstract type. ClassId string `json:"ClassId"` diff --git a/model_compute_base_cluster_relationship.go b/model_compute_base_cluster_relationship.go index 0d4d52a636..e9441dc666 100644 --- a/model_compute_base_cluster_relationship.go +++ b/model_compute_base_cluster_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_compute_blade.go b/model_compute_blade.go index ac33a0ef99..fed1c74b2a 100644 --- a/model_compute_blade.go +++ b/model_compute_blade.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -127,6 +127,11 @@ func (o *ComputeBlade) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "compute.Blade" of the ClassId field. +func (o *ComputeBlade) GetDefaultClassId() interface{} { + return "compute.Blade" +} + // GetObjectType returns the ObjectType field value func (o *ComputeBlade) GetObjectType() string { if o == nil { @@ -151,6 +156,11 @@ func (o *ComputeBlade) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "compute.Blade" of the ObjectType field. +func (o *ComputeBlade) GetDefaultObjectType() interface{} { + return "compute.Blade" +} + // GetChassisId returns the ChassisId field value if set, zero value otherwise. func (o *ComputeBlade) GetChassisId() string { if o == nil || IsNil(o.ChassisId) { @@ -268,7 +278,7 @@ func (o *ComputeBlade) GetAdaptersOk() ([]AdapterUnitRelationship, bool) { // HasAdapters returns a boolean if a field has been set. func (o *ComputeBlade) HasAdapters() bool { - if o != nil && IsNil(o.Adapters) { + if o != nil && !IsNil(o.Adapters) { return true } @@ -387,7 +397,7 @@ func (o *ComputeBlade) GetBiosUnitsOk() ([]BiosUnitRelationship, bool) { // HasBiosUnits returns a boolean if a field has been set. func (o *ComputeBlade) HasBiosUnits() bool { - if o != nil && IsNil(o.BiosUnits) { + if o != nil && !IsNil(o.BiosUnits) { return true } @@ -592,7 +602,7 @@ func (o *ComputeBlade) GetComputePersonalityOk() ([]ComputePersonalityRelationsh // HasComputePersonality returns a boolean if a field has been set. func (o *ComputeBlade) HasComputePersonality() bool { - if o != nil && IsNil(o.ComputePersonality) { + if o != nil && !IsNil(o.ComputePersonality) { return true } @@ -668,7 +678,7 @@ func (o *ComputeBlade) GetEquipmentIoExpandersOk() ([]EquipmentIoExpanderRelatio // HasEquipmentIoExpanders returns a boolean if a field has been set. func (o *ComputeBlade) HasEquipmentIoExpanders() bool { - if o != nil && IsNil(o.EquipmentIoExpanders) { + if o != nil && !IsNil(o.EquipmentIoExpanders) { return true } @@ -701,7 +711,7 @@ func (o *ComputeBlade) GetGenericInventoryHoldersOk() ([]InventoryGenericInvento // HasGenericInventoryHolders returns a boolean if a field has been set. func (o *ComputeBlade) HasGenericInventoryHolders() bool { - if o != nil && IsNil(o.GenericInventoryHolders) { + if o != nil && !IsNil(o.GenericInventoryHolders) { return true } @@ -734,7 +744,7 @@ func (o *ComputeBlade) GetGraphicsCardsOk() ([]GraphicsCardRelationship, bool) { // HasGraphicsCards returns a boolean if a field has been set. func (o *ComputeBlade) HasGraphicsCards() bool { - if o != nil && IsNil(o.GraphicsCards) { + if o != nil && !IsNil(o.GraphicsCards) { return true } @@ -767,7 +777,7 @@ func (o *ComputeBlade) GetHybridDriveSlotsOk() ([]EquipmentHybridDriveSlotRelati // HasHybridDriveSlots returns a boolean if a field has been set. func (o *ComputeBlade) HasHybridDriveSlots() bool { - if o != nil && IsNil(o.HybridDriveSlots) { + if o != nil && !IsNil(o.HybridDriveSlots) { return true } @@ -886,7 +896,7 @@ func (o *ComputeBlade) GetMemoryArraysOk() ([]MemoryArrayRelationship, bool) { // HasMemoryArrays returns a boolean if a field has been set. func (o *ComputeBlade) HasMemoryArrays() bool { - if o != nil && IsNil(o.MemoryArrays) { + if o != nil && !IsNil(o.MemoryArrays) { return true } @@ -919,7 +929,7 @@ func (o *ComputeBlade) GetPciDevicesOk() ([]PciDeviceRelationship, bool) { // HasPciDevices returns a boolean if a field has been set. func (o *ComputeBlade) HasPciDevices() bool { - if o != nil && IsNil(o.PciDevices) { + if o != nil && !IsNil(o.PciDevices) { return true } @@ -952,7 +962,7 @@ func (o *ComputeBlade) GetPciNodesOk() ([]PciNodeRelationship, bool) { // HasPciNodes returns a boolean if a field has been set. func (o *ComputeBlade) HasPciNodes() bool { - if o != nil && IsNil(o.PciNodes) { + if o != nil && !IsNil(o.PciNodes) { return true } @@ -985,7 +995,7 @@ func (o *ComputeBlade) GetProcessorsOk() ([]ProcessorUnitRelationship, bool) { // HasProcessors returns a boolean if a field has been set. func (o *ComputeBlade) HasProcessors() bool { - if o != nil && IsNil(o.Processors) { + if o != nil && !IsNil(o.Processors) { return true } @@ -1061,7 +1071,7 @@ func (o *ComputeBlade) GetStorageControllersOk() ([]StorageControllerRelationshi // HasStorageControllers returns a boolean if a field has been set. func (o *ComputeBlade) HasStorageControllers() bool { - if o != nil && IsNil(o.StorageControllers) { + if o != nil && !IsNil(o.StorageControllers) { return true } @@ -1094,7 +1104,7 @@ func (o *ComputeBlade) GetStorageEnclosuresOk() ([]StorageEnclosureRelationship, // HasStorageEnclosures returns a boolean if a field has been set. func (o *ComputeBlade) HasStorageEnclosures() bool { - if o != nil && IsNil(o.StorageEnclosures) { + if o != nil && !IsNil(o.StorageEnclosures) { return true } @@ -1167,7 +1177,13 @@ func (o ComputeBlade) ToMap() (map[string]interface{}, error) { if errComputePhysical != nil { return map[string]interface{}{}, errComputePhysical } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.ChassisId) { toSerialize["ChassisId"] = o.ChassisId @@ -1267,6 +1283,13 @@ func (o *ComputeBlade) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -1276,11 +1299,23 @@ func (o *ComputeBlade) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type ComputeBladeWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_compute_blade_identity.go b/model_compute_blade_identity.go index 9e7c0d1e56..a37d3f3c34 100644 --- a/model_compute_blade_identity.go +++ b/model_compute_blade_identity.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -98,6 +98,11 @@ func (o *ComputeBladeIdentity) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "compute.BladeIdentity" of the ClassId field. +func (o *ComputeBladeIdentity) GetDefaultClassId() interface{} { + return "compute.BladeIdentity" +} + // GetObjectType returns the ObjectType field value func (o *ComputeBladeIdentity) GetObjectType() string { if o == nil { @@ -122,6 +127,11 @@ func (o *ComputeBladeIdentity) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "compute.BladeIdentity" of the ObjectType field. +func (o *ComputeBladeIdentity) GetDefaultObjectType() interface{} { + return "compute.BladeIdentity" +} + // GetChassisId returns the ChassisId field value if set, zero value otherwise. func (o *ComputeBladeIdentity) GetChassisId() int64 { if o == nil || IsNil(o.ChassisId) { @@ -367,7 +377,7 @@ func (o *ComputeBladeIdentity) GetManagedNodesOk() ([]ComputeBladeIdentityRelati // HasManagedNodes returns a boolean if a field has been set. func (o *ComputeBladeIdentity) HasManagedNodes() bool { - if o != nil && IsNil(o.ManagedNodes) { + if o != nil && !IsNil(o.ManagedNodes) { return true } @@ -397,7 +407,13 @@ func (o ComputeBladeIdentity) ToMap() (map[string]interface{}, error) { if errEquipmentPhysicalIdentity != nil { return map[string]interface{}{}, errEquipmentPhysicalIdentity } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.ChassisId) { toSerialize["ChassisId"] = o.ChassisId @@ -440,6 +456,13 @@ func (o *ComputeBladeIdentity) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -449,11 +472,23 @@ func (o *ComputeBladeIdentity) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type ComputeBladeIdentityWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_compute_blade_identity_list.go b/model_compute_blade_identity_list.go index 3d242d513b..02f387dfe3 100644 --- a/model_compute_blade_identity_list.go +++ b/model_compute_blade_identity_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *ComputeBladeIdentityList) GetResultsOk() ([]ComputeBladeIdentity, bool) // HasResults returns a boolean if a field has been set. func (o *ComputeBladeIdentityList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *ComputeBladeIdentityList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *ComputeBladeIdentityList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type ComputeBladeIdentityListWithoutEmbeddedStruct struct { // The total number of 'compute.BladeIdentity' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_compute_blade_identity_relationship.go b/model_compute_blade_identity_relationship.go index cc88e6408a..352397beb0 100644 --- a/model_compute_blade_identity_relationship.go +++ b/model_compute_blade_identity_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_compute_blade_identity_response.go b/model_compute_blade_identity_response.go index fa7ce85d0d..ea7740655f 100644 --- a/model_compute_blade_identity_response.go +++ b/model_compute_blade_identity_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_compute_blade_list.go b/model_compute_blade_list.go index c05bb6997c..b58bffd2b7 100644 --- a/model_compute_blade_list.go +++ b/model_compute_blade_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *ComputeBladeList) GetResultsOk() ([]ComputeBlade, bool) { // HasResults returns a boolean if a field has been set. func (o *ComputeBladeList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *ComputeBladeList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *ComputeBladeList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type ComputeBladeListWithoutEmbeddedStruct struct { // The total number of 'compute.Blade' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_compute_blade_relationship.go b/model_compute_blade_relationship.go index 374af0e5a1..ad4df4c16a 100644 --- a/model_compute_blade_relationship.go +++ b/model_compute_blade_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_compute_blade_response.go b/model_compute_blade_response.go index 0a71e9e7f1..59c5a95770 100644 --- a/model_compute_blade_response.go +++ b/model_compute_blade_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_compute_board.go b/model_compute_board.go index f6996b037b..721a280b37 100644 --- a/model_compute_board.go +++ b/model_compute_board.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -116,6 +116,11 @@ func (o *ComputeBoard) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "compute.Board" of the ClassId field. +func (o *ComputeBoard) GetDefaultClassId() interface{} { + return "compute.Board" +} + // GetObjectType returns the ObjectType field value func (o *ComputeBoard) GetObjectType() string { if o == nil { @@ -140,6 +145,11 @@ func (o *ComputeBoard) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "compute.Board" of the ObjectType field. +func (o *ComputeBoard) GetDefaultObjectType() interface{} { + return "compute.Board" +} + // GetBoardId returns the BoardId field value if set, zero value otherwise. func (o *ComputeBoard) GetBoardId() int64 { if o == nil || IsNil(o.BoardId) { @@ -257,7 +267,7 @@ func (o *ComputeBoard) GetOperReasonOk() ([]string, bool) { // HasOperReason returns a boolean if a field has been set. func (o *ComputeBoard) HasOperReason() bool { - if o != nil && IsNil(o.OperReason) { + if o != nil && !IsNil(o.OperReason) { return true } @@ -376,7 +386,7 @@ func (o *ComputeBoard) GetEquipmentTpmsOk() ([]EquipmentTpmRelationship, bool) { // HasEquipmentTpms returns a boolean if a field has been set. func (o *ComputeBoard) HasEquipmentTpms() bool { - if o != nil && IsNil(o.EquipmentTpms) { + if o != nil && !IsNil(o.EquipmentTpms) { return true } @@ -409,7 +419,7 @@ func (o *ComputeBoard) GetGraphicsCardsOk() ([]GraphicsCardRelationship, bool) { // HasGraphicsCards returns a boolean if a field has been set. func (o *ComputeBoard) HasGraphicsCards() bool { - if o != nil && IsNil(o.GraphicsCards) { + if o != nil && !IsNil(o.GraphicsCards) { return true } @@ -442,7 +452,7 @@ func (o *ComputeBoard) GetHybridDriveSlotsOk() ([]EquipmentHybridDriveSlotRelati // HasHybridDriveSlots returns a boolean if a field has been set. func (o *ComputeBoard) HasHybridDriveSlots() bool { - if o != nil && IsNil(o.HybridDriveSlots) { + if o != nil && !IsNil(o.HybridDriveSlots) { return true } @@ -518,7 +528,7 @@ func (o *ComputeBoard) GetMemoryArraysOk() ([]MemoryArrayRelationship, bool) { // HasMemoryArrays returns a boolean if a field has been set. func (o *ComputeBoard) HasMemoryArrays() bool { - if o != nil && IsNil(o.MemoryArrays) { + if o != nil && !IsNil(o.MemoryArrays) { return true } @@ -551,7 +561,7 @@ func (o *ComputeBoard) GetPciCoprocessorCardsOk() ([]PciCoprocessorCardRelations // HasPciCoprocessorCards returns a boolean if a field has been set. func (o *ComputeBoard) HasPciCoprocessorCards() bool { - if o != nil && IsNil(o.PciCoprocessorCards) { + if o != nil && !IsNil(o.PciCoprocessorCards) { return true } @@ -584,7 +594,7 @@ func (o *ComputeBoard) GetPciSwitchOk() ([]PciSwitchRelationship, bool) { // HasPciSwitch returns a boolean if a field has been set. func (o *ComputeBoard) HasPciSwitch() bool { - if o != nil && IsNil(o.PciSwitch) { + if o != nil && !IsNil(o.PciSwitch) { return true } @@ -660,7 +670,7 @@ func (o *ComputeBoard) GetProcessorsOk() ([]ProcessorUnitRelationship, bool) { // HasProcessors returns a boolean if a field has been set. func (o *ComputeBoard) HasProcessors() bool { - if o != nil && IsNil(o.Processors) { + if o != nil && !IsNil(o.Processors) { return true } @@ -736,7 +746,7 @@ func (o *ComputeBoard) GetSecurityUnitsOk() ([]SecurityUnitRelationship, bool) { // HasSecurityUnits returns a boolean if a field has been set. func (o *ComputeBoard) HasSecurityUnits() bool { - if o != nil && IsNil(o.SecurityUnits) { + if o != nil && !IsNil(o.SecurityUnits) { return true } @@ -769,7 +779,7 @@ func (o *ComputeBoard) GetStorageControllerDrivesOk() ([]StorageControllerDriveR // HasStorageControllerDrives returns a boolean if a field has been set. func (o *ComputeBoard) HasStorageControllerDrives() bool { - if o != nil && IsNil(o.StorageControllerDrives) { + if o != nil && !IsNil(o.StorageControllerDrives) { return true } @@ -802,7 +812,7 @@ func (o *ComputeBoard) GetStorageControllersOk() ([]StorageControllerRelationshi // HasStorageControllers returns a boolean if a field has been set. func (o *ComputeBoard) HasStorageControllers() bool { - if o != nil && IsNil(o.StorageControllers) { + if o != nil && !IsNil(o.StorageControllers) { return true } @@ -835,7 +845,7 @@ func (o *ComputeBoard) GetStorageFlexFlashControllersOk() ([]StorageFlexFlashCon // HasStorageFlexFlashControllers returns a boolean if a field has been set. func (o *ComputeBoard) HasStorageFlexFlashControllers() bool { - if o != nil && IsNil(o.StorageFlexFlashControllers) { + if o != nil && !IsNil(o.StorageFlexFlashControllers) { return true } @@ -868,7 +878,7 @@ func (o *ComputeBoard) GetStorageFlexUtilControllersOk() ([]StorageFlexUtilContr // HasStorageFlexUtilControllers returns a boolean if a field has been set. func (o *ComputeBoard) HasStorageFlexUtilControllers() bool { - if o != nil && IsNil(o.StorageFlexUtilControllers) { + if o != nil && !IsNil(o.StorageFlexUtilControllers) { return true } @@ -898,7 +908,13 @@ func (o ComputeBoard) ToMap() (map[string]interface{}, error) { if errEquipmentBase != nil { return map[string]interface{}{}, errEquipmentBase } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.BoardId) { toSerialize["BoardId"] = o.BoardId @@ -980,6 +996,13 @@ func (o *ComputeBoard) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -989,11 +1012,23 @@ func (o *ComputeBoard) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type ComputeBoardWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_compute_board_list.go b/model_compute_board_list.go index 9e3dbb0fe1..2ac23f53e1 100644 --- a/model_compute_board_list.go +++ b/model_compute_board_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *ComputeBoardList) GetResultsOk() ([]ComputeBoard, bool) { // HasResults returns a boolean if a field has been set. func (o *ComputeBoardList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *ComputeBoardList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *ComputeBoardList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type ComputeBoardListWithoutEmbeddedStruct struct { // The total number of 'compute.Board' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_compute_board_relationship.go b/model_compute_board_relationship.go index 903232e6c6..03a8c1c873 100644 --- a/model_compute_board_relationship.go +++ b/model_compute_board_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_compute_board_response.go b/model_compute_board_response.go index 2ac6efa20c..5beb988443 100644 --- a/model_compute_board_response.go +++ b/model_compute_board_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_compute_download_status.go b/model_compute_download_status.go index db8a377619..ef05d77acc 100644 --- a/model_compute_download_status.go +++ b/model_compute_download_status.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -90,6 +90,11 @@ func (o *ComputeDownloadStatus) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "compute.DownloadStatus" of the ClassId field. +func (o *ComputeDownloadStatus) GetDefaultClassId() interface{} { + return "compute.DownloadStatus" +} + // GetObjectType returns the ObjectType field value func (o *ComputeDownloadStatus) GetObjectType() string { if o == nil { @@ -114,6 +119,11 @@ func (o *ComputeDownloadStatus) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "compute.DownloadStatus" of the ObjectType field. +func (o *ComputeDownloadStatus) GetDefaultObjectType() interface{} { + return "compute.DownloadStatus" +} + // GetDownloadMessage returns the DownloadMessage field value if set, zero value otherwise. func (o *ComputeDownloadStatus) GetDownloadMessage() string { if o == nil || IsNil(o.DownloadMessage) { @@ -346,7 +356,13 @@ func (o ComputeDownloadStatus) ToMap() (map[string]interface{}, error) { if errConnectorDownloadStatus != nil { return map[string]interface{}{}, errConnectorDownloadStatus } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.DownloadMessage) { toSerialize["DownloadMessage"] = o.DownloadMessage @@ -383,6 +399,13 @@ func (o *ComputeDownloadStatus) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -392,11 +415,23 @@ func (o *ComputeDownloadStatus) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type ComputeDownloadStatusWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_compute_download_status_list.go b/model_compute_download_status_list.go index f4fae385b6..16f1bdc8ba 100644 --- a/model_compute_download_status_list.go +++ b/model_compute_download_status_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *ComputeDownloadStatusList) GetResultsOk() ([]ComputeDownloadStatus, boo // HasResults returns a boolean if a field has been set. func (o *ComputeDownloadStatusList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *ComputeDownloadStatusList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *ComputeDownloadStatusList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type ComputeDownloadStatusListWithoutEmbeddedStruct struct { // The total number of 'compute.DownloadStatus' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_compute_download_status_relationship.go b/model_compute_download_status_relationship.go index 819b0b2e8c..19aa67a044 100644 --- a/model_compute_download_status_relationship.go +++ b/model_compute_download_status_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_compute_download_status_response.go b/model_compute_download_status_response.go index 810b8f1cdb..9533bef3ee 100644 --- a/model_compute_download_status_response.go +++ b/model_compute_download_status_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_compute_host_utility_operation.go b/model_compute_host_utility_operation.go index 284f05b55a..887b59416c 100644 --- a/model_compute_host_utility_operation.go +++ b/model_compute_host_utility_operation.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -91,6 +91,11 @@ func (o *ComputeHostUtilityOperation) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "compute.HostUtilityOperation" of the ClassId field. +func (o *ComputeHostUtilityOperation) GetDefaultClassId() interface{} { + return "compute.HostUtilityOperation" +} + // GetObjectType returns the ObjectType field value func (o *ComputeHostUtilityOperation) GetObjectType() string { if o == nil { @@ -115,6 +120,11 @@ func (o *ComputeHostUtilityOperation) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "compute.HostUtilityOperation" of the ObjectType field. +func (o *ComputeHostUtilityOperation) GetDefaultObjectType() interface{} { + return "compute.HostUtilityOperation" +} + // GetHostUtilityOperationMode returns the HostUtilityOperationMode field value if set, zero value otherwise. func (o *ComputeHostUtilityOperation) GetHostUtilityOperationMode() string { if o == nil || IsNil(o.HostUtilityOperationMode) { @@ -326,7 +336,13 @@ func (o ComputeHostUtilityOperation) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.HostUtilityOperationMode) { toSerialize["HostUtilityOperationMode"] = o.HostUtilityOperationMode @@ -360,6 +376,13 @@ func (o *ComputeHostUtilityOperation) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -369,11 +392,23 @@ func (o *ComputeHostUtilityOperation) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type ComputeHostUtilityOperationWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_compute_host_utility_operation_list.go b/model_compute_host_utility_operation_list.go index a72692ca70..5b5aa5f0d3 100644 --- a/model_compute_host_utility_operation_list.go +++ b/model_compute_host_utility_operation_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *ComputeHostUtilityOperationList) GetResultsOk() ([]ComputeHostUtilityOp // HasResults returns a boolean if a field has been set. func (o *ComputeHostUtilityOperationList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *ComputeHostUtilityOperationList) UnmarshalJSON(data []byte) (err error) "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *ComputeHostUtilityOperationList) UnmarshalJSON(data []byte) (err error) } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type ComputeHostUtilityOperationListWithoutEmbeddedStruct struct { // The total number of 'compute.HostUtilityOperation' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_compute_host_utility_operation_relationship.go b/model_compute_host_utility_operation_relationship.go index b6513ba9bc..7dea34fe9e 100644 --- a/model_compute_host_utility_operation_relationship.go +++ b/model_compute_host_utility_operation_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_compute_host_utility_operation_response.go b/model_compute_host_utility_operation_response.go index 8566b90f57..f1ebf4d734 100644 --- a/model_compute_host_utility_operation_response.go +++ b/model_compute_host_utility_operation_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_compute_ip_address.go b/model_compute_ip_address.go index 39d61a0599..74f5e70bde 100644 --- a/model_compute_ip_address.go +++ b/model_compute_ip_address.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -102,6 +102,11 @@ func (o *ComputeIpAddress) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "compute.IpAddress" of the ClassId field. +func (o *ComputeIpAddress) GetDefaultClassId() interface{} { + return "compute.IpAddress" +} + // GetObjectType returns the ObjectType field value func (o *ComputeIpAddress) GetObjectType() string { if o == nil { @@ -126,6 +131,11 @@ func (o *ComputeIpAddress) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "compute.IpAddress" of the ObjectType field. +func (o *ComputeIpAddress) GetDefaultObjectType() interface{} { + return "compute.IpAddress" +} + // GetAddress returns the Address field value if set, zero value otherwise. func (o *ComputeIpAddress) GetAddress() string { if o == nil || IsNil(o.Address) { @@ -496,7 +506,13 @@ func (o ComputeIpAddress) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Address) { toSerialize["Address"] = o.Address @@ -548,6 +564,13 @@ func (o *ComputeIpAddress) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -557,11 +580,23 @@ func (o *ComputeIpAddress) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type ComputeIpAddressWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_compute_mapping.go b/model_compute_mapping.go index 6ca0f0b820..0f6ceebf38 100644 --- a/model_compute_mapping.go +++ b/model_compute_mapping.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -92,6 +92,11 @@ func (o *ComputeMapping) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "compute.Mapping" of the ClassId field. +func (o *ComputeMapping) GetDefaultClassId() interface{} { + return "compute.Mapping" +} + // GetObjectType returns the ObjectType field value func (o *ComputeMapping) GetObjectType() string { if o == nil { @@ -116,6 +121,11 @@ func (o *ComputeMapping) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "compute.Mapping" of the ObjectType field. +func (o *ComputeMapping) GetDefaultObjectType() interface{} { + return "compute.Mapping" +} + // GetFileLocation returns the FileLocation field value if set, zero value otherwise. func (o *ComputeMapping) GetFileLocation() string { if o == nil || IsNil(o.FileLocation) { @@ -233,7 +243,7 @@ func (o *ComputeMapping) GetMediaTypesOk() ([]string, bool) { // HasMediaTypes returns a boolean if a field has been set. func (o *ComputeMapping) HasMediaTypes() bool { - if o != nil && IsNil(o.MediaTypes) { + if o != nil && !IsNil(o.MediaTypes) { return true } @@ -424,7 +434,13 @@ func (o ComputeMapping) ToMap() (map[string]interface{}, error) { if errInventoryBase != nil { return map[string]interface{}{}, errInventoryBase } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.FileLocation) { toSerialize["FileLocation"] = o.FileLocation @@ -467,6 +483,13 @@ func (o *ComputeMapping) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -476,11 +499,23 @@ func (o *ComputeMapping) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type ComputeMappingWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_compute_mapping_list.go b/model_compute_mapping_list.go index ac783801c1..b7cbafa9b2 100644 --- a/model_compute_mapping_list.go +++ b/model_compute_mapping_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *ComputeMappingList) GetResultsOk() ([]ComputeMapping, bool) { // HasResults returns a boolean if a field has been set. func (o *ComputeMappingList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *ComputeMappingList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *ComputeMappingList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type ComputeMappingListWithoutEmbeddedStruct struct { // The total number of 'compute.Mapping' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_compute_mapping_relationship.go b/model_compute_mapping_relationship.go index beba92f015..5daebf1b9c 100644 --- a/model_compute_mapping_relationship.go +++ b/model_compute_mapping_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_compute_mapping_response.go b/model_compute_mapping_response.go index 4c1abb710d..e8aa57cbe8 100644 --- a/model_compute_mapping_response.go +++ b/model_compute_mapping_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_compute_pending_workflow_trigger.go b/model_compute_pending_workflow_trigger.go index b8d71e479a..8510ecae30 100644 --- a/model_compute_pending_workflow_trigger.go +++ b/model_compute_pending_workflow_trigger.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -83,6 +83,10 @@ func (o *ComputePendingWorkflowTrigger) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -92,11 +96,23 @@ func (o *ComputePendingWorkflowTrigger) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type ComputePendingWorkflowTriggerWithoutEmbeddedStruct struct { } diff --git a/model_compute_persistent_memory_module.go b/model_compute_persistent_memory_module.go index 2b5495938f..b7ea95719a 100644 --- a/model_compute_persistent_memory_module.go +++ b/model_compute_persistent_memory_module.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -84,6 +84,11 @@ func (o *ComputePersistentMemoryModule) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "compute.PersistentMemoryModule" of the ClassId field. +func (o *ComputePersistentMemoryModule) GetDefaultClassId() interface{} { + return "compute.PersistentMemoryModule" +} + // GetObjectType returns the ObjectType field value func (o *ComputePersistentMemoryModule) GetObjectType() string { if o == nil { @@ -108,6 +113,11 @@ func (o *ComputePersistentMemoryModule) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "compute.PersistentMemoryModule" of the ObjectType field. +func (o *ComputePersistentMemoryModule) GetDefaultObjectType() interface{} { + return "compute.PersistentMemoryModule" +} + // GetSocketId returns the SocketId field value if set, zero value otherwise. func (o *ComputePersistentMemoryModule) GetSocketId() string { if o == nil || IsNil(o.SocketId) { @@ -190,7 +200,13 @@ func (o ComputePersistentMemoryModule) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.SocketId) { toSerialize["SocketId"] = o.SocketId @@ -215,6 +231,13 @@ func (o *ComputePersistentMemoryModule) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -224,11 +247,23 @@ func (o *ComputePersistentMemoryModule) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type ComputePersistentMemoryModuleWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_compute_persistent_memory_operation.go b/model_compute_persistent_memory_operation.go index f71282a037..d06f10fadd 100644 --- a/model_compute_persistent_memory_operation.go +++ b/model_compute_persistent_memory_operation.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -91,6 +91,11 @@ func (o *ComputePersistentMemoryOperation) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "compute.PersistentMemoryOperation" of the ClassId field. +func (o *ComputePersistentMemoryOperation) GetDefaultClassId() interface{} { + return "compute.PersistentMemoryOperation" +} + // GetObjectType returns the ObjectType field value func (o *ComputePersistentMemoryOperation) GetObjectType() string { if o == nil { @@ -115,6 +120,11 @@ func (o *ComputePersistentMemoryOperation) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "compute.PersistentMemoryOperation" of the ObjectType field. +func (o *ComputePersistentMemoryOperation) GetDefaultObjectType() interface{} { + return "compute.PersistentMemoryOperation" +} + // GetAdminAction returns the AdminAction field value if set, zero value otherwise. func (o *ComputePersistentMemoryOperation) GetAdminAction() string { if o == nil || IsNil(o.AdminAction) { @@ -200,7 +210,7 @@ func (o *ComputePersistentMemoryOperation) GetModulesOk() ([]ComputePersistentMe // HasModules returns a boolean if a field has been set. func (o *ComputePersistentMemoryOperation) HasModules() bool { - if o != nil && IsNil(o.Modules) { + if o != nil && !IsNil(o.Modules) { return true } @@ -262,7 +272,13 @@ func (o ComputePersistentMemoryOperation) ToMap() (map[string]interface{}, error if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.AdminAction) { toSerialize["AdminAction"] = o.AdminAction @@ -293,6 +309,13 @@ func (o *ComputePersistentMemoryOperation) UnmarshalJSON(data []byte) (err error "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -302,11 +325,23 @@ func (o *ComputePersistentMemoryOperation) UnmarshalJSON(data []byte) (err error } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type ComputePersistentMemoryOperationWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_compute_personality.go b/model_compute_personality.go index 461ea50d29..6480b2fbd5 100644 --- a/model_compute_personality.go +++ b/model_compute_personality.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -89,6 +89,11 @@ func (o *ComputePersonality) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "compute.Personality" of the ClassId field. +func (o *ComputePersonality) GetDefaultClassId() interface{} { + return "compute.Personality" +} + // GetObjectType returns the ObjectType field value func (o *ComputePersonality) GetObjectType() string { if o == nil { @@ -113,6 +118,11 @@ func (o *ComputePersonality) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "compute.Personality" of the ObjectType field. +func (o *ComputePersonality) GetDefaultObjectType() interface{} { + return "compute.Personality" +} + // GetAdditionalInfo returns the AdditionalInfo field value if set, zero value otherwise. func (o *ComputePersonality) GetAdditionalInfo() string { if o == nil || IsNil(o.AdditionalInfo) { @@ -356,7 +366,13 @@ func (o ComputePersonality) ToMap() (map[string]interface{}, error) { if errInventoryBase != nil { return map[string]interface{}{}, errInventoryBase } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.AdditionalInfo) { toSerialize["AdditionalInfo"] = o.AdditionalInfo @@ -393,6 +409,13 @@ func (o *ComputePersonality) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -402,11 +425,23 @@ func (o *ComputePersonality) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type ComputePersonalityWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_compute_personality_list.go b/model_compute_personality_list.go index 68c43ea299..e28e69c0c5 100644 --- a/model_compute_personality_list.go +++ b/model_compute_personality_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *ComputePersonalityList) GetResultsOk() ([]ComputePersonality, bool) { // HasResults returns a boolean if a field has been set. func (o *ComputePersonalityList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *ComputePersonalityList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *ComputePersonalityList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type ComputePersonalityListWithoutEmbeddedStruct struct { // The total number of 'compute.Personality' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_compute_personality_relationship.go b/model_compute_personality_relationship.go index c707bca780..7e9dc81986 100644 --- a/model_compute_personality_relationship.go +++ b/model_compute_personality_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_compute_personality_response.go b/model_compute_personality_response.go index 1bb3b56a25..be8a868f79 100644 --- a/model_compute_personality_response.go +++ b/model_compute_personality_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_compute_personality_setting.go b/model_compute_personality_setting.go index d0c5dd6874..b6b6a3c845 100644 --- a/model_compute_personality_setting.go +++ b/model_compute_personality_setting.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -84,6 +84,11 @@ func (o *ComputePersonalitySetting) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "compute.PersonalitySetting" of the ClassId field. +func (o *ComputePersonalitySetting) GetDefaultClassId() interface{} { + return "compute.PersonalitySetting" +} + // GetObjectType returns the ObjectType field value func (o *ComputePersonalitySetting) GetObjectType() string { if o == nil { @@ -108,6 +113,11 @@ func (o *ComputePersonalitySetting) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "compute.PersonalitySetting" of the ObjectType field. +func (o *ComputePersonalitySetting) GetDefaultObjectType() interface{} { + return "compute.PersonalitySetting" +} + // GetAdditionalInformation returns the AdditionalInformation field value if set, zero value otherwise (both if not set or set to explicit null). func (o *ComputePersonalitySetting) GetAdditionalInformation() interface{} { if o == nil { @@ -129,7 +139,7 @@ func (o *ComputePersonalitySetting) GetAdditionalInformationOk() (*interface{}, // HasAdditionalInformation returns a boolean if a field has been set. func (o *ComputePersonalitySetting) HasAdditionalInformation() bool { - if o != nil && IsNil(o.AdditionalInformation) { + if o != nil && !IsNil(o.AdditionalInformation) { return true } @@ -191,7 +201,13 @@ func (o ComputePersonalitySetting) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.AdditionalInformation != nil { toSerialize["AdditionalInformation"] = o.AdditionalInformation @@ -216,6 +232,13 @@ func (o *ComputePersonalitySetting) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -225,11 +248,23 @@ func (o *ComputePersonalitySetting) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type ComputePersonalitySettingWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_compute_physical.go b/model_compute_physical.go index 5ba5f3d24d..9e65e219d5 100644 --- a/model_compute_physical.go +++ b/model_compute_physical.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -488,7 +488,7 @@ func (o *ComputePhysical) GetKvmIpAddressesOk() ([]ComputeIpAddress, bool) { // HasKvmIpAddresses returns a boolean if a field has been set. func (o *ComputePhysical) HasKvmIpAddresses() bool { - if o != nil && IsNil(o.KvmIpAddresses) { + if o != nil && !IsNil(o.KvmIpAddresses) { return true } @@ -1001,7 +1001,7 @@ func (o *ComputePhysical) GetOperReasonOk() ([]string, bool) { // HasOperReason returns a boolean if a field has been set. func (o *ComputePhysical) HasOperReason() bool { - if o != nil && IsNil(o.OperReason) { + if o != nil && !IsNil(o.OperReason) { return true } @@ -1290,7 +1290,7 @@ func (o *ComputePhysical) GetBootCddDevicesOk() ([]BootCddDeviceRelationship, bo // HasBootCddDevices returns a boolean if a field has been set. func (o *ComputePhysical) HasBootCddDevices() bool { - if o != nil && IsNil(o.BootCddDevices) { + if o != nil && !IsNil(o.BootCddDevices) { return true } @@ -1366,7 +1366,7 @@ func (o *ComputePhysical) GetBootHddDevicesOk() ([]BootHddDeviceRelationship, bo // HasBootHddDevices returns a boolean if a field has been set. func (o *ComputePhysical) HasBootHddDevices() bool { - if o != nil && IsNil(o.BootHddDevices) { + if o != nil && !IsNil(o.BootHddDevices) { return true } @@ -1399,7 +1399,7 @@ func (o *ComputePhysical) GetBootIscsiDevicesOk() ([]BootIscsiDeviceRelationship // HasBootIscsiDevices returns a boolean if a field has been set. func (o *ComputePhysical) HasBootIscsiDevices() bool { - if o != nil && IsNil(o.BootIscsiDevices) { + if o != nil && !IsNil(o.BootIscsiDevices) { return true } @@ -1432,7 +1432,7 @@ func (o *ComputePhysical) GetBootNvmeDevicesOk() ([]BootNvmeDeviceRelationship, // HasBootNvmeDevices returns a boolean if a field has been set. func (o *ComputePhysical) HasBootNvmeDevices() bool { - if o != nil && IsNil(o.BootNvmeDevices) { + if o != nil && !IsNil(o.BootNvmeDevices) { return true } @@ -1465,7 +1465,7 @@ func (o *ComputePhysical) GetBootPchStorageDevicesOk() ([]BootPchStorageDeviceRe // HasBootPchStorageDevices returns a boolean if a field has been set. func (o *ComputePhysical) HasBootPchStorageDevices() bool { - if o != nil && IsNil(o.BootPchStorageDevices) { + if o != nil && !IsNil(o.BootPchStorageDevices) { return true } @@ -1498,7 +1498,7 @@ func (o *ComputePhysical) GetBootPxeDevicesOk() ([]BootPxeDeviceRelationship, bo // HasBootPxeDevices returns a boolean if a field has been set. func (o *ComputePhysical) HasBootPxeDevices() bool { - if o != nil && IsNil(o.BootPxeDevices) { + if o != nil && !IsNil(o.BootPxeDevices) { return true } @@ -1531,7 +1531,7 @@ func (o *ComputePhysical) GetBootSanDevicesOk() ([]BootSanDeviceRelationship, bo // HasBootSanDevices returns a boolean if a field has been set. func (o *ComputePhysical) HasBootSanDevices() bool { - if o != nil && IsNil(o.BootSanDevices) { + if o != nil && !IsNil(o.BootSanDevices) { return true } @@ -1564,7 +1564,7 @@ func (o *ComputePhysical) GetBootSdDevicesOk() ([]BootSdDeviceRelationship, bool // HasBootSdDevices returns a boolean if a field has been set. func (o *ComputePhysical) HasBootSdDevices() bool { - if o != nil && IsNil(o.BootSdDevices) { + if o != nil && !IsNil(o.BootSdDevices) { return true } @@ -1597,7 +1597,7 @@ func (o *ComputePhysical) GetBootUefiShellDevicesOk() ([]BootUefiShellDeviceRela // HasBootUefiShellDevices returns a boolean if a field has been set. func (o *ComputePhysical) HasBootUefiShellDevices() bool { - if o != nil && IsNil(o.BootUefiShellDevices) { + if o != nil && !IsNil(o.BootUefiShellDevices) { return true } @@ -1630,7 +1630,7 @@ func (o *ComputePhysical) GetBootUsbDevicesOk() ([]BootUsbDeviceRelationship, bo // HasBootUsbDevices returns a boolean if a field has been set. func (o *ComputePhysical) HasBootUsbDevices() bool { - if o != nil && IsNil(o.BootUsbDevices) { + if o != nil && !IsNil(o.BootUsbDevices) { return true } @@ -1663,7 +1663,7 @@ func (o *ComputePhysical) GetBootVmediaDevicesOk() ([]BootVmediaDeviceRelationsh // HasBootVmediaDevices returns a boolean if a field has been set. func (o *ComputePhysical) HasBootVmediaDevices() bool { - if o != nil && IsNil(o.BootVmediaDevices) { + if o != nil && !IsNil(o.BootVmediaDevices) { return true } @@ -1939,6 +1939,10 @@ func (o *ComputePhysical) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -1948,11 +1952,23 @@ func (o *ComputePhysical) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type ComputePhysicalWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. The enum values provides the list of concrete types that can be instantiated from this abstract type. ClassId string `json:"ClassId"` diff --git a/model_compute_physical_relationship.go b/model_compute_physical_relationship.go index 7fe639b0eb..db5779d867 100644 --- a/model_compute_physical_relationship.go +++ b/model_compute_physical_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_compute_physical_summary.go b/model_compute_physical_summary.go index 7c01b9634f..3aa80c897b 100644 --- a/model_compute_physical_summary.go +++ b/model_compute_physical_summary.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -193,6 +193,11 @@ func (o *ComputePhysicalSummary) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "compute.PhysicalSummary" of the ClassId field. +func (o *ComputePhysicalSummary) GetDefaultClassId() interface{} { + return "compute.PhysicalSummary" +} + // GetObjectType returns the ObjectType field value func (o *ComputePhysicalSummary) GetObjectType() string { if o == nil { @@ -217,6 +222,11 @@ func (o *ComputePhysicalSummary) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "compute.PhysicalSummary" of the ObjectType field. +func (o *ComputePhysicalSummary) GetDefaultObjectType() interface{} { + return "compute.PhysicalSummary" +} + // GetAdminPowerState returns the AdminPowerState field value if set, zero value otherwise. func (o *ComputePhysicalSummary) GetAdminPowerState() string { if o == nil || IsNil(o.AdminPowerState) { @@ -761,7 +771,7 @@ func (o *ComputePhysicalSummary) GetKvmIpAddressesOk() ([]ComputeIpAddress, bool // HasKvmIpAddresses returns a boolean if a field has been set. func (o *ComputePhysicalSummary) HasKvmIpAddresses() bool { - if o != nil && IsNil(o.KvmIpAddresses) { + if o != nil && !IsNil(o.KvmIpAddresses) { return true } @@ -1306,7 +1316,7 @@ func (o *ComputePhysicalSummary) GetOperReasonOk() ([]string, bool) { // HasOperReason returns a boolean if a field has been set. func (o *ComputePhysicalSummary) HasOperReason() bool { - if o != nil && IsNil(o.OperReason) { + if o != nil && !IsNil(o.OperReason) { return true } @@ -2148,7 +2158,13 @@ func (o ComputePhysicalSummary) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.AdminPowerState) { toSerialize["AdminPowerState"] = o.AdminPowerState @@ -2341,6 +2357,13 @@ func (o *ComputePhysicalSummary) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -2350,11 +2373,23 @@ func (o *ComputePhysicalSummary) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type ComputePhysicalSummaryWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_compute_physical_summary_list.go b/model_compute_physical_summary_list.go index de3ea8edaa..f8002d08ac 100644 --- a/model_compute_physical_summary_list.go +++ b/model_compute_physical_summary_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *ComputePhysicalSummaryList) GetResultsOk() ([]ComputePhysicalSummary, b // HasResults returns a boolean if a field has been set. func (o *ComputePhysicalSummaryList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *ComputePhysicalSummaryList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *ComputePhysicalSummaryList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type ComputePhysicalSummaryListWithoutEmbeddedStruct struct { // The total number of 'compute.PhysicalSummary' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_compute_physical_summary_relationship.go b/model_compute_physical_summary_relationship.go index a38308a166..fe97062a13 100644 --- a/model_compute_physical_summary_relationship.go +++ b/model_compute_physical_summary_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_compute_physical_summary_response.go b/model_compute_physical_summary_response.go index ef3243da25..938e69c1e0 100644 --- a/model_compute_physical_summary_response.go +++ b/model_compute_physical_summary_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_compute_rack_unit.go b/model_compute_rack_unit.go index 4ec3a42d1c..d43049bc29 100644 --- a/model_compute_rack_unit.go +++ b/model_compute_rack_unit.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -132,6 +132,11 @@ func (o *ComputeRackUnit) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "compute.RackUnit" of the ClassId field. +func (o *ComputeRackUnit) GetDefaultClassId() interface{} { + return "compute.RackUnit" +} + // GetObjectType returns the ObjectType field value func (o *ComputeRackUnit) GetObjectType() string { if o == nil { @@ -156,6 +161,11 @@ func (o *ComputeRackUnit) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "compute.RackUnit" of the ObjectType field. +func (o *ComputeRackUnit) GetDefaultObjectType() interface{} { + return "compute.RackUnit" +} + // GetConnectionStatus returns the ConnectionStatus field value if set, zero value otherwise. func (o *ComputeRackUnit) GetConnectionStatus() string { if o == nil || IsNil(o.ConnectionStatus) { @@ -273,7 +283,7 @@ func (o *ComputeRackUnit) GetAdaptersOk() ([]AdapterUnitRelationship, bool) { // HasAdapters returns a boolean if a field has been set. func (o *ComputeRackUnit) HasAdapters() bool { - if o != nil && IsNil(o.Adapters) { + if o != nil && !IsNil(o.Adapters) { return true } @@ -437,7 +447,7 @@ func (o *ComputeRackUnit) GetBiosunitsOk() ([]BiosUnitRelationship, bool) { // HasBiosunits returns a boolean if a field has been set. func (o *ComputeRackUnit) HasBiosunits() bool { - if o != nil && IsNil(o.Biosunits) { + if o != nil && !IsNil(o.Biosunits) { return true } @@ -600,7 +610,7 @@ func (o *ComputeRackUnit) GetComputePersonalityOk() ([]ComputePersonalityRelatio // HasComputePersonality returns a boolean if a field has been set. func (o *ComputeRackUnit) HasComputePersonality() bool { - if o != nil && IsNil(o.ComputePersonality) { + if o != nil && !IsNil(o.ComputePersonality) { return true } @@ -633,7 +643,7 @@ func (o *ComputeRackUnit) GetFanmodulesOk() ([]EquipmentFanModuleRelationship, b // HasFanmodules returns a boolean if a field has been set. func (o *ComputeRackUnit) HasFanmodules() bool { - if o != nil && IsNil(o.Fanmodules) { + if o != nil && !IsNil(o.Fanmodules) { return true } @@ -666,7 +676,7 @@ func (o *ComputeRackUnit) GetGenericInventoryHoldersOk() ([]InventoryGenericInve // HasGenericInventoryHolders returns a boolean if a field has been set. func (o *ComputeRackUnit) HasGenericInventoryHolders() bool { - if o != nil && IsNil(o.GenericInventoryHolders) { + if o != nil && !IsNil(o.GenericInventoryHolders) { return true } @@ -699,7 +709,7 @@ func (o *ComputeRackUnit) GetGraphicsCardsOk() ([]GraphicsCardRelationship, bool // HasGraphicsCards returns a boolean if a field has been set. func (o *ComputeRackUnit) HasGraphicsCards() bool { - if o != nil && IsNil(o.GraphicsCards) { + if o != nil && !IsNil(o.GraphicsCards) { return true } @@ -732,7 +742,7 @@ func (o *ComputeRackUnit) GetHybridDriveSlotsOk() ([]EquipmentHybridDriveSlotRel // HasHybridDriveSlots returns a boolean if a field has been set. func (o *ComputeRackUnit) HasHybridDriveSlots() bool { - if o != nil && IsNil(o.HybridDriveSlots) { + if o != nil && !IsNil(o.HybridDriveSlots) { return true } @@ -851,7 +861,7 @@ func (o *ComputeRackUnit) GetMemoryArraysOk() ([]MemoryArrayRelationship, bool) // HasMemoryArrays returns a boolean if a field has been set. func (o *ComputeRackUnit) HasMemoryArrays() bool { - if o != nil && IsNil(o.MemoryArrays) { + if o != nil && !IsNil(o.MemoryArrays) { return true } @@ -884,7 +894,7 @@ func (o *ComputeRackUnit) GetPciDevicesOk() ([]PciDeviceRelationship, bool) { // HasPciDevices returns a boolean if a field has been set. func (o *ComputeRackUnit) HasPciDevices() bool { - if o != nil && IsNil(o.PciDevices) { + if o != nil && !IsNil(o.PciDevices) { return true } @@ -917,7 +927,7 @@ func (o *ComputeRackUnit) GetProcessorsOk() ([]ProcessorUnitRelationship, bool) // HasProcessors returns a boolean if a field has been set. func (o *ComputeRackUnit) HasProcessors() bool { - if o != nil && IsNil(o.Processors) { + if o != nil && !IsNil(o.Processors) { return true } @@ -950,7 +960,7 @@ func (o *ComputeRackUnit) GetPsusOk() ([]EquipmentPsuRelationship, bool) { // HasPsus returns a boolean if a field has been set. func (o *ComputeRackUnit) HasPsus() bool { - if o != nil && IsNil(o.Psus) { + if o != nil && !IsNil(o.Psus) { return true } @@ -1069,7 +1079,7 @@ func (o *ComputeRackUnit) GetSasExpandersOk() ([]StorageSasExpanderRelationship, // HasSasExpanders returns a boolean if a field has been set. func (o *ComputeRackUnit) HasSasExpanders() bool { - if o != nil && IsNil(o.SasExpanders) { + if o != nil && !IsNil(o.SasExpanders) { return true } @@ -1102,7 +1112,7 @@ func (o *ComputeRackUnit) GetStorageControllersOk() ([]StorageControllerRelation // HasStorageControllers returns a boolean if a field has been set. func (o *ComputeRackUnit) HasStorageControllers() bool { - if o != nil && IsNil(o.StorageControllers) { + if o != nil && !IsNil(o.StorageControllers) { return true } @@ -1135,7 +1145,7 @@ func (o *ComputeRackUnit) GetStorageEnclosuresOk() ([]StorageEnclosureRelationsh // HasStorageEnclosures returns a boolean if a field has been set. func (o *ComputeRackUnit) HasStorageEnclosures() bool { - if o != nil && IsNil(o.StorageEnclosures) { + if o != nil && !IsNil(o.StorageEnclosures) { return true } @@ -1211,7 +1221,7 @@ func (o *ComputeRackUnit) GetUnitPersonalityOk() ([]RackUnitPersonalityRelations // HasUnitPersonality returns a boolean if a field has been set. func (o *ComputeRackUnit) HasUnitPersonality() bool { - if o != nil && IsNil(o.UnitPersonality) { + if o != nil && !IsNil(o.UnitPersonality) { return true } @@ -1241,7 +1251,13 @@ func (o ComputeRackUnit) ToMap() (map[string]interface{}, error) { if errComputePhysical != nil { return map[string]interface{}{}, errComputePhysical } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.ConnectionStatus) { toSerialize["ConnectionStatus"] = o.ConnectionStatus @@ -1347,6 +1363,13 @@ func (o *ComputeRackUnit) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -1356,11 +1379,23 @@ func (o *ComputeRackUnit) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type ComputeRackUnitWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_compute_rack_unit_identity.go b/model_compute_rack_unit_identity.go index 092b64025e..429a7189e9 100644 --- a/model_compute_rack_unit_identity.go +++ b/model_compute_rack_unit_identity.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -84,6 +84,11 @@ func (o *ComputeRackUnitIdentity) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "compute.RackUnitIdentity" of the ClassId field. +func (o *ComputeRackUnitIdentity) GetDefaultClassId() interface{} { + return "compute.RackUnitIdentity" +} + // GetObjectType returns the ObjectType field value func (o *ComputeRackUnitIdentity) GetObjectType() string { if o == nil { @@ -108,6 +113,11 @@ func (o *ComputeRackUnitIdentity) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "compute.RackUnitIdentity" of the ObjectType field. +func (o *ComputeRackUnitIdentity) GetDefaultObjectType() interface{} { + return "compute.RackUnitIdentity" +} + // GetAdapterSerial returns the AdapterSerial field value if set, zero value otherwise. func (o *ComputeRackUnitIdentity) GetAdapterSerial() string { if o == nil || IsNil(o.AdapterSerial) { @@ -158,7 +168,13 @@ func (o ComputeRackUnitIdentity) ToMap() (map[string]interface{}, error) { if errEquipmentPhysicalIdentity != nil { return map[string]interface{}{}, errEquipmentPhysicalIdentity } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.AdapterSerial) { toSerialize["AdapterSerial"] = o.AdapterSerial @@ -180,6 +196,13 @@ func (o *ComputeRackUnitIdentity) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -189,11 +212,23 @@ func (o *ComputeRackUnitIdentity) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type ComputeRackUnitIdentityWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_compute_rack_unit_identity_list.go b/model_compute_rack_unit_identity_list.go index 7ae6773eab..e4a59ae610 100644 --- a/model_compute_rack_unit_identity_list.go +++ b/model_compute_rack_unit_identity_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *ComputeRackUnitIdentityList) GetResultsOk() ([]ComputeRackUnitIdentity, // HasResults returns a boolean if a field has been set. func (o *ComputeRackUnitIdentityList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *ComputeRackUnitIdentityList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *ComputeRackUnitIdentityList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type ComputeRackUnitIdentityListWithoutEmbeddedStruct struct { // The total number of 'compute.RackUnitIdentity' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_compute_rack_unit_identity_response.go b/model_compute_rack_unit_identity_response.go index 8a34b9b274..b91510de95 100644 --- a/model_compute_rack_unit_identity_response.go +++ b/model_compute_rack_unit_identity_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_compute_rack_unit_list.go b/model_compute_rack_unit_list.go index cfecf47d3b..0bb40328c8 100644 --- a/model_compute_rack_unit_list.go +++ b/model_compute_rack_unit_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *ComputeRackUnitList) GetResultsOk() ([]ComputeRackUnit, bool) { // HasResults returns a boolean if a field has been set. func (o *ComputeRackUnitList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *ComputeRackUnitList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *ComputeRackUnitList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type ComputeRackUnitListWithoutEmbeddedStruct struct { // The total number of 'compute.RackUnit' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_compute_rack_unit_relationship.go b/model_compute_rack_unit_relationship.go index f507215a7b..8df71880d9 100644 --- a/model_compute_rack_unit_relationship.go +++ b/model_compute_rack_unit_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_compute_rack_unit_response.go b/model_compute_rack_unit_response.go index 029fd9ab9e..d4753a7a92 100644 --- a/model_compute_rack_unit_response.go +++ b/model_compute_rack_unit_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_compute_server_config.go b/model_compute_server_config.go index 544e419273..57a59b598b 100644 --- a/model_compute_server_config.go +++ b/model_compute_server_config.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -29,9 +29,9 @@ type ComputeServerConfig struct { // The fully-qualified name of the instantiated, concrete type. The value should be the same as the 'ClassId' property. ObjectType string `json:"ObjectType"` // User defined asset tag of the server. - AssetTag *string `json:"AssetTag,omitempty"` + AssetTag *string "json:\"AssetTag,omitempty\" validate:\"regexp=^[ #$%\\\\(\\\\)\\\\*\\\\+,\\\\-\\\\.\\/:;\\\\?@\\\\[\\\\]_\\\\{\\\\|\\\\}\\\\^\\\\`\\\\>\\\\<~a-zA-Z0-9]*$\"" // User defined description of the server. - UserLabel *string `json:"UserLabel,omitempty"` + UserLabel *string `json:"UserLabel,omitempty" validate:"regexp=^[ !#$%&\\\\(\\\\)\\\\*\\\\+,\\\\-\\\\.\\/:;\\\\?@\\\\[\\\\]_\\\\{\\\\|\\\\}~a-zA-Z0-9]*$"` AdditionalProperties map[string]interface{} } @@ -84,6 +84,11 @@ func (o *ComputeServerConfig) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "compute.ServerConfig" of the ClassId field. +func (o *ComputeServerConfig) GetDefaultClassId() interface{} { + return "compute.ServerConfig" +} + // GetObjectType returns the ObjectType field value func (o *ComputeServerConfig) GetObjectType() string { if o == nil { @@ -108,6 +113,11 @@ func (o *ComputeServerConfig) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "compute.ServerConfig" of the ObjectType field. +func (o *ComputeServerConfig) GetDefaultObjectType() interface{} { + return "compute.ServerConfig" +} + // GetAssetTag returns the AssetTag field value if set, zero value otherwise. func (o *ComputeServerConfig) GetAssetTag() string { if o == nil || IsNil(o.AssetTag) { @@ -190,7 +200,13 @@ func (o ComputeServerConfig) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.AssetTag) { toSerialize["AssetTag"] = o.AssetTag @@ -215,6 +231,13 @@ func (o *ComputeServerConfig) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -224,20 +247,32 @@ func (o *ComputeServerConfig) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type ComputeServerConfigWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` // The fully-qualified name of the instantiated, concrete type. The value should be the same as the 'ClassId' property. ObjectType string `json:"ObjectType"` // User defined asset tag of the server. - AssetTag *string `json:"AssetTag,omitempty"` + AssetTag *string "json:\"AssetTag,omitempty\" validate:\"regexp=^[ #$%\\\\(\\\\)\\\\*\\\\+,\\\\-\\\\.\\/:;\\\\?@\\\\[\\\\]_\\\\{\\\\|\\\\}\\\\^\\\\`\\\\>\\\\<~a-zA-Z0-9]*$\"" // User defined description of the server. - UserLabel *string `json:"UserLabel,omitempty"` + UserLabel *string `json:"UserLabel,omitempty" validate:"regexp=^[ !#$%&\\\\(\\\\)\\\\*\\\\+,\\\\-\\\\.\\/:;\\\\?@\\\\[\\\\]_\\\\{\\\\|\\\\}~a-zA-Z0-9]*$"` } varComputeServerConfigWithoutEmbeddedStruct := ComputeServerConfigWithoutEmbeddedStruct{} diff --git a/model_compute_server_id_pool.go b/model_compute_server_id_pool.go index d30bc36c3b..2a577104ec 100644 --- a/model_compute_server_id_pool.go +++ b/model_compute_server_id_pool.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -82,6 +82,11 @@ func (o *ComputeServerIdPool) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "compute.ServerIdPool" of the ClassId field. +func (o *ComputeServerIdPool) GetDefaultClassId() interface{} { + return "compute.ServerIdPool" +} + // GetObjectType returns the ObjectType field value func (o *ComputeServerIdPool) GetObjectType() string { if o == nil { @@ -106,6 +111,11 @@ func (o *ComputeServerIdPool) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "compute.ServerIdPool" of the ObjectType field. +func (o *ComputeServerIdPool) GetDefaultObjectType() interface{} { + return "compute.ServerIdPool" +} + // GetPreferredIds returns the PreferredIds field value if set, zero value otherwise (both if not set or set to explicit null). func (o *ComputeServerIdPool) GetPreferredIds() []int64 { if o == nil { @@ -127,7 +137,7 @@ func (o *ComputeServerIdPool) GetPreferredIdsOk() ([]int64, bool) { // HasPreferredIds returns a boolean if a field has been set. func (o *ComputeServerIdPool) HasPreferredIds() bool { - if o != nil && IsNil(o.PreferredIds) { + if o != nil && !IsNil(o.PreferredIds) { return true } @@ -200,7 +210,13 @@ func (o ComputeServerIdPool) ToMap() (map[string]interface{}, error) { if errSwIdPoolBase != nil { return map[string]interface{}{}, errSwIdPoolBase } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.PreferredIds != nil { toSerialize["PreferredIds"] = o.PreferredIds @@ -225,6 +241,13 @@ func (o *ComputeServerIdPool) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -234,11 +257,23 @@ func (o *ComputeServerIdPool) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type ComputeServerIdPoolWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_compute_server_id_pool_list.go b/model_compute_server_id_pool_list.go index 6919a9d8c8..9109968b74 100644 --- a/model_compute_server_id_pool_list.go +++ b/model_compute_server_id_pool_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *ComputeServerIdPoolList) GetResultsOk() ([]ComputeServerIdPool, bool) { // HasResults returns a boolean if a field has been set. func (o *ComputeServerIdPoolList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *ComputeServerIdPoolList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *ComputeServerIdPoolList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type ComputeServerIdPoolListWithoutEmbeddedStruct struct { // The total number of 'compute.ServerIdPool' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_compute_server_id_pool_response.go b/model_compute_server_id_pool_response.go index db367a5ac0..c8a93b14ce 100644 --- a/model_compute_server_id_pool_response.go +++ b/model_compute_server_id_pool_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_compute_server_op_status.go b/model_compute_server_op_status.go index 8836daca9a..964fe09722 100644 --- a/model_compute_server_op_status.go +++ b/model_compute_server_op_status.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -90,6 +90,11 @@ func (o *ComputeServerOpStatus) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "compute.ServerOpStatus" of the ClassId field. +func (o *ComputeServerOpStatus) GetDefaultClassId() interface{} { + return "compute.ServerOpStatus" +} + // GetObjectType returns the ObjectType field value func (o *ComputeServerOpStatus) GetObjectType() string { if o == nil { @@ -114,6 +119,11 @@ func (o *ComputeServerOpStatus) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "compute.ServerOpStatus" of the ObjectType field. +func (o *ComputeServerOpStatus) GetDefaultObjectType() interface{} { + return "compute.ServerOpStatus" +} + // GetConfigState returns the ConfigState field value if set, zero value otherwise. func (o *ComputeServerOpStatus) GetConfigState() string { if o == nil || IsNil(o.ConfigState) { @@ -228,7 +238,13 @@ func (o ComputeServerOpStatus) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.ConfigState) { toSerialize["ConfigState"] = o.ConfigState @@ -256,6 +272,13 @@ func (o *ComputeServerOpStatus) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -265,11 +288,23 @@ func (o *ComputeServerOpStatus) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type ComputeServerOpStatusWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_compute_server_power_policy.go b/model_compute_server_power_policy.go index 7293f961ec..2965a11cb4 100644 --- a/model_compute_server_power_policy.go +++ b/model_compute_server_power_policy.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -93,6 +93,11 @@ func (o *ComputeServerPowerPolicy) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "compute.ServerPowerPolicy" of the ClassId field. +func (o *ComputeServerPowerPolicy) GetDefaultClassId() interface{} { + return "compute.ServerPowerPolicy" +} + // GetObjectType returns the ObjectType field value func (o *ComputeServerPowerPolicy) GetObjectType() string { if o == nil { @@ -117,6 +122,11 @@ func (o *ComputeServerPowerPolicy) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "compute.ServerPowerPolicy" of the ObjectType field. +func (o *ComputeServerPowerPolicy) GetDefaultObjectType() interface{} { + return "compute.ServerPowerPolicy" +} + // GetPowerState returns the PowerState field value if set, zero value otherwise. func (o *ComputeServerPowerPolicy) GetPowerState() string { if o == nil || IsNil(o.PowerState) { @@ -245,7 +255,7 @@ func (o *ComputeServerPowerPolicy) GetProfilesOk() ([]PolicyAbstractConfigProfil // HasProfiles returns a boolean if a field has been set. func (o *ComputeServerPowerPolicy) HasProfiles() bool { - if o != nil && IsNil(o.Profiles) { + if o != nil && !IsNil(o.Profiles) { return true } @@ -361,7 +371,13 @@ func (o ComputeServerPowerPolicy) ToMap() (map[string]interface{}, error) { if errPolicyAbstractPolicy != nil { return map[string]interface{}{}, errPolicyAbstractPolicy } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.PowerState) { toSerialize["PowerState"] = o.PowerState @@ -398,6 +414,13 @@ func (o *ComputeServerPowerPolicy) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -407,11 +430,23 @@ func (o *ComputeServerPowerPolicy) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type ComputeServerPowerPolicyWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_compute_server_power_policy_list.go b/model_compute_server_power_policy_list.go index afd552578a..d656a60f41 100644 --- a/model_compute_server_power_policy_list.go +++ b/model_compute_server_power_policy_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *ComputeServerPowerPolicyList) GetResultsOk() ([]ComputeServerPowerPolic // HasResults returns a boolean if a field has been set. func (o *ComputeServerPowerPolicyList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *ComputeServerPowerPolicyList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *ComputeServerPowerPolicyList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type ComputeServerPowerPolicyListWithoutEmbeddedStruct struct { // The total number of 'compute.ServerPowerPolicy' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_compute_server_power_policy_response.go b/model_compute_server_power_policy_response.go index 352d3abf0a..8dace52242 100644 --- a/model_compute_server_power_policy_response.go +++ b/model_compute_server_power_policy_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_compute_server_setting.go b/model_compute_server_setting.go index 5e8bcaeb26..20632a8cf3 100644 --- a/model_compute_server_setting.go +++ b/model_compute_server_setting.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -155,6 +155,11 @@ func (o *ComputeServerSetting) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "compute.ServerSetting" of the ClassId field. +func (o *ComputeServerSetting) GetDefaultClassId() interface{} { + return "compute.ServerSetting" +} + // GetObjectType returns the ObjectType field value func (o *ComputeServerSetting) GetObjectType() string { if o == nil { @@ -179,6 +184,11 @@ func (o *ComputeServerSetting) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "compute.ServerSetting" of the ObjectType field. +func (o *ComputeServerSetting) GetDefaultObjectType() interface{} { + return "compute.ServerSetting" +} + // GetAdminLocatorLedState returns the AdminLocatorLedState field value if set, zero value otherwise. func (o *ComputeServerSetting) GetAdminLocatorLedState() string { if o == nil || IsNil(o.AdminLocatorLedState) { @@ -724,7 +734,7 @@ func (o *ComputeServerSetting) GetServerOpStatusOk() ([]ComputeServerOpStatus, b // HasServerOpStatus returns a boolean if a field has been set. func (o *ComputeServerSetting) HasServerOpStatus() bool { - if o != nil && IsNil(o.ServerOpStatus) { + if o != nil && !IsNil(o.ServerOpStatus) { return true } @@ -1162,7 +1172,13 @@ func (o ComputeServerSetting) ToMap() (map[string]interface{}, error) { if errInventoryBase != nil { return map[string]interface{}{}, errInventoryBase } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.AdminLocatorLedState) { toSerialize["AdminLocatorLedState"] = o.AdminLocatorLedState @@ -1259,6 +1275,13 @@ func (o *ComputeServerSetting) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -1268,11 +1291,23 @@ func (o *ComputeServerSetting) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type ComputeServerSettingWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_compute_server_setting_list.go b/model_compute_server_setting_list.go index 4484e9de09..1d6707e714 100644 --- a/model_compute_server_setting_list.go +++ b/model_compute_server_setting_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *ComputeServerSettingList) GetResultsOk() ([]ComputeServerSetting, bool) // HasResults returns a boolean if a field has been set. func (o *ComputeServerSettingList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *ComputeServerSettingList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *ComputeServerSettingList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type ComputeServerSettingListWithoutEmbeddedStruct struct { // The total number of 'compute.ServerSetting' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_compute_server_setting_response.go b/model_compute_server_setting_response.go index f3a6db8624..47f4c27367 100644 --- a/model_compute_server_setting_response.go +++ b/model_compute_server_setting_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_compute_storage_controller_operation.go b/model_compute_storage_controller_operation.go index 4ea522a14e..f60bd21c27 100644 --- a/model_compute_storage_controller_operation.go +++ b/model_compute_storage_controller_operation.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -92,6 +92,11 @@ func (o *ComputeStorageControllerOperation) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "compute.StorageControllerOperation" of the ClassId field. +func (o *ComputeStorageControllerOperation) GetDefaultClassId() interface{} { + return "compute.StorageControllerOperation" +} + // GetObjectType returns the ObjectType field value func (o *ComputeStorageControllerOperation) GetObjectType() string { if o == nil { @@ -116,6 +121,11 @@ func (o *ComputeStorageControllerOperation) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "compute.StorageControllerOperation" of the ObjectType field. +func (o *ComputeStorageControllerOperation) GetDefaultObjectType() interface{} { + return "compute.StorageControllerOperation" +} + // GetAdminAction returns the AdminAction field value if set, zero value otherwise. func (o *ComputeStorageControllerOperation) GetAdminAction() string { if o == nil || IsNil(o.AdminAction) { @@ -262,7 +272,13 @@ func (o ComputeStorageControllerOperation) ToMap() (map[string]interface{}, erro if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.AdminAction) { toSerialize["AdminAction"] = o.AdminAction @@ -293,6 +309,13 @@ func (o *ComputeStorageControllerOperation) UnmarshalJSON(data []byte) (err erro "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -302,11 +325,23 @@ func (o *ComputeStorageControllerOperation) UnmarshalJSON(data []byte) (err erro } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type ComputeStorageControllerOperationWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_compute_storage_physical_drive.go b/model_compute_storage_physical_drive.go index 09b1f8786d..3319b3fe85 100644 --- a/model_compute_storage_physical_drive.go +++ b/model_compute_storage_physical_drive.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -82,6 +82,11 @@ func (o *ComputeStoragePhysicalDrive) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "compute.StoragePhysicalDrive" of the ClassId field. +func (o *ComputeStoragePhysicalDrive) GetDefaultClassId() interface{} { + return "compute.StoragePhysicalDrive" +} + // GetObjectType returns the ObjectType field value func (o *ComputeStoragePhysicalDrive) GetObjectType() string { if o == nil { @@ -106,6 +111,11 @@ func (o *ComputeStoragePhysicalDrive) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "compute.StoragePhysicalDrive" of the ObjectType field. +func (o *ComputeStoragePhysicalDrive) GetDefaultObjectType() interface{} { + return "compute.StoragePhysicalDrive" +} + // GetSlotNumber returns the SlotNumber field value if set, zero value otherwise. func (o *ComputeStoragePhysicalDrive) GetSlotNumber() int64 { if o == nil || IsNil(o.SlotNumber) { @@ -156,7 +166,13 @@ func (o ComputeStoragePhysicalDrive) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.SlotNumber) { toSerialize["SlotNumber"] = o.SlotNumber @@ -178,6 +194,13 @@ func (o *ComputeStoragePhysicalDrive) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -187,11 +210,23 @@ func (o *ComputeStoragePhysicalDrive) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type ComputeStoragePhysicalDriveWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_compute_storage_physical_drive_operation.go b/model_compute_storage_physical_drive_operation.go index 8861fa3e6c..d54040c8b1 100644 --- a/model_compute_storage_physical_drive_operation.go +++ b/model_compute_storage_physical_drive_operation.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -90,6 +90,11 @@ func (o *ComputeStoragePhysicalDriveOperation) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "compute.StoragePhysicalDriveOperation" of the ClassId field. +func (o *ComputeStoragePhysicalDriveOperation) GetDefaultClassId() interface{} { + return "compute.StoragePhysicalDriveOperation" +} + // GetObjectType returns the ObjectType field value func (o *ComputeStoragePhysicalDriveOperation) GetObjectType() string { if o == nil { @@ -114,6 +119,11 @@ func (o *ComputeStoragePhysicalDriveOperation) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "compute.StoragePhysicalDriveOperation" of the ObjectType field. +func (o *ComputeStoragePhysicalDriveOperation) GetDefaultObjectType() interface{} { + return "compute.StoragePhysicalDriveOperation" +} + // GetAdminAction returns the AdminAction field value if set, zero value otherwise. func (o *ComputeStoragePhysicalDriveOperation) GetAdminAction() string { if o == nil || IsNil(o.AdminAction) { @@ -199,7 +209,7 @@ func (o *ComputeStoragePhysicalDriveOperation) GetDriveSlotsOk() ([]string, bool // HasDriveSlots returns a boolean if a field has been set. func (o *ComputeStoragePhysicalDriveOperation) HasDriveSlots() bool { - if o != nil && IsNil(o.DriveSlots) { + if o != nil && !IsNil(o.DriveSlots) { return true } @@ -232,7 +242,7 @@ func (o *ComputeStoragePhysicalDriveOperation) GetPhysicalDrivesOk() ([]ComputeS // HasPhysicalDrives returns a boolean if a field has been set. func (o *ComputeStoragePhysicalDriveOperation) HasPhysicalDrives() bool { - if o != nil && IsNil(o.PhysicalDrives) { + if o != nil && !IsNil(o.PhysicalDrives) { return true } @@ -262,7 +272,13 @@ func (o ComputeStoragePhysicalDriveOperation) ToMap() (map[string]interface{}, e if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.AdminAction) { toSerialize["AdminAction"] = o.AdminAction @@ -293,6 +309,13 @@ func (o *ComputeStoragePhysicalDriveOperation) UnmarshalJSON(data []byte) (err e "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -302,11 +325,23 @@ func (o *ComputeStoragePhysicalDriveOperation) UnmarshalJSON(data []byte) (err e } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type ComputeStoragePhysicalDriveOperationWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_compute_storage_utility_image_operation.go b/model_compute_storage_utility_image_operation.go index 5ae3fa2581..9c595d16e5 100644 --- a/model_compute_storage_utility_image_operation.go +++ b/model_compute_storage_utility_image_operation.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -90,6 +90,11 @@ func (o *ComputeStorageUtilityImageOperation) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "compute.StorageUtilityImageOperation" of the ClassId field. +func (o *ComputeStorageUtilityImageOperation) GetDefaultClassId() interface{} { + return "compute.StorageUtilityImageOperation" +} + // GetObjectType returns the ObjectType field value func (o *ComputeStorageUtilityImageOperation) GetObjectType() string { if o == nil { @@ -114,6 +119,11 @@ func (o *ComputeStorageUtilityImageOperation) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "compute.StorageUtilityImageOperation" of the ObjectType field. +func (o *ComputeStorageUtilityImageOperation) GetDefaultObjectType() interface{} { + return "compute.StorageUtilityImageOperation" +} + // GetAction returns the Action field value if set, zero value otherwise. func (o *ComputeStorageUtilityImageOperation) GetAction() string { if o == nil || IsNil(o.Action) { @@ -228,7 +238,13 @@ func (o ComputeStorageUtilityImageOperation) ToMap() (map[string]interface{}, er if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Action) { toSerialize["Action"] = o.Action @@ -256,6 +272,13 @@ func (o *ComputeStorageUtilityImageOperation) UnmarshalJSON(data []byte) (err er "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -265,11 +288,23 @@ func (o *ComputeStorageUtilityImageOperation) UnmarshalJSON(data []byte) (err er } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type ComputeStorageUtilityImageOperationWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_compute_storage_virtual_drive.go b/model_compute_storage_virtual_drive.go index 1dbdde1b2a..dd16bb4dc4 100644 --- a/model_compute_storage_virtual_drive.go +++ b/model_compute_storage_virtual_drive.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -82,6 +82,11 @@ func (o *ComputeStorageVirtualDrive) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "compute.StorageVirtualDrive" of the ClassId field. +func (o *ComputeStorageVirtualDrive) GetDefaultClassId() interface{} { + return "compute.StorageVirtualDrive" +} + // GetObjectType returns the ObjectType field value func (o *ComputeStorageVirtualDrive) GetObjectType() string { if o == nil { @@ -106,6 +111,11 @@ func (o *ComputeStorageVirtualDrive) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "compute.StorageVirtualDrive" of the ObjectType field. +func (o *ComputeStorageVirtualDrive) GetDefaultObjectType() interface{} { + return "compute.StorageVirtualDrive" +} + // GetId returns the Id field value if set, zero value otherwise. func (o *ComputeStorageVirtualDrive) GetId() string { if o == nil || IsNil(o.Id) { @@ -156,7 +166,13 @@ func (o ComputeStorageVirtualDrive) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Id) { toSerialize["Id"] = o.Id @@ -178,6 +194,13 @@ func (o *ComputeStorageVirtualDrive) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -187,11 +210,23 @@ func (o *ComputeStorageVirtualDrive) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type ComputeStorageVirtualDriveWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_compute_storage_virtual_drive_operation.go b/model_compute_storage_virtual_drive_operation.go index 0d1744968a..ead90e0bf7 100644 --- a/model_compute_storage_virtual_drive_operation.go +++ b/model_compute_storage_virtual_drive_operation.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -89,6 +89,11 @@ func (o *ComputeStorageVirtualDriveOperation) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "compute.StorageVirtualDriveOperation" of the ClassId field. +func (o *ComputeStorageVirtualDriveOperation) GetDefaultClassId() interface{} { + return "compute.StorageVirtualDriveOperation" +} + // GetObjectType returns the ObjectType field value func (o *ComputeStorageVirtualDriveOperation) GetObjectType() string { if o == nil { @@ -113,6 +118,11 @@ func (o *ComputeStorageVirtualDriveOperation) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "compute.StorageVirtualDriveOperation" of the ObjectType field. +func (o *ComputeStorageVirtualDriveOperation) GetDefaultObjectType() interface{} { + return "compute.StorageVirtualDriveOperation" +} + // GetAdminAction returns the AdminAction field value if set, zero value otherwise. func (o *ComputeStorageVirtualDriveOperation) GetAdminAction() string { if o == nil || IsNil(o.AdminAction) { @@ -198,7 +208,7 @@ func (o *ComputeStorageVirtualDriveOperation) GetVirtualDrivesOk() ([]ComputeSto // HasVirtualDrives returns a boolean if a field has been set. func (o *ComputeStorageVirtualDriveOperation) HasVirtualDrives() bool { - if o != nil && IsNil(o.VirtualDrives) { + if o != nil && !IsNil(o.VirtualDrives) { return true } @@ -228,7 +238,13 @@ func (o ComputeStorageVirtualDriveOperation) ToMap() (map[string]interface{}, er if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.AdminAction) { toSerialize["AdminAction"] = o.AdminAction @@ -256,6 +272,13 @@ func (o *ComputeStorageVirtualDriveOperation) UnmarshalJSON(data []byte) (err er "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -265,11 +288,23 @@ func (o *ComputeStorageVirtualDriveOperation) UnmarshalJSON(data []byte) (err er } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type ComputeStorageVirtualDriveOperationWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_compute_vmedia.go b/model_compute_vmedia.go index 1f7c406918..28c4a74c41 100644 --- a/model_compute_vmedia.go +++ b/model_compute_vmedia.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -91,6 +91,11 @@ func (o *ComputeVmedia) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "compute.Vmedia" of the ClassId field. +func (o *ComputeVmedia) GetDefaultClassId() interface{} { + return "compute.Vmedia" +} + // GetObjectType returns the ObjectType field value func (o *ComputeVmedia) GetObjectType() string { if o == nil { @@ -115,6 +120,11 @@ func (o *ComputeVmedia) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "compute.Vmedia" of the ObjectType field. +func (o *ComputeVmedia) GetDefaultObjectType() interface{} { + return "compute.Vmedia" +} + // GetEnabled returns the Enabled field value if set, zero value otherwise. func (o *ComputeVmedia) GetEnabled() bool { if o == nil || IsNil(o.Enabled) { @@ -318,7 +328,7 @@ func (o *ComputeVmedia) GetMappingsOk() ([]ComputeMappingRelationship, bool) { // HasMappings returns a boolean if a field has been set. func (o *ComputeVmedia) HasMappings() bool { - if o != nil && IsNil(o.Mappings) { + if o != nil && !IsNil(o.Mappings) { return true } @@ -391,7 +401,13 @@ func (o ComputeVmedia) ToMap() (map[string]interface{}, error) { if errInventoryBase != nil { return map[string]interface{}{}, errInventoryBase } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Enabled) { toSerialize["Enabled"] = o.Enabled @@ -431,6 +447,13 @@ func (o *ComputeVmedia) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -440,11 +463,23 @@ func (o *ComputeVmedia) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type ComputeVmediaWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_compute_vmedia_list.go b/model_compute_vmedia_list.go index 321a0e9d05..7f76e4d8b9 100644 --- a/model_compute_vmedia_list.go +++ b/model_compute_vmedia_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *ComputeVmediaList) GetResultsOk() ([]ComputeVmedia, bool) { // HasResults returns a boolean if a field has been set. func (o *ComputeVmediaList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *ComputeVmediaList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *ComputeVmediaList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type ComputeVmediaListWithoutEmbeddedStruct struct { // The total number of 'compute.Vmedia' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_compute_vmedia_relationship.go b/model_compute_vmedia_relationship.go index 2ad03ed84d..aa6754ac74 100644 --- a/model_compute_vmedia_relationship.go +++ b/model_compute_vmedia_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_compute_vmedia_response.go b/model_compute_vmedia_response.go index 4b0ff5dea2..c401ef3731 100644 --- a/model_compute_vmedia_response.go +++ b/model_compute_vmedia_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_cond_alarm.go b/model_cond_alarm.go index 36c7b2fd07..6bc7c49b75 100644 --- a/model_cond_alarm.go +++ b/model_cond_alarm.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -128,6 +128,11 @@ func (o *CondAlarm) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "cond.Alarm" of the ClassId field. +func (o *CondAlarm) GetDefaultClassId() interface{} { + return "cond.Alarm" +} + // GetObjectType returns the ObjectType field value func (o *CondAlarm) GetObjectType() string { if o == nil { @@ -152,6 +157,11 @@ func (o *CondAlarm) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "cond.Alarm" of the ObjectType field. +func (o *CondAlarm) GetDefaultObjectType() interface{} { + return "cond.Alarm" +} + // GetAcknowledge returns the Acknowledge field value if set, zero value otherwise. func (o *CondAlarm) GetAcknowledge() string { if o == nil || IsNil(o.Acknowledge) { @@ -887,7 +897,13 @@ func (o CondAlarm) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Acknowledge) { toSerialize["Acknowledge"] = o.Acknowledge @@ -969,6 +985,13 @@ func (o *CondAlarm) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -978,11 +1001,23 @@ func (o *CondAlarm) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type CondAlarmWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_cond_alarm_action.go b/model_cond_alarm_action.go index e98ee1b66b..b785353180 100644 --- a/model_cond_alarm_action.go +++ b/model_cond_alarm_action.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -82,6 +82,11 @@ func (o *CondAlarmAction) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "cond.AlarmAction" of the ClassId field. +func (o *CondAlarmAction) GetDefaultClassId() interface{} { + return "cond.AlarmAction" +} + // GetObjectType returns the ObjectType field value func (o *CondAlarmAction) GetObjectType() string { if o == nil { @@ -106,6 +111,11 @@ func (o *CondAlarmAction) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "cond.AlarmAction" of the ObjectType field. +func (o *CondAlarmAction) GetDefaultObjectType() interface{} { + return "cond.AlarmAction" +} + // GetMessage returns the Message field value if set, zero value otherwise (both if not set or set to explicit null). func (o *CondAlarmAction) GetMessage() IssueMessage { if o == nil || IsNil(o.Message.Get()) { @@ -210,7 +220,13 @@ func (o CondAlarmAction) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.Message.IsSet() { toSerialize["Message"] = o.Message.Get() @@ -235,6 +251,13 @@ func (o *CondAlarmAction) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -244,11 +267,23 @@ func (o *CondAlarmAction) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type CondAlarmActionWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_cond_alarm_aggregation.go b/model_cond_alarm_aggregation.go index aad15048db..87fa9eb7ad 100644 --- a/model_cond_alarm_aggregation.go +++ b/model_cond_alarm_aggregation.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -93,6 +93,11 @@ func (o *CondAlarmAggregation) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "cond.AlarmAggregation" of the ClassId field. +func (o *CondAlarmAggregation) GetDefaultClassId() interface{} { + return "cond.AlarmAggregation" +} + // GetObjectType returns the ObjectType field value func (o *CondAlarmAggregation) GetObjectType() string { if o == nil { @@ -117,6 +122,11 @@ func (o *CondAlarmAggregation) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "cond.AlarmAggregation" of the ObjectType field. +func (o *CondAlarmAggregation) GetDefaultObjectType() interface{} { + return "cond.AlarmAggregation" +} + // GetAlarmSummary returns the AlarmSummary field value if set, zero value otherwise (both if not set or set to explicit null). func (o *CondAlarmAggregation) GetAlarmSummary() CondAlarmSummary { if o == nil || IsNil(o.AlarmSummary.Get()) { @@ -384,7 +394,13 @@ func (o CondAlarmAggregation) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.AlarmSummary.IsSet() { toSerialize["AlarmSummary"] = o.AlarmSummary.Get() @@ -424,6 +440,13 @@ func (o *CondAlarmAggregation) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -433,11 +456,23 @@ func (o *CondAlarmAggregation) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type CondAlarmAggregationWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_cond_alarm_aggregation_list.go b/model_cond_alarm_aggregation_list.go index 5f65e6d864..2311cdc1f3 100644 --- a/model_cond_alarm_aggregation_list.go +++ b/model_cond_alarm_aggregation_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *CondAlarmAggregationList) GetResultsOk() ([]CondAlarmAggregation, bool) // HasResults returns a boolean if a field has been set. func (o *CondAlarmAggregationList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *CondAlarmAggregationList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *CondAlarmAggregationList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type CondAlarmAggregationListWithoutEmbeddedStruct struct { // The total number of 'cond.AlarmAggregation' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_cond_alarm_aggregation_response.go b/model_cond_alarm_aggregation_response.go index 13ec27c7f6..c52c0a5c44 100644 --- a/model_cond_alarm_aggregation_response.go +++ b/model_cond_alarm_aggregation_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_cond_alarm_classification.go b/model_cond_alarm_classification.go index 47a2be75dc..46d26433a3 100644 --- a/model_cond_alarm_classification.go +++ b/model_cond_alarm_classification.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -32,7 +32,7 @@ type CondAlarmClassification struct { // A description about the alarms group that usually gives what kind of alarms are part of this classification. Description *string `json:"Description,omitempty"` // The name that uniquely identifies the alarm classificaton. - Name *string `json:"Name,omitempty"` + Name *string `json:"Name,omitempty" validate:"regexp=^[a-zA-Z0-9_.:-]{1,64}$"` // An array of relationships to condAlarmDefinition resources. AlarmDefinitions []CondAlarmDefinitionRelationship `json:"AlarmDefinitions,omitempty"` AdditionalProperties map[string]interface{} @@ -87,6 +87,11 @@ func (o *CondAlarmClassification) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "cond.AlarmClassification" of the ClassId field. +func (o *CondAlarmClassification) GetDefaultClassId() interface{} { + return "cond.AlarmClassification" +} + // GetObjectType returns the ObjectType field value func (o *CondAlarmClassification) GetObjectType() string { if o == nil { @@ -111,6 +116,11 @@ func (o *CondAlarmClassification) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "cond.AlarmClassification" of the ObjectType field. +func (o *CondAlarmClassification) GetDefaultObjectType() interface{} { + return "cond.AlarmClassification" +} + // GetAppliesTo returns the AppliesTo field value if set, zero value otherwise (both if not set or set to explicit null). func (o *CondAlarmClassification) GetAppliesTo() []CondAlarmClassificationEligibility { if o == nil { @@ -132,7 +142,7 @@ func (o *CondAlarmClassification) GetAppliesToOk() ([]CondAlarmClassificationEli // HasAppliesTo returns a boolean if a field has been set. func (o *CondAlarmClassification) HasAppliesTo() bool { - if o != nil && IsNil(o.AppliesTo) { + if o != nil && !IsNil(o.AppliesTo) { return true } @@ -229,7 +239,7 @@ func (o *CondAlarmClassification) GetAlarmDefinitionsOk() ([]CondAlarmDefinition // HasAlarmDefinitions returns a boolean if a field has been set. func (o *CondAlarmClassification) HasAlarmDefinitions() bool { - if o != nil && IsNil(o.AlarmDefinitions) { + if o != nil && !IsNil(o.AlarmDefinitions) { return true } @@ -259,7 +269,13 @@ func (o CondAlarmClassification) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.AppliesTo != nil { toSerialize["AppliesTo"] = o.AppliesTo @@ -290,6 +306,13 @@ func (o *CondAlarmClassification) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -299,11 +322,23 @@ func (o *CondAlarmClassification) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type CondAlarmClassificationWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` @@ -313,7 +348,7 @@ func (o *CondAlarmClassification) UnmarshalJSON(data []byte) (err error) { // A description about the alarms group that usually gives what kind of alarms are part of this classification. Description *string `json:"Description,omitempty"` // The name that uniquely identifies the alarm classificaton. - Name *string `json:"Name,omitempty"` + Name *string `json:"Name,omitempty" validate:"regexp=^[a-zA-Z0-9_.:-]{1,64}$"` // An array of relationships to condAlarmDefinition resources. AlarmDefinitions []CondAlarmDefinitionRelationship `json:"AlarmDefinitions,omitempty"` } diff --git a/model_cond_alarm_classification_eligibility.go b/model_cond_alarm_classification_eligibility.go index 3ca206568b..8be33e3bbb 100644 --- a/model_cond_alarm_classification_eligibility.go +++ b/model_cond_alarm_classification_eligibility.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -82,6 +82,11 @@ func (o *CondAlarmClassificationEligibility) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "cond.AlarmClassificationEligibility" of the ClassId field. +func (o *CondAlarmClassificationEligibility) GetDefaultClassId() interface{} { + return "cond.AlarmClassificationEligibility" +} + // GetObjectType returns the ObjectType field value func (o *CondAlarmClassificationEligibility) GetObjectType() string { if o == nil { @@ -106,6 +111,11 @@ func (o *CondAlarmClassificationEligibility) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "cond.AlarmClassificationEligibility" of the ObjectType field. +func (o *CondAlarmClassificationEligibility) GetDefaultObjectType() interface{} { + return "cond.AlarmClassificationEligibility" +} + // GetEntityType returns the EntityType field value if set, zero value otherwise. func (o *CondAlarmClassificationEligibility) GetEntityType() string { if o == nil || IsNil(o.EntityType) { @@ -156,7 +166,13 @@ func (o CondAlarmClassificationEligibility) ToMap() (map[string]interface{}, err if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.EntityType) { toSerialize["EntityType"] = o.EntityType @@ -178,6 +194,13 @@ func (o *CondAlarmClassificationEligibility) UnmarshalJSON(data []byte) (err err "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -187,11 +210,23 @@ func (o *CondAlarmClassificationEligibility) UnmarshalJSON(data []byte) (err err } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type CondAlarmClassificationEligibilityWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_cond_alarm_classification_list.go b/model_cond_alarm_classification_list.go index 8c79f98930..c934e27db8 100644 --- a/model_cond_alarm_classification_list.go +++ b/model_cond_alarm_classification_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *CondAlarmClassificationList) GetResultsOk() ([]CondAlarmClassification, // HasResults returns a boolean if a field has been set. func (o *CondAlarmClassificationList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *CondAlarmClassificationList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *CondAlarmClassificationList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type CondAlarmClassificationListWithoutEmbeddedStruct struct { // The total number of 'cond.AlarmClassification' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_cond_alarm_classification_relationship.go b/model_cond_alarm_classification_relationship.go index a663e48c87..77efa679f8 100644 --- a/model_cond_alarm_classification_relationship.go +++ b/model_cond_alarm_classification_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_cond_alarm_classification_response.go b/model_cond_alarm_classification_response.go index f4200216b3..31cae71873 100644 --- a/model_cond_alarm_classification_response.go +++ b/model_cond_alarm_classification_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_cond_alarm_definition.go b/model_cond_alarm_definition.go index 396742237c..549255325c 100644 --- a/model_cond_alarm_definition.go +++ b/model_cond_alarm_definition.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -81,6 +81,11 @@ func (o *CondAlarmDefinition) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "cond.AlarmDefinition" of the ClassId field. +func (o *CondAlarmDefinition) GetDefaultClassId() interface{} { + return "cond.AlarmDefinition" +} + // GetObjectType returns the ObjectType field value func (o *CondAlarmDefinition) GetObjectType() string { if o == nil { @@ -105,6 +110,11 @@ func (o *CondAlarmDefinition) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "cond.AlarmDefinition" of the ObjectType field. +func (o *CondAlarmDefinition) GetDefaultObjectType() interface{} { + return "cond.AlarmDefinition" +} + // GetActions returns the Actions field value if set, zero value otherwise (both if not set or set to explicit null). func (o *CondAlarmDefinition) GetActions() []CondAlarmAction { if o == nil { @@ -126,7 +136,7 @@ func (o *CondAlarmDefinition) GetActionsOk() ([]CondAlarmAction, bool) { // HasActions returns a boolean if a field has been set. func (o *CondAlarmDefinition) HasActions() bool { - if o != nil && IsNil(o.Actions) { + if o != nil && !IsNil(o.Actions) { return true } @@ -156,7 +166,13 @@ func (o CondAlarmDefinition) ToMap() (map[string]interface{}, error) { if errIssueDefinition != nil { return map[string]interface{}{}, errIssueDefinition } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.Actions != nil { toSerialize["Actions"] = o.Actions @@ -178,6 +194,13 @@ func (o *CondAlarmDefinition) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -187,11 +210,23 @@ func (o *CondAlarmDefinition) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type CondAlarmDefinitionWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_cond_alarm_definition_list.go b/model_cond_alarm_definition_list.go index 8bd9f038f1..fe454d2514 100644 --- a/model_cond_alarm_definition_list.go +++ b/model_cond_alarm_definition_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *CondAlarmDefinitionList) GetResultsOk() ([]CondAlarmDefinition, bool) { // HasResults returns a boolean if a field has been set. func (o *CondAlarmDefinitionList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *CondAlarmDefinitionList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *CondAlarmDefinitionList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type CondAlarmDefinitionListWithoutEmbeddedStruct struct { // The total number of 'cond.AlarmDefinition' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_cond_alarm_definition_relationship.go b/model_cond_alarm_definition_relationship.go index eb47e64d41..cab0771d6f 100644 --- a/model_cond_alarm_definition_relationship.go +++ b/model_cond_alarm_definition_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_cond_alarm_definition_response.go b/model_cond_alarm_definition_response.go index 43c22464aa..79092a516c 100644 --- a/model_cond_alarm_definition_response.go +++ b/model_cond_alarm_definition_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_cond_alarm_list.go b/model_cond_alarm_list.go index 56a992da9c..9bd8d4a3d4 100644 --- a/model_cond_alarm_list.go +++ b/model_cond_alarm_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *CondAlarmList) GetResultsOk() ([]CondAlarm, bool) { // HasResults returns a boolean if a field has been set. func (o *CondAlarmList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *CondAlarmList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *CondAlarmList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type CondAlarmListWithoutEmbeddedStruct struct { // The total number of 'cond.Alarm' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_cond_alarm_response.go b/model_cond_alarm_response.go index 5f4cf69efe..7057783263 100644 --- a/model_cond_alarm_response.go +++ b/model_cond_alarm_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_cond_alarm_spec.go b/model_cond_alarm_spec.go index f892362b83..660b95f027 100644 --- a/model_cond_alarm_spec.go +++ b/model_cond_alarm_spec.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -86,6 +86,11 @@ func (o *CondAlarmSpec) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "cond.AlarmSpec" of the ClassId field. +func (o *CondAlarmSpec) GetDefaultClassId() interface{} { + return "cond.AlarmSpec" +} + // GetObjectType returns the ObjectType field value func (o *CondAlarmSpec) GetObjectType() string { if o == nil { @@ -110,6 +115,11 @@ func (o *CondAlarmSpec) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "cond.AlarmSpec" of the ObjectType field. +func (o *CondAlarmSpec) GetDefaultObjectType() interface{} { + return "cond.AlarmSpec" +} + // GetSeverity returns the Severity field value if set, zero value otherwise. func (o *CondAlarmSpec) GetSeverity() string { if o == nil || IsNil(o.Severity) { @@ -160,7 +170,13 @@ func (o CondAlarmSpec) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Severity) { toSerialize["Severity"] = o.Severity @@ -182,6 +198,13 @@ func (o *CondAlarmSpec) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -191,11 +214,23 @@ func (o *CondAlarmSpec) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type CondAlarmSpecWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_cond_alarm_summary.go b/model_cond_alarm_summary.go index f3211d534e..1e878915b7 100644 --- a/model_cond_alarm_summary.go +++ b/model_cond_alarm_summary.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -94,6 +94,11 @@ func (o *CondAlarmSummary) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "cond.AlarmSummary" of the ClassId field. +func (o *CondAlarmSummary) GetDefaultClassId() interface{} { + return "cond.AlarmSummary" +} + // GetObjectType returns the ObjectType field value func (o *CondAlarmSummary) GetObjectType() string { if o == nil { @@ -118,6 +123,11 @@ func (o *CondAlarmSummary) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "cond.AlarmSummary" of the ObjectType field. +func (o *CondAlarmSummary) GetDefaultObjectType() interface{} { + return "cond.AlarmSummary" +} + // GetCritical returns the Critical field value if set, zero value otherwise. func (o *CondAlarmSummary) GetCritical() int64 { if o == nil || IsNil(o.Critical) { @@ -360,7 +370,13 @@ func (o CondAlarmSummary) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Critical) { toSerialize["Critical"] = o.Critical @@ -400,6 +416,13 @@ func (o *CondAlarmSummary) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -409,11 +432,23 @@ func (o *CondAlarmSummary) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type CondAlarmSummaryWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_cond_alarm_suppression.go b/model_cond_alarm_suppression.go index d275e7c595..2ca14d4f85 100644 --- a/model_cond_alarm_suppression.go +++ b/model_cond_alarm_suppression.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -85,6 +85,11 @@ func (o *CondAlarmSuppression) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "cond.AlarmSuppression" of the ClassId field. +func (o *CondAlarmSuppression) GetDefaultClassId() interface{} { + return "cond.AlarmSuppression" +} + // GetObjectType returns the ObjectType field value func (o *CondAlarmSuppression) GetObjectType() string { if o == nil { @@ -109,6 +114,11 @@ func (o *CondAlarmSuppression) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "cond.AlarmSuppression" of the ObjectType field. +func (o *CondAlarmSuppression) GetDefaultObjectType() interface{} { + return "cond.AlarmSuppression" +} + // GetDescription returns the Description field value if set, zero value otherwise. func (o *CondAlarmSuppression) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -162,7 +172,7 @@ func (o *CondAlarmSuppression) GetClassificationsOk() ([]CondAlarmClassification // HasClassifications returns a boolean if a field has been set. func (o *CondAlarmSuppression) HasClassifications() bool { - if o != nil && IsNil(o.Classifications) { + if o != nil && !IsNil(o.Classifications) { return true } @@ -235,7 +245,13 @@ func (o CondAlarmSuppression) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Description) { toSerialize["Description"] = o.Description @@ -263,6 +279,13 @@ func (o *CondAlarmSuppression) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -272,11 +295,23 @@ func (o *CondAlarmSuppression) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type CondAlarmSuppressionWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_cond_alarm_suppression_list.go b/model_cond_alarm_suppression_list.go index 365fa8b680..acaef30aab 100644 --- a/model_cond_alarm_suppression_list.go +++ b/model_cond_alarm_suppression_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *CondAlarmSuppressionList) GetResultsOk() ([]CondAlarmSuppression, bool) // HasResults returns a boolean if a field has been set. func (o *CondAlarmSuppressionList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *CondAlarmSuppressionList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *CondAlarmSuppressionList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type CondAlarmSuppressionListWithoutEmbeddedStruct struct { // The total number of 'cond.AlarmSuppression' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_cond_alarm_suppression_response.go b/model_cond_alarm_suppression_response.go index 28b666774a..b7a387b51d 100644 --- a/model_cond_alarm_suppression_response.go +++ b/model_cond_alarm_suppression_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_cond_hcl_status.go b/model_cond_hcl_status.go index bbf6f457ae..9dd5c4edb7 100644 --- a/model_cond_hcl_status.go +++ b/model_cond_hcl_status.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -121,6 +121,11 @@ func (o *CondHclStatus) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "cond.HclStatus" of the ClassId field. +func (o *CondHclStatus) GetDefaultClassId() interface{} { + return "cond.HclStatus" +} + // GetObjectType returns the ObjectType field value func (o *CondHclStatus) GetObjectType() string { if o == nil { @@ -145,6 +150,11 @@ func (o *CondHclStatus) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "cond.HclStatus" of the ObjectType field. +func (o *CondHclStatus) GetDefaultObjectType() interface{} { + return "cond.HclStatus" +} + // GetComponentStatus returns the ComponentStatus field value if set, zero value otherwise. func (o *CondHclStatus) GetComponentStatus() string { if o == nil || IsNil(o.ComponentStatus) { @@ -742,7 +752,7 @@ func (o *CondHclStatus) GetDetailsOk() ([]CondHclStatusDetailRelationship, bool) // HasDetails returns a boolean if a field has been set. func (o *CondHclStatus) HasDetails() bool { - if o != nil && IsNil(o.Details) { + if o != nil && !IsNil(o.Details) { return true } @@ -858,7 +868,13 @@ func (o CondHclStatus) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.ComponentStatus) { toSerialize["ComponentStatus"] = o.ComponentStatus @@ -940,6 +956,13 @@ func (o *CondHclStatus) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -949,11 +972,23 @@ func (o *CondHclStatus) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type CondHclStatusWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_cond_hcl_status_detail.go b/model_cond_hcl_status_detail.go index 72d85100ba..a810e52838 100644 --- a/model_cond_hcl_status_detail.go +++ b/model_cond_hcl_status_detail.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -110,6 +110,11 @@ func (o *CondHclStatusDetail) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "cond.HclStatusDetail" of the ClassId field. +func (o *CondHclStatusDetail) GetDefaultClassId() interface{} { + return "cond.HclStatusDetail" +} + // GetObjectType returns the ObjectType field value func (o *CondHclStatusDetail) GetObjectType() string { if o == nil { @@ -134,6 +139,11 @@ func (o *CondHclStatusDetail) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "cond.HclStatusDetail" of the ObjectType field. +func (o *CondHclStatusDetail) GetDefaultObjectType() interface{} { + return "cond.HclStatusDetail" +} + // GetHardwareStatus returns the HardwareStatus field value if set, zero value otherwise. func (o *CondHclStatusDetail) GetHardwareStatus() string { if o == nil || IsNil(o.HardwareStatus) { @@ -686,7 +696,13 @@ func (o CondHclStatusDetail) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.HardwareStatus) { toSerialize["HardwareStatus"] = o.HardwareStatus @@ -753,6 +769,13 @@ func (o *CondHclStatusDetail) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -762,11 +785,23 @@ func (o *CondHclStatusDetail) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type CondHclStatusDetailWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_cond_hcl_status_detail_list.go b/model_cond_hcl_status_detail_list.go index 20d3454e13..87f140be9a 100644 --- a/model_cond_hcl_status_detail_list.go +++ b/model_cond_hcl_status_detail_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *CondHclStatusDetailList) GetResultsOk() ([]CondHclStatusDetail, bool) { // HasResults returns a boolean if a field has been set. func (o *CondHclStatusDetailList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *CondHclStatusDetailList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *CondHclStatusDetailList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type CondHclStatusDetailListWithoutEmbeddedStruct struct { // The total number of 'cond.HclStatusDetail' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_cond_hcl_status_detail_relationship.go b/model_cond_hcl_status_detail_relationship.go index 9f7f79b6e7..a80354c45f 100644 --- a/model_cond_hcl_status_detail_relationship.go +++ b/model_cond_hcl_status_detail_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_cond_hcl_status_detail_response.go b/model_cond_hcl_status_detail_response.go index c7f7dd8b8c..b597acf730 100644 --- a/model_cond_hcl_status_detail_response.go +++ b/model_cond_hcl_status_detail_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_cond_hcl_status_job.go b/model_cond_hcl_status_job.go index c7276eacd9..5478e8495b 100644 --- a/model_cond_hcl_status_job.go +++ b/model_cond_hcl_status_job.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -82,6 +82,11 @@ func (o *CondHclStatusJob) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "cond.HclStatusJob" of the ClassId field. +func (o *CondHclStatusJob) GetDefaultClassId() interface{} { + return "cond.HclStatusJob" +} + // GetObjectType returns the ObjectType field value func (o *CondHclStatusJob) GetObjectType() string { if o == nil { @@ -106,6 +111,11 @@ func (o *CondHclStatusJob) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "cond.HclStatusJob" of the ObjectType field. +func (o *CondHclStatusJob) GetDefaultObjectType() interface{} { + return "cond.HclStatusJob" +} + // GetManagedObject returns the ManagedObject field value if set, zero value otherwise (both if not set or set to explicit null). func (o *CondHclStatusJob) GetManagedObject() InventoryBaseRelationship { if o == nil || IsNil(o.ManagedObject.Get()) { @@ -210,7 +220,13 @@ func (o CondHclStatusJob) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.ManagedObject.IsSet() { toSerialize["ManagedObject"] = o.ManagedObject.Get() @@ -235,6 +251,13 @@ func (o *CondHclStatusJob) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -244,11 +267,23 @@ func (o *CondHclStatusJob) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type CondHclStatusJobWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_cond_hcl_status_job_list.go b/model_cond_hcl_status_job_list.go index b1e7f334cd..49f07f703f 100644 --- a/model_cond_hcl_status_job_list.go +++ b/model_cond_hcl_status_job_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *CondHclStatusJobList) GetResultsOk() ([]CondHclStatusJob, bool) { // HasResults returns a boolean if a field has been set. func (o *CondHclStatusJobList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *CondHclStatusJobList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *CondHclStatusJobList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type CondHclStatusJobListWithoutEmbeddedStruct struct { // The total number of 'cond.HclStatusJob' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_cond_hcl_status_job_response.go b/model_cond_hcl_status_job_response.go index 8dc5423e93..0108367c87 100644 --- a/model_cond_hcl_status_job_response.go +++ b/model_cond_hcl_status_job_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_cond_hcl_status_list.go b/model_cond_hcl_status_list.go index 40deaee0d5..f0f14539fc 100644 --- a/model_cond_hcl_status_list.go +++ b/model_cond_hcl_status_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *CondHclStatusList) GetResultsOk() ([]CondHclStatus, bool) { // HasResults returns a boolean if a field has been set. func (o *CondHclStatusList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *CondHclStatusList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *CondHclStatusList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type CondHclStatusListWithoutEmbeddedStruct struct { // The total number of 'cond.HclStatus' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_cond_hcl_status_relationship.go b/model_cond_hcl_status_relationship.go index d2d1e25f49..c7d547a1b6 100644 --- a/model_cond_hcl_status_relationship.go +++ b/model_cond_hcl_status_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_cond_hcl_status_response.go b/model_cond_hcl_status_response.go index b10dbcf490..4261329217 100644 --- a/model_cond_hcl_status_response.go +++ b/model_cond_hcl_status_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_connector_auth_message.go b/model_connector_auth_message.go index 3a5d53e806..9d6e2d83e4 100644 --- a/model_connector_auth_message.go +++ b/model_connector_auth_message.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -285,6 +285,10 @@ func (o *ConnectorAuthMessage) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -294,11 +298,23 @@ func (o *ConnectorAuthMessage) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type ConnectorAuthMessageWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. The enum values provides the list of concrete types that can be instantiated from this abstract type. ClassId string `json:"ClassId"` diff --git a/model_connector_base_message.go b/model_connector_base_message.go index 7a013fe4a7..b32fe6b992 100644 --- a/model_connector_base_message.go +++ b/model_connector_base_message.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -191,7 +191,7 @@ func (o *ConnectorBaseMessage) GetSecurePropertiesOk() (*interface{}, bool) { // HasSecureProperties returns a boolean if a field has been set. func (o *ConnectorBaseMessage) HasSecureProperties() bool { - if o != nil && IsNil(o.SecureProperties) { + if o != nil && !IsNil(o.SecureProperties) { return true } @@ -249,6 +249,10 @@ func (o *ConnectorBaseMessage) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -258,11 +262,23 @@ func (o *ConnectorBaseMessage) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type ConnectorBaseMessageWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. The enum values provides the list of concrete types that can be instantiated from this abstract type. ClassId string `json:"ClassId"` diff --git a/model_connector_close_stream_message.go b/model_connector_close_stream_message.go index 2511bf6eaf..0556630c77 100644 --- a/model_connector_close_stream_message.go +++ b/model_connector_close_stream_message.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -83,6 +83,10 @@ func (o *ConnectorCloseStreamMessage) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -92,11 +96,23 @@ func (o *ConnectorCloseStreamMessage) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type ConnectorCloseStreamMessageWithoutEmbeddedStruct struct { } diff --git a/model_connector_command_control_message.go b/model_connector_command_control_message.go index 676d83b563..e8c3eab55c 100644 --- a/model_connector_command_control_message.go +++ b/model_connector_command_control_message.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -90,6 +90,11 @@ func (o *ConnectorCommandControlMessage) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "connector.CommandControlMessage" of the ClassId field. +func (o *ConnectorCommandControlMessage) GetDefaultClassId() interface{} { + return "connector.CommandControlMessage" +} + // GetObjectType returns the ObjectType field value func (o *ConnectorCommandControlMessage) GetObjectType() string { if o == nil { @@ -114,6 +119,11 @@ func (o *ConnectorCommandControlMessage) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "connector.CommandControlMessage" of the ObjectType field. +func (o *ConnectorCommandControlMessage) GetDefaultObjectType() interface{} { + return "connector.CommandControlMessage" +} + // GetDir returns the Dir field value if set, zero value otherwise. func (o *ConnectorCommandControlMessage) GetDir() string { if o == nil || IsNil(o.Dir) { @@ -292,7 +302,13 @@ func (o ConnectorCommandControlMessage) ToMap() (map[string]interface{}, error) if errConnectorAuthMessage != nil { return map[string]interface{}{}, errConnectorAuthMessage } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Dir) { toSerialize["Dir"] = o.Dir @@ -326,6 +342,13 @@ func (o *ConnectorCommandControlMessage) UnmarshalJSON(data []byte) (err error) "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -335,11 +358,23 @@ func (o *ConnectorCommandControlMessage) UnmarshalJSON(data []byte) (err error) } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type ConnectorCommandControlMessageWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_connector_command_terminal_stream.go b/model_connector_command_terminal_stream.go index b023a57e70..6a9ee83529 100644 --- a/model_connector_command_terminal_stream.go +++ b/model_connector_command_terminal_stream.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -86,6 +86,11 @@ func (o *ConnectorCommandTerminalStream) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "connector.CommandTerminalStream" of the ClassId field. +func (o *ConnectorCommandTerminalStream) GetDefaultClassId() interface{} { + return "connector.CommandTerminalStream" +} + // GetObjectType returns the ObjectType field value func (o *ConnectorCommandTerminalStream) GetObjectType() string { if o == nil { @@ -110,6 +115,11 @@ func (o *ConnectorCommandTerminalStream) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "connector.CommandTerminalStream" of the ObjectType field. +func (o *ConnectorCommandTerminalStream) GetDefaultObjectType() interface{} { + return "connector.CommandTerminalStream" +} + // GetMsgType returns the MsgType field value if set, zero value otherwise. func (o *ConnectorCommandTerminalStream) GetMsgType() string { if o == nil || IsNil(o.MsgType) { @@ -224,7 +234,13 @@ func (o ConnectorCommandTerminalStream) ToMap() (map[string]interface{}, error) if errConnectorBaseMessage != nil { return map[string]interface{}{}, errConnectorBaseMessage } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.MsgType) { toSerialize["MsgType"] = o.MsgType @@ -252,6 +268,13 @@ func (o *ConnectorCommandTerminalStream) UnmarshalJSON(data []byte) (err error) "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -261,11 +284,23 @@ func (o *ConnectorCommandTerminalStream) UnmarshalJSON(data []byte) (err error) } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type ConnectorCommandTerminalStreamWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_connector_download_status.go b/model_connector_download_status.go index 69cca5d652..02b0c2a705 100644 --- a/model_connector_download_status.go +++ b/model_connector_download_status.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -332,6 +332,10 @@ func (o *ConnectorDownloadStatus) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -341,11 +345,23 @@ func (o *ConnectorDownloadStatus) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type ConnectorDownloadStatusWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. The enum values provides the list of concrete types that can be instantiated from this abstract type. ClassId string `json:"ClassId"` diff --git a/model_connector_event_log.go b/model_connector_event_log.go index 6d343ddd00..09f5d0b660 100644 --- a/model_connector_event_log.go +++ b/model_connector_event_log.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -84,6 +84,11 @@ func (o *ConnectorEventLog) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "connector.EventLog" of the ClassId field. +func (o *ConnectorEventLog) GetDefaultClassId() interface{} { + return "connector.EventLog" +} + // GetObjectType returns the ObjectType field value func (o *ConnectorEventLog) GetObjectType() string { if o == nil { @@ -108,6 +113,11 @@ func (o *ConnectorEventLog) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "connector.EventLog" of the ObjectType field. +func (o *ConnectorEventLog) GetDefaultObjectType() interface{} { + return "connector.EventLog" +} + // GetContents returns the Contents field value if set, zero value otherwise. func (o *ConnectorEventLog) GetContents() string { if o == nil || IsNil(o.Contents) { @@ -190,7 +200,13 @@ func (o ConnectorEventLog) ToMap() (map[string]interface{}, error) { if errConnectorBaseMessage != nil { return map[string]interface{}{}, errConnectorBaseMessage } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Contents) { toSerialize["Contents"] = o.Contents @@ -215,6 +231,13 @@ func (o *ConnectorEventLog) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -224,11 +247,23 @@ func (o *ConnectorEventLog) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type ConnectorEventLogWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_connector_expect_prompt.go b/model_connector_expect_prompt.go index 0a91776fd5..4fb420da41 100644 --- a/model_connector_expect_prompt.go +++ b/model_connector_expect_prompt.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -86,6 +86,11 @@ func (o *ConnectorExpectPrompt) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "connector.ExpectPrompt" of the ClassId field. +func (o *ConnectorExpectPrompt) GetDefaultClassId() interface{} { + return "connector.ExpectPrompt" +} + // GetObjectType returns the ObjectType field value func (o *ConnectorExpectPrompt) GetObjectType() string { if o == nil { @@ -110,6 +115,11 @@ func (o *ConnectorExpectPrompt) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "connector.ExpectPrompt" of the ObjectType field. +func (o *ConnectorExpectPrompt) GetDefaultObjectType() interface{} { + return "connector.ExpectPrompt" +} + // GetExpect returns the Expect field value if set, zero value otherwise. func (o *ConnectorExpectPrompt) GetExpect() string { if o == nil || IsNil(o.Expect) { @@ -224,7 +234,13 @@ func (o ConnectorExpectPrompt) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Expect) { toSerialize["Expect"] = o.Expect @@ -252,6 +268,13 @@ func (o *ConnectorExpectPrompt) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -261,11 +284,23 @@ func (o *ConnectorExpectPrompt) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type ConnectorExpectPromptWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_connector_fetch_stream_message.go b/model_connector_fetch_stream_message.go index 48284dceaa..c87d482097 100644 --- a/model_connector_fetch_stream_message.go +++ b/model_connector_fetch_stream_message.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -83,6 +83,10 @@ func (o *ConnectorFetchStreamMessage) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -92,11 +96,23 @@ func (o *ConnectorFetchStreamMessage) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type ConnectorFetchStreamMessageWithoutEmbeddedStruct struct { } diff --git a/model_connector_file_checksum.go b/model_connector_file_checksum.go index c0c3bcc534..7718d4f4c8 100644 --- a/model_connector_file_checksum.go +++ b/model_connector_file_checksum.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -88,6 +88,11 @@ func (o *ConnectorFileChecksum) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "connector.FileChecksum" of the ClassId field. +func (o *ConnectorFileChecksum) GetDefaultClassId() interface{} { + return "connector.FileChecksum" +} + // GetObjectType returns the ObjectType field value func (o *ConnectorFileChecksum) GetObjectType() string { if o == nil { @@ -112,6 +117,11 @@ func (o *ConnectorFileChecksum) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "connector.FileChecksum" of the ObjectType field. +func (o *ConnectorFileChecksum) GetDefaultObjectType() interface{} { + return "connector.FileChecksum" +} + // GetHash returns the Hash field value if set, zero value otherwise. func (o *ConnectorFileChecksum) GetHash() string { if o == nil || IsNil(o.Hash) { @@ -194,7 +204,13 @@ func (o ConnectorFileChecksum) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Hash) { toSerialize["Hash"] = o.Hash @@ -219,6 +235,13 @@ func (o *ConnectorFileChecksum) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -228,11 +251,23 @@ func (o *ConnectorFileChecksum) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type ConnectorFileChecksumWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_connector_file_message.go b/model_connector_file_message.go index 9dbcee4005..98c8b8d900 100644 --- a/model_connector_file_message.go +++ b/model_connector_file_message.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -90,6 +90,11 @@ func (o *ConnectorFileMessage) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "connector.FileMessage" of the ClassId field. +func (o *ConnectorFileMessage) GetDefaultClassId() interface{} { + return "connector.FileMessage" +} + // GetObjectType returns the ObjectType field value func (o *ConnectorFileMessage) GetObjectType() string { if o == nil { @@ -114,6 +119,11 @@ func (o *ConnectorFileMessage) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "connector.FileMessage" of the ObjectType field. +func (o *ConnectorFileMessage) GetDefaultObjectType() interface{} { + return "connector.FileMessage" +} + // GetMsgType returns the MsgType field value if set, zero value otherwise. func (o *ConnectorFileMessage) GetMsgType() string { if o == nil || IsNil(o.MsgType) { @@ -228,7 +238,13 @@ func (o ConnectorFileMessage) ToMap() (map[string]interface{}, error) { if errConnectorBaseMessage != nil { return map[string]interface{}{}, errConnectorBaseMessage } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.MsgType) { toSerialize["MsgType"] = o.MsgType @@ -256,6 +272,13 @@ func (o *ConnectorFileMessage) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -265,11 +288,23 @@ func (o *ConnectorFileMessage) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type ConnectorFileMessageWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_connector_http_request.go b/model_connector_http_request.go index a30cce3cb4..c45542921f 100644 --- a/model_connector_http_request.go +++ b/model_connector_http_request.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -97,6 +97,11 @@ func (o *ConnectorHttpRequest) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "connector.HttpRequest" of the ClassId field. +func (o *ConnectorHttpRequest) GetDefaultClassId() interface{} { + return "connector.HttpRequest" +} + // GetObjectType returns the ObjectType field value func (o *ConnectorHttpRequest) GetObjectType() string { if o == nil { @@ -121,6 +126,11 @@ func (o *ConnectorHttpRequest) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "connector.HttpRequest" of the ObjectType field. +func (o *ConnectorHttpRequest) GetDefaultObjectType() interface{} { + return "connector.HttpRequest" +} + // GetAssetTargetMoid returns the AssetTargetMoid field value if set, zero value otherwise. func (o *ConnectorHttpRequest) GetAssetTargetMoid() string { if o == nil || IsNil(o.AssetTargetMoid) { @@ -270,7 +280,7 @@ func (o *ConnectorHttpRequest) GetHeaderOk() (*interface{}, bool) { // HasHeader returns a boolean if a field has been set. func (o *ConnectorHttpRequest) HasHeader() bool { - if o != nil && IsNil(o.Header) { + if o != nil && !IsNil(o.Header) { return true } @@ -439,7 +449,13 @@ func (o ConnectorHttpRequest) ToMap() (map[string]interface{}, error) { if errConnectorBaseMessage != nil { return map[string]interface{}{}, errConnectorBaseMessage } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.AssetTargetMoid) { toSerialize["AssetTargetMoid"] = o.AssetTargetMoid @@ -485,6 +501,13 @@ func (o *ConnectorHttpRequest) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -494,11 +517,23 @@ func (o *ConnectorHttpRequest) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type ConnectorHttpRequestWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_connector_platform_param_base.go b/model_connector_platform_param_base.go index 42e7b8131e..4e358c057f 100644 --- a/model_connector_platform_param_base.go +++ b/model_connector_platform_param_base.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -83,6 +83,10 @@ func (o *ConnectorPlatformParamBase) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -92,11 +96,23 @@ func (o *ConnectorPlatformParamBase) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type ConnectorPlatformParamBaseWithoutEmbeddedStruct struct { } diff --git a/model_connector_scoped_inventory.go b/model_connector_scoped_inventory.go index 13fa709657..15b5d4d126 100644 --- a/model_connector_scoped_inventory.go +++ b/model_connector_scoped_inventory.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -160,7 +160,7 @@ func (o *ConnectorScopedInventory) GetQueriesOk() (*interface{}, bool) { // HasQueries returns a boolean if a field has been set. func (o *ConnectorScopedInventory) HasQueries() bool { - if o != nil && IsNil(o.Queries) { + if o != nil && !IsNil(o.Queries) { return true } @@ -225,7 +225,7 @@ func (o *ConnectorScopedInventory) GetValuesOk() ([]string, bool) { // HasValues returns a boolean if a field has been set. func (o *ConnectorScopedInventory) HasValues() bool { - if o != nil && IsNil(o.Values) { + if o != nil && !IsNil(o.Values) { return true } @@ -286,6 +286,10 @@ func (o *ConnectorScopedInventory) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -295,11 +299,23 @@ func (o *ConnectorScopedInventory) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type ConnectorScopedInventoryWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. The enum values provides the list of concrete types that can be instantiated from this abstract type. ClassId string `json:"ClassId"` diff --git a/model_connector_ssh_config.go b/model_connector_ssh_config.go index c4855d0c0c..44c3c6ca36 100644 --- a/model_connector_ssh_config.go +++ b/model_connector_ssh_config.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -94,6 +94,11 @@ func (o *ConnectorSshConfig) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "connector.SshConfig" of the ClassId field. +func (o *ConnectorSshConfig) GetDefaultClassId() interface{} { + return "connector.SshConfig" +} + // GetObjectType returns the ObjectType field value func (o *ConnectorSshConfig) GetObjectType() string { if o == nil { @@ -118,6 +123,11 @@ func (o *ConnectorSshConfig) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "connector.SshConfig" of the ObjectType field. +func (o *ConnectorSshConfig) GetDefaultObjectType() interface{} { + return "connector.SshConfig" +} + // GetJumpHost returns the JumpHost field value if set, zero value otherwise. func (o *ConnectorSshConfig) GetJumpHost() string { if o == nil || IsNil(o.JumpHost) { @@ -360,7 +370,13 @@ func (o ConnectorSshConfig) ToMap() (map[string]interface{}, error) { if errConnectorBaseMessage != nil { return map[string]interface{}{}, errConnectorBaseMessage } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.JumpHost) { toSerialize["JumpHost"] = o.JumpHost @@ -400,6 +416,13 @@ func (o *ConnectorSshConfig) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -409,11 +432,23 @@ func (o *ConnectorSshConfig) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type ConnectorSshConfigWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_connector_ssh_message.go b/model_connector_ssh_message.go index daa6f86aaa..97a646f232 100644 --- a/model_connector_ssh_message.go +++ b/model_connector_ssh_message.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -91,6 +91,11 @@ func (o *ConnectorSshMessage) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "connector.SshMessage" of the ClassId field. +func (o *ConnectorSshMessage) GetDefaultClassId() interface{} { + return "connector.SshMessage" +} + // GetObjectType returns the ObjectType field value func (o *ConnectorSshMessage) GetObjectType() string { if o == nil { @@ -115,6 +120,11 @@ func (o *ConnectorSshMessage) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "connector.SshMessage" of the ObjectType field. +func (o *ConnectorSshMessage) GetDefaultObjectType() interface{} { + return "connector.SshMessage" +} + // GetExpectPrompts returns the ExpectPrompts field value if set, zero value otherwise (both if not set or set to explicit null). func (o *ConnectorSshMessage) GetExpectPrompts() []ConnectorExpectPrompt { if o == nil { @@ -136,7 +146,7 @@ func (o *ConnectorSshMessage) GetExpectPromptsOk() ([]ConnectorExpectPrompt, boo // HasExpectPrompts returns a boolean if a field has been set. func (o *ConnectorSshMessage) HasExpectPrompts() bool { - if o != nil && IsNil(o.ExpectPrompts) { + if o != nil && !IsNil(o.ExpectPrompts) { return true } @@ -326,7 +336,13 @@ func (o ConnectorSshMessage) ToMap() (map[string]interface{}, error) { if errConnectorBaseMessage != nil { return map[string]interface{}{}, errConnectorBaseMessage } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.ExpectPrompts != nil { toSerialize["ExpectPrompts"] = o.ExpectPrompts @@ -363,6 +379,13 @@ func (o *ConnectorSshMessage) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -372,11 +395,23 @@ func (o *ConnectorSshMessage) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type ConnectorSshMessageWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_connector_start_stream.go b/model_connector_start_stream.go index ade7570c13..f44acb964d 100644 --- a/model_connector_start_stream.go +++ b/model_connector_start_stream.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -83,6 +83,10 @@ func (o *ConnectorStartStream) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -92,11 +96,23 @@ func (o *ConnectorStartStream) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type ConnectorStartStreamWithoutEmbeddedStruct struct { } diff --git a/model_connector_start_stream_from_device.go b/model_connector_start_stream_from_device.go index aa753370a2..71333cdd32 100644 --- a/model_connector_start_stream_from_device.go +++ b/model_connector_start_stream_from_device.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -83,6 +83,10 @@ func (o *ConnectorStartStreamFromDevice) UnmarshalJSON(data []byte) (err error) "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -92,11 +96,23 @@ func (o *ConnectorStartStreamFromDevice) UnmarshalJSON(data []byte) (err error) } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type ConnectorStartStreamFromDeviceWithoutEmbeddedStruct struct { } diff --git a/model_connector_stream_acknowledge.go b/model_connector_stream_acknowledge.go index e0ef678a87..b9c9416b77 100644 --- a/model_connector_stream_acknowledge.go +++ b/model_connector_stream_acknowledge.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -83,6 +83,10 @@ func (o *ConnectorStreamAcknowledge) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -92,11 +96,23 @@ func (o *ConnectorStreamAcknowledge) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type ConnectorStreamAcknowledgeWithoutEmbeddedStruct struct { } diff --git a/model_connector_stream_input.go b/model_connector_stream_input.go index 2e769d1693..8453deee98 100644 --- a/model_connector_stream_input.go +++ b/model_connector_stream_input.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -83,6 +83,10 @@ func (o *ConnectorStreamInput) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -92,11 +96,23 @@ func (o *ConnectorStreamInput) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type ConnectorStreamInputWithoutEmbeddedStruct struct { } diff --git a/model_connector_stream_keepalive.go b/model_connector_stream_keepalive.go index b0a676e85f..dd38f38e59 100644 --- a/model_connector_stream_keepalive.go +++ b/model_connector_stream_keepalive.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -83,6 +83,10 @@ func (o *ConnectorStreamKeepalive) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -92,11 +96,23 @@ func (o *ConnectorStreamKeepalive) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type ConnectorStreamKeepaliveWithoutEmbeddedStruct struct { } diff --git a/model_connector_stream_message.go b/model_connector_stream_message.go index 6c659def1c..babff1ead2 100644 --- a/model_connector_stream_message.go +++ b/model_connector_stream_message.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -83,6 +83,10 @@ func (o *ConnectorStreamMessage) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -92,11 +96,23 @@ func (o *ConnectorStreamMessage) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type ConnectorStreamMessageWithoutEmbeddedStruct struct { } diff --git a/model_connector_target_change_message.go b/model_connector_target_change_message.go index 6004c03ead..b2089c4fac 100644 --- a/model_connector_target_change_message.go +++ b/model_connector_target_change_message.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -93,6 +93,11 @@ func (o *ConnectorTargetChangeMessage) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "connector.TargetChangeMessage" of the ClassId field. +func (o *ConnectorTargetChangeMessage) GetDefaultClassId() interface{} { + return "connector.TargetChangeMessage" +} + // GetObjectType returns the ObjectType field value func (o *ConnectorTargetChangeMessage) GetObjectType() string { if o == nil { @@ -117,6 +122,11 @@ func (o *ConnectorTargetChangeMessage) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "connector.TargetChangeMessage" of the ObjectType field. +func (o *ConnectorTargetChangeMessage) GetDefaultObjectType() interface{} { + return "connector.TargetChangeMessage" +} + // GetModStatus returns the ModStatus field value if set, zero value otherwise. func (o *ConnectorTargetChangeMessage) GetModStatus() string { if o == nil || IsNil(o.ModStatus) { @@ -202,7 +212,7 @@ func (o *ConnectorTargetChangeMessage) GetTargetDetailsOk() (*interface{}, bool) // HasTargetDetails returns a boolean if a field has been set. func (o *ConnectorTargetChangeMessage) HasTargetDetails() bool { - if o != nil && IsNil(o.TargetDetails) { + if o != nil && !IsNil(o.TargetDetails) { return true } @@ -307,7 +317,13 @@ func (o ConnectorTargetChangeMessage) ToMap() (map[string]interface{}, error) { if errConnectorBaseMessage != nil { return map[string]interface{}{}, errConnectorBaseMessage } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.ModStatus) { toSerialize["ModStatus"] = o.ModStatus @@ -341,6 +357,13 @@ func (o *ConnectorTargetChangeMessage) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -350,11 +373,23 @@ func (o *ConnectorTargetChangeMessage) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type ConnectorTargetChangeMessageWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_connector_target_specification.go b/model_connector_target_specification.go index 114be37301..50da1ab2f3 100644 --- a/model_connector_target_specification.go +++ b/model_connector_target_specification.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -90,6 +90,11 @@ func (o *ConnectorTargetSpecification) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "connector.TargetSpecification" of the ClassId field. +func (o *ConnectorTargetSpecification) GetDefaultClassId() interface{} { + return "connector.TargetSpecification" +} + // GetObjectType returns the ObjectType field value func (o *ConnectorTargetSpecification) GetObjectType() string { if o == nil { @@ -114,6 +119,11 @@ func (o *ConnectorTargetSpecification) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "connector.TargetSpecification" of the ObjectType field. +func (o *ConnectorTargetSpecification) GetDefaultObjectType() interface{} { + return "connector.TargetSpecification" +} + // GetCpuLimit returns the CpuLimit field value if set, zero value otherwise. func (o *ConnectorTargetSpecification) GetCpuLimit() string { if o == nil || IsNil(o.CpuLimit) { @@ -292,7 +302,13 @@ func (o ConnectorTargetSpecification) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.CpuLimit) { toSerialize["CpuLimit"] = o.CpuLimit @@ -326,6 +342,13 @@ func (o *ConnectorTargetSpecification) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -335,11 +358,23 @@ func (o *ConnectorTargetSpecification) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type ConnectorTargetSpecificationWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_connector_url.go b/model_connector_url.go index 84c9fd93ad..46199880ae 100644 --- a/model_connector_url.go +++ b/model_connector_url.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -96,6 +96,11 @@ func (o *ConnectorUrl) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "connector.Url" of the ClassId field. +func (o *ConnectorUrl) GetDefaultClassId() interface{} { + return "connector.Url" +} + // GetObjectType returns the ObjectType field value func (o *ConnectorUrl) GetObjectType() string { if o == nil { @@ -120,6 +125,11 @@ func (o *ConnectorUrl) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "connector.Url" of the ObjectType field. +func (o *ConnectorUrl) GetDefaultObjectType() interface{} { + return "connector.Url" +} + // GetForceQuery returns the ForceQuery field value if set, zero value otherwise. func (o *ConnectorUrl) GetForceQuery() bool { if o == nil || IsNil(o.ForceQuery) { @@ -394,7 +404,13 @@ func (o ConnectorUrl) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.ForceQuery) { toSerialize["ForceQuery"] = o.ForceQuery @@ -437,6 +453,13 @@ func (o *ConnectorUrl) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -446,11 +469,23 @@ func (o *ConnectorUrl) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type ConnectorUrlWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_connector_winrm_request.go b/model_connector_winrm_request.go index ef3372c73a..6cc63c78c2 100644 --- a/model_connector_winrm_request.go +++ b/model_connector_winrm_request.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -96,6 +96,11 @@ func (o *ConnectorWinrmRequest) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "connector.WinrmRequest" of the ClassId field. +func (o *ConnectorWinrmRequest) GetDefaultClassId() interface{} { + return "connector.WinrmRequest" +} + // GetObjectType returns the ObjectType field value func (o *ConnectorWinrmRequest) GetObjectType() string { if o == nil { @@ -120,6 +125,11 @@ func (o *ConnectorWinrmRequest) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "connector.WinrmRequest" of the ObjectType field. +func (o *ConnectorWinrmRequest) GetDefaultObjectType() interface{} { + return "connector.WinrmRequest" +} + // GetAssetTargetMoid returns the AssetTargetMoid field value if set, zero value otherwise. func (o *ConnectorWinrmRequest) GetAssetTargetMoid() string { if o == nil || IsNil(o.AssetTargetMoid) { @@ -330,7 +340,13 @@ func (o ConnectorWinrmRequest) ToMap() (map[string]interface{}, error) { if errConnectorBaseMessage != nil { return map[string]interface{}{}, errConnectorBaseMessage } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.AssetTargetMoid) { toSerialize["AssetTargetMoid"] = o.AssetTargetMoid @@ -367,6 +383,13 @@ func (o *ConnectorWinrmRequest) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -376,11 +399,23 @@ func (o *ConnectorWinrmRequest) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type ConnectorWinrmRequestWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_connector_xml_api_message.go b/model_connector_xml_api_message.go index 2c9b3f9761..d664ae133c 100644 --- a/model_connector_xml_api_message.go +++ b/model_connector_xml_api_message.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -84,6 +84,11 @@ func (o *ConnectorXmlApiMessage) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "connector.XmlApiMessage" of the ClassId field. +func (o *ConnectorXmlApiMessage) GetDefaultClassId() interface{} { + return "connector.XmlApiMessage" +} + // GetObjectType returns the ObjectType field value func (o *ConnectorXmlApiMessage) GetObjectType() string { if o == nil { @@ -108,6 +113,11 @@ func (o *ConnectorXmlApiMessage) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "connector.XmlApiMessage" of the ObjectType field. +func (o *ConnectorXmlApiMessage) GetDefaultObjectType() interface{} { + return "connector.XmlApiMessage" +} + // GetWithAuth returns the WithAuth field value if set, zero value otherwise. func (o *ConnectorXmlApiMessage) GetWithAuth() bool { if o == nil || IsNil(o.WithAuth) { @@ -190,7 +200,13 @@ func (o ConnectorXmlApiMessage) ToMap() (map[string]interface{}, error) { if errConnectorAuthMessage != nil { return map[string]interface{}{}, errConnectorAuthMessage } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.WithAuth) { toSerialize["WithAuth"] = o.WithAuth @@ -215,6 +231,13 @@ func (o *ConnectorXmlApiMessage) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -224,11 +247,23 @@ func (o *ConnectorXmlApiMessage) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type ConnectorXmlApiMessageWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_connectorpack_connector_pack_update.go b/model_connectorpack_connector_pack_update.go index bdfed580f7..ba0b4dd0a1 100644 --- a/model_connectorpack_connector_pack_update.go +++ b/model_connectorpack_connector_pack_update.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -86,6 +86,11 @@ func (o *ConnectorpackConnectorPackUpdate) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "connectorpack.ConnectorPackUpdate" of the ClassId field. +func (o *ConnectorpackConnectorPackUpdate) GetDefaultClassId() interface{} { + return "connectorpack.ConnectorPackUpdate" +} + // GetObjectType returns the ObjectType field value func (o *ConnectorpackConnectorPackUpdate) GetObjectType() string { if o == nil { @@ -110,6 +115,11 @@ func (o *ConnectorpackConnectorPackUpdate) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "connectorpack.ConnectorPackUpdate" of the ObjectType field. +func (o *ConnectorpackConnectorPackUpdate) GetDefaultObjectType() interface{} { + return "connectorpack.ConnectorPackUpdate" +} + // GetCurrentVersion returns the CurrentVersion field value if set, zero value otherwise. func (o *ConnectorpackConnectorPackUpdate) GetCurrentVersion() string { if o == nil || IsNil(o.CurrentVersion) { @@ -224,7 +234,13 @@ func (o ConnectorpackConnectorPackUpdate) ToMap() (map[string]interface{}, error if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.CurrentVersion) { toSerialize["CurrentVersion"] = o.CurrentVersion @@ -252,6 +268,13 @@ func (o *ConnectorpackConnectorPackUpdate) UnmarshalJSON(data []byte) (err error "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -261,11 +284,23 @@ func (o *ConnectorpackConnectorPackUpdate) UnmarshalJSON(data []byte) (err error } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type ConnectorpackConnectorPackUpdateWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_connectorpack_connector_pack_upgrade.go b/model_connectorpack_connector_pack_upgrade.go index 0ca54f5411..415de22300 100644 --- a/model_connectorpack_connector_pack_upgrade.go +++ b/model_connectorpack_connector_pack_upgrade.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -88,6 +88,11 @@ func (o *ConnectorpackConnectorPackUpgrade) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "connectorpack.ConnectorPackUpgrade" of the ClassId field. +func (o *ConnectorpackConnectorPackUpgrade) GetDefaultClassId() interface{} { + return "connectorpack.ConnectorPackUpgrade" +} + // GetObjectType returns the ObjectType field value func (o *ConnectorpackConnectorPackUpgrade) GetObjectType() string { if o == nil { @@ -112,6 +117,11 @@ func (o *ConnectorpackConnectorPackUpgrade) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "connectorpack.ConnectorPackUpgrade" of the ObjectType field. +func (o *ConnectorpackConnectorPackUpgrade) GetDefaultObjectType() interface{} { + return "connectorpack.ConnectorPackUpgrade" +} + // GetConnectorPackOpType returns the ConnectorPackOpType field value if set, zero value otherwise. func (o *ConnectorpackConnectorPackUpgrade) GetConnectorPackOpType() string { if o == nil || IsNil(o.ConnectorPackOpType) { @@ -248,7 +258,13 @@ func (o ConnectorpackConnectorPackUpgrade) ToMap() (map[string]interface{}, erro if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.ConnectorPackOpType) { toSerialize["ConnectorPackOpType"] = o.ConnectorPackOpType @@ -276,6 +292,13 @@ func (o *ConnectorpackConnectorPackUpgrade) UnmarshalJSON(data []byte) (err erro "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -285,11 +308,23 @@ func (o *ConnectorpackConnectorPackUpgrade) UnmarshalJSON(data []byte) (err erro } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type ConnectorpackConnectorPackUpgradeWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_connectorpack_connector_pack_upgrade_list.go b/model_connectorpack_connector_pack_upgrade_list.go index 5179947b35..1c53aa5acb 100644 --- a/model_connectorpack_connector_pack_upgrade_list.go +++ b/model_connectorpack_connector_pack_upgrade_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *ConnectorpackConnectorPackUpgradeList) GetResultsOk() ([]ConnectorpackC // HasResults returns a boolean if a field has been set. func (o *ConnectorpackConnectorPackUpgradeList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *ConnectorpackConnectorPackUpgradeList) UnmarshalJSON(data []byte) (err "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *ConnectorpackConnectorPackUpgradeList) UnmarshalJSON(data []byte) (err } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type ConnectorpackConnectorPackUpgradeListWithoutEmbeddedStruct struct { // The total number of 'connectorpack.ConnectorPackUpgrade' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_connectorpack_connector_pack_upgrade_response.go b/model_connectorpack_connector_pack_upgrade_response.go index 3a5ea94f7c..6d489c1a3a 100644 --- a/model_connectorpack_connector_pack_upgrade_response.go +++ b/model_connectorpack_connector_pack_upgrade_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_connectorpack_upgrade_impact.go b/model_connectorpack_upgrade_impact.go index 6c2f6ed733..c9abb69065 100644 --- a/model_connectorpack_upgrade_impact.go +++ b/model_connectorpack_upgrade_impact.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -86,6 +86,11 @@ func (o *ConnectorpackUpgradeImpact) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "connectorpack.UpgradeImpact" of the ClassId field. +func (o *ConnectorpackUpgradeImpact) GetDefaultClassId() interface{} { + return "connectorpack.UpgradeImpact" +} + // GetObjectType returns the ObjectType field value func (o *ConnectorpackUpgradeImpact) GetObjectType() string { if o == nil { @@ -110,6 +115,11 @@ func (o *ConnectorpackUpgradeImpact) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "connectorpack.UpgradeImpact" of the ObjectType field. +func (o *ConnectorpackUpgradeImpact) GetDefaultObjectType() interface{} { + return "connectorpack.UpgradeImpact" +} + // GetConnectorPack returns the ConnectorPack field value if set, zero value otherwise (both if not set or set to explicit null). func (o *ConnectorpackUpgradeImpact) GetConnectorPack() []ConnectorpackConnectorPackUpdate { if o == nil { @@ -131,7 +141,7 @@ func (o *ConnectorpackUpgradeImpact) GetConnectorPackOk() ([]ConnectorpackConnec // HasConnectorPack returns a boolean if a field has been set. func (o *ConnectorpackUpgradeImpact) HasConnectorPack() bool { - if o != nil && IsNil(o.ConnectorPack) { + if o != nil && !IsNil(o.ConnectorPack) { return true } @@ -268,7 +278,13 @@ func (o ConnectorpackUpgradeImpact) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.ConnectorPack != nil { toSerialize["ConnectorPack"] = o.ConnectorPack @@ -299,6 +315,13 @@ func (o *ConnectorpackUpgradeImpact) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -308,11 +331,23 @@ func (o *ConnectorpackUpgradeImpact) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type ConnectorpackUpgradeImpactWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_connectorpack_upgrade_impact_list.go b/model_connectorpack_upgrade_impact_list.go index 8307086235..47a321beee 100644 --- a/model_connectorpack_upgrade_impact_list.go +++ b/model_connectorpack_upgrade_impact_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *ConnectorpackUpgradeImpactList) GetResultsOk() ([]ConnectorpackUpgradeI // HasResults returns a boolean if a field has been set. func (o *ConnectorpackUpgradeImpactList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *ConnectorpackUpgradeImpactList) UnmarshalJSON(data []byte) (err error) "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *ConnectorpackUpgradeImpactList) UnmarshalJSON(data []byte) (err error) } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type ConnectorpackUpgradeImpactListWithoutEmbeddedStruct struct { // The total number of 'connectorpack.UpgradeImpact' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_connectorpack_upgrade_impact_response.go b/model_connectorpack_upgrade_impact_response.go index 11e74b3a74..cd099d3c00 100644 --- a/model_connectorpack_upgrade_impact_response.go +++ b/model_connectorpack_upgrade_impact_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_console_console_config.go b/model_console_console_config.go index 4baca841a2..57e7e56236 100644 --- a/model_console_console_config.go +++ b/model_console_console_config.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -94,6 +94,11 @@ func (o *ConsoleConsoleConfig) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "console.ConsoleConfig" of the ClassId field. +func (o *ConsoleConsoleConfig) GetDefaultClassId() interface{} { + return "console.ConsoleConfig" +} + // GetObjectType returns the ObjectType field value func (o *ConsoleConsoleConfig) GetObjectType() string { if o == nil { @@ -118,6 +123,11 @@ func (o *ConsoleConsoleConfig) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "console.ConsoleConfig" of the ObjectType field. +func (o *ConsoleConsoleConfig) GetDefaultObjectType() interface{} { + return "console.ConsoleConfig" +} + // GetDataBits returns the DataBits field value if set, zero value otherwise. func (o *ConsoleConsoleConfig) GetDataBits() int64 { if o == nil || IsNil(o.DataBits) { @@ -350,7 +360,13 @@ func (o ConsoleConsoleConfig) ToMap() (map[string]interface{}, error) { if errInventoryBase != nil { return map[string]interface{}{}, errInventoryBase } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.DataBits) { toSerialize["DataBits"] = o.DataBits @@ -387,6 +403,13 @@ func (o *ConsoleConsoleConfig) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -396,11 +419,23 @@ func (o *ConsoleConsoleConfig) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type ConsoleConsoleConfigWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_console_console_config_list.go b/model_console_console_config_list.go index 69bd94bbdf..a358e389a2 100644 --- a/model_console_console_config_list.go +++ b/model_console_console_config_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *ConsoleConsoleConfigList) GetResultsOk() ([]ConsoleConsoleConfig, bool) // HasResults returns a boolean if a field has been set. func (o *ConsoleConsoleConfigList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *ConsoleConsoleConfigList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *ConsoleConsoleConfigList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type ConsoleConsoleConfigListWithoutEmbeddedStruct struct { // The total number of 'console.ConsoleConfig' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_console_console_config_relationship.go b/model_console_console_config_relationship.go index 186d14765a..6e74e630e2 100644 --- a/model_console_console_config_relationship.go +++ b/model_console_console_config_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_console_console_config_response.go b/model_console_console_config_response.go index 342cb5b048..e24e4fda17 100644 --- a/model_console_console_config_response.go +++ b/model_console_console_config_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_content_base_parameter.go b/model_content_base_parameter.go index 2497d325b3..5c18eacf3d 100644 --- a/model_content_base_parameter.go +++ b/model_content_base_parameter.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -35,7 +35,7 @@ type ContentBaseParameter struct { // The type of the collection item in case this is a collection parameter. * `simple` - The parameter value to be extracted is of the type simple. All the common scalar typessuch as int, bool, string, etc are represented by the simple enum. * `string` - The parameter value to be extracted is of the string type. * `integer` - The parameter value to be extracted is of the number type. * `float` - The parameter value to be extracted is of the float number type. * `boolean` - The parameter value to be extracted is of the boolean type. * `json` - The parameter values to be extracted is of the generic JSON literal. JSON type is applicable only if the content to be parsed is of JSON type. * `complex` - The parameter value to be extracted is a complex parameter that itself isanother collection of simple/complex parameters. * `collection` - The parameter value to be extracted is a collection parameter whose item typeshall be either simple type or complex type. ItemType *string `json:"ItemType,omitempty"` // The name of the parameter. - Name *string `json:"Name,omitempty"` + Name *string `json:"Name,omitempty" validate:"regexp=^[a-zA-Z0-9_.:-]{1,64}$"` // The content specific path information that identifies the parameter value within the content. The value is usually a XPath or JSONPath or a regular expression in case of text content. Path *string `json:"Path,omitempty"` // The flag indicates if the extracted value is secure. This flag is applicable for parameters of type String only. @@ -404,6 +404,10 @@ func (o *ContentBaseParameter) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -413,11 +417,23 @@ func (o *ContentBaseParameter) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type ContentBaseParameterWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. The enum values provides the list of concrete types that can be instantiated from this abstract type. ClassId string `json:"ClassId"` @@ -430,7 +446,7 @@ func (o *ContentBaseParameter) UnmarshalJSON(data []byte) (err error) { // The type of the collection item in case this is a collection parameter. * `simple` - The parameter value to be extracted is of the type simple. All the common scalar typessuch as int, bool, string, etc are represented by the simple enum. * `string` - The parameter value to be extracted is of the string type. * `integer` - The parameter value to be extracted is of the number type. * `float` - The parameter value to be extracted is of the float number type. * `boolean` - The parameter value to be extracted is of the boolean type. * `json` - The parameter values to be extracted is of the generic JSON literal. JSON type is applicable only if the content to be parsed is of JSON type. * `complex` - The parameter value to be extracted is a complex parameter that itself isanother collection of simple/complex parameters. * `collection` - The parameter value to be extracted is a collection parameter whose item typeshall be either simple type or complex type. ItemType *string `json:"ItemType,omitempty"` // The name of the parameter. - Name *string `json:"Name,omitempty"` + Name *string `json:"Name,omitempty" validate:"regexp=^[a-zA-Z0-9_.:-]{1,64}$"` // The content specific path information that identifies the parameter value within the content. The value is usually a XPath or JSONPath or a regular expression in case of text content. Path *string `json:"Path,omitempty"` // The flag indicates if the extracted value is secure. This flag is applicable for parameters of type String only. diff --git a/model_content_complex_type.go b/model_content_complex_type.go index 7d7c0f6633..c2e551e699 100644 --- a/model_content_complex_type.go +++ b/model_content_complex_type.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -83,6 +83,11 @@ func (o *ContentComplexType) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "content.ComplexType" of the ClassId field. +func (o *ContentComplexType) GetDefaultClassId() interface{} { + return "content.ComplexType" +} + // GetObjectType returns the ObjectType field value func (o *ContentComplexType) GetObjectType() string { if o == nil { @@ -107,6 +112,11 @@ func (o *ContentComplexType) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "content.ComplexType" of the ObjectType field. +func (o *ContentComplexType) GetDefaultObjectType() interface{} { + return "content.ComplexType" +} + // GetName returns the Name field value if set, zero value otherwise. func (o *ContentComplexType) GetName() string { if o == nil || IsNil(o.Name) { @@ -160,7 +170,7 @@ func (o *ContentComplexType) GetParametersOk() ([]ContentBaseParameter, bool) { // HasParameters returns a boolean if a field has been set. func (o *ContentComplexType) HasParameters() bool { - if o != nil && IsNil(o.Parameters) { + if o != nil && !IsNil(o.Parameters) { return true } @@ -190,7 +200,13 @@ func (o ContentComplexType) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Name) { toSerialize["Name"] = o.Name @@ -215,6 +231,13 @@ func (o *ContentComplexType) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -224,11 +247,23 @@ func (o *ContentComplexType) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type ContentComplexTypeWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_content_parameter.go b/model_content_parameter.go index 6f2b04f5d0..e5bc2167be 100644 --- a/model_content_parameter.go +++ b/model_content_parameter.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -87,6 +87,10 @@ func (o *ContentParameter) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -96,11 +100,23 @@ func (o *ContentParameter) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type ContentParameterWithoutEmbeddedStruct struct { } diff --git a/model_content_text_parameter.go b/model_content_text_parameter.go index 5c207ae519..8b7fb254fc 100644 --- a/model_content_text_parameter.go +++ b/model_content_text_parameter.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -98,6 +98,11 @@ func (o *ContentTextParameter) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "content.TextParameter" of the ClassId field. +func (o *ContentTextParameter) GetDefaultClassId() interface{} { + return "content.TextParameter" +} + // GetObjectType returns the ObjectType field value func (o *ContentTextParameter) GetObjectType() string { if o == nil { @@ -122,6 +127,11 @@ func (o *ContentTextParameter) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "content.TextParameter" of the ObjectType field. +func (o *ContentTextParameter) GetDefaultObjectType() interface{} { + return "content.TextParameter" +} + // GetIsDelimiter returns the IsDelimiter field value if set, zero value otherwise. func (o *ContentTextParameter) GetIsDelimiter() bool { if o == nil || IsNil(o.IsDelimiter) { @@ -236,7 +246,13 @@ func (o ContentTextParameter) ToMap() (map[string]interface{}, error) { if errContentBaseParameter != nil { return map[string]interface{}{}, errContentBaseParameter } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.IsDelimiter) { toSerialize["IsDelimiter"] = o.IsDelimiter @@ -264,6 +280,13 @@ func (o *ContentTextParameter) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -273,11 +296,23 @@ func (o *ContentTextParameter) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type ContentTextParameterWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_convergedinfra_adapter_compliance_details.go b/model_convergedinfra_adapter_compliance_details.go index ef17d1d78d..e0187afaeb 100644 --- a/model_convergedinfra_adapter_compliance_details.go +++ b/model_convergedinfra_adapter_compliance_details.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -96,6 +96,11 @@ func (o *ConvergedinfraAdapterComplianceDetails) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "convergedinfra.AdapterComplianceDetails" of the ClassId field. +func (o *ConvergedinfraAdapterComplianceDetails) GetDefaultClassId() interface{} { + return "convergedinfra.AdapterComplianceDetails" +} + // GetObjectType returns the ObjectType field value func (o *ConvergedinfraAdapterComplianceDetails) GetObjectType() string { if o == nil { @@ -120,6 +125,11 @@ func (o *ConvergedinfraAdapterComplianceDetails) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "convergedinfra.AdapterComplianceDetails" of the ObjectType field. +func (o *ConvergedinfraAdapterComplianceDetails) GetDefaultObjectType() interface{} { + return "convergedinfra.AdapterComplianceDetails" +} + // GetDriverName returns the DriverName field value if set, zero value otherwise. func (o *ConvergedinfraAdapterComplianceDetails) GetDriverName() string { if o == nil || IsNil(o.DriverName) { @@ -419,7 +429,7 @@ func (o *ConvergedinfraAdapterComplianceDetails) GetStorageCompliancesOk() ([]Co // HasStorageCompliances returns a boolean if a field has been set. func (o *ConvergedinfraAdapterComplianceDetails) HasStorageCompliances() bool { - if o != nil && IsNil(o.StorageCompliances) { + if o != nil && !IsNil(o.StorageCompliances) { return true } @@ -449,7 +459,13 @@ func (o ConvergedinfraAdapterComplianceDetails) ToMap() (map[string]interface{}, if errConvergedinfraBaseComplianceDetails != nil { return map[string]interface{}{}, errConvergedinfraBaseComplianceDetails } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.DriverName) { toSerialize["DriverName"] = o.DriverName @@ -495,6 +511,13 @@ func (o *ConvergedinfraAdapterComplianceDetails) UnmarshalJSON(data []byte) (err "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -504,11 +527,23 @@ func (o *ConvergedinfraAdapterComplianceDetails) UnmarshalJSON(data []byte) (err } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type ConvergedinfraAdapterComplianceDetailsWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_convergedinfra_adapter_compliance_details_list.go b/model_convergedinfra_adapter_compliance_details_list.go index 26c741cecb..bc4e211207 100644 --- a/model_convergedinfra_adapter_compliance_details_list.go +++ b/model_convergedinfra_adapter_compliance_details_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *ConvergedinfraAdapterComplianceDetailsList) GetResultsOk() ([]Converged // HasResults returns a boolean if a field has been set. func (o *ConvergedinfraAdapterComplianceDetailsList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *ConvergedinfraAdapterComplianceDetailsList) UnmarshalJSON(data []byte) "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *ConvergedinfraAdapterComplianceDetailsList) UnmarshalJSON(data []byte) } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type ConvergedinfraAdapterComplianceDetailsListWithoutEmbeddedStruct struct { // The total number of 'convergedinfra.AdapterComplianceDetails' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_convergedinfra_adapter_compliance_details_relationship.go b/model_convergedinfra_adapter_compliance_details_relationship.go index 44da5afd81..cfcb7501b4 100644 --- a/model_convergedinfra_adapter_compliance_details_relationship.go +++ b/model_convergedinfra_adapter_compliance_details_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_convergedinfra_adapter_compliance_details_response.go b/model_convergedinfra_adapter_compliance_details_response.go index a0741edffb..9de822c421 100644 --- a/model_convergedinfra_adapter_compliance_details_response.go +++ b/model_convergedinfra_adapter_compliance_details_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_convergedinfra_alarm_summary.go b/model_convergedinfra_alarm_summary.go index 52676e9bda..511182caa8 100644 --- a/model_convergedinfra_alarm_summary.go +++ b/model_convergedinfra_alarm_summary.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -84,6 +84,11 @@ func (o *ConvergedinfraAlarmSummary) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "convergedinfra.AlarmSummary" of the ClassId field. +func (o *ConvergedinfraAlarmSummary) GetDefaultClassId() interface{} { + return "convergedinfra.AlarmSummary" +} + // GetObjectType returns the ObjectType field value func (o *ConvergedinfraAlarmSummary) GetObjectType() string { if o == nil { @@ -108,6 +113,11 @@ func (o *ConvergedinfraAlarmSummary) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "convergedinfra.AlarmSummary" of the ObjectType field. +func (o *ConvergedinfraAlarmSummary) GetDefaultObjectType() interface{} { + return "convergedinfra.AlarmSummary" +} + // GetCritical returns the Critical field value if set, zero value otherwise. func (o *ConvergedinfraAlarmSummary) GetCritical() int64 { if o == nil || IsNil(o.Critical) { @@ -190,7 +200,13 @@ func (o ConvergedinfraAlarmSummary) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Critical) { toSerialize["Critical"] = o.Critical @@ -215,6 +231,13 @@ func (o *ConvergedinfraAlarmSummary) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -224,11 +247,23 @@ func (o *ConvergedinfraAlarmSummary) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type ConvergedinfraAlarmSummaryWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_convergedinfra_base_compliance_details.go b/model_convergedinfra_base_compliance_details.go index a3720968d1..2ca6a2fcd7 100644 --- a/model_convergedinfra_base_compliance_details.go +++ b/model_convergedinfra_base_compliance_details.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -248,6 +248,10 @@ func (o *ConvergedinfraBaseComplianceDetails) UnmarshalJSON(data []byte) (err er "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -257,11 +261,23 @@ func (o *ConvergedinfraBaseComplianceDetails) UnmarshalJSON(data []byte) (err er } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type ConvergedinfraBaseComplianceDetailsWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. The enum values provides the list of concrete types that can be instantiated from this abstract type. ClassId string `json:"ClassId"` diff --git a/model_convergedinfra_base_compliance_details_relationship.go b/model_convergedinfra_base_compliance_details_relationship.go index a4b41db1d3..2d02f62d2e 100644 --- a/model_convergedinfra_base_compliance_details_relationship.go +++ b/model_convergedinfra_base_compliance_details_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_convergedinfra_base_pod.go b/model_convergedinfra_base_pod.go index 4a835b80c4..37b8c5a1e6 100644 --- a/model_convergedinfra_base_pod.go +++ b/model_convergedinfra_base_pod.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -29,9 +29,9 @@ type ConvergedinfraBasePod struct { // The fully-qualified name of the instantiated, concrete type. The value should be the same as the 'ClassId' property. The enum values provides the list of concrete types that can be instantiated from this abstract type. ObjectType string `json:"ObjectType"` // Description of the pod. A short note about the nature or purpose of the pod. - Description *string `json:"Description,omitempty"` + Description *string `json:"Description,omitempty" validate:"regexp=^$|^[a-zA-Z0-9]+[\\\\x00-\\\\xFF]*$"` // Name of the pod. Concrete pod will be created with this name. - Name *string `json:"Name,omitempty"` + Name *string `json:"Name,omitempty" validate:"regexp=^[a-zA-Z0-9_.-]{1,64}$"` // Defines the type of the pod. * `FlexPod` - Pod type is FlexPod, an integrated infrastructure solution developed by Cisco and NetApp. * `FlashStack` - Pod type is FlashStack, an integrated infrastructure solution developed by Cisco and Pure Storage. Type *string `json:"Type,omitempty"` AdditionalProperties map[string]interface{} @@ -90,6 +90,11 @@ func (o *ConvergedinfraBasePod) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "convergedinfra.Pod" of the ClassId field. +func (o *ConvergedinfraBasePod) GetDefaultClassId() interface{} { + return "convergedinfra.Pod" +} + // GetObjectType returns the ObjectType field value func (o *ConvergedinfraBasePod) GetObjectType() string { if o == nil { @@ -114,6 +119,11 @@ func (o *ConvergedinfraBasePod) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "convergedinfra.Pod" of the ObjectType field. +func (o *ConvergedinfraBasePod) GetDefaultObjectType() interface{} { + return "convergedinfra.Pod" +} + // GetDescription returns the Description field value if set, zero value otherwise. func (o *ConvergedinfraBasePod) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -228,7 +238,13 @@ func (o ConvergedinfraBasePod) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Description) { toSerialize["Description"] = o.Description @@ -256,6 +272,13 @@ func (o *ConvergedinfraBasePod) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -265,20 +288,32 @@ func (o *ConvergedinfraBasePod) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type ConvergedinfraBasePodWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. The enum values provides the list of concrete types that can be instantiated from this abstract type. ClassId string `json:"ClassId"` // The fully-qualified name of the instantiated, concrete type. The value should be the same as the 'ClassId' property. The enum values provides the list of concrete types that can be instantiated from this abstract type. ObjectType string `json:"ObjectType"` // Description of the pod. A short note about the nature or purpose of the pod. - Description *string `json:"Description,omitempty"` + Description *string `json:"Description,omitempty" validate:"regexp=^$|^[a-zA-Z0-9]+[\\\\x00-\\\\xFF]*$"` // Name of the pod. Concrete pod will be created with this name. - Name *string `json:"Name,omitempty"` + Name *string `json:"Name,omitempty" validate:"regexp=^[a-zA-Z0-9_.-]{1,64}$"` // Defines the type of the pod. * `FlexPod` - Pod type is FlexPod, an integrated infrastructure solution developed by Cisco and NetApp. * `FlashStack` - Pod type is FlashStack, an integrated infrastructure solution developed by Cisco and Pure Storage. Type *string `json:"Type,omitempty"` } diff --git a/model_convergedinfra_base_pod_summary.go b/model_convergedinfra_base_pod_summary.go index 66f8352eae..72de2f0f4f 100644 --- a/model_convergedinfra_base_pod_summary.go +++ b/model_convergedinfra_base_pod_summary.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -90,6 +90,11 @@ func (o *ConvergedinfraBasePodSummary) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "convergedinfra.PodSummary" of the ClassId field. +func (o *ConvergedinfraBasePodSummary) GetDefaultClassId() interface{} { + return "convergedinfra.PodSummary" +} + // GetObjectType returns the ObjectType field value func (o *ConvergedinfraBasePodSummary) GetObjectType() string { if o == nil { @@ -114,6 +119,11 @@ func (o *ConvergedinfraBasePodSummary) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "convergedinfra.PodSummary" of the ObjectType field. +func (o *ConvergedinfraBasePodSummary) GetDefaultObjectType() interface{} { + return "convergedinfra.PodSummary" +} + // GetAlarmSummary returns the AlarmSummary field value if set, zero value otherwise (both if not set or set to explicit null). func (o *ConvergedinfraBasePodSummary) GetAlarmSummary() ConvergedinfraAlarmSummary { if o == nil || IsNil(o.AlarmSummary.Get()) { @@ -346,7 +356,13 @@ func (o ConvergedinfraBasePodSummary) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.AlarmSummary.IsSet() { toSerialize["AlarmSummary"] = o.AlarmSummary.Get() @@ -383,6 +399,13 @@ func (o *ConvergedinfraBasePodSummary) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -392,11 +415,23 @@ func (o *ConvergedinfraBasePodSummary) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type ConvergedinfraBasePodSummaryWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. The enum values provides the list of concrete types that can be instantiated from this abstract type. ClassId string `json:"ClassId"` diff --git a/model_convergedinfra_compliance_summary.go b/model_convergedinfra_compliance_summary.go index c2426787a1..e3f3b29338 100644 --- a/model_convergedinfra_compliance_summary.go +++ b/model_convergedinfra_compliance_summary.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -88,6 +88,11 @@ func (o *ConvergedinfraComplianceSummary) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "convergedinfra.ComplianceSummary" of the ClassId field. +func (o *ConvergedinfraComplianceSummary) GetDefaultClassId() interface{} { + return "convergedinfra.ComplianceSummary" +} + // GetObjectType returns the ObjectType field value func (o *ConvergedinfraComplianceSummary) GetObjectType() string { if o == nil { @@ -112,6 +117,11 @@ func (o *ConvergedinfraComplianceSummary) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "convergedinfra.ComplianceSummary" of the ObjectType field. +func (o *ConvergedinfraComplianceSummary) GetDefaultObjectType() interface{} { + return "convergedinfra.ComplianceSummary" +} + // GetIncomplete returns the Incomplete field value if set, zero value otherwise. func (o *ConvergedinfraComplianceSummary) GetIncomplete() int64 { if o == nil || IsNil(o.Incomplete) { @@ -258,7 +268,13 @@ func (o ConvergedinfraComplianceSummary) ToMap() (map[string]interface{}, error) if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Incomplete) { toSerialize["Incomplete"] = o.Incomplete @@ -289,6 +305,13 @@ func (o *ConvergedinfraComplianceSummary) UnmarshalJSON(data []byte) (err error) "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -298,11 +321,23 @@ func (o *ConvergedinfraComplianceSummary) UnmarshalJSON(data []byte) (err error) } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type ConvergedinfraComplianceSummaryWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_convergedinfra_pod.go b/model_convergedinfra_pod.go index 8b3cc74ac9..2cfac7b237 100644 --- a/model_convergedinfra_pod.go +++ b/model_convergedinfra_pod.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -91,6 +91,11 @@ func (o *ConvergedinfraPod) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "convergedinfra.Pod" of the ClassId field. +func (o *ConvergedinfraPod) GetDefaultClassId() interface{} { + return "convergedinfra.Pod" +} + // GetObjectType returns the ObjectType field value func (o *ConvergedinfraPod) GetObjectType() string { if o == nil { @@ -115,6 +120,11 @@ func (o *ConvergedinfraPod) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "convergedinfra.Pod" of the ObjectType field. +func (o *ConvergedinfraPod) GetDefaultObjectType() interface{} { + return "convergedinfra.Pod" +} + // GetDeploymentType returns the DeploymentType field value if set, zero value otherwise. func (o *ConvergedinfraPod) GetDeploymentType() string { if o == nil || IsNil(o.DeploymentType) { @@ -401,7 +411,13 @@ func (o ConvergedinfraPod) ToMap() (map[string]interface{}, error) { if errConvergedinfraBasePod != nil { return map[string]interface{}{}, errConvergedinfraBasePod } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.DeploymentType) { toSerialize["DeploymentType"] = o.DeploymentType @@ -441,6 +457,13 @@ func (o *ConvergedinfraPod) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -450,11 +473,23 @@ func (o *ConvergedinfraPod) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type ConvergedinfraPodWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_convergedinfra_pod_compliance_info.go b/model_convergedinfra_pod_compliance_info.go index 355efc077e..22c1ae16db 100644 --- a/model_convergedinfra_pod_compliance_info.go +++ b/model_convergedinfra_pod_compliance_info.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -83,6 +83,11 @@ func (o *ConvergedinfraPodComplianceInfo) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "convergedinfra.PodComplianceInfo" of the ClassId field. +func (o *ConvergedinfraPodComplianceInfo) GetDefaultClassId() interface{} { + return "convergedinfra.PodComplianceInfo" +} + // GetObjectType returns the ObjectType field value func (o *ConvergedinfraPodComplianceInfo) GetObjectType() string { if o == nil { @@ -107,6 +112,11 @@ func (o *ConvergedinfraPodComplianceInfo) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "convergedinfra.PodComplianceInfo" of the ObjectType field. +func (o *ConvergedinfraPodComplianceInfo) GetDefaultObjectType() interface{} { + return "convergedinfra.PodComplianceInfo" +} + // GetDetails returns the Details field value if set, zero value otherwise (both if not set or set to explicit null). func (o *ConvergedinfraPodComplianceInfo) GetDetails() []ConvergedinfraBaseComplianceDetailsRelationship { if o == nil { @@ -128,7 +138,7 @@ func (o *ConvergedinfraPodComplianceInfo) GetDetailsOk() ([]ConvergedinfraBaseCo // HasDetails returns a boolean if a field has been set. func (o *ConvergedinfraPodComplianceInfo) HasDetails() bool { - if o != nil && IsNil(o.Details) { + if o != nil && !IsNil(o.Details) { return true } @@ -201,7 +211,13 @@ func (o ConvergedinfraPodComplianceInfo) ToMap() (map[string]interface{}, error) if errConvergedinfraBaseComplianceDetails != nil { return map[string]interface{}{}, errConvergedinfraBaseComplianceDetails } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.Details != nil { toSerialize["Details"] = o.Details @@ -226,6 +242,13 @@ func (o *ConvergedinfraPodComplianceInfo) UnmarshalJSON(data []byte) (err error) "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -235,11 +258,23 @@ func (o *ConvergedinfraPodComplianceInfo) UnmarshalJSON(data []byte) (err error) } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type ConvergedinfraPodComplianceInfoWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_convergedinfra_pod_compliance_info_list.go b/model_convergedinfra_pod_compliance_info_list.go index a9d3316e0b..cf7e50801d 100644 --- a/model_convergedinfra_pod_compliance_info_list.go +++ b/model_convergedinfra_pod_compliance_info_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *ConvergedinfraPodComplianceInfoList) GetResultsOk() ([]ConvergedinfraPo // HasResults returns a boolean if a field has been set. func (o *ConvergedinfraPodComplianceInfoList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *ConvergedinfraPodComplianceInfoList) UnmarshalJSON(data []byte) (err er "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *ConvergedinfraPodComplianceInfoList) UnmarshalJSON(data []byte) (err er } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type ConvergedinfraPodComplianceInfoListWithoutEmbeddedStruct struct { // The total number of 'convergedinfra.PodComplianceInfo' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_convergedinfra_pod_compliance_info_relationship.go b/model_convergedinfra_pod_compliance_info_relationship.go index dcaa36498d..7f514b70cb 100644 --- a/model_convergedinfra_pod_compliance_info_relationship.go +++ b/model_convergedinfra_pod_compliance_info_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_convergedinfra_pod_compliance_info_response.go b/model_convergedinfra_pod_compliance_info_response.go index dfbca17f2c..23671fa872 100644 --- a/model_convergedinfra_pod_compliance_info_response.go +++ b/model_convergedinfra_pod_compliance_info_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_convergedinfra_pod_list.go b/model_convergedinfra_pod_list.go index 3d57e360bd..2210154546 100644 --- a/model_convergedinfra_pod_list.go +++ b/model_convergedinfra_pod_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *ConvergedinfraPodList) GetResultsOk() ([]ConvergedinfraPod, bool) { // HasResults returns a boolean if a field has been set. func (o *ConvergedinfraPodList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *ConvergedinfraPodList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *ConvergedinfraPodList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type ConvergedinfraPodListWithoutEmbeddedStruct struct { // The total number of 'convergedinfra.Pod' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_convergedinfra_pod_relationship.go b/model_convergedinfra_pod_relationship.go index 2623153363..ce7a027e05 100644 --- a/model_convergedinfra_pod_relationship.go +++ b/model_convergedinfra_pod_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_convergedinfra_pod_response.go b/model_convergedinfra_pod_response.go index 972b559315..6f04654613 100644 --- a/model_convergedinfra_pod_response.go +++ b/model_convergedinfra_pod_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_convergedinfra_pod_summary.go b/model_convergedinfra_pod_summary.go index 20ae6ff2e8..5be04da497 100644 --- a/model_convergedinfra_pod_summary.go +++ b/model_convergedinfra_pod_summary.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -84,6 +84,11 @@ func (o *ConvergedinfraPodSummary) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "convergedinfra.PodSummary" of the ClassId field. +func (o *ConvergedinfraPodSummary) GetDefaultClassId() interface{} { + return "convergedinfra.PodSummary" +} + // GetObjectType returns the ObjectType field value func (o *ConvergedinfraPodSummary) GetObjectType() string { if o == nil { @@ -108,6 +113,11 @@ func (o *ConvergedinfraPodSummary) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "convergedinfra.PodSummary" of the ObjectType field. +func (o *ConvergedinfraPodSummary) GetDefaultObjectType() interface{} { + return "convergedinfra.PodSummary" +} + // GetActiveNodes returns the ActiveNodes field value if set, zero value otherwise. func (o *ConvergedinfraPodSummary) GetActiveNodes() int64 { if o == nil || IsNil(o.ActiveNodes) { @@ -190,7 +200,13 @@ func (o ConvergedinfraPodSummary) ToMap() (map[string]interface{}, error) { if errConvergedinfraBasePodSummary != nil { return map[string]interface{}{}, errConvergedinfraBasePodSummary } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.ActiveNodes) { toSerialize["ActiveNodes"] = o.ActiveNodes @@ -215,6 +231,13 @@ func (o *ConvergedinfraPodSummary) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -224,11 +247,23 @@ func (o *ConvergedinfraPodSummary) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type ConvergedinfraPodSummaryWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_convergedinfra_server_compliance_details.go b/model_convergedinfra_server_compliance_details.go index 3dc7e801fa..5150a9b9ac 100644 --- a/model_convergedinfra_server_compliance_details.go +++ b/model_convergedinfra_server_compliance_details.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -98,6 +98,11 @@ func (o *ConvergedinfraServerComplianceDetails) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "convergedinfra.ServerComplianceDetails" of the ClassId field. +func (o *ConvergedinfraServerComplianceDetails) GetDefaultClassId() interface{} { + return "convergedinfra.ServerComplianceDetails" +} + // GetObjectType returns the ObjectType field value func (o *ConvergedinfraServerComplianceDetails) GetObjectType() string { if o == nil { @@ -122,6 +127,11 @@ func (o *ConvergedinfraServerComplianceDetails) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "convergedinfra.ServerComplianceDetails" of the ObjectType field. +func (o *ConvergedinfraServerComplianceDetails) GetDefaultObjectType() interface{} { + return "convergedinfra.ServerComplianceDetails" +} + // GetAdapterCount returns the AdapterCount field value if set, zero value otherwise. func (o *ConvergedinfraServerComplianceDetails) GetAdapterCount() int64 { if o == nil || IsNil(o.AdapterCount) { @@ -482,7 +492,13 @@ func (o ConvergedinfraServerComplianceDetails) ToMap() (map[string]interface{}, if errConvergedinfraBaseComplianceDetails != nil { return map[string]interface{}{}, errConvergedinfraBaseComplianceDetails } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.AdapterCount) { toSerialize["AdapterCount"] = o.AdapterCount @@ -531,6 +547,13 @@ func (o *ConvergedinfraServerComplianceDetails) UnmarshalJSON(data []byte) (err "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -540,11 +563,23 @@ func (o *ConvergedinfraServerComplianceDetails) UnmarshalJSON(data []byte) (err } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type ConvergedinfraServerComplianceDetailsWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_convergedinfra_server_compliance_details_list.go b/model_convergedinfra_server_compliance_details_list.go index ed21fc5c57..0685ac0933 100644 --- a/model_convergedinfra_server_compliance_details_list.go +++ b/model_convergedinfra_server_compliance_details_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *ConvergedinfraServerComplianceDetailsList) GetResultsOk() ([]Convergedi // HasResults returns a boolean if a field has been set. func (o *ConvergedinfraServerComplianceDetailsList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *ConvergedinfraServerComplianceDetailsList) UnmarshalJSON(data []byte) ( "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *ConvergedinfraServerComplianceDetailsList) UnmarshalJSON(data []byte) ( } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type ConvergedinfraServerComplianceDetailsListWithoutEmbeddedStruct struct { // The total number of 'convergedinfra.ServerComplianceDetails' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_convergedinfra_server_compliance_details_relationship.go b/model_convergedinfra_server_compliance_details_relationship.go index 79217ee508..94d4c3f63d 100644 --- a/model_convergedinfra_server_compliance_details_relationship.go +++ b/model_convergedinfra_server_compliance_details_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_convergedinfra_server_compliance_details_response.go b/model_convergedinfra_server_compliance_details_response.go index 3905545441..facace1cea 100644 --- a/model_convergedinfra_server_compliance_details_response.go +++ b/model_convergedinfra_server_compliance_details_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_convergedinfra_storage_compliance_details.go b/model_convergedinfra_storage_compliance_details.go index 3b17a356a3..1e53f34001 100644 --- a/model_convergedinfra_storage_compliance_details.go +++ b/model_convergedinfra_storage_compliance_details.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -90,6 +90,11 @@ func (o *ConvergedinfraStorageComplianceDetails) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "convergedinfra.StorageComplianceDetails" of the ClassId field. +func (o *ConvergedinfraStorageComplianceDetails) GetDefaultClassId() interface{} { + return "convergedinfra.StorageComplianceDetails" +} + // GetObjectType returns the ObjectType field value func (o *ConvergedinfraStorageComplianceDetails) GetObjectType() string { if o == nil { @@ -114,6 +119,11 @@ func (o *ConvergedinfraStorageComplianceDetails) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "convergedinfra.StorageComplianceDetails" of the ObjectType field. +func (o *ConvergedinfraStorageComplianceDetails) GetDefaultObjectType() interface{} { + return "convergedinfra.StorageComplianceDetails" +} + // GetOs returns the Os field value if set, zero value otherwise. func (o *ConvergedinfraStorageComplianceDetails) GetOs() string { if o == nil || IsNil(o.Os) { @@ -400,7 +410,13 @@ func (o ConvergedinfraStorageComplianceDetails) ToMap() (map[string]interface{}, if errConvergedinfraBaseComplianceDetails != nil { return map[string]interface{}{}, errConvergedinfraBaseComplianceDetails } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Os) { toSerialize["Os"] = o.Os @@ -440,6 +456,13 @@ func (o *ConvergedinfraStorageComplianceDetails) UnmarshalJSON(data []byte) (err "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -449,11 +472,23 @@ func (o *ConvergedinfraStorageComplianceDetails) UnmarshalJSON(data []byte) (err } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type ConvergedinfraStorageComplianceDetailsWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_convergedinfra_storage_compliance_details_list.go b/model_convergedinfra_storage_compliance_details_list.go index 18f77e007d..bebba8d824 100644 --- a/model_convergedinfra_storage_compliance_details_list.go +++ b/model_convergedinfra_storage_compliance_details_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *ConvergedinfraStorageComplianceDetailsList) GetResultsOk() ([]Converged // HasResults returns a boolean if a field has been set. func (o *ConvergedinfraStorageComplianceDetailsList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *ConvergedinfraStorageComplianceDetailsList) UnmarshalJSON(data []byte) "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *ConvergedinfraStorageComplianceDetailsList) UnmarshalJSON(data []byte) } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type ConvergedinfraStorageComplianceDetailsListWithoutEmbeddedStruct struct { // The total number of 'convergedinfra.StorageComplianceDetails' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_convergedinfra_storage_compliance_details_relationship.go b/model_convergedinfra_storage_compliance_details_relationship.go index 66be0b8d4a..f1a3e914fb 100644 --- a/model_convergedinfra_storage_compliance_details_relationship.go +++ b/model_convergedinfra_storage_compliance_details_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_convergedinfra_storage_compliance_details_response.go b/model_convergedinfra_storage_compliance_details_response.go index d3cf8dd5c6..5fc9401ddb 100644 --- a/model_convergedinfra_storage_compliance_details_response.go +++ b/model_convergedinfra_storage_compliance_details_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_convergedinfra_switch_compliance_details.go b/model_convergedinfra_switch_compliance_details.go index a0b3c8c478..ce17019ff5 100644 --- a/model_convergedinfra_switch_compliance_details.go +++ b/model_convergedinfra_switch_compliance_details.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -90,6 +90,11 @@ func (o *ConvergedinfraSwitchComplianceDetails) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "convergedinfra.SwitchComplianceDetails" of the ClassId field. +func (o *ConvergedinfraSwitchComplianceDetails) GetDefaultClassId() interface{} { + return "convergedinfra.SwitchComplianceDetails" +} + // GetObjectType returns the ObjectType field value func (o *ConvergedinfraSwitchComplianceDetails) GetObjectType() string { if o == nil { @@ -114,6 +119,11 @@ func (o *ConvergedinfraSwitchComplianceDetails) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "convergedinfra.SwitchComplianceDetails" of the ObjectType field. +func (o *ConvergedinfraSwitchComplianceDetails) GetDefaultObjectType() interface{} { + return "convergedinfra.SwitchComplianceDetails" +} + // GetFirmware returns the Firmware field value if set, zero value otherwise. func (o *ConvergedinfraSwitchComplianceDetails) GetFirmware() string { if o == nil || IsNil(o.Firmware) { @@ -274,7 +284,7 @@ func (o *ConvergedinfraSwitchComplianceDetails) GetStorageCompliancesOk() ([]Con // HasStorageCompliances returns a boolean if a field has been set. func (o *ConvergedinfraSwitchComplianceDetails) HasStorageCompliances() bool { - if o != nil && IsNil(o.StorageCompliances) { + if o != nil && !IsNil(o.StorageCompliances) { return true } @@ -347,7 +357,13 @@ func (o ConvergedinfraSwitchComplianceDetails) ToMap() (map[string]interface{}, if errConvergedinfraBaseComplianceDetails != nil { return map[string]interface{}{}, errConvergedinfraBaseComplianceDetails } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Firmware) { toSerialize["Firmware"] = o.Firmware @@ -384,6 +400,13 @@ func (o *ConvergedinfraSwitchComplianceDetails) UnmarshalJSON(data []byte) (err "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -393,11 +416,23 @@ func (o *ConvergedinfraSwitchComplianceDetails) UnmarshalJSON(data []byte) (err } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type ConvergedinfraSwitchComplianceDetailsWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_convergedinfra_switch_compliance_details_list.go b/model_convergedinfra_switch_compliance_details_list.go index bddb250238..a2d5fbf42b 100644 --- a/model_convergedinfra_switch_compliance_details_list.go +++ b/model_convergedinfra_switch_compliance_details_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *ConvergedinfraSwitchComplianceDetailsList) GetResultsOk() ([]Convergedi // HasResults returns a boolean if a field has been set. func (o *ConvergedinfraSwitchComplianceDetailsList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *ConvergedinfraSwitchComplianceDetailsList) UnmarshalJSON(data []byte) ( "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *ConvergedinfraSwitchComplianceDetailsList) UnmarshalJSON(data []byte) ( } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type ConvergedinfraSwitchComplianceDetailsListWithoutEmbeddedStruct struct { // The total number of 'convergedinfra.SwitchComplianceDetails' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_convergedinfra_switch_compliance_details_relationship.go b/model_convergedinfra_switch_compliance_details_relationship.go index e0c69b965c..58e5488eea 100644 --- a/model_convergedinfra_switch_compliance_details_relationship.go +++ b/model_convergedinfra_switch_compliance_details_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_convergedinfra_switch_compliance_details_response.go b/model_convergedinfra_switch_compliance_details_response.go index f55c22d1c1..20fb8a2ba2 100644 --- a/model_convergedinfra_switch_compliance_details_response.go +++ b/model_convergedinfra_switch_compliance_details_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_crd_custom_resource.go b/model_crd_custom_resource.go index dd2e84ec73..316132fb2c 100644 --- a/model_crd_custom_resource.go +++ b/model_crd_custom_resource.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -98,6 +98,11 @@ func (o *CrdCustomResource) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "crd.CustomResource" of the ClassId field. +func (o *CrdCustomResource) GetDefaultClassId() interface{} { + return "crd.CustomResource" +} + // GetObjectType returns the ObjectType field value func (o *CrdCustomResource) GetObjectType() string { if o == nil { @@ -122,6 +127,11 @@ func (o *CrdCustomResource) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "crd.CustomResource" of the ObjectType field. +func (o *CrdCustomResource) GetDefaultObjectType() interface{} { + return "crd.CustomResource" +} + // GetDcLauncher returns the DcLauncher field value if set, zero value otherwise. func (o *CrdCustomResource) GetDcLauncher() string { if o == nil || IsNil(o.DcLauncher) { @@ -303,7 +313,7 @@ func (o *CrdCustomResource) GetPropertiesOk() ([]CrdCustomResourceConfigProperty // HasProperties returns a boolean if a field has been set. func (o *CrdCustomResource) HasProperties() bool { - if o != nil && IsNil(o.Properties) { + if o != nil && !IsNil(o.Properties) { return true } @@ -472,7 +482,13 @@ func (o CrdCustomResource) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.DcLauncher) { toSerialize["DcLauncher"] = o.DcLauncher @@ -521,6 +537,13 @@ func (o *CrdCustomResource) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -530,11 +553,23 @@ func (o *CrdCustomResource) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type CrdCustomResourceWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_crd_custom_resource_config_property.go b/model_crd_custom_resource_config_property.go index e30464ed74..3eae4f4ad8 100644 --- a/model_crd_custom_resource_config_property.go +++ b/model_crd_custom_resource_config_property.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -84,6 +84,11 @@ func (o *CrdCustomResourceConfigProperty) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "crd.CustomResourceConfigProperty" of the ClassId field. +func (o *CrdCustomResourceConfigProperty) GetDefaultClassId() interface{} { + return "crd.CustomResourceConfigProperty" +} + // GetObjectType returns the ObjectType field value func (o *CrdCustomResourceConfigProperty) GetObjectType() string { if o == nil { @@ -108,6 +113,11 @@ func (o *CrdCustomResourceConfigProperty) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "crd.CustomResourceConfigProperty" of the ObjectType field. +func (o *CrdCustomResourceConfigProperty) GetDefaultObjectType() interface{} { + return "crd.CustomResourceConfigProperty" +} + // GetKey returns the Key field value if set, zero value otherwise. func (o *CrdCustomResourceConfigProperty) GetKey() string { if o == nil || IsNil(o.Key) { @@ -190,7 +200,13 @@ func (o CrdCustomResourceConfigProperty) ToMap() (map[string]interface{}, error) if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Key) { toSerialize["Key"] = o.Key @@ -215,6 +231,13 @@ func (o *CrdCustomResourceConfigProperty) UnmarshalJSON(data []byte) (err error) "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -224,11 +247,23 @@ func (o *CrdCustomResourceConfigProperty) UnmarshalJSON(data []byte) (err error) } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type CrdCustomResourceConfigPropertyWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_crd_custom_resource_list.go b/model_crd_custom_resource_list.go index cc5cf0df13..c02fe62686 100644 --- a/model_crd_custom_resource_list.go +++ b/model_crd_custom_resource_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *CrdCustomResourceList) GetResultsOk() ([]CrdCustomResource, bool) { // HasResults returns a boolean if a field has been set. func (o *CrdCustomResourceList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *CrdCustomResourceList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *CrdCustomResourceList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type CrdCustomResourceListWithoutEmbeddedStruct struct { // The total number of 'crd.CustomResource' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_crd_custom_resource_response.go b/model_crd_custom_resource_response.go index 8d06574db1..5348968804 100644 --- a/model_crd_custom_resource_response.go +++ b/model_crd_custom_resource_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_deviceconnector_policy.go b/model_deviceconnector_policy.go index 77b86d76e9..09e1694c49 100644 --- a/model_deviceconnector_policy.go +++ b/model_deviceconnector_policy.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -89,6 +89,11 @@ func (o *DeviceconnectorPolicy) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "deviceconnector.Policy" of the ClassId field. +func (o *DeviceconnectorPolicy) GetDefaultClassId() interface{} { + return "deviceconnector.Policy" +} + // GetObjectType returns the ObjectType field value func (o *DeviceconnectorPolicy) GetObjectType() string { if o == nil { @@ -113,6 +118,11 @@ func (o *DeviceconnectorPolicy) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "deviceconnector.Policy" of the ObjectType field. +func (o *DeviceconnectorPolicy) GetDefaultObjectType() interface{} { + return "deviceconnector.Policy" +} + // GetLockoutEnabled returns the LockoutEnabled field value if set, zero value otherwise. func (o *DeviceconnectorPolicy) GetLockoutEnabled() bool { if o == nil || IsNil(o.LockoutEnabled) { @@ -209,7 +219,7 @@ func (o *DeviceconnectorPolicy) GetProfilesOk() ([]PolicyAbstractConfigProfileRe // HasProfiles returns a boolean if a field has been set. func (o *DeviceconnectorPolicy) HasProfiles() bool { - if o != nil && IsNil(o.Profiles) { + if o != nil && !IsNil(o.Profiles) { return true } @@ -239,7 +249,13 @@ func (o DeviceconnectorPolicy) ToMap() (map[string]interface{}, error) { if errPolicyAbstractPolicy != nil { return map[string]interface{}{}, errPolicyAbstractPolicy } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.LockoutEnabled) { toSerialize["LockoutEnabled"] = o.LockoutEnabled @@ -267,6 +283,13 @@ func (o *DeviceconnectorPolicy) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -276,11 +299,23 @@ func (o *DeviceconnectorPolicy) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type DeviceconnectorPolicyWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_deviceconnector_policy_list.go b/model_deviceconnector_policy_list.go index 18061dee22..e9182a1a00 100644 --- a/model_deviceconnector_policy_list.go +++ b/model_deviceconnector_policy_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *DeviceconnectorPolicyList) GetResultsOk() ([]DeviceconnectorPolicy, boo // HasResults returns a boolean if a field has been set. func (o *DeviceconnectorPolicyList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *DeviceconnectorPolicyList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *DeviceconnectorPolicyList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type DeviceconnectorPolicyListWithoutEmbeddedStruct struct { // The total number of 'deviceconnector.Policy' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_deviceconnector_policy_response.go b/model_deviceconnector_policy_response.go index ed4616d053..027255704d 100644 --- a/model_deviceconnector_policy_response.go +++ b/model_deviceconnector_policy_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_dnac_device.go b/model_dnac_device.go index a14fdd7135..132eb65e91 100644 --- a/model_dnac_device.go +++ b/model_dnac_device.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -86,6 +86,11 @@ func (o *DnacDevice) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "dnac.Device" of the ClassId field. +func (o *DnacDevice) GetDefaultClassId() interface{} { + return "dnac.Device" +} + // GetObjectType returns the ObjectType field value func (o *DnacDevice) GetObjectType() string { if o == nil { @@ -110,6 +115,11 @@ func (o *DnacDevice) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "dnac.Device" of the ObjectType field. +func (o *DnacDevice) GetDefaultObjectType() interface{} { + return "dnac.Device" +} + // GetDeviceId returns the DeviceId field value if set, zero value otherwise. func (o *DnacDevice) GetDeviceId() string { if o == nil || IsNil(o.DeviceId) { @@ -224,7 +234,13 @@ func (o DnacDevice) ToMap() (map[string]interface{}, error) { if errDnacInventoryEntity != nil { return map[string]interface{}{}, errDnacInventoryEntity } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.DeviceId) { toSerialize["DeviceId"] = o.DeviceId @@ -252,6 +268,13 @@ func (o *DnacDevice) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -261,11 +284,23 @@ func (o *DnacDevice) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type DnacDeviceWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_dnac_device_interface.go b/model_dnac_device_interface.go index 563f11e5a2..809fcd8a57 100644 --- a/model_dnac_device_interface.go +++ b/model_dnac_device_interface.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -92,6 +92,11 @@ func (o *DnacDeviceInterface) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "dnac.DeviceInterface" of the ClassId field. +func (o *DnacDeviceInterface) GetDefaultClassId() interface{} { + return "dnac.DeviceInterface" +} + // GetObjectType returns the ObjectType field value func (o *DnacDeviceInterface) GetObjectType() string { if o == nil { @@ -116,6 +121,11 @@ func (o *DnacDeviceInterface) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "dnac.DeviceInterface" of the ObjectType field. +func (o *DnacDeviceInterface) GetDefaultObjectType() interface{} { + return "dnac.DeviceInterface" +} + // GetAdminStatus returns the AdminStatus field value if set, zero value otherwise. func (o *DnacDeviceInterface) GetAdminStatus() string { if o == nil || IsNil(o.AdminStatus) { @@ -326,7 +336,13 @@ func (o DnacDeviceInterface) ToMap() (map[string]interface{}, error) { if errDnacInventoryEntity != nil { return map[string]interface{}{}, errDnacInventoryEntity } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.AdminStatus) { toSerialize["AdminStatus"] = o.AdminStatus @@ -363,6 +379,13 @@ func (o *DnacDeviceInterface) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -372,11 +395,23 @@ func (o *DnacDeviceInterface) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type DnacDeviceInterfaceWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_dnac_device_interface_list.go b/model_dnac_device_interface_list.go index 9b711d89de..de227bdfd1 100644 --- a/model_dnac_device_interface_list.go +++ b/model_dnac_device_interface_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *DnacDeviceInterfaceList) GetResultsOk() ([]DnacDeviceInterface, bool) { // HasResults returns a boolean if a field has been set. func (o *DnacDeviceInterfaceList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *DnacDeviceInterfaceList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *DnacDeviceInterfaceList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type DnacDeviceInterfaceListWithoutEmbeddedStruct struct { // The total number of 'dnac.DeviceInterface' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_dnac_device_interface_response.go b/model_dnac_device_interface_response.go index ecbb38b89e..b8a9016f3f 100644 --- a/model_dnac_device_interface_response.go +++ b/model_dnac_device_interface_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_dnac_device_list.go b/model_dnac_device_list.go index 455b4537c2..0752218562 100644 --- a/model_dnac_device_list.go +++ b/model_dnac_device_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *DnacDeviceList) GetResultsOk() ([]DnacDevice, bool) { // HasResults returns a boolean if a field has been set. func (o *DnacDeviceList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *DnacDeviceList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *DnacDeviceList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type DnacDeviceListWithoutEmbeddedStruct struct { // The total number of 'dnac.Device' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_dnac_device_response.go b/model_dnac_device_response.go index da1b21848a..a380e3f909 100644 --- a/model_dnac_device_response.go +++ b/model_dnac_device_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_dnac_external_border_node.go b/model_dnac_external_border_node.go index a67e69cc30..84485a257c 100644 --- a/model_dnac_external_border_node.go +++ b/model_dnac_external_border_node.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -89,6 +89,11 @@ func (o *DnacExternalBorderNode) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "dnac.ExternalBorderNode" of the ClassId field. +func (o *DnacExternalBorderNode) GetDefaultClassId() interface{} { + return "dnac.ExternalBorderNode" +} + // GetObjectType returns the ObjectType field value func (o *DnacExternalBorderNode) GetObjectType() string { if o == nil { @@ -113,6 +118,11 @@ func (o *DnacExternalBorderNode) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "dnac.ExternalBorderNode" of the ObjectType field. +func (o *DnacExternalBorderNode) GetDefaultObjectType() interface{} { + return "dnac.ExternalBorderNode" +} + // GetExternalBorderNodeId returns the ExternalBorderNodeId field value if set, zero value otherwise. func (o *DnacExternalBorderNode) GetExternalBorderNodeId() string { if o == nil || IsNil(o.ExternalBorderNodeId) { @@ -262,7 +272,7 @@ func (o *DnacExternalBorderNode) GetRolesOk() ([]string, bool) { // HasRoles returns a boolean if a field has been set. func (o *DnacExternalBorderNode) HasRoles() bool { - if o != nil && IsNil(o.Roles) { + if o != nil && !IsNil(o.Roles) { return true } @@ -292,7 +302,13 @@ func (o DnacExternalBorderNode) ToMap() (map[string]interface{}, error) { if errDnacInventoryEntity != nil { return map[string]interface{}{}, errDnacInventoryEntity } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.ExternalBorderNodeId) { toSerialize["ExternalBorderNodeId"] = o.ExternalBorderNodeId @@ -326,6 +342,13 @@ func (o *DnacExternalBorderNode) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -335,11 +358,23 @@ func (o *DnacExternalBorderNode) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type DnacExternalBorderNodeWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_dnac_external_border_node_interface.go b/model_dnac_external_border_node_interface.go index ec882e630c..40110ebc38 100644 --- a/model_dnac_external_border_node_interface.go +++ b/model_dnac_external_border_node_interface.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -92,6 +92,11 @@ func (o *DnacExternalBorderNodeInterface) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "dnac.ExternalBorderNodeInterface" of the ClassId field. +func (o *DnacExternalBorderNodeInterface) GetDefaultClassId() interface{} { + return "dnac.ExternalBorderNodeInterface" +} + // GetObjectType returns the ObjectType field value func (o *DnacExternalBorderNodeInterface) GetObjectType() string { if o == nil { @@ -116,6 +121,11 @@ func (o *DnacExternalBorderNodeInterface) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "dnac.ExternalBorderNodeInterface" of the ObjectType field. +func (o *DnacExternalBorderNodeInterface) GetDefaultObjectType() interface{} { + return "dnac.ExternalBorderNodeInterface" +} + // GetAdminStatus returns the AdminStatus field value if set, zero value otherwise. func (o *DnacExternalBorderNodeInterface) GetAdminStatus() string { if o == nil || IsNil(o.AdminStatus) { @@ -326,7 +336,13 @@ func (o DnacExternalBorderNodeInterface) ToMap() (map[string]interface{}, error) if errDnacInventoryEntity != nil { return map[string]interface{}{}, errDnacInventoryEntity } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.AdminStatus) { toSerialize["AdminStatus"] = o.AdminStatus @@ -363,6 +379,13 @@ func (o *DnacExternalBorderNodeInterface) UnmarshalJSON(data []byte) (err error) "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -372,11 +395,23 @@ func (o *DnacExternalBorderNodeInterface) UnmarshalJSON(data []byte) (err error) } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type DnacExternalBorderNodeInterfaceWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_dnac_external_border_node_interface_list.go b/model_dnac_external_border_node_interface_list.go index 0136eb732c..7e8ab49db1 100644 --- a/model_dnac_external_border_node_interface_list.go +++ b/model_dnac_external_border_node_interface_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *DnacExternalBorderNodeInterfaceList) GetResultsOk() ([]DnacExternalBord // HasResults returns a boolean if a field has been set. func (o *DnacExternalBorderNodeInterfaceList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *DnacExternalBorderNodeInterfaceList) UnmarshalJSON(data []byte) (err er "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *DnacExternalBorderNodeInterfaceList) UnmarshalJSON(data []byte) (err er } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type DnacExternalBorderNodeInterfaceListWithoutEmbeddedStruct struct { // The total number of 'dnac.ExternalBorderNodeInterface' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_dnac_external_border_node_interface_response.go b/model_dnac_external_border_node_interface_response.go index e761feec7f..f203060328 100644 --- a/model_dnac_external_border_node_interface_response.go +++ b/model_dnac_external_border_node_interface_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_dnac_external_border_node_list.go b/model_dnac_external_border_node_list.go index e038c2cdd1..cebca99c6e 100644 --- a/model_dnac_external_border_node_list.go +++ b/model_dnac_external_border_node_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *DnacExternalBorderNodeList) GetResultsOk() ([]DnacExternalBorderNode, b // HasResults returns a boolean if a field has been set. func (o *DnacExternalBorderNodeList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *DnacExternalBorderNodeList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *DnacExternalBorderNodeList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type DnacExternalBorderNodeListWithoutEmbeddedStruct struct { // The total number of 'dnac.ExternalBorderNode' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_dnac_external_border_node_response.go b/model_dnac_external_border_node_response.go index 3f6e554f99..2692b09c2b 100644 --- a/model_dnac_external_border_node_response.go +++ b/model_dnac_external_border_node_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_dnac_fabric_site.go b/model_dnac_fabric_site.go index 5f124aced3..245536ee1e 100644 --- a/model_dnac_fabric_site.go +++ b/model_dnac_fabric_site.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -90,6 +90,11 @@ func (o *DnacFabricSite) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "dnac.FabricSite" of the ClassId field. +func (o *DnacFabricSite) GetDefaultClassId() interface{} { + return "dnac.FabricSite" +} + // GetObjectType returns the ObjectType field value func (o *DnacFabricSite) GetObjectType() string { if o == nil { @@ -114,6 +119,11 @@ func (o *DnacFabricSite) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "dnac.FabricSite" of the ObjectType field. +func (o *DnacFabricSite) GetDefaultObjectType() interface{} { + return "dnac.FabricSite" +} + // GetAuthenticationProfileName returns the AuthenticationProfileName field value if set, zero value otherwise. func (o *DnacFabricSite) GetAuthenticationProfileName() string { if o == nil || IsNil(o.AuthenticationProfileName) { @@ -292,7 +302,13 @@ func (o DnacFabricSite) ToMap() (map[string]interface{}, error) { if errDnacInventoryEntity != nil { return map[string]interface{}{}, errDnacInventoryEntity } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.AuthenticationProfileName) { toSerialize["AuthenticationProfileName"] = o.AuthenticationProfileName @@ -326,6 +342,13 @@ func (o *DnacFabricSite) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -335,11 +358,23 @@ func (o *DnacFabricSite) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type DnacFabricSiteWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_dnac_fabric_site_list.go b/model_dnac_fabric_site_list.go index 3d0a7b62e9..b9456ac5d6 100644 --- a/model_dnac_fabric_site_list.go +++ b/model_dnac_fabric_site_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *DnacFabricSiteList) GetResultsOk() ([]DnacFabricSite, bool) { // HasResults returns a boolean if a field has been set. func (o *DnacFabricSiteList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *DnacFabricSiteList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *DnacFabricSiteList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type DnacFabricSiteListWithoutEmbeddedStruct struct { // The total number of 'dnac.FabricSite' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_dnac_fabric_site_response.go b/model_dnac_fabric_site_response.go index f202359481..f58a928fac 100644 --- a/model_dnac_fabric_site_response.go +++ b/model_dnac_fabric_site_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_dnac_inventory_entity.go b/model_dnac_inventory_entity.go index 13bf51b605..16ece7f9b9 100644 --- a/model_dnac_inventory_entity.go +++ b/model_dnac_inventory_entity.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -184,6 +184,10 @@ func (o *DnacInventoryEntity) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -193,11 +197,23 @@ func (o *DnacInventoryEntity) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type DnacInventoryEntityWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. The enum values provides the list of concrete types that can be instantiated from this abstract type. ClassId string `json:"ClassId"` diff --git a/model_dnac_site.go b/model_dnac_site.go index 1f18f0ab94..c42d7f4cfc 100644 --- a/model_dnac_site.go +++ b/model_dnac_site.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -84,6 +84,11 @@ func (o *DnacSite) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "dnac.Site" of the ClassId field. +func (o *DnacSite) GetDefaultClassId() interface{} { + return "dnac.Site" +} + // GetObjectType returns the ObjectType field value func (o *DnacSite) GetObjectType() string { if o == nil { @@ -108,6 +113,11 @@ func (o *DnacSite) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "dnac.Site" of the ObjectType field. +func (o *DnacSite) GetDefaultObjectType() interface{} { + return "dnac.Site" +} + // GetFabricSiteNameHierarchy returns the FabricSiteNameHierarchy field value if set, zero value otherwise. func (o *DnacSite) GetFabricSiteNameHierarchy() string { if o == nil || IsNil(o.FabricSiteNameHierarchy) { @@ -190,7 +200,13 @@ func (o DnacSite) ToMap() (map[string]interface{}, error) { if errDnacInventoryEntity != nil { return map[string]interface{}{}, errDnacInventoryEntity } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.FabricSiteNameHierarchy) { toSerialize["FabricSiteNameHierarchy"] = o.FabricSiteNameHierarchy @@ -215,6 +231,13 @@ func (o *DnacSite) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -224,11 +247,23 @@ func (o *DnacSite) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type DnacSiteWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_dnac_site_ip_pool.go b/model_dnac_site_ip_pool.go index facb2c527a..920d293d56 100644 --- a/model_dnac_site_ip_pool.go +++ b/model_dnac_site_ip_pool.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -90,6 +90,11 @@ func (o *DnacSiteIpPool) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "dnac.SiteIpPool" of the ClassId field. +func (o *DnacSiteIpPool) GetDefaultClassId() interface{} { + return "dnac.SiteIpPool" +} + // GetObjectType returns the ObjectType field value func (o *DnacSiteIpPool) GetObjectType() string { if o == nil { @@ -114,6 +119,11 @@ func (o *DnacSiteIpPool) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "dnac.SiteIpPool" of the ObjectType field. +func (o *DnacSiteIpPool) GetDefaultObjectType() interface{} { + return "dnac.SiteIpPool" +} + // GetIpPoolCidr returns the IpPoolCidr field value if set, zero value otherwise. func (o *DnacSiteIpPool) GetIpPoolCidr() string { if o == nil || IsNil(o.IpPoolCidr) { @@ -292,7 +302,13 @@ func (o DnacSiteIpPool) ToMap() (map[string]interface{}, error) { if errDnacInventoryEntity != nil { return map[string]interface{}{}, errDnacInventoryEntity } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.IpPoolCidr) { toSerialize["IpPoolCidr"] = o.IpPoolCidr @@ -326,6 +342,13 @@ func (o *DnacSiteIpPool) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -335,11 +358,23 @@ func (o *DnacSiteIpPool) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type DnacSiteIpPoolWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_dnac_site_ip_pool_list.go b/model_dnac_site_ip_pool_list.go index d5970ab86f..25bd2c9f95 100644 --- a/model_dnac_site_ip_pool_list.go +++ b/model_dnac_site_ip_pool_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *DnacSiteIpPoolList) GetResultsOk() ([]DnacSiteIpPool, bool) { // HasResults returns a boolean if a field has been set. func (o *DnacSiteIpPoolList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *DnacSiteIpPoolList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *DnacSiteIpPoolList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type DnacSiteIpPoolListWithoutEmbeddedStruct struct { // The total number of 'dnac.SiteIpPool' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_dnac_site_ip_pool_response.go b/model_dnac_site_ip_pool_response.go index 81e7922c47..54ec99a383 100644 --- a/model_dnac_site_ip_pool_response.go +++ b/model_dnac_site_ip_pool_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_dnac_site_list.go b/model_dnac_site_list.go index 0b2075fec3..540cae62cc 100644 --- a/model_dnac_site_list.go +++ b/model_dnac_site_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *DnacSiteList) GetResultsOk() ([]DnacSite, bool) { // HasResults returns a boolean if a field has been set. func (o *DnacSiteList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *DnacSiteList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *DnacSiteList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type DnacSiteListWithoutEmbeddedStruct struct { // The total number of 'dnac.Site' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_dnac_site_response.go b/model_dnac_site_response.go index 243a714438..253c672d3a 100644 --- a/model_dnac_site_response.go +++ b/model_dnac_site_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_dnac_template.go b/model_dnac_template.go index 5d840b7de3..6ceb698443 100644 --- a/model_dnac_template.go +++ b/model_dnac_template.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -90,6 +90,11 @@ func (o *DnacTemplate) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "dnac.Template" of the ClassId field. +func (o *DnacTemplate) GetDefaultClassId() interface{} { + return "dnac.Template" +} + // GetObjectType returns the ObjectType field value func (o *DnacTemplate) GetObjectType() string { if o == nil { @@ -114,6 +119,11 @@ func (o *DnacTemplate) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "dnac.Template" of the ObjectType field. +func (o *DnacTemplate) GetDefaultObjectType() interface{} { + return "dnac.Template" +} + // GetComposite returns the Composite field value if set, zero value otherwise. func (o *DnacTemplate) GetComposite() string { if o == nil || IsNil(o.Composite) { @@ -292,7 +302,13 @@ func (o DnacTemplate) ToMap() (map[string]interface{}, error) { if errDnacInventoryEntity != nil { return map[string]interface{}{}, errDnacInventoryEntity } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Composite) { toSerialize["Composite"] = o.Composite @@ -326,6 +342,13 @@ func (o *DnacTemplate) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -335,11 +358,23 @@ func (o *DnacTemplate) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type DnacTemplateWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_dnac_template_list.go b/model_dnac_template_list.go index ff4ac3cc3d..87c7a6f0a9 100644 --- a/model_dnac_template_list.go +++ b/model_dnac_template_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *DnacTemplateList) GetResultsOk() ([]DnacTemplate, bool) { // HasResults returns a boolean if a field has been set. func (o *DnacTemplateList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *DnacTemplateList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *DnacTemplateList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type DnacTemplateListWithoutEmbeddedStruct struct { // The total number of 'dnac.Template' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_dnac_template_response.go b/model_dnac_template_response.go index 7eb858221a..c304da5282 100644 --- a/model_dnac_template_response.go +++ b/model_dnac_template_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_dnac_transit.go b/model_dnac_transit.go index 7484dffed8..ef6af52872 100644 --- a/model_dnac_transit.go +++ b/model_dnac_transit.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -86,6 +86,11 @@ func (o *DnacTransit) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "dnac.Transit" of the ClassId field. +func (o *DnacTransit) GetDefaultClassId() interface{} { + return "dnac.Transit" +} + // GetObjectType returns the ObjectType field value func (o *DnacTransit) GetObjectType() string { if o == nil { @@ -110,6 +115,11 @@ func (o *DnacTransit) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "dnac.Transit" of the ObjectType field. +func (o *DnacTransit) GetDefaultObjectType() interface{} { + return "dnac.Transit" +} + // GetTransitId returns the TransitId field value if set, zero value otherwise. func (o *DnacTransit) GetTransitId() string { if o == nil || IsNil(o.TransitId) { @@ -224,7 +234,13 @@ func (o DnacTransit) ToMap() (map[string]interface{}, error) { if errDnacInventoryEntity != nil { return map[string]interface{}{}, errDnacInventoryEntity } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.TransitId) { toSerialize["TransitId"] = o.TransitId @@ -252,6 +268,13 @@ func (o *DnacTransit) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -261,11 +284,23 @@ func (o *DnacTransit) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type DnacTransitWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_dnac_transit_list.go b/model_dnac_transit_list.go index ed467223cb..b24a4d8281 100644 --- a/model_dnac_transit_list.go +++ b/model_dnac_transit_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *DnacTransitList) GetResultsOk() ([]DnacTransit, bool) { // HasResults returns a boolean if a field has been set. func (o *DnacTransitList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *DnacTransitList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *DnacTransitList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type DnacTransitListWithoutEmbeddedStruct struct { // The total number of 'dnac.Transit' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_dnac_transit_response.go b/model_dnac_transit_response.go index c8991e676c..1ffefb94c6 100644 --- a/model_dnac_transit_response.go +++ b/model_dnac_transit_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_dnac_virtual_network_fabric_site.go b/model_dnac_virtual_network_fabric_site.go index 2483382e8e..95d0d652ad 100644 --- a/model_dnac_virtual_network_fabric_site.go +++ b/model_dnac_virtual_network_fabric_site.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -88,6 +88,11 @@ func (o *DnacVirtualNetworkFabricSite) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "dnac.VirtualNetworkFabricSite" of the ClassId field. +func (o *DnacVirtualNetworkFabricSite) GetDefaultClassId() interface{} { + return "dnac.VirtualNetworkFabricSite" +} + // GetObjectType returns the ObjectType field value func (o *DnacVirtualNetworkFabricSite) GetObjectType() string { if o == nil { @@ -112,6 +117,11 @@ func (o *DnacVirtualNetworkFabricSite) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "dnac.VirtualNetworkFabricSite" of the ObjectType field. +func (o *DnacVirtualNetworkFabricSite) GetDefaultObjectType() interface{} { + return "dnac.VirtualNetworkFabricSite" +} + // GetFabricSiteNameHierarchy returns the FabricSiteNameHierarchy field value if set, zero value otherwise. func (o *DnacVirtualNetworkFabricSite) GetFabricSiteNameHierarchy() string { if o == nil || IsNil(o.FabricSiteNameHierarchy) { @@ -258,7 +268,13 @@ func (o DnacVirtualNetworkFabricSite) ToMap() (map[string]interface{}, error) { if errDnacInventoryEntity != nil { return map[string]interface{}{}, errDnacInventoryEntity } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.FabricSiteNameHierarchy) { toSerialize["FabricSiteNameHierarchy"] = o.FabricSiteNameHierarchy @@ -289,6 +305,13 @@ func (o *DnacVirtualNetworkFabricSite) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -298,11 +321,23 @@ func (o *DnacVirtualNetworkFabricSite) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type DnacVirtualNetworkFabricSiteWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_dnac_virtual_network_fabric_site_list.go b/model_dnac_virtual_network_fabric_site_list.go index 2859e95d92..3e49f612c2 100644 --- a/model_dnac_virtual_network_fabric_site_list.go +++ b/model_dnac_virtual_network_fabric_site_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *DnacVirtualNetworkFabricSiteList) GetResultsOk() ([]DnacVirtualNetworkF // HasResults returns a boolean if a field has been set. func (o *DnacVirtualNetworkFabricSiteList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *DnacVirtualNetworkFabricSiteList) UnmarshalJSON(data []byte) (err error "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *DnacVirtualNetworkFabricSiteList) UnmarshalJSON(data []byte) (err error } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type DnacVirtualNetworkFabricSiteListWithoutEmbeddedStruct struct { // The total number of 'dnac.VirtualNetworkFabricSite' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_dnac_virtual_network_fabric_site_response.go b/model_dnac_virtual_network_fabric_site_response.go index 93a5f38574..c0ad9ffbf9 100644 --- a/model_dnac_virtual_network_fabric_site_response.go +++ b/model_dnac_virtual_network_fabric_site_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_equipment_abstract_device.go b/model_equipment_abstract_device.go index 051045e42b..d966ddc710 100644 --- a/model_equipment_abstract_device.go +++ b/model_equipment_abstract_device.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -36,7 +36,7 @@ type EquipmentAbstractDevice struct { // Administrator defined name for the device. Name *string `json:"Name,omitempty"` // Unique identity of the device. - Uuid *string `json:"Uuid,omitempty"` + Uuid *string `json:"Uuid,omitempty" validate:"regexp=^$|^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"` // Current running software version of the device. Version *string `json:"Version,omitempty"` AdditionalProperties map[string]interface{} @@ -369,6 +369,10 @@ func (o *EquipmentAbstractDevice) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -378,11 +382,23 @@ func (o *EquipmentAbstractDevice) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type EquipmentAbstractDeviceWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. The enum values provides the list of concrete types that can be instantiated from this abstract type. ClassId string `json:"ClassId"` @@ -396,7 +412,7 @@ func (o *EquipmentAbstractDevice) UnmarshalJSON(data []byte) (err error) { // Administrator defined name for the device. Name *string `json:"Name,omitempty"` // Unique identity of the device. - Uuid *string `json:"Uuid,omitempty"` + Uuid *string `json:"Uuid,omitempty" validate:"regexp=^$|^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"` // Current running software version of the device. Version *string `json:"Version,omitempty"` } diff --git a/model_equipment_base.go b/model_equipment_base.go index c754c720b4..0579a3fd5b 100644 --- a/model_equipment_base.go +++ b/model_equipment_base.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -406,6 +406,10 @@ func (o *EquipmentBase) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -415,11 +419,23 @@ func (o *EquipmentBase) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type EquipmentBaseWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. The enum values provides the list of concrete types that can be instantiated from this abstract type. ClassId string `json:"ClassId"` diff --git a/model_equipment_base_relationship.go b/model_equipment_base_relationship.go index 58d7bc69cf..e9bd7dd3bd 100644 --- a/model_equipment_base_relationship.go +++ b/model_equipment_base_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_equipment_base_sensor.go b/model_equipment_base_sensor.go index adcb247e76..26ff9b49d7 100644 --- a/model_equipment_base_sensor.go +++ b/model_equipment_base_sensor.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -92,6 +92,11 @@ func (o *EquipmentBaseSensor) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "storage.NetAppSensor" of the ClassId field. +func (o *EquipmentBaseSensor) GetDefaultClassId() interface{} { + return "storage.NetAppSensor" +} + // GetObjectType returns the ObjectType field value func (o *EquipmentBaseSensor) GetObjectType() string { if o == nil { @@ -116,6 +121,11 @@ func (o *EquipmentBaseSensor) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "storage.NetAppSensor" of the ObjectType field. +func (o *EquipmentBaseSensor) GetDefaultObjectType() interface{} { + return "storage.NetAppSensor" +} + // GetControllerName returns the ControllerName field value if set, zero value otherwise. func (o *EquipmentBaseSensor) GetControllerName() string { if o == nil || IsNil(o.ControllerName) { @@ -326,7 +336,13 @@ func (o EquipmentBaseSensor) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.ControllerName) { toSerialize["ControllerName"] = o.ControllerName @@ -363,6 +379,13 @@ func (o *EquipmentBaseSensor) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -372,11 +395,23 @@ func (o *EquipmentBaseSensor) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type EquipmentBaseSensorWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. The enum values provides the list of concrete types that can be instantiated from this abstract type. ClassId string `json:"ClassId"` diff --git a/model_equipment_chassis.go b/model_equipment_chassis.go index 39eb1bc8f4..23f420db50 100644 --- a/model_equipment_chassis.go +++ b/model_equipment_chassis.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -58,7 +58,7 @@ type EquipmentChassis struct { // This field identifies the Stock Keeping Unit for the chassis enclosure. Sku *string `json:"Sku,omitempty"` // The user defined label assigned to the chassis. - UserLabel *string `json:"UserLabel,omitempty"` + UserLabel *string `json:"UserLabel,omitempty" validate:"regexp=^[ !#$%&\\\\(\\\\)\\\\*\\\\+,\\\\-\\\\.\\/:;\\\\?@\\\\[\\\\]_\\\\{\\\\|\\\\}~a-zA-Z0-9]*$"` // This field identifies the Vendor ID for the chassis enclosure. Vid *string `json:"Vid,omitempty"` // An array of relationships to computeBlade resources. @@ -138,6 +138,11 @@ func (o *EquipmentChassis) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "equipment.Chassis" of the ClassId field. +func (o *EquipmentChassis) GetDefaultClassId() interface{} { + return "equipment.Chassis" +} + // GetObjectType returns the ObjectType field value func (o *EquipmentChassis) GetObjectType() string { if o == nil { @@ -162,6 +167,11 @@ func (o *EquipmentChassis) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "equipment.Chassis" of the ObjectType field. +func (o *EquipmentChassis) GetDefaultObjectType() interface{} { + return "equipment.Chassis" +} + // GetAlarmSummary returns the AlarmSummary field value if set, zero value otherwise (both if not set or set to explicit null). func (o *EquipmentChassis) GetAlarmSummary() ComputeAlarmSummary { if o == nil || IsNil(o.AlarmSummary.Get()) { @@ -453,7 +463,7 @@ func (o *EquipmentChassis) GetOperReasonOk() ([]string, bool) { // HasOperReason returns a boolean if a field has been set. func (o *EquipmentChassis) HasOperReason() bool { - if o != nil && IsNil(o.OperReason) { + if o != nil && !IsNil(o.OperReason) { return true } @@ -742,7 +752,7 @@ func (o *EquipmentChassis) GetBladesOk() ([]ComputeBladeRelationship, bool) { // HasBlades returns a boolean if a field has been set. func (o *EquipmentChassis) HasBlades() bool { - if o != nil && IsNil(o.Blades) { + if o != nil && !IsNil(o.Blades) { return true } @@ -775,7 +785,7 @@ func (o *EquipmentChassis) GetExpanderModulesOk() ([]EquipmentExpanderModuleRela // HasExpanderModules returns a boolean if a field has been set. func (o *EquipmentChassis) HasExpanderModules() bool { - if o != nil && IsNil(o.ExpanderModules) { + if o != nil && !IsNil(o.ExpanderModules) { return true } @@ -851,7 +861,7 @@ func (o *EquipmentChassis) GetFanmodulesOk() ([]EquipmentFanModuleRelationship, // HasFanmodules returns a boolean if a field has been set. func (o *EquipmentChassis) HasFanmodules() bool { - if o != nil && IsNil(o.Fanmodules) { + if o != nil && !IsNil(o.Fanmodules) { return true } @@ -927,7 +937,7 @@ func (o *EquipmentChassis) GetIomsOk() ([]EquipmentIoCardRelationship, bool) { // HasIoms returns a boolean if a field has been set. func (o *EquipmentChassis) HasIoms() bool { - if o != nil && IsNil(o.Ioms) { + if o != nil && !IsNil(o.Ioms) { return true } @@ -1132,7 +1142,7 @@ func (o *EquipmentChassis) GetPsusOk() ([]EquipmentPsuRelationship, bool) { // HasPsus returns a boolean if a field has been set. func (o *EquipmentChassis) HasPsus() bool { - if o != nil && IsNil(o.Psus) { + if o != nil && !IsNil(o.Psus) { return true } @@ -1208,7 +1218,7 @@ func (o *EquipmentChassis) GetSasexpandersOk() ([]StorageSasExpanderRelationship // HasSasexpanders returns a boolean if a field has been set. func (o *EquipmentChassis) HasSasexpanders() bool { - if o != nil && IsNil(o.Sasexpanders) { + if o != nil && !IsNil(o.Sasexpanders) { return true } @@ -1241,7 +1251,7 @@ func (o *EquipmentChassis) GetSiocsOk() ([]EquipmentSystemIoControllerRelationsh // HasSiocs returns a boolean if a field has been set. func (o *EquipmentChassis) HasSiocs() bool { - if o != nil && IsNil(o.Siocs) { + if o != nil && !IsNil(o.Siocs) { return true } @@ -1274,7 +1284,7 @@ func (o *EquipmentChassis) GetStorageEnclosuresOk() ([]StorageEnclosureRelations // HasStorageEnclosures returns a boolean if a field has been set. func (o *EquipmentChassis) HasStorageEnclosures() bool { - if o != nil && IsNil(o.StorageEnclosures) { + if o != nil && !IsNil(o.StorageEnclosures) { return true } @@ -1307,7 +1317,7 @@ func (o *EquipmentChassis) GetVirtualDriveContainerOk() ([]StorageVirtualDriveCo // HasVirtualDriveContainer returns a boolean if a field has been set. func (o *EquipmentChassis) HasVirtualDriveContainer() bool { - if o != nil && IsNil(o.VirtualDriveContainer) { + if o != nil && !IsNil(o.VirtualDriveContainer) { return true } @@ -1337,7 +1347,13 @@ func (o EquipmentChassis) ToMap() (map[string]interface{}, error) { if errEquipmentBase != nil { return map[string]interface{}{}, errEquipmentBase } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.AlarmSummary.IsSet() { toSerialize["AlarmSummary"] = o.AlarmSummary.Get() @@ -1455,6 +1471,13 @@ func (o *EquipmentChassis) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -1464,11 +1487,23 @@ func (o *EquipmentChassis) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type EquipmentChassisWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` @@ -1504,7 +1539,7 @@ func (o *EquipmentChassis) UnmarshalJSON(data []byte) (err error) { // This field identifies the Stock Keeping Unit for the chassis enclosure. Sku *string `json:"Sku,omitempty"` // The user defined label assigned to the chassis. - UserLabel *string `json:"UserLabel,omitempty"` + UserLabel *string `json:"UserLabel,omitempty" validate:"regexp=^[ !#$%&\\\\(\\\\)\\\\*\\\\+,\\\\-\\\\.\\/:;\\\\?@\\\\[\\\\]_\\\\{\\\\|\\\\}~a-zA-Z0-9]*$"` // This field identifies the Vendor ID for the chassis enclosure. Vid *string `json:"Vid,omitempty"` // An array of relationships to computeBlade resources. diff --git a/model_equipment_chassis_id_pool.go b/model_equipment_chassis_id_pool.go index fb6ada742d..a8e812d1d7 100644 --- a/model_equipment_chassis_id_pool.go +++ b/model_equipment_chassis_id_pool.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -82,6 +82,11 @@ func (o *EquipmentChassisIdPool) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "equipment.ChassisIdPool" of the ClassId field. +func (o *EquipmentChassisIdPool) GetDefaultClassId() interface{} { + return "equipment.ChassisIdPool" +} + // GetObjectType returns the ObjectType field value func (o *EquipmentChassisIdPool) GetObjectType() string { if o == nil { @@ -106,6 +111,11 @@ func (o *EquipmentChassisIdPool) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "equipment.ChassisIdPool" of the ObjectType field. +func (o *EquipmentChassisIdPool) GetDefaultObjectType() interface{} { + return "equipment.ChassisIdPool" +} + // GetPreferredIds returns the PreferredIds field value if set, zero value otherwise (both if not set or set to explicit null). func (o *EquipmentChassisIdPool) GetPreferredIds() []int64 { if o == nil { @@ -127,7 +137,7 @@ func (o *EquipmentChassisIdPool) GetPreferredIdsOk() ([]int64, bool) { // HasPreferredIds returns a boolean if a field has been set. func (o *EquipmentChassisIdPool) HasPreferredIds() bool { - if o != nil && IsNil(o.PreferredIds) { + if o != nil && !IsNil(o.PreferredIds) { return true } @@ -200,7 +210,13 @@ func (o EquipmentChassisIdPool) ToMap() (map[string]interface{}, error) { if errSwIdPoolBase != nil { return map[string]interface{}{}, errSwIdPoolBase } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.PreferredIds != nil { toSerialize["PreferredIds"] = o.PreferredIds @@ -225,6 +241,13 @@ func (o *EquipmentChassisIdPool) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -234,11 +257,23 @@ func (o *EquipmentChassisIdPool) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type EquipmentChassisIdPoolWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_equipment_chassis_id_pool_list.go b/model_equipment_chassis_id_pool_list.go index 3251f96b22..dc3d7c7b7c 100644 --- a/model_equipment_chassis_id_pool_list.go +++ b/model_equipment_chassis_id_pool_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *EquipmentChassisIdPoolList) GetResultsOk() ([]EquipmentChassisIdPool, b // HasResults returns a boolean if a field has been set. func (o *EquipmentChassisIdPoolList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *EquipmentChassisIdPoolList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *EquipmentChassisIdPoolList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type EquipmentChassisIdPoolListWithoutEmbeddedStruct struct { // The total number of 'equipment.ChassisIdPool' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_equipment_chassis_id_pool_response.go b/model_equipment_chassis_id_pool_response.go index 83f0329b5c..424c3cb49a 100644 --- a/model_equipment_chassis_id_pool_response.go +++ b/model_equipment_chassis_id_pool_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_equipment_chassis_identity.go b/model_equipment_chassis_identity.go index 6b140630c1..6fd671d881 100644 --- a/model_equipment_chassis_identity.go +++ b/model_equipment_chassis_identity.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -84,6 +84,11 @@ func (o *EquipmentChassisIdentity) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "equipment.ChassisIdentity" of the ClassId field. +func (o *EquipmentChassisIdentity) GetDefaultClassId() interface{} { + return "equipment.ChassisIdentity" +} + // GetObjectType returns the ObjectType field value func (o *EquipmentChassisIdentity) GetObjectType() string { if o == nil { @@ -108,6 +113,11 @@ func (o *EquipmentChassisIdentity) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "equipment.ChassisIdentity" of the ObjectType field. +func (o *EquipmentChassisIdentity) GetDefaultObjectType() interface{} { + return "equipment.ChassisIdentity" +} + // GetIoCardIdentityList returns the IoCardIdentityList field value if set, zero value otherwise (both if not set or set to explicit null). func (o *EquipmentChassisIdentity) GetIoCardIdentityList() []EquipmentIoCardIdentity { if o == nil { @@ -129,7 +139,7 @@ func (o *EquipmentChassisIdentity) GetIoCardIdentityListOk() ([]EquipmentIoCardI // HasIoCardIdentityList returns a boolean if a field has been set. func (o *EquipmentChassisIdentity) HasIoCardIdentityList() bool { - if o != nil && IsNil(o.IoCardIdentityList) { + if o != nil && !IsNil(o.IoCardIdentityList) { return true } @@ -202,7 +212,13 @@ func (o EquipmentChassisIdentity) ToMap() (map[string]interface{}, error) { if errEquipmentIdentity != nil { return map[string]interface{}{}, errEquipmentIdentity } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.IoCardIdentityList != nil { toSerialize["IoCardIdentityList"] = o.IoCardIdentityList @@ -227,6 +243,13 @@ func (o *EquipmentChassisIdentity) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -236,11 +259,23 @@ func (o *EquipmentChassisIdentity) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type EquipmentChassisIdentityWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_equipment_chassis_identity_list.go b/model_equipment_chassis_identity_list.go index c0e0cbbe34..f99cc4c73e 100644 --- a/model_equipment_chassis_identity_list.go +++ b/model_equipment_chassis_identity_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *EquipmentChassisIdentityList) GetResultsOk() ([]EquipmentChassisIdentit // HasResults returns a boolean if a field has been set. func (o *EquipmentChassisIdentityList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *EquipmentChassisIdentityList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *EquipmentChassisIdentityList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type EquipmentChassisIdentityListWithoutEmbeddedStruct struct { // The total number of 'equipment.ChassisIdentity' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_equipment_chassis_identity_response.go b/model_equipment_chassis_identity_response.go index 2a29b29ed2..c157949e85 100644 --- a/model_equipment_chassis_identity_response.go +++ b/model_equipment_chassis_identity_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_equipment_chassis_list.go b/model_equipment_chassis_list.go index 751d354fbc..b92873001a 100644 --- a/model_equipment_chassis_list.go +++ b/model_equipment_chassis_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *EquipmentChassisList) GetResultsOk() ([]EquipmentChassis, bool) { // HasResults returns a boolean if a field has been set. func (o *EquipmentChassisList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *EquipmentChassisList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *EquipmentChassisList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type EquipmentChassisListWithoutEmbeddedStruct struct { // The total number of 'equipment.Chassis' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_equipment_chassis_operation.go b/model_equipment_chassis_operation.go index 98cb02b6b1..657030abaa 100644 --- a/model_equipment_chassis_operation.go +++ b/model_equipment_chassis_operation.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -93,6 +93,11 @@ func (o *EquipmentChassisOperation) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "equipment.ChassisOperation" of the ClassId field. +func (o *EquipmentChassisOperation) GetDefaultClassId() interface{} { + return "equipment.ChassisOperation" +} + // GetObjectType returns the ObjectType field value func (o *EquipmentChassisOperation) GetObjectType() string { if o == nil { @@ -117,6 +122,11 @@ func (o *EquipmentChassisOperation) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "equipment.ChassisOperation" of the ObjectType field. +func (o *EquipmentChassisOperation) GetDefaultObjectType() interface{} { + return "equipment.ChassisOperation" +} + // GetAdminLocatorLedAction returns the AdminLocatorLedAction field value if set, zero value otherwise. func (o *EquipmentChassisOperation) GetAdminLocatorLedAction() string { if o == nil || IsNil(o.AdminLocatorLedAction) { @@ -202,7 +212,7 @@ func (o *EquipmentChassisOperation) GetChassisOperationStatusOk() ([]EquipmentCh // HasChassisOperationStatus returns a boolean if a field has been set. func (o *EquipmentChassisOperation) HasChassisOperationStatus() bool { - if o != nil && IsNil(o.ChassisOperationStatus) { + if o != nil && !IsNil(o.ChassisOperationStatus) { return true } @@ -350,7 +360,13 @@ func (o EquipmentChassisOperation) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.AdminLocatorLedAction) { toSerialize["AdminLocatorLedAction"] = o.AdminLocatorLedAction @@ -387,6 +403,13 @@ func (o *EquipmentChassisOperation) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -396,11 +419,23 @@ func (o *EquipmentChassisOperation) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type EquipmentChassisOperationWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_equipment_chassis_operation_list.go b/model_equipment_chassis_operation_list.go index c2987a00ea..dd5aed69f7 100644 --- a/model_equipment_chassis_operation_list.go +++ b/model_equipment_chassis_operation_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *EquipmentChassisOperationList) GetResultsOk() ([]EquipmentChassisOperat // HasResults returns a boolean if a field has been set. func (o *EquipmentChassisOperationList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *EquipmentChassisOperationList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *EquipmentChassisOperationList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type EquipmentChassisOperationListWithoutEmbeddedStruct struct { // The total number of 'equipment.ChassisOperation' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_equipment_chassis_operation_response.go b/model_equipment_chassis_operation_response.go index ea0fcc90d9..c1365c0c6b 100644 --- a/model_equipment_chassis_operation_response.go +++ b/model_equipment_chassis_operation_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_equipment_chassis_operation_status.go b/model_equipment_chassis_operation_status.go index 8ed8c3f6a0..ce5a268746 100644 --- a/model_equipment_chassis_operation_status.go +++ b/model_equipment_chassis_operation_status.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -88,6 +88,11 @@ func (o *EquipmentChassisOperationStatus) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "equipment.ChassisOperationStatus" of the ClassId field. +func (o *EquipmentChassisOperationStatus) GetDefaultClassId() interface{} { + return "equipment.ChassisOperationStatus" +} + // GetObjectType returns the ObjectType field value func (o *EquipmentChassisOperationStatus) GetObjectType() string { if o == nil { @@ -112,6 +117,11 @@ func (o *EquipmentChassisOperationStatus) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "equipment.ChassisOperationStatus" of the ObjectType field. +func (o *EquipmentChassisOperationStatus) GetDefaultObjectType() interface{} { + return "equipment.ChassisOperationStatus" +} + // GetConfigState returns the ConfigState field value if set, zero value otherwise. func (o *EquipmentChassisOperationStatus) GetConfigState() string { if o == nil || IsNil(o.ConfigState) { @@ -258,7 +268,13 @@ func (o EquipmentChassisOperationStatus) ToMap() (map[string]interface{}, error) if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.ConfigState) { toSerialize["ConfigState"] = o.ConfigState @@ -289,6 +305,13 @@ func (o *EquipmentChassisOperationStatus) UnmarshalJSON(data []byte) (err error) "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -298,11 +321,23 @@ func (o *EquipmentChassisOperationStatus) UnmarshalJSON(data []byte) (err error) } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type EquipmentChassisOperationStatusWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_equipment_chassis_relationship.go b/model_equipment_chassis_relationship.go index 167e0a0041..bd0dde5884 100644 --- a/model_equipment_chassis_relationship.go +++ b/model_equipment_chassis_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_equipment_chassis_response.go b/model_equipment_chassis_response.go index 0655033c1b..1a399cb067 100644 --- a/model_equipment_chassis_response.go +++ b/model_equipment_chassis_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_equipment_device_location.go b/model_equipment_device_location.go index 62f1462091..abed584e6e 100644 --- a/model_equipment_device_location.go +++ b/model_equipment_device_location.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -86,6 +86,11 @@ func (o *EquipmentDeviceLocation) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "equipment.DeviceLocation" of the ClassId field. +func (o *EquipmentDeviceLocation) GetDefaultClassId() interface{} { + return "equipment.DeviceLocation" +} + // GetObjectType returns the ObjectType field value func (o *EquipmentDeviceLocation) GetObjectType() string { if o == nil { @@ -110,6 +115,11 @@ func (o *EquipmentDeviceLocation) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "equipment.DeviceLocation" of the ObjectType field. +func (o *EquipmentDeviceLocation) GetDefaultObjectType() interface{} { + return "equipment.DeviceLocation" +} + // GetAddress returns the Address field value if set, zero value otherwise. func (o *EquipmentDeviceLocation) GetAddress() string { if o == nil || IsNil(o.Address) { @@ -224,7 +234,13 @@ func (o EquipmentDeviceLocation) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Address) { toSerialize["Address"] = o.Address @@ -252,6 +268,13 @@ func (o *EquipmentDeviceLocation) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -261,11 +284,23 @@ func (o *EquipmentDeviceLocation) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type EquipmentDeviceLocationWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_equipment_device_summary.go b/model_equipment_device_summary.go index b688d9477d..6acde09c5a 100644 --- a/model_equipment_device_summary.go +++ b/model_equipment_device_summary.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -97,6 +97,11 @@ func (o *EquipmentDeviceSummary) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "equipment.DeviceSummary" of the ClassId field. +func (o *EquipmentDeviceSummary) GetDefaultClassId() interface{} { + return "equipment.DeviceSummary" +} + // GetObjectType returns the ObjectType field value func (o *EquipmentDeviceSummary) GetObjectType() string { if o == nil { @@ -121,6 +126,11 @@ func (o *EquipmentDeviceSummary) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "equipment.DeviceSummary" of the ObjectType field. +func (o *EquipmentDeviceSummary) GetDefaultObjectType() interface{} { + return "equipment.DeviceSummary" +} + // GetDn returns the Dn field value if set, zero value otherwise. func (o *EquipmentDeviceSummary) GetDn() string { if o == nil || IsNil(o.Dn) { @@ -356,7 +366,7 @@ func (o *EquipmentDeviceSummary) GetCustomPermissionResourcesOk() ([]MoBaseMoRel // HasCustomPermissionResources returns a boolean if a field has been set. func (o *EquipmentDeviceSummary) HasCustomPermissionResources() bool { - if o != nil && IsNil(o.CustomPermissionResources) { + if o != nil && !IsNil(o.CustomPermissionResources) { return true } @@ -601,7 +611,13 @@ func (o EquipmentDeviceSummary) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Dn) { toSerialize["Dn"] = o.Dn @@ -656,6 +672,13 @@ func (o *EquipmentDeviceSummary) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -665,11 +688,23 @@ func (o *EquipmentDeviceSummary) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type EquipmentDeviceSummaryWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_equipment_device_summary_list.go b/model_equipment_device_summary_list.go index 1ee2cf9ec7..98c840939f 100644 --- a/model_equipment_device_summary_list.go +++ b/model_equipment_device_summary_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *EquipmentDeviceSummaryList) GetResultsOk() ([]EquipmentDeviceSummary, b // HasResults returns a boolean if a field has been set. func (o *EquipmentDeviceSummaryList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *EquipmentDeviceSummaryList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *EquipmentDeviceSummaryList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type EquipmentDeviceSummaryListWithoutEmbeddedStruct struct { // The total number of 'equipment.DeviceSummary' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_equipment_device_summary_response.go b/model_equipment_device_summary_response.go index ddffc1e397..d0049589f8 100644 --- a/model_equipment_device_summary_response.go +++ b/model_equipment_device_summary_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_equipment_end_point_log.go b/model_equipment_end_point_log.go index 7af6c9f02f..f906c81032 100644 --- a/model_equipment_end_point_log.go +++ b/model_equipment_end_point_log.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -93,6 +93,11 @@ func (o *EquipmentEndPointLog) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "equipment.EndPointLog" of the ClassId field. +func (o *EquipmentEndPointLog) GetDefaultClassId() interface{} { + return "equipment.EndPointLog" +} + // GetObjectType returns the ObjectType field value func (o *EquipmentEndPointLog) GetObjectType() string { if o == nil { @@ -117,6 +122,11 @@ func (o *EquipmentEndPointLog) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "equipment.EndPointLog" of the ObjectType field. +func (o *EquipmentEndPointLog) GetDefaultObjectType() interface{} { + return "equipment.EndPointLog" +} + // GetCollectionTime returns the CollectionTime field value if set, zero value otherwise. func (o *EquipmentEndPointLog) GetCollectionTime() time.Time { if o == nil || IsNil(o.CollectionTime) { @@ -381,7 +391,13 @@ func (o EquipmentEndPointLog) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.CollectionTime) { toSerialize["CollectionTime"] = o.CollectionTime @@ -421,6 +437,13 @@ func (o *EquipmentEndPointLog) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -430,11 +453,23 @@ func (o *EquipmentEndPointLog) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type EquipmentEndPointLogWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_equipment_end_point_log_list.go b/model_equipment_end_point_log_list.go index 075adba394..ac888b2740 100644 --- a/model_equipment_end_point_log_list.go +++ b/model_equipment_end_point_log_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *EquipmentEndPointLogList) GetResultsOk() ([]EquipmentEndPointLog, bool) // HasResults returns a boolean if a field has been set. func (o *EquipmentEndPointLogList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *EquipmentEndPointLogList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *EquipmentEndPointLogList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type EquipmentEndPointLogListWithoutEmbeddedStruct struct { // The total number of 'equipment.EndPointLog' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_equipment_end_point_log_response.go b/model_equipment_end_point_log_response.go index 16d695285f..76be85d109 100644 --- a/model_equipment_end_point_log_response.go +++ b/model_equipment_end_point_log_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_equipment_expander_module.go b/model_equipment_expander_module.go index 17d4649ad8..e08aa910d9 100644 --- a/model_equipment_expander_module.go +++ b/model_equipment_expander_module.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -91,6 +91,11 @@ func (o *EquipmentExpanderModule) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "equipment.ExpanderModule" of the ClassId field. +func (o *EquipmentExpanderModule) GetDefaultClassId() interface{} { + return "equipment.ExpanderModule" +} + // GetObjectType returns the ObjectType field value func (o *EquipmentExpanderModule) GetObjectType() string { if o == nil { @@ -115,6 +120,11 @@ func (o *EquipmentExpanderModule) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "equipment.ExpanderModule" of the ObjectType field. +func (o *EquipmentExpanderModule) GetDefaultObjectType() interface{} { + return "equipment.ExpanderModule" +} + // GetModuleId returns the ModuleId field value if set, zero value otherwise. func (o *EquipmentExpanderModule) GetModuleId() int64 { if o == nil || IsNil(o.ModuleId) { @@ -168,7 +178,7 @@ func (o *EquipmentExpanderModule) GetOperReasonOk() ([]string, bool) { // HasOperReason returns a boolean if a field has been set. func (o *EquipmentExpanderModule) HasOperReason() bool { - if o != nil && IsNil(o.OperReason) { + if o != nil && !IsNil(o.OperReason) { return true } @@ -308,7 +318,7 @@ func (o *EquipmentExpanderModule) GetFanModulesOk() ([]EquipmentFanModuleRelatio // HasFanModules returns a boolean if a field has been set. func (o *EquipmentExpanderModule) HasFanModules() bool { - if o != nil && IsNil(o.FanModules) { + if o != nil && !IsNil(o.FanModules) { return true } @@ -381,7 +391,13 @@ func (o EquipmentExpanderModule) ToMap() (map[string]interface{}, error) { if errEquipmentBase != nil { return map[string]interface{}{}, errEquipmentBase } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.ModuleId) { toSerialize["ModuleId"] = o.ModuleId @@ -421,6 +437,13 @@ func (o *EquipmentExpanderModule) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -430,11 +453,23 @@ func (o *EquipmentExpanderModule) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type EquipmentExpanderModuleWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_equipment_expander_module_list.go b/model_equipment_expander_module_list.go index ec15158db6..e293ba77a5 100644 --- a/model_equipment_expander_module_list.go +++ b/model_equipment_expander_module_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *EquipmentExpanderModuleList) GetResultsOk() ([]EquipmentExpanderModule, // HasResults returns a boolean if a field has been set. func (o *EquipmentExpanderModuleList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *EquipmentExpanderModuleList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *EquipmentExpanderModuleList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type EquipmentExpanderModuleListWithoutEmbeddedStruct struct { // The total number of 'equipment.ExpanderModule' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_equipment_expander_module_relationship.go b/model_equipment_expander_module_relationship.go index aa80aae471..df845462d1 100644 --- a/model_equipment_expander_module_relationship.go +++ b/model_equipment_expander_module_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_equipment_expander_module_response.go b/model_equipment_expander_module_response.go index 2635c77e1a..5653a6eaa4 100644 --- a/model_equipment_expander_module_response.go +++ b/model_equipment_expander_module_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_equipment_fan.go b/model_equipment_fan.go index a046c55825..7d90d58f4f 100644 --- a/model_equipment_fan.go +++ b/model_equipment_fan.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -105,6 +105,11 @@ func (o *EquipmentFan) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "equipment.Fan" of the ClassId field. +func (o *EquipmentFan) GetDefaultClassId() interface{} { + return "equipment.Fan" +} + // GetObjectType returns the ObjectType field value func (o *EquipmentFan) GetObjectType() string { if o == nil { @@ -129,6 +134,11 @@ func (o *EquipmentFan) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "equipment.Fan" of the ObjectType field. +func (o *EquipmentFan) GetDefaultObjectType() interface{} { + return "equipment.Fan" +} + // GetDescription returns the Description field value if set, zero value otherwise. func (o *EquipmentFan) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -278,7 +288,7 @@ func (o *EquipmentFan) GetOperReasonOk() ([]string, bool) { // HasOperReason returns a boolean if a field has been set. func (o *EquipmentFan) HasOperReason() bool { - if o != nil && IsNil(o.OperReason) { + if o != nil && !IsNil(o.OperReason) { return true } @@ -672,7 +682,13 @@ func (o EquipmentFan) ToMap() (map[string]interface{}, error) { if errEquipmentBase != nil { return map[string]interface{}{}, errEquipmentBase } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Description) { toSerialize["Description"] = o.Description @@ -736,6 +752,13 @@ func (o *EquipmentFan) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -745,11 +768,23 @@ func (o *EquipmentFan) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type EquipmentFanWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_equipment_fan_control.go b/model_equipment_fan_control.go index 302ee88ba3..a15901a1bc 100644 --- a/model_equipment_fan_control.go +++ b/model_equipment_fan_control.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -85,6 +85,11 @@ func (o *EquipmentFanControl) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "equipment.FanControl" of the ClassId field. +func (o *EquipmentFanControl) GetDefaultClassId() interface{} { + return "equipment.FanControl" +} + // GetObjectType returns the ObjectType field value func (o *EquipmentFanControl) GetObjectType() string { if o == nil { @@ -109,6 +114,11 @@ func (o *EquipmentFanControl) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "equipment.FanControl" of the ObjectType field. +func (o *EquipmentFanControl) GetDefaultObjectType() interface{} { + return "equipment.FanControl" +} + // GetMode returns the Mode field value if set, zero value otherwise. func (o *EquipmentFanControl) GetMode() string { if o == nil || IsNil(o.Mode) { @@ -288,7 +298,13 @@ func (o EquipmentFanControl) ToMap() (map[string]interface{}, error) { if errEquipmentBase != nil { return map[string]interface{}{}, errEquipmentBase } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Mode) { toSerialize["Mode"] = o.Mode @@ -319,6 +335,13 @@ func (o *EquipmentFanControl) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -328,11 +351,23 @@ func (o *EquipmentFanControl) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type EquipmentFanControlWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_equipment_fan_control_list.go b/model_equipment_fan_control_list.go index 34f3d6e657..441b55eb4f 100644 --- a/model_equipment_fan_control_list.go +++ b/model_equipment_fan_control_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *EquipmentFanControlList) GetResultsOk() ([]EquipmentFanControl, bool) { // HasResults returns a boolean if a field has been set. func (o *EquipmentFanControlList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *EquipmentFanControlList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *EquipmentFanControlList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type EquipmentFanControlListWithoutEmbeddedStruct struct { // The total number of 'equipment.FanControl' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_equipment_fan_control_relationship.go b/model_equipment_fan_control_relationship.go index 6bc0f602ee..7b6f4b3b1e 100644 --- a/model_equipment_fan_control_relationship.go +++ b/model_equipment_fan_control_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_equipment_fan_control_response.go b/model_equipment_fan_control_response.go index d25dd842fb..7893bcff19 100644 --- a/model_equipment_fan_control_response.go +++ b/model_equipment_fan_control_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_equipment_fan_list.go b/model_equipment_fan_list.go index f71c902cdd..be3a612141 100644 --- a/model_equipment_fan_list.go +++ b/model_equipment_fan_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *EquipmentFanList) GetResultsOk() ([]EquipmentFan, bool) { // HasResults returns a boolean if a field has been set. func (o *EquipmentFanList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *EquipmentFanList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *EquipmentFanList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type EquipmentFanListWithoutEmbeddedStruct struct { // The total number of 'equipment.Fan' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_equipment_fan_module.go b/model_equipment_fan_module.go index 2be3783212..d74a74dde0 100644 --- a/model_equipment_fan_module.go +++ b/model_equipment_fan_module.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -109,6 +109,11 @@ func (o *EquipmentFanModule) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "equipment.FanModule" of the ClassId field. +func (o *EquipmentFanModule) GetDefaultClassId() interface{} { + return "equipment.FanModule" +} + // GetObjectType returns the ObjectType field value func (o *EquipmentFanModule) GetObjectType() string { if o == nil { @@ -133,6 +138,11 @@ func (o *EquipmentFanModule) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "equipment.FanModule" of the ObjectType field. +func (o *EquipmentFanModule) GetDefaultObjectType() interface{} { + return "equipment.FanModule" +} + // GetDescription returns the Description field value if set, zero value otherwise. func (o *EquipmentFanModule) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -218,7 +228,7 @@ func (o *EquipmentFanModule) GetOperReasonOk() ([]string, bool) { // HasOperReason returns a boolean if a field has been set. func (o *EquipmentFanModule) HasOperReason() bool { - if o != nil && IsNil(o.OperReason) { + if o != nil && !IsNil(o.OperReason) { return true } @@ -690,7 +700,7 @@ func (o *EquipmentFanModule) GetFansOk() ([]EquipmentFanRelationship, bool) { // HasFans returns a boolean if a field has been set. func (o *EquipmentFanModule) HasFans() bool { - if o != nil && IsNil(o.Fans) { + if o != nil && !IsNil(o.Fans) { return true } @@ -849,7 +859,13 @@ func (o EquipmentFanModule) ToMap() (map[string]interface{}, error) { if errEquipmentBase != nil { return map[string]interface{}{}, errEquipmentBase } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Description) { toSerialize["Description"] = o.Description @@ -925,6 +941,13 @@ func (o *EquipmentFanModule) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -934,11 +957,23 @@ func (o *EquipmentFanModule) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type EquipmentFanModuleWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_equipment_fan_module_list.go b/model_equipment_fan_module_list.go index 746ca5a085..934916c5cc 100644 --- a/model_equipment_fan_module_list.go +++ b/model_equipment_fan_module_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *EquipmentFanModuleList) GetResultsOk() ([]EquipmentFanModule, bool) { // HasResults returns a boolean if a field has been set. func (o *EquipmentFanModuleList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *EquipmentFanModuleList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *EquipmentFanModuleList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type EquipmentFanModuleListWithoutEmbeddedStruct struct { // The total number of 'equipment.FanModule' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_equipment_fan_module_relationship.go b/model_equipment_fan_module_relationship.go index a302d8deed..932fd4f722 100644 --- a/model_equipment_fan_module_relationship.go +++ b/model_equipment_fan_module_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_equipment_fan_module_response.go b/model_equipment_fan_module_response.go index ba941f0d87..ccd5589f23 100644 --- a/model_equipment_fan_module_response.go +++ b/model_equipment_fan_module_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_equipment_fan_relationship.go b/model_equipment_fan_relationship.go index 645ede4201..5766f59192 100644 --- a/model_equipment_fan_relationship.go +++ b/model_equipment_fan_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_equipment_fan_response.go b/model_equipment_fan_response.go index befc068222..22fa6a5fbc 100644 --- a/model_equipment_fan_response.go +++ b/model_equipment_fan_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_equipment_fex.go b/model_equipment_fex.go index 2f20fe9383..dde3d5ee62 100644 --- a/model_equipment_fex.go +++ b/model_equipment_fex.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -94,6 +94,11 @@ func (o *EquipmentFex) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "equipment.Fex" of the ClassId field. +func (o *EquipmentFex) GetDefaultClassId() interface{} { + return "equipment.Fex" +} + // GetObjectType returns the ObjectType field value func (o *EquipmentFex) GetObjectType() string { if o == nil { @@ -118,6 +123,11 @@ func (o *EquipmentFex) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "equipment.Fex" of the ObjectType field. +func (o *EquipmentFex) GetDefaultObjectType() interface{} { + return "equipment.Fex" +} + // GetConnectionPath returns the ConnectionPath field value if set, zero value otherwise. func (o *EquipmentFex) GetConnectionPath() string { if o == nil || IsNil(o.ConnectionPath) { @@ -203,7 +213,7 @@ func (o *EquipmentFex) GetFansOk() ([]EquipmentFanRelationship, bool) { // HasFans returns a boolean if a field has been set. func (o *EquipmentFex) HasFans() bool { - if o != nil && IsNil(o.Fans) { + if o != nil && !IsNil(o.Fans) { return true } @@ -279,7 +289,7 @@ func (o *EquipmentFex) GetIomsOk() ([]EquipmentIoCardRelationship, bool) { // HasIoms returns a boolean if a field has been set. func (o *EquipmentFex) HasIoms() bool { - if o != nil && IsNil(o.Ioms) { + if o != nil && !IsNil(o.Ioms) { return true } @@ -398,7 +408,7 @@ func (o *EquipmentFex) GetPsusOk() ([]EquipmentPsuRelationship, bool) { // HasPsus returns a boolean if a field has been set. func (o *EquipmentFex) HasPsus() bool { - if o != nil && IsNil(o.Psus) { + if o != nil && !IsNil(o.Psus) { return true } @@ -471,7 +481,13 @@ func (o EquipmentFex) ToMap() (map[string]interface{}, error) { if errEquipmentIoCardBase != nil { return map[string]interface{}{}, errEquipmentIoCardBase } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.ConnectionPath) { toSerialize["ConnectionPath"] = o.ConnectionPath @@ -517,6 +533,13 @@ func (o *EquipmentFex) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -526,11 +549,23 @@ func (o *EquipmentFex) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type EquipmentFexWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_equipment_fex_identity.go b/model_equipment_fex_identity.go index 883704a6c7..efbd984809 100644 --- a/model_equipment_fex_identity.go +++ b/model_equipment_fex_identity.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -86,6 +86,11 @@ func (o *EquipmentFexIdentity) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "equipment.FexIdentity" of the ClassId field. +func (o *EquipmentFexIdentity) GetDefaultClassId() interface{} { + return "equipment.FexIdentity" +} + // GetObjectType returns the ObjectType field value func (o *EquipmentFexIdentity) GetObjectType() string { if o == nil { @@ -110,6 +115,11 @@ func (o *EquipmentFexIdentity) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "equipment.FexIdentity" of the ObjectType field. +func (o *EquipmentFexIdentity) GetDefaultObjectType() interface{} { + return "equipment.FexIdentity" +} + // GetSwitchId returns the SwitchId field value if set, zero value otherwise. func (o *EquipmentFexIdentity) GetSwitchId() int64 { if o == nil || IsNil(o.SwitchId) { @@ -246,7 +256,13 @@ func (o EquipmentFexIdentity) ToMap() (map[string]interface{}, error) { if errEquipmentPhysicalIdentity != nil { return map[string]interface{}{}, errEquipmentPhysicalIdentity } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.SwitchId) { toSerialize["SwitchId"] = o.SwitchId @@ -274,6 +290,13 @@ func (o *EquipmentFexIdentity) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -283,11 +306,23 @@ func (o *EquipmentFexIdentity) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type EquipmentFexIdentityWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_equipment_fex_identity_list.go b/model_equipment_fex_identity_list.go index 10edf023bf..f87d164d8b 100644 --- a/model_equipment_fex_identity_list.go +++ b/model_equipment_fex_identity_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *EquipmentFexIdentityList) GetResultsOk() ([]EquipmentFexIdentity, bool) // HasResults returns a boolean if a field has been set. func (o *EquipmentFexIdentityList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *EquipmentFexIdentityList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *EquipmentFexIdentityList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type EquipmentFexIdentityListWithoutEmbeddedStruct struct { // The total number of 'equipment.FexIdentity' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_equipment_fex_identity_response.go b/model_equipment_fex_identity_response.go index 4d2c76eaf0..6e3bcd450b 100644 --- a/model_equipment_fex_identity_response.go +++ b/model_equipment_fex_identity_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_equipment_fex_list.go b/model_equipment_fex_list.go index dfae66ea10..01a5d9765f 100644 --- a/model_equipment_fex_list.go +++ b/model_equipment_fex_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *EquipmentFexList) GetResultsOk() ([]EquipmentFex, bool) { // HasResults returns a boolean if a field has been set. func (o *EquipmentFexList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *EquipmentFexList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *EquipmentFexList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type EquipmentFexListWithoutEmbeddedStruct struct { // The total number of 'equipment.Fex' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_equipment_fex_operation.go b/model_equipment_fex_operation.go index 0fdb10b6fc..658fd73a13 100644 --- a/model_equipment_fex_operation.go +++ b/model_equipment_fex_operation.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -90,6 +90,11 @@ func (o *EquipmentFexOperation) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "equipment.FexOperation" of the ClassId field. +func (o *EquipmentFexOperation) GetDefaultClassId() interface{} { + return "equipment.FexOperation" +} + // GetObjectType returns the ObjectType field value func (o *EquipmentFexOperation) GetObjectType() string { if o == nil { @@ -114,6 +119,11 @@ func (o *EquipmentFexOperation) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "equipment.FexOperation" of the ObjectType field. +func (o *EquipmentFexOperation) GetDefaultObjectType() interface{} { + return "equipment.FexOperation" +} + // GetAdminLocatorLedAction returns the AdminLocatorLedAction field value if set, zero value otherwise. func (o *EquipmentFexOperation) GetAdminLocatorLedAction() string { if o == nil || IsNil(o.AdminLocatorLedAction) { @@ -282,7 +292,13 @@ func (o EquipmentFexOperation) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.AdminLocatorLedAction) { toSerialize["AdminLocatorLedAction"] = o.AdminLocatorLedAction @@ -313,6 +329,13 @@ func (o *EquipmentFexOperation) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -322,11 +345,23 @@ func (o *EquipmentFexOperation) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type EquipmentFexOperationWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_equipment_fex_operation_list.go b/model_equipment_fex_operation_list.go index df5e3c89f8..5bdeab4d1f 100644 --- a/model_equipment_fex_operation_list.go +++ b/model_equipment_fex_operation_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *EquipmentFexOperationList) GetResultsOk() ([]EquipmentFexOperation, boo // HasResults returns a boolean if a field has been set. func (o *EquipmentFexOperationList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *EquipmentFexOperationList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *EquipmentFexOperationList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type EquipmentFexOperationListWithoutEmbeddedStruct struct { // The total number of 'equipment.FexOperation' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_equipment_fex_operation_response.go b/model_equipment_fex_operation_response.go index ace72d8545..4dcf8d5c35 100644 --- a/model_equipment_fex_operation_response.go +++ b/model_equipment_fex_operation_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_equipment_fex_relationship.go b/model_equipment_fex_relationship.go index 6fe6358b13..f55aebbb27 100644 --- a/model_equipment_fex_relationship.go +++ b/model_equipment_fex_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_equipment_fex_response.go b/model_equipment_fex_response.go index 63f5ba031d..6e793a5efa 100644 --- a/model_equipment_fex_response.go +++ b/model_equipment_fex_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_equipment_fru.go b/model_equipment_fru.go index 9c36114e20..3610f38b55 100644 --- a/model_equipment_fru.go +++ b/model_equipment_fru.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -89,6 +89,11 @@ func (o *EquipmentFru) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "equipment.Fru" of the ClassId field. +func (o *EquipmentFru) GetDefaultClassId() interface{} { + return "equipment.Fru" +} + // GetObjectType returns the ObjectType field value func (o *EquipmentFru) GetObjectType() string { if o == nil { @@ -113,6 +118,11 @@ func (o *EquipmentFru) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "equipment.Fru" of the ObjectType field. +func (o *EquipmentFru) GetDefaultObjectType() interface{} { + return "equipment.Fru" +} + // GetAction returns the Action field value if set, zero value otherwise. func (o *EquipmentFru) GetAction() string { if o == nil || IsNil(o.Action) { @@ -292,7 +302,13 @@ func (o EquipmentFru) ToMap() (map[string]interface{}, error) { if errEquipmentBase != nil { return map[string]interface{}{}, errEquipmentBase } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Action) { toSerialize["Action"] = o.Action @@ -323,6 +339,13 @@ func (o *EquipmentFru) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -332,11 +355,23 @@ func (o *EquipmentFru) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type EquipmentFruWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_equipment_fru_list.go b/model_equipment_fru_list.go index e355ad2f00..f0b9c40737 100644 --- a/model_equipment_fru_list.go +++ b/model_equipment_fru_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *EquipmentFruList) GetResultsOk() ([]EquipmentFru, bool) { // HasResults returns a boolean if a field has been set. func (o *EquipmentFruList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *EquipmentFruList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *EquipmentFruList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type EquipmentFruListWithoutEmbeddedStruct struct { // The total number of 'equipment.Fru' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_equipment_fru_relationship.go b/model_equipment_fru_relationship.go index 35bed0743d..95f384321b 100644 --- a/model_equipment_fru_relationship.go +++ b/model_equipment_fru_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_equipment_fru_response.go b/model_equipment_fru_response.go index 04ca94824c..8f2bf130e4 100644 --- a/model_equipment_fru_response.go +++ b/model_equipment_fru_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_equipment_hybrid_drive_slot.go b/model_equipment_hybrid_drive_slot.go index 6e3fca11ca..565e0d473d 100644 --- a/model_equipment_hybrid_drive_slot.go +++ b/model_equipment_hybrid_drive_slot.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -88,6 +88,11 @@ func (o *EquipmentHybridDriveSlot) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "equipment.HybridDriveSlot" of the ClassId field. +func (o *EquipmentHybridDriveSlot) GetDefaultClassId() interface{} { + return "equipment.HybridDriveSlot" +} + // GetObjectType returns the ObjectType field value func (o *EquipmentHybridDriveSlot) GetObjectType() string { if o == nil { @@ -112,6 +117,11 @@ func (o *EquipmentHybridDriveSlot) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "equipment.HybridDriveSlot" of the ObjectType field. +func (o *EquipmentHybridDriveSlot) GetDefaultObjectType() interface{} { + return "equipment.HybridDriveSlot" +} + // GetCurrentMode returns the CurrentMode field value if set, zero value otherwise. func (o *EquipmentHybridDriveSlot) GetCurrentMode() string { if o == nil || IsNil(o.CurrentMode) { @@ -366,7 +376,13 @@ func (o EquipmentHybridDriveSlot) ToMap() (map[string]interface{}, error) { if errEquipmentSlot != nil { return map[string]interface{}{}, errEquipmentSlot } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.CurrentMode) { toSerialize["CurrentMode"] = o.CurrentMode @@ -403,6 +419,13 @@ func (o *EquipmentHybridDriveSlot) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -412,11 +435,23 @@ func (o *EquipmentHybridDriveSlot) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type EquipmentHybridDriveSlotWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_equipment_hybrid_drive_slot_list.go b/model_equipment_hybrid_drive_slot_list.go index db00496f89..667ac1b611 100644 --- a/model_equipment_hybrid_drive_slot_list.go +++ b/model_equipment_hybrid_drive_slot_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *EquipmentHybridDriveSlotList) GetResultsOk() ([]EquipmentHybridDriveSlo // HasResults returns a boolean if a field has been set. func (o *EquipmentHybridDriveSlotList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *EquipmentHybridDriveSlotList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *EquipmentHybridDriveSlotList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type EquipmentHybridDriveSlotListWithoutEmbeddedStruct struct { // The total number of 'equipment.HybridDriveSlot' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_equipment_hybrid_drive_slot_relationship.go b/model_equipment_hybrid_drive_slot_relationship.go index 539eea60bd..810120c16a 100644 --- a/model_equipment_hybrid_drive_slot_relationship.go +++ b/model_equipment_hybrid_drive_slot_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_equipment_hybrid_drive_slot_response.go b/model_equipment_hybrid_drive_slot_response.go index fba24382ff..304b58c3c7 100644 --- a/model_equipment_hybrid_drive_slot_response.go +++ b/model_equipment_hybrid_drive_slot_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_equipment_identity.go b/model_equipment_identity.go index 444283b582..1e027b0b56 100644 --- a/model_equipment_identity.go +++ b/model_equipment_identity.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -435,7 +435,7 @@ func (o *EquipmentIdentity) GetCustomPermissionResourcesOk() ([]MoBaseMoRelation // HasCustomPermissionResources returns a boolean if a field has been set. func (o *EquipmentIdentity) HasCustomPermissionResources() bool { - if o != nil && IsNil(o.CustomPermissionResources) { + if o != nil && !IsNil(o.CustomPermissionResources) { return true } @@ -560,6 +560,10 @@ func (o *EquipmentIdentity) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -569,11 +573,23 @@ func (o *EquipmentIdentity) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type EquipmentIdentityWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. The enum values provides the list of concrete types that can be instantiated from this abstract type. ClassId string `json:"ClassId"` diff --git a/model_equipment_io_card.go b/model_equipment_io_card.go index e1a9cc6b73..ee40c43f00 100644 --- a/model_equipment_io_card.go +++ b/model_equipment_io_card.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -94,6 +94,11 @@ func (o *EquipmentIoCard) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "equipment.IoCard" of the ClassId field. +func (o *EquipmentIoCard) GetDefaultClassId() interface{} { + return "equipment.IoCard" +} + // GetObjectType returns the ObjectType field value func (o *EquipmentIoCard) GetObjectType() string { if o == nil { @@ -118,6 +123,11 @@ func (o *EquipmentIoCard) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "equipment.IoCard" of the ObjectType field. +func (o *EquipmentIoCard) GetDefaultObjectType() interface{} { + return "equipment.IoCard" +} + // GetConnectionPath returns the ConnectionPath field value if set, zero value otherwise. func (o *EquipmentIoCard) GetConnectionPath() string { if o == nil || IsNil(o.ConnectionPath) { @@ -203,7 +213,7 @@ func (o *EquipmentIoCard) GetInbandIpAddressesOk() ([]ComputeIpAddress, bool) { // HasInbandIpAddresses returns a boolean if a field has been set. func (o *EquipmentIoCard) HasInbandIpAddresses() bool { - if o != nil && IsNil(o.InbandIpAddresses) { + if o != nil && !IsNil(o.InbandIpAddresses) { return true } @@ -354,7 +364,7 @@ func (o *EquipmentIoCard) GetFanModulesOk() ([]EquipmentFanModuleRelationship, b // HasFanModules returns a boolean if a field has been set. func (o *EquipmentIoCard) HasFanModules() bool { - if o != nil && IsNil(o.FanModules) { + if o != nil && !IsNil(o.FanModules) { return true } @@ -513,7 +523,13 @@ func (o EquipmentIoCard) ToMap() (map[string]interface{}, error) { if errEquipmentIoCardBase != nil { return map[string]interface{}{}, errEquipmentIoCardBase } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.ConnectionPath) { toSerialize["ConnectionPath"] = o.ConnectionPath @@ -562,6 +578,13 @@ func (o *EquipmentIoCard) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -571,11 +594,23 @@ func (o *EquipmentIoCard) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type EquipmentIoCardWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_equipment_io_card_base.go b/model_equipment_io_card_base.go index 60b159a5b7..391f7dd821 100644 --- a/model_equipment_io_card_base.go +++ b/model_equipment_io_card_base.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -245,7 +245,7 @@ func (o *EquipmentIoCardBase) GetOperReasonOk() ([]string, bool) { // HasOperReason returns a boolean if a field has been set. func (o *EquipmentIoCardBase) HasOperReason() bool { - if o != nil && IsNil(o.OperReason) { + if o != nil && !IsNil(o.OperReason) { return true } @@ -502,7 +502,7 @@ func (o *EquipmentIoCardBase) GetHostPortsOk() ([]EtherHostPortRelationship, boo // HasHostPorts returns a boolean if a field has been set. func (o *EquipmentIoCardBase) HasHostPorts() bool { - if o != nil && IsNil(o.HostPorts) { + if o != nil && !IsNil(o.HostPorts) { return true } @@ -578,7 +578,7 @@ func (o *EquipmentIoCardBase) GetNetworkPortsOk() ([]EtherNetworkPortRelationshi // HasNetworkPorts returns a boolean if a field has been set. func (o *EquipmentIoCardBase) HasNetworkPorts() bool { - if o != nil && IsNil(o.NetworkPorts) { + if o != nil && !IsNil(o.NetworkPorts) { return true } @@ -611,7 +611,7 @@ func (o *EquipmentIoCardBase) GetSubGroupOk() ([]PortSubGroupRelationship, bool) // HasSubGroup returns a boolean if a field has been set. func (o *EquipmentIoCardBase) HasSubGroup() bool { - if o != nil && IsNil(o.SubGroup) { + if o != nil && !IsNil(o.SubGroup) { return true } @@ -705,6 +705,10 @@ func (o *EquipmentIoCardBase) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -714,11 +718,23 @@ func (o *EquipmentIoCardBase) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type EquipmentIoCardBaseWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. The enum values provides the list of concrete types that can be instantiated from this abstract type. ClassId string `json:"ClassId"` diff --git a/model_equipment_io_card_base_relationship.go b/model_equipment_io_card_base_relationship.go index b0a35e2ddc..e0b915850a 100644 --- a/model_equipment_io_card_base_relationship.go +++ b/model_equipment_io_card_base_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_equipment_io_card_identity.go b/model_equipment_io_card_identity.go index a204772033..d023dc6203 100644 --- a/model_equipment_io_card_identity.go +++ b/model_equipment_io_card_identity.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -96,6 +96,11 @@ func (o *EquipmentIoCardIdentity) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "equipment.IoCardIdentity" of the ClassId field. +func (o *EquipmentIoCardIdentity) GetDefaultClassId() interface{} { + return "equipment.IoCardIdentity" +} + // GetObjectType returns the ObjectType field value func (o *EquipmentIoCardIdentity) GetObjectType() string { if o == nil { @@ -120,6 +125,11 @@ func (o *EquipmentIoCardIdentity) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "equipment.IoCardIdentity" of the ObjectType field. +func (o *EquipmentIoCardIdentity) GetDefaultObjectType() interface{} { + return "equipment.IoCardIdentity" +} + // GetIoCardMoid returns the IoCardMoid field value if set, zero value otherwise. func (o *EquipmentIoCardIdentity) GetIoCardMoid() string { if o == nil || IsNil(o.IoCardMoid) { @@ -394,7 +404,13 @@ func (o EquipmentIoCardIdentity) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.IoCardMoid) { toSerialize["IoCardMoid"] = o.IoCardMoid @@ -437,6 +453,13 @@ func (o *EquipmentIoCardIdentity) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -446,11 +469,23 @@ func (o *EquipmentIoCardIdentity) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type EquipmentIoCardIdentityWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_equipment_io_card_list.go b/model_equipment_io_card_list.go index e2bdd9fc5f..92d3f6808f 100644 --- a/model_equipment_io_card_list.go +++ b/model_equipment_io_card_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *EquipmentIoCardList) GetResultsOk() ([]EquipmentIoCard, bool) { // HasResults returns a boolean if a field has been set. func (o *EquipmentIoCardList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *EquipmentIoCardList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *EquipmentIoCardList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type EquipmentIoCardListWithoutEmbeddedStruct struct { // The total number of 'equipment.IoCard' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_equipment_io_card_operation.go b/model_equipment_io_card_operation.go index c37e43915b..3aa76e77b2 100644 --- a/model_equipment_io_card_operation.go +++ b/model_equipment_io_card_operation.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -97,6 +97,11 @@ func (o *EquipmentIoCardOperation) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "equipment.IoCardOperation" of the ClassId field. +func (o *EquipmentIoCardOperation) GetDefaultClassId() interface{} { + return "equipment.IoCardOperation" +} + // GetObjectType returns the ObjectType field value func (o *EquipmentIoCardOperation) GetObjectType() string { if o == nil { @@ -121,6 +126,11 @@ func (o *EquipmentIoCardOperation) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "equipment.IoCardOperation" of the ObjectType field. +func (o *EquipmentIoCardOperation) GetDefaultObjectType() interface{} { + return "equipment.IoCardOperation" +} + // GetAdminPeerPowerState returns the AdminPeerPowerState field value if set, zero value otherwise. func (o *EquipmentIoCardOperation) GetAdminPeerPowerState() string { if o == nil || IsNil(o.AdminPeerPowerState) { @@ -238,7 +248,7 @@ func (o *EquipmentIoCardOperation) GetIoCardOperationStatusOk() ([]EquipmentIoCa // HasIoCardOperationStatus returns a boolean if a field has been set. func (o *EquipmentIoCardOperation) HasIoCardOperationStatus() bool { - if o != nil && IsNil(o.IoCardOperationStatus) { + if o != nil && !IsNil(o.IoCardOperationStatus) { return true } @@ -354,7 +364,13 @@ func (o EquipmentIoCardOperation) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.AdminPeerPowerState) { toSerialize["AdminPeerPowerState"] = o.AdminPeerPowerState @@ -391,6 +407,13 @@ func (o *EquipmentIoCardOperation) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -400,11 +423,23 @@ func (o *EquipmentIoCardOperation) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type EquipmentIoCardOperationWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_equipment_io_card_operation_list.go b/model_equipment_io_card_operation_list.go index b660252595..b3211060e7 100644 --- a/model_equipment_io_card_operation_list.go +++ b/model_equipment_io_card_operation_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *EquipmentIoCardOperationList) GetResultsOk() ([]EquipmentIoCardOperatio // HasResults returns a boolean if a field has been set. func (o *EquipmentIoCardOperationList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *EquipmentIoCardOperationList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *EquipmentIoCardOperationList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type EquipmentIoCardOperationListWithoutEmbeddedStruct struct { // The total number of 'equipment.IoCardOperation' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_equipment_io_card_operation_response.go b/model_equipment_io_card_operation_response.go index 55a4e7e330..fe19a7f230 100644 --- a/model_equipment_io_card_operation_response.go +++ b/model_equipment_io_card_operation_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_equipment_io_card_operation_status.go b/model_equipment_io_card_operation_status.go index 37a50572e9..ae89581264 100644 --- a/model_equipment_io_card_operation_status.go +++ b/model_equipment_io_card_operation_status.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -86,6 +86,11 @@ func (o *EquipmentIoCardOperationStatus) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "equipment.IoCardOperationStatus" of the ClassId field. +func (o *EquipmentIoCardOperationStatus) GetDefaultClassId() interface{} { + return "equipment.IoCardOperationStatus" +} + // GetObjectType returns the ObjectType field value func (o *EquipmentIoCardOperationStatus) GetObjectType() string { if o == nil { @@ -110,6 +115,11 @@ func (o *EquipmentIoCardOperationStatus) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "equipment.IoCardOperationStatus" of the ObjectType field. +func (o *EquipmentIoCardOperationStatus) GetDefaultObjectType() interface{} { + return "equipment.IoCardOperationStatus" +} + // GetConfigState returns the ConfigState field value if set, zero value otherwise. func (o *EquipmentIoCardOperationStatus) GetConfigState() string { if o == nil || IsNil(o.ConfigState) { @@ -224,7 +234,13 @@ func (o EquipmentIoCardOperationStatus) ToMap() (map[string]interface{}, error) if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.ConfigState) { toSerialize["ConfigState"] = o.ConfigState @@ -252,6 +268,13 @@ func (o *EquipmentIoCardOperationStatus) UnmarshalJSON(data []byte) (err error) "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -261,11 +284,23 @@ func (o *EquipmentIoCardOperationStatus) UnmarshalJSON(data []byte) (err error) } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type EquipmentIoCardOperationStatusWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_equipment_io_card_relationship.go b/model_equipment_io_card_relationship.go index ba2f24d08e..f61c63097e 100644 --- a/model_equipment_io_card_relationship.go +++ b/model_equipment_io_card_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_equipment_io_card_response.go b/model_equipment_io_card_response.go index 3fe4bd1229..4b65fae271 100644 --- a/model_equipment_io_card_response.go +++ b/model_equipment_io_card_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_equipment_io_expander.go b/model_equipment_io_expander.go index 56ad9aa12b..3ac591b864 100644 --- a/model_equipment_io_expander.go +++ b/model_equipment_io_expander.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -85,6 +85,11 @@ func (o *EquipmentIoExpander) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "equipment.IoExpander" of the ClassId field. +func (o *EquipmentIoExpander) GetDefaultClassId() interface{} { + return "equipment.IoExpander" +} + // GetObjectType returns the ObjectType field value func (o *EquipmentIoExpander) GetObjectType() string { if o == nil { @@ -109,6 +114,11 @@ func (o *EquipmentIoExpander) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "equipment.IoExpander" of the ObjectType field. +func (o *EquipmentIoExpander) GetDefaultObjectType() interface{} { + return "equipment.IoExpander" +} + // GetOperState returns the OperState field value if set, zero value otherwise. func (o *EquipmentIoExpander) GetOperState() string { if o == nil || IsNil(o.OperState) { @@ -288,7 +298,13 @@ func (o EquipmentIoExpander) ToMap() (map[string]interface{}, error) { if errEquipmentBase != nil { return map[string]interface{}{}, errEquipmentBase } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.OperState) { toSerialize["OperState"] = o.OperState @@ -319,6 +335,13 @@ func (o *EquipmentIoExpander) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -328,11 +351,23 @@ func (o *EquipmentIoExpander) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type EquipmentIoExpanderWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_equipment_io_expander_list.go b/model_equipment_io_expander_list.go index 6f63946063..6c99ff0f2e 100644 --- a/model_equipment_io_expander_list.go +++ b/model_equipment_io_expander_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *EquipmentIoExpanderList) GetResultsOk() ([]EquipmentIoExpander, bool) { // HasResults returns a boolean if a field has been set. func (o *EquipmentIoExpanderList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *EquipmentIoExpanderList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *EquipmentIoExpanderList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type EquipmentIoExpanderListWithoutEmbeddedStruct struct { // The total number of 'equipment.IoExpander' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_equipment_io_expander_relationship.go b/model_equipment_io_expander_relationship.go index edae0a3f09..6aeea75015 100644 --- a/model_equipment_io_expander_relationship.go +++ b/model_equipment_io_expander_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_equipment_io_expander_response.go b/model_equipment_io_expander_response.go index 33f5f06f42..5e4c9a98d0 100644 --- a/model_equipment_io_expander_response.go +++ b/model_equipment_io_expander_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_equipment_locator_led.go b/model_equipment_locator_led.go index a280118762..b4f411e0e0 100644 --- a/model_equipment_locator_led.go +++ b/model_equipment_locator_led.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -92,6 +92,11 @@ func (o *EquipmentLocatorLed) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "equipment.LocatorLed" of the ClassId field. +func (o *EquipmentLocatorLed) GetDefaultClassId() interface{} { + return "equipment.LocatorLed" +} + // GetObjectType returns the ObjectType field value func (o *EquipmentLocatorLed) GetObjectType() string { if o == nil { @@ -116,6 +121,11 @@ func (o *EquipmentLocatorLed) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "equipment.LocatorLed" of the ObjectType field. +func (o *EquipmentLocatorLed) GetDefaultObjectType() interface{} { + return "equipment.LocatorLed" +} + // GetColor returns the Color field value if set, zero value otherwise. func (o *EquipmentLocatorLed) GetColor() string { if o == nil || IsNil(o.Color) { @@ -542,7 +552,13 @@ func (o EquipmentLocatorLed) ToMap() (map[string]interface{}, error) { if errInventoryBase != nil { return map[string]interface{}{}, errInventoryBase } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Color) { toSerialize["Color"] = o.Color @@ -591,6 +607,13 @@ func (o *EquipmentLocatorLed) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -600,11 +623,23 @@ func (o *EquipmentLocatorLed) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type EquipmentLocatorLedWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_equipment_locator_led_list.go b/model_equipment_locator_led_list.go index 8fb122d1d2..0628a55510 100644 --- a/model_equipment_locator_led_list.go +++ b/model_equipment_locator_led_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *EquipmentLocatorLedList) GetResultsOk() ([]EquipmentLocatorLed, bool) { // HasResults returns a boolean if a field has been set. func (o *EquipmentLocatorLedList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *EquipmentLocatorLedList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *EquipmentLocatorLedList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type EquipmentLocatorLedListWithoutEmbeddedStruct struct { // The total number of 'equipment.LocatorLed' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_equipment_locator_led_relationship.go b/model_equipment_locator_led_relationship.go index 3756a5d6fa..2d29b22104 100644 --- a/model_equipment_locator_led_relationship.go +++ b/model_equipment_locator_led_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_equipment_locator_led_response.go b/model_equipment_locator_led_response.go index 5e3c755fd1..44599b4253 100644 --- a/model_equipment_locator_led_response.go +++ b/model_equipment_locator_led_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_equipment_log_download.go b/model_equipment_log_download.go index c888416807..07462f957d 100644 --- a/model_equipment_log_download.go +++ b/model_equipment_log_download.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -81,6 +81,11 @@ func (o *EquipmentLogDownload) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "equipment.LogDownload" of the ClassId field. +func (o *EquipmentLogDownload) GetDefaultClassId() interface{} { + return "equipment.LogDownload" +} + // GetObjectType returns the ObjectType field value func (o *EquipmentLogDownload) GetObjectType() string { if o == nil { @@ -105,6 +110,11 @@ func (o *EquipmentLogDownload) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "equipment.LogDownload" of the ObjectType field. +func (o *EquipmentLogDownload) GetDefaultObjectType() interface{} { + return "equipment.LogDownload" +} + // GetServer returns the Server field value if set, zero value otherwise (both if not set or set to explicit null). func (o *EquipmentLogDownload) GetServer() ComputePhysicalRelationship { if o == nil || IsNil(o.Server.Get()) { @@ -166,7 +176,13 @@ func (o EquipmentLogDownload) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.Server.IsSet() { toSerialize["Server"] = o.Server.Get() @@ -188,6 +204,13 @@ func (o *EquipmentLogDownload) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -197,11 +220,23 @@ func (o *EquipmentLogDownload) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type EquipmentLogDownloadWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_equipment_log_download_list.go b/model_equipment_log_download_list.go index cfbac8db7f..f10e69fe80 100644 --- a/model_equipment_log_download_list.go +++ b/model_equipment_log_download_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *EquipmentLogDownloadList) GetResultsOk() ([]EquipmentLogDownload, bool) // HasResults returns a boolean if a field has been set. func (o *EquipmentLogDownloadList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *EquipmentLogDownloadList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *EquipmentLogDownloadList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type EquipmentLogDownloadListWithoutEmbeddedStruct struct { // The total number of 'equipment.LogDownload' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_equipment_log_download_response.go b/model_equipment_log_download_response.go index 0e0c907488..5f2d5cd74b 100644 --- a/model_equipment_log_download_response.go +++ b/model_equipment_log_download_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_equipment_physical_identity.go b/model_equipment_physical_identity.go index 4a0278dd49..25dc3a67d9 100644 --- a/model_equipment_physical_identity.go +++ b/model_equipment_physical_identity.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -223,6 +223,10 @@ func (o *EquipmentPhysicalIdentity) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -232,11 +236,23 @@ func (o *EquipmentPhysicalIdentity) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type EquipmentPhysicalIdentityWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. The enum values provides the list of concrete types that can be instantiated from this abstract type. ClassId string `json:"ClassId"` diff --git a/model_equipment_physical_identity_relationship.go b/model_equipment_physical_identity_relationship.go index a57766cca7..2696ccbf0d 100644 --- a/model_equipment_physical_identity_relationship.go +++ b/model_equipment_physical_identity_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_equipment_psu.go b/model_equipment_psu.go index 70f1d1132e..bae97180de 100644 --- a/model_equipment_psu.go +++ b/model_equipment_psu.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -114,6 +114,11 @@ func (o *EquipmentPsu) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "equipment.Psu" of the ClassId field. +func (o *EquipmentPsu) GetDefaultClassId() interface{} { + return "equipment.Psu" +} + // GetObjectType returns the ObjectType field value func (o *EquipmentPsu) GetObjectType() string { if o == nil { @@ -138,6 +143,11 @@ func (o *EquipmentPsu) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "equipment.Psu" of the ObjectType field. +func (o *EquipmentPsu) GetDefaultObjectType() interface{} { + return "equipment.Psu" +} + // GetDescription returns the Description field value if set, zero value otherwise. func (o *EquipmentPsu) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -223,7 +233,7 @@ func (o *EquipmentPsu) GetOperReasonOk() ([]string, bool) { // HasOperReason returns a boolean if a field has been set. func (o *EquipmentPsu) HasOperReason() bool { - if o != nil && IsNil(o.OperReason) { + if o != nil && !IsNil(o.OperReason) { return true } @@ -906,7 +916,13 @@ func (o EquipmentPsu) ToMap() (map[string]interface{}, error) { if errEquipmentBase != nil { return map[string]interface{}{}, errEquipmentBase } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Description) { toSerialize["Description"] = o.Description @@ -988,6 +1004,13 @@ func (o *EquipmentPsu) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -997,11 +1020,23 @@ func (o *EquipmentPsu) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type EquipmentPsuWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_equipment_psu_control.go b/model_equipment_psu_control.go index 9984ef9204..ffdee0f703 100644 --- a/model_equipment_psu_control.go +++ b/model_equipment_psu_control.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -98,6 +98,11 @@ func (o *EquipmentPsuControl) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "equipment.PsuControl" of the ClassId field. +func (o *EquipmentPsuControl) GetDefaultClassId() interface{} { + return "equipment.PsuControl" +} + // GetObjectType returns the ObjectType field value func (o *EquipmentPsuControl) GetObjectType() string { if o == nil { @@ -122,6 +127,11 @@ func (o *EquipmentPsuControl) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "equipment.PsuControl" of the ObjectType field. +func (o *EquipmentPsuControl) GetDefaultObjectType() interface{} { + return "equipment.PsuControl" +} + // GetClusterState returns the ClusterState field value if set, zero value otherwise. func (o *EquipmentPsuControl) GetClusterState() string { if o == nil || IsNil(o.ClusterState) { @@ -271,7 +281,7 @@ func (o *EquipmentPsuControl) GetOperReasonOk() ([]string, bool) { // HasOperReason returns a boolean if a field has been set. func (o *EquipmentPsuControl) HasOperReason() bool { - if o != nil && IsNil(o.OperReason) { + if o != nil && !IsNil(o.OperReason) { return true } @@ -526,7 +536,13 @@ func (o EquipmentPsuControl) ToMap() (map[string]interface{}, error) { if errEquipmentBase != nil { return map[string]interface{}{}, errEquipmentBase } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.ClusterState) { toSerialize["ClusterState"] = o.ClusterState @@ -578,6 +594,13 @@ func (o *EquipmentPsuControl) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -587,11 +610,23 @@ func (o *EquipmentPsuControl) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type EquipmentPsuControlWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_equipment_psu_control_list.go b/model_equipment_psu_control_list.go index aa71788043..12392d759d 100644 --- a/model_equipment_psu_control_list.go +++ b/model_equipment_psu_control_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *EquipmentPsuControlList) GetResultsOk() ([]EquipmentPsuControl, bool) { // HasResults returns a boolean if a field has been set. func (o *EquipmentPsuControlList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *EquipmentPsuControlList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *EquipmentPsuControlList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type EquipmentPsuControlListWithoutEmbeddedStruct struct { // The total number of 'equipment.PsuControl' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_equipment_psu_control_relationship.go b/model_equipment_psu_control_relationship.go index 8a7bfcb02e..b3fdbf5c80 100644 --- a/model_equipment_psu_control_relationship.go +++ b/model_equipment_psu_control_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_equipment_psu_control_response.go b/model_equipment_psu_control_response.go index 39be7cc4df..bf39f45f5c 100644 --- a/model_equipment_psu_control_response.go +++ b/model_equipment_psu_control_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_equipment_psu_list.go b/model_equipment_psu_list.go index b2e9eab828..7f1eeb9bea 100644 --- a/model_equipment_psu_list.go +++ b/model_equipment_psu_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *EquipmentPsuList) GetResultsOk() ([]EquipmentPsu, bool) { // HasResults returns a boolean if a field has been set. func (o *EquipmentPsuList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *EquipmentPsuList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *EquipmentPsuList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type EquipmentPsuListWithoutEmbeddedStruct struct { // The total number of 'equipment.Psu' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_equipment_psu_relationship.go b/model_equipment_psu_relationship.go index bc8439f26a..ec5584cde6 100644 --- a/model_equipment_psu_relationship.go +++ b/model_equipment_psu_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_equipment_psu_response.go b/model_equipment_psu_response.go index ddfab67e33..81414e1324 100644 --- a/model_equipment_psu_response.go +++ b/model_equipment_psu_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_equipment_rack_enclosure.go b/model_equipment_rack_enclosure.go index 47e128ce30..beae5efbdb 100644 --- a/model_equipment_rack_enclosure.go +++ b/model_equipment_rack_enclosure.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -90,6 +90,11 @@ func (o *EquipmentRackEnclosure) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "equipment.RackEnclosure" of the ClassId field. +func (o *EquipmentRackEnclosure) GetDefaultClassId() interface{} { + return "equipment.RackEnclosure" +} + // GetObjectType returns the ObjectType field value func (o *EquipmentRackEnclosure) GetObjectType() string { if o == nil { @@ -114,6 +119,11 @@ func (o *EquipmentRackEnclosure) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "equipment.RackEnclosure" of the ObjectType field. +func (o *EquipmentRackEnclosure) GetDefaultObjectType() interface{} { + return "equipment.RackEnclosure" +} + // GetEnclosureId returns the EnclosureId field value if set, zero value otherwise. func (o *EquipmentRackEnclosure) GetEnclosureId() int64 { if o == nil || IsNil(o.EnclosureId) { @@ -167,7 +177,7 @@ func (o *EquipmentRackEnclosure) GetFanmodulesOk() ([]EquipmentFanModuleRelation // HasFanmodules returns a boolean if a field has been set. func (o *EquipmentRackEnclosure) HasFanmodules() bool { - if o != nil && IsNil(o.Fanmodules) { + if o != nil && !IsNil(o.Fanmodules) { return true } @@ -243,7 +253,7 @@ func (o *EquipmentRackEnclosure) GetPsusOk() ([]EquipmentPsuRelationship, bool) // HasPsus returns a boolean if a field has been set. func (o *EquipmentRackEnclosure) HasPsus() bool { - if o != nil && IsNil(o.Psus) { + if o != nil && !IsNil(o.Psus) { return true } @@ -319,7 +329,7 @@ func (o *EquipmentRackEnclosure) GetSlotsOk() ([]EquipmentRackEnclosureSlotRelat // HasSlots returns a boolean if a field has been set. func (o *EquipmentRackEnclosure) HasSlots() bool { - if o != nil && IsNil(o.Slots) { + if o != nil && !IsNil(o.Slots) { return true } @@ -349,7 +359,13 @@ func (o EquipmentRackEnclosure) ToMap() (map[string]interface{}, error) { if errEquipmentBase != nil { return map[string]interface{}{}, errEquipmentBase } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.EnclosureId) { toSerialize["EnclosureId"] = o.EnclosureId @@ -386,6 +402,13 @@ func (o *EquipmentRackEnclosure) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -395,11 +418,23 @@ func (o *EquipmentRackEnclosure) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type EquipmentRackEnclosureWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_equipment_rack_enclosure_list.go b/model_equipment_rack_enclosure_list.go index 89f8d71f8b..40b688a198 100644 --- a/model_equipment_rack_enclosure_list.go +++ b/model_equipment_rack_enclosure_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *EquipmentRackEnclosureList) GetResultsOk() ([]EquipmentRackEnclosure, b // HasResults returns a boolean if a field has been set. func (o *EquipmentRackEnclosureList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *EquipmentRackEnclosureList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *EquipmentRackEnclosureList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type EquipmentRackEnclosureListWithoutEmbeddedStruct struct { // The total number of 'equipment.RackEnclosure' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_equipment_rack_enclosure_relationship.go b/model_equipment_rack_enclosure_relationship.go index 73143e1963..a19af2f2b6 100644 --- a/model_equipment_rack_enclosure_relationship.go +++ b/model_equipment_rack_enclosure_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_equipment_rack_enclosure_response.go b/model_equipment_rack_enclosure_response.go index 8a23705cd8..8be3641419 100644 --- a/model_equipment_rack_enclosure_response.go +++ b/model_equipment_rack_enclosure_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_equipment_rack_enclosure_slot.go b/model_equipment_rack_enclosure_slot.go index 5ad330b5c2..2283591f42 100644 --- a/model_equipment_rack_enclosure_slot.go +++ b/model_equipment_rack_enclosure_slot.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -88,6 +88,11 @@ func (o *EquipmentRackEnclosureSlot) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "equipment.RackEnclosureSlot" of the ClassId field. +func (o *EquipmentRackEnclosureSlot) GetDefaultClassId() interface{} { + return "equipment.RackEnclosureSlot" +} + // GetObjectType returns the ObjectType field value func (o *EquipmentRackEnclosureSlot) GetObjectType() string { if o == nil { @@ -112,6 +117,11 @@ func (o *EquipmentRackEnclosureSlot) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "equipment.RackEnclosureSlot" of the ObjectType field. +func (o *EquipmentRackEnclosureSlot) GetDefaultObjectType() interface{} { + return "equipment.RackEnclosureSlot" +} + // GetRackId returns the RackId field value if set, zero value otherwise. func (o *EquipmentRackEnclosureSlot) GetRackId() int64 { if o == nil || IsNil(o.RackId) { @@ -366,7 +376,13 @@ func (o EquipmentRackEnclosureSlot) ToMap() (map[string]interface{}, error) { if errEquipmentBase != nil { return map[string]interface{}{}, errEquipmentBase } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.RackId) { toSerialize["RackId"] = o.RackId @@ -403,6 +419,13 @@ func (o *EquipmentRackEnclosureSlot) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -412,11 +435,23 @@ func (o *EquipmentRackEnclosureSlot) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type EquipmentRackEnclosureSlotWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_equipment_rack_enclosure_slot_list.go b/model_equipment_rack_enclosure_slot_list.go index afba2b199f..b29b2ac358 100644 --- a/model_equipment_rack_enclosure_slot_list.go +++ b/model_equipment_rack_enclosure_slot_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *EquipmentRackEnclosureSlotList) GetResultsOk() ([]EquipmentRackEnclosur // HasResults returns a boolean if a field has been set. func (o *EquipmentRackEnclosureSlotList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *EquipmentRackEnclosureSlotList) UnmarshalJSON(data []byte) (err error) "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *EquipmentRackEnclosureSlotList) UnmarshalJSON(data []byte) (err error) } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type EquipmentRackEnclosureSlotListWithoutEmbeddedStruct struct { // The total number of 'equipment.RackEnclosureSlot' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_equipment_rack_enclosure_slot_relationship.go b/model_equipment_rack_enclosure_slot_relationship.go index 945fa80522..c338323360 100644 --- a/model_equipment_rack_enclosure_slot_relationship.go +++ b/model_equipment_rack_enclosure_slot_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_equipment_rack_enclosure_slot_response.go b/model_equipment_rack_enclosure_slot_response.go index 69c5334b40..a222a70434 100644 --- a/model_equipment_rack_enclosure_slot_response.go +++ b/model_equipment_rack_enclosure_slot_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_equipment_reset_action.go b/model_equipment_reset_action.go index 7a6dd5a304..55af544427 100644 --- a/model_equipment_reset_action.go +++ b/model_equipment_reset_action.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -92,6 +92,11 @@ func (o *EquipmentResetAction) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "equipment.ResetAction" of the ClassId field. +func (o *EquipmentResetAction) GetDefaultClassId() interface{} { + return "equipment.ResetAction" +} + // GetObjectType returns the ObjectType field value func (o *EquipmentResetAction) GetObjectType() string { if o == nil { @@ -116,6 +121,11 @@ func (o *EquipmentResetAction) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "equipment.ResetAction" of the ObjectType field. +func (o *EquipmentResetAction) GetDefaultObjectType() interface{} { + return "equipment.ResetAction" +} + // GetAction returns the Action field value if set, zero value otherwise. func (o *EquipmentResetAction) GetAction() string { if o == nil || IsNil(o.Action) { @@ -198,7 +208,13 @@ func (o EquipmentResetAction) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Action) { toSerialize["Action"] = o.Action @@ -223,6 +239,13 @@ func (o *EquipmentResetAction) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -232,11 +255,23 @@ func (o *EquipmentResetAction) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type EquipmentResetActionWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_equipment_sensor.go b/model_equipment_sensor.go index 8573409aa3..2608b6880c 100644 --- a/model_equipment_sensor.go +++ b/model_equipment_sensor.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -86,6 +86,11 @@ func (o *EquipmentSensor) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "equipment.Sensor" of the ClassId field. +func (o *EquipmentSensor) GetDefaultClassId() interface{} { + return "equipment.Sensor" +} + // GetObjectType returns the ObjectType field value func (o *EquipmentSensor) GetObjectType() string { if o == nil { @@ -110,6 +115,11 @@ func (o *EquipmentSensor) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "equipment.Sensor" of the ObjectType field. +func (o *EquipmentSensor) GetDefaultObjectType() interface{} { + return "equipment.Sensor" +} + // GetAlarmStatus returns the AlarmStatus field value if set, zero value otherwise. func (o *EquipmentSensor) GetAlarmStatus() string { if o == nil || IsNil(o.AlarmStatus) { @@ -278,7 +288,13 @@ func (o EquipmentSensor) ToMap() (map[string]interface{}, error) { if errInventoryBase != nil { return map[string]interface{}{}, errInventoryBase } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.AlarmStatus) { toSerialize["AlarmStatus"] = o.AlarmStatus @@ -309,6 +325,13 @@ func (o *EquipmentSensor) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -318,11 +341,23 @@ func (o *EquipmentSensor) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type EquipmentSensorWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_equipment_sensor_list.go b/model_equipment_sensor_list.go index 222e094395..f045cbef79 100644 --- a/model_equipment_sensor_list.go +++ b/model_equipment_sensor_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *EquipmentSensorList) GetResultsOk() ([]EquipmentSensor, bool) { // HasResults returns a boolean if a field has been set. func (o *EquipmentSensorList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *EquipmentSensorList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *EquipmentSensorList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type EquipmentSensorListWithoutEmbeddedStruct struct { // The total number of 'equipment.Sensor' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_equipment_sensor_relationship.go b/model_equipment_sensor_relationship.go index d33840f0c9..7116d33748 100644 --- a/model_equipment_sensor_relationship.go +++ b/model_equipment_sensor_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_equipment_sensor_response.go b/model_equipment_sensor_response.go index 093b30ea8c..684850e774 100644 --- a/model_equipment_sensor_response.go +++ b/model_equipment_sensor_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_equipment_shared_io_module.go b/model_equipment_shared_io_module.go index 5a00564a75..1a4fcb26a2 100644 --- a/model_equipment_shared_io_module.go +++ b/model_equipment_shared_io_module.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,6 +104,11 @@ func (o *EquipmentSharedIoModule) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "equipment.SharedIoModule" of the ClassId field. +func (o *EquipmentSharedIoModule) GetDefaultClassId() interface{} { + return "equipment.SharedIoModule" +} + // GetObjectType returns the ObjectType field value func (o *EquipmentSharedIoModule) GetObjectType() string { if o == nil { @@ -128,6 +133,11 @@ func (o *EquipmentSharedIoModule) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "equipment.SharedIoModule" of the ObjectType field. +func (o *EquipmentSharedIoModule) GetDefaultObjectType() interface{} { + return "equipment.SharedIoModule" +} + // GetConfigState returns the ConfigState field value if set, zero value otherwise. func (o *EquipmentSharedIoModule) GetConfigState() string { if o == nil || IsNil(o.ConfigState) { @@ -566,7 +576,7 @@ func (o *EquipmentSharedIoModule) GetPortGroupsOk() ([]PortGroupRelationship, bo // HasPortGroups returns a boolean if a field has been set. func (o *EquipmentSharedIoModule) HasPortGroups() bool { - if o != nil && IsNil(o.PortGroups) { + if o != nil && !IsNil(o.PortGroups) { return true } @@ -639,7 +649,13 @@ func (o EquipmentSharedIoModule) ToMap() (map[string]interface{}, error) { if errEquipmentBase != nil { return map[string]interface{}{}, errEquipmentBase } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.ConfigState) { toSerialize["ConfigState"] = o.ConfigState @@ -700,6 +716,13 @@ func (o *EquipmentSharedIoModule) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -709,11 +732,23 @@ func (o *EquipmentSharedIoModule) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type EquipmentSharedIoModuleWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_equipment_shared_io_module_list.go b/model_equipment_shared_io_module_list.go index a189d1873a..c3b01926db 100644 --- a/model_equipment_shared_io_module_list.go +++ b/model_equipment_shared_io_module_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *EquipmentSharedIoModuleList) GetResultsOk() ([]EquipmentSharedIoModule, // HasResults returns a boolean if a field has been set. func (o *EquipmentSharedIoModuleList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *EquipmentSharedIoModuleList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *EquipmentSharedIoModuleList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type EquipmentSharedIoModuleListWithoutEmbeddedStruct struct { // The total number of 'equipment.SharedIoModule' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_equipment_shared_io_module_relationship.go b/model_equipment_shared_io_module_relationship.go index 781450c668..89bf6c2f58 100644 --- a/model_equipment_shared_io_module_relationship.go +++ b/model_equipment_shared_io_module_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_equipment_shared_io_module_response.go b/model_equipment_shared_io_module_response.go index b215def027..d60b2a4a4f 100644 --- a/model_equipment_shared_io_module_response.go +++ b/model_equipment_shared_io_module_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_equipment_slot.go b/model_equipment_slot.go index 8471fb8639..1d6904a251 100644 --- a/model_equipment_slot.go +++ b/model_equipment_slot.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -174,6 +174,10 @@ func (o *EquipmentSlot) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -183,11 +187,23 @@ func (o *EquipmentSlot) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type EquipmentSlotWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. The enum values provides the list of concrete types that can be instantiated from this abstract type. ClassId string `json:"ClassId"` diff --git a/model_equipment_switch_card.go b/model_equipment_switch_card.go index 3aaa0cf5eb..3c03170ae1 100644 --- a/model_equipment_switch_card.go +++ b/model_equipment_switch_card.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -143,6 +143,11 @@ func (o *EquipmentSwitchCard) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "equipment.SwitchCard" of the ClassId field. +func (o *EquipmentSwitchCard) GetDefaultClassId() interface{} { + return "equipment.SwitchCard" +} + // GetObjectType returns the ObjectType field value func (o *EquipmentSwitchCard) GetObjectType() string { if o == nil { @@ -167,6 +172,11 @@ func (o *EquipmentSwitchCard) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "equipment.SwitchCard" of the ObjectType field. +func (o *EquipmentSwitchCard) GetDefaultObjectType() interface{} { + return "equipment.SwitchCard" +} + // GetBaseMac returns the BaseMac field value if set, zero value otherwise. func (o *EquipmentSwitchCard) GetBaseMac() string { if o == nil || IsNil(o.BaseMac) { @@ -828,7 +838,7 @@ func (o *EquipmentSwitchCard) GetFcPortChannelsOk() ([]FcPortChannelRelationship // HasFcPortChannels returns a boolean if a field has been set. func (o *EquipmentSwitchCard) HasFcPortChannels() bool { - if o != nil && IsNil(o.FcPortChannels) { + if o != nil && !IsNil(o.FcPortChannels) { return true } @@ -861,7 +871,7 @@ func (o *EquipmentSwitchCard) GetFcPortsOk() ([]FcPhysicalPortRelationship, bool // HasFcPorts returns a boolean if a field has been set. func (o *EquipmentSwitchCard) HasFcPorts() bool { - if o != nil && IsNil(o.FcPorts) { + if o != nil && !IsNil(o.FcPorts) { return true } @@ -980,7 +990,7 @@ func (o *EquipmentSwitchCard) GetPortChannelsOk() ([]EtherPortChannelRelationshi // HasPortChannels returns a boolean if a field has been set. func (o *EquipmentSwitchCard) HasPortChannels() bool { - if o != nil && IsNil(o.PortChannels) { + if o != nil && !IsNil(o.PortChannels) { return true } @@ -1013,7 +1023,7 @@ func (o *EquipmentSwitchCard) GetPortGroupsOk() ([]PortGroupRelationship, bool) // HasPortGroups returns a boolean if a field has been set. func (o *EquipmentSwitchCard) HasPortGroups() bool { - if o != nil && IsNil(o.PortGroups) { + if o != nil && !IsNil(o.PortGroups) { return true } @@ -1086,7 +1096,13 @@ func (o EquipmentSwitchCard) ToMap() (map[string]interface{}, error) { if errEquipmentBase != nil { return map[string]interface{}{}, errEquipmentBase } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.BaseMac) { toSerialize["BaseMac"] = o.BaseMac @@ -1186,6 +1202,13 @@ func (o *EquipmentSwitchCard) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -1195,11 +1218,23 @@ func (o *EquipmentSwitchCard) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type EquipmentSwitchCardWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_equipment_switch_card_list.go b/model_equipment_switch_card_list.go index 329b52883f..fb20785f35 100644 --- a/model_equipment_switch_card_list.go +++ b/model_equipment_switch_card_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *EquipmentSwitchCardList) GetResultsOk() ([]EquipmentSwitchCard, bool) { // HasResults returns a boolean if a field has been set. func (o *EquipmentSwitchCardList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *EquipmentSwitchCardList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *EquipmentSwitchCardList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type EquipmentSwitchCardListWithoutEmbeddedStruct struct { // The total number of 'equipment.SwitchCard' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_equipment_switch_card_relationship.go b/model_equipment_switch_card_relationship.go index 1f24a1923f..ada8d673b9 100644 --- a/model_equipment_switch_card_relationship.go +++ b/model_equipment_switch_card_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_equipment_switch_card_response.go b/model_equipment_switch_card_response.go index 2b0a824122..17cac5e2ba 100644 --- a/model_equipment_switch_card_response.go +++ b/model_equipment_switch_card_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_equipment_switch_operation.go b/model_equipment_switch_operation.go index b3d9735101..30fecf8ebc 100644 --- a/model_equipment_switch_operation.go +++ b/model_equipment_switch_operation.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -115,6 +115,11 @@ func (o *EquipmentSwitchOperation) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "equipment.SwitchOperation" of the ClassId field. +func (o *EquipmentSwitchOperation) GetDefaultClassId() interface{} { + return "equipment.SwitchOperation" +} + // GetObjectType returns the ObjectType field value func (o *EquipmentSwitchOperation) GetObjectType() string { if o == nil { @@ -139,6 +144,11 @@ func (o *EquipmentSwitchOperation) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "equipment.SwitchOperation" of the ObjectType field. +func (o *EquipmentSwitchOperation) GetDefaultObjectType() interface{} { + return "equipment.SwitchOperation" +} + // GetAdminEvacState returns the AdminEvacState field value if set, zero value otherwise. func (o *EquipmentSwitchOperation) GetAdminEvacState() string { if o == nil || IsNil(o.AdminEvacState) { @@ -478,7 +488,13 @@ func (o EquipmentSwitchOperation) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.AdminEvacState) { toSerialize["AdminEvacState"] = o.AdminEvacState @@ -524,6 +540,13 @@ func (o *EquipmentSwitchOperation) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -533,11 +556,23 @@ func (o *EquipmentSwitchOperation) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type EquipmentSwitchOperationWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_equipment_switch_operation_list.go b/model_equipment_switch_operation_list.go index 8ef7094d69..c86f596f5a 100644 --- a/model_equipment_switch_operation_list.go +++ b/model_equipment_switch_operation_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *EquipmentSwitchOperationList) GetResultsOk() ([]EquipmentSwitchOperatio // HasResults returns a boolean if a field has been set. func (o *EquipmentSwitchOperationList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *EquipmentSwitchOperationList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *EquipmentSwitchOperationList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type EquipmentSwitchOperationListWithoutEmbeddedStruct struct { // The total number of 'equipment.SwitchOperation' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_equipment_switch_operation_response.go b/model_equipment_switch_operation_response.go index 6fc6cd6759..1d03788ac9 100644 --- a/model_equipment_switch_operation_response.go +++ b/model_equipment_switch_operation_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_equipment_system_io_controller.go b/model_equipment_system_io_controller.go index e6a36ec984..954ca91716 100644 --- a/model_equipment_system_io_controller.go +++ b/model_equipment_system_io_controller.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -103,6 +103,11 @@ func (o *EquipmentSystemIoController) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "equipment.SystemIoController" of the ClassId field. +func (o *EquipmentSystemIoController) GetDefaultClassId() interface{} { + return "equipment.SystemIoController" +} + // GetObjectType returns the ObjectType field value func (o *EquipmentSystemIoController) GetObjectType() string { if o == nil { @@ -127,6 +132,11 @@ func (o *EquipmentSystemIoController) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "equipment.SystemIoController" of the ObjectType field. +func (o *EquipmentSystemIoController) GetDefaultObjectType() interface{} { + return "equipment.SystemIoController" +} + // GetChassisId returns the ChassisId field value if set, zero value otherwise. func (o *EquipmentSystemIoController) GetChassisId() string { if o == nil || IsNil(o.ChassisId) { @@ -648,7 +658,13 @@ func (o EquipmentSystemIoController) ToMap() (map[string]interface{}, error) { if errEquipmentBase != nil { return map[string]interface{}{}, errEquipmentBase } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.ChassisId) { toSerialize["ChassisId"] = o.ChassisId @@ -709,6 +725,13 @@ func (o *EquipmentSystemIoController) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -718,11 +741,23 @@ func (o *EquipmentSystemIoController) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type EquipmentSystemIoControllerWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_equipment_system_io_controller_list.go b/model_equipment_system_io_controller_list.go index e06d3c5308..0c25306c05 100644 --- a/model_equipment_system_io_controller_list.go +++ b/model_equipment_system_io_controller_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *EquipmentSystemIoControllerList) GetResultsOk() ([]EquipmentSystemIoCon // HasResults returns a boolean if a field has been set. func (o *EquipmentSystemIoControllerList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *EquipmentSystemIoControllerList) UnmarshalJSON(data []byte) (err error) "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *EquipmentSystemIoControllerList) UnmarshalJSON(data []byte) (err error) } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type EquipmentSystemIoControllerListWithoutEmbeddedStruct struct { // The total number of 'equipment.SystemIoController' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_equipment_system_io_controller_relationship.go b/model_equipment_system_io_controller_relationship.go index afcb0f711c..072362ca43 100644 --- a/model_equipment_system_io_controller_relationship.go +++ b/model_equipment_system_io_controller_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_equipment_system_io_controller_response.go b/model_equipment_system_io_controller_response.go index 68144bd81d..70af49a130 100644 --- a/model_equipment_system_io_controller_response.go +++ b/model_equipment_system_io_controller_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_equipment_tpm.go b/model_equipment_tpm.go index 3e8cf11d2d..6b91bddbac 100644 --- a/model_equipment_tpm.go +++ b/model_equipment_tpm.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -95,6 +95,11 @@ func (o *EquipmentTpm) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "equipment.Tpm" of the ClassId field. +func (o *EquipmentTpm) GetDefaultClassId() interface{} { + return "equipment.Tpm" +} + // GetObjectType returns the ObjectType field value func (o *EquipmentTpm) GetObjectType() string { if o == nil { @@ -119,6 +124,11 @@ func (o *EquipmentTpm) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "equipment.Tpm" of the ObjectType field. +func (o *EquipmentTpm) GetDefaultObjectType() interface{} { + return "equipment.Tpm" +} + // GetActivationStatus returns the ActivationStatus field value if set, zero value otherwise. func (o *EquipmentTpm) GetActivationStatus() string { if o == nil || IsNil(o.ActivationStatus) { @@ -458,7 +468,13 @@ func (o EquipmentTpm) ToMap() (map[string]interface{}, error) { if errEquipmentBase != nil { return map[string]interface{}{}, errEquipmentBase } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.ActivationStatus) { toSerialize["ActivationStatus"] = o.ActivationStatus @@ -504,6 +520,13 @@ func (o *EquipmentTpm) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -513,11 +536,23 @@ func (o *EquipmentTpm) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type EquipmentTpmWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_equipment_tpm_list.go b/model_equipment_tpm_list.go index 9b86e93d99..45e2dea7a7 100644 --- a/model_equipment_tpm_list.go +++ b/model_equipment_tpm_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *EquipmentTpmList) GetResultsOk() ([]EquipmentTpm, bool) { // HasResults returns a boolean if a field has been set. func (o *EquipmentTpmList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *EquipmentTpmList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *EquipmentTpmList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type EquipmentTpmListWithoutEmbeddedStruct struct { // The total number of 'equipment.Tpm' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_equipment_tpm_relationship.go b/model_equipment_tpm_relationship.go index a8cf8aadf4..d1ad771483 100644 --- a/model_equipment_tpm_relationship.go +++ b/model_equipment_tpm_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_equipment_tpm_response.go b/model_equipment_tpm_response.go index 8b1de66499..2aca4e27aa 100644 --- a/model_equipment_tpm_response.go +++ b/model_equipment_tpm_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_equipment_transceiver.go b/model_equipment_transceiver.go index aaeaf244f2..af583d10a2 100644 --- a/model_equipment_transceiver.go +++ b/model_equipment_transceiver.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -112,6 +112,11 @@ func (o *EquipmentTransceiver) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "equipment.Transceiver" of the ClassId field. +func (o *EquipmentTransceiver) GetDefaultClassId() interface{} { + return "equipment.Transceiver" +} + // GetObjectType returns the ObjectType field value func (o *EquipmentTransceiver) GetObjectType() string { if o == nil { @@ -136,6 +141,11 @@ func (o *EquipmentTransceiver) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "equipment.Transceiver" of the ObjectType field. +func (o *EquipmentTransceiver) GetDefaultObjectType() interface{} { + return "equipment.Transceiver" +} + // GetAggregatePortId returns the AggregatePortId field value if set, zero value otherwise. func (o *EquipmentTransceiver) GetAggregatePortId() int64 { if o == nil || IsNil(o.AggregatePortId) { @@ -774,7 +784,13 @@ func (o EquipmentTransceiver) ToMap() (map[string]interface{}, error) { if errEquipmentBase != nil { return map[string]interface{}{}, errEquipmentBase } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.AggregatePortId) { toSerialize["AggregatePortId"] = o.AggregatePortId @@ -847,6 +863,13 @@ func (o *EquipmentTransceiver) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -856,11 +879,23 @@ func (o *EquipmentTransceiver) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type EquipmentTransceiverWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_equipment_transceiver_list.go b/model_equipment_transceiver_list.go index 86164a0f33..3510c1384d 100644 --- a/model_equipment_transceiver_list.go +++ b/model_equipment_transceiver_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *EquipmentTransceiverList) GetResultsOk() ([]EquipmentTransceiver, bool) // HasResults returns a boolean if a field has been set. func (o *EquipmentTransceiverList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *EquipmentTransceiverList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *EquipmentTransceiverList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type EquipmentTransceiverListWithoutEmbeddedStruct struct { // The total number of 'equipment.Transceiver' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_equipment_transceiver_response.go b/model_equipment_transceiver_response.go index b9229c625c..378a9d9919 100644 --- a/model_equipment_transceiver_response.go +++ b/model_equipment_transceiver_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_error.go b/model_error.go index 169fd5c65e..2d9f26788e 100644 --- a/model_error.go +++ b/model_error.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -199,6 +199,10 @@ func (o *Error) UnmarshalJSON(data []byte) (err error) { "message", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -208,11 +212,23 @@ func (o *Error) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } varError := _Error{} err = json.Unmarshal(data, &varError) diff --git a/model_ether_host_port.go b/model_ether_host_port.go index 2995f86f81..127d4adbf5 100644 --- a/model_ether_host_port.go +++ b/model_ether_host_port.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -88,6 +88,11 @@ func (o *EtherHostPort) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "ether.HostPort" of the ClassId field. +func (o *EtherHostPort) GetDefaultClassId() interface{} { + return "ether.HostPort" +} + // GetObjectType returns the ObjectType field value func (o *EtherHostPort) GetObjectType() string { if o == nil { @@ -112,6 +117,11 @@ func (o *EtherHostPort) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "ether.HostPort" of the ObjectType field. +func (o *EtherHostPort) GetDefaultObjectType() interface{} { + return "ether.HostPort" +} + // GetAggregatePortId returns the AggregatePortId field value if set, zero value otherwise. func (o *EtherHostPort) GetAggregatePortId() int64 { if o == nil || IsNil(o.AggregatePortId) { @@ -312,7 +322,13 @@ func (o EtherHostPort) ToMap() (map[string]interface{}, error) { if errEtherPhysicalPortBase != nil { return map[string]interface{}{}, errEtherPhysicalPortBase } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.AggregatePortId) { toSerialize["AggregatePortId"] = o.AggregatePortId @@ -346,6 +362,13 @@ func (o *EtherHostPort) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -355,11 +378,23 @@ func (o *EtherHostPort) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type EtherHostPortWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_ether_host_port_list.go b/model_ether_host_port_list.go index 49bd0d9adf..10ad716df3 100644 --- a/model_ether_host_port_list.go +++ b/model_ether_host_port_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *EtherHostPortList) GetResultsOk() ([]EtherHostPort, bool) { // HasResults returns a boolean if a field has been set. func (o *EtherHostPortList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *EtherHostPortList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *EtherHostPortList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type EtherHostPortListWithoutEmbeddedStruct struct { // The total number of 'ether.HostPort' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_ether_host_port_relationship.go b/model_ether_host_port_relationship.go index be0198476d..fdcaf4a0ce 100644 --- a/model_ether_host_port_relationship.go +++ b/model_ether_host_port_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_ether_host_port_response.go b/model_ether_host_port_response.go index ad7d8611ec..1e235ed375 100644 --- a/model_ether_host_port_response.go +++ b/model_ether_host_port_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_ether_network_port.go b/model_ether_network_port.go index 0b46145085..acb240b876 100644 --- a/model_ether_network_port.go +++ b/model_ether_network_port.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -95,6 +95,11 @@ func (o *EtherNetworkPort) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "ether.NetworkPort" of the ClassId field. +func (o *EtherNetworkPort) GetDefaultClassId() interface{} { + return "ether.NetworkPort" +} + // GetObjectType returns the ObjectType field value func (o *EtherNetworkPort) GetObjectType() string { if o == nil { @@ -119,6 +124,11 @@ func (o *EtherNetworkPort) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "ether.NetworkPort" of the ObjectType field. +func (o *EtherNetworkPort) GetDefaultObjectType() interface{} { + return "ether.NetworkPort" +} + // GetModuleId returns the ModuleId field value if set, zero value otherwise. func (o *EtherNetworkPort) GetModuleId() int64 { if o == nil || IsNil(o.ModuleId) { @@ -172,7 +182,7 @@ func (o *EtherNetworkPort) GetOperReasonOk() ([]string, bool) { // HasOperReason returns a boolean if a field has been set. func (o *EtherNetworkPort) HasOperReason() bool { - if o != nil && IsNil(o.OperReason) { + if o != nil && !IsNil(o.OperReason) { return true } @@ -448,7 +458,13 @@ func (o EtherNetworkPort) ToMap() (map[string]interface{}, error) { if errPortInterfaceBase != nil { return map[string]interface{}{}, errPortInterfaceBase } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.ModuleId) { toSerialize["ModuleId"] = o.ModuleId @@ -494,6 +510,13 @@ func (o *EtherNetworkPort) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -503,11 +526,23 @@ func (o *EtherNetworkPort) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type EtherNetworkPortWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_ether_network_port_list.go b/model_ether_network_port_list.go index f1c01e3c17..1c7192a09c 100644 --- a/model_ether_network_port_list.go +++ b/model_ether_network_port_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *EtherNetworkPortList) GetResultsOk() ([]EtherNetworkPort, bool) { // HasResults returns a boolean if a field has been set. func (o *EtherNetworkPortList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *EtherNetworkPortList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *EtherNetworkPortList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type EtherNetworkPortListWithoutEmbeddedStruct struct { // The total number of 'ether.NetworkPort' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_ether_network_port_relationship.go b/model_ether_network_port_relationship.go index f1ecb0aa85..b10e77bdc4 100644 --- a/model_ether_network_port_relationship.go +++ b/model_ether_network_port_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_ether_network_port_response.go b/model_ether_network_port_response.go index 02570014ef..af18a643db 100644 --- a/model_ether_network_port_response.go +++ b/model_ether_network_port_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_ether_physical_port.go b/model_ether_physical_port.go index 098e76b240..636b12b779 100644 --- a/model_ether_physical_port.go +++ b/model_ether_physical_port.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -96,6 +96,11 @@ func (o *EtherPhysicalPort) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "ether.PhysicalPort" of the ClassId field. +func (o *EtherPhysicalPort) GetDefaultClassId() interface{} { + return "ether.PhysicalPort" +} + // GetObjectType returns the ObjectType field value func (o *EtherPhysicalPort) GetObjectType() string { if o == nil { @@ -120,6 +125,11 @@ func (o *EtherPhysicalPort) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "ether.PhysicalPort" of the ObjectType field. +func (o *EtherPhysicalPort) GetDefaultObjectType() interface{} { + return "ether.PhysicalPort" +} + // GetAdminSpeed returns the AdminSpeed field value if set, zero value otherwise. func (o *EtherPhysicalPort) GetAdminSpeed() string { if o == nil || IsNil(o.AdminSpeed) { @@ -502,7 +512,13 @@ func (o EtherPhysicalPort) ToMap() (map[string]interface{}, error) { if errEtherPhysicalPortBase != nil { return map[string]interface{}{}, errEtherPhysicalPortBase } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.AdminSpeed) { toSerialize["AdminSpeed"] = o.AdminSpeed @@ -551,6 +567,13 @@ func (o *EtherPhysicalPort) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -560,11 +583,23 @@ func (o *EtherPhysicalPort) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type EtherPhysicalPortWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_ether_physical_port_base.go b/model_ether_physical_port_base.go index 6823aaa8c2..f9cef6a7a1 100644 --- a/model_ether_physical_port_base.go +++ b/model_ether_physical_port_base.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -490,6 +490,10 @@ func (o *EtherPhysicalPortBase) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -499,11 +503,23 @@ func (o *EtherPhysicalPortBase) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type EtherPhysicalPortBaseWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. The enum values provides the list of concrete types that can be instantiated from this abstract type. ClassId string `json:"ClassId"` diff --git a/model_ether_physical_port_base_relationship.go b/model_ether_physical_port_base_relationship.go index bc165976df..391432bcdb 100644 --- a/model_ether_physical_port_base_relationship.go +++ b/model_ether_physical_port_base_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_ether_physical_port_list.go b/model_ether_physical_port_list.go index f7ebb3eeb2..bd6732a668 100644 --- a/model_ether_physical_port_list.go +++ b/model_ether_physical_port_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *EtherPhysicalPortList) GetResultsOk() ([]EtherPhysicalPort, bool) { // HasResults returns a boolean if a field has been set. func (o *EtherPhysicalPortList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *EtherPhysicalPortList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *EtherPhysicalPortList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type EtherPhysicalPortListWithoutEmbeddedStruct struct { // The total number of 'ether.PhysicalPort' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_ether_physical_port_relationship.go b/model_ether_physical_port_relationship.go index 49ec87a714..d2d1e9e258 100644 --- a/model_ether_physical_port_relationship.go +++ b/model_ether_physical_port_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_ether_physical_port_response.go b/model_ether_physical_port_response.go index a87b05b56c..fbd438ddc8 100644 --- a/model_ether_physical_port_response.go +++ b/model_ether_physical_port_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_ether_port_channel.go b/model_ether_port_channel.go index 2dda96e1fb..cd641b6cae 100644 --- a/model_ether_port_channel.go +++ b/model_ether_port_channel.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -123,6 +123,11 @@ func (o *EtherPortChannel) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "ether.PortChannel" of the ClassId field. +func (o *EtherPortChannel) GetDefaultClassId() interface{} { + return "ether.PortChannel" +} + // GetObjectType returns the ObjectType field value func (o *EtherPortChannel) GetObjectType() string { if o == nil { @@ -147,6 +152,11 @@ func (o *EtherPortChannel) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "ether.PortChannel" of the ObjectType field. +func (o *EtherPortChannel) GetDefaultObjectType() interface{} { + return "ether.PortChannel" +} + // GetAccessVlan returns the AccessVlan field value if set, zero value otherwise. func (o *EtherPortChannel) GetAccessVlan() string { if o == nil || IsNil(o.AccessVlan) { @@ -934,7 +944,13 @@ func (o EtherPortChannel) ToMap() (map[string]interface{}, error) { if errInventoryInterface != nil { return map[string]interface{}{}, errInventoryInterface } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.AccessVlan) { toSerialize["AccessVlan"] = o.AccessVlan @@ -1022,6 +1038,13 @@ func (o *EtherPortChannel) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -1031,11 +1054,23 @@ func (o *EtherPortChannel) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type EtherPortChannelWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_ether_port_channel_list.go b/model_ether_port_channel_list.go index 96228a0fed..cc5431c324 100644 --- a/model_ether_port_channel_list.go +++ b/model_ether_port_channel_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *EtherPortChannelList) GetResultsOk() ([]EtherPortChannel, bool) { // HasResults returns a boolean if a field has been set. func (o *EtherPortChannelList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *EtherPortChannelList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *EtherPortChannelList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type EtherPortChannelListWithoutEmbeddedStruct struct { // The total number of 'ether.PortChannel' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_ether_port_channel_relationship.go b/model_ether_port_channel_relationship.go index 073fbb2fa8..00cf6b14f4 100644 --- a/model_ether_port_channel_relationship.go +++ b/model_ether_port_channel_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_ether_port_channel_response.go b/model_ether_port_channel_response.go index b1ba01b77b..2a37b7ae48 100644 --- a/model_ether_port_channel_response.go +++ b/model_ether_port_channel_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_externalsite_authorization.go b/model_externalsite_authorization.go index 639a65baff..03324a8371 100644 --- a/model_externalsite_authorization.go +++ b/model_externalsite_authorization.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -95,6 +95,11 @@ func (o *ExternalsiteAuthorization) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "externalsite.Authorization" of the ClassId field. +func (o *ExternalsiteAuthorization) GetDefaultClassId() interface{} { + return "externalsite.Authorization" +} + // GetObjectType returns the ObjectType field value func (o *ExternalsiteAuthorization) GetObjectType() string { if o == nil { @@ -119,6 +124,11 @@ func (o *ExternalsiteAuthorization) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "externalsite.Authorization" of the ObjectType field. +func (o *ExternalsiteAuthorization) GetDefaultObjectType() interface{} { + return "externalsite.Authorization" +} + // GetIsPasswordSet returns the IsPasswordSet field value if set, zero value otherwise. func (o *ExternalsiteAuthorization) GetIsPasswordSet() bool { if o == nil || IsNil(o.IsPasswordSet) { @@ -340,7 +350,13 @@ func (o ExternalsiteAuthorization) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.IsPasswordSet) { toSerialize["IsPasswordSet"] = o.IsPasswordSet @@ -377,6 +393,13 @@ func (o *ExternalsiteAuthorization) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -386,11 +409,23 @@ func (o *ExternalsiteAuthorization) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type ExternalsiteAuthorizationWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_externalsite_authorization_list.go b/model_externalsite_authorization_list.go index 5c34c90806..926b5d1916 100644 --- a/model_externalsite_authorization_list.go +++ b/model_externalsite_authorization_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *ExternalsiteAuthorizationList) GetResultsOk() ([]ExternalsiteAuthorizat // HasResults returns a boolean if a field has been set. func (o *ExternalsiteAuthorizationList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *ExternalsiteAuthorizationList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *ExternalsiteAuthorizationList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type ExternalsiteAuthorizationListWithoutEmbeddedStruct struct { // The total number of 'externalsite.Authorization' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_externalsite_authorization_response.go b/model_externalsite_authorization_response.go index db16fff9f8..8e4c15d2fd 100644 --- a/model_externalsite_authorization_response.go +++ b/model_externalsite_authorization_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_fabric_abstract_interface_role.go b/model_fabric_abstract_interface_role.go index 4a8a3cf860..d1bf9a6154 100644 --- a/model_fabric_abstract_interface_role.go +++ b/model_fabric_abstract_interface_role.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -83,6 +83,10 @@ func (o *FabricAbstractInterfaceRole) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -92,11 +96,23 @@ func (o *FabricAbstractInterfaceRole) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type FabricAbstractInterfaceRoleWithoutEmbeddedStruct struct { } diff --git a/model_fabric_abstract_interface_role_relationship.go b/model_fabric_abstract_interface_role_relationship.go index 7763142767..01bf47fd3c 100644 --- a/model_fabric_abstract_interface_role_relationship.go +++ b/model_fabric_abstract_interface_role_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_fabric_abstract_span_dest_port.go b/model_fabric_abstract_span_dest_port.go index 126ba6043e..ad95e0ee84 100644 --- a/model_fabric_abstract_span_dest_port.go +++ b/model_fabric_abstract_span_dest_port.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -88,6 +88,11 @@ func (o *FabricAbstractSpanDestPort) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "fabric.SpanDestEthPort" of the ClassId field. +func (o *FabricAbstractSpanDestPort) GetDefaultClassId() interface{} { + return "fabric.SpanDestEthPort" +} + // GetObjectType returns the ObjectType field value func (o *FabricAbstractSpanDestPort) GetObjectType() string { if o == nil { @@ -112,6 +117,11 @@ func (o *FabricAbstractSpanDestPort) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "fabric.SpanDestEthPort" of the ObjectType field. +func (o *FabricAbstractSpanDestPort) GetDefaultObjectType() interface{} { + return "fabric.SpanDestEthPort" +} + // GetAggregatePortId returns the AggregatePortId field value if set, zero value otherwise. func (o *FabricAbstractSpanDestPort) GetAggregatePortId() int64 { if o == nil || IsNil(o.AggregatePortId) { @@ -312,7 +322,13 @@ func (o FabricAbstractSpanDestPort) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.AggregatePortId) { toSerialize["AggregatePortId"] = o.AggregatePortId @@ -346,6 +362,13 @@ func (o *FabricAbstractSpanDestPort) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -355,11 +378,23 @@ func (o *FabricAbstractSpanDestPort) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type FabricAbstractSpanDestPortWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. The enum values provides the list of concrete types that can be instantiated from this abstract type. ClassId string `json:"ClassId"` diff --git a/model_fabric_abstract_span_dest_port_relationship.go b/model_fabric_abstract_span_dest_port_relationship.go index 63ed032199..85b7814fd6 100644 --- a/model_fabric_abstract_span_dest_port_relationship.go +++ b/model_fabric_abstract_span_dest_port_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_fabric_abstract_span_session.go b/model_fabric_abstract_span_session.go index af13539ccf..e547f94998 100644 --- a/model_fabric_abstract_span_session.go +++ b/model_fabric_abstract_span_session.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -33,7 +33,7 @@ type FabricAbstractSpanSession struct { // The configured state of SPAN configuration. If the configuration fails to deploy to the Fabric Interconnect, it can be redeployed by toggling the admin state. * `None` - Nil value when no action has been triggered by the user. * `Applied` - User configured settings are in applied state. * `Applying` - User settings are being applied on the target server. * `Failed` - User configured settings could not be applied. ConfigState *string `json:"ConfigState,omitempty"` // Name of the SPAN session. The name can only contain letters (a-z, A-Z), numbers (0-9), hyphen (-), period (.) or an underscore (_). - Name *string `json:"Name,omitempty"` + Name *string `json:"Name,omitempty" validate:"regexp=^[a-zA-Z0-9_.:-]{1,64}$"` // Operational state of the SPAN session. * `Unknown` - SPAN session operational state is Unknown. * `Up` - SPAN session operational state is Up. * `Down` - SPAN session operational state is Down. * `Error` - SPAN session operational state is Error. OperState *string `json:"OperState,omitempty"` // Operational state reason of the SPAN session. * `Unknown` - Unknown operational state. * `Active` - Active and operational SPAN session. * `NoHardwareResource` - No hardware resources available. * `NoOperationalSrcDst` - No operational SPAN source or destination. * `GenericError` - Generic operational error. * `NoSourcesConfigured` - No source interfaces configured. * `NoDestinationConfigured` - No destination port configured. * `NoSourceDestinationConfigured` - No source or destination interface configured. * `SessionAdminShut` - Session is administratively disabled. * `WrongDestinationMode` - Wrong Destination mode configured. * `WrongSourceMode` - Wrong Source mode configured. * `TunnelMisconfDown` - Tunnel Misconfigured or Down. * `NoFlowIdSpecified` - No Flow ID specified for ERSPAN. @@ -107,6 +107,11 @@ func (o *FabricAbstractSpanSession) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "fabric.SpanSession" of the ClassId field. +func (o *FabricAbstractSpanSession) GetDefaultClassId() interface{} { + return "fabric.SpanSession" +} + // GetObjectType returns the ObjectType field value func (o *FabricAbstractSpanSession) GetObjectType() string { if o == nil { @@ -131,6 +136,11 @@ func (o *FabricAbstractSpanSession) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "fabric.SpanSession" of the ObjectType field. +func (o *FabricAbstractSpanSession) GetDefaultObjectType() interface{} { + return "fabric.SpanSession" +} + // GetAdminState returns the AdminState field value if set, zero value otherwise. func (o *FabricAbstractSpanSession) GetAdminState() string { if o == nil || IsNil(o.AdminState) { @@ -480,7 +490,13 @@ func (o FabricAbstractSpanSession) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.AdminState) { toSerialize["AdminState"] = o.AdminState @@ -529,6 +545,13 @@ func (o *FabricAbstractSpanSession) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -538,11 +561,23 @@ func (o *FabricAbstractSpanSession) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type FabricAbstractSpanSessionWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. The enum values provides the list of concrete types that can be instantiated from this abstract type. ClassId string `json:"ClassId"` @@ -553,7 +588,7 @@ func (o *FabricAbstractSpanSession) UnmarshalJSON(data []byte) (err error) { // The configured state of SPAN configuration. If the configuration fails to deploy to the Fabric Interconnect, it can be redeployed by toggling the admin state. * `None` - Nil value when no action has been triggered by the user. * `Applied` - User configured settings are in applied state. * `Applying` - User settings are being applied on the target server. * `Failed` - User configured settings could not be applied. ConfigState *string `json:"ConfigState,omitempty"` // Name of the SPAN session. The name can only contain letters (a-z, A-Z), numbers (0-9), hyphen (-), period (.) or an underscore (_). - Name *string `json:"Name,omitempty"` + Name *string `json:"Name,omitempty" validate:"regexp=^[a-zA-Z0-9_.:-]{1,64}$"` // Operational state of the SPAN session. * `Unknown` - SPAN session operational state is Unknown. * `Up` - SPAN session operational state is Up. * `Down` - SPAN session operational state is Down. * `Error` - SPAN session operational state is Error. OperState *string `json:"OperState,omitempty"` // Operational state reason of the SPAN session. * `Unknown` - Unknown operational state. * `Active` - Active and operational SPAN session. * `NoHardwareResource` - No hardware resources available. * `NoOperationalSrcDst` - No operational SPAN source or destination. * `GenericError` - Generic operational error. * `NoSourcesConfigured` - No source interfaces configured. * `NoDestinationConfigured` - No destination port configured. * `NoSourceDestinationConfigured` - No source or destination interface configured. * `SessionAdminShut` - Session is administratively disabled. * `WrongDestinationMode` - Wrong Destination mode configured. * `WrongSourceMode` - Wrong Source mode configured. * `TunnelMisconfDown` - Tunnel Misconfigured or Down. * `NoFlowIdSpecified` - No Flow ID specified for ERSPAN. diff --git a/model_fabric_abstract_span_source.go b/model_fabric_abstract_span_source.go index 0525d8a0b2..bcd6201dcf 100644 --- a/model_fabric_abstract_span_source.go +++ b/model_fabric_abstract_span_source.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -178,6 +178,10 @@ func (o *FabricAbstractSpanSource) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -187,11 +191,23 @@ func (o *FabricAbstractSpanSource) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type FabricAbstractSpanSourceWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. The enum values provides the list of concrete types that can be instantiated from this abstract type. ClassId string `json:"ClassId"` diff --git a/model_fabric_abstract_span_source_port.go b/model_fabric_abstract_span_source_port.go index cb09e8685a..165c312ab7 100644 --- a/model_fabric_abstract_span_source_port.go +++ b/model_fabric_abstract_span_source_port.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -92,6 +92,11 @@ func (o *FabricAbstractSpanSourcePort) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "fabric.SpanSourceEthPort" of the ClassId field. +func (o *FabricAbstractSpanSourcePort) GetDefaultClassId() interface{} { + return "fabric.SpanSourceEthPort" +} + // GetObjectType returns the ObjectType field value func (o *FabricAbstractSpanSourcePort) GetObjectType() string { if o == nil { @@ -116,6 +121,11 @@ func (o *FabricAbstractSpanSourcePort) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "fabric.SpanSourceEthPort" of the ObjectType field. +func (o *FabricAbstractSpanSourcePort) GetDefaultObjectType() interface{} { + return "fabric.SpanSourceEthPort" +} + // GetAggregatePortId returns the AggregatePortId field value if set, zero value otherwise. func (o *FabricAbstractSpanSourcePort) GetAggregatePortId() int64 { if o == nil || IsNil(o.AggregatePortId) { @@ -348,7 +358,13 @@ func (o FabricAbstractSpanSourcePort) ToMap() (map[string]interface{}, error) { if errFabricAbstractSpanSource != nil { return map[string]interface{}{}, errFabricAbstractSpanSource } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.AggregatePortId) { toSerialize["AggregatePortId"] = o.AggregatePortId @@ -385,6 +401,13 @@ func (o *FabricAbstractSpanSourcePort) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -394,11 +417,23 @@ func (o *FabricAbstractSpanSourcePort) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type FabricAbstractSpanSourcePortWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. The enum values provides the list of concrete types that can be instantiated from this abstract type. ClassId string `json:"ClassId"` diff --git a/model_fabric_abstract_span_source_port_channel.go b/model_fabric_abstract_span_source_port_channel.go index e833e8b512..1af64bba6e 100644 --- a/model_fabric_abstract_span_source_port_channel.go +++ b/model_fabric_abstract_span_source_port_channel.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -88,6 +88,11 @@ func (o *FabricAbstractSpanSourcePortChannel) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "fabric.SpanSourceEthPortChannel" of the ClassId field. +func (o *FabricAbstractSpanSourcePortChannel) GetDefaultClassId() interface{} { + return "fabric.SpanSourceEthPortChannel" +} + // GetObjectType returns the ObjectType field value func (o *FabricAbstractSpanSourcePortChannel) GetObjectType() string { if o == nil { @@ -112,6 +117,11 @@ func (o *FabricAbstractSpanSourcePortChannel) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "fabric.SpanSourceEthPortChannel" of the ObjectType field. +func (o *FabricAbstractSpanSourcePortChannel) GetDefaultObjectType() interface{} { + return "fabric.SpanSourceEthPortChannel" +} + // GetPcId returns the PcId field value if set, zero value otherwise. func (o *FabricAbstractSpanSourcePortChannel) GetPcId() int64 { if o == nil || IsNil(o.PcId) { @@ -280,7 +290,13 @@ func (o FabricAbstractSpanSourcePortChannel) ToMap() (map[string]interface{}, er if errFabricAbstractSpanSource != nil { return map[string]interface{}{}, errFabricAbstractSpanSource } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.PcId) { toSerialize["PcId"] = o.PcId @@ -311,6 +327,13 @@ func (o *FabricAbstractSpanSourcePortChannel) UnmarshalJSON(data []byte) (err er "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -320,11 +343,23 @@ func (o *FabricAbstractSpanSourcePortChannel) UnmarshalJSON(data []byte) (err er } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type FabricAbstractSpanSourcePortChannelWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. The enum values provides the list of concrete types that can be instantiated from this abstract type. ClassId string `json:"ClassId"` diff --git a/model_fabric_abstract_span_source_port_channel_relationship.go b/model_fabric_abstract_span_source_port_channel_relationship.go index 7befda1847..84a94b8648 100644 --- a/model_fabric_abstract_span_source_port_channel_relationship.go +++ b/model_fabric_abstract_span_source_port_channel_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_fabric_abstract_span_source_port_relationship.go b/model_fabric_abstract_span_source_port_relationship.go index 8818cc1ce8..d346bc3642 100644 --- a/model_fabric_abstract_span_source_port_relationship.go +++ b/model_fabric_abstract_span_source_port_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_fabric_abstract_span_source_virtual_if.go b/model_fabric_abstract_span_source_virtual_if.go index 588b6b0a32..5e2b341a96 100644 --- a/model_fabric_abstract_span_source_virtual_if.go +++ b/model_fabric_abstract_span_source_virtual_if.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -87,6 +87,11 @@ func (o *FabricAbstractSpanSourceVirtualIf) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "fabric.SpanSourceVnicEthIf" of the ClassId field. +func (o *FabricAbstractSpanSourceVirtualIf) GetDefaultClassId() interface{} { + return "fabric.SpanSourceVnicEthIf" +} + // GetObjectType returns the ObjectType field value func (o *FabricAbstractSpanSourceVirtualIf) GetObjectType() string { if o == nil { @@ -111,6 +116,11 @@ func (o *FabricAbstractSpanSourceVirtualIf) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "fabric.SpanSourceVnicEthIf" of the ObjectType field. +func (o *FabricAbstractSpanSourceVirtualIf) GetDefaultObjectType() interface{} { + return "fabric.SpanSourceVnicEthIf" +} + // GetName returns the Name field value if set, zero value otherwise. func (o *FabricAbstractSpanSourceVirtualIf) GetName() string { if o == nil || IsNil(o.Name) { @@ -236,7 +246,13 @@ func (o FabricAbstractSpanSourceVirtualIf) ToMap() (map[string]interface{}, erro if errFabricAbstractSpanSource != nil { return map[string]interface{}{}, errFabricAbstractSpanSource } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Name) { toSerialize["Name"] = o.Name @@ -264,6 +280,13 @@ func (o *FabricAbstractSpanSourceVirtualIf) UnmarshalJSON(data []byte) (err erro "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -273,11 +296,23 @@ func (o *FabricAbstractSpanSourceVirtualIf) UnmarshalJSON(data []byte) (err erro } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type FabricAbstractSpanSourceVirtualIfWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. The enum values provides the list of concrete types that can be instantiated from this abstract type. ClassId string `json:"ClassId"` diff --git a/model_fabric_abstract_span_source_virtual_if_relationship.go b/model_fabric_abstract_span_source_virtual_if_relationship.go index a8d58b8cd5..78be991d2f 100644 --- a/model_fabric_abstract_span_source_virtual_if_relationship.go +++ b/model_fabric_abstract_span_source_virtual_if_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_fabric_appliance_pc_role.go b/model_fabric_appliance_pc_role.go index dbcdeb5673..9759ed6df8 100644 --- a/model_fabric_appliance_pc_role.go +++ b/model_fabric_appliance_pc_role.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -107,6 +107,11 @@ func (o *FabricAppliancePcRole) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "fabric.AppliancePcRole" of the ClassId field. +func (o *FabricAppliancePcRole) GetDefaultClassId() interface{} { + return "fabric.AppliancePcRole" +} + // GetObjectType returns the ObjectType field value func (o *FabricAppliancePcRole) GetObjectType() string { if o == nil { @@ -131,6 +136,11 @@ func (o *FabricAppliancePcRole) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "fabric.AppliancePcRole" of the ObjectType field. +func (o *FabricAppliancePcRole) GetDefaultObjectType() interface{} { + return "fabric.AppliancePcRole" +} + // GetAdminSpeed returns the AdminSpeed field value if set, zero value otherwise. func (o *FabricAppliancePcRole) GetAdminSpeed() string { if o == nil || IsNil(o.AdminSpeed) { @@ -406,7 +416,13 @@ func (o FabricAppliancePcRole) ToMap() (map[string]interface{}, error) { if errFabricPortChannelRole != nil { return map[string]interface{}{}, errFabricPortChannelRole } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.AdminSpeed) { toSerialize["AdminSpeed"] = o.AdminSpeed @@ -446,6 +462,13 @@ func (o *FabricAppliancePcRole) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -455,11 +478,23 @@ func (o *FabricAppliancePcRole) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type FabricAppliancePcRoleWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_fabric_appliance_pc_role_list.go b/model_fabric_appliance_pc_role_list.go index b82f283cab..f8d85ecad5 100644 --- a/model_fabric_appliance_pc_role_list.go +++ b/model_fabric_appliance_pc_role_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *FabricAppliancePcRoleList) GetResultsOk() ([]FabricAppliancePcRole, boo // HasResults returns a boolean if a field has been set. func (o *FabricAppliancePcRoleList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *FabricAppliancePcRoleList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *FabricAppliancePcRoleList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type FabricAppliancePcRoleListWithoutEmbeddedStruct struct { // The total number of 'fabric.AppliancePcRole' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_fabric_appliance_pc_role_response.go b/model_fabric_appliance_pc_role_response.go index 9b57c38931..27204252b4 100644 --- a/model_fabric_appliance_pc_role_response.go +++ b/model_fabric_appliance_pc_role_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_fabric_appliance_role.go b/model_fabric_appliance_role.go index f0ac1f51aa..86ff68fd07 100644 --- a/model_fabric_appliance_role.go +++ b/model_fabric_appliance_role.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -100,6 +100,11 @@ func (o *FabricApplianceRole) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "fabric.ApplianceRole" of the ClassId field. +func (o *FabricApplianceRole) GetDefaultClassId() interface{} { + return "fabric.ApplianceRole" +} + // GetObjectType returns the ObjectType field value func (o *FabricApplianceRole) GetObjectType() string { if o == nil { @@ -124,6 +129,11 @@ func (o *FabricApplianceRole) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "fabric.ApplianceRole" of the ObjectType field. +func (o *FabricApplianceRole) GetDefaultObjectType() interface{} { + return "fabric.ApplianceRole" +} + // GetMode returns the Mode field value if set, zero value otherwise. func (o *FabricApplianceRole) GetMode() string { if o == nil || IsNil(o.Mode) { @@ -378,7 +388,13 @@ func (o FabricApplianceRole) ToMap() (map[string]interface{}, error) { if errFabricTransceiverRole != nil { return map[string]interface{}{}, errFabricTransceiverRole } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Mode) { toSerialize["Mode"] = o.Mode @@ -415,6 +431,13 @@ func (o *FabricApplianceRole) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -424,11 +447,23 @@ func (o *FabricApplianceRole) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type FabricApplianceRoleWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_fabric_appliance_role_list.go b/model_fabric_appliance_role_list.go index 1f88a8b697..871a5e3111 100644 --- a/model_fabric_appliance_role_list.go +++ b/model_fabric_appliance_role_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *FabricApplianceRoleList) GetResultsOk() ([]FabricApplianceRole, bool) { // HasResults returns a boolean if a field has been set. func (o *FabricApplianceRoleList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *FabricApplianceRoleList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *FabricApplianceRoleList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type FabricApplianceRoleListWithoutEmbeddedStruct struct { // The total number of 'fabric.ApplianceRole' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_fabric_appliance_role_response.go b/model_fabric_appliance_role_response.go index 94a93c0fc2..8d76367827 100644 --- a/model_fabric_appliance_role_response.go +++ b/model_fabric_appliance_role_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_fabric_base_cluster_profile.go b/model_fabric_base_cluster_profile.go index 31f4a65540..cf7074a5c0 100644 --- a/model_fabric_base_cluster_profile.go +++ b/model_fabric_base_cluster_profile.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -176,6 +176,10 @@ func (o *FabricBaseClusterProfile) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -185,11 +189,23 @@ func (o *FabricBaseClusterProfile) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type FabricBaseClusterProfileWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. The enum values provides the list of concrete types that can be instantiated from this abstract type. ClassId string `json:"ClassId"` diff --git a/model_fabric_base_switch_profile.go b/model_fabric_base_switch_profile.go index 688e65a19b..a272b0887c 100644 --- a/model_fabric_base_switch_profile.go +++ b/model_fabric_base_switch_profile.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -188,6 +188,10 @@ func (o *FabricBaseSwitchProfile) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -197,11 +201,23 @@ func (o *FabricBaseSwitchProfile) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type FabricBaseSwitchProfileWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. The enum values provides the list of concrete types that can be instantiated from this abstract type. ClassId string `json:"ClassId"` diff --git a/model_fabric_base_switch_profile_relationship.go b/model_fabric_base_switch_profile_relationship.go index 4eba343c54..228c5e89ec 100644 --- a/model_fabric_base_switch_profile_relationship.go +++ b/model_fabric_base_switch_profile_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_fabric_cluster_assignment.go b/model_fabric_cluster_assignment.go index f68e923bc9..8450f48675 100644 --- a/model_fabric_cluster_assignment.go +++ b/model_fabric_cluster_assignment.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -30,7 +30,7 @@ type FabricClusterAssignment struct { ObjectType string `json:"ObjectType"` NetworkElement *MoMoRef `json:"NetworkElement,omitempty"` // Name of the source SwitchProfile or SwitchProfileTemplate whose clone has to be assigned to the network element mentioned in NetworkElement property under ClusterAssignments. - SourceSwitchProfileOrTemplateName *string `json:"SourceSwitchProfileOrTemplateName,omitempty"` + SourceSwitchProfileOrTemplateName *string `json:"SourceSwitchProfileOrTemplateName,omitempty" validate:"regexp=^$|^[a-zA-Z0-9_.-]{1,64}$"` AdditionalProperties map[string]interface{} } @@ -83,6 +83,11 @@ func (o *FabricClusterAssignment) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "fabric.ClusterAssignment" of the ClassId field. +func (o *FabricClusterAssignment) GetDefaultClassId() interface{} { + return "fabric.ClusterAssignment" +} + // GetObjectType returns the ObjectType field value func (o *FabricClusterAssignment) GetObjectType() string { if o == nil { @@ -107,6 +112,11 @@ func (o *FabricClusterAssignment) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "fabric.ClusterAssignment" of the ObjectType field. +func (o *FabricClusterAssignment) GetDefaultObjectType() interface{} { + return "fabric.ClusterAssignment" +} + // GetNetworkElement returns the NetworkElement field value if set, zero value otherwise. func (o *FabricClusterAssignment) GetNetworkElement() MoMoRef { if o == nil || IsNil(o.NetworkElement) { @@ -189,7 +199,13 @@ func (o FabricClusterAssignment) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.NetworkElement) { toSerialize["NetworkElement"] = o.NetworkElement @@ -214,6 +230,13 @@ func (o *FabricClusterAssignment) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -223,11 +246,23 @@ func (o *FabricClusterAssignment) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type FabricClusterAssignmentWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` @@ -235,7 +270,7 @@ func (o *FabricClusterAssignment) UnmarshalJSON(data []byte) (err error) { ObjectType string `json:"ObjectType"` NetworkElement *MoMoRef `json:"NetworkElement,omitempty"` // Name of the source SwitchProfile or SwitchProfileTemplate whose clone has to be assigned to the network element mentioned in NetworkElement property under ClusterAssignments. - SourceSwitchProfileOrTemplateName *string `json:"SourceSwitchProfileOrTemplateName,omitempty"` + SourceSwitchProfileOrTemplateName *string `json:"SourceSwitchProfileOrTemplateName,omitempty" validate:"regexp=^$|^[a-zA-Z0-9_.-]{1,64}$"` } varFabricClusterAssignmentWithoutEmbeddedStruct := FabricClusterAssignmentWithoutEmbeddedStruct{} diff --git a/model_fabric_config_change_detail.go b/model_fabric_config_change_detail.go index 4baf9627d0..718ed1f09f 100644 --- a/model_fabric_config_change_detail.go +++ b/model_fabric_config_change_detail.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -85,6 +85,11 @@ func (o *FabricConfigChangeDetail) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "fabric.ConfigChangeDetail" of the ClassId field. +func (o *FabricConfigChangeDetail) GetDefaultClassId() interface{} { + return "fabric.ConfigChangeDetail" +} + // GetObjectType returns the ObjectType field value func (o *FabricConfigChangeDetail) GetObjectType() string { if o == nil { @@ -109,6 +114,11 @@ func (o *FabricConfigChangeDetail) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "fabric.ConfigChangeDetail" of the ObjectType field. +func (o *FabricConfigChangeDetail) GetDefaultObjectType() interface{} { + return "fabric.ConfigChangeDetail" +} + // GetProfile returns the Profile field value if set, zero value otherwise (both if not set or set to explicit null). func (o *FabricConfigChangeDetail) GetProfile() FabricSwitchProfileRelationship { if o == nil || IsNil(o.Profile.Get()) { @@ -170,7 +180,13 @@ func (o FabricConfigChangeDetail) ToMap() (map[string]interface{}, error) { if errPolicyAbstractConfigChangeDetail != nil { return map[string]interface{}{}, errPolicyAbstractConfigChangeDetail } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.Profile.IsSet() { toSerialize["Profile"] = o.Profile.Get() @@ -192,6 +208,13 @@ func (o *FabricConfigChangeDetail) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -201,11 +224,23 @@ func (o *FabricConfigChangeDetail) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type FabricConfigChangeDetailWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_fabric_config_change_detail_list.go b/model_fabric_config_change_detail_list.go index 669adec67d..1f3582e5e6 100644 --- a/model_fabric_config_change_detail_list.go +++ b/model_fabric_config_change_detail_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *FabricConfigChangeDetailList) GetResultsOk() ([]FabricConfigChangeDetai // HasResults returns a boolean if a field has been set. func (o *FabricConfigChangeDetailList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *FabricConfigChangeDetailList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *FabricConfigChangeDetailList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type FabricConfigChangeDetailListWithoutEmbeddedStruct struct { // The total number of 'fabric.ConfigChangeDetail' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_fabric_config_change_detail_relationship.go b/model_fabric_config_change_detail_relationship.go index db895523b8..4c81038dee 100644 --- a/model_fabric_config_change_detail_relationship.go +++ b/model_fabric_config_change_detail_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_fabric_config_change_detail_response.go b/model_fabric_config_change_detail_response.go index 5cdeb0bbd0..063ba86572 100644 --- a/model_fabric_config_change_detail_response.go +++ b/model_fabric_config_change_detail_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_fabric_config_result.go b/model_fabric_config_result.go index f8dcb4917e..a9b0ff3da3 100644 --- a/model_fabric_config_result.go +++ b/model_fabric_config_result.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -83,6 +83,11 @@ func (o *FabricConfigResult) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "fabric.ConfigResult" of the ClassId field. +func (o *FabricConfigResult) GetDefaultClassId() interface{} { + return "fabric.ConfigResult" +} + // GetObjectType returns the ObjectType field value func (o *FabricConfigResult) GetObjectType() string { if o == nil { @@ -107,6 +112,11 @@ func (o *FabricConfigResult) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "fabric.ConfigResult" of the ObjectType field. +func (o *FabricConfigResult) GetDefaultObjectType() interface{} { + return "fabric.ConfigResult" +} + // GetProfile returns the Profile field value if set, zero value otherwise (both if not set or set to explicit null). func (o *FabricConfigResult) GetProfile() FabricBaseSwitchProfileRelationship { if o == nil || IsNil(o.Profile.Get()) { @@ -171,7 +181,7 @@ func (o *FabricConfigResult) GetResultEntriesOk() ([]FabricConfigResultEntryRela // HasResultEntries returns a boolean if a field has been set. func (o *FabricConfigResult) HasResultEntries() bool { - if o != nil && IsNil(o.ResultEntries) { + if o != nil && !IsNil(o.ResultEntries) { return true } @@ -201,7 +211,13 @@ func (o FabricConfigResult) ToMap() (map[string]interface{}, error) { if errPolicyAbstractConfigResult != nil { return map[string]interface{}{}, errPolicyAbstractConfigResult } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.Profile.IsSet() { toSerialize["Profile"] = o.Profile.Get() @@ -226,6 +242,13 @@ func (o *FabricConfigResult) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -235,11 +258,23 @@ func (o *FabricConfigResult) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type FabricConfigResultWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_fabric_config_result_entry.go b/model_fabric_config_result_entry.go index ac0c6af47a..b5f6332e81 100644 --- a/model_fabric_config_result_entry.go +++ b/model_fabric_config_result_entry.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -81,6 +81,11 @@ func (o *FabricConfigResultEntry) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "fabric.ConfigResultEntry" of the ClassId field. +func (o *FabricConfigResultEntry) GetDefaultClassId() interface{} { + return "fabric.ConfigResultEntry" +} + // GetObjectType returns the ObjectType field value func (o *FabricConfigResultEntry) GetObjectType() string { if o == nil { @@ -105,6 +110,11 @@ func (o *FabricConfigResultEntry) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "fabric.ConfigResultEntry" of the ObjectType field. +func (o *FabricConfigResultEntry) GetDefaultObjectType() interface{} { + return "fabric.ConfigResultEntry" +} + // GetConfigResult returns the ConfigResult field value if set, zero value otherwise (both if not set or set to explicit null). func (o *FabricConfigResultEntry) GetConfigResult() FabricConfigResultRelationship { if o == nil || IsNil(o.ConfigResult.Get()) { @@ -166,7 +176,13 @@ func (o FabricConfigResultEntry) ToMap() (map[string]interface{}, error) { if errPolicyAbstractConfigResultEntry != nil { return map[string]interface{}{}, errPolicyAbstractConfigResultEntry } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.ConfigResult.IsSet() { toSerialize["ConfigResult"] = o.ConfigResult.Get() @@ -188,6 +204,13 @@ func (o *FabricConfigResultEntry) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -197,11 +220,23 @@ func (o *FabricConfigResultEntry) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type FabricConfigResultEntryWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_fabric_config_result_entry_list.go b/model_fabric_config_result_entry_list.go index 7344592813..a451ce7e88 100644 --- a/model_fabric_config_result_entry_list.go +++ b/model_fabric_config_result_entry_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *FabricConfigResultEntryList) GetResultsOk() ([]FabricConfigResultEntry, // HasResults returns a boolean if a field has been set. func (o *FabricConfigResultEntryList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *FabricConfigResultEntryList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *FabricConfigResultEntryList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type FabricConfigResultEntryListWithoutEmbeddedStruct struct { // The total number of 'fabric.ConfigResultEntry' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_fabric_config_result_entry_relationship.go b/model_fabric_config_result_entry_relationship.go index e8a1681e15..1eb2e9c49e 100644 --- a/model_fabric_config_result_entry_relationship.go +++ b/model_fabric_config_result_entry_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_fabric_config_result_entry_response.go b/model_fabric_config_result_entry_response.go index bdae126fb0..8f3a0ce542 100644 --- a/model_fabric_config_result_entry_response.go +++ b/model_fabric_config_result_entry_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_fabric_config_result_list.go b/model_fabric_config_result_list.go index ab4c60ae28..fbf16062e9 100644 --- a/model_fabric_config_result_list.go +++ b/model_fabric_config_result_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *FabricConfigResultList) GetResultsOk() ([]FabricConfigResult, bool) { // HasResults returns a boolean if a field has been set. func (o *FabricConfigResultList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *FabricConfigResultList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *FabricConfigResultList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type FabricConfigResultListWithoutEmbeddedStruct struct { // The total number of 'fabric.ConfigResult' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_fabric_config_result_relationship.go b/model_fabric_config_result_relationship.go index 91e17f4cba..9fbbe85144 100644 --- a/model_fabric_config_result_relationship.go +++ b/model_fabric_config_result_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_fabric_config_result_response.go b/model_fabric_config_result_response.go index ddd81bac0f..f6cef0f30c 100644 --- a/model_fabric_config_result_response.go +++ b/model_fabric_config_result_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_fabric_element_identity.go b/model_fabric_element_identity.go index d7cf387600..3c9c12b22c 100644 --- a/model_fabric_element_identity.go +++ b/model_fabric_element_identity.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -97,6 +97,11 @@ func (o *FabricElementIdentity) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "fabric.ElementIdentity" of the ClassId field. +func (o *FabricElementIdentity) GetDefaultClassId() interface{} { + return "fabric.ElementIdentity" +} + // GetObjectType returns the ObjectType field value func (o *FabricElementIdentity) GetObjectType() string { if o == nil { @@ -121,6 +126,11 @@ func (o *FabricElementIdentity) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "fabric.ElementIdentity" of the ObjectType field. +func (o *FabricElementIdentity) GetDefaultObjectType() interface{} { + return "fabric.ElementIdentity" +} + // GetDomain returns the Domain field value if set, zero value otherwise. func (o *FabricElementIdentity) GetDomain() string { if o == nil || IsNil(o.Domain) { @@ -206,7 +216,7 @@ func (o *FabricElementIdentity) GetPostDeployActionOk() ([]string, bool) { // HasPostDeployAction returns a boolean if a field has been set. func (o *FabricElementIdentity) HasPostDeployAction() bool { - if o != nil && IsNil(o.PostDeployAction) { + if o != nil && !IsNil(o.PostDeployAction) { return true } @@ -386,7 +396,13 @@ func (o FabricElementIdentity) ToMap() (map[string]interface{}, error) { if errEquipmentIdentity != nil { return map[string]interface{}{}, errEquipmentIdentity } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Domain) { toSerialize["Domain"] = o.Domain @@ -426,6 +442,13 @@ func (o *FabricElementIdentity) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -435,11 +458,23 @@ func (o *FabricElementIdentity) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type FabricElementIdentityWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_fabric_element_identity_list.go b/model_fabric_element_identity_list.go index 495dcc2c71..de8f7a1cfc 100644 --- a/model_fabric_element_identity_list.go +++ b/model_fabric_element_identity_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *FabricElementIdentityList) GetResultsOk() ([]FabricElementIdentity, boo // HasResults returns a boolean if a field has been set. func (o *FabricElementIdentityList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *FabricElementIdentityList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *FabricElementIdentityList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type FabricElementIdentityListWithoutEmbeddedStruct struct { // The total number of 'fabric.ElementIdentity' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_fabric_element_identity_response.go b/model_fabric_element_identity_response.go index 22afb4d519..71ccd0006b 100644 --- a/model_fabric_element_identity_response.go +++ b/model_fabric_element_identity_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_fabric_estimate_impact.go b/model_fabric_estimate_impact.go index b3c98032d2..20f09f0d7e 100644 --- a/model_fabric_estimate_impact.go +++ b/model_fabric_estimate_impact.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -81,6 +81,11 @@ func (o *FabricEstimateImpact) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "fabric.EstimateImpact" of the ClassId field. +func (o *FabricEstimateImpact) GetDefaultClassId() interface{} { + return "fabric.EstimateImpact" +} + // GetObjectType returns the ObjectType field value func (o *FabricEstimateImpact) GetObjectType() string { if o == nil { @@ -105,6 +110,11 @@ func (o *FabricEstimateImpact) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "fabric.EstimateImpact" of the ObjectType field. +func (o *FabricEstimateImpact) GetDefaultObjectType() interface{} { + return "fabric.EstimateImpact" +} + // GetProfile returns the Profile field value if set, zero value otherwise (both if not set or set to explicit null). func (o *FabricEstimateImpact) GetProfile() FabricSwitchProfileRelationship { if o == nil || IsNil(o.Profile.Get()) { @@ -166,7 +176,13 @@ func (o FabricEstimateImpact) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.Profile.IsSet() { toSerialize["Profile"] = o.Profile.Get() @@ -188,6 +204,13 @@ func (o *FabricEstimateImpact) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -197,11 +220,23 @@ func (o *FabricEstimateImpact) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type FabricEstimateImpactWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_fabric_eth_network_control_policy.go b/model_fabric_eth_network_control_policy.go index 49c0453eb8..1ada57412d 100644 --- a/model_fabric_eth_network_control_policy.go +++ b/model_fabric_eth_network_control_policy.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -109,6 +109,11 @@ func (o *FabricEthNetworkControlPolicy) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "fabric.EthNetworkControlPolicy" of the ClassId field. +func (o *FabricEthNetworkControlPolicy) GetDefaultClassId() interface{} { + return "fabric.EthNetworkControlPolicy" +} + // GetObjectType returns the ObjectType field value func (o *FabricEthNetworkControlPolicy) GetObjectType() string { if o == nil { @@ -133,6 +138,11 @@ func (o *FabricEthNetworkControlPolicy) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "fabric.EthNetworkControlPolicy" of the ObjectType field. +func (o *FabricEthNetworkControlPolicy) GetDefaultObjectType() interface{} { + return "fabric.EthNetworkControlPolicy" +} + // GetCdpEnabled returns the CdpEnabled field value if set, zero value otherwise. func (o *FabricEthNetworkControlPolicy) GetCdpEnabled() bool { if o == nil || IsNil(o.CdpEnabled) { @@ -327,7 +337,7 @@ func (o *FabricEthNetworkControlPolicy) GetNetworkPolicyOk() ([]VnicEthNetworkPo // HasNetworkPolicy returns a boolean if a field has been set. func (o *FabricEthNetworkControlPolicy) HasNetworkPolicy() bool { - if o != nil && IsNil(o.NetworkPolicy) { + if o != nil && !IsNil(o.NetworkPolicy) { return true } @@ -401,7 +411,13 @@ func (o FabricEthNetworkControlPolicy) ToMap() (map[string]interface{}, error) { if errPolicyAbstractPolicy != nil { return map[string]interface{}{}, errPolicyAbstractPolicy } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.CdpEnabled) { toSerialize["CdpEnabled"] = o.CdpEnabled @@ -441,6 +457,13 @@ func (o *FabricEthNetworkControlPolicy) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -450,11 +473,23 @@ func (o *FabricEthNetworkControlPolicy) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type FabricEthNetworkControlPolicyWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_fabric_eth_network_control_policy_inventory.go b/model_fabric_eth_network_control_policy_inventory.go index c622b5a2ae..b47a4b36d9 100644 --- a/model_fabric_eth_network_control_policy_inventory.go +++ b/model_fabric_eth_network_control_policy_inventory.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -93,6 +93,11 @@ func (o *FabricEthNetworkControlPolicyInventory) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "fabric.EthNetworkControlPolicyInventory" of the ClassId field. +func (o *FabricEthNetworkControlPolicyInventory) GetDefaultClassId() interface{} { + return "fabric.EthNetworkControlPolicyInventory" +} + // GetObjectType returns the ObjectType field value func (o *FabricEthNetworkControlPolicyInventory) GetObjectType() string { if o == nil { @@ -117,6 +122,11 @@ func (o *FabricEthNetworkControlPolicyInventory) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "fabric.EthNetworkControlPolicyInventory" of the ObjectType field. +func (o *FabricEthNetworkControlPolicyInventory) GetDefaultObjectType() interface{} { + return "fabric.EthNetworkControlPolicyInventory" +} + // GetCdpEnabled returns the CdpEnabled field value if set, zero value otherwise. func (o *FabricEthNetworkControlPolicyInventory) GetCdpEnabled() bool { if o == nil || IsNil(o.CdpEnabled) { @@ -311,7 +321,7 @@ func (o *FabricEthNetworkControlPolicyInventory) GetNetworkPolicyOk() ([]VnicEth // HasNetworkPolicy returns a boolean if a field has been set. func (o *FabricEthNetworkControlPolicyInventory) HasNetworkPolicy() bool { - if o != nil && IsNil(o.NetworkPolicy) { + if o != nil && !IsNil(o.NetworkPolicy) { return true } @@ -385,7 +395,13 @@ func (o FabricEthNetworkControlPolicyInventory) ToMap() (map[string]interface{}, if errPolicyAbstractPolicyInventory != nil { return map[string]interface{}{}, errPolicyAbstractPolicyInventory } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.CdpEnabled) { toSerialize["CdpEnabled"] = o.CdpEnabled @@ -425,6 +441,13 @@ func (o *FabricEthNetworkControlPolicyInventory) UnmarshalJSON(data []byte) (err "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -434,11 +457,23 @@ func (o *FabricEthNetworkControlPolicyInventory) UnmarshalJSON(data []byte) (err } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type FabricEthNetworkControlPolicyInventoryWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_fabric_eth_network_control_policy_inventory_list.go b/model_fabric_eth_network_control_policy_inventory_list.go index 3f8dc91318..c6ed03420f 100644 --- a/model_fabric_eth_network_control_policy_inventory_list.go +++ b/model_fabric_eth_network_control_policy_inventory_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *FabricEthNetworkControlPolicyInventoryList) GetResultsOk() ([]FabricEth // HasResults returns a boolean if a field has been set. func (o *FabricEthNetworkControlPolicyInventoryList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *FabricEthNetworkControlPolicyInventoryList) UnmarshalJSON(data []byte) "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *FabricEthNetworkControlPolicyInventoryList) UnmarshalJSON(data []byte) } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type FabricEthNetworkControlPolicyInventoryListWithoutEmbeddedStruct struct { // The total number of 'fabric.EthNetworkControlPolicyInventory' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_fabric_eth_network_control_policy_inventory_relationship.go b/model_fabric_eth_network_control_policy_inventory_relationship.go index 88a13fb9f1..65fe4fa815 100644 --- a/model_fabric_eth_network_control_policy_inventory_relationship.go +++ b/model_fabric_eth_network_control_policy_inventory_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_fabric_eth_network_control_policy_inventory_response.go b/model_fabric_eth_network_control_policy_inventory_response.go index 76b4236ae7..6b4cbe2745 100644 --- a/model_fabric_eth_network_control_policy_inventory_response.go +++ b/model_fabric_eth_network_control_policy_inventory_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_fabric_eth_network_control_policy_list.go b/model_fabric_eth_network_control_policy_list.go index 62280bd439..f6a8f93300 100644 --- a/model_fabric_eth_network_control_policy_list.go +++ b/model_fabric_eth_network_control_policy_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *FabricEthNetworkControlPolicyList) GetResultsOk() ([]FabricEthNetworkCo // HasResults returns a boolean if a field has been set. func (o *FabricEthNetworkControlPolicyList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *FabricEthNetworkControlPolicyList) UnmarshalJSON(data []byte) (err erro "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *FabricEthNetworkControlPolicyList) UnmarshalJSON(data []byte) (err erro } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type FabricEthNetworkControlPolicyListWithoutEmbeddedStruct struct { // The total number of 'fabric.EthNetworkControlPolicy' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_fabric_eth_network_control_policy_relationship.go b/model_fabric_eth_network_control_policy_relationship.go index 0e2f81be4a..06cf32df19 100644 --- a/model_fabric_eth_network_control_policy_relationship.go +++ b/model_fabric_eth_network_control_policy_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_fabric_eth_network_control_policy_response.go b/model_fabric_eth_network_control_policy_response.go index 45495a8227..766e3a1479 100644 --- a/model_fabric_eth_network_control_policy_response.go +++ b/model_fabric_eth_network_control_policy_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_fabric_eth_network_group_policy.go b/model_fabric_eth_network_group_policy.go index bc09174eb6..8669cc7b7b 100644 --- a/model_fabric_eth_network_group_policy.go +++ b/model_fabric_eth_network_group_policy.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -82,6 +82,11 @@ func (o *FabricEthNetworkGroupPolicy) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "fabric.EthNetworkGroupPolicy" of the ClassId field. +func (o *FabricEthNetworkGroupPolicy) GetDefaultClassId() interface{} { + return "fabric.EthNetworkGroupPolicy" +} + // GetObjectType returns the ObjectType field value func (o *FabricEthNetworkGroupPolicy) GetObjectType() string { if o == nil { @@ -106,6 +111,11 @@ func (o *FabricEthNetworkGroupPolicy) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "fabric.EthNetworkGroupPolicy" of the ObjectType field. +func (o *FabricEthNetworkGroupPolicy) GetDefaultObjectType() interface{} { + return "fabric.EthNetworkGroupPolicy" +} + // GetVlanSettings returns the VlanSettings field value if set, zero value otherwise (both if not set or set to explicit null). func (o *FabricEthNetworkGroupPolicy) GetVlanSettings() FabricVlanSettings { if o == nil || IsNil(o.VlanSettings.Get()) { @@ -210,7 +220,13 @@ func (o FabricEthNetworkGroupPolicy) ToMap() (map[string]interface{}, error) { if errPolicyAbstractPolicy != nil { return map[string]interface{}{}, errPolicyAbstractPolicy } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.VlanSettings.IsSet() { toSerialize["VlanSettings"] = o.VlanSettings.Get() @@ -235,6 +251,13 @@ func (o *FabricEthNetworkGroupPolicy) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -244,11 +267,23 @@ func (o *FabricEthNetworkGroupPolicy) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type FabricEthNetworkGroupPolicyWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_fabric_eth_network_group_policy_inventory.go b/model_fabric_eth_network_group_policy_inventory.go index 79cf5f8c7f..f5ac762596 100644 --- a/model_fabric_eth_network_group_policy_inventory.go +++ b/model_fabric_eth_network_group_policy_inventory.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -82,6 +82,11 @@ func (o *FabricEthNetworkGroupPolicyInventory) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "fabric.EthNetworkGroupPolicyInventory" of the ClassId field. +func (o *FabricEthNetworkGroupPolicyInventory) GetDefaultClassId() interface{} { + return "fabric.EthNetworkGroupPolicyInventory" +} + // GetObjectType returns the ObjectType field value func (o *FabricEthNetworkGroupPolicyInventory) GetObjectType() string { if o == nil { @@ -106,6 +111,11 @@ func (o *FabricEthNetworkGroupPolicyInventory) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "fabric.EthNetworkGroupPolicyInventory" of the ObjectType field. +func (o *FabricEthNetworkGroupPolicyInventory) GetDefaultObjectType() interface{} { + return "fabric.EthNetworkGroupPolicyInventory" +} + // GetVlanSettings returns the VlanSettings field value if set, zero value otherwise (both if not set or set to explicit null). func (o *FabricEthNetworkGroupPolicyInventory) GetVlanSettings() FabricVlanSettings { if o == nil || IsNil(o.VlanSettings.Get()) { @@ -210,7 +220,13 @@ func (o FabricEthNetworkGroupPolicyInventory) ToMap() (map[string]interface{}, e if errPolicyAbstractPolicyInventory != nil { return map[string]interface{}{}, errPolicyAbstractPolicyInventory } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.VlanSettings.IsSet() { toSerialize["VlanSettings"] = o.VlanSettings.Get() @@ -235,6 +251,13 @@ func (o *FabricEthNetworkGroupPolicyInventory) UnmarshalJSON(data []byte) (err e "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -244,11 +267,23 @@ func (o *FabricEthNetworkGroupPolicyInventory) UnmarshalJSON(data []byte) (err e } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type FabricEthNetworkGroupPolicyInventoryWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_fabric_eth_network_group_policy_inventory_list.go b/model_fabric_eth_network_group_policy_inventory_list.go index 19aa4230dd..d6f8bf7198 100644 --- a/model_fabric_eth_network_group_policy_inventory_list.go +++ b/model_fabric_eth_network_group_policy_inventory_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *FabricEthNetworkGroupPolicyInventoryList) GetResultsOk() ([]FabricEthNe // HasResults returns a boolean if a field has been set. func (o *FabricEthNetworkGroupPolicyInventoryList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *FabricEthNetworkGroupPolicyInventoryList) UnmarshalJSON(data []byte) (e "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *FabricEthNetworkGroupPolicyInventoryList) UnmarshalJSON(data []byte) (e } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type FabricEthNetworkGroupPolicyInventoryListWithoutEmbeddedStruct struct { // The total number of 'fabric.EthNetworkGroupPolicyInventory' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_fabric_eth_network_group_policy_inventory_relationship.go b/model_fabric_eth_network_group_policy_inventory_relationship.go index 36451197ff..bc5612447f 100644 --- a/model_fabric_eth_network_group_policy_inventory_relationship.go +++ b/model_fabric_eth_network_group_policy_inventory_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_fabric_eth_network_group_policy_inventory_response.go b/model_fabric_eth_network_group_policy_inventory_response.go index 6ba79c454f..bd6f8bc66f 100644 --- a/model_fabric_eth_network_group_policy_inventory_response.go +++ b/model_fabric_eth_network_group_policy_inventory_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_fabric_eth_network_group_policy_list.go b/model_fabric_eth_network_group_policy_list.go index fe3822908c..a8f213a536 100644 --- a/model_fabric_eth_network_group_policy_list.go +++ b/model_fabric_eth_network_group_policy_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *FabricEthNetworkGroupPolicyList) GetResultsOk() ([]FabricEthNetworkGrou // HasResults returns a boolean if a field has been set. func (o *FabricEthNetworkGroupPolicyList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *FabricEthNetworkGroupPolicyList) UnmarshalJSON(data []byte) (err error) "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *FabricEthNetworkGroupPolicyList) UnmarshalJSON(data []byte) (err error) } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type FabricEthNetworkGroupPolicyListWithoutEmbeddedStruct struct { // The total number of 'fabric.EthNetworkGroupPolicy' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_fabric_eth_network_group_policy_relationship.go b/model_fabric_eth_network_group_policy_relationship.go index e31db904f6..ddb07a6945 100644 --- a/model_fabric_eth_network_group_policy_relationship.go +++ b/model_fabric_eth_network_group_policy_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_fabric_eth_network_group_policy_response.go b/model_fabric_eth_network_group_policy_response.go index ebdd45ac05..5cf29a87ba 100644 --- a/model_fabric_eth_network_group_policy_response.go +++ b/model_fabric_eth_network_group_policy_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_fabric_eth_network_policy.go b/model_fabric_eth_network_policy.go index 00863423b1..81ed52b063 100644 --- a/model_fabric_eth_network_policy.go +++ b/model_fabric_eth_network_policy.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -83,6 +83,11 @@ func (o *FabricEthNetworkPolicy) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "fabric.EthNetworkPolicy" of the ClassId field. +func (o *FabricEthNetworkPolicy) GetDefaultClassId() interface{} { + return "fabric.EthNetworkPolicy" +} + // GetObjectType returns the ObjectType field value func (o *FabricEthNetworkPolicy) GetObjectType() string { if o == nil { @@ -107,6 +112,11 @@ func (o *FabricEthNetworkPolicy) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "fabric.EthNetworkPolicy" of the ObjectType field. +func (o *FabricEthNetworkPolicy) GetDefaultObjectType() interface{} { + return "fabric.EthNetworkPolicy" +} + // GetOrganization returns the Organization field value if set, zero value otherwise (both if not set or set to explicit null). func (o *FabricEthNetworkPolicy) GetOrganization() OrganizationOrganizationRelationship { if o == nil || IsNil(o.Organization.Get()) { @@ -171,7 +181,7 @@ func (o *FabricEthNetworkPolicy) GetProfilesOk() ([]FabricBaseSwitchProfileRelat // HasProfiles returns a boolean if a field has been set. func (o *FabricEthNetworkPolicy) HasProfiles() bool { - if o != nil && IsNil(o.Profiles) { + if o != nil && !IsNil(o.Profiles) { return true } @@ -201,7 +211,13 @@ func (o FabricEthNetworkPolicy) ToMap() (map[string]interface{}, error) { if errPolicyAbstractPolicy != nil { return map[string]interface{}{}, errPolicyAbstractPolicy } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.Organization.IsSet() { toSerialize["Organization"] = o.Organization.Get() @@ -226,6 +242,13 @@ func (o *FabricEthNetworkPolicy) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -235,11 +258,23 @@ func (o *FabricEthNetworkPolicy) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type FabricEthNetworkPolicyWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_fabric_eth_network_policy_list.go b/model_fabric_eth_network_policy_list.go index 890e0c59fc..5cfad8230d 100644 --- a/model_fabric_eth_network_policy_list.go +++ b/model_fabric_eth_network_policy_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *FabricEthNetworkPolicyList) GetResultsOk() ([]FabricEthNetworkPolicy, b // HasResults returns a boolean if a field has been set. func (o *FabricEthNetworkPolicyList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *FabricEthNetworkPolicyList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *FabricEthNetworkPolicyList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type FabricEthNetworkPolicyListWithoutEmbeddedStruct struct { // The total number of 'fabric.EthNetworkPolicy' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_fabric_eth_network_policy_relationship.go b/model_fabric_eth_network_policy_relationship.go index 9d3a7fd0b8..47e960dc5c 100644 --- a/model_fabric_eth_network_policy_relationship.go +++ b/model_fabric_eth_network_policy_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_fabric_eth_network_policy_response.go b/model_fabric_eth_network_policy_response.go index 5bd76f73a7..6c225cd413 100644 --- a/model_fabric_eth_network_policy_response.go +++ b/model_fabric_eth_network_policy_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_fabric_fc_network_policy.go b/model_fabric_fc_network_policy.go index 434b1e6704..86cdb9bd07 100644 --- a/model_fabric_fc_network_policy.go +++ b/model_fabric_fc_network_policy.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -85,6 +85,11 @@ func (o *FabricFcNetworkPolicy) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "fabric.FcNetworkPolicy" of the ClassId field. +func (o *FabricFcNetworkPolicy) GetDefaultClassId() interface{} { + return "fabric.FcNetworkPolicy" +} + // GetObjectType returns the ObjectType field value func (o *FabricFcNetworkPolicy) GetObjectType() string { if o == nil { @@ -109,6 +114,11 @@ func (o *FabricFcNetworkPolicy) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "fabric.FcNetworkPolicy" of the ObjectType field. +func (o *FabricFcNetworkPolicy) GetDefaultObjectType() interface{} { + return "fabric.FcNetworkPolicy" +} + // GetEnableTrunking returns the EnableTrunking field value if set, zero value otherwise. func (o *FabricFcNetworkPolicy) GetEnableTrunking() bool { if o == nil || IsNil(o.EnableTrunking) { @@ -205,7 +215,7 @@ func (o *FabricFcNetworkPolicy) GetProfilesOk() ([]FabricBaseSwitchProfileRelati // HasProfiles returns a boolean if a field has been set. func (o *FabricFcNetworkPolicy) HasProfiles() bool { - if o != nil && IsNil(o.Profiles) { + if o != nil && !IsNil(o.Profiles) { return true } @@ -235,7 +245,13 @@ func (o FabricFcNetworkPolicy) ToMap() (map[string]interface{}, error) { if errPolicyAbstractPolicy != nil { return map[string]interface{}{}, errPolicyAbstractPolicy } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.EnableTrunking) { toSerialize["EnableTrunking"] = o.EnableTrunking @@ -263,6 +279,13 @@ func (o *FabricFcNetworkPolicy) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -272,11 +295,23 @@ func (o *FabricFcNetworkPolicy) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type FabricFcNetworkPolicyWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_fabric_fc_network_policy_list.go b/model_fabric_fc_network_policy_list.go index 9c34c19b80..037b25993c 100644 --- a/model_fabric_fc_network_policy_list.go +++ b/model_fabric_fc_network_policy_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *FabricFcNetworkPolicyList) GetResultsOk() ([]FabricFcNetworkPolicy, boo // HasResults returns a boolean if a field has been set. func (o *FabricFcNetworkPolicyList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *FabricFcNetworkPolicyList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *FabricFcNetworkPolicyList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type FabricFcNetworkPolicyListWithoutEmbeddedStruct struct { // The total number of 'fabric.FcNetworkPolicy' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_fabric_fc_network_policy_relationship.go b/model_fabric_fc_network_policy_relationship.go index d1dc26e9d9..62bf7b9f85 100644 --- a/model_fabric_fc_network_policy_relationship.go +++ b/model_fabric_fc_network_policy_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_fabric_fc_network_policy_response.go b/model_fabric_fc_network_policy_response.go index a1f6228854..fc6d30f3af 100644 --- a/model_fabric_fc_network_policy_response.go +++ b/model_fabric_fc_network_policy_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_fabric_fc_storage_role.go b/model_fabric_fc_storage_role.go index fd6e7a05f9..70436d0901 100644 --- a/model_fabric_fc_storage_role.go +++ b/model_fabric_fc_storage_role.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -88,6 +88,11 @@ func (o *FabricFcStorageRole) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "fabric.FcStorageRole" of the ClassId field. +func (o *FabricFcStorageRole) GetDefaultClassId() interface{} { + return "fabric.FcStorageRole" +} + // GetObjectType returns the ObjectType field value func (o *FabricFcStorageRole) GetObjectType() string { if o == nil { @@ -112,6 +117,11 @@ func (o *FabricFcStorageRole) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "fabric.FcStorageRole" of the ObjectType field. +func (o *FabricFcStorageRole) GetDefaultObjectType() interface{} { + return "fabric.FcStorageRole" +} + // GetAdminSpeed returns the AdminSpeed field value if set, zero value otherwise. func (o *FabricFcStorageRole) GetAdminSpeed() string { if o == nil || IsNil(o.AdminSpeed) { @@ -194,7 +204,13 @@ func (o FabricFcStorageRole) ToMap() (map[string]interface{}, error) { if errFabricPortRole != nil { return map[string]interface{}{}, errFabricPortRole } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.AdminSpeed) { toSerialize["AdminSpeed"] = o.AdminSpeed @@ -219,6 +235,13 @@ func (o *FabricFcStorageRole) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -228,11 +251,23 @@ func (o *FabricFcStorageRole) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type FabricFcStorageRoleWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_fabric_fc_storage_role_list.go b/model_fabric_fc_storage_role_list.go index f14999e6e6..8561fd7b61 100644 --- a/model_fabric_fc_storage_role_list.go +++ b/model_fabric_fc_storage_role_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *FabricFcStorageRoleList) GetResultsOk() ([]FabricFcStorageRole, bool) { // HasResults returns a boolean if a field has been set. func (o *FabricFcStorageRoleList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *FabricFcStorageRoleList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *FabricFcStorageRoleList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type FabricFcStorageRoleListWithoutEmbeddedStruct struct { // The total number of 'fabric.FcStorageRole' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_fabric_fc_storage_role_response.go b/model_fabric_fc_storage_role_response.go index bc783f7b73..d8cf5db006 100644 --- a/model_fabric_fc_storage_role_response.go +++ b/model_fabric_fc_storage_role_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_fabric_fc_uplink_pc_role.go b/model_fabric_fc_uplink_pc_role.go index d6e8aca1ff..0d576f6c83 100644 --- a/model_fabric_fc_uplink_pc_role.go +++ b/model_fabric_fc_uplink_pc_role.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -94,6 +94,11 @@ func (o *FabricFcUplinkPcRole) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "fabric.FcUplinkPcRole" of the ClassId field. +func (o *FabricFcUplinkPcRole) GetDefaultClassId() interface{} { + return "fabric.FcUplinkPcRole" +} + // GetObjectType returns the ObjectType field value func (o *FabricFcUplinkPcRole) GetObjectType() string { if o == nil { @@ -118,6 +123,11 @@ func (o *FabricFcUplinkPcRole) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "fabric.FcUplinkPcRole" of the ObjectType field. +func (o *FabricFcUplinkPcRole) GetDefaultObjectType() interface{} { + return "fabric.FcUplinkPcRole" +} + // GetAdminSpeed returns the AdminSpeed field value if set, zero value otherwise. func (o *FabricFcUplinkPcRole) GetAdminSpeed() string { if o == nil || IsNil(o.AdminSpeed) { @@ -232,7 +242,13 @@ func (o FabricFcUplinkPcRole) ToMap() (map[string]interface{}, error) { if errFabricPortChannelRole != nil { return map[string]interface{}{}, errFabricPortChannelRole } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.AdminSpeed) { toSerialize["AdminSpeed"] = o.AdminSpeed @@ -260,6 +276,13 @@ func (o *FabricFcUplinkPcRole) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -269,11 +292,23 @@ func (o *FabricFcUplinkPcRole) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type FabricFcUplinkPcRoleWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_fabric_fc_uplink_pc_role_list.go b/model_fabric_fc_uplink_pc_role_list.go index 72702580f2..21a18bc82f 100644 --- a/model_fabric_fc_uplink_pc_role_list.go +++ b/model_fabric_fc_uplink_pc_role_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *FabricFcUplinkPcRoleList) GetResultsOk() ([]FabricFcUplinkPcRole, bool) // HasResults returns a boolean if a field has been set. func (o *FabricFcUplinkPcRoleList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *FabricFcUplinkPcRoleList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *FabricFcUplinkPcRoleList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type FabricFcUplinkPcRoleListWithoutEmbeddedStruct struct { // The total number of 'fabric.FcUplinkPcRole' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_fabric_fc_uplink_pc_role_response.go b/model_fabric_fc_uplink_pc_role_response.go index ee8b6149b2..e3287bd671 100644 --- a/model_fabric_fc_uplink_pc_role_response.go +++ b/model_fabric_fc_uplink_pc_role_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_fabric_fc_uplink_role.go b/model_fabric_fc_uplink_role.go index c01b793920..ad50f81d3a 100644 --- a/model_fabric_fc_uplink_role.go +++ b/model_fabric_fc_uplink_role.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -94,6 +94,11 @@ func (o *FabricFcUplinkRole) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "fabric.FcUplinkRole" of the ClassId field. +func (o *FabricFcUplinkRole) GetDefaultClassId() interface{} { + return "fabric.FcUplinkRole" +} + // GetObjectType returns the ObjectType field value func (o *FabricFcUplinkRole) GetObjectType() string { if o == nil { @@ -118,6 +123,11 @@ func (o *FabricFcUplinkRole) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "fabric.FcUplinkRole" of the ObjectType field. +func (o *FabricFcUplinkRole) GetDefaultObjectType() interface{} { + return "fabric.FcUplinkRole" +} + // GetAdminSpeed returns the AdminSpeed field value if set, zero value otherwise. func (o *FabricFcUplinkRole) GetAdminSpeed() string { if o == nil || IsNil(o.AdminSpeed) { @@ -232,7 +242,13 @@ func (o FabricFcUplinkRole) ToMap() (map[string]interface{}, error) { if errFabricPortRole != nil { return map[string]interface{}{}, errFabricPortRole } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.AdminSpeed) { toSerialize["AdminSpeed"] = o.AdminSpeed @@ -260,6 +276,13 @@ func (o *FabricFcUplinkRole) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -269,11 +292,23 @@ func (o *FabricFcUplinkRole) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type FabricFcUplinkRoleWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_fabric_fc_uplink_role_list.go b/model_fabric_fc_uplink_role_list.go index 377a38c69d..d506044a35 100644 --- a/model_fabric_fc_uplink_role_list.go +++ b/model_fabric_fc_uplink_role_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *FabricFcUplinkRoleList) GetResultsOk() ([]FabricFcUplinkRole, bool) { // HasResults returns a boolean if a field has been set. func (o *FabricFcUplinkRoleList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *FabricFcUplinkRoleList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *FabricFcUplinkRoleList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type FabricFcUplinkRoleListWithoutEmbeddedStruct struct { // The total number of 'fabric.FcUplinkRole' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_fabric_fc_uplink_role_response.go b/model_fabric_fc_uplink_role_response.go index ad1c3782a9..171a05513b 100644 --- a/model_fabric_fc_uplink_role_response.go +++ b/model_fabric_fc_uplink_role_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_fabric_fc_zone_member.go b/model_fabric_fc_zone_member.go index 65d1864bc8..68cadaadf4 100644 --- a/model_fabric_fc_zone_member.go +++ b/model_fabric_fc_zone_member.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -35,7 +35,7 @@ type FabricFcZoneMember struct { // VSAN with scope defined as Storage in the VSAN policy. VsanId *int64 `json:"VsanId,omitempty"` // WWPN that is a member of the FC zone. - Wwpn *string `json:"Wwpn,omitempty"` + Wwpn *string `json:"Wwpn,omitempty" validate:"regexp=^$|([0-9a-fA-F]{2}:){7}[0-9a-fA-F]{2}$"` AdditionalProperties map[string]interface{} } @@ -92,6 +92,11 @@ func (o *FabricFcZoneMember) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "fabric.FcZoneMember" of the ClassId field. +func (o *FabricFcZoneMember) GetDefaultClassId() interface{} { + return "fabric.FcZoneMember" +} + // GetObjectType returns the ObjectType field value func (o *FabricFcZoneMember) GetObjectType() string { if o == nil { @@ -116,6 +121,11 @@ func (o *FabricFcZoneMember) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "fabric.FcZoneMember" of the ObjectType field. +func (o *FabricFcZoneMember) GetDefaultObjectType() interface{} { + return "fabric.FcZoneMember" +} + // GetName returns the Name field value if set, zero value otherwise. func (o *FabricFcZoneMember) GetName() string { if o == nil || IsNil(o.Name) { @@ -262,7 +272,13 @@ func (o FabricFcZoneMember) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Name) { toSerialize["Name"] = o.Name @@ -293,6 +309,13 @@ func (o *FabricFcZoneMember) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -302,11 +325,23 @@ func (o *FabricFcZoneMember) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type FabricFcZoneMemberWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` @@ -319,7 +354,7 @@ func (o *FabricFcZoneMember) UnmarshalJSON(data []byte) (err error) { // VSAN with scope defined as Storage in the VSAN policy. VsanId *int64 `json:"VsanId,omitempty"` // WWPN that is a member of the FC zone. - Wwpn *string `json:"Wwpn,omitempty"` + Wwpn *string `json:"Wwpn,omitempty" validate:"regexp=^$|([0-9a-fA-F]{2}:){7}[0-9a-fA-F]{2}$"` } varFabricFcZoneMemberWithoutEmbeddedStruct := FabricFcZoneMemberWithoutEmbeddedStruct{} diff --git a/model_fabric_fc_zone_policy.go b/model_fabric_fc_zone_policy.go index 501937484b..422dc45362 100644 --- a/model_fabric_fc_zone_policy.go +++ b/model_fabric_fc_zone_policy.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -88,6 +88,11 @@ func (o *FabricFcZonePolicy) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "fabric.FcZonePolicy" of the ClassId field. +func (o *FabricFcZonePolicy) GetDefaultClassId() interface{} { + return "fabric.FcZonePolicy" +} + // GetObjectType returns the ObjectType field value func (o *FabricFcZonePolicy) GetObjectType() string { if o == nil { @@ -112,6 +117,11 @@ func (o *FabricFcZonePolicy) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "fabric.FcZonePolicy" of the ObjectType field. +func (o *FabricFcZonePolicy) GetDefaultObjectType() interface{} { + return "fabric.FcZonePolicy" +} + // GetFcTargetMembers returns the FcTargetMembers field value if set, zero value otherwise (both if not set or set to explicit null). func (o *FabricFcZonePolicy) GetFcTargetMembers() []FabricFcZoneMember { if o == nil { @@ -133,7 +143,7 @@ func (o *FabricFcZonePolicy) GetFcTargetMembersOk() ([]FabricFcZoneMember, bool) // HasFcTargetMembers returns a boolean if a field has been set. func (o *FabricFcZonePolicy) HasFcTargetMembers() bool { - if o != nil && IsNil(o.FcTargetMembers) { + if o != nil && !IsNil(o.FcTargetMembers) { return true } @@ -238,7 +248,13 @@ func (o FabricFcZonePolicy) ToMap() (map[string]interface{}, error) { if errPolicyAbstractPolicy != nil { return map[string]interface{}{}, errPolicyAbstractPolicy } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.FcTargetMembers != nil { toSerialize["FcTargetMembers"] = o.FcTargetMembers @@ -266,6 +282,13 @@ func (o *FabricFcZonePolicy) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -275,11 +298,23 @@ func (o *FabricFcZonePolicy) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type FabricFcZonePolicyWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_fabric_fc_zone_policy_list.go b/model_fabric_fc_zone_policy_list.go index f149c030c9..9b07a01f13 100644 --- a/model_fabric_fc_zone_policy_list.go +++ b/model_fabric_fc_zone_policy_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *FabricFcZonePolicyList) GetResultsOk() ([]FabricFcZonePolicy, bool) { // HasResults returns a boolean if a field has been set. func (o *FabricFcZonePolicyList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *FabricFcZonePolicyList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *FabricFcZonePolicyList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type FabricFcZonePolicyListWithoutEmbeddedStruct struct { // The total number of 'fabric.FcZonePolicy' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_fabric_fc_zone_policy_relationship.go b/model_fabric_fc_zone_policy_relationship.go index 243e8c369c..9f6b1cecdf 100644 --- a/model_fabric_fc_zone_policy_relationship.go +++ b/model_fabric_fc_zone_policy_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_fabric_fc_zone_policy_response.go b/model_fabric_fc_zone_policy_response.go index c0c8c079ca..528f63dea3 100644 --- a/model_fabric_fc_zone_policy_response.go +++ b/model_fabric_fc_zone_policy_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_fabric_fcoe_uplink_pc_role.go b/model_fabric_fcoe_uplink_pc_role.go index 2b8b09a915..4af1560c3f 100644 --- a/model_fabric_fcoe_uplink_pc_role.go +++ b/model_fabric_fcoe_uplink_pc_role.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -94,6 +94,11 @@ func (o *FabricFcoeUplinkPcRole) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "fabric.FcoeUplinkPcRole" of the ClassId field. +func (o *FabricFcoeUplinkPcRole) GetDefaultClassId() interface{} { + return "fabric.FcoeUplinkPcRole" +} + // GetObjectType returns the ObjectType field value func (o *FabricFcoeUplinkPcRole) GetObjectType() string { if o == nil { @@ -118,6 +123,11 @@ func (o *FabricFcoeUplinkPcRole) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "fabric.FcoeUplinkPcRole" of the ObjectType field. +func (o *FabricFcoeUplinkPcRole) GetDefaultObjectType() interface{} { + return "fabric.FcoeUplinkPcRole" +} + // GetAdminSpeed returns the AdminSpeed field value if set, zero value otherwise. func (o *FabricFcoeUplinkPcRole) GetAdminSpeed() string { if o == nil || IsNil(o.AdminSpeed) { @@ -286,7 +296,13 @@ func (o FabricFcoeUplinkPcRole) ToMap() (map[string]interface{}, error) { if errFabricPortChannelRole != nil { return map[string]interface{}{}, errFabricPortChannelRole } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.AdminSpeed) { toSerialize["AdminSpeed"] = o.AdminSpeed @@ -317,6 +333,13 @@ func (o *FabricFcoeUplinkPcRole) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -326,11 +349,23 @@ func (o *FabricFcoeUplinkPcRole) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type FabricFcoeUplinkPcRoleWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_fabric_fcoe_uplink_pc_role_list.go b/model_fabric_fcoe_uplink_pc_role_list.go index ff22059a9d..7b2d2c5d4e 100644 --- a/model_fabric_fcoe_uplink_pc_role_list.go +++ b/model_fabric_fcoe_uplink_pc_role_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *FabricFcoeUplinkPcRoleList) GetResultsOk() ([]FabricFcoeUplinkPcRole, b // HasResults returns a boolean if a field has been set. func (o *FabricFcoeUplinkPcRoleList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *FabricFcoeUplinkPcRoleList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *FabricFcoeUplinkPcRoleList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type FabricFcoeUplinkPcRoleListWithoutEmbeddedStruct struct { // The total number of 'fabric.FcoeUplinkPcRole' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_fabric_fcoe_uplink_pc_role_response.go b/model_fabric_fcoe_uplink_pc_role_response.go index f82651b4c6..5024a1e22f 100644 --- a/model_fabric_fcoe_uplink_pc_role_response.go +++ b/model_fabric_fcoe_uplink_pc_role_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_fabric_fcoe_uplink_role.go b/model_fabric_fcoe_uplink_role.go index a4a8dd33c2..8669f384cf 100644 --- a/model_fabric_fcoe_uplink_role.go +++ b/model_fabric_fcoe_uplink_role.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -85,6 +85,11 @@ func (o *FabricFcoeUplinkRole) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "fabric.FcoeUplinkRole" of the ClassId field. +func (o *FabricFcoeUplinkRole) GetDefaultClassId() interface{} { + return "fabric.FcoeUplinkRole" +} + // GetObjectType returns the ObjectType field value func (o *FabricFcoeUplinkRole) GetObjectType() string { if o == nil { @@ -109,6 +114,11 @@ func (o *FabricFcoeUplinkRole) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "fabric.FcoeUplinkRole" of the ObjectType field. +func (o *FabricFcoeUplinkRole) GetDefaultObjectType() interface{} { + return "fabric.FcoeUplinkRole" +} + // GetLinkControlPolicy returns the LinkControlPolicy field value if set, zero value otherwise (both if not set or set to explicit null). func (o *FabricFcoeUplinkRole) GetLinkControlPolicy() FabricLinkControlPolicyRelationship { if o == nil || IsNil(o.LinkControlPolicy.Get()) { @@ -170,7 +180,13 @@ func (o FabricFcoeUplinkRole) ToMap() (map[string]interface{}, error) { if errFabricTransceiverRole != nil { return map[string]interface{}{}, errFabricTransceiverRole } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.LinkControlPolicy.IsSet() { toSerialize["LinkControlPolicy"] = o.LinkControlPolicy.Get() @@ -192,6 +208,13 @@ func (o *FabricFcoeUplinkRole) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -201,11 +224,23 @@ func (o *FabricFcoeUplinkRole) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type FabricFcoeUplinkRoleWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_fabric_fcoe_uplink_role_list.go b/model_fabric_fcoe_uplink_role_list.go index fc1caa87eb..ec11cd0ea1 100644 --- a/model_fabric_fcoe_uplink_role_list.go +++ b/model_fabric_fcoe_uplink_role_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *FabricFcoeUplinkRoleList) GetResultsOk() ([]FabricFcoeUplinkRole, bool) // HasResults returns a boolean if a field has been set. func (o *FabricFcoeUplinkRoleList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *FabricFcoeUplinkRoleList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *FabricFcoeUplinkRoleList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type FabricFcoeUplinkRoleListWithoutEmbeddedStruct struct { // The total number of 'fabric.FcoeUplinkRole' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_fabric_fcoe_uplink_role_response.go b/model_fabric_fcoe_uplink_role_response.go index 1fb803bebd..2b9b6582e6 100644 --- a/model_fabric_fcoe_uplink_role_response.go +++ b/model_fabric_fcoe_uplink_role_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_fabric_flow_control_policy.go b/model_fabric_flow_control_policy.go index 7093b140e0..ca836db4ad 100644 --- a/model_fabric_flow_control_policy.go +++ b/model_fabric_flow_control_policy.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -99,6 +99,11 @@ func (o *FabricFlowControlPolicy) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "fabric.FlowControlPolicy" of the ClassId field. +func (o *FabricFlowControlPolicy) GetDefaultClassId() interface{} { + return "fabric.FlowControlPolicy" +} + // GetObjectType returns the ObjectType field value func (o *FabricFlowControlPolicy) GetObjectType() string { if o == nil { @@ -123,6 +128,11 @@ func (o *FabricFlowControlPolicy) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "fabric.FlowControlPolicy" of the ObjectType field. +func (o *FabricFlowControlPolicy) GetDefaultObjectType() interface{} { + return "fabric.FlowControlPolicy" +} + // GetPriorityFlowControlMode returns the PriorityFlowControlMode field value if set, zero value otherwise. func (o *FabricFlowControlPolicy) GetPriorityFlowControlMode() string { if o == nil || IsNil(o.PriorityFlowControlMode) { @@ -280,7 +290,13 @@ func (o FabricFlowControlPolicy) ToMap() (map[string]interface{}, error) { if errPolicyAbstractPolicy != nil { return map[string]interface{}{}, errPolicyAbstractPolicy } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.PriorityFlowControlMode) { toSerialize["PriorityFlowControlMode"] = o.PriorityFlowControlMode @@ -311,6 +327,13 @@ func (o *FabricFlowControlPolicy) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -320,11 +343,23 @@ func (o *FabricFlowControlPolicy) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type FabricFlowControlPolicyWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_fabric_flow_control_policy_list.go b/model_fabric_flow_control_policy_list.go index c68f2dd713..2f788bf3fe 100644 --- a/model_fabric_flow_control_policy_list.go +++ b/model_fabric_flow_control_policy_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *FabricFlowControlPolicyList) GetResultsOk() ([]FabricFlowControlPolicy, // HasResults returns a boolean if a field has been set. func (o *FabricFlowControlPolicyList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *FabricFlowControlPolicyList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *FabricFlowControlPolicyList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type FabricFlowControlPolicyListWithoutEmbeddedStruct struct { // The total number of 'fabric.FlowControlPolicy' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_fabric_flow_control_policy_relationship.go b/model_fabric_flow_control_policy_relationship.go index 96b92fb782..1f02f0143c 100644 --- a/model_fabric_flow_control_policy_relationship.go +++ b/model_fabric_flow_control_policy_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_fabric_flow_control_policy_response.go b/model_fabric_flow_control_policy_response.go index 6545e8696e..ee13936f9b 100644 --- a/model_fabric_flow_control_policy_response.go +++ b/model_fabric_flow_control_policy_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_fabric_lan_pin_group.go b/model_fabric_lan_pin_group.go index f2aacc6b9c..291ede29f4 100644 --- a/model_fabric_lan_pin_group.go +++ b/model_fabric_lan_pin_group.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -81,6 +81,11 @@ func (o *FabricLanPinGroup) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "fabric.LanPinGroup" of the ClassId field. +func (o *FabricLanPinGroup) GetDefaultClassId() interface{} { + return "fabric.LanPinGroup" +} + // GetObjectType returns the ObjectType field value func (o *FabricLanPinGroup) GetObjectType() string { if o == nil { @@ -105,6 +110,11 @@ func (o *FabricLanPinGroup) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "fabric.LanPinGroup" of the ObjectType field. +func (o *FabricLanPinGroup) GetDefaultObjectType() interface{} { + return "fabric.LanPinGroup" +} + // GetPinTargetInterfaceRole returns the PinTargetInterfaceRole field value if set, zero value otherwise (both if not set or set to explicit null). func (o *FabricLanPinGroup) GetPinTargetInterfaceRole() FabricAbstractInterfaceRoleRelationship { if o == nil || IsNil(o.PinTargetInterfaceRole.Get()) { @@ -166,7 +176,13 @@ func (o FabricLanPinGroup) ToMap() (map[string]interface{}, error) { if errFabricPinGroup != nil { return map[string]interface{}{}, errFabricPinGroup } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.PinTargetInterfaceRole.IsSet() { toSerialize["PinTargetInterfaceRole"] = o.PinTargetInterfaceRole.Get() @@ -188,6 +204,13 @@ func (o *FabricLanPinGroup) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -197,11 +220,23 @@ func (o *FabricLanPinGroup) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type FabricLanPinGroupWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_fabric_lan_pin_group_list.go b/model_fabric_lan_pin_group_list.go index 04c0779d08..b9138a642c 100644 --- a/model_fabric_lan_pin_group_list.go +++ b/model_fabric_lan_pin_group_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *FabricLanPinGroupList) GetResultsOk() ([]FabricLanPinGroup, bool) { // HasResults returns a boolean if a field has been set. func (o *FabricLanPinGroupList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *FabricLanPinGroupList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *FabricLanPinGroupList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type FabricLanPinGroupListWithoutEmbeddedStruct struct { // The total number of 'fabric.LanPinGroup' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_fabric_lan_pin_group_response.go b/model_fabric_lan_pin_group_response.go index 857f3a6a7b..5cc9cc7c54 100644 --- a/model_fabric_lan_pin_group_response.go +++ b/model_fabric_lan_pin_group_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_fabric_link_aggregation_policy.go b/model_fabric_link_aggregation_policy.go index e1b06370ac..245437b2e6 100644 --- a/model_fabric_link_aggregation_policy.go +++ b/model_fabric_link_aggregation_policy.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -89,6 +89,11 @@ func (o *FabricLinkAggregationPolicy) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "fabric.LinkAggregationPolicy" of the ClassId field. +func (o *FabricLinkAggregationPolicy) GetDefaultClassId() interface{} { + return "fabric.LinkAggregationPolicy" +} + // GetObjectType returns the ObjectType field value func (o *FabricLinkAggregationPolicy) GetObjectType() string { if o == nil { @@ -113,6 +118,11 @@ func (o *FabricLinkAggregationPolicy) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "fabric.LinkAggregationPolicy" of the ObjectType field. +func (o *FabricLinkAggregationPolicy) GetDefaultObjectType() interface{} { + return "fabric.LinkAggregationPolicy" +} + // GetLacpRate returns the LacpRate field value if set, zero value otherwise. func (o *FabricLinkAggregationPolicy) GetLacpRate() string { if o == nil || IsNil(o.LacpRate) { @@ -238,7 +248,13 @@ func (o FabricLinkAggregationPolicy) ToMap() (map[string]interface{}, error) { if errPolicyAbstractPolicy != nil { return map[string]interface{}{}, errPolicyAbstractPolicy } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.LacpRate) { toSerialize["LacpRate"] = o.LacpRate @@ -266,6 +282,13 @@ func (o *FabricLinkAggregationPolicy) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -275,11 +298,23 @@ func (o *FabricLinkAggregationPolicy) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type FabricLinkAggregationPolicyWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_fabric_link_aggregation_policy_list.go b/model_fabric_link_aggregation_policy_list.go index f619023116..7666a47646 100644 --- a/model_fabric_link_aggregation_policy_list.go +++ b/model_fabric_link_aggregation_policy_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *FabricLinkAggregationPolicyList) GetResultsOk() ([]FabricLinkAggregatio // HasResults returns a boolean if a field has been set. func (o *FabricLinkAggregationPolicyList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *FabricLinkAggregationPolicyList) UnmarshalJSON(data []byte) (err error) "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *FabricLinkAggregationPolicyList) UnmarshalJSON(data []byte) (err error) } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type FabricLinkAggregationPolicyListWithoutEmbeddedStruct struct { // The total number of 'fabric.LinkAggregationPolicy' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_fabric_link_aggregation_policy_relationship.go b/model_fabric_link_aggregation_policy_relationship.go index 3d7a6e87e6..c1c38083ce 100644 --- a/model_fabric_link_aggregation_policy_relationship.go +++ b/model_fabric_link_aggregation_policy_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_fabric_link_aggregation_policy_response.go b/model_fabric_link_aggregation_policy_response.go index 1e8bbceae4..90cea966ca 100644 --- a/model_fabric_link_aggregation_policy_response.go +++ b/model_fabric_link_aggregation_policy_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_fabric_link_control_policy.go b/model_fabric_link_control_policy.go index daf863eda7..bbed5aa7b9 100644 --- a/model_fabric_link_control_policy.go +++ b/model_fabric_link_control_policy.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -82,6 +82,11 @@ func (o *FabricLinkControlPolicy) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "fabric.LinkControlPolicy" of the ClassId field. +func (o *FabricLinkControlPolicy) GetDefaultClassId() interface{} { + return "fabric.LinkControlPolicy" +} + // GetObjectType returns the ObjectType field value func (o *FabricLinkControlPolicy) GetObjectType() string { if o == nil { @@ -106,6 +111,11 @@ func (o *FabricLinkControlPolicy) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "fabric.LinkControlPolicy" of the ObjectType field. +func (o *FabricLinkControlPolicy) GetDefaultObjectType() interface{} { + return "fabric.LinkControlPolicy" +} + // GetUdldSettings returns the UdldSettings field value if set, zero value otherwise (both if not set or set to explicit null). func (o *FabricLinkControlPolicy) GetUdldSettings() FabricUdldSettings { if o == nil || IsNil(o.UdldSettings.Get()) { @@ -210,7 +220,13 @@ func (o FabricLinkControlPolicy) ToMap() (map[string]interface{}, error) { if errPolicyAbstractPolicy != nil { return map[string]interface{}{}, errPolicyAbstractPolicy } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.UdldSettings.IsSet() { toSerialize["UdldSettings"] = o.UdldSettings.Get() @@ -235,6 +251,13 @@ func (o *FabricLinkControlPolicy) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -244,11 +267,23 @@ func (o *FabricLinkControlPolicy) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type FabricLinkControlPolicyWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_fabric_link_control_policy_list.go b/model_fabric_link_control_policy_list.go index 3b5546a2d2..481e0efe1d 100644 --- a/model_fabric_link_control_policy_list.go +++ b/model_fabric_link_control_policy_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *FabricLinkControlPolicyList) GetResultsOk() ([]FabricLinkControlPolicy, // HasResults returns a boolean if a field has been set. func (o *FabricLinkControlPolicyList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *FabricLinkControlPolicyList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *FabricLinkControlPolicyList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type FabricLinkControlPolicyListWithoutEmbeddedStruct struct { // The total number of 'fabric.LinkControlPolicy' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_fabric_link_control_policy_relationship.go b/model_fabric_link_control_policy_relationship.go index 19729ab101..ea10026bd9 100644 --- a/model_fabric_link_control_policy_relationship.go +++ b/model_fabric_link_control_policy_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_fabric_link_control_policy_response.go b/model_fabric_link_control_policy_response.go index b7215e466a..b0726bc97b 100644 --- a/model_fabric_link_control_policy_response.go +++ b/model_fabric_link_control_policy_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_fabric_lldp_settings.go b/model_fabric_lldp_settings.go index 8572a46146..5b111b2f17 100644 --- a/model_fabric_lldp_settings.go +++ b/model_fabric_lldp_settings.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -92,6 +92,11 @@ func (o *FabricLldpSettings) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "fabric.LldpSettings" of the ClassId field. +func (o *FabricLldpSettings) GetDefaultClassId() interface{} { + return "fabric.LldpSettings" +} + // GetObjectType returns the ObjectType field value func (o *FabricLldpSettings) GetObjectType() string { if o == nil { @@ -116,6 +121,11 @@ func (o *FabricLldpSettings) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "fabric.LldpSettings" of the ObjectType field. +func (o *FabricLldpSettings) GetDefaultObjectType() interface{} { + return "fabric.LldpSettings" +} + // GetReceiveEnabled returns the ReceiveEnabled field value if set, zero value otherwise. func (o *FabricLldpSettings) GetReceiveEnabled() bool { if o == nil || IsNil(o.ReceiveEnabled) { @@ -198,7 +208,13 @@ func (o FabricLldpSettings) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.ReceiveEnabled) { toSerialize["ReceiveEnabled"] = o.ReceiveEnabled @@ -223,6 +239,13 @@ func (o *FabricLldpSettings) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -232,11 +255,23 @@ func (o *FabricLldpSettings) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type FabricLldpSettingsWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_fabric_mac_aging_settings.go b/model_fabric_mac_aging_settings.go index 4df20d68bd..3a0e5b0f24 100644 --- a/model_fabric_mac_aging_settings.go +++ b/model_fabric_mac_aging_settings.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -92,6 +92,11 @@ func (o *FabricMacAgingSettings) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "fabric.MacAgingSettings" of the ClassId field. +func (o *FabricMacAgingSettings) GetDefaultClassId() interface{} { + return "fabric.MacAgingSettings" +} + // GetObjectType returns the ObjectType field value func (o *FabricMacAgingSettings) GetObjectType() string { if o == nil { @@ -116,6 +121,11 @@ func (o *FabricMacAgingSettings) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "fabric.MacAgingSettings" of the ObjectType field. +func (o *FabricMacAgingSettings) GetDefaultObjectType() interface{} { + return "fabric.MacAgingSettings" +} + // GetMacAgingOption returns the MacAgingOption field value if set, zero value otherwise. func (o *FabricMacAgingSettings) GetMacAgingOption() string { if o == nil || IsNil(o.MacAgingOption) { @@ -198,7 +208,13 @@ func (o FabricMacAgingSettings) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.MacAgingOption) { toSerialize["MacAgingOption"] = o.MacAgingOption @@ -223,6 +239,13 @@ func (o *FabricMacAgingSettings) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -232,11 +255,23 @@ func (o *FabricMacAgingSettings) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type FabricMacAgingSettingsWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_fabric_multicast_policy.go b/model_fabric_multicast_policy.go index cb7eedfb1d..005cc0e026 100644 --- a/model_fabric_multicast_policy.go +++ b/model_fabric_multicast_policy.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -29,9 +29,9 @@ type FabricMulticastPolicy struct { // The fully-qualified name of the instantiated, concrete type. The value should be the same as the 'ClassId' property. ObjectType string `json:"ObjectType"` // Used to define the IGMP Querier IP address. - QuerierIpAddress *string `json:"QuerierIpAddress,omitempty"` + QuerierIpAddress *string `json:"QuerierIpAddress,omitempty" validate:"regexp=^$|^([1-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\\\.([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\\\.([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\\\.([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])$"` // Used to define the IGMP Querier IP address of the peer switch. - QuerierIpAddressPeer *string `json:"QuerierIpAddressPeer,omitempty"` + QuerierIpAddressPeer *string `json:"QuerierIpAddressPeer,omitempty" validate:"regexp=^$|^([1-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\\\.([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\\\.([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\\\.([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])$"` // Administrative state of the IGMP Querier for this VLAN. * `Disabled` - Admin configured Disabled State. * `Enabled` - Admin configured Enabled State. QuerierState *string `json:"QuerierState,omitempty"` // Administrative state of the IGMP Snooping for this VLAN. * `Enabled` - Admin configured Enabled State. * `Disabled` - Admin configured Disabled State. @@ -103,6 +103,11 @@ func (o *FabricMulticastPolicy) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "fabric.MulticastPolicy" of the ClassId field. +func (o *FabricMulticastPolicy) GetDefaultClassId() interface{} { + return "fabric.MulticastPolicy" +} + // GetObjectType returns the ObjectType field value func (o *FabricMulticastPolicy) GetObjectType() string { if o == nil { @@ -127,6 +132,11 @@ func (o *FabricMulticastPolicy) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "fabric.MulticastPolicy" of the ObjectType field. +func (o *FabricMulticastPolicy) GetDefaultObjectType() interface{} { + return "fabric.MulticastPolicy" +} + // GetQuerierIpAddress returns the QuerierIpAddress field value if set, zero value otherwise. func (o *FabricMulticastPolicy) GetQuerierIpAddress() string { if o == nil || IsNil(o.QuerierIpAddress) { @@ -348,7 +358,13 @@ func (o FabricMulticastPolicy) ToMap() (map[string]interface{}, error) { if errPolicyAbstractPolicy != nil { return map[string]interface{}{}, errPolicyAbstractPolicy } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.QuerierIpAddress) { toSerialize["QuerierIpAddress"] = o.QuerierIpAddress @@ -385,6 +401,13 @@ func (o *FabricMulticastPolicy) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -394,20 +417,32 @@ func (o *FabricMulticastPolicy) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type FabricMulticastPolicyWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` // The fully-qualified name of the instantiated, concrete type. The value should be the same as the 'ClassId' property. ObjectType string `json:"ObjectType"` // Used to define the IGMP Querier IP address. - QuerierIpAddress *string `json:"QuerierIpAddress,omitempty"` + QuerierIpAddress *string `json:"QuerierIpAddress,omitempty" validate:"regexp=^$|^([1-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\\\.([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\\\.([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\\\.([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])$"` // Used to define the IGMP Querier IP address of the peer switch. - QuerierIpAddressPeer *string `json:"QuerierIpAddressPeer,omitempty"` + QuerierIpAddressPeer *string `json:"QuerierIpAddressPeer,omitempty" validate:"regexp=^$|^([1-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\\\.([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\\\.([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\\\.([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])$"` // Administrative state of the IGMP Querier for this VLAN. * `Disabled` - Admin configured Disabled State. * `Enabled` - Admin configured Enabled State. QuerierState *string `json:"QuerierState,omitempty"` // Administrative state of the IGMP Snooping for this VLAN. * `Enabled` - Admin configured Enabled State. * `Disabled` - Admin configured Disabled State. diff --git a/model_fabric_multicast_policy_list.go b/model_fabric_multicast_policy_list.go index b3837af5cb..92da6006a1 100644 --- a/model_fabric_multicast_policy_list.go +++ b/model_fabric_multicast_policy_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *FabricMulticastPolicyList) GetResultsOk() ([]FabricMulticastPolicy, boo // HasResults returns a boolean if a field has been set. func (o *FabricMulticastPolicyList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *FabricMulticastPolicyList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *FabricMulticastPolicyList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type FabricMulticastPolicyListWithoutEmbeddedStruct struct { // The total number of 'fabric.MulticastPolicy' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_fabric_multicast_policy_relationship.go b/model_fabric_multicast_policy_relationship.go index def5831ced..37b755726b 100644 --- a/model_fabric_multicast_policy_relationship.go +++ b/model_fabric_multicast_policy_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_fabric_multicast_policy_response.go b/model_fabric_multicast_policy_response.go index 30fb2225df..6c73a07e8e 100644 --- a/model_fabric_multicast_policy_response.go +++ b/model_fabric_multicast_policy_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_fabric_pc_member.go b/model_fabric_pc_member.go index cc030e8b13..3714e40a3b 100644 --- a/model_fabric_pc_member.go +++ b/model_fabric_pc_member.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -83,6 +83,11 @@ func (o *FabricPcMember) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "fabric.PcMember" of the ClassId field. +func (o *FabricPcMember) GetDefaultClassId() interface{} { + return "fabric.PcMember" +} + // GetObjectType returns the ObjectType field value func (o *FabricPcMember) GetObjectType() string { if o == nil { @@ -107,6 +112,11 @@ func (o *FabricPcMember) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "fabric.PcMember" of the ObjectType field. +func (o *FabricPcMember) GetDefaultObjectType() interface{} { + return "fabric.PcMember" +} + // GetPcId returns the PcId field value if set, zero value otherwise. func (o *FabricPcMember) GetPcId() int64 { if o == nil || IsNil(o.PcId) { @@ -200,7 +210,13 @@ func (o FabricPcMember) ToMap() (map[string]interface{}, error) { if errFabricPortBase != nil { return map[string]interface{}{}, errFabricPortBase } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.PcId) { toSerialize["PcId"] = o.PcId @@ -225,6 +241,13 @@ func (o *FabricPcMember) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -234,11 +257,23 @@ func (o *FabricPcMember) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type FabricPcMemberWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_fabric_pc_member_list.go b/model_fabric_pc_member_list.go index c63308b571..e211ce8e9b 100644 --- a/model_fabric_pc_member_list.go +++ b/model_fabric_pc_member_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *FabricPcMemberList) GetResultsOk() ([]FabricPcMember, bool) { // HasResults returns a boolean if a field has been set. func (o *FabricPcMemberList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *FabricPcMemberList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *FabricPcMemberList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type FabricPcMemberListWithoutEmbeddedStruct struct { // The total number of 'fabric.PcMember' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_fabric_pc_member_response.go b/model_fabric_pc_member_response.go index ef251d410f..ffb840b90b 100644 --- a/model_fabric_pc_member_response.go +++ b/model_fabric_pc_member_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_fabric_pc_operation.go b/model_fabric_pc_operation.go index f672c6058f..2c66ae81aa 100644 --- a/model_fabric_pc_operation.go +++ b/model_fabric_pc_operation.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -95,6 +95,11 @@ func (o *FabricPcOperation) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "fabric.PcOperation" of the ClassId field. +func (o *FabricPcOperation) GetDefaultClassId() interface{} { + return "fabric.PcOperation" +} + // GetObjectType returns the ObjectType field value func (o *FabricPcOperation) GetObjectType() string { if o == nil { @@ -119,6 +124,11 @@ func (o *FabricPcOperation) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "fabric.PcOperation" of the ObjectType field. +func (o *FabricPcOperation) GetDefaultObjectType() interface{} { + return "fabric.PcOperation" +} + // GetAdminState returns the AdminState field value if set, zero value otherwise. func (o *FabricPcOperation) GetAdminState() string { if o == nil || IsNil(o.AdminState) { @@ -276,7 +286,13 @@ func (o FabricPcOperation) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.AdminState) { toSerialize["AdminState"] = o.AdminState @@ -307,6 +323,13 @@ func (o *FabricPcOperation) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -316,11 +339,23 @@ func (o *FabricPcOperation) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type FabricPcOperationWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_fabric_pc_operation_list.go b/model_fabric_pc_operation_list.go index 062399a28e..07d5636e12 100644 --- a/model_fabric_pc_operation_list.go +++ b/model_fabric_pc_operation_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *FabricPcOperationList) GetResultsOk() ([]FabricPcOperation, bool) { // HasResults returns a boolean if a field has been set. func (o *FabricPcOperationList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *FabricPcOperationList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *FabricPcOperationList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type FabricPcOperationListWithoutEmbeddedStruct struct { // The total number of 'fabric.PcOperation' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_fabric_pc_operation_response.go b/model_fabric_pc_operation_response.go index 4142e5675c..62429ce3ea 100644 --- a/model_fabric_pc_operation_response.go +++ b/model_fabric_pc_operation_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_fabric_pin_group.go b/model_fabric_pin_group.go index cf72769b4a..0487a78dd0 100644 --- a/model_fabric_pin_group.go +++ b/model_fabric_pin_group.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -29,7 +29,7 @@ type FabricPinGroup struct { // The fully-qualified name of the instantiated, concrete type. The value should be the same as the 'ClassId' property. The enum values provides the list of concrete types that can be instantiated from this abstract type. ObjectType string `json:"ObjectType"` // Name of the Pingroup for static pinning. - Name *string `json:"Name,omitempty"` + Name *string `json:"Name,omitempty" validate:"regexp=^[a-zA-Z0-9_.:-]{1,64}$"` PortPolicy NullableFabricPortPolicyRelationship `json:"PortPolicy,omitempty"` AdditionalProperties map[string]interface{} } @@ -221,6 +221,10 @@ func (o *FabricPinGroup) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -230,18 +234,30 @@ func (o *FabricPinGroup) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type FabricPinGroupWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. The enum values provides the list of concrete types that can be instantiated from this abstract type. ClassId string `json:"ClassId"` // The fully-qualified name of the instantiated, concrete type. The value should be the same as the 'ClassId' property. The enum values provides the list of concrete types that can be instantiated from this abstract type. ObjectType string `json:"ObjectType"` // Name of the Pingroup for static pinning. - Name *string `json:"Name,omitempty"` + Name *string `json:"Name,omitempty" validate:"regexp=^[a-zA-Z0-9_.:-]{1,64}$"` PortPolicy NullableFabricPortPolicyRelationship `json:"PortPolicy,omitempty"` } diff --git a/model_fabric_port_base.go b/model_fabric_port_base.go index d003c720bd..517dcd5708 100644 --- a/model_fabric_port_base.go +++ b/model_fabric_port_base.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -248,6 +248,10 @@ func (o *FabricPortBase) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -257,11 +261,23 @@ func (o *FabricPortBase) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type FabricPortBaseWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. The enum values provides the list of concrete types that can be instantiated from this abstract type. ClassId string `json:"ClassId"` diff --git a/model_fabric_port_channel_role.go b/model_fabric_port_channel_role.go index ea47c2124a..3ba48c1b7c 100644 --- a/model_fabric_port_channel_role.go +++ b/model_fabric_port_channel_role.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -157,7 +157,7 @@ func (o *FabricPortChannelRole) GetPortsOk() ([]FabricPortIdentifier, bool) { // HasPorts returns a boolean if a field has been set. func (o *FabricPortChannelRole) HasPorts() bool { - if o != nil && IsNil(o.Ports) { + if o != nil && !IsNil(o.Ports) { return true } @@ -258,6 +258,10 @@ func (o *FabricPortChannelRole) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -267,11 +271,23 @@ func (o *FabricPortChannelRole) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type FabricPortChannelRoleWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. The enum values provides the list of concrete types that can be instantiated from this abstract type. ClassId string `json:"ClassId"` diff --git a/model_fabric_port_identifier.go b/model_fabric_port_identifier.go index 32660fefa9..dbff2d91d6 100644 --- a/model_fabric_port_identifier.go +++ b/model_fabric_port_identifier.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -86,6 +86,11 @@ func (o *FabricPortIdentifier) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "fabric.PortIdentifier" of the ClassId field. +func (o *FabricPortIdentifier) GetDefaultClassId() interface{} { + return "fabric.PortIdentifier" +} + // GetObjectType returns the ObjectType field value func (o *FabricPortIdentifier) GetObjectType() string { if o == nil { @@ -110,6 +115,11 @@ func (o *FabricPortIdentifier) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "fabric.PortIdentifier" of the ObjectType field. +func (o *FabricPortIdentifier) GetDefaultObjectType() interface{} { + return "fabric.PortIdentifier" +} + // GetAggregatePortId returns the AggregatePortId field value if set, zero value otherwise. func (o *FabricPortIdentifier) GetAggregatePortId() int64 { if o == nil || IsNil(o.AggregatePortId) { @@ -224,7 +234,13 @@ func (o FabricPortIdentifier) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.AggregatePortId) { toSerialize["AggregatePortId"] = o.AggregatePortId @@ -252,6 +268,13 @@ func (o *FabricPortIdentifier) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -261,11 +284,23 @@ func (o *FabricPortIdentifier) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type FabricPortIdentifierWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_fabric_port_mode.go b/model_fabric_port_mode.go index 932fe45b4a..dec7204083 100644 --- a/model_fabric_port_mode.go +++ b/model_fabric_port_mode.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -93,6 +93,11 @@ func (o *FabricPortMode) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "fabric.PortMode" of the ClassId field. +func (o *FabricPortMode) GetDefaultClassId() interface{} { + return "fabric.PortMode" +} + // GetObjectType returns the ObjectType field value func (o *FabricPortMode) GetObjectType() string { if o == nil { @@ -117,6 +122,11 @@ func (o *FabricPortMode) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "fabric.PortMode" of the ObjectType field. +func (o *FabricPortMode) GetDefaultObjectType() interface{} { + return "fabric.PortMode" +} + // GetCustomMode returns the CustomMode field value if set, zero value otherwise. func (o *FabricPortMode) GetCustomMode() string { if o == nil || IsNil(o.CustomMode) { @@ -306,7 +316,13 @@ func (o FabricPortMode) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.CustomMode) { toSerialize["CustomMode"] = o.CustomMode @@ -340,6 +356,13 @@ func (o *FabricPortMode) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -349,11 +372,23 @@ func (o *FabricPortMode) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type FabricPortModeWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_fabric_port_mode_list.go b/model_fabric_port_mode_list.go index f4a5bd839d..2aa8579e6e 100644 --- a/model_fabric_port_mode_list.go +++ b/model_fabric_port_mode_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *FabricPortModeList) GetResultsOk() ([]FabricPortMode, bool) { // HasResults returns a boolean if a field has been set. func (o *FabricPortModeList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *FabricPortModeList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *FabricPortModeList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type FabricPortModeListWithoutEmbeddedStruct struct { // The total number of 'fabric.PortMode' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_fabric_port_mode_response.go b/model_fabric_port_mode_response.go index f6c0afadc7..4fa383041a 100644 --- a/model_fabric_port_mode_response.go +++ b/model_fabric_port_mode_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_fabric_port_operation.go b/model_fabric_port_operation.go index b12be5319d..4c50c80ac8 100644 --- a/model_fabric_port_operation.go +++ b/model_fabric_port_operation.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -101,6 +101,11 @@ func (o *FabricPortOperation) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "fabric.PortOperation" of the ClassId field. +func (o *FabricPortOperation) GetDefaultClassId() interface{} { + return "fabric.PortOperation" +} + // GetObjectType returns the ObjectType field value func (o *FabricPortOperation) GetObjectType() string { if o == nil { @@ -125,6 +130,11 @@ func (o *FabricPortOperation) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "fabric.PortOperation" of the ObjectType field. +func (o *FabricPortOperation) GetDefaultObjectType() interface{} { + return "fabric.PortOperation" +} + // GetAdminAction returns the AdminAction field value if set, zero value otherwise. func (o *FabricPortOperation) GetAdminAction() string { if o == nil || IsNil(o.AdminAction) { @@ -314,7 +324,13 @@ func (o FabricPortOperation) ToMap() (map[string]interface{}, error) { if errFabricPortBase != nil { return map[string]interface{}{}, errFabricPortBase } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.AdminAction) { toSerialize["AdminAction"] = o.AdminAction @@ -348,6 +364,13 @@ func (o *FabricPortOperation) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -357,11 +380,23 @@ func (o *FabricPortOperation) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type FabricPortOperationWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_fabric_port_operation_list.go b/model_fabric_port_operation_list.go index aca34b05bd..1bb7052725 100644 --- a/model_fabric_port_operation_list.go +++ b/model_fabric_port_operation_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *FabricPortOperationList) GetResultsOk() ([]FabricPortOperation, bool) { // HasResults returns a boolean if a field has been set. func (o *FabricPortOperationList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *FabricPortOperationList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *FabricPortOperationList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type FabricPortOperationListWithoutEmbeddedStruct struct { // The total number of 'fabric.PortOperation' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_fabric_port_operation_response.go b/model_fabric_port_operation_response.go index f8380023c0..1e924b76b0 100644 --- a/model_fabric_port_operation_response.go +++ b/model_fabric_port_operation_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_fabric_port_policy.go b/model_fabric_port_policy.go index d470a6b0ac..ebc6b15f41 100644 --- a/model_fabric_port_policy.go +++ b/model_fabric_port_policy.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -89,6 +89,11 @@ func (o *FabricPortPolicy) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "fabric.PortPolicy" of the ClassId field. +func (o *FabricPortPolicy) GetDefaultClassId() interface{} { + return "fabric.PortPolicy" +} + // GetObjectType returns the ObjectType field value func (o *FabricPortPolicy) GetObjectType() string { if o == nil { @@ -113,6 +118,11 @@ func (o *FabricPortPolicy) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "fabric.PortPolicy" of the ObjectType field. +func (o *FabricPortPolicy) GetDefaultObjectType() interface{} { + return "fabric.PortPolicy" +} + // GetDeviceModel returns the DeviceModel field value if set, zero value otherwise. func (o *FabricPortPolicy) GetDeviceModel() string { if o == nil || IsNil(o.DeviceModel) { @@ -209,7 +219,7 @@ func (o *FabricPortPolicy) GetProfilesOk() ([]FabricBaseSwitchProfileRelationshi // HasProfiles returns a boolean if a field has been set. func (o *FabricPortPolicy) HasProfiles() bool { - if o != nil && IsNil(o.Profiles) { + if o != nil && !IsNil(o.Profiles) { return true } @@ -239,7 +249,13 @@ func (o FabricPortPolicy) ToMap() (map[string]interface{}, error) { if errPolicyAbstractPolicy != nil { return map[string]interface{}{}, errPolicyAbstractPolicy } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.DeviceModel) { toSerialize["DeviceModel"] = o.DeviceModel @@ -267,6 +283,13 @@ func (o *FabricPortPolicy) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -276,11 +299,23 @@ func (o *FabricPortPolicy) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type FabricPortPolicyWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_fabric_port_policy_list.go b/model_fabric_port_policy_list.go index 6ca7b3beb3..96d64911e2 100644 --- a/model_fabric_port_policy_list.go +++ b/model_fabric_port_policy_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *FabricPortPolicyList) GetResultsOk() ([]FabricPortPolicy, bool) { // HasResults returns a boolean if a field has been set. func (o *FabricPortPolicyList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *FabricPortPolicyList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *FabricPortPolicyList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type FabricPortPolicyListWithoutEmbeddedStruct struct { // The total number of 'fabric.PortPolicy' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_fabric_port_policy_relationship.go b/model_fabric_port_policy_relationship.go index f18d3e55ae..daceebf8fd 100644 --- a/model_fabric_port_policy_relationship.go +++ b/model_fabric_port_policy_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_fabric_port_policy_response.go b/model_fabric_port_policy_response.go index 4e59c93dd9..21942d0419 100644 --- a/model_fabric_port_policy_response.go +++ b/model_fabric_port_policy_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_fabric_port_role.go b/model_fabric_port_role.go index f2626341bb..762b7ff224 100644 --- a/model_fabric_port_role.go +++ b/model_fabric_port_role.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -295,6 +295,10 @@ func (o *FabricPortRole) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -304,11 +308,23 @@ func (o *FabricPortRole) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type FabricPortRoleWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. The enum values provides the list of concrete types that can be instantiated from this abstract type. ClassId string `json:"ClassId"` diff --git a/model_fabric_qos_class.go b/model_fabric_qos_class.go index d604a99bfa..8866469ee0 100644 --- a/model_fabric_qos_class.go +++ b/model_fabric_qos_class.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -116,6 +116,11 @@ func (o *FabricQosClass) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "fabric.QosClass" of the ClassId field. +func (o *FabricQosClass) GetDefaultClassId() interface{} { + return "fabric.QosClass" +} + // GetObjectType returns the ObjectType field value func (o *FabricQosClass) GetObjectType() string { if o == nil { @@ -140,6 +145,11 @@ func (o *FabricQosClass) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "fabric.QosClass" of the ObjectType field. +func (o *FabricQosClass) GetDefaultObjectType() interface{} { + return "fabric.QosClass" +} + // GetAdminState returns the AdminState field value if set, zero value otherwise. func (o *FabricQosClass) GetAdminState() string { if o == nil || IsNil(o.AdminState) { @@ -414,7 +424,13 @@ func (o FabricQosClass) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.AdminState) { toSerialize["AdminState"] = o.AdminState @@ -457,6 +473,13 @@ func (o *FabricQosClass) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -466,11 +489,23 @@ func (o *FabricQosClass) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type FabricQosClassWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_fabric_san_pin_group.go b/model_fabric_san_pin_group.go index af2c83fc25..d7ebe3c95c 100644 --- a/model_fabric_san_pin_group.go +++ b/model_fabric_san_pin_group.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -81,6 +81,11 @@ func (o *FabricSanPinGroup) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "fabric.SanPinGroup" of the ClassId field. +func (o *FabricSanPinGroup) GetDefaultClassId() interface{} { + return "fabric.SanPinGroup" +} + // GetObjectType returns the ObjectType field value func (o *FabricSanPinGroup) GetObjectType() string { if o == nil { @@ -105,6 +110,11 @@ func (o *FabricSanPinGroup) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "fabric.SanPinGroup" of the ObjectType field. +func (o *FabricSanPinGroup) GetDefaultObjectType() interface{} { + return "fabric.SanPinGroup" +} + // GetPinTargetInterfaceRole returns the PinTargetInterfaceRole field value if set, zero value otherwise (both if not set or set to explicit null). func (o *FabricSanPinGroup) GetPinTargetInterfaceRole() FabricAbstractInterfaceRoleRelationship { if o == nil || IsNil(o.PinTargetInterfaceRole.Get()) { @@ -166,7 +176,13 @@ func (o FabricSanPinGroup) ToMap() (map[string]interface{}, error) { if errFabricPinGroup != nil { return map[string]interface{}{}, errFabricPinGroup } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.PinTargetInterfaceRole.IsSet() { toSerialize["PinTargetInterfaceRole"] = o.PinTargetInterfaceRole.Get() @@ -188,6 +204,13 @@ func (o *FabricSanPinGroup) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -197,11 +220,23 @@ func (o *FabricSanPinGroup) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type FabricSanPinGroupWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_fabric_san_pin_group_list.go b/model_fabric_san_pin_group_list.go index 7b31a14579..d83e759e80 100644 --- a/model_fabric_san_pin_group_list.go +++ b/model_fabric_san_pin_group_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *FabricSanPinGroupList) GetResultsOk() ([]FabricSanPinGroup, bool) { // HasResults returns a boolean if a field has been set. func (o *FabricSanPinGroupList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *FabricSanPinGroupList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *FabricSanPinGroupList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type FabricSanPinGroupListWithoutEmbeddedStruct struct { // The total number of 'fabric.SanPinGroup' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_fabric_san_pin_group_response.go b/model_fabric_san_pin_group_response.go index 50aa561e66..28e91c544c 100644 --- a/model_fabric_san_pin_group_response.go +++ b/model_fabric_san_pin_group_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_fabric_server_role.go b/model_fabric_server_role.go index 08f4e93322..d74697e314 100644 --- a/model_fabric_server_role.go +++ b/model_fabric_server_role.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -100,6 +100,11 @@ func (o *FabricServerRole) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "fabric.ServerRole" of the ClassId field. +func (o *FabricServerRole) GetDefaultClassId() interface{} { + return "fabric.ServerRole" +} + // GetObjectType returns the ObjectType field value func (o *FabricServerRole) GetObjectType() string { if o == nil { @@ -124,6 +129,11 @@ func (o *FabricServerRole) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "fabric.ServerRole" of the ObjectType field. +func (o *FabricServerRole) GetDefaultObjectType() interface{} { + return "fabric.ServerRole" +} + // GetAutoNegotiationDisabled returns the AutoNegotiationDisabled field value if set, zero value otherwise. func (o *FabricServerRole) GetAutoNegotiationDisabled() bool { if o == nil || IsNil(o.AutoNegotiationDisabled) { @@ -270,7 +280,13 @@ func (o FabricServerRole) ToMap() (map[string]interface{}, error) { if errFabricPortRole != nil { return map[string]interface{}{}, errFabricPortRole } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.AutoNegotiationDisabled) { toSerialize["AutoNegotiationDisabled"] = o.AutoNegotiationDisabled @@ -301,6 +317,13 @@ func (o *FabricServerRole) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -310,11 +333,23 @@ func (o *FabricServerRole) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type FabricServerRoleWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_fabric_server_role_list.go b/model_fabric_server_role_list.go index 1acf8e6f30..3d738e42af 100644 --- a/model_fabric_server_role_list.go +++ b/model_fabric_server_role_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *FabricServerRoleList) GetResultsOk() ([]FabricServerRole, bool) { // HasResults returns a boolean if a field has been set. func (o *FabricServerRoleList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *FabricServerRoleList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *FabricServerRoleList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type FabricServerRoleListWithoutEmbeddedStruct struct { // The total number of 'fabric.ServerRole' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_fabric_server_role_response.go b/model_fabric_server_role_response.go index 1dfce0bdfc..d14e557bbc 100644 --- a/model_fabric_server_role_response.go +++ b/model_fabric_server_role_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_fabric_span_dest_eth_port.go b/model_fabric_span_dest_eth_port.go index 26d85422ad..34c4ab35b2 100644 --- a/model_fabric_span_dest_eth_port.go +++ b/model_fabric_span_dest_eth_port.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -92,6 +92,11 @@ func (o *FabricSpanDestEthPort) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "fabric.SpanDestEthPort" of the ClassId field. +func (o *FabricSpanDestEthPort) GetDefaultClassId() interface{} { + return "fabric.SpanDestEthPort" +} + // GetObjectType returns the ObjectType field value func (o *FabricSpanDestEthPort) GetObjectType() string { if o == nil { @@ -116,6 +121,11 @@ func (o *FabricSpanDestEthPort) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "fabric.SpanDestEthPort" of the ObjectType field. +func (o *FabricSpanDestEthPort) GetDefaultObjectType() interface{} { + return "fabric.SpanDestEthPort" +} + // GetAdminSpeed returns the AdminSpeed field value if set, zero value otherwise. func (o *FabricSpanDestEthPort) GetAdminSpeed() string { if o == nil || IsNil(o.AdminSpeed) { @@ -198,7 +208,13 @@ func (o FabricSpanDestEthPort) ToMap() (map[string]interface{}, error) { if errFabricAbstractSpanDestPort != nil { return map[string]interface{}{}, errFabricAbstractSpanDestPort } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.AdminSpeed) { toSerialize["AdminSpeed"] = o.AdminSpeed @@ -223,6 +239,13 @@ func (o *FabricSpanDestEthPort) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -232,11 +255,23 @@ func (o *FabricSpanDestEthPort) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type FabricSpanDestEthPortWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_fabric_span_dest_eth_port_list.go b/model_fabric_span_dest_eth_port_list.go index 2d17ddc350..19b7afd04a 100644 --- a/model_fabric_span_dest_eth_port_list.go +++ b/model_fabric_span_dest_eth_port_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *FabricSpanDestEthPortList) GetResultsOk() ([]FabricSpanDestEthPort, boo // HasResults returns a boolean if a field has been set. func (o *FabricSpanDestEthPortList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *FabricSpanDestEthPortList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *FabricSpanDestEthPortList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type FabricSpanDestEthPortListWithoutEmbeddedStruct struct { // The total number of 'fabric.SpanDestEthPort' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_fabric_span_dest_eth_port_response.go b/model_fabric_span_dest_eth_port_response.go index 95a22b787c..e9088e4bbb 100644 --- a/model_fabric_span_dest_eth_port_response.go +++ b/model_fabric_span_dest_eth_port_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_fabric_span_session.go b/model_fabric_span_session.go index 9d5ce94f3e..5aa8a49987 100644 --- a/model_fabric_span_session.go +++ b/model_fabric_span_session.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -94,6 +94,11 @@ func (o *FabricSpanSession) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "fabric.SpanSession" of the ClassId field. +func (o *FabricSpanSession) GetDefaultClassId() interface{} { + return "fabric.SpanSession" +} + // GetObjectType returns the ObjectType field value func (o *FabricSpanSession) GetObjectType() string { if o == nil { @@ -118,6 +123,11 @@ func (o *FabricSpanSession) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "fabric.SpanSession" of the ObjectType field. +func (o *FabricSpanSession) GetDefaultObjectType() interface{} { + return "fabric.SpanSession" +} + // GetDestPorts returns the DestPorts field value if set, zero value otherwise (both if not set or set to explicit null). func (o *FabricSpanSession) GetDestPorts() []FabricAbstractSpanDestPortRelationship { if o == nil { @@ -139,7 +149,7 @@ func (o *FabricSpanSession) GetDestPortsOk() ([]FabricAbstractSpanDestPortRelati // HasDestPorts returns a boolean if a field has been set. func (o *FabricSpanSession) HasDestPorts() bool { - if o != nil && IsNil(o.DestPorts) { + if o != nil && !IsNil(o.DestPorts) { return true } @@ -172,7 +182,7 @@ func (o *FabricSpanSession) GetSourcePortChannelsOk() ([]FabricAbstractSpanSourc // HasSourcePortChannels returns a boolean if a field has been set. func (o *FabricSpanSession) HasSourcePortChannels() bool { - if o != nil && IsNil(o.SourcePortChannels) { + if o != nil && !IsNil(o.SourcePortChannels) { return true } @@ -205,7 +215,7 @@ func (o *FabricSpanSession) GetSourcePortsOk() ([]FabricAbstractSpanSourcePortRe // HasSourcePorts returns a boolean if a field has been set. func (o *FabricSpanSession) HasSourcePorts() bool { - if o != nil && IsNil(o.SourcePorts) { + if o != nil && !IsNil(o.SourcePorts) { return true } @@ -238,7 +248,7 @@ func (o *FabricSpanSession) GetSourceVirtualIfsOk() ([]FabricAbstractSpanSourceV // HasSourceVirtualIfs returns a boolean if a field has been set. func (o *FabricSpanSession) HasSourceVirtualIfs() bool { - if o != nil && IsNil(o.SourceVirtualIfs) { + if o != nil && !IsNil(o.SourceVirtualIfs) { return true } @@ -271,7 +281,7 @@ func (o *FabricSpanSession) GetSourceVlansOk() ([]FabricSpanSourceVlanRelationsh // HasSourceVlans returns a boolean if a field has been set. func (o *FabricSpanSession) HasSourceVlans() bool { - if o != nil && IsNil(o.SourceVlans) { + if o != nil && !IsNil(o.SourceVlans) { return true } @@ -301,7 +311,13 @@ func (o FabricSpanSession) ToMap() (map[string]interface{}, error) { if errFabricAbstractSpanSession != nil { return map[string]interface{}{}, errFabricAbstractSpanSession } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.DestPorts != nil { toSerialize["DestPorts"] = o.DestPorts @@ -335,6 +351,13 @@ func (o *FabricSpanSession) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -344,11 +367,23 @@ func (o *FabricSpanSession) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type FabricSpanSessionWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_fabric_span_session_list.go b/model_fabric_span_session_list.go index 8a7f693be4..75a54854aa 100644 --- a/model_fabric_span_session_list.go +++ b/model_fabric_span_session_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *FabricSpanSessionList) GetResultsOk() ([]FabricSpanSession, bool) { // HasResults returns a boolean if a field has been set. func (o *FabricSpanSessionList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *FabricSpanSessionList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *FabricSpanSessionList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type FabricSpanSessionListWithoutEmbeddedStruct struct { // The total number of 'fabric.SpanSession' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_fabric_span_session_relationship.go b/model_fabric_span_session_relationship.go index 32a233f480..6ef4aefc3c 100644 --- a/model_fabric_span_session_relationship.go +++ b/model_fabric_span_session_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_fabric_span_session_response.go b/model_fabric_span_session_response.go index edab81f156..ea9b0747dc 100644 --- a/model_fabric_span_session_response.go +++ b/model_fabric_span_session_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_fabric_span_source_eth_port.go b/model_fabric_span_source_eth_port.go index 9ce83114b5..c2469a1b3d 100644 --- a/model_fabric_span_source_eth_port.go +++ b/model_fabric_span_source_eth_port.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -85,6 +85,13 @@ func (o *FabricSpanSourceEthPort) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -94,11 +101,23 @@ func (o *FabricSpanSourceEthPort) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type FabricSpanSourceEthPortWithoutEmbeddedStruct struct { } diff --git a/model_fabric_span_source_eth_port_channel.go b/model_fabric_span_source_eth_port_channel.go index fc00143887..66f5868e16 100644 --- a/model_fabric_span_source_eth_port_channel.go +++ b/model_fabric_span_source_eth_port_channel.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -85,6 +85,13 @@ func (o *FabricSpanSourceEthPortChannel) UnmarshalJSON(data []byte) (err error) "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -94,11 +101,23 @@ func (o *FabricSpanSourceEthPortChannel) UnmarshalJSON(data []byte) (err error) } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type FabricSpanSourceEthPortChannelWithoutEmbeddedStruct struct { } diff --git a/model_fabric_span_source_eth_port_channel_list.go b/model_fabric_span_source_eth_port_channel_list.go index bbc0a6e83a..8de2a1976f 100644 --- a/model_fabric_span_source_eth_port_channel_list.go +++ b/model_fabric_span_source_eth_port_channel_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *FabricSpanSourceEthPortChannelList) GetResultsOk() ([]FabricSpanSourceE // HasResults returns a boolean if a field has been set. func (o *FabricSpanSourceEthPortChannelList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *FabricSpanSourceEthPortChannelList) UnmarshalJSON(data []byte) (err err "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *FabricSpanSourceEthPortChannelList) UnmarshalJSON(data []byte) (err err } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type FabricSpanSourceEthPortChannelListWithoutEmbeddedStruct struct { // The total number of 'fabric.SpanSourceEthPortChannel' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_fabric_span_source_eth_port_channel_response.go b/model_fabric_span_source_eth_port_channel_response.go index da140f44be..b4e7d958d3 100644 --- a/model_fabric_span_source_eth_port_channel_response.go +++ b/model_fabric_span_source_eth_port_channel_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_fabric_span_source_eth_port_list.go b/model_fabric_span_source_eth_port_list.go index df3c8b3ad4..656d5c1bb9 100644 --- a/model_fabric_span_source_eth_port_list.go +++ b/model_fabric_span_source_eth_port_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *FabricSpanSourceEthPortList) GetResultsOk() ([]FabricSpanSourceEthPort, // HasResults returns a boolean if a field has been set. func (o *FabricSpanSourceEthPortList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *FabricSpanSourceEthPortList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *FabricSpanSourceEthPortList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type FabricSpanSourceEthPortListWithoutEmbeddedStruct struct { // The total number of 'fabric.SpanSourceEthPort' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_fabric_span_source_eth_port_response.go b/model_fabric_span_source_eth_port_response.go index 404111df28..9b400c3584 100644 --- a/model_fabric_span_source_eth_port_response.go +++ b/model_fabric_span_source_eth_port_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_fabric_span_source_vlan.go b/model_fabric_span_source_vlan.go index 801d312607..bbeac996a7 100644 --- a/model_fabric_span_source_vlan.go +++ b/model_fabric_span_source_vlan.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -85,6 +85,11 @@ func (o *FabricSpanSourceVlan) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "fabric.SpanSourceVlan" of the ClassId field. +func (o *FabricSpanSourceVlan) GetDefaultClassId() interface{} { + return "fabric.SpanSourceVlan" +} + // GetObjectType returns the ObjectType field value func (o *FabricSpanSourceVlan) GetObjectType() string { if o == nil { @@ -109,6 +114,11 @@ func (o *FabricSpanSourceVlan) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "fabric.SpanSourceVlan" of the ObjectType field. +func (o *FabricSpanSourceVlan) GetDefaultObjectType() interface{} { + return "fabric.SpanSourceVlan" +} + // GetVlanId returns the VlanId field value if set, zero value otherwise. func (o *FabricSpanSourceVlan) GetVlanId() int64 { if o == nil || IsNil(o.VlanId) { @@ -202,7 +212,13 @@ func (o FabricSpanSourceVlan) ToMap() (map[string]interface{}, error) { if errFabricAbstractSpanSource != nil { return map[string]interface{}{}, errFabricAbstractSpanSource } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.VlanId) { toSerialize["VlanId"] = o.VlanId @@ -227,6 +243,13 @@ func (o *FabricSpanSourceVlan) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -236,11 +259,23 @@ func (o *FabricSpanSourceVlan) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type FabricSpanSourceVlanWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_fabric_span_source_vlan_list.go b/model_fabric_span_source_vlan_list.go index b4355a286d..c7fa548dbc 100644 --- a/model_fabric_span_source_vlan_list.go +++ b/model_fabric_span_source_vlan_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *FabricSpanSourceVlanList) GetResultsOk() ([]FabricSpanSourceVlan, bool) // HasResults returns a boolean if a field has been set. func (o *FabricSpanSourceVlanList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *FabricSpanSourceVlanList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *FabricSpanSourceVlanList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type FabricSpanSourceVlanListWithoutEmbeddedStruct struct { // The total number of 'fabric.SpanSourceVlan' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_fabric_span_source_vlan_relationship.go b/model_fabric_span_source_vlan_relationship.go index a9cfcb7e32..943f685b55 100644 --- a/model_fabric_span_source_vlan_relationship.go +++ b/model_fabric_span_source_vlan_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_fabric_span_source_vlan_response.go b/model_fabric_span_source_vlan_response.go index 76fb8fe1f1..51fe5b8211 100644 --- a/model_fabric_span_source_vlan_response.go +++ b/model_fabric_span_source_vlan_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_fabric_span_source_vnic_eth_if.go b/model_fabric_span_source_vnic_eth_if.go index 328c202aa1..ab10040189 100644 --- a/model_fabric_span_source_vnic_eth_if.go +++ b/model_fabric_span_source_vnic_eth_if.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -83,6 +83,11 @@ func (o *FabricSpanSourceVnicEthIf) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "fabric.SpanSourceVnicEthIf" of the ClassId field. +func (o *FabricSpanSourceVnicEthIf) GetDefaultClassId() interface{} { + return "fabric.SpanSourceVnicEthIf" +} + // GetObjectType returns the ObjectType field value func (o *FabricSpanSourceVnicEthIf) GetObjectType() string { if o == nil { @@ -107,6 +112,11 @@ func (o *FabricSpanSourceVnicEthIf) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "fabric.SpanSourceVnicEthIf" of the ObjectType field. +func (o *FabricSpanSourceVnicEthIf) GetDefaultObjectType() interface{} { + return "fabric.SpanSourceVnicEthIf" +} + // GetVnic returns the Vnic field value if set, zero value otherwise (both if not set or set to explicit null). func (o *FabricSpanSourceVnicEthIf) GetVnic() VnicEthIfRelationship { if o == nil || IsNil(o.Vnic.Get()) { @@ -168,7 +178,13 @@ func (o FabricSpanSourceVnicEthIf) ToMap() (map[string]interface{}, error) { if errFabricAbstractSpanSourceVirtualIf != nil { return map[string]interface{}{}, errFabricAbstractSpanSourceVirtualIf } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.Vnic.IsSet() { toSerialize["Vnic"] = o.Vnic.Get() @@ -190,6 +206,13 @@ func (o *FabricSpanSourceVnicEthIf) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -199,11 +222,23 @@ func (o *FabricSpanSourceVnicEthIf) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type FabricSpanSourceVnicEthIfWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_fabric_span_source_vnic_eth_if_list.go b/model_fabric_span_source_vnic_eth_if_list.go index 8df35d656c..90cd5226a7 100644 --- a/model_fabric_span_source_vnic_eth_if_list.go +++ b/model_fabric_span_source_vnic_eth_if_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *FabricSpanSourceVnicEthIfList) GetResultsOk() ([]FabricSpanSourceVnicEt // HasResults returns a boolean if a field has been set. func (o *FabricSpanSourceVnicEthIfList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *FabricSpanSourceVnicEthIfList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *FabricSpanSourceVnicEthIfList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type FabricSpanSourceVnicEthIfListWithoutEmbeddedStruct struct { // The total number of 'fabric.SpanSourceVnicEthIf' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_fabric_span_source_vnic_eth_if_response.go b/model_fabric_span_source_vnic_eth_if_response.go index da1585e920..1b5c0c4084 100644 --- a/model_fabric_span_source_vnic_eth_if_response.go +++ b/model_fabric_span_source_vnic_eth_if_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_fabric_switch_cluster_profile.go b/model_fabric_switch_cluster_profile.go index 49c934853d..25ff5a2501 100644 --- a/model_fabric_switch_cluster_profile.go +++ b/model_fabric_switch_cluster_profile.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -35,7 +35,7 @@ type FabricSwitchClusterProfile struct { // Values indicating the switches on which the cluster profile has been deployed. 0 indicates that the profile has not been deployed on any switch, 1 indicates that the profile has been deployed on A, 2 indicates that it is deployed on B and 3 indicates that it is deployed on both. * `None` - Switch profiles not deployed on either of the fabric interconnects. * `A` - Switch profiles deployed only on fabric interconnect A. * `B` - Switch profiles deployed only on fabric interconnect B. * `AB` - Switch profiles deployed on both fabric interconnect A and B. DeployedSwitches *string `json:"DeployedSwitches,omitempty"` // The user defined label assigned to the switch profile. - UserLabel *string `json:"UserLabel,omitempty"` + UserLabel *string `json:"UserLabel,omitempty" validate:"regexp=^[ !#$%&\\\\(\\\\)\\\\*\\\\+,\\\\-\\\\.\\/:;\\\\?@\\\\[\\\\]_\\\\{\\\\|\\\\}~a-zA-Z0-9]*$"` Organization NullableOrganizationOrganizationRelationship `json:"Organization,omitempty"` // An array of relationships to fabricSwitchProfile resources. SwitchProfiles []FabricSwitchProfileRelationship `json:"SwitchProfiles,omitempty"` @@ -93,6 +93,11 @@ func (o *FabricSwitchClusterProfile) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "fabric.SwitchClusterProfile" of the ClassId field. +func (o *FabricSwitchClusterProfile) GetDefaultClassId() interface{} { + return "fabric.SwitchClusterProfile" +} + // GetObjectType returns the ObjectType field value func (o *FabricSwitchClusterProfile) GetObjectType() string { if o == nil { @@ -117,6 +122,11 @@ func (o *FabricSwitchClusterProfile) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "fabric.SwitchClusterProfile" of the ObjectType field. +func (o *FabricSwitchClusterProfile) GetDefaultObjectType() interface{} { + return "fabric.SwitchClusterProfile" +} + // GetClusterAssignments returns the ClusterAssignments field value if set, zero value otherwise (both if not set or set to explicit null). func (o *FabricSwitchClusterProfile) GetClusterAssignments() []FabricClusterAssignment { if o == nil { @@ -138,7 +148,7 @@ func (o *FabricSwitchClusterProfile) GetClusterAssignmentsOk() ([]FabricClusterA // HasClusterAssignments returns a boolean if a field has been set. func (o *FabricSwitchClusterProfile) HasClusterAssignments() bool { - if o != nil && IsNil(o.ClusterAssignments) { + if o != nil && !IsNil(o.ClusterAssignments) { return true } @@ -353,7 +363,7 @@ func (o *FabricSwitchClusterProfile) GetSwitchProfilesOk() ([]FabricSwitchProfil // HasSwitchProfiles returns a boolean if a field has been set. func (o *FabricSwitchClusterProfile) HasSwitchProfiles() bool { - if o != nil && IsNil(o.SwitchProfiles) { + if o != nil && !IsNil(o.SwitchProfiles) { return true } @@ -383,7 +393,13 @@ func (o FabricSwitchClusterProfile) ToMap() (map[string]interface{}, error) { if errFabricBaseClusterProfile != nil { return map[string]interface{}{}, errFabricBaseClusterProfile } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.ClusterAssignments != nil { toSerialize["ClusterAssignments"] = o.ClusterAssignments @@ -423,6 +439,13 @@ func (o *FabricSwitchClusterProfile) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -432,11 +455,23 @@ func (o *FabricSwitchClusterProfile) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type FabricSwitchClusterProfileWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` @@ -449,7 +484,7 @@ func (o *FabricSwitchClusterProfile) UnmarshalJSON(data []byte) (err error) { // Values indicating the switches on which the cluster profile has been deployed. 0 indicates that the profile has not been deployed on any switch, 1 indicates that the profile has been deployed on A, 2 indicates that it is deployed on B and 3 indicates that it is deployed on both. * `None` - Switch profiles not deployed on either of the fabric interconnects. * `A` - Switch profiles deployed only on fabric interconnect A. * `B` - Switch profiles deployed only on fabric interconnect B. * `AB` - Switch profiles deployed on both fabric interconnect A and B. DeployedSwitches *string `json:"DeployedSwitches,omitempty"` // The user defined label assigned to the switch profile. - UserLabel *string `json:"UserLabel,omitempty"` + UserLabel *string `json:"UserLabel,omitempty" validate:"regexp=^[ !#$%&\\\\(\\\\)\\\\*\\\\+,\\\\-\\\\.\\/:;\\\\?@\\\\[\\\\]_\\\\{\\\\|\\\\}~a-zA-Z0-9]*$"` Organization NullableOrganizationOrganizationRelationship `json:"Organization,omitempty"` // An array of relationships to fabricSwitchProfile resources. SwitchProfiles []FabricSwitchProfileRelationship `json:"SwitchProfiles,omitempty"` diff --git a/model_fabric_switch_cluster_profile_list.go b/model_fabric_switch_cluster_profile_list.go index 5745c5cd31..dd849b5ed6 100644 --- a/model_fabric_switch_cluster_profile_list.go +++ b/model_fabric_switch_cluster_profile_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *FabricSwitchClusterProfileList) GetResultsOk() ([]FabricSwitchClusterPr // HasResults returns a boolean if a field has been set. func (o *FabricSwitchClusterProfileList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *FabricSwitchClusterProfileList) UnmarshalJSON(data []byte) (err error) "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *FabricSwitchClusterProfileList) UnmarshalJSON(data []byte) (err error) } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type FabricSwitchClusterProfileListWithoutEmbeddedStruct struct { // The total number of 'fabric.SwitchClusterProfile' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_fabric_switch_cluster_profile_relationship.go b/model_fabric_switch_cluster_profile_relationship.go index 0bb3096730..e30bd1170f 100644 --- a/model_fabric_switch_cluster_profile_relationship.go +++ b/model_fabric_switch_cluster_profile_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_fabric_switch_cluster_profile_response.go b/model_fabric_switch_cluster_profile_response.go index e8f92560bd..08cac57bd4 100644 --- a/model_fabric_switch_cluster_profile_response.go +++ b/model_fabric_switch_cluster_profile_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_fabric_switch_cluster_profile_template.go b/model_fabric_switch_cluster_profile_template.go index 25166f92b6..5a0b3afb2f 100644 --- a/model_fabric_switch_cluster_profile_template.go +++ b/model_fabric_switch_cluster_profile_template.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -87,6 +87,11 @@ func (o *FabricSwitchClusterProfileTemplate) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "fabric.SwitchClusterProfileTemplate" of the ClassId field. +func (o *FabricSwitchClusterProfileTemplate) GetDefaultClassId() interface{} { + return "fabric.SwitchClusterProfileTemplate" +} + // GetObjectType returns the ObjectType field value func (o *FabricSwitchClusterProfileTemplate) GetObjectType() string { if o == nil { @@ -111,6 +116,11 @@ func (o *FabricSwitchClusterProfileTemplate) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "fabric.SwitchClusterProfileTemplate" of the ObjectType field. +func (o *FabricSwitchClusterProfileTemplate) GetDefaultObjectType() interface{} { + return "fabric.SwitchClusterProfileTemplate" +} + // GetUsage returns the Usage field value if set, zero value otherwise. func (o *FabricSwitchClusterProfileTemplate) GetUsage() int64 { if o == nil || IsNil(o.Usage) { @@ -207,7 +217,7 @@ func (o *FabricSwitchClusterProfileTemplate) GetSwitchProfileTemplatesOk() ([]Fa // HasSwitchProfileTemplates returns a boolean if a field has been set. func (o *FabricSwitchClusterProfileTemplate) HasSwitchProfileTemplates() bool { - if o != nil && IsNil(o.SwitchProfileTemplates) { + if o != nil && !IsNil(o.SwitchProfileTemplates) { return true } @@ -237,7 +247,13 @@ func (o FabricSwitchClusterProfileTemplate) ToMap() (map[string]interface{}, err if errFabricBaseClusterProfile != nil { return map[string]interface{}{}, errFabricBaseClusterProfile } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Usage) { toSerialize["Usage"] = o.Usage @@ -265,6 +281,13 @@ func (o *FabricSwitchClusterProfileTemplate) UnmarshalJSON(data []byte) (err err "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -274,11 +297,23 @@ func (o *FabricSwitchClusterProfileTemplate) UnmarshalJSON(data []byte) (err err } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type FabricSwitchClusterProfileTemplateWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_fabric_switch_cluster_profile_template_list.go b/model_fabric_switch_cluster_profile_template_list.go index 79491e62c8..c19cdec29a 100644 --- a/model_fabric_switch_cluster_profile_template_list.go +++ b/model_fabric_switch_cluster_profile_template_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *FabricSwitchClusterProfileTemplateList) GetResultsOk() ([]FabricSwitchC // HasResults returns a boolean if a field has been set. func (o *FabricSwitchClusterProfileTemplateList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *FabricSwitchClusterProfileTemplateList) UnmarshalJSON(data []byte) (err "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *FabricSwitchClusterProfileTemplateList) UnmarshalJSON(data []byte) (err } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type FabricSwitchClusterProfileTemplateListWithoutEmbeddedStruct struct { // The total number of 'fabric.SwitchClusterProfileTemplate' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_fabric_switch_cluster_profile_template_relationship.go b/model_fabric_switch_cluster_profile_template_relationship.go index e94d5a3130..1fbefb61b1 100644 --- a/model_fabric_switch_cluster_profile_template_relationship.go +++ b/model_fabric_switch_cluster_profile_template_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_fabric_switch_cluster_profile_template_response.go b/model_fabric_switch_cluster_profile_template_response.go index e6f462c48f..dc076a676d 100644 --- a/model_fabric_switch_cluster_profile_template_response.go +++ b/model_fabric_switch_cluster_profile_template_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_fabric_switch_control_policy.go b/model_fabric_switch_control_policy.go index c8da85bdbe..464ec2e441 100644 --- a/model_fabric_switch_control_policy.go +++ b/model_fabric_switch_control_policy.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -115,6 +115,11 @@ func (o *FabricSwitchControlPolicy) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "fabric.SwitchControlPolicy" of the ClassId field. +func (o *FabricSwitchControlPolicy) GetDefaultClassId() interface{} { + return "fabric.SwitchControlPolicy" +} + // GetObjectType returns the ObjectType field value func (o *FabricSwitchControlPolicy) GetObjectType() string { if o == nil { @@ -139,6 +144,11 @@ func (o *FabricSwitchControlPolicy) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "fabric.SwitchControlPolicy" of the ObjectType field. +func (o *FabricSwitchControlPolicy) GetDefaultObjectType() interface{} { + return "fabric.SwitchControlPolicy" +} + // GetEthernetSwitchingMode returns the EthernetSwitchingMode field value if set, zero value otherwise. func (o *FabricSwitchControlPolicy) GetEthernetSwitchingMode() string { if o == nil || IsNil(o.EthernetSwitchingMode) { @@ -449,7 +459,7 @@ func (o *FabricSwitchControlPolicy) GetProfilesOk() ([]FabricBaseSwitchProfileRe // HasProfiles returns a boolean if a field has been set. func (o *FabricSwitchControlPolicy) HasProfiles() bool { - if o != nil && IsNil(o.Profiles) { + if o != nil && !IsNil(o.Profiles) { return true } @@ -479,7 +489,13 @@ func (o FabricSwitchControlPolicy) ToMap() (map[string]interface{}, error) { if errPolicyAbstractPolicy != nil { return map[string]interface{}{}, errPolicyAbstractPolicy } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.EthernetSwitchingMode) { toSerialize["EthernetSwitchingMode"] = o.EthernetSwitchingMode @@ -525,6 +541,13 @@ func (o *FabricSwitchControlPolicy) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -534,11 +557,23 @@ func (o *FabricSwitchControlPolicy) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type FabricSwitchControlPolicyWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_fabric_switch_control_policy_list.go b/model_fabric_switch_control_policy_list.go index fb1a829245..162b954a0f 100644 --- a/model_fabric_switch_control_policy_list.go +++ b/model_fabric_switch_control_policy_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *FabricSwitchControlPolicyList) GetResultsOk() ([]FabricSwitchControlPol // HasResults returns a boolean if a field has been set. func (o *FabricSwitchControlPolicyList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *FabricSwitchControlPolicyList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *FabricSwitchControlPolicyList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type FabricSwitchControlPolicyListWithoutEmbeddedStruct struct { // The total number of 'fabric.SwitchControlPolicy' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_fabric_switch_control_policy_response.go b/model_fabric_switch_control_policy_response.go index 7f6395b4b8..5e971d36cf 100644 --- a/model_fabric_switch_control_policy_response.go +++ b/model_fabric_switch_control_policy_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_fabric_switch_profile.go b/model_fabric_switch_profile.go index cf6ccf6f9b..16f9a6956b 100644 --- a/model_fabric_switch_profile.go +++ b/model_fabric_switch_profile.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -93,6 +93,11 @@ func (o *FabricSwitchProfile) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "fabric.SwitchProfile" of the ClassId field. +func (o *FabricSwitchProfile) GetDefaultClassId() interface{} { + return "fabric.SwitchProfile" +} + // GetObjectType returns the ObjectType field value func (o *FabricSwitchProfile) GetObjectType() string { if o == nil { @@ -117,6 +122,11 @@ func (o *FabricSwitchProfile) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "fabric.SwitchProfile" of the ObjectType field. +func (o *FabricSwitchProfile) GetDefaultObjectType() interface{} { + return "fabric.SwitchProfile" +} + // GetConfigChangeContext returns the ConfigChangeContext field value if set, zero value otherwise (both if not set or set to explicit null). func (o *FabricSwitchProfile) GetConfigChangeContext() PolicyConfigChangeContext { if o == nil || IsNil(o.ConfigChangeContext.Get()) { @@ -310,7 +320,7 @@ func (o *FabricSwitchProfile) GetConfigChangeDetailsOk() ([]FabricConfigChangeDe // HasConfigChangeDetails returns a boolean if a field has been set. func (o *FabricSwitchProfile) HasConfigChangeDetails() bool { - if o != nil && IsNil(o.ConfigChangeDetails) { + if o != nil && !IsNil(o.ConfigChangeDetails) { return true } @@ -343,7 +353,7 @@ func (o *FabricSwitchProfile) GetRunningWorkflowsOk() ([]WorkflowWorkflowInfoRel // HasRunningWorkflows returns a boolean if a field has been set. func (o *FabricSwitchProfile) HasRunningWorkflows() bool { - if o != nil && IsNil(o.RunningWorkflows) { + if o != nil && !IsNil(o.RunningWorkflows) { return true } @@ -416,7 +426,13 @@ func (o FabricSwitchProfile) ToMap() (map[string]interface{}, error) { if errFabricBaseSwitchProfile != nil { return map[string]interface{}{}, errFabricBaseSwitchProfile } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.ConfigChangeContext.IsSet() { toSerialize["ConfigChangeContext"] = o.ConfigChangeContext.Get() @@ -456,6 +472,13 @@ func (o *FabricSwitchProfile) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -465,11 +488,23 @@ func (o *FabricSwitchProfile) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type FabricSwitchProfileWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_fabric_switch_profile_list.go b/model_fabric_switch_profile_list.go index 5df8a08a82..6baba70a4d 100644 --- a/model_fabric_switch_profile_list.go +++ b/model_fabric_switch_profile_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *FabricSwitchProfileList) GetResultsOk() ([]FabricSwitchProfile, bool) { // HasResults returns a boolean if a field has been set. func (o *FabricSwitchProfileList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *FabricSwitchProfileList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *FabricSwitchProfileList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type FabricSwitchProfileListWithoutEmbeddedStruct struct { // The total number of 'fabric.SwitchProfile' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_fabric_switch_profile_relationship.go b/model_fabric_switch_profile_relationship.go index 1a5b561fbb..db84f8faf5 100644 --- a/model_fabric_switch_profile_relationship.go +++ b/model_fabric_switch_profile_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_fabric_switch_profile_response.go b/model_fabric_switch_profile_response.go index 81e145e9e9..8daa03e2d0 100644 --- a/model_fabric_switch_profile_response.go +++ b/model_fabric_switch_profile_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_fabric_switch_profile_template.go b/model_fabric_switch_profile_template.go index ad18ea2b04..131f5f8d8d 100644 --- a/model_fabric_switch_profile_template.go +++ b/model_fabric_switch_profile_template.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -85,6 +85,11 @@ func (o *FabricSwitchProfileTemplate) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "fabric.SwitchProfileTemplate" of the ClassId field. +func (o *FabricSwitchProfileTemplate) GetDefaultClassId() interface{} { + return "fabric.SwitchProfileTemplate" +} + // GetObjectType returns the ObjectType field value func (o *FabricSwitchProfileTemplate) GetObjectType() string { if o == nil { @@ -109,6 +114,11 @@ func (o *FabricSwitchProfileTemplate) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "fabric.SwitchProfileTemplate" of the ObjectType field. +func (o *FabricSwitchProfileTemplate) GetDefaultObjectType() interface{} { + return "fabric.SwitchProfileTemplate" +} + // GetSwitchClusterProfileTemplate returns the SwitchClusterProfileTemplate field value if set, zero value otherwise (both if not set or set to explicit null). func (o *FabricSwitchProfileTemplate) GetSwitchClusterProfileTemplate() FabricSwitchClusterProfileTemplateRelationship { if o == nil || IsNil(o.SwitchClusterProfileTemplate.Get()) { @@ -170,7 +180,13 @@ func (o FabricSwitchProfileTemplate) ToMap() (map[string]interface{}, error) { if errFabricBaseSwitchProfile != nil { return map[string]interface{}{}, errFabricBaseSwitchProfile } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.SwitchClusterProfileTemplate.IsSet() { toSerialize["SwitchClusterProfileTemplate"] = o.SwitchClusterProfileTemplate.Get() @@ -192,6 +208,13 @@ func (o *FabricSwitchProfileTemplate) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -201,11 +224,23 @@ func (o *FabricSwitchProfileTemplate) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type FabricSwitchProfileTemplateWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_fabric_switch_profile_template_list.go b/model_fabric_switch_profile_template_list.go index a853839eff..091bdacbcb 100644 --- a/model_fabric_switch_profile_template_list.go +++ b/model_fabric_switch_profile_template_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *FabricSwitchProfileTemplateList) GetResultsOk() ([]FabricSwitchProfileT // HasResults returns a boolean if a field has been set. func (o *FabricSwitchProfileTemplateList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *FabricSwitchProfileTemplateList) UnmarshalJSON(data []byte) (err error) "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *FabricSwitchProfileTemplateList) UnmarshalJSON(data []byte) (err error) } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type FabricSwitchProfileTemplateListWithoutEmbeddedStruct struct { // The total number of 'fabric.SwitchProfileTemplate' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_fabric_switch_profile_template_relationship.go b/model_fabric_switch_profile_template_relationship.go index ca8a036083..013dabf782 100644 --- a/model_fabric_switch_profile_template_relationship.go +++ b/model_fabric_switch_profile_template_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_fabric_switch_profile_template_response.go b/model_fabric_switch_profile_template_response.go index 20edc03750..d32d2d8c13 100644 --- a/model_fabric_switch_profile_template_response.go +++ b/model_fabric_switch_profile_template_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_fabric_system_qos_policy.go b/model_fabric_system_qos_policy.go index 7006ef7d90..2684e82617 100644 --- a/model_fabric_system_qos_policy.go +++ b/model_fabric_system_qos_policy.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -84,6 +84,11 @@ func (o *FabricSystemQosPolicy) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "fabric.SystemQosPolicy" of the ClassId field. +func (o *FabricSystemQosPolicy) GetDefaultClassId() interface{} { + return "fabric.SystemQosPolicy" +} + // GetObjectType returns the ObjectType field value func (o *FabricSystemQosPolicy) GetObjectType() string { if o == nil { @@ -108,6 +113,11 @@ func (o *FabricSystemQosPolicy) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "fabric.SystemQosPolicy" of the ObjectType field. +func (o *FabricSystemQosPolicy) GetDefaultObjectType() interface{} { + return "fabric.SystemQosPolicy" +} + // GetClasses returns the Classes field value if set, zero value otherwise (both if not set or set to explicit null). func (o *FabricSystemQosPolicy) GetClasses() []FabricQosClass { if o == nil { @@ -129,7 +139,7 @@ func (o *FabricSystemQosPolicy) GetClassesOk() ([]FabricQosClass, bool) { // HasClasses returns a boolean if a field has been set. func (o *FabricSystemQosPolicy) HasClasses() bool { - if o != nil && IsNil(o.Classes) { + if o != nil && !IsNil(o.Classes) { return true } @@ -205,7 +215,7 @@ func (o *FabricSystemQosPolicy) GetProfilesOk() ([]FabricBaseSwitchProfileRelati // HasProfiles returns a boolean if a field has been set. func (o *FabricSystemQosPolicy) HasProfiles() bool { - if o != nil && IsNil(o.Profiles) { + if o != nil && !IsNil(o.Profiles) { return true } @@ -235,7 +245,13 @@ func (o FabricSystemQosPolicy) ToMap() (map[string]interface{}, error) { if errPolicyAbstractPolicy != nil { return map[string]interface{}{}, errPolicyAbstractPolicy } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.Classes != nil { toSerialize["Classes"] = o.Classes @@ -263,6 +279,13 @@ func (o *FabricSystemQosPolicy) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -272,11 +295,23 @@ func (o *FabricSystemQosPolicy) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type FabricSystemQosPolicyWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_fabric_system_qos_policy_list.go b/model_fabric_system_qos_policy_list.go index ff182dcd7e..5e972c09e9 100644 --- a/model_fabric_system_qos_policy_list.go +++ b/model_fabric_system_qos_policy_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *FabricSystemQosPolicyList) GetResultsOk() ([]FabricSystemQosPolicy, boo // HasResults returns a boolean if a field has been set. func (o *FabricSystemQosPolicyList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *FabricSystemQosPolicyList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *FabricSystemQosPolicyList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type FabricSystemQosPolicyListWithoutEmbeddedStruct struct { // The total number of 'fabric.SystemQosPolicy' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_fabric_system_qos_policy_response.go b/model_fabric_system_qos_policy_response.go index 663bbae678..64eccd29d1 100644 --- a/model_fabric_system_qos_policy_response.go +++ b/model_fabric_system_qos_policy_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_fabric_transceiver_role.go b/model_fabric_transceiver_role.go index f854d0c62b..dd4a4d53da 100644 --- a/model_fabric_transceiver_role.go +++ b/model_fabric_transceiver_role.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -219,6 +219,10 @@ func (o *FabricTransceiverRole) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -228,11 +232,23 @@ func (o *FabricTransceiverRole) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type FabricTransceiverRoleWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. The enum values provides the list of concrete types that can be instantiated from this abstract type. ClassId string `json:"ClassId"` diff --git a/model_fabric_udld_global_settings.go b/model_fabric_udld_global_settings.go index fefc68874c..9b4eb01263 100644 --- a/model_fabric_udld_global_settings.go +++ b/model_fabric_udld_global_settings.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -92,6 +92,11 @@ func (o *FabricUdldGlobalSettings) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "fabric.UdldGlobalSettings" of the ClassId field. +func (o *FabricUdldGlobalSettings) GetDefaultClassId() interface{} { + return "fabric.UdldGlobalSettings" +} + // GetObjectType returns the ObjectType field value func (o *FabricUdldGlobalSettings) GetObjectType() string { if o == nil { @@ -116,6 +121,11 @@ func (o *FabricUdldGlobalSettings) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "fabric.UdldGlobalSettings" of the ObjectType field. +func (o *FabricUdldGlobalSettings) GetDefaultObjectType() interface{} { + return "fabric.UdldGlobalSettings" +} + // GetMessageInterval returns the MessageInterval field value if set, zero value otherwise. func (o *FabricUdldGlobalSettings) GetMessageInterval() int64 { if o == nil || IsNil(o.MessageInterval) { @@ -198,7 +208,13 @@ func (o FabricUdldGlobalSettings) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.MessageInterval) { toSerialize["MessageInterval"] = o.MessageInterval @@ -223,6 +239,13 @@ func (o *FabricUdldGlobalSettings) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -232,11 +255,23 @@ func (o *FabricUdldGlobalSettings) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type FabricUdldGlobalSettingsWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_fabric_udld_settings.go b/model_fabric_udld_settings.go index 0bb0a5dd1c..1eb2e59ca5 100644 --- a/model_fabric_udld_settings.go +++ b/model_fabric_udld_settings.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -92,6 +92,11 @@ func (o *FabricUdldSettings) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "fabric.UdldSettings" of the ClassId field. +func (o *FabricUdldSettings) GetDefaultClassId() interface{} { + return "fabric.UdldSettings" +} + // GetObjectType returns the ObjectType field value func (o *FabricUdldSettings) GetObjectType() string { if o == nil { @@ -116,6 +121,11 @@ func (o *FabricUdldSettings) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "fabric.UdldSettings" of the ObjectType field. +func (o *FabricUdldSettings) GetDefaultObjectType() interface{} { + return "fabric.UdldSettings" +} + // GetAdminState returns the AdminState field value if set, zero value otherwise. func (o *FabricUdldSettings) GetAdminState() string { if o == nil || IsNil(o.AdminState) { @@ -198,7 +208,13 @@ func (o FabricUdldSettings) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.AdminState) { toSerialize["AdminState"] = o.AdminState @@ -223,6 +239,13 @@ func (o *FabricUdldSettings) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -232,11 +255,23 @@ func (o *FabricUdldSettings) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type FabricUdldSettingsWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_fabric_uplink_pc_role.go b/model_fabric_uplink_pc_role.go index 5c9b745aa8..c5c6bf0073 100644 --- a/model_fabric_uplink_pc_role.go +++ b/model_fabric_uplink_pc_role.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -97,6 +97,11 @@ func (o *FabricUplinkPcRole) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "fabric.UplinkPcRole" of the ClassId field. +func (o *FabricUplinkPcRole) GetDefaultClassId() interface{} { + return "fabric.UplinkPcRole" +} + // GetObjectType returns the ObjectType field value func (o *FabricUplinkPcRole) GetObjectType() string { if o == nil { @@ -121,6 +126,11 @@ func (o *FabricUplinkPcRole) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "fabric.UplinkPcRole" of the ObjectType field. +func (o *FabricUplinkPcRole) GetDefaultObjectType() interface{} { + return "fabric.UplinkPcRole" +} + // GetAdminSpeed returns the AdminSpeed field value if set, zero value otherwise. func (o *FabricUplinkPcRole) GetAdminSpeed() string { if o == nil || IsNil(o.AdminSpeed) { @@ -206,7 +216,7 @@ func (o *FabricUplinkPcRole) GetEthNetworkGroupPolicyOk() ([]FabricEthNetworkGro // HasEthNetworkGroupPolicy returns a boolean if a field has been set. func (o *FabricUplinkPcRole) HasEthNetworkGroupPolicy() bool { - if o != nil && IsNil(o.EthNetworkGroupPolicy) { + if o != nil && !IsNil(o.EthNetworkGroupPolicy) { return true } @@ -365,7 +375,13 @@ func (o FabricUplinkPcRole) ToMap() (map[string]interface{}, error) { if errFabricPortChannelRole != nil { return map[string]interface{}{}, errFabricPortChannelRole } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.AdminSpeed) { toSerialize["AdminSpeed"] = o.AdminSpeed @@ -402,6 +418,13 @@ func (o *FabricUplinkPcRole) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -411,11 +434,23 @@ func (o *FabricUplinkPcRole) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type FabricUplinkPcRoleWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_fabric_uplink_pc_role_list.go b/model_fabric_uplink_pc_role_list.go index 367ef5f6ba..3070ec15f1 100644 --- a/model_fabric_uplink_pc_role_list.go +++ b/model_fabric_uplink_pc_role_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *FabricUplinkPcRoleList) GetResultsOk() ([]FabricUplinkPcRole, bool) { // HasResults returns a boolean if a field has been set. func (o *FabricUplinkPcRoleList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *FabricUplinkPcRoleList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *FabricUplinkPcRoleList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type FabricUplinkPcRoleListWithoutEmbeddedStruct struct { // The total number of 'fabric.UplinkPcRole' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_fabric_uplink_pc_role_response.go b/model_fabric_uplink_pc_role_response.go index eef2d5bde8..b26c8d04c6 100644 --- a/model_fabric_uplink_pc_role_response.go +++ b/model_fabric_uplink_pc_role_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_fabric_uplink_role.go b/model_fabric_uplink_role.go index b4b3b1a0ca..45119d7cc2 100644 --- a/model_fabric_uplink_role.go +++ b/model_fabric_uplink_role.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -88,6 +88,11 @@ func (o *FabricUplinkRole) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "fabric.UplinkRole" of the ClassId field. +func (o *FabricUplinkRole) GetDefaultClassId() interface{} { + return "fabric.UplinkRole" +} + // GetObjectType returns the ObjectType field value func (o *FabricUplinkRole) GetObjectType() string { if o == nil { @@ -112,6 +117,11 @@ func (o *FabricUplinkRole) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "fabric.UplinkRole" of the ObjectType field. +func (o *FabricUplinkRole) GetDefaultObjectType() interface{} { + return "fabric.UplinkRole" +} + // GetEthNetworkGroupPolicy returns the EthNetworkGroupPolicy field value if set, zero value otherwise (both if not set or set to explicit null). func (o *FabricUplinkRole) GetEthNetworkGroupPolicy() []FabricEthNetworkGroupPolicyRelationship { if o == nil { @@ -133,7 +143,7 @@ func (o *FabricUplinkRole) GetEthNetworkGroupPolicyOk() ([]FabricEthNetworkGroup // HasEthNetworkGroupPolicy returns a boolean if a field has been set. func (o *FabricUplinkRole) HasEthNetworkGroupPolicy() bool { - if o != nil && IsNil(o.EthNetworkGroupPolicy) { + if o != nil && !IsNil(o.EthNetworkGroupPolicy) { return true } @@ -249,7 +259,13 @@ func (o FabricUplinkRole) ToMap() (map[string]interface{}, error) { if errFabricTransceiverRole != nil { return map[string]interface{}{}, errFabricTransceiverRole } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.EthNetworkGroupPolicy != nil { toSerialize["EthNetworkGroupPolicy"] = o.EthNetworkGroupPolicy @@ -277,6 +293,13 @@ func (o *FabricUplinkRole) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -286,11 +309,23 @@ func (o *FabricUplinkRole) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type FabricUplinkRoleWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_fabric_uplink_role_list.go b/model_fabric_uplink_role_list.go index 62e599d786..9c795afede 100644 --- a/model_fabric_uplink_role_list.go +++ b/model_fabric_uplink_role_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *FabricUplinkRoleList) GetResultsOk() ([]FabricUplinkRole, bool) { // HasResults returns a boolean if a field has been set. func (o *FabricUplinkRoleList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *FabricUplinkRoleList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *FabricUplinkRoleList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type FabricUplinkRoleListWithoutEmbeddedStruct struct { // The total number of 'fabric.UplinkRole' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_fabric_uplink_role_response.go b/model_fabric_uplink_role_response.go index 527212bcdf..6c2c2c08d6 100644 --- a/model_fabric_uplink_role_response.go +++ b/model_fabric_uplink_role_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_fabric_vlan.go b/model_fabric_vlan.go index 0e7f503146..687aee77a2 100644 --- a/model_fabric_vlan.go +++ b/model_fabric_vlan.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -107,6 +107,11 @@ func (o *FabricVlan) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "fabric.Vlan" of the ClassId field. +func (o *FabricVlan) GetDefaultClassId() interface{} { + return "fabric.Vlan" +} + // GetObjectType returns the ObjectType field value func (o *FabricVlan) GetObjectType() string { if o == nil { @@ -131,6 +136,11 @@ func (o *FabricVlan) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "fabric.Vlan" of the ObjectType field. +func (o *FabricVlan) GetDefaultObjectType() interface{} { + return "fabric.Vlan" +} + // GetAutoAllowOnUplinks returns the AutoAllowOnUplinks field value if set, zero value otherwise. func (o *FabricVlan) GetAutoAllowOnUplinks() bool { if o == nil || IsNil(o.AutoAllowOnUplinks) { @@ -470,7 +480,13 @@ func (o FabricVlan) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.AutoAllowOnUplinks) { toSerialize["AutoAllowOnUplinks"] = o.AutoAllowOnUplinks @@ -516,6 +532,13 @@ func (o *FabricVlan) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -525,11 +548,23 @@ func (o *FabricVlan) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type FabricVlanWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_fabric_vlan_inventory.go b/model_fabric_vlan_inventory.go index 4bc99e4c78..93e00c845c 100644 --- a/model_fabric_vlan_inventory.go +++ b/model_fabric_vlan_inventory.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -92,6 +92,11 @@ func (o *FabricVlanInventory) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "fabric.VlanInventory" of the ClassId field. +func (o *FabricVlanInventory) GetDefaultClassId() interface{} { + return "fabric.VlanInventory" +} + // GetObjectType returns the ObjectType field value func (o *FabricVlanInventory) GetObjectType() string { if o == nil { @@ -116,6 +121,11 @@ func (o *FabricVlanInventory) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "fabric.VlanInventory" of the ObjectType field. +func (o *FabricVlanInventory) GetDefaultObjectType() interface{} { + return "fabric.VlanInventory" +} + // GetAdminState returns the AdminState field value if set, zero value otherwise. func (o *FabricVlanInventory) GetAdminState() string { if o == nil || IsNil(o.AdminState) { @@ -380,7 +390,13 @@ func (o FabricVlanInventory) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.AdminState) { toSerialize["AdminState"] = o.AdminState @@ -420,6 +436,13 @@ func (o *FabricVlanInventory) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -429,11 +452,23 @@ func (o *FabricVlanInventory) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type FabricVlanInventoryWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_fabric_vlan_inventory_list.go b/model_fabric_vlan_inventory_list.go index 0774aa03da..bc4a5faa98 100644 --- a/model_fabric_vlan_inventory_list.go +++ b/model_fabric_vlan_inventory_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *FabricVlanInventoryList) GetResultsOk() ([]FabricVlanInventory, bool) { // HasResults returns a boolean if a field has been set. func (o *FabricVlanInventoryList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *FabricVlanInventoryList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *FabricVlanInventoryList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type FabricVlanInventoryListWithoutEmbeddedStruct struct { // The total number of 'fabric.VlanInventory' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_fabric_vlan_inventory_response.go b/model_fabric_vlan_inventory_response.go index 3a65009573..40a5c0e37e 100644 --- a/model_fabric_vlan_inventory_response.go +++ b/model_fabric_vlan_inventory_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_fabric_vlan_list.go b/model_fabric_vlan_list.go index 5c0bf7040a..5676168357 100644 --- a/model_fabric_vlan_list.go +++ b/model_fabric_vlan_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *FabricVlanList) GetResultsOk() ([]FabricVlan, bool) { // HasResults returns a boolean if a field has been set. func (o *FabricVlanList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *FabricVlanList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *FabricVlanList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type FabricVlanListWithoutEmbeddedStruct struct { // The total number of 'fabric.Vlan' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_fabric_vlan_response.go b/model_fabric_vlan_response.go index 68a2ef3ced..39ae4bfa2c 100644 --- a/model_fabric_vlan_response.go +++ b/model_fabric_vlan_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_fabric_vlan_set.go b/model_fabric_vlan_set.go index a09fbf024d..89f0b1aac1 100644 --- a/model_fabric_vlan_set.go +++ b/model_fabric_vlan_set.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -39,7 +39,7 @@ type FabricVlanSet struct { // The sharing type of this VLAN. * `None` - This represents a regular VLAN. * `Primary` - This represents a primary VLAN. * `Isolated` - This represents an isolated VLAN. * `Community` - This represents a community VLAN. SharingType *string `json:"SharingType,omitempty"` // Set of VLANs defined by VLAN object with identical configuration. - Vlans *string `json:"Vlans,omitempty"` + Vlans *string `json:"Vlans,omitempty" validate:"regexp=^$|^((\\\\d+\\\\-\\\\d+)|(\\\\d+))(,((\\\\d+\\\\-\\\\d+)|(\\\\d+)))*$"` EthNetworkPolicy NullableFabricEthNetworkPolicyRelationship `json:"EthNetworkPolicy,omitempty"` MulticastPolicy NullableFabricMulticastPolicyRelationship `json:"MulticastPolicy,omitempty"` AdditionalProperties map[string]interface{} @@ -94,6 +94,11 @@ func (o *FabricVlanSet) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "fabric.VlanSet" of the ClassId field. +func (o *FabricVlanSet) GetDefaultClassId() interface{} { + return "fabric.VlanSet" +} + // GetObjectType returns the ObjectType field value func (o *FabricVlanSet) GetObjectType() string { if o == nil { @@ -118,6 +123,11 @@ func (o *FabricVlanSet) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "fabric.VlanSet" of the ObjectType field. +func (o *FabricVlanSet) GetDefaultObjectType() interface{} { + return "fabric.VlanSet" +} + // GetAutoAllowOnUplinks returns the AutoAllowOnUplinks field value if set, zero value otherwise. func (o *FabricVlanSet) GetAutoAllowOnUplinks() bool { if o == nil || IsNil(o.AutoAllowOnUplinks) { @@ -414,7 +424,13 @@ func (o FabricVlanSet) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.AutoAllowOnUplinks) { toSerialize["AutoAllowOnUplinks"] = o.AutoAllowOnUplinks @@ -457,6 +473,13 @@ func (o *FabricVlanSet) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -466,11 +489,23 @@ func (o *FabricVlanSet) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type FabricVlanSetWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` @@ -487,7 +522,7 @@ func (o *FabricVlanSet) UnmarshalJSON(data []byte) (err error) { // The sharing type of this VLAN. * `None` - This represents a regular VLAN. * `Primary` - This represents a primary VLAN. * `Isolated` - This represents an isolated VLAN. * `Community` - This represents a community VLAN. SharingType *string `json:"SharingType,omitempty"` // Set of VLANs defined by VLAN object with identical configuration. - Vlans *string `json:"Vlans,omitempty"` + Vlans *string `json:"Vlans,omitempty" validate:"regexp=^$|^((\\\\d+\\\\-\\\\d+)|(\\\\d+))(,((\\\\d+\\\\-\\\\d+)|(\\\\d+)))*$"` EthNetworkPolicy NullableFabricEthNetworkPolicyRelationship `json:"EthNetworkPolicy,omitempty"` MulticastPolicy NullableFabricMulticastPolicyRelationship `json:"MulticastPolicy,omitempty"` } diff --git a/model_fabric_vlan_set_list.go b/model_fabric_vlan_set_list.go index 870aaec7a1..e484af2c3f 100644 --- a/model_fabric_vlan_set_list.go +++ b/model_fabric_vlan_set_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *FabricVlanSetList) GetResultsOk() ([]FabricVlanSet, bool) { // HasResults returns a boolean if a field has been set. func (o *FabricVlanSetList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *FabricVlanSetList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *FabricVlanSetList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type FabricVlanSetListWithoutEmbeddedStruct struct { // The total number of 'fabric.VlanSet' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_fabric_vlan_set_relationship.go b/model_fabric_vlan_set_relationship.go index f42c31440c..761e4978b7 100644 --- a/model_fabric_vlan_set_relationship.go +++ b/model_fabric_vlan_set_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_fabric_vlan_set_response.go b/model_fabric_vlan_set_response.go index bae89e15ee..f9b4caaf92 100644 --- a/model_fabric_vlan_set_response.go +++ b/model_fabric_vlan_set_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_fabric_vlan_settings.go b/model_fabric_vlan_settings.go index a0d34e56c3..30f6b30a3a 100644 --- a/model_fabric_vlan_settings.go +++ b/model_fabric_vlan_settings.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -29,7 +29,7 @@ type FabricVlanSettings struct { // The fully-qualified name of the instantiated, concrete type. The value should be the same as the 'ClassId' property. ObjectType string `json:"ObjectType"` // Allowed VLAN IDs of the virtual interface. A list of comma separated VLAN ids and/or VLAN id ranges. - AllowedVlans *string `json:"AllowedVlans,omitempty"` + AllowedVlans *string `json:"AllowedVlans,omitempty" validate:"regexp=^$|^((\\\\d+\\\\-\\\\d+)|(\\\\d+))(,((\\\\d+\\\\-\\\\d+)|(\\\\d+)))*$"` // Native VLAN ID of the virtual interface or the corresponding vethernet on the peer Fabric Interconnect to which the virtual interface is connected. If the native VLAN is not a part of the allowed VLANs, it will automatically be added to the list of allowed VLANs. NativeVlan *int64 `json:"NativeVlan,omitempty"` // Enable QinQ (802.1Q-in-802.1Q) Tunneling on the vNIC. @@ -100,6 +100,11 @@ func (o *FabricVlanSettings) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "fabric.VlanSettings" of the ClassId field. +func (o *FabricVlanSettings) GetDefaultClassId() interface{} { + return "fabric.VlanSettings" +} + // GetObjectType returns the ObjectType field value func (o *FabricVlanSettings) GetObjectType() string { if o == nil { @@ -124,6 +129,11 @@ func (o *FabricVlanSettings) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "fabric.VlanSettings" of the ObjectType field. +func (o *FabricVlanSettings) GetDefaultObjectType() interface{} { + return "fabric.VlanSettings" +} + // GetAllowedVlans returns the AllowedVlans field value if set, zero value otherwise. func (o *FabricVlanSettings) GetAllowedVlans() string { if o == nil || IsNil(o.AllowedVlans) { @@ -270,7 +280,13 @@ func (o FabricVlanSettings) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.AllowedVlans) { toSerialize["AllowedVlans"] = o.AllowedVlans @@ -301,6 +317,13 @@ func (o *FabricVlanSettings) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -310,18 +333,30 @@ func (o *FabricVlanSettings) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type FabricVlanSettingsWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` // The fully-qualified name of the instantiated, concrete type. The value should be the same as the 'ClassId' property. ObjectType string `json:"ObjectType"` // Allowed VLAN IDs of the virtual interface. A list of comma separated VLAN ids and/or VLAN id ranges. - AllowedVlans *string `json:"AllowedVlans,omitempty"` + AllowedVlans *string `json:"AllowedVlans,omitempty" validate:"regexp=^$|^((\\\\d+\\\\-\\\\d+)|(\\\\d+))(,((\\\\d+\\\\-\\\\d+)|(\\\\d+)))*$"` // Native VLAN ID of the virtual interface or the corresponding vethernet on the peer Fabric Interconnect to which the virtual interface is connected. If the native VLAN is not a part of the allowed VLANs, it will automatically be added to the list of allowed VLANs. NativeVlan *int64 `json:"NativeVlan,omitempty"` // Enable QinQ (802.1Q-in-802.1Q) Tunneling on the vNIC. diff --git a/model_fabric_vsan.go b/model_fabric_vsan.go index 0ee6cfc51d..2e16b278fc 100644 --- a/model_fabric_vsan.go +++ b/model_fabric_vsan.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -103,6 +103,11 @@ func (o *FabricVsan) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "fabric.Vsan" of the ClassId field. +func (o *FabricVsan) GetDefaultClassId() interface{} { + return "fabric.Vsan" +} + // GetObjectType returns the ObjectType field value func (o *FabricVsan) GetObjectType() string { if o == nil { @@ -127,6 +132,11 @@ func (o *FabricVsan) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "fabric.Vsan" of the ObjectType field. +func (o *FabricVsan) GetDefaultObjectType() interface{} { + return "fabric.Vsan" +} + // GetDefaultZoning returns the DefaultZoning field value if set, zero value otherwise. // Deprecated func (o *FabricVsan) GetDefaultZoning() string { @@ -386,7 +396,13 @@ func (o FabricVsan) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.DefaultZoning) { toSerialize["DefaultZoning"] = o.DefaultZoning @@ -426,6 +442,13 @@ func (o *FabricVsan) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -435,11 +458,23 @@ func (o *FabricVsan) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type FabricVsanWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_fabric_vsan_inventory.go b/model_fabric_vsan_inventory.go index 5d09503f09..119ab4ee04 100644 --- a/model_fabric_vsan_inventory.go +++ b/model_fabric_vsan_inventory.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -96,6 +96,11 @@ func (o *FabricVsanInventory) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "fabric.VsanInventory" of the ClassId field. +func (o *FabricVsanInventory) GetDefaultClassId() interface{} { + return "fabric.VsanInventory" +} + // GetObjectType returns the ObjectType field value func (o *FabricVsanInventory) GetObjectType() string { if o == nil { @@ -120,6 +125,11 @@ func (o *FabricVsanInventory) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "fabric.VsanInventory" of the ObjectType field. +func (o *FabricVsanInventory) GetDefaultObjectType() interface{} { + return "fabric.VsanInventory" +} + // GetAdminState returns the AdminState field value if set, zero value otherwise. func (o *FabricVsanInventory) GetAdminState() string { if o == nil || IsNil(o.AdminState) { @@ -448,7 +458,13 @@ func (o FabricVsanInventory) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.AdminState) { toSerialize["AdminState"] = o.AdminState @@ -494,6 +510,13 @@ func (o *FabricVsanInventory) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -503,11 +526,23 @@ func (o *FabricVsanInventory) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type FabricVsanInventoryWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_fabric_vsan_inventory_list.go b/model_fabric_vsan_inventory_list.go index 200f7d8088..58c078584e 100644 --- a/model_fabric_vsan_inventory_list.go +++ b/model_fabric_vsan_inventory_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *FabricVsanInventoryList) GetResultsOk() ([]FabricVsanInventory, bool) { // HasResults returns a boolean if a field has been set. func (o *FabricVsanInventoryList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *FabricVsanInventoryList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *FabricVsanInventoryList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type FabricVsanInventoryListWithoutEmbeddedStruct struct { // The total number of 'fabric.VsanInventory' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_fabric_vsan_inventory_response.go b/model_fabric_vsan_inventory_response.go index 4f1938e2bd..88fc7e3ef9 100644 --- a/model_fabric_vsan_inventory_response.go +++ b/model_fabric_vsan_inventory_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_fabric_vsan_list.go b/model_fabric_vsan_list.go index 8197ca95ad..90c9afe1bb 100644 --- a/model_fabric_vsan_list.go +++ b/model_fabric_vsan_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *FabricVsanList) GetResultsOk() ([]FabricVsan, bool) { // HasResults returns a boolean if a field has been set. func (o *FabricVsanList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *FabricVsanList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *FabricVsanList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type FabricVsanListWithoutEmbeddedStruct struct { // The total number of 'fabric.Vsan' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_fabric_vsan_response.go b/model_fabric_vsan_response.go index 407d815910..1719d3ff93 100644 --- a/model_fabric_vsan_response.go +++ b/model_fabric_vsan_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_fault_instance.go b/model_fault_instance.go index 99921db823..8583f1f2c2 100644 --- a/model_fault_instance.go +++ b/model_fault_instance.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -114,6 +114,11 @@ func (o *FaultInstance) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "fault.Instance" of the ClassId field. +func (o *FaultInstance) GetDefaultClassId() interface{} { + return "fault.Instance" +} + // GetObjectType returns the ObjectType field value func (o *FaultInstance) GetObjectType() string { if o == nil { @@ -138,6 +143,11 @@ func (o *FaultInstance) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "fault.Instance" of the ObjectType field. +func (o *FaultInstance) GetDefaultObjectType() interface{} { + return "fault.Instance" +} + // GetAcknowledged returns the Acknowledged field value if set, zero value otherwise. func (o *FaultInstance) GetAcknowledged() string { if o == nil || IsNil(o.Acknowledged) { @@ -808,7 +818,13 @@ func (o FaultInstance) ToMap() (map[string]interface{}, error) { if errInventoryBase != nil { return map[string]interface{}{}, errInventoryBase } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Acknowledged) { toSerialize["Acknowledged"] = o.Acknowledged @@ -884,6 +900,13 @@ func (o *FaultInstance) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -893,11 +916,23 @@ func (o *FaultInstance) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type FaultInstanceWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_fault_instance_list.go b/model_fault_instance_list.go index 5861097acf..e0d22133a8 100644 --- a/model_fault_instance_list.go +++ b/model_fault_instance_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *FaultInstanceList) GetResultsOk() ([]FaultInstance, bool) { // HasResults returns a boolean if a field has been set. func (o *FaultInstanceList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *FaultInstanceList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *FaultInstanceList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type FaultInstanceListWithoutEmbeddedStruct struct { // The total number of 'fault.Instance' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_fault_instance_response.go b/model_fault_instance_response.go index 50f3584273..fc43b375b6 100644 --- a/model_fault_instance_response.go +++ b/model_fault_instance_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_fc_neighbor.go b/model_fc_neighbor.go index 30a2740de0..35922c46a3 100644 --- a/model_fc_neighbor.go +++ b/model_fc_neighbor.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -92,6 +92,11 @@ func (o *FcNeighbor) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "fc.Neighbor" of the ClassId field. +func (o *FcNeighbor) GetDefaultClassId() interface{} { + return "fc.Neighbor" +} + // GetObjectType returns the ObjectType field value func (o *FcNeighbor) GetObjectType() string { if o == nil { @@ -116,6 +121,11 @@ func (o *FcNeighbor) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "fc.Neighbor" of the ObjectType field. +func (o *FcNeighbor) GetDefaultObjectType() interface{} { + return "fc.Neighbor" +} + // GetPeerDeviceCapability returns the PeerDeviceCapability field value if set, zero value otherwise. func (o *FcNeighbor) GetPeerDeviceCapability() string { if o == nil || IsNil(o.PeerDeviceCapability) { @@ -380,7 +390,13 @@ func (o FcNeighbor) ToMap() (map[string]interface{}, error) { if errInventoryBase != nil { return map[string]interface{}{}, errInventoryBase } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.PeerDeviceCapability) { toSerialize["PeerDeviceCapability"] = o.PeerDeviceCapability @@ -420,6 +436,13 @@ func (o *FcNeighbor) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -429,11 +452,23 @@ func (o *FcNeighbor) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type FcNeighborWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_fc_neighbor_list.go b/model_fc_neighbor_list.go index ceb8d4ba85..03fb0d5b3d 100644 --- a/model_fc_neighbor_list.go +++ b/model_fc_neighbor_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *FcNeighborList) GetResultsOk() ([]FcNeighbor, bool) { // HasResults returns a boolean if a field has been set. func (o *FcNeighborList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *FcNeighborList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *FcNeighborList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type FcNeighborListWithoutEmbeddedStruct struct { // The total number of 'fc.Neighbor' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_fc_neighbor_relationship.go b/model_fc_neighbor_relationship.go index 49d6d9e9a1..86a6bb3b42 100644 --- a/model_fc_neighbor_relationship.go +++ b/model_fc_neighbor_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_fc_neighbor_response.go b/model_fc_neighbor_response.go index d6bc42a393..a7f354e909 100644 --- a/model_fc_neighbor_response.go +++ b/model_fc_neighbor_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_fc_physical_port.go b/model_fc_physical_port.go index 42d8bf4a08..a431f37a01 100644 --- a/model_fc_physical_port.go +++ b/model_fc_physical_port.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -113,6 +113,11 @@ func (o *FcPhysicalPort) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "fc.PhysicalPort" of the ClassId field. +func (o *FcPhysicalPort) GetDefaultClassId() interface{} { + return "fc.PhysicalPort" +} + // GetObjectType returns the ObjectType field value func (o *FcPhysicalPort) GetObjectType() string { if o == nil { @@ -137,6 +142,11 @@ func (o *FcPhysicalPort) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "fc.PhysicalPort" of the ObjectType field. +func (o *FcPhysicalPort) GetDefaultObjectType() interface{} { + return "fc.PhysicalPort" +} + // GetAdminSpeed returns the AdminSpeed field value if set, zero value otherwise. func (o *FcPhysicalPort) GetAdminSpeed() string { if o == nil || IsNil(o.AdminSpeed) { @@ -872,7 +882,13 @@ func (o FcPhysicalPort) ToMap() (map[string]interface{}, error) { if errPortPhysical != nil { return map[string]interface{}{}, errPortPhysical } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.AdminSpeed) { toSerialize["AdminSpeed"] = o.AdminSpeed @@ -951,6 +967,13 @@ func (o *FcPhysicalPort) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -960,11 +983,23 @@ func (o *FcPhysicalPort) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type FcPhysicalPortWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_fc_physical_port_list.go b/model_fc_physical_port_list.go index 8ed778715a..985eeea50d 100644 --- a/model_fc_physical_port_list.go +++ b/model_fc_physical_port_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *FcPhysicalPortList) GetResultsOk() ([]FcPhysicalPort, bool) { // HasResults returns a boolean if a field has been set. func (o *FcPhysicalPortList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *FcPhysicalPortList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *FcPhysicalPortList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type FcPhysicalPortListWithoutEmbeddedStruct struct { // The total number of 'fc.PhysicalPort' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_fc_physical_port_relationship.go b/model_fc_physical_port_relationship.go index cf9e916b8f..8117ca469f 100644 --- a/model_fc_physical_port_relationship.go +++ b/model_fc_physical_port_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_fc_physical_port_response.go b/model_fc_physical_port_response.go index 9bdec0f33f..43c73a8f99 100644 --- a/model_fc_physical_port_response.go +++ b/model_fc_physical_port_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_fc_port_channel.go b/model_fc_port_channel.go index e8799c62e0..eecf8f516d 100644 --- a/model_fc_port_channel.go +++ b/model_fc_port_channel.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -109,6 +109,11 @@ func (o *FcPortChannel) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "fc.PortChannel" of the ClassId field. +func (o *FcPortChannel) GetDefaultClassId() interface{} { + return "fc.PortChannel" +} + // GetObjectType returns the ObjectType field value func (o *FcPortChannel) GetObjectType() string { if o == nil { @@ -133,6 +138,11 @@ func (o *FcPortChannel) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "fc.PortChannel" of the ObjectType field. +func (o *FcPortChannel) GetDefaultObjectType() interface{} { + return "fc.PortChannel" +} + // GetAdminSpeed returns the AdminSpeed field value if set, zero value otherwise. func (o *FcPortChannel) GetAdminSpeed() string { if o == nil || IsNil(o.AdminSpeed) { @@ -581,7 +591,7 @@ func (o *FcPortChannel) GetFcNeighborOk() ([]FcNeighborRelationship, bool) { // HasFcNeighbor returns a boolean if a field has been set. func (o *FcPortChannel) HasFcNeighbor() bool { - if o != nil && IsNil(o.FcNeighbor) { + if o != nil && !IsNil(o.FcNeighbor) { return true } @@ -697,7 +707,13 @@ func (o FcPortChannel) ToMap() (map[string]interface{}, error) { if errInventoryInterface != nil { return map[string]interface{}{}, errInventoryInterface } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.AdminSpeed) { toSerialize["AdminSpeed"] = o.AdminSpeed @@ -764,6 +780,13 @@ func (o *FcPortChannel) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -773,11 +796,23 @@ func (o *FcPortChannel) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type FcPortChannelWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_fc_port_channel_list.go b/model_fc_port_channel_list.go index 93e31a6dc9..aac0daea2c 100644 --- a/model_fc_port_channel_list.go +++ b/model_fc_port_channel_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *FcPortChannelList) GetResultsOk() ([]FcPortChannel, bool) { // HasResults returns a boolean if a field has been set. func (o *FcPortChannelList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *FcPortChannelList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *FcPortChannelList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type FcPortChannelListWithoutEmbeddedStruct struct { // The total number of 'fc.PortChannel' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_fc_port_channel_relationship.go b/model_fc_port_channel_relationship.go index e7907a758b..60ac295b3a 100644 --- a/model_fc_port_channel_relationship.go +++ b/model_fc_port_channel_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_fc_port_channel_response.go b/model_fc_port_channel_response.go index ebd7c5b30c..5eb29f36e1 100644 --- a/model_fc_port_channel_response.go +++ b/model_fc_port_channel_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_fcpool_block.go b/model_fcpool_block.go index 5c565fca05..30661c6d61 100644 --- a/model_fcpool_block.go +++ b/model_fcpool_block.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -29,9 +29,9 @@ type FcpoolBlock struct { // The fully-qualified name of the instantiated, concrete type. The value should be the same as the 'ClassId' property. ObjectType string `json:"ObjectType"` // Starting WWN identifier of the block must be in hexadecimal format xx:xx:xx:xx:xx:xx:xx:xx. Allowed ranges are 20:00:00:00:00:00:00:00 to 20:FF:FF:FF:FF:FF:FF:FF or from 50:00:00:00:00:00:00:00 to 5F:FF:FF:FF:FF:FF:FF:FF. To ensure uniqueness of WWN's in the SAN fabric, you are strongly encouraged to use the following WWN prefix; 20:00:00:25:B5:xx:xx:xx. - From *string `json:"From,omitempty"` + From *string `json:"From,omitempty" validate:"regexp=^$|((^20|5[0-9a-fA-F]{1}):([0-9a-fA-F]{2}:){6}([0-9a-fA-F]{2})$)"` // Ending WWN identifier of the block must be in hexadecimal format xx:xx:xx:xx:xx:xx:xx:xx. - To *string `json:"To,omitempty"` + To *string `json:"To,omitempty" validate:"regexp=^$|((^20|5[0-9a-fA-F]{1}):([0-9a-fA-F]{2}:){6}([0-9a-fA-F]{2})$)"` AdditionalProperties map[string]interface{} } @@ -84,6 +84,11 @@ func (o *FcpoolBlock) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "fcpool.Block" of the ClassId field. +func (o *FcpoolBlock) GetDefaultClassId() interface{} { + return "fcpool.Block" +} + // GetObjectType returns the ObjectType field value func (o *FcpoolBlock) GetObjectType() string { if o == nil { @@ -108,6 +113,11 @@ func (o *FcpoolBlock) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "fcpool.Block" of the ObjectType field. +func (o *FcpoolBlock) GetDefaultObjectType() interface{} { + return "fcpool.Block" +} + // GetFrom returns the From field value if set, zero value otherwise. func (o *FcpoolBlock) GetFrom() string { if o == nil || IsNil(o.From) { @@ -190,7 +200,13 @@ func (o FcpoolBlock) ToMap() (map[string]interface{}, error) { if errPoolAbstractBlockType != nil { return map[string]interface{}{}, errPoolAbstractBlockType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.From) { toSerialize["From"] = o.From @@ -215,6 +231,13 @@ func (o *FcpoolBlock) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -224,20 +247,32 @@ func (o *FcpoolBlock) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type FcpoolBlockWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` // The fully-qualified name of the instantiated, concrete type. The value should be the same as the 'ClassId' property. ObjectType string `json:"ObjectType"` // Starting WWN identifier of the block must be in hexadecimal format xx:xx:xx:xx:xx:xx:xx:xx. Allowed ranges are 20:00:00:00:00:00:00:00 to 20:FF:FF:FF:FF:FF:FF:FF or from 50:00:00:00:00:00:00:00 to 5F:FF:FF:FF:FF:FF:FF:FF. To ensure uniqueness of WWN's in the SAN fabric, you are strongly encouraged to use the following WWN prefix; 20:00:00:25:B5:xx:xx:xx. - From *string `json:"From,omitempty"` + From *string `json:"From,omitempty" validate:"regexp=^$|((^20|5[0-9a-fA-F]{1}):([0-9a-fA-F]{2}:){6}([0-9a-fA-F]{2})$)"` // Ending WWN identifier of the block must be in hexadecimal format xx:xx:xx:xx:xx:xx:xx:xx. - To *string `json:"To,omitempty"` + To *string `json:"To,omitempty" validate:"regexp=^$|((^20|5[0-9a-fA-F]{1}):([0-9a-fA-F]{2}:){6}([0-9a-fA-F]{2})$)"` } varFcpoolBlockWithoutEmbeddedStruct := FcpoolBlockWithoutEmbeddedStruct{} diff --git a/model_fcpool_fc_block.go b/model_fcpool_fc_block.go index d908e39b09..84336516b1 100644 --- a/model_fcpool_fc_block.go +++ b/model_fcpool_fc_block.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -84,6 +84,11 @@ func (o *FcpoolFcBlock) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "fcpool.FcBlock" of the ClassId field. +func (o *FcpoolFcBlock) GetDefaultClassId() interface{} { + return "fcpool.FcBlock" +} + // GetObjectType returns the ObjectType field value func (o *FcpoolFcBlock) GetObjectType() string { if o == nil { @@ -108,6 +113,11 @@ func (o *FcpoolFcBlock) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "fcpool.FcBlock" of the ObjectType field. +func (o *FcpoolFcBlock) GetDefaultObjectType() interface{} { + return "fcpool.FcBlock" +} + // GetIdBlock returns the IdBlock field value if set, zero value otherwise. func (o *FcpoolFcBlock) GetIdBlock() FcpoolBlock { if o == nil || IsNil(o.IdBlock) { @@ -204,7 +214,7 @@ func (o *FcpoolFcBlock) GetReservationsOk() ([]FcpoolReservationRelationship, bo // HasReservations returns a boolean if a field has been set. func (o *FcpoolFcBlock) HasReservations() bool { - if o != nil && IsNil(o.Reservations) { + if o != nil && !IsNil(o.Reservations) { return true } @@ -234,7 +244,13 @@ func (o FcpoolFcBlock) ToMap() (map[string]interface{}, error) { if errPoolAbstractBlock != nil { return map[string]interface{}{}, errPoolAbstractBlock } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.IdBlock) { toSerialize["IdBlock"] = o.IdBlock @@ -262,6 +278,13 @@ func (o *FcpoolFcBlock) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -271,11 +294,23 @@ func (o *FcpoolFcBlock) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type FcpoolFcBlockWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_fcpool_fc_block_list.go b/model_fcpool_fc_block_list.go index 5955234446..7ee11475a2 100644 --- a/model_fcpool_fc_block_list.go +++ b/model_fcpool_fc_block_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *FcpoolFcBlockList) GetResultsOk() ([]FcpoolFcBlock, bool) { // HasResults returns a boolean if a field has been set. func (o *FcpoolFcBlockList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *FcpoolFcBlockList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *FcpoolFcBlockList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type FcpoolFcBlockListWithoutEmbeddedStruct struct { // The total number of 'fcpool.FcBlock' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_fcpool_fc_block_relationship.go b/model_fcpool_fc_block_relationship.go index 7b9694d6bf..bf67b6f0ad 100644 --- a/model_fcpool_fc_block_relationship.go +++ b/model_fcpool_fc_block_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_fcpool_fc_block_response.go b/model_fcpool_fc_block_response.go index a56cf29848..41edeea25b 100644 --- a/model_fcpool_fc_block_response.go +++ b/model_fcpool_fc_block_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_fcpool_lease.go b/model_fcpool_lease.go index a8e36c783b..3b3e4fcb42 100644 --- a/model_fcpool_lease.go +++ b/model_fcpool_lease.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -32,7 +32,7 @@ type FcpoolLease struct { PoolPurpose *string `json:"PoolPurpose,omitempty"` Reservation *FcpoolReservationReference `json:"Reservation,omitempty"` // WWN ID allocated for pool based allocation. - WwnId *string `json:"WwnId,omitempty"` + WwnId *string `json:"WwnId,omitempty" validate:"regexp=^$|((^20|5[0-9a-fA-F]{1}):([0-9a-fA-F]{2}:){6}([0-9a-fA-F]{2})$)"` AssignedToEntity NullableMoBaseMoRelationship `json:"AssignedToEntity,omitempty"` Pool NullableFcpoolPoolRelationship `json:"Pool,omitempty"` PoolMember NullableFcpoolPoolMemberRelationship `json:"PoolMember,omitempty"` @@ -93,6 +93,11 @@ func (o *FcpoolLease) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "fcpool.Lease" of the ClassId field. +func (o *FcpoolLease) GetDefaultClassId() interface{} { + return "fcpool.Lease" +} + // GetObjectType returns the ObjectType field value func (o *FcpoolLease) GetObjectType() string { if o == nil { @@ -117,6 +122,11 @@ func (o *FcpoolLease) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "fcpool.Lease" of the ObjectType field. +func (o *FcpoolLease) GetDefaultObjectType() interface{} { + return "fcpool.Lease" +} + // GetPoolPurpose returns the PoolPurpose field value if set, zero value otherwise. func (o *FcpoolLease) GetPoolPurpose() string { if o == nil || IsNil(o.PoolPurpose) { @@ -403,7 +413,13 @@ func (o FcpoolLease) ToMap() (map[string]interface{}, error) { if errPoolAbstractLease != nil { return map[string]interface{}{}, errPoolAbstractLease } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.PoolPurpose) { toSerialize["PoolPurpose"] = o.PoolPurpose @@ -443,6 +459,13 @@ func (o *FcpoolLease) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -452,11 +475,23 @@ func (o *FcpoolLease) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type FcpoolLeaseWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` @@ -466,7 +501,7 @@ func (o *FcpoolLease) UnmarshalJSON(data []byte) (err error) { PoolPurpose *string `json:"PoolPurpose,omitempty"` Reservation *FcpoolReservationReference `json:"Reservation,omitempty"` // WWN ID allocated for pool based allocation. - WwnId *string `json:"WwnId,omitempty"` + WwnId *string `json:"WwnId,omitempty" validate:"regexp=^$|((^20|5[0-9a-fA-F]{1}):([0-9a-fA-F]{2}:){6}([0-9a-fA-F]{2})$)"` AssignedToEntity NullableMoBaseMoRelationship `json:"AssignedToEntity,omitempty"` Pool NullableFcpoolPoolRelationship `json:"Pool,omitempty"` PoolMember NullableFcpoolPoolMemberRelationship `json:"PoolMember,omitempty"` diff --git a/model_fcpool_lease_list.go b/model_fcpool_lease_list.go index 8a2e9fbcd9..5753fca1c1 100644 --- a/model_fcpool_lease_list.go +++ b/model_fcpool_lease_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *FcpoolLeaseList) GetResultsOk() ([]FcpoolLease, bool) { // HasResults returns a boolean if a field has been set. func (o *FcpoolLeaseList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *FcpoolLeaseList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *FcpoolLeaseList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type FcpoolLeaseListWithoutEmbeddedStruct struct { // The total number of 'fcpool.Lease' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_fcpool_lease_relationship.go b/model_fcpool_lease_relationship.go index fbef49a100..d7cb6b6a73 100644 --- a/model_fcpool_lease_relationship.go +++ b/model_fcpool_lease_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_fcpool_lease_response.go b/model_fcpool_lease_response.go index 92a1c7c339..1c987338f3 100644 --- a/model_fcpool_lease_response.go +++ b/model_fcpool_lease_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_fcpool_pool.go b/model_fcpool_pool.go index f683b2df78..f348f911ef 100644 --- a/model_fcpool_pool.go +++ b/model_fcpool_pool.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -90,6 +90,11 @@ func (o *FcpoolPool) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "fcpool.Pool" of the ClassId field. +func (o *FcpoolPool) GetDefaultClassId() interface{} { + return "fcpool.Pool" +} + // GetObjectType returns the ObjectType field value func (o *FcpoolPool) GetObjectType() string { if o == nil { @@ -114,6 +119,11 @@ func (o *FcpoolPool) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "fcpool.Pool" of the ObjectType field. +func (o *FcpoolPool) GetDefaultObjectType() interface{} { + return "fcpool.Pool" +} + // GetIdBlocks returns the IdBlocks field value if set, zero value otherwise (both if not set or set to explicit null). func (o *FcpoolPool) GetIdBlocks() []FcpoolBlock { if o == nil { @@ -135,7 +145,7 @@ func (o *FcpoolPool) GetIdBlocksOk() ([]FcpoolBlock, bool) { // HasIdBlocks returns a boolean if a field has been set. func (o *FcpoolPool) HasIdBlocks() bool { - if o != nil && IsNil(o.IdBlocks) { + if o != nil && !IsNil(o.IdBlocks) { return true } @@ -200,7 +210,7 @@ func (o *FcpoolPool) GetBlockHeadsOk() ([]FcpoolFcBlockRelationship, bool) { // HasBlockHeads returns a boolean if a field has been set. func (o *FcpoolPool) HasBlockHeads() bool { - if o != nil && IsNil(o.BlockHeads) { + if o != nil && !IsNil(o.BlockHeads) { return true } @@ -276,7 +286,7 @@ func (o *FcpoolPool) GetReservationsOk() ([]FcpoolReservationRelationship, bool) // HasReservations returns a boolean if a field has been set. func (o *FcpoolPool) HasReservations() bool { - if o != nil && IsNil(o.Reservations) { + if o != nil && !IsNil(o.Reservations) { return true } @@ -306,7 +316,13 @@ func (o FcpoolPool) ToMap() (map[string]interface{}, error) { if errPoolAbstractPool != nil { return map[string]interface{}{}, errPoolAbstractPool } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.IdBlocks != nil { toSerialize["IdBlocks"] = o.IdBlocks @@ -340,6 +356,13 @@ func (o *FcpoolPool) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -349,11 +372,23 @@ func (o *FcpoolPool) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type FcpoolPoolWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_fcpool_pool_list.go b/model_fcpool_pool_list.go index 4bd41c593d..39929a95ce 100644 --- a/model_fcpool_pool_list.go +++ b/model_fcpool_pool_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *FcpoolPoolList) GetResultsOk() ([]FcpoolPool, bool) { // HasResults returns a boolean if a field has been set. func (o *FcpoolPoolList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *FcpoolPoolList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *FcpoolPoolList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type FcpoolPoolListWithoutEmbeddedStruct struct { // The total number of 'fcpool.Pool' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_fcpool_pool_member.go b/model_fcpool_pool_member.go index 4f2143e09a..bcf7139960 100644 --- a/model_fcpool_pool_member.go +++ b/model_fcpool_pool_member.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -29,7 +29,7 @@ type FcpoolPoolMember struct { // The fully-qualified name of the instantiated, concrete type. The value should be the same as the 'ClassId' property. ObjectType string `json:"ObjectType"` // WWN ID of this pool member. - WwnId *string `json:"WwnId,omitempty"` + WwnId *string `json:"WwnId,omitempty" validate:"regexp=^$|((^20|5[0-9a-fA-F]{1}):([0-9a-fA-F]{2}:){6}([0-9a-fA-F]{2})$)"` AssignedToEntity NullableMoBaseMoRelationship `json:"AssignedToEntity,omitempty"` BlockHead NullableFcpoolFcBlockRelationship `json:"BlockHead,omitempty"` Peer NullableFcpoolLeaseRelationship `json:"Peer,omitempty"` @@ -93,6 +93,11 @@ func (o *FcpoolPoolMember) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "fcpool.PoolMember" of the ClassId field. +func (o *FcpoolPoolMember) GetDefaultClassId() interface{} { + return "fcpool.PoolMember" +} + // GetObjectType returns the ObjectType field value func (o *FcpoolPoolMember) GetObjectType() string { if o == nil { @@ -117,6 +122,11 @@ func (o *FcpoolPoolMember) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "fcpool.PoolMember" of the ObjectType field. +func (o *FcpoolPoolMember) GetDefaultObjectType() interface{} { + return "fcpool.PoolMember" +} + // GetWwnId returns the WwnId field value if set, zero value otherwise. func (o *FcpoolPoolMember) GetWwnId() string { if o == nil || IsNil(o.WwnId) { @@ -382,7 +392,13 @@ func (o FcpoolPoolMember) ToMap() (map[string]interface{}, error) { if errPoolAbstractIdPoolMember != nil { return map[string]interface{}{}, errPoolAbstractIdPoolMember } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.WwnId) { toSerialize["WwnId"] = o.WwnId @@ -419,6 +435,13 @@ func (o *FcpoolPoolMember) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -428,18 +451,30 @@ func (o *FcpoolPoolMember) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type FcpoolPoolMemberWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` // The fully-qualified name of the instantiated, concrete type. The value should be the same as the 'ClassId' property. ObjectType string `json:"ObjectType"` // WWN ID of this pool member. - WwnId *string `json:"WwnId,omitempty"` + WwnId *string `json:"WwnId,omitempty" validate:"regexp=^$|((^20|5[0-9a-fA-F]{1}):([0-9a-fA-F]{2}:){6}([0-9a-fA-F]{2})$)"` AssignedToEntity NullableMoBaseMoRelationship `json:"AssignedToEntity,omitempty"` BlockHead NullableFcpoolFcBlockRelationship `json:"BlockHead,omitempty"` Peer NullableFcpoolLeaseRelationship `json:"Peer,omitempty"` diff --git a/model_fcpool_pool_member_list.go b/model_fcpool_pool_member_list.go index 234b66d2e2..d8cb185e0e 100644 --- a/model_fcpool_pool_member_list.go +++ b/model_fcpool_pool_member_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *FcpoolPoolMemberList) GetResultsOk() ([]FcpoolPoolMember, bool) { // HasResults returns a boolean if a field has been set. func (o *FcpoolPoolMemberList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *FcpoolPoolMemberList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *FcpoolPoolMemberList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type FcpoolPoolMemberListWithoutEmbeddedStruct struct { // The total number of 'fcpool.PoolMember' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_fcpool_pool_member_relationship.go b/model_fcpool_pool_member_relationship.go index a4464db3fb..37e26cdda9 100644 --- a/model_fcpool_pool_member_relationship.go +++ b/model_fcpool_pool_member_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_fcpool_pool_member_response.go b/model_fcpool_pool_member_response.go index 8df2a7fe02..b75f43a6fd 100644 --- a/model_fcpool_pool_member_response.go +++ b/model_fcpool_pool_member_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_fcpool_pool_relationship.go b/model_fcpool_pool_relationship.go index 7e54065b0d..129a04c3a0 100644 --- a/model_fcpool_pool_relationship.go +++ b/model_fcpool_pool_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_fcpool_pool_response.go b/model_fcpool_pool_response.go index a431bee63a..a2853b45bc 100644 --- a/model_fcpool_pool_response.go +++ b/model_fcpool_pool_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_fcpool_reservation.go b/model_fcpool_reservation.go index c7f0f9dc15..f19eeff2d3 100644 --- a/model_fcpool_reservation.go +++ b/model_fcpool_reservation.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -31,7 +31,7 @@ type FcpoolReservation struct { // Purpose of this WWN ID. Purpose can be WWPN or WWNN. IdPurpose *string `json:"IdPurpose,omitempty"` // WWN ID that needs to be reserved. - Identity *string `json:"Identity,omitempty"` + Identity *string `json:"Identity,omitempty" validate:"regexp=^$|((^20|5[0-9a-fA-F]{1}):([0-9a-fA-F]{2}:){6}([0-9a-fA-F]{2})$)"` Block NullableFcpoolFcBlockRelationship `json:"Block,omitempty"` Organization NullableOrganizationOrganizationRelationship `json:"Organization,omitempty"` Pool NullableFcpoolPoolRelationship `json:"Pool,omitempty"` @@ -91,6 +91,11 @@ func (o *FcpoolReservation) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "fcpool.Reservation" of the ClassId field. +func (o *FcpoolReservation) GetDefaultClassId() interface{} { + return "fcpool.Reservation" +} + // GetObjectType returns the ObjectType field value func (o *FcpoolReservation) GetObjectType() string { if o == nil { @@ -115,6 +120,11 @@ func (o *FcpoolReservation) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "fcpool.Reservation" of the ObjectType field. +func (o *FcpoolReservation) GetDefaultObjectType() interface{} { + return "fcpool.Reservation" +} + // GetIdPurpose returns the IdPurpose field value if set, zero value otherwise. func (o *FcpoolReservation) GetIdPurpose() string { if o == nil || IsNil(o.IdPurpose) { @@ -412,7 +422,13 @@ func (o FcpoolReservation) ToMap() (map[string]interface{}, error) { if errPoolReservation != nil { return map[string]interface{}{}, errPoolReservation } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.IdPurpose) { toSerialize["IdPurpose"] = o.IdPurpose @@ -452,6 +468,13 @@ func (o *FcpoolReservation) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -461,11 +484,23 @@ func (o *FcpoolReservation) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type FcpoolReservationWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` @@ -474,7 +509,7 @@ func (o *FcpoolReservation) UnmarshalJSON(data []byte) (err error) { // Purpose of this WWN ID. Purpose can be WWPN or WWNN. IdPurpose *string `json:"IdPurpose,omitempty"` // WWN ID that needs to be reserved. - Identity *string `json:"Identity,omitempty"` + Identity *string `json:"Identity,omitempty" validate:"regexp=^$|((^20|5[0-9a-fA-F]{1}):([0-9a-fA-F]{2}:){6}([0-9a-fA-F]{2})$)"` Block NullableFcpoolFcBlockRelationship `json:"Block,omitempty"` Organization NullableOrganizationOrganizationRelationship `json:"Organization,omitempty"` Pool NullableFcpoolPoolRelationship `json:"Pool,omitempty"` diff --git a/model_fcpool_reservation_list.go b/model_fcpool_reservation_list.go index e20db39e44..880b4079ca 100644 --- a/model_fcpool_reservation_list.go +++ b/model_fcpool_reservation_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *FcpoolReservationList) GetResultsOk() ([]FcpoolReservation, bool) { // HasResults returns a boolean if a field has been set. func (o *FcpoolReservationList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *FcpoolReservationList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *FcpoolReservationList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type FcpoolReservationListWithoutEmbeddedStruct struct { // The total number of 'fcpool.Reservation' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_fcpool_reservation_reference.go b/model_fcpool_reservation_reference.go index cd55e3021e..2c9fc625f1 100644 --- a/model_fcpool_reservation_reference.go +++ b/model_fcpool_reservation_reference.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -88,6 +88,11 @@ func (o *FcpoolReservationReference) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "fcpool.ReservationReference" of the ClassId field. +func (o *FcpoolReservationReference) GetDefaultClassId() interface{} { + return "fcpool.ReservationReference" +} + // GetObjectType returns the ObjectType field value func (o *FcpoolReservationReference) GetObjectType() string { if o == nil { @@ -112,6 +117,11 @@ func (o *FcpoolReservationReference) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "fcpool.ReservationReference" of the ObjectType field. +func (o *FcpoolReservationReference) GetDefaultObjectType() interface{} { + return "fcpool.ReservationReference" +} + // GetConsumerName returns the ConsumerName field value if set, zero value otherwise. func (o *FcpoolReservationReference) GetConsumerName() string { if o == nil || IsNil(o.ConsumerName) { @@ -194,7 +204,13 @@ func (o FcpoolReservationReference) ToMap() (map[string]interface{}, error) { if errPoolReservationReference != nil { return map[string]interface{}{}, errPoolReservationReference } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.ConsumerName) { toSerialize["ConsumerName"] = o.ConsumerName @@ -219,6 +235,13 @@ func (o *FcpoolReservationReference) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -228,11 +251,23 @@ func (o *FcpoolReservationReference) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type FcpoolReservationReferenceWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_fcpool_reservation_relationship.go b/model_fcpool_reservation_relationship.go index 1c4b24fc63..14e7ded203 100644 --- a/model_fcpool_reservation_relationship.go +++ b/model_fcpool_reservation_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_fcpool_reservation_response.go b/model_fcpool_reservation_response.go index 11a5161531..298b8dcc25 100644 --- a/model_fcpool_reservation_response.go +++ b/model_fcpool_reservation_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_fcpool_universe.go b/model_fcpool_universe.go index 7f331a52f8..defc68461a 100644 --- a/model_fcpool_universe.go +++ b/model_fcpool_universe.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -81,6 +81,11 @@ func (o *FcpoolUniverse) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "fcpool.Universe" of the ClassId field. +func (o *FcpoolUniverse) GetDefaultClassId() interface{} { + return "fcpool.Universe" +} + // GetObjectType returns the ObjectType field value func (o *FcpoolUniverse) GetObjectType() string { if o == nil { @@ -105,6 +110,11 @@ func (o *FcpoolUniverse) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "fcpool.Universe" of the ObjectType field. +func (o *FcpoolUniverse) GetDefaultObjectType() interface{} { + return "fcpool.Universe" +} + // GetAccount returns the Account field value if set, zero value otherwise (both if not set or set to explicit null). func (o *FcpoolUniverse) GetAccount() IamAccountRelationship { if o == nil || IsNil(o.Account.Get()) { @@ -166,7 +176,13 @@ func (o FcpoolUniverse) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.Account.IsSet() { toSerialize["Account"] = o.Account.Get() @@ -188,6 +204,13 @@ func (o *FcpoolUniverse) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -197,11 +220,23 @@ func (o *FcpoolUniverse) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type FcpoolUniverseWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_fcpool_universe_list.go b/model_fcpool_universe_list.go index 4f9df0e870..2de2eeeafe 100644 --- a/model_fcpool_universe_list.go +++ b/model_fcpool_universe_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *FcpoolUniverseList) GetResultsOk() ([]FcpoolUniverse, bool) { // HasResults returns a boolean if a field has been set. func (o *FcpoolUniverseList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *FcpoolUniverseList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *FcpoolUniverseList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type FcpoolUniverseListWithoutEmbeddedStruct struct { // The total number of 'fcpool.Universe' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_fcpool_universe_relationship.go b/model_fcpool_universe_relationship.go index fadb84061a..48c375c1df 100644 --- a/model_fcpool_universe_relationship.go +++ b/model_fcpool_universe_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_fcpool_universe_response.go b/model_fcpool_universe_response.go index c56412a5c0..fd8edc128e 100644 --- a/model_fcpool_universe_response.go +++ b/model_fcpool_universe_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_feedback_feedback_data.go b/model_feedback_feedback_data.go index 603cc50e33..4a39ca760e 100644 --- a/model_feedback_feedback_data.go +++ b/model_feedback_feedback_data.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -110,6 +110,11 @@ func (o *FeedbackFeedbackData) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "feedback.FeedbackData" of the ClassId field. +func (o *FeedbackFeedbackData) GetDefaultClassId() interface{} { + return "feedback.FeedbackData" +} + // GetObjectType returns the ObjectType field value func (o *FeedbackFeedbackData) GetObjectType() string { if o == nil { @@ -134,6 +139,11 @@ func (o *FeedbackFeedbackData) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "feedback.FeedbackData" of the ObjectType field. +func (o *FeedbackFeedbackData) GetDefaultObjectType() interface{} { + return "feedback.FeedbackData" +} + // GetAccountName returns the AccountName field value if set, zero value otherwise. func (o *FeedbackFeedbackData) GetAccountName() string { if o == nil || IsNil(o.AccountName) { @@ -187,7 +197,7 @@ func (o *FeedbackFeedbackData) GetAlternativeFollowUpEmailsOk() ([]string, bool) // HasAlternativeFollowUpEmails returns a boolean if a field has been set. func (o *FeedbackFeedbackData) HasAlternativeFollowUpEmails() bool { - if o != nil && IsNil(o.AlternativeFollowUpEmails) { + if o != nil && !IsNil(o.AlternativeFollowUpEmails) { return true } @@ -447,7 +457,7 @@ func (o *FeedbackFeedbackData) GetTraceIdsOk() (*interface{}, bool) { // HasTraceIds returns a boolean if a field has been set. func (o *FeedbackFeedbackData) HasTraceIds() bool { - if o != nil && IsNil(o.TraceIds) { + if o != nil && !IsNil(o.TraceIds) { return true } @@ -509,7 +519,13 @@ func (o FeedbackFeedbackData) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.AccountName) { toSerialize["AccountName"] = o.AccountName @@ -561,6 +577,13 @@ func (o *FeedbackFeedbackData) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -570,11 +593,23 @@ func (o *FeedbackFeedbackData) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type FeedbackFeedbackDataWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_feedback_feedback_post.go b/model_feedback_feedback_post.go index d63e46f87c..a3e49ab8f1 100644 --- a/model_feedback_feedback_post.go +++ b/model_feedback_feedback_post.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -82,6 +82,11 @@ func (o *FeedbackFeedbackPost) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "feedback.FeedbackPost" of the ClassId field. +func (o *FeedbackFeedbackPost) GetDefaultClassId() interface{} { + return "feedback.FeedbackPost" +} + // GetObjectType returns the ObjectType field value func (o *FeedbackFeedbackPost) GetObjectType() string { if o == nil { @@ -106,6 +111,11 @@ func (o *FeedbackFeedbackPost) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "feedback.FeedbackPost" of the ObjectType field. +func (o *FeedbackFeedbackPost) GetDefaultObjectType() interface{} { + return "feedback.FeedbackPost" +} + // GetFeedbackData returns the FeedbackData field value if set, zero value otherwise (both if not set or set to explicit null). func (o *FeedbackFeedbackPost) GetFeedbackData() FeedbackFeedbackData { if o == nil || IsNil(o.FeedbackData.Get()) { @@ -210,7 +220,13 @@ func (o FeedbackFeedbackPost) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.FeedbackData.IsSet() { toSerialize["FeedbackData"] = o.FeedbackData.Get() @@ -235,6 +251,13 @@ func (o *FeedbackFeedbackPost) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -244,11 +267,23 @@ func (o *FeedbackFeedbackPost) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type FeedbackFeedbackPostWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_firmware_base_distributable.go b/model_firmware_base_distributable.go index 51265ea6d3..04e61468f7 100644 --- a/model_firmware_base_distributable.go +++ b/model_firmware_base_distributable.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -188,7 +188,7 @@ func (o *FirmwareBaseDistributable) GetComponentMetaOk() ([]FirmwareComponentMet // HasComponentMeta returns a boolean if a field has been set. func (o *FirmwareBaseDistributable) HasComponentMeta() bool { - if o != nil && IsNil(o.ComponentMeta) { + if o != nil && !IsNil(o.ComponentMeta) { return true } @@ -477,7 +477,7 @@ func (o *FirmwareBaseDistributable) GetSupportedModelsOk() ([]string, bool) { // HasSupportedModels returns a boolean if a field has been set. func (o *FirmwareBaseDistributable) HasSupportedModels() bool { - if o != nil && IsNil(o.SupportedModels) { + if o != nil && !IsNil(o.SupportedModels) { return true } @@ -542,7 +542,7 @@ func (o *FirmwareBaseDistributable) GetDistributableMetasOk() ([]FirmwareDistrib // HasDistributableMetas returns a boolean if a field has been set. func (o *FirmwareBaseDistributable) HasDistributableMetas() bool { - if o != nil && IsNil(o.DistributableMetas) { + if o != nil && !IsNil(o.DistributableMetas) { return true } @@ -676,6 +676,10 @@ func (o *FirmwareBaseDistributable) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -685,11 +689,23 @@ func (o *FirmwareBaseDistributable) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type FirmwareBaseDistributableWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. The enum values provides the list of concrete types that can be instantiated from this abstract type. ClassId string `json:"ClassId"` diff --git a/model_firmware_base_distributable_relationship.go b/model_firmware_base_distributable_relationship.go index c2b25a9e18..c5095f1d4c 100644 --- a/model_firmware_base_distributable_relationship.go +++ b/model_firmware_base_distributable_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_firmware_base_impact.go b/model_firmware_base_impact.go index fc0fad5228..4123609d18 100644 --- a/model_firmware_base_impact.go +++ b/model_firmware_base_impact.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -482,6 +482,10 @@ func (o *FirmwareBaseImpact) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -491,11 +495,23 @@ func (o *FirmwareBaseImpact) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type FirmwareBaseImpactWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. The enum values provides the list of concrete types that can be instantiated from this abstract type. ClassId string `json:"ClassId"` diff --git a/model_firmware_bios_descriptor.go b/model_firmware_bios_descriptor.go index a06aba857f..918cbc972f 100644 --- a/model_firmware_bios_descriptor.go +++ b/model_firmware_bios_descriptor.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -83,6 +83,10 @@ func (o *FirmwareBiosDescriptor) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -92,11 +96,23 @@ func (o *FirmwareBiosDescriptor) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type FirmwareBiosDescriptorWithoutEmbeddedStruct struct { } diff --git a/model_firmware_bios_descriptor_list.go b/model_firmware_bios_descriptor_list.go index f6af583e88..707aa3146b 100644 --- a/model_firmware_bios_descriptor_list.go +++ b/model_firmware_bios_descriptor_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *FirmwareBiosDescriptorList) GetResultsOk() ([]FirmwareBiosDescriptor, b // HasResults returns a boolean if a field has been set. func (o *FirmwareBiosDescriptorList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *FirmwareBiosDescriptorList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *FirmwareBiosDescriptorList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type FirmwareBiosDescriptorListWithoutEmbeddedStruct struct { // The total number of 'firmware.BiosDescriptor' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_firmware_bios_descriptor_response.go b/model_firmware_bios_descriptor_response.go index acb271b1a9..c62e2dd5db 100644 --- a/model_firmware_bios_descriptor_response.go +++ b/model_firmware_bios_descriptor_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_firmware_board_controller_descriptor.go b/model_firmware_board_controller_descriptor.go index cab7911530..eaf1e29c25 100644 --- a/model_firmware_board_controller_descriptor.go +++ b/model_firmware_board_controller_descriptor.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -83,6 +83,10 @@ func (o *FirmwareBoardControllerDescriptor) UnmarshalJSON(data []byte) (err erro "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -92,11 +96,23 @@ func (o *FirmwareBoardControllerDescriptor) UnmarshalJSON(data []byte) (err erro } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type FirmwareBoardControllerDescriptorWithoutEmbeddedStruct struct { } diff --git a/model_firmware_board_controller_descriptor_list.go b/model_firmware_board_controller_descriptor_list.go index ac524252b1..72c09ae1c5 100644 --- a/model_firmware_board_controller_descriptor_list.go +++ b/model_firmware_board_controller_descriptor_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *FirmwareBoardControllerDescriptorList) GetResultsOk() ([]FirmwareBoardC // HasResults returns a boolean if a field has been set. func (o *FirmwareBoardControllerDescriptorList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *FirmwareBoardControllerDescriptorList) UnmarshalJSON(data []byte) (err "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *FirmwareBoardControllerDescriptorList) UnmarshalJSON(data []byte) (err } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type FirmwareBoardControllerDescriptorListWithoutEmbeddedStruct struct { // The total number of 'firmware.BoardControllerDescriptor' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_firmware_board_controller_descriptor_response.go b/model_firmware_board_controller_descriptor_response.go index 4e22edbd3f..ad2337aa76 100644 --- a/model_firmware_board_controller_descriptor_response.go +++ b/model_firmware_board_controller_descriptor_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_firmware_chassis_upgrade.go b/model_firmware_chassis_upgrade.go index f646d798b6..eecf8552a0 100644 --- a/model_firmware_chassis_upgrade.go +++ b/model_firmware_chassis_upgrade.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -87,6 +87,11 @@ func (o *FirmwareChassisUpgrade) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "firmware.ChassisUpgrade" of the ClassId field. +func (o *FirmwareChassisUpgrade) GetDefaultClassId() interface{} { + return "firmware.ChassisUpgrade" +} + // GetObjectType returns the ObjectType field value func (o *FirmwareChassisUpgrade) GetObjectType() string { if o == nil { @@ -111,6 +116,11 @@ func (o *FirmwareChassisUpgrade) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "firmware.ChassisUpgrade" of the ObjectType field. +func (o *FirmwareChassisUpgrade) GetDefaultObjectType() interface{} { + return "firmware.ChassisUpgrade" +} + // GetExcludeComponentList returns the ExcludeComponentList field value if set, zero value otherwise (both if not set or set to explicit null). func (o *FirmwareChassisUpgrade) GetExcludeComponentList() []string { if o == nil { @@ -132,7 +142,7 @@ func (o *FirmwareChassisUpgrade) GetExcludeComponentListOk() ([]string, bool) { // HasExcludeComponentList returns a boolean if a field has been set. func (o *FirmwareChassisUpgrade) HasExcludeComponentList() bool { - if o != nil && IsNil(o.ExcludeComponentList) { + if o != nil && !IsNil(o.ExcludeComponentList) { return true } @@ -248,7 +258,13 @@ func (o FirmwareChassisUpgrade) ToMap() (map[string]interface{}, error) { if errFirmwareUpgradeBase != nil { return map[string]interface{}{}, errFirmwareUpgradeBase } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.ExcludeComponentList != nil { toSerialize["ExcludeComponentList"] = o.ExcludeComponentList @@ -276,6 +292,13 @@ func (o *FirmwareChassisUpgrade) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -285,11 +308,23 @@ func (o *FirmwareChassisUpgrade) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type FirmwareChassisUpgradeWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_firmware_chassis_upgrade_impact.go b/model_firmware_chassis_upgrade_impact.go index 3ec2b107f6..afda724a4d 100644 --- a/model_firmware_chassis_upgrade_impact.go +++ b/model_firmware_chassis_upgrade_impact.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -91,6 +91,11 @@ func (o *FirmwareChassisUpgradeImpact) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "firmware.ChassisUpgradeImpact" of the ClassId field. +func (o *FirmwareChassisUpgradeImpact) GetDefaultClassId() interface{} { + return "firmware.ChassisUpgradeImpact" +} + // GetObjectType returns the ObjectType field value func (o *FirmwareChassisUpgradeImpact) GetObjectType() string { if o == nil { @@ -115,6 +120,11 @@ func (o *FirmwareChassisUpgradeImpact) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "firmware.ChassisUpgradeImpact" of the ObjectType field. +func (o *FirmwareChassisUpgradeImpact) GetDefaultObjectType() interface{} { + return "firmware.ChassisUpgradeImpact" +} + // GetImpactDetail returns the ImpactDetail field value if set, zero value otherwise (both if not set or set to explicit null). func (o *FirmwareChassisUpgradeImpact) GetImpactDetail() []FirmwareComponentImpact { if o == nil { @@ -136,7 +146,7 @@ func (o *FirmwareChassisUpgradeImpact) GetImpactDetailOk() ([]FirmwareComponentI // HasImpactDetail returns a boolean if a field has been set. func (o *FirmwareChassisUpgradeImpact) HasImpactDetail() bool { - if o != nil && IsNil(o.ImpactDetail) { + if o != nil && !IsNil(o.ImpactDetail) { return true } @@ -230,7 +240,13 @@ func (o FirmwareChassisUpgradeImpact) ToMap() (map[string]interface{}, error) { if errFirmwareBaseImpact != nil { return map[string]interface{}{}, errFirmwareBaseImpact } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.ImpactDetail != nil { toSerialize["ImpactDetail"] = o.ImpactDetail @@ -258,6 +274,13 @@ func (o *FirmwareChassisUpgradeImpact) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -267,11 +290,23 @@ func (o *FirmwareChassisUpgradeImpact) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type FirmwareChassisUpgradeImpactWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_firmware_chassis_upgrade_list.go b/model_firmware_chassis_upgrade_list.go index 14bb4d0f9c..8bd1edd3ab 100644 --- a/model_firmware_chassis_upgrade_list.go +++ b/model_firmware_chassis_upgrade_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *FirmwareChassisUpgradeList) GetResultsOk() ([]FirmwareChassisUpgrade, b // HasResults returns a boolean if a field has been set. func (o *FirmwareChassisUpgradeList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *FirmwareChassisUpgradeList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *FirmwareChassisUpgradeList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type FirmwareChassisUpgradeListWithoutEmbeddedStruct struct { // The total number of 'firmware.ChassisUpgrade' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_firmware_chassis_upgrade_response.go b/model_firmware_chassis_upgrade_response.go index ea867da177..3f373deec2 100644 --- a/model_firmware_chassis_upgrade_response.go +++ b/model_firmware_chassis_upgrade_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_firmware_cifs_server.go b/model_firmware_cifs_server.go index 6f5b83c5c5..8c42410a1d 100644 --- a/model_firmware_cifs_server.go +++ b/model_firmware_cifs_server.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -94,6 +94,11 @@ func (o *FirmwareCifsServer) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "firmware.CifsServer" of the ClassId field. +func (o *FirmwareCifsServer) GetDefaultClassId() interface{} { + return "firmware.CifsServer" +} + // GetObjectType returns the ObjectType field value func (o *FirmwareCifsServer) GetObjectType() string { if o == nil { @@ -118,6 +123,11 @@ func (o *FirmwareCifsServer) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "firmware.CifsServer" of the ObjectType field. +func (o *FirmwareCifsServer) GetDefaultObjectType() interface{} { + return "firmware.CifsServer" +} + // GetFileLocation returns the FileLocation field value if set, zero value otherwise. func (o *FirmwareCifsServer) GetFileLocation() string { if o == nil || IsNil(o.FileLocation) { @@ -296,7 +306,13 @@ func (o FirmwareCifsServer) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.FileLocation) { toSerialize["FileLocation"] = o.FileLocation @@ -330,6 +346,13 @@ func (o *FirmwareCifsServer) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -339,11 +362,23 @@ func (o *FirmwareCifsServer) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type FirmwareCifsServerWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_firmware_cimc_descriptor.go b/model_firmware_cimc_descriptor.go index dfebf0e6c6..497e61ae2d 100644 --- a/model_firmware_cimc_descriptor.go +++ b/model_firmware_cimc_descriptor.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -83,6 +83,10 @@ func (o *FirmwareCimcDescriptor) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -92,11 +96,23 @@ func (o *FirmwareCimcDescriptor) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type FirmwareCimcDescriptorWithoutEmbeddedStruct struct { } diff --git a/model_firmware_cimc_descriptor_list.go b/model_firmware_cimc_descriptor_list.go index c19629a9f1..6b82076abd 100644 --- a/model_firmware_cimc_descriptor_list.go +++ b/model_firmware_cimc_descriptor_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *FirmwareCimcDescriptorList) GetResultsOk() ([]FirmwareCimcDescriptor, b // HasResults returns a boolean if a field has been set. func (o *FirmwareCimcDescriptorList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *FirmwareCimcDescriptorList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *FirmwareCimcDescriptorList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type FirmwareCimcDescriptorListWithoutEmbeddedStruct struct { // The total number of 'firmware.CimcDescriptor' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_firmware_cimc_descriptor_response.go b/model_firmware_cimc_descriptor_response.go index 724fa011d8..c248b5c350 100644 --- a/model_firmware_cimc_descriptor_response.go +++ b/model_firmware_cimc_descriptor_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_firmware_component_descriptor.go b/model_firmware_component_descriptor.go index c8bf89eb38..2e8e50bac3 100644 --- a/model_firmware_component_descriptor.go +++ b/model_firmware_component_descriptor.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -248,6 +248,10 @@ func (o *FirmwareComponentDescriptor) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -257,11 +261,23 @@ func (o *FirmwareComponentDescriptor) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type FirmwareComponentDescriptorWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. The enum values provides the list of concrete types that can be instantiated from this abstract type. ClassId string `json:"ClassId"` diff --git a/model_firmware_component_impact.go b/model_firmware_component_impact.go index 0b3008902a..7a440a872d 100644 --- a/model_firmware_component_impact.go +++ b/model_firmware_component_impact.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -92,6 +92,11 @@ func (o *FirmwareComponentImpact) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "firmware.ComponentImpact" of the ClassId field. +func (o *FirmwareComponentImpact) GetDefaultClassId() interface{} { + return "firmware.ComponentImpact" +} + // GetObjectType returns the ObjectType field value func (o *FirmwareComponentImpact) GetObjectType() string { if o == nil { @@ -116,6 +121,11 @@ func (o *FirmwareComponentImpact) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "firmware.ComponentImpact" of the ObjectType field. +func (o *FirmwareComponentImpact) GetDefaultObjectType() interface{} { + return "firmware.ComponentImpact" +} + // GetComponent returns the Component field value if set, zero value otherwise. func (o *FirmwareComponentImpact) GetComponent() string { if o == nil || IsNil(o.Component) { @@ -166,7 +176,13 @@ func (o FirmwareComponentImpact) ToMap() (map[string]interface{}, error) { if errFirmwareBaseImpact != nil { return map[string]interface{}{}, errFirmwareBaseImpact } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Component) { toSerialize["Component"] = o.Component @@ -188,6 +204,13 @@ func (o *FirmwareComponentImpact) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -197,11 +220,23 @@ func (o *FirmwareComponentImpact) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type FirmwareComponentImpactWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_firmware_component_meta.go b/model_firmware_component_meta.go index 96017cc0c8..868aaad012 100644 --- a/model_firmware_component_meta.go +++ b/model_firmware_component_meta.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -109,6 +109,11 @@ func (o *FirmwareComponentMeta) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "firmware.ComponentMeta" of the ClassId field. +func (o *FirmwareComponentMeta) GetDefaultClassId() interface{} { + return "firmware.ComponentMeta" +} + // GetObjectType returns the ObjectType field value func (o *FirmwareComponentMeta) GetObjectType() string { if o == nil { @@ -133,6 +138,11 @@ func (o *FirmwareComponentMeta) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "firmware.ComponentMeta" of the ObjectType field. +func (o *FirmwareComponentMeta) GetDefaultObjectType() interface{} { + return "firmware.ComponentMeta" +} + // GetComponentLabel returns the ComponentLabel field value if set, zero value otherwise. func (o *FirmwareComponentMeta) GetComponentLabel() string { if o == nil || IsNil(o.ComponentLabel) { @@ -378,7 +388,7 @@ func (o *FirmwareComponentMeta) GetOobManageabilityOk() ([]string, bool) { // HasOobManageability returns a boolean if a field has been set. func (o *FirmwareComponentMeta) HasOobManageability() bool { - if o != nil && IsNil(o.OobManageability) { + if o != nil && !IsNil(o.OobManageability) { return true } @@ -504,7 +514,13 @@ func (o FirmwareComponentMeta) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.ComponentLabel) { toSerialize["ComponentLabel"] = o.ComponentLabel @@ -556,6 +572,13 @@ func (o *FirmwareComponentMeta) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -565,11 +588,23 @@ func (o *FirmwareComponentMeta) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type FirmwareComponentMetaWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_firmware_dimm_descriptor.go b/model_firmware_dimm_descriptor.go index 8f0fa9c65c..153cbc179d 100644 --- a/model_firmware_dimm_descriptor.go +++ b/model_firmware_dimm_descriptor.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -83,6 +83,10 @@ func (o *FirmwareDimmDescriptor) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -92,11 +96,23 @@ func (o *FirmwareDimmDescriptor) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type FirmwareDimmDescriptorWithoutEmbeddedStruct struct { } diff --git a/model_firmware_dimm_descriptor_list.go b/model_firmware_dimm_descriptor_list.go index ad870852c3..b0a3845cc6 100644 --- a/model_firmware_dimm_descriptor_list.go +++ b/model_firmware_dimm_descriptor_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *FirmwareDimmDescriptorList) GetResultsOk() ([]FirmwareDimmDescriptor, b // HasResults returns a boolean if a field has been set. func (o *FirmwareDimmDescriptorList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *FirmwareDimmDescriptorList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *FirmwareDimmDescriptorList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type FirmwareDimmDescriptorListWithoutEmbeddedStruct struct { // The total number of 'firmware.DimmDescriptor' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_firmware_dimm_descriptor_response.go b/model_firmware_dimm_descriptor_response.go index 9721d27226..6eac076586 100644 --- a/model_firmware_dimm_descriptor_response.go +++ b/model_firmware_dimm_descriptor_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_firmware_direct_download.go b/model_firmware_direct_download.go index ab7dd393df..6d28cfc724 100644 --- a/model_firmware_direct_download.go +++ b/model_firmware_direct_download.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -99,6 +99,11 @@ func (o *FirmwareDirectDownload) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "firmware.DirectDownload" of the ClassId field. +func (o *FirmwareDirectDownload) GetDefaultClassId() interface{} { + return "firmware.DirectDownload" +} + // GetObjectType returns the ObjectType field value func (o *FirmwareDirectDownload) GetObjectType() string { if o == nil { @@ -123,6 +128,11 @@ func (o *FirmwareDirectDownload) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "firmware.DirectDownload" of the ObjectType field. +func (o *FirmwareDirectDownload) GetDefaultObjectType() interface{} { + return "firmware.DirectDownload" +} + // GetHttpServer returns the HttpServer field value if set, zero value otherwise (both if not set or set to explicit null). func (o *FirmwareDirectDownload) GetHttpServer() FirmwareHttpServer { if o == nil || IsNil(o.HttpServer.Get()) { @@ -344,7 +354,13 @@ func (o FirmwareDirectDownload) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.HttpServer.IsSet() { toSerialize["HttpServer"] = o.HttpServer.Get() @@ -381,6 +397,13 @@ func (o *FirmwareDirectDownload) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -390,11 +413,23 @@ func (o *FirmwareDirectDownload) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type FirmwareDirectDownloadWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_firmware_distributable.go b/model_firmware_distributable.go index 5f0b23dbc3..f5a2758e97 100644 --- a/model_firmware_distributable.go +++ b/model_firmware_distributable.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -97,6 +97,11 @@ func (o *FirmwareDistributable) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "firmware.Distributable" of the ClassId field. +func (o *FirmwareDistributable) GetDefaultClassId() interface{} { + return "firmware.Distributable" +} + // GetObjectType returns the ObjectType field value func (o *FirmwareDistributable) GetObjectType() string { if o == nil { @@ -121,6 +126,11 @@ func (o *FirmwareDistributable) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "firmware.Distributable" of the ObjectType field. +func (o *FirmwareDistributable) GetDefaultObjectType() interface{} { + return "firmware.Distributable" +} + // GetFileLocation returns the FileLocation field value if set, zero value otherwise. func (o *FirmwareDistributable) GetFileLocation() string { if o == nil || IsNil(o.FileLocation) { @@ -278,7 +288,13 @@ func (o FirmwareDistributable) ToMap() (map[string]interface{}, error) { if errFirmwareBaseDistributable != nil { return map[string]interface{}{}, errFirmwareBaseDistributable } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.FileLocation) { toSerialize["FileLocation"] = o.FileLocation @@ -309,6 +325,13 @@ func (o *FirmwareDistributable) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -318,11 +341,23 @@ func (o *FirmwareDistributable) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type FirmwareDistributableWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_firmware_distributable_list.go b/model_firmware_distributable_list.go index 9fce984aec..fc250f50df 100644 --- a/model_firmware_distributable_list.go +++ b/model_firmware_distributable_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *FirmwareDistributableList) GetResultsOk() ([]FirmwareDistributable, boo // HasResults returns a boolean if a field has been set. func (o *FirmwareDistributableList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *FirmwareDistributableList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *FirmwareDistributableList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type FirmwareDistributableListWithoutEmbeddedStruct struct { // The total number of 'firmware.Distributable' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_firmware_distributable_meta.go b/model_firmware_distributable_meta.go index 0e0a13c5bd..594f24b2c0 100644 --- a/model_firmware_distributable_meta.go +++ b/model_firmware_distributable_meta.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -103,6 +103,11 @@ func (o *FirmwareDistributableMeta) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "firmware.DistributableMeta" of the ClassId field. +func (o *FirmwareDistributableMeta) GetDefaultClassId() interface{} { + return "firmware.DistributableMeta" +} + // GetObjectType returns the ObjectType field value func (o *FirmwareDistributableMeta) GetObjectType() string { if o == nil { @@ -127,6 +132,11 @@ func (o *FirmwareDistributableMeta) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "firmware.DistributableMeta" of the ObjectType field. +func (o *FirmwareDistributableMeta) GetDefaultObjectType() interface{} { + return "firmware.DistributableMeta" +} + // GetBucketName returns the BucketName field value if set, zero value otherwise. func (o *FirmwareDistributableMeta) GetBucketName() string { if o == nil || IsNil(o.BucketName) { @@ -340,7 +350,7 @@ func (o *FirmwareDistributableMeta) GetSupportedModelsOk() ([]string, bool) { // HasSupportedModels returns a boolean if a field has been set. func (o *FirmwareDistributableMeta) HasSupportedModels() bool { - if o != nil && IsNil(o.SupportedModels) { + if o != nil && !IsNil(o.SupportedModels) { return true } @@ -402,7 +412,13 @@ func (o FirmwareDistributableMeta) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.BucketName) { toSerialize["BucketName"] = o.BucketName @@ -445,6 +461,13 @@ func (o *FirmwareDistributableMeta) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -454,11 +477,23 @@ func (o *FirmwareDistributableMeta) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type FirmwareDistributableMetaWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_firmware_distributable_meta_list.go b/model_firmware_distributable_meta_list.go index 5ec92ac36d..0e3c25aece 100644 --- a/model_firmware_distributable_meta_list.go +++ b/model_firmware_distributable_meta_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *FirmwareDistributableMetaList) GetResultsOk() ([]FirmwareDistributableM // HasResults returns a boolean if a field has been set. func (o *FirmwareDistributableMetaList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *FirmwareDistributableMetaList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *FirmwareDistributableMetaList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type FirmwareDistributableMetaListWithoutEmbeddedStruct struct { // The total number of 'firmware.DistributableMeta' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_firmware_distributable_meta_relationship.go b/model_firmware_distributable_meta_relationship.go index d4c276ea61..151539ece6 100644 --- a/model_firmware_distributable_meta_relationship.go +++ b/model_firmware_distributable_meta_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_firmware_distributable_meta_response.go b/model_firmware_distributable_meta_response.go index d8ff74e257..f6febc3708 100644 --- a/model_firmware_distributable_meta_response.go +++ b/model_firmware_distributable_meta_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_firmware_distributable_relationship.go b/model_firmware_distributable_relationship.go index 62e5d9072e..17803da340 100644 --- a/model_firmware_distributable_relationship.go +++ b/model_firmware_distributable_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_firmware_distributable_response.go b/model_firmware_distributable_response.go index 0f9539d685..a5e154b3d3 100644 --- a/model_firmware_distributable_response.go +++ b/model_firmware_distributable_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_firmware_drive_descriptor.go b/model_firmware_drive_descriptor.go index 19ebe72072..57e92bcae0 100644 --- a/model_firmware_drive_descriptor.go +++ b/model_firmware_drive_descriptor.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -83,6 +83,10 @@ func (o *FirmwareDriveDescriptor) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -92,11 +96,23 @@ func (o *FirmwareDriveDescriptor) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type FirmwareDriveDescriptorWithoutEmbeddedStruct struct { } diff --git a/model_firmware_drive_descriptor_list.go b/model_firmware_drive_descriptor_list.go index 69da2592af..1e36b94191 100644 --- a/model_firmware_drive_descriptor_list.go +++ b/model_firmware_drive_descriptor_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *FirmwareDriveDescriptorList) GetResultsOk() ([]FirmwareDriveDescriptor, // HasResults returns a boolean if a field has been set. func (o *FirmwareDriveDescriptorList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *FirmwareDriveDescriptorList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *FirmwareDriveDescriptorList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type FirmwareDriveDescriptorListWithoutEmbeddedStruct struct { // The total number of 'firmware.DriveDescriptor' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_firmware_drive_descriptor_response.go b/model_firmware_drive_descriptor_response.go index 1b7ae8ead6..7b054c5c7f 100644 --- a/model_firmware_drive_descriptor_response.go +++ b/model_firmware_drive_descriptor_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_firmware_driver_distributable.go b/model_firmware_driver_distributable.go index a8d7489816..e5d62346f4 100644 --- a/model_firmware_driver_distributable.go +++ b/model_firmware_driver_distributable.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -95,6 +95,11 @@ func (o *FirmwareDriverDistributable) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "firmware.DriverDistributable" of the ClassId field. +func (o *FirmwareDriverDistributable) GetDefaultClassId() interface{} { + return "firmware.DriverDistributable" +} + // GetObjectType returns the ObjectType field value func (o *FirmwareDriverDistributable) GetObjectType() string { if o == nil { @@ -119,6 +124,11 @@ func (o *FirmwareDriverDistributable) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "firmware.DriverDistributable" of the ObjectType field. +func (o *FirmwareDriverDistributable) GetDefaultObjectType() interface{} { + return "firmware.DriverDistributable" +} + // GetCategory returns the Category field value if set, zero value otherwise. func (o *FirmwareDriverDistributable) GetCategory() string { if o == nil || IsNil(o.Category) { @@ -308,7 +318,13 @@ func (o FirmwareDriverDistributable) ToMap() (map[string]interface{}, error) { if errFirmwareBaseDistributable != nil { return map[string]interface{}{}, errFirmwareBaseDistributable } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Category) { toSerialize["Category"] = o.Category @@ -342,6 +358,13 @@ func (o *FirmwareDriverDistributable) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -351,11 +374,23 @@ func (o *FirmwareDriverDistributable) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type FirmwareDriverDistributableWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_firmware_driver_distributable_list.go b/model_firmware_driver_distributable_list.go index 1d828ee701..f3b2e839b8 100644 --- a/model_firmware_driver_distributable_list.go +++ b/model_firmware_driver_distributable_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *FirmwareDriverDistributableList) GetResultsOk() ([]FirmwareDriverDistri // HasResults returns a boolean if a field has been set. func (o *FirmwareDriverDistributableList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *FirmwareDriverDistributableList) UnmarshalJSON(data []byte) (err error) "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *FirmwareDriverDistributableList) UnmarshalJSON(data []byte) (err error) } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type FirmwareDriverDistributableListWithoutEmbeddedStruct struct { // The total number of 'firmware.DriverDistributable' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_firmware_driver_distributable_response.go b/model_firmware_driver_distributable_response.go index fd82cee746..3ab3348e4c 100644 --- a/model_firmware_driver_distributable_response.go +++ b/model_firmware_driver_distributable_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_firmware_eula.go b/model_firmware_eula.go index bf6cb758ca..5fdb9c658c 100644 --- a/model_firmware_eula.go +++ b/model_firmware_eula.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -93,6 +93,11 @@ func (o *FirmwareEula) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "firmware.Eula" of the ClassId field. +func (o *FirmwareEula) GetDefaultClassId() interface{} { + return "firmware.Eula" +} + // GetObjectType returns the ObjectType field value func (o *FirmwareEula) GetObjectType() string { if o == nil { @@ -117,6 +122,11 @@ func (o *FirmwareEula) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "firmware.Eula" of the ObjectType field. +func (o *FirmwareEula) GetDefaultObjectType() interface{} { + return "firmware.Eula" +} + // GetAccepted returns the Accepted field value if set, zero value otherwise. func (o *FirmwareEula) GetAccepted() bool { if o == nil || IsNil(o.Accepted) { @@ -370,7 +380,13 @@ func (o FirmwareEula) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Accepted) { toSerialize["Accepted"] = o.Accepted @@ -410,6 +426,13 @@ func (o *FirmwareEula) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -419,11 +442,23 @@ func (o *FirmwareEula) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type FirmwareEulaWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_firmware_eula_list.go b/model_firmware_eula_list.go index 32b6c7342e..5642f87e57 100644 --- a/model_firmware_eula_list.go +++ b/model_firmware_eula_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *FirmwareEulaList) GetResultsOk() ([]FirmwareEula, bool) { // HasResults returns a boolean if a field has been set. func (o *FirmwareEulaList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *FirmwareEulaList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *FirmwareEulaList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type FirmwareEulaListWithoutEmbeddedStruct struct { // The total number of 'firmware.Eula' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_firmware_eula_response.go b/model_firmware_eula_response.go index ab58458380..e961372241 100644 --- a/model_firmware_eula_response.go +++ b/model_firmware_eula_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_firmware_exclude_component_pid_list_type.go b/model_firmware_exclude_component_pid_list_type.go index 0f1db19f06..d1d08a8a2d 100644 --- a/model_firmware_exclude_component_pid_list_type.go +++ b/model_firmware_exclude_component_pid_list_type.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -82,6 +82,11 @@ func (o *FirmwareExcludeComponentPidListType) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "firmware.ExcludeComponentPidListType" of the ClassId field. +func (o *FirmwareExcludeComponentPidListType) GetDefaultClassId() interface{} { + return "firmware.ExcludeComponentPidListType" +} + // GetObjectType returns the ObjectType field value func (o *FirmwareExcludeComponentPidListType) GetObjectType() string { if o == nil { @@ -106,6 +111,11 @@ func (o *FirmwareExcludeComponentPidListType) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "firmware.ExcludeComponentPidListType" of the ObjectType field. +func (o *FirmwareExcludeComponentPidListType) GetDefaultObjectType() interface{} { + return "firmware.ExcludeComponentPidListType" +} + // GetExcludeLocalDiskList returns the ExcludeLocalDiskList field value if set, zero value otherwise (both if not set or set to explicit null). func (o *FirmwareExcludeComponentPidListType) GetExcludeLocalDiskList() []string { if o == nil { @@ -127,7 +137,7 @@ func (o *FirmwareExcludeComponentPidListType) GetExcludeLocalDiskListOk() ([]str // HasExcludeLocalDiskList returns a boolean if a field has been set. func (o *FirmwareExcludeComponentPidListType) HasExcludeLocalDiskList() bool { - if o != nil && IsNil(o.ExcludeLocalDiskList) { + if o != nil && !IsNil(o.ExcludeLocalDiskList) { return true } @@ -160,7 +170,7 @@ func (o *FirmwareExcludeComponentPidListType) GetExcludeStorageControllerListOk( // HasExcludeStorageControllerList returns a boolean if a field has been set. func (o *FirmwareExcludeComponentPidListType) HasExcludeStorageControllerList() bool { - if o != nil && IsNil(o.ExcludeStorageControllerList) { + if o != nil && !IsNil(o.ExcludeStorageControllerList) { return true } @@ -190,7 +200,13 @@ func (o FirmwareExcludeComponentPidListType) ToMap() (map[string]interface{}, er if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.ExcludeLocalDiskList != nil { toSerialize["ExcludeLocalDiskList"] = o.ExcludeLocalDiskList @@ -215,6 +231,13 @@ func (o *FirmwareExcludeComponentPidListType) UnmarshalJSON(data []byte) (err er "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -224,11 +247,23 @@ func (o *FirmwareExcludeComponentPidListType) UnmarshalJSON(data []byte) (err er } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type FirmwareExcludeComponentPidListTypeWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_firmware_fabric_upgrade_impact.go b/model_firmware_fabric_upgrade_impact.go index e691cec041..6aea6180f7 100644 --- a/model_firmware_fabric_upgrade_impact.go +++ b/model_firmware_fabric_upgrade_impact.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -89,6 +89,11 @@ func (o *FirmwareFabricUpgradeImpact) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "firmware.FabricUpgradeImpact" of the ClassId field. +func (o *FirmwareFabricUpgradeImpact) GetDefaultClassId() interface{} { + return "firmware.FabricUpgradeImpact" +} + // GetObjectType returns the ObjectType field value func (o *FirmwareFabricUpgradeImpact) GetObjectType() string { if o == nil { @@ -113,6 +118,11 @@ func (o *FirmwareFabricUpgradeImpact) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "firmware.FabricUpgradeImpact" of the ObjectType field. +func (o *FirmwareFabricUpgradeImpact) GetDefaultObjectType() interface{} { + return "firmware.FabricUpgradeImpact" +} + // GetImpactDetail returns the ImpactDetail field value if set, zero value otherwise (both if not set or set to explicit null). func (o *FirmwareFabricUpgradeImpact) GetImpactDetail() []FirmwareComponentImpact { if o == nil { @@ -134,7 +144,7 @@ func (o *FirmwareFabricUpgradeImpact) GetImpactDetailOk() ([]FirmwareComponentIm // HasImpactDetail returns a boolean if a field has been set. func (o *FirmwareFabricUpgradeImpact) HasImpactDetail() bool { - if o != nil && IsNil(o.ImpactDetail) { + if o != nil && !IsNil(o.ImpactDetail) { return true } @@ -196,7 +206,13 @@ func (o FirmwareFabricUpgradeImpact) ToMap() (map[string]interface{}, error) { if errFirmwareBaseImpact != nil { return map[string]interface{}{}, errFirmwareBaseImpact } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.ImpactDetail != nil { toSerialize["ImpactDetail"] = o.ImpactDetail @@ -221,6 +237,13 @@ func (o *FirmwareFabricUpgradeImpact) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -230,11 +253,23 @@ func (o *FirmwareFabricUpgradeImpact) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type FirmwareFabricUpgradeImpactWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_firmware_firmware_inventory.go b/model_firmware_firmware_inventory.go index 80182d3911..175feae5b2 100644 --- a/model_firmware_firmware_inventory.go +++ b/model_firmware_firmware_inventory.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -92,6 +92,11 @@ func (o *FirmwareFirmwareInventory) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "firmware.FirmwareInventory" of the ClassId field. +func (o *FirmwareFirmwareInventory) GetDefaultClassId() interface{} { + return "firmware.FirmwareInventory" +} + // GetObjectType returns the ObjectType field value func (o *FirmwareFirmwareInventory) GetObjectType() string { if o == nil { @@ -116,6 +121,11 @@ func (o *FirmwareFirmwareInventory) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "firmware.FirmwareInventory" of the ObjectType field. +func (o *FirmwareFirmwareInventory) GetDefaultObjectType() interface{} { + return "firmware.FirmwareInventory" +} + // GetCategory returns the Category field value if set, zero value otherwise. func (o *FirmwareFirmwareInventory) GetCategory() string { if o == nil || IsNil(o.Category) { @@ -326,7 +336,13 @@ func (o FirmwareFirmwareInventory) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Category) { toSerialize["Category"] = o.Category @@ -363,6 +379,13 @@ func (o *FirmwareFirmwareInventory) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -372,11 +395,23 @@ func (o *FirmwareFirmwareInventory) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type FirmwareFirmwareInventoryWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_firmware_firmware_summary.go b/model_firmware_firmware_summary.go index 8f40036dd6..cce06a0ade 100644 --- a/model_firmware_firmware_summary.go +++ b/model_firmware_firmware_summary.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -85,6 +85,11 @@ func (o *FirmwareFirmwareSummary) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "firmware.FirmwareSummary" of the ClassId field. +func (o *FirmwareFirmwareSummary) GetDefaultClassId() interface{} { + return "firmware.FirmwareSummary" +} + // GetObjectType returns the ObjectType field value func (o *FirmwareFirmwareSummary) GetObjectType() string { if o == nil { @@ -109,6 +114,11 @@ func (o *FirmwareFirmwareSummary) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "firmware.FirmwareSummary" of the ObjectType field. +func (o *FirmwareFirmwareSummary) GetDefaultObjectType() interface{} { + return "firmware.FirmwareSummary" +} + // GetBundleVersion returns the BundleVersion field value if set, zero value otherwise. func (o *FirmwareFirmwareSummary) GetBundleVersion() string { if o == nil || IsNil(o.BundleVersion) { @@ -162,7 +172,7 @@ func (o *FirmwareFirmwareSummary) GetComponentsFwInventoryOk() ([]FirmwareFirmwa // HasComponentsFwInventory returns a boolean if a field has been set. func (o *FirmwareFirmwareSummary) HasComponentsFwInventory() bool { - if o != nil && IsNil(o.ComponentsFwInventory) { + if o != nil && !IsNil(o.ComponentsFwInventory) { return true } @@ -278,7 +288,13 @@ func (o FirmwareFirmwareSummary) ToMap() (map[string]interface{}, error) { if errPolicyAbstractPolicyInventory != nil { return map[string]interface{}{}, errPolicyAbstractPolicyInventory } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.BundleVersion) { toSerialize["BundleVersion"] = o.BundleVersion @@ -309,6 +325,13 @@ func (o *FirmwareFirmwareSummary) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -318,11 +341,23 @@ func (o *FirmwareFirmwareSummary) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type FirmwareFirmwareSummaryWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_firmware_firmware_summary_list.go b/model_firmware_firmware_summary_list.go index 52c973e840..69a380c10e 100644 --- a/model_firmware_firmware_summary_list.go +++ b/model_firmware_firmware_summary_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *FirmwareFirmwareSummaryList) GetResultsOk() ([]FirmwareFirmwareSummary, // HasResults returns a boolean if a field has been set. func (o *FirmwareFirmwareSummaryList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *FirmwareFirmwareSummaryList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *FirmwareFirmwareSummaryList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type FirmwareFirmwareSummaryListWithoutEmbeddedStruct struct { // The total number of 'firmware.FirmwareSummary' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_firmware_firmware_summary_response.go b/model_firmware_firmware_summary_response.go index 6f4104c7fe..85e0bb8dd4 100644 --- a/model_firmware_firmware_summary_response.go +++ b/model_firmware_firmware_summary_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_firmware_gpu_descriptor.go b/model_firmware_gpu_descriptor.go index d75601b759..34a131154b 100644 --- a/model_firmware_gpu_descriptor.go +++ b/model_firmware_gpu_descriptor.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -83,6 +83,10 @@ func (o *FirmwareGpuDescriptor) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -92,11 +96,23 @@ func (o *FirmwareGpuDescriptor) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type FirmwareGpuDescriptorWithoutEmbeddedStruct struct { } diff --git a/model_firmware_gpu_descriptor_list.go b/model_firmware_gpu_descriptor_list.go index 4fe7949f40..478c6011c2 100644 --- a/model_firmware_gpu_descriptor_list.go +++ b/model_firmware_gpu_descriptor_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *FirmwareGpuDescriptorList) GetResultsOk() ([]FirmwareGpuDescriptor, boo // HasResults returns a boolean if a field has been set. func (o *FirmwareGpuDescriptorList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *FirmwareGpuDescriptorList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *FirmwareGpuDescriptorList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type FirmwareGpuDescriptorListWithoutEmbeddedStruct struct { // The total number of 'firmware.GpuDescriptor' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_firmware_gpu_descriptor_response.go b/model_firmware_gpu_descriptor_response.go index 2341df7917..78281e589b 100644 --- a/model_firmware_gpu_descriptor_response.go +++ b/model_firmware_gpu_descriptor_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_firmware_hba_descriptor.go b/model_firmware_hba_descriptor.go index 5012fa2c92..ab69fb1201 100644 --- a/model_firmware_hba_descriptor.go +++ b/model_firmware_hba_descriptor.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -83,6 +83,10 @@ func (o *FirmwareHbaDescriptor) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -92,11 +96,23 @@ func (o *FirmwareHbaDescriptor) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type FirmwareHbaDescriptorWithoutEmbeddedStruct struct { } diff --git a/model_firmware_hba_descriptor_list.go b/model_firmware_hba_descriptor_list.go index 9b5223c8d0..debae7b72c 100644 --- a/model_firmware_hba_descriptor_list.go +++ b/model_firmware_hba_descriptor_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *FirmwareHbaDescriptorList) GetResultsOk() ([]FirmwareHbaDescriptor, boo // HasResults returns a boolean if a field has been set. func (o *FirmwareHbaDescriptorList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *FirmwareHbaDescriptorList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *FirmwareHbaDescriptorList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type FirmwareHbaDescriptorListWithoutEmbeddedStruct struct { // The total number of 'firmware.HbaDescriptor' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_firmware_hba_descriptor_response.go b/model_firmware_hba_descriptor_response.go index ea1435c192..bd69def3ba 100644 --- a/model_firmware_hba_descriptor_response.go +++ b/model_firmware_hba_descriptor_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_firmware_http_server.go b/model_firmware_http_server.go index ad9191e184..c31bd38b92 100644 --- a/model_firmware_http_server.go +++ b/model_firmware_http_server.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -84,6 +84,11 @@ func (o *FirmwareHttpServer) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "firmware.HttpServer" of the ClassId field. +func (o *FirmwareHttpServer) GetDefaultClassId() interface{} { + return "firmware.HttpServer" +} + // GetObjectType returns the ObjectType field value func (o *FirmwareHttpServer) GetObjectType() string { if o == nil { @@ -108,6 +113,11 @@ func (o *FirmwareHttpServer) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "firmware.HttpServer" of the ObjectType field. +func (o *FirmwareHttpServer) GetDefaultObjectType() interface{} { + return "firmware.HttpServer" +} + // GetLocationLink returns the LocationLink field value if set, zero value otherwise. func (o *FirmwareHttpServer) GetLocationLink() string { if o == nil || IsNil(o.LocationLink) { @@ -190,7 +200,13 @@ func (o FirmwareHttpServer) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.LocationLink) { toSerialize["LocationLink"] = o.LocationLink @@ -215,6 +231,13 @@ func (o *FirmwareHttpServer) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -224,11 +247,23 @@ func (o *FirmwareHttpServer) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type FirmwareHttpServerWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_firmware_iom_descriptor.go b/model_firmware_iom_descriptor.go index af242afb12..080ddd23bd 100644 --- a/model_firmware_iom_descriptor.go +++ b/model_firmware_iom_descriptor.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -83,6 +83,10 @@ func (o *FirmwareIomDescriptor) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -92,11 +96,23 @@ func (o *FirmwareIomDescriptor) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type FirmwareIomDescriptorWithoutEmbeddedStruct struct { } diff --git a/model_firmware_iom_descriptor_list.go b/model_firmware_iom_descriptor_list.go index 4a5e551587..4806e8cd1e 100644 --- a/model_firmware_iom_descriptor_list.go +++ b/model_firmware_iom_descriptor_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *FirmwareIomDescriptorList) GetResultsOk() ([]FirmwareIomDescriptor, boo // HasResults returns a boolean if a field has been set. func (o *FirmwareIomDescriptorList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *FirmwareIomDescriptorList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *FirmwareIomDescriptorList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type FirmwareIomDescriptorListWithoutEmbeddedStruct struct { // The total number of 'firmware.IomDescriptor' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_firmware_iom_descriptor_response.go b/model_firmware_iom_descriptor_response.go index f45f76b990..dbab74f6c9 100644 --- a/model_firmware_iom_descriptor_response.go +++ b/model_firmware_iom_descriptor_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_firmware_model_bundle_version.go b/model_firmware_model_bundle_version.go index 5dc644e7b5..b46a5c1d04 100644 --- a/model_firmware_model_bundle_version.go +++ b/model_firmware_model_bundle_version.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -88,6 +88,11 @@ func (o *FirmwareModelBundleVersion) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "firmware.ModelBundleVersion" of the ClassId field. +func (o *FirmwareModelBundleVersion) GetDefaultClassId() interface{} { + return "firmware.ModelBundleVersion" +} + // GetObjectType returns the ObjectType field value func (o *FirmwareModelBundleVersion) GetObjectType() string { if o == nil { @@ -112,6 +117,11 @@ func (o *FirmwareModelBundleVersion) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "firmware.ModelBundleVersion" of the ObjectType field. +func (o *FirmwareModelBundleVersion) GetDefaultObjectType() interface{} { + return "firmware.ModelBundleVersion" +} + // GetBundleVersion returns the BundleVersion field value if set, zero value otherwise. func (o *FirmwareModelBundleVersion) GetBundleVersion() string { if o == nil || IsNil(o.BundleVersion) { @@ -194,7 +204,13 @@ func (o FirmwareModelBundleVersion) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.BundleVersion) { toSerialize["BundleVersion"] = o.BundleVersion @@ -219,6 +235,13 @@ func (o *FirmwareModelBundleVersion) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -228,11 +251,23 @@ func (o *FirmwareModelBundleVersion) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type FirmwareModelBundleVersionWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_firmware_mswitch_descriptor.go b/model_firmware_mswitch_descriptor.go index b12d4b8152..aaf450e06c 100644 --- a/model_firmware_mswitch_descriptor.go +++ b/model_firmware_mswitch_descriptor.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -83,6 +83,10 @@ func (o *FirmwareMswitchDescriptor) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -92,11 +96,23 @@ func (o *FirmwareMswitchDescriptor) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type FirmwareMswitchDescriptorWithoutEmbeddedStruct struct { } diff --git a/model_firmware_mswitch_descriptor_list.go b/model_firmware_mswitch_descriptor_list.go index d7a313ab9f..c459df507b 100644 --- a/model_firmware_mswitch_descriptor_list.go +++ b/model_firmware_mswitch_descriptor_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *FirmwareMswitchDescriptorList) GetResultsOk() ([]FirmwareMswitchDescrip // HasResults returns a boolean if a field has been set. func (o *FirmwareMswitchDescriptorList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *FirmwareMswitchDescriptorList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *FirmwareMswitchDescriptorList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type FirmwareMswitchDescriptorListWithoutEmbeddedStruct struct { // The total number of 'firmware.MswitchDescriptor' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_firmware_mswitch_descriptor_response.go b/model_firmware_mswitch_descriptor_response.go index 734a268c97..f30e464d82 100644 --- a/model_firmware_mswitch_descriptor_response.go +++ b/model_firmware_mswitch_descriptor_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_firmware_network_share.go b/model_firmware_network_share.go index 8015bed71d..2778ec3a03 100644 --- a/model_firmware_network_share.go +++ b/model_firmware_network_share.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -101,6 +101,11 @@ func (o *FirmwareNetworkShare) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "firmware.NetworkShare" of the ClassId field. +func (o *FirmwareNetworkShare) GetDefaultClassId() interface{} { + return "firmware.NetworkShare" +} + // GetObjectType returns the ObjectType field value func (o *FirmwareNetworkShare) GetObjectType() string { if o == nil { @@ -125,6 +130,11 @@ func (o *FirmwareNetworkShare) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "firmware.NetworkShare" of the ObjectType field. +func (o *FirmwareNetworkShare) GetDefaultObjectType() interface{} { + return "firmware.NetworkShare" +} + // GetCifsServer returns the CifsServer field value if set, zero value otherwise (both if not set or set to explicit null). func (o *FirmwareNetworkShare) GetCifsServer() FirmwareCifsServer { if o == nil || IsNil(o.CifsServer.Get()) { @@ -432,7 +442,13 @@ func (o FirmwareNetworkShare) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.CifsServer.IsSet() { toSerialize["CifsServer"] = o.CifsServer.Get() @@ -475,6 +491,13 @@ func (o *FirmwareNetworkShare) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -484,11 +507,23 @@ func (o *FirmwareNetworkShare) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type FirmwareNetworkShareWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_firmware_nfs_server.go b/model_firmware_nfs_server.go index 1aa25972aa..f22102dc47 100644 --- a/model_firmware_nfs_server.go +++ b/model_firmware_nfs_server.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -90,6 +90,11 @@ func (o *FirmwareNfsServer) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "firmware.NfsServer" of the ClassId field. +func (o *FirmwareNfsServer) GetDefaultClassId() interface{} { + return "firmware.NfsServer" +} + // GetObjectType returns the ObjectType field value func (o *FirmwareNfsServer) GetObjectType() string { if o == nil { @@ -114,6 +119,11 @@ func (o *FirmwareNfsServer) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "firmware.NfsServer" of the ObjectType field. +func (o *FirmwareNfsServer) GetDefaultObjectType() interface{} { + return "firmware.NfsServer" +} + // GetFileLocation returns the FileLocation field value if set, zero value otherwise. func (o *FirmwareNfsServer) GetFileLocation() string { if o == nil || IsNil(o.FileLocation) { @@ -292,7 +302,13 @@ func (o FirmwareNfsServer) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.FileLocation) { toSerialize["FileLocation"] = o.FileLocation @@ -326,6 +342,13 @@ func (o *FirmwareNfsServer) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -335,11 +358,23 @@ func (o *FirmwareNfsServer) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type FirmwareNfsServerWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_firmware_nxos_descriptor.go b/model_firmware_nxos_descriptor.go index 7f7d796381..36956ae1e5 100644 --- a/model_firmware_nxos_descriptor.go +++ b/model_firmware_nxos_descriptor.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -83,6 +83,10 @@ func (o *FirmwareNxosDescriptor) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -92,11 +96,23 @@ func (o *FirmwareNxosDescriptor) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type FirmwareNxosDescriptorWithoutEmbeddedStruct struct { } diff --git a/model_firmware_nxos_descriptor_list.go b/model_firmware_nxos_descriptor_list.go index 35bb94ca13..fcec5a8175 100644 --- a/model_firmware_nxos_descriptor_list.go +++ b/model_firmware_nxos_descriptor_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *FirmwareNxosDescriptorList) GetResultsOk() ([]FirmwareNxosDescriptor, b // HasResults returns a boolean if a field has been set. func (o *FirmwareNxosDescriptorList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *FirmwareNxosDescriptorList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *FirmwareNxosDescriptorList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type FirmwareNxosDescriptorListWithoutEmbeddedStruct struct { // The total number of 'firmware.NxosDescriptor' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_firmware_nxos_descriptor_response.go b/model_firmware_nxos_descriptor_response.go index 653c696314..18476363e5 100644 --- a/model_firmware_nxos_descriptor_response.go +++ b/model_firmware_nxos_descriptor_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_firmware_pcie_descriptor.go b/model_firmware_pcie_descriptor.go index c0cd33b60a..0004854527 100644 --- a/model_firmware_pcie_descriptor.go +++ b/model_firmware_pcie_descriptor.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -83,6 +83,10 @@ func (o *FirmwarePcieDescriptor) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -92,11 +96,23 @@ func (o *FirmwarePcieDescriptor) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type FirmwarePcieDescriptorWithoutEmbeddedStruct struct { } diff --git a/model_firmware_pcie_descriptor_list.go b/model_firmware_pcie_descriptor_list.go index 67fab2e942..ce5c0385bc 100644 --- a/model_firmware_pcie_descriptor_list.go +++ b/model_firmware_pcie_descriptor_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *FirmwarePcieDescriptorList) GetResultsOk() ([]FirmwarePcieDescriptor, b // HasResults returns a boolean if a field has been set. func (o *FirmwarePcieDescriptorList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *FirmwarePcieDescriptorList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *FirmwarePcieDescriptorList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type FirmwarePcieDescriptorListWithoutEmbeddedStruct struct { // The total number of 'firmware.PcieDescriptor' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_firmware_pcie_descriptor_response.go b/model_firmware_pcie_descriptor_response.go index f8ee7fa3a6..68495f82e5 100644 --- a/model_firmware_pcie_descriptor_response.go +++ b/model_firmware_pcie_descriptor_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_firmware_policy.go b/model_firmware_policy.go index c6d75269bc..3f68814c01 100644 --- a/model_firmware_policy.go +++ b/model_firmware_policy.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -91,6 +91,11 @@ func (o *FirmwarePolicy) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "firmware.Policy" of the ClassId field. +func (o *FirmwarePolicy) GetDefaultClassId() interface{} { + return "firmware.Policy" +} + // GetObjectType returns the ObjectType field value func (o *FirmwarePolicy) GetObjectType() string { if o == nil { @@ -115,6 +120,11 @@ func (o *FirmwarePolicy) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "firmware.Policy" of the ObjectType field. +func (o *FirmwarePolicy) GetDefaultObjectType() interface{} { + return "firmware.Policy" +} + // GetExcludeComponentList returns the ExcludeComponentList field value if set, zero value otherwise (both if not set or set to explicit null). func (o *FirmwarePolicy) GetExcludeComponentList() []string { if o == nil { @@ -136,7 +146,7 @@ func (o *FirmwarePolicy) GetExcludeComponentListOk() ([]string, bool) { // HasExcludeComponentList returns a boolean if a field has been set. func (o *FirmwarePolicy) HasExcludeComponentList() bool { - if o != nil && IsNil(o.ExcludeComponentList) { + if o != nil && !IsNil(o.ExcludeComponentList) { return true } @@ -169,7 +179,7 @@ func (o *FirmwarePolicy) GetModelBundleComboOk() ([]FirmwareModelBundleVersion, // HasModelBundleCombo returns a boolean if a field has been set. func (o *FirmwarePolicy) HasModelBundleCombo() bool { - if o != nil && IsNil(o.ModelBundleCombo) { + if o != nil && !IsNil(o.ModelBundleCombo) { return true } @@ -277,7 +287,7 @@ func (o *FirmwarePolicy) GetProfilesOk() ([]PolicyAbstractConfigProfileRelations // HasProfiles returns a boolean if a field has been set. func (o *FirmwarePolicy) HasProfiles() bool { - if o != nil && IsNil(o.Profiles) { + if o != nil && !IsNil(o.Profiles) { return true } @@ -307,7 +317,13 @@ func (o FirmwarePolicy) ToMap() (map[string]interface{}, error) { if errPolicyAbstractPolicy != nil { return map[string]interface{}{}, errPolicyAbstractPolicy } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.ExcludeComponentList != nil { toSerialize["ExcludeComponentList"] = o.ExcludeComponentList @@ -341,6 +357,13 @@ func (o *FirmwarePolicy) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -350,11 +373,23 @@ func (o *FirmwarePolicy) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type FirmwarePolicyWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_firmware_policy_list.go b/model_firmware_policy_list.go index 68c044e1e4..99502ddf9b 100644 --- a/model_firmware_policy_list.go +++ b/model_firmware_policy_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *FirmwarePolicyList) GetResultsOk() ([]FirmwarePolicy, bool) { // HasResults returns a boolean if a field has been set. func (o *FirmwarePolicyList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *FirmwarePolicyList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *FirmwarePolicyList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type FirmwarePolicyListWithoutEmbeddedStruct struct { // The total number of 'firmware.Policy' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_firmware_policy_response.go b/model_firmware_policy_response.go index a63f84d771..93d0f3a709 100644 --- a/model_firmware_policy_response.go +++ b/model_firmware_policy_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_firmware_psu_descriptor.go b/model_firmware_psu_descriptor.go index dcd9aa1f02..cfb1ef2076 100644 --- a/model_firmware_psu_descriptor.go +++ b/model_firmware_psu_descriptor.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -83,6 +83,10 @@ func (o *FirmwarePsuDescriptor) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -92,11 +96,23 @@ func (o *FirmwarePsuDescriptor) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type FirmwarePsuDescriptorWithoutEmbeddedStruct struct { } diff --git a/model_firmware_psu_descriptor_list.go b/model_firmware_psu_descriptor_list.go index 930dfaa0ac..9c8ea2c680 100644 --- a/model_firmware_psu_descriptor_list.go +++ b/model_firmware_psu_descriptor_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *FirmwarePsuDescriptorList) GetResultsOk() ([]FirmwarePsuDescriptor, boo // HasResults returns a boolean if a field has been set. func (o *FirmwarePsuDescriptorList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *FirmwarePsuDescriptorList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *FirmwarePsuDescriptorList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type FirmwarePsuDescriptorListWithoutEmbeddedStruct struct { // The total number of 'firmware.PsuDescriptor' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_firmware_psu_descriptor_response.go b/model_firmware_psu_descriptor_response.go index 9551139058..848fdf2f42 100644 --- a/model_firmware_psu_descriptor_response.go +++ b/model_firmware_psu_descriptor_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_firmware_running_firmware.go b/model_firmware_running_firmware.go index 04400d47a2..93abd92472 100644 --- a/model_firmware_running_firmware.go +++ b/model_firmware_running_firmware.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -99,6 +99,11 @@ func (o *FirmwareRunningFirmware) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "firmware.RunningFirmware" of the ClassId field. +func (o *FirmwareRunningFirmware) GetDefaultClassId() interface{} { + return "firmware.RunningFirmware" +} + // GetObjectType returns the ObjectType field value func (o *FirmwareRunningFirmware) GetObjectType() string { if o == nil { @@ -123,6 +128,11 @@ func (o *FirmwareRunningFirmware) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "firmware.RunningFirmware" of the ObjectType field. +func (o *FirmwareRunningFirmware) GetDefaultObjectType() interface{} { + return "firmware.RunningFirmware" +} + // GetComponent returns the Component field value if set, zero value otherwise. func (o *FirmwareRunningFirmware) GetComponent() string { if o == nil || IsNil(o.Component) { @@ -444,7 +454,7 @@ func (o *FirmwareRunningFirmware) GetNetworkElementsOk() ([]NetworkElementRelati // HasNetworkElements returns a boolean if a field has been set. func (o *FirmwareRunningFirmware) HasNetworkElements() bool { - if o != nil && IsNil(o.NetworkElements) { + if o != nil && !IsNil(o.NetworkElements) { return true } @@ -689,7 +699,13 @@ func (o FirmwareRunningFirmware) ToMap() (map[string]interface{}, error) { if errInventoryBase != nil { return map[string]interface{}{}, errInventoryBase } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Component) { toSerialize["Component"] = o.Component @@ -750,6 +766,13 @@ func (o *FirmwareRunningFirmware) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -759,11 +782,23 @@ func (o *FirmwareRunningFirmware) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type FirmwareRunningFirmwareWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_firmware_running_firmware_list.go b/model_firmware_running_firmware_list.go index 75cc9a9bad..f31f11de0b 100644 --- a/model_firmware_running_firmware_list.go +++ b/model_firmware_running_firmware_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *FirmwareRunningFirmwareList) GetResultsOk() ([]FirmwareRunningFirmware, // HasResults returns a boolean if a field has been set. func (o *FirmwareRunningFirmwareList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *FirmwareRunningFirmwareList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *FirmwareRunningFirmwareList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type FirmwareRunningFirmwareListWithoutEmbeddedStruct struct { // The total number of 'firmware.RunningFirmware' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_firmware_running_firmware_relationship.go b/model_firmware_running_firmware_relationship.go index 4106a85340..0493651a17 100644 --- a/model_firmware_running_firmware_relationship.go +++ b/model_firmware_running_firmware_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_firmware_running_firmware_response.go b/model_firmware_running_firmware_response.go index e32865fcf5..3a8dc29bec 100644 --- a/model_firmware_running_firmware_response.go +++ b/model_firmware_running_firmware_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_firmware_sas_expander_descriptor.go b/model_firmware_sas_expander_descriptor.go index 6085b8b76e..dee4ae4032 100644 --- a/model_firmware_sas_expander_descriptor.go +++ b/model_firmware_sas_expander_descriptor.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -83,6 +83,10 @@ func (o *FirmwareSasExpanderDescriptor) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -92,11 +96,23 @@ func (o *FirmwareSasExpanderDescriptor) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type FirmwareSasExpanderDescriptorWithoutEmbeddedStruct struct { } diff --git a/model_firmware_sas_expander_descriptor_list.go b/model_firmware_sas_expander_descriptor_list.go index a9537fd195..4294c500ce 100644 --- a/model_firmware_sas_expander_descriptor_list.go +++ b/model_firmware_sas_expander_descriptor_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *FirmwareSasExpanderDescriptorList) GetResultsOk() ([]FirmwareSasExpande // HasResults returns a boolean if a field has been set. func (o *FirmwareSasExpanderDescriptorList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *FirmwareSasExpanderDescriptorList) UnmarshalJSON(data []byte) (err erro "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *FirmwareSasExpanderDescriptorList) UnmarshalJSON(data []byte) (err erro } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type FirmwareSasExpanderDescriptorListWithoutEmbeddedStruct struct { // The total number of 'firmware.SasExpanderDescriptor' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_firmware_sas_expander_descriptor_response.go b/model_firmware_sas_expander_descriptor_response.go index 8b3d694a47..4f254a0ad9 100644 --- a/model_firmware_sas_expander_descriptor_response.go +++ b/model_firmware_sas_expander_descriptor_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_firmware_server_configuration_utility_distributable.go b/model_firmware_server_configuration_utility_distributable.go index 1da34484d5..7f4c1242b0 100644 --- a/model_firmware_server_configuration_utility_distributable.go +++ b/model_firmware_server_configuration_utility_distributable.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -87,6 +87,11 @@ func (o *FirmwareServerConfigurationUtilityDistributable) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "firmware.ServerConfigurationUtilityDistributable" of the ClassId field. +func (o *FirmwareServerConfigurationUtilityDistributable) GetDefaultClassId() interface{} { + return "firmware.ServerConfigurationUtilityDistributable" +} + // GetObjectType returns the ObjectType field value func (o *FirmwareServerConfigurationUtilityDistributable) GetObjectType() string { if o == nil { @@ -111,6 +116,11 @@ func (o *FirmwareServerConfigurationUtilityDistributable) SetObjectType(v string o.ObjectType = v } +// GetDefaultObjectType returns the default value "firmware.ServerConfigurationUtilityDistributable" of the ObjectType field. +func (o *FirmwareServerConfigurationUtilityDistributable) GetDefaultObjectType() interface{} { + return "firmware.ServerConfigurationUtilityDistributable" +} + // GetCatalog returns the Catalog field value if set, zero value otherwise (both if not set or set to explicit null). func (o *FirmwareServerConfigurationUtilityDistributable) GetCatalog() SoftwarerepositoryCatalogRelationship { if o == nil || IsNil(o.Catalog.Get()) { @@ -172,7 +182,13 @@ func (o FirmwareServerConfigurationUtilityDistributable) ToMap() (map[string]int if errFirmwareBaseDistributable != nil { return map[string]interface{}{}, errFirmwareBaseDistributable } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.Catalog.IsSet() { toSerialize["Catalog"] = o.Catalog.Get() @@ -194,6 +210,13 @@ func (o *FirmwareServerConfigurationUtilityDistributable) UnmarshalJSON(data []b "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -203,11 +226,23 @@ func (o *FirmwareServerConfigurationUtilityDistributable) UnmarshalJSON(data []b } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type FirmwareServerConfigurationUtilityDistributableWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_firmware_server_configuration_utility_distributable_list.go b/model_firmware_server_configuration_utility_distributable_list.go index ee71aec092..e284904749 100644 --- a/model_firmware_server_configuration_utility_distributable_list.go +++ b/model_firmware_server_configuration_utility_distributable_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *FirmwareServerConfigurationUtilityDistributableList) GetResultsOk() ([] // HasResults returns a boolean if a field has been set. func (o *FirmwareServerConfigurationUtilityDistributableList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *FirmwareServerConfigurationUtilityDistributableList) UnmarshalJSON(data "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *FirmwareServerConfigurationUtilityDistributableList) UnmarshalJSON(data } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type FirmwareServerConfigurationUtilityDistributableListWithoutEmbeddedStruct struct { // The total number of 'firmware.ServerConfigurationUtilityDistributable' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_firmware_server_configuration_utility_distributable_relationship.go b/model_firmware_server_configuration_utility_distributable_relationship.go index ee3be23a0d..eba48e0961 100644 --- a/model_firmware_server_configuration_utility_distributable_relationship.go +++ b/model_firmware_server_configuration_utility_distributable_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_firmware_server_configuration_utility_distributable_response.go b/model_firmware_server_configuration_utility_distributable_response.go index 89e0f22bf1..d8b382b15f 100644 --- a/model_firmware_server_configuration_utility_distributable_response.go +++ b/model_firmware_server_configuration_utility_distributable_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_firmware_server_upgrade_impact.go b/model_firmware_server_upgrade_impact.go index 488c2cfd2c..6b7c80b3e6 100644 --- a/model_firmware_server_upgrade_impact.go +++ b/model_firmware_server_upgrade_impact.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -91,6 +91,11 @@ func (o *FirmwareServerUpgradeImpact) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "firmware.ServerUpgradeImpact" of the ClassId field. +func (o *FirmwareServerUpgradeImpact) GetDefaultClassId() interface{} { + return "firmware.ServerUpgradeImpact" +} + // GetObjectType returns the ObjectType field value func (o *FirmwareServerUpgradeImpact) GetObjectType() string { if o == nil { @@ -115,6 +120,11 @@ func (o *FirmwareServerUpgradeImpact) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "firmware.ServerUpgradeImpact" of the ObjectType field. +func (o *FirmwareServerUpgradeImpact) GetDefaultObjectType() interface{} { + return "firmware.ServerUpgradeImpact" +} + // GetImpactDetail returns the ImpactDetail field value if set, zero value otherwise (both if not set or set to explicit null). func (o *FirmwareServerUpgradeImpact) GetImpactDetail() []FirmwareComponentImpact { if o == nil { @@ -136,7 +146,7 @@ func (o *FirmwareServerUpgradeImpact) GetImpactDetailOk() ([]FirmwareComponentIm // HasImpactDetail returns a boolean if a field has been set. func (o *FirmwareServerUpgradeImpact) HasImpactDetail() bool { - if o != nil && IsNil(o.ImpactDetail) { + if o != nil && !IsNil(o.ImpactDetail) { return true } @@ -230,7 +240,13 @@ func (o FirmwareServerUpgradeImpact) ToMap() (map[string]interface{}, error) { if errFirmwareBaseImpact != nil { return map[string]interface{}{}, errFirmwareBaseImpact } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.ImpactDetail != nil { toSerialize["ImpactDetail"] = o.ImpactDetail @@ -258,6 +274,13 @@ func (o *FirmwareServerUpgradeImpact) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -267,11 +290,23 @@ func (o *FirmwareServerUpgradeImpact) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type FirmwareServerUpgradeImpactWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_firmware_storage_controller_descriptor.go b/model_firmware_storage_controller_descriptor.go index 57275360a6..8a4f9ab7dc 100644 --- a/model_firmware_storage_controller_descriptor.go +++ b/model_firmware_storage_controller_descriptor.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -83,6 +83,10 @@ func (o *FirmwareStorageControllerDescriptor) UnmarshalJSON(data []byte) (err er "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -92,11 +96,23 @@ func (o *FirmwareStorageControllerDescriptor) UnmarshalJSON(data []byte) (err er } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type FirmwareStorageControllerDescriptorWithoutEmbeddedStruct struct { } diff --git a/model_firmware_storage_controller_descriptor_list.go b/model_firmware_storage_controller_descriptor_list.go index 64ecce2738..4a4395742e 100644 --- a/model_firmware_storage_controller_descriptor_list.go +++ b/model_firmware_storage_controller_descriptor_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *FirmwareStorageControllerDescriptorList) GetResultsOk() ([]FirmwareStor // HasResults returns a boolean if a field has been set. func (o *FirmwareStorageControllerDescriptorList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *FirmwareStorageControllerDescriptorList) UnmarshalJSON(data []byte) (er "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *FirmwareStorageControllerDescriptorList) UnmarshalJSON(data []byte) (er } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type FirmwareStorageControllerDescriptorListWithoutEmbeddedStruct struct { // The total number of 'firmware.StorageControllerDescriptor' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_firmware_storage_controller_descriptor_response.go b/model_firmware_storage_controller_descriptor_response.go index 2ccda90a33..92cb3ed6ff 100644 --- a/model_firmware_storage_controller_descriptor_response.go +++ b/model_firmware_storage_controller_descriptor_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_firmware_switch_upgrade.go b/model_firmware_switch_upgrade.go index 8cf5149bb0..148aafc0f2 100644 --- a/model_firmware_switch_upgrade.go +++ b/model_firmware_switch_upgrade.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -99,6 +99,11 @@ func (o *FirmwareSwitchUpgrade) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "firmware.SwitchUpgrade" of the ClassId field. +func (o *FirmwareSwitchUpgrade) GetDefaultClassId() interface{} { + return "firmware.SwitchUpgrade" +} + // GetObjectType returns the ObjectType field value func (o *FirmwareSwitchUpgrade) GetObjectType() string { if o == nil { @@ -123,6 +128,11 @@ func (o *FirmwareSwitchUpgrade) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "firmware.SwitchUpgrade" of the ObjectType field. +func (o *FirmwareSwitchUpgrade) GetDefaultObjectType() interface{} { + return "firmware.SwitchUpgrade" +} + // GetEnableFabricEvacuation returns the EnableFabricEvacuation field value if set, zero value otherwise. func (o *FirmwareSwitchUpgrade) GetEnableFabricEvacuation() bool { if o == nil || IsNil(o.EnableFabricEvacuation) { @@ -251,7 +261,7 @@ func (o *FirmwareSwitchUpgrade) GetNetworkElementsOk() ([]NetworkElementRelation // HasNetworkElements returns a boolean if a field has been set. func (o *FirmwareSwitchUpgrade) HasNetworkElements() bool { - if o != nil && IsNil(o.NetworkElements) { + if o != nil && !IsNil(o.NetworkElements) { return true } @@ -281,7 +291,13 @@ func (o FirmwareSwitchUpgrade) ToMap() (map[string]interface{}, error) { if errFirmwareUpgradeBase != nil { return map[string]interface{}{}, errFirmwareUpgradeBase } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.EnableFabricEvacuation) { toSerialize["EnableFabricEvacuation"] = o.EnableFabricEvacuation @@ -312,6 +328,13 @@ func (o *FirmwareSwitchUpgrade) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -321,11 +344,23 @@ func (o *FirmwareSwitchUpgrade) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type FirmwareSwitchUpgradeWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_firmware_switch_upgrade_list.go b/model_firmware_switch_upgrade_list.go index abee43c69d..6d8a70eb31 100644 --- a/model_firmware_switch_upgrade_list.go +++ b/model_firmware_switch_upgrade_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *FirmwareSwitchUpgradeList) GetResultsOk() ([]FirmwareSwitchUpgrade, boo // HasResults returns a boolean if a field has been set. func (o *FirmwareSwitchUpgradeList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *FirmwareSwitchUpgradeList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *FirmwareSwitchUpgradeList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type FirmwareSwitchUpgradeListWithoutEmbeddedStruct struct { // The total number of 'firmware.SwitchUpgrade' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_firmware_switch_upgrade_response.go b/model_firmware_switch_upgrade_response.go index 899d2be0ce..d785868e71 100644 --- a/model_firmware_switch_upgrade_response.go +++ b/model_firmware_switch_upgrade_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_firmware_unsupported_version_upgrade.go b/model_firmware_unsupported_version_upgrade.go index d419844128..70e885a31d 100644 --- a/model_firmware_unsupported_version_upgrade.go +++ b/model_firmware_unsupported_version_upgrade.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -89,6 +89,11 @@ func (o *FirmwareUnsupportedVersionUpgrade) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "firmware.UnsupportedVersionUpgrade" of the ClassId field. +func (o *FirmwareUnsupportedVersionUpgrade) GetDefaultClassId() interface{} { + return "firmware.UnsupportedVersionUpgrade" +} + // GetObjectType returns the ObjectType field value func (o *FirmwareUnsupportedVersionUpgrade) GetObjectType() string { if o == nil { @@ -113,6 +118,11 @@ func (o *FirmwareUnsupportedVersionUpgrade) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "firmware.UnsupportedVersionUpgrade" of the ObjectType field. +func (o *FirmwareUnsupportedVersionUpgrade) GetDefaultObjectType() interface{} { + return "firmware.UnsupportedVersionUpgrade" +} + // GetUpgradeStatus returns the UpgradeStatus field value if set, zero value otherwise. func (o *FirmwareUnsupportedVersionUpgrade) GetUpgradeStatus() string { if o == nil || IsNil(o.UpgradeStatus) { @@ -292,7 +302,13 @@ func (o FirmwareUnsupportedVersionUpgrade) ToMap() (map[string]interface{}, erro if errConnectorDownloadStatus != nil { return map[string]interface{}{}, errConnectorDownloadStatus } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.UpgradeStatus) { toSerialize["UpgradeStatus"] = o.UpgradeStatus @@ -323,6 +339,13 @@ func (o *FirmwareUnsupportedVersionUpgrade) UnmarshalJSON(data []byte) (err erro "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -332,11 +355,23 @@ func (o *FirmwareUnsupportedVersionUpgrade) UnmarshalJSON(data []byte) (err erro } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type FirmwareUnsupportedVersionUpgradeWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_firmware_unsupported_version_upgrade_list.go b/model_firmware_unsupported_version_upgrade_list.go index 7f88ebdd1d..1cefb019db 100644 --- a/model_firmware_unsupported_version_upgrade_list.go +++ b/model_firmware_unsupported_version_upgrade_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *FirmwareUnsupportedVersionUpgradeList) GetResultsOk() ([]FirmwareUnsupp // HasResults returns a boolean if a field has been set. func (o *FirmwareUnsupportedVersionUpgradeList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *FirmwareUnsupportedVersionUpgradeList) UnmarshalJSON(data []byte) (err "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *FirmwareUnsupportedVersionUpgradeList) UnmarshalJSON(data []byte) (err } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type FirmwareUnsupportedVersionUpgradeListWithoutEmbeddedStruct struct { // The total number of 'firmware.UnsupportedVersionUpgrade' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_firmware_unsupported_version_upgrade_response.go b/model_firmware_unsupported_version_upgrade_response.go index 0e89bc6c7a..12567dcaa1 100644 --- a/model_firmware_unsupported_version_upgrade_response.go +++ b/model_firmware_unsupported_version_upgrade_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_firmware_upgrade.go b/model_firmware_upgrade.go index 0ef14f1936..51cf690bb6 100644 --- a/model_firmware_upgrade.go +++ b/model_firmware_upgrade.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -94,6 +94,11 @@ func (o *FirmwareUpgrade) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "firmware.Upgrade" of the ClassId field. +func (o *FirmwareUpgrade) GetDefaultClassId() interface{} { + return "firmware.Upgrade" +} + // GetObjectType returns the ObjectType field value func (o *FirmwareUpgrade) GetObjectType() string { if o == nil { @@ -118,6 +123,11 @@ func (o *FirmwareUpgrade) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "firmware.Upgrade" of the ObjectType field. +func (o *FirmwareUpgrade) GetDefaultObjectType() interface{} { + return "firmware.Upgrade" +} + // GetExcludeComponentList returns the ExcludeComponentList field value if set, zero value otherwise (both if not set or set to explicit null). func (o *FirmwareUpgrade) GetExcludeComponentList() []string { if o == nil { @@ -139,7 +149,7 @@ func (o *FirmwareUpgrade) GetExcludeComponentListOk() ([]string, bool) { // HasExcludeComponentList returns a boolean if a field has been set. func (o *FirmwareUpgrade) HasExcludeComponentList() bool { - if o != nil && IsNil(o.ExcludeComponentList) { + if o != nil && !IsNil(o.ExcludeComponentList) { return true } @@ -330,7 +340,13 @@ func (o FirmwareUpgrade) ToMap() (map[string]interface{}, error) { if errFirmwareUpgradeBase != nil { return map[string]interface{}{}, errFirmwareUpgradeBase } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.ExcludeComponentList != nil { toSerialize["ExcludeComponentList"] = o.ExcludeComponentList @@ -364,6 +380,13 @@ func (o *FirmwareUpgrade) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -373,11 +396,23 @@ func (o *FirmwareUpgrade) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type FirmwareUpgradeWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_firmware_upgrade_base.go b/model_firmware_upgrade_base.go index 2f06de72f5..317eacde35 100644 --- a/model_firmware_upgrade_base.go +++ b/model_firmware_upgrade_base.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -585,6 +585,10 @@ func (o *FirmwareUpgradeBase) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -594,11 +598,23 @@ func (o *FirmwareUpgradeBase) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type FirmwareUpgradeBaseWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. The enum values provides the list of concrete types that can be instantiated from this abstract type. ClassId string `json:"ClassId"` diff --git a/model_firmware_upgrade_base_relationship.go b/model_firmware_upgrade_base_relationship.go index 171627a9bd..9e1b54a2a6 100644 --- a/model_firmware_upgrade_base_relationship.go +++ b/model_firmware_upgrade_base_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_firmware_upgrade_impact.go b/model_firmware_upgrade_impact.go index ab35193b7c..493e9ed843 100644 --- a/model_firmware_upgrade_impact.go +++ b/model_firmware_upgrade_impact.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -94,6 +94,11 @@ func (o *FirmwareUpgradeImpact) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "firmware.UpgradeImpact" of the ClassId field. +func (o *FirmwareUpgradeImpact) GetDefaultClassId() interface{} { + return "firmware.UpgradeImpact" +} + // GetObjectType returns the ObjectType field value func (o *FirmwareUpgradeImpact) GetObjectType() string { if o == nil { @@ -118,6 +123,11 @@ func (o *FirmwareUpgradeImpact) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "firmware.UpgradeImpact" of the ObjectType field. +func (o *FirmwareUpgradeImpact) GetDefaultObjectType() interface{} { + return "firmware.UpgradeImpact" +} + // GetChassis returns the Chassis field value if set, zero value otherwise (both if not set or set to explicit null). func (o *FirmwareUpgradeImpact) GetChassis() []EquipmentChassisRelationship { if o == nil { @@ -139,7 +149,7 @@ func (o *FirmwareUpgradeImpact) GetChassisOk() ([]EquipmentChassisRelationship, // HasChassis returns a boolean if a field has been set. func (o *FirmwareUpgradeImpact) HasChassis() bool { - if o != nil && IsNil(o.Chassis) { + if o != nil && !IsNil(o.Chassis) { return true } @@ -172,7 +182,7 @@ func (o *FirmwareUpgradeImpact) GetDeviceOk() ([]AssetDeviceRegistrationRelation // HasDevice returns a boolean if a field has been set. func (o *FirmwareUpgradeImpact) HasDevice() bool { - if o != nil && IsNil(o.Device) { + if o != nil && !IsNil(o.Device) { return true } @@ -248,7 +258,7 @@ func (o *FirmwareUpgradeImpact) GetNetworkElementsOk() ([]NetworkElementRelation // HasNetworkElements returns a boolean if a field has been set. func (o *FirmwareUpgradeImpact) HasNetworkElements() bool { - if o != nil && IsNil(o.NetworkElements) { + if o != nil && !IsNil(o.NetworkElements) { return true } @@ -324,7 +334,7 @@ func (o *FirmwareUpgradeImpact) GetServerOk() ([]ComputePhysicalRelationship, bo // HasServer returns a boolean if a field has been set. func (o *FirmwareUpgradeImpact) HasServer() bool { - if o != nil && IsNil(o.Server) { + if o != nil && !IsNil(o.Server) { return true } @@ -354,7 +364,13 @@ func (o FirmwareUpgradeImpact) ToMap() (map[string]interface{}, error) { if errFirmwareUpgradeImpactBase != nil { return map[string]interface{}{}, errFirmwareUpgradeImpactBase } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.Chassis != nil { toSerialize["Chassis"] = o.Chassis @@ -391,6 +407,13 @@ func (o *FirmwareUpgradeImpact) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -400,11 +423,23 @@ func (o *FirmwareUpgradeImpact) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type FirmwareUpgradeImpactWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_firmware_upgrade_impact_base.go b/model_firmware_upgrade_impact_base.go index 7d589de950..d3b50a3d32 100644 --- a/model_firmware_upgrade_impact_base.go +++ b/model_firmware_upgrade_impact_base.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -136,7 +136,7 @@ func (o *FirmwareUpgradeImpactBase) GetComponentsOk() ([]string, bool) { // HasComponents returns a boolean if a field has been set. func (o *FirmwareUpgradeImpactBase) HasComponents() bool { - if o != nil && IsNil(o.Components) { + if o != nil && !IsNil(o.Components) { return true } @@ -201,7 +201,7 @@ func (o *FirmwareUpgradeImpactBase) GetExcludeComponentsOk() ([]string, bool) { // HasExcludeComponents returns a boolean if a field has been set. func (o *FirmwareUpgradeImpactBase) HasExcludeComponents() bool { - if o != nil && IsNil(o.ExcludeComponents) { + if o != nil && !IsNil(o.ExcludeComponents) { return true } @@ -234,7 +234,7 @@ func (o *FirmwareUpgradeImpactBase) GetImpactsOk() ([]FirmwareBaseImpact, bool) // HasImpacts returns a boolean if a field has been set. func (o *FirmwareUpgradeImpactBase) HasImpacts() bool { - if o != nil && IsNil(o.Impacts) { + if o != nil && !IsNil(o.Impacts) { return true } @@ -330,6 +330,10 @@ func (o *FirmwareUpgradeImpactBase) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -339,11 +343,23 @@ func (o *FirmwareUpgradeImpactBase) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type FirmwareUpgradeImpactBaseWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. The enum values provides the list of concrete types that can be instantiated from this abstract type. ClassId string `json:"ClassId"` diff --git a/model_firmware_upgrade_impact_status.go b/model_firmware_upgrade_impact_status.go index 6e4b5d2c2e..0a848d6f39 100644 --- a/model_firmware_upgrade_impact_status.go +++ b/model_firmware_upgrade_impact_status.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -85,6 +85,11 @@ func (o *FirmwareUpgradeImpactStatus) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "firmware.UpgradeImpactStatus" of the ClassId field. +func (o *FirmwareUpgradeImpactStatus) GetDefaultClassId() interface{} { + return "firmware.UpgradeImpactStatus" +} + // GetObjectType returns the ObjectType field value func (o *FirmwareUpgradeImpactStatus) GetObjectType() string { if o == nil { @@ -109,6 +114,11 @@ func (o *FirmwareUpgradeImpactStatus) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "firmware.UpgradeImpactStatus" of the ObjectType field. +func (o *FirmwareUpgradeImpactStatus) GetDefaultObjectType() interface{} { + return "firmware.UpgradeImpactStatus" +} + // GetUpgrade returns the Upgrade field value if set, zero value otherwise (both if not set or set to explicit null). func (o *FirmwareUpgradeImpactStatus) GetUpgrade() FirmwareUpgradeBaseRelationship { if o == nil || IsNil(o.Upgrade.Get()) { @@ -170,7 +180,13 @@ func (o FirmwareUpgradeImpactStatus) ToMap() (map[string]interface{}, error) { if errFirmwareUpgradeImpactBase != nil { return map[string]interface{}{}, errFirmwareUpgradeImpactBase } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.Upgrade.IsSet() { toSerialize["Upgrade"] = o.Upgrade.Get() @@ -192,6 +208,13 @@ func (o *FirmwareUpgradeImpactStatus) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -201,11 +224,23 @@ func (o *FirmwareUpgradeImpactStatus) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type FirmwareUpgradeImpactStatusWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_firmware_upgrade_impact_status_list.go b/model_firmware_upgrade_impact_status_list.go index ebc62c3fd7..eb3590acd1 100644 --- a/model_firmware_upgrade_impact_status_list.go +++ b/model_firmware_upgrade_impact_status_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *FirmwareUpgradeImpactStatusList) GetResultsOk() ([]FirmwareUpgradeImpac // HasResults returns a boolean if a field has been set. func (o *FirmwareUpgradeImpactStatusList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *FirmwareUpgradeImpactStatusList) UnmarshalJSON(data []byte) (err error) "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *FirmwareUpgradeImpactStatusList) UnmarshalJSON(data []byte) (err error) } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type FirmwareUpgradeImpactStatusListWithoutEmbeddedStruct struct { // The total number of 'firmware.UpgradeImpactStatus' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_firmware_upgrade_impact_status_relationship.go b/model_firmware_upgrade_impact_status_relationship.go index 8ee8b5b063..12d93469be 100644 --- a/model_firmware_upgrade_impact_status_relationship.go +++ b/model_firmware_upgrade_impact_status_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_firmware_upgrade_impact_status_response.go b/model_firmware_upgrade_impact_status_response.go index fb84692b11..cadad9f071 100644 --- a/model_firmware_upgrade_impact_status_response.go +++ b/model_firmware_upgrade_impact_status_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_firmware_upgrade_list.go b/model_firmware_upgrade_list.go index 998ba99bd0..b1352d7937 100644 --- a/model_firmware_upgrade_list.go +++ b/model_firmware_upgrade_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *FirmwareUpgradeList) GetResultsOk() ([]FirmwareUpgrade, bool) { // HasResults returns a boolean if a field has been set. func (o *FirmwareUpgradeList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *FirmwareUpgradeList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *FirmwareUpgradeList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type FirmwareUpgradeListWithoutEmbeddedStruct struct { // The total number of 'firmware.Upgrade' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_firmware_upgrade_response.go b/model_firmware_upgrade_response.go index 8d8edf5c3c..3c9337383d 100644 --- a/model_firmware_upgrade_response.go +++ b/model_firmware_upgrade_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_firmware_upgrade_status.go b/model_firmware_upgrade_status.go index 798298aa0a..e8b8a1da20 100644 --- a/model_firmware_upgrade_status.go +++ b/model_firmware_upgrade_status.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -124,6 +124,11 @@ func (o *FirmwareUpgradeStatus) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "firmware.UpgradeStatus" of the ClassId field. +func (o *FirmwareUpgradeStatus) GetDefaultClassId() interface{} { + return "firmware.UpgradeStatus" +} + // GetObjectType returns the ObjectType field value func (o *FirmwareUpgradeStatus) GetObjectType() string { if o == nil { @@ -148,6 +153,11 @@ func (o *FirmwareUpgradeStatus) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "firmware.UpgradeStatus" of the ObjectType field. +func (o *FirmwareUpgradeStatus) GetDefaultObjectType() interface{} { + return "firmware.UpgradeStatus" +} + // GetDownloadMessage returns the DownloadMessage field value if set, zero value otherwise. func (o *FirmwareUpgradeStatus) GetDownloadMessage() string { if o == nil || IsNil(o.DownloadMessage) { @@ -668,7 +678,13 @@ func (o FirmwareUpgradeStatus) ToMap() (map[string]interface{}, error) { if errConnectorDownloadStatus != nil { return map[string]interface{}{}, errConnectorDownloadStatus } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.DownloadMessage) { toSerialize["DownloadMessage"] = o.DownloadMessage @@ -732,6 +748,13 @@ func (o *FirmwareUpgradeStatus) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -741,11 +764,23 @@ func (o *FirmwareUpgradeStatus) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type FirmwareUpgradeStatusWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_firmware_upgrade_status_list.go b/model_firmware_upgrade_status_list.go index 9ca3488202..772dbe8b1b 100644 --- a/model_firmware_upgrade_status_list.go +++ b/model_firmware_upgrade_status_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *FirmwareUpgradeStatusList) GetResultsOk() ([]FirmwareUpgradeStatus, boo // HasResults returns a boolean if a field has been set. func (o *FirmwareUpgradeStatusList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *FirmwareUpgradeStatusList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *FirmwareUpgradeStatusList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type FirmwareUpgradeStatusListWithoutEmbeddedStruct struct { // The total number of 'firmware.UpgradeStatus' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_firmware_upgrade_status_relationship.go b/model_firmware_upgrade_status_relationship.go index 79acc2dc7c..65f788a56d 100644 --- a/model_firmware_upgrade_status_relationship.go +++ b/model_firmware_upgrade_status_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_firmware_upgrade_status_response.go b/model_firmware_upgrade_status_response.go index 78045b23a0..e558fad9de 100644 --- a/model_firmware_upgrade_status_response.go +++ b/model_firmware_upgrade_status_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_firmware_upgrade_validity.go b/model_firmware_upgrade_validity.go index 106e7d3677..3d07a1a236 100644 --- a/model_firmware_upgrade_validity.go +++ b/model_firmware_upgrade_validity.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -85,6 +85,11 @@ func (o *FirmwareUpgradeValidity) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "firmware.UpgradeValidity" of the ClassId field. +func (o *FirmwareUpgradeValidity) GetDefaultClassId() interface{} { + return "firmware.UpgradeValidity" +} + // GetObjectType returns the ObjectType field value func (o *FirmwareUpgradeValidity) GetObjectType() string { if o == nil { @@ -109,6 +114,11 @@ func (o *FirmwareUpgradeValidity) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "firmware.UpgradeValidity" of the ObjectType field. +func (o *FirmwareUpgradeValidity) GetDefaultObjectType() interface{} { + return "firmware.UpgradeValidity" +} + // GetErrorMessage returns the ErrorMessage field value if set, zero value otherwise. func (o *FirmwareUpgradeValidity) GetErrorMessage() string { if o == nil || IsNil(o.ErrorMessage) { @@ -234,7 +244,13 @@ func (o FirmwareUpgradeValidity) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.ErrorMessage) { toSerialize["ErrorMessage"] = o.ErrorMessage @@ -262,6 +278,13 @@ func (o *FirmwareUpgradeValidity) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -271,11 +294,23 @@ func (o *FirmwareUpgradeValidity) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type FirmwareUpgradeValidityWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_firmware_version_map.go b/model_firmware_version_map.go index 9386b654cf..70caed3c43 100644 --- a/model_firmware_version_map.go +++ b/model_firmware_version_map.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -84,6 +84,11 @@ func (o *FirmwareVersionMap) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "firmware.VersionMap" of the ClassId field. +func (o *FirmwareVersionMap) GetDefaultClassId() interface{} { + return "firmware.VersionMap" +} + // GetObjectType returns the ObjectType field value func (o *FirmwareVersionMap) GetObjectType() string { if o == nil { @@ -108,6 +113,11 @@ func (o *FirmwareVersionMap) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "firmware.VersionMap" of the ObjectType field. +func (o *FirmwareVersionMap) GetDefaultObjectType() interface{} { + return "firmware.VersionMap" +} + // GetBundleVersion returns the BundleVersion field value if set, zero value otherwise. func (o *FirmwareVersionMap) GetBundleVersion() string { if o == nil || IsNil(o.BundleVersion) { @@ -190,7 +200,13 @@ func (o FirmwareVersionMap) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.BundleVersion) { toSerialize["BundleVersion"] = o.BundleVersion @@ -215,6 +231,13 @@ func (o *FirmwareVersionMap) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -224,11 +247,23 @@ func (o *FirmwareVersionMap) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type FirmwareVersionMapWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_fmc_device.go b/model_fmc_device.go index cb618acbde..2a3a80a411 100644 --- a/model_fmc_device.go +++ b/model_fmc_device.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -86,6 +86,11 @@ func (o *FmcDevice) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "fmc.Device" of the ClassId field. +func (o *FmcDevice) GetDefaultClassId() interface{} { + return "fmc.Device" +} + // GetObjectType returns the ObjectType field value func (o *FmcDevice) GetObjectType() string { if o == nil { @@ -110,6 +115,11 @@ func (o *FmcDevice) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "fmc.Device" of the ObjectType field. +func (o *FmcDevice) GetDefaultObjectType() interface{} { + return "fmc.Device" +} + // GetDeviceId returns the DeviceId field value if set, zero value otherwise. func (o *FmcDevice) GetDeviceId() string { if o == nil || IsNil(o.DeviceId) { @@ -224,7 +234,13 @@ func (o FmcDevice) ToMap() (map[string]interface{}, error) { if errFmcInventoryEntity != nil { return map[string]interface{}{}, errFmcInventoryEntity } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.DeviceId) { toSerialize["DeviceId"] = o.DeviceId @@ -252,6 +268,13 @@ func (o *FmcDevice) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -261,11 +284,23 @@ func (o *FmcDevice) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type FmcDeviceWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_fmc_device_ha_pair.go b/model_fmc_device_ha_pair.go index fb73ef7ad4..bf706b67a9 100644 --- a/model_fmc_device_ha_pair.go +++ b/model_fmc_device_ha_pair.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -86,6 +86,11 @@ func (o *FmcDeviceHaPair) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "fmc.DeviceHaPair" of the ClassId field. +func (o *FmcDeviceHaPair) GetDefaultClassId() interface{} { + return "fmc.DeviceHaPair" +} + // GetObjectType returns the ObjectType field value func (o *FmcDeviceHaPair) GetObjectType() string { if o == nil { @@ -110,6 +115,11 @@ func (o *FmcDeviceHaPair) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "fmc.DeviceHaPair" of the ObjectType field. +func (o *FmcDeviceHaPair) GetDefaultObjectType() interface{} { + return "fmc.DeviceHaPair" +} + // GetDeviceId returns the DeviceId field value if set, zero value otherwise. func (o *FmcDeviceHaPair) GetDeviceId() string { if o == nil || IsNil(o.DeviceId) { @@ -224,7 +234,13 @@ func (o FmcDeviceHaPair) ToMap() (map[string]interface{}, error) { if errFmcInventoryEntity != nil { return map[string]interface{}{}, errFmcInventoryEntity } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.DeviceId) { toSerialize["DeviceId"] = o.DeviceId @@ -252,6 +268,13 @@ func (o *FmcDeviceHaPair) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -261,11 +284,23 @@ func (o *FmcDeviceHaPair) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type FmcDeviceHaPairWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_fmc_device_ha_pair_list.go b/model_fmc_device_ha_pair_list.go index 9a7ef9d038..77d61e0f51 100644 --- a/model_fmc_device_ha_pair_list.go +++ b/model_fmc_device_ha_pair_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *FmcDeviceHaPairList) GetResultsOk() ([]FmcDeviceHaPair, bool) { // HasResults returns a boolean if a field has been set. func (o *FmcDeviceHaPairList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *FmcDeviceHaPairList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *FmcDeviceHaPairList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type FmcDeviceHaPairListWithoutEmbeddedStruct struct { // The total number of 'fmc.DeviceHaPair' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_fmc_device_ha_pair_response.go b/model_fmc_device_ha_pair_response.go index 2e0e545f7f..c750b6977e 100644 --- a/model_fmc_device_ha_pair_response.go +++ b/model_fmc_device_ha_pair_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_fmc_device_list.go b/model_fmc_device_list.go index ad55b2e5de..16b5969d43 100644 --- a/model_fmc_device_list.go +++ b/model_fmc_device_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *FmcDeviceList) GetResultsOk() ([]FmcDevice, bool) { // HasResults returns a boolean if a field has been set. func (o *FmcDeviceList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *FmcDeviceList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *FmcDeviceList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type FmcDeviceListWithoutEmbeddedStruct struct { // The total number of 'fmc.Device' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_fmc_device_response.go b/model_fmc_device_response.go index 26d2ae094f..ff11ad0115 100644 --- a/model_fmc_device_response.go +++ b/model_fmc_device_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_fmc_domain.go b/model_fmc_domain.go index c0e9fcfc6d..4edea8b076 100644 --- a/model_fmc_domain.go +++ b/model_fmc_domain.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -84,6 +84,11 @@ func (o *FmcDomain) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "fmc.Domain" of the ClassId field. +func (o *FmcDomain) GetDefaultClassId() interface{} { + return "fmc.Domain" +} + // GetObjectType returns the ObjectType field value func (o *FmcDomain) GetObjectType() string { if o == nil { @@ -108,6 +113,11 @@ func (o *FmcDomain) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "fmc.Domain" of the ObjectType field. +func (o *FmcDomain) GetDefaultObjectType() interface{} { + return "fmc.Domain" +} + // GetName returns the Name field value if set, zero value otherwise. func (o *FmcDomain) GetName() string { if o == nil || IsNil(o.Name) { @@ -190,7 +200,13 @@ func (o FmcDomain) ToMap() (map[string]interface{}, error) { if errFmcInventoryEntity != nil { return map[string]interface{}{}, errFmcInventoryEntity } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Name) { toSerialize["Name"] = o.Name @@ -215,6 +231,13 @@ func (o *FmcDomain) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -224,11 +247,23 @@ func (o *FmcDomain) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type FmcDomainWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_fmc_domain_list.go b/model_fmc_domain_list.go index 2245cb9963..ed620cee1d 100644 --- a/model_fmc_domain_list.go +++ b/model_fmc_domain_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *FmcDomainList) GetResultsOk() ([]FmcDomain, bool) { // HasResults returns a boolean if a field has been set. func (o *FmcDomainList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *FmcDomainList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *FmcDomainList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type FmcDomainListWithoutEmbeddedStruct struct { // The total number of 'fmc.Domain' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_fmc_domain_response.go b/model_fmc_domain_response.go index 1ce12ecb58..b0e54f9b40 100644 --- a/model_fmc_domain_response.go +++ b/model_fmc_domain_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_fmc_inventory_entity.go b/model_fmc_inventory_entity.go index 83739f5b85..2c878556b9 100644 --- a/model_fmc_inventory_entity.go +++ b/model_fmc_inventory_entity.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -184,6 +184,10 @@ func (o *FmcInventoryEntity) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -193,11 +197,23 @@ func (o *FmcInventoryEntity) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type FmcInventoryEntityWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. The enum values provides the list of concrete types that can be instantiated from this abstract type. ClassId string `json:"ClassId"` diff --git a/model_fmc_physical_interface.go b/model_fmc_physical_interface.go index d075fdcf5d..6c4616a1c4 100644 --- a/model_fmc_physical_interface.go +++ b/model_fmc_physical_interface.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -88,6 +88,11 @@ func (o *FmcPhysicalInterface) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "fmc.PhysicalInterface" of the ClassId field. +func (o *FmcPhysicalInterface) GetDefaultClassId() interface{} { + return "fmc.PhysicalInterface" +} + // GetObjectType returns the ObjectType field value func (o *FmcPhysicalInterface) GetObjectType() string { if o == nil { @@ -112,6 +117,11 @@ func (o *FmcPhysicalInterface) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "fmc.PhysicalInterface" of the ObjectType field. +func (o *FmcPhysicalInterface) GetDefaultObjectType() interface{} { + return "fmc.PhysicalInterface" +} + // GetDeviceId returns the DeviceId field value if set, zero value otherwise. func (o *FmcPhysicalInterface) GetDeviceId() string { if o == nil || IsNil(o.DeviceId) { @@ -258,7 +268,13 @@ func (o FmcPhysicalInterface) ToMap() (map[string]interface{}, error) { if errFmcInventoryEntity != nil { return map[string]interface{}{}, errFmcInventoryEntity } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.DeviceId) { toSerialize["DeviceId"] = o.DeviceId @@ -289,6 +305,13 @@ func (o *FmcPhysicalInterface) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -298,11 +321,23 @@ func (o *FmcPhysicalInterface) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type FmcPhysicalInterfaceWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_fmc_physical_interface_list.go b/model_fmc_physical_interface_list.go index 862bcf424e..80c140ceb5 100644 --- a/model_fmc_physical_interface_list.go +++ b/model_fmc_physical_interface_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *FmcPhysicalInterfaceList) GetResultsOk() ([]FmcPhysicalInterface, bool) // HasResults returns a boolean if a field has been set. func (o *FmcPhysicalInterfaceList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *FmcPhysicalInterfaceList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *FmcPhysicalInterfaceList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type FmcPhysicalInterfaceListWithoutEmbeddedStruct struct { // The total number of 'fmc.PhysicalInterface' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_fmc_physical_interface_response.go b/model_fmc_physical_interface_response.go index de5a377b75..badd7d7a6e 100644 --- a/model_fmc_physical_interface_response.go +++ b/model_fmc_physical_interface_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_forecast_catalog.go b/model_forecast_catalog.go index 761ba550d6..a45f90247f 100644 --- a/model_forecast_catalog.go +++ b/model_forecast_catalog.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -29,7 +29,7 @@ type ForecastCatalog struct { // The fully-qualified name of the instantiated, concrete type. The value should be the same as the 'ClassId' property. ObjectType string `json:"ObjectType"` // The time at which the regression model needs to run for all the metrics specified in catalog. - SchedTime *string `json:"SchedTime,omitempty"` + SchedTime *string `json:"SchedTime,omitempty" validate:"regexp=^$|^[0-9]{2}:[0-9]{2}:[0-9]{2}"` // The catalog version used in forecast configuration service. Version *string `json:"Version,omitempty"` // An array of relationships to forecastDefinition resources. @@ -86,6 +86,11 @@ func (o *ForecastCatalog) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "forecast.Catalog" of the ClassId field. +func (o *ForecastCatalog) GetDefaultClassId() interface{} { + return "forecast.Catalog" +} + // GetObjectType returns the ObjectType field value func (o *ForecastCatalog) GetObjectType() string { if o == nil { @@ -110,6 +115,11 @@ func (o *ForecastCatalog) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "forecast.Catalog" of the ObjectType field. +func (o *ForecastCatalog) GetDefaultObjectType() interface{} { + return "forecast.Catalog" +} + // GetSchedTime returns the SchedTime field value if set, zero value otherwise. func (o *ForecastCatalog) GetSchedTime() string { if o == nil || IsNil(o.SchedTime) { @@ -195,7 +205,7 @@ func (o *ForecastCatalog) GetDefinitionOk() ([]ForecastDefinitionRelationship, b // HasDefinition returns a boolean if a field has been set. func (o *ForecastCatalog) HasDefinition() bool { - if o != nil && IsNil(o.Definition) { + if o != nil && !IsNil(o.Definition) { return true } @@ -225,7 +235,13 @@ func (o ForecastCatalog) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.SchedTime) { toSerialize["SchedTime"] = o.SchedTime @@ -253,6 +269,13 @@ func (o *ForecastCatalog) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -262,18 +285,30 @@ func (o *ForecastCatalog) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type ForecastCatalogWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` // The fully-qualified name of the instantiated, concrete type. The value should be the same as the 'ClassId' property. ObjectType string `json:"ObjectType"` // The time at which the regression model needs to run for all the metrics specified in catalog. - SchedTime *string `json:"SchedTime,omitempty"` + SchedTime *string `json:"SchedTime,omitempty" validate:"regexp=^$|^[0-9]{2}:[0-9]{2}:[0-9]{2}"` // The catalog version used in forecast configuration service. Version *string `json:"Version,omitempty"` // An array of relationships to forecastDefinition resources. diff --git a/model_forecast_catalog_list.go b/model_forecast_catalog_list.go index fcbc5449bd..56c34680b3 100644 --- a/model_forecast_catalog_list.go +++ b/model_forecast_catalog_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *ForecastCatalogList) GetResultsOk() ([]ForecastCatalog, bool) { // HasResults returns a boolean if a field has been set. func (o *ForecastCatalogList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *ForecastCatalogList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *ForecastCatalogList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type ForecastCatalogListWithoutEmbeddedStruct struct { // The total number of 'forecast.Catalog' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_forecast_catalog_relationship.go b/model_forecast_catalog_relationship.go index 797160d30e..bd2dbc4262 100644 --- a/model_forecast_catalog_relationship.go +++ b/model_forecast_catalog_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_forecast_catalog_response.go b/model_forecast_catalog_response.go index 58b520e8e9..5a5a1825bf 100644 --- a/model_forecast_catalog_response.go +++ b/model_forecast_catalog_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_forecast_definition.go b/model_forecast_definition.go index 3bddf70427..8a79149088 100644 --- a/model_forecast_definition.go +++ b/model_forecast_definition.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -93,6 +93,11 @@ func (o *ForecastDefinition) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "forecast.Definition" of the ClassId field. +func (o *ForecastDefinition) GetDefaultClassId() interface{} { + return "forecast.Definition" +} + // GetObjectType returns the ObjectType field value func (o *ForecastDefinition) GetObjectType() string { if o == nil { @@ -117,6 +122,11 @@ func (o *ForecastDefinition) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "forecast.Definition" of the ObjectType field. +func (o *ForecastDefinition) GetDefaultObjectType() interface{} { + return "forecast.Definition" +} + // GetAlertThresholdInPercentage returns the AlertThresholdInPercentage field value if set, zero value otherwise. func (o *ForecastDefinition) GetAlertThresholdInPercentage() int64 { if o == nil || IsNil(o.AlertThresholdInPercentage) { @@ -370,7 +380,13 @@ func (o ForecastDefinition) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.AlertThresholdInPercentage) { toSerialize["AlertThresholdInPercentage"] = o.AlertThresholdInPercentage @@ -410,6 +426,13 @@ func (o *ForecastDefinition) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -419,11 +442,23 @@ func (o *ForecastDefinition) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type ForecastDefinitionWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_forecast_definition_list.go b/model_forecast_definition_list.go index dca8b0b1ac..5adff46a76 100644 --- a/model_forecast_definition_list.go +++ b/model_forecast_definition_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *ForecastDefinitionList) GetResultsOk() ([]ForecastDefinition, bool) { // HasResults returns a boolean if a field has been set. func (o *ForecastDefinitionList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *ForecastDefinitionList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *ForecastDefinitionList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type ForecastDefinitionListWithoutEmbeddedStruct struct { // The total number of 'forecast.Definition' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_forecast_definition_relationship.go b/model_forecast_definition_relationship.go index 3c694d6ce9..1ebe2c21b7 100644 --- a/model_forecast_definition_relationship.go +++ b/model_forecast_definition_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_forecast_definition_response.go b/model_forecast_definition_response.go index 3f4df8aa14..3a46743c7b 100644 --- a/model_forecast_definition_response.go +++ b/model_forecast_definition_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_forecast_instance.go b/model_forecast_instance.go index a92857084b..267eeabff5 100644 --- a/model_forecast_instance.go +++ b/model_forecast_instance.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -111,6 +111,11 @@ func (o *ForecastInstance) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "forecast.Instance" of the ClassId field. +func (o *ForecastInstance) GetDefaultClassId() interface{} { + return "forecast.Instance" +} + // GetObjectType returns the ObjectType field value func (o *ForecastInstance) GetObjectType() string { if o == nil { @@ -135,6 +140,11 @@ func (o *ForecastInstance) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "forecast.Instance" of the ObjectType field. +func (o *ForecastInstance) GetDefaultObjectType() interface{} { + return "forecast.Instance" +} + // GetAction returns the Action field value if set, zero value otherwise. func (o *ForecastInstance) GetAction() string { if o == nil || IsNil(o.Action) { @@ -188,7 +198,7 @@ func (o *ForecastInstance) GetAltModelOk() ([]float32, bool) { // HasAltModel returns a boolean if a field has been set. func (o *ForecastInstance) HasAltModel() bool { - if o != nil && IsNil(o.AltModel) { + if o != nil && !IsNil(o.AltModel) { return true } @@ -603,7 +613,13 @@ func (o ForecastInstance) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Action) { toSerialize["Action"] = o.Action @@ -661,6 +677,13 @@ func (o *ForecastInstance) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -670,11 +693,23 @@ func (o *ForecastInstance) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type ForecastInstanceWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_forecast_instance_list.go b/model_forecast_instance_list.go index 0a3c5dae30..8a1616cec3 100644 --- a/model_forecast_instance_list.go +++ b/model_forecast_instance_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *ForecastInstanceList) GetResultsOk() ([]ForecastInstance, bool) { // HasResults returns a boolean if a field has been set. func (o *ForecastInstanceList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *ForecastInstanceList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *ForecastInstanceList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type ForecastInstanceListWithoutEmbeddedStruct struct { // The total number of 'forecast.Instance' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_forecast_instance_relationship.go b/model_forecast_instance_relationship.go index 9acca662a8..c6aa7ef927 100644 --- a/model_forecast_instance_relationship.go +++ b/model_forecast_instance_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_forecast_instance_response.go b/model_forecast_instance_response.go index 3bf4cdc90c..a341e24350 100644 --- a/model_forecast_instance_response.go +++ b/model_forecast_instance_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_forecast_model.go b/model_forecast_model.go index 8201a9fff6..1e4e0bb6fe 100644 --- a/model_forecast_model.go +++ b/model_forecast_model.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -85,6 +85,11 @@ func (o *ForecastModel) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "forecast.Model" of the ClassId field. +func (o *ForecastModel) GetDefaultClassId() interface{} { + return "forecast.Model" +} + // GetObjectType returns the ObjectType field value func (o *ForecastModel) GetObjectType() string { if o == nil { @@ -109,6 +114,11 @@ func (o *ForecastModel) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "forecast.Model" of the ObjectType field. +func (o *ForecastModel) GetDefaultObjectType() interface{} { + return "forecast.Model" +} + // GetAccuracy returns the Accuracy field value if set, zero value otherwise. func (o *ForecastModel) GetAccuracy() float32 { if o == nil || IsNil(o.Accuracy) { @@ -162,7 +172,7 @@ func (o *ForecastModel) GetModelDataOk() ([]float32, bool) { // HasModelData returns a boolean if a field has been set. func (o *ForecastModel) HasModelData() bool { - if o != nil && IsNil(o.ModelData) { + if o != nil && !IsNil(o.ModelData) { return true } @@ -224,7 +234,13 @@ func (o ForecastModel) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Accuracy) { toSerialize["Accuracy"] = o.Accuracy @@ -252,6 +268,13 @@ func (o *ForecastModel) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -261,11 +284,23 @@ func (o *ForecastModel) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type ForecastModelWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_graphics_card.go b/model_graphics_card.go index 1012098730..44cb6dbb4d 100644 --- a/model_graphics_card.go +++ b/model_graphics_card.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -128,6 +128,11 @@ func (o *GraphicsCard) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "graphics.Card" of the ClassId field. +func (o *GraphicsCard) GetDefaultClassId() interface{} { + return "graphics.Card" +} + // GetObjectType returns the ObjectType field value func (o *GraphicsCard) GetObjectType() string { if o == nil { @@ -152,6 +157,11 @@ func (o *GraphicsCard) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "graphics.Card" of the ObjectType field. +func (o *GraphicsCard) GetDefaultObjectType() interface{} { + return "graphics.Card" +} + // GetCardId returns the CardId field value if set, zero value otherwise. func (o *GraphicsCard) GetCardId() int64 { if o == nil || IsNil(o.CardId) { @@ -461,7 +471,7 @@ func (o *GraphicsCard) GetOperReasonOk() ([]string, bool) { // HasOperReason returns a boolean if a field has been set. func (o *GraphicsCard) HasOperReason() bool { - if o != nil && IsNil(o.OperReason) { + if o != nil && !IsNil(o.OperReason) { return true } @@ -911,7 +921,7 @@ func (o *GraphicsCard) GetGraphicsControllersOk() ([]GraphicsControllerRelations // HasGraphicsControllers returns a boolean if a field has been set. func (o *GraphicsCard) HasGraphicsControllers() bool { - if o != nil && IsNil(o.GraphicsControllers) { + if o != nil && !IsNil(o.GraphicsControllers) { return true } @@ -1116,7 +1126,7 @@ func (o *GraphicsCard) GetRunningFirmwareOk() ([]FirmwareRunningFirmwareRelation // HasRunningFirmware returns a boolean if a field has been set. func (o *GraphicsCard) HasRunningFirmware() bool { - if o != nil && IsNil(o.RunningFirmware) { + if o != nil && !IsNil(o.RunningFirmware) { return true } @@ -1146,7 +1156,13 @@ func (o GraphicsCard) ToMap() (map[string]interface{}, error) { if errEquipmentBase != nil { return map[string]interface{}{}, errEquipmentBase } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.CardId) { toSerialize["CardId"] = o.CardId @@ -1249,6 +1265,13 @@ func (o *GraphicsCard) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -1258,11 +1281,23 @@ func (o *GraphicsCard) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type GraphicsCardWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_graphics_card_list.go b/model_graphics_card_list.go index e9a0c375ee..999c18cfe4 100644 --- a/model_graphics_card_list.go +++ b/model_graphics_card_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *GraphicsCardList) GetResultsOk() ([]GraphicsCard, bool) { // HasResults returns a boolean if a field has been set. func (o *GraphicsCardList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *GraphicsCardList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *GraphicsCardList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type GraphicsCardListWithoutEmbeddedStruct struct { // The total number of 'graphics.Card' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_graphics_card_relationship.go b/model_graphics_card_relationship.go index 5e84856be2..eb0e5cbc77 100644 --- a/model_graphics_card_relationship.go +++ b/model_graphics_card_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_graphics_card_response.go b/model_graphics_card_response.go index 3b27ce52b3..f00276d926 100644 --- a/model_graphics_card_response.go +++ b/model_graphics_card_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_graphics_controller.go b/model_graphics_controller.go index ded2922543..09588e7c64 100644 --- a/model_graphics_controller.go +++ b/model_graphics_controller.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -89,6 +89,11 @@ func (o *GraphicsController) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "graphics.Controller" of the ClassId field. +func (o *GraphicsController) GetDefaultClassId() interface{} { + return "graphics.Controller" +} + // GetObjectType returns the ObjectType field value func (o *GraphicsController) GetObjectType() string { if o == nil { @@ -113,6 +118,11 @@ func (o *GraphicsController) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "graphics.Controller" of the ObjectType field. +func (o *GraphicsController) GetDefaultObjectType() interface{} { + return "graphics.Controller" +} + // GetControllerId returns the ControllerId field value if set, zero value otherwise. func (o *GraphicsController) GetControllerId() int64 { if o == nil || IsNil(o.ControllerId) { @@ -356,7 +366,13 @@ func (o GraphicsController) ToMap() (map[string]interface{}, error) { if errEquipmentBase != nil { return map[string]interface{}{}, errEquipmentBase } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.ControllerId) { toSerialize["ControllerId"] = o.ControllerId @@ -393,6 +409,13 @@ func (o *GraphicsController) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -402,11 +425,23 @@ func (o *GraphicsController) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type GraphicsControllerWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_graphics_controller_list.go b/model_graphics_controller_list.go index 98c56658e9..939dacb453 100644 --- a/model_graphics_controller_list.go +++ b/model_graphics_controller_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *GraphicsControllerList) GetResultsOk() ([]GraphicsController, bool) { // HasResults returns a boolean if a field has been set. func (o *GraphicsControllerList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *GraphicsControllerList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *GraphicsControllerList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type GraphicsControllerListWithoutEmbeddedStruct struct { // The total number of 'graphics.Controller' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_graphics_controller_relationship.go b/model_graphics_controller_relationship.go index 2937cb5225..9914c41f1a 100644 --- a/model_graphics_controller_relationship.go +++ b/model_graphics_controller_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_graphics_controller_response.go b/model_graphics_controller_response.go index a96714d21e..15a20561ef 100644 --- a/model_graphics_controller_response.go +++ b/model_graphics_controller_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_hcl_compatibility_status.go b/model_hcl_compatibility_status.go index f35b5aa0f9..c551844d69 100644 --- a/model_hcl_compatibility_status.go +++ b/model_hcl_compatibility_status.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -87,6 +87,11 @@ func (o *HclCompatibilityStatus) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "hcl.CompatibilityStatus" of the ClassId field. +func (o *HclCompatibilityStatus) GetDefaultClassId() interface{} { + return "hcl.CompatibilityStatus" +} + // GetObjectType returns the ObjectType field value func (o *HclCompatibilityStatus) GetObjectType() string { if o == nil { @@ -111,6 +116,11 @@ func (o *HclCompatibilityStatus) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "hcl.CompatibilityStatus" of the ObjectType field. +func (o *HclCompatibilityStatus) GetDefaultObjectType() interface{} { + return "hcl.CompatibilityStatus" +} + // GetProfileList returns the ProfileList field value if set, zero value otherwise (both if not set or set to explicit null). func (o *HclCompatibilityStatus) GetProfileList() []HclHardwareCompatibilityProfile { if o == nil { @@ -132,7 +142,7 @@ func (o *HclCompatibilityStatus) GetProfileListOk() ([]HclHardwareCompatibilityP // HasProfileList returns a boolean if a field has been set. func (o *HclCompatibilityStatus) HasProfileList() bool { - if o != nil && IsNil(o.ProfileList) { + if o != nil && !IsNil(o.ProfileList) { return true } @@ -194,7 +204,13 @@ func (o HclCompatibilityStatus) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.ProfileList != nil { toSerialize["ProfileList"] = o.ProfileList @@ -219,6 +235,13 @@ func (o *HclCompatibilityStatus) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -228,11 +251,23 @@ func (o *HclCompatibilityStatus) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type HclCompatibilityStatusWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_hcl_constraint.go b/model_hcl_constraint.go index 500391740e..1965ec0417 100644 --- a/model_hcl_constraint.go +++ b/model_hcl_constraint.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -84,6 +84,11 @@ func (o *HclConstraint) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "hcl.Constraint" of the ClassId field. +func (o *HclConstraint) GetDefaultClassId() interface{} { + return "hcl.Constraint" +} + // GetObjectType returns the ObjectType field value func (o *HclConstraint) GetObjectType() string { if o == nil { @@ -108,6 +113,11 @@ func (o *HclConstraint) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "hcl.Constraint" of the ObjectType field. +func (o *HclConstraint) GetDefaultObjectType() interface{} { + return "hcl.Constraint" +} + // GetConstraintName returns the ConstraintName field value if set, zero value otherwise. func (o *HclConstraint) GetConstraintName() string { if o == nil || IsNil(o.ConstraintName) { @@ -190,7 +200,13 @@ func (o HclConstraint) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.ConstraintName) { toSerialize["ConstraintName"] = o.ConstraintName @@ -215,6 +231,13 @@ func (o *HclConstraint) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -224,11 +247,23 @@ func (o *HclConstraint) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type HclConstraintWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_hcl_driver_image.go b/model_hcl_driver_image.go index ea5e68e125..60cec8eebb 100644 --- a/model_hcl_driver_image.go +++ b/model_hcl_driver_image.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -90,6 +90,11 @@ func (o *HclDriverImage) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "hcl.DriverImage" of the ClassId field. +func (o *HclDriverImage) GetDefaultClassId() interface{} { + return "hcl.DriverImage" +} + // GetObjectType returns the ObjectType field value func (o *HclDriverImage) GetObjectType() string { if o == nil { @@ -114,6 +119,11 @@ func (o *HclDriverImage) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "hcl.DriverImage" of the ObjectType field. +func (o *HclDriverImage) GetDefaultObjectType() interface{} { + return "hcl.DriverImage" +} + // GetDriverIsoUrl returns the DriverIsoUrl field value if set, zero value otherwise. func (o *HclDriverImage) GetDriverIsoUrl() string { if o == nil || IsNil(o.DriverIsoUrl) { @@ -228,7 +238,13 @@ func (o HclDriverImage) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.DriverIsoUrl) { toSerialize["DriverIsoUrl"] = o.DriverIsoUrl @@ -256,6 +272,13 @@ func (o *HclDriverImage) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -265,11 +288,23 @@ func (o *HclDriverImage) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type HclDriverImageWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_hcl_driver_image_list.go b/model_hcl_driver_image_list.go index 5358f2e0aa..df2776c517 100644 --- a/model_hcl_driver_image_list.go +++ b/model_hcl_driver_image_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *HclDriverImageList) GetResultsOk() ([]HclDriverImage, bool) { // HasResults returns a boolean if a field has been set. func (o *HclDriverImageList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *HclDriverImageList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *HclDriverImageList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type HclDriverImageListWithoutEmbeddedStruct struct { // The total number of 'hcl.DriverImage' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_hcl_driver_image_response.go b/model_hcl_driver_image_response.go index f7d46e83cc..eaa4cc4c2e 100644 --- a/model_hcl_driver_image_response.go +++ b/model_hcl_driver_image_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_hcl_exempted_catalog.go b/model_hcl_exempted_catalog.go index 8b589099b4..c04a2eacff 100644 --- a/model_hcl_exempted_catalog.go +++ b/model_hcl_exempted_catalog.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -105,6 +105,11 @@ func (o *HclExemptedCatalog) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "hcl.ExemptedCatalog" of the ClassId field. +func (o *HclExemptedCatalog) GetDefaultClassId() interface{} { + return "hcl.ExemptedCatalog" +} + // GetObjectType returns the ObjectType field value func (o *HclExemptedCatalog) GetObjectType() string { if o == nil { @@ -129,6 +134,11 @@ func (o *HclExemptedCatalog) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "hcl.ExemptedCatalog" of the ObjectType field. +func (o *HclExemptedCatalog) GetDefaultObjectType() interface{} { + return "hcl.ExemptedCatalog" +} + // GetComments returns the Comments field value if set, zero value otherwise. func (o *HclExemptedCatalog) GetComments() string { if o == nil || IsNil(o.Comments) { @@ -342,7 +352,7 @@ func (o *HclExemptedCatalog) GetProductModelsOk() ([]string, bool) { // HasProductModels returns a boolean if a field has been set. func (o *HclExemptedCatalog) HasProductModels() bool { - if o != nil && IsNil(o.ProductModels) { + if o != nil && !IsNil(o.ProductModels) { return true } @@ -500,7 +510,13 @@ func (o HclExemptedCatalog) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Comments) { toSerialize["Comments"] = o.Comments @@ -552,6 +568,13 @@ func (o *HclExemptedCatalog) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -561,11 +584,23 @@ func (o *HclExemptedCatalog) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type HclExemptedCatalogWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_hcl_exempted_catalog_list.go b/model_hcl_exempted_catalog_list.go index 5dcb239408..a635285cbc 100644 --- a/model_hcl_exempted_catalog_list.go +++ b/model_hcl_exempted_catalog_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *HclExemptedCatalogList) GetResultsOk() ([]HclExemptedCatalog, bool) { // HasResults returns a boolean if a field has been set. func (o *HclExemptedCatalogList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *HclExemptedCatalogList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *HclExemptedCatalogList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type HclExemptedCatalogListWithoutEmbeddedStruct struct { // The total number of 'hcl.ExemptedCatalog' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_hcl_exempted_catalog_response.go b/model_hcl_exempted_catalog_response.go index a488328584..078202b80e 100644 --- a/model_hcl_exempted_catalog_response.go +++ b/model_hcl_exempted_catalog_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_hcl_firmware.go b/model_hcl_firmware.go index ecf2539937..d646f254a7 100644 --- a/model_hcl_firmware.go +++ b/model_hcl_firmware.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -94,6 +94,11 @@ func (o *HclFirmware) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "hcl.Firmware" of the ClassId field. +func (o *HclFirmware) GetDefaultClassId() interface{} { + return "hcl.Firmware" +} + // GetObjectType returns the ObjectType field value func (o *HclFirmware) GetObjectType() string { if o == nil { @@ -118,6 +123,11 @@ func (o *HclFirmware) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "hcl.Firmware" of the ObjectType field. +func (o *HclFirmware) GetDefaultObjectType() interface{} { + return "hcl.Firmware" +} + // GetDriverName returns the DriverName field value if set, zero value otherwise. func (o *HclFirmware) GetDriverName() string { if o == nil || IsNil(o.DriverName) { @@ -360,7 +370,13 @@ func (o HclFirmware) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.DriverName) { toSerialize["DriverName"] = o.DriverName @@ -400,6 +416,13 @@ func (o *HclFirmware) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -409,11 +432,23 @@ func (o *HclFirmware) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type HclFirmwareWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_hcl_hardware_compatibility_profile.go b/model_hcl_hardware_compatibility_profile.go index 923203ecf2..2581e1f6e3 100644 --- a/model_hcl_hardware_compatibility_profile.go +++ b/model_hcl_hardware_compatibility_profile.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -107,6 +107,11 @@ func (o *HclHardwareCompatibilityProfile) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "hcl.HardwareCompatibilityProfile" of the ClassId field. +func (o *HclHardwareCompatibilityProfile) GetDefaultClassId() interface{} { + return "hcl.HardwareCompatibilityProfile" +} + // GetObjectType returns the ObjectType field value func (o *HclHardwareCompatibilityProfile) GetObjectType() string { if o == nil { @@ -131,6 +136,11 @@ func (o *HclHardwareCompatibilityProfile) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "hcl.HardwareCompatibilityProfile" of the ObjectType field. +func (o *HclHardwareCompatibilityProfile) GetDefaultObjectType() interface{} { + return "hcl.HardwareCompatibilityProfile" +} + // GetDriverIsoUrl returns the DriverIsoUrl field value if set, zero value otherwise. func (o *HclHardwareCompatibilityProfile) GetDriverIsoUrl() string { if o == nil || IsNil(o.DriverIsoUrl) { @@ -376,7 +386,7 @@ func (o *HclHardwareCompatibilityProfile) GetProductsOk() ([]HclProduct, bool) { // HasProducts returns a boolean if a field has been set. func (o *HclHardwareCompatibilityProfile) HasProducts() bool { - if o != nil && IsNil(o.Products) { + if o != nil && !IsNil(o.Products) { return true } @@ -534,7 +544,13 @@ func (o HclHardwareCompatibilityProfile) ToMap() (map[string]interface{}, error) if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.DriverIsoUrl) { toSerialize["DriverIsoUrl"] = o.DriverIsoUrl @@ -589,6 +605,13 @@ func (o *HclHardwareCompatibilityProfile) UnmarshalJSON(data []byte) (err error) "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -598,11 +621,23 @@ func (o *HclHardwareCompatibilityProfile) UnmarshalJSON(data []byte) (err error) } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type HclHardwareCompatibilityProfileWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_hcl_hw_catalog_info.go b/model_hcl_hw_catalog_info.go index f3bd6e6575..aedaa2ad4e 100644 --- a/model_hcl_hw_catalog_info.go +++ b/model_hcl_hw_catalog_info.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -86,6 +86,11 @@ func (o *HclHwCatalogInfo) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "hcl.HwCatalogInfo" of the ClassId field. +func (o *HclHwCatalogInfo) GetDefaultClassId() interface{} { + return "hcl.HwCatalogInfo" +} + // GetObjectType returns the ObjectType field value func (o *HclHwCatalogInfo) GetObjectType() string { if o == nil { @@ -110,6 +115,11 @@ func (o *HclHwCatalogInfo) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "hcl.HwCatalogInfo" of the ObjectType field. +func (o *HclHwCatalogInfo) GetDefaultObjectType() interface{} { + return "hcl.HwCatalogInfo" +} + // GetServerModel returns the ServerModel field value if set, zero value otherwise. func (o *HclHwCatalogInfo) GetServerModel() string { if o == nil || IsNil(o.ServerModel) { @@ -195,7 +205,7 @@ func (o *HclHwCatalogInfo) GetServerHwCatalogInfoOk() ([]HclServerHwCatalogInfoR // HasServerHwCatalogInfo returns a boolean if a field has been set. func (o *HclHwCatalogInfo) HasServerHwCatalogInfo() bool { - if o != nil && IsNil(o.ServerHwCatalogInfo) { + if o != nil && !IsNil(o.ServerHwCatalogInfo) { return true } @@ -225,7 +235,13 @@ func (o HclHwCatalogInfo) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.ServerModel) { toSerialize["ServerModel"] = o.ServerModel @@ -253,6 +269,13 @@ func (o *HclHwCatalogInfo) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -262,11 +285,23 @@ func (o *HclHwCatalogInfo) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type HclHwCatalogInfoWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_hcl_hw_catalog_info_list.go b/model_hcl_hw_catalog_info_list.go index 1959cdb4e6..5973ddd06b 100644 --- a/model_hcl_hw_catalog_info_list.go +++ b/model_hcl_hw_catalog_info_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *HclHwCatalogInfoList) GetResultsOk() ([]HclHwCatalogInfo, bool) { // HasResults returns a boolean if a field has been set. func (o *HclHwCatalogInfoList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *HclHwCatalogInfoList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *HclHwCatalogInfoList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type HclHwCatalogInfoListWithoutEmbeddedStruct struct { // The total number of 'hcl.HwCatalogInfo' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_hcl_hw_catalog_info_relationship.go b/model_hcl_hw_catalog_info_relationship.go index afa560addc..fea8d357b8 100644 --- a/model_hcl_hw_catalog_info_relationship.go +++ b/model_hcl_hw_catalog_info_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_hcl_hw_catalog_info_response.go b/model_hcl_hw_catalog_info_response.go index 517ba2f16a..cf05d030c9 100644 --- a/model_hcl_hw_catalog_info_response.go +++ b/model_hcl_hw_catalog_info_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_hcl_hyperflex_software_compatibility_info.go b/model_hcl_hyperflex_software_compatibility_info.go index 1e31f9f599..3b47192c95 100644 --- a/model_hcl_hyperflex_software_compatibility_info.go +++ b/model_hcl_hyperflex_software_compatibility_info.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -100,6 +100,11 @@ func (o *HclHyperflexSoftwareCompatibilityInfo) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "hcl.HyperflexSoftwareCompatibilityInfo" of the ClassId field. +func (o *HclHyperflexSoftwareCompatibilityInfo) GetDefaultClassId() interface{} { + return "hcl.HyperflexSoftwareCompatibilityInfo" +} + // GetObjectType returns the ObjectType field value func (o *HclHyperflexSoftwareCompatibilityInfo) GetObjectType() string { if o == nil { @@ -124,6 +129,11 @@ func (o *HclHyperflexSoftwareCompatibilityInfo) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "hcl.HyperflexSoftwareCompatibilityInfo" of the ObjectType field. +func (o *HclHyperflexSoftwareCompatibilityInfo) GetDefaultObjectType() interface{} { + return "hcl.HyperflexSoftwareCompatibilityInfo" +} + // GetConstraints returns the Constraints field value if set, zero value otherwise (both if not set or set to explicit null). func (o *HclHyperflexSoftwareCompatibilityInfo) GetConstraints() []HclConstraint { if o == nil { @@ -145,7 +155,7 @@ func (o *HclHyperflexSoftwareCompatibilityInfo) GetConstraintsOk() ([]HclConstra // HasConstraints returns a boolean if a field has been set. func (o *HclHyperflexSoftwareCompatibilityInfo) HasConstraints() bool { - if o != nil && IsNil(o.Constraints) { + if o != nil && !IsNil(o.Constraints) { return true } @@ -442,7 +452,13 @@ func (o HclHyperflexSoftwareCompatibilityInfo) ToMap() (map[string]interface{}, if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.Constraints != nil { toSerialize["Constraints"] = o.Constraints @@ -488,6 +504,13 @@ func (o *HclHyperflexSoftwareCompatibilityInfo) UnmarshalJSON(data []byte) (err "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -497,11 +520,23 @@ func (o *HclHyperflexSoftwareCompatibilityInfo) UnmarshalJSON(data []byte) (err } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type HclHyperflexSoftwareCompatibilityInfoWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_hcl_hyperflex_software_compatibility_info_list.go b/model_hcl_hyperflex_software_compatibility_info_list.go index fac6caf6be..910da3bebb 100644 --- a/model_hcl_hyperflex_software_compatibility_info_list.go +++ b/model_hcl_hyperflex_software_compatibility_info_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *HclHyperflexSoftwareCompatibilityInfoList) GetResultsOk() ([]HclHyperfl // HasResults returns a boolean if a field has been set. func (o *HclHyperflexSoftwareCompatibilityInfoList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *HclHyperflexSoftwareCompatibilityInfoList) UnmarshalJSON(data []byte) ( "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *HclHyperflexSoftwareCompatibilityInfoList) UnmarshalJSON(data []byte) ( } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type HclHyperflexSoftwareCompatibilityInfoListWithoutEmbeddedStruct struct { // The total number of 'hcl.HyperflexSoftwareCompatibilityInfo' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_hcl_hyperflex_software_compatibility_info_relationship.go b/model_hcl_hyperflex_software_compatibility_info_relationship.go index 2f2ed9f5ea..3fab7cf772 100644 --- a/model_hcl_hyperflex_software_compatibility_info_relationship.go +++ b/model_hcl_hyperflex_software_compatibility_info_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_hcl_hyperflex_software_compatibility_info_response.go b/model_hcl_hyperflex_software_compatibility_info_response.go index cb66affeaf..48f99965e2 100644 --- a/model_hcl_hyperflex_software_compatibility_info_response.go +++ b/model_hcl_hyperflex_software_compatibility_info_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_hcl_operating_system.go b/model_hcl_operating_system.go index a37a78f4cb..7ff351cfe6 100644 --- a/model_hcl_operating_system.go +++ b/model_hcl_operating_system.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -83,6 +83,11 @@ func (o *HclOperatingSystem) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "hcl.OperatingSystem" of the ClassId field. +func (o *HclOperatingSystem) GetDefaultClassId() interface{} { + return "hcl.OperatingSystem" +} + // GetObjectType returns the ObjectType field value func (o *HclOperatingSystem) GetObjectType() string { if o == nil { @@ -107,6 +112,11 @@ func (o *HclOperatingSystem) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "hcl.OperatingSystem" of the ObjectType field. +func (o *HclOperatingSystem) GetDefaultObjectType() interface{} { + return "hcl.OperatingSystem" +} + // GetVersion returns the Version field value if set, zero value otherwise. func (o *HclOperatingSystem) GetVersion() string { if o == nil || IsNil(o.Version) { @@ -200,7 +210,13 @@ func (o HclOperatingSystem) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Version) { toSerialize["Version"] = o.Version @@ -225,6 +241,13 @@ func (o *HclOperatingSystem) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -234,11 +257,23 @@ func (o *HclOperatingSystem) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type HclOperatingSystemWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_hcl_operating_system_list.go b/model_hcl_operating_system_list.go index 21352dde9c..e2fee42697 100644 --- a/model_hcl_operating_system_list.go +++ b/model_hcl_operating_system_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *HclOperatingSystemList) GetResultsOk() ([]HclOperatingSystem, bool) { // HasResults returns a boolean if a field has been set. func (o *HclOperatingSystemList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *HclOperatingSystemList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *HclOperatingSystemList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type HclOperatingSystemListWithoutEmbeddedStruct struct { // The total number of 'hcl.OperatingSystem' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_hcl_operating_system_relationship.go b/model_hcl_operating_system_relationship.go index 5766804823..9179332465 100644 --- a/model_hcl_operating_system_relationship.go +++ b/model_hcl_operating_system_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_hcl_operating_system_response.go b/model_hcl_operating_system_response.go index 7cf58c9ac7..76dab9918f 100644 --- a/model_hcl_operating_system_response.go +++ b/model_hcl_operating_system_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_hcl_operating_system_vendor.go b/model_hcl_operating_system_vendor.go index 6efc1c63eb..61d3d8a3e2 100644 --- a/model_hcl_operating_system_vendor.go +++ b/model_hcl_operating_system_vendor.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -82,6 +82,11 @@ func (o *HclOperatingSystemVendor) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "hcl.OperatingSystemVendor" of the ClassId field. +func (o *HclOperatingSystemVendor) GetDefaultClassId() interface{} { + return "hcl.OperatingSystemVendor" +} + // GetObjectType returns the ObjectType field value func (o *HclOperatingSystemVendor) GetObjectType() string { if o == nil { @@ -106,6 +111,11 @@ func (o *HclOperatingSystemVendor) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "hcl.OperatingSystemVendor" of the ObjectType field. +func (o *HclOperatingSystemVendor) GetDefaultObjectType() interface{} { + return "hcl.OperatingSystemVendor" +} + // GetName returns the Name field value if set, zero value otherwise. func (o *HclOperatingSystemVendor) GetName() string { if o == nil || IsNil(o.Name) { @@ -156,7 +166,13 @@ func (o HclOperatingSystemVendor) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Name) { toSerialize["Name"] = o.Name @@ -178,6 +194,13 @@ func (o *HclOperatingSystemVendor) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -187,11 +210,23 @@ func (o *HclOperatingSystemVendor) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type HclOperatingSystemVendorWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_hcl_operating_system_vendor_list.go b/model_hcl_operating_system_vendor_list.go index 81e84fb8c7..de696f3e0a 100644 --- a/model_hcl_operating_system_vendor_list.go +++ b/model_hcl_operating_system_vendor_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *HclOperatingSystemVendorList) GetResultsOk() ([]HclOperatingSystemVendo // HasResults returns a boolean if a field has been set. func (o *HclOperatingSystemVendorList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *HclOperatingSystemVendorList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *HclOperatingSystemVendorList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type HclOperatingSystemVendorListWithoutEmbeddedStruct struct { // The total number of 'hcl.OperatingSystemVendor' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_hcl_operating_system_vendor_relationship.go b/model_hcl_operating_system_vendor_relationship.go index 50b3deaa3c..7dc9969cba 100644 --- a/model_hcl_operating_system_vendor_relationship.go +++ b/model_hcl_operating_system_vendor_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_hcl_operating_system_vendor_response.go b/model_hcl_operating_system_vendor_response.go index d1f847845e..c2e89a4a40 100644 --- a/model_hcl_operating_system_vendor_response.go +++ b/model_hcl_operating_system_vendor_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_hcl_product.go b/model_hcl_product.go index c02a103bf7..df1a150fc1 100644 --- a/model_hcl_product.go +++ b/model_hcl_product.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -98,6 +98,11 @@ func (o *HclProduct) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "hcl.Product" of the ClassId field. +func (o *HclProduct) GetDefaultClassId() interface{} { + return "hcl.Product" +} + // GetObjectType returns the ObjectType field value func (o *HclProduct) GetObjectType() string { if o == nil { @@ -122,6 +127,11 @@ func (o *HclProduct) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "hcl.Product" of the ObjectType field. +func (o *HclProduct) GetDefaultObjectType() interface{} { + return "hcl.Product" +} + // GetDriverNames returns the DriverNames field value if set, zero value otherwise (both if not set or set to explicit null). func (o *HclProduct) GetDriverNames() []string { if o == nil { @@ -143,7 +153,7 @@ func (o *HclProduct) GetDriverNamesOk() ([]string, bool) { // HasDriverNames returns a boolean if a field has been set. func (o *HclProduct) HasDriverNames() bool { - if o != nil && IsNil(o.DriverNames) { + if o != nil && !IsNil(o.DriverNames) { return true } @@ -208,7 +218,7 @@ func (o *HclProduct) GetFirmwaresOk() ([]HclFirmware, bool) { // HasFirmwares returns a boolean if a field has been set. func (o *HclProduct) HasFirmwares() bool { - if o != nil && IsNil(o.Firmwares) { + if o != nil && !IsNil(o.Firmwares) { return true } @@ -398,7 +408,13 @@ func (o HclProduct) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.DriverNames != nil { toSerialize["DriverNames"] = o.DriverNames @@ -441,6 +457,13 @@ func (o *HclProduct) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -450,11 +473,23 @@ func (o *HclProduct) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type HclProductWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_hcl_server_hw_catalog_info.go b/model_hcl_server_hw_catalog_info.go index f0ae84b4c0..bdf7f5378b 100644 --- a/model_hcl_server_hw_catalog_info.go +++ b/model_hcl_server_hw_catalog_info.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -93,6 +93,11 @@ func (o *HclServerHwCatalogInfo) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "hcl.ServerHwCatalogInfo" of the ClassId field. +func (o *HclServerHwCatalogInfo) GetDefaultClassId() interface{} { + return "hcl.ServerHwCatalogInfo" +} + // GetObjectType returns the ObjectType field value func (o *HclServerHwCatalogInfo) GetObjectType() string { if o == nil { @@ -117,6 +122,11 @@ func (o *HclServerHwCatalogInfo) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "hcl.ServerHwCatalogInfo" of the ObjectType field. +func (o *HclServerHwCatalogInfo) GetDefaultObjectType() interface{} { + return "hcl.ServerHwCatalogInfo" +} + // GetConstraints returns the Constraints field value if set, zero value otherwise (both if not set or set to explicit null). func (o *HclServerHwCatalogInfo) GetConstraints() []HclConstraint { if o == nil { @@ -138,7 +148,7 @@ func (o *HclServerHwCatalogInfo) GetConstraintsOk() ([]HclConstraint, bool) { // HasConstraints returns a boolean if a field has been set. func (o *HclServerHwCatalogInfo) HasConstraints() bool { - if o != nil && IsNil(o.Constraints) { + if o != nil && !IsNil(o.Constraints) { return true } @@ -299,7 +309,7 @@ func (o *HclServerHwCatalogInfo) GetValueOk() (*interface{}, bool) { // HasValue returns a boolean if a field has been set. func (o *HclServerHwCatalogInfo) HasValue() bool { - if o != nil && IsNil(o.Value) { + if o != nil && !IsNil(o.Value) { return true } @@ -332,7 +342,7 @@ func (o *HclServerHwCatalogInfo) GetServerHwInfoOk() ([]HclServerHwCatalogInfoRe // HasServerHwInfo returns a boolean if a field has been set. func (o *HclServerHwCatalogInfo) HasServerHwInfo() bool { - if o != nil && IsNil(o.ServerHwInfo) { + if o != nil && !IsNil(o.ServerHwInfo) { return true } @@ -362,7 +372,13 @@ func (o HclServerHwCatalogInfo) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.Constraints != nil { toSerialize["Constraints"] = o.Constraints @@ -402,6 +418,13 @@ func (o *HclServerHwCatalogInfo) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -411,11 +434,23 @@ func (o *HclServerHwCatalogInfo) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type HclServerHwCatalogInfoWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_hcl_server_hw_catalog_info_list.go b/model_hcl_server_hw_catalog_info_list.go index d881960c0c..73ac996407 100644 --- a/model_hcl_server_hw_catalog_info_list.go +++ b/model_hcl_server_hw_catalog_info_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *HclServerHwCatalogInfoList) GetResultsOk() ([]HclServerHwCatalogInfo, b // HasResults returns a boolean if a field has been set. func (o *HclServerHwCatalogInfoList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *HclServerHwCatalogInfoList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *HclServerHwCatalogInfoList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type HclServerHwCatalogInfoListWithoutEmbeddedStruct struct { // The total number of 'hcl.ServerHwCatalogInfo' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_hcl_server_hw_catalog_info_relationship.go b/model_hcl_server_hw_catalog_info_relationship.go index db26b6fa76..7b0e5c459f 100644 --- a/model_hcl_server_hw_catalog_info_relationship.go +++ b/model_hcl_server_hw_catalog_info_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_hcl_server_hw_catalog_info_response.go b/model_hcl_server_hw_catalog_info_response.go index 758b907a58..5f0ddb35b5 100644 --- a/model_hcl_server_hw_catalog_info_response.go +++ b/model_hcl_server_hw_catalog_info_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_hcl_supported_driver_name.go b/model_hcl_supported_driver_name.go index 7d74813353..a9b0717b7d 100644 --- a/model_hcl_supported_driver_name.go +++ b/model_hcl_supported_driver_name.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -85,6 +85,11 @@ func (o *HclSupportedDriverName) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "hcl.SupportedDriverName" of the ClassId field. +func (o *HclSupportedDriverName) GetDefaultClassId() interface{} { + return "hcl.SupportedDriverName" +} + // GetObjectType returns the ObjectType field value func (o *HclSupportedDriverName) GetObjectType() string { if o == nil { @@ -109,6 +114,11 @@ func (o *HclSupportedDriverName) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "hcl.SupportedDriverName" of the ObjectType field. +func (o *HclSupportedDriverName) GetDefaultObjectType() interface{} { + return "hcl.SupportedDriverName" +} + // GetOsVendor returns the OsVendor field value if set, zero value otherwise. func (o *HclSupportedDriverName) GetOsVendor() string { if o == nil || IsNil(o.OsVendor) { @@ -194,7 +204,7 @@ func (o *HclSupportedDriverName) GetProductListOk() ([]HclProduct, bool) { // HasProductList returns a boolean if a field has been set. func (o *HclSupportedDriverName) HasProductList() bool { - if o != nil && IsNil(o.ProductList) { + if o != nil && !IsNil(o.ProductList) { return true } @@ -224,7 +234,13 @@ func (o HclSupportedDriverName) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.OsVendor) { toSerialize["OsVendor"] = o.OsVendor @@ -252,6 +268,13 @@ func (o *HclSupportedDriverName) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -261,11 +284,23 @@ func (o *HclSupportedDriverName) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type HclSupportedDriverNameWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_hyperflex_abstract_app_setting.go b/model_hyperflex_abstract_app_setting.go index 362e3441c9..dd271f1581 100644 --- a/model_hyperflex_abstract_app_setting.go +++ b/model_hyperflex_abstract_app_setting.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -211,6 +211,10 @@ func (o *HyperflexAbstractAppSetting) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -220,11 +224,23 @@ func (o *HyperflexAbstractAppSetting) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type HyperflexAbstractAppSettingWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. The enum values provides the list of concrete types that can be instantiated from this abstract type. ClassId string `json:"ClassId"` diff --git a/model_hyperflex_alarm.go b/model_hyperflex_alarm.go index 2e3e9efc20..5b3b230dee 100644 --- a/model_hyperflex_alarm.go +++ b/model_hyperflex_alarm.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -113,6 +113,11 @@ func (o *HyperflexAlarm) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "hyperflex.Alarm" of the ClassId field. +func (o *HyperflexAlarm) GetDefaultClassId() interface{} { + return "hyperflex.Alarm" +} + // GetObjectType returns the ObjectType field value func (o *HyperflexAlarm) GetObjectType() string { if o == nil { @@ -137,6 +142,11 @@ func (o *HyperflexAlarm) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "hyperflex.Alarm" of the ObjectType field. +func (o *HyperflexAlarm) GetDefaultObjectType() interface{} { + return "hyperflex.Alarm" +} + // GetAcknowledged returns the Acknowledged field value if set, zero value otherwise. func (o *HyperflexAlarm) GetAcknowledged() bool { if o == nil || IsNil(o.Acknowledged) { @@ -638,7 +648,7 @@ func (o *HyperflexAlarm) GetAncestorMosOk() ([]InfraBaseClusterRelationship, boo // HasAncestorMos returns a boolean if a field has been set. func (o *HyperflexAlarm) HasAncestorMos() bool { - if o != nil && IsNil(o.AncestorMos) { + if o != nil && !IsNil(o.AncestorMos) { return true } @@ -711,7 +721,13 @@ func (o HyperflexAlarm) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Acknowledged) { toSerialize["Acknowledged"] = o.Acknowledged @@ -781,6 +797,13 @@ func (o *HyperflexAlarm) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -790,11 +813,23 @@ func (o *HyperflexAlarm) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type HyperflexAlarmWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_hyperflex_alarm_list.go b/model_hyperflex_alarm_list.go index 303b280165..744f9932ad 100644 --- a/model_hyperflex_alarm_list.go +++ b/model_hyperflex_alarm_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *HyperflexAlarmList) GetResultsOk() ([]HyperflexAlarm, bool) { // HasResults returns a boolean if a field has been set. func (o *HyperflexAlarmList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *HyperflexAlarmList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *HyperflexAlarmList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type HyperflexAlarmListWithoutEmbeddedStruct struct { // The total number of 'hyperflex.Alarm' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_hyperflex_alarm_relationship.go b/model_hyperflex_alarm_relationship.go index 3ea5e1ebb3..4f9d8d8b14 100644 --- a/model_hyperflex_alarm_relationship.go +++ b/model_hyperflex_alarm_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_hyperflex_alarm_response.go b/model_hyperflex_alarm_response.go index a0e070e51e..3cfe52c342 100644 --- a/model_hyperflex_alarm_response.go +++ b/model_hyperflex_alarm_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_hyperflex_alarm_summary.go b/model_hyperflex_alarm_summary.go index 481c5b2c0c..2921f10a28 100644 --- a/model_hyperflex_alarm_summary.go +++ b/model_hyperflex_alarm_summary.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -88,6 +88,11 @@ func (o *HyperflexAlarmSummary) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "hyperflex.AlarmSummary" of the ClassId field. +func (o *HyperflexAlarmSummary) GetDefaultClassId() interface{} { + return "hyperflex.AlarmSummary" +} + // GetObjectType returns the ObjectType field value func (o *HyperflexAlarmSummary) GetObjectType() string { if o == nil { @@ -112,6 +117,11 @@ func (o *HyperflexAlarmSummary) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "hyperflex.AlarmSummary" of the ObjectType field. +func (o *HyperflexAlarmSummary) GetDefaultObjectType() interface{} { + return "hyperflex.AlarmSummary" +} + // GetCritical returns the Critical field value if set, zero value otherwise. func (o *HyperflexAlarmSummary) GetCritical() int64 { if o == nil || IsNil(o.Critical) { @@ -258,7 +268,13 @@ func (o HyperflexAlarmSummary) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Critical) { toSerialize["Critical"] = o.Critical @@ -289,6 +305,13 @@ func (o *HyperflexAlarmSummary) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -298,11 +321,23 @@ func (o *HyperflexAlarmSummary) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type HyperflexAlarmSummaryWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_hyperflex_app_catalog.go b/model_hyperflex_app_catalog.go index 16c4fb646d..f647ddc978 100644 --- a/model_hyperflex_app_catalog.go +++ b/model_hyperflex_app_catalog.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -94,6 +94,11 @@ func (o *HyperflexAppCatalog) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "hyperflex.AppCatalog" of the ClassId field. +func (o *HyperflexAppCatalog) GetDefaultClassId() interface{} { + return "hyperflex.AppCatalog" +} + // GetObjectType returns the ObjectType field value func (o *HyperflexAppCatalog) GetObjectType() string { if o == nil { @@ -118,6 +123,11 @@ func (o *HyperflexAppCatalog) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "hyperflex.AppCatalog" of the ObjectType field. +func (o *HyperflexAppCatalog) GetDefaultObjectType() interface{} { + return "hyperflex.AppCatalog" +} + // GetVersion returns the Version field value if set, zero value otherwise. func (o *HyperflexAppCatalog) GetVersion() string { if o == nil || IsNil(o.Version) { @@ -257,7 +267,7 @@ func (o *HyperflexAppCatalog) GetHxdpVersionsOk() ([]HyperflexHxdpVersionRelatio // HasHxdpVersions returns a boolean if a field has been set. func (o *HyperflexAppCatalog) HasHxdpVersions() bool { - if o != nil && IsNil(o.HxdpVersions) { + if o != nil && !IsNil(o.HxdpVersions) { return true } @@ -290,7 +300,7 @@ func (o *HyperflexAppCatalog) GetHyperflexCapabilityInfosOk() ([]HyperflexCapabi // HasHyperflexCapabilityInfos returns a boolean if a field has been set. func (o *HyperflexAppCatalog) HasHyperflexCapabilityInfos() bool { - if o != nil && IsNil(o.HyperflexCapabilityInfos) { + if o != nil && !IsNil(o.HyperflexCapabilityInfos) { return true } @@ -323,7 +333,7 @@ func (o *HyperflexAppCatalog) GetHyperflexSoftwareCompatibilityInfosOk() ([]HclH // HasHyperflexSoftwareCompatibilityInfos returns a boolean if a field has been set. func (o *HyperflexAppCatalog) HasHyperflexSoftwareCompatibilityInfos() bool { - if o != nil && IsNil(o.HyperflexSoftwareCompatibilityInfos) { + if o != nil && !IsNil(o.HyperflexSoftwareCompatibilityInfos) { return true } @@ -442,7 +452,7 @@ func (o *HyperflexAppCatalog) GetSoftwareDistributionsOk() ([]HyperflexSoftwareD // HasSoftwareDistributions returns a boolean if a field has been set. func (o *HyperflexAppCatalog) HasSoftwareDistributions() bool { - if o != nil && IsNil(o.SoftwareDistributions) { + if o != nil && !IsNil(o.SoftwareDistributions) { return true } @@ -472,7 +482,13 @@ func (o HyperflexAppCatalog) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Version) { toSerialize["Version"] = o.Version @@ -518,6 +534,13 @@ func (o *HyperflexAppCatalog) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -527,11 +550,23 @@ func (o *HyperflexAppCatalog) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type HyperflexAppCatalogWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_hyperflex_app_catalog_list.go b/model_hyperflex_app_catalog_list.go index 19fd181015..07ef9fbc00 100644 --- a/model_hyperflex_app_catalog_list.go +++ b/model_hyperflex_app_catalog_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *HyperflexAppCatalogList) GetResultsOk() ([]HyperflexAppCatalog, bool) { // HasResults returns a boolean if a field has been set. func (o *HyperflexAppCatalogList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *HyperflexAppCatalogList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *HyperflexAppCatalogList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type HyperflexAppCatalogListWithoutEmbeddedStruct struct { // The total number of 'hyperflex.AppCatalog' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_hyperflex_app_catalog_relationship.go b/model_hyperflex_app_catalog_relationship.go index f4b3083ff9..1e9f4baa97 100644 --- a/model_hyperflex_app_catalog_relationship.go +++ b/model_hyperflex_app_catalog_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_hyperflex_app_catalog_response.go b/model_hyperflex_app_catalog_response.go index d09629c931..b32b47a3e8 100644 --- a/model_hyperflex_app_catalog_response.go +++ b/model_hyperflex_app_catalog_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_hyperflex_app_setting_constraint.go b/model_hyperflex_app_setting_constraint.go index 19804a8892..0b6843a1b1 100644 --- a/model_hyperflex_app_setting_constraint.go +++ b/model_hyperflex_app_setting_constraint.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -102,6 +102,11 @@ func (o *HyperflexAppSettingConstraint) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "hyperflex.AppSettingConstraint" of the ClassId field. +func (o *HyperflexAppSettingConstraint) GetDefaultClassId() interface{} { + return "hyperflex.AppSettingConstraint" +} + // GetObjectType returns the ObjectType field value func (o *HyperflexAppSettingConstraint) GetObjectType() string { if o == nil { @@ -126,6 +131,11 @@ func (o *HyperflexAppSettingConstraint) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "hyperflex.AppSettingConstraint" of the ObjectType field. +func (o *HyperflexAppSettingConstraint) GetDefaultObjectType() interface{} { + return "hyperflex.AppSettingConstraint" +} + // GetDeploymentType returns the DeploymentType field value if set, zero value otherwise. func (o *HyperflexAppSettingConstraint) GetDeploymentType() string { if o == nil || IsNil(o.DeploymentType) { @@ -304,7 +314,13 @@ func (o HyperflexAppSettingConstraint) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.DeploymentType) { toSerialize["DeploymentType"] = o.DeploymentType @@ -338,6 +354,13 @@ func (o *HyperflexAppSettingConstraint) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -347,11 +370,23 @@ func (o *HyperflexAppSettingConstraint) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type HyperflexAppSettingConstraintWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_hyperflex_auto_support_policy.go b/model_hyperflex_auto_support_policy.go index 4ed14b2565..a4a980aa6a 100644 --- a/model_hyperflex_auto_support_policy.go +++ b/model_hyperflex_auto_support_policy.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -31,7 +31,7 @@ type HyperflexAutoSupportPolicy struct { // Enable or disable Auto-Support. AdminState *bool `json:"AdminState,omitempty"` // The recipient email address for support tickets. - ServiceTicketReceipient *string `json:"ServiceTicketReceipient,omitempty"` + ServiceTicketReceipient *string "json:\"ServiceTicketReceipient,omitempty\" validate:\"regexp=^$|^[a-zA-Z0-9.!#$%&'*+\\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\\\\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$\"" // An array of relationships to hyperflexClusterProfile resources. ClusterProfiles []HyperflexClusterProfileRelationship `json:"ClusterProfiles,omitempty"` Organization NullableOrganizationOrganizationRelationship `json:"Organization,omitempty"` @@ -91,6 +91,11 @@ func (o *HyperflexAutoSupportPolicy) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "hyperflex.AutoSupportPolicy" of the ClassId field. +func (o *HyperflexAutoSupportPolicy) GetDefaultClassId() interface{} { + return "hyperflex.AutoSupportPolicy" +} + // GetObjectType returns the ObjectType field value func (o *HyperflexAutoSupportPolicy) GetObjectType() string { if o == nil { @@ -115,6 +120,11 @@ func (o *HyperflexAutoSupportPolicy) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "hyperflex.AutoSupportPolicy" of the ObjectType field. +func (o *HyperflexAutoSupportPolicy) GetDefaultObjectType() interface{} { + return "hyperflex.AutoSupportPolicy" +} + // GetAdminState returns the AdminState field value if set, zero value otherwise. func (o *HyperflexAutoSupportPolicy) GetAdminState() bool { if o == nil || IsNil(o.AdminState) { @@ -200,7 +210,7 @@ func (o *HyperflexAutoSupportPolicy) GetClusterProfilesOk() ([]HyperflexClusterP // HasClusterProfiles returns a boolean if a field has been set. func (o *HyperflexAutoSupportPolicy) HasClusterProfiles() bool { - if o != nil && IsNil(o.ClusterProfiles) { + if o != nil && !IsNil(o.ClusterProfiles) { return true } @@ -273,7 +283,13 @@ func (o HyperflexAutoSupportPolicy) ToMap() (map[string]interface{}, error) { if errPolicyAbstractPolicy != nil { return map[string]interface{}{}, errPolicyAbstractPolicy } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.AdminState) { toSerialize["AdminState"] = o.AdminState @@ -304,6 +320,13 @@ func (o *HyperflexAutoSupportPolicy) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -313,11 +336,23 @@ func (o *HyperflexAutoSupportPolicy) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type HyperflexAutoSupportPolicyWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` @@ -326,7 +361,7 @@ func (o *HyperflexAutoSupportPolicy) UnmarshalJSON(data []byte) (err error) { // Enable or disable Auto-Support. AdminState *bool `json:"AdminState,omitempty"` // The recipient email address for support tickets. - ServiceTicketReceipient *string `json:"ServiceTicketReceipient,omitempty"` + ServiceTicketReceipient *string "json:\"ServiceTicketReceipient,omitempty\" validate:\"regexp=^$|^[a-zA-Z0-9.!#$%&'*+\\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\\\\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$\"" // An array of relationships to hyperflexClusterProfile resources. ClusterProfiles []HyperflexClusterProfileRelationship `json:"ClusterProfiles,omitempty"` Organization NullableOrganizationOrganizationRelationship `json:"Organization,omitempty"` diff --git a/model_hyperflex_auto_support_policy_list.go b/model_hyperflex_auto_support_policy_list.go index 08c6bd2fd3..2794c42372 100644 --- a/model_hyperflex_auto_support_policy_list.go +++ b/model_hyperflex_auto_support_policy_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *HyperflexAutoSupportPolicyList) GetResultsOk() ([]HyperflexAutoSupportP // HasResults returns a boolean if a field has been set. func (o *HyperflexAutoSupportPolicyList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *HyperflexAutoSupportPolicyList) UnmarshalJSON(data []byte) (err error) "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *HyperflexAutoSupportPolicyList) UnmarshalJSON(data []byte) (err error) } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type HyperflexAutoSupportPolicyListWithoutEmbeddedStruct struct { // The total number of 'hyperflex.AutoSupportPolicy' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_hyperflex_auto_support_policy_relationship.go b/model_hyperflex_auto_support_policy_relationship.go index 3097b3c2a2..51d6406dad 100644 --- a/model_hyperflex_auto_support_policy_relationship.go +++ b/model_hyperflex_auto_support_policy_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_hyperflex_auto_support_policy_response.go b/model_hyperflex_auto_support_policy_response.go index fd0617d85c..044e261c0a 100644 --- a/model_hyperflex_auto_support_policy_response.go +++ b/model_hyperflex_auto_support_policy_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_hyperflex_backup_cluster.go b/model_hyperflex_backup_cluster.go index addb740dcf..0d72d9a835 100644 --- a/model_hyperflex_backup_cluster.go +++ b/model_hyperflex_backup_cluster.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -86,6 +86,11 @@ func (o *HyperflexBackupCluster) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "hyperflex.BackupCluster" of the ClassId field. +func (o *HyperflexBackupCluster) GetDefaultClassId() interface{} { + return "hyperflex.BackupCluster" +} + // GetObjectType returns the ObjectType field value func (o *HyperflexBackupCluster) GetObjectType() string { if o == nil { @@ -110,6 +115,11 @@ func (o *HyperflexBackupCluster) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "hyperflex.BackupCluster" of the ObjectType field. +func (o *HyperflexBackupCluster) GetDefaultObjectType() interface{} { + return "hyperflex.BackupCluster" +} + // GetBackupDataStore returns the BackupDataStore field value if set, zero value otherwise. func (o *HyperflexBackupCluster) GetBackupDataStore() string { if o == nil || IsNil(o.BackupDataStore) { @@ -278,7 +288,13 @@ func (o HyperflexBackupCluster) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.BackupDataStore) { toSerialize["BackupDataStore"] = o.BackupDataStore @@ -309,6 +325,13 @@ func (o *HyperflexBackupCluster) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -318,11 +341,23 @@ func (o *HyperflexBackupCluster) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type HyperflexBackupClusterWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_hyperflex_backup_cluster_list.go b/model_hyperflex_backup_cluster_list.go index 756506ba3b..2241be77ec 100644 --- a/model_hyperflex_backup_cluster_list.go +++ b/model_hyperflex_backup_cluster_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *HyperflexBackupClusterList) GetResultsOk() ([]HyperflexBackupCluster, b // HasResults returns a boolean if a field has been set. func (o *HyperflexBackupClusterList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *HyperflexBackupClusterList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *HyperflexBackupClusterList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type HyperflexBackupClusterListWithoutEmbeddedStruct struct { // The total number of 'hyperflex.BackupCluster' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_hyperflex_backup_cluster_relationship.go b/model_hyperflex_backup_cluster_relationship.go index 039bb8d43c..9d4dae01dd 100644 --- a/model_hyperflex_backup_cluster_relationship.go +++ b/model_hyperflex_backup_cluster_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_hyperflex_backup_cluster_response.go b/model_hyperflex_backup_cluster_response.go index ccbe666f84..296d6650fc 100644 --- a/model_hyperflex_backup_cluster_response.go +++ b/model_hyperflex_backup_cluster_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_hyperflex_backup_policy_settings.go b/model_hyperflex_backup_policy_settings.go index d32874a9c6..71f30c0281 100644 --- a/model_hyperflex_backup_policy_settings.go +++ b/model_hyperflex_backup_policy_settings.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -96,6 +96,11 @@ func (o *HyperflexBackupPolicySettings) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "hyperflex.BackupPolicySettings" of the ClassId field. +func (o *HyperflexBackupPolicySettings) GetDefaultClassId() interface{} { + return "hyperflex.BackupPolicySettings" +} + // GetObjectType returns the ObjectType field value func (o *HyperflexBackupPolicySettings) GetObjectType() string { if o == nil { @@ -120,6 +125,11 @@ func (o *HyperflexBackupPolicySettings) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "hyperflex.BackupPolicySettings" of the ObjectType field. +func (o *HyperflexBackupPolicySettings) GetDefaultObjectType() interface{} { + return "hyperflex.BackupPolicySettings" +} + // GetBackupDataStoreName returns the BackupDataStoreName field value if set, zero value otherwise. func (o *HyperflexBackupPolicySettings) GetBackupDataStoreName() string { if o == nil || IsNil(o.BackupDataStoreName) { @@ -394,7 +404,13 @@ func (o HyperflexBackupPolicySettings) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.BackupDataStoreName) { toSerialize["BackupDataStoreName"] = o.BackupDataStoreName @@ -437,6 +453,13 @@ func (o *HyperflexBackupPolicySettings) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -446,11 +469,23 @@ func (o *HyperflexBackupPolicySettings) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type HyperflexBackupPolicySettingsWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_hyperflex_base_cluster.go b/model_hyperflex_base_cluster.go index a20aa19803..bf53e20120 100644 --- a/model_hyperflex_base_cluster.go +++ b/model_hyperflex_base_cluster.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -122,6 +122,11 @@ func (o *HyperflexBaseCluster) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "hyperflex.Cluster" of the ClassId field. +func (o *HyperflexBaseCluster) GetDefaultClassId() interface{} { + return "hyperflex.Cluster" +} + // GetObjectType returns the ObjectType field value func (o *HyperflexBaseCluster) GetObjectType() string { if o == nil { @@ -146,6 +151,11 @@ func (o *HyperflexBaseCluster) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "hyperflex.Cluster" of the ObjectType field. +func (o *HyperflexBaseCluster) GetDefaultObjectType() interface{} { + return "hyperflex.Cluster" +} + // GetAlarmSummary returns the AlarmSummary field value if set, zero value otherwise (both if not set or set to explicit null). func (o *HyperflexBaseCluster) GetAlarmSummary() HyperflexAlarmSummary { if o == nil || IsNil(o.AlarmSummary.Get()) { @@ -733,7 +743,7 @@ func (o *HyperflexBaseCluster) GetChildClustersOk() ([]HyperflexBaseClusterRelat // HasChildClusters returns a boolean if a field has been set. func (o *HyperflexBaseCluster) HasChildClusters() bool { - if o != nil && IsNil(o.ChildClusters) { + if o != nil && !IsNil(o.ChildClusters) { return true } @@ -763,7 +773,13 @@ func (o HyperflexBaseCluster) ToMap() (map[string]interface{}, error) { if errStorageBaseCluster != nil { return map[string]interface{}{}, errStorageBaseCluster } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.AlarmSummary.IsSet() { toSerialize["AlarmSummary"] = o.AlarmSummary.Get() @@ -836,6 +852,13 @@ func (o *HyperflexBaseCluster) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -845,11 +868,23 @@ func (o *HyperflexBaseCluster) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type HyperflexBaseClusterWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. The enum values provides the list of concrete types that can be instantiated from this abstract type. ClassId string `json:"ClassId"` diff --git a/model_hyperflex_base_cluster_relationship.go b/model_hyperflex_base_cluster_relationship.go index 8dfb5c3164..c1a1ea4cdd 100644 --- a/model_hyperflex_base_cluster_relationship.go +++ b/model_hyperflex_base_cluster_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_hyperflex_capability.go b/model_hyperflex_capability.go index f38ac53892..0a9837e164 100644 --- a/model_hyperflex_capability.go +++ b/model_hyperflex_capability.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -86,6 +86,11 @@ func (o *HyperflexCapability) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "hyperflex.Capability" of the ClassId field. +func (o *HyperflexCapability) GetDefaultClassId() interface{} { + return "hyperflex.Capability" +} + // GetObjectType returns the ObjectType field value func (o *HyperflexCapability) GetObjectType() string { if o == nil { @@ -110,6 +115,11 @@ func (o *HyperflexCapability) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "hyperflex.Capability" of the ObjectType field. +func (o *HyperflexCapability) GetDefaultObjectType() interface{} { + return "hyperflex.Capability" +} + // GetEncryptionSupported returns the EncryptionSupported field value if set, zero value otherwise. func (o *HyperflexCapability) GetEncryptionSupported() bool { if o == nil || IsNil(o.EncryptionSupported) { @@ -224,7 +234,13 @@ func (o HyperflexCapability) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.EncryptionSupported) { toSerialize["EncryptionSupported"] = o.EncryptionSupported @@ -252,6 +268,13 @@ func (o *HyperflexCapability) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -261,11 +284,23 @@ func (o *HyperflexCapability) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type HyperflexCapabilityWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_hyperflex_capability_info.go b/model_hyperflex_capability_info.go index e397a385b3..e733e4e67c 100644 --- a/model_hyperflex_capability_info.go +++ b/model_hyperflex_capability_info.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -86,6 +86,11 @@ func (o *HyperflexCapabilityInfo) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "hyperflex.CapabilityInfo" of the ClassId field. +func (o *HyperflexCapabilityInfo) GetDefaultClassId() interface{} { + return "hyperflex.CapabilityInfo" +} + // GetObjectType returns the ObjectType field value func (o *HyperflexCapabilityInfo) GetObjectType() string { if o == nil { @@ -110,6 +115,11 @@ func (o *HyperflexCapabilityInfo) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "hyperflex.CapabilityInfo" of the ObjectType field. +func (o *HyperflexCapabilityInfo) GetDefaultObjectType() interface{} { + return "hyperflex.CapabilityInfo" +} + // GetCapabilityConstraints returns the CapabilityConstraints field value if set, zero value otherwise (both if not set or set to explicit null). func (o *HyperflexCapabilityInfo) GetCapabilityConstraints() []HclConstraint { if o == nil { @@ -131,7 +141,7 @@ func (o *HyperflexCapabilityInfo) GetCapabilityConstraintsOk() ([]HclConstraint, // HasCapabilityConstraints returns a boolean if a field has been set. func (o *HyperflexCapabilityInfo) HasCapabilityConstraints() bool { - if o != nil && IsNil(o.CapabilityConstraints) { + if o != nil && !IsNil(o.CapabilityConstraints) { return true } @@ -268,7 +278,13 @@ func (o HyperflexCapabilityInfo) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.CapabilityConstraints != nil { toSerialize["CapabilityConstraints"] = o.CapabilityConstraints @@ -299,6 +315,13 @@ func (o *HyperflexCapabilityInfo) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -308,11 +331,23 @@ func (o *HyperflexCapabilityInfo) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type HyperflexCapabilityInfoWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_hyperflex_capability_info_list.go b/model_hyperflex_capability_info_list.go index 42f4b1925e..6410ed1ed2 100644 --- a/model_hyperflex_capability_info_list.go +++ b/model_hyperflex_capability_info_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *HyperflexCapabilityInfoList) GetResultsOk() ([]HyperflexCapabilityInfo, // HasResults returns a boolean if a field has been set. func (o *HyperflexCapabilityInfoList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *HyperflexCapabilityInfoList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *HyperflexCapabilityInfoList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type HyperflexCapabilityInfoListWithoutEmbeddedStruct struct { // The total number of 'hyperflex.CapabilityInfo' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_hyperflex_capability_info_relationship.go b/model_hyperflex_capability_info_relationship.go index 09e27a3a45..e31af34a00 100644 --- a/model_hyperflex_capability_info_relationship.go +++ b/model_hyperflex_capability_info_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_hyperflex_capability_info_response.go b/model_hyperflex_capability_info_response.go index 36dd6f7ec8..b070d1b833 100644 --- a/model_hyperflex_capability_info_response.go +++ b/model_hyperflex_capability_info_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_hyperflex_cluster.go b/model_hyperflex_cluster.go index 3c9bdebb46..1d34818255 100644 --- a/model_hyperflex_cluster.go +++ b/model_hyperflex_cluster.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -127,6 +127,11 @@ func (o *HyperflexCluster) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "hyperflex.Cluster" of the ClassId field. +func (o *HyperflexCluster) GetDefaultClassId() interface{} { + return "hyperflex.Cluster" +} + // GetObjectType returns the ObjectType field value func (o *HyperflexCluster) GetObjectType() string { if o == nil { @@ -151,6 +156,11 @@ func (o *HyperflexCluster) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "hyperflex.Cluster" of the ObjectType field. +func (o *HyperflexCluster) GetDefaultObjectType() interface{} { + return "hyperflex.Cluster" +} + // GetCapability returns the Capability field value if set, zero value otherwise (both if not set or set to explicit null). func (o *HyperflexCluster) GetCapability() HyperflexCapability { if o == nil || IsNil(o.Capability.Get()) { @@ -314,7 +324,7 @@ func (o *HyperflexCluster) GetDnsServersOk() ([]string, bool) { // HasDnsServers returns a boolean if a field has been set. func (o *HyperflexCluster) HasDnsServers() bool { - if o != nil && IsNil(o.DnsServers) { + if o != nil && !IsNil(o.DnsServers) { return true } @@ -489,7 +499,7 @@ func (o *HyperflexCluster) GetNtpServersOk() ([]string, bool) { // HasNtpServers returns a boolean if a field has been set. func (o *HyperflexCluster) HasNtpServers() bool { - if o != nil && IsNil(o.NtpServers) { + if o != nil && !IsNil(o.NtpServers) { return true } @@ -736,7 +746,7 @@ func (o *HyperflexCluster) GetAlarmOk() ([]HyperflexAlarmRelationship, bool) { // HasAlarm returns a boolean if a field has been set. func (o *HyperflexCluster) HasAlarm() bool { - if o != nil && IsNil(o.Alarm) { + if o != nil && !IsNil(o.Alarm) { return true } @@ -898,7 +908,7 @@ func (o *HyperflexCluster) GetNodesOk() ([]HyperflexNodeRelationship, bool) { // HasNodes returns a boolean if a field has been set. func (o *HyperflexCluster) HasNodes() bool { - if o != nil && IsNil(o.Nodes) { + if o != nil && !IsNil(o.Nodes) { return true } @@ -974,7 +984,7 @@ func (o *HyperflexCluster) GetStorageClientIpPoolsOk() ([]IppoolPoolRelationship // HasStorageClientIpPools returns a boolean if a field has been set. func (o *HyperflexCluster) HasStorageClientIpPools() bool { - if o != nil && IsNil(o.StorageClientIpPools) { + if o != nil && !IsNil(o.StorageClientIpPools) { return true } @@ -1050,7 +1060,7 @@ func (o *HyperflexCluster) GetStorageContainersOk() ([]StorageHyperFlexStorageCo // HasStorageContainers returns a boolean if a field has been set. func (o *HyperflexCluster) HasStorageContainers() bool { - if o != nil && IsNil(o.StorageContainers) { + if o != nil && !IsNil(o.StorageContainers) { return true } @@ -1083,7 +1093,7 @@ func (o *HyperflexCluster) GetVolumesOk() ([]StorageHyperFlexVolumeRelationship, // HasVolumes returns a boolean if a field has been set. func (o *HyperflexCluster) HasVolumes() bool { - if o != nil && IsNil(o.Volumes) { + if o != nil && !IsNil(o.Volumes) { return true } @@ -1113,7 +1123,13 @@ func (o HyperflexCluster) ToMap() (map[string]interface{}, error) { if errHyperflexBaseCluster != nil { return map[string]interface{}{}, errHyperflexBaseCluster } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.Capability.IsSet() { toSerialize["Capability"] = o.Capability.Get() @@ -1210,6 +1226,13 @@ func (o *HyperflexCluster) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -1219,11 +1242,23 @@ func (o *HyperflexCluster) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type HyperflexClusterWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_hyperflex_cluster_backup_policy.go b/model_hyperflex_cluster_backup_policy.go index 24091595f1..bc7d880736 100644 --- a/model_hyperflex_cluster_backup_policy.go +++ b/model_hyperflex_cluster_backup_policy.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -127,6 +127,11 @@ func (o *HyperflexClusterBackupPolicy) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "hyperflex.ClusterBackupPolicy" of the ClassId field. +func (o *HyperflexClusterBackupPolicy) GetDefaultClassId() interface{} { + return "hyperflex.ClusterBackupPolicy" +} + // GetObjectType returns the ObjectType field value func (o *HyperflexClusterBackupPolicy) GetObjectType() string { if o == nil { @@ -151,6 +156,11 @@ func (o *HyperflexClusterBackupPolicy) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "hyperflex.ClusterBackupPolicy" of the ObjectType field. +func (o *HyperflexClusterBackupPolicy) GetDefaultObjectType() interface{} { + return "hyperflex.ClusterBackupPolicy" +} + // GetBackupDataStoreName returns the BackupDataStoreName field value if set, zero value otherwise. func (o *HyperflexClusterBackupPolicy) GetBackupDataStoreName() string { if o == nil || IsNil(o.BackupDataStoreName) { @@ -482,7 +492,7 @@ func (o *HyperflexClusterBackupPolicy) GetClusterProfilesOk() ([]HyperflexCluste // HasClusterProfiles returns a boolean if a field has been set. func (o *HyperflexClusterBackupPolicy) HasClusterProfiles() bool { - if o != nil && IsNil(o.ClusterProfiles) { + if o != nil && !IsNil(o.ClusterProfiles) { return true } @@ -555,7 +565,13 @@ func (o HyperflexClusterBackupPolicy) ToMap() (map[string]interface{}, error) { if errPolicyAbstractPolicy != nil { return map[string]interface{}{}, errPolicyAbstractPolicy } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.BackupDataStoreName) { toSerialize["BackupDataStoreName"] = o.BackupDataStoreName @@ -607,6 +623,13 @@ func (o *HyperflexClusterBackupPolicy) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -616,11 +639,23 @@ func (o *HyperflexClusterBackupPolicy) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type HyperflexClusterBackupPolicyWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_hyperflex_cluster_backup_policy_deployment.go b/model_hyperflex_cluster_backup_policy_deployment.go index 8b44c7663e..6c07919d38 100644 --- a/model_hyperflex_cluster_backup_policy_deployment.go +++ b/model_hyperflex_cluster_backup_policy_deployment.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -120,6 +120,11 @@ func (o *HyperflexClusterBackupPolicyDeployment) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "hyperflex.ClusterBackupPolicyDeployment" of the ClassId field. +func (o *HyperflexClusterBackupPolicyDeployment) GetDefaultClassId() interface{} { + return "hyperflex.ClusterBackupPolicyDeployment" +} + // GetObjectType returns the ObjectType field value func (o *HyperflexClusterBackupPolicyDeployment) GetObjectType() string { if o == nil { @@ -144,6 +149,11 @@ func (o *HyperflexClusterBackupPolicyDeployment) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "hyperflex.ClusterBackupPolicyDeployment" of the ObjectType field. +func (o *HyperflexClusterBackupPolicyDeployment) GetDefaultObjectType() interface{} { + return "hyperflex.ClusterBackupPolicyDeployment" +} + // GetBackupDataStoreName returns the BackupDataStoreName field value if set, zero value otherwise. func (o *HyperflexClusterBackupPolicyDeployment) GetBackupDataStoreName() string { if o == nil || IsNil(o.BackupDataStoreName) { @@ -910,7 +920,13 @@ func (o HyperflexClusterBackupPolicyDeployment) ToMap() (map[string]interface{}, if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.BackupDataStoreName) { toSerialize["BackupDataStoreName"] = o.BackupDataStoreName @@ -995,6 +1011,13 @@ func (o *HyperflexClusterBackupPolicyDeployment) UnmarshalJSON(data []byte) (err "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -1004,11 +1027,23 @@ func (o *HyperflexClusterBackupPolicyDeployment) UnmarshalJSON(data []byte) (err } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type HyperflexClusterBackupPolicyDeploymentWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_hyperflex_cluster_backup_policy_deployment_list.go b/model_hyperflex_cluster_backup_policy_deployment_list.go index e4f8b3144f..5221bad2cd 100644 --- a/model_hyperflex_cluster_backup_policy_deployment_list.go +++ b/model_hyperflex_cluster_backup_policy_deployment_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *HyperflexClusterBackupPolicyDeploymentList) GetResultsOk() ([]Hyperflex // HasResults returns a boolean if a field has been set. func (o *HyperflexClusterBackupPolicyDeploymentList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *HyperflexClusterBackupPolicyDeploymentList) UnmarshalJSON(data []byte) "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *HyperflexClusterBackupPolicyDeploymentList) UnmarshalJSON(data []byte) } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type HyperflexClusterBackupPolicyDeploymentListWithoutEmbeddedStruct struct { // The total number of 'hyperflex.ClusterBackupPolicyDeployment' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_hyperflex_cluster_backup_policy_deployment_response.go b/model_hyperflex_cluster_backup_policy_deployment_response.go index 23e6a8b8ac..b30087e1d8 100644 --- a/model_hyperflex_cluster_backup_policy_deployment_response.go +++ b/model_hyperflex_cluster_backup_policy_deployment_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_hyperflex_cluster_backup_policy_inventory.go b/model_hyperflex_cluster_backup_policy_inventory.go index 0e673c8aad..b298ca2504 100644 --- a/model_hyperflex_cluster_backup_policy_inventory.go +++ b/model_hyperflex_cluster_backup_policy_inventory.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -107,6 +107,11 @@ func (o *HyperflexClusterBackupPolicyInventory) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "hyperflex.ClusterBackupPolicyInventory" of the ClassId field. +func (o *HyperflexClusterBackupPolicyInventory) GetDefaultClassId() interface{} { + return "hyperflex.ClusterBackupPolicyInventory" +} + // GetObjectType returns the ObjectType field value func (o *HyperflexClusterBackupPolicyInventory) GetObjectType() string { if o == nil { @@ -131,6 +136,11 @@ func (o *HyperflexClusterBackupPolicyInventory) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "hyperflex.ClusterBackupPolicyInventory" of the ObjectType field. +func (o *HyperflexClusterBackupPolicyInventory) GetDefaultObjectType() interface{} { + return "hyperflex.ClusterBackupPolicyInventory" +} + // GetAction returns the Action field value if set, zero value otherwise. func (o *HyperflexClusterBackupPolicyInventory) GetAction() string { if o == nil || IsNil(o.Action) { @@ -662,7 +672,13 @@ func (o HyperflexClusterBackupPolicyInventory) ToMap() (map[string]interface{}, if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Action) { toSerialize["Action"] = o.Action @@ -726,6 +742,13 @@ func (o *HyperflexClusterBackupPolicyInventory) UnmarshalJSON(data []byte) (err "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -735,11 +758,23 @@ func (o *HyperflexClusterBackupPolicyInventory) UnmarshalJSON(data []byte) (err } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type HyperflexClusterBackupPolicyInventoryWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_hyperflex_cluster_backup_policy_inventory_list.go b/model_hyperflex_cluster_backup_policy_inventory_list.go index 1009cd9532..2955c858e7 100644 --- a/model_hyperflex_cluster_backup_policy_inventory_list.go +++ b/model_hyperflex_cluster_backup_policy_inventory_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *HyperflexClusterBackupPolicyInventoryList) GetResultsOk() ([]HyperflexC // HasResults returns a boolean if a field has been set. func (o *HyperflexClusterBackupPolicyInventoryList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *HyperflexClusterBackupPolicyInventoryList) UnmarshalJSON(data []byte) ( "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *HyperflexClusterBackupPolicyInventoryList) UnmarshalJSON(data []byte) ( } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type HyperflexClusterBackupPolicyInventoryListWithoutEmbeddedStruct struct { // The total number of 'hyperflex.ClusterBackupPolicyInventory' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_hyperflex_cluster_backup_policy_inventory_relationship.go b/model_hyperflex_cluster_backup_policy_inventory_relationship.go index 63b0f12edd..389e067108 100644 --- a/model_hyperflex_cluster_backup_policy_inventory_relationship.go +++ b/model_hyperflex_cluster_backup_policy_inventory_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_hyperflex_cluster_backup_policy_inventory_response.go b/model_hyperflex_cluster_backup_policy_inventory_response.go index fac6fc131c..7eb7ab6000 100644 --- a/model_hyperflex_cluster_backup_policy_inventory_response.go +++ b/model_hyperflex_cluster_backup_policy_inventory_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_hyperflex_cluster_backup_policy_list.go b/model_hyperflex_cluster_backup_policy_list.go index ea43ab4c13..c216adfd7a 100644 --- a/model_hyperflex_cluster_backup_policy_list.go +++ b/model_hyperflex_cluster_backup_policy_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *HyperflexClusterBackupPolicyList) GetResultsOk() ([]HyperflexClusterBac // HasResults returns a boolean if a field has been set. func (o *HyperflexClusterBackupPolicyList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *HyperflexClusterBackupPolicyList) UnmarshalJSON(data []byte) (err error "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *HyperflexClusterBackupPolicyList) UnmarshalJSON(data []byte) (err error } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type HyperflexClusterBackupPolicyListWithoutEmbeddedStruct struct { // The total number of 'hyperflex.ClusterBackupPolicy' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_hyperflex_cluster_backup_policy_response.go b/model_hyperflex_cluster_backup_policy_response.go index 6677ccbffa..125fd4ff33 100644 --- a/model_hyperflex_cluster_backup_policy_response.go +++ b/model_hyperflex_cluster_backup_policy_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_hyperflex_cluster_health_check_execution_snapshot.go b/model_hyperflex_cluster_health_check_execution_snapshot.go index 5df1cbf6a3..47e3fda408 100644 --- a/model_hyperflex_cluster_health_check_execution_snapshot.go +++ b/model_hyperflex_cluster_health_check_execution_snapshot.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -92,6 +92,11 @@ func (o *HyperflexClusterHealthCheckExecutionSnapshot) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "hyperflex.ClusterHealthCheckExecutionSnapshot" of the ClassId field. +func (o *HyperflexClusterHealthCheckExecutionSnapshot) GetDefaultClassId() interface{} { + return "hyperflex.ClusterHealthCheckExecutionSnapshot" +} + // GetObjectType returns the ObjectType field value func (o *HyperflexClusterHealthCheckExecutionSnapshot) GetObjectType() string { if o == nil { @@ -116,6 +121,11 @@ func (o *HyperflexClusterHealthCheckExecutionSnapshot) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "hyperflex.ClusterHealthCheckExecutionSnapshot" of the ObjectType field. +func (o *HyperflexClusterHealthCheckExecutionSnapshot) GetDefaultObjectType() interface{} { + return "hyperflex.ClusterHealthCheckExecutionSnapshot" +} + // GetExecutionContext returns the ExecutionContext field value if set, zero value otherwise. func (o *HyperflexClusterHealthCheckExecutionSnapshot) GetExecutionContext() string { if o == nil || IsNil(o.ExecutionContext) { @@ -327,7 +337,13 @@ func (o HyperflexClusterHealthCheckExecutionSnapshot) ToMap() (map[string]interf if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.ExecutionContext) { toSerialize["ExecutionContext"] = o.ExecutionContext @@ -361,6 +377,13 @@ func (o *HyperflexClusterHealthCheckExecutionSnapshot) UnmarshalJSON(data []byte "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -370,11 +393,23 @@ func (o *HyperflexClusterHealthCheckExecutionSnapshot) UnmarshalJSON(data []byte } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type HyperflexClusterHealthCheckExecutionSnapshotWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_hyperflex_cluster_health_check_execution_snapshot_list.go b/model_hyperflex_cluster_health_check_execution_snapshot_list.go index 5886a54026..43e830eddd 100644 --- a/model_hyperflex_cluster_health_check_execution_snapshot_list.go +++ b/model_hyperflex_cluster_health_check_execution_snapshot_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *HyperflexClusterHealthCheckExecutionSnapshotList) GetResultsOk() ([]Hyp // HasResults returns a boolean if a field has been set. func (o *HyperflexClusterHealthCheckExecutionSnapshotList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *HyperflexClusterHealthCheckExecutionSnapshotList) UnmarshalJSON(data [] "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *HyperflexClusterHealthCheckExecutionSnapshotList) UnmarshalJSON(data [] } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type HyperflexClusterHealthCheckExecutionSnapshotListWithoutEmbeddedStruct struct { // The total number of 'hyperflex.ClusterHealthCheckExecutionSnapshot' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_hyperflex_cluster_health_check_execution_snapshot_response.go b/model_hyperflex_cluster_health_check_execution_snapshot_response.go index 0e548404e6..22a4d80fab 100644 --- a/model_hyperflex_cluster_health_check_execution_snapshot_response.go +++ b/model_hyperflex_cluster_health_check_execution_snapshot_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_hyperflex_cluster_list.go b/model_hyperflex_cluster_list.go index 3ef87e122d..12c350b708 100644 --- a/model_hyperflex_cluster_list.go +++ b/model_hyperflex_cluster_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *HyperflexClusterList) GetResultsOk() ([]HyperflexCluster, bool) { // HasResults returns a boolean if a field has been set. func (o *HyperflexClusterList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *HyperflexClusterList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *HyperflexClusterList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type HyperflexClusterListWithoutEmbeddedStruct struct { // The total number of 'hyperflex.Cluster' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_hyperflex_cluster_network_policy.go b/model_hyperflex_cluster_network_policy.go index 15c786df73..4a848cb4e2 100644 --- a/model_hyperflex_cluster_network_policy.go +++ b/model_hyperflex_cluster_network_policy.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -98,6 +98,11 @@ func (o *HyperflexClusterNetworkPolicy) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "hyperflex.ClusterNetworkPolicy" of the ClassId field. +func (o *HyperflexClusterNetworkPolicy) GetDefaultClassId() interface{} { + return "hyperflex.ClusterNetworkPolicy" +} + // GetObjectType returns the ObjectType field value func (o *HyperflexClusterNetworkPolicy) GetObjectType() string { if o == nil { @@ -122,6 +127,11 @@ func (o *HyperflexClusterNetworkPolicy) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "hyperflex.ClusterNetworkPolicy" of the ObjectType field. +func (o *HyperflexClusterNetworkPolicy) GetDefaultObjectType() interface{} { + return "hyperflex.ClusterNetworkPolicy" +} + // GetCimcManagementMode returns the CimcManagementMode field value if set, zero value otherwise. func (o *HyperflexClusterNetworkPolicy) GetCimcManagementMode() string { if o == nil || IsNil(o.CimcManagementMode) { @@ -411,7 +421,7 @@ func (o *HyperflexClusterNetworkPolicy) GetVmNetworkVlansOk() ([]HyperflexNamedV // HasVmNetworkVlans returns a boolean if a field has been set. func (o *HyperflexClusterNetworkPolicy) HasVmNetworkVlans() bool { - if o != nil && IsNil(o.VmNetworkVlans) { + if o != nil && !IsNil(o.VmNetworkVlans) { return true } @@ -444,7 +454,7 @@ func (o *HyperflexClusterNetworkPolicy) GetClusterProfilesOk() ([]HyperflexClust // HasClusterProfiles returns a boolean if a field has been set. func (o *HyperflexClusterNetworkPolicy) HasClusterProfiles() bool { - if o != nil && IsNil(o.ClusterProfiles) { + if o != nil && !IsNil(o.ClusterProfiles) { return true } @@ -517,7 +527,13 @@ func (o HyperflexClusterNetworkPolicy) ToMap() (map[string]interface{}, error) { if errPolicyAbstractPolicy != nil { return map[string]interface{}{}, errPolicyAbstractPolicy } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.CimcManagementMode) { toSerialize["CimcManagementMode"] = o.CimcManagementMode @@ -566,6 +582,13 @@ func (o *HyperflexClusterNetworkPolicy) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -575,11 +598,23 @@ func (o *HyperflexClusterNetworkPolicy) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type HyperflexClusterNetworkPolicyWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_hyperflex_cluster_network_policy_list.go b/model_hyperflex_cluster_network_policy_list.go index bfde2d2ef0..c664255165 100644 --- a/model_hyperflex_cluster_network_policy_list.go +++ b/model_hyperflex_cluster_network_policy_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *HyperflexClusterNetworkPolicyList) GetResultsOk() ([]HyperflexClusterNe // HasResults returns a boolean if a field has been set. func (o *HyperflexClusterNetworkPolicyList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *HyperflexClusterNetworkPolicyList) UnmarshalJSON(data []byte) (err erro "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *HyperflexClusterNetworkPolicyList) UnmarshalJSON(data []byte) (err erro } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type HyperflexClusterNetworkPolicyListWithoutEmbeddedStruct struct { // The total number of 'hyperflex.ClusterNetworkPolicy' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_hyperflex_cluster_network_policy_relationship.go b/model_hyperflex_cluster_network_policy_relationship.go index 272e060bbb..47062288e3 100644 --- a/model_hyperflex_cluster_network_policy_relationship.go +++ b/model_hyperflex_cluster_network_policy_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_hyperflex_cluster_network_policy_response.go b/model_hyperflex_cluster_network_policy_response.go index 96315e6c54..2dcba4e0ba 100644 --- a/model_hyperflex_cluster_network_policy_response.go +++ b/model_hyperflex_cluster_network_policy_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_hyperflex_cluster_profile.go b/model_hyperflex_cluster_profile.go index a55dee3ae4..f4d3a56a17 100644 --- a/model_hyperflex_cluster_profile.go +++ b/model_hyperflex_cluster_profile.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -30,35 +30,35 @@ type HyperflexClusterProfile struct { ObjectType string `json:"ObjectType"` ClusterInternalSubnet NullableCommIpV4Interface `json:"ClusterInternalSubnet,omitempty"` // The storage data IP address for the HyperFlex cluster. - DataIpAddress *string `json:"DataIpAddress,omitempty"` + DataIpAddress *string `json:"DataIpAddress,omitempty" validate:"regexp=^$|^([1-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\\\.([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\\\.([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\\\.([1-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])$"` // The node name prefix that is used to automatically generate the default hostname for each server. A dash (-) will be appended to the prefix followed by the node number to form a hostname. This default naming scheme can be manually overridden in the node configuration. The maximum length of a prefix is 60, must only contain alphanumeric characters or dash (-), and must start with an alphanumeric character. - HostNamePrefix *string `json:"HostNamePrefix,omitempty"` + HostNamePrefix *string `json:"HostNamePrefix,omitempty" validate:"regexp=^$|^[a-zA-Z0-9][a-zA-Z0-9-]{1,59}$"` // The hypervisor control virtual IP address for the HyperFlex compute cluster that is used for node/pod management. - HypervisorControlIpAddress *string `json:"HypervisorControlIpAddress,omitempty"` + HypervisorControlIpAddress *string `json:"HypervisorControlIpAddress,omitempty" validate:"regexp=^$|^([1-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\\\.([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\\\.([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\\\.([1-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])$"` // The hypervisor type for the HyperFlex cluster. * `ESXi` - The hypervisor running on the HyperFlex cluster is a Vmware ESXi hypervisor of any version. * `Hyper-V` - The hypervisor running on the HyperFlex cluster is Microsoft Hyper-V. * `Unknown` - The hypervisor running on the HyperFlex cluster is not known. HypervisorType *string `json:"HypervisorType,omitempty"` // The NIC based setup being set/unset determined by inventory. IsNicBased *bool `json:"IsNicBased,omitempty"` // The MAC address prefix in the form of 00:25:B5:XX. - MacAddressPrefix *string `json:"MacAddressPrefix,omitempty"` + MacAddressPrefix *string `json:"MacAddressPrefix,omitempty" validate:"regexp=^$|^00:25:B5:[0-9a-fA-F]{2}$"` // The management IP address for the HyperFlex cluster. - MgmtIpAddress *string `json:"MgmtIpAddress,omitempty"` + MgmtIpAddress *string `json:"MgmtIpAddress,omitempty" validate:"regexp=^$|^([1-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\\\.([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\\\.([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\\\.([1-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])$"` // The management platform for the HyperFlex cluster. * `FI` - The host servers used in the cluster deployment are managed by a UCS Fabric Interconnect. * `EDGE` - The host servers used in the cluster deployment are standalone severs. * `DC-No-FI` - The host servers used in the cluster deployment are standalone servers with the DC Advantage license. MgmtPlatform *string `json:"MgmtPlatform,omitempty"` // The number of copies of each data block written. Replication *int64 `json:"Replication,omitempty"` // The storage data IP address for the HyperFlex cluster. - StorageClientIpAddress *string `json:"StorageClientIpAddress,omitempty"` + StorageClientIpAddress *string `json:"StorageClientIpAddress,omitempty" validate:"regexp=^$|^([1-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\\\.([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\\\.([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\\\.([1-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])$"` // The netmask for the Storage client network IP address. StorageClientNetmask *string `json:"StorageClientNetmask,omitempty"` StorageClientVlan NullableHyperflexNamedVlan `json:"StorageClientVlan,omitempty"` // The auxiliary storage IP address for the HyperFlex cluster. For two node clusters, this is the IP address of the auxiliary ZK controller. - StorageClusterAuxiliaryIp *string `json:"StorageClusterAuxiliaryIp,omitempty"` + StorageClusterAuxiliaryIp *string `json:"StorageClusterAuxiliaryIp,omitempty" validate:"regexp=^$|^([1-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\\\.([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\\\.([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\\\.([1-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])$"` StorageDataVlan NullableHyperflexNamedVlan `json:"StorageDataVlan,omitempty"` // The storage type used for the HyperFlex cluster (HyperFlex Storage or 3rd party). * `HyperFlexDp` - The type of storage is HyperFlex Data Platform. * `ThirdParty` - The type of storage is 3rd Party Storage (PureStorage, etc..). StorageType *string `json:"StorageType,omitempty"` // The WWxN prefix in the form of 20:00:00:25:B5:XX. - WwxnPrefix *string `json:"WwxnPrefix,omitempty"` + WwxnPrefix *string `json:"WwxnPrefix,omitempty" validate:"regexp=^$|^20:00:00:25:B5:[0-9a-fA-F]{2}$"` AssociatedCluster NullableHyperflexClusterRelationship `json:"AssociatedCluster,omitempty"` AutoSupport NullableHyperflexAutoSupportPolicyRelationship `json:"AutoSupport,omitempty"` ClusterNetwork NullableHyperflexClusterNetworkPolicyRelationship `json:"ClusterNetwork,omitempty"` @@ -147,6 +147,11 @@ func (o *HyperflexClusterProfile) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "hyperflex.ClusterProfile" of the ClassId field. +func (o *HyperflexClusterProfile) GetDefaultClassId() interface{} { + return "hyperflex.ClusterProfile" +} + // GetObjectType returns the ObjectType field value func (o *HyperflexClusterProfile) GetObjectType() string { if o == nil { @@ -171,6 +176,11 @@ func (o *HyperflexClusterProfile) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "hyperflex.ClusterProfile" of the ObjectType field. +func (o *HyperflexClusterProfile) GetDefaultObjectType() interface{} { + return "hyperflex.ClusterProfile" +} + // GetClusterInternalSubnet returns the ClusterInternalSubnet field value if set, zero value otherwise (both if not set or set to explicit null). func (o *HyperflexClusterProfile) GetClusterInternalSubnet() CommIpV4Interface { if o == nil || IsNil(o.ClusterInternalSubnet.Get()) { @@ -1199,7 +1209,7 @@ func (o *HyperflexClusterProfile) GetNodeProfileConfigOk() ([]HyperflexNodeProfi // HasNodeProfileConfig returns a boolean if a field has been set. func (o *HyperflexClusterProfile) HasNodeProfileConfig() bool { - if o != nil && IsNil(o.NodeProfileConfig) { + if o != nil && !IsNil(o.NodeProfileConfig) { return true } @@ -1318,7 +1328,7 @@ func (o *HyperflexClusterProfile) GetRunningWorkflowsOk() ([]WorkflowWorkflowInf // HasRunningWorkflows returns a boolean if a field has been set. func (o *HyperflexClusterProfile) HasRunningWorkflows() bool { - if o != nil && IsNil(o.RunningWorkflows) { + if o != nil && !IsNil(o.RunningWorkflows) { return true } @@ -1520,7 +1530,13 @@ func (o HyperflexClusterProfile) ToMap() (map[string]interface{}, error) { if errPolicyAbstractConfigProfile != nil { return map[string]interface{}{}, errPolicyAbstractConfigProfile } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.ClusterInternalSubnet.IsSet() { toSerialize["ClusterInternalSubnet"] = o.ClusterInternalSubnet.Get() @@ -1644,6 +1660,13 @@ func (o *HyperflexClusterProfile) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -1653,11 +1676,23 @@ func (o *HyperflexClusterProfile) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type HyperflexClusterProfileWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` @@ -1665,35 +1700,35 @@ func (o *HyperflexClusterProfile) UnmarshalJSON(data []byte) (err error) { ObjectType string `json:"ObjectType"` ClusterInternalSubnet NullableCommIpV4Interface `json:"ClusterInternalSubnet,omitempty"` // The storage data IP address for the HyperFlex cluster. - DataIpAddress *string `json:"DataIpAddress,omitempty"` + DataIpAddress *string `json:"DataIpAddress,omitempty" validate:"regexp=^$|^([1-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\\\.([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\\\.([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\\\.([1-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])$"` // The node name prefix that is used to automatically generate the default hostname for each server. A dash (-) will be appended to the prefix followed by the node number to form a hostname. This default naming scheme can be manually overridden in the node configuration. The maximum length of a prefix is 60, must only contain alphanumeric characters or dash (-), and must start with an alphanumeric character. - HostNamePrefix *string `json:"HostNamePrefix,omitempty"` + HostNamePrefix *string `json:"HostNamePrefix,omitempty" validate:"regexp=^$|^[a-zA-Z0-9][a-zA-Z0-9-]{1,59}$"` // The hypervisor control virtual IP address for the HyperFlex compute cluster that is used for node/pod management. - HypervisorControlIpAddress *string `json:"HypervisorControlIpAddress,omitempty"` + HypervisorControlIpAddress *string `json:"HypervisorControlIpAddress,omitempty" validate:"regexp=^$|^([1-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\\\.([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\\\.([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\\\.([1-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])$"` // The hypervisor type for the HyperFlex cluster. * `ESXi` - The hypervisor running on the HyperFlex cluster is a Vmware ESXi hypervisor of any version. * `Hyper-V` - The hypervisor running on the HyperFlex cluster is Microsoft Hyper-V. * `Unknown` - The hypervisor running on the HyperFlex cluster is not known. HypervisorType *string `json:"HypervisorType,omitempty"` // The NIC based setup being set/unset determined by inventory. IsNicBased *bool `json:"IsNicBased,omitempty"` // The MAC address prefix in the form of 00:25:B5:XX. - MacAddressPrefix *string `json:"MacAddressPrefix,omitempty"` + MacAddressPrefix *string `json:"MacAddressPrefix,omitempty" validate:"regexp=^$|^00:25:B5:[0-9a-fA-F]{2}$"` // The management IP address for the HyperFlex cluster. - MgmtIpAddress *string `json:"MgmtIpAddress,omitempty"` + MgmtIpAddress *string `json:"MgmtIpAddress,omitempty" validate:"regexp=^$|^([1-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\\\.([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\\\.([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\\\.([1-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])$"` // The management platform for the HyperFlex cluster. * `FI` - The host servers used in the cluster deployment are managed by a UCS Fabric Interconnect. * `EDGE` - The host servers used in the cluster deployment are standalone severs. * `DC-No-FI` - The host servers used in the cluster deployment are standalone servers with the DC Advantage license. MgmtPlatform *string `json:"MgmtPlatform,omitempty"` // The number of copies of each data block written. Replication *int64 `json:"Replication,omitempty"` // The storage data IP address for the HyperFlex cluster. - StorageClientIpAddress *string `json:"StorageClientIpAddress,omitempty"` + StorageClientIpAddress *string `json:"StorageClientIpAddress,omitempty" validate:"regexp=^$|^([1-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\\\.([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\\\.([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\\\.([1-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])$"` // The netmask for the Storage client network IP address. StorageClientNetmask *string `json:"StorageClientNetmask,omitempty"` StorageClientVlan NullableHyperflexNamedVlan `json:"StorageClientVlan,omitempty"` // The auxiliary storage IP address for the HyperFlex cluster. For two node clusters, this is the IP address of the auxiliary ZK controller. - StorageClusterAuxiliaryIp *string `json:"StorageClusterAuxiliaryIp,omitempty"` + StorageClusterAuxiliaryIp *string `json:"StorageClusterAuxiliaryIp,omitempty" validate:"regexp=^$|^([1-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\\\.([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\\\.([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\\\.([1-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])$"` StorageDataVlan NullableHyperflexNamedVlan `json:"StorageDataVlan,omitempty"` // The storage type used for the HyperFlex cluster (HyperFlex Storage or 3rd party). * `HyperFlexDp` - The type of storage is HyperFlex Data Platform. * `ThirdParty` - The type of storage is 3rd Party Storage (PureStorage, etc..). StorageType *string `json:"StorageType,omitempty"` // The WWxN prefix in the form of 20:00:00:25:B5:XX. - WwxnPrefix *string `json:"WwxnPrefix,omitempty"` + WwxnPrefix *string `json:"WwxnPrefix,omitempty" validate:"regexp=^$|^20:00:00:25:B5:[0-9a-fA-F]{2}$"` AssociatedCluster NullableHyperflexClusterRelationship `json:"AssociatedCluster,omitempty"` AutoSupport NullableHyperflexAutoSupportPolicyRelationship `json:"AutoSupport,omitempty"` ClusterNetwork NullableHyperflexClusterNetworkPolicyRelationship `json:"ClusterNetwork,omitempty"` diff --git a/model_hyperflex_cluster_profile_list.go b/model_hyperflex_cluster_profile_list.go index 2a657cd445..5ad9c4dafd 100644 --- a/model_hyperflex_cluster_profile_list.go +++ b/model_hyperflex_cluster_profile_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *HyperflexClusterProfileList) GetResultsOk() ([]HyperflexClusterProfile, // HasResults returns a boolean if a field has been set. func (o *HyperflexClusterProfileList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *HyperflexClusterProfileList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *HyperflexClusterProfileList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type HyperflexClusterProfileListWithoutEmbeddedStruct struct { // The total number of 'hyperflex.ClusterProfile' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_hyperflex_cluster_profile_relationship.go b/model_hyperflex_cluster_profile_relationship.go index f8181f7b6f..b0f54c871d 100644 --- a/model_hyperflex_cluster_profile_relationship.go +++ b/model_hyperflex_cluster_profile_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_hyperflex_cluster_profile_response.go b/model_hyperflex_cluster_profile_response.go index 7e0b6cd3df..998ca55843 100644 --- a/model_hyperflex_cluster_profile_response.go +++ b/model_hyperflex_cluster_profile_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_hyperflex_cluster_relationship.go b/model_hyperflex_cluster_relationship.go index ee040c98fc..05cf550590 100644 --- a/model_hyperflex_cluster_relationship.go +++ b/model_hyperflex_cluster_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_hyperflex_cluster_replication_network_policy.go b/model_hyperflex_cluster_replication_network_policy.go index a4c68a35f2..344e195c3f 100644 --- a/model_hyperflex_cluster_replication_network_policy.go +++ b/model_hyperflex_cluster_replication_network_policy.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -97,6 +97,11 @@ func (o *HyperflexClusterReplicationNetworkPolicy) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "hyperflex.ClusterReplicationNetworkPolicy" of the ClassId field. +func (o *HyperflexClusterReplicationNetworkPolicy) GetDefaultClassId() interface{} { + return "hyperflex.ClusterReplicationNetworkPolicy" +} + // GetObjectType returns the ObjectType field value func (o *HyperflexClusterReplicationNetworkPolicy) GetObjectType() string { if o == nil { @@ -121,6 +126,11 @@ func (o *HyperflexClusterReplicationNetworkPolicy) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "hyperflex.ClusterReplicationNetworkPolicy" of the ObjectType field. +func (o *HyperflexClusterReplicationNetworkPolicy) GetDefaultObjectType() interface{} { + return "hyperflex.ClusterReplicationNetworkPolicy" +} + // GetReplicationBandwidthMbps returns the ReplicationBandwidthMbps field value if set, zero value otherwise. func (o *HyperflexClusterReplicationNetworkPolicy) GetReplicationBandwidthMbps() int64 { if o == nil || IsNil(o.ReplicationBandwidthMbps) { @@ -174,7 +184,7 @@ func (o *HyperflexClusterReplicationNetworkPolicy) GetReplicationIprangesOk() ([ // HasReplicationIpranges returns a boolean if a field has been set. func (o *HyperflexClusterReplicationNetworkPolicy) HasReplicationIpranges() bool { - if o != nil && IsNil(o.ReplicationIpranges) { + if o != nil && !IsNil(o.ReplicationIpranges) { return true } @@ -282,7 +292,7 @@ func (o *HyperflexClusterReplicationNetworkPolicy) GetClusterProfilesOk() ([]Hyp // HasClusterProfiles returns a boolean if a field has been set. func (o *HyperflexClusterReplicationNetworkPolicy) HasClusterProfiles() bool { - if o != nil && IsNil(o.ClusterProfiles) { + if o != nil && !IsNil(o.ClusterProfiles) { return true } @@ -355,7 +365,13 @@ func (o HyperflexClusterReplicationNetworkPolicy) ToMap() (map[string]interface{ if errPolicyAbstractPolicy != nil { return map[string]interface{}{}, errPolicyAbstractPolicy } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.ReplicationBandwidthMbps) { toSerialize["ReplicationBandwidthMbps"] = o.ReplicationBandwidthMbps @@ -392,6 +408,13 @@ func (o *HyperflexClusterReplicationNetworkPolicy) UnmarshalJSON(data []byte) (e "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -401,11 +424,23 @@ func (o *HyperflexClusterReplicationNetworkPolicy) UnmarshalJSON(data []byte) (e } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type HyperflexClusterReplicationNetworkPolicyWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_hyperflex_cluster_replication_network_policy_deployment.go b/model_hyperflex_cluster_replication_network_policy_deployment.go index 86d926da8b..19be587bca 100644 --- a/model_hyperflex_cluster_replication_network_policy_deployment.go +++ b/model_hyperflex_cluster_replication_network_policy_deployment.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -102,6 +102,11 @@ func (o *HyperflexClusterReplicationNetworkPolicyDeployment) SetClassId(v string o.ClassId = v } +// GetDefaultClassId returns the default value "hyperflex.ClusterReplicationNetworkPolicyDeployment" of the ClassId field. +func (o *HyperflexClusterReplicationNetworkPolicyDeployment) GetDefaultClassId() interface{} { + return "hyperflex.ClusterReplicationNetworkPolicyDeployment" +} + // GetObjectType returns the ObjectType field value func (o *HyperflexClusterReplicationNetworkPolicyDeployment) GetObjectType() string { if o == nil { @@ -126,6 +131,11 @@ func (o *HyperflexClusterReplicationNetworkPolicyDeployment) SetObjectType(v str o.ObjectType = v } +// GetDefaultObjectType returns the default value "hyperflex.ClusterReplicationNetworkPolicyDeployment" of the ObjectType field. +func (o *HyperflexClusterReplicationNetworkPolicyDeployment) GetDefaultObjectType() interface{} { + return "hyperflex.ClusterReplicationNetworkPolicyDeployment" +} + // GetClusterUuid returns the ClusterUuid field value if set, zero value otherwise. func (o *HyperflexClusterReplicationNetworkPolicyDeployment) GetClusterUuid() string { if o == nil || IsNil(o.ClusterUuid) { @@ -371,7 +381,7 @@ func (o *HyperflexClusterReplicationNetworkPolicyDeployment) GetReplicationIpran // HasReplicationIpranges returns a boolean if a field has been set. func (o *HyperflexClusterReplicationNetworkPolicyDeployment) HasReplicationIpranges() bool { - if o != nil && IsNil(o.ReplicationIpranges) { + if o != nil && !IsNil(o.ReplicationIpranges) { return true } @@ -594,7 +604,13 @@ func (o HyperflexClusterReplicationNetworkPolicyDeployment) ToMap() (map[string] if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.ClusterUuid) { toSerialize["ClusterUuid"] = o.ClusterUuid @@ -652,6 +668,13 @@ func (o *HyperflexClusterReplicationNetworkPolicyDeployment) UnmarshalJSON(data "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -661,11 +684,23 @@ func (o *HyperflexClusterReplicationNetworkPolicyDeployment) UnmarshalJSON(data } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type HyperflexClusterReplicationNetworkPolicyDeploymentWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_hyperflex_cluster_replication_network_policy_deployment_list.go b/model_hyperflex_cluster_replication_network_policy_deployment_list.go index 78e31eb186..943be67f11 100644 --- a/model_hyperflex_cluster_replication_network_policy_deployment_list.go +++ b/model_hyperflex_cluster_replication_network_policy_deployment_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *HyperflexClusterReplicationNetworkPolicyDeploymentList) GetResultsOk() // HasResults returns a boolean if a field has been set. func (o *HyperflexClusterReplicationNetworkPolicyDeploymentList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *HyperflexClusterReplicationNetworkPolicyDeploymentList) UnmarshalJSON(d "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *HyperflexClusterReplicationNetworkPolicyDeploymentList) UnmarshalJSON(d } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type HyperflexClusterReplicationNetworkPolicyDeploymentListWithoutEmbeddedStruct struct { // The total number of 'hyperflex.ClusterReplicationNetworkPolicyDeployment' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_hyperflex_cluster_replication_network_policy_deployment_response.go b/model_hyperflex_cluster_replication_network_policy_deployment_response.go index 447a0f097d..67e0a7f0fc 100644 --- a/model_hyperflex_cluster_replication_network_policy_deployment_response.go +++ b/model_hyperflex_cluster_replication_network_policy_deployment_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_hyperflex_cluster_replication_network_policy_list.go b/model_hyperflex_cluster_replication_network_policy_list.go index ab82523800..5cfa0b186d 100644 --- a/model_hyperflex_cluster_replication_network_policy_list.go +++ b/model_hyperflex_cluster_replication_network_policy_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *HyperflexClusterReplicationNetworkPolicyList) GetResultsOk() ([]Hyperfl // HasResults returns a boolean if a field has been set. func (o *HyperflexClusterReplicationNetworkPolicyList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *HyperflexClusterReplicationNetworkPolicyList) UnmarshalJSON(data []byte "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *HyperflexClusterReplicationNetworkPolicyList) UnmarshalJSON(data []byte } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type HyperflexClusterReplicationNetworkPolicyListWithoutEmbeddedStruct struct { // The total number of 'hyperflex.ClusterReplicationNetworkPolicy' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_hyperflex_cluster_replication_network_policy_response.go b/model_hyperflex_cluster_replication_network_policy_response.go index 4238c3c190..5206139647 100644 --- a/model_hyperflex_cluster_replication_network_policy_response.go +++ b/model_hyperflex_cluster_replication_network_policy_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_hyperflex_cluster_response.go b/model_hyperflex_cluster_response.go index 29254727ea..32ce09e9b2 100644 --- a/model_hyperflex_cluster_response.go +++ b/model_hyperflex_cluster_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_hyperflex_cluster_storage_policy.go b/model_hyperflex_cluster_storage_policy.go index 69f5b56ab3..cfdcea75a3 100644 --- a/model_hyperflex_cluster_storage_policy.go +++ b/model_hyperflex_cluster_storage_policy.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -92,6 +92,11 @@ func (o *HyperflexClusterStoragePolicy) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "hyperflex.ClusterStoragePolicy" of the ClassId field. +func (o *HyperflexClusterStoragePolicy) GetDefaultClassId() interface{} { + return "hyperflex.ClusterStoragePolicy" +} + // GetObjectType returns the ObjectType field value func (o *HyperflexClusterStoragePolicy) GetObjectType() string { if o == nil { @@ -116,6 +121,11 @@ func (o *HyperflexClusterStoragePolicy) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "hyperflex.ClusterStoragePolicy" of the ObjectType field. +func (o *HyperflexClusterStoragePolicy) GetDefaultObjectType() interface{} { + return "hyperflex.ClusterStoragePolicy" +} + // GetDiskPartitionCleanup returns the DiskPartitionCleanup field value if set, zero value otherwise. func (o *HyperflexClusterStoragePolicy) GetDiskPartitionCleanup() bool { if o == nil || IsNil(o.DiskPartitionCleanup) { @@ -244,7 +254,7 @@ func (o *HyperflexClusterStoragePolicy) GetClusterProfilesOk() ([]HyperflexClust // HasClusterProfiles returns a boolean if a field has been set. func (o *HyperflexClusterStoragePolicy) HasClusterProfiles() bool { - if o != nil && IsNil(o.ClusterProfiles) { + if o != nil && !IsNil(o.ClusterProfiles) { return true } @@ -317,7 +327,13 @@ func (o HyperflexClusterStoragePolicy) ToMap() (map[string]interface{}, error) { if errPolicyAbstractPolicy != nil { return map[string]interface{}{}, errPolicyAbstractPolicy } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.DiskPartitionCleanup) { toSerialize["DiskPartitionCleanup"] = o.DiskPartitionCleanup @@ -351,6 +367,13 @@ func (o *HyperflexClusterStoragePolicy) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -360,11 +383,23 @@ func (o *HyperflexClusterStoragePolicy) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type HyperflexClusterStoragePolicyWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_hyperflex_cluster_storage_policy_list.go b/model_hyperflex_cluster_storage_policy_list.go index 55d7acdd1e..8ae83a85d3 100644 --- a/model_hyperflex_cluster_storage_policy_list.go +++ b/model_hyperflex_cluster_storage_policy_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *HyperflexClusterStoragePolicyList) GetResultsOk() ([]HyperflexClusterSt // HasResults returns a boolean if a field has been set. func (o *HyperflexClusterStoragePolicyList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *HyperflexClusterStoragePolicyList) UnmarshalJSON(data []byte) (err erro "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *HyperflexClusterStoragePolicyList) UnmarshalJSON(data []byte) (err erro } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type HyperflexClusterStoragePolicyListWithoutEmbeddedStruct struct { // The total number of 'hyperflex.ClusterStoragePolicy' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_hyperflex_cluster_storage_policy_relationship.go b/model_hyperflex_cluster_storage_policy_relationship.go index 63fff963e6..031680d94d 100644 --- a/model_hyperflex_cluster_storage_policy_relationship.go +++ b/model_hyperflex_cluster_storage_policy_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_hyperflex_cluster_storage_policy_response.go b/model_hyperflex_cluster_storage_policy_response.go index 8b13d0d15e..7692d991c0 100644 --- a/model_hyperflex_cluster_storage_policy_response.go +++ b/model_hyperflex_cluster_storage_policy_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_hyperflex_config_result.go b/model_hyperflex_config_result.go index 180e46c0dd..a8e43fe82a 100644 --- a/model_hyperflex_config_result.go +++ b/model_hyperflex_config_result.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -89,6 +89,11 @@ func (o *HyperflexConfigResult) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "hyperflex.ConfigResult" of the ClassId field. +func (o *HyperflexConfigResult) GetDefaultClassId() interface{} { + return "hyperflex.ConfigResult" +} + // GetObjectType returns the ObjectType field value func (o *HyperflexConfigResult) GetObjectType() string { if o == nil { @@ -113,6 +118,11 @@ func (o *HyperflexConfigResult) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "hyperflex.ConfigResult" of the ObjectType field. +func (o *HyperflexConfigResult) GetDefaultObjectType() interface{} { + return "hyperflex.ConfigResult" +} + // GetConfigProgress returns the ConfigProgress field value if set, zero value otherwise. func (o *HyperflexConfigResult) GetConfigProgress() string { if o == nil || IsNil(o.ConfigProgress) { @@ -273,7 +283,7 @@ func (o *HyperflexConfigResult) GetResultEntriesOk() ([]HyperflexConfigResultEnt // HasResultEntries returns a boolean if a field has been set. func (o *HyperflexConfigResult) HasResultEntries() bool { - if o != nil && IsNil(o.ResultEntries) { + if o != nil && !IsNil(o.ResultEntries) { return true } @@ -303,7 +313,13 @@ func (o HyperflexConfigResult) ToMap() (map[string]interface{}, error) { if errPolicyAbstractConfigResult != nil { return map[string]interface{}{}, errPolicyAbstractConfigResult } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.ConfigProgress) { toSerialize["ConfigProgress"] = o.ConfigProgress @@ -337,6 +353,13 @@ func (o *HyperflexConfigResult) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -346,11 +369,23 @@ func (o *HyperflexConfigResult) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type HyperflexConfigResultWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_hyperflex_config_result_entry.go b/model_hyperflex_config_result_entry.go index 8f8c5e5331..517e674a7a 100644 --- a/model_hyperflex_config_result_entry.go +++ b/model_hyperflex_config_result_entry.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -81,6 +81,11 @@ func (o *HyperflexConfigResultEntry) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "hyperflex.ConfigResultEntry" of the ClassId field. +func (o *HyperflexConfigResultEntry) GetDefaultClassId() interface{} { + return "hyperflex.ConfigResultEntry" +} + // GetObjectType returns the ObjectType field value func (o *HyperflexConfigResultEntry) GetObjectType() string { if o == nil { @@ -105,6 +110,11 @@ func (o *HyperflexConfigResultEntry) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "hyperflex.ConfigResultEntry" of the ObjectType field. +func (o *HyperflexConfigResultEntry) GetDefaultObjectType() interface{} { + return "hyperflex.ConfigResultEntry" +} + // GetConfigResult returns the ConfigResult field value if set, zero value otherwise (both if not set or set to explicit null). func (o *HyperflexConfigResultEntry) GetConfigResult() HyperflexConfigResultRelationship { if o == nil || IsNil(o.ConfigResult.Get()) { @@ -166,7 +176,13 @@ func (o HyperflexConfigResultEntry) ToMap() (map[string]interface{}, error) { if errPolicyAbstractConfigResultEntry != nil { return map[string]interface{}{}, errPolicyAbstractConfigResultEntry } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.ConfigResult.IsSet() { toSerialize["ConfigResult"] = o.ConfigResult.Get() @@ -188,6 +204,13 @@ func (o *HyperflexConfigResultEntry) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -197,11 +220,23 @@ func (o *HyperflexConfigResultEntry) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type HyperflexConfigResultEntryWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_hyperflex_config_result_entry_list.go b/model_hyperflex_config_result_entry_list.go index c7a2e15c80..32a50e482f 100644 --- a/model_hyperflex_config_result_entry_list.go +++ b/model_hyperflex_config_result_entry_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *HyperflexConfigResultEntryList) GetResultsOk() ([]HyperflexConfigResult // HasResults returns a boolean if a field has been set. func (o *HyperflexConfigResultEntryList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *HyperflexConfigResultEntryList) UnmarshalJSON(data []byte) (err error) "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *HyperflexConfigResultEntryList) UnmarshalJSON(data []byte) (err error) } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type HyperflexConfigResultEntryListWithoutEmbeddedStruct struct { // The total number of 'hyperflex.ConfigResultEntry' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_hyperflex_config_result_entry_relationship.go b/model_hyperflex_config_result_entry_relationship.go index 5cdfcc7154..e02f929cc5 100644 --- a/model_hyperflex_config_result_entry_relationship.go +++ b/model_hyperflex_config_result_entry_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_hyperflex_config_result_entry_response.go b/model_hyperflex_config_result_entry_response.go index 704bd78e92..2788546c0f 100644 --- a/model_hyperflex_config_result_entry_response.go +++ b/model_hyperflex_config_result_entry_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_hyperflex_config_result_list.go b/model_hyperflex_config_result_list.go index fd1036390b..6942ea6a24 100644 --- a/model_hyperflex_config_result_list.go +++ b/model_hyperflex_config_result_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *HyperflexConfigResultList) GetResultsOk() ([]HyperflexConfigResult, boo // HasResults returns a boolean if a field has been set. func (o *HyperflexConfigResultList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *HyperflexConfigResultList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *HyperflexConfigResultList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type HyperflexConfigResultListWithoutEmbeddedStruct struct { // The total number of 'hyperflex.ConfigResult' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_hyperflex_config_result_relationship.go b/model_hyperflex_config_result_relationship.go index 4665299643..b7fad81a29 100644 --- a/model_hyperflex_config_result_relationship.go +++ b/model_hyperflex_config_result_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_hyperflex_config_result_response.go b/model_hyperflex_config_result_response.go index 55c505ce8c..19ff6b06b1 100644 --- a/model_hyperflex_config_result_response.go +++ b/model_hyperflex_config_result_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_hyperflex_data_protection_peer.go b/model_hyperflex_data_protection_peer.go index 8ae348845c..fd5448dd4d 100644 --- a/model_hyperflex_data_protection_peer.go +++ b/model_hyperflex_data_protection_peer.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -84,6 +84,11 @@ func (o *HyperflexDataProtectionPeer) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "hyperflex.DataProtectionPeer" of the ClassId field. +func (o *HyperflexDataProtectionPeer) GetDefaultClassId() interface{} { + return "hyperflex.DataProtectionPeer" +} + // GetObjectType returns the ObjectType field value func (o *HyperflexDataProtectionPeer) GetObjectType() string { if o == nil { @@ -108,6 +113,11 @@ func (o *HyperflexDataProtectionPeer) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "hyperflex.DataProtectionPeer" of the ObjectType field. +func (o *HyperflexDataProtectionPeer) GetDefaultObjectType() interface{} { + return "hyperflex.DataProtectionPeer" +} + // GetEr returns the Er field value if set, zero value otherwise (both if not set or set to explicit null). func (o *HyperflexDataProtectionPeer) GetEr() HyperflexEntityReference { if o == nil || IsNil(o.Er.Get()) { @@ -298,7 +308,13 @@ func (o HyperflexDataProtectionPeer) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.Er.IsSet() { toSerialize["Er"] = o.Er.Get() @@ -329,6 +345,13 @@ func (o *HyperflexDataProtectionPeer) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -338,11 +361,23 @@ func (o *HyperflexDataProtectionPeer) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type HyperflexDataProtectionPeerWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_hyperflex_data_protection_peer_list.go b/model_hyperflex_data_protection_peer_list.go index 269a86c1e9..3e65705ee0 100644 --- a/model_hyperflex_data_protection_peer_list.go +++ b/model_hyperflex_data_protection_peer_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *HyperflexDataProtectionPeerList) GetResultsOk() ([]HyperflexDataProtect // HasResults returns a boolean if a field has been set. func (o *HyperflexDataProtectionPeerList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *HyperflexDataProtectionPeerList) UnmarshalJSON(data []byte) (err error) "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *HyperflexDataProtectionPeerList) UnmarshalJSON(data []byte) (err error) } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type HyperflexDataProtectionPeerListWithoutEmbeddedStruct struct { // The total number of 'hyperflex.DataProtectionPeer' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_hyperflex_data_protection_peer_relationship.go b/model_hyperflex_data_protection_peer_relationship.go index 840a77f6ce..495f57de5c 100644 --- a/model_hyperflex_data_protection_peer_relationship.go +++ b/model_hyperflex_data_protection_peer_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_hyperflex_data_protection_peer_response.go b/model_hyperflex_data_protection_peer_response.go index 206de45e97..fd1068e560 100644 --- a/model_hyperflex_data_protection_peer_response.go +++ b/model_hyperflex_data_protection_peer_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_hyperflex_datastore_info.go b/model_hyperflex_datastore_info.go index dd354a0af9..cd869057c8 100644 --- a/model_hyperflex_datastore_info.go +++ b/model_hyperflex_datastore_info.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -84,6 +84,11 @@ func (o *HyperflexDatastoreInfo) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "hyperflex.DatastoreInfo" of the ClassId field. +func (o *HyperflexDatastoreInfo) GetDefaultClassId() interface{} { + return "hyperflex.DatastoreInfo" +} + // GetObjectType returns the ObjectType field value func (o *HyperflexDatastoreInfo) GetObjectType() string { if o == nil { @@ -108,6 +113,11 @@ func (o *HyperflexDatastoreInfo) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "hyperflex.DatastoreInfo" of the ObjectType field. +func (o *HyperflexDatastoreInfo) GetDefaultObjectType() interface{} { + return "hyperflex.DatastoreInfo" +} + // GetDsBackendId returns the DsBackendId field value if set, zero value otherwise. func (o *HyperflexDatastoreInfo) GetDsBackendId() string { if o == nil || IsNil(o.DsBackendId) { @@ -190,7 +200,13 @@ func (o HyperflexDatastoreInfo) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.DsBackendId) { toSerialize["DsBackendId"] = o.DsBackendId @@ -215,6 +231,13 @@ func (o *HyperflexDatastoreInfo) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -224,11 +247,23 @@ func (o *HyperflexDatastoreInfo) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type HyperflexDatastoreInfoWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_hyperflex_datastore_statistic.go b/model_hyperflex_datastore_statistic.go index 750f48c83a..07bba43fbc 100644 --- a/model_hyperflex_datastore_statistic.go +++ b/model_hyperflex_datastore_statistic.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -114,6 +114,11 @@ func (o *HyperflexDatastoreStatistic) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "hyperflex.DatastoreStatistic" of the ClassId field. +func (o *HyperflexDatastoreStatistic) GetDefaultClassId() interface{} { + return "hyperflex.DatastoreStatistic" +} + // GetObjectType returns the ObjectType field value func (o *HyperflexDatastoreStatistic) GetObjectType() string { if o == nil { @@ -138,6 +143,11 @@ func (o *HyperflexDatastoreStatistic) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "hyperflex.DatastoreStatistic" of the ObjectType field. +func (o *HyperflexDatastoreStatistic) GetDefaultObjectType() interface{} { + return "hyperflex.DatastoreStatistic" +} + // GetAccessibilitySummary returns the AccessibilitySummary field value if set, zero value otherwise. func (o *HyperflexDatastoreStatistic) GetAccessibilitySummary() string { if o == nil || IsNil(o.AccessibilitySummary) { @@ -362,7 +372,7 @@ func (o *HyperflexDatastoreStatistic) GetHostMountStatusOk() ([]HyperflexHxHostM // HasHostMountStatus returns a boolean if a field has been set. func (o *HyperflexDatastoreStatistic) HasHostMountStatus() bool { - if o != nil && IsNil(o.HostMountStatus) { + if o != nil && !IsNil(o.HostMountStatus) { return true } @@ -852,7 +862,13 @@ func (o HyperflexDatastoreStatistic) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.AccessibilitySummary) { toSerialize["AccessibilitySummary"] = o.AccessibilitySummary @@ -931,6 +947,13 @@ func (o *HyperflexDatastoreStatistic) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -940,11 +963,23 @@ func (o *HyperflexDatastoreStatistic) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type HyperflexDatastoreStatisticWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_hyperflex_datastore_statistic_list.go b/model_hyperflex_datastore_statistic_list.go index 00e6d09673..0cbc5cad15 100644 --- a/model_hyperflex_datastore_statistic_list.go +++ b/model_hyperflex_datastore_statistic_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *HyperflexDatastoreStatisticList) GetResultsOk() ([]HyperflexDatastoreSt // HasResults returns a boolean if a field has been set. func (o *HyperflexDatastoreStatisticList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *HyperflexDatastoreStatisticList) UnmarshalJSON(data []byte) (err error) "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *HyperflexDatastoreStatisticList) UnmarshalJSON(data []byte) (err error) } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type HyperflexDatastoreStatisticListWithoutEmbeddedStruct struct { // The total number of 'hyperflex.DatastoreStatistic' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_hyperflex_datastore_statistic_relationship.go b/model_hyperflex_datastore_statistic_relationship.go index c2d05ae414..e48e71805e 100644 --- a/model_hyperflex_datastore_statistic_relationship.go +++ b/model_hyperflex_datastore_statistic_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_hyperflex_datastore_statistic_response.go b/model_hyperflex_datastore_statistic_response.go index de87c1ebb8..5188583b35 100644 --- a/model_hyperflex_datastore_statistic_response.go +++ b/model_hyperflex_datastore_statistic_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_hyperflex_device_package_download_state.go b/model_hyperflex_device_package_download_state.go index 4898613222..ce398d07dd 100644 --- a/model_hyperflex_device_package_download_state.go +++ b/model_hyperflex_device_package_download_state.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -89,6 +89,11 @@ func (o *HyperflexDevicePackageDownloadState) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "hyperflex.DevicePackageDownloadState" of the ClassId field. +func (o *HyperflexDevicePackageDownloadState) GetDefaultClassId() interface{} { + return "hyperflex.DevicePackageDownloadState" +} + // GetObjectType returns the ObjectType field value func (o *HyperflexDevicePackageDownloadState) GetObjectType() string { if o == nil { @@ -113,6 +118,11 @@ func (o *HyperflexDevicePackageDownloadState) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "hyperflex.DevicePackageDownloadState" of the ObjectType field. +func (o *HyperflexDevicePackageDownloadState) GetDefaultObjectType() interface{} { + return "hyperflex.DevicePackageDownloadState" +} + // GetChecksum returns the Checksum field value if set, zero value otherwise. func (o *HyperflexDevicePackageDownloadState) GetChecksum() string { if o == nil || IsNil(o.Checksum) { @@ -198,7 +208,7 @@ func (o *HyperflexDevicePackageDownloadState) GetHxNodesOk() ([]string, bool) { // HasHxNodes returns a boolean if a field has been set. func (o *HyperflexDevicePackageDownloadState) HasHxNodes() bool { - if o != nil && IsNil(o.HxNodes) { + if o != nil && !IsNil(o.HxNodes) { return true } @@ -303,7 +313,13 @@ func (o HyperflexDevicePackageDownloadState) ToMap() (map[string]interface{}, er if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Checksum) { toSerialize["Checksum"] = o.Checksum @@ -337,6 +353,13 @@ func (o *HyperflexDevicePackageDownloadState) UnmarshalJSON(data []byte) (err er "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -346,11 +369,23 @@ func (o *HyperflexDevicePackageDownloadState) UnmarshalJSON(data []byte) (err er } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type HyperflexDevicePackageDownloadStateWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_hyperflex_device_package_download_state_list.go b/model_hyperflex_device_package_download_state_list.go index 686724676a..898db9440f 100644 --- a/model_hyperflex_device_package_download_state_list.go +++ b/model_hyperflex_device_package_download_state_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *HyperflexDevicePackageDownloadStateList) GetResultsOk() ([]HyperflexDev // HasResults returns a boolean if a field has been set. func (o *HyperflexDevicePackageDownloadStateList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *HyperflexDevicePackageDownloadStateList) UnmarshalJSON(data []byte) (er "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *HyperflexDevicePackageDownloadStateList) UnmarshalJSON(data []byte) (er } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type HyperflexDevicePackageDownloadStateListWithoutEmbeddedStruct struct { // The total number of 'hyperflex.DevicePackageDownloadState' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_hyperflex_device_package_download_state_response.go b/model_hyperflex_device_package_download_state_response.go index 59520f0cf6..ea3efd8856 100644 --- a/model_hyperflex_device_package_download_state_response.go +++ b/model_hyperflex_device_package_download_state_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_hyperflex_drive.go b/model_hyperflex_drive.go index efb35dae5e..9f9c52f967 100644 --- a/model_hyperflex_drive.go +++ b/model_hyperflex_drive.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -114,6 +114,11 @@ func (o *HyperflexDrive) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "hyperflex.Drive" of the ClassId field. +func (o *HyperflexDrive) GetDefaultClassId() interface{} { + return "hyperflex.Drive" +} + // GetObjectType returns the ObjectType field value func (o *HyperflexDrive) GetObjectType() string { if o == nil { @@ -138,6 +143,11 @@ func (o *HyperflexDrive) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "hyperflex.Drive" of the ObjectType field. +func (o *HyperflexDrive) GetDefaultObjectType() interface{} { + return "hyperflex.Drive" +} + // GetCapacity returns the Capacity field value if set, zero value otherwise. func (o *HyperflexDrive) GetCapacity() int64 { if o == nil || IsNil(o.Capacity) { @@ -754,7 +764,13 @@ func (o HyperflexDrive) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Capacity) { toSerialize["Capacity"] = o.Capacity @@ -827,6 +843,13 @@ func (o *HyperflexDrive) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -836,11 +859,23 @@ func (o *HyperflexDrive) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type HyperflexDriveWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_hyperflex_drive_list.go b/model_hyperflex_drive_list.go index 2c9cd84652..448442ecac 100644 --- a/model_hyperflex_drive_list.go +++ b/model_hyperflex_drive_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *HyperflexDriveList) GetResultsOk() ([]HyperflexDrive, bool) { // HasResults returns a boolean if a field has been set. func (o *HyperflexDriveList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *HyperflexDriveList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *HyperflexDriveList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type HyperflexDriveListWithoutEmbeddedStruct struct { // The total number of 'hyperflex.Drive' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_hyperflex_drive_relationship.go b/model_hyperflex_drive_relationship.go index 96f4cf0b06..1261963290 100644 --- a/model_hyperflex_drive_relationship.go +++ b/model_hyperflex_drive_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_hyperflex_drive_response.go b/model_hyperflex_drive_response.go index 2b87b5d17f..7140c21659 100644 --- a/model_hyperflex_drive_response.go +++ b/model_hyperflex_drive_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_hyperflex_encryption.go b/model_hyperflex_encryption.go index 241dacdc77..93aafcb1b2 100644 --- a/model_hyperflex_encryption.go +++ b/model_hyperflex_encryption.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -83,6 +83,11 @@ func (o *HyperflexEncryption) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "hyperflex.Encryption" of the ClassId field. +func (o *HyperflexEncryption) GetDefaultClassId() interface{} { + return "hyperflex.Encryption" +} + // GetObjectType returns the ObjectType field value func (o *HyperflexEncryption) GetObjectType() string { if o == nil { @@ -107,6 +112,11 @@ func (o *HyperflexEncryption) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "hyperflex.Encryption" of the ObjectType field. +func (o *HyperflexEncryption) GetDefaultObjectType() interface{} { + return "hyperflex.Encryption" +} + // GetState returns the State field value if set, zero value otherwise. func (o *HyperflexEncryption) GetState() string { if o == nil || IsNil(o.State) { @@ -243,7 +253,13 @@ func (o HyperflexEncryption) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.State) { toSerialize["State"] = o.State @@ -271,6 +287,13 @@ func (o *HyperflexEncryption) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -280,11 +303,23 @@ func (o *HyperflexEncryption) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type HyperflexEncryptionWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_hyperflex_encryption_list.go b/model_hyperflex_encryption_list.go index 43580b3235..f645cd765a 100644 --- a/model_hyperflex_encryption_list.go +++ b/model_hyperflex_encryption_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *HyperflexEncryptionList) GetResultsOk() ([]HyperflexEncryption, bool) { // HasResults returns a boolean if a field has been set. func (o *HyperflexEncryptionList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *HyperflexEncryptionList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *HyperflexEncryptionList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type HyperflexEncryptionListWithoutEmbeddedStruct struct { // The total number of 'hyperflex.Encryption' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_hyperflex_encryption_relationship.go b/model_hyperflex_encryption_relationship.go index c3d2dac353..19a698e898 100644 --- a/model_hyperflex_encryption_relationship.go +++ b/model_hyperflex_encryption_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_hyperflex_encryption_response.go b/model_hyperflex_encryption_response.go index 179ca998cf..b536a24b1f 100644 --- a/model_hyperflex_encryption_response.go +++ b/model_hyperflex_encryption_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_hyperflex_entity_reference.go b/model_hyperflex_entity_reference.go index cbe38caa8c..4e48ec3213 100644 --- a/model_hyperflex_entity_reference.go +++ b/model_hyperflex_entity_reference.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -90,6 +90,11 @@ func (o *HyperflexEntityReference) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "hyperflex.EntityReference" of the ClassId field. +func (o *HyperflexEntityReference) GetDefaultClassId() interface{} { + return "hyperflex.EntityReference" +} + // GetObjectType returns the ObjectType field value func (o *HyperflexEntityReference) GetObjectType() string { if o == nil { @@ -114,6 +119,11 @@ func (o *HyperflexEntityReference) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "hyperflex.EntityReference" of the ObjectType field. +func (o *HyperflexEntityReference) GetDefaultObjectType() interface{} { + return "hyperflex.EntityReference" +} + // GetConfignum returns the Confignum field value if set, zero value otherwise. func (o *HyperflexEntityReference) GetConfignum() int64 { if o == nil || IsNil(o.Confignum) { @@ -292,7 +302,13 @@ func (o HyperflexEntityReference) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Confignum) { toSerialize["Confignum"] = o.Confignum @@ -326,6 +342,13 @@ func (o *HyperflexEntityReference) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -335,11 +358,23 @@ func (o *HyperflexEntityReference) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type HyperflexEntityReferenceWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_hyperflex_error_stack.go b/model_hyperflex_error_stack.go index 3c8fac3b7b..464f5ec474 100644 --- a/model_hyperflex_error_stack.go +++ b/model_hyperflex_error_stack.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -84,6 +84,11 @@ func (o *HyperflexErrorStack) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "hyperflex.ErrorStack" of the ClassId field. +func (o *HyperflexErrorStack) GetDefaultClassId() interface{} { + return "hyperflex.ErrorStack" +} + // GetObjectType returns the ObjectType field value func (o *HyperflexErrorStack) GetObjectType() string { if o == nil { @@ -108,6 +113,11 @@ func (o *HyperflexErrorStack) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "hyperflex.ErrorStack" of the ObjectType field. +func (o *HyperflexErrorStack) GetDefaultObjectType() interface{} { + return "hyperflex.ErrorStack" +} + // GetMessage returns the Message field value if set, zero value otherwise. func (o *HyperflexErrorStack) GetMessage() string { if o == nil || IsNil(o.Message) { @@ -190,7 +200,13 @@ func (o HyperflexErrorStack) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Message) { toSerialize["Message"] = o.Message @@ -215,6 +231,13 @@ func (o *HyperflexErrorStack) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -224,11 +247,23 @@ func (o *HyperflexErrorStack) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type HyperflexErrorStackWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_hyperflex_ext_fc_storage_policy.go b/model_hyperflex_ext_fc_storage_policy.go index b36f85818a..9cfc6c6204 100644 --- a/model_hyperflex_ext_fc_storage_policy.go +++ b/model_hyperflex_ext_fc_storage_policy.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -88,6 +88,11 @@ func (o *HyperflexExtFcStoragePolicy) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "hyperflex.ExtFcStoragePolicy" of the ClassId field. +func (o *HyperflexExtFcStoragePolicy) GetDefaultClassId() interface{} { + return "hyperflex.ExtFcStoragePolicy" +} + // GetObjectType returns the ObjectType field value func (o *HyperflexExtFcStoragePolicy) GetObjectType() string { if o == nil { @@ -112,6 +117,11 @@ func (o *HyperflexExtFcStoragePolicy) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "hyperflex.ExtFcStoragePolicy" of the ObjectType field. +func (o *HyperflexExtFcStoragePolicy) GetDefaultObjectType() interface{} { + return "hyperflex.ExtFcStoragePolicy" +} + // GetAdminState returns the AdminState field value if set, zero value otherwise. func (o *HyperflexExtFcStoragePolicy) GetAdminState() bool { if o == nil || IsNil(o.AdminState) { @@ -294,7 +304,7 @@ func (o *HyperflexExtFcStoragePolicy) GetClusterProfilesOk() ([]HyperflexCluster // HasClusterProfiles returns a boolean if a field has been set. func (o *HyperflexExtFcStoragePolicy) HasClusterProfiles() bool { - if o != nil && IsNil(o.ClusterProfiles) { + if o != nil && !IsNil(o.ClusterProfiles) { return true } @@ -367,7 +377,13 @@ func (o HyperflexExtFcStoragePolicy) ToMap() (map[string]interface{}, error) { if errPolicyAbstractPolicy != nil { return map[string]interface{}{}, errPolicyAbstractPolicy } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.AdminState) { toSerialize["AdminState"] = o.AdminState @@ -404,6 +420,13 @@ func (o *HyperflexExtFcStoragePolicy) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -413,11 +436,23 @@ func (o *HyperflexExtFcStoragePolicy) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type HyperflexExtFcStoragePolicyWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_hyperflex_ext_fc_storage_policy_list.go b/model_hyperflex_ext_fc_storage_policy_list.go index b6e1d8e623..4ac5cbabea 100644 --- a/model_hyperflex_ext_fc_storage_policy_list.go +++ b/model_hyperflex_ext_fc_storage_policy_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *HyperflexExtFcStoragePolicyList) GetResultsOk() ([]HyperflexExtFcStorag // HasResults returns a boolean if a field has been set. func (o *HyperflexExtFcStoragePolicyList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *HyperflexExtFcStoragePolicyList) UnmarshalJSON(data []byte) (err error) "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *HyperflexExtFcStoragePolicyList) UnmarshalJSON(data []byte) (err error) } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type HyperflexExtFcStoragePolicyListWithoutEmbeddedStruct struct { // The total number of 'hyperflex.ExtFcStoragePolicy' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_hyperflex_ext_fc_storage_policy_relationship.go b/model_hyperflex_ext_fc_storage_policy_relationship.go index 28be5b2e90..8e1a1e0277 100644 --- a/model_hyperflex_ext_fc_storage_policy_relationship.go +++ b/model_hyperflex_ext_fc_storage_policy_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_hyperflex_ext_fc_storage_policy_response.go b/model_hyperflex_ext_fc_storage_policy_response.go index 2c5595b5b7..861e4e7107 100644 --- a/model_hyperflex_ext_fc_storage_policy_response.go +++ b/model_hyperflex_ext_fc_storage_policy_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_hyperflex_ext_iscsi_storage_policy.go b/model_hyperflex_ext_iscsi_storage_policy.go index d8f2ad33c8..d4fe2df913 100644 --- a/model_hyperflex_ext_iscsi_storage_policy.go +++ b/model_hyperflex_ext_iscsi_storage_policy.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -87,6 +87,11 @@ func (o *HyperflexExtIscsiStoragePolicy) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "hyperflex.ExtIscsiStoragePolicy" of the ClassId field. +func (o *HyperflexExtIscsiStoragePolicy) GetDefaultClassId() interface{} { + return "hyperflex.ExtIscsiStoragePolicy" +} + // GetObjectType returns the ObjectType field value func (o *HyperflexExtIscsiStoragePolicy) GetObjectType() string { if o == nil { @@ -111,6 +116,11 @@ func (o *HyperflexExtIscsiStoragePolicy) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "hyperflex.ExtIscsiStoragePolicy" of the ObjectType field. +func (o *HyperflexExtIscsiStoragePolicy) GetDefaultObjectType() interface{} { + return "hyperflex.ExtIscsiStoragePolicy" +} + // GetAdminState returns the AdminState field value if set, zero value otherwise. func (o *HyperflexExtIscsiStoragePolicy) GetAdminState() bool { if o == nil || IsNil(o.AdminState) { @@ -250,7 +260,7 @@ func (o *HyperflexExtIscsiStoragePolicy) GetClusterProfilesOk() ([]HyperflexClus // HasClusterProfiles returns a boolean if a field has been set. func (o *HyperflexExtIscsiStoragePolicy) HasClusterProfiles() bool { - if o != nil && IsNil(o.ClusterProfiles) { + if o != nil && !IsNil(o.ClusterProfiles) { return true } @@ -323,7 +333,13 @@ func (o HyperflexExtIscsiStoragePolicy) ToMap() (map[string]interface{}, error) if errPolicyAbstractPolicy != nil { return map[string]interface{}{}, errPolicyAbstractPolicy } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.AdminState) { toSerialize["AdminState"] = o.AdminState @@ -357,6 +373,13 @@ func (o *HyperflexExtIscsiStoragePolicy) UnmarshalJSON(data []byte) (err error) "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -366,11 +389,23 @@ func (o *HyperflexExtIscsiStoragePolicy) UnmarshalJSON(data []byte) (err error) } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type HyperflexExtIscsiStoragePolicyWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_hyperflex_ext_iscsi_storage_policy_list.go b/model_hyperflex_ext_iscsi_storage_policy_list.go index a88d54e555..18384c5184 100644 --- a/model_hyperflex_ext_iscsi_storage_policy_list.go +++ b/model_hyperflex_ext_iscsi_storage_policy_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *HyperflexExtIscsiStoragePolicyList) GetResultsOk() ([]HyperflexExtIscsi // HasResults returns a boolean if a field has been set. func (o *HyperflexExtIscsiStoragePolicyList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *HyperflexExtIscsiStoragePolicyList) UnmarshalJSON(data []byte) (err err "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *HyperflexExtIscsiStoragePolicyList) UnmarshalJSON(data []byte) (err err } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type HyperflexExtIscsiStoragePolicyListWithoutEmbeddedStruct struct { // The total number of 'hyperflex.ExtIscsiStoragePolicy' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_hyperflex_ext_iscsi_storage_policy_relationship.go b/model_hyperflex_ext_iscsi_storage_policy_relationship.go index 62ef93a746..ae28ae0a83 100644 --- a/model_hyperflex_ext_iscsi_storage_policy_relationship.go +++ b/model_hyperflex_ext_iscsi_storage_policy_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_hyperflex_ext_iscsi_storage_policy_response.go b/model_hyperflex_ext_iscsi_storage_policy_response.go index 32128eddbe..59744352f7 100644 --- a/model_hyperflex_ext_iscsi_storage_policy_response.go +++ b/model_hyperflex_ext_iscsi_storage_policy_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_hyperflex_feature_limit_entry.go b/model_hyperflex_feature_limit_entry.go index 315c67a0e2..18e07f742d 100644 --- a/model_hyperflex_feature_limit_entry.go +++ b/model_hyperflex_feature_limit_entry.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -81,6 +81,11 @@ func (o *HyperflexFeatureLimitEntry) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "hyperflex.FeatureLimitEntry" of the ClassId field. +func (o *HyperflexFeatureLimitEntry) GetDefaultClassId() interface{} { + return "hyperflex.FeatureLimitEntry" +} + // GetObjectType returns the ObjectType field value func (o *HyperflexFeatureLimitEntry) GetObjectType() string { if o == nil { @@ -105,6 +110,11 @@ func (o *HyperflexFeatureLimitEntry) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "hyperflex.FeatureLimitEntry" of the ObjectType field. +func (o *HyperflexFeatureLimitEntry) GetDefaultObjectType() interface{} { + return "hyperflex.FeatureLimitEntry" +} + // GetConstraint returns the Constraint field value if set, zero value otherwise (both if not set or set to explicit null). func (o *HyperflexFeatureLimitEntry) GetConstraint() HyperflexAppSettingConstraint { if o == nil || IsNil(o.Constraint.Get()) { @@ -166,7 +176,13 @@ func (o HyperflexFeatureLimitEntry) ToMap() (map[string]interface{}, error) { if errHyperflexAbstractAppSetting != nil { return map[string]interface{}{}, errHyperflexAbstractAppSetting } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.Constraint.IsSet() { toSerialize["Constraint"] = o.Constraint.Get() @@ -188,6 +204,13 @@ func (o *HyperflexFeatureLimitEntry) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -197,11 +220,23 @@ func (o *HyperflexFeatureLimitEntry) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type HyperflexFeatureLimitEntryWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_hyperflex_feature_limit_external.go b/model_hyperflex_feature_limit_external.go index 074c12ba2c..c74098d41f 100644 --- a/model_hyperflex_feature_limit_external.go +++ b/model_hyperflex_feature_limit_external.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -82,6 +82,11 @@ func (o *HyperflexFeatureLimitExternal) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "hyperflex.FeatureLimitExternal" of the ClassId field. +func (o *HyperflexFeatureLimitExternal) GetDefaultClassId() interface{} { + return "hyperflex.FeatureLimitExternal" +} + // GetObjectType returns the ObjectType field value func (o *HyperflexFeatureLimitExternal) GetObjectType() string { if o == nil { @@ -106,6 +111,11 @@ func (o *HyperflexFeatureLimitExternal) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "hyperflex.FeatureLimitExternal" of the ObjectType field. +func (o *HyperflexFeatureLimitExternal) GetDefaultObjectType() interface{} { + return "hyperflex.FeatureLimitExternal" +} + // GetFeatureLimitEntries returns the FeatureLimitEntries field value if set, zero value otherwise (both if not set or set to explicit null). func (o *HyperflexFeatureLimitExternal) GetFeatureLimitEntries() []HyperflexFeatureLimitEntry { if o == nil { @@ -127,7 +137,7 @@ func (o *HyperflexFeatureLimitExternal) GetFeatureLimitEntriesOk() ([]HyperflexF // HasFeatureLimitEntries returns a boolean if a field has been set. func (o *HyperflexFeatureLimitExternal) HasFeatureLimitEntries() bool { - if o != nil && IsNil(o.FeatureLimitEntries) { + if o != nil && !IsNil(o.FeatureLimitEntries) { return true } @@ -200,7 +210,13 @@ func (o HyperflexFeatureLimitExternal) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.FeatureLimitEntries != nil { toSerialize["FeatureLimitEntries"] = o.FeatureLimitEntries @@ -225,6 +241,13 @@ func (o *HyperflexFeatureLimitExternal) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -234,11 +257,23 @@ func (o *HyperflexFeatureLimitExternal) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type HyperflexFeatureLimitExternalWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_hyperflex_feature_limit_external_list.go b/model_hyperflex_feature_limit_external_list.go index 2051640e13..42fa7acd8a 100644 --- a/model_hyperflex_feature_limit_external_list.go +++ b/model_hyperflex_feature_limit_external_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *HyperflexFeatureLimitExternalList) GetResultsOk() ([]HyperflexFeatureLi // HasResults returns a boolean if a field has been set. func (o *HyperflexFeatureLimitExternalList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *HyperflexFeatureLimitExternalList) UnmarshalJSON(data []byte) (err erro "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *HyperflexFeatureLimitExternalList) UnmarshalJSON(data []byte) (err erro } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type HyperflexFeatureLimitExternalListWithoutEmbeddedStruct struct { // The total number of 'hyperflex.FeatureLimitExternal' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_hyperflex_feature_limit_external_relationship.go b/model_hyperflex_feature_limit_external_relationship.go index 34f29b84de..6a6762b97e 100644 --- a/model_hyperflex_feature_limit_external_relationship.go +++ b/model_hyperflex_feature_limit_external_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_hyperflex_feature_limit_external_response.go b/model_hyperflex_feature_limit_external_response.go index cea8560a38..1813754946 100644 --- a/model_hyperflex_feature_limit_external_response.go +++ b/model_hyperflex_feature_limit_external_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_hyperflex_feature_limit_internal.go b/model_hyperflex_feature_limit_internal.go index 3171d9e530..29b3c6a4e6 100644 --- a/model_hyperflex_feature_limit_internal.go +++ b/model_hyperflex_feature_limit_internal.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -82,6 +82,11 @@ func (o *HyperflexFeatureLimitInternal) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "hyperflex.FeatureLimitInternal" of the ClassId field. +func (o *HyperflexFeatureLimitInternal) GetDefaultClassId() interface{} { + return "hyperflex.FeatureLimitInternal" +} + // GetObjectType returns the ObjectType field value func (o *HyperflexFeatureLimitInternal) GetObjectType() string { if o == nil { @@ -106,6 +111,11 @@ func (o *HyperflexFeatureLimitInternal) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "hyperflex.FeatureLimitInternal" of the ObjectType field. +func (o *HyperflexFeatureLimitInternal) GetDefaultObjectType() interface{} { + return "hyperflex.FeatureLimitInternal" +} + // GetFeatureLimitEntries returns the FeatureLimitEntries field value if set, zero value otherwise (both if not set or set to explicit null). func (o *HyperflexFeatureLimitInternal) GetFeatureLimitEntries() []HyperflexFeatureLimitEntry { if o == nil { @@ -127,7 +137,7 @@ func (o *HyperflexFeatureLimitInternal) GetFeatureLimitEntriesOk() ([]HyperflexF // HasFeatureLimitEntries returns a boolean if a field has been set. func (o *HyperflexFeatureLimitInternal) HasFeatureLimitEntries() bool { - if o != nil && IsNil(o.FeatureLimitEntries) { + if o != nil && !IsNil(o.FeatureLimitEntries) { return true } @@ -200,7 +210,13 @@ func (o HyperflexFeatureLimitInternal) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.FeatureLimitEntries != nil { toSerialize["FeatureLimitEntries"] = o.FeatureLimitEntries @@ -225,6 +241,13 @@ func (o *HyperflexFeatureLimitInternal) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -234,11 +257,23 @@ func (o *HyperflexFeatureLimitInternal) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type HyperflexFeatureLimitInternalWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_hyperflex_feature_limit_internal_list.go b/model_hyperflex_feature_limit_internal_list.go index fc599041a6..1c4ebbf66d 100644 --- a/model_hyperflex_feature_limit_internal_list.go +++ b/model_hyperflex_feature_limit_internal_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *HyperflexFeatureLimitInternalList) GetResultsOk() ([]HyperflexFeatureLi // HasResults returns a boolean if a field has been set. func (o *HyperflexFeatureLimitInternalList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *HyperflexFeatureLimitInternalList) UnmarshalJSON(data []byte) (err erro "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *HyperflexFeatureLimitInternalList) UnmarshalJSON(data []byte) (err erro } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type HyperflexFeatureLimitInternalListWithoutEmbeddedStruct struct { // The total number of 'hyperflex.FeatureLimitInternal' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_hyperflex_feature_limit_internal_relationship.go b/model_hyperflex_feature_limit_internal_relationship.go index c71d8fd0e4..509fe72974 100644 --- a/model_hyperflex_feature_limit_internal_relationship.go +++ b/model_hyperflex_feature_limit_internal_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_hyperflex_feature_limit_internal_response.go b/model_hyperflex_feature_limit_internal_response.go index a7dea0cc6e..2145a97b2e 100644 --- a/model_hyperflex_feature_limit_internal_response.go +++ b/model_hyperflex_feature_limit_internal_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_hyperflex_file_path.go b/model_hyperflex_file_path.go index dfbbee7f6c..16c080b468 100644 --- a/model_hyperflex_file_path.go +++ b/model_hyperflex_file_path.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -83,6 +83,11 @@ func (o *HyperflexFilePath) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "hyperflex.FilePath" of the ClassId field. +func (o *HyperflexFilePath) GetDefaultClassId() interface{} { + return "hyperflex.FilePath" +} + // GetObjectType returns the ObjectType field value func (o *HyperflexFilePath) GetObjectType() string { if o == nil { @@ -107,6 +112,11 @@ func (o *HyperflexFilePath) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "hyperflex.FilePath" of the ObjectType field. +func (o *HyperflexFilePath) GetDefaultObjectType() interface{} { + return "hyperflex.FilePath" +} + // GetDsInfo returns the DsInfo field value if set, zero value otherwise (both if not set or set to explicit null). func (o *HyperflexFilePath) GetDsInfo() HyperflexDatastoreInfo { if o == nil || IsNil(o.DsInfo.Get()) { @@ -200,7 +210,13 @@ func (o HyperflexFilePath) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.DsInfo.IsSet() { toSerialize["DsInfo"] = o.DsInfo.Get() @@ -225,6 +241,13 @@ func (o *HyperflexFilePath) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -234,11 +257,23 @@ func (o *HyperflexFilePath) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type HyperflexFilePathWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_hyperflex_health.go b/model_hyperflex_health.go index 394648b6f2..ea3288da5d 100644 --- a/model_hyperflex_health.go +++ b/model_hyperflex_health.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -93,6 +93,11 @@ func (o *HyperflexHealth) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "hyperflex.Health" of the ClassId field. +func (o *HyperflexHealth) GetDefaultClassId() interface{} { + return "hyperflex.Health" +} + // GetObjectType returns the ObjectType field value func (o *HyperflexHealth) GetObjectType() string { if o == nil { @@ -117,6 +122,11 @@ func (o *HyperflexHealth) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "hyperflex.Health" of the ObjectType field. +func (o *HyperflexHealth) GetDefaultObjectType() interface{} { + return "hyperflex.Health" +} + // GetArbitrationServiceState returns the ArbitrationServiceState field value if set, zero value otherwise. func (o *HyperflexHealth) GetArbitrationServiceState() string { if o == nil || IsNil(o.ArbitrationServiceState) { @@ -341,7 +351,7 @@ func (o *HyperflexHealth) GetZoneResiliencyListOk() ([]HyperflexHxZoneResiliency // HasZoneResiliencyList returns a boolean if a field has been set. func (o *HyperflexHealth) HasZoneResiliencyList() bool { - if o != nil && IsNil(o.ZoneResiliencyList) { + if o != nil && !IsNil(o.ZoneResiliencyList) { return true } @@ -414,7 +424,13 @@ func (o HyperflexHealth) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.ArbitrationServiceState) { toSerialize["ArbitrationServiceState"] = o.ArbitrationServiceState @@ -457,6 +473,13 @@ func (o *HyperflexHealth) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -466,11 +489,23 @@ func (o *HyperflexHealth) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type HyperflexHealthWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_hyperflex_health_check_definition.go b/model_hyperflex_health_check_definition.go index 42ce5c88b4..c95684b420 100644 --- a/model_hyperflex_health_check_definition.go +++ b/model_hyperflex_health_check_definition.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -125,6 +125,11 @@ func (o *HyperflexHealthCheckDefinition) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "hyperflex.HealthCheckDefinition" of the ClassId field. +func (o *HyperflexHealthCheckDefinition) GetDefaultClassId() interface{} { + return "hyperflex.HealthCheckDefinition" +} + // GetObjectType returns the ObjectType field value func (o *HyperflexHealthCheckDefinition) GetObjectType() string { if o == nil { @@ -149,6 +154,11 @@ func (o *HyperflexHealthCheckDefinition) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "hyperflex.HealthCheckDefinition" of the ObjectType field. +func (o *HyperflexHealthCheckDefinition) GetDefaultObjectType() interface{} { + return "hyperflex.HealthCheckDefinition" +} + // GetCategory returns the Category field value if set, zero value otherwise. func (o *HyperflexHealthCheckDefinition) GetCategory() string { if o == nil || IsNil(o.Category) { @@ -341,7 +351,7 @@ func (o *HyperflexHealthCheckDefinition) GetHealthCheckScriptInfosOk() ([]Hyperf // HasHealthCheckScriptInfos returns a boolean if a field has been set. func (o *HyperflexHealthCheckDefinition) HasHealthCheckScriptInfos() bool { - if o != nil && IsNil(o.HealthCheckScriptInfos) { + if o != nil && !IsNil(o.HealthCheckScriptInfos) { return true } @@ -726,7 +736,7 @@ func (o *HyperflexHealthCheckDefinition) GetUnsupportedHyperFlexVersionsOk() ([] // HasUnsupportedHyperFlexVersions returns a boolean if a field has been set. func (o *HyperflexHealthCheckDefinition) HasUnsupportedHyperFlexVersions() bool { - if o != nil && IsNil(o.UnsupportedHyperFlexVersions) { + if o != nil && !IsNil(o.UnsupportedHyperFlexVersions) { return true } @@ -756,7 +766,13 @@ func (o HyperflexHealthCheckDefinition) ToMap() (map[string]interface{}, error) if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Category) { toSerialize["Category"] = o.Category @@ -829,6 +845,13 @@ func (o *HyperflexHealthCheckDefinition) UnmarshalJSON(data []byte) (err error) "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -838,11 +861,23 @@ func (o *HyperflexHealthCheckDefinition) UnmarshalJSON(data []byte) (err error) } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type HyperflexHealthCheckDefinitionWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_hyperflex_health_check_definition_list.go b/model_hyperflex_health_check_definition_list.go index 0515ce96ac..874251b9ec 100644 --- a/model_hyperflex_health_check_definition_list.go +++ b/model_hyperflex_health_check_definition_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *HyperflexHealthCheckDefinitionList) GetResultsOk() ([]HyperflexHealthCh // HasResults returns a boolean if a field has been set. func (o *HyperflexHealthCheckDefinitionList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *HyperflexHealthCheckDefinitionList) UnmarshalJSON(data []byte) (err err "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *HyperflexHealthCheckDefinitionList) UnmarshalJSON(data []byte) (err err } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type HyperflexHealthCheckDefinitionListWithoutEmbeddedStruct struct { // The total number of 'hyperflex.HealthCheckDefinition' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_hyperflex_health_check_definition_relationship.go b/model_hyperflex_health_check_definition_relationship.go index d0763da1bd..c64a9f3653 100644 --- a/model_hyperflex_health_check_definition_relationship.go +++ b/model_hyperflex_health_check_definition_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_hyperflex_health_check_definition_response.go b/model_hyperflex_health_check_definition_response.go index 96cf68f5e4..6140483f76 100644 --- a/model_hyperflex_health_check_definition_response.go +++ b/model_hyperflex_health_check_definition_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_hyperflex_health_check_execution.go b/model_hyperflex_health_check_execution.go index 730c8f1035..88a7737f3b 100644 --- a/model_hyperflex_health_check_execution.go +++ b/model_hyperflex_health_check_execution.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -111,6 +111,11 @@ func (o *HyperflexHealthCheckExecution) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "hyperflex.HealthCheckExecution" of the ClassId field. +func (o *HyperflexHealthCheckExecution) GetDefaultClassId() interface{} { + return "hyperflex.HealthCheckExecution" +} + // GetObjectType returns the ObjectType field value func (o *HyperflexHealthCheckExecution) GetObjectType() string { if o == nil { @@ -135,6 +140,11 @@ func (o *HyperflexHealthCheckExecution) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "hyperflex.HealthCheckExecution" of the ObjectType field. +func (o *HyperflexHealthCheckExecution) GetDefaultObjectType() interface{} { + return "hyperflex.HealthCheckExecution" +} + // GetCategory returns the Category field value if set, zero value otherwise. func (o *HyperflexHealthCheckExecution) GetCategory() string { if o == nil || IsNil(o.Category) { @@ -508,7 +518,7 @@ func (o *HyperflexHealthCheckExecution) GetNodeLevelInfoOk() ([]HyperflexHealthC // HasNodeLevelInfo returns a boolean if a field has been set. func (o *HyperflexHealthCheckExecution) HasNodeLevelInfo() bool { - if o != nil && IsNil(o.NodeLevelInfo) { + if o != nil && !IsNil(o.NodeLevelInfo) { return true } @@ -731,7 +741,13 @@ func (o HyperflexHealthCheckExecution) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Category) { toSerialize["Category"] = o.Category @@ -801,6 +817,13 @@ func (o *HyperflexHealthCheckExecution) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -810,11 +833,23 @@ func (o *HyperflexHealthCheckExecution) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type HyperflexHealthCheckExecutionWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_hyperflex_health_check_execution_list.go b/model_hyperflex_health_check_execution_list.go index f84542bf73..26e639469b 100644 --- a/model_hyperflex_health_check_execution_list.go +++ b/model_hyperflex_health_check_execution_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *HyperflexHealthCheckExecutionList) GetResultsOk() ([]HyperflexHealthChe // HasResults returns a boolean if a field has been set. func (o *HyperflexHealthCheckExecutionList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *HyperflexHealthCheckExecutionList) UnmarshalJSON(data []byte) (err erro "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *HyperflexHealthCheckExecutionList) UnmarshalJSON(data []byte) (err erro } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type HyperflexHealthCheckExecutionListWithoutEmbeddedStruct struct { // The total number of 'hyperflex.HealthCheckExecution' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_hyperflex_health_check_execution_response.go b/model_hyperflex_health_check_execution_response.go index 53feddc5b6..41476353f1 100644 --- a/model_hyperflex_health_check_execution_response.go +++ b/model_hyperflex_health_check_execution_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_hyperflex_health_check_execution_snapshot.go b/model_hyperflex_health_check_execution_snapshot.go index b344d9dc88..d7b4197872 100644 --- a/model_hyperflex_health_check_execution_snapshot.go +++ b/model_hyperflex_health_check_execution_snapshot.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -110,6 +110,11 @@ func (o *HyperflexHealthCheckExecutionSnapshot) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "hyperflex.HealthCheckExecutionSnapshot" of the ClassId field. +func (o *HyperflexHealthCheckExecutionSnapshot) GetDefaultClassId() interface{} { + return "hyperflex.HealthCheckExecutionSnapshot" +} + // GetObjectType returns the ObjectType field value func (o *HyperflexHealthCheckExecutionSnapshot) GetObjectType() string { if o == nil { @@ -134,6 +139,11 @@ func (o *HyperflexHealthCheckExecutionSnapshot) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "hyperflex.HealthCheckExecutionSnapshot" of the ObjectType field. +func (o *HyperflexHealthCheckExecutionSnapshot) GetDefaultObjectType() interface{} { + return "hyperflex.HealthCheckExecutionSnapshot" +} + // GetCategory returns the Category field value if set, zero value otherwise. func (o *HyperflexHealthCheckExecutionSnapshot) GetCategory() string { if o == nil || IsNil(o.Category) { @@ -507,7 +517,7 @@ func (o *HyperflexHealthCheckExecutionSnapshot) GetNodeLevelInfoOk() ([]Hyperfle // HasNodeLevelInfo returns a boolean if a field has been set. func (o *HyperflexHealthCheckExecutionSnapshot) HasNodeLevelInfo() bool { - if o != nil && IsNil(o.NodeLevelInfo) { + if o != nil && !IsNil(o.NodeLevelInfo) { return true } @@ -741,7 +751,13 @@ func (o HyperflexHealthCheckExecutionSnapshot) ToMap() (map[string]interface{}, if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Category) { toSerialize["Category"] = o.Category @@ -811,6 +827,13 @@ func (o *HyperflexHealthCheckExecutionSnapshot) UnmarshalJSON(data []byte) (err "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -820,11 +843,23 @@ func (o *HyperflexHealthCheckExecutionSnapshot) UnmarshalJSON(data []byte) (err } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type HyperflexHealthCheckExecutionSnapshotWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_hyperflex_health_check_execution_snapshot_list.go b/model_hyperflex_health_check_execution_snapshot_list.go index a5f7205ef6..fbc90d797e 100644 --- a/model_hyperflex_health_check_execution_snapshot_list.go +++ b/model_hyperflex_health_check_execution_snapshot_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *HyperflexHealthCheckExecutionSnapshotList) GetResultsOk() ([]HyperflexH // HasResults returns a boolean if a field has been set. func (o *HyperflexHealthCheckExecutionSnapshotList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *HyperflexHealthCheckExecutionSnapshotList) UnmarshalJSON(data []byte) ( "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *HyperflexHealthCheckExecutionSnapshotList) UnmarshalJSON(data []byte) ( } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type HyperflexHealthCheckExecutionSnapshotListWithoutEmbeddedStruct struct { // The total number of 'hyperflex.HealthCheckExecutionSnapshot' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_hyperflex_health_check_execution_snapshot_response.go b/model_hyperflex_health_check_execution_snapshot_response.go index cea3a4a654..4f4f03f246 100644 --- a/model_hyperflex_health_check_execution_snapshot_response.go +++ b/model_hyperflex_health_check_execution_snapshot_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_hyperflex_health_check_node_level_info.go b/model_hyperflex_health_check_node_level_info.go index 5b7a286ff3..2b1934cee6 100644 --- a/model_hyperflex_health_check_node_level_info.go +++ b/model_hyperflex_health_check_node_level_info.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -92,6 +92,11 @@ func (o *HyperflexHealthCheckNodeLevelInfo) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "hyperflex.HealthCheckNodeLevelInfo" of the ClassId field. +func (o *HyperflexHealthCheckNodeLevelInfo) GetDefaultClassId() interface{} { + return "hyperflex.HealthCheckNodeLevelInfo" +} + // GetObjectType returns the ObjectType field value func (o *HyperflexHealthCheckNodeLevelInfo) GetObjectType() string { if o == nil { @@ -116,6 +121,11 @@ func (o *HyperflexHealthCheckNodeLevelInfo) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "hyperflex.HealthCheckNodeLevelInfo" of the ObjectType field. +func (o *HyperflexHealthCheckNodeLevelInfo) GetDefaultObjectType() interface{} { + return "hyperflex.HealthCheckNodeLevelInfo" +} + // GetNodeCause returns the NodeCause field value if set, zero value otherwise. func (o *HyperflexHealthCheckNodeLevelInfo) GetNodeCause() string { if o == nil || IsNil(o.NodeCause) { @@ -326,7 +336,13 @@ func (o HyperflexHealthCheckNodeLevelInfo) ToMap() (map[string]interface{}, erro if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.NodeCause) { toSerialize["NodeCause"] = o.NodeCause @@ -363,6 +379,13 @@ func (o *HyperflexHealthCheckNodeLevelInfo) UnmarshalJSON(data []byte) (err erro "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -372,11 +395,23 @@ func (o *HyperflexHealthCheckNodeLevelInfo) UnmarshalJSON(data []byte) (err erro } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type HyperflexHealthCheckNodeLevelInfoWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_hyperflex_health_check_package_checksum.go b/model_hyperflex_health_check_package_checksum.go index a8b7028fa5..c7daecd74f 100644 --- a/model_hyperflex_health_check_package_checksum.go +++ b/model_hyperflex_health_check_package_checksum.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -91,6 +91,11 @@ func (o *HyperflexHealthCheckPackageChecksum) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "hyperflex.HealthCheckPackageChecksum" of the ClassId field. +func (o *HyperflexHealthCheckPackageChecksum) GetDefaultClassId() interface{} { + return "hyperflex.HealthCheckPackageChecksum" +} + // GetObjectType returns the ObjectType field value func (o *HyperflexHealthCheckPackageChecksum) GetObjectType() string { if o == nil { @@ -115,6 +120,11 @@ func (o *HyperflexHealthCheckPackageChecksum) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "hyperflex.HealthCheckPackageChecksum" of the ObjectType field. +func (o *HyperflexHealthCheckPackageChecksum) GetDefaultObjectType() interface{} { + return "hyperflex.HealthCheckPackageChecksum" +} + // GetChecksum returns the Checksum field value if set, zero value otherwise. func (o *HyperflexHealthCheckPackageChecksum) GetChecksum() string { if o == nil || IsNil(o.Checksum) { @@ -293,7 +303,13 @@ func (o HyperflexHealthCheckPackageChecksum) ToMap() (map[string]interface{}, er if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Checksum) { toSerialize["Checksum"] = o.Checksum @@ -327,6 +343,13 @@ func (o *HyperflexHealthCheckPackageChecksum) UnmarshalJSON(data []byte) (err er "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -336,11 +359,23 @@ func (o *HyperflexHealthCheckPackageChecksum) UnmarshalJSON(data []byte) (err er } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type HyperflexHealthCheckPackageChecksumWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_hyperflex_health_check_package_checksum_list.go b/model_hyperflex_health_check_package_checksum_list.go index ab5e06916e..4b479fe189 100644 --- a/model_hyperflex_health_check_package_checksum_list.go +++ b/model_hyperflex_health_check_package_checksum_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *HyperflexHealthCheckPackageChecksumList) GetResultsOk() ([]HyperflexHea // HasResults returns a boolean if a field has been set. func (o *HyperflexHealthCheckPackageChecksumList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *HyperflexHealthCheckPackageChecksumList) UnmarshalJSON(data []byte) (er "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *HyperflexHealthCheckPackageChecksumList) UnmarshalJSON(data []byte) (er } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type HyperflexHealthCheckPackageChecksumListWithoutEmbeddedStruct struct { // The total number of 'hyperflex.HealthCheckPackageChecksum' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_hyperflex_health_check_package_checksum_response.go b/model_hyperflex_health_check_package_checksum_response.go index a74680b369..cfc8185448 100644 --- a/model_hyperflex_health_check_package_checksum_response.go +++ b/model_hyperflex_health_check_package_checksum_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_hyperflex_health_check_schedule_policy.go b/model_hyperflex_health_check_schedule_policy.go index ae2d872eef..4b207ef0cb 100644 --- a/model_hyperflex_health_check_schedule_policy.go +++ b/model_hyperflex_health_check_schedule_policy.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -98,6 +98,11 @@ func (o *HyperflexHealthCheckSchedulePolicy) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "hyperflex.HealthCheckSchedulePolicy" of the ClassId field. +func (o *HyperflexHealthCheckSchedulePolicy) GetDefaultClassId() interface{} { + return "hyperflex.HealthCheckSchedulePolicy" +} + // GetObjectType returns the ObjectType field value func (o *HyperflexHealthCheckSchedulePolicy) GetObjectType() string { if o == nil { @@ -122,6 +127,11 @@ func (o *HyperflexHealthCheckSchedulePolicy) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "hyperflex.HealthCheckSchedulePolicy" of the ObjectType field. +func (o *HyperflexHealthCheckSchedulePolicy) GetDefaultObjectType() interface{} { + return "hyperflex.HealthCheckSchedulePolicy" +} + // GetLastScheduledOn returns the LastScheduledOn field value if set, zero value otherwise. func (o *HyperflexHealthCheckSchedulePolicy) GetLastScheduledOn() time.Time { if o == nil || IsNil(o.LastScheduledOn) { @@ -375,7 +385,13 @@ func (o HyperflexHealthCheckSchedulePolicy) ToMap() (map[string]interface{}, err if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.LastScheduledOn) { toSerialize["LastScheduledOn"] = o.LastScheduledOn @@ -415,6 +431,13 @@ func (o *HyperflexHealthCheckSchedulePolicy) UnmarshalJSON(data []byte) (err err "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -424,11 +447,23 @@ func (o *HyperflexHealthCheckSchedulePolicy) UnmarshalJSON(data []byte) (err err } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type HyperflexHealthCheckSchedulePolicyWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_hyperflex_health_check_schedule_policy_list.go b/model_hyperflex_health_check_schedule_policy_list.go index 12fca3ed01..b2342b2319 100644 --- a/model_hyperflex_health_check_schedule_policy_list.go +++ b/model_hyperflex_health_check_schedule_policy_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *HyperflexHealthCheckSchedulePolicyList) GetResultsOk() ([]HyperflexHeal // HasResults returns a boolean if a field has been set. func (o *HyperflexHealthCheckSchedulePolicyList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *HyperflexHealthCheckSchedulePolicyList) UnmarshalJSON(data []byte) (err "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *HyperflexHealthCheckSchedulePolicyList) UnmarshalJSON(data []byte) (err } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type HyperflexHealthCheckSchedulePolicyListWithoutEmbeddedStruct struct { // The total number of 'hyperflex.HealthCheckSchedulePolicy' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_hyperflex_health_check_schedule_policy_response.go b/model_hyperflex_health_check_schedule_policy_response.go index bb939a9aee..b37ab7766a 100644 --- a/model_hyperflex_health_check_schedule_policy_response.go +++ b/model_hyperflex_health_check_schedule_policy_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_hyperflex_health_check_script_info.go b/model_hyperflex_health_check_script_info.go index 500fe2bb45..f57b2beb3a 100644 --- a/model_hyperflex_health_check_script_info.go +++ b/model_hyperflex_health_check_script_info.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -92,6 +92,11 @@ func (o *HyperflexHealthCheckScriptInfo) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "hyperflex.HealthCheckScriptInfo" of the ClassId field. +func (o *HyperflexHealthCheckScriptInfo) GetDefaultClassId() interface{} { + return "hyperflex.HealthCheckScriptInfo" +} + // GetObjectType returns the ObjectType field value func (o *HyperflexHealthCheckScriptInfo) GetObjectType() string { if o == nil { @@ -116,6 +121,11 @@ func (o *HyperflexHealthCheckScriptInfo) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "hyperflex.HealthCheckScriptInfo" of the ObjectType field. +func (o *HyperflexHealthCheckScriptInfo) GetDefaultObjectType() interface{} { + return "hyperflex.HealthCheckScriptInfo" +} + // GetAggregateScriptName returns the AggregateScriptName field value if set, zero value otherwise. func (o *HyperflexHealthCheckScriptInfo) GetAggregateScriptName() string { if o == nil || IsNil(o.AggregateScriptName) { @@ -326,7 +336,13 @@ func (o HyperflexHealthCheckScriptInfo) ToMap() (map[string]interface{}, error) if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.AggregateScriptName) { toSerialize["AggregateScriptName"] = o.AggregateScriptName @@ -363,6 +379,13 @@ func (o *HyperflexHealthCheckScriptInfo) UnmarshalJSON(data []byte) (err error) "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -372,11 +395,23 @@ func (o *HyperflexHealthCheckScriptInfo) UnmarshalJSON(data []byte) (err error) } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type HyperflexHealthCheckScriptInfoWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_hyperflex_health_list.go b/model_hyperflex_health_list.go index 958ded4090..a3a9ed6fdf 100644 --- a/model_hyperflex_health_list.go +++ b/model_hyperflex_health_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *HyperflexHealthList) GetResultsOk() ([]HyperflexHealth, bool) { // HasResults returns a boolean if a field has been set. func (o *HyperflexHealthList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *HyperflexHealthList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *HyperflexHealthList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type HyperflexHealthListWithoutEmbeddedStruct struct { // The total number of 'hyperflex.Health' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_hyperflex_health_relationship.go b/model_hyperflex_health_relationship.go index 2b7aefa6d2..378535215e 100644 --- a/model_hyperflex_health_relationship.go +++ b/model_hyperflex_health_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_hyperflex_health_response.go b/model_hyperflex_health_response.go index 77e55b325f..a719e7bc0b 100644 --- a/model_hyperflex_health_response.go +++ b/model_hyperflex_health_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_hyperflex_hw_catalog.go b/model_hyperflex_hw_catalog.go index 6f969b2c99..bf3b0ad421 100644 --- a/model_hyperflex_hw_catalog.go +++ b/model_hyperflex_hw_catalog.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -84,6 +84,11 @@ func (o *HyperflexHwCatalog) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "hyperflex.HwCatalog" of the ClassId field. +func (o *HyperflexHwCatalog) GetDefaultClassId() interface{} { + return "hyperflex.HwCatalog" +} + // GetObjectType returns the ObjectType field value func (o *HyperflexHwCatalog) GetObjectType() string { if o == nil { @@ -108,6 +113,11 @@ func (o *HyperflexHwCatalog) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "hyperflex.HwCatalog" of the ObjectType field. +func (o *HyperflexHwCatalog) GetDefaultObjectType() interface{} { + return "hyperflex.HwCatalog" +} + // GetVersion returns the Version field value if set, zero value otherwise. func (o *HyperflexHwCatalog) GetVersion() string { if o == nil || IsNil(o.Version) { @@ -161,7 +171,7 @@ func (o *HyperflexHwCatalog) GetCatalogInfosOk() ([]HclHwCatalogInfoRelationship // HasCatalogInfos returns a boolean if a field has been set. func (o *HyperflexHwCatalog) HasCatalogInfos() bool { - if o != nil && IsNil(o.CatalogInfos) { + if o != nil && !IsNil(o.CatalogInfos) { return true } @@ -191,7 +201,13 @@ func (o HyperflexHwCatalog) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Version) { toSerialize["Version"] = o.Version @@ -216,6 +232,13 @@ func (o *HyperflexHwCatalog) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -225,11 +248,23 @@ func (o *HyperflexHwCatalog) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type HyperflexHwCatalogWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_hyperflex_hw_catalog_list.go b/model_hyperflex_hw_catalog_list.go index 96c187687b..bdd6d4496e 100644 --- a/model_hyperflex_hw_catalog_list.go +++ b/model_hyperflex_hw_catalog_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *HyperflexHwCatalogList) GetResultsOk() ([]HyperflexHwCatalog, bool) { // HasResults returns a boolean if a field has been set. func (o *HyperflexHwCatalogList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *HyperflexHwCatalogList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *HyperflexHwCatalogList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type HyperflexHwCatalogListWithoutEmbeddedStruct struct { // The total number of 'hyperflex.HwCatalog' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_hyperflex_hw_catalog_response.go b/model_hyperflex_hw_catalog_response.go index 045187ccdd..72fcb862bb 100644 --- a/model_hyperflex_hw_catalog_response.go +++ b/model_hyperflex_hw_catalog_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_hyperflex_hx_host_mount_status_dt.go b/model_hyperflex_hx_host_mount_status_dt.go index 022decd5f3..3247153120 100644 --- a/model_hyperflex_hx_host_mount_status_dt.go +++ b/model_hyperflex_hx_host_mount_status_dt.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -88,6 +88,11 @@ func (o *HyperflexHxHostMountStatusDt) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "hyperflex.HxHostMountStatusDt" of the ClassId field. +func (o *HyperflexHxHostMountStatusDt) GetDefaultClassId() interface{} { + return "hyperflex.HxHostMountStatusDt" +} + // GetObjectType returns the ObjectType field value func (o *HyperflexHxHostMountStatusDt) GetObjectType() string { if o == nil { @@ -112,6 +117,11 @@ func (o *HyperflexHxHostMountStatusDt) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "hyperflex.HxHostMountStatusDt" of the ObjectType field. +func (o *HyperflexHxHostMountStatusDt) GetDefaultObjectType() interface{} { + return "hyperflex.HxHostMountStatusDt" +} + // GetAccessibility returns the Accessibility field value if set, zero value otherwise. func (o *HyperflexHxHostMountStatusDt) GetAccessibility() string { if o == nil || IsNil(o.Accessibility) { @@ -258,7 +268,13 @@ func (o HyperflexHxHostMountStatusDt) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Accessibility) { toSerialize["Accessibility"] = o.Accessibility @@ -289,6 +305,13 @@ func (o *HyperflexHxHostMountStatusDt) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -298,11 +321,23 @@ func (o *HyperflexHxHostMountStatusDt) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type HyperflexHxHostMountStatusDtWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_hyperflex_hx_license_authorization_details_dt.go b/model_hyperflex_hx_license_authorization_details_dt.go index b2777cb7c4..5703ccd4f6 100644 --- a/model_hyperflex_hx_license_authorization_details_dt.go +++ b/model_hyperflex_hx_license_authorization_details_dt.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -92,6 +92,11 @@ func (o *HyperflexHxLicenseAuthorizationDetailsDt) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "hyperflex.HxLicenseAuthorizationDetailsDt" of the ClassId field. +func (o *HyperflexHxLicenseAuthorizationDetailsDt) GetDefaultClassId() interface{} { + return "hyperflex.HxLicenseAuthorizationDetailsDt" +} + // GetObjectType returns the ObjectType field value func (o *HyperflexHxLicenseAuthorizationDetailsDt) GetObjectType() string { if o == nil { @@ -116,6 +121,11 @@ func (o *HyperflexHxLicenseAuthorizationDetailsDt) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "hyperflex.HxLicenseAuthorizationDetailsDt" of the ObjectType field. +func (o *HyperflexHxLicenseAuthorizationDetailsDt) GetDefaultObjectType() interface{} { + return "hyperflex.HxLicenseAuthorizationDetailsDt" +} + // GetCommunicationDeadlineDate returns the CommunicationDeadlineDate field value if set, zero value otherwise. func (o *HyperflexHxLicenseAuthorizationDetailsDt) GetCommunicationDeadlineDate() string { if o == nil || IsNil(o.CommunicationDeadlineDate) { @@ -326,7 +336,13 @@ func (o HyperflexHxLicenseAuthorizationDetailsDt) ToMap() (map[string]interface{ if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.CommunicationDeadlineDate) { toSerialize["CommunicationDeadlineDate"] = o.CommunicationDeadlineDate @@ -363,6 +379,13 @@ func (o *HyperflexHxLicenseAuthorizationDetailsDt) UnmarshalJSON(data []byte) (e "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -372,11 +395,23 @@ func (o *HyperflexHxLicenseAuthorizationDetailsDt) UnmarshalJSON(data []byte) (e } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type HyperflexHxLicenseAuthorizationDetailsDtWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_hyperflex_hx_link_dt.go b/model_hyperflex_hx_link_dt.go index dd4473f6c5..09959d1129 100644 --- a/model_hyperflex_hx_link_dt.go +++ b/model_hyperflex_hx_link_dt.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -88,6 +88,11 @@ func (o *HyperflexHxLinkDt) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "hyperflex.HxLinkDt" of the ClassId field. +func (o *HyperflexHxLinkDt) GetDefaultClassId() interface{} { + return "hyperflex.HxLinkDt" +} + // GetObjectType returns the ObjectType field value func (o *HyperflexHxLinkDt) GetObjectType() string { if o == nil { @@ -112,6 +117,11 @@ func (o *HyperflexHxLinkDt) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "hyperflex.HxLinkDt" of the ObjectType field. +func (o *HyperflexHxLinkDt) GetDefaultObjectType() interface{} { + return "hyperflex.HxLinkDt" +} + // GetComments returns the Comments field value if set, zero value otherwise. func (o *HyperflexHxLinkDt) GetComments() string { if o == nil || IsNil(o.Comments) { @@ -258,7 +268,13 @@ func (o HyperflexHxLinkDt) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Comments) { toSerialize["Comments"] = o.Comments @@ -289,6 +305,13 @@ func (o *HyperflexHxLinkDt) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -298,11 +321,23 @@ func (o *HyperflexHxLinkDt) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type HyperflexHxLinkDtWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_hyperflex_hx_network_address_dt.go b/model_hyperflex_hx_network_address_dt.go index 9ebb9f5e83..9cafb332f1 100644 --- a/model_hyperflex_hx_network_address_dt.go +++ b/model_hyperflex_hx_network_address_dt.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -86,6 +86,11 @@ func (o *HyperflexHxNetworkAddressDt) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "hyperflex.HxNetworkAddressDt" of the ClassId field. +func (o *HyperflexHxNetworkAddressDt) GetDefaultClassId() interface{} { + return "hyperflex.HxNetworkAddressDt" +} + // GetObjectType returns the ObjectType field value func (o *HyperflexHxNetworkAddressDt) GetObjectType() string { if o == nil { @@ -110,6 +115,11 @@ func (o *HyperflexHxNetworkAddressDt) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "hyperflex.HxNetworkAddressDt" of the ObjectType field. +func (o *HyperflexHxNetworkAddressDt) GetDefaultObjectType() interface{} { + return "hyperflex.HxNetworkAddressDt" +} + // GetAddress returns the Address field value if set, zero value otherwise. func (o *HyperflexHxNetworkAddressDt) GetAddress() string { if o == nil || IsNil(o.Address) { @@ -224,7 +234,13 @@ func (o HyperflexHxNetworkAddressDt) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Address) { toSerialize["Address"] = o.Address @@ -252,6 +268,13 @@ func (o *HyperflexHxNetworkAddressDt) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -261,11 +284,23 @@ func (o *HyperflexHxNetworkAddressDt) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type HyperflexHxNetworkAddressDtWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_hyperflex_hx_platform_datastore_config_dt.go b/model_hyperflex_hx_platform_datastore_config_dt.go index 7811e5bf33..d332c6c17f 100644 --- a/model_hyperflex_hx_platform_datastore_config_dt.go +++ b/model_hyperflex_hx_platform_datastore_config_dt.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -94,6 +94,11 @@ func (o *HyperflexHxPlatformDatastoreConfigDt) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "hyperflex.HxPlatformDatastoreConfigDt" of the ClassId field. +func (o *HyperflexHxPlatformDatastoreConfigDt) GetDefaultClassId() interface{} { + return "hyperflex.HxPlatformDatastoreConfigDt" +} + // GetObjectType returns the ObjectType field value func (o *HyperflexHxPlatformDatastoreConfigDt) GetObjectType() string { if o == nil { @@ -118,6 +123,11 @@ func (o *HyperflexHxPlatformDatastoreConfigDt) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "hyperflex.HxPlatformDatastoreConfigDt" of the ObjectType field. +func (o *HyperflexHxPlatformDatastoreConfigDt) GetDefaultObjectType() interface{} { + return "hyperflex.HxPlatformDatastoreConfigDt" +} + // GetDataBlockSize returns the DataBlockSize field value if set, zero value otherwise. func (o *HyperflexHxPlatformDatastoreConfigDt) GetDataBlockSize() int64 { if o == nil || IsNil(o.DataBlockSize) { @@ -360,7 +370,13 @@ func (o HyperflexHxPlatformDatastoreConfigDt) ToMap() (map[string]interface{}, e if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.DataBlockSize) { toSerialize["DataBlockSize"] = o.DataBlockSize @@ -400,6 +416,13 @@ func (o *HyperflexHxPlatformDatastoreConfigDt) UnmarshalJSON(data []byte) (err e "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -409,11 +432,23 @@ func (o *HyperflexHxPlatformDatastoreConfigDt) UnmarshalJSON(data []byte) (err e } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type HyperflexHxPlatformDatastoreConfigDtWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_hyperflex_hx_registration_details_dt.go b/model_hyperflex_hx_registration_details_dt.go index f706a83500..b712c4cc7b 100644 --- a/model_hyperflex_hx_registration_details_dt.go +++ b/model_hyperflex_hx_registration_details_dt.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -98,6 +98,11 @@ func (o *HyperflexHxRegistrationDetailsDt) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "hyperflex.HxRegistrationDetailsDt" of the ClassId field. +func (o *HyperflexHxRegistrationDetailsDt) GetDefaultClassId() interface{} { + return "hyperflex.HxRegistrationDetailsDt" +} + // GetObjectType returns the ObjectType field value func (o *HyperflexHxRegistrationDetailsDt) GetObjectType() string { if o == nil { @@ -122,6 +127,11 @@ func (o *HyperflexHxRegistrationDetailsDt) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "hyperflex.HxRegistrationDetailsDt" of the ObjectType field. +func (o *HyperflexHxRegistrationDetailsDt) GetDefaultObjectType() interface{} { + return "hyperflex.HxRegistrationDetailsDt" +} + // GetInitialRegistrationDate returns the InitialRegistrationDate field value if set, zero value otherwise. func (o *HyperflexHxRegistrationDetailsDt) GetInitialRegistrationDate() string { if o == nil || IsNil(o.InitialRegistrationDate) { @@ -428,7 +438,13 @@ func (o HyperflexHxRegistrationDetailsDt) ToMap() (map[string]interface{}, error if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.InitialRegistrationDate) { toSerialize["InitialRegistrationDate"] = o.InitialRegistrationDate @@ -474,6 +490,13 @@ func (o *HyperflexHxRegistrationDetailsDt) UnmarshalJSON(data []byte) (err error "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -483,11 +506,23 @@ func (o *HyperflexHxRegistrationDetailsDt) UnmarshalJSON(data []byte) (err error } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type HyperflexHxRegistrationDetailsDtWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_hyperflex_hx_resiliency_info_dt.go b/model_hyperflex_hx_resiliency_info_dt.go index e5c36e0be9..195b066698 100644 --- a/model_hyperflex_hx_resiliency_info_dt.go +++ b/model_hyperflex_hx_resiliency_info_dt.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -93,6 +93,11 @@ func (o *HyperflexHxResiliencyInfoDt) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "hyperflex.HxResiliencyInfoDt" of the ClassId field. +func (o *HyperflexHxResiliencyInfoDt) GetDefaultClassId() interface{} { + return "hyperflex.HxResiliencyInfoDt" +} + // GetObjectType returns the ObjectType field value func (o *HyperflexHxResiliencyInfoDt) GetObjectType() string { if o == nil { @@ -117,6 +122,11 @@ func (o *HyperflexHxResiliencyInfoDt) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "hyperflex.HxResiliencyInfoDt" of the ObjectType field. +func (o *HyperflexHxResiliencyInfoDt) GetDefaultObjectType() interface{} { + return "hyperflex.HxResiliencyInfoDt" +} + // GetDataReplicationFactor returns the DataReplicationFactor field value if set, zero value otherwise. func (o *HyperflexHxResiliencyInfoDt) GetDataReplicationFactor() string { if o == nil || IsNil(o.DataReplicationFactor) { @@ -202,7 +212,7 @@ func (o *HyperflexHxResiliencyInfoDt) GetMessagesOk() ([]string, bool) { // HasMessages returns a boolean if a field has been set. func (o *HyperflexHxResiliencyInfoDt) HasMessages() bool { - if o != nil && IsNil(o.Messages) { + if o != nil && !IsNil(o.Messages) { return true } @@ -360,7 +370,13 @@ func (o HyperflexHxResiliencyInfoDt) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.DataReplicationFactor) { toSerialize["DataReplicationFactor"] = o.DataReplicationFactor @@ -400,6 +416,13 @@ func (o *HyperflexHxResiliencyInfoDt) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -409,11 +432,23 @@ func (o *HyperflexHxResiliencyInfoDt) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type HyperflexHxResiliencyInfoDtWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_hyperflex_hx_site_dt.go b/model_hyperflex_hx_site_dt.go index 6086e58d0f..0a89eb68bd 100644 --- a/model_hyperflex_hx_site_dt.go +++ b/model_hyperflex_hx_site_dt.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -83,6 +83,11 @@ func (o *HyperflexHxSiteDt) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "hyperflex.HxSiteDt" of the ClassId field. +func (o *HyperflexHxSiteDt) GetDefaultClassId() interface{} { + return "hyperflex.HxSiteDt" +} + // GetObjectType returns the ObjectType field value func (o *HyperflexHxSiteDt) GetObjectType() string { if o == nil { @@ -107,6 +112,11 @@ func (o *HyperflexHxSiteDt) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "hyperflex.HxSiteDt" of the ObjectType field. +func (o *HyperflexHxSiteDt) GetDefaultObjectType() interface{} { + return "hyperflex.HxSiteDt" +} + // GetName returns the Name field value if set, zero value otherwise. func (o *HyperflexHxSiteDt) GetName() string { if o == nil || IsNil(o.Name) { @@ -200,7 +210,13 @@ func (o HyperflexHxSiteDt) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Name) { toSerialize["Name"] = o.Name @@ -225,6 +241,13 @@ func (o *HyperflexHxSiteDt) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -234,11 +257,23 @@ func (o *HyperflexHxSiteDt) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type HyperflexHxSiteDtWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_hyperflex_hx_uu_id_dt.go b/model_hyperflex_hx_uu_id_dt.go index 217010af1e..a47e98371a 100644 --- a/model_hyperflex_hx_uu_id_dt.go +++ b/model_hyperflex_hx_uu_id_dt.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -83,6 +83,11 @@ func (o *HyperflexHxUuIdDt) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "hyperflex.HxUuIdDt" of the ClassId field. +func (o *HyperflexHxUuIdDt) GetDefaultClassId() interface{} { + return "hyperflex.HxUuIdDt" +} + // GetObjectType returns the ObjectType field value func (o *HyperflexHxUuIdDt) GetObjectType() string { if o == nil { @@ -107,6 +112,11 @@ func (o *HyperflexHxUuIdDt) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "hyperflex.HxUuIdDt" of the ObjectType field. +func (o *HyperflexHxUuIdDt) GetDefaultObjectType() interface{} { + return "hyperflex.HxUuIdDt" +} + // GetLinks returns the Links field value if set, zero value otherwise (both if not set or set to explicit null). func (o *HyperflexHxUuIdDt) GetLinks() []HyperflexHxLinkDt { if o == nil { @@ -128,7 +138,7 @@ func (o *HyperflexHxUuIdDt) GetLinksOk() ([]HyperflexHxLinkDt, bool) { // HasLinks returns a boolean if a field has been set. func (o *HyperflexHxUuIdDt) HasLinks() bool { - if o != nil && IsNil(o.Links) { + if o != nil && !IsNil(o.Links) { return true } @@ -190,7 +200,13 @@ func (o HyperflexHxUuIdDt) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.Links != nil { toSerialize["Links"] = o.Links @@ -215,6 +231,13 @@ func (o *HyperflexHxUuIdDt) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -224,11 +247,23 @@ func (o *HyperflexHxUuIdDt) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type HyperflexHxUuIdDtWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_hyperflex_hx_zone_info_dt.go b/model_hyperflex_hx_zone_info_dt.go index 9c42dda52e..9db3c2f4bf 100644 --- a/model_hyperflex_hx_zone_info_dt.go +++ b/model_hyperflex_hx_zone_info_dt.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -84,6 +84,11 @@ func (o *HyperflexHxZoneInfoDt) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "hyperflex.HxZoneInfoDt" of the ClassId field. +func (o *HyperflexHxZoneInfoDt) GetDefaultClassId() interface{} { + return "hyperflex.HxZoneInfoDt" +} + // GetObjectType returns the ObjectType field value func (o *HyperflexHxZoneInfoDt) GetObjectType() string { if o == nil { @@ -108,6 +113,11 @@ func (o *HyperflexHxZoneInfoDt) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "hyperflex.HxZoneInfoDt" of the ObjectType field. +func (o *HyperflexHxZoneInfoDt) GetDefaultObjectType() interface{} { + return "hyperflex.HxZoneInfoDt" +} + // GetNumNodes returns the NumNodes field value if set, zero value otherwise. func (o *HyperflexHxZoneInfoDt) GetNumNodes() int64 { if o == nil || IsNil(o.NumNodes) { @@ -190,7 +200,13 @@ func (o HyperflexHxZoneInfoDt) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.NumNodes) { toSerialize["NumNodes"] = o.NumNodes @@ -215,6 +231,13 @@ func (o *HyperflexHxZoneInfoDt) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -224,11 +247,23 @@ func (o *HyperflexHxZoneInfoDt) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type HyperflexHxZoneInfoDtWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_hyperflex_hx_zone_resiliency_info_dt.go b/model_hyperflex_hx_zone_resiliency_info_dt.go index 743e3d3f8f..0d857b2983 100644 --- a/model_hyperflex_hx_zone_resiliency_info_dt.go +++ b/model_hyperflex_hx_zone_resiliency_info_dt.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -83,6 +83,11 @@ func (o *HyperflexHxZoneResiliencyInfoDt) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "hyperflex.HxZoneResiliencyInfoDt" of the ClassId field. +func (o *HyperflexHxZoneResiliencyInfoDt) GetDefaultClassId() interface{} { + return "hyperflex.HxZoneResiliencyInfoDt" +} + // GetObjectType returns the ObjectType field value func (o *HyperflexHxZoneResiliencyInfoDt) GetObjectType() string { if o == nil { @@ -107,6 +112,11 @@ func (o *HyperflexHxZoneResiliencyInfoDt) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "hyperflex.HxZoneResiliencyInfoDt" of the ObjectType field. +func (o *HyperflexHxZoneResiliencyInfoDt) GetDefaultObjectType() interface{} { + return "hyperflex.HxZoneResiliencyInfoDt" +} + // GetName returns the Name field value if set, zero value otherwise. func (o *HyperflexHxZoneResiliencyInfoDt) GetName() string { if o == nil || IsNil(o.Name) { @@ -200,7 +210,13 @@ func (o HyperflexHxZoneResiliencyInfoDt) ToMap() (map[string]interface{}, error) if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Name) { toSerialize["Name"] = o.Name @@ -225,6 +241,13 @@ func (o *HyperflexHxZoneResiliencyInfoDt) UnmarshalJSON(data []byte) (err error) "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -234,11 +257,23 @@ func (o *HyperflexHxZoneResiliencyInfoDt) UnmarshalJSON(data []byte) (err error) } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type HyperflexHxZoneResiliencyInfoDtWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_hyperflex_hxdp_version.go b/model_hyperflex_hxdp_version.go index 628c4f4540..6813782507 100644 --- a/model_hyperflex_hxdp_version.go +++ b/model_hyperflex_hxdp_version.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -83,6 +83,11 @@ func (o *HyperflexHxdpVersion) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "hyperflex.HxdpVersion" of the ClassId field. +func (o *HyperflexHxdpVersion) GetDefaultClassId() interface{} { + return "hyperflex.HxdpVersion" +} + // GetObjectType returns the ObjectType field value func (o *HyperflexHxdpVersion) GetObjectType() string { if o == nil { @@ -107,6 +112,11 @@ func (o *HyperflexHxdpVersion) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "hyperflex.HxdpVersion" of the ObjectType field. +func (o *HyperflexHxdpVersion) GetDefaultObjectType() interface{} { + return "hyperflex.HxdpVersion" +} + // GetVersion returns the Version field value if set, zero value otherwise. func (o *HyperflexHxdpVersion) GetVersion() string { if o == nil || IsNil(o.Version) { @@ -200,7 +210,13 @@ func (o HyperflexHxdpVersion) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Version) { toSerialize["Version"] = o.Version @@ -225,6 +241,13 @@ func (o *HyperflexHxdpVersion) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -234,11 +257,23 @@ func (o *HyperflexHxdpVersion) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type HyperflexHxdpVersionWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_hyperflex_hxdp_version_list.go b/model_hyperflex_hxdp_version_list.go index 648e71b8fa..8862043877 100644 --- a/model_hyperflex_hxdp_version_list.go +++ b/model_hyperflex_hxdp_version_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *HyperflexHxdpVersionList) GetResultsOk() ([]HyperflexHxdpVersion, bool) // HasResults returns a boolean if a field has been set. func (o *HyperflexHxdpVersionList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *HyperflexHxdpVersionList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *HyperflexHxdpVersionList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type HyperflexHxdpVersionListWithoutEmbeddedStruct struct { // The total number of 'hyperflex.HxdpVersion' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_hyperflex_hxdp_version_relationship.go b/model_hyperflex_hxdp_version_relationship.go index cb65056522..cde57f3101 100644 --- a/model_hyperflex_hxdp_version_relationship.go +++ b/model_hyperflex_hxdp_version_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_hyperflex_hxdp_version_response.go b/model_hyperflex_hxdp_version_response.go index c885774bc4..ed8722b421 100644 --- a/model_hyperflex_hxdp_version_response.go +++ b/model_hyperflex_hxdp_version_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_hyperflex_hypervisor_host.go b/model_hyperflex_hypervisor_host.go index 5783a94700..4472227b26 100644 --- a/model_hyperflex_hypervisor_host.go +++ b/model_hyperflex_hypervisor_host.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -115,6 +115,11 @@ func (o *HyperflexHypervisorHost) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "hyperflex.HypervisorHost" of the ClassId field. +func (o *HyperflexHypervisorHost) GetDefaultClassId() interface{} { + return "hyperflex.HypervisorHost" +} + // GetObjectType returns the ObjectType field value func (o *HyperflexHypervisorHost) GetObjectType() string { if o == nil { @@ -139,6 +144,11 @@ func (o *HyperflexHypervisorHost) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "hyperflex.HypervisorHost" of the ObjectType field. +func (o *HyperflexHypervisorHost) GetDefaultObjectType() interface{} { + return "hyperflex.HypervisorHost" +} + // GetConfiguredMemory returns the ConfiguredMemory field value if set, zero value otherwise. func (o *HyperflexHypervisorHost) GetConfiguredMemory() int64 { if o == nil || IsNil(o.ConfiguredMemory) { @@ -788,7 +798,13 @@ func (o HyperflexHypervisorHost) ToMap() (map[string]interface{}, error) { if errVirtualizationBaseHost != nil { return map[string]interface{}{}, errVirtualizationBaseHost } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.ConfiguredMemory) { toSerialize["ConfiguredMemory"] = o.ConfiguredMemory @@ -861,6 +877,13 @@ func (o *HyperflexHypervisorHost) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -870,11 +893,23 @@ func (o *HyperflexHypervisorHost) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type HyperflexHypervisorHostWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_hyperflex_hypervisor_host_list.go b/model_hyperflex_hypervisor_host_list.go index bc86a5162a..c2825e82e6 100644 --- a/model_hyperflex_hypervisor_host_list.go +++ b/model_hyperflex_hypervisor_host_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *HyperflexHypervisorHostList) GetResultsOk() ([]HyperflexHypervisorHost, // HasResults returns a boolean if a field has been set. func (o *HyperflexHypervisorHostList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *HyperflexHypervisorHostList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *HyperflexHypervisorHostList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type HyperflexHypervisorHostListWithoutEmbeddedStruct struct { // The total number of 'hyperflex.HypervisorHost' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_hyperflex_hypervisor_host_relationship.go b/model_hyperflex_hypervisor_host_relationship.go index 225eb541eb..5de5ab703b 100644 --- a/model_hyperflex_hypervisor_host_relationship.go +++ b/model_hyperflex_hypervisor_host_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_hyperflex_hypervisor_host_response.go b/model_hyperflex_hypervisor_host_response.go index e54f01abd6..a6fdb53469 100644 --- a/model_hyperflex_hypervisor_host_response.go +++ b/model_hyperflex_hypervisor_host_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_hyperflex_hypervisor_virtual_machine.go b/model_hyperflex_hypervisor_virtual_machine.go index 52fd43ce43..ae6df04b53 100644 --- a/model_hyperflex_hypervisor_virtual_machine.go +++ b/model_hyperflex_hypervisor_virtual_machine.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -109,6 +109,11 @@ func (o *HyperflexHypervisorVirtualMachine) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "hyperflex.HypervisorVirtualMachine" of the ClassId field. +func (o *HyperflexHypervisorVirtualMachine) GetDefaultClassId() interface{} { + return "hyperflex.HypervisorVirtualMachine" +} + // GetObjectType returns the ObjectType field value func (o *HyperflexHypervisorVirtualMachine) GetObjectType() string { if o == nil { @@ -133,6 +138,11 @@ func (o *HyperflexHypervisorVirtualMachine) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "hyperflex.HypervisorVirtualMachine" of the ObjectType field. +func (o *HyperflexHypervisorVirtualMachine) GetDefaultObjectType() interface{} { + return "hyperflex.HypervisorVirtualMachine" +} + // GetConnectionState returns the ConnectionState field value if set, zero value otherwise. func (o *HyperflexHypervisorVirtualMachine) GetConnectionState() string { if o == nil || IsNil(o.ConnectionState) { @@ -568,7 +578,13 @@ func (o HyperflexHypervisorVirtualMachine) ToMap() (map[string]interface{}, erro if errVirtualizationBaseVirtualMachine != nil { return map[string]interface{}{}, errVirtualizationBaseVirtualMachine } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.ConnectionState) { toSerialize["ConnectionState"] = o.ConnectionState @@ -623,6 +639,13 @@ func (o *HyperflexHypervisorVirtualMachine) UnmarshalJSON(data []byte) (err erro "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -632,11 +655,23 @@ func (o *HyperflexHypervisorVirtualMachine) UnmarshalJSON(data []byte) (err erro } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type HyperflexHypervisorVirtualMachineWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_hyperflex_hypervisor_virtual_machine_list.go b/model_hyperflex_hypervisor_virtual_machine_list.go index 60c8d34420..30e7d4819c 100644 --- a/model_hyperflex_hypervisor_virtual_machine_list.go +++ b/model_hyperflex_hypervisor_virtual_machine_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *HyperflexHypervisorVirtualMachineList) GetResultsOk() ([]HyperflexHyper // HasResults returns a boolean if a field has been set. func (o *HyperflexHypervisorVirtualMachineList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *HyperflexHypervisorVirtualMachineList) UnmarshalJSON(data []byte) (err "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *HyperflexHypervisorVirtualMachineList) UnmarshalJSON(data []byte) (err } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type HyperflexHypervisorVirtualMachineListWithoutEmbeddedStruct struct { // The total number of 'hyperflex.HypervisorVirtualMachine' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_hyperflex_hypervisor_virtual_machine_response.go b/model_hyperflex_hypervisor_virtual_machine_response.go index 9845fea6a0..4b3ab61aa2 100644 --- a/model_hyperflex_hypervisor_virtual_machine_response.go +++ b/model_hyperflex_hypervisor_virtual_machine_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_hyperflex_initiator_group.go b/model_hyperflex_initiator_group.go index 79654c5978..a71fb2990b 100644 --- a/model_hyperflex_initiator_group.go +++ b/model_hyperflex_initiator_group.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -93,6 +93,11 @@ func (o *HyperflexInitiatorGroup) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "hyperflex.InitiatorGroup" of the ClassId field. +func (o *HyperflexInitiatorGroup) GetDefaultClassId() interface{} { + return "hyperflex.InitiatorGroup" +} + // GetObjectType returns the ObjectType field value func (o *HyperflexInitiatorGroup) GetObjectType() string { if o == nil { @@ -117,6 +122,11 @@ func (o *HyperflexInitiatorGroup) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "hyperflex.InitiatorGroup" of the ObjectType field. +func (o *HyperflexInitiatorGroup) GetDefaultObjectType() interface{} { + return "hyperflex.InitiatorGroup" +} + // GetInitiatorCount returns the InitiatorCount field value if set, zero value otherwise. func (o *HyperflexInitiatorGroup) GetInitiatorCount() int64 { if o == nil || IsNil(o.InitiatorCount) { @@ -170,7 +180,7 @@ func (o *HyperflexInitiatorGroup) GetInitiatorsOk() ([]StorageHyperFlexIscsiInit // HasInitiators returns a boolean if a field has been set. func (o *HyperflexInitiatorGroup) HasInitiators() bool { - if o != nil && IsNil(o.Initiators) { + if o != nil && !IsNil(o.Initiators) { return true } @@ -235,7 +245,7 @@ func (o *HyperflexInitiatorGroup) GetTargetUuidsOk() ([]string, bool) { // HasTargetUuids returns a boolean if a field has been set. func (o *HyperflexInitiatorGroup) HasTargetUuids() bool { - if o != nil && IsNil(o.TargetUuids) { + if o != nil && !IsNil(o.TargetUuids) { return true } @@ -375,7 +385,7 @@ func (o *HyperflexInitiatorGroup) GetTargetsOk() ([]HyperflexTargetRelationship, // HasTargets returns a boolean if a field has been set. func (o *HyperflexInitiatorGroup) HasTargets() bool { - if o != nil && IsNil(o.Targets) { + if o != nil && !IsNil(o.Targets) { return true } @@ -405,7 +415,13 @@ func (o HyperflexInitiatorGroup) ToMap() (map[string]interface{}, error) { if errStorageBaseHostGroup != nil { return map[string]interface{}{}, errStorageBaseHostGroup } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.InitiatorCount) { toSerialize["InitiatorCount"] = o.InitiatorCount @@ -448,6 +464,13 @@ func (o *HyperflexInitiatorGroup) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -457,11 +480,23 @@ func (o *HyperflexInitiatorGroup) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type HyperflexInitiatorGroupWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_hyperflex_initiator_group_list.go b/model_hyperflex_initiator_group_list.go index fc27ea328b..b1285cab41 100644 --- a/model_hyperflex_initiator_group_list.go +++ b/model_hyperflex_initiator_group_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *HyperflexInitiatorGroupList) GetResultsOk() ([]HyperflexInitiatorGroup, // HasResults returns a boolean if a field has been set. func (o *HyperflexInitiatorGroupList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *HyperflexInitiatorGroupList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *HyperflexInitiatorGroupList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type HyperflexInitiatorGroupListWithoutEmbeddedStruct struct { // The total number of 'hyperflex.InitiatorGroup' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_hyperflex_initiator_group_relationship.go b/model_hyperflex_initiator_group_relationship.go index ee618f3ac5..b27aa85074 100644 --- a/model_hyperflex_initiator_group_relationship.go +++ b/model_hyperflex_initiator_group_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_hyperflex_initiator_group_response.go b/model_hyperflex_initiator_group_response.go index 16c65b4cbc..eee6044099 100644 --- a/model_hyperflex_initiator_group_response.go +++ b/model_hyperflex_initiator_group_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_hyperflex_ip_addr_range.go b/model_hyperflex_ip_addr_range.go index 95a84203f3..5f258e7d79 100644 --- a/model_hyperflex_ip_addr_range.go +++ b/model_hyperflex_ip_addr_range.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -30,15 +30,15 @@ type HyperflexIpAddrRange struct { ObjectType string `json:"ObjectType"` // The end IPv4 address of the range. // Deprecated - EndAddr *string `json:"EndAddr,omitempty"` + EndAddr *string `json:"EndAddr,omitempty" validate:"regexp=^$|^([1-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\\\.([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\\\.([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\\\.([1-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])$"` // The default gateway for the start and end IPv4 addresses. - Gateway *string `json:"Gateway,omitempty"` + Gateway *string `json:"Gateway,omitempty" validate:"regexp=^$|^([1-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\\\.([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\\\.([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\\\.([1-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])$"` IpAddrBlocks []CommIpV4AddressBlock `json:"IpAddrBlocks,omitempty"` // The netmask specified in dot decimal notation. The start address, end address, and gateway must all be within the network specified by this netmask. - Netmask *string `json:"Netmask,omitempty"` + Netmask *string `json:"Netmask,omitempty" validate:"regexp=^$|^(((255\\\\.){3}(255|254|252|248|240|224|192|128|0+))|((255\\\\.){2}(255|254|252|248|240|224|192|128|0+)\\\\.0)|((255\\\\.)(255|254|252|248|240|224|192|128|0+)(\\\\.0+){2})|((255|254|252|248|240|224|192|128|0+)(\\\\.0+){3}))$"` // The start IPv4 address of the range. // Deprecated - StartAddr *string `json:"StartAddr,omitempty"` + StartAddr *string `json:"StartAddr,omitempty" validate:"regexp=^$|^([1-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\\\.([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\\\.([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\\\.([1-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])$"` AdditionalProperties map[string]interface{} } @@ -91,6 +91,11 @@ func (o *HyperflexIpAddrRange) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "hyperflex.IpAddrRange" of the ClassId field. +func (o *HyperflexIpAddrRange) GetDefaultClassId() interface{} { + return "hyperflex.IpAddrRange" +} + // GetObjectType returns the ObjectType field value func (o *HyperflexIpAddrRange) GetObjectType() string { if o == nil { @@ -115,6 +120,11 @@ func (o *HyperflexIpAddrRange) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "hyperflex.IpAddrRange" of the ObjectType field. +func (o *HyperflexIpAddrRange) GetDefaultObjectType() interface{} { + return "hyperflex.IpAddrRange" +} + // GetEndAddr returns the EndAddr field value if set, zero value otherwise. // Deprecated func (o *HyperflexIpAddrRange) GetEndAddr() string { @@ -203,7 +213,7 @@ func (o *HyperflexIpAddrRange) GetIpAddrBlocksOk() ([]CommIpV4AddressBlock, bool // HasIpAddrBlocks returns a boolean if a field has been set. func (o *HyperflexIpAddrRange) HasIpAddrBlocks() bool { - if o != nil && IsNil(o.IpAddrBlocks) { + if o != nil && !IsNil(o.IpAddrBlocks) { return true } @@ -300,7 +310,13 @@ func (o HyperflexIpAddrRange) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.EndAddr) { toSerialize["EndAddr"] = o.EndAddr @@ -334,6 +350,13 @@ func (o *HyperflexIpAddrRange) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -343,11 +366,23 @@ func (o *HyperflexIpAddrRange) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type HyperflexIpAddrRangeWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` @@ -355,15 +390,15 @@ func (o *HyperflexIpAddrRange) UnmarshalJSON(data []byte) (err error) { ObjectType string `json:"ObjectType"` // The end IPv4 address of the range. // Deprecated - EndAddr *string `json:"EndAddr,omitempty"` + EndAddr *string `json:"EndAddr,omitempty" validate:"regexp=^$|^([1-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\\\.([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\\\.([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\\\.([1-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])$"` // The default gateway for the start and end IPv4 addresses. - Gateway *string `json:"Gateway,omitempty"` + Gateway *string `json:"Gateway,omitempty" validate:"regexp=^$|^([1-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\\\.([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\\\.([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\\\.([1-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])$"` IpAddrBlocks []CommIpV4AddressBlock `json:"IpAddrBlocks,omitempty"` // The netmask specified in dot decimal notation. The start address, end address, and gateway must all be within the network specified by this netmask. - Netmask *string `json:"Netmask,omitempty"` + Netmask *string `json:"Netmask,omitempty" validate:"regexp=^$|^(((255\\\\.){3}(255|254|252|248|240|224|192|128|0+))|((255\\\\.){2}(255|254|252|248|240|224|192|128|0+)\\\\.0)|((255\\\\.)(255|254|252|248|240|224|192|128|0+)(\\\\.0+){2})|((255|254|252|248|240|224|192|128|0+)(\\\\.0+){3}))$"` // The start IPv4 address of the range. // Deprecated - StartAddr *string `json:"StartAddr,omitempty"` + StartAddr *string `json:"StartAddr,omitempty" validate:"regexp=^$|^([1-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\\\.([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\\\.([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\\\.([1-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])$"` } varHyperflexIpAddrRangeWithoutEmbeddedStruct := HyperflexIpAddrRangeWithoutEmbeddedStruct{} diff --git a/model_hyperflex_iscsi_network.go b/model_hyperflex_iscsi_network.go index 4775eb806f..0b8cc46691 100644 --- a/model_hyperflex_iscsi_network.go +++ b/model_hyperflex_iscsi_network.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,6 +104,11 @@ func (o *HyperflexIscsiNetwork) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "hyperflex.IscsiNetwork" of the ClassId field. +func (o *HyperflexIscsiNetwork) GetDefaultClassId() interface{} { + return "hyperflex.IscsiNetwork" +} + // GetObjectType returns the ObjectType field value func (o *HyperflexIscsiNetwork) GetObjectType() string { if o == nil { @@ -128,6 +133,11 @@ func (o *HyperflexIscsiNetwork) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "hyperflex.IscsiNetwork" of the ObjectType field. +func (o *HyperflexIscsiNetwork) GetDefaultObjectType() interface{} { + return "hyperflex.IscsiNetwork" +} + // GetGateway returns the Gateway field value if set, zero value otherwise. func (o *HyperflexIscsiNetwork) GetGateway() string { if o == nil || IsNil(o.Gateway) { @@ -213,7 +223,7 @@ func (o *HyperflexIscsiNetwork) GetIpRangesOk() ([]NetworkHyperFlexInternetProto // HasIpRanges returns a boolean if a field has been set. func (o *HyperflexIscsiNetwork) HasIpRanges() bool { - if o != nil && IsNil(o.IpRanges) { + if o != nil && !IsNil(o.IpRanges) { return true } @@ -574,7 +584,13 @@ func (o HyperflexIscsiNetwork) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Gateway) { toSerialize["Gateway"] = o.Gateway @@ -632,6 +648,13 @@ func (o *HyperflexIscsiNetwork) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -641,11 +664,23 @@ func (o *HyperflexIscsiNetwork) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type HyperflexIscsiNetworkWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_hyperflex_iscsi_network_list.go b/model_hyperflex_iscsi_network_list.go index 64851545cb..e261d88498 100644 --- a/model_hyperflex_iscsi_network_list.go +++ b/model_hyperflex_iscsi_network_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *HyperflexIscsiNetworkList) GetResultsOk() ([]HyperflexIscsiNetwork, boo // HasResults returns a boolean if a field has been set. func (o *HyperflexIscsiNetworkList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *HyperflexIscsiNetworkList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *HyperflexIscsiNetworkList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type HyperflexIscsiNetworkListWithoutEmbeddedStruct struct { // The total number of 'hyperflex.IscsiNetwork' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_hyperflex_iscsi_network_response.go b/model_hyperflex_iscsi_network_response.go index 84f6c934d5..ff156f7162 100644 --- a/model_hyperflex_iscsi_network_response.go +++ b/model_hyperflex_iscsi_network_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_hyperflex_key_encryption_key.go b/model_hyperflex_key_encryption_key.go index ea4793c587..4707b53dcd 100644 --- a/model_hyperflex_key_encryption_key.go +++ b/model_hyperflex_key_encryption_key.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -114,6 +114,11 @@ func (o *HyperflexKeyEncryptionKey) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "hyperflex.KeyEncryptionKey" of the ClassId field. +func (o *HyperflexKeyEncryptionKey) GetDefaultClassId() interface{} { + return "hyperflex.KeyEncryptionKey" +} + // GetObjectType returns the ObjectType field value func (o *HyperflexKeyEncryptionKey) GetObjectType() string { if o == nil { @@ -138,6 +143,11 @@ func (o *HyperflexKeyEncryptionKey) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "hyperflex.KeyEncryptionKey" of the ObjectType field. +func (o *HyperflexKeyEncryptionKey) GetDefaultObjectType() interface{} { + return "hyperflex.KeyEncryptionKey" +} + // GetIsAccountRecovery returns the IsAccountRecovery field value if set, zero value otherwise. func (o *HyperflexKeyEncryptionKey) GetIsAccountRecovery() bool { if o == nil || IsNil(o.IsAccountRecovery) { @@ -562,7 +572,13 @@ func (o HyperflexKeyEncryptionKey) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.IsAccountRecovery) { toSerialize["IsAccountRecovery"] = o.IsAccountRecovery @@ -617,6 +633,13 @@ func (o *HyperflexKeyEncryptionKey) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -626,11 +649,23 @@ func (o *HyperflexKeyEncryptionKey) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type HyperflexKeyEncryptionKeyWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_hyperflex_key_encryption_key_list.go b/model_hyperflex_key_encryption_key_list.go index 30296331a8..66f6cc0357 100644 --- a/model_hyperflex_key_encryption_key_list.go +++ b/model_hyperflex_key_encryption_key_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *HyperflexKeyEncryptionKeyList) GetResultsOk() ([]HyperflexKeyEncryption // HasResults returns a boolean if a field has been set. func (o *HyperflexKeyEncryptionKeyList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *HyperflexKeyEncryptionKeyList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *HyperflexKeyEncryptionKeyList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type HyperflexKeyEncryptionKeyListWithoutEmbeddedStruct struct { // The total number of 'hyperflex.KeyEncryptionKey' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_hyperflex_key_encryption_key_response.go b/model_hyperflex_key_encryption_key_response.go index be71fbe93c..5cae895c5e 100644 --- a/model_hyperflex_key_encryption_key_response.go +++ b/model_hyperflex_key_encryption_key_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_hyperflex_license.go b/model_hyperflex_license.go index fa9dc78524..d464360d4c 100644 --- a/model_hyperflex_license.go +++ b/model_hyperflex_license.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -96,6 +96,11 @@ func (o *HyperflexLicense) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "hyperflex.License" of the ClassId field. +func (o *HyperflexLicense) GetDefaultClassId() interface{} { + return "hyperflex.License" +} + // GetObjectType returns the ObjectType field value func (o *HyperflexLicense) GetObjectType() string { if o == nil { @@ -120,6 +125,11 @@ func (o *HyperflexLicense) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "hyperflex.License" of the ObjectType field. +func (o *HyperflexLicense) GetDefaultObjectType() interface{} { + return "hyperflex.License" +} + // GetComplianceState returns the ComplianceState field value if set, zero value otherwise. func (o *HyperflexLicense) GetComplianceState() string { if o == nil || IsNil(o.ComplianceState) { @@ -502,7 +512,13 @@ func (o HyperflexLicense) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.ComplianceState) { toSerialize["ComplianceState"] = o.ComplianceState @@ -551,6 +567,13 @@ func (o *HyperflexLicense) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -560,11 +583,23 @@ func (o *HyperflexLicense) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type HyperflexLicenseWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_hyperflex_license_list.go b/model_hyperflex_license_list.go index 35e045761e..1a369b5edc 100644 --- a/model_hyperflex_license_list.go +++ b/model_hyperflex_license_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *HyperflexLicenseList) GetResultsOk() ([]HyperflexLicense, bool) { // HasResults returns a boolean if a field has been set. func (o *HyperflexLicenseList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *HyperflexLicenseList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *HyperflexLicenseList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type HyperflexLicenseListWithoutEmbeddedStruct struct { // The total number of 'hyperflex.License' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_hyperflex_license_relationship.go b/model_hyperflex_license_relationship.go index 9512cef918..71682e261a 100644 --- a/model_hyperflex_license_relationship.go +++ b/model_hyperflex_license_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_hyperflex_license_response.go b/model_hyperflex_license_response.go index 7af9b105cf..307b8e7f18 100644 --- a/model_hyperflex_license_response.go +++ b/model_hyperflex_license_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_hyperflex_local_credential_policy.go b/model_hyperflex_local_credential_policy.go index 3fc460015e..f8485fce21 100644 --- a/model_hyperflex_local_credential_policy.go +++ b/model_hyperflex_local_credential_policy.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -31,11 +31,11 @@ type HyperflexLocalCredentialPolicy struct { // Indicates if Hypervisor password is the factory set default password. For HyperFlex Data Platform versions 3.0 or higher, enable this if the default password was not changed on the Hypervisor. It is required to supply a new custom Hypervisor password that will be applied to the Hypervisor during deployment. For HyperFlex Data Platform versions prior to 3.0 release, this setting has no effect and the default password will be used for initial install. The Hypervisor password should be changed after deployment. FactoryHypervisorPassword *bool `json:"FactoryHypervisorPassword,omitempty"` // HyperFlex storage controller VM password must contain a minimum of 10 characters, with at least 1 lowercase, 1 uppercase, 1 numeric, and 1 of these -_@#$%^&*! special characters. - HxdpRootPwd *string `json:"HxdpRootPwd,omitempty"` + HxdpRootPwd *string `json:"HxdpRootPwd,omitempty" validate:"regexp=^[a-zA-Z0-9!@#$%^&*_-]{10,}$"` // Hypervisor administrator username must contain only alphanumeric characters. - HypervisorAdmin *string `json:"HypervisorAdmin,omitempty"` + HypervisorAdmin *string `json:"HypervisorAdmin,omitempty" validate:"regexp=^[a-zA-Z0-9]{1,}$"` // The Hypervisor root password. For HyperFlex Data Platform 3.0 or later, if the factory default password was not manually changed, you must set a new custom password. If the password was manually changed, you must not enable the factory default password property and provide the current hypervisor password. Note - All HyperFlex nodes require the same hypervisor password for installation. For HyperFlex Data Platform prior to 3.0, use the default password \"Cisco123\" for newly manufactured HyperFlex servers. A custom password should only be entered if hypervisor credentials were manually changed prior to deployment. - HypervisorAdminPwd *string `json:"HypervisorAdminPwd,omitempty"` + HypervisorAdminPwd *string `json:"HypervisorAdminPwd,omitempty" validate:"regexp=^.{7,40}$"` // Indicates whether the value of the 'deploymentPrivateKey' property has been set. IsDeploymentPrivateKeySet *bool `json:"IsDeploymentPrivateKeySet,omitempty"` // Indicates whether the value of the 'hxdpRootPwd' property has been set. @@ -101,6 +101,11 @@ func (o *HyperflexLocalCredentialPolicy) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "hyperflex.LocalCredentialPolicy" of the ClassId field. +func (o *HyperflexLocalCredentialPolicy) GetDefaultClassId() interface{} { + return "hyperflex.LocalCredentialPolicy" +} + // GetObjectType returns the ObjectType field value func (o *HyperflexLocalCredentialPolicy) GetObjectType() string { if o == nil { @@ -125,6 +130,11 @@ func (o *HyperflexLocalCredentialPolicy) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "hyperflex.LocalCredentialPolicy" of the ObjectType field. +func (o *HyperflexLocalCredentialPolicy) GetDefaultObjectType() interface{} { + return "hyperflex.LocalCredentialPolicy" +} + // GetFactoryHypervisorPassword returns the FactoryHypervisorPassword field value if set, zero value otherwise. func (o *HyperflexLocalCredentialPolicy) GetFactoryHypervisorPassword() bool { if o == nil || IsNil(o.FactoryHypervisorPassword) { @@ -370,7 +380,7 @@ func (o *HyperflexLocalCredentialPolicy) GetClusterProfilesOk() ([]HyperflexClus // HasClusterProfiles returns a boolean if a field has been set. func (o *HyperflexLocalCredentialPolicy) HasClusterProfiles() bool { - if o != nil && IsNil(o.ClusterProfiles) { + if o != nil && !IsNil(o.ClusterProfiles) { return true } @@ -443,7 +453,13 @@ func (o HyperflexLocalCredentialPolicy) ToMap() (map[string]interface{}, error) if errPolicyAbstractPolicy != nil { return map[string]interface{}{}, errPolicyAbstractPolicy } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.FactoryHypervisorPassword) { toSerialize["FactoryHypervisorPassword"] = o.FactoryHypervisorPassword @@ -489,6 +505,13 @@ func (o *HyperflexLocalCredentialPolicy) UnmarshalJSON(data []byte) (err error) "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -498,11 +521,23 @@ func (o *HyperflexLocalCredentialPolicy) UnmarshalJSON(data []byte) (err error) } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type HyperflexLocalCredentialPolicyWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` @@ -511,11 +546,11 @@ func (o *HyperflexLocalCredentialPolicy) UnmarshalJSON(data []byte) (err error) // Indicates if Hypervisor password is the factory set default password. For HyperFlex Data Platform versions 3.0 or higher, enable this if the default password was not changed on the Hypervisor. It is required to supply a new custom Hypervisor password that will be applied to the Hypervisor during deployment. For HyperFlex Data Platform versions prior to 3.0 release, this setting has no effect and the default password will be used for initial install. The Hypervisor password should be changed after deployment. FactoryHypervisorPassword *bool `json:"FactoryHypervisorPassword,omitempty"` // HyperFlex storage controller VM password must contain a minimum of 10 characters, with at least 1 lowercase, 1 uppercase, 1 numeric, and 1 of these -_@#$%^&*! special characters. - HxdpRootPwd *string `json:"HxdpRootPwd,omitempty"` + HxdpRootPwd *string `json:"HxdpRootPwd,omitempty" validate:"regexp=^[a-zA-Z0-9!@#$%^&*_-]{10,}$"` // Hypervisor administrator username must contain only alphanumeric characters. - HypervisorAdmin *string `json:"HypervisorAdmin,omitempty"` + HypervisorAdmin *string `json:"HypervisorAdmin,omitempty" validate:"regexp=^[a-zA-Z0-9]{1,}$"` // The Hypervisor root password. For HyperFlex Data Platform 3.0 or later, if the factory default password was not manually changed, you must set a new custom password. If the password was manually changed, you must not enable the factory default password property and provide the current hypervisor password. Note - All HyperFlex nodes require the same hypervisor password for installation. For HyperFlex Data Platform prior to 3.0, use the default password \"Cisco123\" for newly manufactured HyperFlex servers. A custom password should only be entered if hypervisor credentials were manually changed prior to deployment. - HypervisorAdminPwd *string `json:"HypervisorAdminPwd,omitempty"` + HypervisorAdminPwd *string `json:"HypervisorAdminPwd,omitempty" validate:"regexp=^.{7,40}$"` // Indicates whether the value of the 'deploymentPrivateKey' property has been set. IsDeploymentPrivateKeySet *bool `json:"IsDeploymentPrivateKeySet,omitempty"` // Indicates whether the value of the 'hxdpRootPwd' property has been set. diff --git a/model_hyperflex_local_credential_policy_list.go b/model_hyperflex_local_credential_policy_list.go index 00b076e8da..fba0808ef2 100644 --- a/model_hyperflex_local_credential_policy_list.go +++ b/model_hyperflex_local_credential_policy_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *HyperflexLocalCredentialPolicyList) GetResultsOk() ([]HyperflexLocalCre // HasResults returns a boolean if a field has been set. func (o *HyperflexLocalCredentialPolicyList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *HyperflexLocalCredentialPolicyList) UnmarshalJSON(data []byte) (err err "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *HyperflexLocalCredentialPolicyList) UnmarshalJSON(data []byte) (err err } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type HyperflexLocalCredentialPolicyListWithoutEmbeddedStruct struct { // The total number of 'hyperflex.LocalCredentialPolicy' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_hyperflex_local_credential_policy_relationship.go b/model_hyperflex_local_credential_policy_relationship.go index 8024fe1240..c0ce698c58 100644 --- a/model_hyperflex_local_credential_policy_relationship.go +++ b/model_hyperflex_local_credential_policy_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_hyperflex_local_credential_policy_response.go b/model_hyperflex_local_credential_policy_response.go index eab83c6d40..579651cb74 100644 --- a/model_hyperflex_local_credential_policy_response.go +++ b/model_hyperflex_local_credential_policy_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_hyperflex_logical_availability_zone.go b/model_hyperflex_logical_availability_zone.go index f76ec31c16..3e8bbbb2ea 100644 --- a/model_hyperflex_logical_availability_zone.go +++ b/model_hyperflex_logical_availability_zone.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -86,6 +86,11 @@ func (o *HyperflexLogicalAvailabilityZone) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "hyperflex.LogicalAvailabilityZone" of the ClassId field. +func (o *HyperflexLogicalAvailabilityZone) GetDefaultClassId() interface{} { + return "hyperflex.LogicalAvailabilityZone" +} + // GetObjectType returns the ObjectType field value func (o *HyperflexLogicalAvailabilityZone) GetObjectType() string { if o == nil { @@ -110,6 +115,11 @@ func (o *HyperflexLogicalAvailabilityZone) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "hyperflex.LogicalAvailabilityZone" of the ObjectType field. +func (o *HyperflexLogicalAvailabilityZone) GetDefaultObjectType() interface{} { + return "hyperflex.LogicalAvailabilityZone" +} + // GetAutoConfig returns the AutoConfig field value if set, zero value otherwise. func (o *HyperflexLogicalAvailabilityZone) GetAutoConfig() bool { if o == nil || IsNil(o.AutoConfig) { @@ -160,7 +170,13 @@ func (o HyperflexLogicalAvailabilityZone) ToMap() (map[string]interface{}, error if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.AutoConfig) { toSerialize["AutoConfig"] = o.AutoConfig @@ -182,6 +198,13 @@ func (o *HyperflexLogicalAvailabilityZone) UnmarshalJSON(data []byte) (err error "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -191,11 +214,23 @@ func (o *HyperflexLogicalAvailabilityZone) UnmarshalJSON(data []byte) (err error } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type HyperflexLogicalAvailabilityZoneWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_hyperflex_lun.go b/model_hyperflex_lun.go index 40858d68f5..8004088ec3 100644 --- a/model_hyperflex_lun.go +++ b/model_hyperflex_lun.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -109,6 +109,11 @@ func (o *HyperflexLun) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "hyperflex.Lun" of the ClassId field. +func (o *HyperflexLun) GetDefaultClassId() interface{} { + return "hyperflex.Lun" +} + // GetObjectType returns the ObjectType field value func (o *HyperflexLun) GetObjectType() string { if o == nil { @@ -133,6 +138,11 @@ func (o *HyperflexLun) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "hyperflex.Lun" of the ObjectType field. +func (o *HyperflexLun) GetDefaultObjectType() interface{} { + return "hyperflex.Lun" +} + // GetDescription returns the Description field value if set, zero value otherwise. func (o *HyperflexLun) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -642,7 +652,13 @@ func (o HyperflexLun) ToMap() (map[string]interface{}, error) { if errStorageBaseHostLun != nil { return map[string]interface{}{}, errStorageBaseHostLun } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Description) { toSerialize["Description"] = o.Description @@ -706,6 +722,13 @@ func (o *HyperflexLun) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -715,11 +738,23 @@ func (o *HyperflexLun) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type HyperflexLunWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_hyperflex_lun_list.go b/model_hyperflex_lun_list.go index 3991620ee1..dfd79c29d3 100644 --- a/model_hyperflex_lun_list.go +++ b/model_hyperflex_lun_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *HyperflexLunList) GetResultsOk() ([]HyperflexLun, bool) { // HasResults returns a boolean if a field has been set. func (o *HyperflexLunList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *HyperflexLunList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *HyperflexLunList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type HyperflexLunListWithoutEmbeddedStruct struct { // The total number of 'hyperflex.Lun' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_hyperflex_lun_relationship.go b/model_hyperflex_lun_relationship.go index 5007cc276e..97f53e1b58 100644 --- a/model_hyperflex_lun_relationship.go +++ b/model_hyperflex_lun_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_hyperflex_lun_response.go b/model_hyperflex_lun_response.go index 0829a30c37..3dcea89a8e 100644 --- a/model_hyperflex_lun_response.go +++ b/model_hyperflex_lun_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_hyperflex_mac_addr_prefix_range.go b/model_hyperflex_mac_addr_prefix_range.go index 1f5ddd39dd..adb0661aa1 100644 --- a/model_hyperflex_mac_addr_prefix_range.go +++ b/model_hyperflex_mac_addr_prefix_range.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -29,9 +29,9 @@ type HyperflexMacAddrPrefixRange struct { // The fully-qualified name of the instantiated, concrete type. The value should be the same as the 'ClassId' property. ObjectType string `json:"ObjectType"` // The end MAC address prefix of a MAC address prefix range in the form of 00:25:B5:XX. - EndAddr *string `json:"EndAddr,omitempty"` + EndAddr *string `json:"EndAddr,omitempty" validate:"regexp=^$|^00:25:B5:[0-9a-fA-F]{2}$"` // The start MAC address prefix of a MAC address prefix range in the form of 00:25:B5:XX. - StartAddr *string `json:"StartAddr,omitempty"` + StartAddr *string `json:"StartAddr,omitempty" validate:"regexp=^$|^00:25:B5:[0-9a-fA-F]{2}$"` AdditionalProperties map[string]interface{} } @@ -84,6 +84,11 @@ func (o *HyperflexMacAddrPrefixRange) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "hyperflex.MacAddrPrefixRange" of the ClassId field. +func (o *HyperflexMacAddrPrefixRange) GetDefaultClassId() interface{} { + return "hyperflex.MacAddrPrefixRange" +} + // GetObjectType returns the ObjectType field value func (o *HyperflexMacAddrPrefixRange) GetObjectType() string { if o == nil { @@ -108,6 +113,11 @@ func (o *HyperflexMacAddrPrefixRange) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "hyperflex.MacAddrPrefixRange" of the ObjectType field. +func (o *HyperflexMacAddrPrefixRange) GetDefaultObjectType() interface{} { + return "hyperflex.MacAddrPrefixRange" +} + // GetEndAddr returns the EndAddr field value if set, zero value otherwise. func (o *HyperflexMacAddrPrefixRange) GetEndAddr() string { if o == nil || IsNil(o.EndAddr) { @@ -190,7 +200,13 @@ func (o HyperflexMacAddrPrefixRange) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.EndAddr) { toSerialize["EndAddr"] = o.EndAddr @@ -215,6 +231,13 @@ func (o *HyperflexMacAddrPrefixRange) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -224,20 +247,32 @@ func (o *HyperflexMacAddrPrefixRange) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type HyperflexMacAddrPrefixRangeWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` // The fully-qualified name of the instantiated, concrete type. The value should be the same as the 'ClassId' property. ObjectType string `json:"ObjectType"` // The end MAC address prefix of a MAC address prefix range in the form of 00:25:B5:XX. - EndAddr *string `json:"EndAddr,omitempty"` + EndAddr *string `json:"EndAddr,omitempty" validate:"regexp=^$|^00:25:B5:[0-9a-fA-F]{2}$"` // The start MAC address prefix of a MAC address prefix range in the form of 00:25:B5:XX. - StartAddr *string `json:"StartAddr,omitempty"` + StartAddr *string `json:"StartAddr,omitempty" validate:"regexp=^$|^00:25:B5:[0-9a-fA-F]{2}$"` } varHyperflexMacAddrPrefixRangeWithoutEmbeddedStruct := HyperflexMacAddrPrefixRangeWithoutEmbeddedStruct{} diff --git a/model_hyperflex_map_cluster_id_to_protection_info.go b/model_hyperflex_map_cluster_id_to_protection_info.go index edb57d1aa4..60ccabeb5e 100644 --- a/model_hyperflex_map_cluster_id_to_protection_info.go +++ b/model_hyperflex_map_cluster_id_to_protection_info.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -83,6 +83,11 @@ func (o *HyperflexMapClusterIdToProtectionInfo) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "hyperflex.MapClusterIdToProtectionInfo" of the ClassId field. +func (o *HyperflexMapClusterIdToProtectionInfo) GetDefaultClassId() interface{} { + return "hyperflex.MapClusterIdToProtectionInfo" +} + // GetObjectType returns the ObjectType field value func (o *HyperflexMapClusterIdToProtectionInfo) GetObjectType() string { if o == nil { @@ -107,6 +112,11 @@ func (o *HyperflexMapClusterIdToProtectionInfo) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "hyperflex.MapClusterIdToProtectionInfo" of the ObjectType field. +func (o *HyperflexMapClusterIdToProtectionInfo) GetDefaultObjectType() interface{} { + return "hyperflex.MapClusterIdToProtectionInfo" +} + // GetClusterId returns the ClusterId field value if set, zero value otherwise. func (o *HyperflexMapClusterIdToProtectionInfo) GetClusterId() string { if o == nil || IsNil(o.ClusterId) { @@ -200,7 +210,13 @@ func (o HyperflexMapClusterIdToProtectionInfo) ToMap() (map[string]interface{}, if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.ClusterId) { toSerialize["ClusterId"] = o.ClusterId @@ -225,6 +241,13 @@ func (o *HyperflexMapClusterIdToProtectionInfo) UnmarshalJSON(data []byte) (err "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -234,11 +257,23 @@ func (o *HyperflexMapClusterIdToProtectionInfo) UnmarshalJSON(data []byte) (err } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type HyperflexMapClusterIdToProtectionInfoWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_hyperflex_map_cluster_id_to_st_snapshot_point.go b/model_hyperflex_map_cluster_id_to_st_snapshot_point.go index e511f3942b..b1b745d776 100644 --- a/model_hyperflex_map_cluster_id_to_st_snapshot_point.go +++ b/model_hyperflex_map_cluster_id_to_st_snapshot_point.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -83,6 +83,11 @@ func (o *HyperflexMapClusterIdToStSnapshotPoint) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "hyperflex.MapClusterIdToStSnapshotPoint" of the ClassId field. +func (o *HyperflexMapClusterIdToStSnapshotPoint) GetDefaultClassId() interface{} { + return "hyperflex.MapClusterIdToStSnapshotPoint" +} + // GetObjectType returns the ObjectType field value func (o *HyperflexMapClusterIdToStSnapshotPoint) GetObjectType() string { if o == nil { @@ -107,6 +112,11 @@ func (o *HyperflexMapClusterIdToStSnapshotPoint) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "hyperflex.MapClusterIdToStSnapshotPoint" of the ObjectType field. +func (o *HyperflexMapClusterIdToStSnapshotPoint) GetDefaultObjectType() interface{} { + return "hyperflex.MapClusterIdToStSnapshotPoint" +} + // GetClusterId returns the ClusterId field value if set, zero value otherwise. func (o *HyperflexMapClusterIdToStSnapshotPoint) GetClusterId() string { if o == nil || IsNil(o.ClusterId) { @@ -200,7 +210,13 @@ func (o HyperflexMapClusterIdToStSnapshotPoint) ToMap() (map[string]interface{}, if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.ClusterId) { toSerialize["ClusterId"] = o.ClusterId @@ -225,6 +241,13 @@ func (o *HyperflexMapClusterIdToStSnapshotPoint) UnmarshalJSON(data []byte) (err "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -234,11 +257,23 @@ func (o *HyperflexMapClusterIdToStSnapshotPoint) UnmarshalJSON(data []byte) (err } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type HyperflexMapClusterIdToStSnapshotPointWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_hyperflex_map_uuid_to_tracked_disk.go b/model_hyperflex_map_uuid_to_tracked_disk.go index 46a7df9932..170876ea1a 100644 --- a/model_hyperflex_map_uuid_to_tracked_disk.go +++ b/model_hyperflex_map_uuid_to_tracked_disk.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -83,6 +83,11 @@ func (o *HyperflexMapUuidToTrackedDisk) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "hyperflex.MapUuidToTrackedDisk" of the ClassId field. +func (o *HyperflexMapUuidToTrackedDisk) GetDefaultClassId() interface{} { + return "hyperflex.MapUuidToTrackedDisk" +} + // GetObjectType returns the ObjectType field value func (o *HyperflexMapUuidToTrackedDisk) GetObjectType() string { if o == nil { @@ -107,6 +112,11 @@ func (o *HyperflexMapUuidToTrackedDisk) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "hyperflex.MapUuidToTrackedDisk" of the ObjectType field. +func (o *HyperflexMapUuidToTrackedDisk) GetDefaultObjectType() interface{} { + return "hyperflex.MapUuidToTrackedDisk" +} + // GetTrackedDisk returns the TrackedDisk field value if set, zero value otherwise (both if not set or set to explicit null). func (o *HyperflexMapUuidToTrackedDisk) GetTrackedDisk() HyperflexTrackedDisk { if o == nil || IsNil(o.TrackedDisk.Get()) { @@ -200,7 +210,13 @@ func (o HyperflexMapUuidToTrackedDisk) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.TrackedDisk.IsSet() { toSerialize["TrackedDisk"] = o.TrackedDisk.Get() @@ -225,6 +241,13 @@ func (o *HyperflexMapUuidToTrackedDisk) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -234,11 +257,23 @@ func (o *HyperflexMapUuidToTrackedDisk) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type HyperflexMapUuidToTrackedDiskWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_hyperflex_named_vlan.go b/model_hyperflex_named_vlan.go index e974a91281..d837dc930e 100644 --- a/model_hyperflex_named_vlan.go +++ b/model_hyperflex_named_vlan.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -29,7 +29,7 @@ type HyperflexNamedVlan struct { // The fully-qualified name of the instantiated, concrete type. The value should be the same as the 'ClassId' property. ObjectType string `json:"ObjectType"` // The name of the VLAN. The name can be from 1 to 32 characters long and can contain a combination of alphanumeric characters, underscores, and hyphens. - Name *string `json:"Name,omitempty"` + Name *string `json:"Name,omitempty" validate:"regexp=^$|^[a-zA-Z0-9-_.]{1,32}$"` // The ID of the named VLAN. An ID of 0 means the traffic is untagged. The ID can be any number between 0 and 4095, inclusive. VlanId *int64 `json:"VlanId,omitempty"` AdditionalProperties map[string]interface{} @@ -84,6 +84,11 @@ func (o *HyperflexNamedVlan) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "hyperflex.NamedVlan" of the ClassId field. +func (o *HyperflexNamedVlan) GetDefaultClassId() interface{} { + return "hyperflex.NamedVlan" +} + // GetObjectType returns the ObjectType field value func (o *HyperflexNamedVlan) GetObjectType() string { if o == nil { @@ -108,6 +113,11 @@ func (o *HyperflexNamedVlan) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "hyperflex.NamedVlan" of the ObjectType field. +func (o *HyperflexNamedVlan) GetDefaultObjectType() interface{} { + return "hyperflex.NamedVlan" +} + // GetName returns the Name field value if set, zero value otherwise. func (o *HyperflexNamedVlan) GetName() string { if o == nil || IsNil(o.Name) { @@ -190,7 +200,13 @@ func (o HyperflexNamedVlan) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Name) { toSerialize["Name"] = o.Name @@ -215,6 +231,13 @@ func (o *HyperflexNamedVlan) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -224,18 +247,30 @@ func (o *HyperflexNamedVlan) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type HyperflexNamedVlanWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` // The fully-qualified name of the instantiated, concrete type. The value should be the same as the 'ClassId' property. ObjectType string `json:"ObjectType"` // The name of the VLAN. The name can be from 1 to 32 characters long and can contain a combination of alphanumeric characters, underscores, and hyphens. - Name *string `json:"Name,omitempty"` + Name *string `json:"Name,omitempty" validate:"regexp=^$|^[a-zA-Z0-9-_.]{1,32}$"` // The ID of the named VLAN. An ID of 0 means the traffic is untagged. The ID can be any number between 0 and 4095, inclusive. VlanId *int64 `json:"VlanId,omitempty"` } diff --git a/model_hyperflex_named_vsan.go b/model_hyperflex_named_vsan.go index 708238efb1..aa40dfd0d5 100644 --- a/model_hyperflex_named_vsan.go +++ b/model_hyperflex_named_vsan.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -29,7 +29,7 @@ type HyperflexNamedVsan struct { // The fully-qualified name of the instantiated, concrete type. The value should be the same as the 'ClassId' property. ObjectType string `json:"ObjectType"` // The name of the VSAN. The name can be from 1 to 32 characters long and can contain a combination of alphanumeric characters, underscores, and hyphens. - Name *string `json:"Name,omitempty"` + Name *string `json:"Name,omitempty" validate:"regexp=^$|^[a-zA-Z0-9-_.]{1,32}$"` // The ID of the named VSAN. The ID can be any number between 1 and 4093, inclusive. VsanId *int64 `json:"VsanId,omitempty"` AdditionalProperties map[string]interface{} @@ -84,6 +84,11 @@ func (o *HyperflexNamedVsan) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "hyperflex.NamedVsan" of the ClassId field. +func (o *HyperflexNamedVsan) GetDefaultClassId() interface{} { + return "hyperflex.NamedVsan" +} + // GetObjectType returns the ObjectType field value func (o *HyperflexNamedVsan) GetObjectType() string { if o == nil { @@ -108,6 +113,11 @@ func (o *HyperflexNamedVsan) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "hyperflex.NamedVsan" of the ObjectType field. +func (o *HyperflexNamedVsan) GetDefaultObjectType() interface{} { + return "hyperflex.NamedVsan" +} + // GetName returns the Name field value if set, zero value otherwise. func (o *HyperflexNamedVsan) GetName() string { if o == nil || IsNil(o.Name) { @@ -190,7 +200,13 @@ func (o HyperflexNamedVsan) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Name) { toSerialize["Name"] = o.Name @@ -215,6 +231,13 @@ func (o *HyperflexNamedVsan) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -224,18 +247,30 @@ func (o *HyperflexNamedVsan) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type HyperflexNamedVsanWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` // The fully-qualified name of the instantiated, concrete type. The value should be the same as the 'ClassId' property. ObjectType string `json:"ObjectType"` // The name of the VSAN. The name can be from 1 to 32 characters long and can contain a combination of alphanumeric characters, underscores, and hyphens. - Name *string `json:"Name,omitempty"` + Name *string `json:"Name,omitempty" validate:"regexp=^$|^[a-zA-Z0-9-_.]{1,32}$"` // The ID of the named VSAN. The ID can be any number between 1 and 4093, inclusive. VsanId *int64 `json:"VsanId,omitempty"` } diff --git a/model_hyperflex_network_configuration.go b/model_hyperflex_network_configuration.go index 73fe48fd76..8ad5a5d85f 100644 --- a/model_hyperflex_network_configuration.go +++ b/model_hyperflex_network_configuration.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -33,7 +33,7 @@ type HyperflexNetworkConfiguration struct { // The data IP of the HyperFlex cluster. DataIpAddress *string `json:"DataIpAddress,omitempty"` // The data subnet mask of the HyperFlex cluster. - DataNetmask *string `json:"DataNetmask,omitempty"` + DataNetmask *string `json:"DataNetmask,omitempty" validate:"regexp=^$|^(((255\\\\.){3}(255|254|252|248|240|224|192|128|0+))|((255\\\\.){2}(255|254|252|248|240|224|192|128|0+)\\\\.0)|((255\\\\.)(255|254|252|248|240|224|192|128|0+)(\\\\.0+){2})|((255|254|252|248|240|224|192|128|0+)(\\\\.0+){3}))$"` // The data VLAN of the HyperFlex cluster. DataVlan *int64 `json:"DataVlan,omitempty"` // The DNS domain suffix configured for the HyperFlex Cluster. @@ -47,7 +47,7 @@ type HyperflexNetworkConfiguration struct { // The management IP or the hostname of the HyperFlex cluster. MgmtIpAddress *string `json:"MgmtIpAddress,omitempty"` // The management subnet mask of the HyperFlex cluster. - MgmtNetmask *string `json:"MgmtNetmask,omitempty"` + MgmtNetmask *string `json:"MgmtNetmask,omitempty" validate:"regexp=^$|^(((255\\\\.){3}(255|254|252|248|240|224|192|128|0+))|((255\\\\.){2}(255|254|252|248|240|224|192|128|0+)\\\\.0)|((255\\\\.)(255|254|252|248|240|224|192|128|0+)(\\\\.0+){2})|((255|254|252|248|240|224|192|128|0+)(\\\\.0+){3}))$"` // The management VLAN ID of the HyperFlex cluster. MgmtVlan *int64 `json:"MgmtVlan,omitempty"` // The timezone configured on the HyperFlex Cluster. @@ -105,6 +105,11 @@ func (o *HyperflexNetworkConfiguration) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "hyperflex.NetworkConfiguration" of the ClassId field. +func (o *HyperflexNetworkConfiguration) GetDefaultClassId() interface{} { + return "hyperflex.NetworkConfiguration" +} + // GetObjectType returns the ObjectType field value func (o *HyperflexNetworkConfiguration) GetObjectType() string { if o == nil { @@ -129,6 +134,11 @@ func (o *HyperflexNetworkConfiguration) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "hyperflex.NetworkConfiguration" of the ObjectType field. +func (o *HyperflexNetworkConfiguration) GetDefaultObjectType() interface{} { + return "hyperflex.NetworkConfiguration" +} + // GetDataGatewayIpAddress returns the DataGatewayIpAddress field value if set, zero value otherwise. func (o *HyperflexNetworkConfiguration) GetDataGatewayIpAddress() string { if o == nil || IsNil(o.DataGatewayIpAddress) { @@ -534,7 +544,7 @@ func (o *HyperflexNetworkConfiguration) GetVmNetworkVlansOk() ([]int64, bool) { // HasVmNetworkVlans returns a boolean if a field has been set. func (o *HyperflexNetworkConfiguration) HasVmNetworkVlans() bool { - if o != nil && IsNil(o.VmNetworkVlans) { + if o != nil && !IsNil(o.VmNetworkVlans) { return true } @@ -564,7 +574,13 @@ func (o HyperflexNetworkConfiguration) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.DataGatewayIpAddress) { toSerialize["DataGatewayIpAddress"] = o.DataGatewayIpAddress @@ -622,6 +638,13 @@ func (o *HyperflexNetworkConfiguration) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -631,11 +654,23 @@ func (o *HyperflexNetworkConfiguration) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type HyperflexNetworkConfigurationWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` @@ -646,7 +681,7 @@ func (o *HyperflexNetworkConfiguration) UnmarshalJSON(data []byte) (err error) { // The data IP of the HyperFlex cluster. DataIpAddress *string `json:"DataIpAddress,omitempty"` // The data subnet mask of the HyperFlex cluster. - DataNetmask *string `json:"DataNetmask,omitempty"` + DataNetmask *string `json:"DataNetmask,omitempty" validate:"regexp=^$|^(((255\\\\.){3}(255|254|252|248|240|224|192|128|0+))|((255\\\\.){2}(255|254|252|248|240|224|192|128|0+)\\\\.0)|((255\\\\.)(255|254|252|248|240|224|192|128|0+)(\\\\.0+){2})|((255|254|252|248|240|224|192|128|0+)(\\\\.0+){3}))$"` // The data VLAN of the HyperFlex cluster. DataVlan *int64 `json:"DataVlan,omitempty"` // The DNS domain suffix configured for the HyperFlex Cluster. @@ -660,7 +695,7 @@ func (o *HyperflexNetworkConfiguration) UnmarshalJSON(data []byte) (err error) { // The management IP or the hostname of the HyperFlex cluster. MgmtIpAddress *string `json:"MgmtIpAddress,omitempty"` // The management subnet mask of the HyperFlex cluster. - MgmtNetmask *string `json:"MgmtNetmask,omitempty"` + MgmtNetmask *string `json:"MgmtNetmask,omitempty" validate:"regexp=^$|^(((255\\\\.){3}(255|254|252|248|240|224|192|128|0+))|((255\\\\.){2}(255|254|252|248|240|224|192|128|0+)\\\\.0)|((255\\\\.)(255|254|252|248|240|224|192|128|0+)(\\\\.0+){2})|((255|254|252|248|240|224|192|128|0+)(\\\\.0+){3}))$"` // The management VLAN ID of the HyperFlex cluster. MgmtVlan *int64 `json:"MgmtVlan,omitempty"` // The timezone configured on the HyperFlex Cluster. diff --git a/model_hyperflex_node.go b/model_hyperflex_node.go index 95f3c1f71c..17fc9e058d 100644 --- a/model_hyperflex_node.go +++ b/model_hyperflex_node.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -118,6 +118,11 @@ func (o *HyperflexNode) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "hyperflex.Node" of the ClassId field. +func (o *HyperflexNode) GetDefaultClassId() interface{} { + return "hyperflex.Node" +} + // GetObjectType returns the ObjectType field value func (o *HyperflexNode) GetObjectType() string { if o == nil { @@ -142,6 +147,11 @@ func (o *HyperflexNode) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "hyperflex.Node" of the ObjectType field. +func (o *HyperflexNode) GetDefaultObjectType() interface{} { + return "hyperflex.Node" +} + // GetBuildNumber returns the BuildNumber field value if set, zero value otherwise. func (o *HyperflexNode) GetBuildNumber() string { if o == nil || IsNil(o.BuildNumber) { @@ -227,7 +237,7 @@ func (o *HyperflexNode) GetEmptySlotsListOk() ([]string, bool) { // HasEmptySlotsList returns a boolean if a field has been set. func (o *HyperflexNode) HasEmptySlotsList() bool { - if o != nil && IsNil(o.EmptySlotsList) { + if o != nil && !IsNil(o.EmptySlotsList) { return true } @@ -956,7 +966,7 @@ func (o *HyperflexNode) GetDrivesOk() ([]HyperflexDriveRelationship, bool) { // HasDrives returns a boolean if a field has been set. func (o *HyperflexNode) HasDrives() bool { - if o != nil && IsNil(o.Drives) { + if o != nil && !IsNil(o.Drives) { return true } @@ -1029,7 +1039,13 @@ func (o HyperflexNode) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.BuildNumber) { toSerialize["BuildNumber"] = o.BuildNumber @@ -1120,6 +1136,13 @@ func (o *HyperflexNode) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -1129,11 +1152,23 @@ func (o *HyperflexNode) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type HyperflexNodeWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_hyperflex_node_config_policy.go b/model_hyperflex_node_config_policy.go index af353ded34..2f8bcf6165 100644 --- a/model_hyperflex_node_config_policy.go +++ b/model_hyperflex_node_config_policy.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -34,7 +34,7 @@ type HyperflexNodeConfigPolicy struct { MgmtIpRange NullableHyperflexIpAddrRange `json:"MgmtIpRange,omitempty"` // The node name prefix that is used to automatically generate the default hostname for each server. A dash (-) will be appended to the prefix followed by the node number to form a hostname. This default naming scheme can be manually overridden in the node configuration. The maximum length of a prefix is 60, must only contain alphanumeric characters or dash (-), and must start with an alphanumeric character. // Deprecated - NodeNamePrefix *string `json:"NodeNamePrefix,omitempty"` + NodeNamePrefix *string `json:"NodeNamePrefix,omitempty" validate:"regexp=^$|^[a-zA-Z0-9][a-zA-Z0-9-]{1,59}$"` // An array of relationships to hyperflexClusterProfile resources. ClusterProfiles []HyperflexClusterProfileRelationship `json:"ClusterProfiles,omitempty"` Organization NullableOrganizationOrganizationRelationship `json:"Organization,omitempty"` @@ -90,6 +90,11 @@ func (o *HyperflexNodeConfigPolicy) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "hyperflex.NodeConfigPolicy" of the ClassId field. +func (o *HyperflexNodeConfigPolicy) GetDefaultClassId() interface{} { + return "hyperflex.NodeConfigPolicy" +} + // GetObjectType returns the ObjectType field value func (o *HyperflexNodeConfigPolicy) GetObjectType() string { if o == nil { @@ -114,6 +119,11 @@ func (o *HyperflexNodeConfigPolicy) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "hyperflex.NodeConfigPolicy" of the ObjectType field. +func (o *HyperflexNodeConfigPolicy) GetDefaultObjectType() interface{} { + return "hyperflex.NodeConfigPolicy" +} + // GetDataIpRange returns the DataIpRange field value if set, zero value otherwise (both if not set or set to explicit null). func (o *HyperflexNodeConfigPolicy) GetDataIpRange() HyperflexIpAddrRange { if o == nil || IsNil(o.DataIpRange.Get()) { @@ -342,7 +352,7 @@ func (o *HyperflexNodeConfigPolicy) GetClusterProfilesOk() ([]HyperflexClusterPr // HasClusterProfiles returns a boolean if a field has been set. func (o *HyperflexNodeConfigPolicy) HasClusterProfiles() bool { - if o != nil && IsNil(o.ClusterProfiles) { + if o != nil && !IsNil(o.ClusterProfiles) { return true } @@ -415,7 +425,13 @@ func (o HyperflexNodeConfigPolicy) ToMap() (map[string]interface{}, error) { if errPolicyAbstractPolicy != nil { return map[string]interface{}{}, errPolicyAbstractPolicy } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.DataIpRange.IsSet() { toSerialize["DataIpRange"] = o.DataIpRange.Get() @@ -455,6 +471,13 @@ func (o *HyperflexNodeConfigPolicy) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -464,11 +487,23 @@ func (o *HyperflexNodeConfigPolicy) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type HyperflexNodeConfigPolicyWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` @@ -480,7 +515,7 @@ func (o *HyperflexNodeConfigPolicy) UnmarshalJSON(data []byte) (err error) { MgmtIpRange NullableHyperflexIpAddrRange `json:"MgmtIpRange,omitempty"` // The node name prefix that is used to automatically generate the default hostname for each server. A dash (-) will be appended to the prefix followed by the node number to form a hostname. This default naming scheme can be manually overridden in the node configuration. The maximum length of a prefix is 60, must only contain alphanumeric characters or dash (-), and must start with an alphanumeric character. // Deprecated - NodeNamePrefix *string `json:"NodeNamePrefix,omitempty"` + NodeNamePrefix *string `json:"NodeNamePrefix,omitempty" validate:"regexp=^$|^[a-zA-Z0-9][a-zA-Z0-9-]{1,59}$"` // An array of relationships to hyperflexClusterProfile resources. ClusterProfiles []HyperflexClusterProfileRelationship `json:"ClusterProfiles,omitempty"` Organization NullableOrganizationOrganizationRelationship `json:"Organization,omitempty"` diff --git a/model_hyperflex_node_config_policy_list.go b/model_hyperflex_node_config_policy_list.go index 514b357543..448b9b1a7a 100644 --- a/model_hyperflex_node_config_policy_list.go +++ b/model_hyperflex_node_config_policy_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *HyperflexNodeConfigPolicyList) GetResultsOk() ([]HyperflexNodeConfigPol // HasResults returns a boolean if a field has been set. func (o *HyperflexNodeConfigPolicyList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *HyperflexNodeConfigPolicyList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *HyperflexNodeConfigPolicyList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type HyperflexNodeConfigPolicyListWithoutEmbeddedStruct struct { // The total number of 'hyperflex.NodeConfigPolicy' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_hyperflex_node_config_policy_relationship.go b/model_hyperflex_node_config_policy_relationship.go index a621efe8d6..a620c2dca2 100644 --- a/model_hyperflex_node_config_policy_relationship.go +++ b/model_hyperflex_node_config_policy_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_hyperflex_node_config_policy_response.go b/model_hyperflex_node_config_policy_response.go index 4a41e5853f..a5c4db601e 100644 --- a/model_hyperflex_node_config_policy_response.go +++ b/model_hyperflex_node_config_policy_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_hyperflex_node_list.go b/model_hyperflex_node_list.go index c2ac2666fe..ef88058a19 100644 --- a/model_hyperflex_node_list.go +++ b/model_hyperflex_node_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *HyperflexNodeList) GetResultsOk() ([]HyperflexNode, bool) { // HasResults returns a boolean if a field has been set. func (o *HyperflexNodeList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *HyperflexNodeList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *HyperflexNodeList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type HyperflexNodeListWithoutEmbeddedStruct struct { // The total number of 'hyperflex.Node' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_hyperflex_node_profile.go b/model_hyperflex_node_profile.go index 9fbc655b59..8aaa0b092d 100644 --- a/model_hyperflex_node_profile.go +++ b/model_hyperflex_node_profile.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -29,17 +29,17 @@ type HyperflexNodeProfile struct { // The fully-qualified name of the instantiated, concrete type. The value should be the same as the 'ClassId' property. ObjectType string `json:"ObjectType"` // IP address for storage data network (Controller VM interface). - HxdpDataIp *string `json:"HxdpDataIp,omitempty"` + HxdpDataIp *string `json:"HxdpDataIp,omitempty" validate:"regexp=^$|^([1-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\\\.([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\\\.([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\\\.([1-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])$"` // IP address for HyperFlex management network. - HxdpMgmtIp *string `json:"HxdpMgmtIp,omitempty"` + HxdpMgmtIp *string `json:"HxdpMgmtIp,omitempty" validate:"regexp=^$|^([1-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\\\.([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\\\.([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\\\.([1-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])$"` // IP address for storage client network (Controller VM interface). - HxdpStorageClientIp *string `json:"HxdpStorageClientIp,omitempty"` + HxdpStorageClientIp *string `json:"HxdpStorageClientIp,omitempty" validate:"regexp=^$|^([1-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\\\.([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\\\.([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\\\.([1-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])$"` // IP address for hypervisor control such as VM migration or pod management. - HypervisorControlIp *string `json:"HypervisorControlIp,omitempty"` + HypervisorControlIp *string `json:"HypervisorControlIp,omitempty" validate:"regexp=^$|^([1-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\\\.([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\\\.([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\\\.([1-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])$"` // IP address for storage data network (Hypervisor interface). - HypervisorDataIp *string `json:"HypervisorDataIp,omitempty"` + HypervisorDataIp *string `json:"HypervisorDataIp,omitempty" validate:"regexp=^$|^([1-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\\\.([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\\\.([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\\\.([1-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])$"` // IP address for Hypervisor management network. - HypervisorMgmtIp *string `json:"HypervisorMgmtIp,omitempty"` + HypervisorMgmtIp *string `json:"HypervisorMgmtIp,omitempty" validate:"regexp=^$|^([1-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\\\.([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\\\.([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\\\.([1-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])$"` // The role that this node performs in the HyperFlex cluster. * `Unknown` - The node role is not available. * `Storage` - The node persists data and contributes to the storage capacity of a cluster. * `Compute` - The node contributes to the compute capacity of a cluster. NodeRole *string `json:"NodeRole,omitempty"` AssignedServer NullableComputePhysicalRelationship `json:"AssignedServer,omitempty"` @@ -105,6 +105,11 @@ func (o *HyperflexNodeProfile) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "hyperflex.NodeProfile" of the ClassId field. +func (o *HyperflexNodeProfile) GetDefaultClassId() interface{} { + return "hyperflex.NodeProfile" +} + // GetObjectType returns the ObjectType field value func (o *HyperflexNodeProfile) GetObjectType() string { if o == nil { @@ -129,6 +134,11 @@ func (o *HyperflexNodeProfile) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "hyperflex.NodeProfile" of the ObjectType field. +func (o *HyperflexNodeProfile) GetDefaultObjectType() interface{} { + return "hyperflex.NodeProfile" +} + // GetHxdpDataIp returns the HxdpDataIp field value if set, zero value otherwise. func (o *HyperflexNodeProfile) GetHxdpDataIp() string { if o == nil || IsNil(o.HxdpDataIp) { @@ -500,7 +510,13 @@ func (o HyperflexNodeProfile) ToMap() (map[string]interface{}, error) { if errPolicyAbstractConfigProfile != nil { return map[string]interface{}{}, errPolicyAbstractConfigProfile } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.HxdpDataIp) { toSerialize["HxdpDataIp"] = o.HxdpDataIp @@ -549,6 +565,13 @@ func (o *HyperflexNodeProfile) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -558,28 +581,40 @@ func (o *HyperflexNodeProfile) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type HyperflexNodeProfileWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` // The fully-qualified name of the instantiated, concrete type. The value should be the same as the 'ClassId' property. ObjectType string `json:"ObjectType"` // IP address for storage data network (Controller VM interface). - HxdpDataIp *string `json:"HxdpDataIp,omitempty"` + HxdpDataIp *string `json:"HxdpDataIp,omitempty" validate:"regexp=^$|^([1-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\\\.([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\\\.([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\\\.([1-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])$"` // IP address for HyperFlex management network. - HxdpMgmtIp *string `json:"HxdpMgmtIp,omitempty"` + HxdpMgmtIp *string `json:"HxdpMgmtIp,omitempty" validate:"regexp=^$|^([1-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\\\.([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\\\.([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\\\.([1-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])$"` // IP address for storage client network (Controller VM interface). - HxdpStorageClientIp *string `json:"HxdpStorageClientIp,omitempty"` + HxdpStorageClientIp *string `json:"HxdpStorageClientIp,omitempty" validate:"regexp=^$|^([1-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\\\.([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\\\.([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\\\.([1-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])$"` // IP address for hypervisor control such as VM migration or pod management. - HypervisorControlIp *string `json:"HypervisorControlIp,omitempty"` + HypervisorControlIp *string `json:"HypervisorControlIp,omitempty" validate:"regexp=^$|^([1-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\\\.([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\\\.([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\\\.([1-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])$"` // IP address for storage data network (Hypervisor interface). - HypervisorDataIp *string `json:"HypervisorDataIp,omitempty"` + HypervisorDataIp *string `json:"HypervisorDataIp,omitempty" validate:"regexp=^$|^([1-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\\\.([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\\\.([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\\\.([1-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])$"` // IP address for Hypervisor management network. - HypervisorMgmtIp *string `json:"HypervisorMgmtIp,omitempty"` + HypervisorMgmtIp *string `json:"HypervisorMgmtIp,omitempty" validate:"regexp=^$|^([1-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\\\.([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\\\.([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\\\.([1-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])$"` // The role that this node performs in the HyperFlex cluster. * `Unknown` - The node role is not available. * `Storage` - The node persists data and contributes to the storage capacity of a cluster. * `Compute` - The node contributes to the compute capacity of a cluster. NodeRole *string `json:"NodeRole,omitempty"` AssignedServer NullableComputePhysicalRelationship `json:"AssignedServer,omitempty"` diff --git a/model_hyperflex_node_profile_list.go b/model_hyperflex_node_profile_list.go index 592e1560d8..7a2131a01b 100644 --- a/model_hyperflex_node_profile_list.go +++ b/model_hyperflex_node_profile_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *HyperflexNodeProfileList) GetResultsOk() ([]HyperflexNodeProfile, bool) // HasResults returns a boolean if a field has been set. func (o *HyperflexNodeProfileList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *HyperflexNodeProfileList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *HyperflexNodeProfileList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type HyperflexNodeProfileListWithoutEmbeddedStruct struct { // The total number of 'hyperflex.NodeProfile' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_hyperflex_node_profile_relationship.go b/model_hyperflex_node_profile_relationship.go index 25365d95ea..aee127a672 100644 --- a/model_hyperflex_node_profile_relationship.go +++ b/model_hyperflex_node_profile_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_hyperflex_node_profile_response.go b/model_hyperflex_node_profile_response.go index 060ef60ae9..f069ba59d2 100644 --- a/model_hyperflex_node_profile_response.go +++ b/model_hyperflex_node_profile_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_hyperflex_node_relationship.go b/model_hyperflex_node_relationship.go index 1463bf6dd4..5c6c2e16f8 100644 --- a/model_hyperflex_node_relationship.go +++ b/model_hyperflex_node_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_hyperflex_node_response.go b/model_hyperflex_node_response.go index a8983aade4..d55fa3d526 100644 --- a/model_hyperflex_node_response.go +++ b/model_hyperflex_node_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_hyperflex_port_type_to_port_number_map.go b/model_hyperflex_port_type_to_port_number_map.go index 833f761574..3a4419a865 100644 --- a/model_hyperflex_port_type_to_port_number_map.go +++ b/model_hyperflex_port_type_to_port_number_map.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -84,6 +84,11 @@ func (o *HyperflexPortTypeToPortNumberMap) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "hyperflex.PortTypeToPortNumberMap" of the ClassId field. +func (o *HyperflexPortTypeToPortNumberMap) GetDefaultClassId() interface{} { + return "hyperflex.PortTypeToPortNumberMap" +} + // GetObjectType returns the ObjectType field value func (o *HyperflexPortTypeToPortNumberMap) GetObjectType() string { if o == nil { @@ -108,6 +113,11 @@ func (o *HyperflexPortTypeToPortNumberMap) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "hyperflex.PortTypeToPortNumberMap" of the ObjectType field. +func (o *HyperflexPortTypeToPortNumberMap) GetDefaultObjectType() interface{} { + return "hyperflex.PortTypeToPortNumberMap" +} + // GetI16 returns the I16 field value if set, zero value otherwise. func (o *HyperflexPortTypeToPortNumberMap) GetI16() int64 { if o == nil || IsNil(o.I16) { @@ -190,7 +200,13 @@ func (o HyperflexPortTypeToPortNumberMap) ToMap() (map[string]interface{}, error if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.I16) { toSerialize["I16"] = o.I16 @@ -215,6 +231,13 @@ func (o *HyperflexPortTypeToPortNumberMap) UnmarshalJSON(data []byte) (err error "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -224,11 +247,23 @@ func (o *HyperflexPortTypeToPortNumberMap) UnmarshalJSON(data []byte) (err error } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type HyperflexPortTypeToPortNumberMapWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_hyperflex_protected_cluster.go b/model_hyperflex_protected_cluster.go index a0a1a20919..480caf3451 100644 --- a/model_hyperflex_protected_cluster.go +++ b/model_hyperflex_protected_cluster.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -100,6 +100,11 @@ func (o *HyperflexProtectedCluster) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "hyperflex.ProtectedCluster" of the ClassId field. +func (o *HyperflexProtectedCluster) GetDefaultClassId() interface{} { + return "hyperflex.ProtectedCluster" +} + // GetObjectType returns the ObjectType field value func (o *HyperflexProtectedCluster) GetObjectType() string { if o == nil { @@ -124,6 +129,11 @@ func (o *HyperflexProtectedCluster) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "hyperflex.ProtectedCluster" of the ObjectType field. +func (o *HyperflexProtectedCluster) GetDefaultObjectType() interface{} { + return "hyperflex.ProtectedCluster" +} + // GetHxVersion returns the HxVersion field value if set, zero value otherwise. func (o *HyperflexProtectedCluster) GetHxVersion() string { if o == nil || IsNil(o.HxVersion) { @@ -570,7 +580,13 @@ func (o HyperflexProtectedCluster) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.HxVersion) { toSerialize["HxVersion"] = o.HxVersion @@ -625,6 +641,13 @@ func (o *HyperflexProtectedCluster) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -634,11 +657,23 @@ func (o *HyperflexProtectedCluster) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type HyperflexProtectedClusterWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_hyperflex_protected_cluster_list.go b/model_hyperflex_protected_cluster_list.go index 8895b29833..e1a4e589ea 100644 --- a/model_hyperflex_protected_cluster_list.go +++ b/model_hyperflex_protected_cluster_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *HyperflexProtectedClusterList) GetResultsOk() ([]HyperflexProtectedClus // HasResults returns a boolean if a field has been set. func (o *HyperflexProtectedClusterList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *HyperflexProtectedClusterList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *HyperflexProtectedClusterList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type HyperflexProtectedClusterListWithoutEmbeddedStruct struct { // The total number of 'hyperflex.ProtectedCluster' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_hyperflex_protected_cluster_response.go b/model_hyperflex_protected_cluster_response.go index 0af731713c..f816e7f8d5 100644 --- a/model_hyperflex_protected_cluster_response.go +++ b/model_hyperflex_protected_cluster_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_hyperflex_protection_info.go b/model_hyperflex_protection_info.go index 6adcbed58c..8bdd07c943 100644 --- a/model_hyperflex_protection_info.go +++ b/model_hyperflex_protection_info.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -83,6 +83,11 @@ func (o *HyperflexProtectionInfo) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "hyperflex.ProtectionInfo" of the ClassId field. +func (o *HyperflexProtectionInfo) GetDefaultClassId() interface{} { + return "hyperflex.ProtectionInfo" +} + // GetObjectType returns the ObjectType field value func (o *HyperflexProtectionInfo) GetObjectType() string { if o == nil { @@ -107,6 +112,11 @@ func (o *HyperflexProtectionInfo) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "hyperflex.ProtectionInfo" of the ObjectType field. +func (o *HyperflexProtectionInfo) GetDefaultObjectType() interface{} { + return "hyperflex.ProtectionInfo" +} + // GetVmCurrentProtectionInfo returns the VmCurrentProtectionInfo field value if set, zero value otherwise (both if not set or set to explicit null). func (o *HyperflexProtectionInfo) GetVmCurrentProtectionInfo() HyperflexSnapshotInfoBrief { if o == nil || IsNil(o.VmCurrentProtectionInfo.Get()) { @@ -254,7 +264,13 @@ func (o HyperflexProtectionInfo) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.VmCurrentProtectionInfo.IsSet() { toSerialize["VmCurrentProtectionInfo"] = o.VmCurrentProtectionInfo.Get() @@ -282,6 +298,13 @@ func (o *HyperflexProtectionInfo) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -291,11 +314,23 @@ func (o *HyperflexProtectionInfo) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type HyperflexProtectionInfoWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_hyperflex_proxy_setting_policy.go b/model_hyperflex_proxy_setting_policy.go index 775ad257e3..af73984905 100644 --- a/model_hyperflex_proxy_setting_policy.go +++ b/model_hyperflex_proxy_setting_policy.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -29,7 +29,7 @@ type HyperflexProxySettingPolicy struct { // The fully-qualified name of the instantiated, concrete type. The value should be the same as the 'ClassId' property. ObjectType string `json:"ObjectType"` // HTTP Proxy server FQDN or IP. - Hostname *string `json:"Hostname,omitempty"` + Hostname *string `json:"Hostname,omitempty" validate:"regexp=^[A-Za-z]([A-Za-z0-9-]*[A-Za-z0-9])?$|^[A-Za-z0-9]([A-Za-z0-9-]*[A-Za-z0-9])?(\\\\.[A-Za-z0-9]([A-Za-z0-9-]*[A-Za-z0-9])?)*(\\\\.[A-Za-z]([A-Za-z0-9-]*[A-Za-z0-9])?)$|^([1-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\\\.([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\\\.([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\\\.([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])$"` // Indicates whether the value of the 'password' property has been set. IsPasswordSet *bool `json:"IsPasswordSet,omitempty"` // The password for the HTTP Proxy. @@ -93,6 +93,11 @@ func (o *HyperflexProxySettingPolicy) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "hyperflex.ProxySettingPolicy" of the ClassId field. +func (o *HyperflexProxySettingPolicy) GetDefaultClassId() interface{} { + return "hyperflex.ProxySettingPolicy" +} + // GetObjectType returns the ObjectType field value func (o *HyperflexProxySettingPolicy) GetObjectType() string { if o == nil { @@ -117,6 +122,11 @@ func (o *HyperflexProxySettingPolicy) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "hyperflex.ProxySettingPolicy" of the ObjectType field. +func (o *HyperflexProxySettingPolicy) GetDefaultObjectType() interface{} { + return "hyperflex.ProxySettingPolicy" +} + // GetHostname returns the Hostname field value if set, zero value otherwise. func (o *HyperflexProxySettingPolicy) GetHostname() string { if o == nil || IsNil(o.Hostname) { @@ -298,7 +308,7 @@ func (o *HyperflexProxySettingPolicy) GetClusterProfilesOk() ([]HyperflexCluster // HasClusterProfiles returns a boolean if a field has been set. func (o *HyperflexProxySettingPolicy) HasClusterProfiles() bool { - if o != nil && IsNil(o.ClusterProfiles) { + if o != nil && !IsNil(o.ClusterProfiles) { return true } @@ -371,7 +381,13 @@ func (o HyperflexProxySettingPolicy) ToMap() (map[string]interface{}, error) { if errPolicyAbstractPolicy != nil { return map[string]interface{}{}, errPolicyAbstractPolicy } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Hostname) { toSerialize["Hostname"] = o.Hostname @@ -411,6 +427,13 @@ func (o *HyperflexProxySettingPolicy) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -420,18 +443,30 @@ func (o *HyperflexProxySettingPolicy) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type HyperflexProxySettingPolicyWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` // The fully-qualified name of the instantiated, concrete type. The value should be the same as the 'ClassId' property. ObjectType string `json:"ObjectType"` // HTTP Proxy server FQDN or IP. - Hostname *string `json:"Hostname,omitempty"` + Hostname *string `json:"Hostname,omitempty" validate:"regexp=^[A-Za-z]([A-Za-z0-9-]*[A-Za-z0-9])?$|^[A-Za-z0-9]([A-Za-z0-9-]*[A-Za-z0-9])?(\\\\.[A-Za-z0-9]([A-Za-z0-9-]*[A-Za-z0-9])?)*(\\\\.[A-Za-z]([A-Za-z0-9-]*[A-Za-z0-9])?)$|^([1-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\\\.([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\\\.([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\\\.([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])$"` // Indicates whether the value of the 'password' property has been set. IsPasswordSet *bool `json:"IsPasswordSet,omitempty"` // The password for the HTTP Proxy. diff --git a/model_hyperflex_proxy_setting_policy_list.go b/model_hyperflex_proxy_setting_policy_list.go index 6dab9af091..e1ad8bb963 100644 --- a/model_hyperflex_proxy_setting_policy_list.go +++ b/model_hyperflex_proxy_setting_policy_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *HyperflexProxySettingPolicyList) GetResultsOk() ([]HyperflexProxySettin // HasResults returns a boolean if a field has been set. func (o *HyperflexProxySettingPolicyList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *HyperflexProxySettingPolicyList) UnmarshalJSON(data []byte) (err error) "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *HyperflexProxySettingPolicyList) UnmarshalJSON(data []byte) (err error) } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type HyperflexProxySettingPolicyListWithoutEmbeddedStruct struct { // The total number of 'hyperflex.ProxySettingPolicy' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_hyperflex_proxy_setting_policy_relationship.go b/model_hyperflex_proxy_setting_policy_relationship.go index 5c54b7a7f8..7a61735f00 100644 --- a/model_hyperflex_proxy_setting_policy_relationship.go +++ b/model_hyperflex_proxy_setting_policy_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_hyperflex_proxy_setting_policy_response.go b/model_hyperflex_proxy_setting_policy_response.go index 97759bf4ad..e8adf3bb0c 100644 --- a/model_hyperflex_proxy_setting_policy_response.go +++ b/model_hyperflex_proxy_setting_policy_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_hyperflex_re_sync_cluster_mo_ids.go b/model_hyperflex_re_sync_cluster_mo_ids.go index 334a30c395..74341ac572 100644 --- a/model_hyperflex_re_sync_cluster_mo_ids.go +++ b/model_hyperflex_re_sync_cluster_mo_ids.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -83,6 +83,11 @@ func (o *HyperflexReSyncClusterMoIds) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "hyperflex.ReSyncClusterMoIds" of the ClassId field. +func (o *HyperflexReSyncClusterMoIds) GetDefaultClassId() interface{} { + return "hyperflex.ReSyncClusterMoIds" +} + // GetObjectType returns the ObjectType field value func (o *HyperflexReSyncClusterMoIds) GetObjectType() string { if o == nil { @@ -107,6 +112,11 @@ func (o *HyperflexReSyncClusterMoIds) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "hyperflex.ReSyncClusterMoIds" of the ObjectType field. +func (o *HyperflexReSyncClusterMoIds) GetDefaultObjectType() interface{} { + return "hyperflex.ReSyncClusterMoIds" +} + // GetAccountMoId returns the AccountMoId field value if set, zero value otherwise. func (o *HyperflexReSyncClusterMoIds) GetAccountMoId() string { if o == nil || IsNil(o.AccountMoId) { @@ -160,7 +170,7 @@ func (o *HyperflexReSyncClusterMoIds) GetClusterMoIdsOk() ([]string, bool) { // HasClusterMoIds returns a boolean if a field has been set. func (o *HyperflexReSyncClusterMoIds) HasClusterMoIds() bool { - if o != nil && IsNil(o.ClusterMoIds) { + if o != nil && !IsNil(o.ClusterMoIds) { return true } @@ -190,7 +200,13 @@ func (o HyperflexReSyncClusterMoIds) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.AccountMoId) { toSerialize["AccountMoId"] = o.AccountMoId @@ -215,6 +231,13 @@ func (o *HyperflexReSyncClusterMoIds) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -224,11 +247,23 @@ func (o *HyperflexReSyncClusterMoIds) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type HyperflexReSyncClusterMoIdsWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_hyperflex_reduce_re_sync.go b/model_hyperflex_reduce_re_sync.go index 47426796af..3855484b88 100644 --- a/model_hyperflex_reduce_re_sync.go +++ b/model_hyperflex_reduce_re_sync.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -85,6 +85,11 @@ func (o *HyperflexReduceReSync) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "hyperflex.ReduceReSync" of the ClassId field. +func (o *HyperflexReduceReSync) GetDefaultClassId() interface{} { + return "hyperflex.ReduceReSync" +} + // GetObjectType returns the ObjectType field value func (o *HyperflexReduceReSync) GetObjectType() string { if o == nil { @@ -109,6 +114,11 @@ func (o *HyperflexReduceReSync) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "hyperflex.ReduceReSync" of the ObjectType field. +func (o *HyperflexReduceReSync) GetDefaultObjectType() interface{} { + return "hyperflex.ReduceReSync" +} + // GetCompletionStatus returns the CompletionStatus field value if set, zero value otherwise. func (o *HyperflexReduceReSync) GetCompletionStatus() bool { if o == nil || IsNil(o.CompletionStatus) { @@ -234,7 +244,13 @@ func (o HyperflexReduceReSync) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.CompletionStatus) { toSerialize["CompletionStatus"] = o.CompletionStatus @@ -262,6 +278,13 @@ func (o *HyperflexReduceReSync) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -271,11 +294,23 @@ func (o *HyperflexReduceReSync) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type HyperflexReduceReSyncWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_hyperflex_reduce_re_sync_list.go b/model_hyperflex_reduce_re_sync_list.go index 2692bfd0fb..2e72feee41 100644 --- a/model_hyperflex_reduce_re_sync_list.go +++ b/model_hyperflex_reduce_re_sync_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *HyperflexReduceReSyncList) GetResultsOk() ([]HyperflexReduceReSync, boo // HasResults returns a boolean if a field has been set. func (o *HyperflexReduceReSyncList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *HyperflexReduceReSyncList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *HyperflexReduceReSyncList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type HyperflexReduceReSyncListWithoutEmbeddedStruct struct { // The total number of 'hyperflex.ReduceReSync' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_hyperflex_reduce_re_sync_response.go b/model_hyperflex_reduce_re_sync_response.go index a90c94f55f..e6a1aba96f 100644 --- a/model_hyperflex_reduce_re_sync_response.go +++ b/model_hyperflex_reduce_re_sync_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_hyperflex_replication_cluster_reference_to_schedule.go b/model_hyperflex_replication_cluster_reference_to_schedule.go index 44874a48a2..6612896480 100644 --- a/model_hyperflex_replication_cluster_reference_to_schedule.go +++ b/model_hyperflex_replication_cluster_reference_to_schedule.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -82,6 +82,11 @@ func (o *HyperflexReplicationClusterReferenceToSchedule) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "hyperflex.ReplicationClusterReferenceToSchedule" of the ClassId field. +func (o *HyperflexReplicationClusterReferenceToSchedule) GetDefaultClassId() interface{} { + return "hyperflex.ReplicationClusterReferenceToSchedule" +} + // GetObjectType returns the ObjectType field value func (o *HyperflexReplicationClusterReferenceToSchedule) GetObjectType() string { if o == nil { @@ -106,6 +111,11 @@ func (o *HyperflexReplicationClusterReferenceToSchedule) SetObjectType(v string) o.ObjectType = v } +// GetDefaultObjectType returns the default value "hyperflex.ReplicationClusterReferenceToSchedule" of the ObjectType field. +func (o *HyperflexReplicationClusterReferenceToSchedule) GetDefaultObjectType() interface{} { + return "hyperflex.ReplicationClusterReferenceToSchedule" +} + // GetSchedule returns the Schedule field value if set, zero value otherwise (both if not set or set to explicit null). func (o *HyperflexReplicationClusterReferenceToSchedule) GetSchedule() HyperflexReplicationSchedule { if o == nil || IsNil(o.Schedule.Get()) { @@ -210,7 +220,13 @@ func (o HyperflexReplicationClusterReferenceToSchedule) ToMap() (map[string]inte if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.Schedule.IsSet() { toSerialize["Schedule"] = o.Schedule.Get() @@ -235,6 +251,13 @@ func (o *HyperflexReplicationClusterReferenceToSchedule) UnmarshalJSON(data []by "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -244,11 +267,23 @@ func (o *HyperflexReplicationClusterReferenceToSchedule) UnmarshalJSON(data []by } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type HyperflexReplicationClusterReferenceToScheduleWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_hyperflex_replication_peer_info.go b/model_hyperflex_replication_peer_info.go index 9a099e28a4..15235c46b9 100644 --- a/model_hyperflex_replication_peer_info.go +++ b/model_hyperflex_replication_peer_info.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -93,6 +93,11 @@ func (o *HyperflexReplicationPeerInfo) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "hyperflex.ReplicationPeerInfo" of the ClassId field. +func (o *HyperflexReplicationPeerInfo) GetDefaultClassId() interface{} { + return "hyperflex.ReplicationPeerInfo" +} + // GetObjectType returns the ObjectType field value func (o *HyperflexReplicationPeerInfo) GetObjectType() string { if o == nil { @@ -117,6 +122,11 @@ func (o *HyperflexReplicationPeerInfo) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "hyperflex.ReplicationPeerInfo" of the ObjectType field. +func (o *HyperflexReplicationPeerInfo) GetDefaultObjectType() interface{} { + return "hyperflex.ReplicationPeerInfo" +} + // GetDatastores returns the Datastores field value if set, zero value otherwise (both if not set or set to explicit null). func (o *HyperflexReplicationPeerInfo) GetDatastores() []HyperflexReplicationPlatDatastorePair { if o == nil { @@ -138,7 +148,7 @@ func (o *HyperflexReplicationPeerInfo) GetDatastoresOk() ([]HyperflexReplication // HasDatastores returns a boolean if a field has been set. func (o *HyperflexReplicationPeerInfo) HasDatastores() bool { - if o != nil && IsNil(o.Datastores) { + if o != nil && !IsNil(o.Datastores) { return true } @@ -278,7 +288,7 @@ func (o *HyperflexReplicationPeerInfo) GetPortsOk() ([]HyperflexPortTypeToPortNu // HasPorts returns a boolean if a field has been set. func (o *HyperflexReplicationPeerInfo) HasPorts() bool { - if o != nil && IsNil(o.Ports) { + if o != nil && !IsNil(o.Ports) { return true } @@ -404,7 +414,13 @@ func (o HyperflexReplicationPeerInfo) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.Datastores != nil { toSerialize["Datastores"] = o.Datastores @@ -447,6 +463,13 @@ func (o *HyperflexReplicationPeerInfo) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -456,11 +479,23 @@ func (o *HyperflexReplicationPeerInfo) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type HyperflexReplicationPeerInfoWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_hyperflex_replication_plat_datastore.go b/model_hyperflex_replication_plat_datastore.go index 53e6e8da5a..18e674f881 100644 --- a/model_hyperflex_replication_plat_datastore.go +++ b/model_hyperflex_replication_plat_datastore.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -82,6 +82,11 @@ func (o *HyperflexReplicationPlatDatastore) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "hyperflex.ReplicationPlatDatastore" of the ClassId field. +func (o *HyperflexReplicationPlatDatastore) GetDefaultClassId() interface{} { + return "hyperflex.ReplicationPlatDatastore" +} + // GetObjectType returns the ObjectType field value func (o *HyperflexReplicationPlatDatastore) GetObjectType() string { if o == nil { @@ -106,6 +111,11 @@ func (o *HyperflexReplicationPlatDatastore) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "hyperflex.ReplicationPlatDatastore" of the ObjectType field. +func (o *HyperflexReplicationPlatDatastore) GetDefaultObjectType() interface{} { + return "hyperflex.ReplicationPlatDatastore" +} + // GetClusterEr returns the ClusterEr field value if set, zero value otherwise (both if not set or set to explicit null). func (o *HyperflexReplicationPlatDatastore) GetClusterEr() HyperflexEntityReference { if o == nil || IsNil(o.ClusterEr.Get()) { @@ -210,7 +220,13 @@ func (o HyperflexReplicationPlatDatastore) ToMap() (map[string]interface{}, erro if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.ClusterEr.IsSet() { toSerialize["ClusterEr"] = o.ClusterEr.Get() @@ -235,6 +251,13 @@ func (o *HyperflexReplicationPlatDatastore) UnmarshalJSON(data []byte) (err erro "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -244,11 +267,23 @@ func (o *HyperflexReplicationPlatDatastore) UnmarshalJSON(data []byte) (err erro } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type HyperflexReplicationPlatDatastoreWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_hyperflex_replication_plat_datastore_pair.go b/model_hyperflex_replication_plat_datastore_pair.go index 6f5134d1d6..99203fd1de 100644 --- a/model_hyperflex_replication_plat_datastore_pair.go +++ b/model_hyperflex_replication_plat_datastore_pair.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -91,6 +91,11 @@ func (o *HyperflexReplicationPlatDatastorePair) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "hyperflex.ReplicationPlatDatastorePair" of the ClassId field. +func (o *HyperflexReplicationPlatDatastorePair) GetDefaultClassId() interface{} { + return "hyperflex.ReplicationPlatDatastorePair" +} + // GetObjectType returns the ObjectType field value func (o *HyperflexReplicationPlatDatastorePair) GetObjectType() string { if o == nil { @@ -115,6 +120,11 @@ func (o *HyperflexReplicationPlatDatastorePair) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "hyperflex.ReplicationPlatDatastorePair" of the ObjectType field. +func (o *HyperflexReplicationPlatDatastorePair) GetDefaultObjectType() interface{} { + return "hyperflex.ReplicationPlatDatastorePair" +} + // GetAds returns the Ads field value if set, zero value otherwise (both if not set or set to explicit null). func (o *HyperflexReplicationPlatDatastorePair) GetAds() HyperflexReplicationPlatDatastore { if o == nil || IsNil(o.Ads.Get()) { @@ -390,7 +400,13 @@ func (o HyperflexReplicationPlatDatastorePair) ToMap() (map[string]interface{}, if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.Ads.IsSet() { toSerialize["Ads"] = o.Ads.Get() @@ -430,6 +446,13 @@ func (o *HyperflexReplicationPlatDatastorePair) UnmarshalJSON(data []byte) (err "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -439,11 +462,23 @@ func (o *HyperflexReplicationPlatDatastorePair) UnmarshalJSON(data []byte) (err } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type HyperflexReplicationPlatDatastorePairWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_hyperflex_replication_schedule.go b/model_hyperflex_replication_schedule.go index ecdf867a60..2428189400 100644 --- a/model_hyperflex_replication_schedule.go +++ b/model_hyperflex_replication_schedule.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -86,6 +86,11 @@ func (o *HyperflexReplicationSchedule) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "hyperflex.ReplicationSchedule" of the ClassId field. +func (o *HyperflexReplicationSchedule) GetDefaultClassId() interface{} { + return "hyperflex.ReplicationSchedule" +} + // GetObjectType returns the ObjectType field value func (o *HyperflexReplicationSchedule) GetObjectType() string { if o == nil { @@ -110,6 +115,11 @@ func (o *HyperflexReplicationSchedule) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "hyperflex.ReplicationSchedule" of the ObjectType field. +func (o *HyperflexReplicationSchedule) GetDefaultObjectType() interface{} { + return "hyperflex.ReplicationSchedule" +} + // GetBackupInterval returns the BackupInterval field value if set, zero value otherwise. func (o *HyperflexReplicationSchedule) GetBackupInterval() int64 { if o == nil || IsNil(o.BackupInterval) { @@ -160,7 +170,13 @@ func (o HyperflexReplicationSchedule) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.BackupInterval) { toSerialize["BackupInterval"] = o.BackupInterval @@ -182,6 +198,13 @@ func (o *HyperflexReplicationSchedule) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -191,11 +214,23 @@ func (o *HyperflexReplicationSchedule) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type HyperflexReplicationScheduleWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_hyperflex_replication_status.go b/model_hyperflex_replication_status.go index 70a5f4e33c..951dc11807 100644 --- a/model_hyperflex_replication_status.go +++ b/model_hyperflex_replication_status.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -93,6 +93,11 @@ func (o *HyperflexReplicationStatus) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "hyperflex.ReplicationStatus" of the ClassId field. +func (o *HyperflexReplicationStatus) GetDefaultClassId() interface{} { + return "hyperflex.ReplicationStatus" +} + // GetObjectType returns the ObjectType field value func (o *HyperflexReplicationStatus) GetObjectType() string { if o == nil { @@ -117,6 +122,11 @@ func (o *HyperflexReplicationStatus) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "hyperflex.ReplicationStatus" of the ObjectType field. +func (o *HyperflexReplicationStatus) GetDefaultObjectType() interface{} { + return "hyperflex.ReplicationStatus" +} + // GetBytesReplicated returns the BytesReplicated field value if set, zero value otherwise. func (o *HyperflexReplicationStatus) GetBytesReplicated() int64 { if o == nil || IsNil(o.BytesReplicated) { @@ -424,7 +434,13 @@ func (o HyperflexReplicationStatus) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.BytesReplicated) { toSerialize["BytesReplicated"] = o.BytesReplicated @@ -467,6 +483,13 @@ func (o *HyperflexReplicationStatus) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -476,11 +499,23 @@ func (o *HyperflexReplicationStatus) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type HyperflexReplicationStatusWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_hyperflex_rpo_status.go b/model_hyperflex_rpo_status.go index 2c7f0ef1d2..331f6eb72a 100644 --- a/model_hyperflex_rpo_status.go +++ b/model_hyperflex_rpo_status.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -86,6 +86,11 @@ func (o *HyperflexRpoStatus) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "hyperflex.RpoStatus" of the ClassId field. +func (o *HyperflexRpoStatus) GetDefaultClassId() interface{} { + return "hyperflex.RpoStatus" +} + // GetObjectType returns the ObjectType field value func (o *HyperflexRpoStatus) GetObjectType() string { if o == nil { @@ -110,6 +115,11 @@ func (o *HyperflexRpoStatus) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "hyperflex.RpoStatus" of the ObjectType field. +func (o *HyperflexRpoStatus) GetDefaultObjectType() interface{} { + return "hyperflex.RpoStatus" +} + // GetActual returns the Actual field value if set, zero value otherwise. func (o *HyperflexRpoStatus) GetActual() int64 { if o == nil || IsNil(o.Actual) { @@ -224,7 +234,13 @@ func (o HyperflexRpoStatus) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Actual) { toSerialize["Actual"] = o.Actual @@ -252,6 +268,13 @@ func (o *HyperflexRpoStatus) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -261,11 +284,23 @@ func (o *HyperflexRpoStatus) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type HyperflexRpoStatusWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_hyperflex_server_firmware_version.go b/model_hyperflex_server_firmware_version.go index 6901a03abe..6679593cff 100644 --- a/model_hyperflex_server_firmware_version.go +++ b/model_hyperflex_server_firmware_version.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -83,6 +83,11 @@ func (o *HyperflexServerFirmwareVersion) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "hyperflex.ServerFirmwareVersion" of the ClassId field. +func (o *HyperflexServerFirmwareVersion) GetDefaultClassId() interface{} { + return "hyperflex.ServerFirmwareVersion" +} + // GetObjectType returns the ObjectType field value func (o *HyperflexServerFirmwareVersion) GetObjectType() string { if o == nil { @@ -107,6 +112,11 @@ func (o *HyperflexServerFirmwareVersion) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "hyperflex.ServerFirmwareVersion" of the ObjectType field. +func (o *HyperflexServerFirmwareVersion) GetDefaultObjectType() interface{} { + return "hyperflex.ServerFirmwareVersion" +} + // GetAppCatalog returns the AppCatalog field value if set, zero value otherwise (both if not set or set to explicit null). func (o *HyperflexServerFirmwareVersion) GetAppCatalog() HyperflexAppCatalogRelationship { if o == nil || IsNil(o.AppCatalog.Get()) { @@ -171,7 +181,7 @@ func (o *HyperflexServerFirmwareVersion) GetServerFirmwareVersionEntriesOk() ([] // HasServerFirmwareVersionEntries returns a boolean if a field has been set. func (o *HyperflexServerFirmwareVersion) HasServerFirmwareVersionEntries() bool { - if o != nil && IsNil(o.ServerFirmwareVersionEntries) { + if o != nil && !IsNil(o.ServerFirmwareVersionEntries) { return true } @@ -201,7 +211,13 @@ func (o HyperflexServerFirmwareVersion) ToMap() (map[string]interface{}, error) if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.AppCatalog.IsSet() { toSerialize["AppCatalog"] = o.AppCatalog.Get() @@ -226,6 +242,13 @@ func (o *HyperflexServerFirmwareVersion) UnmarshalJSON(data []byte) (err error) "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -235,11 +258,23 @@ func (o *HyperflexServerFirmwareVersion) UnmarshalJSON(data []byte) (err error) } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type HyperflexServerFirmwareVersionWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_hyperflex_server_firmware_version_entry.go b/model_hyperflex_server_firmware_version_entry.go index 59bc23b18d..4d98b09394 100644 --- a/model_hyperflex_server_firmware_version_entry.go +++ b/model_hyperflex_server_firmware_version_entry.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -32,7 +32,7 @@ type HyperflexServerFirmwareVersionEntry struct { // The server platform type that is applicable for the server firmware bundle version. * `M5` - M5 generation of UCS server. * `M3` - M3 generation of UCS server. * `M4` - M4 generation of UCS server. * `M6` - M6 generation of UCS server. ServerPlatform *string `json:"ServerPlatform,omitempty"` // The server firmware bundle version. - Version *string `json:"Version,omitempty"` + Version *string `json:"Version,omitempty" validate:"regexp=(^3\\\\.[1-9]\\\\([1-9][a-z]\\\\)$|^[4-9]\\\\.[0-9]\\\\([1-9][a-z]\\\\)$)"` ServerFirmwareVersion NullableHyperflexServerFirmwareVersionRelationship `json:"ServerFirmwareVersion,omitempty"` AdditionalProperties map[string]interface{} } @@ -90,6 +90,11 @@ func (o *HyperflexServerFirmwareVersionEntry) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "hyperflex.ServerFirmwareVersionEntry" of the ClassId field. +func (o *HyperflexServerFirmwareVersionEntry) GetDefaultClassId() interface{} { + return "hyperflex.ServerFirmwareVersionEntry" +} + // GetObjectType returns the ObjectType field value func (o *HyperflexServerFirmwareVersionEntry) GetObjectType() string { if o == nil { @@ -114,6 +119,11 @@ func (o *HyperflexServerFirmwareVersionEntry) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "hyperflex.ServerFirmwareVersionEntry" of the ObjectType field. +func (o *HyperflexServerFirmwareVersionEntry) GetDefaultObjectType() interface{} { + return "hyperflex.ServerFirmwareVersionEntry" +} + // GetConstraint returns the Constraint field value if set, zero value otherwise (both if not set or set to explicit null). func (o *HyperflexServerFirmwareVersionEntry) GetConstraint() HyperflexAppSettingConstraint { if o == nil || IsNil(o.Constraint.Get()) { @@ -282,7 +292,13 @@ func (o HyperflexServerFirmwareVersionEntry) ToMap() (map[string]interface{}, er if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.Constraint.IsSet() { toSerialize["Constraint"] = o.Constraint.Get() @@ -313,6 +329,13 @@ func (o *HyperflexServerFirmwareVersionEntry) UnmarshalJSON(data []byte) (err er "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -322,11 +345,23 @@ func (o *HyperflexServerFirmwareVersionEntry) UnmarshalJSON(data []byte) (err er } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type HyperflexServerFirmwareVersionEntryWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` @@ -336,7 +371,7 @@ func (o *HyperflexServerFirmwareVersionEntry) UnmarshalJSON(data []byte) (err er // The server platform type that is applicable for the server firmware bundle version. * `M5` - M5 generation of UCS server. * `M3` - M3 generation of UCS server. * `M4` - M4 generation of UCS server. * `M6` - M6 generation of UCS server. ServerPlatform *string `json:"ServerPlatform,omitempty"` // The server firmware bundle version. - Version *string `json:"Version,omitempty"` + Version *string `json:"Version,omitempty" validate:"regexp=(^3\\\\.[1-9]\\\\([1-9][a-z]\\\\)$|^[4-9]\\\\.[0-9]\\\\([1-9][a-z]\\\\)$)"` ServerFirmwareVersion NullableHyperflexServerFirmwareVersionRelationship `json:"ServerFirmwareVersion,omitempty"` } diff --git a/model_hyperflex_server_firmware_version_entry_list.go b/model_hyperflex_server_firmware_version_entry_list.go index 937156953a..e59872344b 100644 --- a/model_hyperflex_server_firmware_version_entry_list.go +++ b/model_hyperflex_server_firmware_version_entry_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *HyperflexServerFirmwareVersionEntryList) GetResultsOk() ([]HyperflexSer // HasResults returns a boolean if a field has been set. func (o *HyperflexServerFirmwareVersionEntryList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *HyperflexServerFirmwareVersionEntryList) UnmarshalJSON(data []byte) (er "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *HyperflexServerFirmwareVersionEntryList) UnmarshalJSON(data []byte) (er } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type HyperflexServerFirmwareVersionEntryListWithoutEmbeddedStruct struct { // The total number of 'hyperflex.ServerFirmwareVersionEntry' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_hyperflex_server_firmware_version_entry_relationship.go b/model_hyperflex_server_firmware_version_entry_relationship.go index 186e8df813..b7cdb365e9 100644 --- a/model_hyperflex_server_firmware_version_entry_relationship.go +++ b/model_hyperflex_server_firmware_version_entry_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_hyperflex_server_firmware_version_entry_response.go b/model_hyperflex_server_firmware_version_entry_response.go index 803e308ca6..9ccaa3b6b1 100644 --- a/model_hyperflex_server_firmware_version_entry_response.go +++ b/model_hyperflex_server_firmware_version_entry_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_hyperflex_server_firmware_version_info.go b/model_hyperflex_server_firmware_version_info.go index 3273e2dda0..69739e5531 100644 --- a/model_hyperflex_server_firmware_version_info.go +++ b/model_hyperflex_server_firmware_version_info.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -31,7 +31,7 @@ type HyperflexServerFirmwareVersionInfo struct { // The platform type for UCS server. * `M5` - M5 generation of UCS server. * `M3` - M3 generation of UCS server. * `M4` - M4 generation of UCS server. * `M6` - M6 generation of UCS server. ServerPlatform *string `json:"ServerPlatform,omitempty"` // The server firmware bundle version. - Version *string `json:"Version,omitempty"` + Version *string `json:"Version,omitempty" validate:"regexp=(^3\\\\.[1-9]\\\\([1-9][a-z]\\\\)$|^[4-9]\\\\.[0-9]\\\\([1-9][a-z]\\\\)$|^[4-9]\\\\.[0-9]\\\\([0-9](\\\\.[0-9]+|[a-z]).*\\\\)$)"` AdditionalProperties map[string]interface{} } @@ -88,6 +88,11 @@ func (o *HyperflexServerFirmwareVersionInfo) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "hyperflex.ServerFirmwareVersionInfo" of the ClassId field. +func (o *HyperflexServerFirmwareVersionInfo) GetDefaultClassId() interface{} { + return "hyperflex.ServerFirmwareVersionInfo" +} + // GetObjectType returns the ObjectType field value func (o *HyperflexServerFirmwareVersionInfo) GetObjectType() string { if o == nil { @@ -112,6 +117,11 @@ func (o *HyperflexServerFirmwareVersionInfo) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "hyperflex.ServerFirmwareVersionInfo" of the ObjectType field. +func (o *HyperflexServerFirmwareVersionInfo) GetDefaultObjectType() interface{} { + return "hyperflex.ServerFirmwareVersionInfo" +} + // GetServerPlatform returns the ServerPlatform field value if set, zero value otherwise. func (o *HyperflexServerFirmwareVersionInfo) GetServerPlatform() string { if o == nil || IsNil(o.ServerPlatform) { @@ -194,7 +204,13 @@ func (o HyperflexServerFirmwareVersionInfo) ToMap() (map[string]interface{}, err if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.ServerPlatform) { toSerialize["ServerPlatform"] = o.ServerPlatform @@ -219,6 +235,13 @@ func (o *HyperflexServerFirmwareVersionInfo) UnmarshalJSON(data []byte) (err err "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -228,11 +251,23 @@ func (o *HyperflexServerFirmwareVersionInfo) UnmarshalJSON(data []byte) (err err } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type HyperflexServerFirmwareVersionInfoWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` @@ -241,7 +276,7 @@ func (o *HyperflexServerFirmwareVersionInfo) UnmarshalJSON(data []byte) (err err // The platform type for UCS server. * `M5` - M5 generation of UCS server. * `M3` - M3 generation of UCS server. * `M4` - M4 generation of UCS server. * `M6` - M6 generation of UCS server. ServerPlatform *string `json:"ServerPlatform,omitempty"` // The server firmware bundle version. - Version *string `json:"Version,omitempty"` + Version *string `json:"Version,omitempty" validate:"regexp=(^3\\\\.[1-9]\\\\([1-9][a-z]\\\\)$|^[4-9]\\\\.[0-9]\\\\([1-9][a-z]\\\\)$|^[4-9]\\\\.[0-9]\\\\([0-9](\\\\.[0-9]+|[a-z]).*\\\\)$)"` } varHyperflexServerFirmwareVersionInfoWithoutEmbeddedStruct := HyperflexServerFirmwareVersionInfoWithoutEmbeddedStruct{} diff --git a/model_hyperflex_server_firmware_version_list.go b/model_hyperflex_server_firmware_version_list.go index 3f72dc2007..c961ddac29 100644 --- a/model_hyperflex_server_firmware_version_list.go +++ b/model_hyperflex_server_firmware_version_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *HyperflexServerFirmwareVersionList) GetResultsOk() ([]HyperflexServerFi // HasResults returns a boolean if a field has been set. func (o *HyperflexServerFirmwareVersionList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *HyperflexServerFirmwareVersionList) UnmarshalJSON(data []byte) (err err "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *HyperflexServerFirmwareVersionList) UnmarshalJSON(data []byte) (err err } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type HyperflexServerFirmwareVersionListWithoutEmbeddedStruct struct { // The total number of 'hyperflex.ServerFirmwareVersion' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_hyperflex_server_firmware_version_relationship.go b/model_hyperflex_server_firmware_version_relationship.go index e743bae6b7..8182c3de9f 100644 --- a/model_hyperflex_server_firmware_version_relationship.go +++ b/model_hyperflex_server_firmware_version_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_hyperflex_server_firmware_version_response.go b/model_hyperflex_server_firmware_version_response.go index 618838968b..3279740a64 100644 --- a/model_hyperflex_server_firmware_version_response.go +++ b/model_hyperflex_server_firmware_version_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_hyperflex_server_model.go b/model_hyperflex_server_model.go index 3e09372cae..3699085dd3 100644 --- a/model_hyperflex_server_model.go +++ b/model_hyperflex_server_model.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -82,6 +82,11 @@ func (o *HyperflexServerModel) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "hyperflex.ServerModel" of the ClassId field. +func (o *HyperflexServerModel) GetDefaultClassId() interface{} { + return "hyperflex.ServerModel" +} + // GetObjectType returns the ObjectType field value func (o *HyperflexServerModel) GetObjectType() string { if o == nil { @@ -106,6 +111,11 @@ func (o *HyperflexServerModel) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "hyperflex.ServerModel" of the ObjectType field. +func (o *HyperflexServerModel) GetDefaultObjectType() interface{} { + return "hyperflex.ServerModel" +} + // GetServerModelEntries returns the ServerModelEntries field value if set, zero value otherwise (both if not set or set to explicit null). func (o *HyperflexServerModel) GetServerModelEntries() []HyperflexServerModelEntry { if o == nil { @@ -127,7 +137,7 @@ func (o *HyperflexServerModel) GetServerModelEntriesOk() ([]HyperflexServerModel // HasServerModelEntries returns a boolean if a field has been set. func (o *HyperflexServerModel) HasServerModelEntries() bool { - if o != nil && IsNil(o.ServerModelEntries) { + if o != nil && !IsNil(o.ServerModelEntries) { return true } @@ -200,7 +210,13 @@ func (o HyperflexServerModel) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.ServerModelEntries != nil { toSerialize["ServerModelEntries"] = o.ServerModelEntries @@ -225,6 +241,13 @@ func (o *HyperflexServerModel) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -234,11 +257,23 @@ func (o *HyperflexServerModel) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type HyperflexServerModelWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_hyperflex_server_model_entry.go b/model_hyperflex_server_model_entry.go index cc4a12feab..8fbcb2cab4 100644 --- a/model_hyperflex_server_model_entry.go +++ b/model_hyperflex_server_model_entry.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -81,6 +81,11 @@ func (o *HyperflexServerModelEntry) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "hyperflex.ServerModelEntry" of the ClassId field. +func (o *HyperflexServerModelEntry) GetDefaultClassId() interface{} { + return "hyperflex.ServerModelEntry" +} + // GetObjectType returns the ObjectType field value func (o *HyperflexServerModelEntry) GetObjectType() string { if o == nil { @@ -105,6 +110,11 @@ func (o *HyperflexServerModelEntry) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "hyperflex.ServerModelEntry" of the ObjectType field. +func (o *HyperflexServerModelEntry) GetDefaultObjectType() interface{} { + return "hyperflex.ServerModelEntry" +} + // GetConstraint returns the Constraint field value if set, zero value otherwise (both if not set or set to explicit null). func (o *HyperflexServerModelEntry) GetConstraint() HyperflexAppSettingConstraint { if o == nil || IsNil(o.Constraint.Get()) { @@ -166,7 +176,13 @@ func (o HyperflexServerModelEntry) ToMap() (map[string]interface{}, error) { if errHyperflexAbstractAppSetting != nil { return map[string]interface{}{}, errHyperflexAbstractAppSetting } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.Constraint.IsSet() { toSerialize["Constraint"] = o.Constraint.Get() @@ -188,6 +204,13 @@ func (o *HyperflexServerModelEntry) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -197,11 +220,23 @@ func (o *HyperflexServerModelEntry) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type HyperflexServerModelEntryWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_hyperflex_server_model_list.go b/model_hyperflex_server_model_list.go index e98934db64..d46a40e483 100644 --- a/model_hyperflex_server_model_list.go +++ b/model_hyperflex_server_model_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *HyperflexServerModelList) GetResultsOk() ([]HyperflexServerModel, bool) // HasResults returns a boolean if a field has been set. func (o *HyperflexServerModelList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *HyperflexServerModelList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *HyperflexServerModelList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type HyperflexServerModelListWithoutEmbeddedStruct struct { // The total number of 'hyperflex.ServerModel' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_hyperflex_server_model_relationship.go b/model_hyperflex_server_model_relationship.go index a360e7501b..605ce1ec2d 100644 --- a/model_hyperflex_server_model_relationship.go +++ b/model_hyperflex_server_model_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_hyperflex_server_model_response.go b/model_hyperflex_server_model_response.go index d594c05f62..3326273eb3 100644 --- a/model_hyperflex_server_model_response.go +++ b/model_hyperflex_server_model_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_hyperflex_service_auth_token.go b/model_hyperflex_service_auth_token.go index 937403d411..db7b61fa27 100644 --- a/model_hyperflex_service_auth_token.go +++ b/model_hyperflex_service_auth_token.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -91,6 +91,11 @@ func (o *HyperflexServiceAuthToken) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "hyperflex.ServiceAuthToken" of the ClassId field. +func (o *HyperflexServiceAuthToken) GetDefaultClassId() interface{} { + return "hyperflex.ServiceAuthToken" +} + // GetObjectType returns the ObjectType field value func (o *HyperflexServiceAuthToken) GetObjectType() string { if o == nil { @@ -115,6 +120,11 @@ func (o *HyperflexServiceAuthToken) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "hyperflex.ServiceAuthToken" of the ObjectType field. +func (o *HyperflexServiceAuthToken) GetDefaultObjectType() interface{} { + return "hyperflex.ServiceAuthToken" +} + // GetClientId returns the ClientId field value if set, zero value otherwise. func (o *HyperflexServiceAuthToken) GetClientId() string { if o == nil || IsNil(o.ClientId) { @@ -390,7 +400,13 @@ func (o HyperflexServiceAuthToken) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.ClientId) { toSerialize["ClientId"] = o.ClientId @@ -430,6 +446,13 @@ func (o *HyperflexServiceAuthToken) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -439,11 +462,23 @@ func (o *HyperflexServiceAuthToken) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type HyperflexServiceAuthTokenWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_hyperflex_service_auth_token_list.go b/model_hyperflex_service_auth_token_list.go index b854a1f0ee..8e66adcbb3 100644 --- a/model_hyperflex_service_auth_token_list.go +++ b/model_hyperflex_service_auth_token_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *HyperflexServiceAuthTokenList) GetResultsOk() ([]HyperflexServiceAuthTo // HasResults returns a boolean if a field has been set. func (o *HyperflexServiceAuthTokenList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *HyperflexServiceAuthTokenList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *HyperflexServiceAuthTokenList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type HyperflexServiceAuthTokenListWithoutEmbeddedStruct struct { // The total number of 'hyperflex.ServiceAuthToken' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_hyperflex_service_auth_token_response.go b/model_hyperflex_service_auth_token_response.go index ff9fddae7e..f191a02749 100644 --- a/model_hyperflex_service_auth_token_response.go +++ b/model_hyperflex_service_auth_token_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_hyperflex_site_details.go b/model_hyperflex_site_details.go index c92cb2534b..10a093e44f 100644 --- a/model_hyperflex_site_details.go +++ b/model_hyperflex_site_details.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -86,6 +86,11 @@ func (o *HyperflexSiteDetails) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "hyperflex.SiteDetails" of the ClassId field. +func (o *HyperflexSiteDetails) GetDefaultClassId() interface{} { + return "hyperflex.SiteDetails" +} + // GetObjectType returns the ObjectType field value func (o *HyperflexSiteDetails) GetObjectType() string { if o == nil { @@ -110,6 +115,11 @@ func (o *HyperflexSiteDetails) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "hyperflex.SiteDetails" of the ObjectType field. +func (o *HyperflexSiteDetails) GetDefaultObjectType() interface{} { + return "hyperflex.SiteDetails" +} + // GetName returns the Name field value if set, zero value otherwise. func (o *HyperflexSiteDetails) GetName() string { if o == nil || IsNil(o.Name) { @@ -224,7 +234,13 @@ func (o HyperflexSiteDetails) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Name) { toSerialize["Name"] = o.Name @@ -252,6 +268,13 @@ func (o *HyperflexSiteDetails) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -261,11 +284,23 @@ func (o *HyperflexSiteDetails) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type HyperflexSiteDetailsWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_hyperflex_snapshot_files.go b/model_hyperflex_snapshot_files.go index 31b640ad3e..67430bfc99 100644 --- a/model_hyperflex_snapshot_files.go +++ b/model_hyperflex_snapshot_files.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -82,6 +82,11 @@ func (o *HyperflexSnapshotFiles) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "hyperflex.SnapshotFiles" of the ClassId field. +func (o *HyperflexSnapshotFiles) GetDefaultClassId() interface{} { + return "hyperflex.SnapshotFiles" +} + // GetObjectType returns the ObjectType field value func (o *HyperflexSnapshotFiles) GetObjectType() string { if o == nil { @@ -106,6 +111,11 @@ func (o *HyperflexSnapshotFiles) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "hyperflex.SnapshotFiles" of the ObjectType field. +func (o *HyperflexSnapshotFiles) GetDefaultObjectType() interface{} { + return "hyperflex.SnapshotFiles" +} + // GetNameTrackedFiles returns the NameTrackedFiles field value if set, zero value otherwise (both if not set or set to explicit null). func (o *HyperflexSnapshotFiles) GetNameTrackedFiles() []HyperflexFilePath { if o == nil { @@ -127,7 +137,7 @@ func (o *HyperflexSnapshotFiles) GetNameTrackedFilesOk() ([]HyperflexFilePath, b // HasNameTrackedFiles returns a boolean if a field has been set. func (o *HyperflexSnapshotFiles) HasNameTrackedFiles() bool { - if o != nil && IsNil(o.NameTrackedFiles) { + if o != nil && !IsNil(o.NameTrackedFiles) { return true } @@ -160,7 +170,7 @@ func (o *HyperflexSnapshotFiles) GetUuidTrackedDisksMapOk() ([]HyperflexMapUuidT // HasUuidTrackedDisksMap returns a boolean if a field has been set. func (o *HyperflexSnapshotFiles) HasUuidTrackedDisksMap() bool { - if o != nil && IsNil(o.UuidTrackedDisksMap) { + if o != nil && !IsNil(o.UuidTrackedDisksMap) { return true } @@ -190,7 +200,13 @@ func (o HyperflexSnapshotFiles) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.NameTrackedFiles != nil { toSerialize["NameTrackedFiles"] = o.NameTrackedFiles @@ -215,6 +231,13 @@ func (o *HyperflexSnapshotFiles) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -224,11 +247,23 @@ func (o *HyperflexSnapshotFiles) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type HyperflexSnapshotFilesWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_hyperflex_snapshot_info_brief.go b/model_hyperflex_snapshot_info_brief.go index 0ea8d35c64..be64718c78 100644 --- a/model_hyperflex_snapshot_info_brief.go +++ b/model_hyperflex_snapshot_info_brief.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -85,6 +85,11 @@ func (o *HyperflexSnapshotInfoBrief) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "hyperflex.SnapshotInfoBrief" of the ClassId field. +func (o *HyperflexSnapshotInfoBrief) GetDefaultClassId() interface{} { + return "hyperflex.SnapshotInfoBrief" +} + // GetObjectType returns the ObjectType field value func (o *HyperflexSnapshotInfoBrief) GetObjectType() string { if o == nil { @@ -109,6 +114,11 @@ func (o *HyperflexSnapshotInfoBrief) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "hyperflex.SnapshotInfoBrief" of the ObjectType field. +func (o *HyperflexSnapshotInfoBrief) GetDefaultObjectType() interface{} { + return "hyperflex.SnapshotInfoBrief" +} + // GetReplicationStatus returns the ReplicationStatus field value if set, zero value otherwise (both if not set or set to explicit null). func (o *HyperflexSnapshotInfoBrief) GetReplicationStatus() HyperflexReplicationStatus { if o == nil || IsNil(o.ReplicationStatus.Get()) { @@ -288,7 +298,13 @@ func (o HyperflexSnapshotInfoBrief) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.ReplicationStatus.IsSet() { toSerialize["ReplicationStatus"] = o.ReplicationStatus.Get() @@ -319,6 +335,13 @@ func (o *HyperflexSnapshotInfoBrief) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -328,11 +351,23 @@ func (o *HyperflexSnapshotInfoBrief) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type HyperflexSnapshotInfoBriefWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_hyperflex_snapshot_point.go b/model_hyperflex_snapshot_point.go index 83728542a7..479b80e5be 100644 --- a/model_hyperflex_snapshot_point.go +++ b/model_hyperflex_snapshot_point.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -86,6 +86,11 @@ func (o *HyperflexSnapshotPoint) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "hyperflex.SnapshotPoint" of the ClassId field. +func (o *HyperflexSnapshotPoint) GetDefaultClassId() interface{} { + return "hyperflex.SnapshotPoint" +} + // GetObjectType returns the ObjectType field value func (o *HyperflexSnapshotPoint) GetObjectType() string { if o == nil { @@ -110,6 +115,11 @@ func (o *HyperflexSnapshotPoint) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "hyperflex.SnapshotPoint" of the ObjectType field. +func (o *HyperflexSnapshotPoint) GetDefaultObjectType() interface{} { + return "hyperflex.SnapshotPoint" +} + // GetClusterEntityReference returns the ClusterEntityReference field value if set, zero value otherwise (both if not set or set to explicit null). func (o *HyperflexSnapshotPoint) GetClusterEntityReference() HyperflexEntityReference { if o == nil || IsNil(o.ClusterEntityReference.Get()) { @@ -386,7 +396,13 @@ func (o HyperflexSnapshotPoint) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.ClusterEntityReference.IsSet() { toSerialize["ClusterEntityReference"] = o.ClusterEntityReference.Get() @@ -423,6 +439,13 @@ func (o *HyperflexSnapshotPoint) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -432,11 +455,23 @@ func (o *HyperflexSnapshotPoint) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type HyperflexSnapshotPointWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_hyperflex_snapshot_status.go b/model_hyperflex_snapshot_status.go index c3d35cf777..35c1bc3a8d 100644 --- a/model_hyperflex_snapshot_status.go +++ b/model_hyperflex_snapshot_status.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -91,6 +91,11 @@ func (o *HyperflexSnapshotStatus) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "hyperflex.SnapshotStatus" of the ClassId field. +func (o *HyperflexSnapshotStatus) GetDefaultClassId() interface{} { + return "hyperflex.SnapshotStatus" +} + // GetObjectType returns the ObjectType field value func (o *HyperflexSnapshotStatus) GetObjectType() string { if o == nil { @@ -115,6 +120,11 @@ func (o *HyperflexSnapshotStatus) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "hyperflex.SnapshotStatus" of the ObjectType field. +func (o *HyperflexSnapshotStatus) GetDefaultObjectType() interface{} { + return "hyperflex.SnapshotStatus" +} + // GetDescription returns the Description field value if set, zero value otherwise. func (o *HyperflexSnapshotStatus) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -336,7 +346,13 @@ func (o HyperflexSnapshotStatus) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Description) { toSerialize["Description"] = o.Description @@ -373,6 +389,13 @@ func (o *HyperflexSnapshotStatus) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -382,11 +405,23 @@ func (o *HyperflexSnapshotStatus) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type HyperflexSnapshotStatusWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_hyperflex_software_distribution_component.go b/model_hyperflex_software_distribution_component.go index 01bd1f4d13..c7bd2eac68 100644 --- a/model_hyperflex_software_distribution_component.go +++ b/model_hyperflex_software_distribution_component.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -92,6 +92,11 @@ func (o *HyperflexSoftwareDistributionComponent) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "hyperflex.SoftwareDistributionComponent" of the ClassId field. +func (o *HyperflexSoftwareDistributionComponent) GetDefaultClassId() interface{} { + return "hyperflex.SoftwareDistributionComponent" +} + // GetObjectType returns the ObjectType field value func (o *HyperflexSoftwareDistributionComponent) GetObjectType() string { if o == nil { @@ -116,6 +121,11 @@ func (o *HyperflexSoftwareDistributionComponent) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "hyperflex.SoftwareDistributionComponent" of the ObjectType field. +func (o *HyperflexSoftwareDistributionComponent) GetDefaultObjectType() interface{} { + return "hyperflex.SoftwareDistributionComponent" +} + // GetBucketName returns the BucketName field value if set, zero value otherwise. func (o *HyperflexSoftwareDistributionComponent) GetBucketName() string { if o == nil || IsNil(o.BucketName) { @@ -265,7 +275,7 @@ func (o *HyperflexSoftwareDistributionComponent) GetFilesToDownloadOk() ([]strin // HasFilesToDownload returns a boolean if a field has been set. func (o *HyperflexSoftwareDistributionComponent) HasFilesToDownload() bool { - if o != nil && IsNil(o.FilesToDownload) { + if o != nil && !IsNil(o.FilesToDownload) { return true } @@ -370,7 +380,13 @@ func (o HyperflexSoftwareDistributionComponent) ToMap() (map[string]interface{}, if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.BucketName) { toSerialize["BucketName"] = o.BucketName @@ -410,6 +426,13 @@ func (o *HyperflexSoftwareDistributionComponent) UnmarshalJSON(data []byte) (err "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -419,11 +442,23 @@ func (o *HyperflexSoftwareDistributionComponent) UnmarshalJSON(data []byte) (err } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type HyperflexSoftwareDistributionComponentWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_hyperflex_software_distribution_component_list.go b/model_hyperflex_software_distribution_component_list.go index 54a3d43878..d4e0f41d5d 100644 --- a/model_hyperflex_software_distribution_component_list.go +++ b/model_hyperflex_software_distribution_component_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *HyperflexSoftwareDistributionComponentList) GetResultsOk() ([]Hyperflex // HasResults returns a boolean if a field has been set. func (o *HyperflexSoftwareDistributionComponentList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *HyperflexSoftwareDistributionComponentList) UnmarshalJSON(data []byte) "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *HyperflexSoftwareDistributionComponentList) UnmarshalJSON(data []byte) } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type HyperflexSoftwareDistributionComponentListWithoutEmbeddedStruct struct { // The total number of 'hyperflex.SoftwareDistributionComponent' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_hyperflex_software_distribution_component_relationship.go b/model_hyperflex_software_distribution_component_relationship.go index d50708243c..3bed863b02 100644 --- a/model_hyperflex_software_distribution_component_relationship.go +++ b/model_hyperflex_software_distribution_component_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_hyperflex_software_distribution_component_response.go b/model_hyperflex_software_distribution_component_response.go index a54a910135..3735b3121d 100644 --- a/model_hyperflex_software_distribution_component_response.go +++ b/model_hyperflex_software_distribution_component_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_hyperflex_software_distribution_entry.go b/model_hyperflex_software_distribution_entry.go index a5091933dc..39bf9a95cc 100644 --- a/model_hyperflex_software_distribution_entry.go +++ b/model_hyperflex_software_distribution_entry.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -85,6 +85,11 @@ func (o *HyperflexSoftwareDistributionEntry) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "hyperflex.SoftwareDistributionEntry" of the ClassId field. +func (o *HyperflexSoftwareDistributionEntry) GetDefaultClassId() interface{} { + return "hyperflex.SoftwareDistributionEntry" +} + // GetObjectType returns the ObjectType field value func (o *HyperflexSoftwareDistributionEntry) GetObjectType() string { if o == nil { @@ -109,6 +114,11 @@ func (o *HyperflexSoftwareDistributionEntry) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "hyperflex.SoftwareDistributionEntry" of the ObjectType field. +func (o *HyperflexSoftwareDistributionEntry) GetDefaultObjectType() interface{} { + return "hyperflex.SoftwareDistributionEntry" +} + // GetDistributionType returns the DistributionType field value if set, zero value otherwise. func (o *HyperflexSoftwareDistributionEntry) GetDistributionType() string { if o == nil || IsNil(o.DistributionType) { @@ -205,7 +215,7 @@ func (o *HyperflexSoftwareDistributionEntry) GetDistributionVersionsOk() ([]Hype // HasDistributionVersions returns a boolean if a field has been set. func (o *HyperflexSoftwareDistributionEntry) HasDistributionVersions() bool { - if o != nil && IsNil(o.DistributionVersions) { + if o != nil && !IsNil(o.DistributionVersions) { return true } @@ -235,7 +245,13 @@ func (o HyperflexSoftwareDistributionEntry) ToMap() (map[string]interface{}, err if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.DistributionType) { toSerialize["DistributionType"] = o.DistributionType @@ -263,6 +279,13 @@ func (o *HyperflexSoftwareDistributionEntry) UnmarshalJSON(data []byte) (err err "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -272,11 +295,23 @@ func (o *HyperflexSoftwareDistributionEntry) UnmarshalJSON(data []byte) (err err } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type HyperflexSoftwareDistributionEntryWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_hyperflex_software_distribution_entry_list.go b/model_hyperflex_software_distribution_entry_list.go index 9c6f4e2530..eb3f489b45 100644 --- a/model_hyperflex_software_distribution_entry_list.go +++ b/model_hyperflex_software_distribution_entry_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *HyperflexSoftwareDistributionEntryList) GetResultsOk() ([]HyperflexSoft // HasResults returns a boolean if a field has been set. func (o *HyperflexSoftwareDistributionEntryList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *HyperflexSoftwareDistributionEntryList) UnmarshalJSON(data []byte) (err "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *HyperflexSoftwareDistributionEntryList) UnmarshalJSON(data []byte) (err } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type HyperflexSoftwareDistributionEntryListWithoutEmbeddedStruct struct { // The total number of 'hyperflex.SoftwareDistributionEntry' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_hyperflex_software_distribution_entry_relationship.go b/model_hyperflex_software_distribution_entry_relationship.go index 69102e7e14..fad63fe76a 100644 --- a/model_hyperflex_software_distribution_entry_relationship.go +++ b/model_hyperflex_software_distribution_entry_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_hyperflex_software_distribution_entry_response.go b/model_hyperflex_software_distribution_entry_response.go index d2fc7971d4..6f89bad7b5 100644 --- a/model_hyperflex_software_distribution_entry_response.go +++ b/model_hyperflex_software_distribution_entry_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_hyperflex_software_distribution_version.go b/model_hyperflex_software_distribution_version.go index 6782491692..c6ce0792f1 100644 --- a/model_hyperflex_software_distribution_version.go +++ b/model_hyperflex_software_distribution_version.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -85,6 +85,11 @@ func (o *HyperflexSoftwareDistributionVersion) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "hyperflex.SoftwareDistributionVersion" of the ClassId field. +func (o *HyperflexSoftwareDistributionVersion) GetDefaultClassId() interface{} { + return "hyperflex.SoftwareDistributionVersion" +} + // GetObjectType returns the ObjectType field value func (o *HyperflexSoftwareDistributionVersion) GetObjectType() string { if o == nil { @@ -109,6 +114,11 @@ func (o *HyperflexSoftwareDistributionVersion) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "hyperflex.SoftwareDistributionVersion" of the ObjectType field. +func (o *HyperflexSoftwareDistributionVersion) GetDefaultObjectType() interface{} { + return "hyperflex.SoftwareDistributionVersion" +} + // GetVersion returns the Version field value if set, zero value otherwise. func (o *HyperflexSoftwareDistributionVersion) GetVersion() string { if o == nil || IsNil(o.Version) { @@ -162,7 +172,7 @@ func (o *HyperflexSoftwareDistributionVersion) GetDistributionComponentsOk() ([] // HasDistributionComponents returns a boolean if a field has been set. func (o *HyperflexSoftwareDistributionVersion) HasDistributionComponents() bool { - if o != nil && IsNil(o.DistributionComponents) { + if o != nil && !IsNil(o.DistributionComponents) { return true } @@ -235,7 +245,13 @@ func (o HyperflexSoftwareDistributionVersion) ToMap() (map[string]interface{}, e if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Version) { toSerialize["Version"] = o.Version @@ -263,6 +279,13 @@ func (o *HyperflexSoftwareDistributionVersion) UnmarshalJSON(data []byte) (err e "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -272,11 +295,23 @@ func (o *HyperflexSoftwareDistributionVersion) UnmarshalJSON(data []byte) (err e } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type HyperflexSoftwareDistributionVersionWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_hyperflex_software_distribution_version_list.go b/model_hyperflex_software_distribution_version_list.go index 4aeba71eb2..320c2083fe 100644 --- a/model_hyperflex_software_distribution_version_list.go +++ b/model_hyperflex_software_distribution_version_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *HyperflexSoftwareDistributionVersionList) GetResultsOk() ([]HyperflexSo // HasResults returns a boolean if a field has been set. func (o *HyperflexSoftwareDistributionVersionList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *HyperflexSoftwareDistributionVersionList) UnmarshalJSON(data []byte) (e "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *HyperflexSoftwareDistributionVersionList) UnmarshalJSON(data []byte) (e } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type HyperflexSoftwareDistributionVersionListWithoutEmbeddedStruct struct { // The total number of 'hyperflex.SoftwareDistributionVersion' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_hyperflex_software_distribution_version_relationship.go b/model_hyperflex_software_distribution_version_relationship.go index 34fa438d3a..a4b852d6af 100644 --- a/model_hyperflex_software_distribution_version_relationship.go +++ b/model_hyperflex_software_distribution_version_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_hyperflex_software_distribution_version_response.go b/model_hyperflex_software_distribution_version_response.go index 129650f28a..7fb9a9fe59 100644 --- a/model_hyperflex_software_distribution_version_response.go +++ b/model_hyperflex_software_distribution_version_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_hyperflex_software_version_policy.go b/model_hyperflex_software_version_policy.go index e03d2035a9..ef9a73dcee 100644 --- a/model_hyperflex_software_version_policy.go +++ b/model_hyperflex_software_version_policy.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -33,7 +33,7 @@ type HyperflexSoftwareVersionPolicy struct { // Desired hypervisor version to apply for all the nodes on the HyperFlex cluster. HypervisorVersion *string `json:"HypervisorVersion,omitempty"` // Desired server firmware version to apply on the HyperFlex Cluster. - ServerFirmwareVersion *string `json:"ServerFirmwareVersion,omitempty"` + ServerFirmwareVersion *string `json:"ServerFirmwareVersion,omitempty" validate:"regexp=^$|(^3\\\\.[0-9]\\\\([1-9][a-z]\\\\)$|^[4-9]\\\\.[1-9]\\\\([1-9][a-z]\\\\)$|^4\\\\.0\\\\([1-3][a-z]\\\\)$|^4\\\\.0\\\\(4[d-z]\\\\)$|4\\\\.0\\\\([5-9][a-z]\\\\)$|^[4-9]\\\\.[0-9]\\\\([0-9](\\\\.[0-9]+|[a-z]).*\\\\)$)"` ServerFirmwareVersions []HyperflexServerFirmwareVersionInfo `json:"ServerFirmwareVersions,omitempty"` UpgradeTypes []string `json:"UpgradeTypes,omitempty"` // An array of relationships to hyperflexClusterProfile resources. @@ -94,6 +94,11 @@ func (o *HyperflexSoftwareVersionPolicy) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "hyperflex.SoftwareVersionPolicy" of the ClassId field. +func (o *HyperflexSoftwareVersionPolicy) GetDefaultClassId() interface{} { + return "hyperflex.SoftwareVersionPolicy" +} + // GetObjectType returns the ObjectType field value func (o *HyperflexSoftwareVersionPolicy) GetObjectType() string { if o == nil { @@ -118,6 +123,11 @@ func (o *HyperflexSoftwareVersionPolicy) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "hyperflex.SoftwareVersionPolicy" of the ObjectType field. +func (o *HyperflexSoftwareVersionPolicy) GetDefaultObjectType() interface{} { + return "hyperflex.SoftwareVersionPolicy" +} + // GetHxdpVersion returns the HxdpVersion field value if set, zero value otherwise. func (o *HyperflexSoftwareVersionPolicy) GetHxdpVersion() string { if o == nil || IsNil(o.HxdpVersion) { @@ -235,7 +245,7 @@ func (o *HyperflexSoftwareVersionPolicy) GetServerFirmwareVersionsOk() ([]Hyperf // HasServerFirmwareVersions returns a boolean if a field has been set. func (o *HyperflexSoftwareVersionPolicy) HasServerFirmwareVersions() bool { - if o != nil && IsNil(o.ServerFirmwareVersions) { + if o != nil && !IsNil(o.ServerFirmwareVersions) { return true } @@ -268,7 +278,7 @@ func (o *HyperflexSoftwareVersionPolicy) GetUpgradeTypesOk() ([]string, bool) { // HasUpgradeTypes returns a boolean if a field has been set. func (o *HyperflexSoftwareVersionPolicy) HasUpgradeTypes() bool { - if o != nil && IsNil(o.UpgradeTypes) { + if o != nil && !IsNil(o.UpgradeTypes) { return true } @@ -301,7 +311,7 @@ func (o *HyperflexSoftwareVersionPolicy) GetClusterProfilesOk() ([]HyperflexClus // HasClusterProfiles returns a boolean if a field has been set. func (o *HyperflexSoftwareVersionPolicy) HasClusterProfiles() bool { - if o != nil && IsNil(o.ClusterProfiles) { + if o != nil && !IsNil(o.ClusterProfiles) { return true } @@ -503,7 +513,13 @@ func (o HyperflexSoftwareVersionPolicy) ToMap() (map[string]interface{}, error) if errPolicyAbstractPolicy != nil { return map[string]interface{}{}, errPolicyAbstractPolicy } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.HxdpVersion) { toSerialize["HxdpVersion"] = o.HxdpVersion @@ -552,6 +568,13 @@ func (o *HyperflexSoftwareVersionPolicy) UnmarshalJSON(data []byte) (err error) "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -561,11 +584,23 @@ func (o *HyperflexSoftwareVersionPolicy) UnmarshalJSON(data []byte) (err error) } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type HyperflexSoftwareVersionPolicyWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` @@ -576,7 +611,7 @@ func (o *HyperflexSoftwareVersionPolicy) UnmarshalJSON(data []byte) (err error) // Desired hypervisor version to apply for all the nodes on the HyperFlex cluster. HypervisorVersion *string `json:"HypervisorVersion,omitempty"` // Desired server firmware version to apply on the HyperFlex Cluster. - ServerFirmwareVersion *string `json:"ServerFirmwareVersion,omitempty"` + ServerFirmwareVersion *string `json:"ServerFirmwareVersion,omitempty" validate:"regexp=^$|(^3\\\\.[0-9]\\\\([1-9][a-z]\\\\)$|^[4-9]\\\\.[1-9]\\\\([1-9][a-z]\\\\)$|^4\\\\.0\\\\([1-3][a-z]\\\\)$|^4\\\\.0\\\\(4[d-z]\\\\)$|4\\\\.0\\\\([5-9][a-z]\\\\)$|^[4-9]\\\\.[0-9]\\\\([0-9](\\\\.[0-9]+|[a-z]).*\\\\)$)"` ServerFirmwareVersions []HyperflexServerFirmwareVersionInfo `json:"ServerFirmwareVersions,omitempty"` UpgradeTypes []string `json:"UpgradeTypes,omitempty"` // An array of relationships to hyperflexClusterProfile resources. diff --git a/model_hyperflex_software_version_policy_list.go b/model_hyperflex_software_version_policy_list.go index 49efcd3001..88823493f9 100644 --- a/model_hyperflex_software_version_policy_list.go +++ b/model_hyperflex_software_version_policy_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *HyperflexSoftwareVersionPolicyList) GetResultsOk() ([]HyperflexSoftware // HasResults returns a boolean if a field has been set. func (o *HyperflexSoftwareVersionPolicyList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *HyperflexSoftwareVersionPolicyList) UnmarshalJSON(data []byte) (err err "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *HyperflexSoftwareVersionPolicyList) UnmarshalJSON(data []byte) (err err } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type HyperflexSoftwareVersionPolicyListWithoutEmbeddedStruct struct { // The total number of 'hyperflex.SoftwareVersionPolicy' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_hyperflex_software_version_policy_relationship.go b/model_hyperflex_software_version_policy_relationship.go index aafc1a3e8e..65dc1e651e 100644 --- a/model_hyperflex_software_version_policy_relationship.go +++ b/model_hyperflex_software_version_policy_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_hyperflex_software_version_policy_response.go b/model_hyperflex_software_version_policy_response.go index d9cc0c2a94..a064e08834 100644 --- a/model_hyperflex_software_version_policy_response.go +++ b/model_hyperflex_software_version_policy_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_hyperflex_st_platform_cluster_healing_info.go b/model_hyperflex_st_platform_cluster_healing_info.go index 055bf6f25f..823cec48f7 100644 --- a/model_hyperflex_st_platform_cluster_healing_info.go +++ b/model_hyperflex_st_platform_cluster_healing_info.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -91,6 +91,11 @@ func (o *HyperflexStPlatformClusterHealingInfo) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "hyperflex.StPlatformClusterHealingInfo" of the ClassId field. +func (o *HyperflexStPlatformClusterHealingInfo) GetDefaultClassId() interface{} { + return "hyperflex.StPlatformClusterHealingInfo" +} + // GetObjectType returns the ObjectType field value func (o *HyperflexStPlatformClusterHealingInfo) GetObjectType() string { if o == nil { @@ -115,6 +120,11 @@ func (o *HyperflexStPlatformClusterHealingInfo) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "hyperflex.StPlatformClusterHealingInfo" of the ObjectType field. +func (o *HyperflexStPlatformClusterHealingInfo) GetDefaultObjectType() interface{} { + return "hyperflex.StPlatformClusterHealingInfo" +} + // GetEstimatedCompletionTimeInSeconds returns the EstimatedCompletionTimeInSeconds field value if set, zero value otherwise. func (o *HyperflexStPlatformClusterHealingInfo) GetEstimatedCompletionTimeInSeconds() int64 { if o == nil || IsNil(o.EstimatedCompletionTimeInSeconds) { @@ -200,7 +210,7 @@ func (o *HyperflexStPlatformClusterHealingInfo) GetMessagesOk() ([]string, bool) // HasMessages returns a boolean if a field has been set. func (o *HyperflexStPlatformClusterHealingInfo) HasMessages() bool { - if o != nil && IsNil(o.Messages) { + if o != nil && !IsNil(o.Messages) { return true } @@ -233,7 +243,7 @@ func (o *HyperflexStPlatformClusterHealingInfo) GetMessagesIteratorOk() (*interf // HasMessagesIterator returns a boolean if a field has been set. func (o *HyperflexStPlatformClusterHealingInfo) HasMessagesIterator() bool { - if o != nil && IsNil(o.MessagesIterator) { + if o != nil && !IsNil(o.MessagesIterator) { return true } @@ -327,7 +337,13 @@ func (o HyperflexStPlatformClusterHealingInfo) ToMap() (map[string]interface{}, if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.EstimatedCompletionTimeInSeconds) { toSerialize["EstimatedCompletionTimeInSeconds"] = o.EstimatedCompletionTimeInSeconds @@ -364,6 +380,13 @@ func (o *HyperflexStPlatformClusterHealingInfo) UnmarshalJSON(data []byte) (err "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -373,11 +396,23 @@ func (o *HyperflexStPlatformClusterHealingInfo) UnmarshalJSON(data []byte) (err } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type HyperflexStPlatformClusterHealingInfoWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_hyperflex_st_platform_cluster_resiliency_info.go b/model_hyperflex_st_platform_cluster_resiliency_info.go index f1295f8e5c..95d956ea06 100644 --- a/model_hyperflex_st_platform_cluster_resiliency_info.go +++ b/model_hyperflex_st_platform_cluster_resiliency_info.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -93,6 +93,11 @@ func (o *HyperflexStPlatformClusterResiliencyInfo) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "hyperflex.StPlatformClusterResiliencyInfo" of the ClassId field. +func (o *HyperflexStPlatformClusterResiliencyInfo) GetDefaultClassId() interface{} { + return "hyperflex.StPlatformClusterResiliencyInfo" +} + // GetObjectType returns the ObjectType field value func (o *HyperflexStPlatformClusterResiliencyInfo) GetObjectType() string { if o == nil { @@ -117,6 +122,11 @@ func (o *HyperflexStPlatformClusterResiliencyInfo) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "hyperflex.StPlatformClusterResiliencyInfo" of the ObjectType field. +func (o *HyperflexStPlatformClusterResiliencyInfo) GetDefaultObjectType() interface{} { + return "hyperflex.StPlatformClusterResiliencyInfo" +} + // GetHddFailuresTolerable returns the HddFailuresTolerable field value if set, zero value otherwise. func (o *HyperflexStPlatformClusterResiliencyInfo) GetHddFailuresTolerable() int64 { if o == nil || IsNil(o.HddFailuresTolerable) { @@ -170,7 +180,7 @@ func (o *HyperflexStPlatformClusterResiliencyInfo) GetMessagesOk() ([]string, bo // HasMessages returns a boolean if a field has been set. func (o *HyperflexStPlatformClusterResiliencyInfo) HasMessages() bool { - if o != nil && IsNil(o.Messages) { + if o != nil && !IsNil(o.Messages) { return true } @@ -203,7 +213,7 @@ func (o *HyperflexStPlatformClusterResiliencyInfo) GetMessagesIteratorOk() (*int // HasMessagesIterator returns a boolean if a field has been set. func (o *HyperflexStPlatformClusterResiliencyInfo) HasMessagesIterator() bool { - if o != nil && IsNil(o.MessagesIterator) { + if o != nil && !IsNil(o.MessagesIterator) { return true } @@ -361,7 +371,13 @@ func (o HyperflexStPlatformClusterResiliencyInfo) ToMap() (map[string]interface{ if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.HddFailuresTolerable) { toSerialize["HddFailuresTolerable"] = o.HddFailuresTolerable @@ -401,6 +417,13 @@ func (o *HyperflexStPlatformClusterResiliencyInfo) UnmarshalJSON(data []byte) (e "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -410,11 +433,23 @@ func (o *HyperflexStPlatformClusterResiliencyInfo) UnmarshalJSON(data []byte) (e } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type HyperflexStPlatformClusterResiliencyInfoWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_hyperflex_start_reduce_re_sync.go b/model_hyperflex_start_reduce_re_sync.go index 9833390b3b..2d67579bb8 100644 --- a/model_hyperflex_start_reduce_re_sync.go +++ b/model_hyperflex_start_reduce_re_sync.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -88,6 +88,11 @@ func (o *HyperflexStartReduceReSync) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "hyperflex.StartReduceReSync" of the ClassId field. +func (o *HyperflexStartReduceReSync) GetDefaultClassId() interface{} { + return "hyperflex.StartReduceReSync" +} + // GetObjectType returns the ObjectType field value func (o *HyperflexStartReduceReSync) GetObjectType() string { if o == nil { @@ -112,6 +117,11 @@ func (o *HyperflexStartReduceReSync) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "hyperflex.StartReduceReSync" of the ObjectType field. +func (o *HyperflexStartReduceReSync) GetDefaultObjectType() interface{} { + return "hyperflex.StartReduceReSync" +} + // GetClusterMoIds returns the ClusterMoIds field value if set, zero value otherwise (both if not set or set to explicit null). func (o *HyperflexStartReduceReSync) GetClusterMoIds() []string { if o == nil { @@ -133,7 +143,7 @@ func (o *HyperflexStartReduceReSync) GetClusterMoIdsOk() ([]string, bool) { // HasClusterMoIds returns a boolean if a field has been set. func (o *HyperflexStartReduceReSync) HasClusterMoIds() bool { - if o != nil && IsNil(o.ClusterMoIds) { + if o != nil && !IsNil(o.ClusterMoIds) { return true } @@ -198,7 +208,7 @@ func (o *HyperflexStartReduceReSync) GetTargetDetailsOk() ([]HyperflexReSyncClus // HasTargetDetails returns a boolean if a field has been set. func (o *HyperflexStartReduceReSync) HasTargetDetails() bool { - if o != nil && IsNil(o.TargetDetails) { + if o != nil && !IsNil(o.TargetDetails) { return true } @@ -228,7 +238,13 @@ func (o HyperflexStartReduceReSync) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.ClusterMoIds != nil { toSerialize["ClusterMoIds"] = o.ClusterMoIds @@ -256,6 +272,13 @@ func (o *HyperflexStartReduceReSync) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -265,11 +288,23 @@ func (o *HyperflexStartReduceReSync) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type HyperflexStartReduceReSyncWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_hyperflex_start_reduce_re_sync_list.go b/model_hyperflex_start_reduce_re_sync_list.go index bdb286e5c9..4cb95f894d 100644 --- a/model_hyperflex_start_reduce_re_sync_list.go +++ b/model_hyperflex_start_reduce_re_sync_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *HyperflexStartReduceReSyncList) GetResultsOk() ([]HyperflexStartReduceR // HasResults returns a boolean if a field has been set. func (o *HyperflexStartReduceReSyncList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *HyperflexStartReduceReSyncList) UnmarshalJSON(data []byte) (err error) "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *HyperflexStartReduceReSyncList) UnmarshalJSON(data []byte) (err error) } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type HyperflexStartReduceReSyncListWithoutEmbeddedStruct struct { // The total number of 'hyperflex.StartReduceReSync' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_hyperflex_start_reduce_re_sync_response.go b/model_hyperflex_start_reduce_re_sync_response.go index 1f26df79df..ddc46487c7 100644 --- a/model_hyperflex_start_reduce_re_sync_response.go +++ b/model_hyperflex_start_reduce_re_sync_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_hyperflex_storage_container.go b/model_hyperflex_storage_container.go index 066251d58e..afe76c56bc 100644 --- a/model_hyperflex_storage_container.go +++ b/model_hyperflex_storage_container.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -115,6 +115,11 @@ func (o *HyperflexStorageContainer) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "hyperflex.StorageContainer" of the ClassId field. +func (o *HyperflexStorageContainer) GetDefaultClassId() interface{} { + return "hyperflex.StorageContainer" +} + // GetObjectType returns the ObjectType field value func (o *HyperflexStorageContainer) GetObjectType() string { if o == nil { @@ -139,6 +144,11 @@ func (o *HyperflexStorageContainer) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "hyperflex.StorageContainer" of the ObjectType field. +func (o *HyperflexStorageContainer) GetDefaultObjectType() interface{} { + return "hyperflex.StorageContainer" +} + // GetAccessibilitySummary returns the AccessibilitySummary field value if set, zero value otherwise. func (o *HyperflexStorageContainer) GetAccessibilitySummary() string { if o == nil || IsNil(o.AccessibilitySummary) { @@ -256,7 +266,7 @@ func (o *HyperflexStorageContainer) GetHostMountStatusOk() ([]StorageStorageCont // HasHostMountStatus returns a boolean if a field has been set. func (o *HyperflexStorageContainer) HasHostMountStatus() bool { - if o != nil && IsNil(o.HostMountStatus) { + if o != nil && !IsNil(o.HostMountStatus) { return true } @@ -716,7 +726,7 @@ func (o *HyperflexStorageContainer) GetVolumesOk() ([]HyperflexVolumeRelationshi // HasVolumes returns a boolean if a field has been set. func (o *HyperflexStorageContainer) HasVolumes() bool { - if o != nil && IsNil(o.Volumes) { + if o != nil && !IsNil(o.Volumes) { return true } @@ -746,7 +756,13 @@ func (o HyperflexStorageContainer) ToMap() (map[string]interface{}, error) { if errStorageBaseStorageContainer != nil { return map[string]interface{}{}, errStorageBaseStorageContainer } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.AccessibilitySummary) { toSerialize["AccessibilitySummary"] = o.AccessibilitySummary @@ -819,6 +835,13 @@ func (o *HyperflexStorageContainer) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -828,11 +851,23 @@ func (o *HyperflexStorageContainer) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type HyperflexStorageContainerWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_hyperflex_storage_container_list.go b/model_hyperflex_storage_container_list.go index 8fe51a8852..17918d78e8 100644 --- a/model_hyperflex_storage_container_list.go +++ b/model_hyperflex_storage_container_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *HyperflexStorageContainerList) GetResultsOk() ([]HyperflexStorageContai // HasResults returns a boolean if a field has been set. func (o *HyperflexStorageContainerList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *HyperflexStorageContainerList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *HyperflexStorageContainerList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type HyperflexStorageContainerListWithoutEmbeddedStruct struct { // The total number of 'hyperflex.StorageContainer' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_hyperflex_storage_container_relationship.go b/model_hyperflex_storage_container_relationship.go index 39538b7a7b..045fd9fafc 100644 --- a/model_hyperflex_storage_container_relationship.go +++ b/model_hyperflex_storage_container_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_hyperflex_storage_container_response.go b/model_hyperflex_storage_container_response.go index a8f4214984..10e303fba2 100644 --- a/model_hyperflex_storage_container_response.go +++ b/model_hyperflex_storage_container_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_hyperflex_summary.go b/model_hyperflex_summary.go index 66d7fffc1a..6ad32ec967 100644 --- a/model_hyperflex_summary.go +++ b/model_hyperflex_summary.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -120,6 +120,11 @@ func (o *HyperflexSummary) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "hyperflex.Summary" of the ClassId field. +func (o *HyperflexSummary) GetDefaultClassId() interface{} { + return "hyperflex.Summary" +} + // GetObjectType returns the ObjectType field value func (o *HyperflexSummary) GetObjectType() string { if o == nil { @@ -144,6 +149,11 @@ func (o *HyperflexSummary) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "hyperflex.Summary" of the ObjectType field. +func (o *HyperflexSummary) GetDefaultObjectType() interface{} { + return "hyperflex.Summary" +} + // GetActiveNodes returns the ActiveNodes field value if set, zero value otherwise. func (o *HyperflexSummary) GetActiveNodes() string { if o == nil || IsNil(o.ActiveNodes) { @@ -560,7 +570,7 @@ func (o *HyperflexSummary) GetResiliencyDetailsOk() (*interface{}, bool) { // HasResiliencyDetails returns a boolean if a field has been set. func (o *HyperflexSummary) HasResiliencyDetails() bool { - if o != nil && IsNil(o.ResiliencyDetails) { + if o != nil && !IsNil(o.ResiliencyDetails) { return true } @@ -857,7 +867,13 @@ func (o HyperflexSummary) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.ActiveNodes) { toSerialize["ActiveNodes"] = o.ActiveNodes @@ -939,6 +955,13 @@ func (o *HyperflexSummary) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -948,11 +971,23 @@ func (o *HyperflexSummary) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type HyperflexSummaryWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_hyperflex_sys_config_policy.go b/model_hyperflex_sys_config_policy.go index b5088479c4..8630a21fb5 100644 --- a/model_hyperflex_sys_config_policy.go +++ b/model_hyperflex_sys_config_policy.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -29,7 +29,7 @@ type HyperflexSysConfigPolicy struct { // The fully-qualified name of the instantiated, concrete type. The value should be the same as the 'ClassId' property. ObjectType string `json:"ObjectType"` // The DNS Search Domain Name. This setting applies to HyperFlex Data Platform 3.0 or later only. - DnsDomainName *string `json:"DnsDomainName,omitempty"` + DnsDomainName *string `json:"DnsDomainName,omitempty" validate:"regexp=^$|^([a-zA-Z0-9]([a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\\\\.)*[a-zA-Z]{2,63}$"` DnsServers []string `json:"DnsServers,omitempty"` NtpServers []string `json:"NtpServers,omitempty"` // The timezone of the HyperFlex cluster's system clock. * `Pacific/Niue` - * `Africa/Abidjan` - * `Africa/Accra` - * `Africa/Addis_Ababa` - * `Africa/Algiers` - * `Africa/Asmara` - * `Africa/Bamako` - * `Africa/Bangui` - * `Africa/Banjul` - * `Africa/Bissau` - * `Africa/Blantyre` - * `Africa/Brazzaville` - * `Africa/Bujumbura` - * `Africa/Cairo` - * `Africa/Casablanca` - * `Africa/Ceuta` - * `Africa/Conakry` - * `Africa/Dakar` - * `Africa/Dar_es_Salaam` - * `Africa/Djibouti` - * `Africa/Douala` - * `Africa/El_Aaiun` - * `Africa/Freetown` - * `Africa/Gaborone` - * `Africa/Harare` - * `Africa/Johannesburg` - * `Africa/Juba` - * `Africa/Kampala` - * `Africa/Khartoum` - * `Africa/Kigali` - * `Africa/Kinshasa` - * `Africa/Lagos` - * `Africa/Libreville` - * `Africa/Lome` - * `Africa/Luanda` - * `Africa/Lubumbashi` - * `Africa/Lusaka` - * `Africa/Malabo` - * `Africa/Maputo` - * `Africa/Maseru` - * `Africa/Mbabane` - * `Africa/Mogadishu` - * `Africa/Monrovia` - * `Africa/Nairobi` - * `Africa/Ndjamena` - * `Africa/Niamey` - * `Africa/Nouakchott` - * `Africa/Ouagadougou` - * `Africa/Porto-Novo` - * `Africa/Sao_Tome` - * `Africa/Tripoli` - * `Africa/Tunis` - * `Africa/Windhoek` - * `America/Adak` - * `America/Anchorage` - * `America/Anguilla` - * `America/Antigua` - * `America/Araguaina` - * `America/Argentina/Buenos_Aires` - * `America/Argentina/Catamarca` - * `America/Argentina/Cordoba` - * `America/Argentina/Jujuy` - * `America/Argentina/La_Rioja` - * `America/Argentina/Mendoza` - * `America/Argentina/Rio_Gallegos` - * `America/Argentina/Salta` - * `America/Argentina/San_Juan` - * `America/Argentina/San_Luis` - * `America/Argentina/Tucuman` - * `America/Argentina/Ushuaia` - * `America/Aruba` - * `America/Asuncion` - * `America/Atikokan` - * `America/Bahia` - * `America/Bahia_Banderas` - * `America/Barbados` - * `America/Belem` - * `America/Belize` - * `America/Blanc-Sablon` - * `America/Boa_Vista` - * `America/Bogota` - * `America/Boise` - * `America/Cambridge_Bay` - * `America/Campo_Grande` - * `America/Cancun` - * `America/Caracas` - * `America/Cayenne` - * `America/Cayman` - * `America/Chicago` - * `America/Chihuahua` - * `America/Costa_Rica` - * `America/Creston` - * `America/Cuiaba` - * `America/Curacao` - * `America/Danmarkshavn` - * `America/Dawson` - * `America/Dawson_Creek` - * `America/Denver` - * `America/Detroit` - * `America/Dominica` - * `America/Edmonton` - * `America/Eirunepe` - * `America/El_Salvador` - * `America/Fortaleza` - * `America/Glace_Bay` - * `America/Godthab` - * `America/Goose_Bay` - * `America/Grand_Turk` - * `America/Grenada` - * `America/Guadeloupe` - * `America/Guatemala` - * `America/Guayaquil` - * `America/Guyana` - * `America/Halifax` - * `America/Havana` - * `America/Hermosillo` - * `America/Indiana/Indianapolis` - * `America/Indiana/Knox` - * `America/Indiana/Marengo` - * `America/Indiana/Petersburg` - * `America/Indiana/Tell_City` - * `America/Indiana/Vevay` - * `America/Indiana/Vincennes` - * `America/Indiana/Winamac` - * `America/Inuvik` - * `America/Iqaluit` - * `America/Jamaica` - * `America/Juneau` - * `America/Kentucky/Louisville` - * `America/Kentucky/Monticello` - * `America/Kralendijk` - * `America/La_Paz` - * `America/Lima` - * `America/Los_Angeles` - * `America/Lower_Princes` - * `America/Maceio` - * `America/Managua` - * `America/Manaus` - * `America/Marigot` - * `America/Martinique` - * `America/Matamoros` - * `America/Mazatlan` - * `America/Menominee` - * `America/Merida` - * `America/Metlakatla` - * `America/Mexico_City` - * `America/Miquelon` - * `America/Moncton` - * `America/Monterrey` - * `America/Montevideo` - * `America/Montreal` - * `America/Montserrat` - * `America/Nassau` - * `America/New_York` - * `America/Nipigon` - * `America/Nome` - * `America/Noronha` - * `America/North_Dakota/Beulah` - * `America/North_Dakota/Center` - * `America/North_Dakota/New_Salem` - * `America/Ojinaga` - * `America/Panama` - * `America/Pangnirtung` - * `America/Paramaribo` - * `America/Phoenix` - * `America/Port-au-Prince` - * `America/Port_of_Spain` - * `America/Porto_Velho` - * `America/Puerto_Rico` - * `America/Rainy_River` - * `America/Rankin_Inlet` - * `America/Recife` - * `America/Regina` - * `America/Resolute` - * `America/Rio_Branco` - * `America/Santa_Isabel` - * `America/Santarem` - * `America/Santiago` - * `America/Santo_Domingo` - * `America/Sao_Paulo` - * `America/Scoresbysund` - * `America/Shiprock` - * `America/Sitka` - * `America/St_Barthelemy` - * `America/St_Johns` - * `America/St_Kitts` - * `America/St_Lucia` - * `America/St_Thomas` - * `America/St_Vincent` - * `America/Swift_Current` - * `America/Tegucigalpa` - * `America/Thule` - * `America/Thunder_Bay` - * `America/Tijuana` - * `America/Toronto` - * `America/Tortola` - * `America/Vancouver` - * `America/Whitehorse` - * `America/Winnipeg` - * `America/Yakutat` - * `America/Yellowknife` - * `Antarctica/Casey` - * `Antarctica/Davis` - * `Antarctica/DumontDUrville` - * `Antarctica/Macquarie` - * `Antarctica/Mawson` - * `Antarctica/McMurdo` - * `Antarctica/Palmer` - * `Antarctica/Rothera` - * `Antarctica/South_Pole` - * `Antarctica/Syowa` - * `Antarctica/Troll` - * `Antarctica/Vostok` - * `Arctic/Longyearbyen` - * `Asia/Aden` - * `Asia/Almaty` - * `Asia/Amman` - * `Asia/Anadyr` - * `Asia/Aqtau` - * `Asia/Aqtobe` - * `Asia/Ashgabat` - * `Asia/Baghdad` - * `Asia/Bahrain` - * `Asia/Baku` - * `Asia/Bangkok` - * `Asia/Beirut` - * `Asia/Bishkek` - * `Asia/Brunei` - * `Asia/Calcutta` - * `Asia/Choibalsan` - * `Asia/Chongqing` - * `Asia/Colombo` - * `Asia/Damascus` - * `Asia/Dhaka` - * `Asia/Dili` - * `Asia/Dubai` - * `Asia/Dushanbe` - * `Asia/Gaza` - * `Asia/Harbin` - * `Asia/Hebron` - * `Asia/Ho_Chi_Minh` - * `Asia/Hong_Kong` - * `Asia/Hovd` - * `Asia/Irkutsk` - * `Asia/Jakarta` - * `Asia/Jayapura` - * `Asia/Jerusalem` - * `Asia/Kabul` - * `Asia/Kamchatka` - * `Asia/Karachi` - * `Asia/Kashgar` - * `Asia/Kathmandu` - * `Asia/Katmandu` - * `Asia/Khandyga` - * `Asia/Kolkata` - * `Asia/Krasnoyarsk` - * `Asia/Kuala_Lumpur` - * `Asia/Kuching` - * `Asia/Kuwait` - * `Asia/Macau` - * `Asia/Magadan` - * `Asia/Makassar` - * `Asia/Manila` - * `Asia/Muscat` - * `Asia/Nicosia` - * `Asia/Novokuznetsk` - * `Asia/Novosibirsk` - * `Asia/Omsk` - * `Asia/Oral` - * `Asia/Phnom_Penh` - * `Asia/Pontianak` - * `Asia/Pyongyang` - * `Asia/Qatar` - * `Asia/Qyzylorda` - * `Asia/Rangoon` - * `Asia/Riyadh` - * `Asia/Saigon` - * `Asia/Sakhalin` - * `Asia/Samarkand` - * `Asia/Seoul` - * `Asia/Shanghai` - * `Asia/Singapore` - * `Asia/Taipei` - * `Asia/Tashkent` - * `Asia/Tbilisi` - * `Asia/Tehran` - * `Asia/Thimphu` - * `Asia/Tokyo` - * `Asia/Ulaanbaatar` - * `Asia/Urumqi` - * `Asia/Ust-Nera` - * `Asia/Vientiane` - * `Asia/Vladivostok` - * `Asia/Yakutsk` - * `Asia/Yekaterinburg` - * `Asia/Yerevan` - * `Atlantic/Azores` - * `Atlantic/Bermuda` - * `Atlantic/Canary` - * `Atlantic/Cape_Verde` - * `Atlantic/Faroe` - * `Atlantic/Madeira` - * `Atlantic/Reykjavik` - * `Atlantic/South_Georgia` - * `Atlantic/St_Helena` - * `Atlantic/Stanley` - * `Australia/Adelaide` - * `Australia/Brisbane` - * `Australia/Broken_Hill` - * `Australia/Currie` - * `Australia/Darwin` - * `Australia/Eucla` - * `Australia/Hobart` - * `Australia/Lindeman` - * `Australia/Lord_Howe` - * `Australia/Melbourne` - * `Australia/Perth` - * `Australia/Sydney` - * `Etc/GMT` - * `Europe/Amsterdam` - * `Europe/Andorra` - * `Europe/Athens` - * `Europe/Belgrade` - * `Europe/Berlin` - * `Europe/Bratislava` - * `Europe/Brussels` - * `Europe/Bucharest` - * `Europe/Budapest` - * `Europe/Busingen` - * `Europe/Chisinau` - * `Europe/Copenhagen` - * `Europe/Dublin` - * `Europe/Gibraltar` - * `Europe/Guernsey` - * `Europe/Helsinki` - * `Europe/Isle_of_Man` - * `Europe/Istanbul` - * `Europe/Jersey` - * `Europe/Kaliningrad` - * `Europe/Kiev` - * `Europe/Lisbon` - * `Europe/Ljubljana` - * `Europe/London` - * `Europe/Luxembourg` - * `Europe/Madrid` - * `Europe/Malta` - * `Europe/Mariehamn` - * `Europe/Minsk` - * `Europe/Monaco` - * `Europe/Moscow` - * `Europe/Oslo` - * `Europe/Paris` - * `Europe/Podgorica` - * `Europe/Prague` - * `Europe/Riga` - * `Europe/Rome` - * `Europe/Samara` - * `Europe/San_Marino` - * `Europe/Sarajevo` - * `Europe/Simferopol` - * `Europe/Skopje` - * `Europe/Sofia` - * `Europe/Stockholm` - * `Europe/Tallinn` - * `Europe/Tirane` - * `Europe/Uzhgorod` - * `Europe/Vaduz` - * `Europe/Vatican` - * `Europe/Vienna` - * `Europe/Vilnius` - * `Europe/Volgograd` - * `Europe/Warsaw` - * `Europe/Zagreb` - * `Europe/Zaporozhye` - * `Europe/Zurich` - * `Indian/Antananarivo` - * `Indian/Chagos` - * `Indian/Christmas` - * `Indian/Cocos` - * `Indian/Comoro` - * `Indian/Kerguelen` - * `Indian/Mahe` - * `Indian/Maldives` - * `Indian/Mauritius` - * `Indian/Mayotte` - * `Indian/Reunion` - * `Pacific/Apia` - * `Pacific/Auckland` - * `Pacific/Chatham` - * `Pacific/Chuuk` - * `Pacific/Easter` - * `Pacific/Efate` - * `Pacific/Enderbury` - * `Pacific/Fakaofo` - * `Pacific/Fiji` - * `Pacific/Funafuti` - * `Pacific/Galapagos` - * `Pacific/Gambier` - * `Pacific/Guadalcanal` - * `Pacific/Guam` - * `Pacific/Honolulu` - * `Pacific/Johnston` - * `Pacific/Kiritimati` - * `Pacific/Kosrae` - * `Pacific/Kwajalein` - * `Pacific/Majuro` - * `Pacific/Marquesas` - * `Pacific/Midway` - * `Pacific/Nauru` - * `Pacific/Norfolk` - * `Pacific/Noumea` - * `Pacific/Pago_Pago` - * `Pacific/Palau` - * `Pacific/Pitcairn` - * `Pacific/Pohnpei` - * `Pacific/Port_Moresby` - * `Pacific/Rarotonga` - * `Pacific/Saipan` - * `Pacific/Tahiti` - * `Pacific/Tarawa` - * `Pacific/Tongatapu` - * `Pacific/Wake` - * `Pacific/Wallis` - * `UTC` - @@ -93,6 +93,11 @@ func (o *HyperflexSysConfigPolicy) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "hyperflex.SysConfigPolicy" of the ClassId field. +func (o *HyperflexSysConfigPolicy) GetDefaultClassId() interface{} { + return "hyperflex.SysConfigPolicy" +} + // GetObjectType returns the ObjectType field value func (o *HyperflexSysConfigPolicy) GetObjectType() string { if o == nil { @@ -117,6 +122,11 @@ func (o *HyperflexSysConfigPolicy) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "hyperflex.SysConfigPolicy" of the ObjectType field. +func (o *HyperflexSysConfigPolicy) GetDefaultObjectType() interface{} { + return "hyperflex.SysConfigPolicy" +} + // GetDnsDomainName returns the DnsDomainName field value if set, zero value otherwise. func (o *HyperflexSysConfigPolicy) GetDnsDomainName() string { if o == nil || IsNil(o.DnsDomainName) { @@ -170,7 +180,7 @@ func (o *HyperflexSysConfigPolicy) GetDnsServersOk() ([]string, bool) { // HasDnsServers returns a boolean if a field has been set. func (o *HyperflexSysConfigPolicy) HasDnsServers() bool { - if o != nil && IsNil(o.DnsServers) { + if o != nil && !IsNil(o.DnsServers) { return true } @@ -203,7 +213,7 @@ func (o *HyperflexSysConfigPolicy) GetNtpServersOk() ([]string, bool) { // HasNtpServers returns a boolean if a field has been set. func (o *HyperflexSysConfigPolicy) HasNtpServers() bool { - if o != nil && IsNil(o.NtpServers) { + if o != nil && !IsNil(o.NtpServers) { return true } @@ -268,7 +278,7 @@ func (o *HyperflexSysConfigPolicy) GetClusterProfilesOk() ([]HyperflexClusterPro // HasClusterProfiles returns a boolean if a field has been set. func (o *HyperflexSysConfigPolicy) HasClusterProfiles() bool { - if o != nil && IsNil(o.ClusterProfiles) { + if o != nil && !IsNil(o.ClusterProfiles) { return true } @@ -341,7 +351,13 @@ func (o HyperflexSysConfigPolicy) ToMap() (map[string]interface{}, error) { if errPolicyAbstractPolicy != nil { return map[string]interface{}{}, errPolicyAbstractPolicy } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.DnsDomainName) { toSerialize["DnsDomainName"] = o.DnsDomainName @@ -378,6 +394,13 @@ func (o *HyperflexSysConfigPolicy) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -387,18 +410,30 @@ func (o *HyperflexSysConfigPolicy) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type HyperflexSysConfigPolicyWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` // The fully-qualified name of the instantiated, concrete type. The value should be the same as the 'ClassId' property. ObjectType string `json:"ObjectType"` // The DNS Search Domain Name. This setting applies to HyperFlex Data Platform 3.0 or later only. - DnsDomainName *string `json:"DnsDomainName,omitempty"` + DnsDomainName *string `json:"DnsDomainName,omitempty" validate:"regexp=^$|^([a-zA-Z0-9]([a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\\\\.)*[a-zA-Z]{2,63}$"` DnsServers []string `json:"DnsServers,omitempty"` NtpServers []string `json:"NtpServers,omitempty"` // The timezone of the HyperFlex cluster's system clock. * `Pacific/Niue` - * `Africa/Abidjan` - * `Africa/Accra` - * `Africa/Addis_Ababa` - * `Africa/Algiers` - * `Africa/Asmara` - * `Africa/Bamako` - * `Africa/Bangui` - * `Africa/Banjul` - * `Africa/Bissau` - * `Africa/Blantyre` - * `Africa/Brazzaville` - * `Africa/Bujumbura` - * `Africa/Cairo` - * `Africa/Casablanca` - * `Africa/Ceuta` - * `Africa/Conakry` - * `Africa/Dakar` - * `Africa/Dar_es_Salaam` - * `Africa/Djibouti` - * `Africa/Douala` - * `Africa/El_Aaiun` - * `Africa/Freetown` - * `Africa/Gaborone` - * `Africa/Harare` - * `Africa/Johannesburg` - * `Africa/Juba` - * `Africa/Kampala` - * `Africa/Khartoum` - * `Africa/Kigali` - * `Africa/Kinshasa` - * `Africa/Lagos` - * `Africa/Libreville` - * `Africa/Lome` - * `Africa/Luanda` - * `Africa/Lubumbashi` - * `Africa/Lusaka` - * `Africa/Malabo` - * `Africa/Maputo` - * `Africa/Maseru` - * `Africa/Mbabane` - * `Africa/Mogadishu` - * `Africa/Monrovia` - * `Africa/Nairobi` - * `Africa/Ndjamena` - * `Africa/Niamey` - * `Africa/Nouakchott` - * `Africa/Ouagadougou` - * `Africa/Porto-Novo` - * `Africa/Sao_Tome` - * `Africa/Tripoli` - * `Africa/Tunis` - * `Africa/Windhoek` - * `America/Adak` - * `America/Anchorage` - * `America/Anguilla` - * `America/Antigua` - * `America/Araguaina` - * `America/Argentina/Buenos_Aires` - * `America/Argentina/Catamarca` - * `America/Argentina/Cordoba` - * `America/Argentina/Jujuy` - * `America/Argentina/La_Rioja` - * `America/Argentina/Mendoza` - * `America/Argentina/Rio_Gallegos` - * `America/Argentina/Salta` - * `America/Argentina/San_Juan` - * `America/Argentina/San_Luis` - * `America/Argentina/Tucuman` - * `America/Argentina/Ushuaia` - * `America/Aruba` - * `America/Asuncion` - * `America/Atikokan` - * `America/Bahia` - * `America/Bahia_Banderas` - * `America/Barbados` - * `America/Belem` - * `America/Belize` - * `America/Blanc-Sablon` - * `America/Boa_Vista` - * `America/Bogota` - * `America/Boise` - * `America/Cambridge_Bay` - * `America/Campo_Grande` - * `America/Cancun` - * `America/Caracas` - * `America/Cayenne` - * `America/Cayman` - * `America/Chicago` - * `America/Chihuahua` - * `America/Costa_Rica` - * `America/Creston` - * `America/Cuiaba` - * `America/Curacao` - * `America/Danmarkshavn` - * `America/Dawson` - * `America/Dawson_Creek` - * `America/Denver` - * `America/Detroit` - * `America/Dominica` - * `America/Edmonton` - * `America/Eirunepe` - * `America/El_Salvador` - * `America/Fortaleza` - * `America/Glace_Bay` - * `America/Godthab` - * `America/Goose_Bay` - * `America/Grand_Turk` - * `America/Grenada` - * `America/Guadeloupe` - * `America/Guatemala` - * `America/Guayaquil` - * `America/Guyana` - * `America/Halifax` - * `America/Havana` - * `America/Hermosillo` - * `America/Indiana/Indianapolis` - * `America/Indiana/Knox` - * `America/Indiana/Marengo` - * `America/Indiana/Petersburg` - * `America/Indiana/Tell_City` - * `America/Indiana/Vevay` - * `America/Indiana/Vincennes` - * `America/Indiana/Winamac` - * `America/Inuvik` - * `America/Iqaluit` - * `America/Jamaica` - * `America/Juneau` - * `America/Kentucky/Louisville` - * `America/Kentucky/Monticello` - * `America/Kralendijk` - * `America/La_Paz` - * `America/Lima` - * `America/Los_Angeles` - * `America/Lower_Princes` - * `America/Maceio` - * `America/Managua` - * `America/Manaus` - * `America/Marigot` - * `America/Martinique` - * `America/Matamoros` - * `America/Mazatlan` - * `America/Menominee` - * `America/Merida` - * `America/Metlakatla` - * `America/Mexico_City` - * `America/Miquelon` - * `America/Moncton` - * `America/Monterrey` - * `America/Montevideo` - * `America/Montreal` - * `America/Montserrat` - * `America/Nassau` - * `America/New_York` - * `America/Nipigon` - * `America/Nome` - * `America/Noronha` - * `America/North_Dakota/Beulah` - * `America/North_Dakota/Center` - * `America/North_Dakota/New_Salem` - * `America/Ojinaga` - * `America/Panama` - * `America/Pangnirtung` - * `America/Paramaribo` - * `America/Phoenix` - * `America/Port-au-Prince` - * `America/Port_of_Spain` - * `America/Porto_Velho` - * `America/Puerto_Rico` - * `America/Rainy_River` - * `America/Rankin_Inlet` - * `America/Recife` - * `America/Regina` - * `America/Resolute` - * `America/Rio_Branco` - * `America/Santa_Isabel` - * `America/Santarem` - * `America/Santiago` - * `America/Santo_Domingo` - * `America/Sao_Paulo` - * `America/Scoresbysund` - * `America/Shiprock` - * `America/Sitka` - * `America/St_Barthelemy` - * `America/St_Johns` - * `America/St_Kitts` - * `America/St_Lucia` - * `America/St_Thomas` - * `America/St_Vincent` - * `America/Swift_Current` - * `America/Tegucigalpa` - * `America/Thule` - * `America/Thunder_Bay` - * `America/Tijuana` - * `America/Toronto` - * `America/Tortola` - * `America/Vancouver` - * `America/Whitehorse` - * `America/Winnipeg` - * `America/Yakutat` - * `America/Yellowknife` - * `Antarctica/Casey` - * `Antarctica/Davis` - * `Antarctica/DumontDUrville` - * `Antarctica/Macquarie` - * `Antarctica/Mawson` - * `Antarctica/McMurdo` - * `Antarctica/Palmer` - * `Antarctica/Rothera` - * `Antarctica/South_Pole` - * `Antarctica/Syowa` - * `Antarctica/Troll` - * `Antarctica/Vostok` - * `Arctic/Longyearbyen` - * `Asia/Aden` - * `Asia/Almaty` - * `Asia/Amman` - * `Asia/Anadyr` - * `Asia/Aqtau` - * `Asia/Aqtobe` - * `Asia/Ashgabat` - * `Asia/Baghdad` - * `Asia/Bahrain` - * `Asia/Baku` - * `Asia/Bangkok` - * `Asia/Beirut` - * `Asia/Bishkek` - * `Asia/Brunei` - * `Asia/Calcutta` - * `Asia/Choibalsan` - * `Asia/Chongqing` - * `Asia/Colombo` - * `Asia/Damascus` - * `Asia/Dhaka` - * `Asia/Dili` - * `Asia/Dubai` - * `Asia/Dushanbe` - * `Asia/Gaza` - * `Asia/Harbin` - * `Asia/Hebron` - * `Asia/Ho_Chi_Minh` - * `Asia/Hong_Kong` - * `Asia/Hovd` - * `Asia/Irkutsk` - * `Asia/Jakarta` - * `Asia/Jayapura` - * `Asia/Jerusalem` - * `Asia/Kabul` - * `Asia/Kamchatka` - * `Asia/Karachi` - * `Asia/Kashgar` - * `Asia/Kathmandu` - * `Asia/Katmandu` - * `Asia/Khandyga` - * `Asia/Kolkata` - * `Asia/Krasnoyarsk` - * `Asia/Kuala_Lumpur` - * `Asia/Kuching` - * `Asia/Kuwait` - * `Asia/Macau` - * `Asia/Magadan` - * `Asia/Makassar` - * `Asia/Manila` - * `Asia/Muscat` - * `Asia/Nicosia` - * `Asia/Novokuznetsk` - * `Asia/Novosibirsk` - * `Asia/Omsk` - * `Asia/Oral` - * `Asia/Phnom_Penh` - * `Asia/Pontianak` - * `Asia/Pyongyang` - * `Asia/Qatar` - * `Asia/Qyzylorda` - * `Asia/Rangoon` - * `Asia/Riyadh` - * `Asia/Saigon` - * `Asia/Sakhalin` - * `Asia/Samarkand` - * `Asia/Seoul` - * `Asia/Shanghai` - * `Asia/Singapore` - * `Asia/Taipei` - * `Asia/Tashkent` - * `Asia/Tbilisi` - * `Asia/Tehran` - * `Asia/Thimphu` - * `Asia/Tokyo` - * `Asia/Ulaanbaatar` - * `Asia/Urumqi` - * `Asia/Ust-Nera` - * `Asia/Vientiane` - * `Asia/Vladivostok` - * `Asia/Yakutsk` - * `Asia/Yekaterinburg` - * `Asia/Yerevan` - * `Atlantic/Azores` - * `Atlantic/Bermuda` - * `Atlantic/Canary` - * `Atlantic/Cape_Verde` - * `Atlantic/Faroe` - * `Atlantic/Madeira` - * `Atlantic/Reykjavik` - * `Atlantic/South_Georgia` - * `Atlantic/St_Helena` - * `Atlantic/Stanley` - * `Australia/Adelaide` - * `Australia/Brisbane` - * `Australia/Broken_Hill` - * `Australia/Currie` - * `Australia/Darwin` - * `Australia/Eucla` - * `Australia/Hobart` - * `Australia/Lindeman` - * `Australia/Lord_Howe` - * `Australia/Melbourne` - * `Australia/Perth` - * `Australia/Sydney` - * `Etc/GMT` - * `Europe/Amsterdam` - * `Europe/Andorra` - * `Europe/Athens` - * `Europe/Belgrade` - * `Europe/Berlin` - * `Europe/Bratislava` - * `Europe/Brussels` - * `Europe/Bucharest` - * `Europe/Budapest` - * `Europe/Busingen` - * `Europe/Chisinau` - * `Europe/Copenhagen` - * `Europe/Dublin` - * `Europe/Gibraltar` - * `Europe/Guernsey` - * `Europe/Helsinki` - * `Europe/Isle_of_Man` - * `Europe/Istanbul` - * `Europe/Jersey` - * `Europe/Kaliningrad` - * `Europe/Kiev` - * `Europe/Lisbon` - * `Europe/Ljubljana` - * `Europe/London` - * `Europe/Luxembourg` - * `Europe/Madrid` - * `Europe/Malta` - * `Europe/Mariehamn` - * `Europe/Minsk` - * `Europe/Monaco` - * `Europe/Moscow` - * `Europe/Oslo` - * `Europe/Paris` - * `Europe/Podgorica` - * `Europe/Prague` - * `Europe/Riga` - * `Europe/Rome` - * `Europe/Samara` - * `Europe/San_Marino` - * `Europe/Sarajevo` - * `Europe/Simferopol` - * `Europe/Skopje` - * `Europe/Sofia` - * `Europe/Stockholm` - * `Europe/Tallinn` - * `Europe/Tirane` - * `Europe/Uzhgorod` - * `Europe/Vaduz` - * `Europe/Vatican` - * `Europe/Vienna` - * `Europe/Vilnius` - * `Europe/Volgograd` - * `Europe/Warsaw` - * `Europe/Zagreb` - * `Europe/Zaporozhye` - * `Europe/Zurich` - * `Indian/Antananarivo` - * `Indian/Chagos` - * `Indian/Christmas` - * `Indian/Cocos` - * `Indian/Comoro` - * `Indian/Kerguelen` - * `Indian/Mahe` - * `Indian/Maldives` - * `Indian/Mauritius` - * `Indian/Mayotte` - * `Indian/Reunion` - * `Pacific/Apia` - * `Pacific/Auckland` - * `Pacific/Chatham` - * `Pacific/Chuuk` - * `Pacific/Easter` - * `Pacific/Efate` - * `Pacific/Enderbury` - * `Pacific/Fakaofo` - * `Pacific/Fiji` - * `Pacific/Funafuti` - * `Pacific/Galapagos` - * `Pacific/Gambier` - * `Pacific/Guadalcanal` - * `Pacific/Guam` - * `Pacific/Honolulu` - * `Pacific/Johnston` - * `Pacific/Kiritimati` - * `Pacific/Kosrae` - * `Pacific/Kwajalein` - * `Pacific/Majuro` - * `Pacific/Marquesas` - * `Pacific/Midway` - * `Pacific/Nauru` - * `Pacific/Norfolk` - * `Pacific/Noumea` - * `Pacific/Pago_Pago` - * `Pacific/Palau` - * `Pacific/Pitcairn` - * `Pacific/Pohnpei` - * `Pacific/Port_Moresby` - * `Pacific/Rarotonga` - * `Pacific/Saipan` - * `Pacific/Tahiti` - * `Pacific/Tarawa` - * `Pacific/Tongatapu` - * `Pacific/Wake` - * `Pacific/Wallis` - * `UTC` - diff --git a/model_hyperflex_sys_config_policy_list.go b/model_hyperflex_sys_config_policy_list.go index 44ebf56133..e8d5ba20f6 100644 --- a/model_hyperflex_sys_config_policy_list.go +++ b/model_hyperflex_sys_config_policy_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *HyperflexSysConfigPolicyList) GetResultsOk() ([]HyperflexSysConfigPolic // HasResults returns a boolean if a field has been set. func (o *HyperflexSysConfigPolicyList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *HyperflexSysConfigPolicyList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *HyperflexSysConfigPolicyList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type HyperflexSysConfigPolicyListWithoutEmbeddedStruct struct { // The total number of 'hyperflex.SysConfigPolicy' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_hyperflex_sys_config_policy_relationship.go b/model_hyperflex_sys_config_policy_relationship.go index facb2e1d63..a7d518813a 100644 --- a/model_hyperflex_sys_config_policy_relationship.go +++ b/model_hyperflex_sys_config_policy_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_hyperflex_sys_config_policy_response.go b/model_hyperflex_sys_config_policy_response.go index e0ef3e454e..9d7b2e642c 100644 --- a/model_hyperflex_sys_config_policy_response.go +++ b/model_hyperflex_sys_config_policy_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_hyperflex_target.go b/model_hyperflex_target.go index 0354a8a2d7..6c8bb77b9c 100644 --- a/model_hyperflex_target.go +++ b/model_hyperflex_target.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -99,6 +99,11 @@ func (o *HyperflexTarget) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "hyperflex.Target" of the ClassId field. +func (o *HyperflexTarget) GetDefaultClassId() interface{} { + return "hyperflex.Target" +} + // GetObjectType returns the ObjectType field value func (o *HyperflexTarget) GetObjectType() string { if o == nil { @@ -123,6 +128,11 @@ func (o *HyperflexTarget) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "hyperflex.Target" of the ObjectType field. +func (o *HyperflexTarget) GetDefaultObjectType() interface{} { + return "hyperflex.Target" +} + // GetAuthMethod returns the AuthMethod field value if set, zero value otherwise. func (o *HyperflexTarget) GetAuthMethod() string { if o == nil || IsNil(o.AuthMethod) { @@ -176,7 +186,7 @@ func (o *HyperflexTarget) GetInitiatorGroupUuidsOk() ([]string, bool) { // HasInitiatorGroupUuids returns a boolean if a field has been set. func (o *HyperflexTarget) HasInitiatorGroupUuids() bool { - if o != nil && IsNil(o.InitiatorGroupUuids) { + if o != nil && !IsNil(o.InitiatorGroupUuids) { return true } @@ -273,7 +283,7 @@ func (o *HyperflexTarget) GetLunUuidsOk() ([]string, bool) { // HasLunUuids returns a boolean if a field has been set. func (o *HyperflexTarget) HasLunUuids() bool { - if o != nil && IsNil(o.LunUuids) { + if o != nil && !IsNil(o.LunUuids) { return true } @@ -445,7 +455,7 @@ func (o *HyperflexTarget) GetInitiatorGroupsOk() ([]HyperflexInitiatorGroupRelat // HasInitiatorGroups returns a boolean if a field has been set. func (o *HyperflexTarget) HasInitiatorGroups() bool { - if o != nil && IsNil(o.InitiatorGroups) { + if o != nil && !IsNil(o.InitiatorGroups) { return true } @@ -478,7 +488,7 @@ func (o *HyperflexTarget) GetLunsOk() ([]HyperflexLunRelationship, bool) { // HasLuns returns a boolean if a field has been set. func (o *HyperflexTarget) HasLuns() bool { - if o != nil && IsNil(o.Luns) { + if o != nil && !IsNil(o.Luns) { return true } @@ -508,7 +518,13 @@ func (o HyperflexTarget) ToMap() (map[string]interface{}, error) { if errStorageBaseTarget != nil { return map[string]interface{}{}, errStorageBaseTarget } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.AuthMethod) { toSerialize["AuthMethod"] = o.AuthMethod @@ -560,6 +576,13 @@ func (o *HyperflexTarget) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -569,11 +592,23 @@ func (o *HyperflexTarget) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type HyperflexTargetWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_hyperflex_target_list.go b/model_hyperflex_target_list.go index 56012d4de0..cd89150624 100644 --- a/model_hyperflex_target_list.go +++ b/model_hyperflex_target_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *HyperflexTargetList) GetResultsOk() ([]HyperflexTarget, bool) { // HasResults returns a boolean if a field has been set. func (o *HyperflexTargetList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *HyperflexTargetList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *HyperflexTargetList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type HyperflexTargetListWithoutEmbeddedStruct struct { // The total number of 'hyperflex.Target' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_hyperflex_target_relationship.go b/model_hyperflex_target_relationship.go index 415256bbe4..9f7379acbb 100644 --- a/model_hyperflex_target_relationship.go +++ b/model_hyperflex_target_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_hyperflex_target_response.go b/model_hyperflex_target_response.go index d6782ad145..be26e51e2f 100644 --- a/model_hyperflex_target_response.go +++ b/model_hyperflex_target_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_hyperflex_tracked_disk.go b/model_hyperflex_tracked_disk.go index 6033143acf..57076ab75f 100644 --- a/model_hyperflex_tracked_disk.go +++ b/model_hyperflex_tracked_disk.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -83,6 +83,11 @@ func (o *HyperflexTrackedDisk) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "hyperflex.TrackedDisk" of the ClassId field. +func (o *HyperflexTrackedDisk) GetDefaultClassId() interface{} { + return "hyperflex.TrackedDisk" +} + // GetObjectType returns the ObjectType field value func (o *HyperflexTrackedDisk) GetObjectType() string { if o == nil { @@ -107,6 +112,11 @@ func (o *HyperflexTrackedDisk) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "hyperflex.TrackedDisk" of the ObjectType field. +func (o *HyperflexTrackedDisk) GetDefaultObjectType() interface{} { + return "hyperflex.TrackedDisk" +} + // GetDiskFiles returns the DiskFiles field value if set, zero value otherwise (both if not set or set to explicit null). func (o *HyperflexTrackedDisk) GetDiskFiles() []HyperflexTrackedFile { if o == nil { @@ -128,7 +138,7 @@ func (o *HyperflexTrackedDisk) GetDiskFilesOk() ([]HyperflexTrackedFile, bool) { // HasDiskFiles returns a boolean if a field has been set. func (o *HyperflexTrackedDisk) HasDiskFiles() bool { - if o != nil && IsNil(o.DiskFiles) { + if o != nil && !IsNil(o.DiskFiles) { return true } @@ -190,7 +200,13 @@ func (o HyperflexTrackedDisk) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.DiskFiles != nil { toSerialize["DiskFiles"] = o.DiskFiles @@ -215,6 +231,13 @@ func (o *HyperflexTrackedDisk) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -224,11 +247,23 @@ func (o *HyperflexTrackedDisk) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type HyperflexTrackedDiskWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_hyperflex_tracked_file.go b/model_hyperflex_tracked_file.go index 3043cedf61..f73a6017ea 100644 --- a/model_hyperflex_tracked_file.go +++ b/model_hyperflex_tracked_file.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -83,6 +83,11 @@ func (o *HyperflexTrackedFile) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "hyperflex.TrackedFile" of the ClassId field. +func (o *HyperflexTrackedFile) GetDefaultClassId() interface{} { + return "hyperflex.TrackedFile" +} + // GetObjectType returns the ObjectType field value func (o *HyperflexTrackedFile) GetObjectType() string { if o == nil { @@ -107,6 +112,11 @@ func (o *HyperflexTrackedFile) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "hyperflex.TrackedFile" of the ObjectType field. +func (o *HyperflexTrackedFile) GetDefaultObjectType() interface{} { + return "hyperflex.TrackedFile" +} + // GetFilePath returns the FilePath field value if set, zero value otherwise (both if not set or set to explicit null). func (o *HyperflexTrackedFile) GetFilePath() HyperflexFilePath { if o == nil || IsNil(o.FilePath.Get()) { @@ -200,7 +210,13 @@ func (o HyperflexTrackedFile) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.FilePath.IsSet() { toSerialize["FilePath"] = o.FilePath.Get() @@ -225,6 +241,13 @@ func (o *HyperflexTrackedFile) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -234,11 +257,23 @@ func (o *HyperflexTrackedFile) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type HyperflexTrackedFileWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_hyperflex_ucsm_config_policy.go b/model_hyperflex_ucsm_config_policy.go index c09c873f23..52c4258198 100644 --- a/model_hyperflex_ucsm_config_policy.go +++ b/model_hyperflex_ucsm_config_policy.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -31,7 +31,7 @@ type HyperflexUcsmConfigPolicy struct { KvmIpRange NullableHyperflexIpAddrRange `json:"KvmIpRange,omitempty"` MacPrefixRange NullableHyperflexMacAddrPrefixRange `json:"MacPrefixRange,omitempty"` // The server firmware bundle version used for server components such as CIMC, adapters, BIOS, etc. - ServerFirmwareVersion *string `json:"ServerFirmwareVersion,omitempty"` + ServerFirmwareVersion *string `json:"ServerFirmwareVersion,omitempty" validate:"regexp=(^3\\\\.[1-9]\\\\([1-9][a-z]\\\\)$|^[4-9]\\\\.[0-9]\\\\([1-9][a-z]\\\\)$)"` // An array of relationships to hyperflexClusterProfile resources. ClusterProfiles []HyperflexClusterProfileRelationship `json:"ClusterProfiles,omitempty"` Organization NullableOrganizationOrganizationRelationship `json:"Organization,omitempty"` @@ -87,6 +87,11 @@ func (o *HyperflexUcsmConfigPolicy) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "hyperflex.UcsmConfigPolicy" of the ClassId field. +func (o *HyperflexUcsmConfigPolicy) GetDefaultClassId() interface{} { + return "hyperflex.UcsmConfigPolicy" +} + // GetObjectType returns the ObjectType field value func (o *HyperflexUcsmConfigPolicy) GetObjectType() string { if o == nil { @@ -111,6 +116,11 @@ func (o *HyperflexUcsmConfigPolicy) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "hyperflex.UcsmConfigPolicy" of the ObjectType field. +func (o *HyperflexUcsmConfigPolicy) GetDefaultObjectType() interface{} { + return "hyperflex.UcsmConfigPolicy" +} + // GetKvmIpRange returns the KvmIpRange field value if set, zero value otherwise (both if not set or set to explicit null). func (o *HyperflexUcsmConfigPolicy) GetKvmIpRange() HyperflexIpAddrRange { if o == nil || IsNil(o.KvmIpRange.Get()) { @@ -250,7 +260,7 @@ func (o *HyperflexUcsmConfigPolicy) GetClusterProfilesOk() ([]HyperflexClusterPr // HasClusterProfiles returns a boolean if a field has been set. func (o *HyperflexUcsmConfigPolicy) HasClusterProfiles() bool { - if o != nil && IsNil(o.ClusterProfiles) { + if o != nil && !IsNil(o.ClusterProfiles) { return true } @@ -323,7 +333,13 @@ func (o HyperflexUcsmConfigPolicy) ToMap() (map[string]interface{}, error) { if errPolicyAbstractPolicy != nil { return map[string]interface{}{}, errPolicyAbstractPolicy } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.KvmIpRange.IsSet() { toSerialize["KvmIpRange"] = o.KvmIpRange.Get() @@ -357,6 +373,13 @@ func (o *HyperflexUcsmConfigPolicy) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -366,11 +389,23 @@ func (o *HyperflexUcsmConfigPolicy) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type HyperflexUcsmConfigPolicyWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` @@ -379,7 +414,7 @@ func (o *HyperflexUcsmConfigPolicy) UnmarshalJSON(data []byte) (err error) { KvmIpRange NullableHyperflexIpAddrRange `json:"KvmIpRange,omitempty"` MacPrefixRange NullableHyperflexMacAddrPrefixRange `json:"MacPrefixRange,omitempty"` // The server firmware bundle version used for server components such as CIMC, adapters, BIOS, etc. - ServerFirmwareVersion *string `json:"ServerFirmwareVersion,omitempty"` + ServerFirmwareVersion *string `json:"ServerFirmwareVersion,omitempty" validate:"regexp=(^3\\\\.[1-9]\\\\([1-9][a-z]\\\\)$|^[4-9]\\\\.[0-9]\\\\([1-9][a-z]\\\\)$)"` // An array of relationships to hyperflexClusterProfile resources. ClusterProfiles []HyperflexClusterProfileRelationship `json:"ClusterProfiles,omitempty"` Organization NullableOrganizationOrganizationRelationship `json:"Organization,omitempty"` diff --git a/model_hyperflex_ucsm_config_policy_list.go b/model_hyperflex_ucsm_config_policy_list.go index 0229f2ae1e..e8e420ced4 100644 --- a/model_hyperflex_ucsm_config_policy_list.go +++ b/model_hyperflex_ucsm_config_policy_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *HyperflexUcsmConfigPolicyList) GetResultsOk() ([]HyperflexUcsmConfigPol // HasResults returns a boolean if a field has been set. func (o *HyperflexUcsmConfigPolicyList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *HyperflexUcsmConfigPolicyList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *HyperflexUcsmConfigPolicyList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type HyperflexUcsmConfigPolicyListWithoutEmbeddedStruct struct { // The total number of 'hyperflex.UcsmConfigPolicy' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_hyperflex_ucsm_config_policy_relationship.go b/model_hyperflex_ucsm_config_policy_relationship.go index 6e2957c086..0f7d802413 100644 --- a/model_hyperflex_ucsm_config_policy_relationship.go +++ b/model_hyperflex_ucsm_config_policy_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_hyperflex_ucsm_config_policy_response.go b/model_hyperflex_ucsm_config_policy_response.go index f1683da1ca..5b9b6952bd 100644 --- a/model_hyperflex_ucsm_config_policy_response.go +++ b/model_hyperflex_ucsm_config_policy_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_hyperflex_vcenter_config_policy.go b/model_hyperflex_vcenter_config_policy.go index 401225ee8c..b4369ea7a3 100644 --- a/model_hyperflex_vcenter_config_policy.go +++ b/model_hyperflex_vcenter_config_policy.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -29,9 +29,9 @@ type HyperflexVcenterConfigPolicy struct { // The fully-qualified name of the instantiated, concrete type. The value should be the same as the 'ClassId' property. ObjectType string `json:"ObjectType"` // The vCenter datacenter name. - DataCenter *string `json:"DataCenter,omitempty"` + DataCenter *string `json:"DataCenter,omitempty" validate:"regexp=^[a-zA-Z0-9~!@#$%&*()-_][a-zA-Z0-9~!@#$%&* ()-_]{0,79}$"` // The vCenter server FQDN or IP. - Hostname *string `json:"Hostname,omitempty"` + Hostname *string `json:"Hostname,omitempty" validate:"regexp=^[A-Za-z]([A-Za-z0-9-]*[A-Za-z0-9])?$|^[A-Za-z0-9]([A-Za-z0-9-]*[A-Za-z0-9])?(\\\\.[A-Za-z0-9]([A-Za-z0-9-]*[A-Za-z0-9])?)*(\\\\.[A-Za-z]([A-Za-z0-9-]*[A-Za-z0-9])?)$|^([1-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\\\.([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\\\.([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\\\.([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])$"` // Indicates whether the value of the 'password' property has been set. IsPasswordSet *bool `json:"IsPasswordSet,omitempty"` // The password for authenticating with vCenter. Follow the corresponding password policy governed by vCenter. @@ -39,7 +39,7 @@ type HyperflexVcenterConfigPolicy struct { // Overrides the default vCenter Single Sign-On URL. Do not specify unless instructed by Cisco TAC. SsoUrl *string `json:"SsoUrl,omitempty"` // The vCenter username (e.g. administrator@vsphere.local). - Username *string `json:"Username,omitempty"` + Username *string `json:"Username,omitempty" validate:"regexp=^$|^([a-zA-Z0-9._-]+)@([a-zA-Z0-9._-]+)$"` // An array of relationships to hyperflexClusterProfile resources. ClusterProfiles []HyperflexClusterProfileRelationship `json:"ClusterProfiles,omitempty"` Organization NullableOrganizationOrganizationRelationship `json:"Organization,omitempty"` @@ -95,6 +95,11 @@ func (o *HyperflexVcenterConfigPolicy) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "hyperflex.VcenterConfigPolicy" of the ClassId field. +func (o *HyperflexVcenterConfigPolicy) GetDefaultClassId() interface{} { + return "hyperflex.VcenterConfigPolicy" +} + // GetObjectType returns the ObjectType field value func (o *HyperflexVcenterConfigPolicy) GetObjectType() string { if o == nil { @@ -119,6 +124,11 @@ func (o *HyperflexVcenterConfigPolicy) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "hyperflex.VcenterConfigPolicy" of the ObjectType field. +func (o *HyperflexVcenterConfigPolicy) GetDefaultObjectType() interface{} { + return "hyperflex.VcenterConfigPolicy" +} + // GetDataCenter returns the DataCenter field value if set, zero value otherwise. func (o *HyperflexVcenterConfigPolicy) GetDataCenter() string { if o == nil || IsNil(o.DataCenter) { @@ -332,7 +342,7 @@ func (o *HyperflexVcenterConfigPolicy) GetClusterProfilesOk() ([]HyperflexCluste // HasClusterProfiles returns a boolean if a field has been set. func (o *HyperflexVcenterConfigPolicy) HasClusterProfiles() bool { - if o != nil && IsNil(o.ClusterProfiles) { + if o != nil && !IsNil(o.ClusterProfiles) { return true } @@ -405,7 +415,13 @@ func (o HyperflexVcenterConfigPolicy) ToMap() (map[string]interface{}, error) { if errPolicyAbstractPolicy != nil { return map[string]interface{}{}, errPolicyAbstractPolicy } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.DataCenter) { toSerialize["DataCenter"] = o.DataCenter @@ -448,6 +464,13 @@ func (o *HyperflexVcenterConfigPolicy) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -457,20 +480,32 @@ func (o *HyperflexVcenterConfigPolicy) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type HyperflexVcenterConfigPolicyWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` // The fully-qualified name of the instantiated, concrete type. The value should be the same as the 'ClassId' property. ObjectType string `json:"ObjectType"` // The vCenter datacenter name. - DataCenter *string `json:"DataCenter,omitempty"` + DataCenter *string `json:"DataCenter,omitempty" validate:"regexp=^[a-zA-Z0-9~!@#$%&*()-_][a-zA-Z0-9~!@#$%&* ()-_]{0,79}$"` // The vCenter server FQDN or IP. - Hostname *string `json:"Hostname,omitempty"` + Hostname *string `json:"Hostname,omitempty" validate:"regexp=^[A-Za-z]([A-Za-z0-9-]*[A-Za-z0-9])?$|^[A-Za-z0-9]([A-Za-z0-9-]*[A-Za-z0-9])?(\\\\.[A-Za-z0-9]([A-Za-z0-9-]*[A-Za-z0-9])?)*(\\\\.[A-Za-z]([A-Za-z0-9-]*[A-Za-z0-9])?)$|^([1-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\\\.([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\\\.([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\\\.([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])$"` // Indicates whether the value of the 'password' property has been set. IsPasswordSet *bool `json:"IsPasswordSet,omitempty"` // The password for authenticating with vCenter. Follow the corresponding password policy governed by vCenter. @@ -478,7 +513,7 @@ func (o *HyperflexVcenterConfigPolicy) UnmarshalJSON(data []byte) (err error) { // Overrides the default vCenter Single Sign-On URL. Do not specify unless instructed by Cisco TAC. SsoUrl *string `json:"SsoUrl,omitempty"` // The vCenter username (e.g. administrator@vsphere.local). - Username *string `json:"Username,omitempty"` + Username *string `json:"Username,omitempty" validate:"regexp=^$|^([a-zA-Z0-9._-]+)@([a-zA-Z0-9._-]+)$"` // An array of relationships to hyperflexClusterProfile resources. ClusterProfiles []HyperflexClusterProfileRelationship `json:"ClusterProfiles,omitempty"` Organization NullableOrganizationOrganizationRelationship `json:"Organization,omitempty"` diff --git a/model_hyperflex_vcenter_config_policy_list.go b/model_hyperflex_vcenter_config_policy_list.go index f98a9866da..73997b4ec0 100644 --- a/model_hyperflex_vcenter_config_policy_list.go +++ b/model_hyperflex_vcenter_config_policy_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *HyperflexVcenterConfigPolicyList) GetResultsOk() ([]HyperflexVcenterCon // HasResults returns a boolean if a field has been set. func (o *HyperflexVcenterConfigPolicyList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *HyperflexVcenterConfigPolicyList) UnmarshalJSON(data []byte) (err error "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *HyperflexVcenterConfigPolicyList) UnmarshalJSON(data []byte) (err error } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type HyperflexVcenterConfigPolicyListWithoutEmbeddedStruct struct { // The total number of 'hyperflex.VcenterConfigPolicy' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_hyperflex_vcenter_config_policy_relationship.go b/model_hyperflex_vcenter_config_policy_relationship.go index 0a32888e85..430570ede4 100644 --- a/model_hyperflex_vcenter_config_policy_relationship.go +++ b/model_hyperflex_vcenter_config_policy_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_hyperflex_vcenter_config_policy_response.go b/model_hyperflex_vcenter_config_policy_response.go index 492fb681df..be90d9f4b4 100644 --- a/model_hyperflex_vcenter_config_policy_response.go +++ b/model_hyperflex_vcenter_config_policy_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_hyperflex_vcenter_configuration.go b/model_hyperflex_vcenter_configuration.go index e409c77bff..0f904c2811 100644 --- a/model_hyperflex_vcenter_configuration.go +++ b/model_hyperflex_vcenter_configuration.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -90,6 +90,11 @@ func (o *HyperflexVcenterConfiguration) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "hyperflex.VcenterConfiguration" of the ClassId field. +func (o *HyperflexVcenterConfiguration) GetDefaultClassId() interface{} { + return "hyperflex.VcenterConfiguration" +} + // GetObjectType returns the ObjectType field value func (o *HyperflexVcenterConfiguration) GetObjectType() string { if o == nil { @@ -114,6 +119,11 @@ func (o *HyperflexVcenterConfiguration) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "hyperflex.VcenterConfiguration" of the ObjectType field. +func (o *HyperflexVcenterConfiguration) GetDefaultObjectType() interface{} { + return "hyperflex.VcenterConfiguration" +} + // GetClusterId returns the ClusterId field value if set, zero value otherwise. func (o *HyperflexVcenterConfiguration) GetClusterId() string { if o == nil || IsNil(o.ClusterId) { @@ -292,7 +302,13 @@ func (o HyperflexVcenterConfiguration) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.ClusterId) { toSerialize["ClusterId"] = o.ClusterId @@ -326,6 +342,13 @@ func (o *HyperflexVcenterConfiguration) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -335,11 +358,23 @@ func (o *HyperflexVcenterConfiguration) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type HyperflexVcenterConfigurationWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_hyperflex_virtual_machine.go b/model_hyperflex_virtual_machine.go index abf52a2407..b657c8cf87 100644 --- a/model_hyperflex_virtual_machine.go +++ b/model_hyperflex_virtual_machine.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -85,6 +85,11 @@ func (o *HyperflexVirtualMachine) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "hyperflex.VirtualMachine" of the ClassId field. +func (o *HyperflexVirtualMachine) GetDefaultClassId() interface{} { + return "hyperflex.VirtualMachine" +} + // GetObjectType returns the ObjectType field value func (o *HyperflexVirtualMachine) GetObjectType() string { if o == nil { @@ -109,6 +114,11 @@ func (o *HyperflexVirtualMachine) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "hyperflex.VirtualMachine" of the ObjectType field. +func (o *HyperflexVirtualMachine) GetDefaultObjectType() interface{} { + return "hyperflex.VirtualMachine" +} + // GetRunTimeInfo returns the RunTimeInfo field value if set, zero value otherwise (both if not set or set to explicit null). func (o *HyperflexVirtualMachine) GetRunTimeInfo() HyperflexVirtualMachineRuntimeInfo { if o == nil || IsNil(o.RunTimeInfo.Get()) { @@ -234,7 +244,13 @@ func (o HyperflexVirtualMachine) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.RunTimeInfo.IsSet() { toSerialize["RunTimeInfo"] = o.RunTimeInfo.Get() @@ -262,6 +278,13 @@ func (o *HyperflexVirtualMachine) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -271,11 +294,23 @@ func (o *HyperflexVirtualMachine) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type HyperflexVirtualMachineWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_hyperflex_virtual_machine_runtime_info.go b/model_hyperflex_virtual_machine_runtime_info.go index f7bb43dc0c..248706e344 100644 --- a/model_hyperflex_virtual_machine_runtime_info.go +++ b/model_hyperflex_virtual_machine_runtime_info.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -123,6 +123,11 @@ func (o *HyperflexVirtualMachineRuntimeInfo) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "hyperflex.VirtualMachineRuntimeInfo" of the ClassId field. +func (o *HyperflexVirtualMachineRuntimeInfo) GetDefaultClassId() interface{} { + return "hyperflex.VirtualMachineRuntimeInfo" +} + // GetObjectType returns the ObjectType field value func (o *HyperflexVirtualMachineRuntimeInfo) GetObjectType() string { if o == nil { @@ -147,6 +152,11 @@ func (o *HyperflexVirtualMachineRuntimeInfo) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "hyperflex.VirtualMachineRuntimeInfo" of the ObjectType field. +func (o *HyperflexVirtualMachineRuntimeInfo) GetDefaultObjectType() interface{} { + return "hyperflex.VirtualMachineRuntimeInfo" +} + // GetBiosUuid returns the BiosUuid field value if set, zero value otherwise. func (o *HyperflexVirtualMachineRuntimeInfo) GetBiosUuid() string { if o == nil || IsNil(o.BiosUuid) { @@ -616,7 +626,7 @@ func (o *HyperflexVirtualMachineRuntimeInfo) GetNetworksOk() ([]string, bool) { // HasNetworks returns a boolean if a field has been set. func (o *HyperflexVirtualMachineRuntimeInfo) HasNetworks() bool { - if o != nil && IsNil(o.Networks) { + if o != nil && !IsNil(o.Networks) { return true } @@ -870,7 +880,13 @@ func (o HyperflexVirtualMachineRuntimeInfo) ToMap() (map[string]interface{}, err if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.BiosUuid) { toSerialize["BiosUuid"] = o.BiosUuid @@ -955,6 +971,13 @@ func (o *HyperflexVirtualMachineRuntimeInfo) UnmarshalJSON(data []byte) (err err "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -964,11 +987,23 @@ func (o *HyperflexVirtualMachineRuntimeInfo) UnmarshalJSON(data []byte) (err err } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type HyperflexVirtualMachineRuntimeInfoWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_hyperflex_vm_backup_info.go b/model_hyperflex_vm_backup_info.go index 705b87e578..41c021eb93 100644 --- a/model_hyperflex_vm_backup_info.go +++ b/model_hyperflex_vm_backup_info.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -103,6 +103,11 @@ func (o *HyperflexVmBackupInfo) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "hyperflex.VmBackupInfo" of the ClassId field. +func (o *HyperflexVmBackupInfo) GetDefaultClassId() interface{} { + return "hyperflex.VmBackupInfo" +} + // GetObjectType returns the ObjectType field value func (o *HyperflexVmBackupInfo) GetObjectType() string { if o == nil { @@ -127,6 +132,11 @@ func (o *HyperflexVmBackupInfo) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "hyperflex.VmBackupInfo" of the ObjectType field. +func (o *HyperflexVmBackupInfo) GetDefaultObjectType() interface{} { + return "hyperflex.VmBackupInfo" +} + // GetBackupStatus returns the BackupStatus field value if set, zero value otherwise. func (o *HyperflexVmBackupInfo) GetBackupStatus() string { if o == nil || IsNil(o.BackupStatus) { @@ -223,7 +233,7 @@ func (o *HyperflexVmBackupInfo) GetClusterIdProtectionInfoMapOk() ([]HyperflexMa // HasClusterIdProtectionInfoMap returns a boolean if a field has been set. func (o *HyperflexVmBackupInfo) HasClusterIdProtectionInfoMap() bool { - if o != nil && IsNil(o.ClusterIdProtectionInfoMap) { + if o != nil && !IsNil(o.ClusterIdProtectionInfoMap) { return true } @@ -395,7 +405,7 @@ func (o *HyperflexVmBackupInfo) GetScheduleOk() ([]HyperflexReplicationClusterRe // HasSchedule returns a boolean if a field has been set. func (o *HyperflexVmBackupInfo) HasSchedule() bool { - if o != nil && IsNil(o.Schedule) { + if o != nil && !IsNil(o.Schedule) { return true } @@ -736,7 +746,13 @@ func (o HyperflexVmBackupInfo) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.BackupStatus) { toSerialize["BackupStatus"] = o.BackupStatus @@ -803,6 +819,13 @@ func (o *HyperflexVmBackupInfo) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -812,11 +835,23 @@ func (o *HyperflexVmBackupInfo) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type HyperflexVmBackupInfoWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_hyperflex_vm_backup_info_list.go b/model_hyperflex_vm_backup_info_list.go index d3f45d0e05..3f37a87bb1 100644 --- a/model_hyperflex_vm_backup_info_list.go +++ b/model_hyperflex_vm_backup_info_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *HyperflexVmBackupInfoList) GetResultsOk() ([]HyperflexVmBackupInfo, boo // HasResults returns a boolean if a field has been set. func (o *HyperflexVmBackupInfoList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *HyperflexVmBackupInfoList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *HyperflexVmBackupInfoList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type HyperflexVmBackupInfoListWithoutEmbeddedStruct struct { // The total number of 'hyperflex.VmBackupInfo' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_hyperflex_vm_backup_info_relationship.go b/model_hyperflex_vm_backup_info_relationship.go index 19303dde62..2c77bc2af9 100644 --- a/model_hyperflex_vm_backup_info_relationship.go +++ b/model_hyperflex_vm_backup_info_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_hyperflex_vm_backup_info_response.go b/model_hyperflex_vm_backup_info_response.go index d13731984a..b464263597 100644 --- a/model_hyperflex_vm_backup_info_response.go +++ b/model_hyperflex_vm_backup_info_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_hyperflex_vm_import_operation.go b/model_hyperflex_vm_import_operation.go index bbf9cbc568..7d33dc5430 100644 --- a/model_hyperflex_vm_import_operation.go +++ b/model_hyperflex_vm_import_operation.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -82,6 +82,11 @@ func (o *HyperflexVmImportOperation) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "hyperflex.VmImportOperation" of the ClassId field. +func (o *HyperflexVmImportOperation) GetDefaultClassId() interface{} { + return "hyperflex.VmImportOperation" +} + // GetObjectType returns the ObjectType field value func (o *HyperflexVmImportOperation) GetObjectType() string { if o == nil { @@ -106,6 +111,11 @@ func (o *HyperflexVmImportOperation) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "hyperflex.VmImportOperation" of the ObjectType field. +func (o *HyperflexVmImportOperation) GetDefaultObjectType() interface{} { + return "hyperflex.VmImportOperation" +} + // GetDeviceMoid returns the DeviceMoid field value if set, zero value otherwise (both if not set or set to explicit null). func (o *HyperflexVmImportOperation) GetDeviceMoid() AssetDeviceRegistrationRelationship { if o == nil || IsNil(o.DeviceMoid.Get()) { @@ -210,7 +220,13 @@ func (o HyperflexVmImportOperation) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.DeviceMoid.IsSet() { toSerialize["DeviceMoid"] = o.DeviceMoid.Get() @@ -235,6 +251,13 @@ func (o *HyperflexVmImportOperation) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -244,11 +267,23 @@ func (o *HyperflexVmImportOperation) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type HyperflexVmImportOperationWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_hyperflex_vm_import_operation_list.go b/model_hyperflex_vm_import_operation_list.go index e4b3d4bc45..7cdf6917a6 100644 --- a/model_hyperflex_vm_import_operation_list.go +++ b/model_hyperflex_vm_import_operation_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *HyperflexVmImportOperationList) GetResultsOk() ([]HyperflexVmImportOper // HasResults returns a boolean if a field has been set. func (o *HyperflexVmImportOperationList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *HyperflexVmImportOperationList) UnmarshalJSON(data []byte) (err error) "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *HyperflexVmImportOperationList) UnmarshalJSON(data []byte) (err error) } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type HyperflexVmImportOperationListWithoutEmbeddedStruct struct { // The total number of 'hyperflex.VmImportOperation' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_hyperflex_vm_import_operation_response.go b/model_hyperflex_vm_import_operation_response.go index c6262f0648..ba08c34acf 100644 --- a/model_hyperflex_vm_import_operation_response.go +++ b/model_hyperflex_vm_import_operation_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_hyperflex_vm_protection_space_usage.go b/model_hyperflex_vm_protection_space_usage.go index dbf08e8673..10f02211c1 100644 --- a/model_hyperflex_vm_protection_space_usage.go +++ b/model_hyperflex_vm_protection_space_usage.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -82,6 +82,11 @@ func (o *HyperflexVmProtectionSpaceUsage) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "hyperflex.VmProtectionSpaceUsage" of the ClassId field. +func (o *HyperflexVmProtectionSpaceUsage) GetDefaultClassId() interface{} { + return "hyperflex.VmProtectionSpaceUsage" +} + // GetObjectType returns the ObjectType field value func (o *HyperflexVmProtectionSpaceUsage) GetObjectType() string { if o == nil { @@ -106,6 +111,11 @@ func (o *HyperflexVmProtectionSpaceUsage) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "hyperflex.VmProtectionSpaceUsage" of the ObjectType field. +func (o *HyperflexVmProtectionSpaceUsage) GetDefaultObjectType() interface{} { + return "hyperflex.VmProtectionSpaceUsage" +} + // GetSpaceUsage returns the SpaceUsage field value if set, zero value otherwise. func (o *HyperflexVmProtectionSpaceUsage) GetSpaceUsage() int64 { if o == nil || IsNil(o.SpaceUsage) { @@ -156,7 +166,13 @@ func (o HyperflexVmProtectionSpaceUsage) ToMap() (map[string]interface{}, error) if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.SpaceUsage) { toSerialize["SpaceUsage"] = o.SpaceUsage @@ -178,6 +194,13 @@ func (o *HyperflexVmProtectionSpaceUsage) UnmarshalJSON(data []byte) (err error) "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -187,11 +210,23 @@ func (o *HyperflexVmProtectionSpaceUsage) UnmarshalJSON(data []byte) (err error) } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type HyperflexVmProtectionSpaceUsageWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_hyperflex_vm_restore_operation.go b/model_hyperflex_vm_restore_operation.go index ca97bcec69..e58cc4bee0 100644 --- a/model_hyperflex_vm_restore_operation.go +++ b/model_hyperflex_vm_restore_operation.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -94,6 +94,11 @@ func (o *HyperflexVmRestoreOperation) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "hyperflex.VmRestoreOperation" of the ClassId field. +func (o *HyperflexVmRestoreOperation) GetDefaultClassId() interface{} { + return "hyperflex.VmRestoreOperation" +} + // GetObjectType returns the ObjectType field value func (o *HyperflexVmRestoreOperation) GetObjectType() string { if o == nil { @@ -118,6 +123,11 @@ func (o *HyperflexVmRestoreOperation) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "hyperflex.VmRestoreOperation" of the ObjectType field. +func (o *HyperflexVmRestoreOperation) GetDefaultObjectType() interface{} { + return "hyperflex.VmRestoreOperation" +} + // GetNewName returns the NewName field value if set, zero value otherwise. func (o *HyperflexVmRestoreOperation) GetNewName() string { if o == nil || IsNil(o.NewName) { @@ -404,7 +414,13 @@ func (o HyperflexVmRestoreOperation) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.NewName) { toSerialize["NewName"] = o.NewName @@ -444,6 +460,13 @@ func (o *HyperflexVmRestoreOperation) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -453,11 +476,23 @@ func (o *HyperflexVmRestoreOperation) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type HyperflexVmRestoreOperationWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_hyperflex_vm_restore_operation_list.go b/model_hyperflex_vm_restore_operation_list.go index 9cd1d85d10..f986ef5ff9 100644 --- a/model_hyperflex_vm_restore_operation_list.go +++ b/model_hyperflex_vm_restore_operation_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *HyperflexVmRestoreOperationList) GetResultsOk() ([]HyperflexVmRestoreOp // HasResults returns a boolean if a field has been set. func (o *HyperflexVmRestoreOperationList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *HyperflexVmRestoreOperationList) UnmarshalJSON(data []byte) (err error) "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *HyperflexVmRestoreOperationList) UnmarshalJSON(data []byte) (err error) } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type HyperflexVmRestoreOperationListWithoutEmbeddedStruct struct { // The total number of 'hyperflex.VmRestoreOperation' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_hyperflex_vm_restore_operation_response.go b/model_hyperflex_vm_restore_operation_response.go index bfc68d38dd..291b905ab7 100644 --- a/model_hyperflex_vm_restore_operation_response.go +++ b/model_hyperflex_vm_restore_operation_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_hyperflex_vm_snapshot_info.go b/model_hyperflex_vm_snapshot_info.go index a0faf385d2..9e7fdea787 100644 --- a/model_hyperflex_vm_snapshot_info.go +++ b/model_hyperflex_vm_snapshot_info.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -108,6 +108,11 @@ func (o *HyperflexVmSnapshotInfo) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "hyperflex.VmSnapshotInfo" of the ClassId field. +func (o *HyperflexVmSnapshotInfo) GetDefaultClassId() interface{} { + return "hyperflex.VmSnapshotInfo" +} + // GetObjectType returns the ObjectType field value func (o *HyperflexVmSnapshotInfo) GetObjectType() string { if o == nil { @@ -132,6 +137,11 @@ func (o *HyperflexVmSnapshotInfo) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "hyperflex.VmSnapshotInfo" of the ObjectType field. +func (o *HyperflexVmSnapshotInfo) GetDefaultObjectType() interface{} { + return "hyperflex.VmSnapshotInfo" +} + // GetClusterIdSnapMap returns the ClusterIdSnapMap field value if set, zero value otherwise (both if not set or set to explicit null). func (o *HyperflexVmSnapshotInfo) GetClusterIdSnapMap() []HyperflexMapClusterIdToStSnapshotPoint { if o == nil { @@ -153,7 +163,7 @@ func (o *HyperflexVmSnapshotInfo) GetClusterIdSnapMapOk() ([]HyperflexMapCluster // HasClusterIdSnapMap returns a boolean if a field has been set. func (o *HyperflexVmSnapshotInfo) HasClusterIdSnapMap() bool { - if o != nil && IsNil(o.ClusterIdSnapMap) { + if o != nil && !IsNil(o.ClusterIdSnapMap) { return true } @@ -804,7 +814,13 @@ func (o HyperflexVmSnapshotInfo) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.ClusterIdSnapMap != nil { toSerialize["ClusterIdSnapMap"] = o.ClusterIdSnapMap @@ -877,6 +893,13 @@ func (o *HyperflexVmSnapshotInfo) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -886,11 +909,23 @@ func (o *HyperflexVmSnapshotInfo) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type HyperflexVmSnapshotInfoWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_hyperflex_vm_snapshot_info_list.go b/model_hyperflex_vm_snapshot_info_list.go index ea0f7fa233..0e24cd45ec 100644 --- a/model_hyperflex_vm_snapshot_info_list.go +++ b/model_hyperflex_vm_snapshot_info_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *HyperflexVmSnapshotInfoList) GetResultsOk() ([]HyperflexVmSnapshotInfo, // HasResults returns a boolean if a field has been set. func (o *HyperflexVmSnapshotInfoList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *HyperflexVmSnapshotInfoList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *HyperflexVmSnapshotInfoList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type HyperflexVmSnapshotInfoListWithoutEmbeddedStruct struct { // The total number of 'hyperflex.VmSnapshotInfo' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_hyperflex_vm_snapshot_info_relationship.go b/model_hyperflex_vm_snapshot_info_relationship.go index 391660ba3f..dd40399f87 100644 --- a/model_hyperflex_vm_snapshot_info_relationship.go +++ b/model_hyperflex_vm_snapshot_info_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_hyperflex_vm_snapshot_info_response.go b/model_hyperflex_vm_snapshot_info_response.go index 7de8b27b4d..133bd70530 100644 --- a/model_hyperflex_vm_snapshot_info_response.go +++ b/model_hyperflex_vm_snapshot_info_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_hyperflex_volume.go b/model_hyperflex_volume.go index dcb6105b7a..a619e301bf 100644 --- a/model_hyperflex_volume.go +++ b/model_hyperflex_volume.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -103,6 +103,11 @@ func (o *HyperflexVolume) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "hyperflex.Volume" of the ClassId field. +func (o *HyperflexVolume) GetDefaultClassId() interface{} { + return "hyperflex.Volume" +} + // GetObjectType returns the ObjectType field value func (o *HyperflexVolume) GetObjectType() string { if o == nil { @@ -127,6 +132,11 @@ func (o *HyperflexVolume) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "hyperflex.Volume" of the ObjectType field. +func (o *HyperflexVolume) GetDefaultObjectType() interface{} { + return "hyperflex.Volume" +} + // GetCapacity returns the Capacity field value if set, zero value otherwise. func (o *HyperflexVolume) GetCapacity() int64 { if o == nil || IsNil(o.Capacity) { @@ -551,7 +561,13 @@ func (o HyperflexVolume) ToMap() (map[string]interface{}, error) { if errStorageBaseVolume != nil { return map[string]interface{}{}, errStorageBaseVolume } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Capacity) { toSerialize["Capacity"] = o.Capacity @@ -606,6 +622,13 @@ func (o *HyperflexVolume) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -615,11 +638,23 @@ func (o *HyperflexVolume) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type HyperflexVolumeWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_hyperflex_volume_list.go b/model_hyperflex_volume_list.go index 42365eff49..adb0f4fc62 100644 --- a/model_hyperflex_volume_list.go +++ b/model_hyperflex_volume_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *HyperflexVolumeList) GetResultsOk() ([]HyperflexVolume, bool) { // HasResults returns a boolean if a field has been set. func (o *HyperflexVolumeList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *HyperflexVolumeList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *HyperflexVolumeList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type HyperflexVolumeListWithoutEmbeddedStruct struct { // The total number of 'hyperflex.Volume' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_hyperflex_volume_relationship.go b/model_hyperflex_volume_relationship.go index fec54a97b7..e8fc45d971 100644 --- a/model_hyperflex_volume_relationship.go +++ b/model_hyperflex_volume_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_hyperflex_volume_response.go b/model_hyperflex_volume_response.go index 569efe5a73..a3a84752cc 100644 --- a/model_hyperflex_volume_response.go +++ b/model_hyperflex_volume_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_hyperflex_witness_configuration.go b/model_hyperflex_witness_configuration.go index 3f533d7ac1..89b3c0c140 100644 --- a/model_hyperflex_witness_configuration.go +++ b/model_hyperflex_witness_configuration.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -93,6 +93,11 @@ func (o *HyperflexWitnessConfiguration) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "hyperflex.WitnessConfiguration" of the ClassId field. +func (o *HyperflexWitnessConfiguration) GetDefaultClassId() interface{} { + return "hyperflex.WitnessConfiguration" +} + // GetObjectType returns the ObjectType field value func (o *HyperflexWitnessConfiguration) GetObjectType() string { if o == nil { @@ -117,6 +122,11 @@ func (o *HyperflexWitnessConfiguration) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "hyperflex.WitnessConfiguration" of the ObjectType field. +func (o *HyperflexWitnessConfiguration) GetDefaultObjectType() interface{} { + return "hyperflex.WitnessConfiguration" +} + // GetConnectionError returns the ConnectionError field value if set, zero value otherwise. func (o *HyperflexWitnessConfiguration) GetConnectionError() string { if o == nil || IsNil(o.ConnectionError) { @@ -370,7 +380,13 @@ func (o HyperflexWitnessConfiguration) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.ConnectionError) { toSerialize["ConnectionError"] = o.ConnectionError @@ -410,6 +426,13 @@ func (o *HyperflexWitnessConfiguration) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -419,11 +442,23 @@ func (o *HyperflexWitnessConfiguration) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type HyperflexWitnessConfigurationWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_hyperflex_witness_configuration_list.go b/model_hyperflex_witness_configuration_list.go index e0827291e4..740881646f 100644 --- a/model_hyperflex_witness_configuration_list.go +++ b/model_hyperflex_witness_configuration_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *HyperflexWitnessConfigurationList) GetResultsOk() ([]HyperflexWitnessCo // HasResults returns a boolean if a field has been set. func (o *HyperflexWitnessConfigurationList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *HyperflexWitnessConfigurationList) UnmarshalJSON(data []byte) (err erro "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *HyperflexWitnessConfigurationList) UnmarshalJSON(data []byte) (err erro } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type HyperflexWitnessConfigurationListWithoutEmbeddedStruct struct { // The total number of 'hyperflex.WitnessConfiguration' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_hyperflex_witness_configuration_response.go b/model_hyperflex_witness_configuration_response.go index 645b875004..6c334755ed 100644 --- a/model_hyperflex_witness_configuration_response.go +++ b/model_hyperflex_witness_configuration_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_hyperflex_wwxn_prefix_range.go b/model_hyperflex_wwxn_prefix_range.go index f79abebce1..b4aa1a0689 100644 --- a/model_hyperflex_wwxn_prefix_range.go +++ b/model_hyperflex_wwxn_prefix_range.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -29,9 +29,9 @@ type HyperflexWwxnPrefixRange struct { // The fully-qualified name of the instantiated, concrete type. The value should be the same as the 'ClassId' property. ObjectType string `json:"ObjectType"` // The end WWxN prefix of a WWPN/WWNN range in the form of 20:00:00:25:B5:XX. - EndAddr *string `json:"EndAddr,omitempty"` + EndAddr *string `json:"EndAddr,omitempty" validate:"regexp=^$|^20:00:00:25:B5:[0-9a-fA-F]{2}$"` // The start WWxN prefix of a WWPN/WWNN range in the form of 20:00:00:25:B5:XX. - StartAddr *string `json:"StartAddr,omitempty"` + StartAddr *string `json:"StartAddr,omitempty" validate:"regexp=^$|^20:00:00:25:B5:[0-9a-fA-F]{2}$"` AdditionalProperties map[string]interface{} } @@ -84,6 +84,11 @@ func (o *HyperflexWwxnPrefixRange) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "hyperflex.WwxnPrefixRange" of the ClassId field. +func (o *HyperflexWwxnPrefixRange) GetDefaultClassId() interface{} { + return "hyperflex.WwxnPrefixRange" +} + // GetObjectType returns the ObjectType field value func (o *HyperflexWwxnPrefixRange) GetObjectType() string { if o == nil { @@ -108,6 +113,11 @@ func (o *HyperflexWwxnPrefixRange) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "hyperflex.WwxnPrefixRange" of the ObjectType field. +func (o *HyperflexWwxnPrefixRange) GetDefaultObjectType() interface{} { + return "hyperflex.WwxnPrefixRange" +} + // GetEndAddr returns the EndAddr field value if set, zero value otherwise. func (o *HyperflexWwxnPrefixRange) GetEndAddr() string { if o == nil || IsNil(o.EndAddr) { @@ -190,7 +200,13 @@ func (o HyperflexWwxnPrefixRange) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.EndAddr) { toSerialize["EndAddr"] = o.EndAddr @@ -215,6 +231,13 @@ func (o *HyperflexWwxnPrefixRange) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -224,20 +247,32 @@ func (o *HyperflexWwxnPrefixRange) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type HyperflexWwxnPrefixRangeWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` // The fully-qualified name of the instantiated, concrete type. The value should be the same as the 'ClassId' property. ObjectType string `json:"ObjectType"` // The end WWxN prefix of a WWPN/WWNN range in the form of 20:00:00:25:B5:XX. - EndAddr *string `json:"EndAddr,omitempty"` + EndAddr *string `json:"EndAddr,omitempty" validate:"regexp=^$|^20:00:00:25:B5:[0-9a-fA-F]{2}$"` // The start WWxN prefix of a WWPN/WWNN range in the form of 20:00:00:25:B5:XX. - StartAddr *string `json:"StartAddr,omitempty"` + StartAddr *string `json:"StartAddr,omitempty" validate:"regexp=^$|^20:00:00:25:B5:[0-9a-fA-F]{2}$"` } varHyperflexWwxnPrefixRangeWithoutEmbeddedStruct := HyperflexWwxnPrefixRangeWithoutEmbeddedStruct{} diff --git a/model_i18n_message.go b/model_i18n_message.go index 62cbb280a9..54d43ed8af 100644 --- a/model_i18n_message.go +++ b/model_i18n_message.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -85,6 +85,11 @@ func (o *I18nMessage) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "i18n.Message" of the ClassId field. +func (o *I18nMessage) GetDefaultClassId() interface{} { + return "i18n.Message" +} + // GetObjectType returns the ObjectType field value func (o *I18nMessage) GetObjectType() string { if o == nil { @@ -109,6 +114,11 @@ func (o *I18nMessage) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "i18n.Message" of the ObjectType field. +func (o *I18nMessage) GetDefaultObjectType() interface{} { + return "i18n.Message" +} + // GetMessage returns the Message field value if set, zero value otherwise. func (o *I18nMessage) GetMessage() string { if o == nil || IsNil(o.Message) { @@ -194,7 +204,7 @@ func (o *I18nMessage) GetMessageParamsOk() ([]I18nMessageParam, bool) { // HasMessageParams returns a boolean if a field has been set. func (o *I18nMessage) HasMessageParams() bool { - if o != nil && IsNil(o.MessageParams) { + if o != nil && !IsNil(o.MessageParams) { return true } @@ -224,7 +234,13 @@ func (o I18nMessage) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Message) { toSerialize["Message"] = o.Message @@ -252,6 +268,13 @@ func (o *I18nMessage) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -261,11 +284,23 @@ func (o *I18nMessage) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type I18nMessageWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_i18n_message_param.go b/model_i18n_message_param.go index ee2c81a7a2..a10e77ccfd 100644 --- a/model_i18n_message_param.go +++ b/model_i18n_message_param.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -84,6 +84,11 @@ func (o *I18nMessageParam) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "i18n.MessageParam" of the ClassId field. +func (o *I18nMessageParam) GetDefaultClassId() interface{} { + return "i18n.MessageParam" +} + // GetObjectType returns the ObjectType field value func (o *I18nMessageParam) GetObjectType() string { if o == nil { @@ -108,6 +113,11 @@ func (o *I18nMessageParam) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "i18n.MessageParam" of the ObjectType field. +func (o *I18nMessageParam) GetDefaultObjectType() interface{} { + return "i18n.MessageParam" +} + // GetName returns the Name field value if set, zero value otherwise. func (o *I18nMessageParam) GetName() string { if o == nil || IsNil(o.Name) { @@ -190,7 +200,13 @@ func (o I18nMessageParam) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Name) { toSerialize["Name"] = o.Name @@ -215,6 +231,13 @@ func (o *I18nMessageParam) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -224,11 +247,23 @@ func (o *I18nMessageParam) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type I18nMessageParamWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_iaas_connector_pack.go b/model_iaas_connector_pack.go index f5850a4de3..7a6bc00ff9 100644 --- a/model_iaas_connector_pack.go +++ b/model_iaas_connector_pack.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -92,6 +92,11 @@ func (o *IaasConnectorPack) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "iaas.ConnectorPack" of the ClassId field. +func (o *IaasConnectorPack) GetDefaultClassId() interface{} { + return "iaas.ConnectorPack" +} + // GetObjectType returns the ObjectType field value func (o *IaasConnectorPack) GetObjectType() string { if o == nil { @@ -116,6 +121,11 @@ func (o *IaasConnectorPack) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "iaas.ConnectorPack" of the ObjectType field. +func (o *IaasConnectorPack) GetDefaultObjectType() interface{} { + return "iaas.ConnectorPack" +} + // GetCompleteVersion returns the CompleteVersion field value if set, zero value otherwise. func (o *IaasConnectorPack) GetCompleteVersion() string { if o == nil || IsNil(o.CompleteVersion) { @@ -169,7 +179,7 @@ func (o *IaasConnectorPack) GetDependencyNamesOk() ([]string, bool) { // HasDependencyNames returns a boolean if a field has been set. func (o *IaasConnectorPack) HasDependencyNames() bool { - if o != nil && IsNil(o.DependencyNames) { + if o != nil && !IsNil(o.DependencyNames) { return true } @@ -370,7 +380,13 @@ func (o IaasConnectorPack) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.CompleteVersion) { toSerialize["CompleteVersion"] = o.CompleteVersion @@ -410,6 +426,13 @@ func (o *IaasConnectorPack) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -419,11 +442,23 @@ func (o *IaasConnectorPack) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type IaasConnectorPackWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_iaas_connector_pack_list.go b/model_iaas_connector_pack_list.go index c9cf340f04..9822d518d2 100644 --- a/model_iaas_connector_pack_list.go +++ b/model_iaas_connector_pack_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *IaasConnectorPackList) GetResultsOk() ([]IaasConnectorPack, bool) { // HasResults returns a boolean if a field has been set. func (o *IaasConnectorPackList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *IaasConnectorPackList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *IaasConnectorPackList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type IaasConnectorPackListWithoutEmbeddedStruct struct { // The total number of 'iaas.ConnectorPack' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_iaas_connector_pack_relationship.go b/model_iaas_connector_pack_relationship.go index d016582b6a..0a6979b0bd 100644 --- a/model_iaas_connector_pack_relationship.go +++ b/model_iaas_connector_pack_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_iaas_connector_pack_response.go b/model_iaas_connector_pack_response.go index e51a12c066..70f69427da 100644 --- a/model_iaas_connector_pack_response.go +++ b/model_iaas_connector_pack_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_iaas_custom_task_info.go b/model_iaas_custom_task_info.go index 6c47b77a5a..7ac8165108 100644 --- a/model_iaas_custom_task_info.go +++ b/model_iaas_custom_task_info.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -89,6 +89,11 @@ func (o *IaasCustomTaskInfo) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "iaas.CustomTaskInfo" of the ClassId field. +func (o *IaasCustomTaskInfo) GetDefaultClassId() interface{} { + return "iaas.CustomTaskInfo" +} + // GetObjectType returns the ObjectType field value func (o *IaasCustomTaskInfo) GetObjectType() string { if o == nil { @@ -113,6 +118,11 @@ func (o *IaasCustomTaskInfo) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "iaas.CustomTaskInfo" of the ObjectType field. +func (o *IaasCustomTaskInfo) GetDefaultObjectType() interface{} { + return "iaas.CustomTaskInfo" +} + // GetTaskDescription returns the TaskDescription field value if set, zero value otherwise. func (o *IaasCustomTaskInfo) GetTaskDescription() string { if o == nil || IsNil(o.TaskDescription) { @@ -302,7 +312,13 @@ func (o IaasCustomTaskInfo) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.TaskDescription) { toSerialize["TaskDescription"] = o.TaskDescription @@ -336,6 +352,13 @@ func (o *IaasCustomTaskInfo) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -345,11 +368,23 @@ func (o *IaasCustomTaskInfo) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type IaasCustomTaskInfoWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_iaas_custom_task_info_list.go b/model_iaas_custom_task_info_list.go index b225fd7167..ac6bc352cd 100644 --- a/model_iaas_custom_task_info_list.go +++ b/model_iaas_custom_task_info_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *IaasCustomTaskInfoList) GetResultsOk() ([]IaasCustomTaskInfo, bool) { // HasResults returns a boolean if a field has been set. func (o *IaasCustomTaskInfoList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *IaasCustomTaskInfoList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *IaasCustomTaskInfoList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type IaasCustomTaskInfoListWithoutEmbeddedStruct struct { // The total number of 'iaas.CustomTaskInfo' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_iaas_custom_task_info_relationship.go b/model_iaas_custom_task_info_relationship.go index 1578719145..599739c468 100644 --- a/model_iaas_custom_task_info_relationship.go +++ b/model_iaas_custom_task_info_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_iaas_custom_task_info_response.go b/model_iaas_custom_task_info_response.go index a684811efd..b45e489d98 100644 --- a/model_iaas_custom_task_info_response.go +++ b/model_iaas_custom_task_info_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_iaas_device_status.go b/model_iaas_device_status.go index b7175e8f5c..d8f23d8b37 100644 --- a/model_iaas_device_status.go +++ b/model_iaas_device_status.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -103,6 +103,11 @@ func (o *IaasDeviceStatus) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "iaas.DeviceStatus" of the ClassId field. +func (o *IaasDeviceStatus) GetDefaultClassId() interface{} { + return "iaas.DeviceStatus" +} + // GetObjectType returns the ObjectType field value func (o *IaasDeviceStatus) GetObjectType() string { if o == nil { @@ -127,6 +132,11 @@ func (o *IaasDeviceStatus) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "iaas.DeviceStatus" of the ObjectType field. +func (o *IaasDeviceStatus) GetDefaultObjectType() interface{} { + return "iaas.DeviceStatus" +} + // GetAccountName returns the AccountName field value if set, zero value otherwise. func (o *IaasDeviceStatus) GetAccountName() string { if o == nil || IsNil(o.AccountName) { @@ -540,7 +550,13 @@ func (o IaasDeviceStatus) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.AccountName) { toSerialize["AccountName"] = o.AccountName @@ -595,6 +611,13 @@ func (o *IaasDeviceStatus) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -604,11 +627,23 @@ func (o *IaasDeviceStatus) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type IaasDeviceStatusWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_iaas_device_status_list.go b/model_iaas_device_status_list.go index 2516468db6..293ff5c1f3 100644 --- a/model_iaas_device_status_list.go +++ b/model_iaas_device_status_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *IaasDeviceStatusList) GetResultsOk() ([]IaasDeviceStatus, bool) { // HasResults returns a boolean if a field has been set. func (o *IaasDeviceStatusList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *IaasDeviceStatusList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *IaasDeviceStatusList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type IaasDeviceStatusListWithoutEmbeddedStruct struct { // The total number of 'iaas.DeviceStatus' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_iaas_device_status_relationship.go b/model_iaas_device_status_relationship.go index cba1578f1b..930414898e 100644 --- a/model_iaas_device_status_relationship.go +++ b/model_iaas_device_status_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_iaas_device_status_response.go b/model_iaas_device_status_response.go index c931436777..fb5b05ae4c 100644 --- a/model_iaas_device_status_response.go +++ b/model_iaas_device_status_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_iaas_diagnostic_messages.go b/model_iaas_diagnostic_messages.go index e5b4aa245f..e29bba1f95 100644 --- a/model_iaas_diagnostic_messages.go +++ b/model_iaas_diagnostic_messages.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -97,6 +97,11 @@ func (o *IaasDiagnosticMessages) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "iaas.DiagnosticMessages" of the ClassId field. +func (o *IaasDiagnosticMessages) GetDefaultClassId() interface{} { + return "iaas.DiagnosticMessages" +} + // GetObjectType returns the ObjectType field value func (o *IaasDiagnosticMessages) GetObjectType() string { if o == nil { @@ -121,6 +126,11 @@ func (o *IaasDiagnosticMessages) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "iaas.DiagnosticMessages" of the ObjectType field. +func (o *IaasDiagnosticMessages) GetDefaultObjectType() interface{} { + return "iaas.DiagnosticMessages" +} + // GetCategory returns the Category field value if set, zero value otherwise. func (o *IaasDiagnosticMessages) GetCategory() string { if o == nil || IsNil(o.Category) { @@ -438,7 +448,13 @@ func (o IaasDiagnosticMessages) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Category) { toSerialize["Category"] = o.Category @@ -484,6 +500,13 @@ func (o *IaasDiagnosticMessages) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -493,11 +516,23 @@ func (o *IaasDiagnosticMessages) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type IaasDiagnosticMessagesWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_iaas_diagnostic_messages_list.go b/model_iaas_diagnostic_messages_list.go index d059c25967..cf4f76acf8 100644 --- a/model_iaas_diagnostic_messages_list.go +++ b/model_iaas_diagnostic_messages_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *IaasDiagnosticMessagesList) GetResultsOk() ([]IaasDiagnosticMessages, b // HasResults returns a boolean if a field has been set. func (o *IaasDiagnosticMessagesList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *IaasDiagnosticMessagesList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *IaasDiagnosticMessagesList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type IaasDiagnosticMessagesListWithoutEmbeddedStruct struct { // The total number of 'iaas.DiagnosticMessages' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_iaas_diagnostic_messages_response.go b/model_iaas_diagnostic_messages_response.go index 734339e207..e7ce5c28d2 100644 --- a/model_iaas_diagnostic_messages_response.go +++ b/model_iaas_diagnostic_messages_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_iaas_license_info.go b/model_iaas_license_info.go index 87263a6e79..fb40f4afd7 100644 --- a/model_iaas_license_info.go +++ b/model_iaas_license_info.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -87,6 +87,11 @@ func (o *IaasLicenseInfo) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "iaas.LicenseInfo" of the ClassId field. +func (o *IaasLicenseInfo) GetDefaultClassId() interface{} { + return "iaas.LicenseInfo" +} + // GetObjectType returns the ObjectType field value func (o *IaasLicenseInfo) GetObjectType() string { if o == nil { @@ -111,6 +116,11 @@ func (o *IaasLicenseInfo) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "iaas.LicenseInfo" of the ObjectType field. +func (o *IaasLicenseInfo) GetDefaultObjectType() interface{} { + return "iaas.LicenseInfo" +} + // GetLicenseExpirationDate returns the LicenseExpirationDate field value if set, zero value otherwise. func (o *IaasLicenseInfo) GetLicenseExpirationDate() string { if o == nil || IsNil(o.LicenseExpirationDate) { @@ -164,7 +174,7 @@ func (o *IaasLicenseInfo) GetLicenseKeysInfoOk() ([]IaasLicenseKeysInfo, bool) { // HasLicenseKeysInfo returns a boolean if a field has been set. func (o *IaasLicenseInfo) HasLicenseKeysInfo() bool { - if o != nil && IsNil(o.LicenseKeysInfo) { + if o != nil && !IsNil(o.LicenseKeysInfo) { return true } @@ -229,7 +239,7 @@ func (o *IaasLicenseInfo) GetLicenseUtilizationInfoOk() ([]IaasLicenseUtilizatio // HasLicenseUtilizationInfo returns a boolean if a field has been set. func (o *IaasLicenseInfo) HasLicenseUtilizationInfo() bool { - if o != nil && IsNil(o.LicenseUtilizationInfo) { + if o != nil && !IsNil(o.LicenseUtilizationInfo) { return true } @@ -302,7 +312,13 @@ func (o IaasLicenseInfo) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.LicenseExpirationDate) { toSerialize["LicenseExpirationDate"] = o.LicenseExpirationDate @@ -336,6 +352,13 @@ func (o *IaasLicenseInfo) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -345,11 +368,23 @@ func (o *IaasLicenseInfo) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type IaasLicenseInfoWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_iaas_license_info_list.go b/model_iaas_license_info_list.go index 8e89697b9e..9f80d595e1 100644 --- a/model_iaas_license_info_list.go +++ b/model_iaas_license_info_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *IaasLicenseInfoList) GetResultsOk() ([]IaasLicenseInfo, bool) { // HasResults returns a boolean if a field has been set. func (o *IaasLicenseInfoList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *IaasLicenseInfoList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *IaasLicenseInfoList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type IaasLicenseInfoListWithoutEmbeddedStruct struct { // The total number of 'iaas.LicenseInfo' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_iaas_license_info_relationship.go b/model_iaas_license_info_relationship.go index 509b4ce035..7d2b256858 100644 --- a/model_iaas_license_info_relationship.go +++ b/model_iaas_license_info_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_iaas_license_info_response.go b/model_iaas_license_info_response.go index 44f760bcd4..dc298f56d9 100644 --- a/model_iaas_license_info_response.go +++ b/model_iaas_license_info_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_iaas_license_keys_info.go b/model_iaas_license_keys_info.go index ba0d0729ed..b60ad280bd 100644 --- a/model_iaas_license_keys_info.go +++ b/model_iaas_license_keys_info.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -88,6 +88,11 @@ func (o *IaasLicenseKeysInfo) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "iaas.LicenseKeysInfo" of the ClassId field. +func (o *IaasLicenseKeysInfo) GetDefaultClassId() interface{} { + return "iaas.LicenseKeysInfo" +} + // GetObjectType returns the ObjectType field value func (o *IaasLicenseKeysInfo) GetObjectType() string { if o == nil { @@ -112,6 +117,11 @@ func (o *IaasLicenseKeysInfo) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "iaas.LicenseKeysInfo" of the ObjectType field. +func (o *IaasLicenseKeysInfo) GetDefaultObjectType() interface{} { + return "iaas.LicenseKeysInfo" +} + // GetCount returns the Count field value if set, zero value otherwise. func (o *IaasLicenseKeysInfo) GetCount() int64 { if o == nil || IsNil(o.Count) { @@ -258,7 +268,13 @@ func (o IaasLicenseKeysInfo) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Count) { toSerialize["Count"] = o.Count @@ -289,6 +305,13 @@ func (o *IaasLicenseKeysInfo) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -298,11 +321,23 @@ func (o *IaasLicenseKeysInfo) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type IaasLicenseKeysInfoWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_iaas_license_utilization_info.go b/model_iaas_license_utilization_info.go index 85cee4526e..a9d26d4b6c 100644 --- a/model_iaas_license_utilization_info.go +++ b/model_iaas_license_utilization_info.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -88,6 +88,11 @@ func (o *IaasLicenseUtilizationInfo) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "iaas.LicenseUtilizationInfo" of the ClassId field. +func (o *IaasLicenseUtilizationInfo) GetDefaultClassId() interface{} { + return "iaas.LicenseUtilizationInfo" +} + // GetObjectType returns the ObjectType field value func (o *IaasLicenseUtilizationInfo) GetObjectType() string { if o == nil { @@ -112,6 +117,11 @@ func (o *IaasLicenseUtilizationInfo) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "iaas.LicenseUtilizationInfo" of the ObjectType field. +func (o *IaasLicenseUtilizationInfo) GetDefaultObjectType() interface{} { + return "iaas.LicenseUtilizationInfo" +} + // GetActualUsed returns the ActualUsed field value if set, zero value otherwise. func (o *IaasLicenseUtilizationInfo) GetActualUsed() int64 { if o == nil || IsNil(o.ActualUsed) { @@ -258,7 +268,13 @@ func (o IaasLicenseUtilizationInfo) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.ActualUsed) { toSerialize["ActualUsed"] = o.ActualUsed @@ -289,6 +305,13 @@ func (o *IaasLicenseUtilizationInfo) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -298,11 +321,23 @@ func (o *IaasLicenseUtilizationInfo) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type IaasLicenseUtilizationInfoWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_iaas_most_run_tasks.go b/model_iaas_most_run_tasks.go index b5f558a5d9..f7cb01a505 100644 --- a/model_iaas_most_run_tasks.go +++ b/model_iaas_most_run_tasks.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -89,6 +89,11 @@ func (o *IaasMostRunTasks) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "iaas.MostRunTasks" of the ClassId field. +func (o *IaasMostRunTasks) GetDefaultClassId() interface{} { + return "iaas.MostRunTasks" +} + // GetObjectType returns the ObjectType field value func (o *IaasMostRunTasks) GetObjectType() string { if o == nil { @@ -113,6 +118,11 @@ func (o *IaasMostRunTasks) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "iaas.MostRunTasks" of the ObjectType field. +func (o *IaasMostRunTasks) GetDefaultObjectType() interface{} { + return "iaas.MostRunTasks" +} + // GetTaskCategory returns the TaskCategory field value if set, zero value otherwise. func (o *IaasMostRunTasks) GetTaskCategory() string { if o == nil || IsNil(o.TaskCategory) { @@ -302,7 +312,13 @@ func (o IaasMostRunTasks) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.TaskCategory) { toSerialize["TaskCategory"] = o.TaskCategory @@ -336,6 +352,13 @@ func (o *IaasMostRunTasks) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -345,11 +368,23 @@ func (o *IaasMostRunTasks) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type IaasMostRunTasksWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_iaas_most_run_tasks_list.go b/model_iaas_most_run_tasks_list.go index 02a715ca49..95a795a702 100644 --- a/model_iaas_most_run_tasks_list.go +++ b/model_iaas_most_run_tasks_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *IaasMostRunTasksList) GetResultsOk() ([]IaasMostRunTasks, bool) { // HasResults returns a boolean if a field has been set. func (o *IaasMostRunTasksList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *IaasMostRunTasksList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *IaasMostRunTasksList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type IaasMostRunTasksListWithoutEmbeddedStruct struct { // The total number of 'iaas.MostRunTasks' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_iaas_most_run_tasks_relationship.go b/model_iaas_most_run_tasks_relationship.go index 719b87e664..33962ee458 100644 --- a/model_iaas_most_run_tasks_relationship.go +++ b/model_iaas_most_run_tasks_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_iaas_most_run_tasks_response.go b/model_iaas_most_run_tasks_response.go index b8787638d6..9972dc0ebc 100644 --- a/model_iaas_most_run_tasks_response.go +++ b/model_iaas_most_run_tasks_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_iaas_service_request.go b/model_iaas_service_request.go index 58f1667cb8..57b853c566 100644 --- a/model_iaas_service_request.go +++ b/model_iaas_service_request.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -98,6 +98,11 @@ func (o *IaasServiceRequest) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "iaas.ServiceRequest" of the ClassId field. +func (o *IaasServiceRequest) GetDefaultClassId() interface{} { + return "iaas.ServiceRequest" +} + // GetObjectType returns the ObjectType field value func (o *IaasServiceRequest) GetObjectType() string { if o == nil { @@ -122,6 +127,11 @@ func (o *IaasServiceRequest) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "iaas.ServiceRequest" of the ObjectType field. +func (o *IaasServiceRequest) GetDefaultObjectType() interface{} { + return "iaas.ServiceRequest" +} + // GetDuration returns the Duration field value if set, zero value otherwise. func (o *IaasServiceRequest) GetDuration() string { if o == nil || IsNil(o.Duration) { @@ -399,7 +409,7 @@ func (o *IaasServiceRequest) GetWorkflowStepsOk() ([]IaasWorkflowSteps, bool) { // HasWorkflowSteps returns a boolean if a field has been set. func (o *IaasServiceRequest) HasWorkflowSteps() bool { - if o != nil && IsNil(o.WorkflowSteps) { + if o != nil && !IsNil(o.WorkflowSteps) { return true } @@ -472,7 +482,13 @@ func (o IaasServiceRequest) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Duration) { toSerialize["Duration"] = o.Duration @@ -521,6 +537,13 @@ func (o *IaasServiceRequest) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -530,11 +553,23 @@ func (o *IaasServiceRequest) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type IaasServiceRequestWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_iaas_service_request_list.go b/model_iaas_service_request_list.go index e67bd494ed..c4c9221d48 100644 --- a/model_iaas_service_request_list.go +++ b/model_iaas_service_request_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *IaasServiceRequestList) GetResultsOk() ([]IaasServiceRequest, bool) { // HasResults returns a boolean if a field has been set. func (o *IaasServiceRequestList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *IaasServiceRequestList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *IaasServiceRequestList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type IaasServiceRequestListWithoutEmbeddedStruct struct { // The total number of 'iaas.ServiceRequest' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_iaas_service_request_response.go b/model_iaas_service_request_response.go index b7f0270f0e..5639aca681 100644 --- a/model_iaas_service_request_response.go +++ b/model_iaas_service_request_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_iaas_system_task_info.go b/model_iaas_system_task_info.go index 4298f70cb8..60a759bfec 100644 --- a/model_iaas_system_task_info.go +++ b/model_iaas_system_task_info.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -87,6 +87,11 @@ func (o *IaasSystemTaskInfo) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "iaas.SystemTaskInfo" of the ClassId field. +func (o *IaasSystemTaskInfo) GetDefaultClassId() interface{} { + return "iaas.SystemTaskInfo" +} + // GetObjectType returns the ObjectType field value func (o *IaasSystemTaskInfo) GetObjectType() string { if o == nil { @@ -111,6 +116,11 @@ func (o *IaasSystemTaskInfo) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "iaas.SystemTaskInfo" of the ObjectType field. +func (o *IaasSystemTaskInfo) GetDefaultObjectType() interface{} { + return "iaas.SystemTaskInfo" +} + // GetTaskCategory returns the TaskCategory field value if set, zero value otherwise. func (o *IaasSystemTaskInfo) GetTaskCategory() string { if o == nil || IsNil(o.TaskCategory) { @@ -268,7 +278,13 @@ func (o IaasSystemTaskInfo) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.TaskCategory) { toSerialize["TaskCategory"] = o.TaskCategory @@ -299,6 +315,13 @@ func (o *IaasSystemTaskInfo) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -308,11 +331,23 @@ func (o *IaasSystemTaskInfo) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type IaasSystemTaskInfoWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_iaas_system_task_info_list.go b/model_iaas_system_task_info_list.go index 813ad125ef..7722d83a91 100644 --- a/model_iaas_system_task_info_list.go +++ b/model_iaas_system_task_info_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *IaasSystemTaskInfoList) GetResultsOk() ([]IaasSystemTaskInfo, bool) { // HasResults returns a boolean if a field has been set. func (o *IaasSystemTaskInfoList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *IaasSystemTaskInfoList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *IaasSystemTaskInfoList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type IaasSystemTaskInfoListWithoutEmbeddedStruct struct { // The total number of 'iaas.SystemTaskInfo' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_iaas_system_task_info_relationship.go b/model_iaas_system_task_info_relationship.go index f38cd782ea..536985a602 100644 --- a/model_iaas_system_task_info_relationship.go +++ b/model_iaas_system_task_info_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_iaas_system_task_info_response.go b/model_iaas_system_task_info_response.go index efd0fba19a..a7012b5c54 100644 --- a/model_iaas_system_task_info_response.go +++ b/model_iaas_system_task_info_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_iaas_ucsd_info.go b/model_iaas_ucsd_info.go index 901c72f638..0bf1a8067c 100644 --- a/model_iaas_ucsd_info.go +++ b/model_iaas_ucsd_info.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -114,6 +114,11 @@ func (o *IaasUcsdInfo) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "iaas.UcsdInfo" of the ClassId field. +func (o *IaasUcsdInfo) GetDefaultClassId() interface{} { + return "iaas.UcsdInfo" +} + // GetObjectType returns the ObjectType field value func (o *IaasUcsdInfo) GetObjectType() string { if o == nil { @@ -138,6 +143,11 @@ func (o *IaasUcsdInfo) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "iaas.UcsdInfo" of the ObjectType field. +func (o *IaasUcsdInfo) GetDefaultObjectType() interface{} { + return "iaas.UcsdInfo" +} + // GetDeviceId returns the DeviceId field value if set, zero value otherwise. func (o *IaasUcsdInfo) GetDeviceId() string { if o == nil || IsNil(o.DeviceId) { @@ -479,7 +489,7 @@ func (o *IaasUcsdInfo) GetConnectorPackOk() ([]IaasConnectorPackRelationship, bo // HasConnectorPack returns a boolean if a field has been set. func (o *IaasUcsdInfo) HasConnectorPack() bool { - if o != nil && IsNil(o.ConnectorPack) { + if o != nil && !IsNil(o.ConnectorPack) { return true } @@ -512,7 +522,7 @@ func (o *IaasUcsdInfo) GetCustomTaskInfoOk() ([]IaasCustomTaskInfoRelationship, // HasCustomTaskInfo returns a boolean if a field has been set. func (o *IaasUcsdInfo) HasCustomTaskInfo() bool { - if o != nil && IsNil(o.CustomTaskInfo) { + if o != nil && !IsNil(o.CustomTaskInfo) { return true } @@ -545,7 +555,7 @@ func (o *IaasUcsdInfo) GetDeviceStatusOk() ([]IaasDeviceStatusRelationship, bool // HasDeviceStatus returns a boolean if a field has been set. func (o *IaasUcsdInfo) HasDeviceStatus() bool { - if o != nil && IsNil(o.DeviceStatus) { + if o != nil && !IsNil(o.DeviceStatus) { return true } @@ -621,7 +631,7 @@ func (o *IaasUcsdInfo) GetMostRunTasksOk() ([]IaasMostRunTasksRelationship, bool // HasMostRunTasks returns a boolean if a field has been set. func (o *IaasUcsdInfo) HasMostRunTasks() bool { - if o != nil && IsNil(o.MostRunTasks) { + if o != nil && !IsNil(o.MostRunTasks) { return true } @@ -697,7 +707,7 @@ func (o *IaasUcsdInfo) GetSystemTaskInfoOk() ([]IaasSystemTaskInfoRelationship, // HasSystemTaskInfo returns a boolean if a field has been set. func (o *IaasUcsdInfo) HasSystemTaskInfo() bool { - if o != nil && IsNil(o.SystemTaskInfo) { + if o != nil && !IsNil(o.SystemTaskInfo) { return true } @@ -770,7 +780,13 @@ func (o IaasUcsdInfo) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.DeviceId) { toSerialize["DeviceId"] = o.DeviceId @@ -843,6 +859,13 @@ func (o *IaasUcsdInfo) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -852,11 +875,23 @@ func (o *IaasUcsdInfo) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type IaasUcsdInfoWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_iaas_ucsd_info_list.go b/model_iaas_ucsd_info_list.go index d805cfb0cf..9935a51838 100644 --- a/model_iaas_ucsd_info_list.go +++ b/model_iaas_ucsd_info_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *IaasUcsdInfoList) GetResultsOk() ([]IaasUcsdInfo, bool) { // HasResults returns a boolean if a field has been set. func (o *IaasUcsdInfoList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *IaasUcsdInfoList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *IaasUcsdInfoList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type IaasUcsdInfoListWithoutEmbeddedStruct struct { // The total number of 'iaas.UcsdInfo' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_iaas_ucsd_info_relationship.go b/model_iaas_ucsd_info_relationship.go index 8e182bcd4d..7c8b66bc1e 100644 --- a/model_iaas_ucsd_info_relationship.go +++ b/model_iaas_ucsd_info_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_iaas_ucsd_info_response.go b/model_iaas_ucsd_info_response.go index a3dc3f6209..981718be24 100644 --- a/model_iaas_ucsd_info_response.go +++ b/model_iaas_ucsd_info_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_iaas_ucsd_managed_infra.go b/model_iaas_ucsd_managed_infra.go index 854d4cfc0a..9b0cd98efa 100644 --- a/model_iaas_ucsd_managed_infra.go +++ b/model_iaas_ucsd_managed_infra.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -103,6 +103,11 @@ func (o *IaasUcsdManagedInfra) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "iaas.UcsdManagedInfra" of the ClassId field. +func (o *IaasUcsdManagedInfra) GetDefaultClassId() interface{} { + return "iaas.UcsdManagedInfra" +} + // GetObjectType returns the ObjectType field value func (o *IaasUcsdManagedInfra) GetObjectType() string { if o == nil { @@ -127,6 +132,11 @@ func (o *IaasUcsdManagedInfra) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "iaas.UcsdManagedInfra" of the ObjectType field. +func (o *IaasUcsdManagedInfra) GetDefaultObjectType() interface{} { + return "iaas.UcsdManagedInfra" +} + // GetAdvancedCatalogCount returns the AdvancedCatalogCount field value if set, zero value otherwise. func (o *IaasUcsdManagedInfra) GetAdvancedCatalogCount() int64 { if o == nil || IsNil(o.AdvancedCatalogCount) { @@ -540,7 +550,13 @@ func (o IaasUcsdManagedInfra) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.AdvancedCatalogCount) { toSerialize["AdvancedCatalogCount"] = o.AdvancedCatalogCount @@ -595,6 +611,13 @@ func (o *IaasUcsdManagedInfra) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -604,11 +627,23 @@ func (o *IaasUcsdManagedInfra) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type IaasUcsdManagedInfraWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_iaas_ucsd_managed_infra_list.go b/model_iaas_ucsd_managed_infra_list.go index ba1150d63e..1aa9aad92e 100644 --- a/model_iaas_ucsd_managed_infra_list.go +++ b/model_iaas_ucsd_managed_infra_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *IaasUcsdManagedInfraList) GetResultsOk() ([]IaasUcsdManagedInfra, bool) // HasResults returns a boolean if a field has been set. func (o *IaasUcsdManagedInfraList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *IaasUcsdManagedInfraList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *IaasUcsdManagedInfraList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type IaasUcsdManagedInfraListWithoutEmbeddedStruct struct { // The total number of 'iaas.UcsdManagedInfra' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_iaas_ucsd_managed_infra_relationship.go b/model_iaas_ucsd_managed_infra_relationship.go index a6128701b5..36b151bffd 100644 --- a/model_iaas_ucsd_managed_infra_relationship.go +++ b/model_iaas_ucsd_managed_infra_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_iaas_ucsd_managed_infra_response.go b/model_iaas_ucsd_managed_infra_response.go index e5a9a39d91..054b5968da 100644 --- a/model_iaas_ucsd_managed_infra_response.go +++ b/model_iaas_ucsd_managed_infra_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_iaas_ucsd_messages.go b/model_iaas_ucsd_messages.go index 7be7db21ba..9916415ac2 100644 --- a/model_iaas_ucsd_messages.go +++ b/model_iaas_ucsd_messages.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -83,6 +83,11 @@ func (o *IaasUcsdMessages) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "iaas.UcsdMessages" of the ClassId field. +func (o *IaasUcsdMessages) GetDefaultClassId() interface{} { + return "iaas.UcsdMessages" +} + // GetObjectType returns the ObjectType field value func (o *IaasUcsdMessages) GetObjectType() string { if o == nil { @@ -107,6 +112,11 @@ func (o *IaasUcsdMessages) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "iaas.UcsdMessages" of the ObjectType field. +func (o *IaasUcsdMessages) GetDefaultObjectType() interface{} { + return "iaas.UcsdMessages" +} + // GetStatusId returns the StatusId field value if set, zero value otherwise. func (o *IaasUcsdMessages) GetStatusId() string { if o == nil || IsNil(o.StatusId) { @@ -200,7 +210,13 @@ func (o IaasUcsdMessages) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.StatusId) { toSerialize["StatusId"] = o.StatusId @@ -225,6 +241,13 @@ func (o *IaasUcsdMessages) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -234,11 +257,23 @@ func (o *IaasUcsdMessages) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type IaasUcsdMessagesWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_iaas_ucsd_messages_list.go b/model_iaas_ucsd_messages_list.go index 93ad5631b7..656a71ca6d 100644 --- a/model_iaas_ucsd_messages_list.go +++ b/model_iaas_ucsd_messages_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *IaasUcsdMessagesList) GetResultsOk() ([]IaasUcsdMessages, bool) { // HasResults returns a boolean if a field has been set. func (o *IaasUcsdMessagesList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *IaasUcsdMessagesList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *IaasUcsdMessagesList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type IaasUcsdMessagesListWithoutEmbeddedStruct struct { // The total number of 'iaas.UcsdMessages' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_iaas_ucsd_messages_response.go b/model_iaas_ucsd_messages_response.go index 49d9de9bbb..65ae7da3f6 100644 --- a/model_iaas_ucsd_messages_response.go +++ b/model_iaas_ucsd_messages_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_iaas_workflow_steps.go b/model_iaas_workflow_steps.go index aea11c758c..f2b6ca9573 100644 --- a/model_iaas_workflow_steps.go +++ b/model_iaas_workflow_steps.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -88,6 +88,11 @@ func (o *IaasWorkflowSteps) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "iaas.WorkflowSteps" of the ClassId field. +func (o *IaasWorkflowSteps) GetDefaultClassId() interface{} { + return "iaas.WorkflowSteps" +} + // GetObjectType returns the ObjectType field value func (o *IaasWorkflowSteps) GetObjectType() string { if o == nil { @@ -112,6 +117,11 @@ func (o *IaasWorkflowSteps) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "iaas.WorkflowSteps" of the ObjectType field. +func (o *IaasWorkflowSteps) GetDefaultObjectType() interface{} { + return "iaas.WorkflowSteps" +} + // GetCompletedTime returns the CompletedTime field value if set, zero value otherwise. func (o *IaasWorkflowSteps) GetCompletedTime() string { if o == nil || IsNil(o.CompletedTime) { @@ -258,7 +268,13 @@ func (o IaasWorkflowSteps) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.CompletedTime) { toSerialize["CompletedTime"] = o.CompletedTime @@ -289,6 +305,13 @@ func (o *IaasWorkflowSteps) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -298,11 +321,23 @@ func (o *IaasWorkflowSteps) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type IaasWorkflowStepsWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_iam_account.go b/model_iam_account.go index 3465de6908..060b98b8bf 100644 --- a/model_iam_account.go +++ b/model_iam_account.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -29,7 +29,7 @@ type IamAccount struct { // The fully-qualified name of the instantiated, concrete type. The value should be the same as the 'ClassId' property. ObjectType string `json:"ObjectType"` // Name of the Intersight account. By default, name is same as the MoID of the account. - Name *string `json:"Name,omitempty"` + Name *string `json:"Name,omitempty" validate:"regexp=^$|^[a-zA-Z0-9][a-zA-Z0-9\\\\-]{0,61}[a-zA-Z0-9]$"` Regions []string `json:"Regions,omitempty"` // Indicates if the account is prone to lockout as it has only a single Account Administrator. An account is prone to lockout if it has only one configured Account Administrator and no user groups configured that can grant Account Administrator role to dynamic users. SingleAdminLockout *bool `json:"SingleAdminLockout,omitempty"` @@ -108,6 +108,11 @@ func (o *IamAccount) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "iam.Account" of the ClassId field. +func (o *IamAccount) GetDefaultClassId() interface{} { + return "iam.Account" +} + // GetObjectType returns the ObjectType field value func (o *IamAccount) GetObjectType() string { if o == nil { @@ -132,6 +137,11 @@ func (o *IamAccount) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "iam.Account" of the ObjectType field. +func (o *IamAccount) GetDefaultObjectType() interface{} { + return "iam.Account" +} + // GetName returns the Name field value if set, zero value otherwise. func (o *IamAccount) GetName() string { if o == nil || IsNil(o.Name) { @@ -185,7 +195,7 @@ func (o *IamAccount) GetRegionsOk() ([]string, bool) { // HasRegions returns a boolean if a field has been set. func (o *IamAccount) HasRegions() bool { - if o != nil && IsNil(o.Regions) { + if o != nil && !IsNil(o.Regions) { return true } @@ -282,7 +292,7 @@ func (o *IamAccount) GetAppRegistrationsOk() ([]IamAppRegistrationRelationship, // HasAppRegistrations returns a boolean if a field has been set. func (o *IamAccount) HasAppRegistrations() bool { - if o != nil && IsNil(o.AppRegistrations) { + if o != nil && !IsNil(o.AppRegistrations) { return true } @@ -315,7 +325,7 @@ func (o *IamAccount) GetDomainGroupsOk() ([]IamDomainGroupRelationship, bool) { // HasDomainGroups returns a boolean if a field has been set. func (o *IamAccount) HasDomainGroups() bool { - if o != nil && IsNil(o.DomainGroups) { + if o != nil && !IsNil(o.DomainGroups) { return true } @@ -348,7 +358,7 @@ func (o *IamAccount) GetEndPointRolesOk() ([]IamEndPointRoleRelationship, bool) // HasEndPointRoles returns a boolean if a field has been set. func (o *IamAccount) HasEndPointRoles() bool { - if o != nil && IsNil(o.EndPointRoles) { + if o != nil && !IsNil(o.EndPointRoles) { return true } @@ -381,7 +391,7 @@ func (o *IamAccount) GetIdpreferencesOk() ([]IamIdpReferenceRelationship, bool) // HasIdpreferences returns a boolean if a field has been set. func (o *IamAccount) HasIdpreferences() bool { - if o != nil && IsNil(o.Idpreferences) { + if o != nil && !IsNil(o.Idpreferences) { return true } @@ -414,7 +424,7 @@ func (o *IamAccount) GetIdpsOk() ([]IamIdpRelationship, bool) { // HasIdps returns a boolean if a field has been set. func (o *IamAccount) HasIdps() bool { - if o != nil && IsNil(o.Idps) { + if o != nil && !IsNil(o.Idps) { return true } @@ -447,7 +457,7 @@ func (o *IamAccount) GetPermissionsOk() ([]IamPermissionRelationship, bool) { // HasPermissions returns a boolean if a field has been set. func (o *IamAccount) HasPermissions() bool { - if o != nil && IsNil(o.Permissions) { + if o != nil && !IsNil(o.Permissions) { return true } @@ -480,7 +490,7 @@ func (o *IamAccount) GetPrivilegeSetsOk() ([]IamPrivilegeSetRelationship, bool) // HasPrivilegeSets returns a boolean if a field has been set. func (o *IamAccount) HasPrivilegeSets() bool { - if o != nil && IsNil(o.PrivilegeSets) { + if o != nil && !IsNil(o.PrivilegeSets) { return true } @@ -513,7 +523,7 @@ func (o *IamAccount) GetPrivilegesOk() ([]IamPrivilegeRelationship, bool) { // HasPrivileges returns a boolean if a field has been set. func (o *IamAccount) HasPrivileges() bool { - if o != nil && IsNil(o.Privileges) { + if o != nil && !IsNil(o.Privileges) { return true } @@ -589,7 +599,7 @@ func (o *IamAccount) GetRolesOk() ([]IamRoleRelationship, bool) { // HasRoles returns a boolean if a field has been set. func (o *IamAccount) HasRoles() bool { - if o != nil && IsNil(o.Roles) { + if o != nil && !IsNil(o.Roles) { return true } @@ -705,7 +715,13 @@ func (o IamAccount) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Name) { toSerialize["Name"] = o.Name @@ -772,6 +788,13 @@ func (o *IamAccount) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -781,18 +804,30 @@ func (o *IamAccount) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type IamAccountWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` // The fully-qualified name of the instantiated, concrete type. The value should be the same as the 'ClassId' property. ObjectType string `json:"ObjectType"` // Name of the Intersight account. By default, name is same as the MoID of the account. - Name *string `json:"Name,omitempty"` + Name *string `json:"Name,omitempty" validate:"regexp=^$|^[a-zA-Z0-9][a-zA-Z0-9\\\\-]{0,61}[a-zA-Z0-9]$"` Regions []string `json:"Regions,omitempty"` // Indicates if the account is prone to lockout as it has only a single Account Administrator. An account is prone to lockout if it has only one configured Account Administrator and no user groups configured that can grant Account Administrator role to dynamic users. SingleAdminLockout *bool `json:"SingleAdminLockout,omitempty"` diff --git a/model_iam_account_experience.go b/model_iam_account_experience.go index 4b1f311fc0..be3ecece5c 100644 --- a/model_iam_account_experience.go +++ b/model_iam_account_experience.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -82,6 +82,11 @@ func (o *IamAccountExperience) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "iam.AccountExperience" of the ClassId field. +func (o *IamAccountExperience) GetDefaultClassId() interface{} { + return "iam.AccountExperience" +} + // GetObjectType returns the ObjectType field value func (o *IamAccountExperience) GetObjectType() string { if o == nil { @@ -106,6 +111,11 @@ func (o *IamAccountExperience) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "iam.AccountExperience" of the ObjectType field. +func (o *IamAccountExperience) GetDefaultObjectType() interface{} { + return "iam.AccountExperience" +} + // GetFeatures returns the Features field value if set, zero value otherwise (both if not set or set to explicit null). func (o *IamAccountExperience) GetFeatures() []IamFeatureDefinition { if o == nil { @@ -127,7 +137,7 @@ func (o *IamAccountExperience) GetFeaturesOk() ([]IamFeatureDefinition, bool) { // HasFeatures returns a boolean if a field has been set. func (o *IamAccountExperience) HasFeatures() bool { - if o != nil && IsNil(o.Features) { + if o != nil && !IsNil(o.Features) { return true } @@ -200,7 +210,13 @@ func (o IamAccountExperience) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.Features != nil { toSerialize["Features"] = o.Features @@ -225,6 +241,13 @@ func (o *IamAccountExperience) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -234,11 +257,23 @@ func (o *IamAccountExperience) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type IamAccountExperienceWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_iam_account_experience_list.go b/model_iam_account_experience_list.go index c33f6ab1ac..711d8e55d9 100644 --- a/model_iam_account_experience_list.go +++ b/model_iam_account_experience_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *IamAccountExperienceList) GetResultsOk() ([]IamAccountExperience, bool) // HasResults returns a boolean if a field has been set. func (o *IamAccountExperienceList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *IamAccountExperienceList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *IamAccountExperienceList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type IamAccountExperienceListWithoutEmbeddedStruct struct { // The total number of 'iam.AccountExperience' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_iam_account_experience_response.go b/model_iam_account_experience_response.go index 31083ccd17..004e2a2fd1 100644 --- a/model_iam_account_experience_response.go +++ b/model_iam_account_experience_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_iam_account_list.go b/model_iam_account_list.go index 929564b79c..2223d9911a 100644 --- a/model_iam_account_list.go +++ b/model_iam_account_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *IamAccountList) GetResultsOk() ([]IamAccount, bool) { // HasResults returns a boolean if a field has been set. func (o *IamAccountList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *IamAccountList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *IamAccountList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type IamAccountListWithoutEmbeddedStruct struct { // The total number of 'iam.Account' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_iam_account_permissions.go b/model_iam_account_permissions.go index c47dc3a78e..a083f6191a 100644 --- a/model_iam_account_permissions.go +++ b/model_iam_account_permissions.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -90,6 +90,11 @@ func (o *IamAccountPermissions) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "iam.AccountPermissions" of the ClassId field. +func (o *IamAccountPermissions) GetDefaultClassId() interface{} { + return "iam.AccountPermissions" +} + // GetObjectType returns the ObjectType field value func (o *IamAccountPermissions) GetObjectType() string { if o == nil { @@ -114,6 +119,11 @@ func (o *IamAccountPermissions) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "iam.AccountPermissions" of the ObjectType field. +func (o *IamAccountPermissions) GetDefaultObjectType() interface{} { + return "iam.AccountPermissions" +} + // GetAccountIdentifier returns the AccountIdentifier field value if set, zero value otherwise. func (o *IamAccountPermissions) GetAccountIdentifier() string { if o == nil || IsNil(o.AccountIdentifier) { @@ -199,7 +209,7 @@ func (o *IamAccountPermissions) GetAccountPermissionTagsOk() ([]IamAccountTags, // HasAccountPermissionTags returns a boolean if a field has been set. func (o *IamAccountPermissions) HasAccountPermissionTags() bool { - if o != nil && IsNil(o.AccountPermissionTags) { + if o != nil && !IsNil(o.AccountPermissionTags) { return true } @@ -296,7 +306,7 @@ func (o *IamAccountPermissions) GetPermissionsOk() ([]IamPermissionReference, bo // HasPermissions returns a boolean if a field has been set. func (o *IamAccountPermissions) HasPermissions() bool { - if o != nil && IsNil(o.Permissions) { + if o != nil && !IsNil(o.Permissions) { return true } @@ -326,7 +336,13 @@ func (o IamAccountPermissions) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.AccountIdentifier) { toSerialize["AccountIdentifier"] = o.AccountIdentifier @@ -363,6 +379,13 @@ func (o *IamAccountPermissions) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -372,11 +395,23 @@ func (o *IamAccountPermissions) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type IamAccountPermissionsWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_iam_account_relationship.go b/model_iam_account_relationship.go index 9d942172de..b34a3531ea 100644 --- a/model_iam_account_relationship.go +++ b/model_iam_account_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_iam_account_response.go b/model_iam_account_response.go index c24cf8d3e1..3458a56d48 100644 --- a/model_iam_account_response.go +++ b/model_iam_account_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_iam_account_tags.go b/model_iam_account_tags.go index e11412b746..52ce1d6fc6 100644 --- a/model_iam_account_tags.go +++ b/model_iam_account_tags.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -84,6 +84,11 @@ func (o *IamAccountTags) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "iam.AccountTags" of the ClassId field. +func (o *IamAccountTags) GetDefaultClassId() interface{} { + return "iam.AccountTags" +} + // GetObjectType returns the ObjectType field value func (o *IamAccountTags) GetObjectType() string { if o == nil { @@ -108,6 +113,11 @@ func (o *IamAccountTags) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "iam.AccountTags" of the ObjectType field. +func (o *IamAccountTags) GetDefaultObjectType() interface{} { + return "iam.AccountTags" +} + // GetKey returns the Key field value if set, zero value otherwise. func (o *IamAccountTags) GetKey() string { if o == nil || IsNil(o.Key) { @@ -190,7 +200,13 @@ func (o IamAccountTags) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Key) { toSerialize["Key"] = o.Key @@ -215,6 +231,13 @@ func (o *IamAccountTags) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -224,11 +247,23 @@ func (o *IamAccountTags) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type IamAccountTagsWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_iam_api_key.go b/model_iam_api_key.go index 9f1311067d..a3b1e32006 100644 --- a/model_iam_api_key.go +++ b/model_iam_api_key.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -122,6 +122,11 @@ func (o *IamApiKey) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "iam.ApiKey" of the ClassId field. +func (o *IamApiKey) GetDefaultClassId() interface{} { + return "iam.ApiKey" +} + // GetObjectType returns the ObjectType field value func (o *IamApiKey) GetObjectType() string { if o == nil { @@ -146,6 +151,11 @@ func (o *IamApiKey) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "iam.ApiKey" of the ObjectType field. +func (o *IamApiKey) GetDefaultObjectType() interface{} { + return "iam.ApiKey" +} + // GetAdminStatus returns the AdminStatus field value if set, zero value otherwise. func (o *IamApiKey) GetAdminStatus() string { if o == nil || IsNil(o.AdminStatus) { @@ -645,7 +655,13 @@ func (o IamApiKey) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.AdminStatus) { toSerialize["AdminStatus"] = o.AdminStatus @@ -706,6 +722,13 @@ func (o *IamApiKey) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -715,11 +738,23 @@ func (o *IamApiKey) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type IamApiKeyWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_iam_api_key_list.go b/model_iam_api_key_list.go index 3dec0149be..69dc49c41b 100644 --- a/model_iam_api_key_list.go +++ b/model_iam_api_key_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *IamApiKeyList) GetResultsOk() ([]IamApiKey, bool) { // HasResults returns a boolean if a field has been set. func (o *IamApiKeyList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *IamApiKeyList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *IamApiKeyList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type IamApiKeyListWithoutEmbeddedStruct struct { // The total number of 'iam.ApiKey' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_iam_api_key_relationship.go b/model_iam_api_key_relationship.go index e3af47f523..5c53832d54 100644 --- a/model_iam_api_key_relationship.go +++ b/model_iam_api_key_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_iam_api_key_response.go b/model_iam_api_key_response.go index 83f9df86af..aa5c41dc70 100644 --- a/model_iam_api_key_response.go +++ b/model_iam_api_key_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_iam_app_registration.go b/model_iam_app_registration.go index 2414e0894a..f2f3af0df2 100644 --- a/model_iam_app_registration.go +++ b/model_iam_app_registration.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -148,6 +148,11 @@ func (o *IamAppRegistration) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "iam.AppRegistration" of the ClassId field. +func (o *IamAppRegistration) GetDefaultClassId() interface{} { + return "iam.AppRegistration" +} + // GetObjectType returns the ObjectType field value func (o *IamAppRegistration) GetObjectType() string { if o == nil { @@ -172,6 +177,11 @@ func (o *IamAppRegistration) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "iam.AppRegistration" of the ObjectType field. +func (o *IamAppRegistration) GetDefaultObjectType() interface{} { + return "iam.AppRegistration" +} + // GetAdminStatus returns the AdminStatus field value if set, zero value otherwise. func (o *IamAppRegistration) GetAdminStatus() string { if o == nil || IsNil(o.AdminStatus) { @@ -417,7 +427,7 @@ func (o *IamAppRegistration) GetGrantTypesOk() ([]string, bool) { // HasGrantTypes returns a boolean if a field has been set. func (o *IamAppRegistration) HasGrantTypes() bool { - if o != nil && IsNil(o.GrantTypes) { + if o != nil && !IsNil(o.GrantTypes) { return true } @@ -578,7 +588,7 @@ func (o *IamAppRegistration) GetRedirectUrisOk() ([]string, bool) { // HasRedirectUris returns a boolean if a field has been set. func (o *IamAppRegistration) HasRedirectUris() bool { - if o != nil && IsNil(o.RedirectUris) { + if o != nil && !IsNil(o.RedirectUris) { return true } @@ -643,7 +653,7 @@ func (o *IamAppRegistration) GetResponseTypesOk() ([]string, bool) { // HasResponseTypes returns a boolean if a field has been set. func (o *IamAppRegistration) HasResponseTypes() bool { - if o != nil && IsNil(o.ResponseTypes) { + if o != nil && !IsNil(o.ResponseTypes) { return true } @@ -847,7 +857,7 @@ func (o *IamAppRegistration) GetOauthTokensOk() ([]IamOAuthTokenRelationship, bo // HasOauthTokens returns a boolean if a field has been set. func (o *IamAppRegistration) HasOauthTokens() bool { - if o != nil && IsNil(o.OauthTokens) { + if o != nil && !IsNil(o.OauthTokens) { return true } @@ -925,7 +935,7 @@ func (o *IamAppRegistration) GetRolesOk() ([]IamRoleRelationship, bool) { // HasRoles returns a boolean if a field has been set. func (o *IamAppRegistration) HasRoles() bool { - if o != nil && IsNil(o.Roles) { + if o != nil && !IsNil(o.Roles) { return true } @@ -999,7 +1009,13 @@ func (o IamAppRegistration) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.AdminStatus) { toSerialize["AdminStatus"] = o.AdminStatus @@ -1090,6 +1106,13 @@ func (o *IamAppRegistration) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -1099,11 +1122,23 @@ func (o *IamAppRegistration) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type IamAppRegistrationWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_iam_app_registration_list.go b/model_iam_app_registration_list.go index e17df13665..954a2f851e 100644 --- a/model_iam_app_registration_list.go +++ b/model_iam_app_registration_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *IamAppRegistrationList) GetResultsOk() ([]IamAppRegistration, bool) { // HasResults returns a boolean if a field has been set. func (o *IamAppRegistrationList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *IamAppRegistrationList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *IamAppRegistrationList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type IamAppRegistrationListWithoutEmbeddedStruct struct { // The total number of 'iam.AppRegistration' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_iam_app_registration_relationship.go b/model_iam_app_registration_relationship.go index 931b11df63..afc072a5e5 100644 --- a/model_iam_app_registration_relationship.go +++ b/model_iam_app_registration_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_iam_app_registration_response.go b/model_iam_app_registration_response.go index ca97298644..7f4a9eb5fb 100644 --- a/model_iam_app_registration_response.go +++ b/model_iam_app_registration_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_iam_banner_message.go b/model_iam_banner_message.go index 046a03e698..285d8a5bf9 100644 --- a/model_iam_banner_message.go +++ b/model_iam_banner_message.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -87,6 +87,11 @@ func (o *IamBannerMessage) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "iam.BannerMessage" of the ClassId field. +func (o *IamBannerMessage) GetDefaultClassId() interface{} { + return "iam.BannerMessage" +} + // GetObjectType returns the ObjectType field value func (o *IamBannerMessage) GetObjectType() string { if o == nil { @@ -111,6 +116,11 @@ func (o *IamBannerMessage) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "iam.BannerMessage" of the ObjectType field. +func (o *IamBannerMessage) GetDefaultObjectType() interface{} { + return "iam.BannerMessage" +} + // GetBannerContents returns the BannerContents field value if set, zero value otherwise. func (o *IamBannerMessage) GetBannerContents() string { if o == nil || IsNil(o.BannerContents) { @@ -268,7 +278,13 @@ func (o IamBannerMessage) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.BannerContents) { toSerialize["BannerContents"] = o.BannerContents @@ -299,6 +315,13 @@ func (o *IamBannerMessage) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -308,11 +331,23 @@ func (o *IamBannerMessage) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type IamBannerMessageWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_iam_banner_message_list.go b/model_iam_banner_message_list.go index 598b5738e6..20030ac91e 100644 --- a/model_iam_banner_message_list.go +++ b/model_iam_banner_message_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *IamBannerMessageList) GetResultsOk() ([]IamBannerMessage, bool) { // HasResults returns a boolean if a field has been set. func (o *IamBannerMessageList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *IamBannerMessageList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *IamBannerMessageList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type IamBannerMessageListWithoutEmbeddedStruct struct { // The total number of 'iam.BannerMessage' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_iam_banner_message_response.go b/model_iam_banner_message_response.go index e2808defdf..f525bb0965 100644 --- a/model_iam_banner_message_response.go +++ b/model_iam_banner_message_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_iam_certificate.go b/model_iam_certificate.go index e94949ba19..91d7a1e8ea 100644 --- a/model_iam_certificate.go +++ b/model_iam_certificate.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -84,6 +84,11 @@ func (o *IamCertificate) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "iam.Certificate" of the ClassId field. +func (o *IamCertificate) GetDefaultClassId() interface{} { + return "iam.Certificate" +} + // GetObjectType returns the ObjectType field value func (o *IamCertificate) GetObjectType() string { if o == nil { @@ -108,6 +113,11 @@ func (o *IamCertificate) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "iam.Certificate" of the ObjectType field. +func (o *IamCertificate) GetDefaultObjectType() interface{} { + return "iam.Certificate" +} + // GetCertificate returns the Certificate field value if set, zero value otherwise (both if not set or set to explicit null). func (o *IamCertificate) GetCertificate() X509Certificate { if o == nil || IsNil(o.Certificate.Get()) { @@ -244,7 +254,13 @@ func (o IamCertificate) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.Certificate.IsSet() { toSerialize["Certificate"] = o.Certificate.Get() @@ -272,6 +288,13 @@ func (o *IamCertificate) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -281,11 +304,23 @@ func (o *IamCertificate) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type IamCertificateWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_iam_certificate_list.go b/model_iam_certificate_list.go index aec6cda4ad..1685da0f82 100644 --- a/model_iam_certificate_list.go +++ b/model_iam_certificate_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *IamCertificateList) GetResultsOk() ([]IamCertificate, bool) { // HasResults returns a boolean if a field has been set. func (o *IamCertificateList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *IamCertificateList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *IamCertificateList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type IamCertificateListWithoutEmbeddedStruct struct { // The total number of 'iam.Certificate' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_iam_certificate_relationship.go b/model_iam_certificate_relationship.go index 2f353d4f17..dd0a519e2c 100644 --- a/model_iam_certificate_relationship.go +++ b/model_iam_certificate_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_iam_certificate_request.go b/model_iam_certificate_request.go index d5c8717d37..33e8178ad4 100644 --- a/model_iam_certificate_request.go +++ b/model_iam_certificate_request.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -93,6 +93,11 @@ func (o *IamCertificateRequest) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "iam.CertificateRequest" of the ClassId field. +func (o *IamCertificateRequest) GetDefaultClassId() interface{} { + return "iam.CertificateRequest" +} + // GetObjectType returns the ObjectType field value func (o *IamCertificateRequest) GetObjectType() string { if o == nil { @@ -117,6 +122,11 @@ func (o *IamCertificateRequest) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "iam.CertificateRequest" of the ObjectType field. +func (o *IamCertificateRequest) GetDefaultObjectType() interface{} { + return "iam.CertificateRequest" +} + // GetEmailAddress returns the EmailAddress field value if set, zero value otherwise. func (o *IamCertificateRequest) GetEmailAddress() string { if o == nil || IsNil(o.EmailAddress) { @@ -478,7 +488,13 @@ func (o IamCertificateRequest) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.EmailAddress) { toSerialize["EmailAddress"] = o.EmailAddress @@ -524,6 +540,13 @@ func (o *IamCertificateRequest) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -533,11 +556,23 @@ func (o *IamCertificateRequest) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type IamCertificateRequestWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_iam_certificate_request_list.go b/model_iam_certificate_request_list.go index ae419ca8ce..f96e98e1dd 100644 --- a/model_iam_certificate_request_list.go +++ b/model_iam_certificate_request_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *IamCertificateRequestList) GetResultsOk() ([]IamCertificateRequest, boo // HasResults returns a boolean if a field has been set. func (o *IamCertificateRequestList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *IamCertificateRequestList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *IamCertificateRequestList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type IamCertificateRequestListWithoutEmbeddedStruct struct { // The total number of 'iam.CertificateRequest' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_iam_certificate_request_relationship.go b/model_iam_certificate_request_relationship.go index 9645890a7a..a49b9af81a 100644 --- a/model_iam_certificate_request_relationship.go +++ b/model_iam_certificate_request_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_iam_certificate_request_response.go b/model_iam_certificate_request_response.go index f0856bd22f..08b29fb4e8 100644 --- a/model_iam_certificate_request_response.go +++ b/model_iam_certificate_request_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_iam_certificate_response.go b/model_iam_certificate_response.go index 238dc2764b..730fb03cec 100644 --- a/model_iam_certificate_response.go +++ b/model_iam_certificate_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_iam_client_meta.go b/model_iam_client_meta.go index 6933e67124..9c42b54af9 100644 --- a/model_iam_client_meta.go +++ b/model_iam_client_meta.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -84,6 +84,11 @@ func (o *IamClientMeta) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "iam.ClientMeta" of the ClassId field. +func (o *IamClientMeta) GetDefaultClassId() interface{} { + return "iam.ClientMeta" +} + // GetObjectType returns the ObjectType field value func (o *IamClientMeta) GetObjectType() string { if o == nil { @@ -108,6 +113,11 @@ func (o *IamClientMeta) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "iam.ClientMeta" of the ObjectType field. +func (o *IamClientMeta) GetDefaultObjectType() interface{} { + return "iam.ClientMeta" +} + // GetDeviceModel returns the DeviceModel field value if set, zero value otherwise. func (o *IamClientMeta) GetDeviceModel() string { if o == nil || IsNil(o.DeviceModel) { @@ -190,7 +200,13 @@ func (o IamClientMeta) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.DeviceModel) { toSerialize["DeviceModel"] = o.DeviceModel @@ -215,6 +231,13 @@ func (o *IamClientMeta) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -224,11 +247,23 @@ func (o *IamClientMeta) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type IamClientMetaWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_iam_domain_group.go b/model_iam_domain_group.go index 1551bf3635..0e9a609ef6 100644 --- a/model_iam_domain_group.go +++ b/model_iam_domain_group.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -93,6 +93,11 @@ func (o *IamDomainGroup) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "iam.DomainGroup" of the ClassId field. +func (o *IamDomainGroup) GetDefaultClassId() interface{} { + return "iam.DomainGroup" +} + // GetObjectType returns the ObjectType field value func (o *IamDomainGroup) GetObjectType() string { if o == nil { @@ -117,6 +122,11 @@ func (o *IamDomainGroup) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "iam.DomainGroup" of the ObjectType field. +func (o *IamDomainGroup) GetDefaultObjectType() interface{} { + return "iam.DomainGroup" +} + // GetName returns the Name field value if set, zero value otherwise. func (o *IamDomainGroup) GetName() string { if o == nil || IsNil(o.Name) { @@ -370,7 +380,13 @@ func (o IamDomainGroup) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Name) { toSerialize["Name"] = o.Name @@ -410,6 +426,13 @@ func (o *IamDomainGroup) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -419,11 +442,23 @@ func (o *IamDomainGroup) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type IamDomainGroupWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_iam_domain_group_list.go b/model_iam_domain_group_list.go index 0e2dd2a9b1..1bdb228d3e 100644 --- a/model_iam_domain_group_list.go +++ b/model_iam_domain_group_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *IamDomainGroupList) GetResultsOk() ([]IamDomainGroup, bool) { // HasResults returns a boolean if a field has been set. func (o *IamDomainGroupList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *IamDomainGroupList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *IamDomainGroupList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type IamDomainGroupListWithoutEmbeddedStruct struct { // The total number of 'iam.DomainGroup' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_iam_domain_group_relationship.go b/model_iam_domain_group_relationship.go index 8eec978351..e37cad31a3 100644 --- a/model_iam_domain_group_relationship.go +++ b/model_iam_domain_group_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_iam_domain_group_response.go b/model_iam_domain_group_response.go index ed5c874f58..8e1b21094e 100644 --- a/model_iam_domain_group_response.go +++ b/model_iam_domain_group_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_iam_domain_name_info.go b/model_iam_domain_name_info.go index 08b97666b5..01d267345f 100644 --- a/model_iam_domain_name_info.go +++ b/model_iam_domain_name_info.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -32,7 +32,7 @@ type IamDomainNameInfo struct { // Regenerate TXT record and validate TXT record. * `generate` - Generate TXT record for domain name ownership validation. * `verify` - Verify TXT record for domain name ownership validation. Action *string `json:"Action,omitempty"` // Email domain name. When a user enters an email during login in the Intersight home page, the IdP is picked by matching this domain name with the email domain name for authentication. - DomainName *string `json:"DomainName,omitempty"` + DomainName *string `json:"DomainName,omitempty" validate:"regexp=^$|^[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\\\\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$"` FailureDetails NullableIamFailureDetails `json:"FailureDetails,omitempty"` // Expiration time of TXT Record. RecordExpiryTime *time.Time `json:"RecordExpiryTime,omitempty"` @@ -97,6 +97,11 @@ func (o *IamDomainNameInfo) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "iam.DomainNameInfo" of the ClassId field. +func (o *IamDomainNameInfo) GetDefaultClassId() interface{} { + return "iam.DomainNameInfo" +} + // GetObjectType returns the ObjectType field value func (o *IamDomainNameInfo) GetObjectType() string { if o == nil { @@ -121,6 +126,11 @@ func (o *IamDomainNameInfo) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "iam.DomainNameInfo" of the ObjectType field. +func (o *IamDomainNameInfo) GetDefaultObjectType() interface{} { + return "iam.DomainNameInfo" +} + // GetAction returns the Action field value if set, zero value otherwise. func (o *IamDomainNameInfo) GetAction() string { if o == nil || IsNil(o.Action) { @@ -385,7 +395,13 @@ func (o IamDomainNameInfo) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Action) { toSerialize["Action"] = o.Action @@ -425,6 +441,13 @@ func (o *IamDomainNameInfo) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -434,11 +457,23 @@ func (o *IamDomainNameInfo) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type IamDomainNameInfoWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` @@ -447,7 +482,7 @@ func (o *IamDomainNameInfo) UnmarshalJSON(data []byte) (err error) { // Regenerate TXT record and validate TXT record. * `generate` - Generate TXT record for domain name ownership validation. * `verify` - Verify TXT record for domain name ownership validation. Action *string `json:"Action,omitempty"` // Email domain name. When a user enters an email during login in the Intersight home page, the IdP is picked by matching this domain name with the email domain name for authentication. - DomainName *string `json:"DomainName,omitempty"` + DomainName *string `json:"DomainName,omitempty" validate:"regexp=^$|^[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\\\\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$"` FailureDetails NullableIamFailureDetails `json:"FailureDetails,omitempty"` // Expiration time of TXT Record. RecordExpiryTime *time.Time `json:"RecordExpiryTime,omitempty"` diff --git a/model_iam_domain_name_info_list.go b/model_iam_domain_name_info_list.go index 7f44b11752..c4912382b3 100644 --- a/model_iam_domain_name_info_list.go +++ b/model_iam_domain_name_info_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *IamDomainNameInfoList) GetResultsOk() ([]IamDomainNameInfo, bool) { // HasResults returns a boolean if a field has been set. func (o *IamDomainNameInfoList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *IamDomainNameInfoList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *IamDomainNameInfoList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type IamDomainNameInfoListWithoutEmbeddedStruct struct { // The total number of 'iam.DomainNameInfo' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_iam_domain_name_info_response.go b/model_iam_domain_name_info_response.go index 826df6cc7f..cdd9a909fb 100644 --- a/model_iam_domain_name_info_response.go +++ b/model_iam_domain_name_info_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_iam_end_point_password_properties.go b/model_iam_end_point_password_properties.go index 6912a667bc..75f9b3ab39 100644 --- a/model_iam_end_point_password_properties.go +++ b/model_iam_end_point_password_properties.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -122,6 +122,11 @@ func (o *IamEndPointPasswordProperties) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "iam.EndPointPasswordProperties" of the ClassId field. +func (o *IamEndPointPasswordProperties) GetDefaultClassId() interface{} { + return "iam.EndPointPasswordProperties" +} + // GetObjectType returns the ObjectType field value func (o *IamEndPointPasswordProperties) GetObjectType() string { if o == nil { @@ -146,6 +151,11 @@ func (o *IamEndPointPasswordProperties) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "iam.EndPointPasswordProperties" of the ObjectType field. +func (o *IamEndPointPasswordProperties) GetDefaultObjectType() interface{} { + return "iam.EndPointPasswordProperties" +} + // GetEnablePasswordExpiry returns the EnablePasswordExpiry field value if set, zero value otherwise. func (o *IamEndPointPasswordProperties) GetEnablePasswordExpiry() bool { if o == nil || IsNil(o.EnablePasswordExpiry) { @@ -388,7 +398,13 @@ func (o IamEndPointPasswordProperties) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.EnablePasswordExpiry) { toSerialize["EnablePasswordExpiry"] = o.EnablePasswordExpiry @@ -428,6 +444,13 @@ func (o *IamEndPointPasswordProperties) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -437,11 +460,23 @@ func (o *IamEndPointPasswordProperties) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type IamEndPointPasswordPropertiesWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_iam_end_point_privilege.go b/model_iam_end_point_privilege.go index 43f1d1278c..2cbc94035a 100644 --- a/model_iam_end_point_privilege.go +++ b/model_iam_end_point_privilege.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -87,6 +87,11 @@ func (o *IamEndPointPrivilege) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "iam.EndPointPrivilege" of the ClassId field. +func (o *IamEndPointPrivilege) GetDefaultClassId() interface{} { + return "iam.EndPointPrivilege" +} + // GetObjectType returns the ObjectType field value func (o *IamEndPointPrivilege) GetObjectType() string { if o == nil { @@ -111,6 +116,11 @@ func (o *IamEndPointPrivilege) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "iam.EndPointPrivilege" of the ObjectType field. +func (o *IamEndPointPrivilege) GetDefaultObjectType() interface{} { + return "iam.EndPointPrivilege" +} + // GetDescription returns the Description field value if set, zero value otherwise. func (o *IamEndPointPrivilege) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -268,7 +278,13 @@ func (o IamEndPointPrivilege) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Description) { toSerialize["Description"] = o.Description @@ -299,6 +315,13 @@ func (o *IamEndPointPrivilege) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -308,11 +331,23 @@ func (o *IamEndPointPrivilege) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type IamEndPointPrivilegeWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_iam_end_point_privilege_list.go b/model_iam_end_point_privilege_list.go index cf9364d0ef..0d288f3504 100644 --- a/model_iam_end_point_privilege_list.go +++ b/model_iam_end_point_privilege_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *IamEndPointPrivilegeList) GetResultsOk() ([]IamEndPointPrivilege, bool) // HasResults returns a boolean if a field has been set. func (o *IamEndPointPrivilegeList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *IamEndPointPrivilegeList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *IamEndPointPrivilegeList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type IamEndPointPrivilegeListWithoutEmbeddedStruct struct { // The total number of 'iam.EndPointPrivilege' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_iam_end_point_privilege_relationship.go b/model_iam_end_point_privilege_relationship.go index a9af10d14a..83b32cacc9 100644 --- a/model_iam_end_point_privilege_relationship.go +++ b/model_iam_end_point_privilege_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_iam_end_point_privilege_response.go b/model_iam_end_point_privilege_response.go index a047a96856..215b82b687 100644 --- a/model_iam_end_point_privilege_response.go +++ b/model_iam_end_point_privilege_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_iam_end_point_role.go b/model_iam_end_point_role.go index a9cd96d557..c9866ecd95 100644 --- a/model_iam_end_point_role.go +++ b/model_iam_end_point_role.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -90,6 +90,11 @@ func (o *IamEndPointRole) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "iam.EndPointRole" of the ClassId field. +func (o *IamEndPointRole) GetDefaultClassId() interface{} { + return "iam.EndPointRole" +} + // GetObjectType returns the ObjectType field value func (o *IamEndPointRole) GetObjectType() string { if o == nil { @@ -114,6 +119,11 @@ func (o *IamEndPointRole) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "iam.EndPointRole" of the ObjectType field. +func (o *IamEndPointRole) GetDefaultObjectType() interface{} { + return "iam.EndPointRole" +} + // GetName returns the Name field value if set, zero value otherwise. func (o *IamEndPointRole) GetName() string { if o == nil || IsNil(o.Name) { @@ -274,7 +284,7 @@ func (o *IamEndPointRole) GetEndPointPrivilegesOk() ([]IamEndPointPrivilegeRelat // HasEndPointPrivileges returns a boolean if a field has been set. func (o *IamEndPointRole) HasEndPointPrivileges() bool { - if o != nil && IsNil(o.EndPointPrivileges) { + if o != nil && !IsNil(o.EndPointPrivileges) { return true } @@ -347,7 +357,13 @@ func (o IamEndPointRole) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Name) { toSerialize["Name"] = o.Name @@ -384,6 +400,13 @@ func (o *IamEndPointRole) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -393,11 +416,23 @@ func (o *IamEndPointRole) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type IamEndPointRoleWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_iam_end_point_role_list.go b/model_iam_end_point_role_list.go index b454a8caab..29d9d9c00b 100644 --- a/model_iam_end_point_role_list.go +++ b/model_iam_end_point_role_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *IamEndPointRoleList) GetResultsOk() ([]IamEndPointRole, bool) { // HasResults returns a boolean if a field has been set. func (o *IamEndPointRoleList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *IamEndPointRoleList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *IamEndPointRoleList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type IamEndPointRoleListWithoutEmbeddedStruct struct { // The total number of 'iam.EndPointRole' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_iam_end_point_role_relationship.go b/model_iam_end_point_role_relationship.go index 759c0fd055..593d406922 100644 --- a/model_iam_end_point_role_relationship.go +++ b/model_iam_end_point_role_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_iam_end_point_role_response.go b/model_iam_end_point_role_response.go index cf95575a3e..944932f1c2 100644 --- a/model_iam_end_point_role_response.go +++ b/model_iam_end_point_role_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_iam_end_point_user.go b/model_iam_end_point_user.go index f8316f01e2..45db327d6e 100644 --- a/model_iam_end_point_user.go +++ b/model_iam_end_point_user.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -29,7 +29,7 @@ type IamEndPointUser struct { // The fully-qualified name of the instantiated, concrete type. The value should be the same as the 'ClassId' property. ObjectType string `json:"ObjectType"` // Name of the user to be created on the endpoint. It can be any string that adheres to the following constraints. It can have alphanumeric characters, dots, underscores and hyphen. It cannot be more than 16 characters. - Name *string `json:"Name,omitempty"` + Name *string `json:"Name,omitempty" validate:"regexp=^[a-zA-Z0-9\\\\._\\\\-]+$"` // An array of relationships to iamEndPointUserRole resources. EndPointUserRole []IamEndPointUserRoleRelationship `json:"EndPointUserRole,omitempty"` Organization NullableOrganizationOrganizationRelationship `json:"Organization,omitempty"` @@ -85,6 +85,11 @@ func (o *IamEndPointUser) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "iam.EndPointUser" of the ClassId field. +func (o *IamEndPointUser) GetDefaultClassId() interface{} { + return "iam.EndPointUser" +} + // GetObjectType returns the ObjectType field value func (o *IamEndPointUser) GetObjectType() string { if o == nil { @@ -109,6 +114,11 @@ func (o *IamEndPointUser) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "iam.EndPointUser" of the ObjectType field. +func (o *IamEndPointUser) GetDefaultObjectType() interface{} { + return "iam.EndPointUser" +} + // GetName returns the Name field value if set, zero value otherwise. func (o *IamEndPointUser) GetName() string { if o == nil || IsNil(o.Name) { @@ -162,7 +172,7 @@ func (o *IamEndPointUser) GetEndPointUserRoleOk() ([]IamEndPointUserRoleRelation // HasEndPointUserRole returns a boolean if a field has been set. func (o *IamEndPointUser) HasEndPointUserRole() bool { - if o != nil && IsNil(o.EndPointUserRole) { + if o != nil && !IsNil(o.EndPointUserRole) { return true } @@ -235,7 +245,13 @@ func (o IamEndPointUser) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Name) { toSerialize["Name"] = o.Name @@ -263,6 +279,13 @@ func (o *IamEndPointUser) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -272,18 +295,30 @@ func (o *IamEndPointUser) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type IamEndPointUserWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` // The fully-qualified name of the instantiated, concrete type. The value should be the same as the 'ClassId' property. ObjectType string `json:"ObjectType"` // Name of the user to be created on the endpoint. It can be any string that adheres to the following constraints. It can have alphanumeric characters, dots, underscores and hyphen. It cannot be more than 16 characters. - Name *string `json:"Name,omitempty"` + Name *string `json:"Name,omitempty" validate:"regexp=^[a-zA-Z0-9\\\\._\\\\-]+$"` // An array of relationships to iamEndPointUserRole resources. EndPointUserRole []IamEndPointUserRoleRelationship `json:"EndPointUserRole,omitempty"` Organization NullableOrganizationOrganizationRelationship `json:"Organization,omitempty"` diff --git a/model_iam_end_point_user_inventory.go b/model_iam_end_point_user_inventory.go index 7fcb89b60a..319c6387ea 100644 --- a/model_iam_end_point_user_inventory.go +++ b/model_iam_end_point_user_inventory.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -29,7 +29,7 @@ type IamEndPointUserInventory struct { // The fully-qualified name of the instantiated, concrete type. The value should be the same as the 'ClassId' property. ObjectType string `json:"ObjectType"` // Name of the user to be created on the endpoint. It can be any string that adheres to the following constraints. It can have alphanumeric characters, dots, underscores and hyphen. It cannot be more than 16 characters. - Name *string `json:"Name,omitempty"` + Name *string `json:"Name,omitempty" validate:"regexp=^[a-zA-Z0-9\\\\._\\\\-]+$"` // UserId for the end point user. UserId *string `json:"UserId,omitempty"` // An array of relationships to iamEndPointUserRoleInventory resources. @@ -87,6 +87,11 @@ func (o *IamEndPointUserInventory) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "iam.EndPointUserInventory" of the ClassId field. +func (o *IamEndPointUserInventory) GetDefaultClassId() interface{} { + return "iam.EndPointUserInventory" +} + // GetObjectType returns the ObjectType field value func (o *IamEndPointUserInventory) GetObjectType() string { if o == nil { @@ -111,6 +116,11 @@ func (o *IamEndPointUserInventory) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "iam.EndPointUserInventory" of the ObjectType field. +func (o *IamEndPointUserInventory) GetDefaultObjectType() interface{} { + return "iam.EndPointUserInventory" +} + // GetName returns the Name field value if set, zero value otherwise. func (o *IamEndPointUserInventory) GetName() string { if o == nil || IsNil(o.Name) { @@ -196,7 +206,7 @@ func (o *IamEndPointUserInventory) GetEndPointUserRoleOk() ([]IamEndPointUserRol // HasEndPointUserRole returns a boolean if a field has been set. func (o *IamEndPointUserInventory) HasEndPointUserRole() bool { - if o != nil && IsNil(o.EndPointUserRole) { + if o != nil && !IsNil(o.EndPointUserRole) { return true } @@ -269,7 +279,13 @@ func (o IamEndPointUserInventory) ToMap() (map[string]interface{}, error) { if errPolicyAbstractInventory != nil { return map[string]interface{}{}, errPolicyAbstractInventory } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Name) { toSerialize["Name"] = o.Name @@ -300,6 +316,13 @@ func (o *IamEndPointUserInventory) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -309,18 +332,30 @@ func (o *IamEndPointUserInventory) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type IamEndPointUserInventoryWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` // The fully-qualified name of the instantiated, concrete type. The value should be the same as the 'ClassId' property. ObjectType string `json:"ObjectType"` // Name of the user to be created on the endpoint. It can be any string that adheres to the following constraints. It can have alphanumeric characters, dots, underscores and hyphen. It cannot be more than 16 characters. - Name *string `json:"Name,omitempty"` + Name *string `json:"Name,omitempty" validate:"regexp=^[a-zA-Z0-9\\\\._\\\\-]+$"` // UserId for the end point user. UserId *string `json:"UserId,omitempty"` // An array of relationships to iamEndPointUserRoleInventory resources. diff --git a/model_iam_end_point_user_inventory_list.go b/model_iam_end_point_user_inventory_list.go index 6a9f0e49f5..cfa256ed66 100644 --- a/model_iam_end_point_user_inventory_list.go +++ b/model_iam_end_point_user_inventory_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *IamEndPointUserInventoryList) GetResultsOk() ([]IamEndPointUserInventor // HasResults returns a boolean if a field has been set. func (o *IamEndPointUserInventoryList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *IamEndPointUserInventoryList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *IamEndPointUserInventoryList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type IamEndPointUserInventoryListWithoutEmbeddedStruct struct { // The total number of 'iam.EndPointUserInventory' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_iam_end_point_user_inventory_relationship.go b/model_iam_end_point_user_inventory_relationship.go index 5ce6644ee1..546f297b33 100644 --- a/model_iam_end_point_user_inventory_relationship.go +++ b/model_iam_end_point_user_inventory_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_iam_end_point_user_inventory_response.go b/model_iam_end_point_user_inventory_response.go index 552a5cc895..7db26f3e91 100644 --- a/model_iam_end_point_user_inventory_response.go +++ b/model_iam_end_point_user_inventory_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_iam_end_point_user_list.go b/model_iam_end_point_user_list.go index e95fcd3542..8547927833 100644 --- a/model_iam_end_point_user_list.go +++ b/model_iam_end_point_user_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *IamEndPointUserList) GetResultsOk() ([]IamEndPointUser, bool) { // HasResults returns a boolean if a field has been set. func (o *IamEndPointUserList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *IamEndPointUserList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *IamEndPointUserList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type IamEndPointUserListWithoutEmbeddedStruct struct { // The total number of 'iam.EndPointUser' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_iam_end_point_user_policy.go b/model_iam_end_point_user_policy.go index 7fcdce1d38..bad90046f6 100644 --- a/model_iam_end_point_user_policy.go +++ b/model_iam_end_point_user_policy.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -86,6 +86,11 @@ func (o *IamEndPointUserPolicy) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "iam.EndPointUserPolicy" of the ClassId field. +func (o *IamEndPointUserPolicy) GetDefaultClassId() interface{} { + return "iam.EndPointUserPolicy" +} + // GetObjectType returns the ObjectType field value func (o *IamEndPointUserPolicy) GetObjectType() string { if o == nil { @@ -110,6 +115,11 @@ func (o *IamEndPointUserPolicy) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "iam.EndPointUserPolicy" of the ObjectType field. +func (o *IamEndPointUserPolicy) GetDefaultObjectType() interface{} { + return "iam.EndPointUserPolicy" +} + // GetPasswordProperties returns the PasswordProperties field value if set, zero value otherwise (both if not set or set to explicit null). func (o *IamEndPointUserPolicy) GetPasswordProperties() IamEndPointPasswordProperties { if o == nil || IsNil(o.PasswordProperties.Get()) { @@ -174,7 +184,7 @@ func (o *IamEndPointUserPolicy) GetEndPointUserRolesOk() ([]IamEndPointUserRoleR // HasEndPointUserRoles returns a boolean if a field has been set. func (o *IamEndPointUserPolicy) HasEndPointUserRoles() bool { - if o != nil && IsNil(o.EndPointUserRoles) { + if o != nil && !IsNil(o.EndPointUserRoles) { return true } @@ -250,7 +260,7 @@ func (o *IamEndPointUserPolicy) GetProfilesOk() ([]PolicyAbstractConfigProfileRe // HasProfiles returns a boolean if a field has been set. func (o *IamEndPointUserPolicy) HasProfiles() bool { - if o != nil && IsNil(o.Profiles) { + if o != nil && !IsNil(o.Profiles) { return true } @@ -280,7 +290,13 @@ func (o IamEndPointUserPolicy) ToMap() (map[string]interface{}, error) { if errPolicyAbstractPolicy != nil { return map[string]interface{}{}, errPolicyAbstractPolicy } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.PasswordProperties.IsSet() { toSerialize["PasswordProperties"] = o.PasswordProperties.Get() @@ -311,6 +327,13 @@ func (o *IamEndPointUserPolicy) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -320,11 +343,23 @@ func (o *IamEndPointUserPolicy) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type IamEndPointUserPolicyWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_iam_end_point_user_policy_inventory.go b/model_iam_end_point_user_policy_inventory.go index b1811b06c7..6f25556069 100644 --- a/model_iam_end_point_user_policy_inventory.go +++ b/model_iam_end_point_user_policy_inventory.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -84,6 +84,11 @@ func (o *IamEndPointUserPolicyInventory) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "iam.EndPointUserPolicyInventory" of the ClassId field. +func (o *IamEndPointUserPolicyInventory) GetDefaultClassId() interface{} { + return "iam.EndPointUserPolicyInventory" +} + // GetObjectType returns the ObjectType field value func (o *IamEndPointUserPolicyInventory) GetObjectType() string { if o == nil { @@ -108,6 +113,11 @@ func (o *IamEndPointUserPolicyInventory) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "iam.EndPointUserPolicyInventory" of the ObjectType field. +func (o *IamEndPointUserPolicyInventory) GetDefaultObjectType() interface{} { + return "iam.EndPointUserPolicyInventory" +} + // GetPasswordProperties returns the PasswordProperties field value if set, zero value otherwise (both if not set or set to explicit null). func (o *IamEndPointUserPolicyInventory) GetPasswordProperties() IamEndPointPasswordProperties { if o == nil || IsNil(o.PasswordProperties.Get()) { @@ -172,7 +182,7 @@ func (o *IamEndPointUserPolicyInventory) GetEndPointUserRolesOk() ([]IamEndPoint // HasEndPointUserRoles returns a boolean if a field has been set. func (o *IamEndPointUserPolicyInventory) HasEndPointUserRoles() bool { - if o != nil && IsNil(o.EndPointUserRoles) { + if o != nil && !IsNil(o.EndPointUserRoles) { return true } @@ -245,7 +255,13 @@ func (o IamEndPointUserPolicyInventory) ToMap() (map[string]interface{}, error) if errPolicyAbstractPolicyInventory != nil { return map[string]interface{}{}, errPolicyAbstractPolicyInventory } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.PasswordProperties.IsSet() { toSerialize["PasswordProperties"] = o.PasswordProperties.Get() @@ -273,6 +289,13 @@ func (o *IamEndPointUserPolicyInventory) UnmarshalJSON(data []byte) (err error) "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -282,11 +305,23 @@ func (o *IamEndPointUserPolicyInventory) UnmarshalJSON(data []byte) (err error) } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type IamEndPointUserPolicyInventoryWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_iam_end_point_user_policy_inventory_list.go b/model_iam_end_point_user_policy_inventory_list.go index 1430fea8e8..f1846ca241 100644 --- a/model_iam_end_point_user_policy_inventory_list.go +++ b/model_iam_end_point_user_policy_inventory_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *IamEndPointUserPolicyInventoryList) GetResultsOk() ([]IamEndPointUserPo // HasResults returns a boolean if a field has been set. func (o *IamEndPointUserPolicyInventoryList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *IamEndPointUserPolicyInventoryList) UnmarshalJSON(data []byte) (err err "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *IamEndPointUserPolicyInventoryList) UnmarshalJSON(data []byte) (err err } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type IamEndPointUserPolicyInventoryListWithoutEmbeddedStruct struct { // The total number of 'iam.EndPointUserPolicyInventory' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_iam_end_point_user_policy_inventory_relationship.go b/model_iam_end_point_user_policy_inventory_relationship.go index 09b7978242..60a76f8710 100644 --- a/model_iam_end_point_user_policy_inventory_relationship.go +++ b/model_iam_end_point_user_policy_inventory_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_iam_end_point_user_policy_inventory_response.go b/model_iam_end_point_user_policy_inventory_response.go index b28e17a0af..e891f1f81d 100644 --- a/model_iam_end_point_user_policy_inventory_response.go +++ b/model_iam_end_point_user_policy_inventory_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_iam_end_point_user_policy_list.go b/model_iam_end_point_user_policy_list.go index ac6f20f017..c6bf3ea9fd 100644 --- a/model_iam_end_point_user_policy_list.go +++ b/model_iam_end_point_user_policy_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *IamEndPointUserPolicyList) GetResultsOk() ([]IamEndPointUserPolicy, boo // HasResults returns a boolean if a field has been set. func (o *IamEndPointUserPolicyList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *IamEndPointUserPolicyList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *IamEndPointUserPolicyList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type IamEndPointUserPolicyListWithoutEmbeddedStruct struct { // The total number of 'iam.EndPointUserPolicy' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_iam_end_point_user_policy_relationship.go b/model_iam_end_point_user_policy_relationship.go index af2d463671..46691349a7 100644 --- a/model_iam_end_point_user_policy_relationship.go +++ b/model_iam_end_point_user_policy_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_iam_end_point_user_policy_response.go b/model_iam_end_point_user_policy_response.go index 8696eb2cc1..902b35eb11 100644 --- a/model_iam_end_point_user_policy_response.go +++ b/model_iam_end_point_user_policy_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_iam_end_point_user_relationship.go b/model_iam_end_point_user_relationship.go index 2bbb7e88a8..f6dc78e1b9 100644 --- a/model_iam_end_point_user_relationship.go +++ b/model_iam_end_point_user_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_iam_end_point_user_response.go b/model_iam_end_point_user_response.go index 7f90ef3da5..fb0f87a7f0 100644 --- a/model_iam_end_point_user_response.go +++ b/model_iam_end_point_user_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_iam_end_point_user_role.go b/model_iam_end_point_user_role.go index 4c17110dda..d3501d1d57 100644 --- a/model_iam_end_point_user_role.go +++ b/model_iam_end_point_user_role.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -35,7 +35,7 @@ type IamEndPointUserRole struct { // Indicates whether the value of the 'password' property has been set. IsPasswordSet *bool `json:"IsPasswordSet,omitempty"` // The password must have a minimum of 8 and a maximum of 127 characters. For servers with IPMI user role enabled, the maximum length is limited to 20 characters. When strong password is enabled, must satisfy below requirements: A. The password must not contain the User's Name. B. The password must contain characters from three of the following four categories. 1) English uppercase characters (A through Z). 2) English lowercase characters (a through z). 3) Base 10 digits (0 through 9). 4) Non-alphabetic characters (! , @, #, $, %, ^, &, *, -, _, +, =). - Password *string `json:"Password,omitempty"` + Password *string `json:"Password,omitempty" validate:"regexp=^[a-zA-Z0-9!@#$%^&\\\\*+-_=]+$"` // An array of relationships to iamEndPointRole resources. EndPointRole []IamEndPointRoleRelationship `json:"EndPointRole,omitempty"` EndPointUser NullableIamEndPointUserRelationship `json:"EndPointUser,omitempty"` @@ -92,6 +92,11 @@ func (o *IamEndPointUserRole) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "iam.EndPointUserRole" of the ClassId field. +func (o *IamEndPointUserRole) GetDefaultClassId() interface{} { + return "iam.EndPointUserRole" +} + // GetObjectType returns the ObjectType field value func (o *IamEndPointUserRole) GetObjectType() string { if o == nil { @@ -116,6 +121,11 @@ func (o *IamEndPointUserRole) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "iam.EndPointUserRole" of the ObjectType field. +func (o *IamEndPointUserRole) GetDefaultObjectType() interface{} { + return "iam.EndPointUserRole" +} + // GetChangePassword returns the ChangePassword field value if set, zero value otherwise. func (o *IamEndPointUserRole) GetChangePassword() bool { if o == nil || IsNil(o.ChangePassword) { @@ -265,7 +275,7 @@ func (o *IamEndPointUserRole) GetEndPointRoleOk() ([]IamEndPointRoleRelationship // HasEndPointRole returns a boolean if a field has been set. func (o *IamEndPointUserRole) HasEndPointRole() bool { - if o != nil && IsNil(o.EndPointRole) { + if o != nil && !IsNil(o.EndPointRole) { return true } @@ -381,7 +391,13 @@ func (o IamEndPointUserRole) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.ChangePassword) { toSerialize["ChangePassword"] = o.ChangePassword @@ -421,6 +437,13 @@ func (o *IamEndPointUserRole) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -430,11 +453,23 @@ func (o *IamEndPointUserRole) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type IamEndPointUserRoleWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` @@ -447,7 +482,7 @@ func (o *IamEndPointUserRole) UnmarshalJSON(data []byte) (err error) { // Indicates whether the value of the 'password' property has been set. IsPasswordSet *bool `json:"IsPasswordSet,omitempty"` // The password must have a minimum of 8 and a maximum of 127 characters. For servers with IPMI user role enabled, the maximum length is limited to 20 characters. When strong password is enabled, must satisfy below requirements: A. The password must not contain the User's Name. B. The password must contain characters from three of the following four categories. 1) English uppercase characters (A through Z). 2) English lowercase characters (a through z). 3) Base 10 digits (0 through 9). 4) Non-alphabetic characters (! , @, #, $, %, ^, &, *, -, _, +, =). - Password *string `json:"Password,omitempty"` + Password *string `json:"Password,omitempty" validate:"regexp=^[a-zA-Z0-9!@#$%^&\\\\*+-_=]+$"` // An array of relationships to iamEndPointRole resources. EndPointRole []IamEndPointRoleRelationship `json:"EndPointRole,omitempty"` EndPointUser NullableIamEndPointUserRelationship `json:"EndPointUser,omitempty"` diff --git a/model_iam_end_point_user_role_inventory.go b/model_iam_end_point_user_role_inventory.go index b302e59deb..026d03d332 100644 --- a/model_iam_end_point_user_role_inventory.go +++ b/model_iam_end_point_user_role_inventory.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -35,7 +35,7 @@ type IamEndPointUserRoleInventory struct { // Indicates whether the value of the 'password' property has been set. IsPasswordSet *bool `json:"IsPasswordSet,omitempty"` // The password must have a minimum of 8 and a maximum of 127 characters. For servers with IPMI user role enabled, the maximum length is limited to 20 characters. When strong password is enabled, must satisfy below requirements: A. The password must not contain the User's Name. B. The password must contain characters from three of the following four categories. 1) English uppercase characters (A through Z). 2) English lowercase characters (a through z). 3) Base 10 digits (0 through 9). 4) Non-alphabetic characters (! , @, #, $, %, ^, &, *, -, _, +, =). - Password *string `json:"Password,omitempty"` + Password *string `json:"Password,omitempty" validate:"regexp=^[a-zA-Z0-9!@#$%^&\\\\*+-_=]+$"` // An array of relationships to iamEndPointRole resources. EndPointRole []IamEndPointRoleRelationship `json:"EndPointRole,omitempty"` EndPointUser NullableIamEndPointUserInventoryRelationship `json:"EndPointUser,omitempty"` @@ -92,6 +92,11 @@ func (o *IamEndPointUserRoleInventory) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "iam.EndPointUserRoleInventory" of the ClassId field. +func (o *IamEndPointUserRoleInventory) GetDefaultClassId() interface{} { + return "iam.EndPointUserRoleInventory" +} + // GetObjectType returns the ObjectType field value func (o *IamEndPointUserRoleInventory) GetObjectType() string { if o == nil { @@ -116,6 +121,11 @@ func (o *IamEndPointUserRoleInventory) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "iam.EndPointUserRoleInventory" of the ObjectType field. +func (o *IamEndPointUserRoleInventory) GetDefaultObjectType() interface{} { + return "iam.EndPointUserRoleInventory" +} + // GetChangePassword returns the ChangePassword field value if set, zero value otherwise. func (o *IamEndPointUserRoleInventory) GetChangePassword() bool { if o == nil || IsNil(o.ChangePassword) { @@ -265,7 +275,7 @@ func (o *IamEndPointUserRoleInventory) GetEndPointRoleOk() ([]IamEndPointRoleRel // HasEndPointRole returns a boolean if a field has been set. func (o *IamEndPointUserRoleInventory) HasEndPointRole() bool { - if o != nil && IsNil(o.EndPointRole) { + if o != nil && !IsNil(o.EndPointRole) { return true } @@ -381,7 +391,13 @@ func (o IamEndPointUserRoleInventory) ToMap() (map[string]interface{}, error) { if errPolicyAbstractInventory != nil { return map[string]interface{}{}, errPolicyAbstractInventory } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.ChangePassword) { toSerialize["ChangePassword"] = o.ChangePassword @@ -421,6 +437,13 @@ func (o *IamEndPointUserRoleInventory) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -430,11 +453,23 @@ func (o *IamEndPointUserRoleInventory) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type IamEndPointUserRoleInventoryWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` @@ -447,7 +482,7 @@ func (o *IamEndPointUserRoleInventory) UnmarshalJSON(data []byte) (err error) { // Indicates whether the value of the 'password' property has been set. IsPasswordSet *bool `json:"IsPasswordSet,omitempty"` // The password must have a minimum of 8 and a maximum of 127 characters. For servers with IPMI user role enabled, the maximum length is limited to 20 characters. When strong password is enabled, must satisfy below requirements: A. The password must not contain the User's Name. B. The password must contain characters from three of the following four categories. 1) English uppercase characters (A through Z). 2) English lowercase characters (a through z). 3) Base 10 digits (0 through 9). 4) Non-alphabetic characters (! , @, #, $, %, ^, &, *, -, _, +, =). - Password *string `json:"Password,omitempty"` + Password *string `json:"Password,omitempty" validate:"regexp=^[a-zA-Z0-9!@#$%^&\\\\*+-_=]+$"` // An array of relationships to iamEndPointRole resources. EndPointRole []IamEndPointRoleRelationship `json:"EndPointRole,omitempty"` EndPointUser NullableIamEndPointUserInventoryRelationship `json:"EndPointUser,omitempty"` diff --git a/model_iam_end_point_user_role_inventory_list.go b/model_iam_end_point_user_role_inventory_list.go index 84eaf272b1..9845b7ba98 100644 --- a/model_iam_end_point_user_role_inventory_list.go +++ b/model_iam_end_point_user_role_inventory_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *IamEndPointUserRoleInventoryList) GetResultsOk() ([]IamEndPointUserRole // HasResults returns a boolean if a field has been set. func (o *IamEndPointUserRoleInventoryList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *IamEndPointUserRoleInventoryList) UnmarshalJSON(data []byte) (err error "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *IamEndPointUserRoleInventoryList) UnmarshalJSON(data []byte) (err error } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type IamEndPointUserRoleInventoryListWithoutEmbeddedStruct struct { // The total number of 'iam.EndPointUserRoleInventory' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_iam_end_point_user_role_inventory_relationship.go b/model_iam_end_point_user_role_inventory_relationship.go index 24af9e73f4..6ee603e4ca 100644 --- a/model_iam_end_point_user_role_inventory_relationship.go +++ b/model_iam_end_point_user_role_inventory_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_iam_end_point_user_role_inventory_response.go b/model_iam_end_point_user_role_inventory_response.go index 105f31ea13..075f99899e 100644 --- a/model_iam_end_point_user_role_inventory_response.go +++ b/model_iam_end_point_user_role_inventory_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_iam_end_point_user_role_list.go b/model_iam_end_point_user_role_list.go index 19d4d9912f..1fa260a0d6 100644 --- a/model_iam_end_point_user_role_list.go +++ b/model_iam_end_point_user_role_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *IamEndPointUserRoleList) GetResultsOk() ([]IamEndPointUserRole, bool) { // HasResults returns a boolean if a field has been set. func (o *IamEndPointUserRoleList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *IamEndPointUserRoleList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *IamEndPointUserRoleList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type IamEndPointUserRoleListWithoutEmbeddedStruct struct { // The total number of 'iam.EndPointUserRole' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_iam_end_point_user_role_relationship.go b/model_iam_end_point_user_role_relationship.go index c9c6e6b8ab..e86426c34b 100644 --- a/model_iam_end_point_user_role_relationship.go +++ b/model_iam_end_point_user_role_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_iam_end_point_user_role_response.go b/model_iam_end_point_user_role_response.go index 622516a98f..34696af871 100644 --- a/model_iam_end_point_user_role_response.go +++ b/model_iam_end_point_user_role_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_iam_failure_details.go b/model_iam_failure_details.go index fda59590e4..ff6975ba3d 100644 --- a/model_iam_failure_details.go +++ b/model_iam_failure_details.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -85,6 +85,11 @@ func (o *IamFailureDetails) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "iam.FailureDetails" of the ClassId field. +func (o *IamFailureDetails) GetDefaultClassId() interface{} { + return "iam.FailureDetails" +} + // GetObjectType returns the ObjectType field value func (o *IamFailureDetails) GetObjectType() string { if o == nil { @@ -109,6 +114,11 @@ func (o *IamFailureDetails) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "iam.FailureDetails" of the ObjectType field. +func (o *IamFailureDetails) GetDefaultObjectType() interface{} { + return "iam.FailureDetails" +} + // GetFailureReason returns the FailureReason field value if set, zero value otherwise. func (o *IamFailureDetails) GetFailureReason() string { if o == nil || IsNil(o.FailureReason) { @@ -191,7 +201,13 @@ func (o IamFailureDetails) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.FailureReason) { toSerialize["FailureReason"] = o.FailureReason @@ -216,6 +232,13 @@ func (o *IamFailureDetails) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -225,11 +248,23 @@ func (o *IamFailureDetails) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type IamFailureDetailsWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_iam_feature_definition.go b/model_iam_feature_definition.go index 1006451d7f..481e1ea028 100644 --- a/model_iam_feature_definition.go +++ b/model_iam_feature_definition.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -86,6 +86,11 @@ func (o *IamFeatureDefinition) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "iam.FeatureDefinition" of the ClassId field. +func (o *IamFeatureDefinition) GetDefaultClassId() interface{} { + return "iam.FeatureDefinition" +} + // GetObjectType returns the ObjectType field value func (o *IamFeatureDefinition) GetObjectType() string { if o == nil { @@ -110,6 +115,11 @@ func (o *IamFeatureDefinition) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "iam.FeatureDefinition" of the ObjectType field. +func (o *IamFeatureDefinition) GetDefaultObjectType() interface{} { + return "iam.FeatureDefinition" +} + // GetFeature returns the Feature field value if set, zero value otherwise. func (o *IamFeatureDefinition) GetFeature() string { if o == nil || IsNil(o.Feature) { @@ -160,7 +170,13 @@ func (o IamFeatureDefinition) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Feature) { toSerialize["Feature"] = o.Feature @@ -182,6 +198,13 @@ func (o *IamFeatureDefinition) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -191,11 +214,23 @@ func (o *IamFeatureDefinition) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type IamFeatureDefinitionWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_iam_group_permission_to_roles.go b/model_iam_group_permission_to_roles.go index d8cbc836b2..9bdf1206fe 100644 --- a/model_iam_group_permission_to_roles.go +++ b/model_iam_group_permission_to_roles.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -82,6 +82,11 @@ func (o *IamGroupPermissionToRoles) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "iam.GroupPermissionToRoles" of the ClassId field. +func (o *IamGroupPermissionToRoles) GetDefaultClassId() interface{} { + return "iam.GroupPermissionToRoles" +} + // GetObjectType returns the ObjectType field value func (o *IamGroupPermissionToRoles) GetObjectType() string { if o == nil { @@ -106,6 +111,11 @@ func (o *IamGroupPermissionToRoles) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "iam.GroupPermissionToRoles" of the ObjectType field. +func (o *IamGroupPermissionToRoles) GetDefaultObjectType() interface{} { + return "iam.GroupPermissionToRoles" +} + // GetGroup returns the Group field value if set, zero value otherwise. func (o *IamGroupPermissionToRoles) GetGroup() MoMoRef { if o == nil || IsNil(o.Group) { @@ -159,7 +169,7 @@ func (o *IamGroupPermissionToRoles) GetOrgsOk() ([]MoMoRef, bool) { // HasOrgs returns a boolean if a field has been set. func (o *IamGroupPermissionToRoles) HasOrgs() bool { - if o != nil && IsNil(o.Orgs) { + if o != nil && !IsNil(o.Orgs) { return true } @@ -189,7 +199,13 @@ func (o IamGroupPermissionToRoles) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Group) { toSerialize["Group"] = o.Group @@ -214,6 +230,13 @@ func (o *IamGroupPermissionToRoles) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -223,11 +246,23 @@ func (o *IamGroupPermissionToRoles) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type IamGroupPermissionToRolesWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_iam_idp.go b/model_iam_idp.go index c0b08ffbda..411be685ad 100644 --- a/model_iam_idp.go +++ b/model_iam_idp.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -30,7 +30,7 @@ type IamIdp struct { ObjectType string `json:"ObjectType"` // Email domain name of the user for this IdP. When a user enters an email during login in the Intersight home page, the IdP is picked by matching this domain name with the email domain name for authentication. // Deprecated - DomainName *string `json:"DomainName,omitempty"` + DomainName *string `json:"DomainName,omitempty" validate:"regexp=^$|^[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\\\\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$"` DomainNames []string `json:"DomainNames,omitempty"` // Setting that indicates whether 'Single Logout (SLO)' has been enabled for this IdP. EnableSingleLogout *bool `json:"EnableSingleLogout,omitempty"` @@ -111,6 +111,11 @@ func (o *IamIdp) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "iam.Idp" of the ClassId field. +func (o *IamIdp) GetDefaultClassId() interface{} { + return "iam.Idp" +} + // GetObjectType returns the ObjectType field value func (o *IamIdp) GetObjectType() string { if o == nil { @@ -135,6 +140,11 @@ func (o *IamIdp) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "iam.Idp" of the ObjectType field. +func (o *IamIdp) GetDefaultObjectType() interface{} { + return "iam.Idp" +} + // GetDomainName returns the DomainName field value if set, zero value otherwise. // Deprecated func (o *IamIdp) GetDomainName() string { @@ -191,7 +201,7 @@ func (o *IamIdp) GetDomainNamesOk() ([]string, bool) { // HasDomainNames returns a boolean if a field has been set. func (o *IamIdp) HasDomainNames() bool { - if o != nil && IsNil(o.DomainNames) { + if o != nil && !IsNil(o.DomainNames) { return true } @@ -545,7 +555,7 @@ func (o *IamIdp) GetUserPreferencesOk() ([]IamUserPreferenceRelationship, bool) // HasUserPreferences returns a boolean if a field has been set. func (o *IamIdp) HasUserPreferences() bool { - if o != nil && IsNil(o.UserPreferences) { + if o != nil && !IsNil(o.UserPreferences) { return true } @@ -578,7 +588,7 @@ func (o *IamIdp) GetUserSettingsOk() ([]IamUserSettingRelationship, bool) { // HasUserSettings returns a boolean if a field has been set. func (o *IamIdp) HasUserSettings() bool { - if o != nil && IsNil(o.UserSettings) { + if o != nil && !IsNil(o.UserSettings) { return true } @@ -611,7 +621,7 @@ func (o *IamIdp) GetUsergroupsOk() ([]IamUserGroupRelationship, bool) { // HasUsergroups returns a boolean if a field has been set. func (o *IamIdp) HasUsergroups() bool { - if o != nil && IsNil(o.Usergroups) { + if o != nil && !IsNil(o.Usergroups) { return true } @@ -644,7 +654,7 @@ func (o *IamIdp) GetUsersOk() ([]IamUserRelationship, bool) { // HasUsers returns a boolean if a field has been set. func (o *IamIdp) HasUsers() bool { - if o != nil && IsNil(o.Users) { + if o != nil && !IsNil(o.Users) { return true } @@ -674,7 +684,13 @@ func (o IamIdp) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.DomainName) { toSerialize["DomainName"] = o.DomainName @@ -738,6 +754,13 @@ func (o *IamIdp) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -747,11 +770,23 @@ func (o *IamIdp) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type IamIdpWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` @@ -759,7 +794,7 @@ func (o *IamIdp) UnmarshalJSON(data []byte) (err error) { ObjectType string `json:"ObjectType"` // Email domain name of the user for this IdP. When a user enters an email during login in the Intersight home page, the IdP is picked by matching this domain name with the email domain name for authentication. // Deprecated - DomainName *string `json:"DomainName,omitempty"` + DomainName *string `json:"DomainName,omitempty" validate:"regexp=^$|^[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\\\\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$"` DomainNames []string `json:"DomainNames,omitempty"` // Setting that indicates whether 'Single Logout (SLO)' has been enabled for this IdP. EnableSingleLogout *bool `json:"EnableSingleLogout,omitempty"` diff --git a/model_iam_idp_list.go b/model_iam_idp_list.go index 53448ee175..fa55b3cd5d 100644 --- a/model_iam_idp_list.go +++ b/model_iam_idp_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *IamIdpList) GetResultsOk() ([]IamIdp, bool) { // HasResults returns a boolean if a field has been set. func (o *IamIdpList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *IamIdpList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *IamIdpList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type IamIdpListWithoutEmbeddedStruct struct { // The total number of 'iam.Idp' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_iam_idp_reference.go b/model_iam_idp_reference.go index 065b8eb337..6247f0f95a 100644 --- a/model_iam_idp_reference.go +++ b/model_iam_idp_reference.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -102,6 +102,11 @@ func (o *IamIdpReference) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "iam.IdpReference" of the ClassId field. +func (o *IamIdpReference) GetDefaultClassId() interface{} { + return "iam.IdpReference" +} + // GetObjectType returns the ObjectType field value func (o *IamIdpReference) GetObjectType() string { if o == nil { @@ -126,6 +131,11 @@ func (o *IamIdpReference) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "iam.IdpReference" of the ObjectType field. +func (o *IamIdpReference) GetDefaultObjectType() interface{} { + return "iam.IdpReference" +} + // GetDomainName returns the DomainName field value if set, zero value otherwise. func (o *IamIdpReference) GetDomainName() string { if o == nil || IsNil(o.DomainName) { @@ -361,7 +371,7 @@ func (o *IamIdpReference) GetUserPreferencesOk() ([]IamUserPreferenceRelationshi // HasUserPreferences returns a boolean if a field has been set. func (o *IamIdpReference) HasUserPreferences() bool { - if o != nil && IsNil(o.UserPreferences) { + if o != nil && !IsNil(o.UserPreferences) { return true } @@ -394,7 +404,7 @@ func (o *IamIdpReference) GetUserSettingsOk() ([]IamUserSettingRelationship, boo // HasUserSettings returns a boolean if a field has been set. func (o *IamIdpReference) HasUserSettings() bool { - if o != nil && IsNil(o.UserSettings) { + if o != nil && !IsNil(o.UserSettings) { return true } @@ -427,7 +437,7 @@ func (o *IamIdpReference) GetUsergroupsOk() ([]IamUserGroupRelationship, bool) { // HasUsergroups returns a boolean if a field has been set. func (o *IamIdpReference) HasUsergroups() bool { - if o != nil && IsNil(o.Usergroups) { + if o != nil && !IsNil(o.Usergroups) { return true } @@ -460,7 +470,7 @@ func (o *IamIdpReference) GetUsersOk() ([]IamUserRelationship, bool) { // HasUsers returns a boolean if a field has been set. func (o *IamIdpReference) HasUsers() bool { - if o != nil && IsNil(o.Users) { + if o != nil && !IsNil(o.Users) { return true } @@ -490,7 +500,13 @@ func (o IamIdpReference) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.DomainName) { toSerialize["DomainName"] = o.DomainName @@ -539,6 +555,13 @@ func (o *IamIdpReference) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -548,11 +571,23 @@ func (o *IamIdpReference) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type IamIdpReferenceWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_iam_idp_reference_list.go b/model_iam_idp_reference_list.go index e9ffcb4aa9..6d7c1dd7e9 100644 --- a/model_iam_idp_reference_list.go +++ b/model_iam_idp_reference_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *IamIdpReferenceList) GetResultsOk() ([]IamIdpReference, bool) { // HasResults returns a boolean if a field has been set. func (o *IamIdpReferenceList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *IamIdpReferenceList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *IamIdpReferenceList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type IamIdpReferenceListWithoutEmbeddedStruct struct { // The total number of 'iam.IdpReference' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_iam_idp_reference_relationship.go b/model_iam_idp_reference_relationship.go index 1b7eea2f12..adac788e18 100644 --- a/model_iam_idp_reference_relationship.go +++ b/model_iam_idp_reference_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_iam_idp_reference_response.go b/model_iam_idp_reference_response.go index f5d5dee659..fcecb5c60f 100644 --- a/model_iam_idp_reference_response.go +++ b/model_iam_idp_reference_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_iam_idp_relationship.go b/model_iam_idp_relationship.go index f9baf24ef3..a32ddcb518 100644 --- a/model_iam_idp_relationship.go +++ b/model_iam_idp_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_iam_idp_response.go b/model_iam_idp_response.go index d1eb7cd84f..440419b22a 100644 --- a/model_iam_idp_response.go +++ b/model_iam_idp_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_iam_ip_access_management.go b/model_iam_ip_access_management.go index a31e7a2250..f9245a7501 100644 --- a/model_iam_ip_access_management.go +++ b/model_iam_ip_access_management.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -88,6 +88,11 @@ func (o *IamIpAccessManagement) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "iam.IpAccessManagement" of the ClassId field. +func (o *IamIpAccessManagement) GetDefaultClassId() interface{} { + return "iam.IpAccessManagement" +} + // GetObjectType returns the ObjectType field value func (o *IamIpAccessManagement) GetObjectType() string { if o == nil { @@ -112,6 +117,11 @@ func (o *IamIpAccessManagement) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "iam.IpAccessManagement" of the ObjectType field. +func (o *IamIpAccessManagement) GetDefaultObjectType() interface{} { + return "iam.IpAccessManagement" +} + // GetEnable returns the Enable field value if set, zero value otherwise. func (o *IamIpAccessManagement) GetEnable() bool { if o == nil || IsNil(o.Enable) { @@ -240,7 +250,7 @@ func (o *IamIpAccessManagement) GetIpAddressesOk() ([]IamIpAddressRelationship, // HasIpAddresses returns a boolean if a field has been set. func (o *IamIpAccessManagement) HasIpAddresses() bool { - if o != nil && IsNil(o.IpAddresses) { + if o != nil && !IsNil(o.IpAddresses) { return true } @@ -270,7 +280,13 @@ func (o IamIpAccessManagement) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Enable) { toSerialize["Enable"] = o.Enable @@ -301,6 +317,13 @@ func (o *IamIpAccessManagement) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -310,11 +333,23 @@ func (o *IamIpAccessManagement) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type IamIpAccessManagementWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_iam_ip_access_management_list.go b/model_iam_ip_access_management_list.go index 7cf2952cca..bceca19136 100644 --- a/model_iam_ip_access_management_list.go +++ b/model_iam_ip_access_management_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *IamIpAccessManagementList) GetResultsOk() ([]IamIpAccessManagement, boo // HasResults returns a boolean if a field has been set. func (o *IamIpAccessManagementList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *IamIpAccessManagementList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *IamIpAccessManagementList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type IamIpAccessManagementListWithoutEmbeddedStruct struct { // The total number of 'iam.IpAccessManagement' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_iam_ip_access_management_relationship.go b/model_iam_ip_access_management_relationship.go index 6fc83c9683..6c051a78ab 100644 --- a/model_iam_ip_access_management_relationship.go +++ b/model_iam_ip_access_management_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_iam_ip_access_management_response.go b/model_iam_ip_access_management_response.go index 310c0df9c0..299753a388 100644 --- a/model_iam_ip_access_management_response.go +++ b/model_iam_ip_access_management_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_iam_ip_address.go b/model_iam_ip_address.go index 694b1c6b47..b89fdd7bc9 100644 --- a/model_iam_ip_address.go +++ b/model_iam_ip_address.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -85,6 +85,11 @@ func (o *IamIpAddress) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "iam.IpAddress" of the ClassId field. +func (o *IamIpAddress) GetDefaultClassId() interface{} { + return "iam.IpAddress" +} + // GetObjectType returns the ObjectType field value func (o *IamIpAddress) GetObjectType() string { if o == nil { @@ -109,6 +114,11 @@ func (o *IamIpAddress) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "iam.IpAddress" of the ObjectType field. +func (o *IamIpAddress) GetDefaultObjectType() interface{} { + return "iam.IpAddress" +} + // GetAddress returns the Address field value if set, zero value otherwise. func (o *IamIpAddress) GetAddress() string { if o == nil || IsNil(o.Address) { @@ -234,7 +244,13 @@ func (o IamIpAddress) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Address) { toSerialize["Address"] = o.Address @@ -262,6 +278,13 @@ func (o *IamIpAddress) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -271,11 +294,23 @@ func (o *IamIpAddress) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type IamIpAddressWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_iam_ip_address_list.go b/model_iam_ip_address_list.go index 0909e55fdd..c9d290e1ab 100644 --- a/model_iam_ip_address_list.go +++ b/model_iam_ip_address_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *IamIpAddressList) GetResultsOk() ([]IamIpAddress, bool) { // HasResults returns a boolean if a field has been set. func (o *IamIpAddressList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *IamIpAddressList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *IamIpAddressList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type IamIpAddressListWithoutEmbeddedStruct struct { // The total number of 'iam.IpAddress' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_iam_ip_address_relationship.go b/model_iam_ip_address_relationship.go index 4082d118db..6dc177eb2b 100644 --- a/model_iam_ip_address_relationship.go +++ b/model_iam_ip_address_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_iam_ip_address_response.go b/model_iam_ip_address_response.go index 96288b4ddf..faf7186405 100644 --- a/model_iam_ip_address_response.go +++ b/model_iam_ip_address_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_iam_ldap_base_properties.go b/model_iam_ldap_base_properties.go index d5bf7a5afb..76c7286582 100644 --- a/model_iam_ldap_base_properties.go +++ b/model_iam_ldap_base_properties.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -29,7 +29,7 @@ type IamLdapBaseProperties struct { // The fully-qualified name of the instantiated, concrete type. The value should be the same as the 'ClassId' property. ObjectType string `json:"ObjectType"` // Role and locale information of the user. - Attribute *string `json:"Attribute,omitempty"` + Attribute *string `json:"Attribute,omitempty" validate:"regexp=^$|^[a-zA-Z0-9][a-zA-Z0-9\\\\-\\\\.]*[a-zA-Z0-9\\\\-]$"` // Base Distinguished Name (DN). Starting point from where server will search for users and groups. BaseDn *string `json:"BaseDn,omitempty"` // Distinguished Name (DN) of the user, that is used to authenticate against LDAP servers. @@ -37,7 +37,7 @@ type IamLdapBaseProperties struct { // Authentication method to access LDAP servers. * `LoginCredentials` - Requires the user credentials. If the bind process fails, then user is denied access. * `Anonymous` - Requires no username and password. If this option is selected and the LDAP server is configured for Anonymous logins, then the user gains access. * `ConfiguredCredentials` - Requires a known set of credentials to be specified for the initial bind process. If the initial bind process succeeds, then the distinguished name (DN) of the user name is queried and re-used for the re-binding process. If the re-binding process fails, then the user is denied access. BindMethod *string `json:"BindMethod,omitempty"` // The IPv4 domain that all users must be in. - Domain *string `json:"Domain,omitempty"` + Domain *string `json:"Domain,omitempty" validate:"regexp=^$|^(([a-zA-Z0-9])|([a-zA-Z0-9][a-zA-Z0-9\\\\.\\\\-]*[a-zA-Z0-9]))$"` // If enabled, the endpoint encrypts all information it sends to the LDAP server. EnableEncryption *bool `json:"EnableEncryption,omitempty"` // If enabled, user authorization is also done at the group level for LDAP users not in the local user database. @@ -45,15 +45,15 @@ type IamLdapBaseProperties struct { // If enabled, an extended search walks the chain of ancestry all the way to the root and returns all the groups and subgroups, each of those groups belong to recursively. EnableNestedGroupSearch *bool `json:"EnableNestedGroupSearch,omitempty"` // Criteria to identify entries in search requests. - Filter *string `json:"Filter,omitempty"` + Filter *string `json:"Filter,omitempty" validate:"regexp=^$|^[a-zA-Z0-9(][a-zA-Z0-9_#@$%&\\\\-\\\\^|()*=:!,.]*[a-zA-Z0-9\\\\-)]$"` // Groups to which an LDAP entry belongs. - GroupAttribute *string `json:"GroupAttribute,omitempty"` + GroupAttribute *string `json:"GroupAttribute,omitempty" validate:"regexp=^$|^[a-zA-Z0-9][a-zA-Z0-9_#@$%&\\\\-\\\\^]*[a-zA-Z0-9\\\\-]$"` // Indicates whether the value of the 'password' property has been set. IsPasswordSet *bool `json:"IsPasswordSet,omitempty"` // Search depth to look for a nested LDAP group in an LDAP group map. NestedGroupSearchDepth *int64 `json:"NestedGroupSearchDepth,omitempty"` // The password of the user for initial bind process. It can be any string that adheres to the following constraints. It can have character except spaces, tabs, line breaks. It cannot be more than 254 characters. - Password *string `json:"Password,omitempty"` + Password *string `json:"Password,omitempty" validate:"regexp=^[\\\\S+]{0,254}$"` // LDAP authentication timeout duration, in seconds. Timeout *int64 `json:"Timeout,omitempty"` AdditionalProperties map[string]interface{} @@ -124,6 +124,11 @@ func (o *IamLdapBaseProperties) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "iam.LdapBaseProperties" of the ClassId field. +func (o *IamLdapBaseProperties) GetDefaultClassId() interface{} { + return "iam.LdapBaseProperties" +} + // GetObjectType returns the ObjectType field value func (o *IamLdapBaseProperties) GetObjectType() string { if o == nil { @@ -148,6 +153,11 @@ func (o *IamLdapBaseProperties) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "iam.LdapBaseProperties" of the ObjectType field. +func (o *IamLdapBaseProperties) GetDefaultObjectType() interface{} { + return "iam.LdapBaseProperties" +} + // GetAttribute returns the Attribute field value if set, zero value otherwise. func (o *IamLdapBaseProperties) GetAttribute() string { if o == nil || IsNil(o.Attribute) { @@ -614,7 +624,13 @@ func (o IamLdapBaseProperties) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Attribute) { toSerialize["Attribute"] = o.Attribute @@ -675,6 +691,13 @@ func (o *IamLdapBaseProperties) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -684,18 +707,30 @@ func (o *IamLdapBaseProperties) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type IamLdapBasePropertiesWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` // The fully-qualified name of the instantiated, concrete type. The value should be the same as the 'ClassId' property. ObjectType string `json:"ObjectType"` // Role and locale information of the user. - Attribute *string `json:"Attribute,omitempty"` + Attribute *string `json:"Attribute,omitempty" validate:"regexp=^$|^[a-zA-Z0-9][a-zA-Z0-9\\\\-\\\\.]*[a-zA-Z0-9\\\\-]$"` // Base Distinguished Name (DN). Starting point from where server will search for users and groups. BaseDn *string `json:"BaseDn,omitempty"` // Distinguished Name (DN) of the user, that is used to authenticate against LDAP servers. @@ -703,7 +738,7 @@ func (o *IamLdapBaseProperties) UnmarshalJSON(data []byte) (err error) { // Authentication method to access LDAP servers. * `LoginCredentials` - Requires the user credentials. If the bind process fails, then user is denied access. * `Anonymous` - Requires no username and password. If this option is selected and the LDAP server is configured for Anonymous logins, then the user gains access. * `ConfiguredCredentials` - Requires a known set of credentials to be specified for the initial bind process. If the initial bind process succeeds, then the distinguished name (DN) of the user name is queried and re-used for the re-binding process. If the re-binding process fails, then the user is denied access. BindMethod *string `json:"BindMethod,omitempty"` // The IPv4 domain that all users must be in. - Domain *string `json:"Domain,omitempty"` + Domain *string `json:"Domain,omitempty" validate:"regexp=^$|^(([a-zA-Z0-9])|([a-zA-Z0-9][a-zA-Z0-9\\\\.\\\\-]*[a-zA-Z0-9]))$"` // If enabled, the endpoint encrypts all information it sends to the LDAP server. EnableEncryption *bool `json:"EnableEncryption,omitempty"` // If enabled, user authorization is also done at the group level for LDAP users not in the local user database. @@ -711,15 +746,15 @@ func (o *IamLdapBaseProperties) UnmarshalJSON(data []byte) (err error) { // If enabled, an extended search walks the chain of ancestry all the way to the root and returns all the groups and subgroups, each of those groups belong to recursively. EnableNestedGroupSearch *bool `json:"EnableNestedGroupSearch,omitempty"` // Criteria to identify entries in search requests. - Filter *string `json:"Filter,omitempty"` + Filter *string `json:"Filter,omitempty" validate:"regexp=^$|^[a-zA-Z0-9(][a-zA-Z0-9_#@$%&\\\\-\\\\^|()*=:!,.]*[a-zA-Z0-9\\\\-)]$"` // Groups to which an LDAP entry belongs. - GroupAttribute *string `json:"GroupAttribute,omitempty"` + GroupAttribute *string `json:"GroupAttribute,omitempty" validate:"regexp=^$|^[a-zA-Z0-9][a-zA-Z0-9_#@$%&\\\\-\\\\^]*[a-zA-Z0-9\\\\-]$"` // Indicates whether the value of the 'password' property has been set. IsPasswordSet *bool `json:"IsPasswordSet,omitempty"` // Search depth to look for a nested LDAP group in an LDAP group map. NestedGroupSearchDepth *int64 `json:"NestedGroupSearchDepth,omitempty"` // The password of the user for initial bind process. It can be any string that adheres to the following constraints. It can have character except spaces, tabs, line breaks. It cannot be more than 254 characters. - Password *string `json:"Password,omitempty"` + Password *string `json:"Password,omitempty" validate:"regexp=^[\\\\S+]{0,254}$"` // LDAP authentication timeout duration, in seconds. Timeout *int64 `json:"Timeout,omitempty"` } diff --git a/model_iam_ldap_config_params.go b/model_iam_ldap_config_params.go index 4b9c3637d7..b4a4d6a46d 100644 --- a/model_iam_ldap_config_params.go +++ b/model_iam_ldap_config_params.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -83,6 +83,11 @@ func (o *IamLdapConfigParams) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "iam.LdapConfigParams" of the ClassId field. +func (o *IamLdapConfigParams) GetDefaultClassId() interface{} { + return "iam.LdapConfigParams" +} + // GetObjectType returns the ObjectType field value func (o *IamLdapConfigParams) GetObjectType() string { if o == nil { @@ -107,6 +112,11 @@ func (o *IamLdapConfigParams) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "iam.LdapConfigParams" of the ObjectType field. +func (o *IamLdapConfigParams) GetDefaultObjectType() interface{} { + return "iam.LdapConfigParams" +} + // GetConfigHost returns the ConfigHost field value if set, zero value otherwise. func (o *IamLdapConfigParams) GetConfigHost() string { if o == nil || IsNil(o.ConfigHost) { @@ -200,7 +210,13 @@ func (o IamLdapConfigParams) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.ConfigHost) { toSerialize["ConfigHost"] = o.ConfigHost @@ -225,6 +241,13 @@ func (o *IamLdapConfigParams) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -234,11 +257,23 @@ func (o *IamLdapConfigParams) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type IamLdapConfigParamsWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_iam_ldap_config_params_list.go b/model_iam_ldap_config_params_list.go index 29afd608d6..65df83edb1 100644 --- a/model_iam_ldap_config_params_list.go +++ b/model_iam_ldap_config_params_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *IamLdapConfigParamsList) GetResultsOk() ([]IamLdapConfigParams, bool) { // HasResults returns a boolean if a field has been set. func (o *IamLdapConfigParamsList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *IamLdapConfigParamsList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *IamLdapConfigParamsList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type IamLdapConfigParamsListWithoutEmbeddedStruct struct { // The total number of 'iam.LdapConfigParams' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_iam_ldap_config_params_response.go b/model_iam_ldap_config_params_response.go index 515065184f..9b5a1f8ea1 100644 --- a/model_iam_ldap_config_params_response.go +++ b/model_iam_ldap_config_params_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_iam_ldap_dns_parameters.go b/model_iam_ldap_dns_parameters.go index b3aa792aed..7bc8ce6c1d 100644 --- a/model_iam_ldap_dns_parameters.go +++ b/model_iam_ldap_dns_parameters.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -29,9 +29,9 @@ type IamLdapDnsParameters struct { // The fully-qualified name of the instantiated, concrete type. The value should be the same as the 'ClassId' property. ObjectType string `json:"ObjectType"` // Domain name that acts as a source for a DNS query. - SearchDomain *string `json:"SearchDomain,omitempty"` + SearchDomain *string `json:"SearchDomain,omitempty" validate:"regexp=^$|^(([a-zA-Z0-9])|([a-zA-Z0-9][a-zA-Z0-9\\\\.\\\\-]*[a-zA-Z0-9]))$"` // Forest name that acts as a source for a DNS query. - SearchForest *string `json:"SearchForest,omitempty"` + SearchForest *string `json:"SearchForest,omitempty" validate:"regexp=^$|^(([a-zA-Z0-9])|([a-zA-Z0-9][a-zA-Z0-9\\\\.\\\\-]*[a-zA-Z0-9]))$"` // Source of the domain name used for the DNS SRV request. * `Extracted` - The domain name extracted-domain from the login ID. * `Configured` - The configured-search domain. * `ConfiguredExtracted` - The domain name extracted from the login ID than the configured-search domain. Source *string `json:"Source,omitempty"` AdditionalProperties map[string]interface{} @@ -90,6 +90,11 @@ func (o *IamLdapDnsParameters) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "iam.LdapDnsParameters" of the ClassId field. +func (o *IamLdapDnsParameters) GetDefaultClassId() interface{} { + return "iam.LdapDnsParameters" +} + // GetObjectType returns the ObjectType field value func (o *IamLdapDnsParameters) GetObjectType() string { if o == nil { @@ -114,6 +119,11 @@ func (o *IamLdapDnsParameters) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "iam.LdapDnsParameters" of the ObjectType field. +func (o *IamLdapDnsParameters) GetDefaultObjectType() interface{} { + return "iam.LdapDnsParameters" +} + // GetSearchDomain returns the SearchDomain field value if set, zero value otherwise. func (o *IamLdapDnsParameters) GetSearchDomain() string { if o == nil || IsNil(o.SearchDomain) { @@ -228,7 +238,13 @@ func (o IamLdapDnsParameters) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.SearchDomain) { toSerialize["SearchDomain"] = o.SearchDomain @@ -256,6 +272,13 @@ func (o *IamLdapDnsParameters) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -265,20 +288,32 @@ func (o *IamLdapDnsParameters) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type IamLdapDnsParametersWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` // The fully-qualified name of the instantiated, concrete type. The value should be the same as the 'ClassId' property. ObjectType string `json:"ObjectType"` // Domain name that acts as a source for a DNS query. - SearchDomain *string `json:"SearchDomain,omitempty"` + SearchDomain *string `json:"SearchDomain,omitempty" validate:"regexp=^$|^(([a-zA-Z0-9])|([a-zA-Z0-9][a-zA-Z0-9\\\\.\\\\-]*[a-zA-Z0-9]))$"` // Forest name that acts as a source for a DNS query. - SearchForest *string `json:"SearchForest,omitempty"` + SearchForest *string `json:"SearchForest,omitempty" validate:"regexp=^$|^(([a-zA-Z0-9])|([a-zA-Z0-9][a-zA-Z0-9\\\\.\\\\-]*[a-zA-Z0-9]))$"` // Source of the domain name used for the DNS SRV request. * `Extracted` - The domain name extracted-domain from the login ID. * `Configured` - The configured-search domain. * `ConfiguredExtracted` - The domain name extracted from the login ID than the configured-search domain. Source *string `json:"Source,omitempty"` } diff --git a/model_iam_ldap_group.go b/model_iam_ldap_group.go index fc22f5546d..c7307ae4b3 100644 --- a/model_iam_ldap_group.go +++ b/model_iam_ldap_group.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -29,9 +29,9 @@ type IamLdapGroup struct { // The fully-qualified name of the instantiated, concrete type. The value should be the same as the 'ClassId' property. ObjectType string `json:"ObjectType"` // LDAP server domain the Group resides in. - Domain *string `json:"Domain,omitempty"` + Domain *string `json:"Domain,omitempty" validate:"regexp=^[a-zA-Z0-9-]+(.[a-zA-Z0-9-]+)*$"` // LDAP Group name in the LDAP server database. - Name *string `json:"Name,omitempty"` + Name *string `json:"Name,omitempty" validate:"regexp=^([^+\\\\-][a-zA-Z0-9=!#$%()*+,-.:;@ _{|}~?&]*)$"` // An array of relationships to iamEndPointRole resources. EndPointRole []IamEndPointRoleRelationship `json:"EndPointRole,omitempty"` LdapPolicy NullableIamLdapPolicyRelationship `json:"LdapPolicy,omitempty"` @@ -87,6 +87,11 @@ func (o *IamLdapGroup) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "iam.LdapGroup" of the ClassId field. +func (o *IamLdapGroup) GetDefaultClassId() interface{} { + return "iam.LdapGroup" +} + // GetObjectType returns the ObjectType field value func (o *IamLdapGroup) GetObjectType() string { if o == nil { @@ -111,6 +116,11 @@ func (o *IamLdapGroup) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "iam.LdapGroup" of the ObjectType field. +func (o *IamLdapGroup) GetDefaultObjectType() interface{} { + return "iam.LdapGroup" +} + // GetDomain returns the Domain field value if set, zero value otherwise. func (o *IamLdapGroup) GetDomain() string { if o == nil || IsNil(o.Domain) { @@ -196,7 +206,7 @@ func (o *IamLdapGroup) GetEndPointRoleOk() ([]IamEndPointRoleRelationship, bool) // HasEndPointRole returns a boolean if a field has been set. func (o *IamLdapGroup) HasEndPointRole() bool { - if o != nil && IsNil(o.EndPointRole) { + if o != nil && !IsNil(o.EndPointRole) { return true } @@ -269,7 +279,13 @@ func (o IamLdapGroup) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Domain) { toSerialize["Domain"] = o.Domain @@ -300,6 +316,13 @@ func (o *IamLdapGroup) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -309,20 +332,32 @@ func (o *IamLdapGroup) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type IamLdapGroupWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` // The fully-qualified name of the instantiated, concrete type. The value should be the same as the 'ClassId' property. ObjectType string `json:"ObjectType"` // LDAP server domain the Group resides in. - Domain *string `json:"Domain,omitempty"` + Domain *string `json:"Domain,omitempty" validate:"regexp=^[a-zA-Z0-9-]+(.[a-zA-Z0-9-]+)*$"` // LDAP Group name in the LDAP server database. - Name *string `json:"Name,omitempty"` + Name *string `json:"Name,omitempty" validate:"regexp=^([^+\\\\-][a-zA-Z0-9=!#$%()*+,-.:;@ _{|}~?&]*)$"` // An array of relationships to iamEndPointRole resources. EndPointRole []IamEndPointRoleRelationship `json:"EndPointRole,omitempty"` LdapPolicy NullableIamLdapPolicyRelationship `json:"LdapPolicy,omitempty"` diff --git a/model_iam_ldap_group_list.go b/model_iam_ldap_group_list.go index bbcfed204e..e231254ed8 100644 --- a/model_iam_ldap_group_list.go +++ b/model_iam_ldap_group_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *IamLdapGroupList) GetResultsOk() ([]IamLdapGroup, bool) { // HasResults returns a boolean if a field has been set. func (o *IamLdapGroupList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *IamLdapGroupList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *IamLdapGroupList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type IamLdapGroupListWithoutEmbeddedStruct struct { // The total number of 'iam.LdapGroup' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_iam_ldap_group_relationship.go b/model_iam_ldap_group_relationship.go index 2bb89798e7..0e7cfccf24 100644 --- a/model_iam_ldap_group_relationship.go +++ b/model_iam_ldap_group_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_iam_ldap_group_response.go b/model_iam_ldap_group_response.go index 80f1f1a554..c127cb6d21 100644 --- a/model_iam_ldap_group_response.go +++ b/model_iam_ldap_group_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_iam_ldap_policy.go b/model_iam_ldap_policy.go index c86aa0d9ff..3a989da865 100644 --- a/model_iam_ldap_policy.go +++ b/model_iam_ldap_policy.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,6 +104,11 @@ func (o *IamLdapPolicy) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "iam.LdapPolicy" of the ClassId field. +func (o *IamLdapPolicy) GetDefaultClassId() interface{} { + return "iam.LdapPolicy" +} + // GetObjectType returns the ObjectType field value func (o *IamLdapPolicy) GetObjectType() string { if o == nil { @@ -128,6 +133,11 @@ func (o *IamLdapPolicy) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "iam.LdapPolicy" of the ObjectType field. +func (o *IamLdapPolicy) GetDefaultObjectType() interface{} { + return "iam.LdapPolicy" +} + // GetBaseProperties returns the BaseProperties field value if set, zero value otherwise (both if not set or set to explicit null). func (o *IamLdapPolicy) GetBaseProperties() IamLdapBaseProperties { if o == nil || IsNil(o.BaseProperties.Get()) { @@ -374,7 +384,7 @@ func (o *IamLdapPolicy) GetGroupsOk() ([]IamLdapGroupRelationship, bool) { // HasGroups returns a boolean if a field has been set. func (o *IamLdapPolicy) HasGroups() bool { - if o != nil && IsNil(o.Groups) { + if o != nil && !IsNil(o.Groups) { return true } @@ -450,7 +460,7 @@ func (o *IamLdapPolicy) GetProfilesOk() ([]PolicyAbstractConfigProfileRelationsh // HasProfiles returns a boolean if a field has been set. func (o *IamLdapPolicy) HasProfiles() bool { - if o != nil && IsNil(o.Profiles) { + if o != nil && !IsNil(o.Profiles) { return true } @@ -483,7 +493,7 @@ func (o *IamLdapPolicy) GetProvidersOk() ([]IamLdapProviderRelationship, bool) { // HasProviders returns a boolean if a field has been set. func (o *IamLdapPolicy) HasProviders() bool { - if o != nil && IsNil(o.Providers) { + if o != nil && !IsNil(o.Providers) { return true } @@ -513,7 +523,13 @@ func (o IamLdapPolicy) ToMap() (map[string]interface{}, error) { if errPolicyAbstractPolicy != nil { return map[string]interface{}{}, errPolicyAbstractPolicy } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.BaseProperties.IsSet() { toSerialize["BaseProperties"] = o.BaseProperties.Get() @@ -562,6 +578,13 @@ func (o *IamLdapPolicy) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -571,11 +594,23 @@ func (o *IamLdapPolicy) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type IamLdapPolicyWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_iam_ldap_policy_list.go b/model_iam_ldap_policy_list.go index 1889645993..609fdd7854 100644 --- a/model_iam_ldap_policy_list.go +++ b/model_iam_ldap_policy_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *IamLdapPolicyList) GetResultsOk() ([]IamLdapPolicy, bool) { // HasResults returns a boolean if a field has been set. func (o *IamLdapPolicyList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *IamLdapPolicyList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *IamLdapPolicyList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type IamLdapPolicyListWithoutEmbeddedStruct struct { // The total number of 'iam.LdapPolicy' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_iam_ldap_policy_relationship.go b/model_iam_ldap_policy_relationship.go index eac46ed68a..930eba8479 100644 --- a/model_iam_ldap_policy_relationship.go +++ b/model_iam_ldap_policy_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_iam_ldap_policy_response.go b/model_iam_ldap_policy_response.go index b3b59f8647..91f23775ab 100644 --- a/model_iam_ldap_policy_response.go +++ b/model_iam_ldap_policy_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_iam_ldap_provider.go b/model_iam_ldap_provider.go index fef972524e..5e578a656f 100644 --- a/model_iam_ldap_provider.go +++ b/model_iam_ldap_provider.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -89,6 +89,11 @@ func (o *IamLdapProvider) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "iam.LdapProvider" of the ClassId field. +func (o *IamLdapProvider) GetDefaultClassId() interface{} { + return "iam.LdapProvider" +} + // GetObjectType returns the ObjectType field value func (o *IamLdapProvider) GetObjectType() string { if o == nil { @@ -113,6 +118,11 @@ func (o *IamLdapProvider) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "iam.LdapProvider" of the ObjectType field. +func (o *IamLdapProvider) GetDefaultObjectType() interface{} { + return "iam.LdapProvider" +} + // GetPort returns the Port field value if set, zero value otherwise. func (o *IamLdapProvider) GetPort() int64 { if o == nil || IsNil(o.Port) { @@ -238,7 +248,13 @@ func (o IamLdapProvider) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Port) { toSerialize["Port"] = o.Port @@ -266,6 +282,13 @@ func (o *IamLdapProvider) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -275,11 +298,23 @@ func (o *IamLdapProvider) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type IamLdapProviderWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_iam_ldap_provider_list.go b/model_iam_ldap_provider_list.go index 153b273c65..2dd97d12ef 100644 --- a/model_iam_ldap_provider_list.go +++ b/model_iam_ldap_provider_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *IamLdapProviderList) GetResultsOk() ([]IamLdapProvider, bool) { // HasResults returns a boolean if a field has been set. func (o *IamLdapProviderList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *IamLdapProviderList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *IamLdapProviderList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type IamLdapProviderListWithoutEmbeddedStruct struct { // The total number of 'iam.LdapProvider' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_iam_ldap_provider_relationship.go b/model_iam_ldap_provider_relationship.go index 3486ff5e6c..688a8ebf79 100644 --- a/model_iam_ldap_provider_relationship.go +++ b/model_iam_ldap_provider_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_iam_ldap_provider_response.go b/model_iam_ldap_provider_response.go index d4fd6de3ab..d777c7504b 100644 --- a/model_iam_ldap_provider_response.go +++ b/model_iam_ldap_provider_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_iam_local_user_password.go b/model_iam_local_user_password.go index 34165cf575..9901f0fbfa 100644 --- a/model_iam_local_user_password.go +++ b/model_iam_local_user_password.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -97,6 +97,11 @@ func (o *IamLocalUserPassword) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "iam.LocalUserPassword" of the ClassId field. +func (o *IamLocalUserPassword) GetDefaultClassId() interface{} { + return "iam.LocalUserPassword" +} + // GetObjectType returns the ObjectType field value func (o *IamLocalUserPassword) GetObjectType() string { if o == nil { @@ -121,6 +126,11 @@ func (o *IamLocalUserPassword) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "iam.LocalUserPassword" of the ObjectType field. +func (o *IamLocalUserPassword) GetDefaultObjectType() interface{} { + return "iam.LocalUserPassword" +} + // GetCurrentPassword returns the CurrentPassword field value if set, zero value otherwise. func (o *IamLocalUserPassword) GetCurrentPassword() string { if o == nil || IsNil(o.CurrentPassword) { @@ -438,7 +448,13 @@ func (o IamLocalUserPassword) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.CurrentPassword) { toSerialize["CurrentPassword"] = o.CurrentPassword @@ -484,6 +500,13 @@ func (o *IamLocalUserPassword) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -493,11 +516,23 @@ func (o *IamLocalUserPassword) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type IamLocalUserPasswordWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_iam_local_user_password_list.go b/model_iam_local_user_password_list.go index 43944ceb7d..19c802e562 100644 --- a/model_iam_local_user_password_list.go +++ b/model_iam_local_user_password_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *IamLocalUserPasswordList) GetResultsOk() ([]IamLocalUserPassword, bool) // HasResults returns a boolean if a field has been set. func (o *IamLocalUserPasswordList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *IamLocalUserPasswordList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *IamLocalUserPasswordList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type IamLocalUserPasswordListWithoutEmbeddedStruct struct { // The total number of 'iam.LocalUserPassword' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_iam_local_user_password_policy.go b/model_iam_local_user_password_policy.go index aa7932d680..a529387d22 100644 --- a/model_iam_local_user_password_policy.go +++ b/model_iam_local_user_password_policy.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -153,6 +153,11 @@ func (o *IamLocalUserPasswordPolicy) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "iam.LocalUserPasswordPolicy" of the ClassId field. +func (o *IamLocalUserPasswordPolicy) GetDefaultClassId() interface{} { + return "iam.LocalUserPasswordPolicy" +} + // GetObjectType returns the ObjectType field value func (o *IamLocalUserPasswordPolicy) GetObjectType() string { if o == nil { @@ -177,6 +182,11 @@ func (o *IamLocalUserPasswordPolicy) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "iam.LocalUserPasswordPolicy" of the ObjectType field. +func (o *IamLocalUserPasswordPolicy) GetDefaultObjectType() interface{} { + return "iam.LocalUserPasswordPolicy" +} + // GetEnableLockOutForAdminUser returns the EnableLockOutForAdminUser field value if set, zero value otherwise. func (o *IamLocalUserPasswordPolicy) GetEnableLockOutForAdminUser() bool { if o == nil || IsNil(o.EnableLockOutForAdminUser) { @@ -622,7 +632,13 @@ func (o IamLocalUserPasswordPolicy) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.EnableLockOutForAdminUser) { toSerialize["EnableLockOutForAdminUser"] = o.EnableLockOutForAdminUser @@ -680,6 +696,13 @@ func (o *IamLocalUserPasswordPolicy) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -689,11 +712,23 @@ func (o *IamLocalUserPasswordPolicy) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type IamLocalUserPasswordPolicyWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_iam_local_user_password_policy_list.go b/model_iam_local_user_password_policy_list.go index 6141a99e32..0120d941db 100644 --- a/model_iam_local_user_password_policy_list.go +++ b/model_iam_local_user_password_policy_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *IamLocalUserPasswordPolicyList) GetResultsOk() ([]IamLocalUserPasswordP // HasResults returns a boolean if a field has been set. func (o *IamLocalUserPasswordPolicyList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *IamLocalUserPasswordPolicyList) UnmarshalJSON(data []byte) (err error) "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *IamLocalUserPasswordPolicyList) UnmarshalJSON(data []byte) (err error) } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type IamLocalUserPasswordPolicyListWithoutEmbeddedStruct struct { // The total number of 'iam.LocalUserPasswordPolicy' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_iam_local_user_password_policy_response.go b/model_iam_local_user_password_policy_response.go index 860691d812..8b664c3f1e 100644 --- a/model_iam_local_user_password_policy_response.go +++ b/model_iam_local_user_password_policy_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_iam_local_user_password_relationship.go b/model_iam_local_user_password_relationship.go index 040225dde7..64e6bd575a 100644 --- a/model_iam_local_user_password_relationship.go +++ b/model_iam_local_user_password_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_iam_local_user_password_response.go b/model_iam_local_user_password_response.go index 146ce669ce..c8e3b65458 100644 --- a/model_iam_local_user_password_response.go +++ b/model_iam_local_user_password_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_iam_o_auth_token.go b/model_iam_o_auth_token.go index 81de11ec72..4f0f6884d6 100644 --- a/model_iam_o_auth_token.go +++ b/model_iam_o_auth_token.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -101,6 +101,11 @@ func (o *IamOAuthToken) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "iam.OAuthToken" of the ClassId field. +func (o *IamOAuthToken) GetDefaultClassId() interface{} { + return "iam.OAuthToken" +} + // GetObjectType returns the ObjectType field value func (o *IamOAuthToken) GetObjectType() string { if o == nil { @@ -125,6 +130,11 @@ func (o *IamOAuthToken) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "iam.OAuthToken" of the ObjectType field. +func (o *IamOAuthToken) GetDefaultObjectType() interface{} { + return "iam.OAuthToken" +} + // GetAccessExpirationTime returns the AccessExpirationTime field value if set, zero value otherwise. func (o *IamOAuthToken) GetAccessExpirationTime() time.Time { if o == nil || IsNil(o.AccessExpirationTime) { @@ -571,7 +581,13 @@ func (o IamOAuthToken) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.AccessExpirationTime) { toSerialize["AccessExpirationTime"] = o.AccessExpirationTime @@ -626,6 +642,13 @@ func (o *IamOAuthToken) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -635,11 +658,23 @@ func (o *IamOAuthToken) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type IamOAuthTokenWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_iam_o_auth_token_list.go b/model_iam_o_auth_token_list.go index 6b1ae09827..1a09f7e85c 100644 --- a/model_iam_o_auth_token_list.go +++ b/model_iam_o_auth_token_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *IamOAuthTokenList) GetResultsOk() ([]IamOAuthToken, bool) { // HasResults returns a boolean if a field has been set. func (o *IamOAuthTokenList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *IamOAuthTokenList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *IamOAuthTokenList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type IamOAuthTokenListWithoutEmbeddedStruct struct { // The total number of 'iam.OAuthToken' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_iam_o_auth_token_relationship.go b/model_iam_o_auth_token_relationship.go index ab253a3ce2..97c5581a82 100644 --- a/model_iam_o_auth_token_relationship.go +++ b/model_iam_o_auth_token_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_iam_o_auth_token_response.go b/model_iam_o_auth_token_response.go index 144c584ede..1504e03b96 100644 --- a/model_iam_o_auth_token_response.go +++ b/model_iam_o_auth_token_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_iam_permission.go b/model_iam_permission.go index 6a083c1dc9..ea5fba13a0 100644 --- a/model_iam_permission.go +++ b/model_iam_permission.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -31,7 +31,7 @@ type IamPermission struct { // The informative description about each permission. Description *string `json:"Description,omitempty"` // The name of the permission which has to be granted to user. - Name *string `json:"Name,omitempty"` + Name *string `json:"Name,omitempty" validate:"regexp=^[a-zA-Z0-9_ .:-]{1,64}$"` Account NullableIamAccountRelationship `json:"Account,omitempty"` // An array of relationships to iamEndPointRole resources. EndPointRoles []IamEndPointRoleRelationship `json:"EndPointRoles,omitempty"` @@ -98,6 +98,11 @@ func (o *IamPermission) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "iam.Permission" of the ClassId field. +func (o *IamPermission) GetDefaultClassId() interface{} { + return "iam.Permission" +} + // GetObjectType returns the ObjectType field value func (o *IamPermission) GetObjectType() string { if o == nil { @@ -122,6 +127,11 @@ func (o *IamPermission) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "iam.Permission" of the ObjectType field. +func (o *IamPermission) GetDefaultObjectType() interface{} { + return "iam.Permission" +} + // GetDescription returns the Description field value if set, zero value otherwise. func (o *IamPermission) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -250,7 +260,7 @@ func (o *IamPermission) GetEndPointRolesOk() ([]IamEndPointRoleRelationship, boo // HasEndPointRoles returns a boolean if a field has been set. func (o *IamPermission) HasEndPointRoles() bool { - if o != nil && IsNil(o.EndPointRoles) { + if o != nil && !IsNil(o.EndPointRoles) { return true } @@ -283,7 +293,7 @@ func (o *IamPermission) GetPrivilegeSetsOk() ([]IamPrivilegeSetRelationship, boo // HasPrivilegeSets returns a boolean if a field has been set. func (o *IamPermission) HasPrivilegeSets() bool { - if o != nil && IsNil(o.PrivilegeSets) { + if o != nil && !IsNil(o.PrivilegeSets) { return true } @@ -316,7 +326,7 @@ func (o *IamPermission) GetResourceRolesOk() ([]IamResourceRolesRelationship, bo // HasResourceRoles returns a boolean if a field has been set. func (o *IamPermission) HasResourceRoles() bool { - if o != nil && IsNil(o.ResourceRoles) { + if o != nil && !IsNil(o.ResourceRoles) { return true } @@ -349,7 +359,7 @@ func (o *IamPermission) GetRolesOk() ([]IamRoleRelationship, bool) { // HasRoles returns a boolean if a field has been set. func (o *IamPermission) HasRoles() bool { - if o != nil && IsNil(o.Roles) { + if o != nil && !IsNil(o.Roles) { return true } @@ -425,7 +435,7 @@ func (o *IamPermission) GetUserGroupsOk() ([]IamUserGroupRelationship, bool) { // HasUserGroups returns a boolean if a field has been set. func (o *IamPermission) HasUserGroups() bool { - if o != nil && IsNil(o.UserGroups) { + if o != nil && !IsNil(o.UserGroups) { return true } @@ -458,7 +468,7 @@ func (o *IamPermission) GetUsersOk() ([]IamUserRelationship, bool) { // HasUsers returns a boolean if a field has been set. func (o *IamPermission) HasUsers() bool { - if o != nil && IsNil(o.Users) { + if o != nil && !IsNil(o.Users) { return true } @@ -488,7 +498,13 @@ func (o IamPermission) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Description) { toSerialize["Description"] = o.Description @@ -537,6 +553,13 @@ func (o *IamPermission) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -546,11 +569,23 @@ func (o *IamPermission) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type IamPermissionWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` @@ -559,7 +594,7 @@ func (o *IamPermission) UnmarshalJSON(data []byte) (err error) { // The informative description about each permission. Description *string `json:"Description,omitempty"` // The name of the permission which has to be granted to user. - Name *string `json:"Name,omitempty"` + Name *string `json:"Name,omitempty" validate:"regexp=^[a-zA-Z0-9_ .:-]{1,64}$"` Account NullableIamAccountRelationship `json:"Account,omitempty"` // An array of relationships to iamEndPointRole resources. EndPointRoles []IamEndPointRoleRelationship `json:"EndPointRoles,omitempty"` diff --git a/model_iam_permission_list.go b/model_iam_permission_list.go index 8d7e5b6c9f..a9d28fac34 100644 --- a/model_iam_permission_list.go +++ b/model_iam_permission_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *IamPermissionList) GetResultsOk() ([]IamPermission, bool) { // HasResults returns a boolean if a field has been set. func (o *IamPermissionList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *IamPermissionList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *IamPermissionList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type IamPermissionListWithoutEmbeddedStruct struct { // The total number of 'iam.Permission' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_iam_permission_reference.go b/model_iam_permission_reference.go index 6a46bf0078..ed139d9250 100644 --- a/model_iam_permission_reference.go +++ b/model_iam_permission_reference.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -84,6 +84,11 @@ func (o *IamPermissionReference) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "iam.PermissionReference" of the ClassId field. +func (o *IamPermissionReference) GetDefaultClassId() interface{} { + return "iam.PermissionReference" +} + // GetObjectType returns the ObjectType field value func (o *IamPermissionReference) GetObjectType() string { if o == nil { @@ -108,6 +113,11 @@ func (o *IamPermissionReference) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "iam.PermissionReference" of the ObjectType field. +func (o *IamPermissionReference) GetDefaultObjectType() interface{} { + return "iam.PermissionReference" +} + // GetPermissionIdentifier returns the PermissionIdentifier field value if set, zero value otherwise. func (o *IamPermissionReference) GetPermissionIdentifier() string { if o == nil || IsNil(o.PermissionIdentifier) { @@ -190,7 +200,13 @@ func (o IamPermissionReference) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.PermissionIdentifier) { toSerialize["PermissionIdentifier"] = o.PermissionIdentifier @@ -215,6 +231,13 @@ func (o *IamPermissionReference) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -224,11 +247,23 @@ func (o *IamPermissionReference) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type IamPermissionReferenceWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_iam_permission_relationship.go b/model_iam_permission_relationship.go index fbc1e6bff7..13bb14c5c9 100644 --- a/model_iam_permission_relationship.go +++ b/model_iam_permission_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_iam_permission_response.go b/model_iam_permission_response.go index d795f747b8..00902beb95 100644 --- a/model_iam_permission_response.go +++ b/model_iam_permission_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_iam_permission_to_roles.go b/model_iam_permission_to_roles.go index 2798bed7a5..6bfdd41c71 100644 --- a/model_iam_permission_to_roles.go +++ b/model_iam_permission_to_roles.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -82,6 +82,11 @@ func (o *IamPermissionToRoles) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "iam.PermissionToRoles" of the ClassId field. +func (o *IamPermissionToRoles) GetDefaultClassId() interface{} { + return "iam.PermissionToRoles" +} + // GetObjectType returns the ObjectType field value func (o *IamPermissionToRoles) GetObjectType() string { if o == nil { @@ -106,6 +111,11 @@ func (o *IamPermissionToRoles) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "iam.PermissionToRoles" of the ObjectType field. +func (o *IamPermissionToRoles) GetDefaultObjectType() interface{} { + return "iam.PermissionToRoles" +} + // GetPermission returns the Permission field value if set, zero value otherwise. func (o *IamPermissionToRoles) GetPermission() MoMoRef { if o == nil || IsNil(o.Permission) { @@ -159,7 +169,7 @@ func (o *IamPermissionToRoles) GetRolesOk() ([]MoMoRef, bool) { // HasRoles returns a boolean if a field has been set. func (o *IamPermissionToRoles) HasRoles() bool { - if o != nil && IsNil(o.Roles) { + if o != nil && !IsNil(o.Roles) { return true } @@ -189,7 +199,13 @@ func (o IamPermissionToRoles) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Permission) { toSerialize["Permission"] = o.Permission @@ -214,6 +230,13 @@ func (o *IamPermissionToRoles) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -223,11 +246,23 @@ func (o *IamPermissionToRoles) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type IamPermissionToRolesWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_iam_private_key_spec.go b/model_iam_private_key_spec.go index ce79178f79..dc69ccb7cc 100644 --- a/model_iam_private_key_spec.go +++ b/model_iam_private_key_spec.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -82,6 +82,11 @@ func (o *IamPrivateKeySpec) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "iam.PrivateKeySpec" of the ClassId field. +func (o *IamPrivateKeySpec) GetDefaultClassId() interface{} { + return "iam.PrivateKeySpec" +} + // GetObjectType returns the ObjectType field value func (o *IamPrivateKeySpec) GetObjectType() string { if o == nil { @@ -106,6 +111,11 @@ func (o *IamPrivateKeySpec) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "iam.PrivateKeySpec" of the ObjectType field. +func (o *IamPrivateKeySpec) GetDefaultObjectType() interface{} { + return "iam.PrivateKeySpec" +} + // GetAlgorithm returns the Algorithm field value if set, zero value otherwise (both if not set or set to explicit null). func (o *IamPrivateKeySpec) GetAlgorithm() PkixKeyGenerationSpec { if o == nil || IsNil(o.Algorithm.Get()) { @@ -210,7 +220,13 @@ func (o IamPrivateKeySpec) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.Algorithm.IsSet() { toSerialize["Algorithm"] = o.Algorithm.Get() @@ -235,6 +251,13 @@ func (o *IamPrivateKeySpec) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -244,11 +267,23 @@ func (o *IamPrivateKeySpec) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type IamPrivateKeySpecWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_iam_private_key_spec_list.go b/model_iam_private_key_spec_list.go index ba9245e4bb..398feaab40 100644 --- a/model_iam_private_key_spec_list.go +++ b/model_iam_private_key_spec_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *IamPrivateKeySpecList) GetResultsOk() ([]IamPrivateKeySpec, bool) { // HasResults returns a boolean if a field has been set. func (o *IamPrivateKeySpecList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *IamPrivateKeySpecList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *IamPrivateKeySpecList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type IamPrivateKeySpecListWithoutEmbeddedStruct struct { // The total number of 'iam.PrivateKeySpec' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_iam_private_key_spec_relationship.go b/model_iam_private_key_spec_relationship.go index cc4ed81343..6da670d36e 100644 --- a/model_iam_private_key_spec_relationship.go +++ b/model_iam_private_key_spec_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_iam_private_key_spec_response.go b/model_iam_private_key_spec_response.go index 9239865c8d..543fb63599 100644 --- a/model_iam_private_key_spec_response.go +++ b/model_iam_private_key_spec_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_iam_privilege.go b/model_iam_privilege.go index bafea44f68..8f396a8e02 100644 --- a/model_iam_privilege.go +++ b/model_iam_privilege.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -92,6 +92,11 @@ func (o *IamPrivilege) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "iam.Privilege" of the ClassId field. +func (o *IamPrivilege) GetDefaultClassId() interface{} { + return "iam.Privilege" +} + // GetObjectType returns the ObjectType field value func (o *IamPrivilege) GetObjectType() string { if o == nil { @@ -116,6 +121,11 @@ func (o *IamPrivilege) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "iam.Privilege" of the ObjectType field. +func (o *IamPrivilege) GetDefaultObjectType() interface{} { + return "iam.Privilege" +} + // GetHostnamePrefix returns the HostnamePrefix field value if set, zero value otherwise. func (o *IamPrivilege) GetHostnamePrefix() string { if o == nil || IsNil(o.HostnamePrefix) { @@ -380,7 +390,13 @@ func (o IamPrivilege) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.HostnamePrefix) { toSerialize["HostnamePrefix"] = o.HostnamePrefix @@ -420,6 +436,13 @@ func (o *IamPrivilege) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -429,11 +452,23 @@ func (o *IamPrivilege) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type IamPrivilegeWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_iam_privilege_list.go b/model_iam_privilege_list.go index c3ad6e7a5f..fcf149c9a3 100644 --- a/model_iam_privilege_list.go +++ b/model_iam_privilege_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *IamPrivilegeList) GetResultsOk() ([]IamPrivilege, bool) { // HasResults returns a boolean if a field has been set. func (o *IamPrivilegeList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *IamPrivilegeList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *IamPrivilegeList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type IamPrivilegeListWithoutEmbeddedStruct struct { // The total number of 'iam.Privilege' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_iam_privilege_relationship.go b/model_iam_privilege_relationship.go index 24c777d9d7..b8eca706c7 100644 --- a/model_iam_privilege_relationship.go +++ b/model_iam_privilege_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_iam_privilege_response.go b/model_iam_privilege_response.go index cfb2124839..9006870724 100644 --- a/model_iam_privilege_response.go +++ b/model_iam_privilege_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_iam_privilege_set.go b/model_iam_privilege_set.go index 765cea9472..79aa4e3130 100644 --- a/model_iam_privilege_set.go +++ b/model_iam_privilege_set.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -31,7 +31,7 @@ type IamPrivilegeSet struct { // Description of the privilege set. Description *string `json:"Description,omitempty"` // Name of the privilege set. - Name *string `json:"Name,omitempty"` + Name *string `json:"Name,omitempty" validate:"regexp=^[a-zA-Z0-9_ .:-]{1,64}$"` PrivilegeNames []string `json:"PrivilegeNames,omitempty"` Account NullableIamAccountRelationship `json:"Account,omitempty"` // An array of relationships to iamPrivilegeSet resources. @@ -91,6 +91,11 @@ func (o *IamPrivilegeSet) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "iam.PrivilegeSet" of the ClassId field. +func (o *IamPrivilegeSet) GetDefaultClassId() interface{} { + return "iam.PrivilegeSet" +} + // GetObjectType returns the ObjectType field value func (o *IamPrivilegeSet) GetObjectType() string { if o == nil { @@ -115,6 +120,11 @@ func (o *IamPrivilegeSet) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "iam.PrivilegeSet" of the ObjectType field. +func (o *IamPrivilegeSet) GetDefaultObjectType() interface{} { + return "iam.PrivilegeSet" +} + // GetDescription returns the Description field value if set, zero value otherwise. func (o *IamPrivilegeSet) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -200,7 +210,7 @@ func (o *IamPrivilegeSet) GetPrivilegeNamesOk() ([]string, bool) { // HasPrivilegeNames returns a boolean if a field has been set. func (o *IamPrivilegeSet) HasPrivilegeNames() bool { - if o != nil && IsNil(o.PrivilegeNames) { + if o != nil && !IsNil(o.PrivilegeNames) { return true } @@ -276,7 +286,7 @@ func (o *IamPrivilegeSet) GetAssociatedPrivilegeSetsOk() ([]IamPrivilegeSetRelat // HasAssociatedPrivilegeSets returns a boolean if a field has been set. func (o *IamPrivilegeSet) HasAssociatedPrivilegeSets() bool { - if o != nil && IsNil(o.AssociatedPrivilegeSets) { + if o != nil && !IsNil(o.AssociatedPrivilegeSets) { return true } @@ -309,7 +319,7 @@ func (o *IamPrivilegeSet) GetPrivilegesOk() ([]IamPrivilegeRelationship, bool) { // HasPrivileges returns a boolean if a field has been set. func (o *IamPrivilegeSet) HasPrivileges() bool { - if o != nil && IsNil(o.Privileges) { + if o != nil && !IsNil(o.Privileges) { return true } @@ -382,7 +392,13 @@ func (o IamPrivilegeSet) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Description) { toSerialize["Description"] = o.Description @@ -422,6 +438,13 @@ func (o *IamPrivilegeSet) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -431,11 +454,23 @@ func (o *IamPrivilegeSet) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type IamPrivilegeSetWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` @@ -444,7 +479,7 @@ func (o *IamPrivilegeSet) UnmarshalJSON(data []byte) (err error) { // Description of the privilege set. Description *string `json:"Description,omitempty"` // Name of the privilege set. - Name *string `json:"Name,omitempty"` + Name *string `json:"Name,omitempty" validate:"regexp=^[a-zA-Z0-9_ .:-]{1,64}$"` PrivilegeNames []string `json:"PrivilegeNames,omitempty"` Account NullableIamAccountRelationship `json:"Account,omitempty"` // An array of relationships to iamPrivilegeSet resources. diff --git a/model_iam_privilege_set_list.go b/model_iam_privilege_set_list.go index af8e6ea121..15828217df 100644 --- a/model_iam_privilege_set_list.go +++ b/model_iam_privilege_set_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *IamPrivilegeSetList) GetResultsOk() ([]IamPrivilegeSet, bool) { // HasResults returns a boolean if a field has been set. func (o *IamPrivilegeSetList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *IamPrivilegeSetList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *IamPrivilegeSetList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type IamPrivilegeSetListWithoutEmbeddedStruct struct { // The total number of 'iam.PrivilegeSet' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_iam_privilege_set_relationship.go b/model_iam_privilege_set_relationship.go index ca781d9807..06462c457a 100644 --- a/model_iam_privilege_set_relationship.go +++ b/model_iam_privilege_set_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_iam_privilege_set_response.go b/model_iam_privilege_set_response.go index 553cdf65f2..53d9621cce 100644 --- a/model_iam_privilege_set_response.go +++ b/model_iam_privilege_set_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_iam_qualifier.go b/model_iam_qualifier.go index 08545b79b7..adfa8a1555 100644 --- a/model_iam_qualifier.go +++ b/model_iam_qualifier.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -84,6 +84,11 @@ func (o *IamQualifier) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "iam.Qualifier" of the ClassId field. +func (o *IamQualifier) GetDefaultClassId() interface{} { + return "iam.Qualifier" +} + // GetObjectType returns the ObjectType field value func (o *IamQualifier) GetObjectType() string { if o == nil { @@ -108,6 +113,11 @@ func (o *IamQualifier) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "iam.Qualifier" of the ObjectType field. +func (o *IamQualifier) GetDefaultObjectType() interface{} { + return "iam.Qualifier" +} + // GetName returns the Name field value if set, zero value otherwise. func (o *IamQualifier) GetName() string { if o == nil || IsNil(o.Name) { @@ -161,7 +171,7 @@ func (o *IamQualifier) GetValueOk() ([]string, bool) { // HasValue returns a boolean if a field has been set. func (o *IamQualifier) HasValue() bool { - if o != nil && IsNil(o.Value) { + if o != nil && !IsNil(o.Value) { return true } @@ -234,7 +244,13 @@ func (o IamQualifier) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Name) { toSerialize["Name"] = o.Name @@ -262,6 +278,13 @@ func (o *IamQualifier) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -271,11 +294,23 @@ func (o *IamQualifier) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type IamQualifierWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_iam_qualifier_list.go b/model_iam_qualifier_list.go index 684e3d4416..fc75f89772 100644 --- a/model_iam_qualifier_list.go +++ b/model_iam_qualifier_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *IamQualifierList) GetResultsOk() ([]IamQualifier, bool) { // HasResults returns a boolean if a field has been set. func (o *IamQualifierList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *IamQualifierList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *IamQualifierList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type IamQualifierListWithoutEmbeddedStruct struct { // The total number of 'iam.Qualifier' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_iam_qualifier_relationship.go b/model_iam_qualifier_relationship.go index 8d6963e968..0d092ec84b 100644 --- a/model_iam_qualifier_relationship.go +++ b/model_iam_qualifier_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_iam_qualifier_response.go b/model_iam_qualifier_response.go index 6f1009909d..b441dd647b 100644 --- a/model_iam_qualifier_response.go +++ b/model_iam_qualifier_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_iam_resource_limits.go b/model_iam_resource_limits.go index a831be5c01..0018feb483 100644 --- a/model_iam_resource_limits.go +++ b/model_iam_resource_limits.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -107,6 +107,11 @@ func (o *IamResourceLimits) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "iam.ResourceLimits" of the ClassId field. +func (o *IamResourceLimits) GetDefaultClassId() interface{} { + return "iam.ResourceLimits" +} + // GetObjectType returns the ObjectType field value func (o *IamResourceLimits) GetObjectType() string { if o == nil { @@ -131,6 +136,11 @@ func (o *IamResourceLimits) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "iam.ResourceLimits" of the ObjectType field. +func (o *IamResourceLimits) GetDefaultObjectType() interface{} { + return "iam.ResourceLimits" +} + // GetAllowApiKeysWithoutExpiry returns the AllowApiKeysWithoutExpiry field value if set, zero value otherwise. func (o *IamResourceLimits) GetAllowApiKeysWithoutExpiry() bool { if o == nil || IsNil(o.AllowApiKeysWithoutExpiry) { @@ -352,7 +362,13 @@ func (o IamResourceLimits) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.AllowApiKeysWithoutExpiry) { toSerialize["AllowApiKeysWithoutExpiry"] = o.AllowApiKeysWithoutExpiry @@ -389,6 +405,13 @@ func (o *IamResourceLimits) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -398,11 +421,23 @@ func (o *IamResourceLimits) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type IamResourceLimitsWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_iam_resource_limits_list.go b/model_iam_resource_limits_list.go index a6a0c64f2f..b039e092cf 100644 --- a/model_iam_resource_limits_list.go +++ b/model_iam_resource_limits_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *IamResourceLimitsList) GetResultsOk() ([]IamResourceLimits, bool) { // HasResults returns a boolean if a field has been set. func (o *IamResourceLimitsList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *IamResourceLimitsList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *IamResourceLimitsList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type IamResourceLimitsListWithoutEmbeddedStruct struct { // The total number of 'iam.ResourceLimits' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_iam_resource_limits_relationship.go b/model_iam_resource_limits_relationship.go index 94a9f3e599..6d0f04be72 100644 --- a/model_iam_resource_limits_relationship.go +++ b/model_iam_resource_limits_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_iam_resource_limits_response.go b/model_iam_resource_limits_response.go index 11eaada81e..951c9dd137 100644 --- a/model_iam_resource_limits_response.go +++ b/model_iam_resource_limits_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_iam_resource_permission.go b/model_iam_resource_permission.go index 1398d441e0..461305e048 100644 --- a/model_iam_resource_permission.go +++ b/model_iam_resource_permission.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -85,6 +85,11 @@ func (o *IamResourcePermission) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "iam.ResourcePermission" of the ClassId field. +func (o *IamResourcePermission) GetDefaultClassId() interface{} { + return "iam.ResourcePermission" +} + // GetObjectType returns the ObjectType field value func (o *IamResourcePermission) GetObjectType() string { if o == nil { @@ -109,6 +114,11 @@ func (o *IamResourcePermission) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "iam.ResourcePermission" of the ObjectType field. +func (o *IamResourcePermission) GetDefaultObjectType() interface{} { + return "iam.ResourcePermission" +} + // GetPermissionRoles returns the PermissionRoles field value if set, zero value otherwise (both if not set or set to explicit null). func (o *IamResourcePermission) GetPermissionRoles() []IamPermissionToRoles { if o == nil { @@ -130,7 +140,7 @@ func (o *IamResourcePermission) GetPermissionRolesOk() ([]IamPermissionToRoles, // HasPermissionRoles returns a boolean if a field has been set. func (o *IamResourcePermission) HasPermissionRoles() bool { - if o != nil && IsNil(o.PermissionRoles) { + if o != nil && !IsNil(o.PermissionRoles) { return true } @@ -278,7 +288,13 @@ func (o IamResourcePermission) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.PermissionRoles != nil { toSerialize["PermissionRoles"] = o.PermissionRoles @@ -309,6 +325,13 @@ func (o *IamResourcePermission) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -318,11 +341,23 @@ func (o *IamResourcePermission) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type IamResourcePermissionWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_iam_resource_permission_list.go b/model_iam_resource_permission_list.go index 16f131ec43..c83fd2217e 100644 --- a/model_iam_resource_permission_list.go +++ b/model_iam_resource_permission_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *IamResourcePermissionList) GetResultsOk() ([]IamResourcePermission, boo // HasResults returns a boolean if a field has been set. func (o *IamResourcePermissionList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *IamResourcePermissionList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *IamResourcePermissionList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type IamResourcePermissionListWithoutEmbeddedStruct struct { // The total number of 'iam.ResourcePermission' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_iam_resource_permission_relationship.go b/model_iam_resource_permission_relationship.go index 5d836f8c4d..08aa977de4 100644 --- a/model_iam_resource_permission_relationship.go +++ b/model_iam_resource_permission_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_iam_resource_permission_response.go b/model_iam_resource_permission_response.go index 7b5c503cd1..f4091e68f6 100644 --- a/model_iam_resource_permission_response.go +++ b/model_iam_resource_permission_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_iam_resource_role.go b/model_iam_resource_role.go index 753c54415c..56c4f02b00 100644 --- a/model_iam_resource_role.go +++ b/model_iam_resource_role.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -83,6 +83,10 @@ func (o *IamResourceRole) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -92,11 +96,23 @@ func (o *IamResourceRole) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type IamResourceRoleWithoutEmbeddedStruct struct { } diff --git a/model_iam_resource_roles.go b/model_iam_resource_roles.go index 0ea79f6453..a4c27452d7 100644 --- a/model_iam_resource_roles.go +++ b/model_iam_resource_roles.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -88,6 +88,11 @@ func (o *IamResourceRoles) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "iam.ResourceRoles" of the ClassId field. +func (o *IamResourceRoles) GetDefaultClassId() interface{} { + return "iam.ResourceRoles" +} + // GetObjectType returns the ObjectType field value func (o *IamResourceRoles) GetObjectType() string { if o == nil { @@ -112,6 +117,11 @@ func (o *IamResourceRoles) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "iam.ResourceRoles" of the ObjectType field. +func (o *IamResourceRoles) GetDefaultObjectType() interface{} { + return "iam.ResourceRoles" +} + // GetEndPointRoles returns the EndPointRoles field value if set, zero value otherwise (both if not set or set to explicit null). func (o *IamResourceRoles) GetEndPointRoles() []IamEndPointRoleRelationship { if o == nil { @@ -133,7 +143,7 @@ func (o *IamResourceRoles) GetEndPointRolesOk() ([]IamEndPointRoleRelationship, // HasEndPointRoles returns a boolean if a field has been set. func (o *IamResourceRoles) HasEndPointRoles() bool { - if o != nil && IsNil(o.EndPointRoles) { + if o != nil && !IsNil(o.EndPointRoles) { return true } @@ -209,7 +219,7 @@ func (o *IamResourceRoles) GetPrivilegeSetsOk() ([]IamPrivilegeSetRelationship, // HasPrivilegeSets returns a boolean if a field has been set. func (o *IamResourceRoles) HasPrivilegeSets() bool { - if o != nil && IsNil(o.PrivilegeSets) { + if o != nil && !IsNil(o.PrivilegeSets) { return true } @@ -285,7 +295,7 @@ func (o *IamResourceRoles) GetRolesOk() ([]IamRoleRelationship, bool) { // HasRoles returns a boolean if a field has been set. func (o *IamResourceRoles) HasRoles() bool { - if o != nil && IsNil(o.Roles) { + if o != nil && !IsNil(o.Roles) { return true } @@ -315,7 +325,13 @@ func (o IamResourceRoles) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.EndPointRoles != nil { toSerialize["EndPointRoles"] = o.EndPointRoles @@ -349,6 +365,13 @@ func (o *IamResourceRoles) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -358,11 +381,23 @@ func (o *IamResourceRoles) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type IamResourceRolesWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_iam_resource_roles_list.go b/model_iam_resource_roles_list.go index e11bb601d6..bceb995518 100644 --- a/model_iam_resource_roles_list.go +++ b/model_iam_resource_roles_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *IamResourceRolesList) GetResultsOk() ([]IamResourceRoles, bool) { // HasResults returns a boolean if a field has been set. func (o *IamResourceRolesList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *IamResourceRolesList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *IamResourceRolesList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type IamResourceRolesListWithoutEmbeddedStruct struct { // The total number of 'iam.ResourceRoles' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_iam_resource_roles_relationship.go b/model_iam_resource_roles_relationship.go index 3e55208d33..33ad0d9176 100644 --- a/model_iam_resource_roles_relationship.go +++ b/model_iam_resource_roles_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_iam_resource_roles_response.go b/model_iam_resource_roles_response.go index dda95939ee..bd27818ed2 100644 --- a/model_iam_resource_roles_response.go +++ b/model_iam_resource_roles_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_iam_role.go b/model_iam_role.go index 4dbe960bf5..3867de5fed 100644 --- a/model_iam_role.go +++ b/model_iam_role.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -31,7 +31,7 @@ type IamRole struct { // Informative description about each role. Description *string `json:"Description,omitempty"` // The name of the role which has to be granted to user. - Name *string `json:"Name,omitempty"` + Name *string `json:"Name,omitempty" validate:"regexp=^[a-zA-Z0-9_ .:-]{1,64}$"` PrivilegeNames []string `json:"PrivilegeNames,omitempty"` Account NullableIamAccountRelationship `json:"Account,omitempty"` // An array of relationships to iamPrivilegeSet resources. @@ -89,6 +89,11 @@ func (o *IamRole) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "iam.Role" of the ClassId field. +func (o *IamRole) GetDefaultClassId() interface{} { + return "iam.Role" +} + // GetObjectType returns the ObjectType field value func (o *IamRole) GetObjectType() string { if o == nil { @@ -113,6 +118,11 @@ func (o *IamRole) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "iam.Role" of the ObjectType field. +func (o *IamRole) GetDefaultObjectType() interface{} { + return "iam.Role" +} + // GetDescription returns the Description field value if set, zero value otherwise. func (o *IamRole) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -198,7 +208,7 @@ func (o *IamRole) GetPrivilegeNamesOk() ([]string, bool) { // HasPrivilegeNames returns a boolean if a field has been set. func (o *IamRole) HasPrivilegeNames() bool { - if o != nil && IsNil(o.PrivilegeNames) { + if o != nil && !IsNil(o.PrivilegeNames) { return true } @@ -274,7 +284,7 @@ func (o *IamRole) GetPrivilegeSetsOk() ([]IamPrivilegeSetRelationship, bool) { // HasPrivilegeSets returns a boolean if a field has been set. func (o *IamRole) HasPrivilegeSets() bool { - if o != nil && IsNil(o.PrivilegeSets) { + if o != nil && !IsNil(o.PrivilegeSets) { return true } @@ -347,7 +357,13 @@ func (o IamRole) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Description) { toSerialize["Description"] = o.Description @@ -384,6 +400,13 @@ func (o *IamRole) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -393,11 +416,23 @@ func (o *IamRole) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type IamRoleWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` @@ -406,7 +441,7 @@ func (o *IamRole) UnmarshalJSON(data []byte) (err error) { // Informative description about each role. Description *string `json:"Description,omitempty"` // The name of the role which has to be granted to user. - Name *string `json:"Name,omitempty"` + Name *string `json:"Name,omitempty" validate:"regexp=^[a-zA-Z0-9_ .:-]{1,64}$"` PrivilegeNames []string `json:"PrivilegeNames,omitempty"` Account NullableIamAccountRelationship `json:"Account,omitempty"` // An array of relationships to iamPrivilegeSet resources. diff --git a/model_iam_role_list.go b/model_iam_role_list.go index b8ef026fdb..f00b9e9f6e 100644 --- a/model_iam_role_list.go +++ b/model_iam_role_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *IamRoleList) GetResultsOk() ([]IamRole, bool) { // HasResults returns a boolean if a field has been set. func (o *IamRoleList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *IamRoleList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *IamRoleList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type IamRoleListWithoutEmbeddedStruct struct { // The total number of 'iam.Role' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_iam_role_relationship.go b/model_iam_role_relationship.go index 5acec09391..7d11dc8a2c 100644 --- a/model_iam_role_relationship.go +++ b/model_iam_role_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_iam_role_response.go b/model_iam_role_response.go index 1ba718e7bc..08c9650882 100644 --- a/model_iam_role_response.go +++ b/model_iam_role_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_iam_rule.go b/model_iam_rule.go index 68dbc31a4e..1c7fdcc8e1 100644 --- a/model_iam_rule.go +++ b/model_iam_rule.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -89,6 +89,11 @@ func (o *IamRule) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "iam.Rule" of the ClassId field. +func (o *IamRule) GetDefaultClassId() interface{} { + return "iam.Rule" +} + // GetObjectType returns the ObjectType field value func (o *IamRule) GetObjectType() string { if o == nil { @@ -113,6 +118,11 @@ func (o *IamRule) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "iam.Rule" of the ObjectType field. +func (o *IamRule) GetDefaultObjectType() interface{} { + return "iam.Rule" +} + // GetIpV6 returns the IpV6 field value if set, zero value otherwise. func (o *IamRule) GetIpV6() bool { if o == nil || IsNil(o.IpV6) { @@ -198,7 +208,7 @@ func (o *IamRule) GetRuleValueOk() ([]string, bool) { // HasRuleValue returns a boolean if a field has been set. func (o *IamRule) HasRuleValue() bool { - if o != nil && IsNil(o.RuleValue) { + if o != nil && !IsNil(o.RuleValue) { return true } @@ -228,7 +238,13 @@ func (o IamRule) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.IpV6) { toSerialize["IpV6"] = o.IpV6 @@ -256,6 +272,13 @@ func (o *IamRule) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -265,11 +288,23 @@ func (o *IamRule) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type IamRuleWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_iam_saml_sp_connection.go b/model_iam_saml_sp_connection.go index 251b628b2b..b91108295f 100644 --- a/model_iam_saml_sp_connection.go +++ b/model_iam_saml_sp_connection.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -92,6 +92,11 @@ func (o *IamSamlSpConnection) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "iam.SamlSpConnection" of the ClassId field. +func (o *IamSamlSpConnection) GetDefaultClassId() interface{} { + return "iam.SamlSpConnection" +} + // GetObjectType returns the ObjectType field value func (o *IamSamlSpConnection) GetObjectType() string { if o == nil { @@ -116,6 +121,11 @@ func (o *IamSamlSpConnection) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "iam.SamlSpConnection" of the ObjectType field. +func (o *IamSamlSpConnection) GetDefaultObjectType() interface{} { + return "iam.SamlSpConnection" +} + // GetIdentityProviderSloBinding returns the IdentityProviderSloBinding field value if set, zero value otherwise. func (o *IamSamlSpConnection) GetIdentityProviderSloBinding() string { if o == nil || IsNil(o.IdentityProviderSloBinding) { @@ -265,7 +275,7 @@ func (o *IamSamlSpConnection) GetIdpCertificateStoreOk() (*interface{}, bool) { // HasIdpCertificateStore returns a boolean if a field has been set. func (o *IamSamlSpConnection) HasIdpCertificateStore() bool { - if o != nil && IsNil(o.IdpCertificateStore) { + if o != nil && !IsNil(o.IdpCertificateStore) { return true } @@ -327,7 +337,13 @@ func (o IamSamlSpConnection) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.IdentityProviderSloBinding) { toSerialize["IdentityProviderSloBinding"] = o.IdentityProviderSloBinding @@ -364,6 +380,13 @@ func (o *IamSamlSpConnection) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -373,11 +396,23 @@ func (o *IamSamlSpConnection) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type IamSamlSpConnectionWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_iam_security_context.go b/model_iam_security_context.go index 11f9b1c1c2..afb28db36f 100644 --- a/model_iam_security_context.go +++ b/model_iam_security_context.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -83,6 +83,10 @@ func (o *IamSecurityContext) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -92,11 +96,23 @@ func (o *IamSecurityContext) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type IamSecurityContextWithoutEmbeddedStruct struct { } diff --git a/model_iam_security_holder.go b/model_iam_security_holder.go index d4c20186f6..8b24e29bc9 100644 --- a/model_iam_security_holder.go +++ b/model_iam_security_holder.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -84,6 +84,11 @@ func (o *IamSecurityHolder) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "iam.SecurityHolder" of the ClassId field. +func (o *IamSecurityHolder) GetDefaultClassId() interface{} { + return "iam.SecurityHolder" +} + // GetObjectType returns the ObjectType field value func (o *IamSecurityHolder) GetObjectType() string { if o == nil { @@ -108,6 +113,11 @@ func (o *IamSecurityHolder) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "iam.SecurityHolder" of the ObjectType field. +func (o *IamSecurityHolder) GetDefaultObjectType() interface{} { + return "iam.SecurityHolder" +} + // GetAccount returns the Account field value if set, zero value otherwise (both if not set or set to explicit null). func (o *IamSecurityHolder) GetAccount() IamAccountRelationship { if o == nil || IsNil(o.Account.Get()) { @@ -215,7 +225,7 @@ func (o *IamSecurityHolder) GetResourcePermissionsOk() ([]IamResourcePermissionR // HasResourcePermissions returns a boolean if a field has been set. func (o *IamSecurityHolder) HasResourcePermissions() bool { - if o != nil && IsNil(o.ResourcePermissions) { + if o != nil && !IsNil(o.ResourcePermissions) { return true } @@ -245,7 +255,13 @@ func (o IamSecurityHolder) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.Account.IsSet() { toSerialize["Account"] = o.Account.Get() @@ -273,6 +289,13 @@ func (o *IamSecurityHolder) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -282,11 +305,23 @@ func (o *IamSecurityHolder) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type IamSecurityHolderWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_iam_security_holder_list.go b/model_iam_security_holder_list.go index 35fdbd18de..6d6ba11747 100644 --- a/model_iam_security_holder_list.go +++ b/model_iam_security_holder_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *IamSecurityHolderList) GetResultsOk() ([]IamSecurityHolder, bool) { // HasResults returns a boolean if a field has been set. func (o *IamSecurityHolderList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *IamSecurityHolderList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *IamSecurityHolderList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type IamSecurityHolderListWithoutEmbeddedStruct struct { // The total number of 'iam.SecurityHolder' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_iam_security_holder_relationship.go b/model_iam_security_holder_relationship.go index 9087742fb6..9b0bf388d8 100644 --- a/model_iam_security_holder_relationship.go +++ b/model_iam_security_holder_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_iam_security_holder_response.go b/model_iam_security_holder_response.go index d35c3cd117..0588e21601 100644 --- a/model_iam_security_holder_response.go +++ b/model_iam_security_holder_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_iam_service_provider.go b/model_iam_service_provider.go index 6d5f0d7814..c574665022 100644 --- a/model_iam_service_provider.go +++ b/model_iam_service_provider.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -87,6 +87,11 @@ func (o *IamServiceProvider) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "iam.ServiceProvider" of the ClassId field. +func (o *IamServiceProvider) GetDefaultClassId() interface{} { + return "iam.ServiceProvider" +} + // GetObjectType returns the ObjectType field value func (o *IamServiceProvider) GetObjectType() string { if o == nil { @@ -111,6 +116,11 @@ func (o *IamServiceProvider) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "iam.ServiceProvider" of the ObjectType field. +func (o *IamServiceProvider) GetDefaultObjectType() interface{} { + return "iam.ServiceProvider" +} + // GetEntityId returns the EntityId field value if set, zero value otherwise. func (o *IamServiceProvider) GetEntityId() string { if o == nil || IsNil(o.EntityId) { @@ -268,7 +278,13 @@ func (o IamServiceProvider) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.EntityId) { toSerialize["EntityId"] = o.EntityId @@ -299,6 +315,13 @@ func (o *IamServiceProvider) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -308,11 +331,23 @@ func (o *IamServiceProvider) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type IamServiceProviderWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_iam_service_provider_list.go b/model_iam_service_provider_list.go index dee6591531..7b8ad93cad 100644 --- a/model_iam_service_provider_list.go +++ b/model_iam_service_provider_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *IamServiceProviderList) GetResultsOk() ([]IamServiceProvider, bool) { // HasResults returns a boolean if a field has been set. func (o *IamServiceProviderList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *IamServiceProviderList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *IamServiceProviderList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type IamServiceProviderListWithoutEmbeddedStruct struct { // The total number of 'iam.ServiceProvider' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_iam_service_provider_relationship.go b/model_iam_service_provider_relationship.go index efe529f3ec..dba37c240b 100644 --- a/model_iam_service_provider_relationship.go +++ b/model_iam_service_provider_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_iam_service_provider_response.go b/model_iam_service_provider_response.go index 09c2987770..3c365507b9 100644 --- a/model_iam_service_provider_response.go +++ b/model_iam_service_provider_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_iam_session.go b/model_iam_session.go index 886880f76d..ded705cdbd 100644 --- a/model_iam_session.go +++ b/model_iam_session.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -98,6 +98,11 @@ func (o *IamSession) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "iam.Session" of the ClassId field. +func (o *IamSession) GetDefaultClassId() interface{} { + return "iam.Session" +} + // GetObjectType returns the ObjectType field value func (o *IamSession) GetObjectType() string { if o == nil { @@ -122,6 +127,11 @@ func (o *IamSession) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "iam.Session" of the ObjectType field. +func (o *IamSession) GetDefaultObjectType() interface{} { + return "iam.Session" +} + // GetAccountPermissions returns the AccountPermissions field value if set, zero value otherwise (both if not set or set to explicit null). func (o *IamSession) GetAccountPermissions() []IamAccountPermissions { if o == nil { @@ -143,7 +153,7 @@ func (o *IamSession) GetAccountPermissionsOk() ([]IamAccountPermissions, bool) { // HasAccountPermissions returns a boolean if a field has been set. func (o *IamSession) HasAccountPermissions() bool { - if o != nil && IsNil(o.AccountPermissions) { + if o != nil && !IsNil(o.AccountPermissions) { return true } @@ -451,7 +461,13 @@ func (o IamSession) ToMap() (map[string]interface{}, error) { if errSessionAbstractSession != nil { return map[string]interface{}{}, errSessionAbstractSession } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.AccountPermissions != nil { toSerialize["AccountPermissions"] = o.AccountPermissions @@ -497,6 +513,13 @@ func (o *IamSession) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -506,11 +529,23 @@ func (o *IamSession) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type IamSessionWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_iam_session_limits.go b/model_iam_session_limits.go index cc2e37212e..91d5f937af 100644 --- a/model_iam_session_limits.go +++ b/model_iam_session_limits.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -106,6 +106,11 @@ func (o *IamSessionLimits) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "iam.SessionLimits" of the ClassId field. +func (o *IamSessionLimits) GetDefaultClassId() interface{} { + return "iam.SessionLimits" +} + // GetObjectType returns the ObjectType field value func (o *IamSessionLimits) GetObjectType() string { if o == nil { @@ -130,6 +135,11 @@ func (o *IamSessionLimits) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "iam.SessionLimits" of the ObjectType field. +func (o *IamSessionLimits) GetDefaultObjectType() interface{} { + return "iam.SessionLimits" +} + // GetIdleTimeOut returns the IdleTimeOut field value if set, zero value otherwise. func (o *IamSessionLimits) GetIdleTimeOut() int64 { if o == nil || IsNil(o.IdleTimeOut) { @@ -362,7 +372,13 @@ func (o IamSessionLimits) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.IdleTimeOut) { toSerialize["IdleTimeOut"] = o.IdleTimeOut @@ -399,6 +415,13 @@ func (o *IamSessionLimits) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -408,11 +431,23 @@ func (o *IamSessionLimits) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type IamSessionLimitsWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_iam_session_limits_list.go b/model_iam_session_limits_list.go index 943859be5c..3cda87d6fb 100644 --- a/model_iam_session_limits_list.go +++ b/model_iam_session_limits_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *IamSessionLimitsList) GetResultsOk() ([]IamSessionLimits, bool) { // HasResults returns a boolean if a field has been set. func (o *IamSessionLimitsList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *IamSessionLimitsList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *IamSessionLimitsList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type IamSessionLimitsListWithoutEmbeddedStruct struct { // The total number of 'iam.SessionLimits' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_iam_session_limits_relationship.go b/model_iam_session_limits_relationship.go index e29238dd23..0394191b49 100644 --- a/model_iam_session_limits_relationship.go +++ b/model_iam_session_limits_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_iam_session_limits_response.go b/model_iam_session_limits_response.go index 3fad616acd..96ca279bc7 100644 --- a/model_iam_session_limits_response.go +++ b/model_iam_session_limits_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_iam_session_list.go b/model_iam_session_list.go index 39a82ef2ab..1c34138ea4 100644 --- a/model_iam_session_list.go +++ b/model_iam_session_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *IamSessionList) GetResultsOk() ([]IamSession, bool) { // HasResults returns a boolean if a field has been set. func (o *IamSessionList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *IamSessionList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *IamSessionList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type IamSessionListWithoutEmbeddedStruct struct { // The total number of 'iam.Session' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_iam_session_relationship.go b/model_iam_session_relationship.go index dfce285445..bc6b572077 100644 --- a/model_iam_session_relationship.go +++ b/model_iam_session_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_iam_session_response.go b/model_iam_session_response.go index 9371a937db..e9b610ab26 100644 --- a/model_iam_session_response.go +++ b/model_iam_session_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_iam_sharing_rule.go b/model_iam_sharing_rule.go index 75e6d09e01..765d47e711 100644 --- a/model_iam_sharing_rule.go +++ b/model_iam_sharing_rule.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -83,6 +83,11 @@ func (o *IamSharingRule) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "iam.SharingRule" of the ClassId field. +func (o *IamSharingRule) GetDefaultClassId() interface{} { + return "iam.SharingRule" +} + // GetObjectType returns the ObjectType field value func (o *IamSharingRule) GetObjectType() string { if o == nil { @@ -107,6 +112,11 @@ func (o *IamSharingRule) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "iam.SharingRule" of the ObjectType field. +func (o *IamSharingRule) GetDefaultObjectType() interface{} { + return "iam.SharingRule" +} + // GetAccount returns the Account field value if set, zero value otherwise (both if not set or set to explicit null). func (o *IamSharingRule) GetAccount() IamAccountRelationship { if o == nil || IsNil(o.Account.Get()) { @@ -254,7 +264,13 @@ func (o IamSharingRule) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.Account.IsSet() { toSerialize["Account"] = o.Account.Get() @@ -282,6 +298,13 @@ func (o *IamSharingRule) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -291,11 +314,23 @@ func (o *IamSharingRule) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type IamSharingRuleWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_iam_sharing_rule_list.go b/model_iam_sharing_rule_list.go index 957748c537..e5355fae45 100644 --- a/model_iam_sharing_rule_list.go +++ b/model_iam_sharing_rule_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *IamSharingRuleList) GetResultsOk() ([]IamSharingRule, bool) { // HasResults returns a boolean if a field has been set. func (o *IamSharingRuleList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *IamSharingRuleList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *IamSharingRuleList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type IamSharingRuleListWithoutEmbeddedStruct struct { // The total number of 'iam.SharingRule' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_iam_sharing_rule_relationship.go b/model_iam_sharing_rule_relationship.go index 1afe8e7547..627cdefa57 100644 --- a/model_iam_sharing_rule_relationship.go +++ b/model_iam_sharing_rule_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_iam_sharing_rule_response.go b/model_iam_sharing_rule_response.go index 9b2d8ca5e3..01c5dfa844 100644 --- a/model_iam_sharing_rule_response.go +++ b/model_iam_sharing_rule_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_iam_sso_session_attributes.go b/model_iam_sso_session_attributes.go index 8c63eff3f5..c6ba9fdf1a 100644 --- a/model_iam_sso_session_attributes.go +++ b/model_iam_sso_session_attributes.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -92,6 +92,11 @@ func (o *IamSsoSessionAttributes) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "iam.SsoSessionAttributes" of the ClassId field. +func (o *IamSsoSessionAttributes) GetDefaultClassId() interface{} { + return "iam.SsoSessionAttributes" +} + // GetObjectType returns the ObjectType field value func (o *IamSsoSessionAttributes) GetObjectType() string { if o == nil { @@ -116,6 +121,11 @@ func (o *IamSsoSessionAttributes) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "iam.SsoSessionAttributes" of the ObjectType field. +func (o *IamSsoSessionAttributes) GetDefaultObjectType() interface{} { + return "iam.SsoSessionAttributes" +} + // GetAllowSwitchRoleOrAccount returns the AllowSwitchRoleOrAccount field value if set, zero value otherwise. func (o *IamSsoSessionAttributes) GetAllowSwitchRoleOrAccount() bool { if o == nil || IsNil(o.AllowSwitchRoleOrAccount) { @@ -326,7 +336,13 @@ func (o IamSsoSessionAttributes) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.AllowSwitchRoleOrAccount) { toSerialize["AllowSwitchRoleOrAccount"] = o.AllowSwitchRoleOrAccount @@ -363,6 +379,13 @@ func (o *IamSsoSessionAttributes) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -372,11 +395,23 @@ func (o *IamSsoSessionAttributes) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type IamSsoSessionAttributesWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_iam_system.go b/model_iam_system.go index 1ed7011326..57128202bb 100644 --- a/model_iam_system.go +++ b/model_iam_system.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -92,6 +92,11 @@ func (o *IamSystem) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "iam.System" of the ClassId field. +func (o *IamSystem) GetDefaultClassId() interface{} { + return "iam.System" +} + // GetObjectType returns the ObjectType field value func (o *IamSystem) GetObjectType() string { if o == nil { @@ -116,6 +121,11 @@ func (o *IamSystem) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "iam.System" of the ObjectType field. +func (o *IamSystem) GetDefaultObjectType() interface{} { + return "iam.System" +} + // GetEndPointPrivileges returns the EndPointPrivileges field value if set, zero value otherwise (both if not set or set to explicit null). func (o *IamSystem) GetEndPointPrivileges() []IamEndPointPrivilegeRelationship { if o == nil { @@ -137,7 +147,7 @@ func (o *IamSystem) GetEndPointPrivilegesOk() ([]IamEndPointPrivilegeRelationshi // HasEndPointPrivileges returns a boolean if a field has been set. func (o *IamSystem) HasEndPointPrivileges() bool { - if o != nil && IsNil(o.EndPointPrivileges) { + if o != nil && !IsNil(o.EndPointPrivileges) { return true } @@ -170,7 +180,7 @@ func (o *IamSystem) GetEndPointRolesOk() ([]IamEndPointRoleRelationship, bool) { // HasEndPointRoles returns a boolean if a field has been set. func (o *IamSystem) HasEndPointRoles() bool { - if o != nil && IsNil(o.EndPointRoles) { + if o != nil && !IsNil(o.EndPointRoles) { return true } @@ -246,7 +256,7 @@ func (o *IamSystem) GetPrivilegeSetsOk() ([]IamPrivilegeSetRelationship, bool) { // HasPrivilegeSets returns a boolean if a field has been set. func (o *IamSystem) HasPrivilegeSets() bool { - if o != nil && IsNil(o.PrivilegeSets) { + if o != nil && !IsNil(o.PrivilegeSets) { return true } @@ -279,7 +289,7 @@ func (o *IamSystem) GetPrivilegesOk() ([]IamPrivilegeRelationship, bool) { // HasPrivileges returns a boolean if a field has been set. func (o *IamSystem) HasPrivileges() bool { - if o != nil && IsNil(o.Privileges) { + if o != nil && !IsNil(o.Privileges) { return true } @@ -312,7 +322,7 @@ func (o *IamSystem) GetRolesOk() ([]IamRoleRelationship, bool) { // HasRoles returns a boolean if a field has been set. func (o *IamSystem) HasRoles() bool { - if o != nil && IsNil(o.Roles) { + if o != nil && !IsNil(o.Roles) { return true } @@ -385,7 +395,13 @@ func (o IamSystem) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.EndPointPrivileges != nil { toSerialize["EndPointPrivileges"] = o.EndPointPrivileges @@ -425,6 +441,13 @@ func (o *IamSystem) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -434,11 +457,23 @@ func (o *IamSystem) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type IamSystemWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_iam_system_list.go b/model_iam_system_list.go index 2b40a9e2c1..3cf5bac315 100644 --- a/model_iam_system_list.go +++ b/model_iam_system_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *IamSystemList) GetResultsOk() ([]IamSystem, bool) { // HasResults returns a boolean if a field has been set. func (o *IamSystemList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *IamSystemList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *IamSystemList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type IamSystemListWithoutEmbeddedStruct struct { // The total number of 'iam.System' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_iam_system_relationship.go b/model_iam_system_relationship.go index 705a11ffbf..555a329919 100644 --- a/model_iam_system_relationship.go +++ b/model_iam_system_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_iam_system_response.go b/model_iam_system_response.go index e96d8439eb..6ec1e70e96 100644 --- a/model_iam_system_response.go +++ b/model_iam_system_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_iam_trust_point.go b/model_iam_trust_point.go index 4e3557bacf..49e116c8ac 100644 --- a/model_iam_trust_point.go +++ b/model_iam_trust_point.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -86,6 +86,11 @@ func (o *IamTrustPoint) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "iam.TrustPoint" of the ClassId field. +func (o *IamTrustPoint) GetDefaultClassId() interface{} { + return "iam.TrustPoint" +} + // GetObjectType returns the ObjectType field value func (o *IamTrustPoint) GetObjectType() string { if o == nil { @@ -110,6 +115,11 @@ func (o *IamTrustPoint) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "iam.TrustPoint" of the ObjectType field. +func (o *IamTrustPoint) GetDefaultObjectType() interface{} { + return "iam.TrustPoint" +} + // GetCertificates returns the Certificates field value if set, zero value otherwise (both if not set or set to explicit null). func (o *IamTrustPoint) GetCertificates() []X509Certificate { if o == nil { @@ -131,7 +141,7 @@ func (o *IamTrustPoint) GetCertificatesOk() ([]X509Certificate, bool) { // HasCertificates returns a boolean if a field has been set. func (o *IamTrustPoint) HasCertificates() bool { - if o != nil && IsNil(o.Certificates) { + if o != nil && !IsNil(o.Certificates) { return true } @@ -239,7 +249,7 @@ func (o *IamTrustPoint) GetAssignedToEntityOk() ([]MoBaseMoRelationship, bool) { // HasAssignedToEntity returns a boolean if a field has been set. func (o *IamTrustPoint) HasAssignedToEntity() bool { - if o != nil && IsNil(o.AssignedToEntity) { + if o != nil && !IsNil(o.AssignedToEntity) { return true } @@ -269,7 +279,13 @@ func (o IamTrustPoint) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.Certificates != nil { toSerialize["Certificates"] = o.Certificates @@ -300,6 +316,13 @@ func (o *IamTrustPoint) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -309,11 +332,23 @@ func (o *IamTrustPoint) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type IamTrustPointWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_iam_trust_point_list.go b/model_iam_trust_point_list.go index 25715185aa..36137a3e04 100644 --- a/model_iam_trust_point_list.go +++ b/model_iam_trust_point_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *IamTrustPointList) GetResultsOk() ([]IamTrustPoint, bool) { // HasResults returns a boolean if a field has been set. func (o *IamTrustPointList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *IamTrustPointList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *IamTrustPointList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type IamTrustPointListWithoutEmbeddedStruct struct { // The total number of 'iam.TrustPoint' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_iam_trust_point_relationship.go b/model_iam_trust_point_relationship.go index dcf68f49cc..c6a4031a61 100644 --- a/model_iam_trust_point_relationship.go +++ b/model_iam_trust_point_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_iam_trust_point_response.go b/model_iam_trust_point_response.go index 608fcaa54a..09ad59676e 100644 --- a/model_iam_trust_point_response.go +++ b/model_iam_trust_point_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_iam_user.go b/model_iam_user.go index 3e2b5ee202..b9b24930a3 100644 --- a/model_iam_user.go +++ b/model_iam_user.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -32,7 +32,7 @@ type IamUser struct { // IP address from which the user last logged in to Intersight. ClientIpAddress *string `json:"ClientIpAddress,omitempty"` // Email of the user. Remote users are added to Intersight using the email configured in the IdP. - Email *string `json:"Email,omitempty"` + Email *string "json:\"Email,omitempty\" validate:\"regexp=^$|^[a-zA-Z0-9.!#$%&'*+\\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\\\\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$\"" // First name of the user. For remote users, this field is populated from the IdP attributes received after authentication. FirstName *string `json:"FirstName,omitempty"` // Last successful login time for user. @@ -116,6 +116,11 @@ func (o *IamUser) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "iam.User" of the ClassId field. +func (o *IamUser) GetDefaultClassId() interface{} { + return "iam.User" +} + // GetObjectType returns the ObjectType field value func (o *IamUser) GetObjectType() string { if o == nil { @@ -140,6 +145,11 @@ func (o *IamUser) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "iam.User" of the ObjectType field. +func (o *IamUser) GetDefaultObjectType() interface{} { + return "iam.User" +} + // GetClientIpAddress returns the ClientIpAddress field value if set, zero value otherwise. func (o *IamUser) GetClientIpAddress() string { if o == nil || IsNil(o.ClientIpAddress) { @@ -513,7 +523,7 @@ func (o *IamUser) GetApiKeysOk() ([]IamApiKeyRelationship, bool) { // HasApiKeys returns a boolean if a field has been set. func (o *IamUser) HasApiKeys() bool { - if o != nil && IsNil(o.ApiKeys) { + if o != nil && !IsNil(o.ApiKeys) { return true } @@ -546,7 +556,7 @@ func (o *IamUser) GetAppRegistrationsOk() ([]IamAppRegistrationRelationship, boo // HasAppRegistrations returns a boolean if a field has been set. func (o *IamUser) HasAppRegistrations() bool { - if o != nil && IsNil(o.AppRegistrations) { + if o != nil && !IsNil(o.AppRegistrations) { return true } @@ -708,7 +718,7 @@ func (o *IamUser) GetOauthTokensOk() ([]IamOAuthTokenRelationship, bool) { // HasOauthTokens returns a boolean if a field has been set. func (o *IamUser) HasOauthTokens() bool { - if o != nil && IsNil(o.OauthTokens) { + if o != nil && !IsNil(o.OauthTokens) { return true } @@ -741,7 +751,7 @@ func (o *IamUser) GetPermissionsOk() ([]IamPermissionRelationship, bool) { // HasPermissions returns a boolean if a field has been set. func (o *IamUser) HasPermissions() bool { - if o != nil && IsNil(o.Permissions) { + if o != nil && !IsNil(o.Permissions) { return true } @@ -774,7 +784,7 @@ func (o *IamUser) GetSessionsOk() ([]IamSessionRelationship, bool) { // HasSessions returns a boolean if a field has been set. func (o *IamUser) HasSessions() bool { - if o != nil && IsNil(o.Sessions) { + if o != nil && !IsNil(o.Sessions) { return true } @@ -804,7 +814,13 @@ func (o IamUser) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.ClientIpAddress) { toSerialize["ClientIpAddress"] = o.ClientIpAddress @@ -880,6 +896,13 @@ func (o *IamUser) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -889,11 +912,23 @@ func (o *IamUser) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type IamUserWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` @@ -902,7 +937,7 @@ func (o *IamUser) UnmarshalJSON(data []byte) (err error) { // IP address from which the user last logged in to Intersight. ClientIpAddress *string `json:"ClientIpAddress,omitempty"` // Email of the user. Remote users are added to Intersight using the email configured in the IdP. - Email *string `json:"Email,omitempty"` + Email *string "json:\"Email,omitempty\" validate:\"regexp=^$|^[a-zA-Z0-9.!#$%&'*+\\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\\\\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$\"" // First name of the user. For remote users, this field is populated from the IdP attributes received after authentication. FirstName *string `json:"FirstName,omitempty"` // Last successful login time for user. diff --git a/model_iam_user_group.go b/model_iam_user_group.go index 088e7723e4..5276c5a027 100644 --- a/model_iam_user_group.go +++ b/model_iam_user_group.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -89,6 +89,11 @@ func (o *IamUserGroup) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "iam.UserGroup" of the ClassId field. +func (o *IamUserGroup) GetDefaultClassId() interface{} { + return "iam.UserGroup" +} + // GetObjectType returns the ObjectType field value func (o *IamUserGroup) GetObjectType() string { if o == nil { @@ -113,6 +118,11 @@ func (o *IamUserGroup) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "iam.UserGroup" of the ObjectType field. +func (o *IamUserGroup) GetDefaultObjectType() interface{} { + return "iam.UserGroup" +} + // GetName returns the Name field value if set, zero value otherwise. func (o *IamUserGroup) GetName() string { if o == nil || IsNil(o.Name) { @@ -252,7 +262,7 @@ func (o *IamUserGroup) GetPermissionsOk() ([]IamPermissionRelationship, bool) { // HasPermissions returns a boolean if a field has been set. func (o *IamUserGroup) HasPermissions() bool { - if o != nil && IsNil(o.Permissions) { + if o != nil && !IsNil(o.Permissions) { return true } @@ -328,7 +338,7 @@ func (o *IamUserGroup) GetUsersOk() ([]IamUserRelationship, bool) { // HasUsers returns a boolean if a field has been set. func (o *IamUserGroup) HasUsers() bool { - if o != nil && IsNil(o.Users) { + if o != nil && !IsNil(o.Users) { return true } @@ -358,7 +368,13 @@ func (o IamUserGroup) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Name) { toSerialize["Name"] = o.Name @@ -395,6 +411,13 @@ func (o *IamUserGroup) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -404,11 +427,23 @@ func (o *IamUserGroup) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type IamUserGroupWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_iam_user_group_list.go b/model_iam_user_group_list.go index fb3c8f7f98..362d56e870 100644 --- a/model_iam_user_group_list.go +++ b/model_iam_user_group_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *IamUserGroupList) GetResultsOk() ([]IamUserGroup, bool) { // HasResults returns a boolean if a field has been set. func (o *IamUserGroupList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *IamUserGroupList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *IamUserGroupList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type IamUserGroupListWithoutEmbeddedStruct struct { // The total number of 'iam.UserGroup' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_iam_user_group_relationship.go b/model_iam_user_group_relationship.go index 72d02e16cf..b74525f03c 100644 --- a/model_iam_user_group_relationship.go +++ b/model_iam_user_group_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_iam_user_group_response.go b/model_iam_user_group_response.go index 07a665f07f..cd1300815a 100644 --- a/model_iam_user_group_response.go +++ b/model_iam_user_group_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_iam_user_list.go b/model_iam_user_list.go index 28c2acc140..f6b679fe8c 100644 --- a/model_iam_user_list.go +++ b/model_iam_user_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *IamUserList) GetResultsOk() ([]IamUser, bool) { // HasResults returns a boolean if a field has been set. func (o *IamUserList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *IamUserList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *IamUserList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type IamUserListWithoutEmbeddedStruct struct { // The total number of 'iam.User' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_iam_user_preference.go b/model_iam_user_preference.go index 7d53d0a880..1dbde937e0 100644 --- a/model_iam_user_preference.go +++ b/model_iam_user_preference.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -86,6 +86,11 @@ func (o *IamUserPreference) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "iam.UserPreference" of the ClassId field. +func (o *IamUserPreference) GetDefaultClassId() interface{} { + return "iam.UserPreference" +} + // GetObjectType returns the ObjectType field value func (o *IamUserPreference) GetObjectType() string { if o == nil { @@ -110,6 +115,11 @@ func (o *IamUserPreference) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "iam.UserPreference" of the ObjectType field. +func (o *IamUserPreference) GetDefaultObjectType() interface{} { + return "iam.UserPreference" +} + // GetPreference returns the Preference field value if set, zero value otherwise (both if not set or set to explicit null). func (o *IamUserPreference) GetPreference() interface{} { if o == nil { @@ -131,7 +141,7 @@ func (o *IamUserPreference) GetPreferenceOk() (*interface{}, bool) { // HasPreference returns a boolean if a field has been set. func (o *IamUserPreference) HasPreference() bool { - if o != nil && IsNil(o.Preference) { + if o != nil && !IsNil(o.Preference) { return true } @@ -279,7 +289,13 @@ func (o IamUserPreference) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.Preference != nil { toSerialize["Preference"] = o.Preference @@ -310,6 +326,13 @@ func (o *IamUserPreference) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -319,11 +342,23 @@ func (o *IamUserPreference) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type IamUserPreferenceWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_iam_user_preference_list.go b/model_iam_user_preference_list.go index 6008584bf9..6153f85c08 100644 --- a/model_iam_user_preference_list.go +++ b/model_iam_user_preference_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *IamUserPreferenceList) GetResultsOk() ([]IamUserPreference, bool) { // HasResults returns a boolean if a field has been set. func (o *IamUserPreferenceList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *IamUserPreferenceList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *IamUserPreferenceList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type IamUserPreferenceListWithoutEmbeddedStruct struct { // The total number of 'iam.UserPreference' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_iam_user_preference_relationship.go b/model_iam_user_preference_relationship.go index fb47da41de..66956629fa 100644 --- a/model_iam_user_preference_relationship.go +++ b/model_iam_user_preference_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_iam_user_preference_response.go b/model_iam_user_preference_response.go index f6dd939be5..1676e4380b 100644 --- a/model_iam_user_preference_response.go +++ b/model_iam_user_preference_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_iam_user_relationship.go b/model_iam_user_relationship.go index 673744e323..418efd0dd3 100644 --- a/model_iam_user_relationship.go +++ b/model_iam_user_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_iam_user_response.go b/model_iam_user_response.go index cb381f080e..900b69c350 100644 --- a/model_iam_user_response.go +++ b/model_iam_user_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_iam_user_setting.go b/model_iam_user_setting.go index c86fcd5c6b..84dcdf6c8c 100644 --- a/model_iam_user_setting.go +++ b/model_iam_user_setting.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -92,6 +92,11 @@ func (o *IamUserSetting) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "iam.UserSetting" of the ClassId field. +func (o *IamUserSetting) GetDefaultClassId() interface{} { + return "iam.UserSetting" +} + // GetObjectType returns the ObjectType field value func (o *IamUserSetting) GetObjectType() string { if o == nil { @@ -116,6 +121,11 @@ func (o *IamUserSetting) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "iam.UserSetting" of the ObjectType field. +func (o *IamUserSetting) GetDefaultObjectType() interface{} { + return "iam.UserSetting" +} + // GetAllowUiSessionRecording returns the AllowUiSessionRecording field value if set, zero value otherwise. func (o *IamUserSetting) GetAllowUiSessionRecording() bool { if o == nil || IsNil(o.AllowUiSessionRecording) { @@ -316,7 +326,13 @@ func (o IamUserSetting) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.AllowUiSessionRecording) { toSerialize["AllowUiSessionRecording"] = o.AllowUiSessionRecording @@ -350,6 +366,13 @@ func (o *IamUserSetting) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -359,11 +382,23 @@ func (o *IamUserSetting) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type IamUserSettingWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_iam_user_setting_list.go b/model_iam_user_setting_list.go index dbe31e1139..0cb589b672 100644 --- a/model_iam_user_setting_list.go +++ b/model_iam_user_setting_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *IamUserSettingList) GetResultsOk() ([]IamUserSetting, bool) { // HasResults returns a boolean if a field has been set. func (o *IamUserSettingList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *IamUserSettingList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *IamUserSettingList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type IamUserSettingListWithoutEmbeddedStruct struct { // The total number of 'iam.UserSetting' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_iam_user_setting_relationship.go b/model_iam_user_setting_relationship.go index 26a9d11778..40fc9f8822 100644 --- a/model_iam_user_setting_relationship.go +++ b/model_iam_user_setting_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_iam_user_setting_response.go b/model_iam_user_setting_response.go index 0a5bc6bc08..8dbdd47a94 100644 --- a/model_iam_user_setting_response.go +++ b/model_iam_user_setting_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_imcconnector_web_ui_message.go b/model_imcconnector_web_ui_message.go index 95b116bf85..d84cb7d448 100644 --- a/model_imcconnector_web_ui_message.go +++ b/model_imcconnector_web_ui_message.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -82,6 +82,11 @@ func (o *ImcconnectorWebUiMessage) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "imcconnector.WebUiMessage" of the ClassId field. +func (o *ImcconnectorWebUiMessage) GetDefaultClassId() interface{} { + return "imcconnector.WebUiMessage" +} + // GetObjectType returns the ObjectType field value func (o *ImcconnectorWebUiMessage) GetObjectType() string { if o == nil { @@ -106,6 +111,11 @@ func (o *ImcconnectorWebUiMessage) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "imcconnector.WebUiMessage" of the ObjectType field. +func (o *ImcconnectorWebUiMessage) GetDefaultObjectType() interface{} { + return "imcconnector.WebUiMessage" +} + // GetWebUiRequest returns the WebUiRequest field value if set, zero value otherwise. func (o *ImcconnectorWebUiMessage) GetWebUiRequest() string { if o == nil || IsNil(o.WebUiRequest) { @@ -156,7 +166,13 @@ func (o ImcconnectorWebUiMessage) ToMap() (map[string]interface{}, error) { if errConnectorAuthMessage != nil { return map[string]interface{}{}, errConnectorAuthMessage } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.WebUiRequest) { toSerialize["WebUiRequest"] = o.WebUiRequest @@ -178,6 +194,13 @@ func (o *ImcconnectorWebUiMessage) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -187,11 +210,23 @@ func (o *ImcconnectorWebUiMessage) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type ImcconnectorWebUiMessageWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_infra_base_cluster.go b/model_infra_base_cluster.go index 359faa3694..20db5fbd12 100644 --- a/model_infra_base_cluster.go +++ b/model_infra_base_cluster.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -29,7 +29,7 @@ type InfraBaseCluster struct { // The fully-qualified name of the instantiated, concrete type. The value should be the same as the 'ClassId' property. The enum values provides the list of concrete types that can be instantiated from this abstract type. ObjectType string `json:"ObjectType"` // The user-provided name for this cluster to facilitate identification. - Name *string `json:"Name,omitempty"` + Name *string `json:"Name,omitempty" validate:"regexp=^[a-zA-Z0-9]+[\\\\sa-zA-Z0-9_-]{1,32}$"` // Cluster health status as reported by the hypervisor platform. * `Unknown` - Entity status is unknown. * `Degraded` - State is degraded, and might impact normal operation of the entity. * `Critical` - Entity is in a critical state, impacting operations. * `Ok` - Entity status is in a stable state, operating normally. Status *string `json:"Status,omitempty"` AdditionalProperties map[string]interface{} @@ -211,6 +211,10 @@ func (o *InfraBaseCluster) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -220,18 +224,30 @@ func (o *InfraBaseCluster) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type InfraBaseClusterWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. The enum values provides the list of concrete types that can be instantiated from this abstract type. ClassId string `json:"ClassId"` // The fully-qualified name of the instantiated, concrete type. The value should be the same as the 'ClassId' property. The enum values provides the list of concrete types that can be instantiated from this abstract type. ObjectType string `json:"ObjectType"` // The user-provided name for this cluster to facilitate identification. - Name *string `json:"Name,omitempty"` + Name *string `json:"Name,omitempty" validate:"regexp=^[a-zA-Z0-9]+[\\\\sa-zA-Z0-9_-]{1,32}$"` // Cluster health status as reported by the hypervisor platform. * `Unknown` - Entity status is unknown. * `Degraded` - State is degraded, and might impact normal operation of the entity. * `Critical` - Entity is in a critical state, impacting operations. * `Ok` - Entity status is in a stable state, operating normally. Status *string `json:"Status,omitempty"` } diff --git a/model_infra_base_cluster_relationship.go b/model_infra_base_cluster_relationship.go index f094bba94b..d96f9587f5 100644 --- a/model_infra_base_cluster_relationship.go +++ b/model_infra_base_cluster_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_infra_base_gpu_configuration.go b/model_infra_base_gpu_configuration.go index 1219189a2d..998c42388d 100644 --- a/model_infra_base_gpu_configuration.go +++ b/model_infra_base_gpu_configuration.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -174,6 +174,10 @@ func (o *InfraBaseGpuConfiguration) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -183,11 +187,23 @@ func (o *InfraBaseGpuConfiguration) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type InfraBaseGpuConfigurationWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. The enum values provides the list of concrete types that can be instantiated from this abstract type. ClassId string `json:"ClassId"` diff --git a/model_infra_base_pci_configuration.go b/model_infra_base_pci_configuration.go index 0b50d1d1f0..107cd5c12d 100644 --- a/model_infra_base_pci_configuration.go +++ b/model_infra_base_pci_configuration.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -211,6 +211,10 @@ func (o *InfraBasePciConfiguration) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -220,11 +224,23 @@ func (o *InfraBasePciConfiguration) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type InfraBasePciConfigurationWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. The enum values provides the list of concrete types that can be instantiated from this abstract type. ClassId string `json:"ClassId"` diff --git a/model_infra_gpu_configuration.go b/model_infra_gpu_configuration.go index bdf4e157a7..f4494fa682 100644 --- a/model_infra_gpu_configuration.go +++ b/model_infra_gpu_configuration.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -83,6 +83,10 @@ func (o *InfraGpuConfiguration) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -92,11 +96,23 @@ func (o *InfraGpuConfiguration) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type InfraGpuConfigurationWithoutEmbeddedStruct struct { } diff --git a/model_infra_hardware_info.go b/model_infra_hardware_info.go index dad123cbbc..681fc2feb8 100644 --- a/model_infra_hardware_info.go +++ b/model_infra_hardware_info.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -86,6 +86,11 @@ func (o *InfraHardwareInfo) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "infra.HardwareInfo" of the ClassId field. +func (o *InfraHardwareInfo) GetDefaultClassId() interface{} { + return "infra.HardwareInfo" +} + // GetObjectType returns the ObjectType field value func (o *InfraHardwareInfo) GetObjectType() string { if o == nil { @@ -110,6 +115,11 @@ func (o *InfraHardwareInfo) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "infra.HardwareInfo" of the ObjectType field. +func (o *InfraHardwareInfo) GetDefaultObjectType() interface{} { + return "infra.HardwareInfo" +} + // GetCpuCores returns the CpuCores field value if set, zero value otherwise. func (o *InfraHardwareInfo) GetCpuCores() int64 { if o == nil || IsNil(o.CpuCores) { @@ -224,7 +234,13 @@ func (o InfraHardwareInfo) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.CpuCores) { toSerialize["CpuCores"] = o.CpuCores @@ -252,6 +268,13 @@ func (o *InfraHardwareInfo) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -261,11 +284,23 @@ func (o *InfraHardwareInfo) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type InfraHardwareInfoWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_infra_meta_data.go b/model_infra_meta_data.go index 2763ad49da..506852d890 100644 --- a/model_infra_meta_data.go +++ b/model_infra_meta_data.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -84,6 +84,11 @@ func (o *InfraMetaData) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "infra.MetaData" of the ClassId field. +func (o *InfraMetaData) GetDefaultClassId() interface{} { + return "infra.MetaData" +} + // GetObjectType returns the ObjectType field value func (o *InfraMetaData) GetObjectType() string { if o == nil { @@ -108,6 +113,11 @@ func (o *InfraMetaData) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "infra.MetaData" of the ObjectType field. +func (o *InfraMetaData) GetDefaultObjectType() interface{} { + return "infra.MetaData" +} + // GetName returns the Name field value if set, zero value otherwise. func (o *InfraMetaData) GetName() string { if o == nil || IsNil(o.Name) { @@ -190,7 +200,13 @@ func (o InfraMetaData) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Name) { toSerialize["Name"] = o.Name @@ -215,6 +231,13 @@ func (o *InfraMetaData) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -224,11 +247,23 @@ func (o *InfraMetaData) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type InfraMetaDataWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_infra_mig_gpu_configuration.go b/model_infra_mig_gpu_configuration.go index f7bbcb49b9..7c76b590d7 100644 --- a/model_infra_mig_gpu_configuration.go +++ b/model_infra_mig_gpu_configuration.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -82,6 +82,11 @@ func (o *InfraMigGpuConfiguration) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "infra.MigGpuConfiguration" of the ClassId field. +func (o *InfraMigGpuConfiguration) GetDefaultClassId() interface{} { + return "infra.MigGpuConfiguration" +} + // GetObjectType returns the ObjectType field value func (o *InfraMigGpuConfiguration) GetObjectType() string { if o == nil { @@ -106,6 +111,11 @@ func (o *InfraMigGpuConfiguration) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "infra.MigGpuConfiguration" of the ObjectType field. +func (o *InfraMigGpuConfiguration) GetDefaultObjectType() interface{} { + return "infra.MigGpuConfiguration" +} + // GetMigProfileName returns the MigProfileName field value if set, zero value otherwise. func (o *InfraMigGpuConfiguration) GetMigProfileName() string { if o == nil || IsNil(o.MigProfileName) { @@ -156,7 +166,13 @@ func (o InfraMigGpuConfiguration) ToMap() (map[string]interface{}, error) { if errInfraBaseGpuConfiguration != nil { return map[string]interface{}{}, errInfraBaseGpuConfiguration } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.MigProfileName) { toSerialize["MigProfileName"] = o.MigProfileName @@ -178,6 +194,13 @@ func (o *InfraMigGpuConfiguration) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -187,11 +210,23 @@ func (o *InfraMigGpuConfiguration) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type InfraMigGpuConfigurationWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_inventory_base.go b/model_inventory_base.go index 215dab2277..9a48b8c4b3 100644 --- a/model_inventory_base.go +++ b/model_inventory_base.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -248,6 +248,10 @@ func (o *InventoryBase) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -257,11 +261,23 @@ func (o *InventoryBase) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type InventoryBaseWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. The enum values provides the list of concrete types that can be instantiated from this abstract type. ClassId string `json:"ClassId"` diff --git a/model_inventory_base_relationship.go b/model_inventory_base_relationship.go index 223a54aef2..04e96cea1d 100644 --- a/model_inventory_base_relationship.go +++ b/model_inventory_base_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_inventory_device_info.go b/model_inventory_device_info.go index d2b5d55a2b..ab68e62eb5 100644 --- a/model_inventory_device_info.go +++ b/model_inventory_device_info.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -83,6 +83,13 @@ func (o *InventoryDeviceInfo) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -92,11 +99,23 @@ func (o *InventoryDeviceInfo) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type InventoryDeviceInfoWithoutEmbeddedStruct struct { } diff --git a/model_inventory_device_info_list.go b/model_inventory_device_info_list.go index add460f819..33ecc4304f 100644 --- a/model_inventory_device_info_list.go +++ b/model_inventory_device_info_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *InventoryDeviceInfoList) GetResultsOk() ([]InventoryDeviceInfo, bool) { // HasResults returns a boolean if a field has been set. func (o *InventoryDeviceInfoList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *InventoryDeviceInfoList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *InventoryDeviceInfoList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type InventoryDeviceInfoListWithoutEmbeddedStruct struct { // The total number of 'inventory.DeviceInfo' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_inventory_device_info_relationship.go b/model_inventory_device_info_relationship.go index e06b882c17..938992dd8c 100644 --- a/model_inventory_device_info_relationship.go +++ b/model_inventory_device_info_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_inventory_device_info_response.go b/model_inventory_device_info_response.go index 23b547194c..35f1e6dbdb 100644 --- a/model_inventory_device_info_response.go +++ b/model_inventory_device_info_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_inventory_dn_mo_binding.go b/model_inventory_dn_mo_binding.go index 539f804dc1..94af83b78c 100644 --- a/model_inventory_dn_mo_binding.go +++ b/model_inventory_dn_mo_binding.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -87,6 +87,11 @@ func (o *InventoryDnMoBinding) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "inventory.DnMoBinding" of the ClassId field. +func (o *InventoryDnMoBinding) GetDefaultClassId() interface{} { + return "inventory.DnMoBinding" +} + // GetObjectType returns the ObjectType field value func (o *InventoryDnMoBinding) GetObjectType() string { if o == nil { @@ -111,6 +116,11 @@ func (o *InventoryDnMoBinding) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "inventory.DnMoBinding" of the ObjectType field. +func (o *InventoryDnMoBinding) GetDefaultObjectType() interface{} { + return "inventory.DnMoBinding" +} + // GetDn returns the Dn field value if set, zero value otherwise. func (o *InventoryDnMoBinding) GetDn() string { if o == nil || IsNil(o.Dn) { @@ -268,7 +278,13 @@ func (o InventoryDnMoBinding) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Dn) { toSerialize["Dn"] = o.Dn @@ -299,6 +315,13 @@ func (o *InventoryDnMoBinding) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -308,11 +331,23 @@ func (o *InventoryDnMoBinding) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type InventoryDnMoBindingWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_inventory_dn_mo_binding_list.go b/model_inventory_dn_mo_binding_list.go index 71bfeadc73..ccc17cb3d9 100644 --- a/model_inventory_dn_mo_binding_list.go +++ b/model_inventory_dn_mo_binding_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *InventoryDnMoBindingList) GetResultsOk() ([]InventoryDnMoBinding, bool) // HasResults returns a boolean if a field has been set. func (o *InventoryDnMoBindingList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *InventoryDnMoBindingList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *InventoryDnMoBindingList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type InventoryDnMoBindingListWithoutEmbeddedStruct struct { // The total number of 'inventory.DnMoBinding' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_inventory_dn_mo_binding_response.go b/model_inventory_dn_mo_binding_response.go index babe174e34..c46680f2e2 100644 --- a/model_inventory_dn_mo_binding_response.go +++ b/model_inventory_dn_mo_binding_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_inventory_generic_inventory.go b/model_inventory_generic_inventory.go index 82df229e44..74480498e5 100644 --- a/model_inventory_generic_inventory.go +++ b/model_inventory_generic_inventory.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -89,6 +89,11 @@ func (o *InventoryGenericInventory) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "inventory.GenericInventory" of the ClassId field. +func (o *InventoryGenericInventory) GetDefaultClassId() interface{} { + return "inventory.GenericInventory" +} + // GetObjectType returns the ObjectType field value func (o *InventoryGenericInventory) GetObjectType() string { if o == nil { @@ -113,6 +118,11 @@ func (o *InventoryGenericInventory) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "inventory.GenericInventory" of the ObjectType field. +func (o *InventoryGenericInventory) GetDefaultObjectType() interface{} { + return "inventory.GenericInventory" +} + // GetKey returns the Key field value if set, zero value otherwise. func (o *InventoryGenericInventory) GetKey() string { if o == nil || IsNil(o.Key) { @@ -356,7 +366,13 @@ func (o InventoryGenericInventory) ToMap() (map[string]interface{}, error) { if errInventoryBase != nil { return map[string]interface{}{}, errInventoryBase } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Key) { toSerialize["Key"] = o.Key @@ -393,6 +409,13 @@ func (o *InventoryGenericInventory) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -402,11 +425,23 @@ func (o *InventoryGenericInventory) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type InventoryGenericInventoryWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_inventory_generic_inventory_holder.go b/model_inventory_generic_inventory_holder.go index 17d0428187..4ede5af731 100644 --- a/model_inventory_generic_inventory_holder.go +++ b/model_inventory_generic_inventory_holder.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -88,6 +88,11 @@ func (o *InventoryGenericInventoryHolder) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "inventory.GenericInventoryHolder" of the ClassId field. +func (o *InventoryGenericInventoryHolder) GetDefaultClassId() interface{} { + return "inventory.GenericInventoryHolder" +} + // GetObjectType returns the ObjectType field value func (o *InventoryGenericInventoryHolder) GetObjectType() string { if o == nil { @@ -112,6 +117,11 @@ func (o *InventoryGenericInventoryHolder) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "inventory.GenericInventoryHolder" of the ObjectType field. +func (o *InventoryGenericInventoryHolder) GetDefaultObjectType() interface{} { + return "inventory.GenericInventoryHolder" +} + // GetEndpoint returns the Endpoint field value if set, zero value otherwise. func (o *InventoryGenericInventoryHolder) GetEndpoint() string { if o == nil || IsNil(o.Endpoint) { @@ -251,7 +261,7 @@ func (o *InventoryGenericInventoryHolder) GetGenericInventoryOk() ([]InventoryGe // HasGenericInventory returns a boolean if a field has been set. func (o *InventoryGenericInventoryHolder) HasGenericInventory() bool { - if o != nil && IsNil(o.GenericInventory) { + if o != nil && !IsNil(o.GenericInventory) { return true } @@ -367,7 +377,13 @@ func (o InventoryGenericInventoryHolder) ToMap() (map[string]interface{}, error) if errInventoryBase != nil { return map[string]interface{}{}, errInventoryBase } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Endpoint) { toSerialize["Endpoint"] = o.Endpoint @@ -404,6 +420,13 @@ func (o *InventoryGenericInventoryHolder) UnmarshalJSON(data []byte) (err error) "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -413,11 +436,23 @@ func (o *InventoryGenericInventoryHolder) UnmarshalJSON(data []byte) (err error) } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type InventoryGenericInventoryHolderWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_inventory_generic_inventory_holder_list.go b/model_inventory_generic_inventory_holder_list.go index 7dbcd4ed54..acee9381bb 100644 --- a/model_inventory_generic_inventory_holder_list.go +++ b/model_inventory_generic_inventory_holder_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *InventoryGenericInventoryHolderList) GetResultsOk() ([]InventoryGeneric // HasResults returns a boolean if a field has been set. func (o *InventoryGenericInventoryHolderList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *InventoryGenericInventoryHolderList) UnmarshalJSON(data []byte) (err er "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *InventoryGenericInventoryHolderList) UnmarshalJSON(data []byte) (err er } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type InventoryGenericInventoryHolderListWithoutEmbeddedStruct struct { // The total number of 'inventory.GenericInventoryHolder' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_inventory_generic_inventory_holder_relationship.go b/model_inventory_generic_inventory_holder_relationship.go index a7324146eb..d17e069936 100644 --- a/model_inventory_generic_inventory_holder_relationship.go +++ b/model_inventory_generic_inventory_holder_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_inventory_generic_inventory_holder_response.go b/model_inventory_generic_inventory_holder_response.go index d79ab1d31a..8e69e368f2 100644 --- a/model_inventory_generic_inventory_holder_response.go +++ b/model_inventory_generic_inventory_holder_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_inventory_generic_inventory_list.go b/model_inventory_generic_inventory_list.go index ba9b75d522..c9c9e7b461 100644 --- a/model_inventory_generic_inventory_list.go +++ b/model_inventory_generic_inventory_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *InventoryGenericInventoryList) GetResultsOk() ([]InventoryGenericInvent // HasResults returns a boolean if a field has been set. func (o *InventoryGenericInventoryList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *InventoryGenericInventoryList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *InventoryGenericInventoryList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type InventoryGenericInventoryListWithoutEmbeddedStruct struct { // The total number of 'inventory.GenericInventory' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_inventory_generic_inventory_relationship.go b/model_inventory_generic_inventory_relationship.go index 1e50033c15..a21142386b 100644 --- a/model_inventory_generic_inventory_relationship.go +++ b/model_inventory_generic_inventory_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_inventory_generic_inventory_response.go b/model_inventory_generic_inventory_response.go index f3b33e9bdc..a226e57f0f 100644 --- a/model_inventory_generic_inventory_response.go +++ b/model_inventory_generic_inventory_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_inventory_interface.go b/model_inventory_interface.go index 1b5161d4be..500f666372 100644 --- a/model_inventory_interface.go +++ b/model_inventory_interface.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -83,6 +83,10 @@ func (o *InventoryInterface) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -92,11 +96,23 @@ func (o *InventoryInterface) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type InventoryInterfaceWithoutEmbeddedStruct struct { } diff --git a/model_inventory_interface_relationship.go b/model_inventory_interface_relationship.go index 5392aaa9e2..ed7f71709e 100644 --- a/model_inventory_interface_relationship.go +++ b/model_inventory_interface_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_inventory_inventory_mo.go b/model_inventory_inventory_mo.go index 398164d867..fb2de837ae 100644 --- a/model_inventory_inventory_mo.go +++ b/model_inventory_inventory_mo.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -86,6 +86,11 @@ func (o *InventoryInventoryMo) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "inventory.InventoryMo" of the ClassId field. +func (o *InventoryInventoryMo) GetDefaultClassId() interface{} { + return "inventory.InventoryMo" +} + // GetObjectType returns the ObjectType field value func (o *InventoryInventoryMo) GetObjectType() string { if o == nil { @@ -110,6 +115,11 @@ func (o *InventoryInventoryMo) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "inventory.InventoryMo" of the ObjectType field. +func (o *InventoryInventoryMo) GetDefaultObjectType() interface{} { + return "inventory.InventoryMo" +} + // GetMoDn returns the MoDn field value if set, zero value otherwise. func (o *InventoryInventoryMo) GetMoDn() string { if o == nil || IsNil(o.MoDn) { @@ -224,7 +234,13 @@ func (o InventoryInventoryMo) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.MoDn) { toSerialize["MoDn"] = o.MoDn @@ -252,6 +268,13 @@ func (o *InventoryInventoryMo) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -261,11 +284,23 @@ func (o *InventoryInventoryMo) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type InventoryInventoryMoWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_inventory_request.go b/model_inventory_request.go index e635d0636e..96bd5f779e 100644 --- a/model_inventory_request.go +++ b/model_inventory_request.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -82,6 +82,11 @@ func (o *InventoryRequest) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "inventory.Request" of the ClassId field. +func (o *InventoryRequest) GetDefaultClassId() interface{} { + return "inventory.Request" +} + // GetObjectType returns the ObjectType field value func (o *InventoryRequest) GetObjectType() string { if o == nil { @@ -106,6 +111,11 @@ func (o *InventoryRequest) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "inventory.Request" of the ObjectType field. +func (o *InventoryRequest) GetDefaultObjectType() interface{} { + return "inventory.Request" +} + // GetMos returns the Mos field value if set, zero value otherwise (both if not set or set to explicit null). func (o *InventoryRequest) GetMos() []InventoryInventoryMo { if o == nil { @@ -127,7 +137,7 @@ func (o *InventoryRequest) GetMosOk() ([]InventoryInventoryMo, bool) { // HasMos returns a boolean if a field has been set. func (o *InventoryRequest) HasMos() bool { - if o != nil && IsNil(o.Mos) { + if o != nil && !IsNil(o.Mos) { return true } @@ -200,7 +210,13 @@ func (o InventoryRequest) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.Mos != nil { toSerialize["Mos"] = o.Mos @@ -225,6 +241,13 @@ func (o *InventoryRequest) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -234,11 +257,23 @@ func (o *InventoryRequest) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type InventoryRequestWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_inventory_uem_info.go b/model_inventory_uem_info.go index 0f58ebfdc1..0ea2a353fc 100644 --- a/model_inventory_uem_info.go +++ b/model_inventory_uem_info.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -90,6 +90,11 @@ func (o *InventoryUemInfo) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "inventory.UemInfo" of the ClassId field. +func (o *InventoryUemInfo) GetDefaultClassId() interface{} { + return "inventory.UemInfo" +} + // GetObjectType returns the ObjectType field value func (o *InventoryUemInfo) GetObjectType() string { if o == nil { @@ -114,6 +119,11 @@ func (o *InventoryUemInfo) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "inventory.UemInfo" of the ObjectType field. +func (o *InventoryUemInfo) GetDefaultObjectType() interface{} { + return "inventory.UemInfo" +} + // GetConnectionStatus returns the ConnectionStatus field value if set, zero value otherwise. func (o *InventoryUemInfo) GetConnectionStatus() string { if o == nil || IsNil(o.ConnectionStatus) { @@ -292,7 +302,13 @@ func (o InventoryUemInfo) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.ConnectionStatus) { toSerialize["ConnectionStatus"] = o.ConnectionStatus @@ -326,6 +342,13 @@ func (o *InventoryUemInfo) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -335,11 +358,23 @@ func (o *InventoryUemInfo) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type InventoryUemInfoWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_ipmioverlan_policy.go b/model_ipmioverlan_policy.go index 94d3278cc8..b9932699c7 100644 --- a/model_ipmioverlan_policy.go +++ b/model_ipmioverlan_policy.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -31,7 +31,7 @@ type IpmioverlanPolicy struct { // State of the IPMI Over LAN service on the endpoint. Enabled *bool `json:"Enabled,omitempty"` // The encryption key to use for IPMI communication. It should have an even number of hexadecimal characters and not exceed 40 characters. Use “00” to disable encryption key use. This configuration is supported by all standalone rack servers. FI-attached rack servers with firmware at minimum of 4.2.3a support this configuration. FI-attached blade servers with firmware at minimum of 5.1.0.x support this configuration. IPMI commands using this key should append zeroes to the key to achieve a length of 40 characters. - EncryptionKey *string `json:"EncryptionKey,omitempty"` + EncryptionKey *string `json:"EncryptionKey,omitempty" validate:"regexp=^[a-fA-F0-9]*$"` // Indicates whether the value of the 'encryptionKey' property has been set. IsEncryptionKeySet *bool `json:"IsEncryptionKeySet,omitempty"` // The highest privilege level that can be assigned to an IPMI session on a server. This configuration is supported by all standalone rack servers. FI-attached rack servers with firmware at minimum of 4.2.3a support this configuration. FI-attached blade servers do not support privilege level. Privilege level will be ignored for unsupported servers. * `admin` - Privilege to perform all actions available through IPMI. * `user` - Privilege to perform some functions through IPMI but restriction on performing administrative tasks. * `read-only` - Privilege to view information throught IPMI but restriction on making any changes. @@ -99,6 +99,11 @@ func (o *IpmioverlanPolicy) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "ipmioverlan.Policy" of the ClassId field. +func (o *IpmioverlanPolicy) GetDefaultClassId() interface{} { + return "ipmioverlan.Policy" +} + // GetObjectType returns the ObjectType field value func (o *IpmioverlanPolicy) GetObjectType() string { if o == nil { @@ -123,6 +128,11 @@ func (o *IpmioverlanPolicy) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "ipmioverlan.Policy" of the ObjectType field. +func (o *IpmioverlanPolicy) GetDefaultObjectType() interface{} { + return "ipmioverlan.Policy" +} + // GetEnabled returns the Enabled field value if set, zero value otherwise. func (o *IpmioverlanPolicy) GetEnabled() bool { if o == nil || IsNil(o.Enabled) { @@ -315,7 +325,7 @@ func (o *IpmioverlanPolicy) GetProfilesOk() ([]PolicyAbstractConfigProfileRelati // HasProfiles returns a boolean if a field has been set. func (o *IpmioverlanPolicy) HasProfiles() bool { - if o != nil && IsNil(o.Profiles) { + if o != nil && !IsNil(o.Profiles) { return true } @@ -345,7 +355,13 @@ func (o IpmioverlanPolicy) ToMap() (map[string]interface{}, error) { if errPolicyAbstractPolicy != nil { return map[string]interface{}{}, errPolicyAbstractPolicy } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Enabled) { toSerialize["Enabled"] = o.Enabled @@ -382,6 +398,13 @@ func (o *IpmioverlanPolicy) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -391,11 +414,23 @@ func (o *IpmioverlanPolicy) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type IpmioverlanPolicyWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` @@ -404,7 +439,7 @@ func (o *IpmioverlanPolicy) UnmarshalJSON(data []byte) (err error) { // State of the IPMI Over LAN service on the endpoint. Enabled *bool `json:"Enabled,omitempty"` // The encryption key to use for IPMI communication. It should have an even number of hexadecimal characters and not exceed 40 characters. Use “00” to disable encryption key use. This configuration is supported by all standalone rack servers. FI-attached rack servers with firmware at minimum of 4.2.3a support this configuration. FI-attached blade servers with firmware at minimum of 5.1.0.x support this configuration. IPMI commands using this key should append zeroes to the key to achieve a length of 40 characters. - EncryptionKey *string `json:"EncryptionKey,omitempty"` + EncryptionKey *string `json:"EncryptionKey,omitempty" validate:"regexp=^[a-fA-F0-9]*$"` // Indicates whether the value of the 'encryptionKey' property has been set. IsEncryptionKeySet *bool `json:"IsEncryptionKeySet,omitempty"` // The highest privilege level that can be assigned to an IPMI session on a server. This configuration is supported by all standalone rack servers. FI-attached rack servers with firmware at minimum of 4.2.3a support this configuration. FI-attached blade servers do not support privilege level. Privilege level will be ignored for unsupported servers. * `admin` - Privilege to perform all actions available through IPMI. * `user` - Privilege to perform some functions through IPMI but restriction on performing administrative tasks. * `read-only` - Privilege to view information throught IPMI but restriction on making any changes. diff --git a/model_ipmioverlan_policy_inventory.go b/model_ipmioverlan_policy_inventory.go index 18e30b0c6a..aa9ee133e2 100644 --- a/model_ipmioverlan_policy_inventory.go +++ b/model_ipmioverlan_policy_inventory.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -31,7 +31,7 @@ type IpmioverlanPolicyInventory struct { // State of the IPMI Over LAN service on the endpoint. Enabled *bool `json:"Enabled,omitempty"` // The encryption key to use for IPMI communication. It should have an even number of hexadecimal characters and not exceed 40 characters. Use “00” to disable encryption key use. This configuration is supported by all standalone rack servers. FI-attached rack servers with firmware at minimum of 4.2.3a support this configuration. FI-attached blade servers with firmware at minimum of 5.1.0.x support this configuration. IPMI commands using this key should append zeroes to the key to achieve a length of 40 characters. - EncryptionKey *string `json:"EncryptionKey,omitempty"` + EncryptionKey *string `json:"EncryptionKey,omitempty" validate:"regexp=^[a-fA-F0-9]*$"` // Indicates whether the value of the 'encryptionKey' property has been set. IsEncryptionKeySet *bool `json:"IsEncryptionKeySet,omitempty"` // The highest privilege level that can be assigned to an IPMI session on a server. This configuration is supported by all standalone rack servers. FI-attached rack servers with firmware at minimum of 4.2.3a support this configuration. FI-attached blade servers do not support privilege level. Privilege level will be ignored for unsupported servers. * `admin` - Privilege to perform all actions available through IPMI. * `user` - Privilege to perform some functions through IPMI but restriction on performing administrative tasks. * `read-only` - Privilege to view information throught IPMI but restriction on making any changes. @@ -89,6 +89,11 @@ func (o *IpmioverlanPolicyInventory) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "ipmioverlan.PolicyInventory" of the ClassId field. +func (o *IpmioverlanPolicyInventory) GetDefaultClassId() interface{} { + return "ipmioverlan.PolicyInventory" +} + // GetObjectType returns the ObjectType field value func (o *IpmioverlanPolicyInventory) GetObjectType() string { if o == nil { @@ -113,6 +118,11 @@ func (o *IpmioverlanPolicyInventory) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "ipmioverlan.PolicyInventory" of the ObjectType field. +func (o *IpmioverlanPolicyInventory) GetDefaultObjectType() interface{} { + return "ipmioverlan.PolicyInventory" +} + // GetEnabled returns the Enabled field value if set, zero value otherwise. func (o *IpmioverlanPolicyInventory) GetEnabled() bool { if o == nil || IsNil(o.Enabled) { @@ -302,7 +312,13 @@ func (o IpmioverlanPolicyInventory) ToMap() (map[string]interface{}, error) { if errPolicyAbstractPolicyInventory != nil { return map[string]interface{}{}, errPolicyAbstractPolicyInventory } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Enabled) { toSerialize["Enabled"] = o.Enabled @@ -336,6 +352,13 @@ func (o *IpmioverlanPolicyInventory) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -345,11 +368,23 @@ func (o *IpmioverlanPolicyInventory) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type IpmioverlanPolicyInventoryWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` @@ -358,7 +393,7 @@ func (o *IpmioverlanPolicyInventory) UnmarshalJSON(data []byte) (err error) { // State of the IPMI Over LAN service on the endpoint. Enabled *bool `json:"Enabled,omitempty"` // The encryption key to use for IPMI communication. It should have an even number of hexadecimal characters and not exceed 40 characters. Use “00” to disable encryption key use. This configuration is supported by all standalone rack servers. FI-attached rack servers with firmware at minimum of 4.2.3a support this configuration. FI-attached blade servers with firmware at minimum of 5.1.0.x support this configuration. IPMI commands using this key should append zeroes to the key to achieve a length of 40 characters. - EncryptionKey *string `json:"EncryptionKey,omitempty"` + EncryptionKey *string `json:"EncryptionKey,omitempty" validate:"regexp=^[a-fA-F0-9]*$"` // Indicates whether the value of the 'encryptionKey' property has been set. IsEncryptionKeySet *bool `json:"IsEncryptionKeySet,omitempty"` // The highest privilege level that can be assigned to an IPMI session on a server. This configuration is supported by all standalone rack servers. FI-attached rack servers with firmware at minimum of 4.2.3a support this configuration. FI-attached blade servers do not support privilege level. Privilege level will be ignored for unsupported servers. * `admin` - Privilege to perform all actions available through IPMI. * `user` - Privilege to perform some functions through IPMI but restriction on performing administrative tasks. * `read-only` - Privilege to view information throught IPMI but restriction on making any changes. diff --git a/model_ipmioverlan_policy_inventory_list.go b/model_ipmioverlan_policy_inventory_list.go index 507ce6ce90..4ff84d41e6 100644 --- a/model_ipmioverlan_policy_inventory_list.go +++ b/model_ipmioverlan_policy_inventory_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *IpmioverlanPolicyInventoryList) GetResultsOk() ([]IpmioverlanPolicyInve // HasResults returns a boolean if a field has been set. func (o *IpmioverlanPolicyInventoryList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *IpmioverlanPolicyInventoryList) UnmarshalJSON(data []byte) (err error) "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *IpmioverlanPolicyInventoryList) UnmarshalJSON(data []byte) (err error) } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type IpmioverlanPolicyInventoryListWithoutEmbeddedStruct struct { // The total number of 'ipmioverlan.PolicyInventory' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_ipmioverlan_policy_inventory_response.go b/model_ipmioverlan_policy_inventory_response.go index 02bfa0f778..71458c7f69 100644 --- a/model_ipmioverlan_policy_inventory_response.go +++ b/model_ipmioverlan_policy_inventory_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_ipmioverlan_policy_list.go b/model_ipmioverlan_policy_list.go index 8019be6e8f..a96beac5d4 100644 --- a/model_ipmioverlan_policy_list.go +++ b/model_ipmioverlan_policy_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *IpmioverlanPolicyList) GetResultsOk() ([]IpmioverlanPolicy, bool) { // HasResults returns a boolean if a field has been set. func (o *IpmioverlanPolicyList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *IpmioverlanPolicyList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *IpmioverlanPolicyList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type IpmioverlanPolicyListWithoutEmbeddedStruct struct { // The total number of 'ipmioverlan.Policy' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_ipmioverlan_policy_response.go b/model_ipmioverlan_policy_response.go index f196616c34..a9e1d05ab8 100644 --- a/model_ipmioverlan_policy_response.go +++ b/model_ipmioverlan_policy_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_ippool_block_lease.go b/model_ippool_block_lease.go index 8717d8b275..ad048fb429 100644 --- a/model_ippool_block_lease.go +++ b/model_ippool_block_lease.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -92,6 +92,11 @@ func (o *IppoolBlockLease) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "ippool.BlockLease" of the ClassId field. +func (o *IppoolBlockLease) GetDefaultClassId() interface{} { + return "ippool.BlockLease" +} + // GetObjectType returns the ObjectType field value func (o *IppoolBlockLease) GetObjectType() string { if o == nil { @@ -116,6 +121,11 @@ func (o *IppoolBlockLease) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "ippool.BlockLease" of the ObjectType field. +func (o *IppoolBlockLease) GetDefaultObjectType() interface{} { + return "ippool.BlockLease" +} + // GetIpType returns the IpType field value if set, zero value otherwise. func (o *IppoolBlockLease) GetIpType() string { if o == nil || IsNil(o.IpType) { @@ -212,7 +222,7 @@ func (o *IppoolBlockLease) GetIpLeasesOk() ([]IppoolIpLeaseRelationship, bool) { // HasIpLeases returns a boolean if a field has been set. func (o *IppoolBlockLease) HasIpLeases() bool { - if o != nil && IsNil(o.IpLeases) { + if o != nil && !IsNil(o.IpLeases) { return true } @@ -371,7 +381,13 @@ func (o IppoolBlockLease) ToMap() (map[string]interface{}, error) { if errPoolAbstractBlockLease != nil { return map[string]interface{}{}, errPoolAbstractBlockLease } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.IpType) { toSerialize["IpType"] = o.IpType @@ -408,6 +424,13 @@ func (o *IppoolBlockLease) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -417,11 +440,23 @@ func (o *IppoolBlockLease) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type IppoolBlockLeaseWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_ippool_block_lease_list.go b/model_ippool_block_lease_list.go index d7bbcb2ab5..a2e8a249b1 100644 --- a/model_ippool_block_lease_list.go +++ b/model_ippool_block_lease_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *IppoolBlockLeaseList) GetResultsOk() ([]IppoolBlockLease, bool) { // HasResults returns a boolean if a field has been set. func (o *IppoolBlockLeaseList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *IppoolBlockLeaseList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *IppoolBlockLeaseList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type IppoolBlockLeaseListWithoutEmbeddedStruct struct { // The total number of 'ippool.BlockLease' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_ippool_block_lease_relationship.go b/model_ippool_block_lease_relationship.go index 18893c0eac..0fab3f77b6 100644 --- a/model_ippool_block_lease_relationship.go +++ b/model_ippool_block_lease_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_ippool_block_lease_response.go b/model_ippool_block_lease_response.go index b9477ab235..d3945ff06e 100644 --- a/model_ippool_block_lease_response.go +++ b/model_ippool_block_lease_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_ippool_ip_lease.go b/model_ippool_ip_lease.go index c5b2c42bf3..c013d31ac9 100644 --- a/model_ippool_ip_lease.go +++ b/model_ippool_ip_lease.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -31,10 +31,10 @@ type IppoolIpLease struct { // Type of the IP address requested. * `IPv4` - IP V4 address type requested. * `IPv6` - IP V6 address type requested. IpType *string `json:"IpType,omitempty"` // IPv4 Address given as a lease to an external entity like server profiles. - IpV4Address *string `json:"IpV4Address,omitempty"` + IpV4Address *string `json:"IpV4Address,omitempty" validate:"regexp=^$|^([1-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\\\.([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\\\.([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\\\.([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])$"` IpV4Config NullableIppoolIpV4Config `json:"IpV4Config,omitempty"` // IPv6 Address given as a lease to an external entity like server profiles. - IpV6Address *string `json:"IpV6Address,omitempty"` + IpV6Address *string `json:"IpV6Address,omitempty" validate:"regexp=^$|^(([0-9A-Fa-f]{1,4}:([0-9A-Fa-f]{1,4}:([0-9A-Fa-f]{1,4}:([0-9A-Fa-f]{1,4}:([0-9A-Fa-f]{1,4}:[0-9A-Fa-f]{0,4}|:[0-9A-Fa-f]{1,4})?|(:[0-9A-Fa-f]{1,4}){0,2})|(:[0-9A-Fa-f]{1,4}){0,3})|(:[0-9A-Fa-f]{1,4}){0,4})|:(:[0-9A-Fa-f]{1,4}){0,5})((:[0-9A-Fa-f]{1,4}){2}|:(25[0-5]|(2[0-4]|1[0-9]|[1-9])?[0-9])(\\\\.(25[0-5]|(2[0-4]|1[0-9]|[1-9])?[0-9])){3})|(([0-9A-Fa-f]{1,4}:){1,6}|:):[0-9A-Fa-f]{0,4}|([0-9A-Fa-f]{1,4}:){7}:)$"` IpV6Config NullableIppoolIpV6Config `json:"IpV6Config,omitempty"` Reservation *IppoolReservationReference `json:"Reservation,omitempty"` AssignedToEntity NullableMoBaseMoRelationship `json:"AssignedToEntity,omitempty"` @@ -103,6 +103,11 @@ func (o *IppoolIpLease) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "ippool.IpLease" of the ClassId field. +func (o *IppoolIpLease) GetDefaultClassId() interface{} { + return "ippool.IpLease" +} + // GetObjectType returns the ObjectType field value func (o *IppoolIpLease) GetObjectType() string { if o == nil { @@ -127,6 +132,11 @@ func (o *IppoolIpLease) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "ippool.IpLease" of the ObjectType field. +func (o *IppoolIpLease) GetDefaultObjectType() interface{} { + return "ippool.IpLease" +} + // GetIpType returns the IpType field value if set, zero value otherwise. func (o *IppoolIpLease) GetIpType() string { if o == nil || IsNil(o.IpType) { @@ -617,7 +627,13 @@ func (o IppoolIpLease) ToMap() (map[string]interface{}, error) { if errPoolAbstractLease != nil { return map[string]interface{}{}, errPoolAbstractLease } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.IpType) { toSerialize["IpType"] = o.IpType @@ -672,6 +688,13 @@ func (o *IppoolIpLease) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -681,11 +704,23 @@ func (o *IppoolIpLease) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type IppoolIpLeaseWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` @@ -694,10 +729,10 @@ func (o *IppoolIpLease) UnmarshalJSON(data []byte) (err error) { // Type of the IP address requested. * `IPv4` - IP V4 address type requested. * `IPv6` - IP V6 address type requested. IpType *string `json:"IpType,omitempty"` // IPv4 Address given as a lease to an external entity like server profiles. - IpV4Address *string `json:"IpV4Address,omitempty"` + IpV4Address *string `json:"IpV4Address,omitempty" validate:"regexp=^$|^([1-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\\\.([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\\\.([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\\\.([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])$"` IpV4Config NullableIppoolIpV4Config `json:"IpV4Config,omitempty"` // IPv6 Address given as a lease to an external entity like server profiles. - IpV6Address *string `json:"IpV6Address,omitempty"` + IpV6Address *string `json:"IpV6Address,omitempty" validate:"regexp=^$|^(([0-9A-Fa-f]{1,4}:([0-9A-Fa-f]{1,4}:([0-9A-Fa-f]{1,4}:([0-9A-Fa-f]{1,4}:([0-9A-Fa-f]{1,4}:[0-9A-Fa-f]{0,4}|:[0-9A-Fa-f]{1,4})?|(:[0-9A-Fa-f]{1,4}){0,2})|(:[0-9A-Fa-f]{1,4}){0,3})|(:[0-9A-Fa-f]{1,4}){0,4})|:(:[0-9A-Fa-f]{1,4}){0,5})((:[0-9A-Fa-f]{1,4}){2}|:(25[0-5]|(2[0-4]|1[0-9]|[1-9])?[0-9])(\\\\.(25[0-5]|(2[0-4]|1[0-9]|[1-9])?[0-9])){3})|(([0-9A-Fa-f]{1,4}:){1,6}|:):[0-9A-Fa-f]{0,4}|([0-9A-Fa-f]{1,4}:){7}:)$"` IpV6Config NullableIppoolIpV6Config `json:"IpV6Config,omitempty"` Reservation *IppoolReservationReference `json:"Reservation,omitempty"` AssignedToEntity NullableMoBaseMoRelationship `json:"AssignedToEntity,omitempty"` diff --git a/model_ippool_ip_lease_list.go b/model_ippool_ip_lease_list.go index 592de81841..36c3021a70 100644 --- a/model_ippool_ip_lease_list.go +++ b/model_ippool_ip_lease_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *IppoolIpLeaseList) GetResultsOk() ([]IppoolIpLease, bool) { // HasResults returns a boolean if a field has been set. func (o *IppoolIpLeaseList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *IppoolIpLeaseList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *IppoolIpLeaseList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type IppoolIpLeaseListWithoutEmbeddedStruct struct { // The total number of 'ippool.IpLease' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_ippool_ip_lease_relationship.go b/model_ippool_ip_lease_relationship.go index ab6ad09b92..c992c31922 100644 --- a/model_ippool_ip_lease_relationship.go +++ b/model_ippool_ip_lease_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_ippool_ip_lease_response.go b/model_ippool_ip_lease_response.go index f09444f7a5..75d34477bc 100644 --- a/model_ippool_ip_lease_response.go +++ b/model_ippool_ip_lease_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_ippool_ip_v4_block.go b/model_ippool_ip_v4_block.go index e64b0dd54c..cf83381669 100644 --- a/model_ippool_ip_v4_block.go +++ b/model_ippool_ip_v4_block.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -29,10 +29,10 @@ type IppoolIpV4Block struct { // The fully-qualified name of the instantiated, concrete type. The value should be the same as the 'ClassId' property. ObjectType string `json:"ObjectType"` // First IPv4 address of the block. - From *string `json:"From,omitempty"` + From *string `json:"From,omitempty" validate:"regexp=^$|^([1-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\\\.([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\\\.([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\\\.([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])$"` IpV4Config NullableIppoolIpV4Config `json:"IpV4Config,omitempty"` // Last IPv4 address of the block. - To *string `json:"To,omitempty"` + To *string `json:"To,omitempty" validate:"regexp=^$|^([1-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\\\.([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\\\.([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\\\.([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])$"` AdditionalProperties map[string]interface{} } @@ -85,6 +85,11 @@ func (o *IppoolIpV4Block) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "ippool.IpV4Block" of the ClassId field. +func (o *IppoolIpV4Block) GetDefaultClassId() interface{} { + return "ippool.IpV4Block" +} + // GetObjectType returns the ObjectType field value func (o *IppoolIpV4Block) GetObjectType() string { if o == nil { @@ -109,6 +114,11 @@ func (o *IppoolIpV4Block) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "ippool.IpV4Block" of the ObjectType field. +func (o *IppoolIpV4Block) GetDefaultObjectType() interface{} { + return "ippool.IpV4Block" +} + // GetFrom returns the From field value if set, zero value otherwise. func (o *IppoolIpV4Block) GetFrom() string { if o == nil || IsNil(o.From) { @@ -234,7 +244,13 @@ func (o IppoolIpV4Block) ToMap() (map[string]interface{}, error) { if errPoolAbstractBlockType != nil { return map[string]interface{}{}, errPoolAbstractBlockType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.From) { toSerialize["From"] = o.From @@ -262,6 +278,13 @@ func (o *IppoolIpV4Block) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -271,21 +294,33 @@ func (o *IppoolIpV4Block) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type IppoolIpV4BlockWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` // The fully-qualified name of the instantiated, concrete type. The value should be the same as the 'ClassId' property. ObjectType string `json:"ObjectType"` // First IPv4 address of the block. - From *string `json:"From,omitempty"` + From *string `json:"From,omitempty" validate:"regexp=^$|^([1-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\\\.([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\\\.([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\\\.([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])$"` IpV4Config NullableIppoolIpV4Config `json:"IpV4Config,omitempty"` // Last IPv4 address of the block. - To *string `json:"To,omitempty"` + To *string `json:"To,omitempty" validate:"regexp=^$|^([1-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\\\.([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\\\.([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\\\.([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])$"` } varIppoolIpV4BlockWithoutEmbeddedStruct := IppoolIpV4BlockWithoutEmbeddedStruct{} diff --git a/model_ippool_ip_v4_config.go b/model_ippool_ip_v4_config.go index 7b22538ce8..685ad26ea6 100644 --- a/model_ippool_ip_v4_config.go +++ b/model_ippool_ip_v4_config.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -29,13 +29,13 @@ type IppoolIpV4Config struct { // The fully-qualified name of the instantiated, concrete type. The value should be the same as the 'ClassId' property. ObjectType string `json:"ObjectType"` // IP address of the default IPv4 gateway. - Gateway *string `json:"Gateway,omitempty"` + Gateway *string `json:"Gateway,omitempty" validate:"regexp=^$|^([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\\\.([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\\\.([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\\\.([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])$"` // A subnet mask is a 32-bit number that masks an IP address and divides the IP address into network address and host address. - Netmask *string `json:"Netmask,omitempty"` + Netmask *string `json:"Netmask,omitempty" validate:"regexp=^$|^(((255\\\\.){3}(255|254|252|248|240|224|192|128|0+))|((255\\\\.){2}(255|254|252|248|240|224|192|128|0+)\\\\.0)|((255\\\\.)(255|254|252|248|240|224|192|128|0+)(\\\\.0+){2})|((255|254|252|248|240|224|192|128|0+)(\\\\.0+){3}))$"` // IP Address of the primary Domain Name System (DNS) server. - PrimaryDns *string `json:"PrimaryDns,omitempty"` + PrimaryDns *string `json:"PrimaryDns,omitempty" validate:"regexp=^$|^([1-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\\\.([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\\\.([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\\\.([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])$"` // IP Address of the secondary Domain Name System (DNS) server. - SecondaryDns *string `json:"SecondaryDns,omitempty"` + SecondaryDns *string `json:"SecondaryDns,omitempty" validate:"regexp=^$|^([1-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\\\.([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\\\.([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\\\.([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])$"` AdditionalProperties map[string]interface{} } @@ -88,6 +88,11 @@ func (o *IppoolIpV4Config) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "ippool.IpV4Config" of the ClassId field. +func (o *IppoolIpV4Config) GetDefaultClassId() interface{} { + return "ippool.IpV4Config" +} + // GetObjectType returns the ObjectType field value func (o *IppoolIpV4Config) GetObjectType() string { if o == nil { @@ -112,6 +117,11 @@ func (o *IppoolIpV4Config) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "ippool.IpV4Config" of the ObjectType field. +func (o *IppoolIpV4Config) GetDefaultObjectType() interface{} { + return "ippool.IpV4Config" +} + // GetGateway returns the Gateway field value if set, zero value otherwise. func (o *IppoolIpV4Config) GetGateway() string { if o == nil || IsNil(o.Gateway) { @@ -258,7 +268,13 @@ func (o IppoolIpV4Config) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Gateway) { toSerialize["Gateway"] = o.Gateway @@ -289,6 +305,13 @@ func (o *IppoolIpV4Config) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -298,24 +321,36 @@ func (o *IppoolIpV4Config) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type IppoolIpV4ConfigWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` // The fully-qualified name of the instantiated, concrete type. The value should be the same as the 'ClassId' property. ObjectType string `json:"ObjectType"` // IP address of the default IPv4 gateway. - Gateway *string `json:"Gateway,omitempty"` + Gateway *string `json:"Gateway,omitempty" validate:"regexp=^$|^([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\\\.([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\\\.([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\\\.([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])$"` // A subnet mask is a 32-bit number that masks an IP address and divides the IP address into network address and host address. - Netmask *string `json:"Netmask,omitempty"` + Netmask *string `json:"Netmask,omitempty" validate:"regexp=^$|^(((255\\\\.){3}(255|254|252|248|240|224|192|128|0+))|((255\\\\.){2}(255|254|252|248|240|224|192|128|0+)\\\\.0)|((255\\\\.)(255|254|252|248|240|224|192|128|0+)(\\\\.0+){2})|((255|254|252|248|240|224|192|128|0+)(\\\\.0+){3}))$"` // IP Address of the primary Domain Name System (DNS) server. - PrimaryDns *string `json:"PrimaryDns,omitempty"` + PrimaryDns *string `json:"PrimaryDns,omitempty" validate:"regexp=^$|^([1-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\\\.([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\\\.([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\\\.([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])$"` // IP Address of the secondary Domain Name System (DNS) server. - SecondaryDns *string `json:"SecondaryDns,omitempty"` + SecondaryDns *string `json:"SecondaryDns,omitempty" validate:"regexp=^$|^([1-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\\\.([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\\\.([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\\\.([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])$"` } varIppoolIpV4ConfigWithoutEmbeddedStruct := IppoolIpV4ConfigWithoutEmbeddedStruct{} diff --git a/model_ippool_ip_v6_block.go b/model_ippool_ip_v6_block.go index dddcbedfd3..48c1568329 100644 --- a/model_ippool_ip_v6_block.go +++ b/model_ippool_ip_v6_block.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -29,10 +29,10 @@ type IppoolIpV6Block struct { // The fully-qualified name of the instantiated, concrete type. The value should be the same as the 'ClassId' property. ObjectType string `json:"ObjectType"` // First IPv6 address of the block. - From *string `json:"From,omitempty"` + From *string `json:"From,omitempty" validate:"regexp=^$|^(([0-9A-Fa-f]{1,4}:([0-9A-Fa-f]{1,4}:([0-9A-Fa-f]{1,4}:([0-9A-Fa-f]{1,4}:([0-9A-Fa-f]{1,4}:[0-9A-Fa-f]{0,4}|:[0-9A-Fa-f]{1,4})?|(:[0-9A-Fa-f]{1,4}){0,2})|(:[0-9A-Fa-f]{1,4}){0,3})|(:[0-9A-Fa-f]{1,4}){0,4})|:(:[0-9A-Fa-f]{1,4}){0,5})((:[0-9A-Fa-f]{1,4}){2}|:(25[0-5]|(2[0-4]|1[0-9]|[1-9])?[0-9])(\\\\.(25[0-5]|(2[0-4]|1[0-9]|[1-9])?[0-9])){3})|(([0-9A-Fa-f]{1,4}:){1,6}|:):[0-9A-Fa-f]{0,4}|([0-9A-Fa-f]{1,4}:){7}:)$"` IpV6Config NullableIppoolIpV6Config `json:"IpV6Config,omitempty"` // Last IPv6 address of the block. - To *string `json:"To,omitempty"` + To *string `json:"To,omitempty" validate:"regexp=^$|^(([0-9A-Fa-f]{1,4}:([0-9A-Fa-f]{1,4}:([0-9A-Fa-f]{1,4}:([0-9A-Fa-f]{1,4}:([0-9A-Fa-f]{1,4}:[0-9A-Fa-f]{0,4}|:[0-9A-Fa-f]{1,4})?|(:[0-9A-Fa-f]{1,4}){0,2})|(:[0-9A-Fa-f]{1,4}){0,3})|(:[0-9A-Fa-f]{1,4}){0,4})|:(:[0-9A-Fa-f]{1,4}){0,5})((:[0-9A-Fa-f]{1,4}){2}|:(25[0-5]|(2[0-4]|1[0-9]|[1-9])?[0-9])(\\\\.(25[0-5]|(2[0-4]|1[0-9]|[1-9])?[0-9])){3})|(([0-9A-Fa-f]{1,4}:){1,6}|:):[0-9A-Fa-f]{0,4}|([0-9A-Fa-f]{1,4}:){7}:)$"` AdditionalProperties map[string]interface{} } @@ -85,6 +85,11 @@ func (o *IppoolIpV6Block) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "ippool.IpV6Block" of the ClassId field. +func (o *IppoolIpV6Block) GetDefaultClassId() interface{} { + return "ippool.IpV6Block" +} + // GetObjectType returns the ObjectType field value func (o *IppoolIpV6Block) GetObjectType() string { if o == nil { @@ -109,6 +114,11 @@ func (o *IppoolIpV6Block) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "ippool.IpV6Block" of the ObjectType field. +func (o *IppoolIpV6Block) GetDefaultObjectType() interface{} { + return "ippool.IpV6Block" +} + // GetFrom returns the From field value if set, zero value otherwise. func (o *IppoolIpV6Block) GetFrom() string { if o == nil || IsNil(o.From) { @@ -234,7 +244,13 @@ func (o IppoolIpV6Block) ToMap() (map[string]interface{}, error) { if errPoolAbstractBlockType != nil { return map[string]interface{}{}, errPoolAbstractBlockType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.From) { toSerialize["From"] = o.From @@ -262,6 +278,13 @@ func (o *IppoolIpV6Block) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -271,21 +294,33 @@ func (o *IppoolIpV6Block) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type IppoolIpV6BlockWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` // The fully-qualified name of the instantiated, concrete type. The value should be the same as the 'ClassId' property. ObjectType string `json:"ObjectType"` // First IPv6 address of the block. - From *string `json:"From,omitempty"` + From *string `json:"From,omitempty" validate:"regexp=^$|^(([0-9A-Fa-f]{1,4}:([0-9A-Fa-f]{1,4}:([0-9A-Fa-f]{1,4}:([0-9A-Fa-f]{1,4}:([0-9A-Fa-f]{1,4}:[0-9A-Fa-f]{0,4}|:[0-9A-Fa-f]{1,4})?|(:[0-9A-Fa-f]{1,4}){0,2})|(:[0-9A-Fa-f]{1,4}){0,3})|(:[0-9A-Fa-f]{1,4}){0,4})|:(:[0-9A-Fa-f]{1,4}){0,5})((:[0-9A-Fa-f]{1,4}){2}|:(25[0-5]|(2[0-4]|1[0-9]|[1-9])?[0-9])(\\\\.(25[0-5]|(2[0-4]|1[0-9]|[1-9])?[0-9])){3})|(([0-9A-Fa-f]{1,4}:){1,6}|:):[0-9A-Fa-f]{0,4}|([0-9A-Fa-f]{1,4}:){7}:)$"` IpV6Config NullableIppoolIpV6Config `json:"IpV6Config,omitempty"` // Last IPv6 address of the block. - To *string `json:"To,omitempty"` + To *string `json:"To,omitempty" validate:"regexp=^$|^(([0-9A-Fa-f]{1,4}:([0-9A-Fa-f]{1,4}:([0-9A-Fa-f]{1,4}:([0-9A-Fa-f]{1,4}:([0-9A-Fa-f]{1,4}:[0-9A-Fa-f]{0,4}|:[0-9A-Fa-f]{1,4})?|(:[0-9A-Fa-f]{1,4}){0,2})|(:[0-9A-Fa-f]{1,4}){0,3})|(:[0-9A-Fa-f]{1,4}){0,4})|:(:[0-9A-Fa-f]{1,4}){0,5})((:[0-9A-Fa-f]{1,4}){2}|:(25[0-5]|(2[0-4]|1[0-9]|[1-9])?[0-9])(\\\\.(25[0-5]|(2[0-4]|1[0-9]|[1-9])?[0-9])){3})|(([0-9A-Fa-f]{1,4}:){1,6}|:):[0-9A-Fa-f]{0,4}|([0-9A-Fa-f]{1,4}:){7}:)$"` } varIppoolIpV6BlockWithoutEmbeddedStruct := IppoolIpV6BlockWithoutEmbeddedStruct{} diff --git a/model_ippool_ip_v6_config.go b/model_ippool_ip_v6_config.go index eb6c74495b..ff04766a54 100644 --- a/model_ippool_ip_v6_config.go +++ b/model_ippool_ip_v6_config.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -29,13 +29,13 @@ type IppoolIpV6Config struct { // The fully-qualified name of the instantiated, concrete type. The value should be the same as the 'ClassId' property. ObjectType string `json:"ObjectType"` // IP address of the default IPv6 gateway. - Gateway *string `json:"Gateway,omitempty"` + Gateway *string `json:"Gateway,omitempty" validate:"regexp=^$|^(([0-9A-Fa-f]{1,4}:([0-9A-Fa-f]{1,4}:([0-9A-Fa-f]{1,4}:([0-9A-Fa-f]{1,4}:([0-9A-Fa-f]{1,4}:[0-9A-Fa-f]{0,4}|:[0-9A-Fa-f]{1,4})?|(:[0-9A-Fa-f]{1,4}){0,2})|(:[0-9A-Fa-f]{1,4}){0,3})|(:[0-9A-Fa-f]{1,4}){0,4})|:(:[0-9A-Fa-f]{1,4}){0,5})((:[0-9A-Fa-f]{1,4}){2}|:(25[0-5]|(2[0-4]|1[0-9]|[1-9])?[0-9])(\\\\.(25[0-5]|(2[0-4]|1[0-9]|[1-9])?[0-9])){3})|(([0-9A-Fa-f]{1,4}:){1,6}|:):[0-9A-Fa-f]{0,4}|([0-9A-Fa-f]{1,4}:){7}:)$"` // A prefix length which masks the IP address and divides the IP address into network address and host address. Prefix *int64 `json:"Prefix,omitempty"` // IP Address of the primary Domain Name System (DNS) server. - PrimaryDns *string `json:"PrimaryDns,omitempty"` + PrimaryDns *string `json:"PrimaryDns,omitempty" validate:"regexp=^$|^(([0-9A-Fa-f]{1,4}:([0-9A-Fa-f]{1,4}:([0-9A-Fa-f]{1,4}:([0-9A-Fa-f]{1,4}:([0-9A-Fa-f]{1,4}:[0-9A-Fa-f]{0,4}|:[0-9A-Fa-f]{1,4})?|(:[0-9A-Fa-f]{1,4}){0,2})|(:[0-9A-Fa-f]{1,4}){0,3})|(:[0-9A-Fa-f]{1,4}){0,4})|:(:[0-9A-Fa-f]{1,4}){0,5})((:[0-9A-Fa-f]{1,4}){2}|:(25[0-5]|(2[0-4]|1[0-9]|[1-9])?[0-9])(\\\\.(25[0-5]|(2[0-4]|1[0-9]|[1-9])?[0-9])){3})|(([0-9A-Fa-f]{1,4}:){1,6}|:):[0-9A-Fa-f]{0,4}|([0-9A-Fa-f]{1,4}:){7}:)$"` // IP Address of the secondary Domain Name System (DNS) server. - SecondaryDns *string `json:"SecondaryDns,omitempty"` + SecondaryDns *string `json:"SecondaryDns,omitempty" validate:"regexp=^$|^(([0-9A-Fa-f]{1,4}:([0-9A-Fa-f]{1,4}:([0-9A-Fa-f]{1,4}:([0-9A-Fa-f]{1,4}:([0-9A-Fa-f]{1,4}:[0-9A-Fa-f]{0,4}|:[0-9A-Fa-f]{1,4})?|(:[0-9A-Fa-f]{1,4}){0,2})|(:[0-9A-Fa-f]{1,4}){0,3})|(:[0-9A-Fa-f]{1,4}){0,4})|:(:[0-9A-Fa-f]{1,4}){0,5})((:[0-9A-Fa-f]{1,4}){2}|:(25[0-5]|(2[0-4]|1[0-9]|[1-9])?[0-9])(\\\\.(25[0-5]|(2[0-4]|1[0-9]|[1-9])?[0-9])){3})|(([0-9A-Fa-f]{1,4}:){1,6}|:):[0-9A-Fa-f]{0,4}|([0-9A-Fa-f]{1,4}:){7}:)$"` AdditionalProperties map[string]interface{} } @@ -88,6 +88,11 @@ func (o *IppoolIpV6Config) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "ippool.IpV6Config" of the ClassId field. +func (o *IppoolIpV6Config) GetDefaultClassId() interface{} { + return "ippool.IpV6Config" +} + // GetObjectType returns the ObjectType field value func (o *IppoolIpV6Config) GetObjectType() string { if o == nil { @@ -112,6 +117,11 @@ func (o *IppoolIpV6Config) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "ippool.IpV6Config" of the ObjectType field. +func (o *IppoolIpV6Config) GetDefaultObjectType() interface{} { + return "ippool.IpV6Config" +} + // GetGateway returns the Gateway field value if set, zero value otherwise. func (o *IppoolIpV6Config) GetGateway() string { if o == nil || IsNil(o.Gateway) { @@ -258,7 +268,13 @@ func (o IppoolIpV6Config) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Gateway) { toSerialize["Gateway"] = o.Gateway @@ -289,6 +305,13 @@ func (o *IppoolIpV6Config) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -298,24 +321,36 @@ func (o *IppoolIpV6Config) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type IppoolIpV6ConfigWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` // The fully-qualified name of the instantiated, concrete type. The value should be the same as the 'ClassId' property. ObjectType string `json:"ObjectType"` // IP address of the default IPv6 gateway. - Gateway *string `json:"Gateway,omitempty"` + Gateway *string `json:"Gateway,omitempty" validate:"regexp=^$|^(([0-9A-Fa-f]{1,4}:([0-9A-Fa-f]{1,4}:([0-9A-Fa-f]{1,4}:([0-9A-Fa-f]{1,4}:([0-9A-Fa-f]{1,4}:[0-9A-Fa-f]{0,4}|:[0-9A-Fa-f]{1,4})?|(:[0-9A-Fa-f]{1,4}){0,2})|(:[0-9A-Fa-f]{1,4}){0,3})|(:[0-9A-Fa-f]{1,4}){0,4})|:(:[0-9A-Fa-f]{1,4}){0,5})((:[0-9A-Fa-f]{1,4}){2}|:(25[0-5]|(2[0-4]|1[0-9]|[1-9])?[0-9])(\\\\.(25[0-5]|(2[0-4]|1[0-9]|[1-9])?[0-9])){3})|(([0-9A-Fa-f]{1,4}:){1,6}|:):[0-9A-Fa-f]{0,4}|([0-9A-Fa-f]{1,4}:){7}:)$"` // A prefix length which masks the IP address and divides the IP address into network address and host address. Prefix *int64 `json:"Prefix,omitempty"` // IP Address of the primary Domain Name System (DNS) server. - PrimaryDns *string `json:"PrimaryDns,omitempty"` + PrimaryDns *string `json:"PrimaryDns,omitempty" validate:"regexp=^$|^(([0-9A-Fa-f]{1,4}:([0-9A-Fa-f]{1,4}:([0-9A-Fa-f]{1,4}:([0-9A-Fa-f]{1,4}:([0-9A-Fa-f]{1,4}:[0-9A-Fa-f]{0,4}|:[0-9A-Fa-f]{1,4})?|(:[0-9A-Fa-f]{1,4}){0,2})|(:[0-9A-Fa-f]{1,4}){0,3})|(:[0-9A-Fa-f]{1,4}){0,4})|:(:[0-9A-Fa-f]{1,4}){0,5})((:[0-9A-Fa-f]{1,4}){2}|:(25[0-5]|(2[0-4]|1[0-9]|[1-9])?[0-9])(\\\\.(25[0-5]|(2[0-4]|1[0-9]|[1-9])?[0-9])){3})|(([0-9A-Fa-f]{1,4}:){1,6}|:):[0-9A-Fa-f]{0,4}|([0-9A-Fa-f]{1,4}:){7}:)$"` // IP Address of the secondary Domain Name System (DNS) server. - SecondaryDns *string `json:"SecondaryDns,omitempty"` + SecondaryDns *string `json:"SecondaryDns,omitempty" validate:"regexp=^$|^(([0-9A-Fa-f]{1,4}:([0-9A-Fa-f]{1,4}:([0-9A-Fa-f]{1,4}:([0-9A-Fa-f]{1,4}:([0-9A-Fa-f]{1,4}:[0-9A-Fa-f]{0,4}|:[0-9A-Fa-f]{1,4})?|(:[0-9A-Fa-f]{1,4}){0,2})|(:[0-9A-Fa-f]{1,4}){0,3})|(:[0-9A-Fa-f]{1,4}){0,4})|:(:[0-9A-Fa-f]{1,4}){0,5})((:[0-9A-Fa-f]{1,4}){2}|:(25[0-5]|(2[0-4]|1[0-9]|[1-9])?[0-9])(\\\\.(25[0-5]|(2[0-4]|1[0-9]|[1-9])?[0-9])){3})|(([0-9A-Fa-f]{1,4}:){1,6}|:):[0-9A-Fa-f]{0,4}|([0-9A-Fa-f]{1,4}:){7}:)$"` } varIppoolIpV6ConfigWithoutEmbeddedStruct := IppoolIpV6ConfigWithoutEmbeddedStruct{} diff --git a/model_ippool_pool.go b/model_ippool_pool.go index b64cc7d702..468a934b8c 100644 --- a/model_ippool_pool.go +++ b/model_ippool_pool.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -101,6 +101,11 @@ func (o *IppoolPool) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "ippool.Pool" of the ClassId field. +func (o *IppoolPool) GetDefaultClassId() interface{} { + return "ippool.Pool" +} + // GetObjectType returns the ObjectType field value func (o *IppoolPool) GetObjectType() string { if o == nil { @@ -125,6 +130,11 @@ func (o *IppoolPool) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "ippool.Pool" of the ObjectType field. +func (o *IppoolPool) GetDefaultObjectType() interface{} { + return "ippool.Pool" +} + // GetEnableBlockLevelSubnetConfig returns the EnableBlockLevelSubnetConfig field value if set, zero value otherwise. func (o *IppoolPool) GetEnableBlockLevelSubnetConfig() bool { if o == nil || IsNil(o.EnableBlockLevelSubnetConfig) { @@ -178,7 +188,7 @@ func (o *IppoolPool) GetIpV4BlocksOk() ([]IppoolIpV4Block, bool) { // HasIpV4Blocks returns a boolean if a field has been set. func (o *IppoolPool) HasIpV4Blocks() bool { - if o != nil && IsNil(o.IpV4Blocks) { + if o != nil && !IsNil(o.IpV4Blocks) { return true } @@ -254,7 +264,7 @@ func (o *IppoolPool) GetIpV6BlocksOk() ([]IppoolIpV6Block, bool) { // HasIpV6Blocks returns a boolean if a field has been set. func (o *IppoolPool) HasIpV6Blocks() bool { - if o != nil && IsNil(o.IpV6Blocks) { + if o != nil && !IsNil(o.IpV6Blocks) { return true } @@ -501,7 +511,7 @@ func (o *IppoolPool) GetReservationsOk() ([]IppoolReservationRelationship, bool) // HasReservations returns a boolean if a field has been set. func (o *IppoolPool) HasReservations() bool { - if o != nil && IsNil(o.Reservations) { + if o != nil && !IsNil(o.Reservations) { return true } @@ -534,7 +544,7 @@ func (o *IppoolPool) GetShadowPoolsOk() ([]IppoolShadowPoolRelationship, bool) { // HasShadowPools returns a boolean if a field has been set. func (o *IppoolPool) HasShadowPools() bool { - if o != nil && IsNil(o.ShadowPools) { + if o != nil && !IsNil(o.ShadowPools) { return true } @@ -564,7 +574,13 @@ func (o IppoolPool) ToMap() (map[string]interface{}, error) { if errPoolAbstractPool != nil { return map[string]interface{}{}, errPoolAbstractPool } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.EnableBlockLevelSubnetConfig) { toSerialize["EnableBlockLevelSubnetConfig"] = o.EnableBlockLevelSubnetConfig @@ -619,6 +635,13 @@ func (o *IppoolPool) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -628,11 +651,23 @@ func (o *IppoolPool) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type IppoolPoolWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_ippool_pool_list.go b/model_ippool_pool_list.go index 0a21a8a147..c2203293b4 100644 --- a/model_ippool_pool_list.go +++ b/model_ippool_pool_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *IppoolPoolList) GetResultsOk() ([]IppoolPool, bool) { // HasResults returns a boolean if a field has been set. func (o *IppoolPoolList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *IppoolPoolList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *IppoolPoolList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type IppoolPoolListWithoutEmbeddedStruct struct { // The total number of 'ippool.Pool' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_ippool_pool_member.go b/model_ippool_pool_member.go index f5ad05bb69..7191e74eee 100644 --- a/model_ippool_pool_member.go +++ b/model_ippool_pool_member.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -31,9 +31,9 @@ type IppoolPoolMember struct { // Type of the IP address requested. * `IPv4` - IP V4 address type requested. * `IPv6` - IP V6 address type requested. IpType *string `json:"IpType,omitempty"` // IPv4 Address of this pool member. - IpV4Address *string `json:"IpV4Address,omitempty"` + IpV4Address *string `json:"IpV4Address,omitempty" validate:"regexp=^$|^([1-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\\\.([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\\\.([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\\\.([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])$"` // IPv6 Address of this pool member. - IpV6Address *string `json:"IpV6Address,omitempty"` + IpV6Address *string `json:"IpV6Address,omitempty" validate:"regexp=^$|^(([0-9A-Fa-f]{1,4}:([0-9A-Fa-f]{1,4}:([0-9A-Fa-f]{1,4}:([0-9A-Fa-f]{1,4}:([0-9A-Fa-f]{1,4}:[0-9A-Fa-f]{0,4}|:[0-9A-Fa-f]{1,4})?|(:[0-9A-Fa-f]{1,4}){0,2})|(:[0-9A-Fa-f]{1,4}){0,3})|(:[0-9A-Fa-f]{1,4}){0,4})|:(:[0-9A-Fa-f]{1,4}){0,5})((:[0-9A-Fa-f]{1,4}){2}|:(25[0-5]|(2[0-4]|1[0-9]|[1-9])?[0-9])(\\\\.(25[0-5]|(2[0-4]|1[0-9]|[1-9])?[0-9])){3})|(([0-9A-Fa-f]{1,4}:){1,6}|:):[0-9A-Fa-f]{0,4}|([0-9A-Fa-f]{1,4}:){7}:)$"` AssignedToEntity NullableMoBaseMoRelationship `json:"AssignedToEntity,omitempty"` IpBlock NullableIppoolShadowBlockRelationship `json:"IpBlock,omitempty"` Peer NullableIppoolIpLeaseRelationship `json:"Peer,omitempty"` @@ -97,6 +97,11 @@ func (o *IppoolPoolMember) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "ippool.PoolMember" of the ClassId field. +func (o *IppoolPoolMember) GetDefaultClassId() interface{} { + return "ippool.PoolMember" +} + // GetObjectType returns the ObjectType field value func (o *IppoolPoolMember) GetObjectType() string { if o == nil { @@ -121,6 +126,11 @@ func (o *IppoolPoolMember) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "ippool.PoolMember" of the ObjectType field. +func (o *IppoolPoolMember) GetDefaultObjectType() interface{} { + return "ippool.PoolMember" +} + // GetIpType returns the IpType field value if set, zero value otherwise. func (o *IppoolPoolMember) GetIpType() string { if o == nil || IsNil(o.IpType) { @@ -450,7 +460,13 @@ func (o IppoolPoolMember) ToMap() (map[string]interface{}, error) { if errPoolAbstractIdPoolMember != nil { return map[string]interface{}{}, errPoolAbstractIdPoolMember } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.IpType) { toSerialize["IpType"] = o.IpType @@ -493,6 +509,13 @@ func (o *IppoolPoolMember) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -502,11 +525,23 @@ func (o *IppoolPoolMember) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type IppoolPoolMemberWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` @@ -515,9 +550,9 @@ func (o *IppoolPoolMember) UnmarshalJSON(data []byte) (err error) { // Type of the IP address requested. * `IPv4` - IP V4 address type requested. * `IPv6` - IP V6 address type requested. IpType *string `json:"IpType,omitempty"` // IPv4 Address of this pool member. - IpV4Address *string `json:"IpV4Address,omitempty"` + IpV4Address *string `json:"IpV4Address,omitempty" validate:"regexp=^$|^([1-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\\\.([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\\\.([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\\\.([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])$"` // IPv6 Address of this pool member. - IpV6Address *string `json:"IpV6Address,omitempty"` + IpV6Address *string `json:"IpV6Address,omitempty" validate:"regexp=^$|^(([0-9A-Fa-f]{1,4}:([0-9A-Fa-f]{1,4}:([0-9A-Fa-f]{1,4}:([0-9A-Fa-f]{1,4}:([0-9A-Fa-f]{1,4}:[0-9A-Fa-f]{0,4}|:[0-9A-Fa-f]{1,4})?|(:[0-9A-Fa-f]{1,4}){0,2})|(:[0-9A-Fa-f]{1,4}){0,3})|(:[0-9A-Fa-f]{1,4}){0,4})|:(:[0-9A-Fa-f]{1,4}){0,5})((:[0-9A-Fa-f]{1,4}){2}|:(25[0-5]|(2[0-4]|1[0-9]|[1-9])?[0-9])(\\\\.(25[0-5]|(2[0-4]|1[0-9]|[1-9])?[0-9])){3})|(([0-9A-Fa-f]{1,4}:){1,6}|:):[0-9A-Fa-f]{0,4}|([0-9A-Fa-f]{1,4}:){7}:)$"` AssignedToEntity NullableMoBaseMoRelationship `json:"AssignedToEntity,omitempty"` IpBlock NullableIppoolShadowBlockRelationship `json:"IpBlock,omitempty"` Peer NullableIppoolIpLeaseRelationship `json:"Peer,omitempty"` diff --git a/model_ippool_pool_member_list.go b/model_ippool_pool_member_list.go index 349d543911..c85ff7ed6f 100644 --- a/model_ippool_pool_member_list.go +++ b/model_ippool_pool_member_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *IppoolPoolMemberList) GetResultsOk() ([]IppoolPoolMember, bool) { // HasResults returns a boolean if a field has been set. func (o *IppoolPoolMemberList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *IppoolPoolMemberList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *IppoolPoolMemberList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type IppoolPoolMemberListWithoutEmbeddedStruct struct { // The total number of 'ippool.PoolMember' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_ippool_pool_member_relationship.go b/model_ippool_pool_member_relationship.go index c9b8657dea..c74ffb836b 100644 --- a/model_ippool_pool_member_relationship.go +++ b/model_ippool_pool_member_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_ippool_pool_member_response.go b/model_ippool_pool_member_response.go index 06659b0d4b..06ae2d7917 100644 --- a/model_ippool_pool_member_response.go +++ b/model_ippool_pool_member_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_ippool_pool_relationship.go b/model_ippool_pool_relationship.go index ec91fae39f..37030722a5 100644 --- a/model_ippool_pool_relationship.go +++ b/model_ippool_pool_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_ippool_pool_response.go b/model_ippool_pool_response.go index b7e5b0979e..168fe980ef 100644 --- a/model_ippool_pool_response.go +++ b/model_ippool_pool_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_ippool_reservation.go b/model_ippool_reservation.go index 2335946345..186fedde9c 100644 --- a/model_ippool_reservation.go +++ b/model_ippool_reservation.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -33,9 +33,9 @@ type IppoolReservation struct { // Type of the IP address that needs to be reserved. * `IPv4` - IP V4 address type requested. * `IPv6` - IP V6 address type requested. IpType *string `json:"IpType,omitempty"` // IPv4 Address to be reserved. - IpV4Address *string `json:"IpV4Address,omitempty"` + IpV4Address *string `json:"IpV4Address,omitempty" validate:"regexp=^$|^([1-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\\\.([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\\\.([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\\\.([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])$"` // IPv6 Address to be reserved. - IpV6Address *string `json:"IpV6Address,omitempty"` + IpV6Address *string `json:"IpV6Address,omitempty" validate:"regexp=^$|^(([0-9A-Fa-f]{1,4}:([0-9A-Fa-f]{1,4}:([0-9A-Fa-f]{1,4}:([0-9A-Fa-f]{1,4}:([0-9A-Fa-f]{1,4}:[0-9A-Fa-f]{0,4}|:[0-9A-Fa-f]{1,4})?|(:[0-9A-Fa-f]{1,4}){0,2})|(:[0-9A-Fa-f]{1,4}){0,3})|(:[0-9A-Fa-f]{1,4}){0,4})|:(:[0-9A-Fa-f]{1,4}){0,5})((:[0-9A-Fa-f]{1,4}){2}|:(25[0-5]|(2[0-4]|1[0-9]|[1-9])?[0-9])(\\\\.(25[0-5]|(2[0-4]|1[0-9]|[1-9])?[0-9])){3})|(([0-9A-Fa-f]{1,4}:){1,6}|:):[0-9A-Fa-f]{0,4}|([0-9A-Fa-f]{1,4}:){7}:)$"` // The moid of the Virtual Routing and Forwarding MO. VrfMoid *string `json:"VrfMoid,omitempty"` BlockHead NullableIppoolShadowBlockRelationship `json:"BlockHead,omitempty"` @@ -103,6 +103,11 @@ func (o *IppoolReservation) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "ippool.Reservation" of the ClassId field. +func (o *IppoolReservation) GetDefaultClassId() interface{} { + return "ippool.Reservation" +} + // GetObjectType returns the ObjectType field value func (o *IppoolReservation) GetObjectType() string { if o == nil { @@ -127,6 +132,11 @@ func (o *IppoolReservation) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "ippool.Reservation" of the ObjectType field. +func (o *IppoolReservation) GetDefaultObjectType() interface{} { + return "ippool.Reservation" +} + // GetIdentity returns the Identity field value if set, zero value otherwise. func (o *IppoolReservation) GetIdentity() string { if o == nil || IsNil(o.Identity) { @@ -606,7 +616,13 @@ func (o IppoolReservation) ToMap() (map[string]interface{}, error) { if errPoolReservation != nil { return map[string]interface{}{}, errPoolReservation } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Identity) { toSerialize["Identity"] = o.Identity @@ -661,6 +677,13 @@ func (o *IppoolReservation) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -670,11 +693,23 @@ func (o *IppoolReservation) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type IppoolReservationWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` @@ -685,9 +720,9 @@ func (o *IppoolReservation) UnmarshalJSON(data []byte) (err error) { // Type of the IP address that needs to be reserved. * `IPv4` - IP V4 address type requested. * `IPv6` - IP V6 address type requested. IpType *string `json:"IpType,omitempty"` // IPv4 Address to be reserved. - IpV4Address *string `json:"IpV4Address,omitempty"` + IpV4Address *string `json:"IpV4Address,omitempty" validate:"regexp=^$|^([1-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\\\.([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\\\.([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\\\.([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])$"` // IPv6 Address to be reserved. - IpV6Address *string `json:"IpV6Address,omitempty"` + IpV6Address *string `json:"IpV6Address,omitempty" validate:"regexp=^$|^(([0-9A-Fa-f]{1,4}:([0-9A-Fa-f]{1,4}:([0-9A-Fa-f]{1,4}:([0-9A-Fa-f]{1,4}:([0-9A-Fa-f]{1,4}:[0-9A-Fa-f]{0,4}|:[0-9A-Fa-f]{1,4})?|(:[0-9A-Fa-f]{1,4}){0,2})|(:[0-9A-Fa-f]{1,4}){0,3})|(:[0-9A-Fa-f]{1,4}){0,4})|:(:[0-9A-Fa-f]{1,4}){0,5})((:[0-9A-Fa-f]{1,4}){2}|:(25[0-5]|(2[0-4]|1[0-9]|[1-9])?[0-9])(\\\\.(25[0-5]|(2[0-4]|1[0-9]|[1-9])?[0-9])){3})|(([0-9A-Fa-f]{1,4}:){1,6}|:):[0-9A-Fa-f]{0,4}|([0-9A-Fa-f]{1,4}:){7}:)$"` // The moid of the Virtual Routing and Forwarding MO. VrfMoid *string `json:"VrfMoid,omitempty"` BlockHead NullableIppoolShadowBlockRelationship `json:"BlockHead,omitempty"` diff --git a/model_ippool_reservation_list.go b/model_ippool_reservation_list.go index 938babb139..8cf8559859 100644 --- a/model_ippool_reservation_list.go +++ b/model_ippool_reservation_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *IppoolReservationList) GetResultsOk() ([]IppoolReservation, bool) { // HasResults returns a boolean if a field has been set. func (o *IppoolReservationList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *IppoolReservationList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *IppoolReservationList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type IppoolReservationListWithoutEmbeddedStruct struct { // The total number of 'ippool.Reservation' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_ippool_reservation_reference.go b/model_ippool_reservation_reference.go index 27747fc02e..90af3c167b 100644 --- a/model_ippool_reservation_reference.go +++ b/model_ippool_reservation_reference.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -88,6 +88,11 @@ func (o *IppoolReservationReference) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "ippool.ReservationReference" of the ClassId field. +func (o *IppoolReservationReference) GetDefaultClassId() interface{} { + return "ippool.ReservationReference" +} + // GetObjectType returns the ObjectType field value func (o *IppoolReservationReference) GetObjectType() string { if o == nil { @@ -112,6 +117,11 @@ func (o *IppoolReservationReference) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "ippool.ReservationReference" of the ObjectType field. +func (o *IppoolReservationReference) GetDefaultObjectType() interface{} { + return "ippool.ReservationReference" +} + // GetConsumerName returns the ConsumerName field value if set, zero value otherwise. func (o *IppoolReservationReference) GetConsumerName() string { if o == nil || IsNil(o.ConsumerName) { @@ -194,7 +204,13 @@ func (o IppoolReservationReference) ToMap() (map[string]interface{}, error) { if errPoolReservationReference != nil { return map[string]interface{}{}, errPoolReservationReference } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.ConsumerName) { toSerialize["ConsumerName"] = o.ConsumerName @@ -219,6 +235,13 @@ func (o *IppoolReservationReference) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -228,11 +251,23 @@ func (o *IppoolReservationReference) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type IppoolReservationReferenceWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_ippool_reservation_relationship.go b/model_ippool_reservation_relationship.go index c977da5989..1ed0fbb2fa 100644 --- a/model_ippool_reservation_relationship.go +++ b/model_ippool_reservation_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_ippool_reservation_response.go b/model_ippool_reservation_response.go index f1819a2d4e..6dddeaf24f 100644 --- a/model_ippool_reservation_response.go +++ b/model_ippool_reservation_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_ippool_shadow_block.go b/model_ippool_shadow_block.go index 85dc705819..f156684475 100644 --- a/model_ippool_shadow_block.go +++ b/model_ippool_shadow_block.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -92,6 +92,11 @@ func (o *IppoolShadowBlock) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "ippool.ShadowBlock" of the ClassId field. +func (o *IppoolShadowBlock) GetDefaultClassId() interface{} { + return "ippool.ShadowBlock" +} + // GetObjectType returns the ObjectType field value func (o *IppoolShadowBlock) GetObjectType() string { if o == nil { @@ -116,6 +121,11 @@ func (o *IppoolShadowBlock) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "ippool.ShadowBlock" of the ObjectType field. +func (o *IppoolShadowBlock) GetDefaultObjectType() interface{} { + return "ippool.ShadowBlock" +} + // GetIpType returns the IpType field value if set, zero value otherwise. func (o *IppoolShadowBlock) GetIpType() string { if o == nil || IsNil(o.IpType) { @@ -276,7 +286,7 @@ func (o *IppoolShadowBlock) GetReservationsOk() ([]IppoolReservationRelationship // HasReservations returns a boolean if a field has been set. func (o *IppoolShadowBlock) HasReservations() bool { - if o != nil && IsNil(o.Reservations) { + if o != nil && !IsNil(o.Reservations) { return true } @@ -349,7 +359,13 @@ func (o IppoolShadowBlock) ToMap() (map[string]interface{}, error) { if errPoolAbstractBlock != nil { return map[string]interface{}{}, errPoolAbstractBlock } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.IpType) { toSerialize["IpType"] = o.IpType @@ -386,6 +402,13 @@ func (o *IppoolShadowBlock) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -395,11 +418,23 @@ func (o *IppoolShadowBlock) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type IppoolShadowBlockWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_ippool_shadow_block_list.go b/model_ippool_shadow_block_list.go index 770047ea7c..ee0ecd48f4 100644 --- a/model_ippool_shadow_block_list.go +++ b/model_ippool_shadow_block_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *IppoolShadowBlockList) GetResultsOk() ([]IppoolShadowBlock, bool) { // HasResults returns a boolean if a field has been set. func (o *IppoolShadowBlockList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *IppoolShadowBlockList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *IppoolShadowBlockList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type IppoolShadowBlockListWithoutEmbeddedStruct struct { // The total number of 'ippool.ShadowBlock' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_ippool_shadow_block_relationship.go b/model_ippool_shadow_block_relationship.go index 1a19a7f374..6ca2fc351e 100644 --- a/model_ippool_shadow_block_relationship.go +++ b/model_ippool_shadow_block_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_ippool_shadow_block_response.go b/model_ippool_shadow_block_response.go index 7337689695..8ae96356a7 100644 --- a/model_ippool_shadow_block_response.go +++ b/model_ippool_shadow_block_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_ippool_shadow_pool.go b/model_ippool_shadow_pool.go index a7f3fd78ed..46aab110b6 100644 --- a/model_ippool_shadow_pool.go +++ b/model_ippool_shadow_pool.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -100,6 +100,11 @@ func (o *IppoolShadowPool) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "ippool.ShadowPool" of the ClassId field. +func (o *IppoolShadowPool) GetDefaultClassId() interface{} { + return "ippool.ShadowPool" +} + // GetObjectType returns the ObjectType field value func (o *IppoolShadowPool) GetObjectType() string { if o == nil { @@ -124,6 +129,11 @@ func (o *IppoolShadowPool) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "ippool.ShadowPool" of the ObjectType field. +func (o *IppoolShadowPool) GetDefaultObjectType() interface{} { + return "ippool.ShadowPool" +} + // GetIpV4Blocks returns the IpV4Blocks field value if set, zero value otherwise (both if not set or set to explicit null). func (o *IppoolShadowPool) GetIpV4Blocks() []IppoolIpV4Block { if o == nil { @@ -145,7 +155,7 @@ func (o *IppoolShadowPool) GetIpV4BlocksOk() ([]IppoolIpV4Block, bool) { // HasIpV4Blocks returns a boolean if a field has been set. func (o *IppoolShadowPool) HasIpV4Blocks() bool { - if o != nil && IsNil(o.IpV4Blocks) { + if o != nil && !IsNil(o.IpV4Blocks) { return true } @@ -221,7 +231,7 @@ func (o *IppoolShadowPool) GetIpV6BlocksOk() ([]IppoolIpV6Block, bool) { // HasIpV6Blocks returns a boolean if a field has been set. func (o *IppoolShadowPool) HasIpV6Blocks() bool { - if o != nil && IsNil(o.IpV6Blocks) { + if o != nil && !IsNil(o.IpV6Blocks) { return true } @@ -425,7 +435,7 @@ func (o *IppoolShadowPool) GetIpBlockHeadsOk() ([]IppoolShadowBlockRelationship, // HasIpBlockHeads returns a boolean if a field has been set. func (o *IppoolShadowPool) HasIpBlockHeads() bool { - if o != nil && IsNil(o.IpBlockHeads) { + if o != nil && !IsNil(o.IpBlockHeads) { return true } @@ -501,7 +511,7 @@ func (o *IppoolShadowPool) GetReservationsOk() ([]IppoolReservationRelationship, // HasReservations returns a boolean if a field has been set. func (o *IppoolShadowPool) HasReservations() bool { - if o != nil && IsNil(o.Reservations) { + if o != nil && !IsNil(o.Reservations) { return true } @@ -574,7 +584,13 @@ func (o IppoolShadowPool) ToMap() (map[string]interface{}, error) { if errPoolAbstractPool != nil { return map[string]interface{}{}, errPoolAbstractPool } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.IpV4Blocks != nil { toSerialize["IpV4Blocks"] = o.IpV4Blocks @@ -629,6 +645,13 @@ func (o *IppoolShadowPool) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -638,11 +661,23 @@ func (o *IppoolShadowPool) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type IppoolShadowPoolWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_ippool_shadow_pool_list.go b/model_ippool_shadow_pool_list.go index d140e4db52..0147fb3cfa 100644 --- a/model_ippool_shadow_pool_list.go +++ b/model_ippool_shadow_pool_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *IppoolShadowPoolList) GetResultsOk() ([]IppoolShadowPool, bool) { // HasResults returns a boolean if a field has been set. func (o *IppoolShadowPoolList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *IppoolShadowPoolList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *IppoolShadowPoolList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type IppoolShadowPoolListWithoutEmbeddedStruct struct { // The total number of 'ippool.ShadowPool' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_ippool_shadow_pool_relationship.go b/model_ippool_shadow_pool_relationship.go index 128c3ed6ff..b8df693a40 100644 --- a/model_ippool_shadow_pool_relationship.go +++ b/model_ippool_shadow_pool_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_ippool_shadow_pool_response.go b/model_ippool_shadow_pool_response.go index 56aa1b47e1..07c6e01fe3 100644 --- a/model_ippool_shadow_pool_response.go +++ b/model_ippool_shadow_pool_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_ippool_universe.go b/model_ippool_universe.go index 88b4788cae..b4435b2c9d 100644 --- a/model_ippool_universe.go +++ b/model_ippool_universe.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -81,6 +81,11 @@ func (o *IppoolUniverse) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "ippool.Universe" of the ClassId field. +func (o *IppoolUniverse) GetDefaultClassId() interface{} { + return "ippool.Universe" +} + // GetObjectType returns the ObjectType field value func (o *IppoolUniverse) GetObjectType() string { if o == nil { @@ -105,6 +110,11 @@ func (o *IppoolUniverse) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "ippool.Universe" of the ObjectType field. +func (o *IppoolUniverse) GetDefaultObjectType() interface{} { + return "ippool.Universe" +} + // GetVrf returns the Vrf field value if set, zero value otherwise (both if not set or set to explicit null). func (o *IppoolUniverse) GetVrf() VrfVrfRelationship { if o == nil || IsNil(o.Vrf.Get()) { @@ -166,7 +176,13 @@ func (o IppoolUniverse) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.Vrf.IsSet() { toSerialize["Vrf"] = o.Vrf.Get() @@ -188,6 +204,13 @@ func (o *IppoolUniverse) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -197,11 +220,23 @@ func (o *IppoolUniverse) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type IppoolUniverseWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_ippool_universe_list.go b/model_ippool_universe_list.go index f575c340c0..ecdc9c8b54 100644 --- a/model_ippool_universe_list.go +++ b/model_ippool_universe_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *IppoolUniverseList) GetResultsOk() ([]IppoolUniverse, bool) { // HasResults returns a boolean if a field has been set. func (o *IppoolUniverseList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *IppoolUniverseList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *IppoolUniverseList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type IppoolUniverseListWithoutEmbeddedStruct struct { // The total number of 'ippool.Universe' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_ippool_universe_relationship.go b/model_ippool_universe_relationship.go index 735a6c3b60..64ff5dbf1b 100644 --- a/model_ippool_universe_relationship.go +++ b/model_ippool_universe_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_ippool_universe_response.go b/model_ippool_universe_response.go index d55151a39d..c332ae4100 100644 --- a/model_ippool_universe_response.go +++ b/model_ippool_universe_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_iqnpool_block.go b/model_iqnpool_block.go index bed9fb9937..5943f5d72c 100644 --- a/model_iqnpool_block.go +++ b/model_iqnpool_block.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -86,6 +86,11 @@ func (o *IqnpoolBlock) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "iqnpool.Block" of the ClassId field. +func (o *IqnpoolBlock) GetDefaultClassId() interface{} { + return "iqnpool.Block" +} + // GetObjectType returns the ObjectType field value func (o *IqnpoolBlock) GetObjectType() string { if o == nil { @@ -110,6 +115,11 @@ func (o *IqnpoolBlock) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "iqnpool.Block" of the ObjectType field. +func (o *IqnpoolBlock) GetDefaultObjectType() interface{} { + return "iqnpool.Block" +} + // GetIqnSuffixBlock returns the IqnSuffixBlock field value if set, zero value otherwise. func (o *IqnpoolBlock) GetIqnSuffixBlock() IqnpoolIqnSuffixBlock { if o == nil || IsNil(o.IqnSuffixBlock) { @@ -238,7 +248,7 @@ func (o *IqnpoolBlock) GetReservationsOk() ([]IqnpoolReservationRelationship, bo // HasReservations returns a boolean if a field has been set. func (o *IqnpoolBlock) HasReservations() bool { - if o != nil && IsNil(o.Reservations) { + if o != nil && !IsNil(o.Reservations) { return true } @@ -268,7 +278,13 @@ func (o IqnpoolBlock) ToMap() (map[string]interface{}, error) { if errPoolAbstractBlock != nil { return map[string]interface{}{}, errPoolAbstractBlock } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.IqnSuffixBlock) { toSerialize["IqnSuffixBlock"] = o.IqnSuffixBlock @@ -299,6 +315,13 @@ func (o *IqnpoolBlock) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -308,11 +331,23 @@ func (o *IqnpoolBlock) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type IqnpoolBlockWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_iqnpool_block_list.go b/model_iqnpool_block_list.go index f478af2e40..65b50c3388 100644 --- a/model_iqnpool_block_list.go +++ b/model_iqnpool_block_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *IqnpoolBlockList) GetResultsOk() ([]IqnpoolBlock, bool) { // HasResults returns a boolean if a field has been set. func (o *IqnpoolBlockList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *IqnpoolBlockList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *IqnpoolBlockList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type IqnpoolBlockListWithoutEmbeddedStruct struct { // The total number of 'iqnpool.Block' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_iqnpool_block_relationship.go b/model_iqnpool_block_relationship.go index 2a98ffa8f7..877ec6e72d 100644 --- a/model_iqnpool_block_relationship.go +++ b/model_iqnpool_block_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_iqnpool_block_response.go b/model_iqnpool_block_response.go index 82768ad3b1..cfdbb9bd07 100644 --- a/model_iqnpool_block_response.go +++ b/model_iqnpool_block_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_iqnpool_iqn_suffix_block.go b/model_iqnpool_iqn_suffix_block.go index 111ee4467c..1dd2f47f24 100644 --- a/model_iqnpool_iqn_suffix_block.go +++ b/model_iqnpool_iqn_suffix_block.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -86,6 +86,11 @@ func (o *IqnpoolIqnSuffixBlock) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "iqnpool.IqnSuffixBlock" of the ClassId field. +func (o *IqnpoolIqnSuffixBlock) GetDefaultClassId() interface{} { + return "iqnpool.IqnSuffixBlock" +} + // GetObjectType returns the ObjectType field value func (o *IqnpoolIqnSuffixBlock) GetObjectType() string { if o == nil { @@ -110,6 +115,11 @@ func (o *IqnpoolIqnSuffixBlock) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "iqnpool.IqnSuffixBlock" of the ObjectType field. +func (o *IqnpoolIqnSuffixBlock) GetDefaultObjectType() interface{} { + return "iqnpool.IqnSuffixBlock" +} + // GetFrom returns the From field value if set, zero value otherwise. func (o *IqnpoolIqnSuffixBlock) GetFrom() int64 { if o == nil || IsNil(o.From) { @@ -224,7 +234,13 @@ func (o IqnpoolIqnSuffixBlock) ToMap() (map[string]interface{}, error) { if errPoolAbstractBlockType != nil { return map[string]interface{}{}, errPoolAbstractBlockType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.From) { toSerialize["From"] = o.From @@ -252,6 +268,13 @@ func (o *IqnpoolIqnSuffixBlock) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -261,11 +284,23 @@ func (o *IqnpoolIqnSuffixBlock) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type IqnpoolIqnSuffixBlockWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_iqnpool_lease.go b/model_iqnpool_lease.go index 6d577c1c1e..866d36cb6b 100644 --- a/model_iqnpool_lease.go +++ b/model_iqnpool_lease.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -29,7 +29,7 @@ type IqnpoolLease struct { // The fully-qualified name of the instantiated, concrete type. The value should be the same as the 'ClassId' property. ObjectType string `json:"ObjectType"` // IQN address allocated for pool-based allocation. It is constructed as ::. - IqnAddress *string `json:"IqnAddress,omitempty"` + IqnAddress *string `json:"IqnAddress,omitempty" validate:"regexp=^$|^(?:iqn\\\\.[0-9]{4}-[0-9]{2}(?:\\\\.[A-Za-z](?:[A-Za-z0-9\\\\-]*[A-Za-z0-9])?)+(?::.*)?|eui\\\\.[0-9A-Fa-f]{16})"` // Number of the IQN address. IQN Address is constructed as ::. IqnNumber *int64 `json:"IqnNumber,omitempty"` // Prefix of the IQN address. IQN Address is constructed as ::. @@ -97,6 +97,11 @@ func (o *IqnpoolLease) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "iqnpool.Lease" of the ClassId field. +func (o *IqnpoolLease) GetDefaultClassId() interface{} { + return "iqnpool.Lease" +} + // GetObjectType returns the ObjectType field value func (o *IqnpoolLease) GetObjectType() string { if o == nil { @@ -121,6 +126,11 @@ func (o *IqnpoolLease) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "iqnpool.Lease" of the ObjectType field. +func (o *IqnpoolLease) GetDefaultObjectType() interface{} { + return "iqnpool.Lease" +} + // GetIqnAddress returns the IqnAddress field value if set, zero value otherwise. func (o *IqnpoolLease) GetIqnAddress() string { if o == nil || IsNil(o.IqnAddress) { @@ -471,7 +481,13 @@ func (o IqnpoolLease) ToMap() (map[string]interface{}, error) { if errPoolAbstractLease != nil { return map[string]interface{}{}, errPoolAbstractLease } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.IqnAddress) { toSerialize["IqnAddress"] = o.IqnAddress @@ -517,6 +533,13 @@ func (o *IqnpoolLease) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -526,18 +549,30 @@ func (o *IqnpoolLease) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type IqnpoolLeaseWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` // The fully-qualified name of the instantiated, concrete type. The value should be the same as the 'ClassId' property. ObjectType string `json:"ObjectType"` // IQN address allocated for pool-based allocation. It is constructed as ::. - IqnAddress *string `json:"IqnAddress,omitempty"` + IqnAddress *string `json:"IqnAddress,omitempty" validate:"regexp=^$|^(?:iqn\\\\.[0-9]{4}-[0-9]{2}(?:\\\\.[A-Za-z](?:[A-Za-z0-9\\\\-]*[A-Za-z0-9])?)+(?::.*)?|eui\\\\.[0-9A-Fa-f]{16})"` // Number of the IQN address. IQN Address is constructed as ::. IqnNumber *int64 `json:"IqnNumber,omitempty"` // Prefix of the IQN address. IQN Address is constructed as ::. diff --git a/model_iqnpool_lease_list.go b/model_iqnpool_lease_list.go index 671857e370..2c25ab03a4 100644 --- a/model_iqnpool_lease_list.go +++ b/model_iqnpool_lease_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *IqnpoolLeaseList) GetResultsOk() ([]IqnpoolLease, bool) { // HasResults returns a boolean if a field has been set. func (o *IqnpoolLeaseList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *IqnpoolLeaseList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *IqnpoolLeaseList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type IqnpoolLeaseListWithoutEmbeddedStruct struct { // The total number of 'iqnpool.Lease' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_iqnpool_lease_relationship.go b/model_iqnpool_lease_relationship.go index 88d745cce8..9f66d89b1a 100644 --- a/model_iqnpool_lease_relationship.go +++ b/model_iqnpool_lease_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_iqnpool_lease_response.go b/model_iqnpool_lease_response.go index 9194886029..c0280441be 100644 --- a/model_iqnpool_lease_response.go +++ b/model_iqnpool_lease_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_iqnpool_pool.go b/model_iqnpool_pool.go index 351ac6d9a9..bcc9377be4 100644 --- a/model_iqnpool_pool.go +++ b/model_iqnpool_pool.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -90,6 +90,11 @@ func (o *IqnpoolPool) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "iqnpool.Pool" of the ClassId field. +func (o *IqnpoolPool) GetDefaultClassId() interface{} { + return "iqnpool.Pool" +} + // GetObjectType returns the ObjectType field value func (o *IqnpoolPool) GetObjectType() string { if o == nil { @@ -114,6 +119,11 @@ func (o *IqnpoolPool) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "iqnpool.Pool" of the ObjectType field. +func (o *IqnpoolPool) GetDefaultObjectType() interface{} { + return "iqnpool.Pool" +} + // GetIqnSuffixBlocks returns the IqnSuffixBlocks field value if set, zero value otherwise (both if not set or set to explicit null). func (o *IqnpoolPool) GetIqnSuffixBlocks() []IqnpoolIqnSuffixBlock { if o == nil { @@ -135,7 +145,7 @@ func (o *IqnpoolPool) GetIqnSuffixBlocksOk() ([]IqnpoolIqnSuffixBlock, bool) { // HasIqnSuffixBlocks returns a boolean if a field has been set. func (o *IqnpoolPool) HasIqnSuffixBlocks() bool { - if o != nil && IsNil(o.IqnSuffixBlocks) { + if o != nil && !IsNil(o.IqnSuffixBlocks) { return true } @@ -200,7 +210,7 @@ func (o *IqnpoolPool) GetBlockHeadsOk() ([]IqnpoolBlockRelationship, bool) { // HasBlockHeads returns a boolean if a field has been set. func (o *IqnpoolPool) HasBlockHeads() bool { - if o != nil && IsNil(o.BlockHeads) { + if o != nil && !IsNil(o.BlockHeads) { return true } @@ -276,7 +286,7 @@ func (o *IqnpoolPool) GetReservationsOk() ([]IqnpoolReservationRelationship, boo // HasReservations returns a boolean if a field has been set. func (o *IqnpoolPool) HasReservations() bool { - if o != nil && IsNil(o.Reservations) { + if o != nil && !IsNil(o.Reservations) { return true } @@ -306,7 +316,13 @@ func (o IqnpoolPool) ToMap() (map[string]interface{}, error) { if errPoolAbstractPool != nil { return map[string]interface{}{}, errPoolAbstractPool } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.IqnSuffixBlocks != nil { toSerialize["IqnSuffixBlocks"] = o.IqnSuffixBlocks @@ -340,6 +356,13 @@ func (o *IqnpoolPool) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -349,11 +372,23 @@ func (o *IqnpoolPool) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type IqnpoolPoolWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_iqnpool_pool_list.go b/model_iqnpool_pool_list.go index 215bad9b2d..992cabeeac 100644 --- a/model_iqnpool_pool_list.go +++ b/model_iqnpool_pool_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *IqnpoolPoolList) GetResultsOk() ([]IqnpoolPool, bool) { // HasResults returns a boolean if a field has been set. func (o *IqnpoolPoolList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *IqnpoolPoolList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *IqnpoolPoolList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type IqnpoolPoolListWithoutEmbeddedStruct struct { // The total number of 'iqnpool.Pool' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_iqnpool_pool_member.go b/model_iqnpool_pool_member.go index 1cb95734e8..a0c5159df1 100644 --- a/model_iqnpool_pool_member.go +++ b/model_iqnpool_pool_member.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -99,6 +99,11 @@ func (o *IqnpoolPoolMember) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "iqnpool.PoolMember" of the ClassId field. +func (o *IqnpoolPoolMember) GetDefaultClassId() interface{} { + return "iqnpool.PoolMember" +} + // GetObjectType returns the ObjectType field value func (o *IqnpoolPoolMember) GetObjectType() string { if o == nil { @@ -123,6 +128,11 @@ func (o *IqnpoolPoolMember) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "iqnpool.PoolMember" of the ObjectType field. +func (o *IqnpoolPoolMember) GetDefaultObjectType() interface{} { + return "iqnpool.PoolMember" +} + // GetIqnAddress returns the IqnAddress field value if set, zero value otherwise. func (o *IqnpoolPoolMember) GetIqnAddress() string { if o == nil || IsNil(o.IqnAddress) { @@ -484,7 +494,13 @@ func (o IqnpoolPoolMember) ToMap() (map[string]interface{}, error) { if errPoolAbstractIdPoolMember != nil { return map[string]interface{}{}, errPoolAbstractIdPoolMember } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.IqnAddress) { toSerialize["IqnAddress"] = o.IqnAddress @@ -530,6 +546,13 @@ func (o *IqnpoolPoolMember) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -539,11 +562,23 @@ func (o *IqnpoolPoolMember) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type IqnpoolPoolMemberWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_iqnpool_pool_member_list.go b/model_iqnpool_pool_member_list.go index a3d588a433..e028d7b680 100644 --- a/model_iqnpool_pool_member_list.go +++ b/model_iqnpool_pool_member_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *IqnpoolPoolMemberList) GetResultsOk() ([]IqnpoolPoolMember, bool) { // HasResults returns a boolean if a field has been set. func (o *IqnpoolPoolMemberList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *IqnpoolPoolMemberList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *IqnpoolPoolMemberList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type IqnpoolPoolMemberListWithoutEmbeddedStruct struct { // The total number of 'iqnpool.PoolMember' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_iqnpool_pool_member_relationship.go b/model_iqnpool_pool_member_relationship.go index 0c7987af2a..69b9d19d46 100644 --- a/model_iqnpool_pool_member_relationship.go +++ b/model_iqnpool_pool_member_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_iqnpool_pool_member_response.go b/model_iqnpool_pool_member_response.go index 09374b6736..5faf5cfc06 100644 --- a/model_iqnpool_pool_member_response.go +++ b/model_iqnpool_pool_member_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_iqnpool_pool_relationship.go b/model_iqnpool_pool_relationship.go index ced2e1d715..3f5589935e 100644 --- a/model_iqnpool_pool_relationship.go +++ b/model_iqnpool_pool_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_iqnpool_pool_response.go b/model_iqnpool_pool_response.go index dfc7c3a0d0..07741bb5fc 100644 --- a/model_iqnpool_pool_response.go +++ b/model_iqnpool_pool_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_iqnpool_reservation.go b/model_iqnpool_reservation.go index e818ef1e11..910f3293c7 100644 --- a/model_iqnpool_reservation.go +++ b/model_iqnpool_reservation.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -29,7 +29,7 @@ type IqnpoolReservation struct { // The fully-qualified name of the instantiated, concrete type. The value should be the same as the 'ClassId' property. ObjectType string `json:"ObjectType"` // IQN identity to be reserved. - Identity *string `json:"Identity,omitempty"` + Identity *string `json:"Identity,omitempty" validate:"regexp=^$|^(?:iqn\\\\.[0-9]{4}-[0-9]{2}(?:\\\\.[A-Za-z](?:[A-Za-z0-9\\\\-]*[A-Za-z0-9])?)+(?::.*)?|eui\\\\.[0-9A-Fa-f]{16})"` // Number of the IQN address. IQN Address is constructed as ::. IqnNumber *int64 `json:"IqnNumber,omitempty"` // Prefix of the IQN address. IQN Address is constructed as ::. @@ -95,6 +95,11 @@ func (o *IqnpoolReservation) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "iqnpool.Reservation" of the ClassId field. +func (o *IqnpoolReservation) GetDefaultClassId() interface{} { + return "iqnpool.Reservation" +} + // GetObjectType returns the ObjectType field value func (o *IqnpoolReservation) GetObjectType() string { if o == nil { @@ -119,6 +124,11 @@ func (o *IqnpoolReservation) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "iqnpool.Reservation" of the ObjectType field. +func (o *IqnpoolReservation) GetDefaultObjectType() interface{} { + return "iqnpool.Reservation" +} + // GetIdentity returns the Identity field value if set, zero value otherwise. func (o *IqnpoolReservation) GetIdentity() string { if o == nil || IsNil(o.Identity) { @@ -480,7 +490,13 @@ func (o IqnpoolReservation) ToMap() (map[string]interface{}, error) { if errPoolReservation != nil { return map[string]interface{}{}, errPoolReservation } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Identity) { toSerialize["Identity"] = o.Identity @@ -526,6 +542,13 @@ func (o *IqnpoolReservation) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -535,18 +558,30 @@ func (o *IqnpoolReservation) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type IqnpoolReservationWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` // The fully-qualified name of the instantiated, concrete type. The value should be the same as the 'ClassId' property. ObjectType string `json:"ObjectType"` // IQN identity to be reserved. - Identity *string `json:"Identity,omitempty"` + Identity *string `json:"Identity,omitempty" validate:"regexp=^$|^(?:iqn\\\\.[0-9]{4}-[0-9]{2}(?:\\\\.[A-Za-z](?:[A-Za-z0-9\\\\-]*[A-Za-z0-9])?)+(?::.*)?|eui\\\\.[0-9A-Fa-f]{16})"` // Number of the IQN address. IQN Address is constructed as ::. IqnNumber *int64 `json:"IqnNumber,omitempty"` // Prefix of the IQN address. IQN Address is constructed as ::. diff --git a/model_iqnpool_reservation_list.go b/model_iqnpool_reservation_list.go index 585896469a..265ef163ed 100644 --- a/model_iqnpool_reservation_list.go +++ b/model_iqnpool_reservation_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *IqnpoolReservationList) GetResultsOk() ([]IqnpoolReservation, bool) { // HasResults returns a boolean if a field has been set. func (o *IqnpoolReservationList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *IqnpoolReservationList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *IqnpoolReservationList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type IqnpoolReservationListWithoutEmbeddedStruct struct { // The total number of 'iqnpool.Reservation' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_iqnpool_reservation_reference.go b/model_iqnpool_reservation_reference.go index 93dd8f3b89..be17b3c5f1 100644 --- a/model_iqnpool_reservation_reference.go +++ b/model_iqnpool_reservation_reference.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -83,6 +83,10 @@ func (o *IqnpoolReservationReference) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -92,11 +96,23 @@ func (o *IqnpoolReservationReference) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type IqnpoolReservationReferenceWithoutEmbeddedStruct struct { } diff --git a/model_iqnpool_reservation_relationship.go b/model_iqnpool_reservation_relationship.go index ddfb1cb5a4..f8a6718881 100644 --- a/model_iqnpool_reservation_relationship.go +++ b/model_iqnpool_reservation_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_iqnpool_reservation_response.go b/model_iqnpool_reservation_response.go index 6a2b5caf28..723ac414fa 100644 --- a/model_iqnpool_reservation_response.go +++ b/model_iqnpool_reservation_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_iqnpool_universe.go b/model_iqnpool_universe.go index 72f73341a4..9ea92ce1b2 100644 --- a/model_iqnpool_universe.go +++ b/model_iqnpool_universe.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -81,6 +81,11 @@ func (o *IqnpoolUniverse) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "iqnpool.Universe" of the ClassId field. +func (o *IqnpoolUniverse) GetDefaultClassId() interface{} { + return "iqnpool.Universe" +} + // GetObjectType returns the ObjectType field value func (o *IqnpoolUniverse) GetObjectType() string { if o == nil { @@ -105,6 +110,11 @@ func (o *IqnpoolUniverse) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "iqnpool.Universe" of the ObjectType field. +func (o *IqnpoolUniverse) GetDefaultObjectType() interface{} { + return "iqnpool.Universe" +} + // GetAccount returns the Account field value if set, zero value otherwise (both if not set or set to explicit null). func (o *IqnpoolUniverse) GetAccount() IamAccountRelationship { if o == nil || IsNil(o.Account.Get()) { @@ -166,7 +176,13 @@ func (o IqnpoolUniverse) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.Account.IsSet() { toSerialize["Account"] = o.Account.Get() @@ -188,6 +204,13 @@ func (o *IqnpoolUniverse) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -197,11 +220,23 @@ func (o *IqnpoolUniverse) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type IqnpoolUniverseWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_iqnpool_universe_list.go b/model_iqnpool_universe_list.go index 591af89ba5..2873a64b05 100644 --- a/model_iqnpool_universe_list.go +++ b/model_iqnpool_universe_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *IqnpoolUniverseList) GetResultsOk() ([]IqnpoolUniverse, bool) { // HasResults returns a boolean if a field has been set. func (o *IqnpoolUniverseList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *IqnpoolUniverseList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *IqnpoolUniverseList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type IqnpoolUniverseListWithoutEmbeddedStruct struct { // The total number of 'iqnpool.Universe' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_iqnpool_universe_relationship.go b/model_iqnpool_universe_relationship.go index 2d2b8217b1..54db295bfc 100644 --- a/model_iqnpool_universe_relationship.go +++ b/model_iqnpool_universe_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_iqnpool_universe_response.go b/model_iqnpool_universe_response.go index 48a85290fc..97a9a386ee 100644 --- a/model_iqnpool_universe_response.go +++ b/model_iqnpool_universe_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_issue_condition.go b/model_issue_condition.go index e8bca84551..7e64a5622d 100644 --- a/model_issue_condition.go +++ b/model_issue_condition.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -83,6 +83,10 @@ func (o *IssueCondition) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -92,11 +96,23 @@ func (o *IssueCondition) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type IssueConditionWithoutEmbeddedStruct struct { } diff --git a/model_issue_definition.go b/model_issue_definition.go index dafa31b9a6..28b75e5ea6 100644 --- a/model_issue_definition.go +++ b/model_issue_definition.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -90,6 +90,11 @@ func (o *IssueDefinition) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "cond.AlarmDefinition" of the ClassId field. +func (o *IssueDefinition) GetDefaultClassId() interface{} { + return "cond.AlarmDefinition" +} + // GetObjectType returns the ObjectType field value func (o *IssueDefinition) GetObjectType() string { if o == nil { @@ -114,6 +119,11 @@ func (o *IssueDefinition) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "cond.AlarmDefinition" of the ObjectType field. +func (o *IssueDefinition) GetDefaultObjectType() interface{} { + return "cond.AlarmDefinition" +} + // GetCondition returns the Condition field value if set, zero value otherwise (both if not set or set to explicit null). func (o *IssueDefinition) GetCondition() IssueCondition { if o == nil || IsNil(o.Condition.Get()) { @@ -306,7 +316,7 @@ func (o *IssueDefinition) GetSystemClassificationsOk() ([]string, bool) { // HasSystemClassifications returns a boolean if a field has been set. func (o *IssueDefinition) HasSystemClassifications() bool { - if o != nil && IsNil(o.SystemClassifications) { + if o != nil && !IsNil(o.SystemClassifications) { return true } @@ -336,7 +346,13 @@ func (o IssueDefinition) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.Condition.IsSet() { toSerialize["Condition"] = o.Condition.Get() @@ -373,6 +389,13 @@ func (o *IssueDefinition) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -382,11 +405,23 @@ func (o *IssueDefinition) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type IssueDefinitionWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. The enum values provides the list of concrete types that can be instantiated from this abstract type. ClassId string `json:"ClassId"` diff --git a/model_issue_device_tag.go b/model_issue_device_tag.go index fbc5793f23..1b53a685ef 100644 --- a/model_issue_device_tag.go +++ b/model_issue_device_tag.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -84,6 +84,11 @@ func (o *IssueDeviceTag) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "issue.DeviceTag" of the ClassId field. +func (o *IssueDeviceTag) GetDefaultClassId() interface{} { + return "issue.DeviceTag" +} + // GetObjectType returns the ObjectType field value func (o *IssueDeviceTag) GetObjectType() string { if o == nil { @@ -108,6 +113,11 @@ func (o *IssueDeviceTag) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "issue.DeviceTag" of the ObjectType field. +func (o *IssueDeviceTag) GetDefaultObjectType() interface{} { + return "issue.DeviceTag" +} + // GetKey returns the Key field value if set, zero value otherwise. func (o *IssueDeviceTag) GetKey() string { if o == nil || IsNil(o.Key) { @@ -190,7 +200,13 @@ func (o IssueDeviceTag) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Key) { toSerialize["Key"] = o.Key @@ -215,6 +231,13 @@ func (o *IssueDeviceTag) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -224,11 +247,23 @@ func (o *IssueDeviceTag) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type IssueDeviceTagWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_issue_message.go b/model_issue_message.go index a58b4e93c7..a2a3b117c7 100644 --- a/model_issue_message.go +++ b/model_issue_message.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -83,6 +83,11 @@ func (o *IssueMessage) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "issue.Message" of the ClassId field. +func (o *IssueMessage) GetDefaultClassId() interface{} { + return "issue.Message" +} + // GetObjectType returns the ObjectType field value func (o *IssueMessage) GetObjectType() string { if o == nil { @@ -107,6 +112,11 @@ func (o *IssueMessage) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "issue.Message" of the ObjectType field. +func (o *IssueMessage) GetDefaultObjectType() interface{} { + return "issue.Message" +} + // GetMessage returns the Message field value if set, zero value otherwise. func (o *IssueMessage) GetMessage() string { if o == nil || IsNil(o.Message) { @@ -160,7 +170,7 @@ func (o *IssueMessage) GetParametersOk() ([]string, bool) { // HasParameters returns a boolean if a field has been set. func (o *IssueMessage) HasParameters() bool { - if o != nil && IsNil(o.Parameters) { + if o != nil && !IsNil(o.Parameters) { return true } @@ -190,7 +200,13 @@ func (o IssueMessage) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Message) { toSerialize["Message"] = o.Message @@ -215,6 +231,13 @@ func (o *IssueMessage) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -224,11 +247,23 @@ func (o *IssueMessage) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type IssueMessageWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_issue_odata_condition.go b/model_issue_odata_condition.go index 5cf4979560..121d376681 100644 --- a/model_issue_odata_condition.go +++ b/model_issue_odata_condition.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -85,6 +85,11 @@ func (o *IssueOdataCondition) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "issue.OdataCondition" of the ClassId field. +func (o *IssueOdataCondition) GetDefaultClassId() interface{} { + return "issue.OdataCondition" +} + // GetObjectType returns the ObjectType field value func (o *IssueOdataCondition) GetObjectType() string { if o == nil { @@ -109,6 +114,11 @@ func (o *IssueOdataCondition) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "issue.OdataCondition" of the ObjectType field. +func (o *IssueOdataCondition) GetDefaultObjectType() interface{} { + return "issue.OdataCondition" +} + // GetDeviceTags returns the DeviceTags field value if set, zero value otherwise (both if not set or set to explicit null). func (o *IssueOdataCondition) GetDeviceTags() []IssueDeviceTag { if o == nil { @@ -130,7 +140,7 @@ func (o *IssueOdataCondition) GetDeviceTagsOk() ([]IssueDeviceTag, bool) { // HasDeviceTags returns a boolean if a field has been set. func (o *IssueOdataCondition) HasDeviceTags() bool { - if o != nil && IsNil(o.DeviceTags) { + if o != nil && !IsNil(o.DeviceTags) { return true } @@ -224,7 +234,13 @@ func (o IssueOdataCondition) ToMap() (map[string]interface{}, error) { if errIssueCondition != nil { return map[string]interface{}{}, errIssueCondition } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.DeviceTags != nil { toSerialize["DeviceTags"] = o.DeviceTags @@ -252,6 +268,13 @@ func (o *IssueOdataCondition) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -261,11 +284,23 @@ func (o *IssueOdataCondition) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type IssueOdataConditionWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_iwotenant_maintenance_notification.go b/model_iwotenant_maintenance_notification.go index b7f23d7f9f..df4b3f28ef 100644 --- a/model_iwotenant_maintenance_notification.go +++ b/model_iwotenant_maintenance_notification.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -94,6 +94,11 @@ func (o *IwotenantMaintenanceNotification) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "iwotenant.MaintenanceNotification" of the ClassId field. +func (o *IwotenantMaintenanceNotification) GetDefaultClassId() interface{} { + return "iwotenant.MaintenanceNotification" +} + // GetObjectType returns the ObjectType field value func (o *IwotenantMaintenanceNotification) GetObjectType() string { if o == nil { @@ -118,6 +123,11 @@ func (o *IwotenantMaintenanceNotification) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "iwotenant.MaintenanceNotification" of the ObjectType field. +func (o *IwotenantMaintenanceNotification) GetDefaultObjectType() interface{} { + return "iwotenant.MaintenanceNotification" +} + // GetI18nKey returns the I18nKey field value if set, zero value otherwise. func (o *IwotenantMaintenanceNotification) GetI18nKey() string { if o == nil || IsNil(o.I18nKey) { @@ -371,7 +381,13 @@ func (o IwotenantMaintenanceNotification) ToMap() (map[string]interface{}, error if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.I18nKey) { toSerialize["I18nKey"] = o.I18nKey @@ -411,6 +427,13 @@ func (o *IwotenantMaintenanceNotification) UnmarshalJSON(data []byte) (err error "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -420,11 +443,23 @@ func (o *IwotenantMaintenanceNotification) UnmarshalJSON(data []byte) (err error } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type IwotenantMaintenanceNotificationWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_iwotenant_maintenance_notification_list.go b/model_iwotenant_maintenance_notification_list.go index e6440a7012..8f34d2fc0b 100644 --- a/model_iwotenant_maintenance_notification_list.go +++ b/model_iwotenant_maintenance_notification_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *IwotenantMaintenanceNotificationList) GetResultsOk() ([]IwotenantMainte // HasResults returns a boolean if a field has been set. func (o *IwotenantMaintenanceNotificationList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *IwotenantMaintenanceNotificationList) UnmarshalJSON(data []byte) (err e "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *IwotenantMaintenanceNotificationList) UnmarshalJSON(data []byte) (err e } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type IwotenantMaintenanceNotificationListWithoutEmbeddedStruct struct { // The total number of 'iwotenant.MaintenanceNotification' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_iwotenant_maintenance_notification_response.go b/model_iwotenant_maintenance_notification_response.go index ae62149d2b..fbba86e0a0 100644 --- a/model_iwotenant_maintenance_notification_response.go +++ b/model_iwotenant_maintenance_notification_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_iwotenant_migrate.go b/model_iwotenant_migrate.go index d3e3267fdd..9292b6d0ab 100644 --- a/model_iwotenant_migrate.go +++ b/model_iwotenant_migrate.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -87,6 +87,11 @@ func (o *IwotenantMigrate) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "iwotenant.Migrate" of the ClassId field. +func (o *IwotenantMigrate) GetDefaultClassId() interface{} { + return "iwotenant.Migrate" +} + // GetObjectType returns the ObjectType field value func (o *IwotenantMigrate) GetObjectType() string { if o == nil { @@ -111,6 +116,11 @@ func (o *IwotenantMigrate) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "iwotenant.Migrate" of the ObjectType field. +func (o *IwotenantMigrate) GetDefaultObjectType() interface{} { + return "iwotenant.Migrate" +} + // GetIsPasswordSet returns the IsPasswordSet field value if set, zero value otherwise. func (o *IwotenantMigrate) GetIsPasswordSet() bool { if o == nil || IsNil(o.IsPasswordSet) { @@ -268,7 +278,13 @@ func (o IwotenantMigrate) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.IsPasswordSet) { toSerialize["IsPasswordSet"] = o.IsPasswordSet @@ -299,6 +315,13 @@ func (o *IwotenantMigrate) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -308,11 +331,23 @@ func (o *IwotenantMigrate) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type IwotenantMigrateWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_iwotenant_migrate_list.go b/model_iwotenant_migrate_list.go index 95c4f58a40..67ec08c0b1 100644 --- a/model_iwotenant_migrate_list.go +++ b/model_iwotenant_migrate_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *IwotenantMigrateList) GetResultsOk() ([]IwotenantMigrate, bool) { // HasResults returns a boolean if a field has been set. func (o *IwotenantMigrateList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *IwotenantMigrateList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *IwotenantMigrateList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type IwotenantMigrateListWithoutEmbeddedStruct struct { // The total number of 'iwotenant.Migrate' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_iwotenant_migrate_response.go b/model_iwotenant_migrate_response.go index d181523ce1..861ce18133 100644 --- a/model_iwotenant_migrate_response.go +++ b/model_iwotenant_migrate_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_iwotenant_tenant_customization.go b/model_iwotenant_tenant_customization.go index a546d4b77f..0715ccea59 100644 --- a/model_iwotenant_tenant_customization.go +++ b/model_iwotenant_tenant_customization.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -95,6 +95,11 @@ func (o *IwotenantTenantCustomization) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "iwotenant.TenantCustomization" of the ClassId field. +func (o *IwotenantTenantCustomization) GetDefaultClassId() interface{} { + return "iwotenant.TenantCustomization" +} + // GetObjectType returns the ObjectType field value func (o *IwotenantTenantCustomization) GetObjectType() string { if o == nil { @@ -119,6 +124,11 @@ func (o *IwotenantTenantCustomization) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "iwotenant.TenantCustomization" of the ObjectType field. +func (o *IwotenantTenantCustomization) GetDefaultObjectType() interface{} { + return "iwotenant.TenantCustomization" +} + // GetEnableDataExtractor returns the EnableDataExtractor field value if set, zero value otherwise. func (o *IwotenantTenantCustomization) GetEnableDataExtractor() bool { if o == nil || IsNil(o.EnableDataExtractor) { @@ -404,7 +414,13 @@ func (o IwotenantTenantCustomization) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.EnableDataExtractor) { toSerialize["EnableDataExtractor"] = o.EnableDataExtractor @@ -447,6 +463,13 @@ func (o *IwotenantTenantCustomization) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -456,11 +479,23 @@ func (o *IwotenantTenantCustomization) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type IwotenantTenantCustomizationWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_iwotenant_tenant_customization_list.go b/model_iwotenant_tenant_customization_list.go index 89b9a4dc41..ac42da8ca1 100644 --- a/model_iwotenant_tenant_customization_list.go +++ b/model_iwotenant_tenant_customization_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *IwotenantTenantCustomizationList) GetResultsOk() ([]IwotenantTenantCust // HasResults returns a boolean if a field has been set. func (o *IwotenantTenantCustomizationList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *IwotenantTenantCustomizationList) UnmarshalJSON(data []byte) (err error "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *IwotenantTenantCustomizationList) UnmarshalJSON(data []byte) (err error } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type IwotenantTenantCustomizationListWithoutEmbeddedStruct struct { // The total number of 'iwotenant.TenantCustomization' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_iwotenant_tenant_customization_response.go b/model_iwotenant_tenant_customization_response.go index a2b0b7c0c8..72f6d4e55e 100644 --- a/model_iwotenant_tenant_customization_response.go +++ b/model_iwotenant_tenant_customization_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_iwotenant_tenant_status.go b/model_iwotenant_tenant_status.go index 9d03028de6..ed40e876e6 100644 --- a/model_iwotenant_tenant_status.go +++ b/model_iwotenant_tenant_status.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -88,6 +88,11 @@ func (o *IwotenantTenantStatus) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "iwotenant.TenantStatus" of the ClassId field. +func (o *IwotenantTenantStatus) GetDefaultClassId() interface{} { + return "iwotenant.TenantStatus" +} + // GetObjectType returns the ObjectType field value func (o *IwotenantTenantStatus) GetObjectType() string { if o == nil { @@ -112,6 +117,11 @@ func (o *IwotenantTenantStatus) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "iwotenant.TenantStatus" of the ObjectType field. +func (o *IwotenantTenantStatus) GetDefaultObjectType() interface{} { + return "iwotenant.TenantStatus" +} + // GetDeployStatus returns the DeployStatus field value if set, zero value otherwise. func (o *IwotenantTenantStatus) GetDeployStatus() string { if o == nil || IsNil(o.DeployStatus) { @@ -269,7 +279,13 @@ func (o IwotenantTenantStatus) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.DeployStatus) { toSerialize["DeployStatus"] = o.DeployStatus @@ -300,6 +316,13 @@ func (o *IwotenantTenantStatus) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -309,11 +332,23 @@ func (o *IwotenantTenantStatus) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type IwotenantTenantStatusWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_iwotenant_tenant_status_list.go b/model_iwotenant_tenant_status_list.go index 9b5bee3e87..dd343cb8e6 100644 --- a/model_iwotenant_tenant_status_list.go +++ b/model_iwotenant_tenant_status_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *IwotenantTenantStatusList) GetResultsOk() ([]IwotenantTenantStatus, boo // HasResults returns a boolean if a field has been set. func (o *IwotenantTenantStatusList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *IwotenantTenantStatusList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *IwotenantTenantStatusList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type IwotenantTenantStatusListWithoutEmbeddedStruct struct { // The total number of 'iwotenant.TenantStatus' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_iwotenant_tenant_status_response.go b/model_iwotenant_tenant_status_response.go index 2e7f8ba23d..ecbd1a1b14 100644 --- a/model_iwotenant_tenant_status_response.go +++ b/model_iwotenant_tenant_status_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_kubernetes_abstract_daemon_set.go b/model_kubernetes_abstract_daemon_set.go index dea5dde6c0..d9b262675a 100644 --- a/model_kubernetes_abstract_daemon_set.go +++ b/model_kubernetes_abstract_daemon_set.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -83,6 +83,10 @@ func (o *KubernetesAbstractDaemonSet) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -92,11 +96,23 @@ func (o *KubernetesAbstractDaemonSet) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type KubernetesAbstractDaemonSetWithoutEmbeddedStruct struct { } diff --git a/model_kubernetes_abstract_deployment.go b/model_kubernetes_abstract_deployment.go index bc7af1e078..2338c03644 100644 --- a/model_kubernetes_abstract_deployment.go +++ b/model_kubernetes_abstract_deployment.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -83,6 +83,10 @@ func (o *KubernetesAbstractDeployment) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -92,11 +96,23 @@ func (o *KubernetesAbstractDeployment) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type KubernetesAbstractDeploymentWithoutEmbeddedStruct struct { } diff --git a/model_kubernetes_abstract_ingress.go b/model_kubernetes_abstract_ingress.go index 64e796a558..4fe4313d1b 100644 --- a/model_kubernetes_abstract_ingress.go +++ b/model_kubernetes_abstract_ingress.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -83,6 +83,10 @@ func (o *KubernetesAbstractIngress) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -92,11 +96,23 @@ func (o *KubernetesAbstractIngress) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type KubernetesAbstractIngressWithoutEmbeddedStruct struct { } diff --git a/model_kubernetes_abstract_node.go b/model_kubernetes_abstract_node.go index 6100c1c581..56c668fdb4 100644 --- a/model_kubernetes_abstract_node.go +++ b/model_kubernetes_abstract_node.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -85,6 +85,11 @@ func (o *KubernetesAbstractNode) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "kubernetes.Node" of the ClassId field. +func (o *KubernetesAbstractNode) GetDefaultClassId() interface{} { + return "kubernetes.Node" +} + // GetObjectType returns the ObjectType field value func (o *KubernetesAbstractNode) GetObjectType() string { if o == nil { @@ -109,6 +114,11 @@ func (o *KubernetesAbstractNode) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "kubernetes.Node" of the ObjectType field. +func (o *KubernetesAbstractNode) GetDefaultObjectType() interface{} { + return "kubernetes.Node" +} + // GetAnnotations returns the Annotations field value if set, zero value otherwise (both if not set or set to explicit null). func (o *KubernetesAbstractNode) GetAnnotations() interface{} { if o == nil { @@ -130,7 +140,7 @@ func (o *KubernetesAbstractNode) GetAnnotationsOk() (*interface{}, bool) { // HasAnnotations returns a boolean if a field has been set. func (o *KubernetesAbstractNode) HasAnnotations() bool { - if o != nil && IsNil(o.Annotations) { + if o != nil && !IsNil(o.Annotations) { return true } @@ -163,7 +173,7 @@ func (o *KubernetesAbstractNode) GetLabelsOk() (*interface{}, bool) { // HasLabels returns a boolean if a field has been set. func (o *KubernetesAbstractNode) HasLabels() bool { - if o != nil && IsNil(o.Labels) { + if o != nil && !IsNil(o.Labels) { return true } @@ -196,7 +206,7 @@ func (o *KubernetesAbstractNode) GetTaintsOk() ([]KubernetesTaint, bool) { // HasTaints returns a boolean if a field has been set. func (o *KubernetesAbstractNode) HasTaints() bool { - if o != nil && IsNil(o.Taints) { + if o != nil && !IsNil(o.Taints) { return true } @@ -226,7 +236,13 @@ func (o KubernetesAbstractNode) ToMap() (map[string]interface{}, error) { if errKubernetesKubernetesResource != nil { return map[string]interface{}{}, errKubernetesKubernetesResource } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.Annotations != nil { toSerialize["Annotations"] = o.Annotations @@ -254,6 +270,13 @@ func (o *KubernetesAbstractNode) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -263,11 +286,23 @@ func (o *KubernetesAbstractNode) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type KubernetesAbstractNodeWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. The enum values provides the list of concrete types that can be instantiated from this abstract type. ClassId string `json:"ClassId"` diff --git a/model_kubernetes_abstract_pod.go b/model_kubernetes_abstract_pod.go index 3d08efb289..e4277bc7c5 100644 --- a/model_kubernetes_abstract_pod.go +++ b/model_kubernetes_abstract_pod.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -83,6 +83,10 @@ func (o *KubernetesAbstractPod) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -92,11 +96,23 @@ func (o *KubernetesAbstractPod) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type KubernetesAbstractPodWithoutEmbeddedStruct struct { } diff --git a/model_kubernetes_abstract_service.go b/model_kubernetes_abstract_service.go index 9326b754f5..1313dbe92f 100644 --- a/model_kubernetes_abstract_service.go +++ b/model_kubernetes_abstract_service.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -83,6 +83,10 @@ func (o *KubernetesAbstractService) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -92,11 +96,23 @@ func (o *KubernetesAbstractService) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type KubernetesAbstractServiceWithoutEmbeddedStruct struct { } diff --git a/model_kubernetes_abstract_stateful_set.go b/model_kubernetes_abstract_stateful_set.go index 7c10ccb1ff..9eb1daee64 100644 --- a/model_kubernetes_abstract_stateful_set.go +++ b/model_kubernetes_abstract_stateful_set.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -83,6 +83,10 @@ func (o *KubernetesAbstractStatefulSet) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -92,11 +96,23 @@ func (o *KubernetesAbstractStatefulSet) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type KubernetesAbstractStatefulSetWithoutEmbeddedStruct struct { } diff --git a/model_kubernetes_aci_cni_apic.go b/model_kubernetes_aci_cni_apic.go index e6b01caa10..33ddd9e620 100644 --- a/model_kubernetes_aci_cni_apic.go +++ b/model_kubernetes_aci_cni_apic.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -88,6 +88,11 @@ func (o *KubernetesAciCniApic) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "kubernetes.AciCniApic" of the ClassId field. +func (o *KubernetesAciCniApic) GetDefaultClassId() interface{} { + return "kubernetes.AciCniApic" +} + // GetObjectType returns the ObjectType field value func (o *KubernetesAciCniApic) GetObjectType() string { if o == nil { @@ -112,6 +117,11 @@ func (o *KubernetesAciCniApic) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "kubernetes.AciCniApic" of the ObjectType field. +func (o *KubernetesAciCniApic) GetDefaultObjectType() interface{} { + return "kubernetes.AciCniApic" +} + // GetAssetApicMoid returns the AssetApicMoid field value if set, zero value otherwise. func (o *KubernetesAciCniApic) GetAssetApicMoid() string { if o == nil || IsNil(o.AssetApicMoid) { @@ -197,7 +207,7 @@ func (o *KubernetesAciCniApic) GetAciCniProfilesOk() ([]KubernetesAciCniProfileR // HasAciCniProfiles returns a boolean if a field has been set. func (o *KubernetesAciCniApic) HasAciCniProfiles() bool { - if o != nil && IsNil(o.AciCniProfiles) { + if o != nil && !IsNil(o.AciCniProfiles) { return true } @@ -313,7 +323,13 @@ func (o KubernetesAciCniApic) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.AssetApicMoid) { toSerialize["AssetApicMoid"] = o.AssetApicMoid @@ -347,6 +363,13 @@ func (o *KubernetesAciCniApic) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -356,11 +379,23 @@ func (o *KubernetesAciCniApic) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type KubernetesAciCniApicWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_kubernetes_aci_cni_apic_list.go b/model_kubernetes_aci_cni_apic_list.go index 36cae05c5b..fc7ed0cc3a 100644 --- a/model_kubernetes_aci_cni_apic_list.go +++ b/model_kubernetes_aci_cni_apic_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *KubernetesAciCniApicList) GetResultsOk() ([]KubernetesAciCniApic, bool) // HasResults returns a boolean if a field has been set. func (o *KubernetesAciCniApicList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *KubernetesAciCniApicList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *KubernetesAciCniApicList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type KubernetesAciCniApicListWithoutEmbeddedStruct struct { // The total number of 'kubernetes.AciCniApic' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_kubernetes_aci_cni_apic_response.go b/model_kubernetes_aci_cni_apic_response.go index 5040b4832a..2b38058b5c 100644 --- a/model_kubernetes_aci_cni_apic_response.go +++ b/model_kubernetes_aci_cni_apic_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_kubernetes_aci_cni_profile.go b/model_kubernetes_aci_cni_profile.go index 73c605a137..dbd3c8f053 100644 --- a/model_kubernetes_aci_cni_profile.go +++ b/model_kubernetes_aci_cni_profile.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -29,23 +29,23 @@ type KubernetesAciCniProfile struct { // The fully-qualified name of the instantiated, concrete type. The value should be the same as the 'ClassId' property. ObjectType string `json:"ObjectType"` // Name of ACI AAEP (Attachable Access Entity Profile) to be used for all Kubernetes clusters using this policy. - AaepName *string `json:"AaepName,omitempty"` + AaepName *string `json:"AaepName,omitempty" validate:"regexp=^$|^[a-zA-Z0-9][a-zA-Z0-9-_]*[a-zA-Z0-9]$"` // Start of range of IP subnets for external services with dynamic IP allocation for use by Kubernetes clusters using this ACI CNI policy. - ExtSvcDynSubnetStart *string `json:"ExtSvcDynSubnetStart,omitempty"` + ExtSvcDynSubnetStart *string `json:"ExtSvcDynSubnetStart,omitempty" validate:"regexp=^$|^([1-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5]).([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5]).([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5]).([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\/([0-9]|[1-2][0-9]|3[0-2])$"` // Start of range of IP subnets for external services with static IP allocation for use by Kubernetes clusters using this ACI CNI policy. - ExtSvcStaticSubnetStart *string `json:"ExtSvcStaticSubnetStart,omitempty"` + ExtSvcStaticSubnetStart *string `json:"ExtSvcStaticSubnetStart,omitempty" validate:"regexp=^$|^([1-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5]).([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5]).([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5]).([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\/([0-9]|[1-2][0-9]|3[0-2])$"` // Value of ACI infrastructuere VLAN ID for the ACI fabric. InfraVlanId *int64 `json:"InfraVlanId,omitempty"` // Name of ACI L3Out network to be used for all Kubernetes clusters using this policy. - L3OutNetworkName *string `json:"L3OutNetworkName,omitempty"` + L3OutNetworkName *string `json:"L3OutNetworkName,omitempty" validate:"regexp=^$|^[a-zA-Z0-9][a-zA-Z0-9-_]*[a-zA-Z0-9]$"` // Name of ACI L3Out policy to be used for all Kubernetes clusters using this policy. - L3OutPolicyName *string `json:"L3OutPolicyName,omitempty"` + L3OutPolicyName *string `json:"L3OutPolicyName,omitempty" validate:"regexp=^$|^[a-zA-Z0-9][a-zA-Z0-9-_]*[a-zA-Z0-9]$"` // Tenant in ACI used by this L3Out and Common VRF. - L3OutTenant *string `json:"L3OutTenant,omitempty"` + L3OutTenant *string `json:"L3OutTenant,omitempty" validate:"regexp=^$|^[a-zA-Z0-9][a-zA-Z0-9-_]*[a-zA-Z0-9]$"` // VMM domain within which Kubernetes clusters using this policy are nested. - NestedVmmDomain *string `json:"NestedVmmDomain,omitempty"` + NestedVmmDomain *string `json:"NestedVmmDomain,omitempty" validate:"regexp=^$|^[a-zA-Z0-9][a-zA-Z0-9-_]*[a-zA-Z0-9]$"` // Start of range of ACI Node Service IP subnets to use by Kubernetes clusters using this ACI CNI policy This is used for the service graph which is used for ACI PBR based load balancing. - NodeSvcSubnetStart *string `json:"NodeSvcSubnetStart,omitempty"` + NodeSvcSubnetStart *string `json:"NodeSvcSubnetStart,omitempty" validate:"regexp=^$|^([1-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5]).([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5]).([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5]).([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\/([0-9]|[1-2][0-9]|3[0-2])$"` // Ending value of VLAN range used to assign Node VLAN Ids for each Kubernetes cluster using this policy. NodeVlanRangeEnd *int64 `json:"NodeVlanRangeEnd,omitempty"` // Starting value of VLAN range used to assign Node VLAN Ids for each Kubernetes cluster using this policy. @@ -53,13 +53,13 @@ type KubernetesAciCniProfile struct { // Number of k8s clusters currently using this ACI CNI profile. NumberOfKubernetesClusters *int64 `json:"NumberOfKubernetesClusters,omitempty"` // Range of IP Multicast addresses to be used by the Opflex protocol for Kubernetes clusters using this policy. - OpflexMulticastAddressRange *string `json:"OpflexMulticastAddressRange,omitempty"` + OpflexMulticastAddressRange *string `json:"OpflexMulticastAddressRange,omitempty" validate:"regexp=^$|^([1-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5]).([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5]).([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5]).([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\/([0-9]|[1-2][0-9]|3[0-2])$"` // Start of range of Kubernetes pod IP subnets to use by Kubernetes clusters using this ACI CNI policy This should be a /8 IP subnet so that multiple /16 subnets can be assigned for pod subnets of Kubernetes clusters using this profile. - PodSubnetStart *string `json:"PodSubnetStart,omitempty"` + PodSubnetStart *string `json:"PodSubnetStart,omitempty" validate:"regexp=^$|^([1-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5]).([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5]).([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5]).([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\/([0-9]|[1-2][0-9]|3[0-2])$"` // Start of range of Kubernetes Service IP subnets to use by Kubernetes clusters using this ACI CNI policy Currently this is fixed internally and read-only. - SvcSubnetStart *string `json:"SvcSubnetStart,omitempty"` + SvcSubnetStart *string `json:"SvcSubnetStart,omitempty" validate:"regexp=^$|^([1-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5]).([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5]).([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5]).([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\/([0-9]|[1-2][0-9]|3[0-2])$"` // VRF (Virtual Routing and Forwarding) domain to be used within ACI fabric by all k8s clusters using this policy. - Vrf *string `json:"Vrf,omitempty"` + Vrf *string `json:"Vrf,omitempty" validate:"regexp=^$|^[a-zA-Z0-9][a-zA-Z0-9-_]*[a-zA-Z0-9]$"` // An array of relationships to kubernetesAciCniTenantClusterAllocation resources. ClusterAciAllocations []KubernetesAciCniTenantClusterAllocationRelationship `json:"ClusterAciAllocations,omitempty"` // An array of relationships to kubernetesClusterProfile resources. @@ -120,6 +120,11 @@ func (o *KubernetesAciCniProfile) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "kubernetes.AciCniProfile" of the ClassId field. +func (o *KubernetesAciCniProfile) GetDefaultClassId() interface{} { + return "kubernetes.AciCniProfile" +} + // GetObjectType returns the ObjectType field value func (o *KubernetesAciCniProfile) GetObjectType() string { if o == nil { @@ -144,6 +149,11 @@ func (o *KubernetesAciCniProfile) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "kubernetes.AciCniProfile" of the ObjectType field. +func (o *KubernetesAciCniProfile) GetDefaultObjectType() interface{} { + return "kubernetes.AciCniProfile" +} + // GetAaepName returns the AaepName field value if set, zero value otherwise. func (o *KubernetesAciCniProfile) GetAaepName() string { if o == nil || IsNil(o.AaepName) { @@ -677,7 +687,7 @@ func (o *KubernetesAciCniProfile) GetClusterAciAllocationsOk() ([]KubernetesAciC // HasClusterAciAllocations returns a boolean if a field has been set. func (o *KubernetesAciCniProfile) HasClusterAciAllocations() bool { - if o != nil && IsNil(o.ClusterAciAllocations) { + if o != nil && !IsNil(o.ClusterAciAllocations) { return true } @@ -710,7 +720,7 @@ func (o *KubernetesAciCniProfile) GetClusterProfilesOk() ([]KubernetesClusterPro // HasClusterProfiles returns a boolean if a field has been set. func (o *KubernetesAciCniProfile) HasClusterProfiles() bool { - if o != nil && IsNil(o.ClusterProfiles) { + if o != nil && !IsNil(o.ClusterProfiles) { return true } @@ -826,7 +836,13 @@ func (o KubernetesAciCniProfile) ToMap() (map[string]interface{}, error) { if errPolicyAbstractProfile != nil { return map[string]interface{}{}, errPolicyAbstractProfile } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.AaepName) { toSerialize["AaepName"] = o.AaepName @@ -905,6 +921,13 @@ func (o *KubernetesAciCniProfile) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -914,34 +937,46 @@ func (o *KubernetesAciCniProfile) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type KubernetesAciCniProfileWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` // The fully-qualified name of the instantiated, concrete type. The value should be the same as the 'ClassId' property. ObjectType string `json:"ObjectType"` // Name of ACI AAEP (Attachable Access Entity Profile) to be used for all Kubernetes clusters using this policy. - AaepName *string `json:"AaepName,omitempty"` + AaepName *string `json:"AaepName,omitempty" validate:"regexp=^$|^[a-zA-Z0-9][a-zA-Z0-9-_]*[a-zA-Z0-9]$"` // Start of range of IP subnets for external services with dynamic IP allocation for use by Kubernetes clusters using this ACI CNI policy. - ExtSvcDynSubnetStart *string `json:"ExtSvcDynSubnetStart,omitempty"` + ExtSvcDynSubnetStart *string `json:"ExtSvcDynSubnetStart,omitempty" validate:"regexp=^$|^([1-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5]).([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5]).([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5]).([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\/([0-9]|[1-2][0-9]|3[0-2])$"` // Start of range of IP subnets for external services with static IP allocation for use by Kubernetes clusters using this ACI CNI policy. - ExtSvcStaticSubnetStart *string `json:"ExtSvcStaticSubnetStart,omitempty"` + ExtSvcStaticSubnetStart *string `json:"ExtSvcStaticSubnetStart,omitempty" validate:"regexp=^$|^([1-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5]).([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5]).([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5]).([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\/([0-9]|[1-2][0-9]|3[0-2])$"` // Value of ACI infrastructuere VLAN ID for the ACI fabric. InfraVlanId *int64 `json:"InfraVlanId,omitempty"` // Name of ACI L3Out network to be used for all Kubernetes clusters using this policy. - L3OutNetworkName *string `json:"L3OutNetworkName,omitempty"` + L3OutNetworkName *string `json:"L3OutNetworkName,omitempty" validate:"regexp=^$|^[a-zA-Z0-9][a-zA-Z0-9-_]*[a-zA-Z0-9]$"` // Name of ACI L3Out policy to be used for all Kubernetes clusters using this policy. - L3OutPolicyName *string `json:"L3OutPolicyName,omitempty"` + L3OutPolicyName *string `json:"L3OutPolicyName,omitempty" validate:"regexp=^$|^[a-zA-Z0-9][a-zA-Z0-9-_]*[a-zA-Z0-9]$"` // Tenant in ACI used by this L3Out and Common VRF. - L3OutTenant *string `json:"L3OutTenant,omitempty"` + L3OutTenant *string `json:"L3OutTenant,omitempty" validate:"regexp=^$|^[a-zA-Z0-9][a-zA-Z0-9-_]*[a-zA-Z0-9]$"` // VMM domain within which Kubernetes clusters using this policy are nested. - NestedVmmDomain *string `json:"NestedVmmDomain,omitempty"` + NestedVmmDomain *string `json:"NestedVmmDomain,omitempty" validate:"regexp=^$|^[a-zA-Z0-9][a-zA-Z0-9-_]*[a-zA-Z0-9]$"` // Start of range of ACI Node Service IP subnets to use by Kubernetes clusters using this ACI CNI policy This is used for the service graph which is used for ACI PBR based load balancing. - NodeSvcSubnetStart *string `json:"NodeSvcSubnetStart,omitempty"` + NodeSvcSubnetStart *string `json:"NodeSvcSubnetStart,omitempty" validate:"regexp=^$|^([1-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5]).([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5]).([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5]).([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\/([0-9]|[1-2][0-9]|3[0-2])$"` // Ending value of VLAN range used to assign Node VLAN Ids for each Kubernetes cluster using this policy. NodeVlanRangeEnd *int64 `json:"NodeVlanRangeEnd,omitempty"` // Starting value of VLAN range used to assign Node VLAN Ids for each Kubernetes cluster using this policy. @@ -949,13 +984,13 @@ func (o *KubernetesAciCniProfile) UnmarshalJSON(data []byte) (err error) { // Number of k8s clusters currently using this ACI CNI profile. NumberOfKubernetesClusters *int64 `json:"NumberOfKubernetesClusters,omitempty"` // Range of IP Multicast addresses to be used by the Opflex protocol for Kubernetes clusters using this policy. - OpflexMulticastAddressRange *string `json:"OpflexMulticastAddressRange,omitempty"` + OpflexMulticastAddressRange *string `json:"OpflexMulticastAddressRange,omitempty" validate:"regexp=^$|^([1-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5]).([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5]).([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5]).([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\/([0-9]|[1-2][0-9]|3[0-2])$"` // Start of range of Kubernetes pod IP subnets to use by Kubernetes clusters using this ACI CNI policy This should be a /8 IP subnet so that multiple /16 subnets can be assigned for pod subnets of Kubernetes clusters using this profile. - PodSubnetStart *string `json:"PodSubnetStart,omitempty"` + PodSubnetStart *string `json:"PodSubnetStart,omitempty" validate:"regexp=^$|^([1-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5]).([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5]).([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5]).([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\/([0-9]|[1-2][0-9]|3[0-2])$"` // Start of range of Kubernetes Service IP subnets to use by Kubernetes clusters using this ACI CNI policy Currently this is fixed internally and read-only. - SvcSubnetStart *string `json:"SvcSubnetStart,omitempty"` + SvcSubnetStart *string `json:"SvcSubnetStart,omitempty" validate:"regexp=^$|^([1-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5]).([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5]).([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5]).([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\/([0-9]|[1-2][0-9]|3[0-2])$"` // VRF (Virtual Routing and Forwarding) domain to be used within ACI fabric by all k8s clusters using this policy. - Vrf *string `json:"Vrf,omitempty"` + Vrf *string `json:"Vrf,omitempty" validate:"regexp=^$|^[a-zA-Z0-9][a-zA-Z0-9-_]*[a-zA-Z0-9]$"` // An array of relationships to kubernetesAciCniTenantClusterAllocation resources. ClusterAciAllocations []KubernetesAciCniTenantClusterAllocationRelationship `json:"ClusterAciAllocations,omitempty"` // An array of relationships to kubernetesClusterProfile resources. diff --git a/model_kubernetes_aci_cni_profile_list.go b/model_kubernetes_aci_cni_profile_list.go index 2060b4e2e8..20464770e3 100644 --- a/model_kubernetes_aci_cni_profile_list.go +++ b/model_kubernetes_aci_cni_profile_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *KubernetesAciCniProfileList) GetResultsOk() ([]KubernetesAciCniProfile, // HasResults returns a boolean if a field has been set. func (o *KubernetesAciCniProfileList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *KubernetesAciCniProfileList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *KubernetesAciCniProfileList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type KubernetesAciCniProfileListWithoutEmbeddedStruct struct { // The total number of 'kubernetes.AciCniProfile' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_kubernetes_aci_cni_profile_relationship.go b/model_kubernetes_aci_cni_profile_relationship.go index 96339bfca2..ec231c15fe 100644 --- a/model_kubernetes_aci_cni_profile_relationship.go +++ b/model_kubernetes_aci_cni_profile_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_kubernetes_aci_cni_profile_response.go b/model_kubernetes_aci_cni_profile_response.go index 09ff52d41b..01ebaedab7 100644 --- a/model_kubernetes_aci_cni_profile_response.go +++ b/model_kubernetes_aci_cni_profile_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_kubernetes_aci_cni_tenant_cluster_allocation.go b/model_kubernetes_aci_cni_tenant_cluster_allocation.go index f893663162..565062d4d8 100644 --- a/model_kubernetes_aci_cni_tenant_cluster_allocation.go +++ b/model_kubernetes_aci_cni_tenant_cluster_allocation.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -29,13 +29,13 @@ type KubernetesAciCniTenantClusterAllocation struct { // The fully-qualified name of the instantiated, concrete type. The value should be the same as the 'ClassId' property. ObjectType string `json:"ObjectType"` // CIDR allocated for ACI node service IPs in this tenant cluster. - NodeSvcIpSubnet *string `json:"NodeSvcIpSubnet,omitempty"` + NodeSvcIpSubnet *string `json:"NodeSvcIpSubnet,omitempty" validate:"regexp=^$|^([1-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5]).([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5]).([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5]).([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\/([0-9]|[1-2][0-9]|3[0-2])$"` // CIDR allocated for pod IPs in this tenant cluster. - PodIpSubnet *string `json:"PodIpSubnet,omitempty"` + PodIpSubnet *string `json:"PodIpSubnet,omitempty" validate:"regexp=^$|^([1-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5]).([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5]).([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5]).([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\/([0-9]|[1-2][0-9]|3[0-2])$"` // End of VLAN range allocated to this tenant cluster. - VlanEnd *string `json:"VlanEnd,omitempty"` + VlanEnd *string `json:"VlanEnd,omitempty" validate:"regexp=^$|^([1-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5]).([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5]).([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5]).([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\/([0-9]|[1-2][0-9]|3[0-2])$"` // Start of VLAN range allocated to this tenant cluster. - VlanStart *string `json:"VlanStart,omitempty"` + VlanStart *string `json:"VlanStart,omitempty" validate:"regexp=^$|^([1-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5]).([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5]).([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5]).([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\/([0-9]|[1-2][0-9]|3[0-2])$"` Organization NullableOrganizationOrganizationRelationship `json:"Organization,omitempty"` AdditionalProperties map[string]interface{} } @@ -89,6 +89,11 @@ func (o *KubernetesAciCniTenantClusterAllocation) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "kubernetes.AciCniTenantClusterAllocation" of the ClassId field. +func (o *KubernetesAciCniTenantClusterAllocation) GetDefaultClassId() interface{} { + return "kubernetes.AciCniTenantClusterAllocation" +} + // GetObjectType returns the ObjectType field value func (o *KubernetesAciCniTenantClusterAllocation) GetObjectType() string { if o == nil { @@ -113,6 +118,11 @@ func (o *KubernetesAciCniTenantClusterAllocation) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "kubernetes.AciCniTenantClusterAllocation" of the ObjectType field. +func (o *KubernetesAciCniTenantClusterAllocation) GetDefaultObjectType() interface{} { + return "kubernetes.AciCniTenantClusterAllocation" +} + // GetNodeSvcIpSubnet returns the NodeSvcIpSubnet field value if set, zero value otherwise. func (o *KubernetesAciCniTenantClusterAllocation) GetNodeSvcIpSubnet() string { if o == nil || IsNil(o.NodeSvcIpSubnet) { @@ -302,7 +312,13 @@ func (o KubernetesAciCniTenantClusterAllocation) ToMap() (map[string]interface{} if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.NodeSvcIpSubnet) { toSerialize["NodeSvcIpSubnet"] = o.NodeSvcIpSubnet @@ -336,6 +352,13 @@ func (o *KubernetesAciCniTenantClusterAllocation) UnmarshalJSON(data []byte) (er "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -345,24 +368,36 @@ func (o *KubernetesAciCniTenantClusterAllocation) UnmarshalJSON(data []byte) (er } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type KubernetesAciCniTenantClusterAllocationWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` // The fully-qualified name of the instantiated, concrete type. The value should be the same as the 'ClassId' property. ObjectType string `json:"ObjectType"` // CIDR allocated for ACI node service IPs in this tenant cluster. - NodeSvcIpSubnet *string `json:"NodeSvcIpSubnet,omitempty"` + NodeSvcIpSubnet *string `json:"NodeSvcIpSubnet,omitempty" validate:"regexp=^$|^([1-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5]).([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5]).([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5]).([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\/([0-9]|[1-2][0-9]|3[0-2])$"` // CIDR allocated for pod IPs in this tenant cluster. - PodIpSubnet *string `json:"PodIpSubnet,omitempty"` + PodIpSubnet *string `json:"PodIpSubnet,omitempty" validate:"regexp=^$|^([1-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5]).([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5]).([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5]).([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\/([0-9]|[1-2][0-9]|3[0-2])$"` // End of VLAN range allocated to this tenant cluster. - VlanEnd *string `json:"VlanEnd,omitempty"` + VlanEnd *string `json:"VlanEnd,omitempty" validate:"regexp=^$|^([1-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5]).([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5]).([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5]).([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\/([0-9]|[1-2][0-9]|3[0-2])$"` // Start of VLAN range allocated to this tenant cluster. - VlanStart *string `json:"VlanStart,omitempty"` + VlanStart *string `json:"VlanStart,omitempty" validate:"regexp=^$|^([1-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5]).([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5]).([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5]).([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\/([0-9]|[1-2][0-9]|3[0-2])$"` Organization NullableOrganizationOrganizationRelationship `json:"Organization,omitempty"` } diff --git a/model_kubernetes_aci_cni_tenant_cluster_allocation_list.go b/model_kubernetes_aci_cni_tenant_cluster_allocation_list.go index 309eee3d83..93a170e22f 100644 --- a/model_kubernetes_aci_cni_tenant_cluster_allocation_list.go +++ b/model_kubernetes_aci_cni_tenant_cluster_allocation_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *KubernetesAciCniTenantClusterAllocationList) GetResultsOk() ([]Kubernet // HasResults returns a boolean if a field has been set. func (o *KubernetesAciCniTenantClusterAllocationList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *KubernetesAciCniTenantClusterAllocationList) UnmarshalJSON(data []byte) "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *KubernetesAciCniTenantClusterAllocationList) UnmarshalJSON(data []byte) } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type KubernetesAciCniTenantClusterAllocationListWithoutEmbeddedStruct struct { // The total number of 'kubernetes.AciCniTenantClusterAllocation' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_kubernetes_aci_cni_tenant_cluster_allocation_relationship.go b/model_kubernetes_aci_cni_tenant_cluster_allocation_relationship.go index 9011e3d85f..3f2134d5ce 100644 --- a/model_kubernetes_aci_cni_tenant_cluster_allocation_relationship.go +++ b/model_kubernetes_aci_cni_tenant_cluster_allocation_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_kubernetes_aci_cni_tenant_cluster_allocation_response.go b/model_kubernetes_aci_cni_tenant_cluster_allocation_response.go index 3a706a36f1..20821ee8fa 100644 --- a/model_kubernetes_aci_cni_tenant_cluster_allocation_response.go +++ b/model_kubernetes_aci_cni_tenant_cluster_allocation_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_kubernetes_action_info.go b/model_kubernetes_action_info.go index be3423b774..47dea20500 100644 --- a/model_kubernetes_action_info.go +++ b/model_kubernetes_action_info.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -90,6 +90,11 @@ func (o *KubernetesActionInfo) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "kubernetes.ActionInfo" of the ClassId field. +func (o *KubernetesActionInfo) GetDefaultClassId() interface{} { + return "kubernetes.ActionInfo" +} + // GetObjectType returns the ObjectType field value func (o *KubernetesActionInfo) GetObjectType() string { if o == nil { @@ -114,6 +119,11 @@ func (o *KubernetesActionInfo) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "kubernetes.ActionInfo" of the ObjectType field. +func (o *KubernetesActionInfo) GetDefaultObjectType() interface{} { + return "kubernetes.ActionInfo" +} + // GetFailureReason returns the FailureReason field value if set, zero value otherwise. func (o *KubernetesActionInfo) GetFailureReason() string { if o == nil || IsNil(o.FailureReason) { @@ -228,7 +238,13 @@ func (o KubernetesActionInfo) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.FailureReason) { toSerialize["FailureReason"] = o.FailureReason @@ -256,6 +272,13 @@ func (o *KubernetesActionInfo) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -265,11 +288,23 @@ func (o *KubernetesActionInfo) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type KubernetesActionInfoWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_kubernetes_addon.go b/model_kubernetes_addon.go index d13e1cdfe6..c7531efe7e 100644 --- a/model_kubernetes_addon.go +++ b/model_kubernetes_addon.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -84,6 +84,11 @@ func (o *KubernetesAddon) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "kubernetes.Addon" of the ClassId field. +func (o *KubernetesAddon) GetDefaultClassId() interface{} { + return "kubernetes.Addon" +} + // GetObjectType returns the ObjectType field value func (o *KubernetesAddon) GetObjectType() string { if o == nil { @@ -108,6 +113,11 @@ func (o *KubernetesAddon) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "kubernetes.Addon" of the ObjectType field. +func (o *KubernetesAddon) GetDefaultObjectType() interface{} { + return "kubernetes.Addon" +} + // GetAddonConfiguration returns the AddonConfiguration field value if set, zero value otherwise (both if not set or set to explicit null). func (o *KubernetesAddon) GetAddonConfiguration() KubernetesAddonConfiguration { if o == nil || IsNil(o.AddonConfiguration.Get()) { @@ -233,7 +243,13 @@ func (o KubernetesAddon) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.AddonConfiguration.IsSet() { toSerialize["AddonConfiguration"] = o.AddonConfiguration.Get() @@ -261,6 +277,13 @@ func (o *KubernetesAddon) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -270,11 +293,23 @@ func (o *KubernetesAddon) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type KubernetesAddonWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_kubernetes_addon_configuration.go b/model_kubernetes_addon_configuration.go index 40cd1271a3..3c6072f95c 100644 --- a/model_kubernetes_addon_configuration.go +++ b/model_kubernetes_addon_configuration.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -99,6 +99,11 @@ func (o *KubernetesAddonConfiguration) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "kubernetes.AddonConfiguration" of the ClassId field. +func (o *KubernetesAddonConfiguration) GetDefaultClassId() interface{} { + return "kubernetes.AddonConfiguration" +} + // GetObjectType returns the ObjectType field value func (o *KubernetesAddonConfiguration) GetObjectType() string { if o == nil { @@ -123,6 +128,11 @@ func (o *KubernetesAddonConfiguration) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "kubernetes.AddonConfiguration" of the ObjectType field. +func (o *KubernetesAddonConfiguration) GetDefaultObjectType() interface{} { + return "kubernetes.AddonConfiguration" +} + // GetInstallStrategy returns the InstallStrategy field value if set, zero value otherwise. func (o *KubernetesAddonConfiguration) GetInstallStrategy() string { if o == nil || IsNil(o.InstallStrategy) { @@ -176,7 +186,7 @@ func (o *KubernetesAddonConfiguration) GetOverrideSetsOk() ([]KubernetesKeyValue // HasOverrideSets returns a boolean if a field has been set. func (o *KubernetesAddonConfiguration) HasOverrideSets() bool { - if o != nil && IsNil(o.OverrideSets) { + if o != nil && !IsNil(o.OverrideSets) { return true } @@ -334,7 +344,13 @@ func (o KubernetesAddonConfiguration) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.InstallStrategy) { toSerialize["InstallStrategy"] = o.InstallStrategy @@ -371,6 +387,13 @@ func (o *KubernetesAddonConfiguration) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -380,11 +403,23 @@ func (o *KubernetesAddonConfiguration) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type KubernetesAddonConfigurationWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_kubernetes_addon_definition.go b/model_kubernetes_addon_definition.go index ac3b0e8915..2062573c40 100644 --- a/model_kubernetes_addon_definition.go +++ b/model_kubernetes_addon_definition.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -112,6 +112,11 @@ func (o *KubernetesAddonDefinition) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "kubernetes.AddonDefinition" of the ClassId field. +func (o *KubernetesAddonDefinition) GetDefaultClassId() interface{} { + return "kubernetes.AddonDefinition" +} + // GetObjectType returns the ObjectType field value func (o *KubernetesAddonDefinition) GetObjectType() string { if o == nil { @@ -136,6 +141,11 @@ func (o *KubernetesAddonDefinition) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "kubernetes.AddonDefinition" of the ObjectType field. +func (o *KubernetesAddonDefinition) GetDefaultObjectType() interface{} { + return "kubernetes.AddonDefinition" +} + // GetChartUrl returns the ChartUrl field value if set, zero value otherwise. func (o *KubernetesAddonDefinition) GetChartUrl() string { if o == nil || IsNil(o.ChartUrl) { @@ -381,7 +391,7 @@ func (o *KubernetesAddonDefinition) GetLabelsOk() ([]string, bool) { // HasLabels returns a boolean if a field has been set. func (o *KubernetesAddonDefinition) HasLabels() bool { - if o != nil && IsNil(o.Labels) { + if o != nil && !IsNil(o.Labels) { return true } @@ -478,7 +488,7 @@ func (o *KubernetesAddonDefinition) GetPlatformsOk() ([]string, bool) { // HasPlatforms returns a boolean if a field has been set. func (o *KubernetesAddonDefinition) HasPlatforms() bool { - if o != nil && IsNil(o.Platforms) { + if o != nil && !IsNil(o.Platforms) { return true } @@ -626,7 +636,13 @@ func (o KubernetesAddonDefinition) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.ChartUrl) { toSerialize["ChartUrl"] = o.ChartUrl @@ -687,6 +703,13 @@ func (o *KubernetesAddonDefinition) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -696,11 +719,23 @@ func (o *KubernetesAddonDefinition) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type KubernetesAddonDefinitionWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_kubernetes_addon_definition_list.go b/model_kubernetes_addon_definition_list.go index 2f0c2465dc..96cf1b55be 100644 --- a/model_kubernetes_addon_definition_list.go +++ b/model_kubernetes_addon_definition_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *KubernetesAddonDefinitionList) GetResultsOk() ([]KubernetesAddonDefinit // HasResults returns a boolean if a field has been set. func (o *KubernetesAddonDefinitionList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *KubernetesAddonDefinitionList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *KubernetesAddonDefinitionList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type KubernetesAddonDefinitionListWithoutEmbeddedStruct struct { // The total number of 'kubernetes.AddonDefinition' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_kubernetes_addon_definition_relationship.go b/model_kubernetes_addon_definition_relationship.go index ce679b169a..808c8875c3 100644 --- a/model_kubernetes_addon_definition_relationship.go +++ b/model_kubernetes_addon_definition_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_kubernetes_addon_definition_response.go b/model_kubernetes_addon_definition_response.go index a903cbc744..1212608142 100644 --- a/model_kubernetes_addon_definition_response.go +++ b/model_kubernetes_addon_definition_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_kubernetes_addon_policy.go b/model_kubernetes_addon_policy.go index 1eca17010e..ca439a3871 100644 --- a/model_kubernetes_addon_policy.go +++ b/model_kubernetes_addon_policy.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -83,6 +83,11 @@ func (o *KubernetesAddonPolicy) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "kubernetes.AddonPolicy" of the ClassId field. +func (o *KubernetesAddonPolicy) GetDefaultClassId() interface{} { + return "kubernetes.AddonPolicy" +} + // GetObjectType returns the ObjectType field value func (o *KubernetesAddonPolicy) GetObjectType() string { if o == nil { @@ -107,6 +112,11 @@ func (o *KubernetesAddonPolicy) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "kubernetes.AddonPolicy" of the ObjectType field. +func (o *KubernetesAddonPolicy) GetDefaultObjectType() interface{} { + return "kubernetes.AddonPolicy" +} + // GetAddonConfiguration returns the AddonConfiguration field value if set, zero value otherwise (both if not set or set to explicit null). func (o *KubernetesAddonPolicy) GetAddonConfiguration() KubernetesAddonConfiguration { if o == nil || IsNil(o.AddonConfiguration.Get()) { @@ -254,7 +264,13 @@ func (o KubernetesAddonPolicy) ToMap() (map[string]interface{}, error) { if errPolicyAbstractPolicy != nil { return map[string]interface{}{}, errPolicyAbstractPolicy } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.AddonConfiguration.IsSet() { toSerialize["AddonConfiguration"] = o.AddonConfiguration.Get() @@ -282,6 +298,13 @@ func (o *KubernetesAddonPolicy) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -291,11 +314,23 @@ func (o *KubernetesAddonPolicy) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type KubernetesAddonPolicyWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_kubernetes_addon_policy_list.go b/model_kubernetes_addon_policy_list.go index a2c58c92d1..0c0eb4890d 100644 --- a/model_kubernetes_addon_policy_list.go +++ b/model_kubernetes_addon_policy_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *KubernetesAddonPolicyList) GetResultsOk() ([]KubernetesAddonPolicy, boo // HasResults returns a boolean if a field has been set. func (o *KubernetesAddonPolicyList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *KubernetesAddonPolicyList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *KubernetesAddonPolicyList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type KubernetesAddonPolicyListWithoutEmbeddedStruct struct { // The total number of 'kubernetes.AddonPolicy' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_kubernetes_addon_policy_response.go b/model_kubernetes_addon_policy_response.go index 1b13ea028c..3e6537a093 100644 --- a/model_kubernetes_addon_policy_response.go +++ b/model_kubernetes_addon_policy_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_kubernetes_addon_repository.go b/model_kubernetes_addon_repository.go index 6277a2c1e2..15015f500d 100644 --- a/model_kubernetes_addon_repository.go +++ b/model_kubernetes_addon_repository.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -99,6 +99,11 @@ func (o *KubernetesAddonRepository) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "kubernetes.AddonRepository" of the ClassId field. +func (o *KubernetesAddonRepository) GetDefaultClassId() interface{} { + return "kubernetes.AddonRepository" +} + // GetObjectType returns the ObjectType field value func (o *KubernetesAddonRepository) GetObjectType() string { if o == nil { @@ -123,6 +128,11 @@ func (o *KubernetesAddonRepository) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "kubernetes.AddonRepository" of the ObjectType field. +func (o *KubernetesAddonRepository) GetDefaultObjectType() interface{} { + return "kubernetes.AddonRepository" +} + // GetCaCert returns the CaCert field value if set, zero value otherwise (both if not set or set to explicit null). func (o *KubernetesAddonRepository) GetCaCert() X509Certificate { if o == nil || IsNil(o.CaCert.Get()) { @@ -462,7 +472,13 @@ func (o KubernetesAddonRepository) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.CaCert.IsSet() { toSerialize["CaCert"] = o.CaCert.Get() @@ -508,6 +524,13 @@ func (o *KubernetesAddonRepository) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -517,11 +540,23 @@ func (o *KubernetesAddonRepository) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type KubernetesAddonRepositoryWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_kubernetes_addon_repository_list.go b/model_kubernetes_addon_repository_list.go index fa061eb6e8..ed93a40112 100644 --- a/model_kubernetes_addon_repository_list.go +++ b/model_kubernetes_addon_repository_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *KubernetesAddonRepositoryList) GetResultsOk() ([]KubernetesAddonReposit // HasResults returns a boolean if a field has been set. func (o *KubernetesAddonRepositoryList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *KubernetesAddonRepositoryList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *KubernetesAddonRepositoryList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type KubernetesAddonRepositoryListWithoutEmbeddedStruct struct { // The total number of 'kubernetes.AddonRepository' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_kubernetes_addon_repository_response.go b/model_kubernetes_addon_repository_response.go index 7ff5dab4e9..080863e856 100644 --- a/model_kubernetes_addon_repository_response.go +++ b/model_kubernetes_addon_repository_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_kubernetes_addon_version_reference.go b/model_kubernetes_addon_version_reference.go index 0fc1261728..ac9372eca5 100644 --- a/model_kubernetes_addon_version_reference.go +++ b/model_kubernetes_addon_version_reference.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -84,6 +84,11 @@ func (o *KubernetesAddonVersionReference) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "kubernetes.AddonVersionReference" of the ClassId field. +func (o *KubernetesAddonVersionReference) GetDefaultClassId() interface{} { + return "kubernetes.AddonVersionReference" +} + // GetObjectType returns the ObjectType field value func (o *KubernetesAddonVersionReference) GetObjectType() string { if o == nil { @@ -108,6 +113,11 @@ func (o *KubernetesAddonVersionReference) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "kubernetes.AddonVersionReference" of the ObjectType field. +func (o *KubernetesAddonVersionReference) GetDefaultObjectType() interface{} { + return "kubernetes.AddonVersionReference" +} + // GetName returns the Name field value if set, zero value otherwise. func (o *KubernetesAddonVersionReference) GetName() string { if o == nil || IsNil(o.Name) { @@ -190,7 +200,13 @@ func (o KubernetesAddonVersionReference) ToMap() (map[string]interface{}, error) if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Name) { toSerialize["Name"] = o.Name @@ -215,6 +231,13 @@ func (o *KubernetesAddonVersionReference) UnmarshalJSON(data []byte) (err error) "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -224,11 +247,23 @@ func (o *KubernetesAddonVersionReference) UnmarshalJSON(data []byte) (err error) } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type KubernetesAddonVersionReferenceWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_kubernetes_baremetal_network_info.go b/model_kubernetes_baremetal_network_info.go index 5a7f00bef8..52e745e11d 100644 --- a/model_kubernetes_baremetal_network_info.go +++ b/model_kubernetes_baremetal_network_info.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -82,6 +82,11 @@ func (o *KubernetesBaremetalNetworkInfo) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "kubernetes.BaremetalNetworkInfo" of the ClassId field. +func (o *KubernetesBaremetalNetworkInfo) GetDefaultClassId() interface{} { + return "kubernetes.BaremetalNetworkInfo" +} + // GetObjectType returns the ObjectType field value func (o *KubernetesBaremetalNetworkInfo) GetObjectType() string { if o == nil { @@ -106,6 +111,11 @@ func (o *KubernetesBaremetalNetworkInfo) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "kubernetes.BaremetalNetworkInfo" of the ObjectType field. +func (o *KubernetesBaremetalNetworkInfo) GetDefaultObjectType() interface{} { + return "kubernetes.BaremetalNetworkInfo" +} + // GetEthernets returns the Ethernets field value if set, zero value otherwise (both if not set or set to explicit null). func (o *KubernetesBaremetalNetworkInfo) GetEthernets() []KubernetesEthernet { if o == nil { @@ -127,7 +137,7 @@ func (o *KubernetesBaremetalNetworkInfo) GetEthernetsOk() ([]KubernetesEthernet, // HasEthernets returns a boolean if a field has been set. func (o *KubernetesBaremetalNetworkInfo) HasEthernets() bool { - if o != nil && IsNil(o.Ethernets) { + if o != nil && !IsNil(o.Ethernets) { return true } @@ -160,7 +170,7 @@ func (o *KubernetesBaremetalNetworkInfo) GetOvsbondsOk() ([]KubernetesOvsBond, b // HasOvsbonds returns a boolean if a field has been set. func (o *KubernetesBaremetalNetworkInfo) HasOvsbonds() bool { - if o != nil && IsNil(o.Ovsbonds) { + if o != nil && !IsNil(o.Ovsbonds) { return true } @@ -190,7 +200,13 @@ func (o KubernetesBaremetalNetworkInfo) ToMap() (map[string]interface{}, error) if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.Ethernets != nil { toSerialize["Ethernets"] = o.Ethernets @@ -215,6 +231,13 @@ func (o *KubernetesBaremetalNetworkInfo) UnmarshalJSON(data []byte) (err error) "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -224,11 +247,23 @@ func (o *KubernetesBaremetalNetworkInfo) UnmarshalJSON(data []byte) (err error) } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type KubernetesBaremetalNetworkInfoWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_kubernetes_baremetal_node_profile.go b/model_kubernetes_baremetal_node_profile.go index bdecbbfa63..2da77d6c19 100644 --- a/model_kubernetes_baremetal_node_profile.go +++ b/model_kubernetes_baremetal_node_profile.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -90,6 +90,11 @@ func (o *KubernetesBaremetalNodeProfile) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "kubernetes.BaremetalNodeProfile" of the ClassId field. +func (o *KubernetesBaremetalNodeProfile) GetDefaultClassId() interface{} { + return "kubernetes.BaremetalNodeProfile" +} + // GetObjectType returns the ObjectType field value func (o *KubernetesBaremetalNodeProfile) GetObjectType() string { if o == nil { @@ -114,6 +119,11 @@ func (o *KubernetesBaremetalNodeProfile) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "kubernetes.BaremetalNodeProfile" of the ObjectType field. +func (o *KubernetesBaremetalNodeProfile) GetDefaultObjectType() interface{} { + return "kubernetes.BaremetalNodeProfile" +} + // GetKubernetesNic returns the KubernetesNic field value if set, zero value otherwise. func (o *KubernetesBaremetalNodeProfile) GetKubernetesNic() string { if o == nil || IsNil(o.KubernetesNic) { @@ -250,7 +260,13 @@ func (o KubernetesBaremetalNodeProfile) ToMap() (map[string]interface{}, error) if errKubernetesNodeProfile != nil { return map[string]interface{}{}, errKubernetesNodeProfile } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.KubernetesNic) { toSerialize["KubernetesNic"] = o.KubernetesNic @@ -278,6 +294,13 @@ func (o *KubernetesBaremetalNodeProfile) UnmarshalJSON(data []byte) (err error) "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -287,11 +310,23 @@ func (o *KubernetesBaremetalNodeProfile) UnmarshalJSON(data []byte) (err error) } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type KubernetesBaremetalNodeProfileWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_kubernetes_baremetal_node_profile_list.go b/model_kubernetes_baremetal_node_profile_list.go index 3216bde525..ec79803f42 100644 --- a/model_kubernetes_baremetal_node_profile_list.go +++ b/model_kubernetes_baremetal_node_profile_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *KubernetesBaremetalNodeProfileList) GetResultsOk() ([]KubernetesBaremet // HasResults returns a boolean if a field has been set. func (o *KubernetesBaremetalNodeProfileList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *KubernetesBaremetalNodeProfileList) UnmarshalJSON(data []byte) (err err "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *KubernetesBaremetalNodeProfileList) UnmarshalJSON(data []byte) (err err } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type KubernetesBaremetalNodeProfileListWithoutEmbeddedStruct struct { // The total number of 'kubernetes.BaremetalNodeProfile' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_kubernetes_baremetal_node_profile_response.go b/model_kubernetes_baremetal_node_profile_response.go index d77a8c771f..69421aabab 100644 --- a/model_kubernetes_baremetal_node_profile_response.go +++ b/model_kubernetes_baremetal_node_profile_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_kubernetes_base_gpu_product.go b/model_kubernetes_base_gpu_product.go index 77fb6ad60a..6e59e019f2 100644 --- a/model_kubernetes_base_gpu_product.go +++ b/model_kubernetes_base_gpu_product.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -82,6 +82,11 @@ func (o *KubernetesBaseGpuProduct) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "kubernetes.NvidiaGpuProduct" of the ClassId field. +func (o *KubernetesBaseGpuProduct) GetDefaultClassId() interface{} { + return "kubernetes.NvidiaGpuProduct" +} + // GetObjectType returns the ObjectType field value func (o *KubernetesBaseGpuProduct) GetObjectType() string { if o == nil { @@ -106,6 +111,11 @@ func (o *KubernetesBaseGpuProduct) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "kubernetes.NvidiaGpuProduct" of the ObjectType field. +func (o *KubernetesBaseGpuProduct) GetDefaultObjectType() interface{} { + return "kubernetes.NvidiaGpuProduct" +} + // GetMemorySize returns the MemorySize field value if set, zero value otherwise. func (o *KubernetesBaseGpuProduct) GetMemorySize() int64 { if o == nil || IsNil(o.MemorySize) { @@ -156,7 +166,13 @@ func (o KubernetesBaseGpuProduct) ToMap() (map[string]interface{}, error) { if errKubernetesBaseProduct != nil { return map[string]interface{}{}, errKubernetesBaseProduct } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.MemorySize) { toSerialize["MemorySize"] = o.MemorySize @@ -178,6 +194,13 @@ func (o *KubernetesBaseGpuProduct) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -187,11 +210,23 @@ func (o *KubernetesBaseGpuProduct) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type KubernetesBaseGpuProductWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. The enum values provides the list of concrete types that can be instantiated from this abstract type. ClassId string `json:"ClassId"` diff --git a/model_kubernetes_base_infrastructure_provider.go b/model_kubernetes_base_infrastructure_provider.go index 265df80a31..c55f47bf97 100644 --- a/model_kubernetes_base_infrastructure_provider.go +++ b/model_kubernetes_base_infrastructure_provider.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -85,6 +85,11 @@ func (o *KubernetesBaseInfrastructureProvider) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "kubernetes.VirtualMachineInfrastructureProvider" of the ClassId field. +func (o *KubernetesBaseInfrastructureProvider) GetDefaultClassId() interface{} { + return "kubernetes.VirtualMachineInfrastructureProvider" +} + // GetObjectType returns the ObjectType field value func (o *KubernetesBaseInfrastructureProvider) GetObjectType() string { if o == nil { @@ -109,6 +114,11 @@ func (o *KubernetesBaseInfrastructureProvider) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "kubernetes.VirtualMachineInfrastructureProvider" of the ObjectType field. +func (o *KubernetesBaseInfrastructureProvider) GetDefaultObjectType() interface{} { + return "kubernetes.VirtualMachineInfrastructureProvider" +} + // GetDescription returns the Description field value if set, zero value otherwise. func (o *KubernetesBaseInfrastructureProvider) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -234,7 +244,13 @@ func (o KubernetesBaseInfrastructureProvider) ToMap() (map[string]interface{}, e if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Description) { toSerialize["Description"] = o.Description @@ -262,6 +278,13 @@ func (o *KubernetesBaseInfrastructureProvider) UnmarshalJSON(data []byte) (err e "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -271,11 +294,23 @@ func (o *KubernetesBaseInfrastructureProvider) UnmarshalJSON(data []byte) (err e } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type KubernetesBaseInfrastructureProviderWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. The enum values provides the list of concrete types that can be instantiated from this abstract type. ClassId string `json:"ClassId"` diff --git a/model_kubernetes_base_infrastructure_provider_relationship.go b/model_kubernetes_base_infrastructure_provider_relationship.go index 7f3a1a7355..c0adbdd537 100644 --- a/model_kubernetes_base_infrastructure_provider_relationship.go +++ b/model_kubernetes_base_infrastructure_provider_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_kubernetes_base_product.go b/model_kubernetes_base_product.go index 04fa517227..e9340309c7 100644 --- a/model_kubernetes_base_product.go +++ b/model_kubernetes_base_product.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -89,6 +89,11 @@ func (o *KubernetesBaseProduct) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "kubernetes.NvidiaGpuProduct" of the ClassId field. +func (o *KubernetesBaseProduct) GetDefaultClassId() interface{} { + return "kubernetes.NvidiaGpuProduct" +} + // GetObjectType returns the ObjectType field value func (o *KubernetesBaseProduct) GetObjectType() string { if o == nil { @@ -113,6 +118,11 @@ func (o *KubernetesBaseProduct) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "kubernetes.NvidiaGpuProduct" of the ObjectType field. +func (o *KubernetesBaseProduct) GetDefaultObjectType() interface{} { + return "kubernetes.NvidiaGpuProduct" +} + // GetDescription returns the Description field value if set, zero value otherwise. func (o *KubernetesBaseProduct) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -302,7 +312,13 @@ func (o KubernetesBaseProduct) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Description) { toSerialize["Description"] = o.Description @@ -336,6 +352,13 @@ func (o *KubernetesBaseProduct) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -345,11 +368,23 @@ func (o *KubernetesBaseProduct) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type KubernetesBaseProductWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. The enum values provides the list of concrete types that can be instantiated from this abstract type. ClassId string `json:"ClassId"` diff --git a/model_kubernetes_base_virtual_machine_infra_config.go b/model_kubernetes_base_virtual_machine_infra_config.go index d1cb764053..a25ec0d153 100644 --- a/model_kubernetes_base_virtual_machine_infra_config.go +++ b/model_kubernetes_base_virtual_machine_infra_config.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -82,6 +82,11 @@ func (o *KubernetesBaseVirtualMachineInfraConfig) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "kubernetes.EsxiVirtualMachineInfraConfig" of the ClassId field. +func (o *KubernetesBaseVirtualMachineInfraConfig) GetDefaultClassId() interface{} { + return "kubernetes.EsxiVirtualMachineInfraConfig" +} + // GetObjectType returns the ObjectType field value func (o *KubernetesBaseVirtualMachineInfraConfig) GetObjectType() string { if o == nil { @@ -106,6 +111,11 @@ func (o *KubernetesBaseVirtualMachineInfraConfig) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "kubernetes.EsxiVirtualMachineInfraConfig" of the ObjectType field. +func (o *KubernetesBaseVirtualMachineInfraConfig) GetDefaultObjectType() interface{} { + return "kubernetes.EsxiVirtualMachineInfraConfig" +} + // GetInterfaces returns the Interfaces field value if set, zero value otherwise (both if not set or set to explicit null). func (o *KubernetesBaseVirtualMachineInfraConfig) GetInterfaces() []string { if o == nil { @@ -127,7 +137,7 @@ func (o *KubernetesBaseVirtualMachineInfraConfig) GetInterfacesOk() ([]string, b // HasInterfaces returns a boolean if a field has been set. func (o *KubernetesBaseVirtualMachineInfraConfig) HasInterfaces() bool { - if o != nil && IsNil(o.Interfaces) { + if o != nil && !IsNil(o.Interfaces) { return true } @@ -160,7 +170,7 @@ func (o *KubernetesBaseVirtualMachineInfraConfig) GetNetworkInterfacesOk() ([]Ku // HasNetworkInterfaces returns a boolean if a field has been set. func (o *KubernetesBaseVirtualMachineInfraConfig) HasNetworkInterfaces() bool { - if o != nil && IsNil(o.NetworkInterfaces) { + if o != nil && !IsNil(o.NetworkInterfaces) { return true } @@ -190,7 +200,13 @@ func (o KubernetesBaseVirtualMachineInfraConfig) ToMap() (map[string]interface{} if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.Interfaces != nil { toSerialize["Interfaces"] = o.Interfaces @@ -215,6 +231,13 @@ func (o *KubernetesBaseVirtualMachineInfraConfig) UnmarshalJSON(data []byte) (er "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -224,11 +247,23 @@ func (o *KubernetesBaseVirtualMachineInfraConfig) UnmarshalJSON(data []byte) (er } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type KubernetesBaseVirtualMachineInfraConfigWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. The enum values provides the list of concrete types that can be instantiated from this abstract type. ClassId string `json:"ClassId"` diff --git a/model_kubernetes_calico_config.go b/model_kubernetes_calico_config.go index 9e956f213a..2cc935ab7e 100644 --- a/model_kubernetes_calico_config.go +++ b/model_kubernetes_calico_config.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -88,6 +88,11 @@ func (o *KubernetesCalicoConfig) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "kubernetes.CalicoConfig" of the ClassId field. +func (o *KubernetesCalicoConfig) GetDefaultClassId() interface{} { + return "kubernetes.CalicoConfig" +} + // GetObjectType returns the ObjectType field value func (o *KubernetesCalicoConfig) GetObjectType() string { if o == nil { @@ -112,6 +117,11 @@ func (o *KubernetesCalicoConfig) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "kubernetes.CalicoConfig" of the ObjectType field. +func (o *KubernetesCalicoConfig) GetDefaultObjectType() interface{} { + return "kubernetes.CalicoConfig" +} + // GetIpVersion returns the IpVersion field value if set, zero value otherwise. func (o *KubernetesCalicoConfig) GetIpVersion() string { if o == nil || IsNil(o.IpVersion) { @@ -194,7 +204,13 @@ func (o KubernetesCalicoConfig) ToMap() (map[string]interface{}, error) { if errKubernetesCniConfig != nil { return map[string]interface{}{}, errKubernetesCniConfig } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.IpVersion) { toSerialize["IpVersion"] = o.IpVersion @@ -219,6 +235,13 @@ func (o *KubernetesCalicoConfig) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -228,11 +251,23 @@ func (o *KubernetesCalicoConfig) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type KubernetesCalicoConfigWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_kubernetes_catalog.go b/model_kubernetes_catalog.go index 7cba6b784a..f48d9336da 100644 --- a/model_kubernetes_catalog.go +++ b/model_kubernetes_catalog.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -84,6 +84,11 @@ func (o *KubernetesCatalog) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "kubernetes.Catalog" of the ClassId field. +func (o *KubernetesCatalog) GetDefaultClassId() interface{} { + return "kubernetes.Catalog" +} + // GetObjectType returns the ObjectType field value func (o *KubernetesCatalog) GetObjectType() string { if o == nil { @@ -108,6 +113,11 @@ func (o *KubernetesCatalog) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "kubernetes.Catalog" of the ObjectType field. +func (o *KubernetesCatalog) GetDefaultObjectType() interface{} { + return "kubernetes.Catalog" +} + // GetName returns the Name field value if set, zero value otherwise. func (o *KubernetesCatalog) GetName() string { if o == nil || IsNil(o.Name) { @@ -244,7 +254,13 @@ func (o KubernetesCatalog) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Name) { toSerialize["Name"] = o.Name @@ -272,6 +288,13 @@ func (o *KubernetesCatalog) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -281,11 +304,23 @@ func (o *KubernetesCatalog) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type KubernetesCatalogWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_kubernetes_catalog_list.go b/model_kubernetes_catalog_list.go index f9a33af112..a19257ebb8 100644 --- a/model_kubernetes_catalog_list.go +++ b/model_kubernetes_catalog_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *KubernetesCatalogList) GetResultsOk() ([]KubernetesCatalog, bool) { // HasResults returns a boolean if a field has been set. func (o *KubernetesCatalogList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *KubernetesCatalogList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *KubernetesCatalogList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type KubernetesCatalogListWithoutEmbeddedStruct struct { // The total number of 'kubernetes.Catalog' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_kubernetes_catalog_relationship.go b/model_kubernetes_catalog_relationship.go index 7e985f0aa3..b2cedb8d26 100644 --- a/model_kubernetes_catalog_relationship.go +++ b/model_kubernetes_catalog_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_kubernetes_catalog_response.go b/model_kubernetes_catalog_response.go index d776063b88..65253d6a55 100644 --- a/model_kubernetes_catalog_response.go +++ b/model_kubernetes_catalog_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_kubernetes_cluster.go b/model_kubernetes_cluster.go index 720602b66e..25aa9896e9 100644 --- a/model_kubernetes_cluster.go +++ b/model_kubernetes_cluster.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -92,6 +92,11 @@ func (o *KubernetesCluster) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "kubernetes.Cluster" of the ClassId field. +func (o *KubernetesCluster) GetDefaultClassId() interface{} { + return "kubernetes.Cluster" +} + // GetObjectType returns the ObjectType field value func (o *KubernetesCluster) GetObjectType() string { if o == nil { @@ -116,6 +121,11 @@ func (o *KubernetesCluster) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "kubernetes.Cluster" of the ObjectType field. +func (o *KubernetesCluster) GetDefaultObjectType() interface{} { + return "kubernetes.Cluster" +} + // GetConnectionStatus returns the ConnectionStatus field value if set, zero value otherwise. func (o *KubernetesCluster) GetConnectionStatus() string { if o == nil || IsNil(o.ConnectionStatus) { @@ -287,7 +297,7 @@ func (o *KubernetesCluster) GetRegisteredDevicesOk() ([]AssetDeviceRegistrationR // HasRegisteredDevices returns a boolean if a field has been set. func (o *KubernetesCluster) HasRegisteredDevices() bool { - if o != nil && IsNil(o.RegisteredDevices) { + if o != nil && !IsNil(o.RegisteredDevices) { return true } @@ -317,7 +327,13 @@ func (o KubernetesCluster) ToMap() (map[string]interface{}, error) { if errComputeBaseCluster != nil { return map[string]interface{}{}, errComputeBaseCluster } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.ConnectionStatus) { toSerialize["ConnectionStatus"] = o.ConnectionStatus @@ -351,6 +367,13 @@ func (o *KubernetesCluster) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -360,11 +383,23 @@ func (o *KubernetesCluster) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type KubernetesClusterWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_kubernetes_cluster_addon_profile.go b/model_kubernetes_cluster_addon_profile.go index 9e963a39d2..81b19892bd 100644 --- a/model_kubernetes_cluster_addon_profile.go +++ b/model_kubernetes_cluster_addon_profile.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -85,6 +85,11 @@ func (o *KubernetesClusterAddonProfile) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "kubernetes.ClusterAddonProfile" of the ClassId field. +func (o *KubernetesClusterAddonProfile) GetDefaultClassId() interface{} { + return "kubernetes.ClusterAddonProfile" +} + // GetObjectType returns the ObjectType field value func (o *KubernetesClusterAddonProfile) GetObjectType() string { if o == nil { @@ -109,6 +114,11 @@ func (o *KubernetesClusterAddonProfile) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "kubernetes.ClusterAddonProfile" of the ObjectType field. +func (o *KubernetesClusterAddonProfile) GetDefaultObjectType() interface{} { + return "kubernetes.ClusterAddonProfile" +} + // GetAddons returns the Addons field value if set, zero value otherwise (both if not set or set to explicit null). func (o *KubernetesClusterAddonProfile) GetAddons() []KubernetesAddon { if o == nil { @@ -130,7 +140,7 @@ func (o *KubernetesClusterAddonProfile) GetAddonsOk() ([]KubernetesAddon, bool) // HasAddons returns a boolean if a field has been set. func (o *KubernetesClusterAddonProfile) HasAddons() bool { - if o != nil && IsNil(o.Addons) { + if o != nil && !IsNil(o.Addons) { return true } @@ -278,7 +288,13 @@ func (o KubernetesClusterAddonProfile) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.Addons != nil { toSerialize["Addons"] = o.Addons @@ -309,6 +325,13 @@ func (o *KubernetesClusterAddonProfile) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -318,11 +341,23 @@ func (o *KubernetesClusterAddonProfile) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type KubernetesClusterAddonProfileWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_kubernetes_cluster_addon_profile_list.go b/model_kubernetes_cluster_addon_profile_list.go index 2f33cd1315..d76963f386 100644 --- a/model_kubernetes_cluster_addon_profile_list.go +++ b/model_kubernetes_cluster_addon_profile_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *KubernetesClusterAddonProfileList) GetResultsOk() ([]KubernetesClusterA // HasResults returns a boolean if a field has been set. func (o *KubernetesClusterAddonProfileList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *KubernetesClusterAddonProfileList) UnmarshalJSON(data []byte) (err erro "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *KubernetesClusterAddonProfileList) UnmarshalJSON(data []byte) (err erro } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type KubernetesClusterAddonProfileListWithoutEmbeddedStruct struct { // The total number of 'kubernetes.ClusterAddonProfile' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_kubernetes_cluster_addon_profile_relationship.go b/model_kubernetes_cluster_addon_profile_relationship.go index 315feb34d5..5275403ec8 100644 --- a/model_kubernetes_cluster_addon_profile_relationship.go +++ b/model_kubernetes_cluster_addon_profile_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_kubernetes_cluster_addon_profile_response.go b/model_kubernetes_cluster_addon_profile_response.go index a168d37a28..5bd74454bb 100644 --- a/model_kubernetes_cluster_addon_profile_response.go +++ b/model_kubernetes_cluster_addon_profile_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_kubernetes_cluster_certificate_configuration.go b/model_kubernetes_cluster_certificate_configuration.go index e7d1e9bb43..39565ced24 100644 --- a/model_kubernetes_cluster_certificate_configuration.go +++ b/model_kubernetes_cluster_certificate_configuration.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -97,6 +97,11 @@ func (o *KubernetesClusterCertificateConfiguration) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "kubernetes.ClusterCertificateConfiguration" of the ClassId field. +func (o *KubernetesClusterCertificateConfiguration) GetDefaultClassId() interface{} { + return "kubernetes.ClusterCertificateConfiguration" +} + // GetObjectType returns the ObjectType field value func (o *KubernetesClusterCertificateConfiguration) GetObjectType() string { if o == nil { @@ -121,6 +126,11 @@ func (o *KubernetesClusterCertificateConfiguration) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "kubernetes.ClusterCertificateConfiguration" of the ObjectType field. +func (o *KubernetesClusterCertificateConfiguration) GetDefaultObjectType() interface{} { + return "kubernetes.ClusterCertificateConfiguration" +} + // GetCaCert returns the CaCert field value if set, zero value otherwise. func (o *KubernetesClusterCertificateConfiguration) GetCaCert() string { if o == nil || IsNil(o.CaCert) { @@ -238,7 +248,7 @@ func (o *KubernetesClusterCertificateConfiguration) GetEtcdEncryptionKeyOk() ([] // HasEtcdEncryptionKey returns a boolean if a field has been set. func (o *KubernetesClusterCertificateConfiguration) HasEtcdEncryptionKey() bool { - if o != nil && IsNil(o.EtcdEncryptionKey) { + if o != nil && !IsNil(o.EtcdEncryptionKey) { return true } @@ -428,7 +438,13 @@ func (o KubernetesClusterCertificateConfiguration) ToMap() (map[string]interface if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.CaCert) { toSerialize["CaCert"] = o.CaCert @@ -474,6 +490,13 @@ func (o *KubernetesClusterCertificateConfiguration) UnmarshalJSON(data []byte) ( "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -483,11 +506,23 @@ func (o *KubernetesClusterCertificateConfiguration) UnmarshalJSON(data []byte) ( } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type KubernetesClusterCertificateConfigurationWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_kubernetes_cluster_list.go b/model_kubernetes_cluster_list.go index f0689a8522..e645d56ad3 100644 --- a/model_kubernetes_cluster_list.go +++ b/model_kubernetes_cluster_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *KubernetesClusterList) GetResultsOk() ([]KubernetesCluster, bool) { // HasResults returns a boolean if a field has been set. func (o *KubernetesClusterList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *KubernetesClusterList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *KubernetesClusterList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type KubernetesClusterListWithoutEmbeddedStruct struct { // The total number of 'kubernetes.Cluster' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_kubernetes_cluster_management_config.go b/model_kubernetes_cluster_management_config.go index b8b7ee1ee0..05ef188c2c 100644 --- a/model_kubernetes_cluster_management_config.go +++ b/model_kubernetes_cluster_management_config.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -92,6 +92,11 @@ func (o *KubernetesClusterManagementConfig) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "kubernetes.ClusterManagementConfig" of the ClassId field. +func (o *KubernetesClusterManagementConfig) GetDefaultClassId() interface{} { + return "kubernetes.ClusterManagementConfig" +} + // GetObjectType returns the ObjectType field value func (o *KubernetesClusterManagementConfig) GetObjectType() string { if o == nil { @@ -116,6 +121,11 @@ func (o *KubernetesClusterManagementConfig) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "kubernetes.ClusterManagementConfig" of the ObjectType field. +func (o *KubernetesClusterManagementConfig) GetDefaultObjectType() interface{} { + return "kubernetes.ClusterManagementConfig" +} + // GetIsTacPasswdSet returns the IsTacPasswdSet field value if set, zero value otherwise. func (o *KubernetesClusterManagementConfig) GetIsTacPasswdSet() bool { if o == nil || IsNil(o.IsTacPasswdSet) { @@ -201,7 +211,7 @@ func (o *KubernetesClusterManagementConfig) GetLoadBalancersOk() ([]string, bool // HasLoadBalancers returns a boolean if a field has been set. func (o *KubernetesClusterManagementConfig) HasLoadBalancers() bool { - if o != nil && IsNil(o.LoadBalancers) { + if o != nil && !IsNil(o.LoadBalancers) { return true } @@ -266,7 +276,7 @@ func (o *KubernetesClusterManagementConfig) GetSshKeysOk() ([]string, bool) { // HasSshKeys returns a boolean if a field has been set. func (o *KubernetesClusterManagementConfig) HasSshKeys() bool { - if o != nil && IsNil(o.SshKeys) { + if o != nil && !IsNil(o.SshKeys) { return true } @@ -360,7 +370,13 @@ func (o KubernetesClusterManagementConfig) ToMap() (map[string]interface{}, erro if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.IsTacPasswdSet) { toSerialize["IsTacPasswdSet"] = o.IsTacPasswdSet @@ -400,6 +416,13 @@ func (o *KubernetesClusterManagementConfig) UnmarshalJSON(data []byte) (err erro "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -409,11 +432,23 @@ func (o *KubernetesClusterManagementConfig) UnmarshalJSON(data []byte) (err erro } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type KubernetesClusterManagementConfigWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_kubernetes_cluster_profile.go b/model_kubernetes_cluster_profile.go index 0c6c0777a0..d0b5d58e16 100644 --- a/model_kubernetes_cluster_profile.go +++ b/model_kubernetes_cluster_profile.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -122,6 +122,11 @@ func (o *KubernetesClusterProfile) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "kubernetes.ClusterProfile" of the ClassId field. +func (o *KubernetesClusterProfile) GetDefaultClassId() interface{} { + return "kubernetes.ClusterProfile" +} + // GetObjectType returns the ObjectType field value func (o *KubernetesClusterProfile) GetObjectType() string { if o == nil { @@ -146,6 +151,11 @@ func (o *KubernetesClusterProfile) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "kubernetes.ClusterProfile" of the ObjectType field. +func (o *KubernetesClusterProfile) GetDefaultObjectType() interface{} { + return "kubernetes.ClusterProfile" +} + // GetActionInfo returns the ActionInfo field value if set, zero value otherwise (both if not set or set to explicit null). // Deprecated func (o *KubernetesClusterProfile) GetActionInfo() KubernetesActionInfo { @@ -256,7 +266,7 @@ func (o *KubernetesClusterProfile) GetEssentialAddonsOk() ([]KubernetesEssential // HasEssentialAddons returns a boolean if a field has been set. func (o *KubernetesClusterProfile) HasEssentialAddons() bool { - if o != nil && IsNil(o.EssentialAddons) { + if o != nil && !IsNil(o.EssentialAddons) { return true } @@ -525,7 +535,7 @@ func (o *KubernetesClusterProfile) GetClusterIpPoolsOk() ([]IppoolPoolRelationsh // HasClusterIpPools returns a boolean if a field has been set. func (o *KubernetesClusterProfile) HasClusterIpPools() bool { - if o != nil && IsNil(o.ClusterIpPools) { + if o != nil && !IsNil(o.ClusterIpPools) { return true } @@ -687,7 +697,7 @@ func (o *KubernetesClusterProfile) GetLoadbalancerBlockIpLeasesOk() ([]IppoolBlo // HasLoadbalancerBlockIpLeases returns a boolean if a field has been set. func (o *KubernetesClusterProfile) HasLoadbalancerBlockIpLeases() bool { - if o != nil && IsNil(o.LoadbalancerBlockIpLeases) { + if o != nil && !IsNil(o.LoadbalancerBlockIpLeases) { return true } @@ -720,7 +730,7 @@ func (o *KubernetesClusterProfile) GetLoadbalancerIpLeasesOk() ([]IppoolIpLeaseR // HasLoadbalancerIpLeases returns a boolean if a field has been set. func (o *KubernetesClusterProfile) HasLoadbalancerIpLeases() bool { - if o != nil && IsNil(o.LoadbalancerIpLeases) { + if o != nil && !IsNil(o.LoadbalancerIpLeases) { return true } @@ -839,7 +849,7 @@ func (o *KubernetesClusterProfile) GetNodeGroupsOk() ([]KubernetesNodeGroupProfi // HasNodeGroups returns a boolean if a field has been set. func (o *KubernetesClusterProfile) HasNodeGroups() bool { - if o != nil && IsNil(o.NodeGroups) { + if o != nil && !IsNil(o.NodeGroups) { return true } @@ -1084,7 +1094,13 @@ func (o KubernetesClusterProfile) ToMap() (map[string]interface{}, error) { if errPolicyAbstractConfigProfile != nil { return map[string]interface{}{}, errPolicyAbstractConfigProfile } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.ActionInfo.IsSet() { toSerialize["ActionInfo"] = o.ActionInfo.Get() @@ -1172,6 +1188,13 @@ func (o *KubernetesClusterProfile) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -1181,11 +1204,23 @@ func (o *KubernetesClusterProfile) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type KubernetesClusterProfileWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_kubernetes_cluster_profile_list.go b/model_kubernetes_cluster_profile_list.go index 5c7f1a511a..22de0d462f 100644 --- a/model_kubernetes_cluster_profile_list.go +++ b/model_kubernetes_cluster_profile_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *KubernetesClusterProfileList) GetResultsOk() ([]KubernetesClusterProfil // HasResults returns a boolean if a field has been set. func (o *KubernetesClusterProfileList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *KubernetesClusterProfileList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *KubernetesClusterProfileList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type KubernetesClusterProfileListWithoutEmbeddedStruct struct { // The total number of 'kubernetes.ClusterProfile' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_kubernetes_cluster_profile_relationship.go b/model_kubernetes_cluster_profile_relationship.go index b0a35fa190..57a04dcbb0 100644 --- a/model_kubernetes_cluster_profile_relationship.go +++ b/model_kubernetes_cluster_profile_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_kubernetes_cluster_profile_response.go b/model_kubernetes_cluster_profile_response.go index 11f4ec01c1..d88a4c687c 100644 --- a/model_kubernetes_cluster_profile_response.go +++ b/model_kubernetes_cluster_profile_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_kubernetes_cluster_relationship.go b/model_kubernetes_cluster_relationship.go index 2e18f28a2e..23696dc1d1 100644 --- a/model_kubernetes_cluster_relationship.go +++ b/model_kubernetes_cluster_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_kubernetes_cluster_response.go b/model_kubernetes_cluster_response.go index 7253677c33..178e505b12 100644 --- a/model_kubernetes_cluster_response.go +++ b/model_kubernetes_cluster_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_kubernetes_cni_config.go b/model_kubernetes_cni_config.go index 2c7d6cc012..93a253ea2f 100644 --- a/model_kubernetes_cni_config.go +++ b/model_kubernetes_cni_config.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -84,6 +84,11 @@ func (o *KubernetesCniConfig) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "kubernetes.CalicoConfig" of the ClassId field. +func (o *KubernetesCniConfig) GetDefaultClassId() interface{} { + return "kubernetes.CalicoConfig" +} + // GetObjectType returns the ObjectType field value func (o *KubernetesCniConfig) GetObjectType() string { if o == nil { @@ -108,6 +113,11 @@ func (o *KubernetesCniConfig) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "kubernetes.CalicoConfig" of the ObjectType field. +func (o *KubernetesCniConfig) GetDefaultObjectType() interface{} { + return "kubernetes.CalicoConfig" +} + // GetRegistry returns the Registry field value if set, zero value otherwise. func (o *KubernetesCniConfig) GetRegistry() string { if o == nil || IsNil(o.Registry) { @@ -190,7 +200,13 @@ func (o KubernetesCniConfig) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Registry) { toSerialize["Registry"] = o.Registry @@ -215,6 +231,13 @@ func (o *KubernetesCniConfig) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -224,11 +247,23 @@ func (o *KubernetesCniConfig) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type KubernetesCniConfigWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. The enum values provides the list of concrete types that can be instantiated from this abstract type. ClassId string `json:"ClassId"` diff --git a/model_kubernetes_config_result.go b/model_kubernetes_config_result.go index 705a2c5a47..89f5d78b3e 100644 --- a/model_kubernetes_config_result.go +++ b/model_kubernetes_config_result.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -83,6 +83,11 @@ func (o *KubernetesConfigResult) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "kubernetes.ConfigResult" of the ClassId field. +func (o *KubernetesConfigResult) GetDefaultClassId() interface{} { + return "kubernetes.ConfigResult" +} + // GetObjectType returns the ObjectType field value func (o *KubernetesConfigResult) GetObjectType() string { if o == nil { @@ -107,6 +112,11 @@ func (o *KubernetesConfigResult) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "kubernetes.ConfigResult" of the ObjectType field. +func (o *KubernetesConfigResult) GetDefaultObjectType() interface{} { + return "kubernetes.ConfigResult" +} + // GetProfile returns the Profile field value if set, zero value otherwise (both if not set or set to explicit null). func (o *KubernetesConfigResult) GetProfile() KubernetesNodeProfileRelationship { if o == nil || IsNil(o.Profile.Get()) { @@ -171,7 +181,7 @@ func (o *KubernetesConfigResult) GetResultEntriesOk() ([]KubernetesConfigResultE // HasResultEntries returns a boolean if a field has been set. func (o *KubernetesConfigResult) HasResultEntries() bool { - if o != nil && IsNil(o.ResultEntries) { + if o != nil && !IsNil(o.ResultEntries) { return true } @@ -201,7 +211,13 @@ func (o KubernetesConfigResult) ToMap() (map[string]interface{}, error) { if errPolicyAbstractConfigResult != nil { return map[string]interface{}{}, errPolicyAbstractConfigResult } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.Profile.IsSet() { toSerialize["Profile"] = o.Profile.Get() @@ -226,6 +242,13 @@ func (o *KubernetesConfigResult) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -235,11 +258,23 @@ func (o *KubernetesConfigResult) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type KubernetesConfigResultWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_kubernetes_config_result_entry.go b/model_kubernetes_config_result_entry.go index 74131f43cb..b1e3d066d8 100644 --- a/model_kubernetes_config_result_entry.go +++ b/model_kubernetes_config_result_entry.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -81,6 +81,11 @@ func (o *KubernetesConfigResultEntry) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "kubernetes.ConfigResultEntry" of the ClassId field. +func (o *KubernetesConfigResultEntry) GetDefaultClassId() interface{} { + return "kubernetes.ConfigResultEntry" +} + // GetObjectType returns the ObjectType field value func (o *KubernetesConfigResultEntry) GetObjectType() string { if o == nil { @@ -105,6 +110,11 @@ func (o *KubernetesConfigResultEntry) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "kubernetes.ConfigResultEntry" of the ObjectType field. +func (o *KubernetesConfigResultEntry) GetDefaultObjectType() interface{} { + return "kubernetes.ConfigResultEntry" +} + // GetConfigResult returns the ConfigResult field value if set, zero value otherwise (both if not set or set to explicit null). func (o *KubernetesConfigResultEntry) GetConfigResult() KubernetesConfigResultRelationship { if o == nil || IsNil(o.ConfigResult.Get()) { @@ -166,7 +176,13 @@ func (o KubernetesConfigResultEntry) ToMap() (map[string]interface{}, error) { if errPolicyAbstractConfigResultEntry != nil { return map[string]interface{}{}, errPolicyAbstractConfigResultEntry } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.ConfigResult.IsSet() { toSerialize["ConfigResult"] = o.ConfigResult.Get() @@ -188,6 +204,13 @@ func (o *KubernetesConfigResultEntry) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -197,11 +220,23 @@ func (o *KubernetesConfigResultEntry) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type KubernetesConfigResultEntryWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_kubernetes_config_result_entry_list.go b/model_kubernetes_config_result_entry_list.go index c84eacf413..e6c67474ae 100644 --- a/model_kubernetes_config_result_entry_list.go +++ b/model_kubernetes_config_result_entry_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *KubernetesConfigResultEntryList) GetResultsOk() ([]KubernetesConfigResu // HasResults returns a boolean if a field has been set. func (o *KubernetesConfigResultEntryList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *KubernetesConfigResultEntryList) UnmarshalJSON(data []byte) (err error) "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *KubernetesConfigResultEntryList) UnmarshalJSON(data []byte) (err error) } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type KubernetesConfigResultEntryListWithoutEmbeddedStruct struct { // The total number of 'kubernetes.ConfigResultEntry' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_kubernetes_config_result_entry_relationship.go b/model_kubernetes_config_result_entry_relationship.go index 7fcde845bc..fa2c13eeab 100644 --- a/model_kubernetes_config_result_entry_relationship.go +++ b/model_kubernetes_config_result_entry_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_kubernetes_config_result_entry_response.go b/model_kubernetes_config_result_entry_response.go index 85a1570af5..ac1b5e7424 100644 --- a/model_kubernetes_config_result_entry_response.go +++ b/model_kubernetes_config_result_entry_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_kubernetes_config_result_list.go b/model_kubernetes_config_result_list.go index b5432b055f..7a9fc4a84e 100644 --- a/model_kubernetes_config_result_list.go +++ b/model_kubernetes_config_result_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *KubernetesConfigResultList) GetResultsOk() ([]KubernetesConfigResult, b // HasResults returns a boolean if a field has been set. func (o *KubernetesConfigResultList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *KubernetesConfigResultList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *KubernetesConfigResultList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type KubernetesConfigResultListWithoutEmbeddedStruct struct { // The total number of 'kubernetes.ConfigResult' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_kubernetes_config_result_relationship.go b/model_kubernetes_config_result_relationship.go index e156a1c8fd..d86ec2fe49 100644 --- a/model_kubernetes_config_result_relationship.go +++ b/model_kubernetes_config_result_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_kubernetes_config_result_response.go b/model_kubernetes_config_result_response.go index 47db482472..add5a1149f 100644 --- a/model_kubernetes_config_result_response.go +++ b/model_kubernetes_config_result_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_kubernetes_configuration.go b/model_kubernetes_configuration.go index 03c79e263a..b3c2f5580a 100644 --- a/model_kubernetes_configuration.go +++ b/model_kubernetes_configuration.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -82,6 +82,11 @@ func (o *KubernetesConfiguration) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "kubernetes.Configuration" of the ClassId field. +func (o *KubernetesConfiguration) GetDefaultClassId() interface{} { + return "kubernetes.Configuration" +} + // GetObjectType returns the ObjectType field value func (o *KubernetesConfiguration) GetObjectType() string { if o == nil { @@ -106,6 +111,11 @@ func (o *KubernetesConfiguration) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "kubernetes.Configuration" of the ObjectType field. +func (o *KubernetesConfiguration) GetDefaultObjectType() interface{} { + return "kubernetes.Configuration" +} + // GetKubeConfig returns the KubeConfig field value if set, zero value otherwise. func (o *KubernetesConfiguration) GetKubeConfig() string { if o == nil || IsNil(o.KubeConfig) { @@ -156,7 +166,13 @@ func (o KubernetesConfiguration) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.KubeConfig) { toSerialize["KubeConfig"] = o.KubeConfig @@ -178,6 +194,13 @@ func (o *KubernetesConfiguration) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -187,11 +210,23 @@ func (o *KubernetesConfiguration) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type KubernetesConfigurationWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_kubernetes_container_runtime_policy.go b/model_kubernetes_container_runtime_policy.go index 5fdd219ab3..bebf7a6cbb 100644 --- a/model_kubernetes_container_runtime_policy.go +++ b/model_kubernetes_container_runtime_policy.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -29,7 +29,7 @@ type KubernetesContainerRuntimePolicy struct { // The fully-qualified name of the instantiated, concrete type. The value should be the same as the 'ClassId' property. ObjectType string `json:"ObjectType"` // Bridge IP (--bip) including Prefix (e.g., 172.17.0.5/24) that Docker will use for the default bridge network (docker0). Containers will connect to this if no other network is configured, not used by kubernetes pods because their network is managed by CNI. However this address space must not collide with other CIDRs on your networks, including the cluster's Service CIDR, Pod Network CIDR and IP Pools. - DockerBridgeNetworkCidr *string `json:"DockerBridgeNetworkCidr,omitempty"` + DockerBridgeNetworkCidr *string `json:"DockerBridgeNetworkCidr,omitempty" validate:"regexp=^$|^([1-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5]).([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5]).([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5]).([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\/([0-9]|[1-2][0-9]|3[0-2])$"` DockerHttpProxy NullableKubernetesProxyConfig `json:"DockerHttpProxy,omitempty"` DockerHttpsProxy NullableKubernetesProxyConfig `json:"DockerHttpsProxy,omitempty"` DockerNoProxy []string `json:"DockerNoProxy,omitempty"` @@ -88,6 +88,11 @@ func (o *KubernetesContainerRuntimePolicy) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "kubernetes.ContainerRuntimePolicy" of the ClassId field. +func (o *KubernetesContainerRuntimePolicy) GetDefaultClassId() interface{} { + return "kubernetes.ContainerRuntimePolicy" +} + // GetObjectType returns the ObjectType field value func (o *KubernetesContainerRuntimePolicy) GetObjectType() string { if o == nil { @@ -112,6 +117,11 @@ func (o *KubernetesContainerRuntimePolicy) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "kubernetes.ContainerRuntimePolicy" of the ObjectType field. +func (o *KubernetesContainerRuntimePolicy) GetDefaultObjectType() interface{} { + return "kubernetes.ContainerRuntimePolicy" +} + // GetDockerBridgeNetworkCidr returns the DockerBridgeNetworkCidr field value if set, zero value otherwise. func (o *KubernetesContainerRuntimePolicy) GetDockerBridgeNetworkCidr() string { if o == nil || IsNil(o.DockerBridgeNetworkCidr) { @@ -251,7 +261,7 @@ func (o *KubernetesContainerRuntimePolicy) GetDockerNoProxyOk() ([]string, bool) // HasDockerNoProxy returns a boolean if a field has been set. func (o *KubernetesContainerRuntimePolicy) HasDockerNoProxy() bool { - if o != nil && IsNil(o.DockerNoProxy) { + if o != nil && !IsNil(o.DockerNoProxy) { return true } @@ -284,7 +294,7 @@ func (o *KubernetesContainerRuntimePolicy) GetClusterProfilesOk() ([]KubernetesC // HasClusterProfiles returns a boolean if a field has been set. func (o *KubernetesContainerRuntimePolicy) HasClusterProfiles() bool { - if o != nil && IsNil(o.ClusterProfiles) { + if o != nil && !IsNil(o.ClusterProfiles) { return true } @@ -357,7 +367,13 @@ func (o KubernetesContainerRuntimePolicy) ToMap() (map[string]interface{}, error if errPolicyAbstractPolicy != nil { return map[string]interface{}{}, errPolicyAbstractPolicy } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.DockerBridgeNetworkCidr) { toSerialize["DockerBridgeNetworkCidr"] = o.DockerBridgeNetworkCidr @@ -394,6 +410,13 @@ func (o *KubernetesContainerRuntimePolicy) UnmarshalJSON(data []byte) (err error "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -403,18 +426,30 @@ func (o *KubernetesContainerRuntimePolicy) UnmarshalJSON(data []byte) (err error } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type KubernetesContainerRuntimePolicyWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` // The fully-qualified name of the instantiated, concrete type. The value should be the same as the 'ClassId' property. ObjectType string `json:"ObjectType"` // Bridge IP (--bip) including Prefix (e.g., 172.17.0.5/24) that Docker will use for the default bridge network (docker0). Containers will connect to this if no other network is configured, not used by kubernetes pods because their network is managed by CNI. However this address space must not collide with other CIDRs on your networks, including the cluster's Service CIDR, Pod Network CIDR and IP Pools. - DockerBridgeNetworkCidr *string `json:"DockerBridgeNetworkCidr,omitempty"` + DockerBridgeNetworkCidr *string `json:"DockerBridgeNetworkCidr,omitempty" validate:"regexp=^$|^([1-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5]).([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5]).([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5]).([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\/([0-9]|[1-2][0-9]|3[0-2])$"` DockerHttpProxy NullableKubernetesProxyConfig `json:"DockerHttpProxy,omitempty"` DockerHttpsProxy NullableKubernetesProxyConfig `json:"DockerHttpsProxy,omitempty"` DockerNoProxy []string `json:"DockerNoProxy,omitempty"` diff --git a/model_kubernetes_container_runtime_policy_list.go b/model_kubernetes_container_runtime_policy_list.go index f08d174b28..281b902395 100644 --- a/model_kubernetes_container_runtime_policy_list.go +++ b/model_kubernetes_container_runtime_policy_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *KubernetesContainerRuntimePolicyList) GetResultsOk() ([]KubernetesConta // HasResults returns a boolean if a field has been set. func (o *KubernetesContainerRuntimePolicyList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *KubernetesContainerRuntimePolicyList) UnmarshalJSON(data []byte) (err e "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *KubernetesContainerRuntimePolicyList) UnmarshalJSON(data []byte) (err e } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type KubernetesContainerRuntimePolicyListWithoutEmbeddedStruct struct { // The total number of 'kubernetes.ContainerRuntimePolicy' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_kubernetes_container_runtime_policy_relationship.go b/model_kubernetes_container_runtime_policy_relationship.go index 6b07f05ea0..4d4af18d1e 100644 --- a/model_kubernetes_container_runtime_policy_relationship.go +++ b/model_kubernetes_container_runtime_policy_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_kubernetes_container_runtime_policy_response.go b/model_kubernetes_container_runtime_policy_response.go index 69203c34d8..aed94b15e4 100644 --- a/model_kubernetes_container_runtime_policy_response.go +++ b/model_kubernetes_container_runtime_policy_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_kubernetes_daemon_set.go b/model_kubernetes_daemon_set.go index 61e55da21d..adc040292b 100644 --- a/model_kubernetes_daemon_set.go +++ b/model_kubernetes_daemon_set.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -82,6 +82,11 @@ func (o *KubernetesDaemonSet) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "kubernetes.DaemonSet" of the ClassId field. +func (o *KubernetesDaemonSet) GetDefaultClassId() interface{} { + return "kubernetes.DaemonSet" +} + // GetObjectType returns the ObjectType field value func (o *KubernetesDaemonSet) GetObjectType() string { if o == nil { @@ -106,6 +111,11 @@ func (o *KubernetesDaemonSet) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "kubernetes.DaemonSet" of the ObjectType field. +func (o *KubernetesDaemonSet) GetDefaultObjectType() interface{} { + return "kubernetes.DaemonSet" +} + // GetStatus returns the Status field value if set, zero value otherwise (both if not set or set to explicit null). func (o *KubernetesDaemonSet) GetStatus() KubernetesDaemonSetStatus { if o == nil || IsNil(o.Status.Get()) { @@ -210,7 +220,13 @@ func (o KubernetesDaemonSet) ToMap() (map[string]interface{}, error) { if errKubernetesAbstractDaemonSet != nil { return map[string]interface{}{}, errKubernetesAbstractDaemonSet } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.Status.IsSet() { toSerialize["Status"] = o.Status.Get() @@ -235,6 +251,13 @@ func (o *KubernetesDaemonSet) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -244,11 +267,23 @@ func (o *KubernetesDaemonSet) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type KubernetesDaemonSetWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_kubernetes_daemon_set_list.go b/model_kubernetes_daemon_set_list.go index 3b3f0d7598..976283ccc5 100644 --- a/model_kubernetes_daemon_set_list.go +++ b/model_kubernetes_daemon_set_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *KubernetesDaemonSetList) GetResultsOk() ([]KubernetesDaemonSet, bool) { // HasResults returns a boolean if a field has been set. func (o *KubernetesDaemonSetList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *KubernetesDaemonSetList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *KubernetesDaemonSetList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type KubernetesDaemonSetListWithoutEmbeddedStruct struct { // The total number of 'kubernetes.DaemonSet' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_kubernetes_daemon_set_response.go b/model_kubernetes_daemon_set_response.go index c6044f4782..c2941ecf24 100644 --- a/model_kubernetes_daemon_set_response.go +++ b/model_kubernetes_daemon_set_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_kubernetes_daemon_set_status.go b/model_kubernetes_daemon_set_status.go index 1e7ab74260..54ff43268f 100644 --- a/model_kubernetes_daemon_set_status.go +++ b/model_kubernetes_daemon_set_status.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -114,6 +114,11 @@ func (o *KubernetesDaemonSetStatus) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "kubernetes.DaemonSetStatus" of the ClassId field. +func (o *KubernetesDaemonSetStatus) GetDefaultClassId() interface{} { + return "kubernetes.DaemonSetStatus" +} + // GetObjectType returns the ObjectType field value func (o *KubernetesDaemonSetStatus) GetObjectType() string { if o == nil { @@ -138,6 +143,11 @@ func (o *KubernetesDaemonSetStatus) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "kubernetes.DaemonSetStatus" of the ObjectType field. +func (o *KubernetesDaemonSetStatus) GetDefaultObjectType() interface{} { + return "kubernetes.DaemonSetStatus" +} + // GetCurrentNumberScheduled returns the CurrentNumberScheduled field value if set, zero value otherwise. func (o *KubernetesDaemonSetStatus) GetCurrentNumberScheduled() int64 { if o == nil || IsNil(o.CurrentNumberScheduled) { @@ -380,7 +390,13 @@ func (o KubernetesDaemonSetStatus) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.CurrentNumberScheduled) { toSerialize["CurrentNumberScheduled"] = o.CurrentNumberScheduled @@ -420,6 +436,13 @@ func (o *KubernetesDaemonSetStatus) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -429,11 +452,23 @@ func (o *KubernetesDaemonSetStatus) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type KubernetesDaemonSetStatusWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_kubernetes_deployment.go b/model_kubernetes_deployment.go index 043267e954..062fab4574 100644 --- a/model_kubernetes_deployment.go +++ b/model_kubernetes_deployment.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -82,6 +82,11 @@ func (o *KubernetesDeployment) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "kubernetes.Deployment" of the ClassId field. +func (o *KubernetesDeployment) GetDefaultClassId() interface{} { + return "kubernetes.Deployment" +} + // GetObjectType returns the ObjectType field value func (o *KubernetesDeployment) GetObjectType() string { if o == nil { @@ -106,6 +111,11 @@ func (o *KubernetesDeployment) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "kubernetes.Deployment" of the ObjectType field. +func (o *KubernetesDeployment) GetDefaultObjectType() interface{} { + return "kubernetes.Deployment" +} + // GetStatus returns the Status field value if set, zero value otherwise (both if not set or set to explicit null). func (o *KubernetesDeployment) GetStatus() KubernetesDeploymentStatus { if o == nil || IsNil(o.Status.Get()) { @@ -210,7 +220,13 @@ func (o KubernetesDeployment) ToMap() (map[string]interface{}, error) { if errKubernetesAbstractDeployment != nil { return map[string]interface{}{}, errKubernetesAbstractDeployment } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.Status.IsSet() { toSerialize["Status"] = o.Status.Get() @@ -235,6 +251,13 @@ func (o *KubernetesDeployment) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -244,11 +267,23 @@ func (o *KubernetesDeployment) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type KubernetesDeploymentWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_kubernetes_deployment_list.go b/model_kubernetes_deployment_list.go index 1c2849d451..8ed70f593a 100644 --- a/model_kubernetes_deployment_list.go +++ b/model_kubernetes_deployment_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *KubernetesDeploymentList) GetResultsOk() ([]KubernetesDeployment, bool) // HasResults returns a boolean if a field has been set. func (o *KubernetesDeploymentList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *KubernetesDeploymentList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *KubernetesDeploymentList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type KubernetesDeploymentListWithoutEmbeddedStruct struct { // The total number of 'kubernetes.Deployment' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_kubernetes_deployment_response.go b/model_kubernetes_deployment_response.go index e0b3973c61..b1a67ab1c8 100644 --- a/model_kubernetes_deployment_response.go +++ b/model_kubernetes_deployment_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_kubernetes_deployment_status.go b/model_kubernetes_deployment_status.go index b1b13cb5a5..834a0dd602 100644 --- a/model_kubernetes_deployment_status.go +++ b/model_kubernetes_deployment_status.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -110,6 +110,11 @@ func (o *KubernetesDeploymentStatus) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "kubernetes.DeploymentStatus" of the ClassId field. +func (o *KubernetesDeploymentStatus) GetDefaultClassId() interface{} { + return "kubernetes.DeploymentStatus" +} + // GetObjectType returns the ObjectType field value func (o *KubernetesDeploymentStatus) GetObjectType() string { if o == nil { @@ -134,6 +139,11 @@ func (o *KubernetesDeploymentStatus) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "kubernetes.DeploymentStatus" of the ObjectType field. +func (o *KubernetesDeploymentStatus) GetDefaultObjectType() interface{} { + return "kubernetes.DeploymentStatus" +} + // GetAvailableReplicas returns the AvailableReplicas field value if set, zero value otherwise. func (o *KubernetesDeploymentStatus) GetAvailableReplicas() int64 { if o == nil || IsNil(o.AvailableReplicas) { @@ -312,7 +322,13 @@ func (o KubernetesDeploymentStatus) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.AvailableReplicas) { toSerialize["AvailableReplicas"] = o.AvailableReplicas @@ -346,6 +362,13 @@ func (o *KubernetesDeploymentStatus) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -355,11 +378,23 @@ func (o *KubernetesDeploymentStatus) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type KubernetesDeploymentStatusWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_kubernetes_essential_addon.go b/model_kubernetes_essential_addon.go index dbf73fda2e..42313ac010 100644 --- a/model_kubernetes_essential_addon.go +++ b/model_kubernetes_essential_addon.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -84,6 +84,11 @@ func (o *KubernetesEssentialAddon) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "kubernetes.EssentialAddon" of the ClassId field. +func (o *KubernetesEssentialAddon) GetDefaultClassId() interface{} { + return "kubernetes.EssentialAddon" +} + // GetObjectType returns the ObjectType field value func (o *KubernetesEssentialAddon) GetObjectType() string { if o == nil { @@ -108,6 +113,11 @@ func (o *KubernetesEssentialAddon) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "kubernetes.EssentialAddon" of the ObjectType field. +func (o *KubernetesEssentialAddon) GetDefaultObjectType() interface{} { + return "kubernetes.EssentialAddon" +} + // GetAddonConfiguration returns the AddonConfiguration field value if set, zero value otherwise (both if not set or set to explicit null). func (o *KubernetesEssentialAddon) GetAddonConfiguration() KubernetesAddonConfiguration { if o == nil || IsNil(o.AddonConfiguration.Get()) { @@ -233,7 +243,13 @@ func (o KubernetesEssentialAddon) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.AddonConfiguration.IsSet() { toSerialize["AddonConfiguration"] = o.AddonConfiguration.Get() @@ -261,6 +277,13 @@ func (o *KubernetesEssentialAddon) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -270,11 +293,23 @@ func (o *KubernetesEssentialAddon) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type KubernetesEssentialAddonWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_kubernetes_esxi_virtual_machine_infra_config.go b/model_kubernetes_esxi_virtual_machine_infra_config.go index c9fd5e6765..99fa835a44 100644 --- a/model_kubernetes_esxi_virtual_machine_infra_config.go +++ b/model_kubernetes_esxi_virtual_machine_infra_config.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -90,6 +90,11 @@ func (o *KubernetesEsxiVirtualMachineInfraConfig) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "kubernetes.EsxiVirtualMachineInfraConfig" of the ClassId field. +func (o *KubernetesEsxiVirtualMachineInfraConfig) GetDefaultClassId() interface{} { + return "kubernetes.EsxiVirtualMachineInfraConfig" +} + // GetObjectType returns the ObjectType field value func (o *KubernetesEsxiVirtualMachineInfraConfig) GetObjectType() string { if o == nil { @@ -114,6 +119,11 @@ func (o *KubernetesEsxiVirtualMachineInfraConfig) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "kubernetes.EsxiVirtualMachineInfraConfig" of the ObjectType field. +func (o *KubernetesEsxiVirtualMachineInfraConfig) GetDefaultObjectType() interface{} { + return "kubernetes.EsxiVirtualMachineInfraConfig" +} + // GetCluster returns the Cluster field value if set, zero value otherwise. func (o *KubernetesEsxiVirtualMachineInfraConfig) GetCluster() string { if o == nil || IsNil(o.Cluster) { @@ -292,7 +302,13 @@ func (o KubernetesEsxiVirtualMachineInfraConfig) ToMap() (map[string]interface{} if errKubernetesBaseVirtualMachineInfraConfig != nil { return map[string]interface{}{}, errKubernetesBaseVirtualMachineInfraConfig } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Cluster) { toSerialize["Cluster"] = o.Cluster @@ -326,6 +342,13 @@ func (o *KubernetesEsxiVirtualMachineInfraConfig) UnmarshalJSON(data []byte) (er "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -335,11 +358,23 @@ func (o *KubernetesEsxiVirtualMachineInfraConfig) UnmarshalJSON(data []byte) (er } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type KubernetesEsxiVirtualMachineInfraConfigWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_kubernetes_ethernet.go b/model_kubernetes_ethernet.go index 7e9eaa7906..8d5e1a6e94 100644 --- a/model_kubernetes_ethernet.go +++ b/model_kubernetes_ethernet.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -83,6 +83,11 @@ func (o *KubernetesEthernet) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "kubernetes.Ethernet" of the ClassId field. +func (o *KubernetesEthernet) GetDefaultClassId() interface{} { + return "kubernetes.Ethernet" +} + // GetObjectType returns the ObjectType field value func (o *KubernetesEthernet) GetObjectType() string { if o == nil { @@ -107,6 +112,11 @@ func (o *KubernetesEthernet) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "kubernetes.Ethernet" of the ObjectType field. +func (o *KubernetesEthernet) GetDefaultObjectType() interface{} { + return "kubernetes.Ethernet" +} + // GetMatcher returns the Matcher field value if set, zero value otherwise (both if not set or set to explicit null). func (o *KubernetesEthernet) GetMatcher() KubernetesEthernetMatcher { if o == nil || IsNil(o.Matcher.Get()) { @@ -200,7 +210,13 @@ func (o KubernetesEthernet) ToMap() (map[string]interface{}, error) { if errKubernetesNetworkInterface != nil { return map[string]interface{}{}, errKubernetesNetworkInterface } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.Matcher.IsSet() { toSerialize["Matcher"] = o.Matcher.Get() @@ -225,6 +241,13 @@ func (o *KubernetesEthernet) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -234,11 +257,23 @@ func (o *KubernetesEthernet) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type KubernetesEthernetWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_kubernetes_ethernet_matcher.go b/model_kubernetes_ethernet_matcher.go index 94bea2ff1e..d2d912aeb1 100644 --- a/model_kubernetes_ethernet_matcher.go +++ b/model_kubernetes_ethernet_matcher.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -88,6 +88,11 @@ func (o *KubernetesEthernetMatcher) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "kubernetes.EthernetMatcher" of the ClassId field. +func (o *KubernetesEthernetMatcher) GetDefaultClassId() interface{} { + return "kubernetes.EthernetMatcher" +} + // GetObjectType returns the ObjectType field value func (o *KubernetesEthernetMatcher) GetObjectType() string { if o == nil { @@ -112,6 +117,11 @@ func (o *KubernetesEthernetMatcher) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "kubernetes.EthernetMatcher" of the ObjectType field. +func (o *KubernetesEthernetMatcher) GetDefaultObjectType() interface{} { + return "kubernetes.EthernetMatcher" +} + // GetType returns the Type field value if set, zero value otherwise. func (o *KubernetesEthernetMatcher) GetType() string { if o == nil || IsNil(o.Type) { @@ -194,7 +204,13 @@ func (o KubernetesEthernetMatcher) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Type) { toSerialize["Type"] = o.Type @@ -219,6 +235,13 @@ func (o *KubernetesEthernetMatcher) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -228,11 +251,23 @@ func (o *KubernetesEthernetMatcher) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type KubernetesEthernetMatcherWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_kubernetes_http_proxy_policy.go b/model_kubernetes_http_proxy_policy.go index aab153b4f1..832ca457d0 100644 --- a/model_kubernetes_http_proxy_policy.go +++ b/model_kubernetes_http_proxy_policy.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -84,6 +84,11 @@ func (o *KubernetesHttpProxyPolicy) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "kubernetes.HttpProxyPolicy" of the ClassId field. +func (o *KubernetesHttpProxyPolicy) GetDefaultClassId() interface{} { + return "kubernetes.HttpProxyPolicy" +} + // GetObjectType returns the ObjectType field value func (o *KubernetesHttpProxyPolicy) GetObjectType() string { if o == nil { @@ -108,6 +113,11 @@ func (o *KubernetesHttpProxyPolicy) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "kubernetes.HttpProxyPolicy" of the ObjectType field. +func (o *KubernetesHttpProxyPolicy) GetDefaultObjectType() interface{} { + return "kubernetes.HttpProxyPolicy" +} + // GetHttpProxy returns the HttpProxy field value if set, zero value otherwise (both if not set or set to explicit null). func (o *KubernetesHttpProxyPolicy) GetHttpProxy() KubernetesProxyConfig { if o == nil || IsNil(o.HttpProxy.Get()) { @@ -215,7 +225,7 @@ func (o *KubernetesHttpProxyPolicy) GetNoProxyOk() ([]string, bool) { // HasNoProxy returns a boolean if a field has been set. func (o *KubernetesHttpProxyPolicy) HasNoProxy() bool { - if o != nil && IsNil(o.NoProxy) { + if o != nil && !IsNil(o.NoProxy) { return true } @@ -288,7 +298,13 @@ func (o KubernetesHttpProxyPolicy) ToMap() (map[string]interface{}, error) { if errPolicyAbstractPolicy != nil { return map[string]interface{}{}, errPolicyAbstractPolicy } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.HttpProxy.IsSet() { toSerialize["HttpProxy"] = o.HttpProxy.Get() @@ -319,6 +335,13 @@ func (o *KubernetesHttpProxyPolicy) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -328,11 +351,23 @@ func (o *KubernetesHttpProxyPolicy) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type KubernetesHttpProxyPolicyWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_kubernetes_http_proxy_policy_list.go b/model_kubernetes_http_proxy_policy_list.go index 8d21be09a6..918ab0b56d 100644 --- a/model_kubernetes_http_proxy_policy_list.go +++ b/model_kubernetes_http_proxy_policy_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *KubernetesHttpProxyPolicyList) GetResultsOk() ([]KubernetesHttpProxyPol // HasResults returns a boolean if a field has been set. func (o *KubernetesHttpProxyPolicyList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *KubernetesHttpProxyPolicyList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *KubernetesHttpProxyPolicyList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type KubernetesHttpProxyPolicyListWithoutEmbeddedStruct struct { // The total number of 'kubernetes.HttpProxyPolicy' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_kubernetes_http_proxy_policy_relationship.go b/model_kubernetes_http_proxy_policy_relationship.go index 8efaec37d0..30037ce1b7 100644 --- a/model_kubernetes_http_proxy_policy_relationship.go +++ b/model_kubernetes_http_proxy_policy_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_kubernetes_http_proxy_policy_response.go b/model_kubernetes_http_proxy_policy_response.go index f2fc22e35e..c0d951b194 100644 --- a/model_kubernetes_http_proxy_policy_response.go +++ b/model_kubernetes_http_proxy_policy_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_kubernetes_ingress.go b/model_kubernetes_ingress.go index 54386b4e4f..460d47c2b3 100644 --- a/model_kubernetes_ingress.go +++ b/model_kubernetes_ingress.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -82,6 +82,11 @@ func (o *KubernetesIngress) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "kubernetes.Ingress" of the ClassId field. +func (o *KubernetesIngress) GetDefaultClassId() interface{} { + return "kubernetes.Ingress" +} + // GetObjectType returns the ObjectType field value func (o *KubernetesIngress) GetObjectType() string { if o == nil { @@ -106,6 +111,11 @@ func (o *KubernetesIngress) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "kubernetes.Ingress" of the ObjectType field. +func (o *KubernetesIngress) GetDefaultObjectType() interface{} { + return "kubernetes.Ingress" +} + // GetStatus returns the Status field value if set, zero value otherwise (both if not set or set to explicit null). func (o *KubernetesIngress) GetStatus() KubernetesIngressStatus { if o == nil || IsNil(o.Status.Get()) { @@ -210,7 +220,13 @@ func (o KubernetesIngress) ToMap() (map[string]interface{}, error) { if errKubernetesAbstractIngress != nil { return map[string]interface{}{}, errKubernetesAbstractIngress } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.Status.IsSet() { toSerialize["Status"] = o.Status.Get() @@ -235,6 +251,13 @@ func (o *KubernetesIngress) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -244,11 +267,23 @@ func (o *KubernetesIngress) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type KubernetesIngressWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_kubernetes_ingress_list.go b/model_kubernetes_ingress_list.go index dfbff637e3..9ce802e5f8 100644 --- a/model_kubernetes_ingress_list.go +++ b/model_kubernetes_ingress_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *KubernetesIngressList) GetResultsOk() ([]KubernetesIngress, bool) { // HasResults returns a boolean if a field has been set. func (o *KubernetesIngressList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *KubernetesIngressList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *KubernetesIngressList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type KubernetesIngressListWithoutEmbeddedStruct struct { // The total number of 'kubernetes.Ingress' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_kubernetes_ingress_response.go b/model_kubernetes_ingress_response.go index a6b57d924f..74588aea1c 100644 --- a/model_kubernetes_ingress_response.go +++ b/model_kubernetes_ingress_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_kubernetes_ingress_status.go b/model_kubernetes_ingress_status.go index f0ebbb30cc..f8009d49b2 100644 --- a/model_kubernetes_ingress_status.go +++ b/model_kubernetes_ingress_status.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -81,6 +81,11 @@ func (o *KubernetesIngressStatus) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "kubernetes.IngressStatus" of the ClassId field. +func (o *KubernetesIngressStatus) GetDefaultClassId() interface{} { + return "kubernetes.IngressStatus" +} + // GetObjectType returns the ObjectType field value func (o *KubernetesIngressStatus) GetObjectType() string { if o == nil { @@ -105,6 +110,11 @@ func (o *KubernetesIngressStatus) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "kubernetes.IngressStatus" of the ObjectType field. +func (o *KubernetesIngressStatus) GetDefaultObjectType() interface{} { + return "kubernetes.IngressStatus" +} + // GetLoadBalancer returns the LoadBalancer field value if set, zero value otherwise (both if not set or set to explicit null). func (o *KubernetesIngressStatus) GetLoadBalancer() KubernetesLoadBalancer { if o == nil || IsNil(o.LoadBalancer.Get()) { @@ -166,7 +176,13 @@ func (o KubernetesIngressStatus) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.LoadBalancer.IsSet() { toSerialize["LoadBalancer"] = o.LoadBalancer.Get() @@ -188,6 +204,13 @@ func (o *KubernetesIngressStatus) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -197,11 +220,23 @@ func (o *KubernetesIngressStatus) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type KubernetesIngressStatusWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_kubernetes_instance_type_details.go b/model_kubernetes_instance_type_details.go index 0d00a9bc78..33c38e4882 100644 --- a/model_kubernetes_instance_type_details.go +++ b/model_kubernetes_instance_type_details.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -86,6 +86,11 @@ func (o *KubernetesInstanceTypeDetails) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "kubernetes.InstanceTypeDetails" of the ClassId field. +func (o *KubernetesInstanceTypeDetails) GetDefaultClassId() interface{} { + return "kubernetes.InstanceTypeDetails" +} + // GetObjectType returns the ObjectType field value func (o *KubernetesInstanceTypeDetails) GetObjectType() string { if o == nil { @@ -110,6 +115,11 @@ func (o *KubernetesInstanceTypeDetails) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "kubernetes.InstanceTypeDetails" of the ObjectType field. +func (o *KubernetesInstanceTypeDetails) GetDefaultObjectType() interface{} { + return "kubernetes.InstanceTypeDetails" +} + // GetCpu returns the Cpu field value if set, zero value otherwise. func (o *KubernetesInstanceTypeDetails) GetCpu() int64 { if o == nil || IsNil(o.Cpu) { @@ -224,7 +234,13 @@ func (o KubernetesInstanceTypeDetails) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Cpu) { toSerialize["Cpu"] = o.Cpu @@ -252,6 +268,13 @@ func (o *KubernetesInstanceTypeDetails) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -261,11 +284,23 @@ func (o *KubernetesInstanceTypeDetails) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type KubernetesInstanceTypeDetailsWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_kubernetes_ip_v4_config.go b/model_kubernetes_ip_v4_config.go index 84a6ab901a..0100c92289 100644 --- a/model_kubernetes_ip_v4_config.go +++ b/model_kubernetes_ip_v4_config.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -29,7 +29,7 @@ type KubernetesIpV4Config struct { // The fully-qualified name of the instantiated, concrete type. The value should be the same as the 'ClassId' property. ObjectType string `json:"ObjectType"` // IPv4 Address in CIDR format. - Ip *string `json:"Ip,omitempty"` + Ip *string `json:"Ip,omitempty" validate:"regexp=^$|^([1-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5]).([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5]).([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5]).([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\/([0-9]|[1-2][0-9]|3[0-2])$"` Lease *MoMoRef `json:"Lease,omitempty"` AdditionalProperties map[string]interface{} } @@ -83,6 +83,11 @@ func (o *KubernetesIpV4Config) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "kubernetes.IpV4Config" of the ClassId field. +func (o *KubernetesIpV4Config) GetDefaultClassId() interface{} { + return "kubernetes.IpV4Config" +} + // GetObjectType returns the ObjectType field value func (o *KubernetesIpV4Config) GetObjectType() string { if o == nil { @@ -107,6 +112,11 @@ func (o *KubernetesIpV4Config) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "kubernetes.IpV4Config" of the ObjectType field. +func (o *KubernetesIpV4Config) GetDefaultObjectType() interface{} { + return "kubernetes.IpV4Config" +} + // GetIp returns the Ip field value if set, zero value otherwise. func (o *KubernetesIpV4Config) GetIp() string { if o == nil || IsNil(o.Ip) { @@ -189,7 +199,13 @@ func (o KubernetesIpV4Config) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Ip) { toSerialize["Ip"] = o.Ip @@ -214,6 +230,13 @@ func (o *KubernetesIpV4Config) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -223,18 +246,30 @@ func (o *KubernetesIpV4Config) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type KubernetesIpV4ConfigWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` // The fully-qualified name of the instantiated, concrete type. The value should be the same as the 'ClassId' property. ObjectType string `json:"ObjectType"` // IPv4 Address in CIDR format. - Ip *string `json:"Ip,omitempty"` + Ip *string `json:"Ip,omitempty" validate:"regexp=^$|^([1-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5]).([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5]).([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5]).([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\/([0-9]|[1-2][0-9]|3[0-2])$"` Lease *MoMoRef `json:"Lease,omitempty"` } diff --git a/model_kubernetes_key_value.go b/model_kubernetes_key_value.go index fdd17bb99d..238be3998d 100644 --- a/model_kubernetes_key_value.go +++ b/model_kubernetes_key_value.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -84,6 +84,11 @@ func (o *KubernetesKeyValue) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "kubernetes.KeyValue" of the ClassId field. +func (o *KubernetesKeyValue) GetDefaultClassId() interface{} { + return "kubernetes.KeyValue" +} + // GetObjectType returns the ObjectType field value func (o *KubernetesKeyValue) GetObjectType() string { if o == nil { @@ -108,6 +113,11 @@ func (o *KubernetesKeyValue) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "kubernetes.KeyValue" of the ObjectType field. +func (o *KubernetesKeyValue) GetDefaultObjectType() interface{} { + return "kubernetes.KeyValue" +} + // GetKey returns the Key field value if set, zero value otherwise. func (o *KubernetesKeyValue) GetKey() string { if o == nil || IsNil(o.Key) { @@ -190,7 +200,13 @@ func (o KubernetesKeyValue) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Key) { toSerialize["Key"] = o.Key @@ -215,6 +231,13 @@ func (o *KubernetesKeyValue) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -224,11 +247,23 @@ func (o *KubernetesKeyValue) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type KubernetesKeyValueWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_kubernetes_kubernetes_resource.go b/model_kubernetes_kubernetes_resource.go index 5ea82c4cd1..06f55b1166 100644 --- a/model_kubernetes_kubernetes_resource.go +++ b/model_kubernetes_kubernetes_resource.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -258,6 +258,10 @@ func (o *KubernetesKubernetesResource) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -267,11 +271,23 @@ func (o *KubernetesKubernetesResource) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type KubernetesKubernetesResourceWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. The enum values provides the list of concrete types that can be instantiated from this abstract type. ClassId string `json:"ClassId"` diff --git a/model_kubernetes_load_balancer.go b/model_kubernetes_load_balancer.go index 0eaf9bb8c9..055013c21e 100644 --- a/model_kubernetes_load_balancer.go +++ b/model_kubernetes_load_balancer.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -81,6 +81,11 @@ func (o *KubernetesLoadBalancer) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "kubernetes.LoadBalancer" of the ClassId field. +func (o *KubernetesLoadBalancer) GetDefaultClassId() interface{} { + return "kubernetes.LoadBalancer" +} + // GetObjectType returns the ObjectType field value func (o *KubernetesLoadBalancer) GetObjectType() string { if o == nil { @@ -105,6 +110,11 @@ func (o *KubernetesLoadBalancer) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "kubernetes.LoadBalancer" of the ObjectType field. +func (o *KubernetesLoadBalancer) GetDefaultObjectType() interface{} { + return "kubernetes.LoadBalancer" +} + // GetIpAddresses returns the IpAddresses field value if set, zero value otherwise (both if not set or set to explicit null). func (o *KubernetesLoadBalancer) GetIpAddresses() []string { if o == nil { @@ -126,7 +136,7 @@ func (o *KubernetesLoadBalancer) GetIpAddressesOk() ([]string, bool) { // HasIpAddresses returns a boolean if a field has been set. func (o *KubernetesLoadBalancer) HasIpAddresses() bool { - if o != nil && IsNil(o.IpAddresses) { + if o != nil && !IsNil(o.IpAddresses) { return true } @@ -156,7 +166,13 @@ func (o KubernetesLoadBalancer) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.IpAddresses != nil { toSerialize["IpAddresses"] = o.IpAddresses @@ -178,6 +194,13 @@ func (o *KubernetesLoadBalancer) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -187,11 +210,23 @@ func (o *KubernetesLoadBalancer) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type KubernetesLoadBalancerWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_kubernetes_network_interface.go b/model_kubernetes_network_interface.go index d8fd4b9eaf..d5a5ec65a6 100644 --- a/model_kubernetes_network_interface.go +++ b/model_kubernetes_network_interface.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -131,7 +131,7 @@ func (o *KubernetesNetworkInterface) GetAddressesOk() ([]string, bool) { // HasAddresses returns a boolean if a field has been set. func (o *KubernetesNetworkInterface) HasAddresses() bool { - if o != nil && IsNil(o.Addresses) { + if o != nil && !IsNil(o.Addresses) { return true } @@ -199,7 +199,7 @@ func (o *KubernetesNetworkInterface) GetIpV4ConfigsOk() ([]KubernetesIpV4Config, // HasIpV4Configs returns a boolean if a field has been set. func (o *KubernetesNetworkInterface) HasIpV4Configs() bool { - if o != nil && IsNil(o.IpV4Configs) { + if o != nil && !IsNil(o.IpV4Configs) { return true } @@ -296,7 +296,7 @@ func (o *KubernetesNetworkInterface) GetRoutesOk() ([]KubernetesRoute, bool) { // HasRoutes returns a boolean if a field has been set. func (o *KubernetesNetworkInterface) HasRoutes() bool { - if o != nil && IsNil(o.Routes) { + if o != nil && !IsNil(o.Routes) { return true } @@ -363,6 +363,10 @@ func (o *KubernetesNetworkInterface) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -372,11 +376,23 @@ func (o *KubernetesNetworkInterface) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type KubernetesNetworkInterfaceWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. The enum values provides the list of concrete types that can be instantiated from this abstract type. ClassId string `json:"ClassId"` diff --git a/model_kubernetes_network_interface_spec.go b/model_kubernetes_network_interface_spec.go index 1ef901c680..f7792adbd8 100644 --- a/model_kubernetes_network_interface_spec.go +++ b/model_kubernetes_network_interface_spec.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -88,6 +88,11 @@ func (o *KubernetesNetworkInterfaceSpec) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "kubernetes.NetworkInterfaceSpec" of the ClassId field. +func (o *KubernetesNetworkInterfaceSpec) GetDefaultClassId() interface{} { + return "kubernetes.NetworkInterfaceSpec" +} + // GetObjectType returns the ObjectType field value func (o *KubernetesNetworkInterfaceSpec) GetObjectType() string { if o == nil { @@ -112,6 +117,11 @@ func (o *KubernetesNetworkInterfaceSpec) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "kubernetes.NetworkInterfaceSpec" of the ObjectType field. +func (o *KubernetesNetworkInterfaceSpec) GetDefaultObjectType() interface{} { + return "kubernetes.NetworkInterfaceSpec" +} + // GetMtu returns the Mtu field value if set, zero value otherwise. func (o *KubernetesNetworkInterfaceSpec) GetMtu() int64 { if o == nil || IsNil(o.Mtu) { @@ -197,7 +207,7 @@ func (o *KubernetesNetworkInterfaceSpec) GetPoolsOk() ([]MoMoRef, bool) { // HasPools returns a boolean if a field has been set. func (o *KubernetesNetworkInterfaceSpec) HasPools() bool { - if o != nil && IsNil(o.Pools) { + if o != nil && !IsNil(o.Pools) { return true } @@ -291,7 +301,13 @@ func (o KubernetesNetworkInterfaceSpec) ToMap() (map[string]interface{}, error) if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Mtu) { toSerialize["Mtu"] = o.Mtu @@ -325,6 +341,13 @@ func (o *KubernetesNetworkInterfaceSpec) UnmarshalJSON(data []byte) (err error) "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -334,11 +357,23 @@ func (o *KubernetesNetworkInterfaceSpec) UnmarshalJSON(data []byte) (err error) } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type KubernetesNetworkInterfaceSpecWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_kubernetes_network_policy.go b/model_kubernetes_network_policy.go index 189057a26b..9e01fa0b1b 100644 --- a/model_kubernetes_network_policy.go +++ b/model_kubernetes_network_policy.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -32,9 +32,9 @@ type KubernetesNetworkPolicy struct { // Supported CNI type. Currently we only support Calico. * `Calico` - Calico CNI plugin as described in https://github.com/projectcalico/cni-plugin. * `Aci` - Cisco ACI Container Network Interface plugin. CniType *string `json:"CniType,omitempty"` // CIDR block to allocate Pod network IP addresses from. - PodNetworkCidr *string `json:"PodNetworkCidr,omitempty"` + PodNetworkCidr *string `json:"PodNetworkCidr,omitempty" validate:"regexp=^$|^([1-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5]).([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5]).([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5]).([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\/([0-9]|[1-2][0-9]|3[0-2])$"` // CIDR block to allocate cluster service IP addresses from. - ServiceCidr *string `json:"ServiceCidr,omitempty"` + ServiceCidr *string `json:"ServiceCidr,omitempty" validate:"regexp=^$|^([1-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5]).([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5]).([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5]).([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\/([0-9]|[1-2][0-9]|3[0-2])$"` // An array of relationships to kubernetesClusterProfile resources. ClusterProfiles []KubernetesClusterProfileRelationship `json:"ClusterProfiles,omitempty"` Organization NullableOrganizationOrganizationRelationship `json:"Organization,omitempty"` @@ -94,6 +94,11 @@ func (o *KubernetesNetworkPolicy) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "kubernetes.NetworkPolicy" of the ClassId field. +func (o *KubernetesNetworkPolicy) GetDefaultClassId() interface{} { + return "kubernetes.NetworkPolicy" +} + // GetObjectType returns the ObjectType field value func (o *KubernetesNetworkPolicy) GetObjectType() string { if o == nil { @@ -118,6 +123,11 @@ func (o *KubernetesNetworkPolicy) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "kubernetes.NetworkPolicy" of the ObjectType field. +func (o *KubernetesNetworkPolicy) GetDefaultObjectType() interface{} { + return "kubernetes.NetworkPolicy" +} + // GetCniConfig returns the CniConfig field value if set, zero value otherwise (both if not set or set to explicit null). func (o *KubernetesNetworkPolicy) GetCniConfig() KubernetesCniConfig { if o == nil || IsNil(o.CniConfig.Get()) { @@ -278,7 +288,7 @@ func (o *KubernetesNetworkPolicy) GetClusterProfilesOk() ([]KubernetesClusterPro // HasClusterProfiles returns a boolean if a field has been set. func (o *KubernetesNetworkPolicy) HasClusterProfiles() bool { - if o != nil && IsNil(o.ClusterProfiles) { + if o != nil && !IsNil(o.ClusterProfiles) { return true } @@ -351,7 +361,13 @@ func (o KubernetesNetworkPolicy) ToMap() (map[string]interface{}, error) { if errPolicyAbstractPolicy != nil { return map[string]interface{}{}, errPolicyAbstractPolicy } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.CniConfig.IsSet() { toSerialize["CniConfig"] = o.CniConfig.Get() @@ -388,6 +404,13 @@ func (o *KubernetesNetworkPolicy) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -397,11 +420,23 @@ func (o *KubernetesNetworkPolicy) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type KubernetesNetworkPolicyWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` @@ -411,9 +446,9 @@ func (o *KubernetesNetworkPolicy) UnmarshalJSON(data []byte) (err error) { // Supported CNI type. Currently we only support Calico. * `Calico` - Calico CNI plugin as described in https://github.com/projectcalico/cni-plugin. * `Aci` - Cisco ACI Container Network Interface plugin. CniType *string `json:"CniType,omitempty"` // CIDR block to allocate Pod network IP addresses from. - PodNetworkCidr *string `json:"PodNetworkCidr,omitempty"` + PodNetworkCidr *string `json:"PodNetworkCidr,omitempty" validate:"regexp=^$|^([1-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5]).([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5]).([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5]).([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\/([0-9]|[1-2][0-9]|3[0-2])$"` // CIDR block to allocate cluster service IP addresses from. - ServiceCidr *string `json:"ServiceCidr,omitempty"` + ServiceCidr *string `json:"ServiceCidr,omitempty" validate:"regexp=^$|^([1-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5]).([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5]).([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5]).([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\/([0-9]|[1-2][0-9]|3[0-2])$"` // An array of relationships to kubernetesClusterProfile resources. ClusterProfiles []KubernetesClusterProfileRelationship `json:"ClusterProfiles,omitempty"` Organization NullableOrganizationOrganizationRelationship `json:"Organization,omitempty"` diff --git a/model_kubernetes_network_policy_list.go b/model_kubernetes_network_policy_list.go index e6281c7db3..56974f7afd 100644 --- a/model_kubernetes_network_policy_list.go +++ b/model_kubernetes_network_policy_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *KubernetesNetworkPolicyList) GetResultsOk() ([]KubernetesNetworkPolicy, // HasResults returns a boolean if a field has been set. func (o *KubernetesNetworkPolicyList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *KubernetesNetworkPolicyList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *KubernetesNetworkPolicyList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type KubernetesNetworkPolicyListWithoutEmbeddedStruct struct { // The total number of 'kubernetes.NetworkPolicy' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_kubernetes_network_policy_relationship.go b/model_kubernetes_network_policy_relationship.go index 6d6a9d377d..6c4fc4d732 100644 --- a/model_kubernetes_network_policy_relationship.go +++ b/model_kubernetes_network_policy_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_kubernetes_network_policy_response.go b/model_kubernetes_network_policy_response.go index 3aaeeed169..dfa4909b51 100644 --- a/model_kubernetes_network_policy_response.go +++ b/model_kubernetes_network_policy_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_kubernetes_node.go b/model_kubernetes_node.go index 90c70a4d7d..7f1cd931ca 100644 --- a/model_kubernetes_node.go +++ b/model_kubernetes_node.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -85,6 +85,11 @@ func (o *KubernetesNode) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "kubernetes.Node" of the ClassId field. +func (o *KubernetesNode) GetDefaultClassId() interface{} { + return "kubernetes.Node" +} + // GetObjectType returns the ObjectType field value func (o *KubernetesNode) GetObjectType() string { if o == nil { @@ -109,6 +114,11 @@ func (o *KubernetesNode) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "kubernetes.Node" of the ObjectType field. +func (o *KubernetesNode) GetDefaultObjectType() interface{} { + return "kubernetes.Node" +} + // GetNodeAddresses returns the NodeAddresses field value if set, zero value otherwise (both if not set or set to explicit null). func (o *KubernetesNode) GetNodeAddresses() []KubernetesNodeAddress { if o == nil { @@ -130,7 +140,7 @@ func (o *KubernetesNode) GetNodeAddressesOk() ([]KubernetesNodeAddress, bool) { // HasNodeAddresses returns a boolean if a field has been set. func (o *KubernetesNode) HasNodeAddresses() bool { - if o != nil && IsNil(o.NodeAddresses) { + if o != nil && !IsNil(o.NodeAddresses) { return true } @@ -249,7 +259,7 @@ func (o *KubernetesNode) GetNodeStatusesOk() ([]KubernetesNodeStatus, bool) { // HasNodeStatuses returns a boolean if a field has been set. func (o *KubernetesNode) HasNodeStatuses() bool { - if o != nil && IsNil(o.NodeStatuses) { + if o != nil && !IsNil(o.NodeStatuses) { return true } @@ -322,7 +332,13 @@ func (o KubernetesNode) ToMap() (map[string]interface{}, error) { if errKubernetesAbstractNode != nil { return map[string]interface{}{}, errKubernetesAbstractNode } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.NodeAddresses != nil { toSerialize["NodeAddresses"] = o.NodeAddresses @@ -356,6 +372,13 @@ func (o *KubernetesNode) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -365,11 +388,23 @@ func (o *KubernetesNode) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type KubernetesNodeWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_kubernetes_node_address.go b/model_kubernetes_node_address.go index 7965e58ab1..cb9d3c1a41 100644 --- a/model_kubernetes_node_address.go +++ b/model_kubernetes_node_address.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -84,6 +84,11 @@ func (o *KubernetesNodeAddress) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "kubernetes.NodeAddress" of the ClassId field. +func (o *KubernetesNodeAddress) GetDefaultClassId() interface{} { + return "kubernetes.NodeAddress" +} + // GetObjectType returns the ObjectType field value func (o *KubernetesNodeAddress) GetObjectType() string { if o == nil { @@ -108,6 +113,11 @@ func (o *KubernetesNodeAddress) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "kubernetes.NodeAddress" of the ObjectType field. +func (o *KubernetesNodeAddress) GetDefaultObjectType() interface{} { + return "kubernetes.NodeAddress" +} + // GetAddress returns the Address field value if set, zero value otherwise. func (o *KubernetesNodeAddress) GetAddress() string { if o == nil || IsNil(o.Address) { @@ -190,7 +200,13 @@ func (o KubernetesNodeAddress) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Address) { toSerialize["Address"] = o.Address @@ -215,6 +231,13 @@ func (o *KubernetesNodeAddress) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -224,11 +247,23 @@ func (o *KubernetesNodeAddress) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type KubernetesNodeAddressWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_kubernetes_node_group_label.go b/model_kubernetes_node_group_label.go index e808779735..33cf3abe2f 100644 --- a/model_kubernetes_node_group_label.go +++ b/model_kubernetes_node_group_label.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -84,6 +84,11 @@ func (o *KubernetesNodeGroupLabel) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "kubernetes.NodeGroupLabel" of the ClassId field. +func (o *KubernetesNodeGroupLabel) GetDefaultClassId() interface{} { + return "kubernetes.NodeGroupLabel" +} + // GetObjectType returns the ObjectType field value func (o *KubernetesNodeGroupLabel) GetObjectType() string { if o == nil { @@ -108,6 +113,11 @@ func (o *KubernetesNodeGroupLabel) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "kubernetes.NodeGroupLabel" of the ObjectType field. +func (o *KubernetesNodeGroupLabel) GetDefaultObjectType() interface{} { + return "kubernetes.NodeGroupLabel" +} + // GetKey returns the Key field value if set, zero value otherwise. func (o *KubernetesNodeGroupLabel) GetKey() string { if o == nil || IsNil(o.Key) { @@ -190,7 +200,13 @@ func (o KubernetesNodeGroupLabel) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Key) { toSerialize["Key"] = o.Key @@ -215,6 +231,13 @@ func (o *KubernetesNodeGroupLabel) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -224,11 +247,23 @@ func (o *KubernetesNodeGroupLabel) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type KubernetesNodeGroupLabelWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_kubernetes_node_group_profile.go b/model_kubernetes_node_group_profile.go index 855c6f999c..b0ec6e5b44 100644 --- a/model_kubernetes_node_group_profile.go +++ b/model_kubernetes_node_group_profile.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -113,6 +113,11 @@ func (o *KubernetesNodeGroupProfile) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "kubernetes.NodeGroupProfile" of the ClassId field. +func (o *KubernetesNodeGroupProfile) GetDefaultClassId() interface{} { + return "kubernetes.NodeGroupProfile" +} + // GetObjectType returns the ObjectType field value func (o *KubernetesNodeGroupProfile) GetObjectType() string { if o == nil { @@ -137,6 +142,11 @@ func (o *KubernetesNodeGroupProfile) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "kubernetes.NodeGroupProfile" of the ObjectType field. +func (o *KubernetesNodeGroupProfile) GetDefaultObjectType() interface{} { + return "kubernetes.NodeGroupProfile" +} + // GetCurrentsize returns the Currentsize field value if set, zero value otherwise. func (o *KubernetesNodeGroupProfile) GetCurrentsize() int64 { if o == nil || IsNil(o.Currentsize) { @@ -222,7 +232,7 @@ func (o *KubernetesNodeGroupProfile) GetGpuConfigOk() ([]InfraBaseGpuConfigurati // HasGpuConfig returns a boolean if a field has been set. func (o *KubernetesNodeGroupProfile) HasGpuConfig() bool { - if o != nil && IsNil(o.GpuConfig) { + if o != nil && !IsNil(o.GpuConfig) { return true } @@ -255,7 +265,7 @@ func (o *KubernetesNodeGroupProfile) GetLabelsOk() ([]KubernetesNodeGroupLabel, // HasLabels returns a boolean if a field has been set. func (o *KubernetesNodeGroupProfile) HasLabels() bool { - if o != nil && IsNil(o.Labels) { + if o != nil && !IsNil(o.Labels) { return true } @@ -384,7 +394,7 @@ func (o *KubernetesNodeGroupProfile) GetTaintsOk() ([]KubernetesNodeGroupTaint, // HasTaints returns a boolean if a field has been set. func (o *KubernetesNodeGroupProfile) HasTaints() bool { - if o != nil && IsNil(o.Taints) { + if o != nil && !IsNil(o.Taints) { return true } @@ -505,7 +515,7 @@ func (o *KubernetesNodeGroupProfile) GetIpPoolsOk() ([]IppoolPoolRelationship, b // HasIpPools returns a boolean if a field has been set. func (o *KubernetesNodeGroupProfile) HasIpPools() bool { - if o != nil && IsNil(o.IpPools) { + if o != nil && !IsNil(o.IpPools) { return true } @@ -582,7 +592,7 @@ func (o *KubernetesNodeGroupProfile) GetNodesOk() ([]KubernetesNodeProfileRelati // HasNodes returns a boolean if a field has been set. func (o *KubernetesNodeGroupProfile) HasNodes() bool { - if o != nil && IsNil(o.Nodes) { + if o != nil && !IsNil(o.Nodes) { return true } @@ -612,7 +622,13 @@ func (o KubernetesNodeGroupProfile) ToMap() (map[string]interface{}, error) { if errPolicyAbstractConfigProfile != nil { return map[string]interface{}{}, errPolicyAbstractConfigProfile } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Currentsize) { toSerialize["Currentsize"] = o.Currentsize @@ -670,6 +686,13 @@ func (o *KubernetesNodeGroupProfile) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -679,11 +702,23 @@ func (o *KubernetesNodeGroupProfile) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type KubernetesNodeGroupProfileWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_kubernetes_node_group_profile_list.go b/model_kubernetes_node_group_profile_list.go index 6f6109a123..ad40b39daa 100644 --- a/model_kubernetes_node_group_profile_list.go +++ b/model_kubernetes_node_group_profile_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *KubernetesNodeGroupProfileList) GetResultsOk() ([]KubernetesNodeGroupPr // HasResults returns a boolean if a field has been set. func (o *KubernetesNodeGroupProfileList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *KubernetesNodeGroupProfileList) UnmarshalJSON(data []byte) (err error) "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *KubernetesNodeGroupProfileList) UnmarshalJSON(data []byte) (err error) } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type KubernetesNodeGroupProfileListWithoutEmbeddedStruct struct { // The total number of 'kubernetes.NodeGroupProfile' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_kubernetes_node_group_profile_relationship.go b/model_kubernetes_node_group_profile_relationship.go index 3cfcbd6a71..41a26cc392 100644 --- a/model_kubernetes_node_group_profile_relationship.go +++ b/model_kubernetes_node_group_profile_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_kubernetes_node_group_profile_response.go b/model_kubernetes_node_group_profile_response.go index 3b7cbfc9d7..86e09da244 100644 --- a/model_kubernetes_node_group_profile_response.go +++ b/model_kubernetes_node_group_profile_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_kubernetes_node_group_taint.go b/model_kubernetes_node_group_taint.go index 806be83b6b..62f72e389d 100644 --- a/model_kubernetes_node_group_taint.go +++ b/model_kubernetes_node_group_taint.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -86,6 +86,11 @@ func (o *KubernetesNodeGroupTaint) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "kubernetes.NodeGroupTaint" of the ClassId field. +func (o *KubernetesNodeGroupTaint) GetDefaultClassId() interface{} { + return "kubernetes.NodeGroupTaint" +} + // GetObjectType returns the ObjectType field value func (o *KubernetesNodeGroupTaint) GetObjectType() string { if o == nil { @@ -110,6 +115,11 @@ func (o *KubernetesNodeGroupTaint) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "kubernetes.NodeGroupTaint" of the ObjectType field. +func (o *KubernetesNodeGroupTaint) GetDefaultObjectType() interface{} { + return "kubernetes.NodeGroupTaint" +} + // GetEffect returns the Effect field value if set, zero value otherwise. func (o *KubernetesNodeGroupTaint) GetEffect() string { if o == nil || IsNil(o.Effect) { @@ -224,7 +234,13 @@ func (o KubernetesNodeGroupTaint) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Effect) { toSerialize["Effect"] = o.Effect @@ -252,6 +268,13 @@ func (o *KubernetesNodeGroupTaint) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -261,11 +284,23 @@ func (o *KubernetesNodeGroupTaint) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type KubernetesNodeGroupTaintWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_kubernetes_node_info.go b/model_kubernetes_node_info.go index 00859c6db4..69a91bc95f 100644 --- a/model_kubernetes_node_info.go +++ b/model_kubernetes_node_info.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -100,6 +100,11 @@ func (o *KubernetesNodeInfo) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "kubernetes.NodeInfo" of the ClassId field. +func (o *KubernetesNodeInfo) GetDefaultClassId() interface{} { + return "kubernetes.NodeInfo" +} + // GetObjectType returns the ObjectType field value func (o *KubernetesNodeInfo) GetObjectType() string { if o == nil { @@ -124,6 +129,11 @@ func (o *KubernetesNodeInfo) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "kubernetes.NodeInfo" of the ObjectType field. +func (o *KubernetesNodeInfo) GetDefaultObjectType() interface{} { + return "kubernetes.NodeInfo" +} + // GetArchitecture returns the Architecture field value if set, zero value otherwise. func (o *KubernetesNodeInfo) GetArchitecture() string { if o == nil || IsNil(o.Architecture) { @@ -462,7 +472,13 @@ func (o KubernetesNodeInfo) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Architecture) { toSerialize["Architecture"] = o.Architecture @@ -511,6 +527,13 @@ func (o *KubernetesNodeInfo) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -520,11 +543,23 @@ func (o *KubernetesNodeInfo) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type KubernetesNodeInfoWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_kubernetes_node_list.go b/model_kubernetes_node_list.go index 5e32b6d6db..fa4152b443 100644 --- a/model_kubernetes_node_list.go +++ b/model_kubernetes_node_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *KubernetesNodeList) GetResultsOk() ([]KubernetesNode, bool) { // HasResults returns a boolean if a field has been set. func (o *KubernetesNodeList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *KubernetesNodeList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *KubernetesNodeList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type KubernetesNodeListWithoutEmbeddedStruct struct { // The total number of 'kubernetes.Node' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_kubernetes_node_profile.go b/model_kubernetes_node_profile.go index f14141d1d1..d612c04d9f 100644 --- a/model_kubernetes_node_profile.go +++ b/model_kubernetes_node_profile.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -370,6 +370,10 @@ func (o *KubernetesNodeProfile) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -379,11 +383,23 @@ func (o *KubernetesNodeProfile) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type KubernetesNodeProfileWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. The enum values provides the list of concrete types that can be instantiated from this abstract type. ClassId string `json:"ClassId"` diff --git a/model_kubernetes_node_profile_relationship.go b/model_kubernetes_node_profile_relationship.go index 3b8fcf0fae..e3849873da 100644 --- a/model_kubernetes_node_profile_relationship.go +++ b/model_kubernetes_node_profile_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_kubernetes_node_response.go b/model_kubernetes_node_response.go index c326d0f46e..66dbe95ffa 100644 --- a/model_kubernetes_node_response.go +++ b/model_kubernetes_node_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_kubernetes_node_spec.go b/model_kubernetes_node_spec.go index 9c0cae840e..c04363d71b 100644 --- a/model_kubernetes_node_spec.go +++ b/model_kubernetes_node_spec.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -84,6 +84,11 @@ func (o *KubernetesNodeSpec) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "kubernetes.NodeSpec" of the ClassId field. +func (o *KubernetesNodeSpec) GetDefaultClassId() interface{} { + return "kubernetes.NodeSpec" +} + // GetObjectType returns the ObjectType field value func (o *KubernetesNodeSpec) GetObjectType() string { if o == nil { @@ -108,6 +113,11 @@ func (o *KubernetesNodeSpec) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "kubernetes.NodeSpec" of the ObjectType field. +func (o *KubernetesNodeSpec) GetDefaultObjectType() interface{} { + return "kubernetes.NodeSpec" +} + // GetPodCidr returns the PodCidr field value if set, zero value otherwise. func (o *KubernetesNodeSpec) GetPodCidr() string { if o == nil || IsNil(o.PodCidr) { @@ -190,7 +200,13 @@ func (o KubernetesNodeSpec) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.PodCidr) { toSerialize["PodCidr"] = o.PodCidr @@ -215,6 +231,13 @@ func (o *KubernetesNodeSpec) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -224,11 +247,23 @@ func (o *KubernetesNodeSpec) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type KubernetesNodeSpecWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_kubernetes_node_status.go b/model_kubernetes_node_status.go index c4f62f5a6c..216d1d44bf 100644 --- a/model_kubernetes_node_status.go +++ b/model_kubernetes_node_status.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -84,6 +84,11 @@ func (o *KubernetesNodeStatus) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "kubernetes.NodeStatus" of the ClassId field. +func (o *KubernetesNodeStatus) GetDefaultClassId() interface{} { + return "kubernetes.NodeStatus" +} + // GetObjectType returns the ObjectType field value func (o *KubernetesNodeStatus) GetObjectType() string { if o == nil { @@ -108,6 +113,11 @@ func (o *KubernetesNodeStatus) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "kubernetes.NodeStatus" of the ObjectType field. +func (o *KubernetesNodeStatus) GetDefaultObjectType() interface{} { + return "kubernetes.NodeStatus" +} + // GetStatus returns the Status field value if set, zero value otherwise. func (o *KubernetesNodeStatus) GetStatus() string { if o == nil || IsNil(o.Status) { @@ -190,7 +200,13 @@ func (o KubernetesNodeStatus) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Status) { toSerialize["Status"] = o.Status @@ -215,6 +231,13 @@ func (o *KubernetesNodeStatus) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -224,11 +247,23 @@ func (o *KubernetesNodeStatus) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type KubernetesNodeStatusWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_kubernetes_nvidia_gpu_product.go b/model_kubernetes_nvidia_gpu_product.go index 6d7580dc4d..2578929950 100644 --- a/model_kubernetes_nvidia_gpu_product.go +++ b/model_kubernetes_nvidia_gpu_product.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -83,6 +83,11 @@ func (o *KubernetesNvidiaGpuProduct) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "kubernetes.NvidiaGpuProduct" of the ClassId field. +func (o *KubernetesNvidiaGpuProduct) GetDefaultClassId() interface{} { + return "kubernetes.NvidiaGpuProduct" +} + // GetObjectType returns the ObjectType field value func (o *KubernetesNvidiaGpuProduct) GetObjectType() string { if o == nil { @@ -107,6 +112,11 @@ func (o *KubernetesNvidiaGpuProduct) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "kubernetes.NvidiaGpuProduct" of the ObjectType field. +func (o *KubernetesNvidiaGpuProduct) GetDefaultObjectType() interface{} { + return "kubernetes.NvidiaGpuProduct" +} + // GetMigCapable returns the MigCapable field value if set, zero value otherwise. func (o *KubernetesNvidiaGpuProduct) GetMigCapable() bool { if o == nil || IsNil(o.MigCapable) { @@ -160,7 +170,7 @@ func (o *KubernetesNvidiaGpuProduct) GetMigProfilesOk() ([]string, bool) { // HasMigProfiles returns a boolean if a field has been set. func (o *KubernetesNvidiaGpuProduct) HasMigProfiles() bool { - if o != nil && IsNil(o.MigProfiles) { + if o != nil && !IsNil(o.MigProfiles) { return true } @@ -190,7 +200,13 @@ func (o KubernetesNvidiaGpuProduct) ToMap() (map[string]interface{}, error) { if errKubernetesBaseGpuProduct != nil { return map[string]interface{}{}, errKubernetesBaseGpuProduct } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.MigCapable) { toSerialize["MigCapable"] = o.MigCapable @@ -215,6 +231,13 @@ func (o *KubernetesNvidiaGpuProduct) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -224,11 +247,23 @@ func (o *KubernetesNvidiaGpuProduct) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type KubernetesNvidiaGpuProductWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_kubernetes_nvidia_gpu_product_list.go b/model_kubernetes_nvidia_gpu_product_list.go index 7b2b748587..df0f778082 100644 --- a/model_kubernetes_nvidia_gpu_product_list.go +++ b/model_kubernetes_nvidia_gpu_product_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *KubernetesNvidiaGpuProductList) GetResultsOk() ([]KubernetesNvidiaGpuPr // HasResults returns a boolean if a field has been set. func (o *KubernetesNvidiaGpuProductList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *KubernetesNvidiaGpuProductList) UnmarshalJSON(data []byte) (err error) "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *KubernetesNvidiaGpuProductList) UnmarshalJSON(data []byte) (err error) } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type KubernetesNvidiaGpuProductListWithoutEmbeddedStruct struct { // The total number of 'kubernetes.NvidiaGpuProduct' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_kubernetes_nvidia_gpu_product_response.go b/model_kubernetes_nvidia_gpu_product_response.go index 674e9e8cb9..4ee61885b1 100644 --- a/model_kubernetes_nvidia_gpu_product_response.go +++ b/model_kubernetes_nvidia_gpu_product_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_kubernetes_object_meta.go b/model_kubernetes_object_meta.go index 9c04769663..8eac2ebc69 100644 --- a/model_kubernetes_object_meta.go +++ b/model_kubernetes_object_meta.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -90,6 +90,11 @@ func (o *KubernetesObjectMeta) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "kubernetes.ObjectMeta" of the ClassId field. +func (o *KubernetesObjectMeta) GetDefaultClassId() interface{} { + return "kubernetes.ObjectMeta" +} + // GetObjectType returns the ObjectType field value func (o *KubernetesObjectMeta) GetObjectType() string { if o == nil { @@ -114,6 +119,11 @@ func (o *KubernetesObjectMeta) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "kubernetes.ObjectMeta" of the ObjectType field. +func (o *KubernetesObjectMeta) GetDefaultObjectType() interface{} { + return "kubernetes.ObjectMeta" +} + // GetCreationTimestamp returns the CreationTimestamp field value if set, zero value otherwise. func (o *KubernetesObjectMeta) GetCreationTimestamp() string { if o == nil || IsNil(o.CreationTimestamp) { @@ -292,7 +302,13 @@ func (o KubernetesObjectMeta) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.CreationTimestamp) { toSerialize["CreationTimestamp"] = o.CreationTimestamp @@ -326,6 +342,13 @@ func (o *KubernetesObjectMeta) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -335,11 +358,23 @@ func (o *KubernetesObjectMeta) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type KubernetesObjectMetaWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_kubernetes_ovs_bond.go b/model_kubernetes_ovs_bond.go index bf6683394d..5371dc4df3 100644 --- a/model_kubernetes_ovs_bond.go +++ b/model_kubernetes_ovs_bond.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -83,6 +83,11 @@ func (o *KubernetesOvsBond) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "kubernetes.OvsBond" of the ClassId field. +func (o *KubernetesOvsBond) GetDefaultClassId() interface{} { + return "kubernetes.OvsBond" +} + // GetObjectType returns the ObjectType field value func (o *KubernetesOvsBond) GetObjectType() string { if o == nil { @@ -107,6 +112,11 @@ func (o *KubernetesOvsBond) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "kubernetes.OvsBond" of the ObjectType field. +func (o *KubernetesOvsBond) GetDefaultObjectType() interface{} { + return "kubernetes.OvsBond" +} + // GetInterfaces returns the Interfaces field value if set, zero value otherwise (both if not set or set to explicit null). func (o *KubernetesOvsBond) GetInterfaces() []string { if o == nil { @@ -128,7 +138,7 @@ func (o *KubernetesOvsBond) GetInterfacesOk() ([]string, bool) { // HasInterfaces returns a boolean if a field has been set. func (o *KubernetesOvsBond) HasInterfaces() bool { - if o != nil && IsNil(o.Interfaces) { + if o != nil && !IsNil(o.Interfaces) { return true } @@ -190,7 +200,13 @@ func (o KubernetesOvsBond) ToMap() (map[string]interface{}, error) { if errKubernetesNetworkInterface != nil { return map[string]interface{}{}, errKubernetesNetworkInterface } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.Interfaces != nil { toSerialize["Interfaces"] = o.Interfaces @@ -215,6 +231,13 @@ func (o *KubernetesOvsBond) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -224,11 +247,23 @@ func (o *KubernetesOvsBond) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type KubernetesOvsBondWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_kubernetes_pod.go b/model_kubernetes_pod.go index 651642012f..5b9cb9bea6 100644 --- a/model_kubernetes_pod.go +++ b/model_kubernetes_pod.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -82,6 +82,11 @@ func (o *KubernetesPod) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "kubernetes.Pod" of the ClassId field. +func (o *KubernetesPod) GetDefaultClassId() interface{} { + return "kubernetes.Pod" +} + // GetObjectType returns the ObjectType field value func (o *KubernetesPod) GetObjectType() string { if o == nil { @@ -106,6 +111,11 @@ func (o *KubernetesPod) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "kubernetes.Pod" of the ObjectType field. +func (o *KubernetesPod) GetDefaultObjectType() interface{} { + return "kubernetes.Pod" +} + // GetStatus returns the Status field value if set, zero value otherwise (both if not set or set to explicit null). func (o *KubernetesPod) GetStatus() KubernetesPodStatus { if o == nil || IsNil(o.Status.Get()) { @@ -210,7 +220,13 @@ func (o KubernetesPod) ToMap() (map[string]interface{}, error) { if errKubernetesAbstractPod != nil { return map[string]interface{}{}, errKubernetesAbstractPod } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.Status.IsSet() { toSerialize["Status"] = o.Status.Get() @@ -235,6 +251,13 @@ func (o *KubernetesPod) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -244,11 +267,23 @@ func (o *KubernetesPod) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type KubernetesPodWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_kubernetes_pod_list.go b/model_kubernetes_pod_list.go index 384e2b11e4..ec44e6420d 100644 --- a/model_kubernetes_pod_list.go +++ b/model_kubernetes_pod_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *KubernetesPodList) GetResultsOk() ([]KubernetesPod, bool) { // HasResults returns a boolean if a field has been set. func (o *KubernetesPodList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *KubernetesPodList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *KubernetesPodList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type KubernetesPodListWithoutEmbeddedStruct struct { // The total number of 'kubernetes.Pod' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_kubernetes_pod_response.go b/model_kubernetes_pod_response.go index 462e7feb66..8f3cfddd5e 100644 --- a/model_kubernetes_pod_response.go +++ b/model_kubernetes_pod_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_kubernetes_pod_status.go b/model_kubernetes_pod_status.go index 10748eacf1..4f6a9c3911 100644 --- a/model_kubernetes_pod_status.go +++ b/model_kubernetes_pod_status.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -90,6 +90,11 @@ func (o *KubernetesPodStatus) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "kubernetes.PodStatus" of the ClassId field. +func (o *KubernetesPodStatus) GetDefaultClassId() interface{} { + return "kubernetes.PodStatus" +} + // GetObjectType returns the ObjectType field value func (o *KubernetesPodStatus) GetObjectType() string { if o == nil { @@ -114,6 +119,11 @@ func (o *KubernetesPodStatus) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "kubernetes.PodStatus" of the ObjectType field. +func (o *KubernetesPodStatus) GetDefaultObjectType() interface{} { + return "kubernetes.PodStatus" +} + // GetHostIp returns the HostIp field value if set, zero value otherwise. func (o *KubernetesPodStatus) GetHostIp() string { if o == nil || IsNil(o.HostIp) { @@ -292,7 +302,13 @@ func (o KubernetesPodStatus) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.HostIp) { toSerialize["HostIp"] = o.HostIp @@ -326,6 +342,13 @@ func (o *KubernetesPodStatus) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -335,11 +358,23 @@ func (o *KubernetesPodStatus) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type KubernetesPodStatusWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_kubernetes_proxy_config.go b/model_kubernetes_proxy_config.go index 4a86806621..bf63968e74 100644 --- a/model_kubernetes_proxy_config.go +++ b/model_kubernetes_proxy_config.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -29,7 +29,7 @@ type KubernetesProxyConfig struct { // The fully-qualified name of the instantiated, concrete type. The value should be the same as the 'ClassId' property. ObjectType string `json:"ObjectType"` // HTTP/HTTPS Proxy server FQDN or IP. - Hostname *string `json:"Hostname,omitempty"` + Hostname *string `json:"Hostname,omitempty" validate:"regexp=^[A-Za-z]([A-Za-z0-9-]*[A-Za-z0-9])?$|^[A-Za-z0-9]([A-Za-z0-9-]*[A-Za-z0-9])?(\\\\.[A-Za-z0-9]([A-Za-z0-9-]*[A-Za-z0-9])?)*(\\\\.[A-Za-z]([A-Za-z0-9-]*[A-Za-z0-9])?)$|^([1-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\\\.([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\\\.([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\\\.([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])$"` // Indicates whether the value of the 'password' property has been set. IsPasswordSet *bool `json:"IsPasswordSet,omitempty"` // The password for the HTTP/HTTPS Proxy. @@ -92,6 +92,11 @@ func (o *KubernetesProxyConfig) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "kubernetes.ProxyConfig" of the ClassId field. +func (o *KubernetesProxyConfig) GetDefaultClassId() interface{} { + return "kubernetes.ProxyConfig" +} + // GetObjectType returns the ObjectType field value func (o *KubernetesProxyConfig) GetObjectType() string { if o == nil { @@ -116,6 +121,11 @@ func (o *KubernetesProxyConfig) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "kubernetes.ProxyConfig" of the ObjectType field. +func (o *KubernetesProxyConfig) GetDefaultObjectType() interface{} { + return "kubernetes.ProxyConfig" +} + // GetHostname returns the Hostname field value if set, zero value otherwise. func (o *KubernetesProxyConfig) GetHostname() string { if o == nil || IsNil(o.Hostname) { @@ -326,7 +336,13 @@ func (o KubernetesProxyConfig) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Hostname) { toSerialize["Hostname"] = o.Hostname @@ -363,6 +379,13 @@ func (o *KubernetesProxyConfig) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -372,18 +395,30 @@ func (o *KubernetesProxyConfig) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type KubernetesProxyConfigWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` // The fully-qualified name of the instantiated, concrete type. The value should be the same as the 'ClassId' property. ObjectType string `json:"ObjectType"` // HTTP/HTTPS Proxy server FQDN or IP. - Hostname *string `json:"Hostname,omitempty"` + Hostname *string `json:"Hostname,omitempty" validate:"regexp=^[A-Za-z]([A-Za-z0-9-]*[A-Za-z0-9])?$|^[A-Za-z0-9]([A-Za-z0-9-]*[A-Za-z0-9])?(\\\\.[A-Za-z0-9]([A-Za-z0-9-]*[A-Za-z0-9])?)*(\\\\.[A-Za-z]([A-Za-z0-9-]*[A-Za-z0-9])?)$|^([1-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\\\.([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\\\.([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\\\.([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])$"` // Indicates whether the value of the 'password' property has been set. IsPasswordSet *bool `json:"IsPasswordSet,omitempty"` // The password for the HTTP/HTTPS Proxy. diff --git a/model_kubernetes_route.go b/model_kubernetes_route.go index 9482473b5a..ce21cc4b22 100644 --- a/model_kubernetes_route.go +++ b/model_kubernetes_route.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -29,9 +29,9 @@ type KubernetesRoute struct { // The fully-qualified name of the instantiated, concrete type. The value should be the same as the 'ClassId' property. ObjectType string `json:"ObjectType"` // The destination subnet, if set to 0.0.0.0/0 then the Route is considered a default route. - To *string `json:"To,omitempty"` + To *string `json:"To,omitempty" validate:"regexp=^$|^([1-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5]).([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5]).([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5]).([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\/([0-9]|[1-2][0-9]|3[0-2])$"` // Via is the gateway for traffic destined for the subnet in the To property. - Via *string `json:"Via,omitempty"` + Via *string `json:"Via,omitempty" validate:"regexp=^$|^([1-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\\\.([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\\\.([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\\\.([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])$"` AdditionalProperties map[string]interface{} } @@ -84,6 +84,11 @@ func (o *KubernetesRoute) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "kubernetes.Route" of the ClassId field. +func (o *KubernetesRoute) GetDefaultClassId() interface{} { + return "kubernetes.Route" +} + // GetObjectType returns the ObjectType field value func (o *KubernetesRoute) GetObjectType() string { if o == nil { @@ -108,6 +113,11 @@ func (o *KubernetesRoute) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "kubernetes.Route" of the ObjectType field. +func (o *KubernetesRoute) GetDefaultObjectType() interface{} { + return "kubernetes.Route" +} + // GetTo returns the To field value if set, zero value otherwise. func (o *KubernetesRoute) GetTo() string { if o == nil || IsNil(o.To) { @@ -190,7 +200,13 @@ func (o KubernetesRoute) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.To) { toSerialize["To"] = o.To @@ -215,6 +231,13 @@ func (o *KubernetesRoute) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -224,20 +247,32 @@ func (o *KubernetesRoute) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type KubernetesRouteWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` // The fully-qualified name of the instantiated, concrete type. The value should be the same as the 'ClassId' property. ObjectType string `json:"ObjectType"` // The destination subnet, if set to 0.0.0.0/0 then the Route is considered a default route. - To *string `json:"To,omitempty"` + To *string `json:"To,omitempty" validate:"regexp=^$|^([1-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5]).([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5]).([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5]).([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\/([0-9]|[1-2][0-9]|3[0-2])$"` // Via is the gateway for traffic destined for the subnet in the To property. - Via *string `json:"Via,omitempty"` + Via *string `json:"Via,omitempty" validate:"regexp=^$|^([1-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\\\.([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\\\.([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\\\.([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])$"` } varKubernetesRouteWithoutEmbeddedStruct := KubernetesRouteWithoutEmbeddedStruct{} diff --git a/model_kubernetes_service.go b/model_kubernetes_service.go index 2dde398018..c6bf575864 100644 --- a/model_kubernetes_service.go +++ b/model_kubernetes_service.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -82,6 +82,11 @@ func (o *KubernetesService) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "kubernetes.Service" of the ClassId field. +func (o *KubernetesService) GetDefaultClassId() interface{} { + return "kubernetes.Service" +} + // GetObjectType returns the ObjectType field value func (o *KubernetesService) GetObjectType() string { if o == nil { @@ -106,6 +111,11 @@ func (o *KubernetesService) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "kubernetes.Service" of the ObjectType field. +func (o *KubernetesService) GetDefaultObjectType() interface{} { + return "kubernetes.Service" +} + // GetStatus returns the Status field value if set, zero value otherwise (both if not set or set to explicit null). func (o *KubernetesService) GetStatus() KubernetesServiceStatus { if o == nil || IsNil(o.Status.Get()) { @@ -210,7 +220,13 @@ func (o KubernetesService) ToMap() (map[string]interface{}, error) { if errKubernetesAbstractService != nil { return map[string]interface{}{}, errKubernetesAbstractService } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.Status.IsSet() { toSerialize["Status"] = o.Status.Get() @@ -235,6 +251,13 @@ func (o *KubernetesService) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -244,11 +267,23 @@ func (o *KubernetesService) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type KubernetesServiceWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_kubernetes_service_list.go b/model_kubernetes_service_list.go index e6185864db..b5d5f9af2c 100644 --- a/model_kubernetes_service_list.go +++ b/model_kubernetes_service_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *KubernetesServiceList) GetResultsOk() ([]KubernetesService, bool) { // HasResults returns a boolean if a field has been set. func (o *KubernetesServiceList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *KubernetesServiceList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *KubernetesServiceList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type KubernetesServiceListWithoutEmbeddedStruct struct { // The total number of 'kubernetes.Service' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_kubernetes_service_response.go b/model_kubernetes_service_response.go index 29beb35e34..5c494ce12d 100644 --- a/model_kubernetes_service_response.go +++ b/model_kubernetes_service_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_kubernetes_service_status.go b/model_kubernetes_service_status.go index 0484f11093..a381cfdf54 100644 --- a/model_kubernetes_service_status.go +++ b/model_kubernetes_service_status.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -81,6 +81,11 @@ func (o *KubernetesServiceStatus) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "kubernetes.ServiceStatus" of the ClassId field. +func (o *KubernetesServiceStatus) GetDefaultClassId() interface{} { + return "kubernetes.ServiceStatus" +} + // GetObjectType returns the ObjectType field value func (o *KubernetesServiceStatus) GetObjectType() string { if o == nil { @@ -105,6 +110,11 @@ func (o *KubernetesServiceStatus) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "kubernetes.ServiceStatus" of the ObjectType field. +func (o *KubernetesServiceStatus) GetDefaultObjectType() interface{} { + return "kubernetes.ServiceStatus" +} + // GetLoadBalancer returns the LoadBalancer field value if set, zero value otherwise (both if not set or set to explicit null). func (o *KubernetesServiceStatus) GetLoadBalancer() KubernetesLoadBalancer { if o == nil || IsNil(o.LoadBalancer.Get()) { @@ -166,7 +176,13 @@ func (o KubernetesServiceStatus) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.LoadBalancer.IsSet() { toSerialize["LoadBalancer"] = o.LoadBalancer.Get() @@ -188,6 +204,13 @@ func (o *KubernetesServiceStatus) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -197,11 +220,23 @@ func (o *KubernetesServiceStatus) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type KubernetesServiceStatusWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_kubernetes_stateful_set.go b/model_kubernetes_stateful_set.go index 5365540bac..78a011e06b 100644 --- a/model_kubernetes_stateful_set.go +++ b/model_kubernetes_stateful_set.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -82,6 +82,11 @@ func (o *KubernetesStatefulSet) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "kubernetes.StatefulSet" of the ClassId field. +func (o *KubernetesStatefulSet) GetDefaultClassId() interface{} { + return "kubernetes.StatefulSet" +} + // GetObjectType returns the ObjectType field value func (o *KubernetesStatefulSet) GetObjectType() string { if o == nil { @@ -106,6 +111,11 @@ func (o *KubernetesStatefulSet) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "kubernetes.StatefulSet" of the ObjectType field. +func (o *KubernetesStatefulSet) GetDefaultObjectType() interface{} { + return "kubernetes.StatefulSet" +} + // GetStatus returns the Status field value if set, zero value otherwise (both if not set or set to explicit null). func (o *KubernetesStatefulSet) GetStatus() KubernetesStatefulSetStatus { if o == nil || IsNil(o.Status.Get()) { @@ -210,7 +220,13 @@ func (o KubernetesStatefulSet) ToMap() (map[string]interface{}, error) { if errKubernetesAbstractStatefulSet != nil { return map[string]interface{}{}, errKubernetesAbstractStatefulSet } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.Status.IsSet() { toSerialize["Status"] = o.Status.Get() @@ -235,6 +251,13 @@ func (o *KubernetesStatefulSet) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -244,11 +267,23 @@ func (o *KubernetesStatefulSet) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type KubernetesStatefulSetWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_kubernetes_stateful_set_list.go b/model_kubernetes_stateful_set_list.go index 3a0dc5b381..09b1bd6781 100644 --- a/model_kubernetes_stateful_set_list.go +++ b/model_kubernetes_stateful_set_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *KubernetesStatefulSetList) GetResultsOk() ([]KubernetesStatefulSet, boo // HasResults returns a boolean if a field has been set. func (o *KubernetesStatefulSetList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *KubernetesStatefulSetList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *KubernetesStatefulSetList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type KubernetesStatefulSetListWithoutEmbeddedStruct struct { // The total number of 'kubernetes.StatefulSet' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_kubernetes_stateful_set_response.go b/model_kubernetes_stateful_set_response.go index bc141acd6c..b986133268 100644 --- a/model_kubernetes_stateful_set_response.go +++ b/model_kubernetes_stateful_set_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_kubernetes_stateful_set_status.go b/model_kubernetes_stateful_set_status.go index 2cd188aec6..071def8c3f 100644 --- a/model_kubernetes_stateful_set_status.go +++ b/model_kubernetes_stateful_set_status.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -120,6 +120,11 @@ func (o *KubernetesStatefulSetStatus) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "kubernetes.StatefulSetStatus" of the ClassId field. +func (o *KubernetesStatefulSetStatus) GetDefaultClassId() interface{} { + return "kubernetes.StatefulSetStatus" +} + // GetObjectType returns the ObjectType field value func (o *KubernetesStatefulSetStatus) GetObjectType() string { if o == nil { @@ -144,6 +149,11 @@ func (o *KubernetesStatefulSetStatus) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "kubernetes.StatefulSetStatus" of the ObjectType field. +func (o *KubernetesStatefulSetStatus) GetDefaultObjectType() interface{} { + return "kubernetes.StatefulSetStatus" +} + // GetAvailableReplicas returns the AvailableReplicas field value if set, zero value otherwise. func (o *KubernetesStatefulSetStatus) GetAvailableReplicas() int64 { if o == nil || IsNil(o.AvailableReplicas) { @@ -418,7 +428,13 @@ func (o KubernetesStatefulSetStatus) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.AvailableReplicas) { toSerialize["AvailableReplicas"] = o.AvailableReplicas @@ -461,6 +477,13 @@ func (o *KubernetesStatefulSetStatus) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -470,11 +493,23 @@ func (o *KubernetesStatefulSetStatus) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type KubernetesStatefulSetStatusWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_kubernetes_sys_config_policy.go b/model_kubernetes_sys_config_policy.go index 6158be699e..ff274971c9 100644 --- a/model_kubernetes_sys_config_policy.go +++ b/model_kubernetes_sys_config_policy.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -29,7 +29,7 @@ type KubernetesSysConfigPolicy struct { // The fully-qualified name of the instantiated, concrete type. The value should be the same as the 'ClassId' property. ObjectType string `json:"ObjectType"` // The DNS Search Domain Name. - DnsDomainName *string `json:"DnsDomainName,omitempty"` + DnsDomainName *string `json:"DnsDomainName,omitempty" validate:"regexp=^$|^([a-zA-Z0-9]([a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\\\\.)+[a-zA-Z]{2,63}$"` DnsServers []string `json:"DnsServers,omitempty"` NtpServers []string `json:"NtpServers,omitempty"` // The timezone of the node's system clock. * `Pacific/Niue` - * `Africa/Abidjan` - * `Africa/Accra` - * `Africa/Addis_Ababa` - * `Africa/Algiers` - * `Africa/Asmara` - * `Africa/Bamako` - * `Africa/Bangui` - * `Africa/Banjul` - * `Africa/Bissau` - * `Africa/Blantyre` - * `Africa/Brazzaville` - * `Africa/Bujumbura` - * `Africa/Cairo` - * `Africa/Casablanca` - * `Africa/Ceuta` - * `Africa/Conakry` - * `Africa/Dakar` - * `Africa/Dar_es_Salaam` - * `Africa/Djibouti` - * `Africa/Douala` - * `Africa/El_Aaiun` - * `Africa/Freetown` - * `Africa/Gaborone` - * `Africa/Harare` - * `Africa/Johannesburg` - * `Africa/Juba` - * `Africa/Kampala` - * `Africa/Khartoum` - * `Africa/Kigali` - * `Africa/Kinshasa` - * `Africa/Lagos` - * `Africa/Libreville` - * `Africa/Lome` - * `Africa/Luanda` - * `Africa/Lubumbashi` - * `Africa/Lusaka` - * `Africa/Malabo` - * `Africa/Maputo` - * `Africa/Maseru` - * `Africa/Mbabane` - * `Africa/Mogadishu` - * `Africa/Monrovia` - * `Africa/Nairobi` - * `Africa/Ndjamena` - * `Africa/Niamey` - * `Africa/Nouakchott` - * `Africa/Ouagadougou` - * `Africa/Porto-Novo` - * `Africa/Sao_Tome` - * `Africa/Tripoli` - * `Africa/Tunis` - * `Africa/Windhoek` - * `America/Adak` - * `America/Anchorage` - * `America/Anguilla` - * `America/Antigua` - * `America/Araguaina` - * `America/Argentina/Buenos_Aires` - * `America/Argentina/Catamarca` - * `America/Argentina/Cordoba` - * `America/Argentina/Jujuy` - * `America/Argentina/La_Rioja` - * `America/Argentina/Mendoza` - * `America/Argentina/Rio_Gallegos` - * `America/Argentina/Salta` - * `America/Argentina/San_Juan` - * `America/Argentina/San_Luis` - * `America/Argentina/Tucuman` - * `America/Argentina/Ushuaia` - * `America/Aruba` - * `America/Asuncion` - * `America/Atikokan` - * `America/Bahia` - * `America/Bahia_Banderas` - * `America/Barbados` - * `America/Belem` - * `America/Belize` - * `America/Blanc-Sablon` - * `America/Boa_Vista` - * `America/Bogota` - * `America/Boise` - * `America/Cambridge_Bay` - * `America/Campo_Grande` - * `America/Cancun` - * `America/Caracas` - * `America/Cayenne` - * `America/Cayman` - * `America/Chicago` - * `America/Chihuahua` - * `America/Costa_Rica` - * `America/Creston` - * `America/Cuiaba` - * `America/Curacao` - * `America/Danmarkshavn` - * `America/Dawson` - * `America/Dawson_Creek` - * `America/Denver` - * `America/Detroit` - * `America/Dominica` - * `America/Edmonton` - * `America/Eirunepe` - * `America/El_Salvador` - * `America/Fortaleza` - * `America/Glace_Bay` - * `America/Godthab` - * `America/Goose_Bay` - * `America/Grand_Turk` - * `America/Grenada` - * `America/Guadeloupe` - * `America/Guatemala` - * `America/Guayaquil` - * `America/Guyana` - * `America/Halifax` - * `America/Havana` - * `America/Hermosillo` - * `America/Indiana/Indianapolis` - * `America/Indiana/Knox` - * `America/Indiana/Marengo` - * `America/Indiana/Petersburg` - * `America/Indiana/Tell_City` - * `America/Indiana/Vevay` - * `America/Indiana/Vincennes` - * `America/Indiana/Winamac` - * `America/Inuvik` - * `America/Iqaluit` - * `America/Jamaica` - * `America/Juneau` - * `America/Kentucky/Louisville` - * `America/Kentucky/Monticello` - * `America/Kralendijk` - * `America/La_Paz` - * `America/Lima` - * `America/Los_Angeles` - * `America/Lower_Princes` - * `America/Maceio` - * `America/Managua` - * `America/Manaus` - * `America/Marigot` - * `America/Martinique` - * `America/Matamoros` - * `America/Mazatlan` - * `America/Menominee` - * `America/Merida` - * `America/Metlakatla` - * `America/Mexico_City` - * `America/Miquelon` - * `America/Moncton` - * `America/Monterrey` - * `America/Montevideo` - * `America/Montreal` - * `America/Montserrat` - * `America/Nassau` - * `America/New_York` - * `America/Nipigon` - * `America/Nome` - * `America/Noronha` - * `America/North_Dakota/Beulah` - * `America/North_Dakota/Center` - * `America/North_Dakota/New_Salem` - * `America/Ojinaga` - * `America/Panama` - * `America/Pangnirtung` - * `America/Paramaribo` - * `America/Phoenix` - * `America/Port-au-Prince` - * `America/Port_of_Spain` - * `America/Porto_Velho` - * `America/Puerto_Rico` - * `America/Rainy_River` - * `America/Rankin_Inlet` - * `America/Recife` - * `America/Regina` - * `America/Resolute` - * `America/Rio_Branco` - * `America/Santa_Isabel` - * `America/Santarem` - * `America/Santiago` - * `America/Santo_Domingo` - * `America/Sao_Paulo` - * `America/Scoresbysund` - * `America/Shiprock` - * `America/Sitka` - * `America/St_Barthelemy` - * `America/St_Johns` - * `America/St_Kitts` - * `America/St_Lucia` - * `America/St_Thomas` - * `America/St_Vincent` - * `America/Swift_Current` - * `America/Tegucigalpa` - * `America/Thule` - * `America/Thunder_Bay` - * `America/Tijuana` - * `America/Toronto` - * `America/Tortola` - * `America/Vancouver` - * `America/Whitehorse` - * `America/Winnipeg` - * `America/Yakutat` - * `America/Yellowknife` - * `Antarctica/Casey` - * `Antarctica/Davis` - * `Antarctica/DumontDUrville` - * `Antarctica/Macquarie` - * `Antarctica/Mawson` - * `Antarctica/McMurdo` - * `Antarctica/Palmer` - * `Antarctica/Rothera` - * `Antarctica/South_Pole` - * `Antarctica/Syowa` - * `Antarctica/Troll` - * `Antarctica/Vostok` - * `Arctic/Longyearbyen` - * `Asia/Aden` - * `Asia/Almaty` - * `Asia/Amman` - * `Asia/Anadyr` - * `Asia/Aqtau` - * `Asia/Aqtobe` - * `Asia/Ashgabat` - * `Asia/Baghdad` - * `Asia/Bahrain` - * `Asia/Baku` - * `Asia/Bangkok` - * `Asia/Beirut` - * `Asia/Bishkek` - * `Asia/Brunei` - * `Asia/Calcutta` - * `Asia/Choibalsan` - * `Asia/Chongqing` - * `Asia/Colombo` - * `Asia/Damascus` - * `Asia/Dhaka` - * `Asia/Dili` - * `Asia/Dubai` - * `Asia/Dushanbe` - * `Asia/Gaza` - * `Asia/Harbin` - * `Asia/Hebron` - * `Asia/Ho_Chi_Minh` - * `Asia/Hong_Kong` - * `Asia/Hovd` - * `Asia/Irkutsk` - * `Asia/Jakarta` - * `Asia/Jayapura` - * `Asia/Jerusalem` - * `Asia/Kabul` - * `Asia/Kamchatka` - * `Asia/Karachi` - * `Asia/Kashgar` - * `Asia/Kathmandu` - * `Asia/Katmandu` - * `Asia/Khandyga` - * `Asia/Kolkata` - * `Asia/Krasnoyarsk` - * `Asia/Kuala_Lumpur` - * `Asia/Kuching` - * `Asia/Kuwait` - * `Asia/Macau` - * `Asia/Magadan` - * `Asia/Makassar` - * `Asia/Manila` - * `Asia/Muscat` - * `Asia/Nicosia` - * `Asia/Novokuznetsk` - * `Asia/Novosibirsk` - * `Asia/Omsk` - * `Asia/Oral` - * `Asia/Phnom_Penh` - * `Asia/Pontianak` - * `Asia/Pyongyang` - * `Asia/Qatar` - * `Asia/Qyzylorda` - * `Asia/Rangoon` - * `Asia/Riyadh` - * `Asia/Saigon` - * `Asia/Sakhalin` - * `Asia/Samarkand` - * `Asia/Seoul` - * `Asia/Shanghai` - * `Asia/Singapore` - * `Asia/Taipei` - * `Asia/Tashkent` - * `Asia/Tbilisi` - * `Asia/Tehran` - * `Asia/Thimphu` - * `Asia/Tokyo` - * `Asia/Ulaanbaatar` - * `Asia/Urumqi` - * `Asia/Ust-Nera` - * `Asia/Vientiane` - * `Asia/Vladivostok` - * `Asia/Yakutsk` - * `Asia/Yekaterinburg` - * `Asia/Yerevan` - * `Atlantic/Azores` - * `Atlantic/Bermuda` - * `Atlantic/Canary` - * `Atlantic/Cape_Verde` - * `Atlantic/Faroe` - * `Atlantic/Madeira` - * `Atlantic/Reykjavik` - * `Atlantic/South_Georgia` - * `Atlantic/St_Helena` - * `Atlantic/Stanley` - * `Australia/Adelaide` - * `Australia/Brisbane` - * `Australia/Broken_Hill` - * `Australia/Currie` - * `Australia/Darwin` - * `Australia/Eucla` - * `Australia/Hobart` - * `Australia/Lindeman` - * `Australia/Lord_Howe` - * `Australia/Melbourne` - * `Australia/Perth` - * `Australia/Sydney` - * `Etc/GMT` - * `Europe/Amsterdam` - * `Europe/Andorra` - * `Europe/Athens` - * `Europe/Belgrade` - * `Europe/Berlin` - * `Europe/Bratislava` - * `Europe/Brussels` - * `Europe/Bucharest` - * `Europe/Budapest` - * `Europe/Busingen` - * `Europe/Chisinau` - * `Europe/Copenhagen` - * `Europe/Dublin` - * `Europe/Gibraltar` - * `Europe/Guernsey` - * `Europe/Helsinki` - * `Europe/Isle_of_Man` - * `Europe/Istanbul` - * `Europe/Jersey` - * `Europe/Kaliningrad` - * `Europe/Kiev` - * `Europe/Lisbon` - * `Europe/Ljubljana` - * `Europe/London` - * `Europe/Luxembourg` - * `Europe/Madrid` - * `Europe/Malta` - * `Europe/Mariehamn` - * `Europe/Minsk` - * `Europe/Monaco` - * `Europe/Moscow` - * `Europe/Oslo` - * `Europe/Paris` - * `Europe/Podgorica` - * `Europe/Prague` - * `Europe/Riga` - * `Europe/Rome` - * `Europe/Samara` - * `Europe/San_Marino` - * `Europe/Sarajevo` - * `Europe/Simferopol` - * `Europe/Skopje` - * `Europe/Sofia` - * `Europe/Stockholm` - * `Europe/Tallinn` - * `Europe/Tirane` - * `Europe/Uzhgorod` - * `Europe/Vaduz` - * `Europe/Vatican` - * `Europe/Vienna` - * `Europe/Vilnius` - * `Europe/Volgograd` - * `Europe/Warsaw` - * `Europe/Zagreb` - * `Europe/Zaporozhye` - * `Europe/Zurich` - * `Indian/Antananarivo` - * `Indian/Chagos` - * `Indian/Christmas` - * `Indian/Cocos` - * `Indian/Comoro` - * `Indian/Kerguelen` - * `Indian/Mahe` - * `Indian/Maldives` - * `Indian/Mauritius` - * `Indian/Mayotte` - * `Indian/Reunion` - * `Pacific/Apia` - * `Pacific/Auckland` - * `Pacific/Chatham` - * `Pacific/Chuuk` - * `Pacific/Easter` - * `Pacific/Efate` - * `Pacific/Enderbury` - * `Pacific/Fakaofo` - * `Pacific/Fiji` - * `Pacific/Funafuti` - * `Pacific/Galapagos` - * `Pacific/Gambier` - * `Pacific/Guadalcanal` - * `Pacific/Guam` - * `Pacific/Honolulu` - * `Pacific/Johnston` - * `Pacific/Kiritimati` - * `Pacific/Kosrae` - * `Pacific/Kwajalein` - * `Pacific/Majuro` - * `Pacific/Marquesas` - * `Pacific/Midway` - * `Pacific/Nauru` - * `Pacific/Norfolk` - * `Pacific/Noumea` - * `Pacific/Pago_Pago` - * `Pacific/Palau` - * `Pacific/Pitcairn` - * `Pacific/Pohnpei` - * `Pacific/Port_Moresby` - * `Pacific/Rarotonga` - * `Pacific/Saipan` - * `Pacific/Tahiti` - * `Pacific/Tarawa` - * `Pacific/Tongatapu` - * `Pacific/Wake` - * `Pacific/Wallis` - * `UTC` - @@ -93,6 +93,11 @@ func (o *KubernetesSysConfigPolicy) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "kubernetes.SysConfigPolicy" of the ClassId field. +func (o *KubernetesSysConfigPolicy) GetDefaultClassId() interface{} { + return "kubernetes.SysConfigPolicy" +} + // GetObjectType returns the ObjectType field value func (o *KubernetesSysConfigPolicy) GetObjectType() string { if o == nil { @@ -117,6 +122,11 @@ func (o *KubernetesSysConfigPolicy) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "kubernetes.SysConfigPolicy" of the ObjectType field. +func (o *KubernetesSysConfigPolicy) GetDefaultObjectType() interface{} { + return "kubernetes.SysConfigPolicy" +} + // GetDnsDomainName returns the DnsDomainName field value if set, zero value otherwise. func (o *KubernetesSysConfigPolicy) GetDnsDomainName() string { if o == nil || IsNil(o.DnsDomainName) { @@ -170,7 +180,7 @@ func (o *KubernetesSysConfigPolicy) GetDnsServersOk() ([]string, bool) { // HasDnsServers returns a boolean if a field has been set. func (o *KubernetesSysConfigPolicy) HasDnsServers() bool { - if o != nil && IsNil(o.DnsServers) { + if o != nil && !IsNil(o.DnsServers) { return true } @@ -203,7 +213,7 @@ func (o *KubernetesSysConfigPolicy) GetNtpServersOk() ([]string, bool) { // HasNtpServers returns a boolean if a field has been set. func (o *KubernetesSysConfigPolicy) HasNtpServers() bool { - if o != nil && IsNil(o.NtpServers) { + if o != nil && !IsNil(o.NtpServers) { return true } @@ -268,7 +278,7 @@ func (o *KubernetesSysConfigPolicy) GetClusterProfilesOk() ([]KubernetesClusterP // HasClusterProfiles returns a boolean if a field has been set. func (o *KubernetesSysConfigPolicy) HasClusterProfiles() bool { - if o != nil && IsNil(o.ClusterProfiles) { + if o != nil && !IsNil(o.ClusterProfiles) { return true } @@ -341,7 +351,13 @@ func (o KubernetesSysConfigPolicy) ToMap() (map[string]interface{}, error) { if errPolicyAbstractPolicy != nil { return map[string]interface{}{}, errPolicyAbstractPolicy } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.DnsDomainName) { toSerialize["DnsDomainName"] = o.DnsDomainName @@ -378,6 +394,13 @@ func (o *KubernetesSysConfigPolicy) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -387,18 +410,30 @@ func (o *KubernetesSysConfigPolicy) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type KubernetesSysConfigPolicyWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` // The fully-qualified name of the instantiated, concrete type. The value should be the same as the 'ClassId' property. ObjectType string `json:"ObjectType"` // The DNS Search Domain Name. - DnsDomainName *string `json:"DnsDomainName,omitempty"` + DnsDomainName *string `json:"DnsDomainName,omitempty" validate:"regexp=^$|^([a-zA-Z0-9]([a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\\\\.)+[a-zA-Z]{2,63}$"` DnsServers []string `json:"DnsServers,omitempty"` NtpServers []string `json:"NtpServers,omitempty"` // The timezone of the node's system clock. * `Pacific/Niue` - * `Africa/Abidjan` - * `Africa/Accra` - * `Africa/Addis_Ababa` - * `Africa/Algiers` - * `Africa/Asmara` - * `Africa/Bamako` - * `Africa/Bangui` - * `Africa/Banjul` - * `Africa/Bissau` - * `Africa/Blantyre` - * `Africa/Brazzaville` - * `Africa/Bujumbura` - * `Africa/Cairo` - * `Africa/Casablanca` - * `Africa/Ceuta` - * `Africa/Conakry` - * `Africa/Dakar` - * `Africa/Dar_es_Salaam` - * `Africa/Djibouti` - * `Africa/Douala` - * `Africa/El_Aaiun` - * `Africa/Freetown` - * `Africa/Gaborone` - * `Africa/Harare` - * `Africa/Johannesburg` - * `Africa/Juba` - * `Africa/Kampala` - * `Africa/Khartoum` - * `Africa/Kigali` - * `Africa/Kinshasa` - * `Africa/Lagos` - * `Africa/Libreville` - * `Africa/Lome` - * `Africa/Luanda` - * `Africa/Lubumbashi` - * `Africa/Lusaka` - * `Africa/Malabo` - * `Africa/Maputo` - * `Africa/Maseru` - * `Africa/Mbabane` - * `Africa/Mogadishu` - * `Africa/Monrovia` - * `Africa/Nairobi` - * `Africa/Ndjamena` - * `Africa/Niamey` - * `Africa/Nouakchott` - * `Africa/Ouagadougou` - * `Africa/Porto-Novo` - * `Africa/Sao_Tome` - * `Africa/Tripoli` - * `Africa/Tunis` - * `Africa/Windhoek` - * `America/Adak` - * `America/Anchorage` - * `America/Anguilla` - * `America/Antigua` - * `America/Araguaina` - * `America/Argentina/Buenos_Aires` - * `America/Argentina/Catamarca` - * `America/Argentina/Cordoba` - * `America/Argentina/Jujuy` - * `America/Argentina/La_Rioja` - * `America/Argentina/Mendoza` - * `America/Argentina/Rio_Gallegos` - * `America/Argentina/Salta` - * `America/Argentina/San_Juan` - * `America/Argentina/San_Luis` - * `America/Argentina/Tucuman` - * `America/Argentina/Ushuaia` - * `America/Aruba` - * `America/Asuncion` - * `America/Atikokan` - * `America/Bahia` - * `America/Bahia_Banderas` - * `America/Barbados` - * `America/Belem` - * `America/Belize` - * `America/Blanc-Sablon` - * `America/Boa_Vista` - * `America/Bogota` - * `America/Boise` - * `America/Cambridge_Bay` - * `America/Campo_Grande` - * `America/Cancun` - * `America/Caracas` - * `America/Cayenne` - * `America/Cayman` - * `America/Chicago` - * `America/Chihuahua` - * `America/Costa_Rica` - * `America/Creston` - * `America/Cuiaba` - * `America/Curacao` - * `America/Danmarkshavn` - * `America/Dawson` - * `America/Dawson_Creek` - * `America/Denver` - * `America/Detroit` - * `America/Dominica` - * `America/Edmonton` - * `America/Eirunepe` - * `America/El_Salvador` - * `America/Fortaleza` - * `America/Glace_Bay` - * `America/Godthab` - * `America/Goose_Bay` - * `America/Grand_Turk` - * `America/Grenada` - * `America/Guadeloupe` - * `America/Guatemala` - * `America/Guayaquil` - * `America/Guyana` - * `America/Halifax` - * `America/Havana` - * `America/Hermosillo` - * `America/Indiana/Indianapolis` - * `America/Indiana/Knox` - * `America/Indiana/Marengo` - * `America/Indiana/Petersburg` - * `America/Indiana/Tell_City` - * `America/Indiana/Vevay` - * `America/Indiana/Vincennes` - * `America/Indiana/Winamac` - * `America/Inuvik` - * `America/Iqaluit` - * `America/Jamaica` - * `America/Juneau` - * `America/Kentucky/Louisville` - * `America/Kentucky/Monticello` - * `America/Kralendijk` - * `America/La_Paz` - * `America/Lima` - * `America/Los_Angeles` - * `America/Lower_Princes` - * `America/Maceio` - * `America/Managua` - * `America/Manaus` - * `America/Marigot` - * `America/Martinique` - * `America/Matamoros` - * `America/Mazatlan` - * `America/Menominee` - * `America/Merida` - * `America/Metlakatla` - * `America/Mexico_City` - * `America/Miquelon` - * `America/Moncton` - * `America/Monterrey` - * `America/Montevideo` - * `America/Montreal` - * `America/Montserrat` - * `America/Nassau` - * `America/New_York` - * `America/Nipigon` - * `America/Nome` - * `America/Noronha` - * `America/North_Dakota/Beulah` - * `America/North_Dakota/Center` - * `America/North_Dakota/New_Salem` - * `America/Ojinaga` - * `America/Panama` - * `America/Pangnirtung` - * `America/Paramaribo` - * `America/Phoenix` - * `America/Port-au-Prince` - * `America/Port_of_Spain` - * `America/Porto_Velho` - * `America/Puerto_Rico` - * `America/Rainy_River` - * `America/Rankin_Inlet` - * `America/Recife` - * `America/Regina` - * `America/Resolute` - * `America/Rio_Branco` - * `America/Santa_Isabel` - * `America/Santarem` - * `America/Santiago` - * `America/Santo_Domingo` - * `America/Sao_Paulo` - * `America/Scoresbysund` - * `America/Shiprock` - * `America/Sitka` - * `America/St_Barthelemy` - * `America/St_Johns` - * `America/St_Kitts` - * `America/St_Lucia` - * `America/St_Thomas` - * `America/St_Vincent` - * `America/Swift_Current` - * `America/Tegucigalpa` - * `America/Thule` - * `America/Thunder_Bay` - * `America/Tijuana` - * `America/Toronto` - * `America/Tortola` - * `America/Vancouver` - * `America/Whitehorse` - * `America/Winnipeg` - * `America/Yakutat` - * `America/Yellowknife` - * `Antarctica/Casey` - * `Antarctica/Davis` - * `Antarctica/DumontDUrville` - * `Antarctica/Macquarie` - * `Antarctica/Mawson` - * `Antarctica/McMurdo` - * `Antarctica/Palmer` - * `Antarctica/Rothera` - * `Antarctica/South_Pole` - * `Antarctica/Syowa` - * `Antarctica/Troll` - * `Antarctica/Vostok` - * `Arctic/Longyearbyen` - * `Asia/Aden` - * `Asia/Almaty` - * `Asia/Amman` - * `Asia/Anadyr` - * `Asia/Aqtau` - * `Asia/Aqtobe` - * `Asia/Ashgabat` - * `Asia/Baghdad` - * `Asia/Bahrain` - * `Asia/Baku` - * `Asia/Bangkok` - * `Asia/Beirut` - * `Asia/Bishkek` - * `Asia/Brunei` - * `Asia/Calcutta` - * `Asia/Choibalsan` - * `Asia/Chongqing` - * `Asia/Colombo` - * `Asia/Damascus` - * `Asia/Dhaka` - * `Asia/Dili` - * `Asia/Dubai` - * `Asia/Dushanbe` - * `Asia/Gaza` - * `Asia/Harbin` - * `Asia/Hebron` - * `Asia/Ho_Chi_Minh` - * `Asia/Hong_Kong` - * `Asia/Hovd` - * `Asia/Irkutsk` - * `Asia/Jakarta` - * `Asia/Jayapura` - * `Asia/Jerusalem` - * `Asia/Kabul` - * `Asia/Kamchatka` - * `Asia/Karachi` - * `Asia/Kashgar` - * `Asia/Kathmandu` - * `Asia/Katmandu` - * `Asia/Khandyga` - * `Asia/Kolkata` - * `Asia/Krasnoyarsk` - * `Asia/Kuala_Lumpur` - * `Asia/Kuching` - * `Asia/Kuwait` - * `Asia/Macau` - * `Asia/Magadan` - * `Asia/Makassar` - * `Asia/Manila` - * `Asia/Muscat` - * `Asia/Nicosia` - * `Asia/Novokuznetsk` - * `Asia/Novosibirsk` - * `Asia/Omsk` - * `Asia/Oral` - * `Asia/Phnom_Penh` - * `Asia/Pontianak` - * `Asia/Pyongyang` - * `Asia/Qatar` - * `Asia/Qyzylorda` - * `Asia/Rangoon` - * `Asia/Riyadh` - * `Asia/Saigon` - * `Asia/Sakhalin` - * `Asia/Samarkand` - * `Asia/Seoul` - * `Asia/Shanghai` - * `Asia/Singapore` - * `Asia/Taipei` - * `Asia/Tashkent` - * `Asia/Tbilisi` - * `Asia/Tehran` - * `Asia/Thimphu` - * `Asia/Tokyo` - * `Asia/Ulaanbaatar` - * `Asia/Urumqi` - * `Asia/Ust-Nera` - * `Asia/Vientiane` - * `Asia/Vladivostok` - * `Asia/Yakutsk` - * `Asia/Yekaterinburg` - * `Asia/Yerevan` - * `Atlantic/Azores` - * `Atlantic/Bermuda` - * `Atlantic/Canary` - * `Atlantic/Cape_Verde` - * `Atlantic/Faroe` - * `Atlantic/Madeira` - * `Atlantic/Reykjavik` - * `Atlantic/South_Georgia` - * `Atlantic/St_Helena` - * `Atlantic/Stanley` - * `Australia/Adelaide` - * `Australia/Brisbane` - * `Australia/Broken_Hill` - * `Australia/Currie` - * `Australia/Darwin` - * `Australia/Eucla` - * `Australia/Hobart` - * `Australia/Lindeman` - * `Australia/Lord_Howe` - * `Australia/Melbourne` - * `Australia/Perth` - * `Australia/Sydney` - * `Etc/GMT` - * `Europe/Amsterdam` - * `Europe/Andorra` - * `Europe/Athens` - * `Europe/Belgrade` - * `Europe/Berlin` - * `Europe/Bratislava` - * `Europe/Brussels` - * `Europe/Bucharest` - * `Europe/Budapest` - * `Europe/Busingen` - * `Europe/Chisinau` - * `Europe/Copenhagen` - * `Europe/Dublin` - * `Europe/Gibraltar` - * `Europe/Guernsey` - * `Europe/Helsinki` - * `Europe/Isle_of_Man` - * `Europe/Istanbul` - * `Europe/Jersey` - * `Europe/Kaliningrad` - * `Europe/Kiev` - * `Europe/Lisbon` - * `Europe/Ljubljana` - * `Europe/London` - * `Europe/Luxembourg` - * `Europe/Madrid` - * `Europe/Malta` - * `Europe/Mariehamn` - * `Europe/Minsk` - * `Europe/Monaco` - * `Europe/Moscow` - * `Europe/Oslo` - * `Europe/Paris` - * `Europe/Podgorica` - * `Europe/Prague` - * `Europe/Riga` - * `Europe/Rome` - * `Europe/Samara` - * `Europe/San_Marino` - * `Europe/Sarajevo` - * `Europe/Simferopol` - * `Europe/Skopje` - * `Europe/Sofia` - * `Europe/Stockholm` - * `Europe/Tallinn` - * `Europe/Tirane` - * `Europe/Uzhgorod` - * `Europe/Vaduz` - * `Europe/Vatican` - * `Europe/Vienna` - * `Europe/Vilnius` - * `Europe/Volgograd` - * `Europe/Warsaw` - * `Europe/Zagreb` - * `Europe/Zaporozhye` - * `Europe/Zurich` - * `Indian/Antananarivo` - * `Indian/Chagos` - * `Indian/Christmas` - * `Indian/Cocos` - * `Indian/Comoro` - * `Indian/Kerguelen` - * `Indian/Mahe` - * `Indian/Maldives` - * `Indian/Mauritius` - * `Indian/Mayotte` - * `Indian/Reunion` - * `Pacific/Apia` - * `Pacific/Auckland` - * `Pacific/Chatham` - * `Pacific/Chuuk` - * `Pacific/Easter` - * `Pacific/Efate` - * `Pacific/Enderbury` - * `Pacific/Fakaofo` - * `Pacific/Fiji` - * `Pacific/Funafuti` - * `Pacific/Galapagos` - * `Pacific/Gambier` - * `Pacific/Guadalcanal` - * `Pacific/Guam` - * `Pacific/Honolulu` - * `Pacific/Johnston` - * `Pacific/Kiritimati` - * `Pacific/Kosrae` - * `Pacific/Kwajalein` - * `Pacific/Majuro` - * `Pacific/Marquesas` - * `Pacific/Midway` - * `Pacific/Nauru` - * `Pacific/Norfolk` - * `Pacific/Noumea` - * `Pacific/Pago_Pago` - * `Pacific/Palau` - * `Pacific/Pitcairn` - * `Pacific/Pohnpei` - * `Pacific/Port_Moresby` - * `Pacific/Rarotonga` - * `Pacific/Saipan` - * `Pacific/Tahiti` - * `Pacific/Tarawa` - * `Pacific/Tongatapu` - * `Pacific/Wake` - * `Pacific/Wallis` - * `UTC` - diff --git a/model_kubernetes_sys_config_policy_list.go b/model_kubernetes_sys_config_policy_list.go index 2a603d45d7..6ce856d89b 100644 --- a/model_kubernetes_sys_config_policy_list.go +++ b/model_kubernetes_sys_config_policy_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *KubernetesSysConfigPolicyList) GetResultsOk() ([]KubernetesSysConfigPol // HasResults returns a boolean if a field has been set. func (o *KubernetesSysConfigPolicyList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *KubernetesSysConfigPolicyList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *KubernetesSysConfigPolicyList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type KubernetesSysConfigPolicyListWithoutEmbeddedStruct struct { // The total number of 'kubernetes.SysConfigPolicy' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_kubernetes_sys_config_policy_relationship.go b/model_kubernetes_sys_config_policy_relationship.go index f2f4d33434..34701292f7 100644 --- a/model_kubernetes_sys_config_policy_relationship.go +++ b/model_kubernetes_sys_config_policy_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_kubernetes_sys_config_policy_response.go b/model_kubernetes_sys_config_policy_response.go index eca275d76a..d220834a1d 100644 --- a/model_kubernetes_sys_config_policy_response.go +++ b/model_kubernetes_sys_config_policy_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_kubernetes_taint.go b/model_kubernetes_taint.go index 87ff0dafb4..a4908ee0fb 100644 --- a/model_kubernetes_taint.go +++ b/model_kubernetes_taint.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -86,6 +86,11 @@ func (o *KubernetesTaint) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "kubernetes.Taint" of the ClassId field. +func (o *KubernetesTaint) GetDefaultClassId() interface{} { + return "kubernetes.Taint" +} + // GetObjectType returns the ObjectType field value func (o *KubernetesTaint) GetObjectType() string { if o == nil { @@ -110,6 +115,11 @@ func (o *KubernetesTaint) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "kubernetes.Taint" of the ObjectType field. +func (o *KubernetesTaint) GetDefaultObjectType() interface{} { + return "kubernetes.Taint" +} + // GetEffect returns the Effect field value if set, zero value otherwise. func (o *KubernetesTaint) GetEffect() string { if o == nil || IsNil(o.Effect) { @@ -224,7 +234,13 @@ func (o KubernetesTaint) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Effect) { toSerialize["Effect"] = o.Effect @@ -252,6 +268,13 @@ func (o *KubernetesTaint) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -261,11 +284,23 @@ func (o *KubernetesTaint) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type KubernetesTaintWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_kubernetes_trusted_registries_policy.go b/model_kubernetes_trusted_registries_policy.go index 2740293ff4..8361840962 100644 --- a/model_kubernetes_trusted_registries_policy.go +++ b/model_kubernetes_trusted_registries_policy.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -85,6 +85,11 @@ func (o *KubernetesTrustedRegistriesPolicy) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "kubernetes.TrustedRegistriesPolicy" of the ClassId field. +func (o *KubernetesTrustedRegistriesPolicy) GetDefaultClassId() interface{} { + return "kubernetes.TrustedRegistriesPolicy" +} + // GetObjectType returns the ObjectType field value func (o *KubernetesTrustedRegistriesPolicy) GetObjectType() string { if o == nil { @@ -109,6 +114,11 @@ func (o *KubernetesTrustedRegistriesPolicy) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "kubernetes.TrustedRegistriesPolicy" of the ObjectType field. +func (o *KubernetesTrustedRegistriesPolicy) GetDefaultObjectType() interface{} { + return "kubernetes.TrustedRegistriesPolicy" +} + // GetRootCaRegistries returns the RootCaRegistries field value if set, zero value otherwise (both if not set or set to explicit null). func (o *KubernetesTrustedRegistriesPolicy) GetRootCaRegistries() []string { if o == nil { @@ -130,7 +140,7 @@ func (o *KubernetesTrustedRegistriesPolicy) GetRootCaRegistriesOk() ([]string, b // HasRootCaRegistries returns a boolean if a field has been set. func (o *KubernetesTrustedRegistriesPolicy) HasRootCaRegistries() bool { - if o != nil && IsNil(o.RootCaRegistries) { + if o != nil && !IsNil(o.RootCaRegistries) { return true } @@ -163,7 +173,7 @@ func (o *KubernetesTrustedRegistriesPolicy) GetUnsignedRegistriesOk() ([]string, // HasUnsignedRegistries returns a boolean if a field has been set. func (o *KubernetesTrustedRegistriesPolicy) HasUnsignedRegistries() bool { - if o != nil && IsNil(o.UnsignedRegistries) { + if o != nil && !IsNil(o.UnsignedRegistries) { return true } @@ -196,7 +206,7 @@ func (o *KubernetesTrustedRegistriesPolicy) GetClusterProfilesOk() ([]Kubernetes // HasClusterProfiles returns a boolean if a field has been set. func (o *KubernetesTrustedRegistriesPolicy) HasClusterProfiles() bool { - if o != nil && IsNil(o.ClusterProfiles) { + if o != nil && !IsNil(o.ClusterProfiles) { return true } @@ -269,7 +279,13 @@ func (o KubernetesTrustedRegistriesPolicy) ToMap() (map[string]interface{}, erro if errPolicyAbstractPolicy != nil { return map[string]interface{}{}, errPolicyAbstractPolicy } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.RootCaRegistries != nil { toSerialize["RootCaRegistries"] = o.RootCaRegistries @@ -300,6 +316,13 @@ func (o *KubernetesTrustedRegistriesPolicy) UnmarshalJSON(data []byte) (err erro "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -309,11 +332,23 @@ func (o *KubernetesTrustedRegistriesPolicy) UnmarshalJSON(data []byte) (err erro } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type KubernetesTrustedRegistriesPolicyWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_kubernetes_trusted_registries_policy_list.go b/model_kubernetes_trusted_registries_policy_list.go index 0fbfae89d3..4de79fdb66 100644 --- a/model_kubernetes_trusted_registries_policy_list.go +++ b/model_kubernetes_trusted_registries_policy_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *KubernetesTrustedRegistriesPolicyList) GetResultsOk() ([]KubernetesTrus // HasResults returns a boolean if a field has been set. func (o *KubernetesTrustedRegistriesPolicyList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *KubernetesTrustedRegistriesPolicyList) UnmarshalJSON(data []byte) (err "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *KubernetesTrustedRegistriesPolicyList) UnmarshalJSON(data []byte) (err } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type KubernetesTrustedRegistriesPolicyListWithoutEmbeddedStruct struct { // The total number of 'kubernetes.TrustedRegistriesPolicy' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_kubernetes_trusted_registries_policy_relationship.go b/model_kubernetes_trusted_registries_policy_relationship.go index ccb7b42738..a36efb98b8 100644 --- a/model_kubernetes_trusted_registries_policy_relationship.go +++ b/model_kubernetes_trusted_registries_policy_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_kubernetes_trusted_registries_policy_response.go b/model_kubernetes_trusted_registries_policy_response.go index 5a0788b3c5..e9bbc9acc2 100644 --- a/model_kubernetes_trusted_registries_policy_response.go +++ b/model_kubernetes_trusted_registries_policy_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_kubernetes_version.go b/model_kubernetes_version.go index 3899dec280..858afabeef 100644 --- a/model_kubernetes_version.go +++ b/model_kubernetes_version.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -34,7 +34,7 @@ type KubernetesVersion struct { // The iks utility container to use for the kubernetes version. IksUtilityContainer *string `json:"IksUtilityContainer,omitempty"` // Desired Kubernetes version. - KubernetesVersion *string `json:"KubernetesVersion,omitempty"` + KubernetesVersion *string `json:"KubernetesVersion,omitempty" validate:"regexp=^$|^v[0-9]+\\\\.[0-9]+\\\\.[0-9]+$"` // The name of this IKS kubernetes version. Name *string `json:"Name,omitempty"` BootIso NullableSoftwareSolutionDistributableRelationship `json:"BootIso,omitempty"` @@ -94,6 +94,11 @@ func (o *KubernetesVersion) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "kubernetes.Version" of the ClassId field. +func (o *KubernetesVersion) GetDefaultClassId() interface{} { + return "kubernetes.Version" +} + // GetObjectType returns the ObjectType field value func (o *KubernetesVersion) GetObjectType() string { if o == nil { @@ -118,6 +123,11 @@ func (o *KubernetesVersion) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "kubernetes.Version" of the ObjectType field. +func (o *KubernetesVersion) GetDefaultObjectType() interface{} { + return "kubernetes.Version" +} + // GetEssentialAddons returns the EssentialAddons field value if set, zero value otherwise (both if not set or set to explicit null). func (o *KubernetesVersion) GetEssentialAddons() []KubernetesAddonVersionReference { if o == nil { @@ -139,7 +149,7 @@ func (o *KubernetesVersion) GetEssentialAddonsOk() ([]KubernetesAddonVersionRefe // HasEssentialAddons returns a boolean if a field has been set. func (o *KubernetesVersion) HasEssentialAddons() bool { - if o != nil && IsNil(o.EssentialAddons) { + if o != nil && !IsNil(o.EssentialAddons) { return true } @@ -512,7 +522,13 @@ func (o KubernetesVersion) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.EssentialAddons != nil { toSerialize["EssentialAddons"] = o.EssentialAddons @@ -561,6 +577,13 @@ func (o *KubernetesVersion) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -570,11 +593,23 @@ func (o *KubernetesVersion) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type KubernetesVersionWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` @@ -586,7 +621,7 @@ func (o *KubernetesVersion) UnmarshalJSON(data []byte) (err error) { // The iks utility container to use for the kubernetes version. IksUtilityContainer *string `json:"IksUtilityContainer,omitempty"` // Desired Kubernetes version. - KubernetesVersion *string `json:"KubernetesVersion,omitempty"` + KubernetesVersion *string `json:"KubernetesVersion,omitempty" validate:"regexp=^$|^v[0-9]+\\\\.[0-9]+\\\\.[0-9]+$"` // The name of this IKS kubernetes version. Name *string `json:"Name,omitempty"` BootIso NullableSoftwareSolutionDistributableRelationship `json:"BootIso,omitempty"` diff --git a/model_kubernetes_version_list.go b/model_kubernetes_version_list.go index a8a21f01e8..6fc5fd9a12 100644 --- a/model_kubernetes_version_list.go +++ b/model_kubernetes_version_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *KubernetesVersionList) GetResultsOk() ([]KubernetesVersion, bool) { // HasResults returns a boolean if a field has been set. func (o *KubernetesVersionList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *KubernetesVersionList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *KubernetesVersionList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type KubernetesVersionListWithoutEmbeddedStruct struct { // The total number of 'kubernetes.Version' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_kubernetes_version_policy.go b/model_kubernetes_version_policy.go index d22c27f739..a9811895ea 100644 --- a/model_kubernetes_version_policy.go +++ b/model_kubernetes_version_policy.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -84,6 +84,11 @@ func (o *KubernetesVersionPolicy) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "kubernetes.VersionPolicy" of the ClassId field. +func (o *KubernetesVersionPolicy) GetDefaultClassId() interface{} { + return "kubernetes.VersionPolicy" +} + // GetObjectType returns the ObjectType field value func (o *KubernetesVersionPolicy) GetObjectType() string { if o == nil { @@ -108,6 +113,11 @@ func (o *KubernetesVersionPolicy) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "kubernetes.VersionPolicy" of the ObjectType field. +func (o *KubernetesVersionPolicy) GetDefaultObjectType() interface{} { + return "kubernetes.VersionPolicy" +} + // GetOrganization returns the Organization field value if set, zero value otherwise (both if not set or set to explicit null). func (o *KubernetesVersionPolicy) GetOrganization() OrganizationOrganizationRelationship { if o == nil || IsNil(o.Organization.Get()) { @@ -172,7 +182,7 @@ func (o *KubernetesVersionPolicy) GetProfilesOk() ([]KubernetesNodeGroupProfileR // HasProfiles returns a boolean if a field has been set. func (o *KubernetesVersionPolicy) HasProfiles() bool { - if o != nil && IsNil(o.Profiles) { + if o != nil && !IsNil(o.Profiles) { return true } @@ -245,7 +255,13 @@ func (o KubernetesVersionPolicy) ToMap() (map[string]interface{}, error) { if errPolicyAbstractPolicy != nil { return map[string]interface{}{}, errPolicyAbstractPolicy } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.Organization.IsSet() { toSerialize["Organization"] = o.Organization.Get() @@ -273,6 +289,13 @@ func (o *KubernetesVersionPolicy) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -282,11 +305,23 @@ func (o *KubernetesVersionPolicy) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type KubernetesVersionPolicyWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_kubernetes_version_policy_list.go b/model_kubernetes_version_policy_list.go index 4ac7f5ba4f..cef7628cb4 100644 --- a/model_kubernetes_version_policy_list.go +++ b/model_kubernetes_version_policy_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *KubernetesVersionPolicyList) GetResultsOk() ([]KubernetesVersionPolicy, // HasResults returns a boolean if a field has been set. func (o *KubernetesVersionPolicyList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *KubernetesVersionPolicyList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *KubernetesVersionPolicyList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type KubernetesVersionPolicyListWithoutEmbeddedStruct struct { // The total number of 'kubernetes.VersionPolicy' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_kubernetes_version_policy_relationship.go b/model_kubernetes_version_policy_relationship.go index 23f03e3a84..575e55aa0f 100644 --- a/model_kubernetes_version_policy_relationship.go +++ b/model_kubernetes_version_policy_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_kubernetes_version_policy_response.go b/model_kubernetes_version_policy_response.go index 4482b00297..b10ca81bca 100644 --- a/model_kubernetes_version_policy_response.go +++ b/model_kubernetes_version_policy_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_kubernetes_version_relationship.go b/model_kubernetes_version_relationship.go index 54d9e957b1..024be34267 100644 --- a/model_kubernetes_version_relationship.go +++ b/model_kubernetes_version_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_kubernetes_version_response.go b/model_kubernetes_version_response.go index db84410d93..78d9b9d508 100644 --- a/model_kubernetes_version_response.go +++ b/model_kubernetes_version_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_kubernetes_virtual_machine_infra_config_policy.go b/model_kubernetes_virtual_machine_infra_config_policy.go index b0560fbb5a..7d01ce05fc 100644 --- a/model_kubernetes_virtual_machine_infra_config_policy.go +++ b/model_kubernetes_virtual_machine_infra_config_policy.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -85,6 +85,11 @@ func (o *KubernetesVirtualMachineInfraConfigPolicy) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "kubernetes.VirtualMachineInfraConfigPolicy" of the ClassId field. +func (o *KubernetesVirtualMachineInfraConfigPolicy) GetDefaultClassId() interface{} { + return "kubernetes.VirtualMachineInfraConfigPolicy" +} + // GetObjectType returns the ObjectType field value func (o *KubernetesVirtualMachineInfraConfigPolicy) GetObjectType() string { if o == nil { @@ -109,6 +114,11 @@ func (o *KubernetesVirtualMachineInfraConfigPolicy) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "kubernetes.VirtualMachineInfraConfigPolicy" of the ObjectType field. +func (o *KubernetesVirtualMachineInfraConfigPolicy) GetDefaultObjectType() interface{} { + return "kubernetes.VirtualMachineInfraConfigPolicy" +} + // GetVmConfig returns the VmConfig field value if set, zero value otherwise (both if not set or set to explicit null). func (o *KubernetesVirtualMachineInfraConfigPolicy) GetVmConfig() KubernetesBaseVirtualMachineInfraConfig { if o == nil || IsNil(o.VmConfig.Get()) { @@ -216,7 +226,7 @@ func (o *KubernetesVirtualMachineInfraConfigPolicy) GetProfilesOk() ([]Kubernete // HasProfiles returns a boolean if a field has been set. func (o *KubernetesVirtualMachineInfraConfigPolicy) HasProfiles() bool { - if o != nil && IsNil(o.Profiles) { + if o != nil && !IsNil(o.Profiles) { return true } @@ -289,7 +299,13 @@ func (o KubernetesVirtualMachineInfraConfigPolicy) ToMap() (map[string]interface if errPolicyAbstractPolicy != nil { return map[string]interface{}{}, errPolicyAbstractPolicy } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.VmConfig.IsSet() { toSerialize["VmConfig"] = o.VmConfig.Get() @@ -320,6 +336,13 @@ func (o *KubernetesVirtualMachineInfraConfigPolicy) UnmarshalJSON(data []byte) ( "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -329,11 +352,23 @@ func (o *KubernetesVirtualMachineInfraConfigPolicy) UnmarshalJSON(data []byte) ( } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type KubernetesVirtualMachineInfraConfigPolicyWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_kubernetes_virtual_machine_infra_config_policy_list.go b/model_kubernetes_virtual_machine_infra_config_policy_list.go index a1aec512d9..c08cc1c7f1 100644 --- a/model_kubernetes_virtual_machine_infra_config_policy_list.go +++ b/model_kubernetes_virtual_machine_infra_config_policy_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *KubernetesVirtualMachineInfraConfigPolicyList) GetResultsOk() ([]Kubern // HasResults returns a boolean if a field has been set. func (o *KubernetesVirtualMachineInfraConfigPolicyList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *KubernetesVirtualMachineInfraConfigPolicyList) UnmarshalJSON(data []byt "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *KubernetesVirtualMachineInfraConfigPolicyList) UnmarshalJSON(data []byt } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type KubernetesVirtualMachineInfraConfigPolicyListWithoutEmbeddedStruct struct { // The total number of 'kubernetes.VirtualMachineInfraConfigPolicy' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_kubernetes_virtual_machine_infra_config_policy_relationship.go b/model_kubernetes_virtual_machine_infra_config_policy_relationship.go index 3096625c03..b3a59a50c3 100644 --- a/model_kubernetes_virtual_machine_infra_config_policy_relationship.go +++ b/model_kubernetes_virtual_machine_infra_config_policy_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_kubernetes_virtual_machine_infra_config_policy_response.go b/model_kubernetes_virtual_machine_infra_config_policy_response.go index 4a5fdaf714..50c2d69a18 100644 --- a/model_kubernetes_virtual_machine_infra_config_policy_response.go +++ b/model_kubernetes_virtual_machine_infra_config_policy_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_kubernetes_virtual_machine_infrastructure_provider.go b/model_kubernetes_virtual_machine_infrastructure_provider.go index 1919f91bd8..30bae53461 100644 --- a/model_kubernetes_virtual_machine_infrastructure_provider.go +++ b/model_kubernetes_virtual_machine_infrastructure_provider.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -84,6 +84,11 @@ func (o *KubernetesVirtualMachineInfrastructureProvider) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "kubernetes.VirtualMachineInfrastructureProvider" of the ClassId field. +func (o *KubernetesVirtualMachineInfrastructureProvider) GetDefaultClassId() interface{} { + return "kubernetes.VirtualMachineInfrastructureProvider" +} + // GetObjectType returns the ObjectType field value func (o *KubernetesVirtualMachineInfrastructureProvider) GetObjectType() string { if o == nil { @@ -108,6 +113,11 @@ func (o *KubernetesVirtualMachineInfrastructureProvider) SetObjectType(v string) o.ObjectType = v } +// GetDefaultObjectType returns the default value "kubernetes.VirtualMachineInfrastructureProvider" of the ObjectType field. +func (o *KubernetesVirtualMachineInfrastructureProvider) GetDefaultObjectType() interface{} { + return "kubernetes.VirtualMachineInfrastructureProvider" +} + // GetInfraConfig returns the InfraConfig field value if set, zero value otherwise (both if not set or set to explicit null). func (o *KubernetesVirtualMachineInfrastructureProvider) GetInfraConfig() KubernetesBaseVirtualMachineInfraConfig { if o == nil || IsNil(o.InfraConfig.Get()) { @@ -298,7 +308,13 @@ func (o KubernetesVirtualMachineInfrastructureProvider) ToMap() (map[string]inte if errKubernetesBaseInfrastructureProvider != nil { return map[string]interface{}{}, errKubernetesBaseInfrastructureProvider } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.InfraConfig.IsSet() { toSerialize["InfraConfig"] = o.InfraConfig.Get() @@ -329,6 +345,13 @@ func (o *KubernetesVirtualMachineInfrastructureProvider) UnmarshalJSON(data []by "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -338,11 +361,23 @@ func (o *KubernetesVirtualMachineInfrastructureProvider) UnmarshalJSON(data []by } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type KubernetesVirtualMachineInfrastructureProviderWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_kubernetes_virtual_machine_infrastructure_provider_list.go b/model_kubernetes_virtual_machine_infrastructure_provider_list.go index 7d396dc041..e6c920eb7e 100644 --- a/model_kubernetes_virtual_machine_infrastructure_provider_list.go +++ b/model_kubernetes_virtual_machine_infrastructure_provider_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *KubernetesVirtualMachineInfrastructureProviderList) GetResultsOk() ([]K // HasResults returns a boolean if a field has been set. func (o *KubernetesVirtualMachineInfrastructureProviderList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *KubernetesVirtualMachineInfrastructureProviderList) UnmarshalJSON(data "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *KubernetesVirtualMachineInfrastructureProviderList) UnmarshalJSON(data } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type KubernetesVirtualMachineInfrastructureProviderListWithoutEmbeddedStruct struct { // The total number of 'kubernetes.VirtualMachineInfrastructureProvider' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_kubernetes_virtual_machine_infrastructure_provider_relationship.go b/model_kubernetes_virtual_machine_infrastructure_provider_relationship.go index e8a04f966e..096f00fe28 100644 --- a/model_kubernetes_virtual_machine_infrastructure_provider_relationship.go +++ b/model_kubernetes_virtual_machine_infrastructure_provider_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_kubernetes_virtual_machine_infrastructure_provider_response.go b/model_kubernetes_virtual_machine_infrastructure_provider_response.go index e0ae4c7008..d8a4c3670e 100644 --- a/model_kubernetes_virtual_machine_infrastructure_provider_response.go +++ b/model_kubernetes_virtual_machine_infrastructure_provider_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_kubernetes_virtual_machine_instance_type.go b/model_kubernetes_virtual_machine_instance_type.go index a68006c5de..c6bbff3aa8 100644 --- a/model_kubernetes_virtual_machine_instance_type.go +++ b/model_kubernetes_virtual_machine_instance_type.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -97,6 +97,11 @@ func (o *KubernetesVirtualMachineInstanceType) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "kubernetes.VirtualMachineInstanceType" of the ClassId field. +func (o *KubernetesVirtualMachineInstanceType) GetDefaultClassId() interface{} { + return "kubernetes.VirtualMachineInstanceType" +} + // GetObjectType returns the ObjectType field value func (o *KubernetesVirtualMachineInstanceType) GetObjectType() string { if o == nil { @@ -121,6 +126,11 @@ func (o *KubernetesVirtualMachineInstanceType) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "kubernetes.VirtualMachineInstanceType" of the ObjectType field. +func (o *KubernetesVirtualMachineInstanceType) GetDefaultObjectType() interface{} { + return "kubernetes.VirtualMachineInstanceType" +} + // GetCpu returns the Cpu field value if set, zero value otherwise. func (o *KubernetesVirtualMachineInstanceType) GetCpu() int64 { if o == nil || IsNil(o.Cpu) { @@ -281,7 +291,7 @@ func (o *KubernetesVirtualMachineInstanceType) GetProfilesOk() ([]KubernetesVirt // HasProfiles returns a boolean if a field has been set. func (o *KubernetesVirtualMachineInstanceType) HasProfiles() bool { - if o != nil && IsNil(o.Profiles) { + if o != nil && !IsNil(o.Profiles) { return true } @@ -311,7 +321,13 @@ func (o KubernetesVirtualMachineInstanceType) ToMap() (map[string]interface{}, e if errPolicyAbstractPolicy != nil { return map[string]interface{}{}, errPolicyAbstractPolicy } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Cpu) { toSerialize["Cpu"] = o.Cpu @@ -345,6 +361,13 @@ func (o *KubernetesVirtualMachineInstanceType) UnmarshalJSON(data []byte) (err e "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -354,11 +377,23 @@ func (o *KubernetesVirtualMachineInstanceType) UnmarshalJSON(data []byte) (err e } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type KubernetesVirtualMachineInstanceTypeWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_kubernetes_virtual_machine_instance_type_list.go b/model_kubernetes_virtual_machine_instance_type_list.go index b9e414e8c5..f296fca92c 100644 --- a/model_kubernetes_virtual_machine_instance_type_list.go +++ b/model_kubernetes_virtual_machine_instance_type_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *KubernetesVirtualMachineInstanceTypeList) GetResultsOk() ([]KubernetesV // HasResults returns a boolean if a field has been set. func (o *KubernetesVirtualMachineInstanceTypeList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *KubernetesVirtualMachineInstanceTypeList) UnmarshalJSON(data []byte) (e "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *KubernetesVirtualMachineInstanceTypeList) UnmarshalJSON(data []byte) (e } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type KubernetesVirtualMachineInstanceTypeListWithoutEmbeddedStruct struct { // The total number of 'kubernetes.VirtualMachineInstanceType' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_kubernetes_virtual_machine_instance_type_relationship.go b/model_kubernetes_virtual_machine_instance_type_relationship.go index 41b519c33c..24994a2b8e 100644 --- a/model_kubernetes_virtual_machine_instance_type_relationship.go +++ b/model_kubernetes_virtual_machine_instance_type_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_kubernetes_virtual_machine_instance_type_response.go b/model_kubernetes_virtual_machine_instance_type_response.go index 598fc2a2e0..00a2bce786 100644 --- a/model_kubernetes_virtual_machine_instance_type_response.go +++ b/model_kubernetes_virtual_machine_instance_type_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_kubernetes_virtual_machine_node_profile.go b/model_kubernetes_virtual_machine_node_profile.go index eb12b2ba98..5b62f6d23b 100644 --- a/model_kubernetes_virtual_machine_node_profile.go +++ b/model_kubernetes_virtual_machine_node_profile.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -92,6 +92,11 @@ func (o *KubernetesVirtualMachineNodeProfile) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "kubernetes.VirtualMachineNodeProfile" of the ClassId field. +func (o *KubernetesVirtualMachineNodeProfile) GetDefaultClassId() interface{} { + return "kubernetes.VirtualMachineNodeProfile" +} + // GetObjectType returns the ObjectType field value func (o *KubernetesVirtualMachineNodeProfile) GetObjectType() string { if o == nil { @@ -116,6 +121,11 @@ func (o *KubernetesVirtualMachineNodeProfile) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "kubernetes.VirtualMachineNodeProfile" of the ObjectType field. +func (o *KubernetesVirtualMachineNodeProfile) GetDefaultObjectType() interface{} { + return "kubernetes.VirtualMachineNodeProfile" +} + // GetInterfaces returns the Interfaces field value if set, zero value otherwise (both if not set or set to explicit null). func (o *KubernetesVirtualMachineNodeProfile) GetInterfaces() []KubernetesEthernet { if o == nil { @@ -137,7 +147,7 @@ func (o *KubernetesVirtualMachineNodeProfile) GetInterfacesOk() ([]KubernetesEth // HasInterfaces returns a boolean if a field has been set. func (o *KubernetesVirtualMachineNodeProfile) HasInterfaces() bool { - if o != nil && IsNil(o.Interfaces) { + if o != nil && !IsNil(o.Interfaces) { return true } @@ -172,7 +182,7 @@ func (o *KubernetesVirtualMachineNodeProfile) GetIpAddressesOk() ([]IppoolIpLeas // HasIpAddresses returns a boolean if a field has been set. func (o *KubernetesVirtualMachineNodeProfile) HasIpAddresses() bool { - if o != nil && IsNil(o.IpAddresses) { + if o != nil && !IsNil(o.IpAddresses) { return true } @@ -289,7 +299,13 @@ func (o KubernetesVirtualMachineNodeProfile) ToMap() (map[string]interface{}, er if errKubernetesNodeProfile != nil { return map[string]interface{}{}, errKubernetesNodeProfile } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.Interfaces != nil { toSerialize["Interfaces"] = o.Interfaces @@ -320,6 +336,13 @@ func (o *KubernetesVirtualMachineNodeProfile) UnmarshalJSON(data []byte) (err er "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -329,11 +352,23 @@ func (o *KubernetesVirtualMachineNodeProfile) UnmarshalJSON(data []byte) (err er } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type KubernetesVirtualMachineNodeProfileWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_kubernetes_virtual_machine_node_profile_list.go b/model_kubernetes_virtual_machine_node_profile_list.go index 06b3a3e41e..9d28af410b 100644 --- a/model_kubernetes_virtual_machine_node_profile_list.go +++ b/model_kubernetes_virtual_machine_node_profile_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *KubernetesVirtualMachineNodeProfileList) GetResultsOk() ([]KubernetesVi // HasResults returns a boolean if a field has been set. func (o *KubernetesVirtualMachineNodeProfileList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *KubernetesVirtualMachineNodeProfileList) UnmarshalJSON(data []byte) (er "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *KubernetesVirtualMachineNodeProfileList) UnmarshalJSON(data []byte) (er } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type KubernetesVirtualMachineNodeProfileListWithoutEmbeddedStruct struct { // The total number of 'kubernetes.VirtualMachineNodeProfile' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_kubernetes_virtual_machine_node_profile_response.go b/model_kubernetes_virtual_machine_node_profile_response.go index 7599f2ef78..4b7352551d 100644 --- a/model_kubernetes_virtual_machine_node_profile_response.go +++ b/model_kubernetes_virtual_machine_node_profile_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_kvm_policy.go b/model_kvm_policy.go index 2c565e4b0e..8d34094b55 100644 --- a/model_kvm_policy.go +++ b/model_kvm_policy.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -119,6 +119,11 @@ func (o *KvmPolicy) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "kvm.Policy" of the ClassId field. +func (o *KvmPolicy) GetDefaultClassId() interface{} { + return "kvm.Policy" +} + // GetObjectType returns the ObjectType field value func (o *KvmPolicy) GetObjectType() string { if o == nil { @@ -143,6 +148,11 @@ func (o *KvmPolicy) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "kvm.Policy" of the ObjectType field. +func (o *KvmPolicy) GetDefaultObjectType() interface{} { + return "kvm.Policy" +} + // GetEnableLocalServerVideo returns the EnableLocalServerVideo field value if set, zero value otherwise. func (o *KvmPolicy) GetEnableLocalServerVideo() bool { if o == nil || IsNil(o.EnableLocalServerVideo) { @@ -399,7 +409,7 @@ func (o *KvmPolicy) GetProfilesOk() ([]PolicyAbstractConfigProfileRelationship, // HasProfiles returns a boolean if a field has been set. func (o *KvmPolicy) HasProfiles() bool { - if o != nil && IsNil(o.Profiles) { + if o != nil && !IsNil(o.Profiles) { return true } @@ -429,7 +439,13 @@ func (o KvmPolicy) ToMap() (map[string]interface{}, error) { if errPolicyAbstractPolicy != nil { return map[string]interface{}{}, errPolicyAbstractPolicy } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.EnableLocalServerVideo) { toSerialize["EnableLocalServerVideo"] = o.EnableLocalServerVideo @@ -472,6 +488,13 @@ func (o *KvmPolicy) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -481,11 +504,23 @@ func (o *KvmPolicy) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type KvmPolicyWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_kvm_policy_inventory.go b/model_kvm_policy_inventory.go index 1ebd41f8ba..0384442086 100644 --- a/model_kvm_policy_inventory.go +++ b/model_kvm_policy_inventory.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -93,6 +93,11 @@ func (o *KvmPolicyInventory) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "kvm.PolicyInventory" of the ClassId field. +func (o *KvmPolicyInventory) GetDefaultClassId() interface{} { + return "kvm.PolicyInventory" +} + // GetObjectType returns the ObjectType field value func (o *KvmPolicyInventory) GetObjectType() string { if o == nil { @@ -117,6 +122,11 @@ func (o *KvmPolicyInventory) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "kvm.PolicyInventory" of the ObjectType field. +func (o *KvmPolicyInventory) GetDefaultObjectType() interface{} { + return "kvm.PolicyInventory" +} + // GetEnableLocalServerVideo returns the EnableLocalServerVideo field value if set, zero value otherwise. func (o *KvmPolicyInventory) GetEnableLocalServerVideo() bool { if o == nil || IsNil(o.EnableLocalServerVideo) { @@ -370,7 +380,13 @@ func (o KvmPolicyInventory) ToMap() (map[string]interface{}, error) { if errPolicyAbstractPolicyInventory != nil { return map[string]interface{}{}, errPolicyAbstractPolicyInventory } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.EnableLocalServerVideo) { toSerialize["EnableLocalServerVideo"] = o.EnableLocalServerVideo @@ -410,6 +426,13 @@ func (o *KvmPolicyInventory) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -419,11 +442,23 @@ func (o *KvmPolicyInventory) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type KvmPolicyInventoryWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_kvm_policy_inventory_list.go b/model_kvm_policy_inventory_list.go index dd7ffa6255..a0c44b7d32 100644 --- a/model_kvm_policy_inventory_list.go +++ b/model_kvm_policy_inventory_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *KvmPolicyInventoryList) GetResultsOk() ([]KvmPolicyInventory, bool) { // HasResults returns a boolean if a field has been set. func (o *KvmPolicyInventoryList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *KvmPolicyInventoryList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *KvmPolicyInventoryList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type KvmPolicyInventoryListWithoutEmbeddedStruct struct { // The total number of 'kvm.PolicyInventory' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_kvm_policy_inventory_response.go b/model_kvm_policy_inventory_response.go index 47d7eb3746..25953320e4 100644 --- a/model_kvm_policy_inventory_response.go +++ b/model_kvm_policy_inventory_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_kvm_policy_list.go b/model_kvm_policy_list.go index 20966620b1..78d1252ebc 100644 --- a/model_kvm_policy_list.go +++ b/model_kvm_policy_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *KvmPolicyList) GetResultsOk() ([]KvmPolicy, bool) { // HasResults returns a boolean if a field has been set. func (o *KvmPolicyList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *KvmPolicyList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *KvmPolicyList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type KvmPolicyListWithoutEmbeddedStruct struct { // The total number of 'kvm.Policy' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_kvm_policy_response.go b/model_kvm_policy_response.go index 56cb4de86f..a86798e353 100644 --- a/model_kvm_policy_response.go +++ b/model_kvm_policy_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_kvm_session.go b/model_kvm_session.go index bf81b54ebe..26998fa1b8 100644 --- a/model_kvm_session.go +++ b/model_kvm_session.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -95,6 +95,11 @@ func (o *KvmSession) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "kvm.Session" of the ClassId field. +func (o *KvmSession) GetDefaultClassId() interface{} { + return "kvm.Session" +} + // GetObjectType returns the ObjectType field value func (o *KvmSession) GetObjectType() string { if o == nil { @@ -119,6 +124,11 @@ func (o *KvmSession) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "kvm.Session" of the ObjectType field. +func (o *KvmSession) GetDefaultObjectType() interface{} { + return "kvm.Session" +} + // GetKvmLaunchUrlPath returns the KvmLaunchUrlPath field value if set, zero value otherwise. func (o *KvmSession) GetKvmLaunchUrlPath() string { if o == nil || IsNil(o.KvmLaunchUrlPath) { @@ -426,7 +436,13 @@ func (o KvmSession) ToMap() (map[string]interface{}, error) { if errSessionAbstractSubSession != nil { return map[string]interface{}{}, errSessionAbstractSubSession } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.KvmLaunchUrlPath) { toSerialize["KvmLaunchUrlPath"] = o.KvmLaunchUrlPath @@ -469,6 +485,13 @@ func (o *KvmSession) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -478,11 +501,23 @@ func (o *KvmSession) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type KvmSessionWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_kvm_session_list.go b/model_kvm_session_list.go index 690695baa1..99a3ae6f99 100644 --- a/model_kvm_session_list.go +++ b/model_kvm_session_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *KvmSessionList) GetResultsOk() ([]KvmSession, bool) { // HasResults returns a boolean if a field has been set. func (o *KvmSessionList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *KvmSessionList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *KvmSessionList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type KvmSessionListWithoutEmbeddedStruct struct { // The total number of 'kvm.Session' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_kvm_session_relationship.go b/model_kvm_session_relationship.go index c00e38dc11..6d803fda08 100644 --- a/model_kvm_session_relationship.go +++ b/model_kvm_session_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_kvm_session_response.go b/model_kvm_session_response.go index fe22c43d7e..9f5eca77b5 100644 --- a/model_kvm_session_response.go +++ b/model_kvm_session_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_kvm_tunnel.go b/model_kvm_tunnel.go index 6a60680555..787e459593 100644 --- a/model_kvm_tunnel.go +++ b/model_kvm_tunnel.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -85,6 +85,11 @@ func (o *KvmTunnel) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "kvm.Tunnel" of the ClassId field. +func (o *KvmTunnel) GetDefaultClassId() interface{} { + return "kvm.Tunnel" +} + // GetObjectType returns the ObjectType field value func (o *KvmTunnel) GetObjectType() string { if o == nil { @@ -109,6 +114,11 @@ func (o *KvmTunnel) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "kvm.Tunnel" of the ObjectType field. +func (o *KvmTunnel) GetDefaultObjectType() interface{} { + return "kvm.Tunnel" +} + // GetDevice returns the Device field value if set, zero value otherwise (both if not set or set to explicit null). func (o *KvmTunnel) GetDevice() AssetDeviceRegistrationRelationship { if o == nil || IsNil(o.Device.Get()) { @@ -256,7 +266,13 @@ func (o KvmTunnel) ToMap() (map[string]interface{}, error) { if errTunnelingTunnel != nil { return map[string]interface{}{}, errTunnelingTunnel } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.Device.IsSet() { toSerialize["Device"] = o.Device.Get() @@ -284,6 +300,13 @@ func (o *KvmTunnel) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -293,11 +316,23 @@ func (o *KvmTunnel) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type KvmTunnelWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_kvm_tunnel_list.go b/model_kvm_tunnel_list.go index 032dbad664..775b109d02 100644 --- a/model_kvm_tunnel_list.go +++ b/model_kvm_tunnel_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *KvmTunnelList) GetResultsOk() ([]KvmTunnel, bool) { // HasResults returns a boolean if a field has been set. func (o *KvmTunnelList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *KvmTunnelList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *KvmTunnelList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type KvmTunnelListWithoutEmbeddedStruct struct { // The total number of 'kvm.Tunnel' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_kvm_tunnel_relationship.go b/model_kvm_tunnel_relationship.go index 543ac77617..6bacd8b748 100644 --- a/model_kvm_tunnel_relationship.go +++ b/model_kvm_tunnel_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_kvm_tunnel_response.go b/model_kvm_tunnel_response.go index f464968b48..3e3a1c1f83 100644 --- a/model_kvm_tunnel_response.go +++ b/model_kvm_tunnel_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_kvm_tunneled_kvm_policy.go b/model_kvm_tunneled_kvm_policy.go index df5335df9d..acd4c65019 100644 --- a/model_kvm_tunneled_kvm_policy.go +++ b/model_kvm_tunneled_kvm_policy.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -93,6 +93,11 @@ func (o *KvmTunneledKvmPolicy) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "kvm.TunneledKvmPolicy" of the ClassId field. +func (o *KvmTunneledKvmPolicy) GetDefaultClassId() interface{} { + return "kvm.TunneledKvmPolicy" +} + // GetObjectType returns the ObjectType field value func (o *KvmTunneledKvmPolicy) GetObjectType() string { if o == nil { @@ -117,6 +122,11 @@ func (o *KvmTunneledKvmPolicy) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "kvm.TunneledKvmPolicy" of the ObjectType field. +func (o *KvmTunneledKvmPolicy) GetDefaultObjectType() interface{} { + return "kvm.TunneledKvmPolicy" +} + // GetTunneledKvmConfiguration returns the TunneledKvmConfiguration field value if set, zero value otherwise. func (o *KvmTunneledKvmPolicy) GetTunneledKvmConfiguration() bool { if o == nil || IsNil(o.TunneledKvmConfiguration) { @@ -242,7 +252,13 @@ func (o KvmTunneledKvmPolicy) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.TunneledKvmConfiguration) { toSerialize["TunneledKvmConfiguration"] = o.TunneledKvmConfiguration @@ -270,6 +286,13 @@ func (o *KvmTunneledKvmPolicy) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -279,11 +302,23 @@ func (o *KvmTunneledKvmPolicy) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type KvmTunneledKvmPolicyWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_kvm_tunneled_kvm_policy_list.go b/model_kvm_tunneled_kvm_policy_list.go index e25cb6221f..aae87b3ded 100644 --- a/model_kvm_tunneled_kvm_policy_list.go +++ b/model_kvm_tunneled_kvm_policy_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *KvmTunneledKvmPolicyList) GetResultsOk() ([]KvmTunneledKvmPolicy, bool) // HasResults returns a boolean if a field has been set. func (o *KvmTunneledKvmPolicyList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *KvmTunneledKvmPolicyList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *KvmTunneledKvmPolicyList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type KvmTunneledKvmPolicyListWithoutEmbeddedStruct struct { // The total number of 'kvm.TunneledKvmPolicy' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_kvm_tunneled_kvm_policy_response.go b/model_kvm_tunneled_kvm_policy_response.go index 1a6fbb521c..d83da5dd0b 100644 --- a/model_kvm_tunneled_kvm_policy_response.go +++ b/model_kvm_tunneled_kvm_policy_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_license_account_license_data.go b/model_license_account_license_data.go index 6b3418de3f..3c8a8203e3 100644 --- a/model_license_account_license_data.go +++ b/model_license_account_license_data.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -158,6 +158,11 @@ func (o *LicenseAccountLicenseData) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "license.AccountLicenseData" of the ClassId field. +func (o *LicenseAccountLicenseData) GetDefaultClassId() interface{} { + return "license.AccountLicenseData" +} + // GetObjectType returns the ObjectType field value func (o *LicenseAccountLicenseData) GetObjectType() string { if o == nil { @@ -182,6 +187,11 @@ func (o *LicenseAccountLicenseData) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "license.AccountLicenseData" of the ObjectType field. +func (o *LicenseAccountLicenseData) GetDefaultObjectType() interface{} { + return "license.AccountLicenseData" +} + // GetAccountId returns the AccountId field value if set, zero value otherwise. func (o *LicenseAccountLicenseData) GetAccountId() string { if o == nil || IsNil(o.AccountId) { @@ -1529,7 +1539,7 @@ func (o *LicenseAccountLicenseData) GetLicenseinfosOk() ([]LicenseLicenseInfoRel // HasLicenseinfos returns a boolean if a field has been set. func (o *LicenseAccountLicenseData) HasLicenseinfos() bool { - if o != nil && IsNil(o.Licenseinfos) { + if o != nil && !IsNil(o.Licenseinfos) { return true } @@ -1602,7 +1612,13 @@ func (o LicenseAccountLicenseData) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.AccountId) { toSerialize["AccountId"] = o.AccountId @@ -1741,6 +1757,13 @@ func (o *LicenseAccountLicenseData) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -1750,11 +1773,23 @@ func (o *LicenseAccountLicenseData) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type LicenseAccountLicenseDataWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_license_account_license_data_list.go b/model_license_account_license_data_list.go index 4dd4045926..58663e923e 100644 --- a/model_license_account_license_data_list.go +++ b/model_license_account_license_data_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *LicenseAccountLicenseDataList) GetResultsOk() ([]LicenseAccountLicenseD // HasResults returns a boolean if a field has been set. func (o *LicenseAccountLicenseDataList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *LicenseAccountLicenseDataList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *LicenseAccountLicenseDataList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type LicenseAccountLicenseDataListWithoutEmbeddedStruct struct { // The total number of 'license.AccountLicenseData' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_license_account_license_data_relationship.go b/model_license_account_license_data_relationship.go index f9b8cdaa21..2dc9584d6d 100644 --- a/model_license_account_license_data_relationship.go +++ b/model_license_account_license_data_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_license_account_license_data_response.go b/model_license_account_license_data_response.go index 038c3c17c7..b85cc82f5e 100644 --- a/model_license_account_license_data_response.go +++ b/model_license_account_license_data_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_license_customer_op.go b/model_license_customer_op.go index 9c1863f515..ef569c27f1 100644 --- a/model_license_customer_op.go +++ b/model_license_customer_op.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -101,6 +101,11 @@ func (o *LicenseCustomerOp) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "license.CustomerOp" of the ClassId field. +func (o *LicenseCustomerOp) GetDefaultClassId() interface{} { + return "license.CustomerOp" +} + // GetObjectType returns the ObjectType field value func (o *LicenseCustomerOp) GetObjectType() string { if o == nil { @@ -125,6 +130,11 @@ func (o *LicenseCustomerOp) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "license.CustomerOp" of the ObjectType field. +func (o *LicenseCustomerOp) GetDefaultObjectType() interface{} { + return "license.CustomerOp" +} + // GetActiveAdmin returns the ActiveAdmin field value if set, zero value otherwise. func (o *LicenseCustomerOp) GetActiveAdmin() bool { if o == nil || IsNil(o.ActiveAdmin) { @@ -506,7 +516,13 @@ func (o LicenseCustomerOp) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.ActiveAdmin) { toSerialize["ActiveAdmin"] = o.ActiveAdmin @@ -558,6 +574,13 @@ func (o *LicenseCustomerOp) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -567,11 +590,23 @@ func (o *LicenseCustomerOp) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type LicenseCustomerOpWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_license_customer_op_list.go b/model_license_customer_op_list.go index b4bee2c674..a84ee822a7 100644 --- a/model_license_customer_op_list.go +++ b/model_license_customer_op_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *LicenseCustomerOpList) GetResultsOk() ([]LicenseCustomerOp, bool) { // HasResults returns a boolean if a field has been set. func (o *LicenseCustomerOpList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *LicenseCustomerOpList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *LicenseCustomerOpList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type LicenseCustomerOpListWithoutEmbeddedStruct struct { // The total number of 'license.CustomerOp' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_license_customer_op_relationship.go b/model_license_customer_op_relationship.go index 20daf415d4..92783ecba5 100644 --- a/model_license_customer_op_relationship.go +++ b/model_license_customer_op_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_license_customer_op_response.go b/model_license_customer_op_response.go index 6d098256c5..1e16fcd5d6 100644 --- a/model_license_customer_op_response.go +++ b/model_license_customer_op_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_license_iks_customer_op.go b/model_license_iks_customer_op.go index 13c051381a..f9a54ded26 100644 --- a/model_license_iks_customer_op.go +++ b/model_license_iks_customer_op.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -89,6 +89,11 @@ func (o *LicenseIksCustomerOp) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "license.IksCustomerOp" of the ClassId field. +func (o *LicenseIksCustomerOp) GetDefaultClassId() interface{} { + return "license.IksCustomerOp" +} + // GetObjectType returns the ObjectType field value func (o *LicenseIksCustomerOp) GetObjectType() string { if o == nil { @@ -113,6 +118,11 @@ func (o *LicenseIksCustomerOp) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "license.IksCustomerOp" of the ObjectType field. +func (o *LicenseIksCustomerOp) GetDefaultObjectType() interface{} { + return "license.IksCustomerOp" +} + // GetActiveAdmin returns the ActiveAdmin field value if set, zero value otherwise. func (o *LicenseIksCustomerOp) GetActiveAdmin() bool { if o == nil || IsNil(o.ActiveAdmin) { @@ -302,7 +312,13 @@ func (o LicenseIksCustomerOp) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.ActiveAdmin) { toSerialize["ActiveAdmin"] = o.ActiveAdmin @@ -336,6 +352,13 @@ func (o *LicenseIksCustomerOp) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -345,11 +368,23 @@ func (o *LicenseIksCustomerOp) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type LicenseIksCustomerOpWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_license_iks_customer_op_list.go b/model_license_iks_customer_op_list.go index 49ef40168c..e7ff985f3a 100644 --- a/model_license_iks_customer_op_list.go +++ b/model_license_iks_customer_op_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *LicenseIksCustomerOpList) GetResultsOk() ([]LicenseIksCustomerOp, bool) // HasResults returns a boolean if a field has been set. func (o *LicenseIksCustomerOpList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *LicenseIksCustomerOpList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *LicenseIksCustomerOpList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type LicenseIksCustomerOpListWithoutEmbeddedStruct struct { // The total number of 'license.IksCustomerOp' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_license_iks_customer_op_relationship.go b/model_license_iks_customer_op_relationship.go index b69d24bd36..b1529fe721 100644 --- a/model_license_iks_customer_op_relationship.go +++ b/model_license_iks_customer_op_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_license_iks_customer_op_response.go b/model_license_iks_customer_op_response.go index b93584aa0d..700c89274f 100644 --- a/model_license_iks_customer_op_response.go +++ b/model_license_iks_customer_op_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_license_iks_license_count.go b/model_license_iks_license_count.go index 3308765ec0..3a87c6b96f 100644 --- a/model_license_iks_license_count.go +++ b/model_license_iks_license_count.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -83,6 +83,11 @@ func (o *LicenseIksLicenseCount) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "license.IksLicenseCount" of the ClassId field. +func (o *LicenseIksLicenseCount) GetDefaultClassId() interface{} { + return "license.IksLicenseCount" +} + // GetObjectType returns the ObjectType field value func (o *LicenseIksLicenseCount) GetObjectType() string { if o == nil { @@ -107,6 +112,11 @@ func (o *LicenseIksLicenseCount) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "license.IksLicenseCount" of the ObjectType field. +func (o *LicenseIksLicenseCount) GetDefaultObjectType() interface{} { + return "license.IksLicenseCount" +} + // GetAdvantageCount returns the AdvantageCount field value if set, zero value otherwise. func (o *LicenseIksLicenseCount) GetAdvantageCount() int64 { if o == nil || IsNil(o.AdvantageCount) { @@ -200,7 +210,13 @@ func (o LicenseIksLicenseCount) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.AdvantageCount) { toSerialize["AdvantageCount"] = o.AdvantageCount @@ -225,6 +241,13 @@ func (o *LicenseIksLicenseCount) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -234,11 +257,23 @@ func (o *LicenseIksLicenseCount) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type LicenseIksLicenseCountWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_license_iks_license_count_list.go b/model_license_iks_license_count_list.go index 1dca7426a0..9d0be10033 100644 --- a/model_license_iks_license_count_list.go +++ b/model_license_iks_license_count_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *LicenseIksLicenseCountList) GetResultsOk() ([]LicenseIksLicenseCount, b // HasResults returns a boolean if a field has been set. func (o *LicenseIksLicenseCountList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *LicenseIksLicenseCountList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *LicenseIksLicenseCountList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type LicenseIksLicenseCountListWithoutEmbeddedStruct struct { // The total number of 'license.IksLicenseCount' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_license_iks_license_count_relationship.go b/model_license_iks_license_count_relationship.go index 85bd0a0a97..e719d4eaeb 100644 --- a/model_license_iks_license_count_relationship.go +++ b/model_license_iks_license_count_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_license_iks_license_count_response.go b/model_license_iks_license_count_response.go index 1d33b60806..952803dfe1 100644 --- a/model_license_iks_license_count_response.go +++ b/model_license_iks_license_count_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_license_inc_customer_op.go b/model_license_inc_customer_op.go index 9c16c14364..0e03d317f1 100644 --- a/model_license_inc_customer_op.go +++ b/model_license_inc_customer_op.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -91,6 +91,11 @@ func (o *LicenseIncCustomerOp) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "license.IncCustomerOp" of the ClassId field. +func (o *LicenseIncCustomerOp) GetDefaultClassId() interface{} { + return "license.IncCustomerOp" +} + // GetObjectType returns the ObjectType field value func (o *LicenseIncCustomerOp) GetObjectType() string { if o == nil { @@ -115,6 +120,11 @@ func (o *LicenseIncCustomerOp) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "license.IncCustomerOp" of the ObjectType field. +func (o *LicenseIncCustomerOp) GetDefaultObjectType() interface{} { + return "license.IncCustomerOp" +} + // GetActiveAdmin returns the ActiveAdmin field value if set, zero value otherwise. func (o *LicenseIncCustomerOp) GetActiveAdmin() bool { if o == nil || IsNil(o.ActiveAdmin) { @@ -336,7 +346,13 @@ func (o LicenseIncCustomerOp) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.ActiveAdmin) { toSerialize["ActiveAdmin"] = o.ActiveAdmin @@ -373,6 +389,13 @@ func (o *LicenseIncCustomerOp) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -382,11 +405,23 @@ func (o *LicenseIncCustomerOp) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type LicenseIncCustomerOpWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_license_inc_customer_op_list.go b/model_license_inc_customer_op_list.go index 646cfbaf87..5ba50242b5 100644 --- a/model_license_inc_customer_op_list.go +++ b/model_license_inc_customer_op_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *LicenseIncCustomerOpList) GetResultsOk() ([]LicenseIncCustomerOp, bool) // HasResults returns a boolean if a field has been set. func (o *LicenseIncCustomerOpList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *LicenseIncCustomerOpList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *LicenseIncCustomerOpList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type LicenseIncCustomerOpListWithoutEmbeddedStruct struct { // The total number of 'license.IncCustomerOp' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_license_inc_customer_op_relationship.go b/model_license_inc_customer_op_relationship.go index 97e2dd67e4..441f8dfec2 100644 --- a/model_license_inc_customer_op_relationship.go +++ b/model_license_inc_customer_op_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_license_inc_customer_op_response.go b/model_license_inc_customer_op_response.go index 179e3575ff..810c2e1912 100644 --- a/model_license_inc_customer_op_response.go +++ b/model_license_inc_customer_op_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_license_inc_license_count.go b/model_license_inc_license_count.go index 1e2d746e88..4e4ca67034 100644 --- a/model_license_inc_license_count.go +++ b/model_license_inc_license_count.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -99,6 +99,11 @@ func (o *LicenseIncLicenseCount) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "license.IncLicenseCount" of the ClassId field. +func (o *LicenseIncLicenseCount) GetDefaultClassId() interface{} { + return "license.IncLicenseCount" +} + // GetObjectType returns the ObjectType field value func (o *LicenseIncLicenseCount) GetObjectType() string { if o == nil { @@ -123,6 +128,11 @@ func (o *LicenseIncLicenseCount) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "license.IncLicenseCount" of the ObjectType field. +func (o *LicenseIncLicenseCount) GetDefaultObjectType() interface{} { + return "license.IncLicenseCount" +} + // GetPremier100GfxCount returns the Premier100GfxCount field value if set, zero value otherwise. func (o *LicenseIncLicenseCount) GetPremier100GfxCount() int64 { if o == nil || IsNil(o.Premier100GfxCount) { @@ -472,7 +482,13 @@ func (o LicenseIncLicenseCount) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Premier100GfxCount) { toSerialize["Premier100GfxCount"] = o.Premier100GfxCount @@ -521,6 +537,13 @@ func (o *LicenseIncLicenseCount) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -530,11 +553,23 @@ func (o *LicenseIncLicenseCount) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type LicenseIncLicenseCountWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_license_inc_license_count_list.go b/model_license_inc_license_count_list.go index 3177cd16cf..ef68f6b3cc 100644 --- a/model_license_inc_license_count_list.go +++ b/model_license_inc_license_count_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *LicenseIncLicenseCountList) GetResultsOk() ([]LicenseIncLicenseCount, b // HasResults returns a boolean if a field has been set. func (o *LicenseIncLicenseCountList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *LicenseIncLicenseCountList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *LicenseIncLicenseCountList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type LicenseIncLicenseCountListWithoutEmbeddedStruct struct { // The total number of 'license.IncLicenseCount' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_license_inc_license_count_relationship.go b/model_license_inc_license_count_relationship.go index 1425ad998d..8edaae218d 100644 --- a/model_license_inc_license_count_relationship.go +++ b/model_license_inc_license_count_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_license_inc_license_count_response.go b/model_license_inc_license_count_response.go index b85860dfae..8dfc91bd44 100644 --- a/model_license_inc_license_count_response.go +++ b/model_license_inc_license_count_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_license_iwo_customer_op.go b/model_license_iwo_customer_op.go index 1c2b65089e..71e39bd3dc 100644 --- a/model_license_iwo_customer_op.go +++ b/model_license_iwo_customer_op.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -95,6 +95,11 @@ func (o *LicenseIwoCustomerOp) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "license.IwoCustomerOp" of the ClassId field. +func (o *LicenseIwoCustomerOp) GetDefaultClassId() interface{} { + return "license.IwoCustomerOp" +} + // GetObjectType returns the ObjectType field value func (o *LicenseIwoCustomerOp) GetObjectType() string { if o == nil { @@ -119,6 +124,11 @@ func (o *LicenseIwoCustomerOp) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "license.IwoCustomerOp" of the ObjectType field. +func (o *LicenseIwoCustomerOp) GetDefaultObjectType() interface{} { + return "license.IwoCustomerOp" +} + // GetActiveAdmin returns the ActiveAdmin field value if set, zero value otherwise. func (o *LicenseIwoCustomerOp) GetActiveAdmin() bool { if o == nil || IsNil(o.ActiveAdmin) { @@ -340,7 +350,13 @@ func (o LicenseIwoCustomerOp) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.ActiveAdmin) { toSerialize["ActiveAdmin"] = o.ActiveAdmin @@ -377,6 +393,13 @@ func (o *LicenseIwoCustomerOp) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -386,11 +409,23 @@ func (o *LicenseIwoCustomerOp) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type LicenseIwoCustomerOpWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_license_iwo_customer_op_list.go b/model_license_iwo_customer_op_list.go index 685f35036c..730be95905 100644 --- a/model_license_iwo_customer_op_list.go +++ b/model_license_iwo_customer_op_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *LicenseIwoCustomerOpList) GetResultsOk() ([]LicenseIwoCustomerOp, bool) // HasResults returns a boolean if a field has been set. func (o *LicenseIwoCustomerOpList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *LicenseIwoCustomerOpList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *LicenseIwoCustomerOpList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type LicenseIwoCustomerOpListWithoutEmbeddedStruct struct { // The total number of 'license.IwoCustomerOp' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_license_iwo_customer_op_relationship.go b/model_license_iwo_customer_op_relationship.go index a18fe61ef3..64fe4de08e 100644 --- a/model_license_iwo_customer_op_relationship.go +++ b/model_license_iwo_customer_op_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_license_iwo_customer_op_response.go b/model_license_iwo_customer_op_response.go index 3d827adafd..8d06cde995 100644 --- a/model_license_iwo_customer_op_response.go +++ b/model_license_iwo_customer_op_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_license_iwo_license_count.go b/model_license_iwo_license_count.go index e2752803eb..a227c943dc 100644 --- a/model_license_iwo_license_count.go +++ b/model_license_iwo_license_count.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -83,6 +83,11 @@ func (o *LicenseIwoLicenseCount) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "license.IwoLicenseCount" of the ClassId field. +func (o *LicenseIwoLicenseCount) GetDefaultClassId() interface{} { + return "license.IwoLicenseCount" +} + // GetObjectType returns the ObjectType field value func (o *LicenseIwoLicenseCount) GetObjectType() string { if o == nil { @@ -107,6 +112,11 @@ func (o *LicenseIwoLicenseCount) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "license.IwoLicenseCount" of the ObjectType field. +func (o *LicenseIwoLicenseCount) GetDefaultObjectType() interface{} { + return "license.IwoLicenseCount" +} + // GetVmLicenseCount returns the VmLicenseCount field value if set, zero value otherwise. func (o *LicenseIwoLicenseCount) GetVmLicenseCount() int64 { if o == nil || IsNil(o.VmLicenseCount) { @@ -200,7 +210,13 @@ func (o LicenseIwoLicenseCount) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.VmLicenseCount) { toSerialize["VmLicenseCount"] = o.VmLicenseCount @@ -225,6 +241,13 @@ func (o *LicenseIwoLicenseCount) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -234,11 +257,23 @@ func (o *LicenseIwoLicenseCount) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type LicenseIwoLicenseCountWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_license_iwo_license_count_list.go b/model_license_iwo_license_count_list.go index fc18ff6c36..8bdecb295d 100644 --- a/model_license_iwo_license_count_list.go +++ b/model_license_iwo_license_count_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *LicenseIwoLicenseCountList) GetResultsOk() ([]LicenseIwoLicenseCount, b // HasResults returns a boolean if a field has been set. func (o *LicenseIwoLicenseCountList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *LicenseIwoLicenseCountList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *LicenseIwoLicenseCountList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type LicenseIwoLicenseCountListWithoutEmbeddedStruct struct { // The total number of 'license.IwoLicenseCount' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_license_iwo_license_count_relationship.go b/model_license_iwo_license_count_relationship.go index db9d608c40..9ddcdb8368 100644 --- a/model_license_iwo_license_count_relationship.go +++ b/model_license_iwo_license_count_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_license_iwo_license_count_response.go b/model_license_iwo_license_count_response.go index d1daa5e2e4..662a50cf26 100644 --- a/model_license_iwo_license_count_response.go +++ b/model_license_iwo_license_count_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_license_license_info.go b/model_license_license_info.go index ff62612c48..188398e689 100644 --- a/model_license_license_info.go +++ b/model_license_license_info.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -117,6 +117,11 @@ func (o *LicenseLicenseInfo) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "license.LicenseInfo" of the ClassId field. +func (o *LicenseLicenseInfo) GetDefaultClassId() interface{} { + return "license.LicenseInfo" +} + // GetObjectType returns the ObjectType field value func (o *LicenseLicenseInfo) GetObjectType() string { if o == nil { @@ -141,6 +146,11 @@ func (o *LicenseLicenseInfo) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "license.LicenseInfo" of the ObjectType field. +func (o *LicenseLicenseInfo) GetDefaultObjectType() interface{} { + return "license.LicenseInfo" +} + // GetActiveAdmin returns the ActiveAdmin field value if set, zero value otherwise. func (o *LicenseLicenseInfo) GetActiveAdmin() bool { if o == nil || IsNil(o.ActiveAdmin) { @@ -674,7 +684,7 @@ func (o *LicenseLicenseInfo) GetSubstitutedLicenseOk() ([]LicenseSubstituteLicen // HasSubstitutedLicense returns a boolean if a field has been set. func (o *LicenseLicenseInfo) HasSubstitutedLicense() bool { - if o != nil && IsNil(o.SubstitutedLicense) { + if o != nil && !IsNil(o.SubstitutedLicense) { return true } @@ -779,7 +789,13 @@ func (o LicenseLicenseInfo) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.ActiveAdmin) { toSerialize["ActiveAdmin"] = o.ActiveAdmin @@ -855,6 +871,13 @@ func (o *LicenseLicenseInfo) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -864,11 +887,23 @@ func (o *LicenseLicenseInfo) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type LicenseLicenseInfoWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_license_license_info_list.go b/model_license_license_info_list.go index b7b75e5807..c971dd0384 100644 --- a/model_license_license_info_list.go +++ b/model_license_license_info_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *LicenseLicenseInfoList) GetResultsOk() ([]LicenseLicenseInfo, bool) { // HasResults returns a boolean if a field has been set. func (o *LicenseLicenseInfoList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *LicenseLicenseInfoList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *LicenseLicenseInfoList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type LicenseLicenseInfoListWithoutEmbeddedStruct struct { // The total number of 'license.LicenseInfo' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_license_license_info_relationship.go b/model_license_license_info_relationship.go index 2ddfc5de4f..7c4bbebb9c 100644 --- a/model_license_license_info_relationship.go +++ b/model_license_license_info_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_license_license_info_response.go b/model_license_license_info_response.go index 61bee19697..18a67622d3 100644 --- a/model_license_license_info_response.go +++ b/model_license_license_info_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_license_license_info_view.go b/model_license_license_info_view.go index 0d506bd643..808fd62340 100644 --- a/model_license_license_info_view.go +++ b/model_license_license_info_view.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -81,6 +81,11 @@ func (o *LicenseLicenseInfoView) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "license.LicenseInfoView" of the ClassId field. +func (o *LicenseLicenseInfoView) GetDefaultClassId() interface{} { + return "license.LicenseInfoView" +} + // GetObjectType returns the ObjectType field value func (o *LicenseLicenseInfoView) GetObjectType() string { if o == nil { @@ -105,6 +110,11 @@ func (o *LicenseLicenseInfoView) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "license.LicenseInfoView" of the ObjectType field. +func (o *LicenseLicenseInfoView) GetDefaultObjectType() interface{} { + return "license.LicenseInfoView" +} + // GetAccountLicenseData returns the AccountLicenseData field value if set, zero value otherwise (both if not set or set to explicit null). func (o *LicenseLicenseInfoView) GetAccountLicenseData() LicenseAccountLicenseDataRelationship { if o == nil || IsNil(o.AccountLicenseData.Get()) { @@ -166,7 +176,13 @@ func (o LicenseLicenseInfoView) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.AccountLicenseData.IsSet() { toSerialize["AccountLicenseData"] = o.AccountLicenseData.Get() @@ -188,6 +204,13 @@ func (o *LicenseLicenseInfoView) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -197,11 +220,23 @@ func (o *LicenseLicenseInfoView) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type LicenseLicenseInfoViewWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_license_license_info_view_list.go b/model_license_license_info_view_list.go index a5d9a75a17..ee8de7d101 100644 --- a/model_license_license_info_view_list.go +++ b/model_license_license_info_view_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *LicenseLicenseInfoViewList) GetResultsOk() ([]LicenseLicenseInfoView, b // HasResults returns a boolean if a field has been set. func (o *LicenseLicenseInfoViewList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *LicenseLicenseInfoViewList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *LicenseLicenseInfoViewList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type LicenseLicenseInfoViewListWithoutEmbeddedStruct struct { // The total number of 'license.LicenseInfoView' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_license_license_info_view_relationship.go b/model_license_license_info_view_relationship.go index 96a66bea39..7e180a2b66 100644 --- a/model_license_license_info_view_relationship.go +++ b/model_license_license_info_view_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_license_license_info_view_response.go b/model_license_license_info_view_response.go index 39745b2f9d..2474190d6a 100644 --- a/model_license_license_info_view_response.go +++ b/model_license_license_info_view_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_license_license_registration_status.go b/model_license_license_registration_status.go index 4508667b97..7f69a6910b 100644 --- a/model_license_license_registration_status.go +++ b/model_license_license_registration_status.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -93,6 +93,11 @@ func (o *LicenseLicenseRegistrationStatus) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "license.LicenseRegistrationStatus" of the ClassId field. +func (o *LicenseLicenseRegistrationStatus) GetDefaultClassId() interface{} { + return "license.LicenseRegistrationStatus" +} + // GetObjectType returns the ObjectType field value func (o *LicenseLicenseRegistrationStatus) GetObjectType() string { if o == nil { @@ -117,6 +122,11 @@ func (o *LicenseLicenseRegistrationStatus) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "license.LicenseRegistrationStatus" of the ObjectType field. +func (o *LicenseLicenseRegistrationStatus) GetDefaultObjectType() interface{} { + return "license.LicenseRegistrationStatus" +} + // GetAccountCreationState returns the AccountCreationState field value if set, zero value otherwise. func (o *LicenseLicenseRegistrationStatus) GetAccountCreationState() bool { if o == nil || IsNil(o.AccountCreationState) { @@ -306,7 +316,13 @@ func (o LicenseLicenseRegistrationStatus) ToMap() (map[string]interface{}, error if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.AccountCreationState) { toSerialize["AccountCreationState"] = o.AccountCreationState @@ -340,6 +356,13 @@ func (o *LicenseLicenseRegistrationStatus) UnmarshalJSON(data []byte) (err error "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -349,11 +372,23 @@ func (o *LicenseLicenseRegistrationStatus) UnmarshalJSON(data []byte) (err error } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type LicenseLicenseRegistrationStatusWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_license_license_registration_status_list.go b/model_license_license_registration_status_list.go index 9977750e35..5c0d0ca258 100644 --- a/model_license_license_registration_status_list.go +++ b/model_license_license_registration_status_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *LicenseLicenseRegistrationStatusList) GetResultsOk() ([]LicenseLicenseR // HasResults returns a boolean if a field has been set. func (o *LicenseLicenseRegistrationStatusList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *LicenseLicenseRegistrationStatusList) UnmarshalJSON(data []byte) (err e "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *LicenseLicenseRegistrationStatusList) UnmarshalJSON(data []byte) (err e } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type LicenseLicenseRegistrationStatusListWithoutEmbeddedStruct struct { // The total number of 'license.LicenseRegistrationStatus' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_license_license_registration_status_relationship.go b/model_license_license_registration_status_relationship.go index f2fe383b32..acbfecfb67 100644 --- a/model_license_license_registration_status_relationship.go +++ b/model_license_license_registration_status_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_license_license_registration_status_response.go b/model_license_license_registration_status_response.go index 6a3133024c..b41f9ddb34 100644 --- a/model_license_license_registration_status_response.go +++ b/model_license_license_registration_status_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_license_license_reservation_op.go b/model_license_license_reservation_op.go index 507bd151c5..dd24e3cb26 100644 --- a/model_license_license_reservation_op.go +++ b/model_license_license_reservation_op.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -95,6 +95,11 @@ func (o *LicenseLicenseReservationOp) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "license.LicenseReservationOp" of the ClassId field. +func (o *LicenseLicenseReservationOp) GetDefaultClassId() interface{} { + return "license.LicenseReservationOp" +} + // GetObjectType returns the ObjectType field value func (o *LicenseLicenseReservationOp) GetObjectType() string { if o == nil { @@ -119,6 +124,11 @@ func (o *LicenseLicenseReservationOp) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "license.LicenseReservationOp" of the ObjectType field. +func (o *LicenseLicenseReservationOp) GetDefaultObjectType() interface{} { + return "license.LicenseReservationOp" +} + // GetAuthCode returns the AuthCode field value if set, zero value otherwise. func (o *LicenseLicenseReservationOp) GetAuthCode() string { if o == nil || IsNil(o.AuthCode) { @@ -404,7 +414,13 @@ func (o LicenseLicenseReservationOp) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.AuthCode) { toSerialize["AuthCode"] = o.AuthCode @@ -447,6 +463,13 @@ func (o *LicenseLicenseReservationOp) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -456,11 +479,23 @@ func (o *LicenseLicenseReservationOp) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type LicenseLicenseReservationOpWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_license_license_reservation_op_list.go b/model_license_license_reservation_op_list.go index 8b2b4df217..ec6920c57f 100644 --- a/model_license_license_reservation_op_list.go +++ b/model_license_license_reservation_op_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *LicenseLicenseReservationOpList) GetResultsOk() ([]LicenseLicenseReserv // HasResults returns a boolean if a field has been set. func (o *LicenseLicenseReservationOpList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *LicenseLicenseReservationOpList) UnmarshalJSON(data []byte) (err error) "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *LicenseLicenseReservationOpList) UnmarshalJSON(data []byte) (err error) } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type LicenseLicenseReservationOpListWithoutEmbeddedStruct struct { // The total number of 'license.LicenseReservationOp' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_license_license_reservation_op_response.go b/model_license_license_reservation_op_response.go index dadeb52582..ba7e6d0675 100644 --- a/model_license_license_reservation_op_response.go +++ b/model_license_license_reservation_op_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_license_smartlicense_token.go b/model_license_smartlicense_token.go index e8675de0df..b985e4de9e 100644 --- a/model_license_smartlicense_token.go +++ b/model_license_smartlicense_token.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -83,6 +83,11 @@ func (o *LicenseSmartlicenseToken) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "license.SmartlicenseToken" of the ClassId field. +func (o *LicenseSmartlicenseToken) GetDefaultClassId() interface{} { + return "license.SmartlicenseToken" +} + // GetObjectType returns the ObjectType field value func (o *LicenseSmartlicenseToken) GetObjectType() string { if o == nil { @@ -107,6 +112,11 @@ func (o *LicenseSmartlicenseToken) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "license.SmartlicenseToken" of the ObjectType field. +func (o *LicenseSmartlicenseToken) GetDefaultObjectType() interface{} { + return "license.SmartlicenseToken" +} + // GetToken returns the Token field value if set, zero value otherwise. func (o *LicenseSmartlicenseToken) GetToken() string { if o == nil || IsNil(o.Token) { @@ -200,7 +210,13 @@ func (o LicenseSmartlicenseToken) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Token) { toSerialize["Token"] = o.Token @@ -225,6 +241,13 @@ func (o *LicenseSmartlicenseToken) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -234,11 +257,23 @@ func (o *LicenseSmartlicenseToken) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type LicenseSmartlicenseTokenWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_license_smartlicense_token_list.go b/model_license_smartlicense_token_list.go index d0f5235f05..20c309953c 100644 --- a/model_license_smartlicense_token_list.go +++ b/model_license_smartlicense_token_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *LicenseSmartlicenseTokenList) GetResultsOk() ([]LicenseSmartlicenseToke // HasResults returns a boolean if a field has been set. func (o *LicenseSmartlicenseTokenList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *LicenseSmartlicenseTokenList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *LicenseSmartlicenseTokenList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type LicenseSmartlicenseTokenListWithoutEmbeddedStruct struct { // The total number of 'license.SmartlicenseToken' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_license_smartlicense_token_relationship.go b/model_license_smartlicense_token_relationship.go index abe64fc78c..25665916f4 100644 --- a/model_license_smartlicense_token_relationship.go +++ b/model_license_smartlicense_token_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_license_smartlicense_token_response.go b/model_license_smartlicense_token_response.go index 64dc54455b..0d896d3332 100644 --- a/model_license_smartlicense_token_response.go +++ b/model_license_smartlicense_token_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_license_substitute_license.go b/model_license_substitute_license.go index c95648a74f..98e53aa6e2 100644 --- a/model_license_substitute_license.go +++ b/model_license_substitute_license.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -86,6 +86,11 @@ func (o *LicenseSubstituteLicense) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "license.SubstituteLicense" of the ClassId field. +func (o *LicenseSubstituteLicense) GetDefaultClassId() interface{} { + return "license.SubstituteLicense" +} + // GetObjectType returns the ObjectType field value func (o *LicenseSubstituteLicense) GetObjectType() string { if o == nil { @@ -110,6 +115,11 @@ func (o *LicenseSubstituteLicense) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "license.SubstituteLicense" of the ObjectType field. +func (o *LicenseSubstituteLicense) GetDefaultObjectType() interface{} { + return "license.SubstituteLicense" +} + // GetSubstitutedLicense returns the SubstitutedLicense field value if set, zero value otherwise. func (o *LicenseSubstituteLicense) GetSubstitutedLicense() string { if o == nil || IsNil(o.SubstitutedLicense) { @@ -224,7 +234,13 @@ func (o LicenseSubstituteLicense) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.SubstitutedLicense) { toSerialize["SubstitutedLicense"] = o.SubstitutedLicense @@ -252,6 +268,13 @@ func (o *LicenseSubstituteLicense) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -261,11 +284,23 @@ func (o *LicenseSubstituteLicense) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type LicenseSubstituteLicenseWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_ls_service_profile.go b/model_ls_service_profile.go index 028fe28d86..c4582366ec 100644 --- a/model_ls_service_profile.go +++ b/model_ls_service_profile.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -94,6 +94,11 @@ func (o *LsServiceProfile) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "ls.ServiceProfile" of the ClassId field. +func (o *LsServiceProfile) GetDefaultClassId() interface{} { + return "ls.ServiceProfile" +} + // GetObjectType returns the ObjectType field value func (o *LsServiceProfile) GetObjectType() string { if o == nil { @@ -118,6 +123,11 @@ func (o *LsServiceProfile) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "ls.ServiceProfile" of the ObjectType field. +func (o *LsServiceProfile) GetDefaultObjectType() interface{} { + return "ls.ServiceProfile" +} + // GetAssignState returns the AssignState field value if set, zero value otherwise. func (o *LsServiceProfile) GetAssignState() string { if o == nil || IsNil(o.AssignState) { @@ -414,7 +424,13 @@ func (o LsServiceProfile) ToMap() (map[string]interface{}, error) { if errInventoryBase != nil { return map[string]interface{}{}, errInventoryBase } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.AssignState) { toSerialize["AssignState"] = o.AssignState @@ -457,6 +473,13 @@ func (o *LsServiceProfile) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -466,11 +489,23 @@ func (o *LsServiceProfile) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type LsServiceProfileWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_ls_service_profile_list.go b/model_ls_service_profile_list.go index 2905d62772..8d0694b42a 100644 --- a/model_ls_service_profile_list.go +++ b/model_ls_service_profile_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *LsServiceProfileList) GetResultsOk() ([]LsServiceProfile, bool) { // HasResults returns a boolean if a field has been set. func (o *LsServiceProfileList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *LsServiceProfileList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *LsServiceProfileList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type LsServiceProfileListWithoutEmbeddedStruct struct { // The total number of 'ls.ServiceProfile' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_ls_service_profile_response.go b/model_ls_service_profile_response.go index eaed5ec54e..4acb3464a1 100644 --- a/model_ls_service_profile_response.go +++ b/model_ls_service_profile_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_macpool_block.go b/model_macpool_block.go index 25fdbbd838..4203d447c1 100644 --- a/model_macpool_block.go +++ b/model_macpool_block.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -84,6 +84,11 @@ func (o *MacpoolBlock) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "macpool.Block" of the ClassId field. +func (o *MacpoolBlock) GetDefaultClassId() interface{} { + return "macpool.Block" +} + // GetObjectType returns the ObjectType field value func (o *MacpoolBlock) GetObjectType() string { if o == nil { @@ -108,6 +113,11 @@ func (o *MacpoolBlock) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "macpool.Block" of the ObjectType field. +func (o *MacpoolBlock) GetDefaultObjectType() interface{} { + return "macpool.Block" +} + // GetFrom returns the From field value if set, zero value otherwise. func (o *MacpoolBlock) GetFrom() string { if o == nil || IsNil(o.From) { @@ -190,7 +200,13 @@ func (o MacpoolBlock) ToMap() (map[string]interface{}, error) { if errPoolAbstractBlockType != nil { return map[string]interface{}{}, errPoolAbstractBlockType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.From) { toSerialize["From"] = o.From @@ -215,6 +231,13 @@ func (o *MacpoolBlock) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -224,11 +247,23 @@ func (o *MacpoolBlock) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type MacpoolBlockWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_macpool_id_block.go b/model_macpool_id_block.go index 043cddc0f1..e8589fc03c 100644 --- a/model_macpool_id_block.go +++ b/model_macpool_id_block.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -84,6 +84,11 @@ func (o *MacpoolIdBlock) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "macpool.IdBlock" of the ClassId field. +func (o *MacpoolIdBlock) GetDefaultClassId() interface{} { + return "macpool.IdBlock" +} + // GetObjectType returns the ObjectType field value func (o *MacpoolIdBlock) GetObjectType() string { if o == nil { @@ -108,6 +113,11 @@ func (o *MacpoolIdBlock) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "macpool.IdBlock" of the ObjectType field. +func (o *MacpoolIdBlock) GetDefaultObjectType() interface{} { + return "macpool.IdBlock" +} + // GetMacBlock returns the MacBlock field value if set, zero value otherwise. func (o *MacpoolIdBlock) GetMacBlock() MacpoolBlock { if o == nil || IsNil(o.MacBlock) { @@ -204,7 +214,7 @@ func (o *MacpoolIdBlock) GetReservationsOk() ([]MacpoolReservationRelationship, // HasReservations returns a boolean if a field has been set. func (o *MacpoolIdBlock) HasReservations() bool { - if o != nil && IsNil(o.Reservations) { + if o != nil && !IsNil(o.Reservations) { return true } @@ -234,7 +244,13 @@ func (o MacpoolIdBlock) ToMap() (map[string]interface{}, error) { if errPoolAbstractBlock != nil { return map[string]interface{}{}, errPoolAbstractBlock } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.MacBlock) { toSerialize["MacBlock"] = o.MacBlock @@ -262,6 +278,13 @@ func (o *MacpoolIdBlock) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -271,11 +294,23 @@ func (o *MacpoolIdBlock) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type MacpoolIdBlockWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_macpool_id_block_list.go b/model_macpool_id_block_list.go index bd66d48b65..bb13eab0e1 100644 --- a/model_macpool_id_block_list.go +++ b/model_macpool_id_block_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *MacpoolIdBlockList) GetResultsOk() ([]MacpoolIdBlock, bool) { // HasResults returns a boolean if a field has been set. func (o *MacpoolIdBlockList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *MacpoolIdBlockList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *MacpoolIdBlockList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type MacpoolIdBlockListWithoutEmbeddedStruct struct { // The total number of 'macpool.IdBlock' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_macpool_id_block_relationship.go b/model_macpool_id_block_relationship.go index d9865ea301..af4c7c16eb 100644 --- a/model_macpool_id_block_relationship.go +++ b/model_macpool_id_block_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_macpool_id_block_response.go b/model_macpool_id_block_response.go index d9397067e1..d3293d0fb3 100644 --- a/model_macpool_id_block_response.go +++ b/model_macpool_id_block_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_macpool_lease.go b/model_macpool_lease.go index 2f46dd3d6b..53df3567fd 100644 --- a/model_macpool_lease.go +++ b/model_macpool_lease.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -91,6 +91,11 @@ func (o *MacpoolLease) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "macpool.Lease" of the ClassId field. +func (o *MacpoolLease) GetDefaultClassId() interface{} { + return "macpool.Lease" +} + // GetObjectType returns the ObjectType field value func (o *MacpoolLease) GetObjectType() string { if o == nil { @@ -115,6 +120,11 @@ func (o *MacpoolLease) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "macpool.Lease" of the ObjectType field. +func (o *MacpoolLease) GetDefaultObjectType() interface{} { + return "macpool.Lease" +} + // GetMacAddress returns the MacAddress field value if set, zero value otherwise. func (o *MacpoolLease) GetMacAddress() string { if o == nil || IsNil(o.MacAddress) { @@ -369,7 +379,13 @@ func (o MacpoolLease) ToMap() (map[string]interface{}, error) { if errPoolAbstractLease != nil { return map[string]interface{}{}, errPoolAbstractLease } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.MacAddress) { toSerialize["MacAddress"] = o.MacAddress @@ -406,6 +422,13 @@ func (o *MacpoolLease) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -415,11 +438,23 @@ func (o *MacpoolLease) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type MacpoolLeaseWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_macpool_lease_list.go b/model_macpool_lease_list.go index 4ef103d4a2..95dc43813a 100644 --- a/model_macpool_lease_list.go +++ b/model_macpool_lease_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *MacpoolLeaseList) GetResultsOk() ([]MacpoolLease, bool) { // HasResults returns a boolean if a field has been set. func (o *MacpoolLeaseList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *MacpoolLeaseList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *MacpoolLeaseList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type MacpoolLeaseListWithoutEmbeddedStruct struct { // The total number of 'macpool.Lease' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_macpool_lease_relationship.go b/model_macpool_lease_relationship.go index 234d12238a..560c285a7d 100644 --- a/model_macpool_lease_relationship.go +++ b/model_macpool_lease_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_macpool_lease_response.go b/model_macpool_lease_response.go index 8c9ea1642e..6b5b03db86 100644 --- a/model_macpool_lease_response.go +++ b/model_macpool_lease_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_macpool_member_of.go b/model_macpool_member_of.go index b2bda1cd23..c406a8d7d4 100644 --- a/model_macpool_member_of.go +++ b/model_macpool_member_of.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -84,6 +84,11 @@ func (o *MacpoolMemberOf) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "macpool.MemberOf" of the ClassId field. +func (o *MacpoolMemberOf) GetDefaultClassId() interface{} { + return "macpool.MemberOf" +} + // GetObjectType returns the ObjectType field value func (o *MacpoolMemberOf) GetObjectType() string { if o == nil { @@ -108,6 +113,11 @@ func (o *MacpoolMemberOf) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "macpool.MemberOf" of the ObjectType field. +func (o *MacpoolMemberOf) GetDefaultObjectType() interface{} { + return "macpool.MemberOf" +} + // GetIdBlockMoid returns the IdBlockMoid field value if set, zero value otherwise. func (o *MacpoolMemberOf) GetIdBlockMoid() string { if o == nil || IsNil(o.IdBlockMoid) { @@ -190,7 +200,13 @@ func (o MacpoolMemberOf) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.IdBlockMoid) { toSerialize["IdBlockMoid"] = o.IdBlockMoid @@ -215,6 +231,13 @@ func (o *MacpoolMemberOf) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -224,11 +247,23 @@ func (o *MacpoolMemberOf) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type MacpoolMemberOfWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_macpool_pool.go b/model_macpool_pool.go index 7ee7c44532..7df0ca9523 100644 --- a/model_macpool_pool.go +++ b/model_macpool_pool.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -88,6 +88,11 @@ func (o *MacpoolPool) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "macpool.Pool" of the ClassId field. +func (o *MacpoolPool) GetDefaultClassId() interface{} { + return "macpool.Pool" +} + // GetObjectType returns the ObjectType field value func (o *MacpoolPool) GetObjectType() string { if o == nil { @@ -112,6 +117,11 @@ func (o *MacpoolPool) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "macpool.Pool" of the ObjectType field. +func (o *MacpoolPool) GetDefaultObjectType() interface{} { + return "macpool.Pool" +} + // GetMacBlocks returns the MacBlocks field value if set, zero value otherwise (both if not set or set to explicit null). func (o *MacpoolPool) GetMacBlocks() []MacpoolBlock { if o == nil { @@ -133,7 +143,7 @@ func (o *MacpoolPool) GetMacBlocksOk() ([]MacpoolBlock, bool) { // HasMacBlocks returns a boolean if a field has been set. func (o *MacpoolPool) HasMacBlocks() bool { - if o != nil && IsNil(o.MacBlocks) { + if o != nil && !IsNil(o.MacBlocks) { return true } @@ -166,7 +176,7 @@ func (o *MacpoolPool) GetBlockHeadsOk() ([]MacpoolIdBlockRelationship, bool) { // HasBlockHeads returns a boolean if a field has been set. func (o *MacpoolPool) HasBlockHeads() bool { - if o != nil && IsNil(o.BlockHeads) { + if o != nil && !IsNil(o.BlockHeads) { return true } @@ -242,7 +252,7 @@ func (o *MacpoolPool) GetReservationsOk() ([]MacpoolReservationRelationship, boo // HasReservations returns a boolean if a field has been set. func (o *MacpoolPool) HasReservations() bool { - if o != nil && IsNil(o.Reservations) { + if o != nil && !IsNil(o.Reservations) { return true } @@ -272,7 +282,13 @@ func (o MacpoolPool) ToMap() (map[string]interface{}, error) { if errPoolAbstractPool != nil { return map[string]interface{}{}, errPoolAbstractPool } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.MacBlocks != nil { toSerialize["MacBlocks"] = o.MacBlocks @@ -303,6 +319,13 @@ func (o *MacpoolPool) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -312,11 +335,23 @@ func (o *MacpoolPool) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type MacpoolPoolWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_macpool_pool_list.go b/model_macpool_pool_list.go index f12f7ee5a8..71d3add12a 100644 --- a/model_macpool_pool_list.go +++ b/model_macpool_pool_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *MacpoolPoolList) GetResultsOk() ([]MacpoolPool, bool) { // HasResults returns a boolean if a field has been set. func (o *MacpoolPoolList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *MacpoolPoolList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *MacpoolPoolList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type MacpoolPoolListWithoutEmbeddedStruct struct { // The total number of 'macpool.Pool' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_macpool_pool_member.go b/model_macpool_pool_member.go index c44a5f3f71..5855b0e490 100644 --- a/model_macpool_pool_member.go +++ b/model_macpool_pool_member.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -93,6 +93,11 @@ func (o *MacpoolPoolMember) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "macpool.PoolMember" of the ClassId field. +func (o *MacpoolPoolMember) GetDefaultClassId() interface{} { + return "macpool.PoolMember" +} + // GetObjectType returns the ObjectType field value func (o *MacpoolPoolMember) GetObjectType() string { if o == nil { @@ -117,6 +122,11 @@ func (o *MacpoolPoolMember) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "macpool.PoolMember" of the ObjectType field. +func (o *MacpoolPoolMember) GetDefaultObjectType() interface{} { + return "macpool.PoolMember" +} + // GetMacAddress returns the MacAddress field value if set, zero value otherwise. func (o *MacpoolPoolMember) GetMacAddress() string { if o == nil || IsNil(o.MacAddress) { @@ -382,7 +392,13 @@ func (o MacpoolPoolMember) ToMap() (map[string]interface{}, error) { if errPoolAbstractIdPoolMember != nil { return map[string]interface{}{}, errPoolAbstractIdPoolMember } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.MacAddress) { toSerialize["MacAddress"] = o.MacAddress @@ -419,6 +435,13 @@ func (o *MacpoolPoolMember) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -428,11 +451,23 @@ func (o *MacpoolPoolMember) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type MacpoolPoolMemberWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_macpool_pool_member_list.go b/model_macpool_pool_member_list.go index b6a1629145..e9bda3783c 100644 --- a/model_macpool_pool_member_list.go +++ b/model_macpool_pool_member_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *MacpoolPoolMemberList) GetResultsOk() ([]MacpoolPoolMember, bool) { // HasResults returns a boolean if a field has been set. func (o *MacpoolPoolMemberList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *MacpoolPoolMemberList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *MacpoolPoolMemberList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type MacpoolPoolMemberListWithoutEmbeddedStruct struct { // The total number of 'macpool.PoolMember' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_macpool_pool_member_relationship.go b/model_macpool_pool_member_relationship.go index a2ccc85a70..d0f6df75da 100644 --- a/model_macpool_pool_member_relationship.go +++ b/model_macpool_pool_member_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_macpool_pool_member_response.go b/model_macpool_pool_member_response.go index 657f2331cc..e1360ef36b 100644 --- a/model_macpool_pool_member_response.go +++ b/model_macpool_pool_member_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_macpool_pool_relationship.go b/model_macpool_pool_relationship.go index 86b24d8990..336c055888 100644 --- a/model_macpool_pool_relationship.go +++ b/model_macpool_pool_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_macpool_pool_response.go b/model_macpool_pool_response.go index f3059b6fe1..449dab7681 100644 --- a/model_macpool_pool_response.go +++ b/model_macpool_pool_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_macpool_reservation.go b/model_macpool_reservation.go index af941635f6..b964a2b15a 100644 --- a/model_macpool_reservation.go +++ b/model_macpool_reservation.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -90,6 +90,11 @@ func (o *MacpoolReservation) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "macpool.Reservation" of the ClassId field. +func (o *MacpoolReservation) GetDefaultClassId() interface{} { + return "macpool.Reservation" +} + // GetObjectType returns the ObjectType field value func (o *MacpoolReservation) GetObjectType() string { if o == nil { @@ -114,6 +119,11 @@ func (o *MacpoolReservation) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "macpool.Reservation" of the ObjectType field. +func (o *MacpoolReservation) GetDefaultObjectType() interface{} { + return "macpool.Reservation" +} + // GetIdentity returns the Identity field value if set, zero value otherwise. func (o *MacpoolReservation) GetIdentity() string { if o == nil || IsNil(o.Identity) { @@ -167,7 +177,7 @@ func (o *MacpoolReservation) GetMemberOfOk() ([]MacpoolMemberOf, bool) { // HasMemberOf returns a boolean if a field has been set. func (o *MacpoolReservation) HasMemberOf() bool { - if o != nil && IsNil(o.MemberOf) { + if o != nil && !IsNil(o.MemberOf) { return true } @@ -412,7 +422,13 @@ func (o MacpoolReservation) ToMap() (map[string]interface{}, error) { if errPoolReservation != nil { return map[string]interface{}{}, errPoolReservation } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Identity) { toSerialize["Identity"] = o.Identity @@ -452,6 +468,13 @@ func (o *MacpoolReservation) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -461,11 +484,23 @@ func (o *MacpoolReservation) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type MacpoolReservationWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_macpool_reservation_list.go b/model_macpool_reservation_list.go index 52cf679b52..cac55e1963 100644 --- a/model_macpool_reservation_list.go +++ b/model_macpool_reservation_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *MacpoolReservationList) GetResultsOk() ([]MacpoolReservation, bool) { // HasResults returns a boolean if a field has been set. func (o *MacpoolReservationList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *MacpoolReservationList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *MacpoolReservationList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type MacpoolReservationListWithoutEmbeddedStruct struct { // The total number of 'macpool.Reservation' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_macpool_reservation_reference.go b/model_macpool_reservation_reference.go index 2864b1c7d5..86535ca6c3 100644 --- a/model_macpool_reservation_reference.go +++ b/model_macpool_reservation_reference.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -88,6 +88,11 @@ func (o *MacpoolReservationReference) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "macpool.ReservationReference" of the ClassId field. +func (o *MacpoolReservationReference) GetDefaultClassId() interface{} { + return "macpool.ReservationReference" +} + // GetObjectType returns the ObjectType field value func (o *MacpoolReservationReference) GetObjectType() string { if o == nil { @@ -112,6 +117,11 @@ func (o *MacpoolReservationReference) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "macpool.ReservationReference" of the ObjectType field. +func (o *MacpoolReservationReference) GetDefaultObjectType() interface{} { + return "macpool.ReservationReference" +} + // GetConsumerName returns the ConsumerName field value if set, zero value otherwise. func (o *MacpoolReservationReference) GetConsumerName() string { if o == nil || IsNil(o.ConsumerName) { @@ -194,7 +204,13 @@ func (o MacpoolReservationReference) ToMap() (map[string]interface{}, error) { if errPoolReservationReference != nil { return map[string]interface{}{}, errPoolReservationReference } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.ConsumerName) { toSerialize["ConsumerName"] = o.ConsumerName @@ -219,6 +235,13 @@ func (o *MacpoolReservationReference) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -228,11 +251,23 @@ func (o *MacpoolReservationReference) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type MacpoolReservationReferenceWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_macpool_reservation_relationship.go b/model_macpool_reservation_relationship.go index 2dd28b0e31..9554a0f5a7 100644 --- a/model_macpool_reservation_relationship.go +++ b/model_macpool_reservation_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_macpool_reservation_response.go b/model_macpool_reservation_response.go index cdea7bddce..11dc1e222d 100644 --- a/model_macpool_reservation_response.go +++ b/model_macpool_reservation_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_macpool_universe.go b/model_macpool_universe.go index 09dee8cd8c..3d29a265c9 100644 --- a/model_macpool_universe.go +++ b/model_macpool_universe.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -81,6 +81,11 @@ func (o *MacpoolUniverse) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "macpool.Universe" of the ClassId field. +func (o *MacpoolUniverse) GetDefaultClassId() interface{} { + return "macpool.Universe" +} + // GetObjectType returns the ObjectType field value func (o *MacpoolUniverse) GetObjectType() string { if o == nil { @@ -105,6 +110,11 @@ func (o *MacpoolUniverse) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "macpool.Universe" of the ObjectType field. +func (o *MacpoolUniverse) GetDefaultObjectType() interface{} { + return "macpool.Universe" +} + // GetAccount returns the Account field value if set, zero value otherwise (both if not set or set to explicit null). func (o *MacpoolUniverse) GetAccount() IamAccountRelationship { if o == nil || IsNil(o.Account.Get()) { @@ -166,7 +176,13 @@ func (o MacpoolUniverse) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.Account.IsSet() { toSerialize["Account"] = o.Account.Get() @@ -188,6 +204,13 @@ func (o *MacpoolUniverse) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -197,11 +220,23 @@ func (o *MacpoolUniverse) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type MacpoolUniverseWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_macpool_universe_list.go b/model_macpool_universe_list.go index 099962597e..98d4cc6a49 100644 --- a/model_macpool_universe_list.go +++ b/model_macpool_universe_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *MacpoolUniverseList) GetResultsOk() ([]MacpoolUniverse, bool) { // HasResults returns a boolean if a field has been set. func (o *MacpoolUniverseList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *MacpoolUniverseList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *MacpoolUniverseList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type MacpoolUniverseListWithoutEmbeddedStruct struct { // The total number of 'macpool.Universe' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_macpool_universe_relationship.go b/model_macpool_universe_relationship.go index a53c09f532..90d4ee6d5c 100644 --- a/model_macpool_universe_relationship.go +++ b/model_macpool_universe_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_macpool_universe_response.go b/model_macpool_universe_response.go index cb10386ceb..b5d305e2a3 100644 --- a/model_macpool_universe_response.go +++ b/model_macpool_universe_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_management_controller.go b/model_management_controller.go index 5faec241ec..97eb174e92 100644 --- a/model_management_controller.go +++ b/model_management_controller.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -106,6 +106,11 @@ func (o *ManagementController) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "management.Controller" of the ClassId field. +func (o *ManagementController) GetDefaultClassId() interface{} { + return "management.Controller" +} + // GetObjectType returns the ObjectType field value func (o *ManagementController) GetObjectType() string { if o == nil { @@ -130,6 +135,11 @@ func (o *ManagementController) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "management.Controller" of the ObjectType field. +func (o *ManagementController) GetDefaultObjectType() interface{} { + return "management.Controller" +} + // GetCertificate returns the Certificate field value if set, zero value otherwise. func (o *ManagementController) GetCertificate() CertificatemanagementImc { if o == nil || IsNil(o.Certificate) { @@ -247,7 +257,7 @@ func (o *ManagementController) GetRootCaCertificatesOk() ([]Certificatemanagemen // HasRootCaCertificates returns a boolean if a field has been set. func (o *ManagementController) HasRootCaCertificates() bool { - if o != nil && IsNil(o.RootCaCertificates) { + if o != nil && !IsNil(o.RootCaCertificates) { return true } @@ -613,7 +623,7 @@ func (o *ManagementController) GetManagementInterfacesOk() ([]ManagementInterfac // HasManagementInterfaces returns a boolean if a field has been set. func (o *ManagementController) HasManagementInterfaces() bool { - if o != nil && IsNil(o.ManagementInterfaces) { + if o != nil && !IsNil(o.ManagementInterfaces) { return true } @@ -732,7 +742,7 @@ func (o *ManagementController) GetRunningFirmwareOk() ([]FirmwareRunningFirmware // HasRunningFirmware returns a boolean if a field has been set. func (o *ManagementController) HasRunningFirmware() bool { - if o != nil && IsNil(o.RunningFirmware) { + if o != nil && !IsNil(o.RunningFirmware) { return true } @@ -848,7 +858,13 @@ func (o ManagementController) ToMap() (map[string]interface{}, error) { if errInventoryBase != nil { return map[string]interface{}{}, errInventoryBase } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Certificate) { toSerialize["Certificate"] = o.Certificate @@ -921,6 +937,13 @@ func (o *ManagementController) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -930,11 +953,23 @@ func (o *ManagementController) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type ManagementControllerWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_management_controller_list.go b/model_management_controller_list.go index e10273b201..2a2b460cf3 100644 --- a/model_management_controller_list.go +++ b/model_management_controller_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *ManagementControllerList) GetResultsOk() ([]ManagementController, bool) // HasResults returns a boolean if a field has been set. func (o *ManagementControllerList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *ManagementControllerList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *ManagementControllerList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type ManagementControllerListWithoutEmbeddedStruct struct { // The total number of 'management.Controller' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_management_controller_relationship.go b/model_management_controller_relationship.go index 75e6edbd2e..fbd415bd09 100644 --- a/model_management_controller_relationship.go +++ b/model_management_controller_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_management_controller_response.go b/model_management_controller_response.go index b7666e822c..3bedb3135c 100644 --- a/model_management_controller_response.go +++ b/model_management_controller_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_management_entity.go b/model_management_entity.go index 120cc4aef6..94cfc60efe 100644 --- a/model_management_entity.go +++ b/model_management_entity.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -93,6 +93,11 @@ func (o *ManagementEntity) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "management.Entity" of the ClassId field. +func (o *ManagementEntity) GetDefaultClassId() interface{} { + return "management.Entity" +} + // GetObjectType returns the ObjectType field value func (o *ManagementEntity) GetObjectType() string { if o == nil { @@ -117,6 +122,11 @@ func (o *ManagementEntity) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "management.Entity" of the ObjectType field. +func (o *ManagementEntity) GetDefaultObjectType() interface{} { + return "management.Entity" +} + // GetClusterLinkState returns the ClusterLinkState field value if set, zero value otherwise. func (o *ManagementEntity) GetClusterLinkState() string { if o == nil || IsNil(o.ClusterLinkState) { @@ -424,7 +434,13 @@ func (o ManagementEntity) ToMap() (map[string]interface{}, error) { if errInventoryBase != nil { return map[string]interface{}{}, errInventoryBase } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.ClusterLinkState) { toSerialize["ClusterLinkState"] = o.ClusterLinkState @@ -467,6 +483,13 @@ func (o *ManagementEntity) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -476,11 +499,23 @@ func (o *ManagementEntity) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type ManagementEntityWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_management_entity_list.go b/model_management_entity_list.go index 6e0d5e4284..fe80a7a8c4 100644 --- a/model_management_entity_list.go +++ b/model_management_entity_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *ManagementEntityList) GetResultsOk() ([]ManagementEntity, bool) { // HasResults returns a boolean if a field has been set. func (o *ManagementEntityList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *ManagementEntityList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *ManagementEntityList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type ManagementEntityListWithoutEmbeddedStruct struct { // The total number of 'management.Entity' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_management_entity_relationship.go b/model_management_entity_relationship.go index c1d86d1e18..e1aaabe8b7 100644 --- a/model_management_entity_relationship.go +++ b/model_management_entity_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_management_entity_response.go b/model_management_entity_response.go index 119c24a05c..05f5ab22e5 100644 --- a/model_management_entity_response.go +++ b/model_management_entity_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_management_interface.go b/model_management_interface.go index cc0fa23385..fb468f02b1 100644 --- a/model_management_interface.go +++ b/model_management_interface.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -114,6 +114,11 @@ func (o *ManagementInterface) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "management.Interface" of the ClassId field. +func (o *ManagementInterface) GetDefaultClassId() interface{} { + return "management.Interface" +} + // GetObjectType returns the ObjectType field value func (o *ManagementInterface) GetObjectType() string { if o == nil { @@ -138,6 +143,11 @@ func (o *ManagementInterface) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "management.Interface" of the ObjectType field. +func (o *ManagementInterface) GetDefaultObjectType() interface{} { + return "management.Interface" +} + // GetGateway returns the Gateway field value if set, zero value otherwise. func (o *ManagementInterface) GetGateway() string { if o == nil || IsNil(o.Gateway) { @@ -808,7 +818,13 @@ func (o ManagementInterface) ToMap() (map[string]interface{}, error) { if errInventoryBase != nil { return map[string]interface{}{}, errInventoryBase } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Gateway) { toSerialize["Gateway"] = o.Gateway @@ -884,6 +900,13 @@ func (o *ManagementInterface) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -893,11 +916,23 @@ func (o *ManagementInterface) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type ManagementInterfaceWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_management_interface_list.go b/model_management_interface_list.go index 62073cd978..1654adf0a5 100644 --- a/model_management_interface_list.go +++ b/model_management_interface_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *ManagementInterfaceList) GetResultsOk() ([]ManagementInterface, bool) { // HasResults returns a boolean if a field has been set. func (o *ManagementInterfaceList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *ManagementInterfaceList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *ManagementInterfaceList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type ManagementInterfaceListWithoutEmbeddedStruct struct { // The total number of 'management.Interface' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_management_interface_relationship.go b/model_management_interface_relationship.go index eac861a906..3475bff929 100644 --- a/model_management_interface_relationship.go +++ b/model_management_interface_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_management_interface_response.go b/model_management_interface_response.go index cc0abf4e0c..b2dff27927 100644 --- a/model_management_interface_response.go +++ b/model_management_interface_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_marketplace_use_case.go b/model_marketplace_use_case.go index 02046852be..e4bdcd2e6b 100644 --- a/model_marketplace_use_case.go +++ b/model_marketplace_use_case.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -85,6 +85,11 @@ func (o *MarketplaceUseCase) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "marketplace.UseCase" of the ClassId field. +func (o *MarketplaceUseCase) GetDefaultClassId() interface{} { + return "marketplace.UseCase" +} + // GetObjectType returns the ObjectType field value func (o *MarketplaceUseCase) GetObjectType() string { if o == nil { @@ -109,6 +114,11 @@ func (o *MarketplaceUseCase) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "marketplace.UseCase" of the ObjectType field. +func (o *MarketplaceUseCase) GetDefaultObjectType() interface{} { + return "marketplace.UseCase" +} + // GetDependencies returns the Dependencies field value if set, zero value otherwise (both if not set or set to explicit null). func (o *MarketplaceUseCase) GetDependencies() []MarketplaceUseCaseDependency { if o == nil { @@ -130,7 +140,7 @@ func (o *MarketplaceUseCase) GetDependenciesOk() ([]MarketplaceUseCaseDependency // HasDependencies returns a boolean if a field has been set. func (o *MarketplaceUseCase) HasDependencies() bool { - if o != nil && IsNil(o.Dependencies) { + if o != nil && !IsNil(o.Dependencies) { return true } @@ -163,7 +173,7 @@ func (o *MarketplaceUseCase) GetLocalesOk() ([]MarketplaceUseCaseLocale, bool) { // HasLocales returns a boolean if a field has been set. func (o *MarketplaceUseCase) HasLocales() bool { - if o != nil && IsNil(o.Locales) { + if o != nil && !IsNil(o.Locales) { return true } @@ -268,7 +278,13 @@ func (o MarketplaceUseCase) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.Dependencies != nil { toSerialize["Dependencies"] = o.Dependencies @@ -299,6 +315,13 @@ func (o *MarketplaceUseCase) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -308,11 +331,23 @@ func (o *MarketplaceUseCase) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type MarketplaceUseCaseWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_marketplace_use_case_automation.go b/model_marketplace_use_case_automation.go index 3a628cb5f3..e1bee705ad 100644 --- a/model_marketplace_use_case_automation.go +++ b/model_marketplace_use_case_automation.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -84,6 +84,11 @@ func (o *MarketplaceUseCaseAutomation) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "marketplace.UseCaseAutomation" of the ClassId field. +func (o *MarketplaceUseCaseAutomation) GetDefaultClassId() interface{} { + return "marketplace.UseCaseAutomation" +} + // GetObjectType returns the ObjectType field value func (o *MarketplaceUseCaseAutomation) GetObjectType() string { if o == nil { @@ -108,6 +113,11 @@ func (o *MarketplaceUseCaseAutomation) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "marketplace.UseCaseAutomation" of the ObjectType field. +func (o *MarketplaceUseCaseAutomation) GetDefaultObjectType() interface{} { + return "marketplace.UseCaseAutomation" +} + // GetDescription returns the Description field value if set, zero value otherwise. func (o *MarketplaceUseCaseAutomation) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -190,7 +200,13 @@ func (o MarketplaceUseCaseAutomation) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Description) { toSerialize["Description"] = o.Description @@ -215,6 +231,13 @@ func (o *MarketplaceUseCaseAutomation) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -224,11 +247,23 @@ func (o *MarketplaceUseCaseAutomation) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type MarketplaceUseCaseAutomationWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_marketplace_use_case_dependency.go b/model_marketplace_use_case_dependency.go index 8e49ef588b..35c01095cd 100644 --- a/model_marketplace_use_case_dependency.go +++ b/model_marketplace_use_case_dependency.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -84,6 +84,11 @@ func (o *MarketplaceUseCaseDependency) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "marketplace.UseCaseDependency" of the ClassId field. +func (o *MarketplaceUseCaseDependency) GetDefaultClassId() interface{} { + return "marketplace.UseCaseDependency" +} + // GetObjectType returns the ObjectType field value func (o *MarketplaceUseCaseDependency) GetObjectType() string { if o == nil { @@ -108,6 +113,11 @@ func (o *MarketplaceUseCaseDependency) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "marketplace.UseCaseDependency" of the ObjectType field. +func (o *MarketplaceUseCaseDependency) GetDefaultObjectType() interface{} { + return "marketplace.UseCaseDependency" +} + // GetName returns the Name field value if set, zero value otherwise. func (o *MarketplaceUseCaseDependency) GetName() string { if o == nil || IsNil(o.Name) { @@ -190,7 +200,13 @@ func (o MarketplaceUseCaseDependency) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Name) { toSerialize["Name"] = o.Name @@ -215,6 +231,13 @@ func (o *MarketplaceUseCaseDependency) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -224,11 +247,23 @@ func (o *MarketplaceUseCaseDependency) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type MarketplaceUseCaseDependencyWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_marketplace_use_case_list.go b/model_marketplace_use_case_list.go index 022d673575..c02da6a337 100644 --- a/model_marketplace_use_case_list.go +++ b/model_marketplace_use_case_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *MarketplaceUseCaseList) GetResultsOk() ([]MarketplaceUseCase, bool) { // HasResults returns a boolean if a field has been set. func (o *MarketplaceUseCaseList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *MarketplaceUseCaseList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *MarketplaceUseCaseList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type MarketplaceUseCaseListWithoutEmbeddedStruct struct { // The total number of 'marketplace.UseCase' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_marketplace_use_case_locale.go b/model_marketplace_use_case_locale.go index f536e8bd92..8144d4b5af 100644 --- a/model_marketplace_use_case_locale.go +++ b/model_marketplace_use_case_locale.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -36,7 +36,7 @@ type MarketplaceUseCaseLocale struct { // A base64-encoded image for the use case. Icon *string `json:"Icon,omitempty"` // The string field to hold the locale. - Locale *string `json:"Locale,omitempty"` + Locale *string `json:"Locale,omitempty" validate:"regexp=^$|^[a-z]{2,4}(-[A-Z][a-z]{3})?(-([A-Za-z]{2}|[0-9]{3}))?$"` // The string field to hold the name value. Name *string `json:"Name,omitempty"` // The string field to hold the summary value. @@ -93,6 +93,11 @@ func (o *MarketplaceUseCaseLocale) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "marketplace.UseCaseLocale" of the ClassId field. +func (o *MarketplaceUseCaseLocale) GetDefaultClassId() interface{} { + return "marketplace.UseCaseLocale" +} + // GetObjectType returns the ObjectType field value func (o *MarketplaceUseCaseLocale) GetObjectType() string { if o == nil { @@ -117,6 +122,11 @@ func (o *MarketplaceUseCaseLocale) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "marketplace.UseCaseLocale" of the ObjectType field. +func (o *MarketplaceUseCaseLocale) GetDefaultObjectType() interface{} { + return "marketplace.UseCaseLocale" +} + // GetAutomations returns the Automations field value if set, zero value otherwise (both if not set or set to explicit null). func (o *MarketplaceUseCaseLocale) GetAutomations() []MarketplaceUseCaseAutomation { if o == nil { @@ -138,7 +148,7 @@ func (o *MarketplaceUseCaseLocale) GetAutomationsOk() ([]MarketplaceUseCaseAutom // HasAutomations returns a boolean if a field has been set. func (o *MarketplaceUseCaseLocale) HasAutomations() bool { - if o != nil && IsNil(o.Automations) { + if o != nil && !IsNil(o.Automations) { return true } @@ -360,7 +370,13 @@ func (o MarketplaceUseCaseLocale) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.Automations != nil { toSerialize["Automations"] = o.Automations @@ -400,6 +416,13 @@ func (o *MarketplaceUseCaseLocale) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -409,11 +432,23 @@ func (o *MarketplaceUseCaseLocale) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type MarketplaceUseCaseLocaleWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` @@ -427,7 +462,7 @@ func (o *MarketplaceUseCaseLocale) UnmarshalJSON(data []byte) (err error) { // A base64-encoded image for the use case. Icon *string `json:"Icon,omitempty"` // The string field to hold the locale. - Locale *string `json:"Locale,omitempty"` + Locale *string `json:"Locale,omitempty" validate:"regexp=^$|^[a-z]{2,4}(-[A-Z][a-z]{3})?(-([A-Za-z]{2}|[0-9]{3}))?$"` // The string field to hold the name value. Name *string `json:"Name,omitempty"` // The string field to hold the summary value. diff --git a/model_marketplace_use_case_relationship.go b/model_marketplace_use_case_relationship.go index 276cf97a7b..3bfec098d5 100644 --- a/model_marketplace_use_case_relationship.go +++ b/model_marketplace_use_case_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_marketplace_use_case_response.go b/model_marketplace_use_case_response.go index 0e5b3de4fe..62f01e8d3b 100644 --- a/model_marketplace_use_case_response.go +++ b/model_marketplace_use_case_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_marketplace_use_case_version.go b/model_marketplace_use_case_version.go index 81e0853bd2..7e15d9293e 100644 --- a/model_marketplace_use_case_version.go +++ b/model_marketplace_use_case_version.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -86,6 +86,11 @@ func (o *MarketplaceUseCaseVersion) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "marketplace.UseCaseVersion" of the ClassId field. +func (o *MarketplaceUseCaseVersion) GetDefaultClassId() interface{} { + return "marketplace.UseCaseVersion" +} + // GetObjectType returns the ObjectType field value func (o *MarketplaceUseCaseVersion) GetObjectType() string { if o == nil { @@ -110,6 +115,11 @@ func (o *MarketplaceUseCaseVersion) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "marketplace.UseCaseVersion" of the ObjectType field. +func (o *MarketplaceUseCaseVersion) GetDefaultObjectType() interface{} { + return "marketplace.UseCaseVersion" +} + // GetLocales returns the Locales field value if set, zero value otherwise (both if not set or set to explicit null). func (o *MarketplaceUseCaseVersion) GetLocales() []MarketplaceUseCaseVersionLocale { if o == nil { @@ -131,7 +141,7 @@ func (o *MarketplaceUseCaseVersion) GetLocalesOk() ([]MarketplaceUseCaseVersionL // HasLocales returns a boolean if a field has been set. func (o *MarketplaceUseCaseVersion) HasLocales() bool { - if o != nil && IsNil(o.Locales) { + if o != nil && !IsNil(o.Locales) { return true } @@ -164,7 +174,7 @@ func (o *MarketplaceUseCaseVersion) GetResourcesOk() ([]MarketplaceUseCaseVersio // HasResources returns a boolean if a field has been set. func (o *MarketplaceUseCaseVersion) HasResources() bool { - if o != nil && IsNil(o.Resources) { + if o != nil && !IsNil(o.Resources) { return true } @@ -312,7 +322,13 @@ func (o MarketplaceUseCaseVersion) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.Locales != nil { toSerialize["Locales"] = o.Locales @@ -346,6 +362,13 @@ func (o *MarketplaceUseCaseVersion) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -355,11 +378,23 @@ func (o *MarketplaceUseCaseVersion) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type MarketplaceUseCaseVersionWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_marketplace_use_case_version_list.go b/model_marketplace_use_case_version_list.go index b3ae370c98..67d34f9685 100644 --- a/model_marketplace_use_case_version_list.go +++ b/model_marketplace_use_case_version_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *MarketplaceUseCaseVersionList) GetResultsOk() ([]MarketplaceUseCaseVers // HasResults returns a boolean if a field has been set. func (o *MarketplaceUseCaseVersionList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *MarketplaceUseCaseVersionList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *MarketplaceUseCaseVersionList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type MarketplaceUseCaseVersionListWithoutEmbeddedStruct struct { // The total number of 'marketplace.UseCaseVersion' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_marketplace_use_case_version_locale.go b/model_marketplace_use_case_version_locale.go index 22ef888c18..485aee3953 100644 --- a/model_marketplace_use_case_version_locale.go +++ b/model_marketplace_use_case_version_locale.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -31,7 +31,7 @@ type MarketplaceUseCaseVersionLocale struct { // The string field to hold the description. Description *string `json:"Description,omitempty"` // The string field to hold the locale. - Locale *string `json:"Locale,omitempty"` + Locale *string `json:"Locale,omitempty" validate:"regexp=^$|^[a-z]{2,4}(-[A-Z][a-z]{3})?(-([A-Za-z]{2}|[0-9]{3}))?$"` AdditionalProperties map[string]interface{} } @@ -84,6 +84,11 @@ func (o *MarketplaceUseCaseVersionLocale) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "marketplace.UseCaseVersionLocale" of the ClassId field. +func (o *MarketplaceUseCaseVersionLocale) GetDefaultClassId() interface{} { + return "marketplace.UseCaseVersionLocale" +} + // GetObjectType returns the ObjectType field value func (o *MarketplaceUseCaseVersionLocale) GetObjectType() string { if o == nil { @@ -108,6 +113,11 @@ func (o *MarketplaceUseCaseVersionLocale) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "marketplace.UseCaseVersionLocale" of the ObjectType field. +func (o *MarketplaceUseCaseVersionLocale) GetDefaultObjectType() interface{} { + return "marketplace.UseCaseVersionLocale" +} + // GetDescription returns the Description field value if set, zero value otherwise. func (o *MarketplaceUseCaseVersionLocale) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -190,7 +200,13 @@ func (o MarketplaceUseCaseVersionLocale) ToMap() (map[string]interface{}, error) if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Description) { toSerialize["Description"] = o.Description @@ -215,6 +231,13 @@ func (o *MarketplaceUseCaseVersionLocale) UnmarshalJSON(data []byte) (err error) "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -224,11 +247,23 @@ func (o *MarketplaceUseCaseVersionLocale) UnmarshalJSON(data []byte) (err error) } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type MarketplaceUseCaseVersionLocaleWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` @@ -237,7 +272,7 @@ func (o *MarketplaceUseCaseVersionLocale) UnmarshalJSON(data []byte) (err error) // The string field to hold the description. Description *string `json:"Description,omitempty"` // The string field to hold the locale. - Locale *string `json:"Locale,omitempty"` + Locale *string `json:"Locale,omitempty" validate:"regexp=^$|^[a-z]{2,4}(-[A-Z][a-z]{3})?(-([A-Za-z]{2}|[0-9]{3}))?$"` } varMarketplaceUseCaseVersionLocaleWithoutEmbeddedStruct := MarketplaceUseCaseVersionLocaleWithoutEmbeddedStruct{} diff --git a/model_marketplace_use_case_version_resource.go b/model_marketplace_use_case_version_resource.go index 69f7368a88..6daea4844f 100644 --- a/model_marketplace_use_case_version_resource.go +++ b/model_marketplace_use_case_version_resource.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -84,6 +84,11 @@ func (o *MarketplaceUseCaseVersionResource) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "marketplace.UseCaseVersionResource" of the ClassId field. +func (o *MarketplaceUseCaseVersionResource) GetDefaultClassId() interface{} { + return "marketplace.UseCaseVersionResource" +} + // GetObjectType returns the ObjectType field value func (o *MarketplaceUseCaseVersionResource) GetObjectType() string { if o == nil { @@ -108,6 +113,11 @@ func (o *MarketplaceUseCaseVersionResource) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "marketplace.UseCaseVersionResource" of the ObjectType field. +func (o *MarketplaceUseCaseVersionResource) GetDefaultObjectType() interface{} { + return "marketplace.UseCaseVersionResource" +} + // GetResourceId returns the ResourceId field value if set, zero value otherwise. func (o *MarketplaceUseCaseVersionResource) GetResourceId() string { if o == nil || IsNil(o.ResourceId) { @@ -190,7 +200,13 @@ func (o MarketplaceUseCaseVersionResource) ToMap() (map[string]interface{}, erro if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.ResourceId) { toSerialize["ResourceId"] = o.ResourceId @@ -215,6 +231,13 @@ func (o *MarketplaceUseCaseVersionResource) UnmarshalJSON(data []byte) (err erro "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -224,11 +247,23 @@ func (o *MarketplaceUseCaseVersionResource) UnmarshalJSON(data []byte) (err erro } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type MarketplaceUseCaseVersionResourceWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_marketplace_use_case_version_response.go b/model_marketplace_use_case_version_response.go index a076f75843..7b57625574 100644 --- a/model_marketplace_use_case_version_response.go +++ b/model_marketplace_use_case_version_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_memory_abstract_unit.go b/model_memory_abstract_unit.go index 413212a4bf..3f652b19b8 100644 --- a/model_memory_abstract_unit.go +++ b/model_memory_abstract_unit.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -444,7 +444,7 @@ func (o *MemoryAbstractUnit) GetOperReasonOk() ([]string, bool) { // HasOperReason returns a boolean if a field has been set. func (o *MemoryAbstractUnit) HasOperReason() bool { - if o != nil && IsNil(o.OperReason) { + if o != nil && !IsNil(o.OperReason) { return true } @@ -803,6 +803,10 @@ func (o *MemoryAbstractUnit) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -812,11 +816,23 @@ func (o *MemoryAbstractUnit) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type MemoryAbstractUnitWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. The enum values provides the list of concrete types that can be instantiated from this abstract type. ClassId string `json:"ClassId"` diff --git a/model_memory_array.go b/model_memory_array.go index 15d9d9e1be..4f53def827 100644 --- a/model_memory_array.go +++ b/model_memory_array.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -103,6 +103,11 @@ func (o *MemoryArray) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "memory.Array" of the ClassId field. +func (o *MemoryArray) GetDefaultClassId() interface{} { + return "memory.Array" +} + // GetObjectType returns the ObjectType field value func (o *MemoryArray) GetObjectType() string { if o == nil { @@ -127,6 +132,11 @@ func (o *MemoryArray) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "memory.Array" of the ObjectType field. +func (o *MemoryArray) GetDefaultObjectType() interface{} { + return "memory.Array" +} + // GetArrayId returns the ArrayId field value if set, zero value otherwise. func (o *MemoryArray) GetArrayId() int64 { if o == nil || IsNil(o.ArrayId) { @@ -544,7 +554,7 @@ func (o *MemoryArray) GetPersistentMemoryUnitsOk() ([]MemoryPersistentMemoryUnit // HasPersistentMemoryUnits returns a boolean if a field has been set. func (o *MemoryArray) HasPersistentMemoryUnits() bool { - if o != nil && IsNil(o.PersistentMemoryUnits) { + if o != nil && !IsNil(o.PersistentMemoryUnits) { return true } @@ -620,7 +630,7 @@ func (o *MemoryArray) GetUnitsOk() ([]MemoryUnitRelationship, bool) { // HasUnits returns a boolean if a field has been set. func (o *MemoryArray) HasUnits() bool { - if o != nil && IsNil(o.Units) { + if o != nil && !IsNil(o.Units) { return true } @@ -650,7 +660,13 @@ func (o MemoryArray) ToMap() (map[string]interface{}, error) { if errEquipmentBase != nil { return map[string]interface{}{}, errEquipmentBase } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.ArrayId) { toSerialize["ArrayId"] = o.ArrayId @@ -711,6 +727,13 @@ func (o *MemoryArray) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -720,11 +743,23 @@ func (o *MemoryArray) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type MemoryArrayWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_memory_array_list.go b/model_memory_array_list.go index 17150ec04f..7924d2fdc7 100644 --- a/model_memory_array_list.go +++ b/model_memory_array_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *MemoryArrayList) GetResultsOk() ([]MemoryArray, bool) { // HasResults returns a boolean if a field has been set. func (o *MemoryArrayList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *MemoryArrayList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *MemoryArrayList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type MemoryArrayListWithoutEmbeddedStruct struct { // The total number of 'memory.Array' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_memory_array_relationship.go b/model_memory_array_relationship.go index da8886d1cb..909638830b 100644 --- a/model_memory_array_relationship.go +++ b/model_memory_array_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_memory_array_response.go b/model_memory_array_response.go index 589f7b996f..7875062a25 100644 --- a/model_memory_array_response.go +++ b/model_memory_array_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_memory_persistent_memory_config_result.go b/model_memory_persistent_memory_config_result.go index d0dc48f70c..301f4d1992 100644 --- a/model_memory_persistent_memory_config_result.go +++ b/model_memory_persistent_memory_config_result.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -93,6 +93,11 @@ func (o *MemoryPersistentMemoryConfigResult) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "memory.PersistentMemoryConfigResult" of the ClassId field. +func (o *MemoryPersistentMemoryConfigResult) GetDefaultClassId() interface{} { + return "memory.PersistentMemoryConfigResult" +} + // GetObjectType returns the ObjectType field value func (o *MemoryPersistentMemoryConfigResult) GetObjectType() string { if o == nil { @@ -117,6 +122,11 @@ func (o *MemoryPersistentMemoryConfigResult) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "memory.PersistentMemoryConfigResult" of the ObjectType field. +func (o *MemoryPersistentMemoryConfigResult) GetDefaultObjectType() interface{} { + return "memory.PersistentMemoryConfigResult" +} + // GetConfigErrorDesc returns the ConfigErrorDesc field value if set, zero value otherwise. func (o *MemoryPersistentMemoryConfigResult) GetConfigErrorDesc() string { if o == nil || IsNil(o.ConfigErrorDesc) { @@ -352,7 +362,7 @@ func (o *MemoryPersistentMemoryConfigResult) GetPersistentMemoryNamespaceConfigR // HasPersistentMemoryNamespaceConfigResults returns a boolean if a field has been set. func (o *MemoryPersistentMemoryConfigResult) HasPersistentMemoryNamespaceConfigResults() bool { - if o != nil && IsNil(o.PersistentMemoryNamespaceConfigResults) { + if o != nil && !IsNil(o.PersistentMemoryNamespaceConfigResults) { return true } @@ -425,7 +435,13 @@ func (o MemoryPersistentMemoryConfigResult) ToMap() (map[string]interface{}, err if errInventoryBase != nil { return map[string]interface{}{}, errInventoryBase } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.ConfigErrorDesc) { toSerialize["ConfigErrorDesc"] = o.ConfigErrorDesc @@ -468,6 +484,13 @@ func (o *MemoryPersistentMemoryConfigResult) UnmarshalJSON(data []byte) (err err "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -477,11 +500,23 @@ func (o *MemoryPersistentMemoryConfigResult) UnmarshalJSON(data []byte) (err err } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type MemoryPersistentMemoryConfigResultWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_memory_persistent_memory_config_result_list.go b/model_memory_persistent_memory_config_result_list.go index 3182608ef5..f47d627543 100644 --- a/model_memory_persistent_memory_config_result_list.go +++ b/model_memory_persistent_memory_config_result_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *MemoryPersistentMemoryConfigResultList) GetResultsOk() ([]MemoryPersist // HasResults returns a boolean if a field has been set. func (o *MemoryPersistentMemoryConfigResultList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *MemoryPersistentMemoryConfigResultList) UnmarshalJSON(data []byte) (err "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *MemoryPersistentMemoryConfigResultList) UnmarshalJSON(data []byte) (err } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type MemoryPersistentMemoryConfigResultListWithoutEmbeddedStruct struct { // The total number of 'memory.PersistentMemoryConfigResult' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_memory_persistent_memory_config_result_relationship.go b/model_memory_persistent_memory_config_result_relationship.go index fb26e93f86..0a6e02f926 100644 --- a/model_memory_persistent_memory_config_result_relationship.go +++ b/model_memory_persistent_memory_config_result_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_memory_persistent_memory_config_result_response.go b/model_memory_persistent_memory_config_result_response.go index b312bbd4ba..a280a171fb 100644 --- a/model_memory_persistent_memory_config_result_response.go +++ b/model_memory_persistent_memory_config_result_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_memory_persistent_memory_configuration.go b/model_memory_persistent_memory_configuration.go index e8661a06d5..5cee030c9b 100644 --- a/model_memory_persistent_memory_configuration.go +++ b/model_memory_persistent_memory_configuration.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -100,6 +100,11 @@ func (o *MemoryPersistentMemoryConfiguration) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "memory.PersistentMemoryConfiguration" of the ClassId field. +func (o *MemoryPersistentMemoryConfiguration) GetDefaultClassId() interface{} { + return "memory.PersistentMemoryConfiguration" +} + // GetObjectType returns the ObjectType field value func (o *MemoryPersistentMemoryConfiguration) GetObjectType() string { if o == nil { @@ -124,6 +129,11 @@ func (o *MemoryPersistentMemoryConfiguration) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "memory.PersistentMemoryConfiguration" of the ObjectType field. +func (o *MemoryPersistentMemoryConfiguration) GetDefaultObjectType() interface{} { + return "memory.PersistentMemoryConfiguration" +} + // GetMemoryCapacity returns the MemoryCapacity field value if set, zero value otherwise. func (o *MemoryPersistentMemoryConfiguration) GetMemoryCapacity() string { if o == nil || IsNil(o.MemoryCapacity) { @@ -498,7 +508,7 @@ func (o *MemoryPersistentMemoryConfiguration) GetPersistentMemoryRegionsOk() ([] // HasPersistentMemoryRegions returns a boolean if a field has been set. func (o *MemoryPersistentMemoryConfiguration) HasPersistentMemoryRegions() bool { - if o != nil && IsNil(o.PersistentMemoryRegions) { + if o != nil && !IsNil(o.PersistentMemoryRegions) { return true } @@ -571,7 +581,13 @@ func (o MemoryPersistentMemoryConfiguration) ToMap() (map[string]interface{}, er if errInventoryBase != nil { return map[string]interface{}{}, errInventoryBase } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.MemoryCapacity) { toSerialize["MemoryCapacity"] = o.MemoryCapacity @@ -626,6 +642,13 @@ func (o *MemoryPersistentMemoryConfiguration) UnmarshalJSON(data []byte) (err er "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -635,11 +658,23 @@ func (o *MemoryPersistentMemoryConfiguration) UnmarshalJSON(data []byte) (err er } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type MemoryPersistentMemoryConfigurationWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_memory_persistent_memory_configuration_list.go b/model_memory_persistent_memory_configuration_list.go index a9d730dc99..4e0c999508 100644 --- a/model_memory_persistent_memory_configuration_list.go +++ b/model_memory_persistent_memory_configuration_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *MemoryPersistentMemoryConfigurationList) GetResultsOk() ([]MemoryPersis // HasResults returns a boolean if a field has been set. func (o *MemoryPersistentMemoryConfigurationList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *MemoryPersistentMemoryConfigurationList) UnmarshalJSON(data []byte) (er "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *MemoryPersistentMemoryConfigurationList) UnmarshalJSON(data []byte) (er } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type MemoryPersistentMemoryConfigurationListWithoutEmbeddedStruct struct { // The total number of 'memory.PersistentMemoryConfiguration' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_memory_persistent_memory_configuration_relationship.go b/model_memory_persistent_memory_configuration_relationship.go index 3ecf48b15f..96708867bf 100644 --- a/model_memory_persistent_memory_configuration_relationship.go +++ b/model_memory_persistent_memory_configuration_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_memory_persistent_memory_configuration_response.go b/model_memory_persistent_memory_configuration_response.go index 363e0779b9..acf12079d4 100644 --- a/model_memory_persistent_memory_configuration_response.go +++ b/model_memory_persistent_memory_configuration_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_memory_persistent_memory_goal.go b/model_memory_persistent_memory_goal.go index 335c513615..47cd4a284a 100644 --- a/model_memory_persistent_memory_goal.go +++ b/model_memory_persistent_memory_goal.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -94,6 +94,11 @@ func (o *MemoryPersistentMemoryGoal) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "memory.PersistentMemoryGoal" of the ClassId field. +func (o *MemoryPersistentMemoryGoal) GetDefaultClassId() interface{} { + return "memory.PersistentMemoryGoal" +} + // GetObjectType returns the ObjectType field value func (o *MemoryPersistentMemoryGoal) GetObjectType() string { if o == nil { @@ -118,6 +123,11 @@ func (o *MemoryPersistentMemoryGoal) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "memory.PersistentMemoryGoal" of the ObjectType field. +func (o *MemoryPersistentMemoryGoal) GetDefaultObjectType() interface{} { + return "memory.PersistentMemoryGoal" +} + // GetMemoryModePercentage returns the MemoryModePercentage field value if set, zero value otherwise. func (o *MemoryPersistentMemoryGoal) GetMemoryModePercentage() int64 { if o == nil || IsNil(o.MemoryModePercentage) { @@ -232,7 +242,13 @@ func (o MemoryPersistentMemoryGoal) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.MemoryModePercentage) { toSerialize["MemoryModePercentage"] = o.MemoryModePercentage @@ -260,6 +276,13 @@ func (o *MemoryPersistentMemoryGoal) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -269,11 +292,23 @@ func (o *MemoryPersistentMemoryGoal) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type MemoryPersistentMemoryGoalWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_memory_persistent_memory_local_security.go b/model_memory_persistent_memory_local_security.go index 1d75f70eb3..5d9f424e8a 100644 --- a/model_memory_persistent_memory_local_security.go +++ b/model_memory_persistent_memory_local_security.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -33,7 +33,7 @@ type MemoryPersistentMemoryLocalSecurity struct { // Indicates whether the value of the 'securePassphrase' property has been set. IsSecurePassphraseSet *bool `json:"IsSecurePassphraseSet,omitempty"` // Secure passphrase to be applied on the Persistent Memory Modules on the server. The allowed characters are a-z, A to Z, 0-9, and special characters =, \\u0021, &, \\#, $, %, +, ^, @, _, *, -. - SecurePassphrase *string `json:"SecurePassphrase,omitempty"` + SecurePassphrase *string `json:"SecurePassphrase,omitempty" validate:"regexp=^$|^[a-zA-Z0-9=!&#$%+^@_*-]+$"` AdditionalProperties map[string]interface{} } @@ -90,6 +90,11 @@ func (o *MemoryPersistentMemoryLocalSecurity) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "memory.PersistentMemoryLocalSecurity" of the ClassId field. +func (o *MemoryPersistentMemoryLocalSecurity) GetDefaultClassId() interface{} { + return "memory.PersistentMemoryLocalSecurity" +} + // GetObjectType returns the ObjectType field value func (o *MemoryPersistentMemoryLocalSecurity) GetObjectType() string { if o == nil { @@ -114,6 +119,11 @@ func (o *MemoryPersistentMemoryLocalSecurity) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "memory.PersistentMemoryLocalSecurity" of the ObjectType field. +func (o *MemoryPersistentMemoryLocalSecurity) GetDefaultObjectType() interface{} { + return "memory.PersistentMemoryLocalSecurity" +} + // GetEnabled returns the Enabled field value if set, zero value otherwise. func (o *MemoryPersistentMemoryLocalSecurity) GetEnabled() bool { if o == nil || IsNil(o.Enabled) { @@ -228,7 +238,13 @@ func (o MemoryPersistentMemoryLocalSecurity) ToMap() (map[string]interface{}, er if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Enabled) { toSerialize["Enabled"] = o.Enabled @@ -256,6 +272,13 @@ func (o *MemoryPersistentMemoryLocalSecurity) UnmarshalJSON(data []byte) (err er "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -265,11 +288,23 @@ func (o *MemoryPersistentMemoryLocalSecurity) UnmarshalJSON(data []byte) (err er } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type MemoryPersistentMemoryLocalSecurityWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` @@ -280,7 +315,7 @@ func (o *MemoryPersistentMemoryLocalSecurity) UnmarshalJSON(data []byte) (err er // Indicates whether the value of the 'securePassphrase' property has been set. IsSecurePassphraseSet *bool `json:"IsSecurePassphraseSet,omitempty"` // Secure passphrase to be applied on the Persistent Memory Modules on the server. The allowed characters are a-z, A to Z, 0-9, and special characters =, \\u0021, &, \\#, $, %, +, ^, @, _, *, -. - SecurePassphrase *string `json:"SecurePassphrase,omitempty"` + SecurePassphrase *string `json:"SecurePassphrase,omitempty" validate:"regexp=^$|^[a-zA-Z0-9=!&#$%+^@_*-]+$"` } varMemoryPersistentMemoryLocalSecurityWithoutEmbeddedStruct := MemoryPersistentMemoryLocalSecurityWithoutEmbeddedStruct{} diff --git a/model_memory_persistent_memory_logical_namespace.go b/model_memory_persistent_memory_logical_namespace.go index acac2fb91c..43ff941d37 100644 --- a/model_memory_persistent_memory_logical_namespace.go +++ b/model_memory_persistent_memory_logical_namespace.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -33,7 +33,7 @@ type MemoryPersistentMemoryLogicalNamespace struct { // Mode of this Namespace that is created or modified. * `raw` - The raw mode of Persistent Memory Namespace. * `block` - The block mode of Persistent Memory Namespace. Mode *string `json:"Mode,omitempty"` // Name of this Namespace to be created on the server. - Name *string `json:"Name,omitempty"` + Name *string `json:"Name,omitempty" validate:"regexp=^[a-zA-Z0-9#_-][a-zA-Z0-9#_ -]*$"` // Socket ID of the region on which this Namespace has to be created or modified. * `1` - The first CPU socket in a server. * `2` - The second CPU socket in a server. * `3` - The third CPU socket in a server. * `4` - The fourth CPU socket in a server. SocketId *int32 `json:"SocketId,omitempty"` // Socket Memory ID of the region on which this Namespace has to be created or modified. * `Not Applicable` - The socket memory ID is not applicable if app-direct persistent memory type is selected in the goal. * `2` - The second socket memory ID within a socket in a server. * `4` - The fourth socket memory ID within a socket in a server. * `6` - The sixth socket memory ID within a socket in a server. * `8` - The eighth socket memory ID within a socket in a server. * `10` - The tenth socket memory ID within a socket in a server. * `12` - The twelfth socket memory ID within a socket in a server. @@ -102,6 +102,11 @@ func (o *MemoryPersistentMemoryLogicalNamespace) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "memory.PersistentMemoryLogicalNamespace" of the ClassId field. +func (o *MemoryPersistentMemoryLogicalNamespace) GetDefaultClassId() interface{} { + return "memory.PersistentMemoryLogicalNamespace" +} + // GetObjectType returns the ObjectType field value func (o *MemoryPersistentMemoryLogicalNamespace) GetObjectType() string { if o == nil { @@ -126,6 +131,11 @@ func (o *MemoryPersistentMemoryLogicalNamespace) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "memory.PersistentMemoryLogicalNamespace" of the ObjectType field. +func (o *MemoryPersistentMemoryLogicalNamespace) GetDefaultObjectType() interface{} { + return "memory.PersistentMemoryLogicalNamespace" +} + // GetCapacity returns the Capacity field value if set, zero value otherwise. func (o *MemoryPersistentMemoryLogicalNamespace) GetCapacity() int64 { if o == nil || IsNil(o.Capacity) { @@ -304,7 +314,13 @@ func (o MemoryPersistentMemoryLogicalNamespace) ToMap() (map[string]interface{}, if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Capacity) { toSerialize["Capacity"] = o.Capacity @@ -338,6 +354,13 @@ func (o *MemoryPersistentMemoryLogicalNamespace) UnmarshalJSON(data []byte) (err "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -347,11 +370,23 @@ func (o *MemoryPersistentMemoryLogicalNamespace) UnmarshalJSON(data []byte) (err } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type MemoryPersistentMemoryLogicalNamespaceWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` @@ -362,7 +397,7 @@ func (o *MemoryPersistentMemoryLogicalNamespace) UnmarshalJSON(data []byte) (err // Mode of this Namespace that is created or modified. * `raw` - The raw mode of Persistent Memory Namespace. * `block` - The block mode of Persistent Memory Namespace. Mode *string `json:"Mode,omitempty"` // Name of this Namespace to be created on the server. - Name *string `json:"Name,omitempty"` + Name *string `json:"Name,omitempty" validate:"regexp=^[a-zA-Z0-9#_-][a-zA-Z0-9#_ -]*$"` // Socket ID of the region on which this Namespace has to be created or modified. * `1` - The first CPU socket in a server. * `2` - The second CPU socket in a server. * `3` - The third CPU socket in a server. * `4` - The fourth CPU socket in a server. SocketId *int32 `json:"SocketId,omitempty"` // Socket Memory ID of the region on which this Namespace has to be created or modified. * `Not Applicable` - The socket memory ID is not applicable if app-direct persistent memory type is selected in the goal. * `2` - The second socket memory ID within a socket in a server. * `4` - The fourth socket memory ID within a socket in a server. * `6` - The sixth socket memory ID within a socket in a server. * `8` - The eighth socket memory ID within a socket in a server. * `10` - The tenth socket memory ID within a socket in a server. * `12` - The twelfth socket memory ID within a socket in a server. diff --git a/model_memory_persistent_memory_namespace.go b/model_memory_persistent_memory_namespace.go index 3c75e2e152..a6d8ed8689 100644 --- a/model_memory_persistent_memory_namespace.go +++ b/model_memory_persistent_memory_namespace.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -95,6 +95,11 @@ func (o *MemoryPersistentMemoryNamespace) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "memory.PersistentMemoryNamespace" of the ClassId field. +func (o *MemoryPersistentMemoryNamespace) GetDefaultClassId() interface{} { + return "memory.PersistentMemoryNamespace" +} + // GetObjectType returns the ObjectType field value func (o *MemoryPersistentMemoryNamespace) GetObjectType() string { if o == nil { @@ -119,6 +124,11 @@ func (o *MemoryPersistentMemoryNamespace) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "memory.PersistentMemoryNamespace" of the ObjectType field. +func (o *MemoryPersistentMemoryNamespace) GetDefaultObjectType() interface{} { + return "memory.PersistentMemoryNamespace" +} + // GetCapacity returns the Capacity field value if set, zero value otherwise. func (o *MemoryPersistentMemoryNamespace) GetCapacity() string { if o == nil || IsNil(o.Capacity) { @@ -458,7 +468,13 @@ func (o MemoryPersistentMemoryNamespace) ToMap() (map[string]interface{}, error) if errInventoryBase != nil { return map[string]interface{}{}, errInventoryBase } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Capacity) { toSerialize["Capacity"] = o.Capacity @@ -504,6 +520,13 @@ func (o *MemoryPersistentMemoryNamespace) UnmarshalJSON(data []byte) (err error) "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -513,11 +536,23 @@ func (o *MemoryPersistentMemoryNamespace) UnmarshalJSON(data []byte) (err error) } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type MemoryPersistentMemoryNamespaceWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_memory_persistent_memory_namespace_config_result.go b/model_memory_persistent_memory_namespace_config_result.go index 1c593faaa1..4ca76235ce 100644 --- a/model_memory_persistent_memory_namespace_config_result.go +++ b/model_memory_persistent_memory_namespace_config_result.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -91,6 +91,11 @@ func (o *MemoryPersistentMemoryNamespaceConfigResult) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "memory.PersistentMemoryNamespaceConfigResult" of the ClassId field. +func (o *MemoryPersistentMemoryNamespaceConfigResult) GetDefaultClassId() interface{} { + return "memory.PersistentMemoryNamespaceConfigResult" +} + // GetObjectType returns the ObjectType field value func (o *MemoryPersistentMemoryNamespaceConfigResult) GetObjectType() string { if o == nil { @@ -115,6 +120,11 @@ func (o *MemoryPersistentMemoryNamespaceConfigResult) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "memory.PersistentMemoryNamespaceConfigResult" of the ObjectType field. +func (o *MemoryPersistentMemoryNamespaceConfigResult) GetDefaultObjectType() interface{} { + return "memory.PersistentMemoryNamespaceConfigResult" +} + // GetConfigStatus returns the ConfigStatus field value if set, zero value otherwise. func (o *MemoryPersistentMemoryNamespaceConfigResult) GetConfigStatus() string { if o == nil || IsNil(o.ConfigStatus) { @@ -390,7 +400,13 @@ func (o MemoryPersistentMemoryNamespaceConfigResult) ToMap() (map[string]interfa if errInventoryBase != nil { return map[string]interface{}{}, errInventoryBase } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.ConfigStatus) { toSerialize["ConfigStatus"] = o.ConfigStatus @@ -430,6 +446,13 @@ func (o *MemoryPersistentMemoryNamespaceConfigResult) UnmarshalJSON(data []byte) "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -439,11 +462,23 @@ func (o *MemoryPersistentMemoryNamespaceConfigResult) UnmarshalJSON(data []byte) } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type MemoryPersistentMemoryNamespaceConfigResultWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_memory_persistent_memory_namespace_config_result_list.go b/model_memory_persistent_memory_namespace_config_result_list.go index 9d61071085..46d70ed244 100644 --- a/model_memory_persistent_memory_namespace_config_result_list.go +++ b/model_memory_persistent_memory_namespace_config_result_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *MemoryPersistentMemoryNamespaceConfigResultList) GetResultsOk() ([]Memo // HasResults returns a boolean if a field has been set. func (o *MemoryPersistentMemoryNamespaceConfigResultList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *MemoryPersistentMemoryNamespaceConfigResultList) UnmarshalJSON(data []b "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *MemoryPersistentMemoryNamespaceConfigResultList) UnmarshalJSON(data []b } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type MemoryPersistentMemoryNamespaceConfigResultListWithoutEmbeddedStruct struct { // The total number of 'memory.PersistentMemoryNamespaceConfigResult' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_memory_persistent_memory_namespace_config_result_relationship.go b/model_memory_persistent_memory_namespace_config_result_relationship.go index 44fd3c2a7a..aadc7821fc 100644 --- a/model_memory_persistent_memory_namespace_config_result_relationship.go +++ b/model_memory_persistent_memory_namespace_config_result_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_memory_persistent_memory_namespace_config_result_response.go b/model_memory_persistent_memory_namespace_config_result_response.go index 910d51e3c0..bb387d7500 100644 --- a/model_memory_persistent_memory_namespace_config_result_response.go +++ b/model_memory_persistent_memory_namespace_config_result_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_memory_persistent_memory_namespace_list.go b/model_memory_persistent_memory_namespace_list.go index a75efa49db..cd14852f4c 100644 --- a/model_memory_persistent_memory_namespace_list.go +++ b/model_memory_persistent_memory_namespace_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *MemoryPersistentMemoryNamespaceList) GetResultsOk() ([]MemoryPersistent // HasResults returns a boolean if a field has been set. func (o *MemoryPersistentMemoryNamespaceList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *MemoryPersistentMemoryNamespaceList) UnmarshalJSON(data []byte) (err er "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *MemoryPersistentMemoryNamespaceList) UnmarshalJSON(data []byte) (err er } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type MemoryPersistentMemoryNamespaceListWithoutEmbeddedStruct struct { // The total number of 'memory.PersistentMemoryNamespace' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_memory_persistent_memory_namespace_relationship.go b/model_memory_persistent_memory_namespace_relationship.go index b2d1d7587e..390f844fe1 100644 --- a/model_memory_persistent_memory_namespace_relationship.go +++ b/model_memory_persistent_memory_namespace_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_memory_persistent_memory_namespace_response.go b/model_memory_persistent_memory_namespace_response.go index 051cc63191..3a61abd618 100644 --- a/model_memory_persistent_memory_namespace_response.go +++ b/model_memory_persistent_memory_namespace_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_memory_persistent_memory_policy.go b/model_memory_persistent_memory_policy.go index 38b4f98890..a26d0b7baa 100644 --- a/model_memory_persistent_memory_policy.go +++ b/model_memory_persistent_memory_policy.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -98,6 +98,11 @@ func (o *MemoryPersistentMemoryPolicy) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "memory.PersistentMemoryPolicy" of the ClassId field. +func (o *MemoryPersistentMemoryPolicy) GetDefaultClassId() interface{} { + return "memory.PersistentMemoryPolicy" +} + // GetObjectType returns the ObjectType field value func (o *MemoryPersistentMemoryPolicy) GetObjectType() string { if o == nil { @@ -122,6 +127,11 @@ func (o *MemoryPersistentMemoryPolicy) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "memory.PersistentMemoryPolicy" of the ObjectType field. +func (o *MemoryPersistentMemoryPolicy) GetDefaultObjectType() interface{} { + return "memory.PersistentMemoryPolicy" +} + // GetGoals returns the Goals field value if set, zero value otherwise (both if not set or set to explicit null). func (o *MemoryPersistentMemoryPolicy) GetGoals() []MemoryPersistentMemoryGoal { if o == nil { @@ -143,7 +153,7 @@ func (o *MemoryPersistentMemoryPolicy) GetGoalsOk() ([]MemoryPersistentMemoryGoa // HasGoals returns a boolean if a field has been set. func (o *MemoryPersistentMemoryPolicy) HasGoals() bool { - if o != nil && IsNil(o.Goals) { + if o != nil && !IsNil(o.Goals) { return true } @@ -219,7 +229,7 @@ func (o *MemoryPersistentMemoryPolicy) GetLogicalNamespacesOk() ([]MemoryPersist // HasLogicalNamespaces returns a boolean if a field has been set. func (o *MemoryPersistentMemoryPolicy) HasLogicalNamespaces() bool { - if o != nil && IsNil(o.LogicalNamespaces) { + if o != nil && !IsNil(o.LogicalNamespaces) { return true } @@ -359,7 +369,7 @@ func (o *MemoryPersistentMemoryPolicy) GetProfilesOk() ([]PolicyAbstractConfigPr // HasProfiles returns a boolean if a field has been set. func (o *MemoryPersistentMemoryPolicy) HasProfiles() bool { - if o != nil && IsNil(o.Profiles) { + if o != nil && !IsNil(o.Profiles) { return true } @@ -389,7 +399,13 @@ func (o MemoryPersistentMemoryPolicy) ToMap() (map[string]interface{}, error) { if errPolicyAbstractPolicy != nil { return map[string]interface{}{}, errPolicyAbstractPolicy } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.Goals != nil { toSerialize["Goals"] = o.Goals @@ -429,6 +445,13 @@ func (o *MemoryPersistentMemoryPolicy) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -438,11 +461,23 @@ func (o *MemoryPersistentMemoryPolicy) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type MemoryPersistentMemoryPolicyWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_memory_persistent_memory_policy_list.go b/model_memory_persistent_memory_policy_list.go index cfe9e15cab..cf7a13f139 100644 --- a/model_memory_persistent_memory_policy_list.go +++ b/model_memory_persistent_memory_policy_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *MemoryPersistentMemoryPolicyList) GetResultsOk() ([]MemoryPersistentMem // HasResults returns a boolean if a field has been set. func (o *MemoryPersistentMemoryPolicyList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *MemoryPersistentMemoryPolicyList) UnmarshalJSON(data []byte) (err error "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *MemoryPersistentMemoryPolicyList) UnmarshalJSON(data []byte) (err error } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type MemoryPersistentMemoryPolicyListWithoutEmbeddedStruct struct { // The total number of 'memory.PersistentMemoryPolicy' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_memory_persistent_memory_policy_response.go b/model_memory_persistent_memory_policy_response.go index 3175db8794..2627f7cb50 100644 --- a/model_memory_persistent_memory_policy_response.go +++ b/model_memory_persistent_memory_policy_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_memory_persistent_memory_region.go b/model_memory_persistent_memory_region.go index 43f9376ce6..8ffbeecad6 100644 --- a/model_memory_persistent_memory_region.go +++ b/model_memory_persistent_memory_region.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -103,6 +103,11 @@ func (o *MemoryPersistentMemoryRegion) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "memory.PersistentMemoryRegion" of the ClassId field. +func (o *MemoryPersistentMemoryRegion) GetDefaultClassId() interface{} { + return "memory.PersistentMemoryRegion" +} + // GetObjectType returns the ObjectType field value func (o *MemoryPersistentMemoryRegion) GetObjectType() string { if o == nil { @@ -127,6 +132,11 @@ func (o *MemoryPersistentMemoryRegion) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "memory.PersistentMemoryRegion" of the ObjectType field. +func (o *MemoryPersistentMemoryRegion) GetDefaultObjectType() interface{} { + return "memory.PersistentMemoryRegion" +} + // GetFreeCapacity returns the FreeCapacity field value if set, zero value otherwise. func (o *MemoryPersistentMemoryRegion) GetFreeCapacity() string { if o == nil || IsNil(o.FreeCapacity) { @@ -522,7 +532,7 @@ func (o *MemoryPersistentMemoryRegion) GetPersistentMemoryNamespacesOk() ([]Memo // HasPersistentMemoryNamespaces returns a boolean if a field has been set. func (o *MemoryPersistentMemoryRegion) HasPersistentMemoryNamespaces() bool { - if o != nil && IsNil(o.PersistentMemoryNamespaces) { + if o != nil && !IsNil(o.PersistentMemoryNamespaces) { return true } @@ -595,7 +605,13 @@ func (o MemoryPersistentMemoryRegion) ToMap() (map[string]interface{}, error) { if errInventoryBase != nil { return map[string]interface{}{}, errInventoryBase } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.FreeCapacity) { toSerialize["FreeCapacity"] = o.FreeCapacity @@ -653,6 +669,13 @@ func (o *MemoryPersistentMemoryRegion) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -662,11 +685,23 @@ func (o *MemoryPersistentMemoryRegion) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type MemoryPersistentMemoryRegionWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_memory_persistent_memory_region_list.go b/model_memory_persistent_memory_region_list.go index 368e36bab6..218393c5c8 100644 --- a/model_memory_persistent_memory_region_list.go +++ b/model_memory_persistent_memory_region_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *MemoryPersistentMemoryRegionList) GetResultsOk() ([]MemoryPersistentMem // HasResults returns a boolean if a field has been set. func (o *MemoryPersistentMemoryRegionList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *MemoryPersistentMemoryRegionList) UnmarshalJSON(data []byte) (err error "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *MemoryPersistentMemoryRegionList) UnmarshalJSON(data []byte) (err error } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type MemoryPersistentMemoryRegionListWithoutEmbeddedStruct struct { // The total number of 'memory.PersistentMemoryRegion' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_memory_persistent_memory_region_relationship.go b/model_memory_persistent_memory_region_relationship.go index 0544c17896..f703cb6232 100644 --- a/model_memory_persistent_memory_region_relationship.go +++ b/model_memory_persistent_memory_region_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_memory_persistent_memory_region_response.go b/model_memory_persistent_memory_region_response.go index e9a74c5eef..d130805943 100644 --- a/model_memory_persistent_memory_region_response.go +++ b/model_memory_persistent_memory_region_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_memory_persistent_memory_unit.go b/model_memory_persistent_memory_unit.go index d97226050c..d17386ea13 100644 --- a/model_memory_persistent_memory_unit.go +++ b/model_memory_persistent_memory_unit.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -113,6 +113,11 @@ func (o *MemoryPersistentMemoryUnit) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "memory.PersistentMemoryUnit" of the ClassId field. +func (o *MemoryPersistentMemoryUnit) GetDefaultClassId() interface{} { + return "memory.PersistentMemoryUnit" +} + // GetObjectType returns the ObjectType field value func (o *MemoryPersistentMemoryUnit) GetObjectType() string { if o == nil { @@ -137,6 +142,11 @@ func (o *MemoryPersistentMemoryUnit) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "memory.PersistentMemoryUnit" of the ObjectType field. +func (o *MemoryPersistentMemoryUnit) GetDefaultObjectType() interface{} { + return "memory.PersistentMemoryUnit" +} + // GetAppDirectCapacity returns the AppDirectCapacity field value if set, zero value otherwise. func (o *MemoryPersistentMemoryUnit) GetAppDirectCapacity() string { if o == nil || IsNil(o.AppDirectCapacity) { @@ -764,7 +774,13 @@ func (o MemoryPersistentMemoryUnit) ToMap() (map[string]interface{}, error) { if errMemoryAbstractUnit != nil { return map[string]interface{}{}, errMemoryAbstractUnit } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.AppDirectCapacity) { toSerialize["AppDirectCapacity"] = o.AppDirectCapacity @@ -837,6 +853,13 @@ func (o *MemoryPersistentMemoryUnit) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -846,11 +869,23 @@ func (o *MemoryPersistentMemoryUnit) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type MemoryPersistentMemoryUnitWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_memory_persistent_memory_unit_list.go b/model_memory_persistent_memory_unit_list.go index c5df91f03b..a529ab25e7 100644 --- a/model_memory_persistent_memory_unit_list.go +++ b/model_memory_persistent_memory_unit_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *MemoryPersistentMemoryUnitList) GetResultsOk() ([]MemoryPersistentMemor // HasResults returns a boolean if a field has been set. func (o *MemoryPersistentMemoryUnitList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *MemoryPersistentMemoryUnitList) UnmarshalJSON(data []byte) (err error) "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *MemoryPersistentMemoryUnitList) UnmarshalJSON(data []byte) (err error) } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type MemoryPersistentMemoryUnitListWithoutEmbeddedStruct struct { // The total number of 'memory.PersistentMemoryUnit' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_memory_persistent_memory_unit_relationship.go b/model_memory_persistent_memory_unit_relationship.go index 713e77537c..5e4aef5c08 100644 --- a/model_memory_persistent_memory_unit_relationship.go +++ b/model_memory_persistent_memory_unit_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_memory_persistent_memory_unit_response.go b/model_memory_persistent_memory_unit_response.go index ac7741d1ba..03728d6fe8 100644 --- a/model_memory_persistent_memory_unit_response.go +++ b/model_memory_persistent_memory_unit_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_memory_unit.go b/model_memory_unit.go index c2fec11f52..b87fedabef 100644 --- a/model_memory_unit.go +++ b/model_memory_unit.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -93,6 +93,11 @@ func (o *MemoryUnit) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "memory.Unit" of the ClassId field. +func (o *MemoryUnit) GetDefaultClassId() interface{} { + return "memory.Unit" +} + // GetObjectType returns the ObjectType field value func (o *MemoryUnit) GetObjectType() string { if o == nil { @@ -117,6 +122,11 @@ func (o *MemoryUnit) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "memory.Unit" of the ObjectType field. +func (o *MemoryUnit) GetDefaultObjectType() interface{} { + return "memory.Unit" +} + // GetDescription returns the Description field value if set, zero value otherwise. func (o *MemoryUnit) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -424,7 +434,13 @@ func (o MemoryUnit) ToMap() (map[string]interface{}, error) { if errMemoryAbstractUnit != nil { return map[string]interface{}{}, errMemoryAbstractUnit } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Description) { toSerialize["Description"] = o.Description @@ -467,6 +483,13 @@ func (o *MemoryUnit) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -476,11 +499,23 @@ func (o *MemoryUnit) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type MemoryUnitWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_memory_unit_list.go b/model_memory_unit_list.go index 160b24727c..0f240151e6 100644 --- a/model_memory_unit_list.go +++ b/model_memory_unit_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *MemoryUnitList) GetResultsOk() ([]MemoryUnit, bool) { // HasResults returns a boolean if a field has been set. func (o *MemoryUnitList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *MemoryUnitList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *MemoryUnitList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type MemoryUnitListWithoutEmbeddedStruct struct { // The total number of 'memory.Unit' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_memory_unit_relationship.go b/model_memory_unit_relationship.go index 18d22ad926..46c0a49983 100644 --- a/model_memory_unit_relationship.go +++ b/model_memory_unit_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_memory_unit_response.go b/model_memory_unit_response.go index 851bc70b62..997bed36ba 100644 --- a/model_memory_unit_response.go +++ b/model_memory_unit_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_meraki_device.go b/model_meraki_device.go index 5f1c99a3d8..066a5eccdd 100644 --- a/model_meraki_device.go +++ b/model_meraki_device.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -88,6 +88,11 @@ func (o *MerakiDevice) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "meraki.Device" of the ClassId field. +func (o *MerakiDevice) GetDefaultClassId() interface{} { + return "meraki.Device" +} + // GetObjectType returns the ObjectType field value func (o *MerakiDevice) GetObjectType() string { if o == nil { @@ -112,6 +117,11 @@ func (o *MerakiDevice) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "meraki.Device" of the ObjectType field. +func (o *MerakiDevice) GetDefaultObjectType() interface{} { + return "meraki.Device" +} + // GetLanIp returns the LanIp field value if set, zero value otherwise. func (o *MerakiDevice) GetLanIp() string { if o == nil || IsNil(o.LanIp) { @@ -312,7 +322,13 @@ func (o MerakiDevice) ToMap() (map[string]interface{}, error) { if errEquipmentAbstractDevice != nil { return map[string]interface{}{}, errEquipmentAbstractDevice } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.LanIp) { toSerialize["LanIp"] = o.LanIp @@ -346,6 +362,13 @@ func (o *MerakiDevice) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -355,11 +378,23 @@ func (o *MerakiDevice) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type MerakiDeviceWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_meraki_device_list.go b/model_meraki_device_list.go index 572c06d43f..1a66a51900 100644 --- a/model_meraki_device_list.go +++ b/model_meraki_device_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *MerakiDeviceList) GetResultsOk() ([]MerakiDevice, bool) { // HasResults returns a boolean if a field has been set. func (o *MerakiDeviceList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *MerakiDeviceList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *MerakiDeviceList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type MerakiDeviceListWithoutEmbeddedStruct struct { // The total number of 'meraki.Device' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_meraki_device_relationship.go b/model_meraki_device_relationship.go index 9ad1a27c55..e380a2abb2 100644 --- a/model_meraki_device_relationship.go +++ b/model_meraki_device_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_meraki_device_response.go b/model_meraki_device_response.go index 7cede3724c..70cf9052f5 100644 --- a/model_meraki_device_response.go +++ b/model_meraki_device_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_meraki_network.go b/model_meraki_network.go index 7af256720b..2e42c381e9 100644 --- a/model_meraki_network.go +++ b/model_meraki_network.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -90,6 +90,11 @@ func (o *MerakiNetwork) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "meraki.Network" of the ClassId field. +func (o *MerakiNetwork) GetDefaultClassId() interface{} { + return "meraki.Network" +} + // GetObjectType returns the ObjectType field value func (o *MerakiNetwork) GetObjectType() string { if o == nil { @@ -114,6 +119,11 @@ func (o *MerakiNetwork) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "meraki.Network" of the ObjectType field. +func (o *MerakiNetwork) GetDefaultObjectType() interface{} { + return "meraki.Network" +} + // GetName returns the Name field value if set, zero value otherwise. func (o *MerakiNetwork) GetName() string { if o == nil || IsNil(o.Name) { @@ -199,7 +209,7 @@ func (o *MerakiNetwork) GetNetworkTagsOk() ([]string, bool) { // HasNetworkTags returns a boolean if a field has been set. func (o *MerakiNetwork) HasNetworkTags() bool { - if o != nil && IsNil(o.NetworkTags) { + if o != nil && !IsNil(o.NetworkTags) { return true } @@ -264,7 +274,7 @@ func (o *MerakiNetwork) GetProductTypesOk() ([]string, bool) { // HasProductTypes returns a boolean if a field has been set. func (o *MerakiNetwork) HasProductTypes() bool { - if o != nil && IsNil(o.ProductTypes) { + if o != nil && !IsNil(o.ProductTypes) { return true } @@ -380,7 +390,13 @@ func (o MerakiNetwork) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Name) { toSerialize["Name"] = o.Name @@ -420,6 +436,13 @@ func (o *MerakiNetwork) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -429,11 +452,23 @@ func (o *MerakiNetwork) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type MerakiNetworkWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_meraki_network_list.go b/model_meraki_network_list.go index c07d452da4..a155cba90e 100644 --- a/model_meraki_network_list.go +++ b/model_meraki_network_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *MerakiNetworkList) GetResultsOk() ([]MerakiNetwork, bool) { // HasResults returns a boolean if a field has been set. func (o *MerakiNetworkList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *MerakiNetworkList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *MerakiNetworkList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type MerakiNetworkListWithoutEmbeddedStruct struct { // The total number of 'meraki.Network' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_meraki_network_relationship.go b/model_meraki_network_relationship.go index 90dff6a453..952e7cdb33 100644 --- a/model_meraki_network_relationship.go +++ b/model_meraki_network_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_meraki_network_response.go b/model_meraki_network_response.go index 49fef7ab11..fe9cc543b9 100644 --- a/model_meraki_network_response.go +++ b/model_meraki_network_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_meraki_organization.go b/model_meraki_organization.go index 1ae477c1e5..7b3d671f6f 100644 --- a/model_meraki_organization.go +++ b/model_meraki_organization.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -85,6 +85,11 @@ func (o *MerakiOrganization) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "meraki.Organization" of the ClassId field. +func (o *MerakiOrganization) GetDefaultClassId() interface{} { + return "meraki.Organization" +} + // GetObjectType returns the ObjectType field value func (o *MerakiOrganization) GetObjectType() string { if o == nil { @@ -109,6 +114,11 @@ func (o *MerakiOrganization) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "meraki.Organization" of the ObjectType field. +func (o *MerakiOrganization) GetDefaultObjectType() interface{} { + return "meraki.Organization" +} + // GetName returns the Name field value if set, zero value otherwise. func (o *MerakiOrganization) GetName() string { if o == nil || IsNil(o.Name) { @@ -234,7 +244,13 @@ func (o MerakiOrganization) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Name) { toSerialize["Name"] = o.Name @@ -262,6 +278,13 @@ func (o *MerakiOrganization) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -271,11 +294,23 @@ func (o *MerakiOrganization) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type MerakiOrganizationWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_meraki_organization_list.go b/model_meraki_organization_list.go index 3b52b179c9..4d1628ec79 100644 --- a/model_meraki_organization_list.go +++ b/model_meraki_organization_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *MerakiOrganizationList) GetResultsOk() ([]MerakiOrganization, bool) { // HasResults returns a boolean if a field has been set. func (o *MerakiOrganizationList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *MerakiOrganizationList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *MerakiOrganizationList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type MerakiOrganizationListWithoutEmbeddedStruct struct { // The total number of 'meraki.Organization' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_meraki_organization_relationship.go b/model_meraki_organization_relationship.go index 21c7cf1a7d..a2cca748b8 100644 --- a/model_meraki_organization_relationship.go +++ b/model_meraki_organization_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_meraki_organization_response.go b/model_meraki_organization_response.go index 5c0598052d..33ace02cf8 100644 --- a/model_meraki_organization_response.go +++ b/model_meraki_organization_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_meraki_port_profile.go b/model_meraki_port_profile.go index d0460456d5..5bdb4231a4 100644 --- a/model_meraki_port_profile.go +++ b/model_meraki_port_profile.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -85,6 +85,11 @@ func (o *MerakiPortProfile) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "meraki.PortProfile" of the ClassId field. +func (o *MerakiPortProfile) GetDefaultClassId() interface{} { + return "meraki.PortProfile" +} + // GetObjectType returns the ObjectType field value func (o *MerakiPortProfile) GetObjectType() string { if o == nil { @@ -109,6 +114,11 @@ func (o *MerakiPortProfile) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "meraki.PortProfile" of the ObjectType field. +func (o *MerakiPortProfile) GetDefaultObjectType() interface{} { + return "meraki.PortProfile" +} + // GetName returns the Name field value if set, zero value otherwise. func (o *MerakiPortProfile) GetName() string { if o == nil || IsNil(o.Name) { @@ -234,7 +244,13 @@ func (o MerakiPortProfile) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Name) { toSerialize["Name"] = o.Name @@ -262,6 +278,13 @@ func (o *MerakiPortProfile) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -271,11 +294,23 @@ func (o *MerakiPortProfile) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type MerakiPortProfileWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_meraki_port_profile_list.go b/model_meraki_port_profile_list.go index 85f15857a5..b1b394dd7a 100644 --- a/model_meraki_port_profile_list.go +++ b/model_meraki_port_profile_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *MerakiPortProfileList) GetResultsOk() ([]MerakiPortProfile, bool) { // HasResults returns a boolean if a field has been set. func (o *MerakiPortProfileList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *MerakiPortProfileList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *MerakiPortProfileList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type MerakiPortProfileListWithoutEmbeddedStruct struct { // The total number of 'meraki.PortProfile' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_meraki_port_profile_response.go b/model_meraki_port_profile_response.go index bfdc446ca9..62b0d02607 100644 --- a/model_meraki_port_profile_response.go +++ b/model_meraki_port_profile_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_meraki_tag.go b/model_meraki_tag.go index 4e0e6a3467..d08a49d0bf 100644 --- a/model_meraki_tag.go +++ b/model_meraki_tag.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -87,6 +87,11 @@ func (o *MerakiTag) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "meraki.Tag" of the ClassId field. +func (o *MerakiTag) GetDefaultClassId() interface{} { + return "meraki.Tag" +} + // GetObjectType returns the ObjectType field value func (o *MerakiTag) GetObjectType() string { if o == nil { @@ -111,6 +116,11 @@ func (o *MerakiTag) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "meraki.Tag" of the ObjectType field. +func (o *MerakiTag) GetDefaultObjectType() interface{} { + return "meraki.Tag" +} + // GetName returns the Name field value if set, zero value otherwise. func (o *MerakiTag) GetName() string { if o == nil || IsNil(o.Name) { @@ -322,7 +332,13 @@ func (o MerakiTag) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Name) { toSerialize["Name"] = o.Name @@ -356,6 +372,13 @@ func (o *MerakiTag) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -365,11 +388,23 @@ func (o *MerakiTag) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type MerakiTagWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_meraki_tag_list.go b/model_meraki_tag_list.go index 1fd4e3e346..26a54aa1da 100644 --- a/model_meraki_tag_list.go +++ b/model_meraki_tag_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *MerakiTagList) GetResultsOk() ([]MerakiTag, bool) { // HasResults returns a boolean if a field has been set. func (o *MerakiTagList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *MerakiTagList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *MerakiTagList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type MerakiTagListWithoutEmbeddedStruct struct { // The total number of 'meraki.Tag' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_meraki_tag_response.go b/model_meraki_tag_response.go index 9d0727b193..b4cea8bf96 100644 --- a/model_meraki_tag_response.go +++ b/model_meraki_tag_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_meta_access_privilege.go b/model_meta_access_privilege.go index 2b222f46f9..e4465c59c7 100644 --- a/model_meta_access_privilege.go +++ b/model_meta_access_privilege.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -84,6 +84,11 @@ func (o *MetaAccessPrivilege) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "meta.AccessPrivilege" of the ClassId field. +func (o *MetaAccessPrivilege) GetDefaultClassId() interface{} { + return "meta.AccessPrivilege" +} + // GetObjectType returns the ObjectType field value func (o *MetaAccessPrivilege) GetObjectType() string { if o == nil { @@ -108,6 +113,11 @@ func (o *MetaAccessPrivilege) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "meta.AccessPrivilege" of the ObjectType field. +func (o *MetaAccessPrivilege) GetDefaultObjectType() interface{} { + return "meta.AccessPrivilege" +} + // GetMethod returns the Method field value if set, zero value otherwise. func (o *MetaAccessPrivilege) GetMethod() string { if o == nil || IsNil(o.Method) { @@ -190,7 +200,13 @@ func (o MetaAccessPrivilege) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Method) { toSerialize["Method"] = o.Method @@ -215,6 +231,13 @@ func (o *MetaAccessPrivilege) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -224,11 +247,23 @@ func (o *MetaAccessPrivilege) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type MetaAccessPrivilegeWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_meta_definition.go b/model_meta_definition.go index a1a5de10bb..84d9845a2c 100644 --- a/model_meta_definition.go +++ b/model_meta_definition.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -107,6 +107,11 @@ func (o *MetaDefinition) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "meta.Definition" of the ClassId field. +func (o *MetaDefinition) GetDefaultClassId() interface{} { + return "meta.Definition" +} + // GetObjectType returns the ObjectType field value func (o *MetaDefinition) GetObjectType() string { if o == nil { @@ -131,6 +136,11 @@ func (o *MetaDefinition) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "meta.Definition" of the ObjectType field. +func (o *MetaDefinition) GetDefaultObjectType() interface{} { + return "meta.Definition" +} + // GetAccessPrivileges returns the AccessPrivileges field value if set, zero value otherwise (both if not set or set to explicit null). func (o *MetaDefinition) GetAccessPrivileges() []MetaAccessPrivilege { if o == nil { @@ -152,7 +162,7 @@ func (o *MetaDefinition) GetAccessPrivilegesOk() ([]MetaAccessPrivilege, bool) { // HasAccessPrivileges returns a boolean if a field has been set. func (o *MetaDefinition) HasAccessPrivileges() bool { - if o != nil && IsNil(o.AccessPrivileges) { + if o != nil && !IsNil(o.AccessPrivileges) { return true } @@ -185,7 +195,7 @@ func (o *MetaDefinition) GetAncestorClassesOk() ([]string, bool) { // HasAncestorClasses returns a boolean if a field has been set. func (o *MetaDefinition) HasAncestorClasses() bool { - if o != nil && IsNil(o.AncestorClasses) { + if o != nil && !IsNil(o.AncestorClasses) { return true } @@ -218,7 +228,7 @@ func (o *MetaDefinition) GetDisplayNameMetasOk() ([]MetaDisplayNameDefinition, b // HasDisplayNameMetas returns a boolean if a field has been set. func (o *MetaDefinition) HasDisplayNameMetas() bool { - if o != nil && IsNil(o.DisplayNameMetas) { + if o != nil && !IsNil(o.DisplayNameMetas) { return true } @@ -251,7 +261,7 @@ func (o *MetaDefinition) GetIdentityConstraintsOk() ([]MetaIdentityDefinition, b // HasIdentityConstraints returns a boolean if a field has been set. func (o *MetaDefinition) HasIdentityConstraints() bool { - if o != nil && IsNil(o.IdentityConstraints) { + if o != nil && !IsNil(o.IdentityConstraints) { return true } @@ -508,7 +518,7 @@ func (o *MetaDefinition) GetPropertiesOk() ([]MetaPropDefinition, bool) { // HasProperties returns a boolean if a field has been set. func (o *MetaDefinition) HasProperties() bool { - if o != nil && IsNil(o.Properties) { + if o != nil && !IsNil(o.Properties) { return true } @@ -573,7 +583,7 @@ func (o *MetaDefinition) GetRelationshipsOk() ([]MetaRelationshipDefinition, boo // HasRelationships returns a boolean if a field has been set. func (o *MetaDefinition) HasRelationships() bool { - if o != nil && IsNil(o.Relationships) { + if o != nil && !IsNil(o.Relationships) { return true } @@ -606,7 +616,7 @@ func (o *MetaDefinition) GetResourcePoolTypesOk() ([]string, bool) { // HasResourcePoolTypes returns a boolean if a field has been set. func (o *MetaDefinition) HasResourcePoolTypes() bool { - if o != nil && IsNil(o.ResourcePoolTypes) { + if o != nil && !IsNil(o.ResourcePoolTypes) { return true } @@ -700,7 +710,13 @@ func (o MetaDefinition) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.AccessPrivileges != nil { toSerialize["AccessPrivileges"] = o.AccessPrivileges @@ -770,6 +786,13 @@ func (o *MetaDefinition) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -779,11 +802,23 @@ func (o *MetaDefinition) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type MetaDefinitionWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_meta_definition_list.go b/model_meta_definition_list.go index dde978ac39..afd51e6279 100644 --- a/model_meta_definition_list.go +++ b/model_meta_definition_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *MetaDefinitionList) GetResultsOk() ([]MetaDefinition, bool) { // HasResults returns a boolean if a field has been set. func (o *MetaDefinitionList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *MetaDefinitionList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *MetaDefinitionList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type MetaDefinitionListWithoutEmbeddedStruct struct { // The total number of 'meta.Definition' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_meta_definition_response.go b/model_meta_definition_response.go index 7f46cb1e65..ef4b3652ec 100644 --- a/model_meta_definition_response.go +++ b/model_meta_definition_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_meta_display_name_definition.go b/model_meta_display_name_definition.go index 1f181e6aba..e36de52772 100644 --- a/model_meta_display_name_definition.go +++ b/model_meta_display_name_definition.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -86,6 +86,11 @@ func (o *MetaDisplayNameDefinition) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "meta.DisplayNameDefinition" of the ClassId field. +func (o *MetaDisplayNameDefinition) GetDefaultClassId() interface{} { + return "meta.DisplayNameDefinition" +} + // GetObjectType returns the ObjectType field value func (o *MetaDisplayNameDefinition) GetObjectType() string { if o == nil { @@ -110,6 +115,11 @@ func (o *MetaDisplayNameDefinition) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "meta.DisplayNameDefinition" of the ObjectType field. +func (o *MetaDisplayNameDefinition) GetDefaultObjectType() interface{} { + return "meta.DisplayNameDefinition" +} + // GetFormat returns the Format field value if set, zero value otherwise. func (o *MetaDisplayNameDefinition) GetFormat() string { if o == nil || IsNil(o.Format) { @@ -224,7 +234,13 @@ func (o MetaDisplayNameDefinition) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Format) { toSerialize["Format"] = o.Format @@ -252,6 +268,13 @@ func (o *MetaDisplayNameDefinition) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -261,11 +284,23 @@ func (o *MetaDisplayNameDefinition) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type MetaDisplayNameDefinitionWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_meta_identity_definition.go b/model_meta_identity_definition.go index 9800c52d31..7b2e121d66 100644 --- a/model_meta_identity_definition.go +++ b/model_meta_identity_definition.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -81,6 +81,11 @@ func (o *MetaIdentityDefinition) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "meta.IdentityDefinition" of the ClassId field. +func (o *MetaIdentityDefinition) GetDefaultClassId() interface{} { + return "meta.IdentityDefinition" +} + // GetObjectType returns the ObjectType field value func (o *MetaIdentityDefinition) GetObjectType() string { if o == nil { @@ -105,6 +110,11 @@ func (o *MetaIdentityDefinition) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "meta.IdentityDefinition" of the ObjectType field. +func (o *MetaIdentityDefinition) GetDefaultObjectType() interface{} { + return "meta.IdentityDefinition" +} + // GetFields returns the Fields field value if set, zero value otherwise (both if not set or set to explicit null). func (o *MetaIdentityDefinition) GetFields() []string { if o == nil { @@ -126,7 +136,7 @@ func (o *MetaIdentityDefinition) GetFieldsOk() ([]string, bool) { // HasFields returns a boolean if a field has been set. func (o *MetaIdentityDefinition) HasFields() bool { - if o != nil && IsNil(o.Fields) { + if o != nil && !IsNil(o.Fields) { return true } @@ -156,7 +166,13 @@ func (o MetaIdentityDefinition) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.Fields != nil { toSerialize["Fields"] = o.Fields @@ -178,6 +194,13 @@ func (o *MetaIdentityDefinition) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -187,11 +210,23 @@ func (o *MetaIdentityDefinition) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type MetaIdentityDefinitionWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_meta_prop_definition.go b/model_meta_prop_definition.go index 9319e2d25c..e3ec8984dc 100644 --- a/model_meta_prop_definition.go +++ b/model_meta_prop_definition.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -98,6 +98,11 @@ func (o *MetaPropDefinition) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "meta.PropDefinition" of the ClassId field. +func (o *MetaPropDefinition) GetDefaultClassId() interface{} { + return "meta.PropDefinition" +} + // GetObjectType returns the ObjectType field value func (o *MetaPropDefinition) GetObjectType() string { if o == nil { @@ -122,6 +127,11 @@ func (o *MetaPropDefinition) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "meta.PropDefinition" of the ObjectType field. +func (o *MetaPropDefinition) GetDefaultObjectType() interface{} { + return "meta.PropDefinition" +} + // GetApiAccess returns the ApiAccess field value if set, zero value otherwise. func (o *MetaPropDefinition) GetApiAccess() string { if o == nil || IsNil(o.ApiAccess) { @@ -175,7 +185,7 @@ func (o *MetaPropDefinition) GetDefaultOk() (*interface{}, bool) { // HasDefault returns a boolean if a field has been set. func (o *MetaPropDefinition) HasDefault() bool { - if o != nil && IsNil(o.Default) { + if o != nil && !IsNil(o.Default) { return true } @@ -429,7 +439,13 @@ func (o MetaPropDefinition) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.ApiAccess) { toSerialize["ApiAccess"] = o.ApiAccess @@ -475,6 +491,13 @@ func (o *MetaPropDefinition) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -484,11 +507,23 @@ func (o *MetaPropDefinition) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type MetaPropDefinitionWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_meta_relationship_definition.go b/model_meta_relationship_definition.go index ec70df4c7e..229038bd02 100644 --- a/model_meta_relationship_definition.go +++ b/model_meta_relationship_definition.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -96,6 +96,11 @@ func (o *MetaRelationshipDefinition) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "meta.RelationshipDefinition" of the ClassId field. +func (o *MetaRelationshipDefinition) GetDefaultClassId() interface{} { + return "meta.RelationshipDefinition" +} + // GetObjectType returns the ObjectType field value func (o *MetaRelationshipDefinition) GetObjectType() string { if o == nil { @@ -120,6 +125,11 @@ func (o *MetaRelationshipDefinition) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "meta.RelationshipDefinition" of the ObjectType field. +func (o *MetaRelationshipDefinition) GetDefaultObjectType() interface{} { + return "meta.RelationshipDefinition" +} + // GetApiAccess returns the ApiAccess field value if set, zero value otherwise. func (o *MetaRelationshipDefinition) GetApiAccess() string { if o == nil || IsNil(o.ApiAccess) { @@ -394,7 +404,13 @@ func (o MetaRelationshipDefinition) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.ApiAccess) { toSerialize["ApiAccess"] = o.ApiAccess @@ -437,6 +453,13 @@ func (o *MetaRelationshipDefinition) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -446,11 +469,23 @@ func (o *MetaRelationshipDefinition) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type MetaRelationshipDefinitionWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_metrics_metric_criterion.go b/model_metrics_metric_criterion.go index 4f308ca5b5..7bd8ac6e7a 100644 --- a/model_metrics_metric_criterion.go +++ b/model_metrics_metric_criterion.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -96,6 +96,11 @@ func (o *MetricsMetricCriterion) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "metrics.MetricCriterion" of the ClassId field. +func (o *MetricsMetricCriterion) GetDefaultClassId() interface{} { + return "metrics.MetricCriterion" +} + // GetObjectType returns the ObjectType field value func (o *MetricsMetricCriterion) GetObjectType() string { if o == nil { @@ -120,6 +125,11 @@ func (o *MetricsMetricCriterion) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "metrics.MetricCriterion" of the ObjectType field. +func (o *MetricsMetricCriterion) GetDefaultObjectType() interface{} { + return "metrics.MetricCriterion" +} + // GetAggregation returns the Aggregation field value if set, zero value otherwise. func (o *MetricsMetricCriterion) GetAggregation() string { if o == nil || IsNil(o.Aggregation) { @@ -173,7 +183,7 @@ func (o *MetricsMetricCriterion) GetFiltersOk() ([]string, bool) { // HasFilters returns a boolean if a field has been set. func (o *MetricsMetricCriterion) HasFilters() bool { - if o != nil && IsNil(o.Filters) { + if o != nil && !IsNil(o.Filters) { return true } @@ -206,7 +216,7 @@ func (o *MetricsMetricCriterion) GetGroupsOk() ([]string, bool) { // HasGroups returns a boolean if a field has been set. func (o *MetricsMetricCriterion) HasGroups() bool { - if o != nil && IsNil(o.Groups) { + if o != nil && !IsNil(o.Groups) { return true } @@ -428,7 +438,13 @@ func (o MetricsMetricCriterion) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Aggregation) { toSerialize["Aggregation"] = o.Aggregation @@ -474,6 +490,13 @@ func (o *MetricsMetricCriterion) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -483,11 +506,23 @@ func (o *MetricsMetricCriterion) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type MetricsMetricCriterionWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_metrics_metrics_exploration.go b/model_metrics_metrics_exploration.go index 471e0e04aa..b2e9fb055a 100644 --- a/model_metrics_metrics_exploration.go +++ b/model_metrics_metrics_exploration.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -94,6 +94,11 @@ func (o *MetricsMetricsExploration) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "metrics.MetricsExploration" of the ClassId field. +func (o *MetricsMetricsExploration) GetDefaultClassId() interface{} { + return "metrics.MetricsExploration" +} + // GetObjectType returns the ObjectType field value func (o *MetricsMetricsExploration) GetObjectType() string { if o == nil { @@ -118,6 +123,11 @@ func (o *MetricsMetricsExploration) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "metrics.MetricsExploration" of the ObjectType field. +func (o *MetricsMetricsExploration) GetDefaultObjectType() interface{} { + return "metrics.MetricsExploration" +} + // GetDescription returns the Description field value if set, zero value otherwise. func (o *MetricsMetricsExploration) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -203,7 +213,7 @@ func (o *MetricsMetricsExploration) GetIntervalsOk() ([]string, bool) { // HasIntervals returns a boolean if a field has been set. func (o *MetricsMetricsExploration) HasIntervals() bool { - if o != nil && IsNil(o.Intervals) { + if o != nil && !IsNil(o.Intervals) { return true } @@ -268,7 +278,7 @@ func (o *MetricsMetricsExploration) GetMetricCriteriaOk() ([]MetricsMetricCriter // HasMetricCriteria returns a boolean if a field has been set. func (o *MetricsMetricsExploration) HasMetricCriteria() bool { - if o != nil && IsNil(o.MetricCriteria) { + if o != nil && !IsNil(o.MetricCriteria) { return true } @@ -333,7 +343,7 @@ func (o *MetricsMetricsExploration) GetRawQueriesOk() ([]string, bool) { // HasRawQueries returns a boolean if a field has been set. func (o *MetricsMetricsExploration) HasRawQueries() bool { - if o != nil && IsNil(o.RawQueries) { + if o != nil && !IsNil(o.RawQueries) { return true } @@ -366,7 +376,7 @@ func (o *MetricsMetricsExploration) GetVisualConfigOk() (*interface{}, bool) { // HasVisualConfig returns a boolean if a field has been set. func (o *MetricsMetricsExploration) HasVisualConfig() bool { - if o != nil && IsNil(o.VisualConfig) { + if o != nil && !IsNil(o.VisualConfig) { return true } @@ -439,7 +449,13 @@ func (o MetricsMetricsExploration) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Description) { toSerialize["Description"] = o.Description @@ -485,6 +501,13 @@ func (o *MetricsMetricsExploration) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -494,11 +517,23 @@ func (o *MetricsMetricsExploration) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type MetricsMetricsExplorationWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_metrics_metrics_exploration_list.go b/model_metrics_metrics_exploration_list.go index d49ba04139..364d732245 100644 --- a/model_metrics_metrics_exploration_list.go +++ b/model_metrics_metrics_exploration_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *MetricsMetricsExplorationList) GetResultsOk() ([]MetricsMetricsExplorat // HasResults returns a boolean if a field has been set. func (o *MetricsMetricsExplorationList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *MetricsMetricsExplorationList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *MetricsMetricsExplorationList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type MetricsMetricsExplorationListWithoutEmbeddedStruct struct { // The total number of 'metrics.MetricsExploration' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_metrics_metrics_exploration_response.go b/model_metrics_metrics_exploration_response.go index 11df8397c2..75c76d9559 100644 --- a/model_metrics_metrics_exploration_response.go +++ b/model_metrics_metrics_exploration_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_mo_aggregate_transform.go b/model_mo_aggregate_transform.go index 31ae5e3b79..602f1f3263 100644 --- a/model_mo_aggregate_transform.go +++ b/model_mo_aggregate_transform.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -70,7 +70,7 @@ func (o *MoAggregateTransform) GetResultsOk() ([]map[string]interface{}, bool) { // HasResults returns a boolean if a field has been set. func (o *MoAggregateTransform) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -119,6 +119,10 @@ func (o *MoAggregateTransform) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -128,11 +132,23 @@ func (o *MoAggregateTransform) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type MoAggregateTransformWithoutEmbeddedStruct struct { // The results of the aggregation query. Results []map[string]interface{} `json:"Results,omitempty"` diff --git a/model_mo_base_complex_type.go b/model_mo_base_complex_type.go index 573367016c..9297a4f2d8 100644 --- a/model_mo_base_complex_type.go +++ b/model_mo_base_complex_type.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -126,6 +126,10 @@ func (o *MoBaseComplexType) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -135,11 +139,23 @@ func (o *MoBaseComplexType) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } varMoBaseComplexType := _MoBaseComplexType{} err = json.Unmarshal(data, &varMoBaseComplexType) diff --git a/model_mo_base_mo.go b/model_mo_base_mo.go index 935966babb..ff1e7fa4f5 100644 --- a/model_mo_base_mo.go +++ b/model_mo_base_mo.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -301,7 +301,7 @@ func (o *MoBaseMo) GetOwnersOk() ([]string, bool) { // HasOwners returns a boolean if a field has been set. func (o *MoBaseMo) HasOwners() bool { - if o != nil && IsNil(o.Owners) { + if o != nil && !IsNil(o.Owners) { return true } @@ -366,7 +366,7 @@ func (o *MoBaseMo) GetTagsOk() ([]MoTag, bool) { // HasTags returns a boolean if a field has been set. func (o *MoBaseMo) HasTags() bool { - if o != nil && IsNil(o.Tags) { + if o != nil && !IsNil(o.Tags) { return true } @@ -442,7 +442,7 @@ func (o *MoBaseMo) GetAncestorsOk() ([]MoBaseMoRelationship, bool) { // HasAncestors returns a boolean if a field has been set. func (o *MoBaseMo) HasAncestors() bool { - if o != nil && IsNil(o.Ancestors) { + if o != nil && !IsNil(o.Ancestors) { return true } @@ -518,7 +518,7 @@ func (o *MoBaseMo) GetPermissionResourcesOk() ([]MoBaseMoRelationship, bool) { // HasPermissionResources returns a boolean if a field has been set. func (o *MoBaseMo) HasPermissionResources() bool { - if o != nil && IsNil(o.PermissionResources) { + if o != nil && !IsNil(o.PermissionResources) { return true } @@ -551,7 +551,7 @@ func (o *MoBaseMo) GetDisplayNamesOk() (*map[string][]string, bool) { // HasDisplayNames returns a boolean if a field has been set. func (o *MoBaseMo) HasDisplayNames() bool { - if o != nil && IsNil(o.DisplayNames) { + if o != nil && !IsNil(o.DisplayNames) { return true } @@ -631,6 +631,10 @@ func (o *MoBaseMo) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -640,11 +644,23 @@ func (o *MoBaseMo) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } varMoBaseMo := _MoBaseMo{} err = json.Unmarshal(data, &varMoBaseMo) diff --git a/model_mo_base_mo_relationship.go b/model_mo_base_mo_relationship.go index 6fcfbe021a..c463de3a80 100644 --- a/model_mo_base_mo_relationship.go +++ b/model_mo_base_mo_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_mo_base_response.go b/model_mo_base_response.go index 1edd491503..5033543ab8 100644 --- a/model_mo_base_response.go +++ b/model_mo_base_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -97,6 +97,10 @@ func (o *MoBaseResponse) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -106,11 +110,23 @@ func (o *MoBaseResponse) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } varMoBaseResponse := _MoBaseResponse{} err = json.Unmarshal(data, &varMoBaseResponse) diff --git a/model_mo_document_count.go b/model_mo_document_count.go index 76313a92c4..d16af494d9 100644 --- a/model_mo_document_count.go +++ b/model_mo_document_count.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -118,6 +118,10 @@ func (o *MoDocumentCount) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -127,11 +131,23 @@ func (o *MoDocumentCount) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type MoDocumentCountWithoutEmbeddedStruct struct { // The total number of resources matching the query filter, accross all pages. Count *int32 `json:"Count,omitempty"` diff --git a/model_mo_mo_ref.go b/model_mo_mo_ref.go index 35c3dcb0f7..c2dfcd0e3d 100644 --- a/model_mo_mo_ref.go +++ b/model_mo_mo_ref.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -81,6 +81,11 @@ func (o *MoMoRef) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "mo.MoRef" of the ClassId field. +func (o *MoMoRef) GetDefaultClassId() interface{} { + return "mo.MoRef" +} + // GetObjectType returns the ObjectType field value func (o *MoMoRef) GetObjectType() string { if o == nil { @@ -211,6 +216,9 @@ func (o MoMoRef) MarshalJSON() ([]byte, error) { func (o MoMoRef) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Moid) { @@ -239,6 +247,12 @@ func (o *MoMoRef) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -248,11 +262,23 @@ func (o *MoMoRef) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } varMoMoRef := _MoMoRef{} err = json.Unmarshal(data, &varMoMoRef) diff --git a/model_mo_tag.go b/model_mo_tag.go index 4c05a85d6d..7fe54b71ed 100644 --- a/model_mo_tag.go +++ b/model_mo_tag.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_mo_tag_key_summary.go b/model_mo_tag_key_summary.go index a7054f8f12..fbec1b1bce 100644 --- a/model_mo_tag_key_summary.go +++ b/model_mo_tag_key_summary.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_mo_tag_summary.go b/model_mo_tag_summary.go index 1f9642d134..8e7b4e4b45 100644 --- a/model_mo_tag_summary.go +++ b/model_mo_tag_summary.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -101,7 +101,7 @@ func (o *MoTagSummary) GetResultsOk() ([]MoTagKeySummary, bool) { // HasResults returns a boolean if a field has been set. func (o *MoTagSummary) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } diff --git a/model_mo_version_context.go b/model_mo_version_context.go index 4f3a122de5..87fc91fc24 100644 --- a/model_mo_version_context.go +++ b/model_mo_version_context.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -91,6 +91,11 @@ func (o *MoVersionContext) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "mo.VersionContext" of the ClassId field. +func (o *MoVersionContext) GetDefaultClassId() interface{} { + return "mo.VersionContext" +} + // GetObjectType returns the ObjectType field value func (o *MoVersionContext) GetObjectType() string { if o == nil { @@ -115,6 +120,11 @@ func (o *MoVersionContext) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "mo.VersionContext" of the ObjectType field. +func (o *MoVersionContext) GetDefaultObjectType() interface{} { + return "mo.VersionContext" +} + // GetInterestedMos returns the InterestedMos field value if set, zero value otherwise (both if not set or set to explicit null). func (o *MoVersionContext) GetInterestedMos() []MoMoRef { if o == nil { @@ -136,7 +146,7 @@ func (o *MoVersionContext) GetInterestedMosOk() ([]MoMoRef, bool) { // HasInterestedMos returns a boolean if a field has been set. func (o *MoVersionContext) HasInterestedMos() bool { - if o != nil && IsNil(o.InterestedMos) { + if o != nil && !IsNil(o.InterestedMos) { return true } @@ -326,7 +336,13 @@ func (o MoVersionContext) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.InterestedMos != nil { toSerialize["InterestedMos"] = o.InterestedMos @@ -363,6 +379,13 @@ func (o *MoVersionContext) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -372,11 +395,23 @@ func (o *MoVersionContext) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type MoVersionContextWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_monitoring_category_status.go b/model_monitoring_category_status.go index 880d4f32a6..a93024c2ca 100644 --- a/model_monitoring_category_status.go +++ b/model_monitoring_category_status.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -31,7 +31,7 @@ type MonitoringCategoryStatus struct { // Name of the category for which status is being reported (for e.g. 'Licensing', 'Advisories'). CategoryLabel *string `json:"CategoryLabel,omitempty"` // Link to the corresponding category specific page in Intersight to get additional information and troubleshoot. for e.g. 'Alarms' category would have the deeplink as 'https://intersight.com/an/cond/alarms/active'. - Deeplink *string `json:"Deeplink,omitempty"` + Deeplink *string `json:"Deeplink,omitempty" validate:"regexp=^$|^(?:http(s)?:\\/\\/)?[\\\\w.-]+(?:\\\\.[\\\\w\\\\.-]+)+[\\\\w\\\\-\\\\._~:\\/?#[\\\\]@!\\\\$&'\\\\(\\\\)\\\\*\\\\+,;=.]+$"` // Additional information regarding category status that may be displayed in UI related to the category status. Optional and currently unused. Details *string `json:"Details,omitempty"` // Additional parameter to be used for traceability and troubleshooting, currently unused. @@ -90,6 +90,11 @@ func (o *MonitoringCategoryStatus) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "monitoring.CategoryStatus" of the ClassId field. +func (o *MonitoringCategoryStatus) GetDefaultClassId() interface{} { + return "monitoring.CategoryStatus" +} + // GetObjectType returns the ObjectType field value func (o *MonitoringCategoryStatus) GetObjectType() string { if o == nil { @@ -114,6 +119,11 @@ func (o *MonitoringCategoryStatus) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "monitoring.CategoryStatus" of the ObjectType field. +func (o *MonitoringCategoryStatus) GetDefaultObjectType() interface{} { + return "monitoring.CategoryStatus" +} + // GetCategoryLabel returns the CategoryLabel field value if set, zero value otherwise. func (o *MonitoringCategoryStatus) GetCategoryLabel() string { if o == nil || IsNil(o.CategoryLabel) { @@ -292,7 +302,13 @@ func (o MonitoringCategoryStatus) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.CategoryLabel) { toSerialize["CategoryLabel"] = o.CategoryLabel @@ -326,6 +342,13 @@ func (o *MonitoringCategoryStatus) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -335,11 +358,23 @@ func (o *MonitoringCategoryStatus) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type MonitoringCategoryStatusWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` @@ -348,7 +383,7 @@ func (o *MonitoringCategoryStatus) UnmarshalJSON(data []byte) (err error) { // Name of the category for which status is being reported (for e.g. 'Licensing', 'Advisories'). CategoryLabel *string `json:"CategoryLabel,omitempty"` // Link to the corresponding category specific page in Intersight to get additional information and troubleshoot. for e.g. 'Alarms' category would have the deeplink as 'https://intersight.com/an/cond/alarms/active'. - Deeplink *string `json:"Deeplink,omitempty"` + Deeplink *string `json:"Deeplink,omitempty" validate:"regexp=^$|^(?:http(s)?:\\/\\/)?[\\\\w.-]+(?:\\\\.[\\\\w\\\\.-]+)+[\\\\w\\\\-\\\\._~:\\/?#[\\\\]@!\\\\$&'\\\\(\\\\)\\\\*\\\\+,;=.]+$"` // Additional information regarding category status that may be displayed in UI related to the category status. Optional and currently unused. Details *string `json:"Details,omitempty"` // Additional parameter to be used for traceability and troubleshooting, currently unused. diff --git a/model_monitoring_health_status.go b/model_monitoring_health_status.go index 6093657ff9..35e2c017a8 100644 --- a/model_monitoring_health_status.go +++ b/model_monitoring_health_status.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -89,6 +89,11 @@ func (o *MonitoringHealthStatus) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "monitoring.HealthStatus" of the ClassId field. +func (o *MonitoringHealthStatus) GetDefaultClassId() interface{} { + return "monitoring.HealthStatus" +} + // GetObjectType returns the ObjectType field value func (o *MonitoringHealthStatus) GetObjectType() string { if o == nil { @@ -113,6 +118,11 @@ func (o *MonitoringHealthStatus) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "monitoring.HealthStatus" of the ObjectType field. +func (o *MonitoringHealthStatus) GetDefaultObjectType() interface{} { + return "monitoring.HealthStatus" +} + // GetCategoryStatus returns the CategoryStatus field value if set, zero value otherwise (both if not set or set to explicit null). func (o *MonitoringHealthStatus) GetCategoryStatus() []MonitoringCategoryStatus { if o == nil { @@ -134,7 +144,7 @@ func (o *MonitoringHealthStatus) GetCategoryStatusOk() ([]MonitoringCategoryStat // HasCategoryStatus returns a boolean if a field has been set. func (o *MonitoringHealthStatus) HasCategoryStatus() bool { - if o != nil && IsNil(o.CategoryStatus) { + if o != nil && !IsNil(o.CategoryStatus) { return true } @@ -303,7 +313,13 @@ func (o MonitoringHealthStatus) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.CategoryStatus != nil { toSerialize["CategoryStatus"] = o.CategoryStatus @@ -337,6 +353,13 @@ func (o *MonitoringHealthStatus) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -346,11 +369,23 @@ func (o *MonitoringHealthStatus) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type MonitoringHealthStatusWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_monitoring_health_status_list.go b/model_monitoring_health_status_list.go index d60b3b3ff3..88665c7165 100644 --- a/model_monitoring_health_status_list.go +++ b/model_monitoring_health_status_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *MonitoringHealthStatusList) GetResultsOk() ([]MonitoringHealthStatus, b // HasResults returns a boolean if a field has been set. func (o *MonitoringHealthStatusList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *MonitoringHealthStatusList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *MonitoringHealthStatusList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type MonitoringHealthStatusListWithoutEmbeddedStruct struct { // The total number of 'monitoring.HealthStatus' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_monitoring_health_status_response.go b/model_monitoring_health_status_response.go index b0ead1b668..d9ed66a7f2 100644 --- a/model_monitoring_health_status_response.go +++ b/model_monitoring_health_status_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_motemplate_action_entry.go b/model_motemplate_action_entry.go index 571dcffecd..63c0808ca9 100644 --- a/model_motemplate_action_entry.go +++ b/model_motemplate_action_entry.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -87,6 +87,11 @@ func (o *MotemplateActionEntry) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "motemplate.ActionEntry" of the ClassId field. +func (o *MotemplateActionEntry) GetDefaultClassId() interface{} { + return "motemplate.ActionEntry" +} + // GetObjectType returns the ObjectType field value func (o *MotemplateActionEntry) GetObjectType() string { if o == nil { @@ -111,6 +116,11 @@ func (o *MotemplateActionEntry) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "motemplate.ActionEntry" of the ObjectType field. +func (o *MotemplateActionEntry) GetDefaultObjectType() interface{} { + return "motemplate.ActionEntry" +} + // GetParams returns the Params field value if set, zero value otherwise (both if not set or set to explicit null). func (o *MotemplateActionEntry) GetParams() []MotemplateActionParam { if o == nil { @@ -132,7 +142,7 @@ func (o *MotemplateActionEntry) GetParamsOk() ([]MotemplateActionParam, bool) { // HasParams returns a boolean if a field has been set. func (o *MotemplateActionEntry) HasParams() bool { - if o != nil && IsNil(o.Params) { + if o != nil && !IsNil(o.Params) { return true } @@ -194,7 +204,13 @@ func (o MotemplateActionEntry) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.Params != nil { toSerialize["Params"] = o.Params @@ -219,6 +235,13 @@ func (o *MotemplateActionEntry) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -228,11 +251,23 @@ func (o *MotemplateActionEntry) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type MotemplateActionEntryWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_motemplate_action_param.go b/model_motemplate_action_param.go index e6bc2dab9d..f99fc2b9cc 100644 --- a/model_motemplate_action_param.go +++ b/model_motemplate_action_param.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -88,6 +88,11 @@ func (o *MotemplateActionParam) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "motemplate.ActionParam" of the ClassId field. +func (o *MotemplateActionParam) GetDefaultClassId() interface{} { + return "motemplate.ActionParam" +} + // GetObjectType returns the ObjectType field value func (o *MotemplateActionParam) GetObjectType() string { if o == nil { @@ -112,6 +117,11 @@ func (o *MotemplateActionParam) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "motemplate.ActionParam" of the ObjectType field. +func (o *MotemplateActionParam) GetDefaultObjectType() interface{} { + return "motemplate.ActionParam" +} + // GetName returns the Name field value if set, zero value otherwise. func (o *MotemplateActionParam) GetName() string { if o == nil || IsNil(o.Name) { @@ -194,7 +204,13 @@ func (o MotemplateActionParam) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Name) { toSerialize["Name"] = o.Name @@ -219,6 +235,13 @@ func (o *MotemplateActionParam) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -228,11 +251,23 @@ func (o *MotemplateActionParam) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type MotemplateActionParamWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_motemplate_sync_error.go b/model_motemplate_sync_error.go index 6b935cb3b9..e6da42eb4a 100644 --- a/model_motemplate_sync_error.go +++ b/model_motemplate_sync_error.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -84,6 +84,11 @@ func (o *MotemplateSyncError) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "motemplate.SyncError" of the ClassId field. +func (o *MotemplateSyncError) GetDefaultClassId() interface{} { + return "motemplate.SyncError" +} + // GetObjectType returns the ObjectType field value func (o *MotemplateSyncError) GetObjectType() string { if o == nil { @@ -108,6 +113,11 @@ func (o *MotemplateSyncError) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "motemplate.SyncError" of the ObjectType field. +func (o *MotemplateSyncError) GetDefaultObjectType() interface{} { + return "motemplate.SyncError" +} + // GetMessage returns the Message field value if set, zero value otherwise. func (o *MotemplateSyncError) GetMessage() string { if o == nil || IsNil(o.Message) { @@ -190,7 +200,13 @@ func (o MotemplateSyncError) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Message) { toSerialize["Message"] = o.Message @@ -215,6 +231,13 @@ func (o *MotemplateSyncError) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -224,11 +247,23 @@ func (o *MotemplateSyncError) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type MotemplateSyncErrorWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_network_discovered_neighbor.go b/model_network_discovered_neighbor.go index 97cc265e2d..4f8bb64129 100644 --- a/model_network_discovered_neighbor.go +++ b/model_network_discovered_neighbor.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -95,6 +95,11 @@ func (o *NetworkDiscoveredNeighbor) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "network.DiscoveredNeighbor" of the ClassId field. +func (o *NetworkDiscoveredNeighbor) GetDefaultClassId() interface{} { + return "network.DiscoveredNeighbor" +} + // GetObjectType returns the ObjectType field value func (o *NetworkDiscoveredNeighbor) GetObjectType() string { if o == nil { @@ -119,6 +124,11 @@ func (o *NetworkDiscoveredNeighbor) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "network.DiscoveredNeighbor" of the ObjectType field. +func (o *NetworkDiscoveredNeighbor) GetDefaultObjectType() interface{} { + return "network.DiscoveredNeighbor" +} + // GetDeviceId returns the DeviceId field value if set, zero value otherwise. func (o *NetworkDiscoveredNeighbor) GetDeviceId() string { if o == nil || IsNil(o.DeviceId) { @@ -204,7 +214,7 @@ func (o *NetworkDiscoveredNeighbor) GetNeighborDeviceCapabilityOk() ([]string, b // HasNeighborDeviceCapability returns a boolean if a field has been set. func (o *NetworkDiscoveredNeighbor) HasNeighborDeviceCapability() bool { - if o != nil && IsNil(o.NeighborDeviceCapability) { + if o != nil && !IsNil(o.NeighborDeviceCapability) { return true } @@ -448,7 +458,13 @@ func (o NetworkDiscoveredNeighbor) ToMap() (map[string]interface{}, error) { if errInventoryBase != nil { return map[string]interface{}{}, errInventoryBase } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.DeviceId) { toSerialize["DeviceId"] = o.DeviceId @@ -494,6 +510,13 @@ func (o *NetworkDiscoveredNeighbor) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -503,11 +526,23 @@ func (o *NetworkDiscoveredNeighbor) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type NetworkDiscoveredNeighborWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_network_discovered_neighbor_list.go b/model_network_discovered_neighbor_list.go index 0a1cae6ab0..4d6a271523 100644 --- a/model_network_discovered_neighbor_list.go +++ b/model_network_discovered_neighbor_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *NetworkDiscoveredNeighborList) GetResultsOk() ([]NetworkDiscoveredNeigh // HasResults returns a boolean if a field has been set. func (o *NetworkDiscoveredNeighborList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *NetworkDiscoveredNeighborList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *NetworkDiscoveredNeighborList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type NetworkDiscoveredNeighborListWithoutEmbeddedStruct struct { // The total number of 'network.DiscoveredNeighbor' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_network_discovered_neighbor_relationship.go b/model_network_discovered_neighbor_relationship.go index 2577171846..128984db99 100644 --- a/model_network_discovered_neighbor_relationship.go +++ b/model_network_discovered_neighbor_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_network_discovered_neighbor_response.go b/model_network_discovered_neighbor_response.go index 50babace10..d83f89e94a 100644 --- a/model_network_discovered_neighbor_response.go +++ b/model_network_discovered_neighbor_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_network_dns.go b/model_network_dns.go index abd0f92224..675df8fc70 100644 --- a/model_network_dns.go +++ b/model_network_dns.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -88,6 +88,11 @@ func (o *NetworkDns) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "network.Dns" of the ClassId field. +func (o *NetworkDns) GetDefaultClassId() interface{} { + return "network.Dns" +} + // GetObjectType returns the ObjectType field value func (o *NetworkDns) GetObjectType() string { if o == nil { @@ -112,6 +117,11 @@ func (o *NetworkDns) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "network.Dns" of the ObjectType field. +func (o *NetworkDns) GetDefaultObjectType() interface{} { + return "network.Dns" +} + // GetAdditionalDomains returns the AdditionalDomains field value if set, zero value otherwise (both if not set or set to explicit null). func (o *NetworkDns) GetAdditionalDomains() []string { if o == nil { @@ -133,7 +143,7 @@ func (o *NetworkDns) GetAdditionalDomainsOk() ([]string, bool) { // HasAdditionalDomains returns a boolean if a field has been set. func (o *NetworkDns) HasAdditionalDomains() bool { - if o != nil && IsNil(o.AdditionalDomains) { + if o != nil && !IsNil(o.AdditionalDomains) { return true } @@ -198,7 +208,7 @@ func (o *NetworkDns) GetNameServersOk() ([]string, bool) { // HasNameServers returns a boolean if a field has been set. func (o *NetworkDns) HasNameServers() bool { - if o != nil && IsNil(o.NameServers) { + if o != nil && !IsNil(o.NameServers) { return true } @@ -346,7 +356,13 @@ func (o NetworkDns) ToMap() (map[string]interface{}, error) { if errInventoryBase != nil { return map[string]interface{}{}, errInventoryBase } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.AdditionalDomains != nil { toSerialize["AdditionalDomains"] = o.AdditionalDomains @@ -383,6 +399,13 @@ func (o *NetworkDns) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -392,11 +415,23 @@ func (o *NetworkDns) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type NetworkDnsWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_network_dns_list.go b/model_network_dns_list.go index 0a7ec236ab..b6e17bb577 100644 --- a/model_network_dns_list.go +++ b/model_network_dns_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *NetworkDnsList) GetResultsOk() ([]NetworkDns, bool) { // HasResults returns a boolean if a field has been set. func (o *NetworkDnsList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *NetworkDnsList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *NetworkDnsList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type NetworkDnsListWithoutEmbeddedStruct struct { // The total number of 'network.Dns' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_network_dns_relationship.go b/model_network_dns_relationship.go index ef07f084ed..ce324e9367 100644 --- a/model_network_dns_relationship.go +++ b/model_network_dns_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_network_dns_response.go b/model_network_dns_response.go index 07ce1c333d..70a0363db4 100644 --- a/model_network_dns_response.go +++ b/model_network_dns_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_network_element.go b/model_network_element.go index c4d936e244..a9afef69ad 100644 --- a/model_network_element.go +++ b/model_network_element.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -44,7 +44,7 @@ type NetworkElement struct { // Connection status of the switch. ConnectionStatus *string `json:"ConnectionStatus,omitempty"` // The default domain name configured on the switch. - DefaultDomain *string `json:"DefaultDomain,omitempty"` + DefaultDomain *string `json:"DefaultDomain,omitempty" validate:"regexp=^$|^[a-zA-Z0-9]+([-.]{1}[a-zA-Z0-9]+)*$"` // The user configured Ethernet operational mode for this switch (End-Host or Switching). // Deprecated EthernetMode *string `json:"EthernetMode,omitempty"` @@ -117,7 +117,7 @@ type NetworkElement struct { // Total available memory on this switch platform. TotalMemory *int64 `json:"TotalMemory,omitempty"` // The user defined label assigned to the switch. - UserLabel *string `json:"UserLabel,omitempty"` + UserLabel *string `json:"UserLabel,omitempty" validate:"regexp=^[ !#$%&\\\\(\\\\)\\\\*\\\\+,\\\\-\\\\.\\/:;\\\\?@\\\\[\\\\]_\\\\{\\\\|\\\\}~a-zA-Z0-9]*$"` // Firmware version of the switch. Version *string `json:"Version,omitempty"` // An array of relationships to equipmentSwitchCard resources. @@ -236,6 +236,11 @@ func (o *NetworkElement) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "network.Element" of the ClassId field. +func (o *NetworkElement) GetDefaultClassId() interface{} { + return "network.Element" +} + // GetObjectType returns the ObjectType field value func (o *NetworkElement) GetObjectType() string { if o == nil { @@ -260,6 +265,11 @@ func (o *NetworkElement) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "network.Element" of the ObjectType field. +func (o *NetworkElement) GetDefaultObjectType() interface{} { + return "network.Element" +} + // GetAdminEvacState returns the AdminEvacState field value if set, zero value otherwise. func (o *NetworkElement) GetAdminEvacState() string { if o == nil || IsNil(o.AdminEvacState) { @@ -1741,7 +1751,7 @@ func (o *NetworkElement) GetCardsOk() ([]EquipmentSwitchCardRelationship, bool) // HasCards returns a boolean if a field has been set. func (o *NetworkElement) HasCards() bool { - if o != nil && IsNil(o.Cards) { + if o != nil && !IsNil(o.Cards) { return true } @@ -1774,7 +1784,7 @@ func (o *NetworkElement) GetCdpNeighborOk() ([]NetworkDiscoveredNeighborRelation // HasCdpNeighbor returns a boolean if a field has been set. func (o *NetworkElement) HasCdpNeighbor() bool { - if o != nil && IsNil(o.CdpNeighbor) { + if o != nil && !IsNil(o.CdpNeighbor) { return true } @@ -1807,7 +1817,7 @@ func (o *NetworkElement) GetConsoleOk() ([]ConsoleConsoleConfigRelationship, boo // HasConsole returns a boolean if a field has been set. func (o *NetworkElement) HasConsole() bool { - if o != nil && IsNil(o.Console) { + if o != nil && !IsNil(o.Console) { return true } @@ -1840,7 +1850,7 @@ func (o *NetworkElement) GetDnsOk() ([]NetworkDnsRelationship, bool) { // HasDns returns a boolean if a field has been set. func (o *NetworkElement) HasDns() bool { - if o != nil && IsNil(o.Dns) { + if o != nil && !IsNil(o.Dns) { return true } @@ -1873,7 +1883,7 @@ func (o *NetworkElement) GetEtherPortChannelsOk() ([]EtherPortChannelRelationshi // HasEtherPortChannels returns a boolean if a field has been set. func (o *NetworkElement) HasEtherPortChannels() bool { - if o != nil && IsNil(o.EtherPortChannels) { + if o != nil && !IsNil(o.EtherPortChannels) { return true } @@ -1906,7 +1916,7 @@ func (o *NetworkElement) GetFanmodulesOk() ([]EquipmentFanModuleRelationship, bo // HasFanmodules returns a boolean if a field has been set. func (o *NetworkElement) HasFanmodules() bool { - if o != nil && IsNil(o.Fanmodules) { + if o != nil && !IsNil(o.Fanmodules) { return true } @@ -1939,7 +1949,7 @@ func (o *NetworkElement) GetFcPortChannelsOk() ([]FcPortChannelRelationship, boo // HasFcPortChannels returns a boolean if a field has been set. func (o *NetworkElement) HasFcPortChannels() bool { - if o != nil && IsNil(o.FcPortChannels) { + if o != nil && !IsNil(o.FcPortChannels) { return true } @@ -1972,7 +1982,7 @@ func (o *NetworkElement) GetFeatureControlOk() ([]NetworkFeatureControlRelations // HasFeatureControl returns a boolean if a field has been set. func (o *NetworkElement) HasFeatureControl() bool { - if o != nil && IsNil(o.FeatureControl) { + if o != nil && !IsNil(o.FeatureControl) { return true } @@ -2005,7 +2015,7 @@ func (o *NetworkElement) GetInterfaceListOk() ([]NetworkInterfaceListRelationshi // HasInterfaceList returns a boolean if a field has been set. func (o *NetworkElement) HasInterfaceList() bool { - if o != nil && IsNil(o.InterfaceList) { + if o != nil && !IsNil(o.InterfaceList) { return true } @@ -2081,7 +2091,7 @@ func (o *NetworkElement) GetLicenseFileOk() ([]NetworkLicenseFileRelationship, b // HasLicenseFile returns a boolean if a field has been set. func (o *NetworkElement) HasLicenseFile() bool { - if o != nil && IsNil(o.LicenseFile) { + if o != nil && !IsNil(o.LicenseFile) { return true } @@ -2114,7 +2124,7 @@ func (o *NetworkElement) GetLldpNeighborOk() ([]NetworkDiscoveredNeighborRelatio // HasLldpNeighbor returns a boolean if a field has been set. func (o *NetworkElement) HasLldpNeighbor() bool { - if o != nil && IsNil(o.LldpNeighbor) { + if o != nil && !IsNil(o.LldpNeighbor) { return true } @@ -2362,7 +2372,7 @@ func (o *NetworkElement) GetNtpServerOk() ([]NtpNtpServerRelationship, bool) { // HasNtpServer returns a boolean if a field has been set. func (o *NetworkElement) HasNtpServer() bool { - if o != nil && IsNil(o.NtpServer) { + if o != nil && !IsNil(o.NtpServer) { return true } @@ -2395,7 +2405,7 @@ func (o *NetworkElement) GetPortMacBindingsOk() ([]PortMacBindingRelationship, b // HasPortMacBindings returns a boolean if a field has been set. func (o *NetworkElement) HasPortMacBindings() bool { - if o != nil && IsNil(o.PortMacBindings) { + if o != nil && !IsNil(o.PortMacBindings) { return true } @@ -2428,7 +2438,7 @@ func (o *NetworkElement) GetProcessorUnitOk() ([]ProcessorUnitRelationship, bool // HasProcessorUnit returns a boolean if a field has been set. func (o *NetworkElement) HasProcessorUnit() bool { - if o != nil && IsNil(o.ProcessorUnit) { + if o != nil && !IsNil(o.ProcessorUnit) { return true } @@ -2461,7 +2471,7 @@ func (o *NetworkElement) GetPsusOk() ([]EquipmentPsuRelationship, bool) { // HasPsus returns a boolean if a field has been set. func (o *NetworkElement) HasPsus() bool { - if o != nil && IsNil(o.Psus) { + if o != nil && !IsNil(o.Psus) { return true } @@ -2537,7 +2547,7 @@ func (o *NetworkElement) GetSensorsOk() ([]EquipmentSensorRelationship, bool) { // HasSensors returns a boolean if a field has been set. func (o *NetworkElement) HasSensors() bool { - if o != nil && IsNil(o.Sensors) { + if o != nil && !IsNil(o.Sensors) { return true } @@ -2570,7 +2580,7 @@ func (o *NetworkElement) GetStorageItemsOk() ([]StorageItemRelationship, bool) { // HasStorageItems returns a boolean if a field has been set. func (o *NetworkElement) HasStorageItems() bool { - if o != nil && IsNil(o.StorageItems) { + if o != nil && !IsNil(o.StorageItems) { return true } @@ -2603,7 +2613,7 @@ func (o *NetworkElement) GetSupervisorCardOk() ([]NetworkSupervisorCardRelations // HasSupervisorCard returns a boolean if a field has been set. func (o *NetworkElement) HasSupervisorCard() bool { - if o != nil && IsNil(o.SupervisorCard) { + if o != nil && !IsNil(o.SupervisorCard) { return true } @@ -2722,7 +2732,7 @@ func (o *NetworkElement) GetVethsOk() ([]NetworkVethernetRelationship, bool) { // HasVeths returns a boolean if a field has been set. func (o *NetworkElement) HasVeths() bool { - if o != nil && IsNil(o.Veths) { + if o != nil && !IsNil(o.Veths) { return true } @@ -2755,7 +2765,7 @@ func (o *NetworkElement) GetVfcsOk() ([]NetworkVfcRelationship, bool) { // HasVfcs returns a boolean if a field has been set. func (o *NetworkElement) HasVfcs() bool { - if o != nil && IsNil(o.Vfcs) { + if o != nil && !IsNil(o.Vfcs) { return true } @@ -2831,7 +2841,7 @@ func (o *NetworkElement) GetVpcMemberOk() ([]NetworkVpcMemberRelationship, bool) // HasVpcMember returns a boolean if a field has been set. func (o *NetworkElement) HasVpcMember() bool { - if o != nil && IsNil(o.VpcMember) { + if o != nil && !IsNil(o.VpcMember) { return true } @@ -2864,7 +2874,7 @@ func (o *NetworkElement) GetVpcPeerOk() ([]NetworkVpcPeerRelationship, bool) { // HasVpcPeer returns a boolean if a field has been set. func (o *NetworkElement) HasVpcPeer() bool { - if o != nil && IsNil(o.VpcPeer) { + if o != nil && !IsNil(o.VpcPeer) { return true } @@ -2897,7 +2907,7 @@ func (o *NetworkElement) GetVrfOk() ([]NetworkVrfRelationship, bool) { // HasVrf returns a boolean if a field has been set. func (o *NetworkElement) HasVrf() bool { - if o != nil && IsNil(o.Vrf) { + if o != nil && !IsNil(o.Vrf) { return true } @@ -2927,7 +2937,13 @@ func (o NetworkElement) ToMap() (map[string]interface{}, error) { if errEquipmentBase != nil { return map[string]interface{}{}, errEquipmentBase } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.AdminEvacState) { toSerialize["AdminEvacState"] = o.AdminEvacState @@ -3180,6 +3196,13 @@ func (o *NetworkElement) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -3189,11 +3212,23 @@ func (o *NetworkElement) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type NetworkElementWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` @@ -3215,7 +3250,7 @@ func (o *NetworkElement) UnmarshalJSON(data []byte) (err error) { // Connection status of the switch. ConnectionStatus *string `json:"ConnectionStatus,omitempty"` // The default domain name configured on the switch. - DefaultDomain *string `json:"DefaultDomain,omitempty"` + DefaultDomain *string `json:"DefaultDomain,omitempty" validate:"regexp=^$|^[a-zA-Z0-9]+([-.]{1}[a-zA-Z0-9]+)*$"` // The user configured Ethernet operational mode for this switch (End-Host or Switching). // Deprecated EthernetMode *string `json:"EthernetMode,omitempty"` @@ -3288,7 +3323,7 @@ func (o *NetworkElement) UnmarshalJSON(data []byte) (err error) { // Total available memory on this switch platform. TotalMemory *int64 `json:"TotalMemory,omitempty"` // The user defined label assigned to the switch. - UserLabel *string `json:"UserLabel,omitempty"` + UserLabel *string `json:"UserLabel,omitempty" validate:"regexp=^[ !#$%&\\\\(\\\\)\\\\*\\\\+,\\\\-\\\\.\\/:;\\\\?@\\\\[\\\\]_\\\\{\\\\|\\\\}~a-zA-Z0-9]*$"` // Firmware version of the switch. Version *string `json:"Version,omitempty"` // An array of relationships to equipmentSwitchCard resources. diff --git a/model_network_element_list.go b/model_network_element_list.go index 9b6ad62375..2efaa74b6b 100644 --- a/model_network_element_list.go +++ b/model_network_element_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *NetworkElementList) GetResultsOk() ([]NetworkElement, bool) { // HasResults returns a boolean if a field has been set. func (o *NetworkElementList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *NetworkElementList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *NetworkElementList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type NetworkElementListWithoutEmbeddedStruct struct { // The total number of 'network.Element' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_network_element_relationship.go b/model_network_element_relationship.go index 61191a8d97..7dfc4c0d4d 100644 --- a/model_network_element_relationship.go +++ b/model_network_element_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_network_element_response.go b/model_network_element_response.go index c0c64b6198..3b193b3d22 100644 --- a/model_network_element_response.go +++ b/model_network_element_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_network_element_summary.go b/model_network_element_summary.go index f9b3a9adef..63c605502f 100644 --- a/model_network_element_summary.go +++ b/model_network_element_summary.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -46,7 +46,7 @@ type NetworkElementSummary struct { // Connection status of the switch. ConnectionStatus *string `json:"ConnectionStatus,omitempty"` // The default domain name configured on the switch. - DefaultDomain *string `json:"DefaultDomain,omitempty"` + DefaultDomain *string `json:"DefaultDomain,omitempty" validate:"regexp=^$|^[a-zA-Z0-9]+([-.]{1}[a-zA-Z0-9]+)*$"` // The MoId of the registered device that coresponds to the server. DeviceMoId *string `json:"DeviceMoId,omitempty"` // The Distinguished Name unambiguously identifies an object in the system. @@ -156,6 +156,8 @@ type NetworkElementSummary struct { Thermal *string `json:"Thermal,omitempty"` // Total available memory on this switch platform. TotalMemory *int64 `json:"TotalMemory,omitempty"` + // The user defined label assigned to the server. + UserLabel *string `json:"UserLabel,omitempty"` // This field identifies the vendor of the given component. Vendor *string `json:"Vendor,omitempty"` // Firmware version of the switch. @@ -218,6 +220,11 @@ func (o *NetworkElementSummary) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "network.ElementSummary" of the ClassId field. +func (o *NetworkElementSummary) GetDefaultClassId() interface{} { + return "network.ElementSummary" +} + // GetObjectType returns the ObjectType field value func (o *NetworkElementSummary) GetObjectType() string { if o == nil { @@ -242,6 +249,11 @@ func (o *NetworkElementSummary) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "network.ElementSummary" of the ObjectType field. +func (o *NetworkElementSummary) GetDefaultObjectType() interface{} { + return "network.ElementSummary" +} + // GetAdminEvacState returns the AdminEvacState field value if set, zero value otherwise. func (o *NetworkElementSummary) GetAdminEvacState() string { if o == nil || IsNil(o.AdminEvacState) { @@ -2278,6 +2290,38 @@ func (o *NetworkElementSummary) SetTotalMemory(v int64) { o.TotalMemory = &v } +// GetUserLabel returns the UserLabel field value if set, zero value otherwise. +func (o *NetworkElementSummary) GetUserLabel() string { + if o == nil || IsNil(o.UserLabel) { + var ret string + return ret + } + return *o.UserLabel +} + +// GetUserLabelOk returns a tuple with the UserLabel field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *NetworkElementSummary) GetUserLabelOk() (*string, bool) { + if o == nil || IsNil(o.UserLabel) { + return nil, false + } + return o.UserLabel, true +} + +// HasUserLabel returns a boolean if a field has been set. +func (o *NetworkElementSummary) HasUserLabel() bool { + if o != nil && !IsNil(o.UserLabel) { + return true + } + + return false +} + +// SetUserLabel gets a reference to the given string and assigns it to the UserLabel field. +func (o *NetworkElementSummary) SetUserLabel(v string) { + o.UserLabel = &v +} + // GetVendor returns the Vendor field value if set, zero value otherwise. func (o *NetworkElementSummary) GetVendor() string { if o == nil || IsNil(o.Vendor) { @@ -2446,7 +2490,13 @@ func (o NetworkElementSummary) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.AdminEvacState) { toSerialize["AdminEvacState"] = o.AdminEvacState @@ -2637,6 +2687,9 @@ func (o NetworkElementSummary) ToMap() (map[string]interface{}, error) { if !IsNil(o.TotalMemory) { toSerialize["TotalMemory"] = o.TotalMemory } + if !IsNil(o.UserLabel) { + toSerialize["UserLabel"] = o.UserLabel + } if !IsNil(o.Vendor) { toSerialize["Vendor"] = o.Vendor } @@ -2666,6 +2719,13 @@ func (o *NetworkElementSummary) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -2675,11 +2735,23 @@ func (o *NetworkElementSummary) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type NetworkElementSummaryWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` @@ -2703,7 +2775,7 @@ func (o *NetworkElementSummary) UnmarshalJSON(data []byte) (err error) { // Connection status of the switch. ConnectionStatus *string `json:"ConnectionStatus,omitempty"` // The default domain name configured on the switch. - DefaultDomain *string `json:"DefaultDomain,omitempty"` + DefaultDomain *string `json:"DefaultDomain,omitempty" validate:"regexp=^$|^[a-zA-Z0-9]+([-.]{1}[a-zA-Z0-9]+)*$"` // The MoId of the registered device that coresponds to the server. DeviceMoId *string `json:"DeviceMoId,omitempty"` // The Distinguished Name unambiguously identifies an object in the system. @@ -2813,6 +2885,8 @@ func (o *NetworkElementSummary) UnmarshalJSON(data []byte) (err error) { Thermal *string `json:"Thermal,omitempty"` // Total available memory on this switch platform. TotalMemory *int64 `json:"TotalMemory,omitempty"` + // The user defined label assigned to the server. + UserLabel *string `json:"UserLabel,omitempty"` // This field identifies the vendor of the given component. Vendor *string `json:"Vendor,omitempty"` // Firmware version of the switch. @@ -2891,6 +2965,7 @@ func (o *NetworkElementSummary) UnmarshalJSON(data []byte) (err error) { varNetworkElementSummary.SystemUpTime = varNetworkElementSummaryWithoutEmbeddedStruct.SystemUpTime varNetworkElementSummary.Thermal = varNetworkElementSummaryWithoutEmbeddedStruct.Thermal varNetworkElementSummary.TotalMemory = varNetworkElementSummaryWithoutEmbeddedStruct.TotalMemory + varNetworkElementSummary.UserLabel = varNetworkElementSummaryWithoutEmbeddedStruct.UserLabel varNetworkElementSummary.Vendor = varNetworkElementSummaryWithoutEmbeddedStruct.Vendor varNetworkElementSummary.Version = varNetworkElementSummaryWithoutEmbeddedStruct.Version varNetworkElementSummary.InventoryParent = varNetworkElementSummaryWithoutEmbeddedStruct.InventoryParent @@ -2977,6 +3052,7 @@ func (o *NetworkElementSummary) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "SystemUpTime") delete(additionalProperties, "Thermal") delete(additionalProperties, "TotalMemory") + delete(additionalProperties, "UserLabel") delete(additionalProperties, "Vendor") delete(additionalProperties, "Version") delete(additionalProperties, "InventoryParent") diff --git a/model_network_element_summary_list.go b/model_network_element_summary_list.go index 193e07774e..f5ead19e42 100644 --- a/model_network_element_summary_list.go +++ b/model_network_element_summary_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *NetworkElementSummaryList) GetResultsOk() ([]NetworkElementSummary, boo // HasResults returns a boolean if a field has been set. func (o *NetworkElementSummaryList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *NetworkElementSummaryList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *NetworkElementSummaryList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type NetworkElementSummaryListWithoutEmbeddedStruct struct { // The total number of 'network.ElementSummary' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_network_element_summary_relationship.go b/model_network_element_summary_relationship.go index 9512704744..bed431b7fe 100644 --- a/model_network_element_summary_relationship.go +++ b/model_network_element_summary_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_network_element_summary_response.go b/model_network_element_summary_response.go index 539fcd55f8..cb6c005d9d 100644 --- a/model_network_element_summary_response.go +++ b/model_network_element_summary_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_network_fc_zone_info.go b/model_network_fc_zone_info.go index 2682d1d205..d6a9a8ca1e 100644 --- a/model_network_fc_zone_info.go +++ b/model_network_fc_zone_info.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -91,6 +91,11 @@ func (o *NetworkFcZoneInfo) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "network.FcZoneInfo" of the ClassId field. +func (o *NetworkFcZoneInfo) GetDefaultClassId() interface{} { + return "network.FcZoneInfo" +} + // GetObjectType returns the ObjectType field value func (o *NetworkFcZoneInfo) GetObjectType() string { if o == nil { @@ -115,6 +120,11 @@ func (o *NetworkFcZoneInfo) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "network.FcZoneInfo" of the ObjectType field. +func (o *NetworkFcZoneInfo) GetDefaultObjectType() interface{} { + return "network.FcZoneInfo" +} + // GetUserZoneCount returns the UserZoneCount field value if set, zero value otherwise. func (o *NetworkFcZoneInfo) GetUserZoneCount() int64 { if o == nil || IsNil(o.UserZoneCount) { @@ -390,7 +400,13 @@ func (o NetworkFcZoneInfo) ToMap() (map[string]interface{}, error) { if errInventoryBase != nil { return map[string]interface{}{}, errInventoryBase } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.UserZoneCount) { toSerialize["UserZoneCount"] = o.UserZoneCount @@ -430,6 +446,13 @@ func (o *NetworkFcZoneInfo) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -439,11 +462,23 @@ func (o *NetworkFcZoneInfo) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type NetworkFcZoneInfoWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_network_fc_zone_info_list.go b/model_network_fc_zone_info_list.go index 6ac6d4e73c..2c16247664 100644 --- a/model_network_fc_zone_info_list.go +++ b/model_network_fc_zone_info_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *NetworkFcZoneInfoList) GetResultsOk() ([]NetworkFcZoneInfo, bool) { // HasResults returns a boolean if a field has been set. func (o *NetworkFcZoneInfoList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *NetworkFcZoneInfoList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *NetworkFcZoneInfoList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type NetworkFcZoneInfoListWithoutEmbeddedStruct struct { // The total number of 'network.FcZoneInfo' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_network_fc_zone_info_relationship.go b/model_network_fc_zone_info_relationship.go index 610ed74fd6..84a9227f77 100644 --- a/model_network_fc_zone_info_relationship.go +++ b/model_network_fc_zone_info_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_network_fc_zone_info_response.go b/model_network_fc_zone_info_response.go index 6a9392300e..172d30851c 100644 --- a/model_network_fc_zone_info_response.go +++ b/model_network_fc_zone_info_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_network_feature_control.go b/model_network_feature_control.go index 3b5fc6be7e..2f34e38d5b 100644 --- a/model_network_feature_control.go +++ b/model_network_feature_control.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -92,6 +92,11 @@ func (o *NetworkFeatureControl) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "network.FeatureControl" of the ClassId field. +func (o *NetworkFeatureControl) GetDefaultClassId() interface{} { + return "network.FeatureControl" +} + // GetObjectType returns the ObjectType field value func (o *NetworkFeatureControl) GetObjectType() string { if o == nil { @@ -116,6 +121,11 @@ func (o *NetworkFeatureControl) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "network.FeatureControl" of the ObjectType field. +func (o *NetworkFeatureControl) GetDefaultObjectType() interface{} { + return "network.FeatureControl" +} + // GetAdminState returns the AdminState field value if set, zero value otherwise. func (o *NetworkFeatureControl) GetAdminState() string { if o == nil || IsNil(o.AdminState) { @@ -380,7 +390,13 @@ func (o NetworkFeatureControl) ToMap() (map[string]interface{}, error) { if errInventoryBase != nil { return map[string]interface{}{}, errInventoryBase } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.AdminState) { toSerialize["AdminState"] = o.AdminState @@ -420,6 +436,13 @@ func (o *NetworkFeatureControl) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -429,11 +452,23 @@ func (o *NetworkFeatureControl) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type NetworkFeatureControlWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_network_feature_control_list.go b/model_network_feature_control_list.go index 0f09b79bf7..1b3ccd32dd 100644 --- a/model_network_feature_control_list.go +++ b/model_network_feature_control_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *NetworkFeatureControlList) GetResultsOk() ([]NetworkFeatureControl, boo // HasResults returns a boolean if a field has been set. func (o *NetworkFeatureControlList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *NetworkFeatureControlList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *NetworkFeatureControlList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type NetworkFeatureControlListWithoutEmbeddedStruct struct { // The total number of 'network.FeatureControl' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_network_feature_control_relationship.go b/model_network_feature_control_relationship.go index 452e1b5421..ca60a2c4e5 100644 --- a/model_network_feature_control_relationship.go +++ b/model_network_feature_control_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_network_feature_control_response.go b/model_network_feature_control_response.go index 031f6b9930..d1ba630495 100644 --- a/model_network_feature_control_response.go +++ b/model_network_feature_control_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_network_hyper_flex_internet_protocol_address_range.go b/model_network_hyper_flex_internet_protocol_address_range.go index 214fc203d9..a3389d481d 100644 --- a/model_network_hyper_flex_internet_protocol_address_range.go +++ b/model_network_hyper_flex_internet_protocol_address_range.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -84,6 +84,11 @@ func (o *NetworkHyperFlexInternetProtocolAddressRange) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "network.HyperFlexInternetProtocolAddressRange" of the ClassId field. +func (o *NetworkHyperFlexInternetProtocolAddressRange) GetDefaultClassId() interface{} { + return "network.HyperFlexInternetProtocolAddressRange" +} + // GetObjectType returns the ObjectType field value func (o *NetworkHyperFlexInternetProtocolAddressRange) GetObjectType() string { if o == nil { @@ -108,6 +113,11 @@ func (o *NetworkHyperFlexInternetProtocolAddressRange) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "network.HyperFlexInternetProtocolAddressRange" of the ObjectType field. +func (o *NetworkHyperFlexInternetProtocolAddressRange) GetDefaultObjectType() interface{} { + return "network.HyperFlexInternetProtocolAddressRange" +} + // GetBeginAddress returns the BeginAddress field value if set, zero value otherwise. func (o *NetworkHyperFlexInternetProtocolAddressRange) GetBeginAddress() string { if o == nil || IsNil(o.BeginAddress) { @@ -190,7 +200,13 @@ func (o NetworkHyperFlexInternetProtocolAddressRange) ToMap() (map[string]interf if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.BeginAddress) { toSerialize["BeginAddress"] = o.BeginAddress @@ -215,6 +231,13 @@ func (o *NetworkHyperFlexInternetProtocolAddressRange) UnmarshalJSON(data []byte "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -224,11 +247,23 @@ func (o *NetworkHyperFlexInternetProtocolAddressRange) UnmarshalJSON(data []byte } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type NetworkHyperFlexInternetProtocolAddressRangeWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_network_hyper_flex_network_address.go b/model_network_hyper_flex_network_address.go index c45d401687..ace741789d 100644 --- a/model_network_hyper_flex_network_address.go +++ b/model_network_hyper_flex_network_address.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -86,6 +86,11 @@ func (o *NetworkHyperFlexNetworkAddress) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "network.HyperFlexNetworkAddress" of the ClassId field. +func (o *NetworkHyperFlexNetworkAddress) GetDefaultClassId() interface{} { + return "network.HyperFlexNetworkAddress" +} + // GetObjectType returns the ObjectType field value func (o *NetworkHyperFlexNetworkAddress) GetObjectType() string { if o == nil { @@ -110,6 +115,11 @@ func (o *NetworkHyperFlexNetworkAddress) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "network.HyperFlexNetworkAddress" of the ObjectType field. +func (o *NetworkHyperFlexNetworkAddress) GetDefaultObjectType() interface{} { + return "network.HyperFlexNetworkAddress" +} + // GetAddress returns the Address field value if set, zero value otherwise. func (o *NetworkHyperFlexNetworkAddress) GetAddress() string { if o == nil || IsNil(o.Address) { @@ -224,7 +234,13 @@ func (o NetworkHyperFlexNetworkAddress) ToMap() (map[string]interface{}, error) if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Address) { toSerialize["Address"] = o.Address @@ -252,6 +268,13 @@ func (o *NetworkHyperFlexNetworkAddress) UnmarshalJSON(data []byte) (err error) "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -261,11 +284,23 @@ func (o *NetworkHyperFlexNetworkAddress) UnmarshalJSON(data []byte) (err error) } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type NetworkHyperFlexNetworkAddressWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_network_interface_list.go b/model_network_interface_list.go index 846aa4dbce..37a037cf8f 100644 --- a/model_network_interface_list.go +++ b/model_network_interface_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -116,6 +116,11 @@ func (o *NetworkInterfaceList) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "network.InterfaceList" of the ClassId field. +func (o *NetworkInterfaceList) GetDefaultClassId() interface{} { + return "network.InterfaceList" +} + // GetObjectType returns the ObjectType field value func (o *NetworkInterfaceList) GetObjectType() string { if o == nil { @@ -140,6 +145,11 @@ func (o *NetworkInterfaceList) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "network.InterfaceList" of the ObjectType field. +func (o *NetworkInterfaceList) GetDefaultObjectType() interface{} { + return "network.InterfaceList" +} + // GetAdminState returns the AdminState field value if set, zero value otherwise. func (o *NetworkInterfaceList) GetAdminState() string { if o == nil || IsNil(o.AdminState) { @@ -788,7 +798,13 @@ func (o NetworkInterfaceList) ToMap() (map[string]interface{}, error) { if errInventoryBase != nil { return map[string]interface{}{}, errInventoryBase } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.AdminState) { toSerialize["AdminState"] = o.AdminState @@ -864,6 +880,13 @@ func (o *NetworkInterfaceList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -873,11 +896,23 @@ func (o *NetworkInterfaceList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type NetworkInterfaceListWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_network_interface_list_list.go b/model_network_interface_list_list.go index dea74166fc..2b4d3e83f7 100644 --- a/model_network_interface_list_list.go +++ b/model_network_interface_list_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *NetworkInterfaceListList) GetResultsOk() ([]NetworkInterfaceList, bool) // HasResults returns a boolean if a field has been set. func (o *NetworkInterfaceListList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *NetworkInterfaceListList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *NetworkInterfaceListList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type NetworkInterfaceListListWithoutEmbeddedStruct struct { // The total number of 'network.InterfaceList' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_network_interface_list_relationship.go b/model_network_interface_list_relationship.go index 8f6a35ffb2..484b30cd9d 100644 --- a/model_network_interface_list_relationship.go +++ b/model_network_interface_list_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_network_interface_list_response.go b/model_network_interface_list_response.go index dbfb7bf805..6a7ab44c5d 100644 --- a/model_network_interface_list_response.go +++ b/model_network_interface_list_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_network_license_file.go b/model_network_license_file.go index bdbcdf3961..66705ad6c6 100644 --- a/model_network_license_file.go +++ b/model_network_license_file.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -92,6 +92,11 @@ func (o *NetworkLicenseFile) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "network.LicenseFile" of the ClassId field. +func (o *NetworkLicenseFile) GetDefaultClassId() interface{} { + return "network.LicenseFile" +} + // GetObjectType returns the ObjectType field value func (o *NetworkLicenseFile) GetObjectType() string { if o == nil { @@ -116,6 +121,11 @@ func (o *NetworkLicenseFile) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "network.LicenseFile" of the ObjectType field. +func (o *NetworkLicenseFile) GetDefaultObjectType() interface{} { + return "network.LicenseFile" +} + // GetExpiryDate returns the ExpiryDate field value if set, zero value otherwise. func (o *NetworkLicenseFile) GetExpiryDate() string { if o == nil || IsNil(o.ExpiryDate) { @@ -380,7 +390,13 @@ func (o NetworkLicenseFile) ToMap() (map[string]interface{}, error) { if errInventoryBase != nil { return map[string]interface{}{}, errInventoryBase } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.ExpiryDate) { toSerialize["ExpiryDate"] = o.ExpiryDate @@ -420,6 +436,13 @@ func (o *NetworkLicenseFile) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -429,11 +452,23 @@ func (o *NetworkLicenseFile) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type NetworkLicenseFileWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_network_license_file_list.go b/model_network_license_file_list.go index 9f830c2c08..b6f8bf5a31 100644 --- a/model_network_license_file_list.go +++ b/model_network_license_file_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *NetworkLicenseFileList) GetResultsOk() ([]NetworkLicenseFile, bool) { // HasResults returns a boolean if a field has been set. func (o *NetworkLicenseFileList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *NetworkLicenseFileList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *NetworkLicenseFileList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type NetworkLicenseFileListWithoutEmbeddedStruct struct { // The total number of 'network.LicenseFile' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_network_license_file_relationship.go b/model_network_license_file_relationship.go index 78c2a78902..c029962baf 100644 --- a/model_network_license_file_relationship.go +++ b/model_network_license_file_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_network_license_file_response.go b/model_network_license_file_response.go index d38e81f883..17233aaa5e 100644 --- a/model_network_license_file_response.go +++ b/model_network_license_file_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_network_supervisor_card.go b/model_network_supervisor_card.go index d1ced22b04..25774f4ec5 100644 --- a/model_network_supervisor_card.go +++ b/model_network_supervisor_card.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -106,6 +106,11 @@ func (o *NetworkSupervisorCard) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "network.SupervisorCard" of the ClassId field. +func (o *NetworkSupervisorCard) GetDefaultClassId() interface{} { + return "network.SupervisorCard" +} + // GetObjectType returns the ObjectType field value func (o *NetworkSupervisorCard) GetObjectType() string { if o == nil { @@ -130,6 +135,11 @@ func (o *NetworkSupervisorCard) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "network.SupervisorCard" of the ObjectType field. +func (o *NetworkSupervisorCard) GetDefaultObjectType() interface{} { + return "network.SupervisorCard" +} + // GetDescription returns the Description field value if set, zero value otherwise. func (o *NetworkSupervisorCard) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -503,7 +513,7 @@ func (o *NetworkSupervisorCard) GetFcPortsOk() ([]FcPhysicalPortRelationship, bo // HasFcPorts returns a boolean if a field has been set. func (o *NetworkSupervisorCard) HasFcPorts() bool { - if o != nil && IsNil(o.FcPorts) { + if o != nil && !IsNil(o.FcPorts) { return true } @@ -619,7 +629,13 @@ func (o NetworkSupervisorCard) ToMap() (map[string]interface{}, error) { if errEquipmentBase != nil { return map[string]interface{}{}, errEquipmentBase } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Description) { toSerialize["Description"] = o.Description @@ -680,6 +696,13 @@ func (o *NetworkSupervisorCard) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -689,11 +712,23 @@ func (o *NetworkSupervisorCard) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type NetworkSupervisorCardWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_network_supervisor_card_list.go b/model_network_supervisor_card_list.go index f5583ce488..1d94fab09a 100644 --- a/model_network_supervisor_card_list.go +++ b/model_network_supervisor_card_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *NetworkSupervisorCardList) GetResultsOk() ([]NetworkSupervisorCard, boo // HasResults returns a boolean if a field has been set. func (o *NetworkSupervisorCardList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *NetworkSupervisorCardList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *NetworkSupervisorCardList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type NetworkSupervisorCardListWithoutEmbeddedStruct struct { // The total number of 'network.SupervisorCard' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_network_supervisor_card_relationship.go b/model_network_supervisor_card_relationship.go index f70e0898ee..bb4ac125f2 100644 --- a/model_network_supervisor_card_relationship.go +++ b/model_network_supervisor_card_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_network_supervisor_card_response.go b/model_network_supervisor_card_response.go index e256546180..a83b76b994 100644 --- a/model_network_supervisor_card_response.go +++ b/model_network_supervisor_card_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_network_telemetry_check.go b/model_network_telemetry_check.go index e27e442402..8cc42a1b85 100644 --- a/model_network_telemetry_check.go +++ b/model_network_telemetry_check.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -85,6 +85,11 @@ func (o *NetworkTelemetryCheck) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "network.TelemetryCheck" of the ClassId field. +func (o *NetworkTelemetryCheck) GetDefaultClassId() interface{} { + return "network.TelemetryCheck" +} + // GetObjectType returns the ObjectType field value func (o *NetworkTelemetryCheck) GetObjectType() string { if o == nil { @@ -109,6 +114,11 @@ func (o *NetworkTelemetryCheck) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "network.TelemetryCheck" of the ObjectType field. +func (o *NetworkTelemetryCheck) GetDefaultObjectType() interface{} { + return "network.TelemetryCheck" +} + // GetStatus returns the Status field value if set, zero value otherwise. func (o *NetworkTelemetryCheck) GetStatus() string { if o == nil || IsNil(o.Status) { @@ -234,7 +244,13 @@ func (o NetworkTelemetryCheck) ToMap() (map[string]interface{}, error) { if errInventoryBase != nil { return map[string]interface{}{}, errInventoryBase } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Status) { toSerialize["Status"] = o.Status @@ -262,6 +278,13 @@ func (o *NetworkTelemetryCheck) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -271,11 +294,23 @@ func (o *NetworkTelemetryCheck) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type NetworkTelemetryCheckWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_network_telemetry_check_list.go b/model_network_telemetry_check_list.go index 582c4520f5..bda83bea8d 100644 --- a/model_network_telemetry_check_list.go +++ b/model_network_telemetry_check_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *NetworkTelemetryCheckList) GetResultsOk() ([]NetworkTelemetryCheck, boo // HasResults returns a boolean if a field has been set. func (o *NetworkTelemetryCheckList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *NetworkTelemetryCheckList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *NetworkTelemetryCheckList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type NetworkTelemetryCheckListWithoutEmbeddedStruct struct { // The total number of 'network.TelemetryCheck' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_network_telemetry_check_response.go b/model_network_telemetry_check_response.go index a093c1a6b2..7410669e17 100644 --- a/model_network_telemetry_check_response.go +++ b/model_network_telemetry_check_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_network_vethernet.go b/model_network_vethernet.go index 5b9a2c2cfa..2c652b3531 100644 --- a/model_network_vethernet.go +++ b/model_network_vethernet.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -101,6 +101,11 @@ func (o *NetworkVethernet) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "network.Vethernet" of the ClassId field. +func (o *NetworkVethernet) GetDefaultClassId() interface{} { + return "network.Vethernet" +} + // GetObjectType returns the ObjectType field value func (o *NetworkVethernet) GetObjectType() string { if o == nil { @@ -125,6 +130,11 @@ func (o *NetworkVethernet) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "network.Vethernet" of the ObjectType field. +func (o *NetworkVethernet) GetDefaultObjectType() interface{} { + return "network.Vethernet" +} + // GetBoundInterfaceDn returns the BoundInterfaceDn field value if set, zero value otherwise. func (o *NetworkVethernet) GetBoundInterfaceDn() string { if o == nil || IsNil(o.BoundInterfaceDn) { @@ -614,7 +624,13 @@ func (o NetworkVethernet) ToMap() (map[string]interface{}, error) { if errInventoryBase != nil { return map[string]interface{}{}, errInventoryBase } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.BoundInterfaceDn) { toSerialize["BoundInterfaceDn"] = o.BoundInterfaceDn @@ -672,6 +688,13 @@ func (o *NetworkVethernet) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -681,11 +704,23 @@ func (o *NetworkVethernet) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type NetworkVethernetWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_network_vethernet_list.go b/model_network_vethernet_list.go index acd2af7c57..336f743561 100644 --- a/model_network_vethernet_list.go +++ b/model_network_vethernet_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *NetworkVethernetList) GetResultsOk() ([]NetworkVethernet, bool) { // HasResults returns a boolean if a field has been set. func (o *NetworkVethernetList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *NetworkVethernetList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *NetworkVethernetList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type NetworkVethernetListWithoutEmbeddedStruct struct { // The total number of 'network.Vethernet' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_network_vethernet_relationship.go b/model_network_vethernet_relationship.go index 93458e218f..e98567115c 100644 --- a/model_network_vethernet_relationship.go +++ b/model_network_vethernet_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_network_vethernet_response.go b/model_network_vethernet_response.go index 31cea9759a..7f6dd430a1 100644 --- a/model_network_vethernet_response.go +++ b/model_network_vethernet_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_network_vfc.go b/model_network_vfc.go index edc2ad95d3..a9df7fd4b8 100644 --- a/model_network_vfc.go +++ b/model_network_vfc.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -101,6 +101,11 @@ func (o *NetworkVfc) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "network.Vfc" of the ClassId field. +func (o *NetworkVfc) GetDefaultClassId() interface{} { + return "network.Vfc" +} + // GetObjectType returns the ObjectType field value func (o *NetworkVfc) GetObjectType() string { if o == nil { @@ -125,6 +130,11 @@ func (o *NetworkVfc) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "network.Vfc" of the ObjectType field. +func (o *NetworkVfc) GetDefaultObjectType() interface{} { + return "network.Vfc" +} + // GetBoundInterfaceDn returns the BoundInterfaceDn field value if set, zero value otherwise. func (o *NetworkVfc) GetBoundInterfaceDn() string { if o == nil || IsNil(o.BoundInterfaceDn) { @@ -614,7 +624,13 @@ func (o NetworkVfc) ToMap() (map[string]interface{}, error) { if errInventoryBase != nil { return map[string]interface{}{}, errInventoryBase } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.BoundInterfaceDn) { toSerialize["BoundInterfaceDn"] = o.BoundInterfaceDn @@ -672,6 +688,13 @@ func (o *NetworkVfc) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -681,11 +704,23 @@ func (o *NetworkVfc) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type NetworkVfcWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_network_vfc_list.go b/model_network_vfc_list.go index a6b7977ac7..c815bf0e0c 100644 --- a/model_network_vfc_list.go +++ b/model_network_vfc_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *NetworkVfcList) GetResultsOk() ([]NetworkVfc, bool) { // HasResults returns a boolean if a field has been set. func (o *NetworkVfcList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *NetworkVfcList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *NetworkVfcList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type NetworkVfcListWithoutEmbeddedStruct struct { // The total number of 'network.Vfc' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_network_vfc_relationship.go b/model_network_vfc_relationship.go index 5fb5ddcd61..533069c158 100644 --- a/model_network_vfc_relationship.go +++ b/model_network_vfc_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_network_vfc_response.go b/model_network_vfc_response.go index f5c9b2f2de..eb017d7e56 100644 --- a/model_network_vfc_response.go +++ b/model_network_vfc_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_network_vlan_port_info.go b/model_network_vlan_port_info.go index 2691163bb2..c37c25d33f 100644 --- a/model_network_vlan_port_info.go +++ b/model_network_vlan_port_info.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -103,6 +103,11 @@ func (o *NetworkVlanPortInfo) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "network.VlanPortInfo" of the ClassId field. +func (o *NetworkVlanPortInfo) GetDefaultClassId() interface{} { + return "network.VlanPortInfo" +} + // GetObjectType returns the ObjectType field value func (o *NetworkVlanPortInfo) GetObjectType() string { if o == nil { @@ -127,6 +132,11 @@ func (o *NetworkVlanPortInfo) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "network.VlanPortInfo" of the ObjectType field. +func (o *NetworkVlanPortInfo) GetDefaultObjectType() interface{} { + return "network.VlanPortInfo" +} + // GetAccessVlanPortCount returns the AccessVlanPortCount field value if set, zero value otherwise. func (o *NetworkVlanPortInfo) GetAccessVlanPortCount() int64 { if o == nil || IsNil(o.AccessVlanPortCount) { @@ -568,7 +578,13 @@ func (o NetworkVlanPortInfo) ToMap() (map[string]interface{}, error) { if errInventoryBase != nil { return map[string]interface{}{}, errInventoryBase } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.AccessVlanPortCount) { toSerialize["AccessVlanPortCount"] = o.AccessVlanPortCount @@ -623,6 +639,13 @@ func (o *NetworkVlanPortInfo) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -632,11 +655,23 @@ func (o *NetworkVlanPortInfo) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type NetworkVlanPortInfoWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_network_vlan_port_info_list.go b/model_network_vlan_port_info_list.go index d96e648040..342e80571f 100644 --- a/model_network_vlan_port_info_list.go +++ b/model_network_vlan_port_info_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *NetworkVlanPortInfoList) GetResultsOk() ([]NetworkVlanPortInfo, bool) { // HasResults returns a boolean if a field has been set. func (o *NetworkVlanPortInfoList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *NetworkVlanPortInfoList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *NetworkVlanPortInfoList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type NetworkVlanPortInfoListWithoutEmbeddedStruct struct { // The total number of 'network.VlanPortInfo' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_network_vlan_port_info_relationship.go b/model_network_vlan_port_info_relationship.go index 458f007c49..4c11a4aec7 100644 --- a/model_network_vlan_port_info_relationship.go +++ b/model_network_vlan_port_info_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_network_vlan_port_info_response.go b/model_network_vlan_port_info_response.go index 7799ab0492..fd898c1399 100644 --- a/model_network_vlan_port_info_response.go +++ b/model_network_vlan_port_info_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_network_vpc_domain.go b/model_network_vpc_domain.go index 0c3f5dbc29..a767aa253d 100644 --- a/model_network_vpc_domain.go +++ b/model_network_vpc_domain.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -98,6 +98,11 @@ func (o *NetworkVpcDomain) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "network.VpcDomain" of the ClassId field. +func (o *NetworkVpcDomain) GetDefaultClassId() interface{} { + return "network.VpcDomain" +} + // GetObjectType returns the ObjectType field value func (o *NetworkVpcDomain) GetObjectType() string { if o == nil { @@ -122,6 +127,11 @@ func (o *NetworkVpcDomain) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "network.VpcDomain" of the ObjectType field. +func (o *NetworkVpcDomain) GetDefaultObjectType() interface{} { + return "network.VpcDomain" +} + // GetAutoRecoveryStatus returns the AutoRecoveryStatus field value if set, zero value otherwise. func (o *NetworkVpcDomain) GetAutoRecoveryStatus() string { if o == nil || IsNil(o.AutoRecoveryStatus) { @@ -482,7 +492,13 @@ func (o NetworkVpcDomain) ToMap() (map[string]interface{}, error) { if errInventoryBase != nil { return map[string]interface{}{}, errInventoryBase } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.AutoRecoveryStatus) { toSerialize["AutoRecoveryStatus"] = o.AutoRecoveryStatus @@ -531,6 +547,13 @@ func (o *NetworkVpcDomain) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -540,11 +563,23 @@ func (o *NetworkVpcDomain) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type NetworkVpcDomainWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_network_vpc_domain_list.go b/model_network_vpc_domain_list.go index 5a133607bd..9a9e1a3296 100644 --- a/model_network_vpc_domain_list.go +++ b/model_network_vpc_domain_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *NetworkVpcDomainList) GetResultsOk() ([]NetworkVpcDomain, bool) { // HasResults returns a boolean if a field has been set. func (o *NetworkVpcDomainList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *NetworkVpcDomainList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *NetworkVpcDomainList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type NetworkVpcDomainListWithoutEmbeddedStruct struct { // The total number of 'network.VpcDomain' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_network_vpc_domain_relationship.go b/model_network_vpc_domain_relationship.go index 917e75991c..52a4bdeccf 100644 --- a/model_network_vpc_domain_relationship.go +++ b/model_network_vpc_domain_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_network_vpc_domain_response.go b/model_network_vpc_domain_response.go index 4777967613..ec5ecda8f7 100644 --- a/model_network_vpc_domain_response.go +++ b/model_network_vpc_domain_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_network_vpc_member.go b/model_network_vpc_member.go index 0c15459e8b..428a88dff3 100644 --- a/model_network_vpc_member.go +++ b/model_network_vpc_member.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -93,6 +93,11 @@ func (o *NetworkVpcMember) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "network.VpcMember" of the ClassId field. +func (o *NetworkVpcMember) GetDefaultClassId() interface{} { + return "network.VpcMember" +} + // GetObjectType returns the ObjectType field value func (o *NetworkVpcMember) GetObjectType() string { if o == nil { @@ -117,6 +122,11 @@ func (o *NetworkVpcMember) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "network.VpcMember" of the ObjectType field. +func (o *NetworkVpcMember) GetDefaultObjectType() interface{} { + return "network.VpcMember" +} + // GetOperationalState returns the OperationalState field value if set, zero value otherwise. func (o *NetworkVpcMember) GetOperationalState() string { if o == nil || IsNil(o.OperationalState) { @@ -424,7 +434,13 @@ func (o NetworkVpcMember) ToMap() (map[string]interface{}, error) { if errInventoryBase != nil { return map[string]interface{}{}, errInventoryBase } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.OperationalState) { toSerialize["OperationalState"] = o.OperationalState @@ -467,6 +483,13 @@ func (o *NetworkVpcMember) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -476,11 +499,23 @@ func (o *NetworkVpcMember) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type NetworkVpcMemberWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_network_vpc_member_list.go b/model_network_vpc_member_list.go index d1ed737a9e..b0a80f9628 100644 --- a/model_network_vpc_member_list.go +++ b/model_network_vpc_member_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *NetworkVpcMemberList) GetResultsOk() ([]NetworkVpcMember, bool) { // HasResults returns a boolean if a field has been set. func (o *NetworkVpcMemberList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *NetworkVpcMemberList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *NetworkVpcMemberList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type NetworkVpcMemberListWithoutEmbeddedStruct struct { // The total number of 'network.VpcMember' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_network_vpc_member_relationship.go b/model_network_vpc_member_relationship.go index 00ca5bc603..3f3aca310e 100644 --- a/model_network_vpc_member_relationship.go +++ b/model_network_vpc_member_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_network_vpc_member_response.go b/model_network_vpc_member_response.go index 80f388d2cb..1beb11df6c 100644 --- a/model_network_vpc_member_response.go +++ b/model_network_vpc_member_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_network_vpc_peer.go b/model_network_vpc_peer.go index 1e0faa05af..12028b3572 100644 --- a/model_network_vpc_peer.go +++ b/model_network_vpc_peer.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -93,6 +93,11 @@ func (o *NetworkVpcPeer) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "network.VpcPeer" of the ClassId field. +func (o *NetworkVpcPeer) GetDefaultClassId() interface{} { + return "network.VpcPeer" +} + // GetObjectType returns the ObjectType field value func (o *NetworkVpcPeer) GetObjectType() string { if o == nil { @@ -117,6 +122,11 @@ func (o *NetworkVpcPeer) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "network.VpcPeer" of the ObjectType field. +func (o *NetworkVpcPeer) GetDefaultObjectType() interface{} { + return "network.VpcPeer" +} + // GetOperationalState returns the OperationalState field value if set, zero value otherwise. func (o *NetworkVpcPeer) GetOperationalState() string { if o == nil || IsNil(o.OperationalState) { @@ -424,7 +434,13 @@ func (o NetworkVpcPeer) ToMap() (map[string]interface{}, error) { if errInventoryBase != nil { return map[string]interface{}{}, errInventoryBase } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.OperationalState) { toSerialize["OperationalState"] = o.OperationalState @@ -467,6 +483,13 @@ func (o *NetworkVpcPeer) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -476,11 +499,23 @@ func (o *NetworkVpcPeer) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type NetworkVpcPeerWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_network_vpc_peer_list.go b/model_network_vpc_peer_list.go index ec89e5fdb2..9b0124a65d 100644 --- a/model_network_vpc_peer_list.go +++ b/model_network_vpc_peer_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *NetworkVpcPeerList) GetResultsOk() ([]NetworkVpcPeer, bool) { // HasResults returns a boolean if a field has been set. func (o *NetworkVpcPeerList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *NetworkVpcPeerList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *NetworkVpcPeerList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type NetworkVpcPeerListWithoutEmbeddedStruct struct { // The total number of 'network.VpcPeer' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_network_vpc_peer_relationship.go b/model_network_vpc_peer_relationship.go index c7884f0c50..0892979c6d 100644 --- a/model_network_vpc_peer_relationship.go +++ b/model_network_vpc_peer_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_network_vpc_peer_response.go b/model_network_vpc_peer_response.go index fa03622849..75661cbc42 100644 --- a/model_network_vpc_peer_response.go +++ b/model_network_vpc_peer_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_network_vrf.go b/model_network_vrf.go index 27bd2f42af..6c4eed0ca4 100644 --- a/model_network_vrf.go +++ b/model_network_vrf.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -88,6 +88,11 @@ func (o *NetworkVrf) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "network.Vrf" of the ClassId field. +func (o *NetworkVrf) GetDefaultClassId() interface{} { + return "network.Vrf" +} + // GetObjectType returns the ObjectType field value func (o *NetworkVrf) GetObjectType() string { if o == nil { @@ -112,6 +117,11 @@ func (o *NetworkVrf) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "network.Vrf" of the ObjectType field. +func (o *NetworkVrf) GetDefaultObjectType() interface{} { + return "network.Vrf" +} + // GetAdminState returns the AdminState field value if set, zero value otherwise. func (o *NetworkVrf) GetAdminState() string { if o == nil || IsNil(o.AdminState) { @@ -312,7 +322,13 @@ func (o NetworkVrf) ToMap() (map[string]interface{}, error) { if errInventoryBase != nil { return map[string]interface{}{}, errInventoryBase } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.AdminState) { toSerialize["AdminState"] = o.AdminState @@ -346,6 +362,13 @@ func (o *NetworkVrf) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -355,11 +378,23 @@ func (o *NetworkVrf) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type NetworkVrfWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_network_vrf_list.go b/model_network_vrf_list.go index 086004a8a9..3a06f141e7 100644 --- a/model_network_vrf_list.go +++ b/model_network_vrf_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *NetworkVrfList) GetResultsOk() ([]NetworkVrf, bool) { // HasResults returns a boolean if a field has been set. func (o *NetworkVrfList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *NetworkVrfList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *NetworkVrfList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type NetworkVrfListWithoutEmbeddedStruct struct { // The total number of 'network.Vrf' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_network_vrf_relationship.go b/model_network_vrf_relationship.go index b3916e00f7..5c529e63e8 100644 --- a/model_network_vrf_relationship.go +++ b/model_network_vrf_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_network_vrf_response.go b/model_network_vrf_response.go index fbe4bffe5a..ae7e805d6c 100644 --- a/model_network_vrf_response.go +++ b/model_network_vrf_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_networkconfig_policy.go b/model_networkconfig_policy.go index 9c5c810d84..da54632657 100644 --- a/model_networkconfig_policy.go +++ b/model_networkconfig_policy.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -33,7 +33,7 @@ type NetworkconfigPolicy struct { // IP address of the secondary DNS server. AlternateIpv6dnsServer *string `json:"AlternateIpv6dnsServer,omitempty"` // The domain name appended to a hostname for a Dynamic DNS (DDNS) update. If left blank, only a hostname is sent to the DDNS update request. - DynamicDnsDomain *string `json:"DynamicDnsDomain,omitempty"` + DynamicDnsDomain *string `json:"DynamicDnsDomain,omitempty" validate:"regexp=^$|^[a-zA-Z0-9]+([-.]{1}[a-zA-Z0-9]+)*$"` // If enabled, updates the resource records to the DNS from Cisco IMC. EnableDynamicDns *bool `json:"EnableDynamicDns,omitempty"` // If enabled, Cisco IMC retrieves the DNS server addresses from DHCP. Use DHCP field must be enabled for IPv4 in Cisco IMC to enable it. @@ -102,6 +102,11 @@ func (o *NetworkconfigPolicy) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "networkconfig.Policy" of the ClassId field. +func (o *NetworkconfigPolicy) GetDefaultClassId() interface{} { + return "networkconfig.Policy" +} + // GetObjectType returns the ObjectType field value func (o *NetworkconfigPolicy) GetObjectType() string { if o == nil { @@ -126,6 +131,11 @@ func (o *NetworkconfigPolicy) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "networkconfig.Policy" of the ObjectType field. +func (o *NetworkconfigPolicy) GetDefaultObjectType() interface{} { + return "networkconfig.Policy" +} + // GetAlternateIpv4dnsServer returns the AlternateIpv4dnsServer field value if set, zero value otherwise. func (o *NetworkconfigPolicy) GetAlternateIpv4dnsServer() string { if o == nil || IsNil(o.AlternateIpv4dnsServer) { @@ -521,7 +531,7 @@ func (o *NetworkconfigPolicy) GetProfilesOk() ([]PolicyAbstractConfigProfileRela // HasProfiles returns a boolean if a field has been set. func (o *NetworkconfigPolicy) HasProfiles() bool { - if o != nil && IsNil(o.Profiles) { + if o != nil && !IsNil(o.Profiles) { return true } @@ -551,7 +561,13 @@ func (o NetworkconfigPolicy) ToMap() (map[string]interface{}, error) { if errPolicyAbstractPolicy != nil { return map[string]interface{}{}, errPolicyAbstractPolicy } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.AlternateIpv4dnsServer) { toSerialize["AlternateIpv4dnsServer"] = o.AlternateIpv4dnsServer @@ -606,6 +622,13 @@ func (o *NetworkconfigPolicy) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -615,11 +638,23 @@ func (o *NetworkconfigPolicy) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type NetworkconfigPolicyWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` @@ -630,7 +665,7 @@ func (o *NetworkconfigPolicy) UnmarshalJSON(data []byte) (err error) { // IP address of the secondary DNS server. AlternateIpv6dnsServer *string `json:"AlternateIpv6dnsServer,omitempty"` // The domain name appended to a hostname for a Dynamic DNS (DDNS) update. If left blank, only a hostname is sent to the DDNS update request. - DynamicDnsDomain *string `json:"DynamicDnsDomain,omitempty"` + DynamicDnsDomain *string `json:"DynamicDnsDomain,omitempty" validate:"regexp=^$|^[a-zA-Z0-9]+([-.]{1}[a-zA-Z0-9]+)*$"` // If enabled, updates the resource records to the DNS from Cisco IMC. EnableDynamicDns *bool `json:"EnableDynamicDns,omitempty"` // If enabled, Cisco IMC retrieves the DNS server addresses from DHCP. Use DHCP field must be enabled for IPv4 in Cisco IMC to enable it. diff --git a/model_networkconfig_policy_inventory.go b/model_networkconfig_policy_inventory.go index ff4c37ea65..b94b4f4eea 100644 --- a/model_networkconfig_policy_inventory.go +++ b/model_networkconfig_policy_inventory.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -33,7 +33,7 @@ type NetworkconfigPolicyInventory struct { // IP address of the secondary DNS server. AlternateIpv6dnsServer *string `json:"AlternateIpv6dnsServer,omitempty"` // The domain name appended to a hostname for a Dynamic DNS (DDNS) update. If left blank, only a hostname is sent to the DDNS update request. - DynamicDnsDomain *string `json:"DynamicDnsDomain,omitempty"` + DynamicDnsDomain *string `json:"DynamicDnsDomain,omitempty" validate:"regexp=^$|^[a-zA-Z0-9]+([-.]{1}[a-zA-Z0-9]+)*$"` // If enabled, updates the resource records to the DNS from Cisco IMC. EnableDynamicDns *bool `json:"EnableDynamicDns,omitempty"` // If enabled, Cisco IMC retrieves the DNS server addresses from DHCP. Use DHCP field must be enabled for IPv4 in Cisco IMC to enable it. @@ -99,6 +99,11 @@ func (o *NetworkconfigPolicyInventory) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "networkconfig.PolicyInventory" of the ClassId field. +func (o *NetworkconfigPolicyInventory) GetDefaultClassId() interface{} { + return "networkconfig.PolicyInventory" +} + // GetObjectType returns the ObjectType field value func (o *NetworkconfigPolicyInventory) GetObjectType() string { if o == nil { @@ -123,6 +128,11 @@ func (o *NetworkconfigPolicyInventory) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "networkconfig.PolicyInventory" of the ObjectType field. +func (o *NetworkconfigPolicyInventory) GetDefaultObjectType() interface{} { + return "networkconfig.PolicyInventory" +} + // GetAlternateIpv4dnsServer returns the AlternateIpv4dnsServer field value if set, zero value otherwise. func (o *NetworkconfigPolicyInventory) GetAlternateIpv4dnsServer() string { if o == nil || IsNil(o.AlternateIpv4dnsServer) { @@ -472,7 +482,13 @@ func (o NetworkconfigPolicyInventory) ToMap() (map[string]interface{}, error) { if errPolicyAbstractPolicyInventory != nil { return map[string]interface{}{}, errPolicyAbstractPolicyInventory } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.AlternateIpv4dnsServer) { toSerialize["AlternateIpv4dnsServer"] = o.AlternateIpv4dnsServer @@ -521,6 +537,13 @@ func (o *NetworkconfigPolicyInventory) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -530,11 +553,23 @@ func (o *NetworkconfigPolicyInventory) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type NetworkconfigPolicyInventoryWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` @@ -545,7 +580,7 @@ func (o *NetworkconfigPolicyInventory) UnmarshalJSON(data []byte) (err error) { // IP address of the secondary DNS server. AlternateIpv6dnsServer *string `json:"AlternateIpv6dnsServer,omitempty"` // The domain name appended to a hostname for a Dynamic DNS (DDNS) update. If left blank, only a hostname is sent to the DDNS update request. - DynamicDnsDomain *string `json:"DynamicDnsDomain,omitempty"` + DynamicDnsDomain *string `json:"DynamicDnsDomain,omitempty" validate:"regexp=^$|^[a-zA-Z0-9]+([-.]{1}[a-zA-Z0-9]+)*$"` // If enabled, updates the resource records to the DNS from Cisco IMC. EnableDynamicDns *bool `json:"EnableDynamicDns,omitempty"` // If enabled, Cisco IMC retrieves the DNS server addresses from DHCP. Use DHCP field must be enabled for IPv4 in Cisco IMC to enable it. diff --git a/model_networkconfig_policy_inventory_list.go b/model_networkconfig_policy_inventory_list.go index 1a2f4e432a..a36164ebcc 100644 --- a/model_networkconfig_policy_inventory_list.go +++ b/model_networkconfig_policy_inventory_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *NetworkconfigPolicyInventoryList) GetResultsOk() ([]NetworkconfigPolicy // HasResults returns a boolean if a field has been set. func (o *NetworkconfigPolicyInventoryList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *NetworkconfigPolicyInventoryList) UnmarshalJSON(data []byte) (err error "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *NetworkconfigPolicyInventoryList) UnmarshalJSON(data []byte) (err error } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type NetworkconfigPolicyInventoryListWithoutEmbeddedStruct struct { // The total number of 'networkconfig.PolicyInventory' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_networkconfig_policy_inventory_response.go b/model_networkconfig_policy_inventory_response.go index cbc7ababca..5912b803f2 100644 --- a/model_networkconfig_policy_inventory_response.go +++ b/model_networkconfig_policy_inventory_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_networkconfig_policy_list.go b/model_networkconfig_policy_list.go index e58597cd0f..86a291ee5b 100644 --- a/model_networkconfig_policy_list.go +++ b/model_networkconfig_policy_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *NetworkconfigPolicyList) GetResultsOk() ([]NetworkconfigPolicy, bool) { // HasResults returns a boolean if a field has been set. func (o *NetworkconfigPolicyList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *NetworkconfigPolicyList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *NetworkconfigPolicyList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type NetworkconfigPolicyListWithoutEmbeddedStruct struct { // The total number of 'networkconfig.Policy' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_networkconfig_policy_response.go b/model_networkconfig_policy_response.go index 86f740e501..ef3029c56e 100644 --- a/model_networkconfig_policy_response.go +++ b/model_networkconfig_policy_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_niaapi_apic_cco_post.go b/model_niaapi_apic_cco_post.go index b7b4e41993..953ca7ce43 100644 --- a/model_niaapi_apic_cco_post.go +++ b/model_niaapi_apic_cco_post.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -83,6 +83,10 @@ func (o *NiaapiApicCcoPost) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -92,11 +96,23 @@ func (o *NiaapiApicCcoPost) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type NiaapiApicCcoPostWithoutEmbeddedStruct struct { } diff --git a/model_niaapi_apic_cco_post_list.go b/model_niaapi_apic_cco_post_list.go index f01a121488..934bff20be 100644 --- a/model_niaapi_apic_cco_post_list.go +++ b/model_niaapi_apic_cco_post_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *NiaapiApicCcoPostList) GetResultsOk() ([]NiaapiApicCcoPost, bool) { // HasResults returns a boolean if a field has been set. func (o *NiaapiApicCcoPostList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *NiaapiApicCcoPostList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *NiaapiApicCcoPostList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type NiaapiApicCcoPostListWithoutEmbeddedStruct struct { // The total number of 'niaapi.ApicCcoPost' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_niaapi_apic_cco_post_response.go b/model_niaapi_apic_cco_post_response.go index 5f05fea6b8..d414e098c4 100644 --- a/model_niaapi_apic_cco_post_response.go +++ b/model_niaapi_apic_cco_post_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_niaapi_apic_field_notice.go b/model_niaapi_apic_field_notice.go index a6284aa859..549cb173d8 100644 --- a/model_niaapi_apic_field_notice.go +++ b/model_niaapi_apic_field_notice.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -83,6 +83,10 @@ func (o *NiaapiApicFieldNotice) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -92,11 +96,23 @@ func (o *NiaapiApicFieldNotice) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type NiaapiApicFieldNoticeWithoutEmbeddedStruct struct { } diff --git a/model_niaapi_apic_field_notice_list.go b/model_niaapi_apic_field_notice_list.go index af1c5c4739..66766cf592 100644 --- a/model_niaapi_apic_field_notice_list.go +++ b/model_niaapi_apic_field_notice_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *NiaapiApicFieldNoticeList) GetResultsOk() ([]NiaapiApicFieldNotice, boo // HasResults returns a boolean if a field has been set. func (o *NiaapiApicFieldNoticeList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *NiaapiApicFieldNoticeList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *NiaapiApicFieldNoticeList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type NiaapiApicFieldNoticeListWithoutEmbeddedStruct struct { // The total number of 'niaapi.ApicFieldNotice' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_niaapi_apic_field_notice_response.go b/model_niaapi_apic_field_notice_response.go index b5077fe246..e8851c0b9e 100644 --- a/model_niaapi_apic_field_notice_response.go +++ b/model_niaapi_apic_field_notice_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_niaapi_apic_hweol.go b/model_niaapi_apic_hweol.go index c310d55c71..18874d0dd8 100644 --- a/model_niaapi_apic_hweol.go +++ b/model_niaapi_apic_hweol.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -83,6 +83,10 @@ func (o *NiaapiApicHweol) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -92,11 +96,23 @@ func (o *NiaapiApicHweol) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type NiaapiApicHweolWithoutEmbeddedStruct struct { } diff --git a/model_niaapi_apic_hweol_list.go b/model_niaapi_apic_hweol_list.go index f7ce40303b..39653e5969 100644 --- a/model_niaapi_apic_hweol_list.go +++ b/model_niaapi_apic_hweol_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *NiaapiApicHweolList) GetResultsOk() ([]NiaapiApicHweol, bool) { // HasResults returns a boolean if a field has been set. func (o *NiaapiApicHweolList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *NiaapiApicHweolList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *NiaapiApicHweolList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type NiaapiApicHweolListWithoutEmbeddedStruct struct { // The total number of 'niaapi.ApicHweol' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_niaapi_apic_hweol_response.go b/model_niaapi_apic_hweol_response.go index 75277500a0..3d13f9ad13 100644 --- a/model_niaapi_apic_hweol_response.go +++ b/model_niaapi_apic_hweol_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_niaapi_apic_latest_maintained_release.go b/model_niaapi_apic_latest_maintained_release.go index 803ab9a815..deb7aa74c3 100644 --- a/model_niaapi_apic_latest_maintained_release.go +++ b/model_niaapi_apic_latest_maintained_release.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -83,6 +83,10 @@ func (o *NiaapiApicLatestMaintainedRelease) UnmarshalJSON(data []byte) (err erro "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -92,11 +96,23 @@ func (o *NiaapiApicLatestMaintainedRelease) UnmarshalJSON(data []byte) (err erro } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type NiaapiApicLatestMaintainedReleaseWithoutEmbeddedStruct struct { } diff --git a/model_niaapi_apic_latest_maintained_release_list.go b/model_niaapi_apic_latest_maintained_release_list.go index 1f7565436b..8cb5f7efc4 100644 --- a/model_niaapi_apic_latest_maintained_release_list.go +++ b/model_niaapi_apic_latest_maintained_release_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *NiaapiApicLatestMaintainedReleaseList) GetResultsOk() ([]NiaapiApicLate // HasResults returns a boolean if a field has been set. func (o *NiaapiApicLatestMaintainedReleaseList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *NiaapiApicLatestMaintainedReleaseList) UnmarshalJSON(data []byte) (err "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *NiaapiApicLatestMaintainedReleaseList) UnmarshalJSON(data []byte) (err } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type NiaapiApicLatestMaintainedReleaseListWithoutEmbeddedStruct struct { // The total number of 'niaapi.ApicLatestMaintainedRelease' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_niaapi_apic_latest_maintained_release_response.go b/model_niaapi_apic_latest_maintained_release_response.go index ebf03c2da7..54cee9d10e 100644 --- a/model_niaapi_apic_latest_maintained_release_response.go +++ b/model_niaapi_apic_latest_maintained_release_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_niaapi_apic_release_recommend.go b/model_niaapi_apic_release_recommend.go index 489fbc0ac5..ec4d312115 100644 --- a/model_niaapi_apic_release_recommend.go +++ b/model_niaapi_apic_release_recommend.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -83,6 +83,10 @@ func (o *NiaapiApicReleaseRecommend) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -92,11 +96,23 @@ func (o *NiaapiApicReleaseRecommend) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type NiaapiApicReleaseRecommendWithoutEmbeddedStruct struct { } diff --git a/model_niaapi_apic_release_recommend_list.go b/model_niaapi_apic_release_recommend_list.go index ed878783be..1c3f66dabf 100644 --- a/model_niaapi_apic_release_recommend_list.go +++ b/model_niaapi_apic_release_recommend_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *NiaapiApicReleaseRecommendList) GetResultsOk() ([]NiaapiApicReleaseReco // HasResults returns a boolean if a field has been set. func (o *NiaapiApicReleaseRecommendList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *NiaapiApicReleaseRecommendList) UnmarshalJSON(data []byte) (err error) "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *NiaapiApicReleaseRecommendList) UnmarshalJSON(data []byte) (err error) } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type NiaapiApicReleaseRecommendListWithoutEmbeddedStruct struct { // The total number of 'niaapi.ApicReleaseRecommend' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_niaapi_apic_release_recommend_response.go b/model_niaapi_apic_release_recommend_response.go index e0a64e66fa..5dcfc38c3a 100644 --- a/model_niaapi_apic_release_recommend_response.go +++ b/model_niaapi_apic_release_recommend_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_niaapi_apic_sweol.go b/model_niaapi_apic_sweol.go index 6daf9e23e2..2926f08ff0 100644 --- a/model_niaapi_apic_sweol.go +++ b/model_niaapi_apic_sweol.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -83,6 +83,10 @@ func (o *NiaapiApicSweol) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -92,11 +96,23 @@ func (o *NiaapiApicSweol) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type NiaapiApicSweolWithoutEmbeddedStruct struct { } diff --git a/model_niaapi_apic_sweol_list.go b/model_niaapi_apic_sweol_list.go index cff437aa53..fa1ec80f3c 100644 --- a/model_niaapi_apic_sweol_list.go +++ b/model_niaapi_apic_sweol_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *NiaapiApicSweolList) GetResultsOk() ([]NiaapiApicSweol, bool) { // HasResults returns a boolean if a field has been set. func (o *NiaapiApicSweolList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *NiaapiApicSweolList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *NiaapiApicSweolList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type NiaapiApicSweolListWithoutEmbeddedStruct struct { // The total number of 'niaapi.ApicSweol' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_niaapi_apic_sweol_response.go b/model_niaapi_apic_sweol_response.go index daa28ccaf5..071500057f 100644 --- a/model_niaapi_apic_sweol_response.go +++ b/model_niaapi_apic_sweol_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_niaapi_dcnm_cco_post.go b/model_niaapi_dcnm_cco_post.go index b5b2d9d4f5..84e830f415 100644 --- a/model_niaapi_dcnm_cco_post.go +++ b/model_niaapi_dcnm_cco_post.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -83,6 +83,10 @@ func (o *NiaapiDcnmCcoPost) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -92,11 +96,23 @@ func (o *NiaapiDcnmCcoPost) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type NiaapiDcnmCcoPostWithoutEmbeddedStruct struct { } diff --git a/model_niaapi_dcnm_cco_post_list.go b/model_niaapi_dcnm_cco_post_list.go index 62c539eaf0..3d241c2aa7 100644 --- a/model_niaapi_dcnm_cco_post_list.go +++ b/model_niaapi_dcnm_cco_post_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *NiaapiDcnmCcoPostList) GetResultsOk() ([]NiaapiDcnmCcoPost, bool) { // HasResults returns a boolean if a field has been set. func (o *NiaapiDcnmCcoPostList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *NiaapiDcnmCcoPostList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *NiaapiDcnmCcoPostList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type NiaapiDcnmCcoPostListWithoutEmbeddedStruct struct { // The total number of 'niaapi.DcnmCcoPost' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_niaapi_dcnm_cco_post_response.go b/model_niaapi_dcnm_cco_post_response.go index 42e490819b..c721db20e7 100644 --- a/model_niaapi_dcnm_cco_post_response.go +++ b/model_niaapi_dcnm_cco_post_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_niaapi_dcnm_field_notice.go b/model_niaapi_dcnm_field_notice.go index a92c459d62..bd2584deac 100644 --- a/model_niaapi_dcnm_field_notice.go +++ b/model_niaapi_dcnm_field_notice.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -83,6 +83,10 @@ func (o *NiaapiDcnmFieldNotice) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -92,11 +96,23 @@ func (o *NiaapiDcnmFieldNotice) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type NiaapiDcnmFieldNoticeWithoutEmbeddedStruct struct { } diff --git a/model_niaapi_dcnm_field_notice_list.go b/model_niaapi_dcnm_field_notice_list.go index c6fe40d269..1f13b2a287 100644 --- a/model_niaapi_dcnm_field_notice_list.go +++ b/model_niaapi_dcnm_field_notice_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *NiaapiDcnmFieldNoticeList) GetResultsOk() ([]NiaapiDcnmFieldNotice, boo // HasResults returns a boolean if a field has been set. func (o *NiaapiDcnmFieldNoticeList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *NiaapiDcnmFieldNoticeList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *NiaapiDcnmFieldNoticeList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type NiaapiDcnmFieldNoticeListWithoutEmbeddedStruct struct { // The total number of 'niaapi.DcnmFieldNotice' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_niaapi_dcnm_field_notice_response.go b/model_niaapi_dcnm_field_notice_response.go index 8be3e51b0b..371e30c2ff 100644 --- a/model_niaapi_dcnm_field_notice_response.go +++ b/model_niaapi_dcnm_field_notice_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_niaapi_dcnm_hweol.go b/model_niaapi_dcnm_hweol.go index 211102480c..6f518ddc74 100644 --- a/model_niaapi_dcnm_hweol.go +++ b/model_niaapi_dcnm_hweol.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -83,6 +83,10 @@ func (o *NiaapiDcnmHweol) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -92,11 +96,23 @@ func (o *NiaapiDcnmHweol) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type NiaapiDcnmHweolWithoutEmbeddedStruct struct { } diff --git a/model_niaapi_dcnm_hweol_list.go b/model_niaapi_dcnm_hweol_list.go index 7a5bf9ab83..cbe8e3e4df 100644 --- a/model_niaapi_dcnm_hweol_list.go +++ b/model_niaapi_dcnm_hweol_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *NiaapiDcnmHweolList) GetResultsOk() ([]NiaapiDcnmHweol, bool) { // HasResults returns a boolean if a field has been set. func (o *NiaapiDcnmHweolList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *NiaapiDcnmHweolList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *NiaapiDcnmHweolList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type NiaapiDcnmHweolListWithoutEmbeddedStruct struct { // The total number of 'niaapi.DcnmHweol' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_niaapi_dcnm_hweol_response.go b/model_niaapi_dcnm_hweol_response.go index 229a039afa..e678fea0ac 100644 --- a/model_niaapi_dcnm_hweol_response.go +++ b/model_niaapi_dcnm_hweol_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_niaapi_dcnm_latest_maintained_release.go b/model_niaapi_dcnm_latest_maintained_release.go index 015d719d7b..cfc9b4f73f 100644 --- a/model_niaapi_dcnm_latest_maintained_release.go +++ b/model_niaapi_dcnm_latest_maintained_release.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -83,6 +83,10 @@ func (o *NiaapiDcnmLatestMaintainedRelease) UnmarshalJSON(data []byte) (err erro "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -92,11 +96,23 @@ func (o *NiaapiDcnmLatestMaintainedRelease) UnmarshalJSON(data []byte) (err erro } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type NiaapiDcnmLatestMaintainedReleaseWithoutEmbeddedStruct struct { } diff --git a/model_niaapi_dcnm_latest_maintained_release_list.go b/model_niaapi_dcnm_latest_maintained_release_list.go index 592a8eb133..b131bb9c34 100644 --- a/model_niaapi_dcnm_latest_maintained_release_list.go +++ b/model_niaapi_dcnm_latest_maintained_release_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *NiaapiDcnmLatestMaintainedReleaseList) GetResultsOk() ([]NiaapiDcnmLate // HasResults returns a boolean if a field has been set. func (o *NiaapiDcnmLatestMaintainedReleaseList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *NiaapiDcnmLatestMaintainedReleaseList) UnmarshalJSON(data []byte) (err "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *NiaapiDcnmLatestMaintainedReleaseList) UnmarshalJSON(data []byte) (err } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type NiaapiDcnmLatestMaintainedReleaseListWithoutEmbeddedStruct struct { // The total number of 'niaapi.DcnmLatestMaintainedRelease' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_niaapi_dcnm_latest_maintained_release_response.go b/model_niaapi_dcnm_latest_maintained_release_response.go index f89f09d5c6..92b4e610c2 100644 --- a/model_niaapi_dcnm_latest_maintained_release_response.go +++ b/model_niaapi_dcnm_latest_maintained_release_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_niaapi_dcnm_release_recommend.go b/model_niaapi_dcnm_release_recommend.go index 2625d4a3f7..14d91d716a 100644 --- a/model_niaapi_dcnm_release_recommend.go +++ b/model_niaapi_dcnm_release_recommend.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -83,6 +83,10 @@ func (o *NiaapiDcnmReleaseRecommend) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -92,11 +96,23 @@ func (o *NiaapiDcnmReleaseRecommend) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type NiaapiDcnmReleaseRecommendWithoutEmbeddedStruct struct { } diff --git a/model_niaapi_dcnm_release_recommend_list.go b/model_niaapi_dcnm_release_recommend_list.go index a83c9d5500..73a32e360d 100644 --- a/model_niaapi_dcnm_release_recommend_list.go +++ b/model_niaapi_dcnm_release_recommend_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *NiaapiDcnmReleaseRecommendList) GetResultsOk() ([]NiaapiDcnmReleaseReco // HasResults returns a boolean if a field has been set. func (o *NiaapiDcnmReleaseRecommendList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *NiaapiDcnmReleaseRecommendList) UnmarshalJSON(data []byte) (err error) "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *NiaapiDcnmReleaseRecommendList) UnmarshalJSON(data []byte) (err error) } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type NiaapiDcnmReleaseRecommendListWithoutEmbeddedStruct struct { // The total number of 'niaapi.DcnmReleaseRecommend' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_niaapi_dcnm_release_recommend_response.go b/model_niaapi_dcnm_release_recommend_response.go index 691d57e297..46d43416b8 100644 --- a/model_niaapi_dcnm_release_recommend_response.go +++ b/model_niaapi_dcnm_release_recommend_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_niaapi_dcnm_sweol.go b/model_niaapi_dcnm_sweol.go index b0d0fa6168..47ea3f1882 100644 --- a/model_niaapi_dcnm_sweol.go +++ b/model_niaapi_dcnm_sweol.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -83,6 +83,10 @@ func (o *NiaapiDcnmSweol) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -92,11 +96,23 @@ func (o *NiaapiDcnmSweol) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type NiaapiDcnmSweolWithoutEmbeddedStruct struct { } diff --git a/model_niaapi_dcnm_sweol_list.go b/model_niaapi_dcnm_sweol_list.go index 47260e4de7..3ff14f471e 100644 --- a/model_niaapi_dcnm_sweol_list.go +++ b/model_niaapi_dcnm_sweol_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *NiaapiDcnmSweolList) GetResultsOk() ([]NiaapiDcnmSweol, bool) { // HasResults returns a boolean if a field has been set. func (o *NiaapiDcnmSweolList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *NiaapiDcnmSweolList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *NiaapiDcnmSweolList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type NiaapiDcnmSweolListWithoutEmbeddedStruct struct { // The total number of 'niaapi.DcnmSweol' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_niaapi_dcnm_sweol_response.go b/model_niaapi_dcnm_sweol_response.go index caa0b2792c..06302ba174 100644 --- a/model_niaapi_dcnm_sweol_response.go +++ b/model_niaapi_dcnm_sweol_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_niaapi_detail.go b/model_niaapi_detail.go index 019e360f70..c3b7cf103c 100644 --- a/model_niaapi_detail.go +++ b/model_niaapi_detail.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -86,6 +86,11 @@ func (o *NiaapiDetail) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "niaapi.Detail" of the ClassId field. +func (o *NiaapiDetail) GetDefaultClassId() interface{} { + return "niaapi.Detail" +} + // GetObjectType returns the ObjectType field value func (o *NiaapiDetail) GetObjectType() string { if o == nil { @@ -110,6 +115,11 @@ func (o *NiaapiDetail) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "niaapi.Detail" of the ObjectType field. +func (o *NiaapiDetail) GetDefaultObjectType() interface{} { + return "niaapi.Detail" +} + // GetChksum returns the Chksum field value if set, zero value otherwise. func (o *NiaapiDetail) GetChksum() string { if o == nil || IsNil(o.Chksum) { @@ -224,7 +234,13 @@ func (o NiaapiDetail) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Chksum) { toSerialize["Chksum"] = o.Chksum @@ -252,6 +268,13 @@ func (o *NiaapiDetail) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -261,11 +284,23 @@ func (o *NiaapiDetail) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type NiaapiDetailWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_niaapi_field_notice.go b/model_niaapi_field_notice.go index 24d9642758..2c1a3c91ac 100644 --- a/model_niaapi_field_notice.go +++ b/model_niaapi_field_notice.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -330,7 +330,7 @@ func (o *NiaapiFieldNotice) GetRevisionInfoOk() ([]NiaapiRevisionInfo, bool) { // HasRevisionInfo returns a boolean if a field has been set. func (o *NiaapiFieldNotice) HasRevisionInfo() bool { - if o != nil && IsNil(o.RevisionInfo) { + if o != nil && !IsNil(o.RevisionInfo) { return true } @@ -470,6 +470,10 @@ func (o *NiaapiFieldNotice) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -479,11 +483,23 @@ func (o *NiaapiFieldNotice) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type NiaapiFieldNoticeWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. The enum values provides the list of concrete types that can be instantiated from this abstract type. ClassId string `json:"ClassId"` diff --git a/model_niaapi_file_downloader.go b/model_niaapi_file_downloader.go index e4e667a61a..b1db753fd0 100644 --- a/model_niaapi_file_downloader.go +++ b/model_niaapi_file_downloader.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -84,6 +84,11 @@ func (o *NiaapiFileDownloader) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "niaapi.FileDownloader" of the ClassId field. +func (o *NiaapiFileDownloader) GetDefaultClassId() interface{} { + return "niaapi.FileDownloader" +} + // GetObjectType returns the ObjectType field value func (o *NiaapiFileDownloader) GetObjectType() string { if o == nil { @@ -108,6 +113,11 @@ func (o *NiaapiFileDownloader) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "niaapi.FileDownloader" of the ObjectType field. +func (o *NiaapiFileDownloader) GetDefaultObjectType() interface{} { + return "niaapi.FileDownloader" +} + // GetFileName returns the FileName field value if set, zero value otherwise. func (o *NiaapiFileDownloader) GetFileName() string { if o == nil || IsNil(o.FileName) { @@ -190,7 +200,13 @@ func (o NiaapiFileDownloader) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.FileName) { toSerialize["FileName"] = o.FileName @@ -215,6 +231,13 @@ func (o *NiaapiFileDownloader) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -224,11 +247,23 @@ func (o *NiaapiFileDownloader) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type NiaapiFileDownloaderWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_niaapi_file_downloader_list.go b/model_niaapi_file_downloader_list.go index 2becaaccd8..1cd2a68235 100644 --- a/model_niaapi_file_downloader_list.go +++ b/model_niaapi_file_downloader_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *NiaapiFileDownloaderList) GetResultsOk() ([]NiaapiFileDownloader, bool) // HasResults returns a boolean if a field has been set. func (o *NiaapiFileDownloaderList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *NiaapiFileDownloaderList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *NiaapiFileDownloaderList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type NiaapiFileDownloaderListWithoutEmbeddedStruct struct { // The total number of 'niaapi.FileDownloader' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_niaapi_file_downloader_response.go b/model_niaapi_file_downloader_response.go index 2834ab5d28..3376dc920e 100644 --- a/model_niaapi_file_downloader_response.go +++ b/model_niaapi_file_downloader_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_niaapi_hardware_eol.go b/model_niaapi_hardware_eol.go index 9fa8781d51..5b818df92f 100644 --- a/model_niaapi_hardware_eol.go +++ b/model_niaapi_hardware_eol.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -1026,6 +1026,10 @@ func (o *NiaapiHardwareEol) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -1035,11 +1039,23 @@ func (o *NiaapiHardwareEol) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type NiaapiHardwareEolWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. The enum values provides the list of concrete types that can be instantiated from this abstract type. ClassId string `json:"ClassId"` diff --git a/model_niaapi_maintained_release.go b/model_niaapi_maintained_release.go index 5d4185fb34..b97a1bc6a8 100644 --- a/model_niaapi_maintained_release.go +++ b/model_niaapi_maintained_release.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -248,6 +248,10 @@ func (o *NiaapiMaintainedRelease) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -257,11 +261,23 @@ func (o *NiaapiMaintainedRelease) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type NiaapiMaintainedReleaseWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. The enum values provides the list of concrete types that can be instantiated from this abstract type. ClassId string `json:"ClassId"` diff --git a/model_niaapi_new_release_detail.go b/model_niaapi_new_release_detail.go index 575c83f186..3af4bfcae3 100644 --- a/model_niaapi_new_release_detail.go +++ b/model_niaapi_new_release_detail.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -96,6 +96,11 @@ func (o *NiaapiNewReleaseDetail) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "niaapi.NewReleaseDetail" of the ClassId field. +func (o *NiaapiNewReleaseDetail) GetDefaultClassId() interface{} { + return "niaapi.NewReleaseDetail" +} + // GetObjectType returns the ObjectType field value func (o *NiaapiNewReleaseDetail) GetObjectType() string { if o == nil { @@ -120,6 +125,11 @@ func (o *NiaapiNewReleaseDetail) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "niaapi.NewReleaseDetail" of the ObjectType field. +func (o *NiaapiNewReleaseDetail) GetDefaultObjectType() interface{} { + return "niaapi.NewReleaseDetail" +} + // GetDescription returns the Description field value if set, zero value otherwise. func (o *NiaapiNewReleaseDetail) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -394,7 +404,13 @@ func (o NiaapiNewReleaseDetail) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Description) { toSerialize["Description"] = o.Description @@ -437,6 +453,13 @@ func (o *NiaapiNewReleaseDetail) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -446,11 +469,23 @@ func (o *NiaapiNewReleaseDetail) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type NiaapiNewReleaseDetailWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_niaapi_new_release_post.go b/model_niaapi_new_release_post.go index dd2d015561..901a9cbe8a 100644 --- a/model_niaapi_new_release_post.go +++ b/model_niaapi_new_release_post.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -333,6 +333,10 @@ func (o *NiaapiNewReleasePost) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -342,11 +346,23 @@ func (o *NiaapiNewReleasePost) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type NiaapiNewReleasePostWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. The enum values provides the list of concrete types that can be instantiated from this abstract type. ClassId string `json:"ClassId"` diff --git a/model_niaapi_nia_metadata.go b/model_niaapi_nia_metadata.go index 40bace2002..7b4e9d2cf8 100644 --- a/model_niaapi_nia_metadata.go +++ b/model_niaapi_nia_metadata.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -90,6 +90,11 @@ func (o *NiaapiNiaMetadata) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "niaapi.NiaMetadata" of the ClassId field. +func (o *NiaapiNiaMetadata) GetDefaultClassId() interface{} { + return "niaapi.NiaMetadata" +} + // GetObjectType returns the ObjectType field value func (o *NiaapiNiaMetadata) GetObjectType() string { if o == nil { @@ -114,6 +119,11 @@ func (o *NiaapiNiaMetadata) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "niaapi.NiaMetadata" of the ObjectType field. +func (o *NiaapiNiaMetadata) GetDefaultObjectType() interface{} { + return "niaapi.NiaMetadata" +} + // GetContent returns the Content field value if set, zero value otherwise (both if not set or set to explicit null). func (o *NiaapiNiaMetadata) GetContent() []NiaapiDetail { if o == nil { @@ -135,7 +145,7 @@ func (o *NiaapiNiaMetadata) GetContentOk() ([]NiaapiDetail, bool) { // HasContent returns a boolean if a field has been set. func (o *NiaapiNiaMetadata) HasContent() bool { - if o != nil && IsNil(o.Content) { + if o != nil && !IsNil(o.Content) { return true } @@ -293,7 +303,13 @@ func (o NiaapiNiaMetadata) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.Content != nil { toSerialize["Content"] = o.Content @@ -327,6 +343,13 @@ func (o *NiaapiNiaMetadata) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -336,11 +359,23 @@ func (o *NiaapiNiaMetadata) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type NiaapiNiaMetadataWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_niaapi_nia_metadata_list.go b/model_niaapi_nia_metadata_list.go index a807c1d190..7efe8d398b 100644 --- a/model_niaapi_nia_metadata_list.go +++ b/model_niaapi_nia_metadata_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *NiaapiNiaMetadataList) GetResultsOk() ([]NiaapiNiaMetadata, bool) { // HasResults returns a boolean if a field has been set. func (o *NiaapiNiaMetadataList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *NiaapiNiaMetadataList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *NiaapiNiaMetadataList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type NiaapiNiaMetadataListWithoutEmbeddedStruct struct { // The total number of 'niaapi.NiaMetadata' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_niaapi_nia_metadata_response.go b/model_niaapi_nia_metadata_response.go index 98ab77c73b..78a100e232 100644 --- a/model_niaapi_nia_metadata_response.go +++ b/model_niaapi_nia_metadata_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_niaapi_nib_file_downloader.go b/model_niaapi_nib_file_downloader.go index a956d26711..6383f1d0d4 100644 --- a/model_niaapi_nib_file_downloader.go +++ b/model_niaapi_nib_file_downloader.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -84,6 +84,11 @@ func (o *NiaapiNibFileDownloader) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "niaapi.NibFileDownloader" of the ClassId field. +func (o *NiaapiNibFileDownloader) GetDefaultClassId() interface{} { + return "niaapi.NibFileDownloader" +} + // GetObjectType returns the ObjectType field value func (o *NiaapiNibFileDownloader) GetObjectType() string { if o == nil { @@ -108,6 +113,11 @@ func (o *NiaapiNibFileDownloader) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "niaapi.NibFileDownloader" of the ObjectType field. +func (o *NiaapiNibFileDownloader) GetDefaultObjectType() interface{} { + return "niaapi.NibFileDownloader" +} + // GetFileName returns the FileName field value if set, zero value otherwise. func (o *NiaapiNibFileDownloader) GetFileName() string { if o == nil || IsNil(o.FileName) { @@ -190,7 +200,13 @@ func (o NiaapiNibFileDownloader) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.FileName) { toSerialize["FileName"] = o.FileName @@ -215,6 +231,13 @@ func (o *NiaapiNibFileDownloader) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -224,11 +247,23 @@ func (o *NiaapiNibFileDownloader) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type NiaapiNibFileDownloaderWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_niaapi_nib_file_downloader_list.go b/model_niaapi_nib_file_downloader_list.go index 6ac91d628d..2583542cea 100644 --- a/model_niaapi_nib_file_downloader_list.go +++ b/model_niaapi_nib_file_downloader_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *NiaapiNibFileDownloaderList) GetResultsOk() ([]NiaapiNibFileDownloader, // HasResults returns a boolean if a field has been set. func (o *NiaapiNibFileDownloaderList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *NiaapiNibFileDownloaderList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *NiaapiNibFileDownloaderList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type NiaapiNibFileDownloaderListWithoutEmbeddedStruct struct { // The total number of 'niaapi.NibFileDownloader' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_niaapi_nib_file_downloader_response.go b/model_niaapi_nib_file_downloader_response.go index d9a91acdca..fea350c316 100644 --- a/model_niaapi_nib_file_downloader_response.go +++ b/model_niaapi_nib_file_downloader_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_niaapi_nib_metadata.go b/model_niaapi_nib_metadata.go index d121b67a5f..cf4ef016a3 100644 --- a/model_niaapi_nib_metadata.go +++ b/model_niaapi_nib_metadata.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -90,6 +90,11 @@ func (o *NiaapiNibMetadata) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "niaapi.NibMetadata" of the ClassId field. +func (o *NiaapiNibMetadata) GetDefaultClassId() interface{} { + return "niaapi.NibMetadata" +} + // GetObjectType returns the ObjectType field value func (o *NiaapiNibMetadata) GetObjectType() string { if o == nil { @@ -114,6 +119,11 @@ func (o *NiaapiNibMetadata) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "niaapi.NibMetadata" of the ObjectType field. +func (o *NiaapiNibMetadata) GetDefaultObjectType() interface{} { + return "niaapi.NibMetadata" +} + // GetContent returns the Content field value if set, zero value otherwise (both if not set or set to explicit null). func (o *NiaapiNibMetadata) GetContent() []NiaapiDetail { if o == nil { @@ -135,7 +145,7 @@ func (o *NiaapiNibMetadata) GetContentOk() ([]NiaapiDetail, bool) { // HasContent returns a boolean if a field has been set. func (o *NiaapiNibMetadata) HasContent() bool { - if o != nil && IsNil(o.Content) { + if o != nil && !IsNil(o.Content) { return true } @@ -293,7 +303,13 @@ func (o NiaapiNibMetadata) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.Content != nil { toSerialize["Content"] = o.Content @@ -327,6 +343,13 @@ func (o *NiaapiNibMetadata) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -336,11 +359,23 @@ func (o *NiaapiNibMetadata) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type NiaapiNibMetadataWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_niaapi_nib_metadata_list.go b/model_niaapi_nib_metadata_list.go index 08a798d74d..0bd1afb4d6 100644 --- a/model_niaapi_nib_metadata_list.go +++ b/model_niaapi_nib_metadata_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *NiaapiNibMetadataList) GetResultsOk() ([]NiaapiNibMetadata, bool) { // HasResults returns a boolean if a field has been set. func (o *NiaapiNibMetadataList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *NiaapiNibMetadataList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *NiaapiNibMetadataList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type NiaapiNibMetadataListWithoutEmbeddedStruct struct { // The total number of 'niaapi.NibMetadata' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_niaapi_nib_metadata_response.go b/model_niaapi_nib_metadata_response.go index 640e21db4a..1404ea9773 100644 --- a/model_niaapi_nib_metadata_response.go +++ b/model_niaapi_nib_metadata_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_niaapi_puv_script_downloader.go b/model_niaapi_puv_script_downloader.go index 3c9d4c55a6..b9abeb3a8b 100644 --- a/model_niaapi_puv_script_downloader.go +++ b/model_niaapi_puv_script_downloader.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -84,6 +84,11 @@ func (o *NiaapiPuvScriptDownloader) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "niaapi.PuvScriptDownloader" of the ClassId field. +func (o *NiaapiPuvScriptDownloader) GetDefaultClassId() interface{} { + return "niaapi.PuvScriptDownloader" +} + // GetObjectType returns the ObjectType field value func (o *NiaapiPuvScriptDownloader) GetObjectType() string { if o == nil { @@ -108,6 +113,11 @@ func (o *NiaapiPuvScriptDownloader) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "niaapi.PuvScriptDownloader" of the ObjectType field. +func (o *NiaapiPuvScriptDownloader) GetDefaultObjectType() interface{} { + return "niaapi.PuvScriptDownloader" +} + // GetFileName returns the FileName field value if set, zero value otherwise. func (o *NiaapiPuvScriptDownloader) GetFileName() string { if o == nil || IsNil(o.FileName) { @@ -190,7 +200,13 @@ func (o NiaapiPuvScriptDownloader) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.FileName) { toSerialize["FileName"] = o.FileName @@ -215,6 +231,13 @@ func (o *NiaapiPuvScriptDownloader) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -224,11 +247,23 @@ func (o *NiaapiPuvScriptDownloader) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type NiaapiPuvScriptDownloaderWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_niaapi_puv_script_downloader_list.go b/model_niaapi_puv_script_downloader_list.go index 3e8487e125..fa9f715c1d 100644 --- a/model_niaapi_puv_script_downloader_list.go +++ b/model_niaapi_puv_script_downloader_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *NiaapiPuvScriptDownloaderList) GetResultsOk() ([]NiaapiPuvScriptDownloa // HasResults returns a boolean if a field has been set. func (o *NiaapiPuvScriptDownloaderList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *NiaapiPuvScriptDownloaderList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *NiaapiPuvScriptDownloaderList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type NiaapiPuvScriptDownloaderListWithoutEmbeddedStruct struct { // The total number of 'niaapi.PuvScriptDownloader' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_niaapi_puv_script_downloader_response.go b/model_niaapi_puv_script_downloader_response.go index d35db81c2c..3a64aa26d0 100644 --- a/model_niaapi_puv_script_downloader_response.go +++ b/model_niaapi_puv_script_downloader_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_niaapi_release_recommend.go b/model_niaapi_release_recommend.go index f241af66ca..5f9a32ec67 100644 --- a/model_niaapi_release_recommend.go +++ b/model_niaapi_release_recommend.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -285,6 +285,10 @@ func (o *NiaapiReleaseRecommend) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -294,11 +298,23 @@ func (o *NiaapiReleaseRecommend) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type NiaapiReleaseRecommendWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. The enum values provides the list of concrete types that can be instantiated from this abstract type. ClassId string `json:"ClassId"` diff --git a/model_niaapi_revision_info.go b/model_niaapi_revision_info.go index 64d751ed52..741964b9a7 100644 --- a/model_niaapi_revision_info.go +++ b/model_niaapi_revision_info.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -87,6 +87,11 @@ func (o *NiaapiRevisionInfo) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "niaapi.RevisionInfo" of the ClassId field. +func (o *NiaapiRevisionInfo) GetDefaultClassId() interface{} { + return "niaapi.RevisionInfo" +} + // GetObjectType returns the ObjectType field value func (o *NiaapiRevisionInfo) GetObjectType() string { if o == nil { @@ -111,6 +116,11 @@ func (o *NiaapiRevisionInfo) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "niaapi.RevisionInfo" of the ObjectType field. +func (o *NiaapiRevisionInfo) GetDefaultObjectType() interface{} { + return "niaapi.RevisionInfo" +} + // GetDatePublished returns the DatePublished field value if set, zero value otherwise. func (o *NiaapiRevisionInfo) GetDatePublished() time.Time { if o == nil || IsNil(o.DatePublished) { @@ -225,7 +235,13 @@ func (o NiaapiRevisionInfo) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.DatePublished) { toSerialize["DatePublished"] = o.DatePublished @@ -253,6 +269,13 @@ func (o *NiaapiRevisionInfo) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -262,11 +285,23 @@ func (o *NiaapiRevisionInfo) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type NiaapiRevisionInfoWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_niaapi_sn_validator_metadata.go b/model_niaapi_sn_validator_metadata.go index a76a55bfb8..5771574fa2 100644 --- a/model_niaapi_sn_validator_metadata.go +++ b/model_niaapi_sn_validator_metadata.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -86,6 +86,11 @@ func (o *NiaapiSnValidatorMetadata) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "niaapi.SnValidatorMetadata" of the ClassId field. +func (o *NiaapiSnValidatorMetadata) GetDefaultClassId() interface{} { + return "niaapi.SnValidatorMetadata" +} + // GetObjectType returns the ObjectType field value func (o *NiaapiSnValidatorMetadata) GetObjectType() string { if o == nil { @@ -110,6 +115,11 @@ func (o *NiaapiSnValidatorMetadata) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "niaapi.SnValidatorMetadata" of the ObjectType field. +func (o *NiaapiSnValidatorMetadata) GetDefaultObjectType() interface{} { + return "niaapi.SnValidatorMetadata" +} + // GetChecksum returns the Checksum field value if set, zero value otherwise. func (o *NiaapiSnValidatorMetadata) GetChecksum() string { if o == nil || IsNil(o.Checksum) { @@ -224,7 +234,13 @@ func (o NiaapiSnValidatorMetadata) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Checksum) { toSerialize["Checksum"] = o.Checksum @@ -252,6 +268,13 @@ func (o *NiaapiSnValidatorMetadata) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -261,11 +284,23 @@ func (o *NiaapiSnValidatorMetadata) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type NiaapiSnValidatorMetadataWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_niaapi_sn_validator_metadata_list.go b/model_niaapi_sn_validator_metadata_list.go index a48f1fe7d7..fd1b9e7eb5 100644 --- a/model_niaapi_sn_validator_metadata_list.go +++ b/model_niaapi_sn_validator_metadata_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *NiaapiSnValidatorMetadataList) GetResultsOk() ([]NiaapiSnValidatorMetad // HasResults returns a boolean if a field has been set. func (o *NiaapiSnValidatorMetadataList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *NiaapiSnValidatorMetadataList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *NiaapiSnValidatorMetadataList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type NiaapiSnValidatorMetadataListWithoutEmbeddedStruct struct { // The total number of 'niaapi.SnValidatorMetadata' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_niaapi_sn_validator_metadata_response.go b/model_niaapi_sn_validator_metadata_response.go index 0cf0809f41..4a55f23682 100644 --- a/model_niaapi_sn_validator_metadata_response.go +++ b/model_niaapi_sn_validator_metadata_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_niaapi_software_eol.go b/model_niaapi_software_eol.go index 8515607c78..65b5576c7a 100644 --- a/model_niaapi_software_eol.go +++ b/model_niaapi_software_eol.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -804,6 +804,10 @@ func (o *NiaapiSoftwareEol) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -813,11 +817,23 @@ func (o *NiaapiSoftwareEol) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type NiaapiSoftwareEolWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. The enum values provides the list of concrete types that can be instantiated from this abstract type. ClassId string `json:"ClassId"` diff --git a/model_niaapi_software_regex.go b/model_niaapi_software_regex.go index 53af7926ed..8251b0cbdb 100644 --- a/model_niaapi_software_regex.go +++ b/model_niaapi_software_regex.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -84,6 +84,11 @@ func (o *NiaapiSoftwareRegex) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "niaapi.SoftwareRegex" of the ClassId field. +func (o *NiaapiSoftwareRegex) GetDefaultClassId() interface{} { + return "niaapi.SoftwareRegex" +} + // GetObjectType returns the ObjectType field value func (o *NiaapiSoftwareRegex) GetObjectType() string { if o == nil { @@ -108,6 +113,11 @@ func (o *NiaapiSoftwareRegex) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "niaapi.SoftwareRegex" of the ObjectType field. +func (o *NiaapiSoftwareRegex) GetDefaultObjectType() interface{} { + return "niaapi.SoftwareRegex" +} + // GetRegex returns the Regex field value if set, zero value otherwise. func (o *NiaapiSoftwareRegex) GetRegex() string { if o == nil || IsNil(o.Regex) { @@ -190,7 +200,13 @@ func (o NiaapiSoftwareRegex) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Regex) { toSerialize["Regex"] = o.Regex @@ -215,6 +231,13 @@ func (o *NiaapiSoftwareRegex) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -224,11 +247,23 @@ func (o *NiaapiSoftwareRegex) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type NiaapiSoftwareRegexWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_niaapi_upgrade_assist_file.go b/model_niaapi_upgrade_assist_file.go index 6dd8a1bc39..461b124c9f 100644 --- a/model_niaapi_upgrade_assist_file.go +++ b/model_niaapi_upgrade_assist_file.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -84,6 +84,11 @@ func (o *NiaapiUpgradeAssistFile) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "niaapi.UpgradeAssistFile" of the ClassId field. +func (o *NiaapiUpgradeAssistFile) GetDefaultClassId() interface{} { + return "niaapi.UpgradeAssistFile" +} + // GetObjectType returns the ObjectType field value func (o *NiaapiUpgradeAssistFile) GetObjectType() string { if o == nil { @@ -108,6 +113,11 @@ func (o *NiaapiUpgradeAssistFile) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "niaapi.UpgradeAssistFile" of the ObjectType field. +func (o *NiaapiUpgradeAssistFile) GetDefaultObjectType() interface{} { + return "niaapi.UpgradeAssistFile" +} + // GetFileName returns the FileName field value if set, zero value otherwise. func (o *NiaapiUpgradeAssistFile) GetFileName() string { if o == nil || IsNil(o.FileName) { @@ -190,7 +200,13 @@ func (o NiaapiUpgradeAssistFile) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.FileName) { toSerialize["FileName"] = o.FileName @@ -215,6 +231,13 @@ func (o *NiaapiUpgradeAssistFile) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -224,11 +247,23 @@ func (o *NiaapiUpgradeAssistFile) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type NiaapiUpgradeAssistFileWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_niaapi_upgrade_assist_file_list.go b/model_niaapi_upgrade_assist_file_list.go index cdb60fc398..a6e5b1f270 100644 --- a/model_niaapi_upgrade_assist_file_list.go +++ b/model_niaapi_upgrade_assist_file_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *NiaapiUpgradeAssistFileList) GetResultsOk() ([]NiaapiUpgradeAssistFile, // HasResults returns a boolean if a field has been set. func (o *NiaapiUpgradeAssistFileList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *NiaapiUpgradeAssistFileList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *NiaapiUpgradeAssistFileList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type NiaapiUpgradeAssistFileListWithoutEmbeddedStruct struct { // The total number of 'niaapi.UpgradeAssistFile' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_niaapi_upgrade_assist_file_response.go b/model_niaapi_upgrade_assist_file_response.go index 9648c8b932..bdc8de0b12 100644 --- a/model_niaapi_upgrade_assist_file_response.go +++ b/model_niaapi_upgrade_assist_file_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_niaapi_version_regex.go b/model_niaapi_version_regex.go index 5c0cf591db..9eb993970e 100644 --- a/model_niaapi_version_regex.go +++ b/model_niaapi_version_regex.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -84,6 +84,11 @@ func (o *NiaapiVersionRegex) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "niaapi.VersionRegex" of the ClassId field. +func (o *NiaapiVersionRegex) GetDefaultClassId() interface{} { + return "niaapi.VersionRegex" +} + // GetObjectType returns the ObjectType field value func (o *NiaapiVersionRegex) GetObjectType() string { if o == nil { @@ -108,6 +113,11 @@ func (o *NiaapiVersionRegex) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "niaapi.VersionRegex" of the ObjectType field. +func (o *NiaapiVersionRegex) GetDefaultObjectType() interface{} { + return "niaapi.VersionRegex" +} + // GetApic returns the Apic field value if set, zero value otherwise (both if not set or set to explicit null). func (o *NiaapiVersionRegex) GetApic() NiaapiVersionRegexPlatform { if o == nil || IsNil(o.Apic.Get()) { @@ -244,7 +254,13 @@ func (o NiaapiVersionRegex) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.Apic.IsSet() { toSerialize["Apic"] = o.Apic.Get() @@ -272,6 +288,13 @@ func (o *NiaapiVersionRegex) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -281,11 +304,23 @@ func (o *NiaapiVersionRegex) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type NiaapiVersionRegexWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_niaapi_version_regex_list.go b/model_niaapi_version_regex_list.go index aa5eb9ef65..11d56e9a90 100644 --- a/model_niaapi_version_regex_list.go +++ b/model_niaapi_version_regex_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *NiaapiVersionRegexList) GetResultsOk() ([]NiaapiVersionRegex, bool) { // HasResults returns a boolean if a field has been set. func (o *NiaapiVersionRegexList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *NiaapiVersionRegexList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *NiaapiVersionRegexList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type NiaapiVersionRegexListWithoutEmbeddedStruct struct { // The total number of 'niaapi.VersionRegex' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_niaapi_version_regex_platform.go b/model_niaapi_version_regex_platform.go index 037a91ec3e..f13651a22d 100644 --- a/model_niaapi_version_regex_platform.go +++ b/model_niaapi_version_regex_platform.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -86,6 +86,11 @@ func (o *NiaapiVersionRegexPlatform) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "niaapi.VersionRegexPlatform" of the ClassId field. +func (o *NiaapiVersionRegexPlatform) GetDefaultClassId() interface{} { + return "niaapi.VersionRegexPlatform" +} + // GetObjectType returns the ObjectType field value func (o *NiaapiVersionRegexPlatform) GetObjectType() string { if o == nil { @@ -110,6 +115,11 @@ func (o *NiaapiVersionRegexPlatform) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "niaapi.VersionRegexPlatform" of the ObjectType field. +func (o *NiaapiVersionRegexPlatform) GetDefaultObjectType() interface{} { + return "niaapi.VersionRegexPlatform" +} + // GetAnyllregex returns the Anyllregex field value if set, zero value otherwise. func (o *NiaapiVersionRegexPlatform) GetAnyllregex() string { if o == nil || IsNil(o.Anyllregex) { @@ -249,7 +259,7 @@ func (o *NiaapiVersionRegexPlatform) GetSltrainOk() ([]NiaapiSoftwareRegex, bool // HasSltrain returns a boolean if a field has been set. func (o *NiaapiVersionRegexPlatform) HasSltrain() bool { - if o != nil && IsNil(o.Sltrain) { + if o != nil && !IsNil(o.Sltrain) { return true } @@ -322,7 +332,13 @@ func (o NiaapiVersionRegexPlatform) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Anyllregex) { toSerialize["Anyllregex"] = o.Anyllregex @@ -356,6 +372,13 @@ func (o *NiaapiVersionRegexPlatform) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -365,11 +388,23 @@ func (o *NiaapiVersionRegexPlatform) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type NiaapiVersionRegexPlatformWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_niaapi_version_regex_response.go b/model_niaapi_version_regex_response.go index 16abc7f3aa..b0c843dbee 100644 --- a/model_niaapi_version_regex_response.go +++ b/model_niaapi_version_regex_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_niatelemetry_aaa_ldap_provider_details.go b/model_niatelemetry_aaa_ldap_provider_details.go index e73b2ce7e2..d128b43d94 100644 --- a/model_niatelemetry_aaa_ldap_provider_details.go +++ b/model_niatelemetry_aaa_ldap_provider_details.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -95,6 +95,11 @@ func (o *NiatelemetryAaaLdapProviderDetails) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "niatelemetry.AaaLdapProviderDetails" of the ClassId field. +func (o *NiatelemetryAaaLdapProviderDetails) GetDefaultClassId() interface{} { + return "niatelemetry.AaaLdapProviderDetails" +} + // GetObjectType returns the ObjectType field value func (o *NiatelemetryAaaLdapProviderDetails) GetObjectType() string { if o == nil { @@ -119,6 +124,11 @@ func (o *NiatelemetryAaaLdapProviderDetails) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "niatelemetry.AaaLdapProviderDetails" of the ObjectType field. +func (o *NiatelemetryAaaLdapProviderDetails) GetDefaultObjectType() interface{} { + return "niatelemetry.AaaLdapProviderDetails" +} + // GetBaseDn returns the BaseDn field value if set, zero value otherwise. func (o *NiatelemetryAaaLdapProviderDetails) GetBaseDn() string { if o == nil || IsNil(o.BaseDn) { @@ -404,7 +414,13 @@ func (o NiatelemetryAaaLdapProviderDetails) ToMap() (map[string]interface{}, err if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.BaseDn) { toSerialize["BaseDn"] = o.BaseDn @@ -447,6 +463,13 @@ func (o *NiatelemetryAaaLdapProviderDetails) UnmarshalJSON(data []byte) (err err "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -456,11 +479,23 @@ func (o *NiatelemetryAaaLdapProviderDetails) UnmarshalJSON(data []byte) (err err } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type NiatelemetryAaaLdapProviderDetailsWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_niatelemetry_aaa_ldap_provider_details_list.go b/model_niatelemetry_aaa_ldap_provider_details_list.go index cce0922a22..21f62eee60 100644 --- a/model_niatelemetry_aaa_ldap_provider_details_list.go +++ b/model_niatelemetry_aaa_ldap_provider_details_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *NiatelemetryAaaLdapProviderDetailsList) GetResultsOk() ([]NiatelemetryA // HasResults returns a boolean if a field has been set. func (o *NiatelemetryAaaLdapProviderDetailsList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *NiatelemetryAaaLdapProviderDetailsList) UnmarshalJSON(data []byte) (err "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *NiatelemetryAaaLdapProviderDetailsList) UnmarshalJSON(data []byte) (err } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type NiatelemetryAaaLdapProviderDetailsListWithoutEmbeddedStruct struct { // The total number of 'niatelemetry.AaaLdapProviderDetails' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_niatelemetry_aaa_ldap_provider_details_response.go b/model_niatelemetry_aaa_ldap_provider_details_response.go index 936cb65605..7831af8a7f 100644 --- a/model_niatelemetry_aaa_ldap_provider_details_response.go +++ b/model_niatelemetry_aaa_ldap_provider_details_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_niatelemetry_aaa_radius_provider_details.go b/model_niatelemetry_aaa_radius_provider_details.go index d061f2b126..354d333b3e 100644 --- a/model_niatelemetry_aaa_radius_provider_details.go +++ b/model_niatelemetry_aaa_radius_provider_details.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -91,6 +91,11 @@ func (o *NiatelemetryAaaRadiusProviderDetails) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "niatelemetry.AaaRadiusProviderDetails" of the ClassId field. +func (o *NiatelemetryAaaRadiusProviderDetails) GetDefaultClassId() interface{} { + return "niatelemetry.AaaRadiusProviderDetails" +} + // GetObjectType returns the ObjectType field value func (o *NiatelemetryAaaRadiusProviderDetails) GetObjectType() string { if o == nil { @@ -115,6 +120,11 @@ func (o *NiatelemetryAaaRadiusProviderDetails) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "niatelemetry.AaaRadiusProviderDetails" of the ObjectType field. +func (o *NiatelemetryAaaRadiusProviderDetails) GetDefaultObjectType() interface{} { + return "niatelemetry.AaaRadiusProviderDetails" +} + // GetDn returns the Dn field value if set, zero value otherwise. func (o *NiatelemetryAaaRadiusProviderDetails) GetDn() string { if o == nil || IsNil(o.Dn) { @@ -336,7 +346,13 @@ func (o NiatelemetryAaaRadiusProviderDetails) ToMap() (map[string]interface{}, e if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Dn) { toSerialize["Dn"] = o.Dn @@ -373,6 +389,13 @@ func (o *NiatelemetryAaaRadiusProviderDetails) UnmarshalJSON(data []byte) (err e "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -382,11 +405,23 @@ func (o *NiatelemetryAaaRadiusProviderDetails) UnmarshalJSON(data []byte) (err e } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type NiatelemetryAaaRadiusProviderDetailsWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_niatelemetry_aaa_radius_provider_details_list.go b/model_niatelemetry_aaa_radius_provider_details_list.go index a9b13e88f8..d7d245ca7e 100644 --- a/model_niatelemetry_aaa_radius_provider_details_list.go +++ b/model_niatelemetry_aaa_radius_provider_details_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *NiatelemetryAaaRadiusProviderDetailsList) GetResultsOk() ([]Niatelemetr // HasResults returns a boolean if a field has been set. func (o *NiatelemetryAaaRadiusProviderDetailsList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *NiatelemetryAaaRadiusProviderDetailsList) UnmarshalJSON(data []byte) (e "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *NiatelemetryAaaRadiusProviderDetailsList) UnmarshalJSON(data []byte) (e } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type NiatelemetryAaaRadiusProviderDetailsListWithoutEmbeddedStruct struct { // The total number of 'niatelemetry.AaaRadiusProviderDetails' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_niatelemetry_aaa_radius_provider_details_response.go b/model_niatelemetry_aaa_radius_provider_details_response.go index ae0cb2c39c..06a4829d72 100644 --- a/model_niatelemetry_aaa_radius_provider_details_response.go +++ b/model_niatelemetry_aaa_radius_provider_details_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_niatelemetry_aaa_tacacs_provider_details.go b/model_niatelemetry_aaa_tacacs_provider_details.go index f23f0f7660..ddb8a0d77b 100644 --- a/model_niatelemetry_aaa_tacacs_provider_details.go +++ b/model_niatelemetry_aaa_tacacs_provider_details.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -91,6 +91,11 @@ func (o *NiatelemetryAaaTacacsProviderDetails) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "niatelemetry.AaaTacacsProviderDetails" of the ClassId field. +func (o *NiatelemetryAaaTacacsProviderDetails) GetDefaultClassId() interface{} { + return "niatelemetry.AaaTacacsProviderDetails" +} + // GetObjectType returns the ObjectType field value func (o *NiatelemetryAaaTacacsProviderDetails) GetObjectType() string { if o == nil { @@ -115,6 +120,11 @@ func (o *NiatelemetryAaaTacacsProviderDetails) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "niatelemetry.AaaTacacsProviderDetails" of the ObjectType field. +func (o *NiatelemetryAaaTacacsProviderDetails) GetDefaultObjectType() interface{} { + return "niatelemetry.AaaTacacsProviderDetails" +} + // GetDn returns the Dn field value if set, zero value otherwise. func (o *NiatelemetryAaaTacacsProviderDetails) GetDn() string { if o == nil || IsNil(o.Dn) { @@ -336,7 +346,13 @@ func (o NiatelemetryAaaTacacsProviderDetails) ToMap() (map[string]interface{}, e if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Dn) { toSerialize["Dn"] = o.Dn @@ -373,6 +389,13 @@ func (o *NiatelemetryAaaTacacsProviderDetails) UnmarshalJSON(data []byte) (err e "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -382,11 +405,23 @@ func (o *NiatelemetryAaaTacacsProviderDetails) UnmarshalJSON(data []byte) (err e } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type NiatelemetryAaaTacacsProviderDetailsWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_niatelemetry_aaa_tacacs_provider_details_list.go b/model_niatelemetry_aaa_tacacs_provider_details_list.go index 07d8ec2447..19fb2006d2 100644 --- a/model_niatelemetry_aaa_tacacs_provider_details_list.go +++ b/model_niatelemetry_aaa_tacacs_provider_details_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *NiatelemetryAaaTacacsProviderDetailsList) GetResultsOk() ([]Niatelemetr // HasResults returns a boolean if a field has been set. func (o *NiatelemetryAaaTacacsProviderDetailsList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *NiatelemetryAaaTacacsProviderDetailsList) UnmarshalJSON(data []byte) (e "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *NiatelemetryAaaTacacsProviderDetailsList) UnmarshalJSON(data []byte) (e } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type NiatelemetryAaaTacacsProviderDetailsListWithoutEmbeddedStruct struct { // The total number of 'niatelemetry.AaaTacacsProviderDetails' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_niatelemetry_aaa_tacacs_provider_details_response.go b/model_niatelemetry_aaa_tacacs_provider_details_response.go index 472e58e492..fcfd237875 100644 --- a/model_niatelemetry_aaa_tacacs_provider_details_response.go +++ b/model_niatelemetry_aaa_tacacs_provider_details_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_niatelemetry_apic_app_plugin_details.go b/model_niatelemetry_apic_app_plugin_details.go index c8d1c02b7e..2532115db8 100644 --- a/model_niatelemetry_apic_app_plugin_details.go +++ b/model_niatelemetry_apic_app_plugin_details.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -93,6 +93,11 @@ func (o *NiatelemetryApicAppPluginDetails) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "niatelemetry.ApicAppPluginDetails" of the ClassId field. +func (o *NiatelemetryApicAppPluginDetails) GetDefaultClassId() interface{} { + return "niatelemetry.ApicAppPluginDetails" +} + // GetObjectType returns the ObjectType field value func (o *NiatelemetryApicAppPluginDetails) GetObjectType() string { if o == nil { @@ -117,6 +122,11 @@ func (o *NiatelemetryApicAppPluginDetails) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "niatelemetry.ApicAppPluginDetails" of the ObjectType field. +func (o *NiatelemetryApicAppPluginDetails) GetDefaultObjectType() interface{} { + return "niatelemetry.ApicAppPluginDetails" +} + // GetAppId returns the AppId field value if set, zero value otherwise. func (o *NiatelemetryApicAppPluginDetails) GetAppId() string { if o == nil || IsNil(o.AppId) { @@ -370,7 +380,13 @@ func (o NiatelemetryApicAppPluginDetails) ToMap() (map[string]interface{}, error if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.AppId) { toSerialize["AppId"] = o.AppId @@ -410,6 +426,13 @@ func (o *NiatelemetryApicAppPluginDetails) UnmarshalJSON(data []byte) (err error "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -419,11 +442,23 @@ func (o *NiatelemetryApicAppPluginDetails) UnmarshalJSON(data []byte) (err error } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type NiatelemetryApicAppPluginDetailsWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_niatelemetry_apic_app_plugin_details_list.go b/model_niatelemetry_apic_app_plugin_details_list.go index 3794b09adf..5fb5642325 100644 --- a/model_niatelemetry_apic_app_plugin_details_list.go +++ b/model_niatelemetry_apic_app_plugin_details_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *NiatelemetryApicAppPluginDetailsList) GetResultsOk() ([]NiatelemetryApi // HasResults returns a boolean if a field has been set. func (o *NiatelemetryApicAppPluginDetailsList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *NiatelemetryApicAppPluginDetailsList) UnmarshalJSON(data []byte) (err e "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *NiatelemetryApicAppPluginDetailsList) UnmarshalJSON(data []byte) (err e } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type NiatelemetryApicAppPluginDetailsListWithoutEmbeddedStruct struct { // The total number of 'niatelemetry.ApicAppPluginDetails' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_niatelemetry_apic_app_plugin_details_response.go b/model_niatelemetry_apic_app_plugin_details_response.go index 30f4073639..d6b7045bba 100644 --- a/model_niatelemetry_apic_app_plugin_details_response.go +++ b/model_niatelemetry_apic_app_plugin_details_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_niatelemetry_apic_core_file_details.go b/model_niatelemetry_apic_core_file_details.go index deff84bad7..4a3cd32cfd 100644 --- a/model_niatelemetry_apic_core_file_details.go +++ b/model_niatelemetry_apic_core_file_details.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -127,6 +127,11 @@ func (o *NiatelemetryApicCoreFileDetails) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "niatelemetry.ApicCoreFileDetails" of the ClassId field. +func (o *NiatelemetryApicCoreFileDetails) GetDefaultClassId() interface{} { + return "niatelemetry.ApicCoreFileDetails" +} + // GetObjectType returns the ObjectType field value func (o *NiatelemetryApicCoreFileDetails) GetObjectType() string { if o == nil { @@ -151,6 +156,11 @@ func (o *NiatelemetryApicCoreFileDetails) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "niatelemetry.ApicCoreFileDetails" of the ObjectType field. +func (o *NiatelemetryApicCoreFileDetails) GetDefaultObjectType() interface{} { + return "niatelemetry.ApicCoreFileDetails" +} + // GetAnnotation returns the Annotation field value if set, zero value otherwise. func (o *NiatelemetryApicCoreFileDetails) GetAnnotation() string { if o == nil || IsNil(o.Annotation) { @@ -948,7 +958,13 @@ func (o NiatelemetryApicCoreFileDetails) ToMap() (map[string]interface{}, error) if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Annotation) { toSerialize["Annotation"] = o.Annotation @@ -1039,6 +1055,13 @@ func (o *NiatelemetryApicCoreFileDetails) UnmarshalJSON(data []byte) (err error) "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -1048,11 +1071,23 @@ func (o *NiatelemetryApicCoreFileDetails) UnmarshalJSON(data []byte) (err error) } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type NiatelemetryApicCoreFileDetailsWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_niatelemetry_apic_core_file_details_list.go b/model_niatelemetry_apic_core_file_details_list.go index a8f92b8cf0..fc1dacc63a 100644 --- a/model_niatelemetry_apic_core_file_details_list.go +++ b/model_niatelemetry_apic_core_file_details_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *NiatelemetryApicCoreFileDetailsList) GetResultsOk() ([]NiatelemetryApic // HasResults returns a boolean if a field has been set. func (o *NiatelemetryApicCoreFileDetailsList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *NiatelemetryApicCoreFileDetailsList) UnmarshalJSON(data []byte) (err er "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *NiatelemetryApicCoreFileDetailsList) UnmarshalJSON(data []byte) (err er } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type NiatelemetryApicCoreFileDetailsListWithoutEmbeddedStruct struct { // The total number of 'niatelemetry.ApicCoreFileDetails' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_niatelemetry_apic_core_file_details_response.go b/model_niatelemetry_apic_core_file_details_response.go index e71b917948..b5a6d667b7 100644 --- a/model_niatelemetry_apic_core_file_details_response.go +++ b/model_niatelemetry_apic_core_file_details_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_niatelemetry_apic_dbgexp_rs_export_dest.go b/model_niatelemetry_apic_dbgexp_rs_export_dest.go index b24f554b73..7da143494e 100644 --- a/model_niatelemetry_apic_dbgexp_rs_export_dest.go +++ b/model_niatelemetry_apic_dbgexp_rs_export_dest.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -89,6 +89,11 @@ func (o *NiatelemetryApicDbgexpRsExportDest) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "niatelemetry.ApicDbgexpRsExportDest" of the ClassId field. +func (o *NiatelemetryApicDbgexpRsExportDest) GetDefaultClassId() interface{} { + return "niatelemetry.ApicDbgexpRsExportDest" +} + // GetObjectType returns the ObjectType field value func (o *NiatelemetryApicDbgexpRsExportDest) GetObjectType() string { if o == nil { @@ -113,6 +118,11 @@ func (o *NiatelemetryApicDbgexpRsExportDest) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "niatelemetry.ApicDbgexpRsExportDest" of the ObjectType field. +func (o *NiatelemetryApicDbgexpRsExportDest) GetDefaultObjectType() interface{} { + return "niatelemetry.ApicDbgexpRsExportDest" +} + // GetDn returns the Dn field value if set, zero value otherwise. func (o *NiatelemetryApicDbgexpRsExportDest) GetDn() string { if o == nil || IsNil(o.Dn) { @@ -302,7 +312,13 @@ func (o NiatelemetryApicDbgexpRsExportDest) ToMap() (map[string]interface{}, err if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Dn) { toSerialize["Dn"] = o.Dn @@ -336,6 +352,13 @@ func (o *NiatelemetryApicDbgexpRsExportDest) UnmarshalJSON(data []byte) (err err "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -345,11 +368,23 @@ func (o *NiatelemetryApicDbgexpRsExportDest) UnmarshalJSON(data []byte) (err err } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type NiatelemetryApicDbgexpRsExportDestWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_niatelemetry_apic_dbgexp_rs_export_dest_list.go b/model_niatelemetry_apic_dbgexp_rs_export_dest_list.go index a6131b5458..6f3e54f47b 100644 --- a/model_niatelemetry_apic_dbgexp_rs_export_dest_list.go +++ b/model_niatelemetry_apic_dbgexp_rs_export_dest_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *NiatelemetryApicDbgexpRsExportDestList) GetResultsOk() ([]NiatelemetryA // HasResults returns a boolean if a field has been set. func (o *NiatelemetryApicDbgexpRsExportDestList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *NiatelemetryApicDbgexpRsExportDestList) UnmarshalJSON(data []byte) (err "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *NiatelemetryApicDbgexpRsExportDestList) UnmarshalJSON(data []byte) (err } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type NiatelemetryApicDbgexpRsExportDestListWithoutEmbeddedStruct struct { // The total number of 'niatelemetry.ApicDbgexpRsExportDest' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_niatelemetry_apic_dbgexp_rs_export_dest_response.go b/model_niatelemetry_apic_dbgexp_rs_export_dest_response.go index 4ca40abd83..3b965b1a17 100644 --- a/model_niatelemetry_apic_dbgexp_rs_export_dest_response.go +++ b/model_niatelemetry_apic_dbgexp_rs_export_dest_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_niatelemetry_apic_dbgexp_rs_ts_scheduler.go b/model_niatelemetry_apic_dbgexp_rs_ts_scheduler.go index 8148504977..77e9b2f2b8 100644 --- a/model_niatelemetry_apic_dbgexp_rs_ts_scheduler.go +++ b/model_niatelemetry_apic_dbgexp_rs_ts_scheduler.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -89,6 +89,11 @@ func (o *NiatelemetryApicDbgexpRsTsScheduler) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "niatelemetry.ApicDbgexpRsTsScheduler" of the ClassId field. +func (o *NiatelemetryApicDbgexpRsTsScheduler) GetDefaultClassId() interface{} { + return "niatelemetry.ApicDbgexpRsTsScheduler" +} + // GetObjectType returns the ObjectType field value func (o *NiatelemetryApicDbgexpRsTsScheduler) GetObjectType() string { if o == nil { @@ -113,6 +118,11 @@ func (o *NiatelemetryApicDbgexpRsTsScheduler) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "niatelemetry.ApicDbgexpRsTsScheduler" of the ObjectType field. +func (o *NiatelemetryApicDbgexpRsTsScheduler) GetDefaultObjectType() interface{} { + return "niatelemetry.ApicDbgexpRsTsScheduler" +} + // GetDn returns the Dn field value if set, zero value otherwise. func (o *NiatelemetryApicDbgexpRsTsScheduler) GetDn() string { if o == nil || IsNil(o.Dn) { @@ -302,7 +312,13 @@ func (o NiatelemetryApicDbgexpRsTsScheduler) ToMap() (map[string]interface{}, er if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Dn) { toSerialize["Dn"] = o.Dn @@ -336,6 +352,13 @@ func (o *NiatelemetryApicDbgexpRsTsScheduler) UnmarshalJSON(data []byte) (err er "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -345,11 +368,23 @@ func (o *NiatelemetryApicDbgexpRsTsScheduler) UnmarshalJSON(data []byte) (err er } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type NiatelemetryApicDbgexpRsTsSchedulerWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_niatelemetry_apic_dbgexp_rs_ts_scheduler_list.go b/model_niatelemetry_apic_dbgexp_rs_ts_scheduler_list.go index e51bc09282..a2d4d4cb67 100644 --- a/model_niatelemetry_apic_dbgexp_rs_ts_scheduler_list.go +++ b/model_niatelemetry_apic_dbgexp_rs_ts_scheduler_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *NiatelemetryApicDbgexpRsTsSchedulerList) GetResultsOk() ([]Niatelemetry // HasResults returns a boolean if a field has been set. func (o *NiatelemetryApicDbgexpRsTsSchedulerList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *NiatelemetryApicDbgexpRsTsSchedulerList) UnmarshalJSON(data []byte) (er "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *NiatelemetryApicDbgexpRsTsSchedulerList) UnmarshalJSON(data []byte) (er } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type NiatelemetryApicDbgexpRsTsSchedulerListWithoutEmbeddedStruct struct { // The total number of 'niatelemetry.ApicDbgexpRsTsScheduler' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_niatelemetry_apic_dbgexp_rs_ts_scheduler_response.go b/model_niatelemetry_apic_dbgexp_rs_ts_scheduler_response.go index 4c25e5138c..1db23db727 100644 --- a/model_niatelemetry_apic_dbgexp_rs_ts_scheduler_response.go +++ b/model_niatelemetry_apic_dbgexp_rs_ts_scheduler_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_niatelemetry_apic_fan_details.go b/model_niatelemetry_apic_fan_details.go index 172e3c2faa..bf0ba9331e 100644 --- a/model_niatelemetry_apic_fan_details.go +++ b/model_niatelemetry_apic_fan_details.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -99,6 +99,11 @@ func (o *NiatelemetryApicFanDetails) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "niatelemetry.ApicFanDetails" of the ClassId field. +func (o *NiatelemetryApicFanDetails) GetDefaultClassId() interface{} { + return "niatelemetry.ApicFanDetails" +} + // GetObjectType returns the ObjectType field value func (o *NiatelemetryApicFanDetails) GetObjectType() string { if o == nil { @@ -123,6 +128,11 @@ func (o *NiatelemetryApicFanDetails) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "niatelemetry.ApicFanDetails" of the ObjectType field. +func (o *NiatelemetryApicFanDetails) GetDefaultObjectType() interface{} { + return "niatelemetry.ApicFanDetails" +} + // GetDn returns the Dn field value if set, zero value otherwise. func (o *NiatelemetryApicFanDetails) GetDn() string { if o == nil || IsNil(o.Dn) { @@ -472,7 +482,13 @@ func (o NiatelemetryApicFanDetails) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Dn) { toSerialize["Dn"] = o.Dn @@ -521,6 +537,13 @@ func (o *NiatelemetryApicFanDetails) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -530,11 +553,23 @@ func (o *NiatelemetryApicFanDetails) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type NiatelemetryApicFanDetailsWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_niatelemetry_apic_fan_details_list.go b/model_niatelemetry_apic_fan_details_list.go index 49d83e2780..5a4c7c705f 100644 --- a/model_niatelemetry_apic_fan_details_list.go +++ b/model_niatelemetry_apic_fan_details_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *NiatelemetryApicFanDetailsList) GetResultsOk() ([]NiatelemetryApicFanDe // HasResults returns a boolean if a field has been set. func (o *NiatelemetryApicFanDetailsList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *NiatelemetryApicFanDetailsList) UnmarshalJSON(data []byte) (err error) "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *NiatelemetryApicFanDetailsList) UnmarshalJSON(data []byte) (err error) } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type NiatelemetryApicFanDetailsListWithoutEmbeddedStruct struct { // The total number of 'niatelemetry.ApicFanDetails' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_niatelemetry_apic_fan_details_response.go b/model_niatelemetry_apic_fan_details_response.go index 422f8b721a..13f86a0b7b 100644 --- a/model_niatelemetry_apic_fan_details_response.go +++ b/model_niatelemetry_apic_fan_details_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_niatelemetry_apic_fex_details.go b/model_niatelemetry_apic_fex_details.go index 993832eb24..3eff95cdfe 100644 --- a/model_niatelemetry_apic_fex_details.go +++ b/model_niatelemetry_apic_fex_details.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -99,6 +99,11 @@ func (o *NiatelemetryApicFexDetails) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "niatelemetry.ApicFexDetails" of the ClassId field. +func (o *NiatelemetryApicFexDetails) GetDefaultClassId() interface{} { + return "niatelemetry.ApicFexDetails" +} + // GetObjectType returns the ObjectType field value func (o *NiatelemetryApicFexDetails) GetObjectType() string { if o == nil { @@ -123,6 +128,11 @@ func (o *NiatelemetryApicFexDetails) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "niatelemetry.ApicFexDetails" of the ObjectType field. +func (o *NiatelemetryApicFexDetails) GetDefaultObjectType() interface{} { + return "niatelemetry.ApicFexDetails" +} + // GetDn returns the Dn field value if set, zero value otherwise. func (o *NiatelemetryApicFexDetails) GetDn() string { if o == nil || IsNil(o.Dn) { @@ -472,7 +482,13 @@ func (o NiatelemetryApicFexDetails) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Dn) { toSerialize["Dn"] = o.Dn @@ -521,6 +537,13 @@ func (o *NiatelemetryApicFexDetails) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -530,11 +553,23 @@ func (o *NiatelemetryApicFexDetails) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type NiatelemetryApicFexDetailsWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_niatelemetry_apic_fex_details_list.go b/model_niatelemetry_apic_fex_details_list.go index a72df52c6a..902fa122bb 100644 --- a/model_niatelemetry_apic_fex_details_list.go +++ b/model_niatelemetry_apic_fex_details_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *NiatelemetryApicFexDetailsList) GetResultsOk() ([]NiatelemetryApicFexDe // HasResults returns a boolean if a field has been set. func (o *NiatelemetryApicFexDetailsList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *NiatelemetryApicFexDetailsList) UnmarshalJSON(data []byte) (err error) "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *NiatelemetryApicFexDetailsList) UnmarshalJSON(data []byte) (err error) } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type NiatelemetryApicFexDetailsListWithoutEmbeddedStruct struct { // The total number of 'niatelemetry.ApicFexDetails' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_niatelemetry_apic_fex_details_response.go b/model_niatelemetry_apic_fex_details_response.go index c9bb66a76b..7b9c1ba3a6 100644 --- a/model_niatelemetry_apic_fex_details_response.go +++ b/model_niatelemetry_apic_fex_details_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_niatelemetry_apic_flash_details.go b/model_niatelemetry_apic_flash_details.go index 047d023314..d0c69789f0 100644 --- a/model_niatelemetry_apic_flash_details.go +++ b/model_niatelemetry_apic_flash_details.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -95,6 +95,11 @@ func (o *NiatelemetryApicFlashDetails) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "niatelemetry.ApicFlashDetails" of the ClassId field. +func (o *NiatelemetryApicFlashDetails) GetDefaultClassId() interface{} { + return "niatelemetry.ApicFlashDetails" +} + // GetObjectType returns the ObjectType field value func (o *NiatelemetryApicFlashDetails) GetObjectType() string { if o == nil { @@ -119,6 +124,11 @@ func (o *NiatelemetryApicFlashDetails) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "niatelemetry.ApicFlashDetails" of the ObjectType field. +func (o *NiatelemetryApicFlashDetails) GetDefaultObjectType() interface{} { + return "niatelemetry.ApicFlashDetails" +} + // GetDn returns the Dn field value if set, zero value otherwise. func (o *NiatelemetryApicFlashDetails) GetDn() string { if o == nil || IsNil(o.Dn) { @@ -404,7 +414,13 @@ func (o NiatelemetryApicFlashDetails) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Dn) { toSerialize["Dn"] = o.Dn @@ -447,6 +463,13 @@ func (o *NiatelemetryApicFlashDetails) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -456,11 +479,23 @@ func (o *NiatelemetryApicFlashDetails) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type NiatelemetryApicFlashDetailsWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_niatelemetry_apic_flash_details_list.go b/model_niatelemetry_apic_flash_details_list.go index bc8ba949cf..de87b59e17 100644 --- a/model_niatelemetry_apic_flash_details_list.go +++ b/model_niatelemetry_apic_flash_details_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *NiatelemetryApicFlashDetailsList) GetResultsOk() ([]NiatelemetryApicFla // HasResults returns a boolean if a field has been set. func (o *NiatelemetryApicFlashDetailsList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *NiatelemetryApicFlashDetailsList) UnmarshalJSON(data []byte) (err error "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *NiatelemetryApicFlashDetailsList) UnmarshalJSON(data []byte) (err error } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type NiatelemetryApicFlashDetailsListWithoutEmbeddedStruct struct { // The total number of 'niatelemetry.ApicFlashDetails' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_niatelemetry_apic_flash_details_response.go b/model_niatelemetry_apic_flash_details_response.go index a1f612783b..6d7db81344 100644 --- a/model_niatelemetry_apic_flash_details_response.go +++ b/model_niatelemetry_apic_flash_details_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_niatelemetry_apic_ntp_auth.go b/model_niatelemetry_apic_ntp_auth.go index 5eafd3a6b8..d34b57f9c6 100644 --- a/model_niatelemetry_apic_ntp_auth.go +++ b/model_niatelemetry_apic_ntp_auth.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -91,6 +91,11 @@ func (o *NiatelemetryApicNtpAuth) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "niatelemetry.ApicNtpAuth" of the ClassId field. +func (o *NiatelemetryApicNtpAuth) GetDefaultClassId() interface{} { + return "niatelemetry.ApicNtpAuth" +} + // GetObjectType returns the ObjectType field value func (o *NiatelemetryApicNtpAuth) GetObjectType() string { if o == nil { @@ -115,6 +120,11 @@ func (o *NiatelemetryApicNtpAuth) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "niatelemetry.ApicNtpAuth" of the ObjectType field. +func (o *NiatelemetryApicNtpAuth) GetDefaultObjectType() interface{} { + return "niatelemetry.ApicNtpAuth" +} + // GetAuthSt returns the AuthSt field value if set, zero value otherwise. func (o *NiatelemetryApicNtpAuth) GetAuthSt() string { if o == nil || IsNil(o.AuthSt) { @@ -336,7 +346,13 @@ func (o NiatelemetryApicNtpAuth) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.AuthSt) { toSerialize["AuthSt"] = o.AuthSt @@ -373,6 +389,13 @@ func (o *NiatelemetryApicNtpAuth) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -382,11 +405,23 @@ func (o *NiatelemetryApicNtpAuth) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type NiatelemetryApicNtpAuthWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_niatelemetry_apic_ntp_auth_list.go b/model_niatelemetry_apic_ntp_auth_list.go index 3d0cf197c1..de716daf9e 100644 --- a/model_niatelemetry_apic_ntp_auth_list.go +++ b/model_niatelemetry_apic_ntp_auth_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *NiatelemetryApicNtpAuthList) GetResultsOk() ([]NiatelemetryApicNtpAuth, // HasResults returns a boolean if a field has been set. func (o *NiatelemetryApicNtpAuthList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *NiatelemetryApicNtpAuthList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *NiatelemetryApicNtpAuthList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type NiatelemetryApicNtpAuthListWithoutEmbeddedStruct struct { // The total number of 'niatelemetry.ApicNtpAuth' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_niatelemetry_apic_ntp_auth_response.go b/model_niatelemetry_apic_ntp_auth_response.go index 78597467ac..039c5008e6 100644 --- a/model_niatelemetry_apic_ntp_auth_response.go +++ b/model_niatelemetry_apic_ntp_auth_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_niatelemetry_apic_performance_data.go b/model_niatelemetry_apic_performance_data.go index 9676d6277e..7bfee7f6a7 100644 --- a/model_niatelemetry_apic_performance_data.go +++ b/model_niatelemetry_apic_performance_data.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -101,6 +101,11 @@ func (o *NiatelemetryApicPerformanceData) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "niatelemetry.ApicPerformanceData" of the ClassId field. +func (o *NiatelemetryApicPerformanceData) GetDefaultClassId() interface{} { + return "niatelemetry.ApicPerformanceData" +} + // GetObjectType returns the ObjectType field value func (o *NiatelemetryApicPerformanceData) GetObjectType() string { if o == nil { @@ -125,6 +130,11 @@ func (o *NiatelemetryApicPerformanceData) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "niatelemetry.ApicPerformanceData" of the ObjectType field. +func (o *NiatelemetryApicPerformanceData) GetDefaultObjectType() interface{} { + return "niatelemetry.ApicPerformanceData" +} + // GetDigitalOpticalMonitoring returns the DigitalOpticalMonitoring field value if set, zero value otherwise (both if not set or set to explicit null). func (o *NiatelemetryApicPerformanceData) GetDigitalOpticalMonitoring() []NiatelemetryDigitalOpticalMonitoring { if o == nil { @@ -146,7 +156,7 @@ func (o *NiatelemetryApicPerformanceData) GetDigitalOpticalMonitoringOk() ([]Nia // HasDigitalOpticalMonitoring returns a boolean if a field has been set. func (o *NiatelemetryApicPerformanceData) HasDigitalOpticalMonitoring() bool { - if o != nil && IsNil(o.DigitalOpticalMonitoring) { + if o != nil && !IsNil(o.DigitalOpticalMonitoring) { return true } @@ -683,7 +693,7 @@ func (o *NiatelemetryApicPerformanceData) GetSwitchDiskUtilizationOk() ([]Niatel // HasSwitchDiskUtilization returns a boolean if a field has been set. func (o *NiatelemetryApicPerformanceData) HasSwitchDiskUtilization() bool { - if o != nil && IsNil(o.SwitchDiskUtilization) { + if o != nil && !IsNil(o.SwitchDiskUtilization) { return true } @@ -756,7 +766,13 @@ func (o NiatelemetryApicPerformanceData) ToMap() (map[string]interface{}, error) if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.DigitalOpticalMonitoring != nil { toSerialize["DigitalOpticalMonitoring"] = o.DigitalOpticalMonitoring @@ -823,6 +839,13 @@ func (o *NiatelemetryApicPerformanceData) UnmarshalJSON(data []byte) (err error) "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -832,11 +855,23 @@ func (o *NiatelemetryApicPerformanceData) UnmarshalJSON(data []byte) (err error) } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type NiatelemetryApicPerformanceDataWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_niatelemetry_apic_performance_data_list.go b/model_niatelemetry_apic_performance_data_list.go index 440dc3566e..bc78816fe0 100644 --- a/model_niatelemetry_apic_performance_data_list.go +++ b/model_niatelemetry_apic_performance_data_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *NiatelemetryApicPerformanceDataList) GetResultsOk() ([]NiatelemetryApic // HasResults returns a boolean if a field has been set. func (o *NiatelemetryApicPerformanceDataList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *NiatelemetryApicPerformanceDataList) UnmarshalJSON(data []byte) (err er "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *NiatelemetryApicPerformanceDataList) UnmarshalJSON(data []byte) (err er } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type NiatelemetryApicPerformanceDataListWithoutEmbeddedStruct struct { // The total number of 'niatelemetry.ApicPerformanceData' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_niatelemetry_apic_performance_data_response.go b/model_niatelemetry_apic_performance_data_response.go index d46fded9b1..e181022ce8 100644 --- a/model_niatelemetry_apic_performance_data_response.go +++ b/model_niatelemetry_apic_performance_data_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_niatelemetry_apic_pod_data.go b/model_niatelemetry_apic_pod_data.go index c34d46171b..b4ab957a47 100644 --- a/model_niatelemetry_apic_pod_data.go +++ b/model_niatelemetry_apic_pod_data.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -93,6 +93,11 @@ func (o *NiatelemetryApicPodData) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "niatelemetry.ApicPodData" of the ClassId field. +func (o *NiatelemetryApicPodData) GetDefaultClassId() interface{} { + return "niatelemetry.ApicPodData" +} + // GetObjectType returns the ObjectType field value func (o *NiatelemetryApicPodData) GetObjectType() string { if o == nil { @@ -117,6 +122,11 @@ func (o *NiatelemetryApicPodData) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "niatelemetry.ApicPodData" of the ObjectType field. +func (o *NiatelemetryApicPodData) GetDefaultObjectType() interface{} { + return "niatelemetry.ApicPodData" +} + // GetDn returns the Dn field value if set, zero value otherwise. func (o *NiatelemetryApicPodData) GetDn() string { if o == nil || IsNil(o.Dn) { @@ -370,7 +380,13 @@ func (o NiatelemetryApicPodData) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Dn) { toSerialize["Dn"] = o.Dn @@ -410,6 +426,13 @@ func (o *NiatelemetryApicPodData) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -419,11 +442,23 @@ func (o *NiatelemetryApicPodData) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type NiatelemetryApicPodDataWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_niatelemetry_apic_pod_data_list.go b/model_niatelemetry_apic_pod_data_list.go index 3db7d4a79f..ff10835b36 100644 --- a/model_niatelemetry_apic_pod_data_list.go +++ b/model_niatelemetry_apic_pod_data_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *NiatelemetryApicPodDataList) GetResultsOk() ([]NiatelemetryApicPodData, // HasResults returns a boolean if a field has been set. func (o *NiatelemetryApicPodDataList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *NiatelemetryApicPodDataList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *NiatelemetryApicPodDataList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type NiatelemetryApicPodDataListWithoutEmbeddedStruct struct { // The total number of 'niatelemetry.ApicPodData' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_niatelemetry_apic_pod_data_response.go b/model_niatelemetry_apic_pod_data_response.go index 9375c41efa..bebb990d54 100644 --- a/model_niatelemetry_apic_pod_data_response.go +++ b/model_niatelemetry_apic_pod_data_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_niatelemetry_apic_psu_details.go b/model_niatelemetry_apic_psu_details.go index f9f8c327f9..10d1f205ff 100644 --- a/model_niatelemetry_apic_psu_details.go +++ b/model_niatelemetry_apic_psu_details.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -99,6 +99,11 @@ func (o *NiatelemetryApicPsuDetails) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "niatelemetry.ApicPsuDetails" of the ClassId field. +func (o *NiatelemetryApicPsuDetails) GetDefaultClassId() interface{} { + return "niatelemetry.ApicPsuDetails" +} + // GetObjectType returns the ObjectType field value func (o *NiatelemetryApicPsuDetails) GetObjectType() string { if o == nil { @@ -123,6 +128,11 @@ func (o *NiatelemetryApicPsuDetails) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "niatelemetry.ApicPsuDetails" of the ObjectType field. +func (o *NiatelemetryApicPsuDetails) GetDefaultObjectType() interface{} { + return "niatelemetry.ApicPsuDetails" +} + // GetDn returns the Dn field value if set, zero value otherwise. func (o *NiatelemetryApicPsuDetails) GetDn() string { if o == nil || IsNil(o.Dn) { @@ -472,7 +482,13 @@ func (o NiatelemetryApicPsuDetails) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Dn) { toSerialize["Dn"] = o.Dn @@ -521,6 +537,13 @@ func (o *NiatelemetryApicPsuDetails) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -530,11 +553,23 @@ func (o *NiatelemetryApicPsuDetails) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type NiatelemetryApicPsuDetailsWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_niatelemetry_apic_psu_details_list.go b/model_niatelemetry_apic_psu_details_list.go index e5737d518d..5826801d34 100644 --- a/model_niatelemetry_apic_psu_details_list.go +++ b/model_niatelemetry_apic_psu_details_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *NiatelemetryApicPsuDetailsList) GetResultsOk() ([]NiatelemetryApicPsuDe // HasResults returns a boolean if a field has been set. func (o *NiatelemetryApicPsuDetailsList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *NiatelemetryApicPsuDetailsList) UnmarshalJSON(data []byte) (err error) "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *NiatelemetryApicPsuDetailsList) UnmarshalJSON(data []byte) (err error) } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type NiatelemetryApicPsuDetailsListWithoutEmbeddedStruct struct { // The total number of 'niatelemetry.ApicPsuDetails' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_niatelemetry_apic_psu_details_response.go b/model_niatelemetry_apic_psu_details_response.go index d264a87e4f..2109f2abf3 100644 --- a/model_niatelemetry_apic_psu_details_response.go +++ b/model_niatelemetry_apic_psu_details_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_niatelemetry_apic_realm_details.go b/model_niatelemetry_apic_realm_details.go index 075cc5c868..b7d5f6bd6d 100644 --- a/model_niatelemetry_apic_realm_details.go +++ b/model_niatelemetry_apic_realm_details.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -91,6 +91,11 @@ func (o *NiatelemetryApicRealmDetails) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "niatelemetry.ApicRealmDetails" of the ClassId field. +func (o *NiatelemetryApicRealmDetails) GetDefaultClassId() interface{} { + return "niatelemetry.ApicRealmDetails" +} + // GetObjectType returns the ObjectType field value func (o *NiatelemetryApicRealmDetails) GetObjectType() string { if o == nil { @@ -115,6 +120,11 @@ func (o *NiatelemetryApicRealmDetails) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "niatelemetry.ApicRealmDetails" of the ObjectType field. +func (o *NiatelemetryApicRealmDetails) GetDefaultObjectType() interface{} { + return "niatelemetry.ApicRealmDetails" +} + // GetDn returns the Dn field value if set, zero value otherwise. func (o *NiatelemetryApicRealmDetails) GetDn() string { if o == nil || IsNil(o.Dn) { @@ -336,7 +346,13 @@ func (o NiatelemetryApicRealmDetails) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Dn) { toSerialize["Dn"] = o.Dn @@ -373,6 +389,13 @@ func (o *NiatelemetryApicRealmDetails) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -382,11 +405,23 @@ func (o *NiatelemetryApicRealmDetails) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type NiatelemetryApicRealmDetailsWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_niatelemetry_apic_realm_details_list.go b/model_niatelemetry_apic_realm_details_list.go index adc57cb625..e9c18ba906 100644 --- a/model_niatelemetry_apic_realm_details_list.go +++ b/model_niatelemetry_apic_realm_details_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *NiatelemetryApicRealmDetailsList) GetResultsOk() ([]NiatelemetryApicRea // HasResults returns a boolean if a field has been set. func (o *NiatelemetryApicRealmDetailsList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *NiatelemetryApicRealmDetailsList) UnmarshalJSON(data []byte) (err error "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *NiatelemetryApicRealmDetailsList) UnmarshalJSON(data []byte) (err error } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type NiatelemetryApicRealmDetailsListWithoutEmbeddedStruct struct { // The total number of 'niatelemetry.ApicRealmDetails' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_niatelemetry_apic_realm_details_response.go b/model_niatelemetry_apic_realm_details_response.go index 764f2bdca0..43d0b80f03 100644 --- a/model_niatelemetry_apic_realm_details_response.go +++ b/model_niatelemetry_apic_realm_details_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_niatelemetry_apic_snmp_client_grp_details.go b/model_niatelemetry_apic_snmp_client_grp_details.go index 42278062ed..229f839e12 100644 --- a/model_niatelemetry_apic_snmp_client_grp_details.go +++ b/model_niatelemetry_apic_snmp_client_grp_details.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -95,6 +95,11 @@ func (o *NiatelemetryApicSnmpClientGrpDetails) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "niatelemetry.ApicSnmpClientGrpDetails" of the ClassId field. +func (o *NiatelemetryApicSnmpClientGrpDetails) GetDefaultClassId() interface{} { + return "niatelemetry.ApicSnmpClientGrpDetails" +} + // GetObjectType returns the ObjectType field value func (o *NiatelemetryApicSnmpClientGrpDetails) GetObjectType() string { if o == nil { @@ -119,6 +124,11 @@ func (o *NiatelemetryApicSnmpClientGrpDetails) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "niatelemetry.ApicSnmpClientGrpDetails" of the ObjectType field. +func (o *NiatelemetryApicSnmpClientGrpDetails) GetDefaultObjectType() interface{} { + return "niatelemetry.ApicSnmpClientGrpDetails" +} + // GetDn returns the Dn field value if set, zero value otherwise. func (o *NiatelemetryApicSnmpClientGrpDetails) GetDn() string { if o == nil || IsNil(o.Dn) { @@ -404,7 +414,13 @@ func (o NiatelemetryApicSnmpClientGrpDetails) ToMap() (map[string]interface{}, e if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Dn) { toSerialize["Dn"] = o.Dn @@ -447,6 +463,13 @@ func (o *NiatelemetryApicSnmpClientGrpDetails) UnmarshalJSON(data []byte) (err e "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -456,11 +479,23 @@ func (o *NiatelemetryApicSnmpClientGrpDetails) UnmarshalJSON(data []byte) (err e } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type NiatelemetryApicSnmpClientGrpDetailsWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_niatelemetry_apic_snmp_client_grp_details_list.go b/model_niatelemetry_apic_snmp_client_grp_details_list.go index cefacbd263..82d084709c 100644 --- a/model_niatelemetry_apic_snmp_client_grp_details_list.go +++ b/model_niatelemetry_apic_snmp_client_grp_details_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *NiatelemetryApicSnmpClientGrpDetailsList) GetResultsOk() ([]Niatelemetr // HasResults returns a boolean if a field has been set. func (o *NiatelemetryApicSnmpClientGrpDetailsList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *NiatelemetryApicSnmpClientGrpDetailsList) UnmarshalJSON(data []byte) (e "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *NiatelemetryApicSnmpClientGrpDetailsList) UnmarshalJSON(data []byte) (e } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type NiatelemetryApicSnmpClientGrpDetailsListWithoutEmbeddedStruct struct { // The total number of 'niatelemetry.ApicSnmpClientGrpDetails' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_niatelemetry_apic_snmp_client_grp_details_response.go b/model_niatelemetry_apic_snmp_client_grp_details_response.go index b7f386802c..bbe36810ce 100644 --- a/model_niatelemetry_apic_snmp_client_grp_details_response.go +++ b/model_niatelemetry_apic_snmp_client_grp_details_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_niatelemetry_apic_snmp_community_access_details.go b/model_niatelemetry_apic_snmp_community_access_details.go index 078efe52df..97bb2bef99 100644 --- a/model_niatelemetry_apic_snmp_community_access_details.go +++ b/model_niatelemetry_apic_snmp_community_access_details.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -91,6 +91,11 @@ func (o *NiatelemetryApicSnmpCommunityAccessDetails) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "niatelemetry.ApicSnmpCommunityAccessDetails" of the ClassId field. +func (o *NiatelemetryApicSnmpCommunityAccessDetails) GetDefaultClassId() interface{} { + return "niatelemetry.ApicSnmpCommunityAccessDetails" +} + // GetObjectType returns the ObjectType field value func (o *NiatelemetryApicSnmpCommunityAccessDetails) GetObjectType() string { if o == nil { @@ -115,6 +120,11 @@ func (o *NiatelemetryApicSnmpCommunityAccessDetails) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "niatelemetry.ApicSnmpCommunityAccessDetails" of the ObjectType field. +func (o *NiatelemetryApicSnmpCommunityAccessDetails) GetDefaultObjectType() interface{} { + return "niatelemetry.ApicSnmpCommunityAccessDetails" +} + // GetAddr returns the Addr field value if set, zero value otherwise. func (o *NiatelemetryApicSnmpCommunityAccessDetails) GetAddr() string { if o == nil || IsNil(o.Addr) { @@ -336,7 +346,13 @@ func (o NiatelemetryApicSnmpCommunityAccessDetails) ToMap() (map[string]interfac if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Addr) { toSerialize["Addr"] = o.Addr @@ -373,6 +389,13 @@ func (o *NiatelemetryApicSnmpCommunityAccessDetails) UnmarshalJSON(data []byte) "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -382,11 +405,23 @@ func (o *NiatelemetryApicSnmpCommunityAccessDetails) UnmarshalJSON(data []byte) } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type NiatelemetryApicSnmpCommunityAccessDetailsWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_niatelemetry_apic_snmp_community_access_details_list.go b/model_niatelemetry_apic_snmp_community_access_details_list.go index aa899f8a6e..e7578efd47 100644 --- a/model_niatelemetry_apic_snmp_community_access_details_list.go +++ b/model_niatelemetry_apic_snmp_community_access_details_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *NiatelemetryApicSnmpCommunityAccessDetailsList) GetResultsOk() ([]Niate // HasResults returns a boolean if a field has been set. func (o *NiatelemetryApicSnmpCommunityAccessDetailsList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *NiatelemetryApicSnmpCommunityAccessDetailsList) UnmarshalJSON(data []by "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *NiatelemetryApicSnmpCommunityAccessDetailsList) UnmarshalJSON(data []by } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type NiatelemetryApicSnmpCommunityAccessDetailsListWithoutEmbeddedStruct struct { // The total number of 'niatelemetry.ApicSnmpCommunityAccessDetails' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_niatelemetry_apic_snmp_community_access_details_response.go b/model_niatelemetry_apic_snmp_community_access_details_response.go index 9b632b7649..d48cedde06 100644 --- a/model_niatelemetry_apic_snmp_community_access_details_response.go +++ b/model_niatelemetry_apic_snmp_community_access_details_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_niatelemetry_apic_snmp_community_details.go b/model_niatelemetry_apic_snmp_community_details.go index a07ad24868..820c37a40c 100644 --- a/model_niatelemetry_apic_snmp_community_details.go +++ b/model_niatelemetry_apic_snmp_community_details.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -91,6 +91,11 @@ func (o *NiatelemetryApicSnmpCommunityDetails) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "niatelemetry.ApicSnmpCommunityDetails" of the ClassId field. +func (o *NiatelemetryApicSnmpCommunityDetails) GetDefaultClassId() interface{} { + return "niatelemetry.ApicSnmpCommunityDetails" +} + // GetObjectType returns the ObjectType field value func (o *NiatelemetryApicSnmpCommunityDetails) GetObjectType() string { if o == nil { @@ -115,6 +120,11 @@ func (o *NiatelemetryApicSnmpCommunityDetails) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "niatelemetry.ApicSnmpCommunityDetails" of the ObjectType field. +func (o *NiatelemetryApicSnmpCommunityDetails) GetDefaultObjectType() interface{} { + return "niatelemetry.ApicSnmpCommunityDetails" +} + // GetDn returns the Dn field value if set, zero value otherwise. func (o *NiatelemetryApicSnmpCommunityDetails) GetDn() string { if o == nil || IsNil(o.Dn) { @@ -336,7 +346,13 @@ func (o NiatelemetryApicSnmpCommunityDetails) ToMap() (map[string]interface{}, e if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Dn) { toSerialize["Dn"] = o.Dn @@ -373,6 +389,13 @@ func (o *NiatelemetryApicSnmpCommunityDetails) UnmarshalJSON(data []byte) (err e "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -382,11 +405,23 @@ func (o *NiatelemetryApicSnmpCommunityDetails) UnmarshalJSON(data []byte) (err e } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type NiatelemetryApicSnmpCommunityDetailsWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_niatelemetry_apic_snmp_community_details_list.go b/model_niatelemetry_apic_snmp_community_details_list.go index 5950882ea5..c90e9dd4ea 100644 --- a/model_niatelemetry_apic_snmp_community_details_list.go +++ b/model_niatelemetry_apic_snmp_community_details_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *NiatelemetryApicSnmpCommunityDetailsList) GetResultsOk() ([]Niatelemetr // HasResults returns a boolean if a field has been set. func (o *NiatelemetryApicSnmpCommunityDetailsList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *NiatelemetryApicSnmpCommunityDetailsList) UnmarshalJSON(data []byte) (e "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *NiatelemetryApicSnmpCommunityDetailsList) UnmarshalJSON(data []byte) (e } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type NiatelemetryApicSnmpCommunityDetailsListWithoutEmbeddedStruct struct { // The total number of 'niatelemetry.ApicSnmpCommunityDetails' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_niatelemetry_apic_snmp_community_details_response.go b/model_niatelemetry_apic_snmp_community_details_response.go index fa4e2bbc28..0055f9e099 100644 --- a/model_niatelemetry_apic_snmp_community_details_response.go +++ b/model_niatelemetry_apic_snmp_community_details_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_niatelemetry_apic_snmp_trap_details.go b/model_niatelemetry_apic_snmp_trap_details.go index 9c7f747243..ee29b7346f 100644 --- a/model_niatelemetry_apic_snmp_trap_details.go +++ b/model_niatelemetry_apic_snmp_trap_details.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -93,6 +93,11 @@ func (o *NiatelemetryApicSnmpTrapDetails) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "niatelemetry.ApicSnmpTrapDetails" of the ClassId field. +func (o *NiatelemetryApicSnmpTrapDetails) GetDefaultClassId() interface{} { + return "niatelemetry.ApicSnmpTrapDetails" +} + // GetObjectType returns the ObjectType field value func (o *NiatelemetryApicSnmpTrapDetails) GetObjectType() string { if o == nil { @@ -117,6 +122,11 @@ func (o *NiatelemetryApicSnmpTrapDetails) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "niatelemetry.ApicSnmpTrapDetails" of the ObjectType field. +func (o *NiatelemetryApicSnmpTrapDetails) GetDefaultObjectType() interface{} { + return "niatelemetry.ApicSnmpTrapDetails" +} + // GetDn returns the Dn field value if set, zero value otherwise. func (o *NiatelemetryApicSnmpTrapDetails) GetDn() string { if o == nil || IsNil(o.Dn) { @@ -370,7 +380,13 @@ func (o NiatelemetryApicSnmpTrapDetails) ToMap() (map[string]interface{}, error) if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Dn) { toSerialize["Dn"] = o.Dn @@ -410,6 +426,13 @@ func (o *NiatelemetryApicSnmpTrapDetails) UnmarshalJSON(data []byte) (err error) "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -419,11 +442,23 @@ func (o *NiatelemetryApicSnmpTrapDetails) UnmarshalJSON(data []byte) (err error) } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type NiatelemetryApicSnmpTrapDetailsWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_niatelemetry_apic_snmp_trap_details_list.go b/model_niatelemetry_apic_snmp_trap_details_list.go index bd476aee29..f793e344f3 100644 --- a/model_niatelemetry_apic_snmp_trap_details_list.go +++ b/model_niatelemetry_apic_snmp_trap_details_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *NiatelemetryApicSnmpTrapDetailsList) GetResultsOk() ([]NiatelemetryApic // HasResults returns a boolean if a field has been set. func (o *NiatelemetryApicSnmpTrapDetailsList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *NiatelemetryApicSnmpTrapDetailsList) UnmarshalJSON(data []byte) (err er "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *NiatelemetryApicSnmpTrapDetailsList) UnmarshalJSON(data []byte) (err er } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type NiatelemetryApicSnmpTrapDetailsListWithoutEmbeddedStruct struct { // The total number of 'niatelemetry.ApicSnmpTrapDetails' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_niatelemetry_apic_snmp_trap_details_response.go b/model_niatelemetry_apic_snmp_trap_details_response.go index 09f8fa4545..38d0669c3b 100644 --- a/model_niatelemetry_apic_snmp_trap_details_response.go +++ b/model_niatelemetry_apic_snmp_trap_details_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_niatelemetry_apic_snmp_trap_fwd_server_details.go b/model_niatelemetry_apic_snmp_trap_fwd_server_details.go index f45b784718..2a9fa7508d 100644 --- a/model_niatelemetry_apic_snmp_trap_fwd_server_details.go +++ b/model_niatelemetry_apic_snmp_trap_fwd_server_details.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -93,6 +93,11 @@ func (o *NiatelemetryApicSnmpTrapFwdServerDetails) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "niatelemetry.ApicSnmpTrapFwdServerDetails" of the ClassId field. +func (o *NiatelemetryApicSnmpTrapFwdServerDetails) GetDefaultClassId() interface{} { + return "niatelemetry.ApicSnmpTrapFwdServerDetails" +} + // GetObjectType returns the ObjectType field value func (o *NiatelemetryApicSnmpTrapFwdServerDetails) GetObjectType() string { if o == nil { @@ -117,6 +122,11 @@ func (o *NiatelemetryApicSnmpTrapFwdServerDetails) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "niatelemetry.ApicSnmpTrapFwdServerDetails" of the ObjectType field. +func (o *NiatelemetryApicSnmpTrapFwdServerDetails) GetDefaultObjectType() interface{} { + return "niatelemetry.ApicSnmpTrapFwdServerDetails" +} + // GetAddress returns the Address field value if set, zero value otherwise. func (o *NiatelemetryApicSnmpTrapFwdServerDetails) GetAddress() string { if o == nil || IsNil(o.Address) { @@ -370,7 +380,13 @@ func (o NiatelemetryApicSnmpTrapFwdServerDetails) ToMap() (map[string]interface{ if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Address) { toSerialize["Address"] = o.Address @@ -410,6 +426,13 @@ func (o *NiatelemetryApicSnmpTrapFwdServerDetails) UnmarshalJSON(data []byte) (e "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -419,11 +442,23 @@ func (o *NiatelemetryApicSnmpTrapFwdServerDetails) UnmarshalJSON(data []byte) (e } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type NiatelemetryApicSnmpTrapFwdServerDetailsWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_niatelemetry_apic_snmp_trap_fwd_server_details_list.go b/model_niatelemetry_apic_snmp_trap_fwd_server_details_list.go index c820ac7921..6da6cbbc13 100644 --- a/model_niatelemetry_apic_snmp_trap_fwd_server_details_list.go +++ b/model_niatelemetry_apic_snmp_trap_fwd_server_details_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *NiatelemetryApicSnmpTrapFwdServerDetailsList) GetResultsOk() ([]Niatele // HasResults returns a boolean if a field has been set. func (o *NiatelemetryApicSnmpTrapFwdServerDetailsList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *NiatelemetryApicSnmpTrapFwdServerDetailsList) UnmarshalJSON(data []byte "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *NiatelemetryApicSnmpTrapFwdServerDetailsList) UnmarshalJSON(data []byte } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type NiatelemetryApicSnmpTrapFwdServerDetailsListWithoutEmbeddedStruct struct { // The total number of 'niatelemetry.ApicSnmpTrapFwdServerDetails' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_niatelemetry_apic_snmp_trap_fwd_server_details_response.go b/model_niatelemetry_apic_snmp_trap_fwd_server_details_response.go index 57691e9a85..990c1bedda 100644 --- a/model_niatelemetry_apic_snmp_trap_fwd_server_details_response.go +++ b/model_niatelemetry_apic_snmp_trap_fwd_server_details_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_niatelemetry_apic_snmp_version_three_details.go b/model_niatelemetry_apic_snmp_version_three_details.go index 1708f57eae..4d7bc767c6 100644 --- a/model_niatelemetry_apic_snmp_version_three_details.go +++ b/model_niatelemetry_apic_snmp_version_three_details.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -95,6 +95,11 @@ func (o *NiatelemetryApicSnmpVersionThreeDetails) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "niatelemetry.ApicSnmpVersionThreeDetails" of the ClassId field. +func (o *NiatelemetryApicSnmpVersionThreeDetails) GetDefaultClassId() interface{} { + return "niatelemetry.ApicSnmpVersionThreeDetails" +} + // GetObjectType returns the ObjectType field value func (o *NiatelemetryApicSnmpVersionThreeDetails) GetObjectType() string { if o == nil { @@ -119,6 +124,11 @@ func (o *NiatelemetryApicSnmpVersionThreeDetails) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "niatelemetry.ApicSnmpVersionThreeDetails" of the ObjectType field. +func (o *NiatelemetryApicSnmpVersionThreeDetails) GetDefaultObjectType() interface{} { + return "niatelemetry.ApicSnmpVersionThreeDetails" +} + // GetAuthType returns the AuthType field value if set, zero value otherwise. func (o *NiatelemetryApicSnmpVersionThreeDetails) GetAuthType() string { if o == nil || IsNil(o.AuthType) { @@ -404,7 +414,13 @@ func (o NiatelemetryApicSnmpVersionThreeDetails) ToMap() (map[string]interface{} if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.AuthType) { toSerialize["AuthType"] = o.AuthType @@ -447,6 +463,13 @@ func (o *NiatelemetryApicSnmpVersionThreeDetails) UnmarshalJSON(data []byte) (er "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -456,11 +479,23 @@ func (o *NiatelemetryApicSnmpVersionThreeDetails) UnmarshalJSON(data []byte) (er } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type NiatelemetryApicSnmpVersionThreeDetailsWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_niatelemetry_apic_snmp_version_three_details_list.go b/model_niatelemetry_apic_snmp_version_three_details_list.go index 4cbf337c56..7f749a48d9 100644 --- a/model_niatelemetry_apic_snmp_version_three_details_list.go +++ b/model_niatelemetry_apic_snmp_version_three_details_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *NiatelemetryApicSnmpVersionThreeDetailsList) GetResultsOk() ([]Niatelem // HasResults returns a boolean if a field has been set. func (o *NiatelemetryApicSnmpVersionThreeDetailsList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *NiatelemetryApicSnmpVersionThreeDetailsList) UnmarshalJSON(data []byte) "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *NiatelemetryApicSnmpVersionThreeDetailsList) UnmarshalJSON(data []byte) } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type NiatelemetryApicSnmpVersionThreeDetailsListWithoutEmbeddedStruct struct { // The total number of 'niatelemetry.ApicSnmpVersionThreeDetails' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_niatelemetry_apic_snmp_version_three_details_response.go b/model_niatelemetry_apic_snmp_version_three_details_response.go index 9924987cd4..e469b385e8 100644 --- a/model_niatelemetry_apic_snmp_version_three_details_response.go +++ b/model_niatelemetry_apic_snmp_version_three_details_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_niatelemetry_apic_sys_log_grp.go b/model_niatelemetry_apic_sys_log_grp.go index 2e4c9758ac..19d34f056b 100644 --- a/model_niatelemetry_apic_sys_log_grp.go +++ b/model_niatelemetry_apic_sys_log_grp.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -91,6 +91,11 @@ func (o *NiatelemetryApicSysLogGrp) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "niatelemetry.ApicSysLogGrp" of the ClassId field. +func (o *NiatelemetryApicSysLogGrp) GetDefaultClassId() interface{} { + return "niatelemetry.ApicSysLogGrp" +} + // GetObjectType returns the ObjectType field value func (o *NiatelemetryApicSysLogGrp) GetObjectType() string { if o == nil { @@ -115,6 +120,11 @@ func (o *NiatelemetryApicSysLogGrp) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "niatelemetry.ApicSysLogGrp" of the ObjectType field. +func (o *NiatelemetryApicSysLogGrp) GetDefaultObjectType() interface{} { + return "niatelemetry.ApicSysLogGrp" +} + // GetDn returns the Dn field value if set, zero value otherwise. func (o *NiatelemetryApicSysLogGrp) GetDn() string { if o == nil || IsNil(o.Dn) { @@ -336,7 +346,13 @@ func (o NiatelemetryApicSysLogGrp) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Dn) { toSerialize["Dn"] = o.Dn @@ -373,6 +389,13 @@ func (o *NiatelemetryApicSysLogGrp) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -382,11 +405,23 @@ func (o *NiatelemetryApicSysLogGrp) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type NiatelemetryApicSysLogGrpWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_niatelemetry_apic_sys_log_grp_list.go b/model_niatelemetry_apic_sys_log_grp_list.go index 56c35f3e25..2c0a08dc27 100644 --- a/model_niatelemetry_apic_sys_log_grp_list.go +++ b/model_niatelemetry_apic_sys_log_grp_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *NiatelemetryApicSysLogGrpList) GetResultsOk() ([]NiatelemetryApicSysLog // HasResults returns a boolean if a field has been set. func (o *NiatelemetryApicSysLogGrpList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *NiatelemetryApicSysLogGrpList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *NiatelemetryApicSysLogGrpList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type NiatelemetryApicSysLogGrpListWithoutEmbeddedStruct struct { // The total number of 'niatelemetry.ApicSysLogGrp' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_niatelemetry_apic_sys_log_grp_response.go b/model_niatelemetry_apic_sys_log_grp_response.go index dc3f431c4f..e40e2e1d3a 100644 --- a/model_niatelemetry_apic_sys_log_grp_response.go +++ b/model_niatelemetry_apic_sys_log_grp_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_niatelemetry_apic_sys_log_src.go b/model_niatelemetry_apic_sys_log_src.go index 33c8643fb9..5dac8100fb 100644 --- a/model_niatelemetry_apic_sys_log_src.go +++ b/model_niatelemetry_apic_sys_log_src.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -95,6 +95,11 @@ func (o *NiatelemetryApicSysLogSrc) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "niatelemetry.ApicSysLogSrc" of the ClassId field. +func (o *NiatelemetryApicSysLogSrc) GetDefaultClassId() interface{} { + return "niatelemetry.ApicSysLogSrc" +} + // GetObjectType returns the ObjectType field value func (o *NiatelemetryApicSysLogSrc) GetObjectType() string { if o == nil { @@ -119,6 +124,11 @@ func (o *NiatelemetryApicSysLogSrc) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "niatelemetry.ApicSysLogSrc" of the ObjectType field. +func (o *NiatelemetryApicSysLogSrc) GetDefaultObjectType() interface{} { + return "niatelemetry.ApicSysLogSrc" +} + // GetDn returns the Dn field value if set, zero value otherwise. func (o *NiatelemetryApicSysLogSrc) GetDn() string { if o == nil || IsNil(o.Dn) { @@ -404,7 +414,13 @@ func (o NiatelemetryApicSysLogSrc) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Dn) { toSerialize["Dn"] = o.Dn @@ -447,6 +463,13 @@ func (o *NiatelemetryApicSysLogSrc) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -456,11 +479,23 @@ func (o *NiatelemetryApicSysLogSrc) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type NiatelemetryApicSysLogSrcWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_niatelemetry_apic_sys_log_src_list.go b/model_niatelemetry_apic_sys_log_src_list.go index 633549f78e..764c5c204f 100644 --- a/model_niatelemetry_apic_sys_log_src_list.go +++ b/model_niatelemetry_apic_sys_log_src_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *NiatelemetryApicSysLogSrcList) GetResultsOk() ([]NiatelemetryApicSysLog // HasResults returns a boolean if a field has been set. func (o *NiatelemetryApicSysLogSrcList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *NiatelemetryApicSysLogSrcList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *NiatelemetryApicSysLogSrcList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type NiatelemetryApicSysLogSrcListWithoutEmbeddedStruct struct { // The total number of 'niatelemetry.ApicSysLogSrc' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_niatelemetry_apic_sys_log_src_response.go b/model_niatelemetry_apic_sys_log_src_response.go index 5eb29bf311..5113421c21 100644 --- a/model_niatelemetry_apic_sys_log_src_response.go +++ b/model_niatelemetry_apic_sys_log_src_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_niatelemetry_apic_transceiver_details.go b/model_niatelemetry_apic_transceiver_details.go index d1acdb31cc..a5dcca6640 100644 --- a/model_niatelemetry_apic_transceiver_details.go +++ b/model_niatelemetry_apic_transceiver_details.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -97,6 +97,11 @@ func (o *NiatelemetryApicTransceiverDetails) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "niatelemetry.ApicTransceiverDetails" of the ClassId field. +func (o *NiatelemetryApicTransceiverDetails) GetDefaultClassId() interface{} { + return "niatelemetry.ApicTransceiverDetails" +} + // GetObjectType returns the ObjectType field value func (o *NiatelemetryApicTransceiverDetails) GetObjectType() string { if o == nil { @@ -121,6 +126,11 @@ func (o *NiatelemetryApicTransceiverDetails) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "niatelemetry.ApicTransceiverDetails" of the ObjectType field. +func (o *NiatelemetryApicTransceiverDetails) GetDefaultObjectType() interface{} { + return "niatelemetry.ApicTransceiverDetails" +} + // GetDn returns the Dn field value if set, zero value otherwise. func (o *NiatelemetryApicTransceiverDetails) GetDn() string { if o == nil || IsNil(o.Dn) { @@ -438,7 +448,13 @@ func (o NiatelemetryApicTransceiverDetails) ToMap() (map[string]interface{}, err if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Dn) { toSerialize["Dn"] = o.Dn @@ -484,6 +500,13 @@ func (o *NiatelemetryApicTransceiverDetails) UnmarshalJSON(data []byte) (err err "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -493,11 +516,23 @@ func (o *NiatelemetryApicTransceiverDetails) UnmarshalJSON(data []byte) (err err } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type NiatelemetryApicTransceiverDetailsWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_niatelemetry_apic_transceiver_details_list.go b/model_niatelemetry_apic_transceiver_details_list.go index 6e77984bfe..0ed7ce1209 100644 --- a/model_niatelemetry_apic_transceiver_details_list.go +++ b/model_niatelemetry_apic_transceiver_details_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *NiatelemetryApicTransceiverDetailsList) GetResultsOk() ([]NiatelemetryA // HasResults returns a boolean if a field has been set. func (o *NiatelemetryApicTransceiverDetailsList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *NiatelemetryApicTransceiverDetailsList) UnmarshalJSON(data []byte) (err "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *NiatelemetryApicTransceiverDetailsList) UnmarshalJSON(data []byte) (err } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type NiatelemetryApicTransceiverDetailsListWithoutEmbeddedStruct struct { // The total number of 'niatelemetry.ApicTransceiverDetails' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_niatelemetry_apic_transceiver_details_response.go b/model_niatelemetry_apic_transceiver_details_response.go index 79e0a41f6a..1931c58570 100644 --- a/model_niatelemetry_apic_transceiver_details_response.go +++ b/model_niatelemetry_apic_transceiver_details_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_niatelemetry_apic_ui_page_counts.go b/model_niatelemetry_apic_ui_page_counts.go index 7149cfd967..4b91793c3d 100644 --- a/model_niatelemetry_apic_ui_page_counts.go +++ b/model_niatelemetry_apic_ui_page_counts.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -93,6 +93,11 @@ func (o *NiatelemetryApicUiPageCounts) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "niatelemetry.ApicUiPageCounts" of the ClassId field. +func (o *NiatelemetryApicUiPageCounts) GetDefaultClassId() interface{} { + return "niatelemetry.ApicUiPageCounts" +} + // GetObjectType returns the ObjectType field value func (o *NiatelemetryApicUiPageCounts) GetObjectType() string { if o == nil { @@ -117,6 +122,11 @@ func (o *NiatelemetryApicUiPageCounts) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "niatelemetry.ApicUiPageCounts" of the ObjectType field. +func (o *NiatelemetryApicUiPageCounts) GetDefaultObjectType() interface{} { + return "niatelemetry.ApicUiPageCounts" +} + // GetDn returns the Dn field value if set, zero value otherwise. func (o *NiatelemetryApicUiPageCounts) GetDn() string { if o == nil || IsNil(o.Dn) { @@ -370,7 +380,13 @@ func (o NiatelemetryApicUiPageCounts) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Dn) { toSerialize["Dn"] = o.Dn @@ -410,6 +426,13 @@ func (o *NiatelemetryApicUiPageCounts) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -419,11 +442,23 @@ func (o *NiatelemetryApicUiPageCounts) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type NiatelemetryApicUiPageCountsWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_niatelemetry_apic_ui_page_counts_list.go b/model_niatelemetry_apic_ui_page_counts_list.go index 749ed3fd5b..477e932fde 100644 --- a/model_niatelemetry_apic_ui_page_counts_list.go +++ b/model_niatelemetry_apic_ui_page_counts_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *NiatelemetryApicUiPageCountsList) GetResultsOk() ([]NiatelemetryApicUiP // HasResults returns a boolean if a field has been set. func (o *NiatelemetryApicUiPageCountsList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *NiatelemetryApicUiPageCountsList) UnmarshalJSON(data []byte) (err error "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *NiatelemetryApicUiPageCountsList) UnmarshalJSON(data []byte) (err error } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type NiatelemetryApicUiPageCountsListWithoutEmbeddedStruct struct { // The total number of 'niatelemetry.ApicUiPageCounts' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_niatelemetry_apic_ui_page_counts_response.go b/model_niatelemetry_apic_ui_page_counts_response.go index 9e7a667d16..8d4121d2eb 100644 --- a/model_niatelemetry_apic_ui_page_counts_response.go +++ b/model_niatelemetry_apic_ui_page_counts_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_niatelemetry_apic_vision.go b/model_niatelemetry_apic_vision.go index cf633ed770..b3067db9b7 100644 --- a/model_niatelemetry_apic_vision.go +++ b/model_niatelemetry_apic_vision.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -89,6 +89,11 @@ func (o *NiatelemetryApicVision) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "niatelemetry.ApicVision" of the ClassId field. +func (o *NiatelemetryApicVision) GetDefaultClassId() interface{} { + return "niatelemetry.ApicVision" +} + // GetObjectType returns the ObjectType field value func (o *NiatelemetryApicVision) GetObjectType() string { if o == nil { @@ -113,6 +118,11 @@ func (o *NiatelemetryApicVision) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "niatelemetry.ApicVision" of the ObjectType field. +func (o *NiatelemetryApicVision) GetDefaultObjectType() interface{} { + return "niatelemetry.ApicVision" +} + // GetApicVisionState returns the ApicVisionState field value if set, zero value otherwise. func (o *NiatelemetryApicVision) GetApicVisionState() string { if o == nil || IsNil(o.ApicVisionState) { @@ -302,7 +312,13 @@ func (o NiatelemetryApicVision) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.ApicVisionState) { toSerialize["ApicVisionState"] = o.ApicVisionState @@ -336,6 +352,13 @@ func (o *NiatelemetryApicVision) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -345,11 +368,23 @@ func (o *NiatelemetryApicVision) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type NiatelemetryApicVisionWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_niatelemetry_apic_vision_list.go b/model_niatelemetry_apic_vision_list.go index f0b6aad3c2..43eb808875 100644 --- a/model_niatelemetry_apic_vision_list.go +++ b/model_niatelemetry_apic_vision_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *NiatelemetryApicVisionList) GetResultsOk() ([]NiatelemetryApicVision, b // HasResults returns a boolean if a field has been set. func (o *NiatelemetryApicVisionList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *NiatelemetryApicVisionList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *NiatelemetryApicVisionList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type NiatelemetryApicVisionListWithoutEmbeddedStruct struct { // The total number of 'niatelemetry.ApicVision' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_niatelemetry_apic_vision_response.go b/model_niatelemetry_apic_vision_response.go index 43765e2b6c..d2848664bb 100644 --- a/model_niatelemetry_apic_vision_response.go +++ b/model_niatelemetry_apic_vision_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_niatelemetry_app_details.go b/model_niatelemetry_app_details.go index 2d7bbd1dcc..9379679b00 100644 --- a/model_niatelemetry_app_details.go +++ b/model_niatelemetry_app_details.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -93,6 +93,11 @@ func (o *NiatelemetryAppDetails) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "niatelemetry.AppDetails" of the ClassId field. +func (o *NiatelemetryAppDetails) GetDefaultClassId() interface{} { + return "niatelemetry.AppDetails" +} + // GetObjectType returns the ObjectType field value func (o *NiatelemetryAppDetails) GetObjectType() string { if o == nil { @@ -117,6 +122,11 @@ func (o *NiatelemetryAppDetails) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "niatelemetry.AppDetails" of the ObjectType field. +func (o *NiatelemetryAppDetails) GetDefaultObjectType() interface{} { + return "niatelemetry.AppDetails" +} + // GetAppName returns the AppName field value if set, zero value otherwise. func (o *NiatelemetryAppDetails) GetAppName() string { if o == nil || IsNil(o.AppName) { @@ -370,7 +380,13 @@ func (o NiatelemetryAppDetails) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.AppName) { toSerialize["AppName"] = o.AppName @@ -410,6 +426,13 @@ func (o *NiatelemetryAppDetails) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -419,11 +442,23 @@ func (o *NiatelemetryAppDetails) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type NiatelemetryAppDetailsWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_niatelemetry_app_details_list.go b/model_niatelemetry_app_details_list.go index 6569865324..2b37e5d7fd 100644 --- a/model_niatelemetry_app_details_list.go +++ b/model_niatelemetry_app_details_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *NiatelemetryAppDetailsList) GetResultsOk() ([]NiatelemetryAppDetails, b // HasResults returns a boolean if a field has been set. func (o *NiatelemetryAppDetailsList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *NiatelemetryAppDetailsList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *NiatelemetryAppDetailsList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type NiatelemetryAppDetailsListWithoutEmbeddedStruct struct { // The total number of 'niatelemetry.AppDetails' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_niatelemetry_app_details_response.go b/model_niatelemetry_app_details_response.go index 0242af3af5..b5c921c61c 100644 --- a/model_niatelemetry_app_details_response.go +++ b/model_niatelemetry_app_details_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_niatelemetry_bootflash_details.go b/model_niatelemetry_bootflash_details.go index 4535a1187c..c792bfe6d5 100644 --- a/model_niatelemetry_bootflash_details.go +++ b/model_niatelemetry_bootflash_details.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -86,6 +86,11 @@ func (o *NiatelemetryBootflashDetails) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "niatelemetry.BootflashDetails" of the ClassId field. +func (o *NiatelemetryBootflashDetails) GetDefaultClassId() interface{} { + return "niatelemetry.BootflashDetails" +} + // GetObjectType returns the ObjectType field value func (o *NiatelemetryBootflashDetails) GetObjectType() string { if o == nil { @@ -110,6 +115,11 @@ func (o *NiatelemetryBootflashDetails) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "niatelemetry.BootflashDetails" of the ObjectType field. +func (o *NiatelemetryBootflashDetails) GetDefaultObjectType() interface{} { + return "niatelemetry.BootflashDetails" +} + // GetFwRev returns the FwRev field value if set, zero value otherwise. func (o *NiatelemetryBootflashDetails) GetFwRev() string { if o == nil || IsNil(o.FwRev) { @@ -224,7 +234,13 @@ func (o NiatelemetryBootflashDetails) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.FwRev) { toSerialize["FwRev"] = o.FwRev @@ -252,6 +268,13 @@ func (o *NiatelemetryBootflashDetails) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -261,11 +284,23 @@ func (o *NiatelemetryBootflashDetails) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type NiatelemetryBootflashDetailsWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_niatelemetry_cloud_details.go b/model_niatelemetry_cloud_details.go index e6a4cc08bd..1dad495d12 100644 --- a/model_niatelemetry_cloud_details.go +++ b/model_niatelemetry_cloud_details.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -92,6 +92,11 @@ func (o *NiatelemetryCloudDetails) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "niatelemetry.CloudDetails" of the ClassId field. +func (o *NiatelemetryCloudDetails) GetDefaultClassId() interface{} { + return "niatelemetry.CloudDetails" +} + // GetObjectType returns the ObjectType field value func (o *NiatelemetryCloudDetails) GetObjectType() string { if o == nil { @@ -116,6 +121,11 @@ func (o *NiatelemetryCloudDetails) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "niatelemetry.CloudDetails" of the ObjectType field. +func (o *NiatelemetryCloudDetails) GetDefaultObjectType() interface{} { + return "niatelemetry.CloudDetails" +} + // GetDn returns the Dn field value if set, zero value otherwise. func (o *NiatelemetryCloudDetails) GetDn() string { if o == nil || IsNil(o.Dn) { @@ -233,7 +243,7 @@ func (o *NiatelemetryCloudDetails) GetRegionOk() ([]NiatelemetryCloudRegionsElem // HasRegion returns a boolean if a field has been set. func (o *NiatelemetryCloudDetails) HasRegion() bool { - if o != nil && IsNil(o.Region) { + if o != nil && !IsNil(o.Region) { return true } @@ -370,7 +380,13 @@ func (o NiatelemetryCloudDetails) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Dn) { toSerialize["Dn"] = o.Dn @@ -410,6 +426,13 @@ func (o *NiatelemetryCloudDetails) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -419,11 +442,23 @@ func (o *NiatelemetryCloudDetails) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type NiatelemetryCloudDetailsWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_niatelemetry_cloud_details_list.go b/model_niatelemetry_cloud_details_list.go index 06c39cfc8f..93c2d1c2f3 100644 --- a/model_niatelemetry_cloud_details_list.go +++ b/model_niatelemetry_cloud_details_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *NiatelemetryCloudDetailsList) GetResultsOk() ([]NiatelemetryCloudDetail // HasResults returns a boolean if a field has been set. func (o *NiatelemetryCloudDetailsList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *NiatelemetryCloudDetailsList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *NiatelemetryCloudDetailsList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type NiatelemetryCloudDetailsListWithoutEmbeddedStruct struct { // The total number of 'niatelemetry.CloudDetails' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_niatelemetry_cloud_details_response.go b/model_niatelemetry_cloud_details_response.go index b75fc0ec98..2ec4863d7f 100644 --- a/model_niatelemetry_cloud_details_response.go +++ b/model_niatelemetry_cloud_details_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_niatelemetry_cloud_regions_element.go b/model_niatelemetry_cloud_regions_element.go index 36cdd26383..42ab68fb22 100644 --- a/model_niatelemetry_cloud_regions_element.go +++ b/model_niatelemetry_cloud_regions_element.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -88,6 +88,11 @@ func (o *NiatelemetryCloudRegionsElement) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "niatelemetry.CloudRegionsElement" of the ClassId field. +func (o *NiatelemetryCloudRegionsElement) GetDefaultClassId() interface{} { + return "niatelemetry.CloudRegionsElement" +} + // GetObjectType returns the ObjectType field value func (o *NiatelemetryCloudRegionsElement) GetObjectType() string { if o == nil { @@ -112,6 +117,11 @@ func (o *NiatelemetryCloudRegionsElement) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "niatelemetry.CloudRegionsElement" of the ObjectType field. +func (o *NiatelemetryCloudRegionsElement) GetDefaultObjectType() interface{} { + return "niatelemetry.CloudRegionsElement" +} + // GetAdminState returns the AdminState field value if set, zero value otherwise. func (o *NiatelemetryCloudRegionsElement) GetAdminState() string { if o == nil || IsNil(o.AdminState) { @@ -258,7 +268,13 @@ func (o NiatelemetryCloudRegionsElement) ToMap() (map[string]interface{}, error) if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.AdminState) { toSerialize["AdminState"] = o.AdminState @@ -289,6 +305,13 @@ func (o *NiatelemetryCloudRegionsElement) UnmarshalJSON(data []byte) (err error) "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -298,11 +321,23 @@ func (o *NiatelemetryCloudRegionsElement) UnmarshalJSON(data []byte) (err error) } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type NiatelemetryCloudRegionsElementWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_niatelemetry_cloud_routers_element.go b/model_niatelemetry_cloud_routers_element.go index 284bbd2dfe..d3b29549fe 100644 --- a/model_niatelemetry_cloud_routers_element.go +++ b/model_niatelemetry_cloud_routers_element.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -84,6 +84,11 @@ func (o *NiatelemetryCloudRoutersElement) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "niatelemetry.CloudRoutersElement" of the ClassId field. +func (o *NiatelemetryCloudRoutersElement) GetDefaultClassId() interface{} { + return "niatelemetry.CloudRoutersElement" +} + // GetObjectType returns the ObjectType field value func (o *NiatelemetryCloudRoutersElement) GetObjectType() string { if o == nil { @@ -108,6 +113,11 @@ func (o *NiatelemetryCloudRoutersElement) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "niatelemetry.CloudRoutersElement" of the ObjectType field. +func (o *NiatelemetryCloudRoutersElement) GetDefaultObjectType() interface{} { + return "niatelemetry.CloudRoutersElement" +} + // GetName returns the Name field value if set, zero value otherwise. func (o *NiatelemetryCloudRoutersElement) GetName() string { if o == nil || IsNil(o.Name) { @@ -190,7 +200,13 @@ func (o NiatelemetryCloudRoutersElement) ToMap() (map[string]interface{}, error) if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Name) { toSerialize["Name"] = o.Name @@ -215,6 +231,13 @@ func (o *NiatelemetryCloudRoutersElement) UnmarshalJSON(data []byte) (err error) "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -224,11 +247,23 @@ func (o *NiatelemetryCloudRoutersElement) UnmarshalJSON(data []byte) (err error) } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type NiatelemetryCloudRoutersElementWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_niatelemetry_common_policies.go b/model_niatelemetry_common_policies.go index 4aabf8bc3c..714db78d7e 100644 --- a/model_niatelemetry_common_policies.go +++ b/model_niatelemetry_common_policies.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -95,6 +95,11 @@ func (o *NiatelemetryCommonPolicies) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "niatelemetry.CommonPolicies" of the ClassId field. +func (o *NiatelemetryCommonPolicies) GetDefaultClassId() interface{} { + return "niatelemetry.CommonPolicies" +} + // GetObjectType returns the ObjectType field value func (o *NiatelemetryCommonPolicies) GetObjectType() string { if o == nil { @@ -119,6 +124,11 @@ func (o *NiatelemetryCommonPolicies) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "niatelemetry.CommonPolicies" of the ObjectType field. +func (o *NiatelemetryCommonPolicies) GetDefaultObjectType() interface{} { + return "niatelemetry.CommonPolicies" +} + // GetDn returns the Dn field value if set, zero value otherwise. func (o *NiatelemetryCommonPolicies) GetDn() string { if o == nil || IsNil(o.Dn) { @@ -404,7 +414,13 @@ func (o NiatelemetryCommonPolicies) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Dn) { toSerialize["Dn"] = o.Dn @@ -447,6 +463,13 @@ func (o *NiatelemetryCommonPolicies) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -456,11 +479,23 @@ func (o *NiatelemetryCommonPolicies) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type NiatelemetryCommonPoliciesWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_niatelemetry_common_policies_list.go b/model_niatelemetry_common_policies_list.go index 5bff133c23..4d398df71a 100644 --- a/model_niatelemetry_common_policies_list.go +++ b/model_niatelemetry_common_policies_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *NiatelemetryCommonPoliciesList) GetResultsOk() ([]NiatelemetryCommonPol // HasResults returns a boolean if a field has been set. func (o *NiatelemetryCommonPoliciesList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *NiatelemetryCommonPoliciesList) UnmarshalJSON(data []byte) (err error) "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *NiatelemetryCommonPoliciesList) UnmarshalJSON(data []byte) (err error) } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type NiatelemetryCommonPoliciesListWithoutEmbeddedStruct struct { // The total number of 'niatelemetry.CommonPolicies' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_niatelemetry_common_policies_response.go b/model_niatelemetry_common_policies_response.go index 401f2bc9a8..aa457e7756 100644 --- a/model_niatelemetry_common_policies_response.go +++ b/model_niatelemetry_common_policies_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_niatelemetry_dcnm_fan_details.go b/model_niatelemetry_dcnm_fan_details.go index b5fd0fa7e8..58f4a700b1 100644 --- a/model_niatelemetry_dcnm_fan_details.go +++ b/model_niatelemetry_dcnm_fan_details.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -93,6 +93,11 @@ func (o *NiatelemetryDcnmFanDetails) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "niatelemetry.DcnmFanDetails" of the ClassId field. +func (o *NiatelemetryDcnmFanDetails) GetDefaultClassId() interface{} { + return "niatelemetry.DcnmFanDetails" +} + // GetObjectType returns the ObjectType field value func (o *NiatelemetryDcnmFanDetails) GetObjectType() string { if o == nil { @@ -117,6 +122,11 @@ func (o *NiatelemetryDcnmFanDetails) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "niatelemetry.DcnmFanDetails" of the ObjectType field. +func (o *NiatelemetryDcnmFanDetails) GetDefaultObjectType() interface{} { + return "niatelemetry.DcnmFanDetails" +} + // GetName returns the Name field value if set, zero value otherwise. func (o *NiatelemetryDcnmFanDetails) GetName() string { if o == nil || IsNil(o.Name) { @@ -370,7 +380,13 @@ func (o NiatelemetryDcnmFanDetails) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Name) { toSerialize["Name"] = o.Name @@ -410,6 +426,13 @@ func (o *NiatelemetryDcnmFanDetails) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -419,11 +442,23 @@ func (o *NiatelemetryDcnmFanDetails) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type NiatelemetryDcnmFanDetailsWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_niatelemetry_dcnm_fan_details_list.go b/model_niatelemetry_dcnm_fan_details_list.go index d4c1666cc2..dece892305 100644 --- a/model_niatelemetry_dcnm_fan_details_list.go +++ b/model_niatelemetry_dcnm_fan_details_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *NiatelemetryDcnmFanDetailsList) GetResultsOk() ([]NiatelemetryDcnmFanDe // HasResults returns a boolean if a field has been set. func (o *NiatelemetryDcnmFanDetailsList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *NiatelemetryDcnmFanDetailsList) UnmarshalJSON(data []byte) (err error) "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *NiatelemetryDcnmFanDetailsList) UnmarshalJSON(data []byte) (err error) } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type NiatelemetryDcnmFanDetailsListWithoutEmbeddedStruct struct { // The total number of 'niatelemetry.DcnmFanDetails' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_niatelemetry_dcnm_fan_details_response.go b/model_niatelemetry_dcnm_fan_details_response.go index c53b7b2481..ad2021859e 100644 --- a/model_niatelemetry_dcnm_fan_details_response.go +++ b/model_niatelemetry_dcnm_fan_details_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_niatelemetry_dcnm_fex_details.go b/model_niatelemetry_dcnm_fex_details.go index 219fab2d69..e8be47e55a 100644 --- a/model_niatelemetry_dcnm_fex_details.go +++ b/model_niatelemetry_dcnm_fex_details.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -93,6 +93,11 @@ func (o *NiatelemetryDcnmFexDetails) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "niatelemetry.DcnmFexDetails" of the ClassId field. +func (o *NiatelemetryDcnmFexDetails) GetDefaultClassId() interface{} { + return "niatelemetry.DcnmFexDetails" +} + // GetObjectType returns the ObjectType field value func (o *NiatelemetryDcnmFexDetails) GetObjectType() string { if o == nil { @@ -117,6 +122,11 @@ func (o *NiatelemetryDcnmFexDetails) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "niatelemetry.DcnmFexDetails" of the ObjectType field. +func (o *NiatelemetryDcnmFexDetails) GetDefaultObjectType() interface{} { + return "niatelemetry.DcnmFexDetails" +} + // GetName returns the Name field value if set, zero value otherwise. func (o *NiatelemetryDcnmFexDetails) GetName() string { if o == nil || IsNil(o.Name) { @@ -370,7 +380,13 @@ func (o NiatelemetryDcnmFexDetails) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Name) { toSerialize["Name"] = o.Name @@ -410,6 +426,13 @@ func (o *NiatelemetryDcnmFexDetails) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -419,11 +442,23 @@ func (o *NiatelemetryDcnmFexDetails) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type NiatelemetryDcnmFexDetailsWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_niatelemetry_dcnm_fex_details_list.go b/model_niatelemetry_dcnm_fex_details_list.go index 9f52378de1..48c68f3238 100644 --- a/model_niatelemetry_dcnm_fex_details_list.go +++ b/model_niatelemetry_dcnm_fex_details_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *NiatelemetryDcnmFexDetailsList) GetResultsOk() ([]NiatelemetryDcnmFexDe // HasResults returns a boolean if a field has been set. func (o *NiatelemetryDcnmFexDetailsList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *NiatelemetryDcnmFexDetailsList) UnmarshalJSON(data []byte) (err error) "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *NiatelemetryDcnmFexDetailsList) UnmarshalJSON(data []byte) (err error) } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type NiatelemetryDcnmFexDetailsListWithoutEmbeddedStruct struct { // The total number of 'niatelemetry.DcnmFexDetails' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_niatelemetry_dcnm_fex_details_response.go b/model_niatelemetry_dcnm_fex_details_response.go index 2eda9d30ee..1733c9b2c7 100644 --- a/model_niatelemetry_dcnm_fex_details_response.go +++ b/model_niatelemetry_dcnm_fex_details_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_niatelemetry_dcnm_module_details.go b/model_niatelemetry_dcnm_module_details.go index c84ca57356..347ce04726 100644 --- a/model_niatelemetry_dcnm_module_details.go +++ b/model_niatelemetry_dcnm_module_details.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -93,6 +93,11 @@ func (o *NiatelemetryDcnmModuleDetails) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "niatelemetry.DcnmModuleDetails" of the ClassId field. +func (o *NiatelemetryDcnmModuleDetails) GetDefaultClassId() interface{} { + return "niatelemetry.DcnmModuleDetails" +} + // GetObjectType returns the ObjectType field value func (o *NiatelemetryDcnmModuleDetails) GetObjectType() string { if o == nil { @@ -117,6 +122,11 @@ func (o *NiatelemetryDcnmModuleDetails) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "niatelemetry.DcnmModuleDetails" of the ObjectType field. +func (o *NiatelemetryDcnmModuleDetails) GetDefaultObjectType() interface{} { + return "niatelemetry.DcnmModuleDetails" +} + // GetName returns the Name field value if set, zero value otherwise. func (o *NiatelemetryDcnmModuleDetails) GetName() string { if o == nil || IsNil(o.Name) { @@ -370,7 +380,13 @@ func (o NiatelemetryDcnmModuleDetails) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Name) { toSerialize["Name"] = o.Name @@ -410,6 +426,13 @@ func (o *NiatelemetryDcnmModuleDetails) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -419,11 +442,23 @@ func (o *NiatelemetryDcnmModuleDetails) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type NiatelemetryDcnmModuleDetailsWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_niatelemetry_dcnm_module_details_list.go b/model_niatelemetry_dcnm_module_details_list.go index da3dd60b74..85899a2aa9 100644 --- a/model_niatelemetry_dcnm_module_details_list.go +++ b/model_niatelemetry_dcnm_module_details_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *NiatelemetryDcnmModuleDetailsList) GetResultsOk() ([]NiatelemetryDcnmMo // HasResults returns a boolean if a field has been set. func (o *NiatelemetryDcnmModuleDetailsList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *NiatelemetryDcnmModuleDetailsList) UnmarshalJSON(data []byte) (err erro "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *NiatelemetryDcnmModuleDetailsList) UnmarshalJSON(data []byte) (err erro } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type NiatelemetryDcnmModuleDetailsListWithoutEmbeddedStruct struct { // The total number of 'niatelemetry.DcnmModuleDetails' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_niatelemetry_dcnm_module_details_response.go b/model_niatelemetry_dcnm_module_details_response.go index cf35429827..f16058c329 100644 --- a/model_niatelemetry_dcnm_module_details_response.go +++ b/model_niatelemetry_dcnm_module_details_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_niatelemetry_dcnm_psu_details.go b/model_niatelemetry_dcnm_psu_details.go index f1a476cc0e..dbb49534da 100644 --- a/model_niatelemetry_dcnm_psu_details.go +++ b/model_niatelemetry_dcnm_psu_details.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -93,6 +93,11 @@ func (o *NiatelemetryDcnmPsuDetails) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "niatelemetry.DcnmPsuDetails" of the ClassId field. +func (o *NiatelemetryDcnmPsuDetails) GetDefaultClassId() interface{} { + return "niatelemetry.DcnmPsuDetails" +} + // GetObjectType returns the ObjectType field value func (o *NiatelemetryDcnmPsuDetails) GetObjectType() string { if o == nil { @@ -117,6 +122,11 @@ func (o *NiatelemetryDcnmPsuDetails) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "niatelemetry.DcnmPsuDetails" of the ObjectType field. +func (o *NiatelemetryDcnmPsuDetails) GetDefaultObjectType() interface{} { + return "niatelemetry.DcnmPsuDetails" +} + // GetName returns the Name field value if set, zero value otherwise. func (o *NiatelemetryDcnmPsuDetails) GetName() string { if o == nil || IsNil(o.Name) { @@ -370,7 +380,13 @@ func (o NiatelemetryDcnmPsuDetails) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Name) { toSerialize["Name"] = o.Name @@ -410,6 +426,13 @@ func (o *NiatelemetryDcnmPsuDetails) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -419,11 +442,23 @@ func (o *NiatelemetryDcnmPsuDetails) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type NiatelemetryDcnmPsuDetailsWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_niatelemetry_dcnm_psu_details_list.go b/model_niatelemetry_dcnm_psu_details_list.go index 9f8cb641e5..d1a7683d94 100644 --- a/model_niatelemetry_dcnm_psu_details_list.go +++ b/model_niatelemetry_dcnm_psu_details_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *NiatelemetryDcnmPsuDetailsList) GetResultsOk() ([]NiatelemetryDcnmPsuDe // HasResults returns a boolean if a field has been set. func (o *NiatelemetryDcnmPsuDetailsList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *NiatelemetryDcnmPsuDetailsList) UnmarshalJSON(data []byte) (err error) "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *NiatelemetryDcnmPsuDetailsList) UnmarshalJSON(data []byte) (err error) } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type NiatelemetryDcnmPsuDetailsListWithoutEmbeddedStruct struct { // The total number of 'niatelemetry.DcnmPsuDetails' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_niatelemetry_dcnm_psu_details_response.go b/model_niatelemetry_dcnm_psu_details_response.go index 3f9220ea0e..01b4e26b00 100644 --- a/model_niatelemetry_dcnm_psu_details_response.go +++ b/model_niatelemetry_dcnm_psu_details_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_niatelemetry_dcnm_transceiver_details.go b/model_niatelemetry_dcnm_transceiver_details.go index 24e4e6845c..b1a8d9fe74 100644 --- a/model_niatelemetry_dcnm_transceiver_details.go +++ b/model_niatelemetry_dcnm_transceiver_details.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -93,6 +93,11 @@ func (o *NiatelemetryDcnmTransceiverDetails) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "niatelemetry.DcnmTransceiverDetails" of the ClassId field. +func (o *NiatelemetryDcnmTransceiverDetails) GetDefaultClassId() interface{} { + return "niatelemetry.DcnmTransceiverDetails" +} + // GetObjectType returns the ObjectType field value func (o *NiatelemetryDcnmTransceiverDetails) GetObjectType() string { if o == nil { @@ -117,6 +122,11 @@ func (o *NiatelemetryDcnmTransceiverDetails) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "niatelemetry.DcnmTransceiverDetails" of the ObjectType field. +func (o *NiatelemetryDcnmTransceiverDetails) GetDefaultObjectType() interface{} { + return "niatelemetry.DcnmTransceiverDetails" +} + // GetPartNumber returns the PartNumber field value if set, zero value otherwise. func (o *NiatelemetryDcnmTransceiverDetails) GetPartNumber() string { if o == nil || IsNil(o.PartNumber) { @@ -370,7 +380,13 @@ func (o NiatelemetryDcnmTransceiverDetails) ToMap() (map[string]interface{}, err if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.PartNumber) { toSerialize["PartNumber"] = o.PartNumber @@ -410,6 +426,13 @@ func (o *NiatelemetryDcnmTransceiverDetails) UnmarshalJSON(data []byte) (err err "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -419,11 +442,23 @@ func (o *NiatelemetryDcnmTransceiverDetails) UnmarshalJSON(data []byte) (err err } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type NiatelemetryDcnmTransceiverDetailsWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_niatelemetry_dcnm_transceiver_details_list.go b/model_niatelemetry_dcnm_transceiver_details_list.go index 2a748e99af..65f95cdb45 100644 --- a/model_niatelemetry_dcnm_transceiver_details_list.go +++ b/model_niatelemetry_dcnm_transceiver_details_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *NiatelemetryDcnmTransceiverDetailsList) GetResultsOk() ([]NiatelemetryD // HasResults returns a boolean if a field has been set. func (o *NiatelemetryDcnmTransceiverDetailsList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *NiatelemetryDcnmTransceiverDetailsList) UnmarshalJSON(data []byte) (err "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *NiatelemetryDcnmTransceiverDetailsList) UnmarshalJSON(data []byte) (err } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type NiatelemetryDcnmTransceiverDetailsListWithoutEmbeddedStruct struct { // The total number of 'niatelemetry.DcnmTransceiverDetails' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_niatelemetry_dcnm_transceiver_details_response.go b/model_niatelemetry_dcnm_transceiver_details_response.go index f11599e951..884d0cb00b 100644 --- a/model_niatelemetry_dcnm_transceiver_details_response.go +++ b/model_niatelemetry_dcnm_transceiver_details_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_niatelemetry_deployment_status.go b/model_niatelemetry_deployment_status.go index 790ddf3a30..dddda4798e 100644 --- a/model_niatelemetry_deployment_status.go +++ b/model_niatelemetry_deployment_status.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -86,6 +86,11 @@ func (o *NiatelemetryDeploymentStatus) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "niatelemetry.DeploymentStatus" of the ClassId field. +func (o *NiatelemetryDeploymentStatus) GetDefaultClassId() interface{} { + return "niatelemetry.DeploymentStatus" +} + // GetObjectType returns the ObjectType field value func (o *NiatelemetryDeploymentStatus) GetObjectType() string { if o == nil { @@ -110,6 +115,11 @@ func (o *NiatelemetryDeploymentStatus) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "niatelemetry.DeploymentStatus" of the ObjectType field. +func (o *NiatelemetryDeploymentStatus) GetDefaultObjectType() interface{} { + return "niatelemetry.DeploymentStatus" +} + // GetId returns the Id field value if set, zero value otherwise. func (o *NiatelemetryDeploymentStatus) GetId() int64 { if o == nil || IsNil(o.Id) { @@ -224,7 +234,13 @@ func (o NiatelemetryDeploymentStatus) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Id) { toSerialize["Id"] = o.Id @@ -252,6 +268,13 @@ func (o *NiatelemetryDeploymentStatus) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -261,11 +284,23 @@ func (o *NiatelemetryDeploymentStatus) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type NiatelemetryDeploymentStatusWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_niatelemetry_digital_optical_monitoring.go b/model_niatelemetry_digital_optical_monitoring.go index 344fdaf083..57ab63fd5a 100644 --- a/model_niatelemetry_digital_optical_monitoring.go +++ b/model_niatelemetry_digital_optical_monitoring.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -88,6 +88,11 @@ func (o *NiatelemetryDigitalOpticalMonitoring) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "niatelemetry.DigitalOpticalMonitoring" of the ClassId field. +func (o *NiatelemetryDigitalOpticalMonitoring) GetDefaultClassId() interface{} { + return "niatelemetry.DigitalOpticalMonitoring" +} + // GetObjectType returns the ObjectType field value func (o *NiatelemetryDigitalOpticalMonitoring) GetObjectType() string { if o == nil { @@ -112,6 +117,11 @@ func (o *NiatelemetryDigitalOpticalMonitoring) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "niatelemetry.DigitalOpticalMonitoring" of the ObjectType field. +func (o *NiatelemetryDigitalOpticalMonitoring) GetDefaultObjectType() interface{} { + return "niatelemetry.DigitalOpticalMonitoring" +} + // GetAlerts returns the Alerts field value if set, zero value otherwise. func (o *NiatelemetryDigitalOpticalMonitoring) GetAlerts() string { if o == nil || IsNil(o.Alerts) { @@ -258,7 +268,13 @@ func (o NiatelemetryDigitalOpticalMonitoring) ToMap() (map[string]interface{}, e if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Alerts) { toSerialize["Alerts"] = o.Alerts @@ -289,6 +305,13 @@ func (o *NiatelemetryDigitalOpticalMonitoring) UnmarshalJSON(data []byte) (err e "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -298,11 +321,23 @@ func (o *NiatelemetryDigitalOpticalMonitoring) UnmarshalJSON(data []byte) (err e } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type NiatelemetryDigitalOpticalMonitoringWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_niatelemetry_diskinfo.go b/model_niatelemetry_diskinfo.go index 43869d607d..7085d3a29a 100644 --- a/model_niatelemetry_diskinfo.go +++ b/model_niatelemetry_diskinfo.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -88,6 +88,11 @@ func (o *NiatelemetryDiskinfo) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "niatelemetry.Diskinfo" of the ClassId field. +func (o *NiatelemetryDiskinfo) GetDefaultClassId() interface{} { + return "niatelemetry.Diskinfo" +} + // GetObjectType returns the ObjectType field value func (o *NiatelemetryDiskinfo) GetObjectType() string { if o == nil { @@ -112,6 +117,11 @@ func (o *NiatelemetryDiskinfo) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "niatelemetry.Diskinfo" of the ObjectType field. +func (o *NiatelemetryDiskinfo) GetDefaultObjectType() interface{} { + return "niatelemetry.Diskinfo" +} + // GetFree returns the Free field value if set, zero value otherwise. func (o *NiatelemetryDiskinfo) GetFree() int64 { if o == nil || IsNil(o.Free) { @@ -258,7 +268,13 @@ func (o NiatelemetryDiskinfo) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Free) { toSerialize["Free"] = o.Free @@ -289,6 +305,13 @@ func (o *NiatelemetryDiskinfo) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -298,11 +321,23 @@ func (o *NiatelemetryDiskinfo) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type NiatelemetryDiskinfoWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_niatelemetry_epg.go b/model_niatelemetry_epg.go index bd8738cbe2..0ca0590064 100644 --- a/model_niatelemetry_epg.go +++ b/model_niatelemetry_epg.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -115,6 +115,11 @@ func (o *NiatelemetryEpg) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "niatelemetry.Epg" of the ClassId field. +func (o *NiatelemetryEpg) GetDefaultClassId() interface{} { + return "niatelemetry.Epg" +} + // GetObjectType returns the ObjectType field value func (o *NiatelemetryEpg) GetObjectType() string { if o == nil { @@ -139,6 +144,11 @@ func (o *NiatelemetryEpg) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "niatelemetry.Epg" of the ObjectType field. +func (o *NiatelemetryEpg) GetDefaultObjectType() interface{} { + return "niatelemetry.Epg" +} + // GetAzurePackCount returns the AzurePackCount field value if set, zero value otherwise. func (o *NiatelemetryEpg) GetAzurePackCount() int64 { if o == nil || IsNil(o.AzurePackCount) { @@ -744,7 +754,13 @@ func (o NiatelemetryEpg) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.AzurePackCount) { toSerialize["AzurePackCount"] = o.AzurePackCount @@ -817,6 +833,13 @@ func (o *NiatelemetryEpg) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -826,11 +849,23 @@ func (o *NiatelemetryEpg) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type NiatelemetryEpgWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_niatelemetry_epg_list.go b/model_niatelemetry_epg_list.go index 86bfcd3f8a..c060cf864b 100644 --- a/model_niatelemetry_epg_list.go +++ b/model_niatelemetry_epg_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *NiatelemetryEpgList) GetResultsOk() ([]NiatelemetryEpg, bool) { // HasResults returns a boolean if a field has been set. func (o *NiatelemetryEpgList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *NiatelemetryEpgList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *NiatelemetryEpgList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type NiatelemetryEpgListWithoutEmbeddedStruct struct { // The total number of 'niatelemetry.Epg' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_niatelemetry_epg_response.go b/model_niatelemetry_epg_response.go index 209d85dec6..d7b13a9432 100644 --- a/model_niatelemetry_epg_response.go +++ b/model_niatelemetry_epg_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_niatelemetry_eqpt_storage_firmware.go b/model_niatelemetry_eqpt_storage_firmware.go index b7882c5992..e7df065ec5 100644 --- a/model_niatelemetry_eqpt_storage_firmware.go +++ b/model_niatelemetry_eqpt_storage_firmware.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -84,6 +84,11 @@ func (o *NiatelemetryEqptStorageFirmware) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "niatelemetry.EqptStorageFirmware" of the ClassId field. +func (o *NiatelemetryEqptStorageFirmware) GetDefaultClassId() interface{} { + return "niatelemetry.EqptStorageFirmware" +} + // GetObjectType returns the ObjectType field value func (o *NiatelemetryEqptStorageFirmware) GetObjectType() string { if o == nil { @@ -108,6 +113,11 @@ func (o *NiatelemetryEqptStorageFirmware) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "niatelemetry.EqptStorageFirmware" of the ObjectType field. +func (o *NiatelemetryEqptStorageFirmware) GetDefaultObjectType() interface{} { + return "niatelemetry.EqptStorageFirmware" +} + // GetAvailable returns the Available field value if set, zero value otherwise. func (o *NiatelemetryEqptStorageFirmware) GetAvailable() string { if o == nil || IsNil(o.Available) { @@ -190,7 +200,13 @@ func (o NiatelemetryEqptStorageFirmware) ToMap() (map[string]interface{}, error) if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Available) { toSerialize["Available"] = o.Available @@ -215,6 +231,13 @@ func (o *NiatelemetryEqptStorageFirmware) UnmarshalJSON(data []byte) (err error) "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -224,11 +247,23 @@ func (o *NiatelemetryEqptStorageFirmware) UnmarshalJSON(data []byte) (err error) } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type NiatelemetryEqptStorageFirmwareWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_niatelemetry_eqptcapacity_pol_usage5min.go b/model_niatelemetry_eqptcapacity_pol_usage5min.go index f72fc76d55..a9be034c88 100644 --- a/model_niatelemetry_eqptcapacity_pol_usage5min.go +++ b/model_niatelemetry_eqptcapacity_pol_usage5min.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -86,6 +86,11 @@ func (o *NiatelemetryEqptcapacityPolUsage5min) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "niatelemetry.EqptcapacityPolUsage5min" of the ClassId field. +func (o *NiatelemetryEqptcapacityPolUsage5min) GetDefaultClassId() interface{} { + return "niatelemetry.EqptcapacityPolUsage5min" +} + // GetObjectType returns the ObjectType field value func (o *NiatelemetryEqptcapacityPolUsage5min) GetObjectType() string { if o == nil { @@ -110,6 +115,11 @@ func (o *NiatelemetryEqptcapacityPolUsage5min) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "niatelemetry.EqptcapacityPolUsage5min" of the ObjectType field. +func (o *NiatelemetryEqptcapacityPolUsage5min) GetDefaultObjectType() interface{} { + return "niatelemetry.EqptcapacityPolUsage5min" +} + // GetPolUsageBase returns the PolUsageBase field value if set, zero value otherwise. func (o *NiatelemetryEqptcapacityPolUsage5min) GetPolUsageBase() string { if o == nil || IsNil(o.PolUsageBase) { @@ -224,7 +234,13 @@ func (o NiatelemetryEqptcapacityPolUsage5min) ToMap() (map[string]interface{}, e if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.PolUsageBase) { toSerialize["PolUsageBase"] = o.PolUsageBase @@ -252,6 +268,13 @@ func (o *NiatelemetryEqptcapacityPolUsage5min) UnmarshalJSON(data []byte) (err e "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -261,11 +284,23 @@ func (o *NiatelemetryEqptcapacityPolUsage5min) UnmarshalJSON(data []byte) (err e } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type NiatelemetryEqptcapacityPolUsage5minWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_niatelemetry_eqptcapacity_prefix_entries15min.go b/model_niatelemetry_eqptcapacity_prefix_entries15min.go index bff6feac0e..35fefe8ca2 100644 --- a/model_niatelemetry_eqptcapacity_prefix_entries15min.go +++ b/model_niatelemetry_eqptcapacity_prefix_entries15min.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -82,6 +82,11 @@ func (o *NiatelemetryEqptcapacityPrefixEntries15min) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "niatelemetry.EqptcapacityPrefixEntries15min" of the ClassId field. +func (o *NiatelemetryEqptcapacityPrefixEntries15min) GetDefaultClassId() interface{} { + return "niatelemetry.EqptcapacityPrefixEntries15min" +} + // GetObjectType returns the ObjectType field value func (o *NiatelemetryEqptcapacityPrefixEntries15min) GetObjectType() string { if o == nil { @@ -106,6 +111,11 @@ func (o *NiatelemetryEqptcapacityPrefixEntries15min) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "niatelemetry.EqptcapacityPrefixEntries15min" of the ObjectType field. +func (o *NiatelemetryEqptcapacityPrefixEntries15min) GetDefaultObjectType() interface{} { + return "niatelemetry.EqptcapacityPrefixEntries15min" +} + // GetExtNormalizedLast returns the ExtNormalizedLast field value if set, zero value otherwise. func (o *NiatelemetryEqptcapacityPrefixEntries15min) GetExtNormalizedLast() string { if o == nil || IsNil(o.ExtNormalizedLast) { @@ -156,7 +166,13 @@ func (o NiatelemetryEqptcapacityPrefixEntries15min) ToMap() (map[string]interfac if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.ExtNormalizedLast) { toSerialize["ExtNormalizedLast"] = o.ExtNormalizedLast @@ -178,6 +194,13 @@ func (o *NiatelemetryEqptcapacityPrefixEntries15min) UnmarshalJSON(data []byte) "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -187,11 +210,23 @@ func (o *NiatelemetryEqptcapacityPrefixEntries15min) UnmarshalJSON(data []byte) } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type NiatelemetryEqptcapacityPrefixEntries15minWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_niatelemetry_eqptcapacity_prefix_entries5min.go b/model_niatelemetry_eqptcapacity_prefix_entries5min.go index b8536cd89b..8b22589fb1 100644 --- a/model_niatelemetry_eqptcapacity_prefix_entries5min.go +++ b/model_niatelemetry_eqptcapacity_prefix_entries5min.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -82,6 +82,11 @@ func (o *NiatelemetryEqptcapacityPrefixEntries5min) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "niatelemetry.EqptcapacityPrefixEntries5min" of the ClassId field. +func (o *NiatelemetryEqptcapacityPrefixEntries5min) GetDefaultClassId() interface{} { + return "niatelemetry.EqptcapacityPrefixEntries5min" +} + // GetObjectType returns the ObjectType field value func (o *NiatelemetryEqptcapacityPrefixEntries5min) GetObjectType() string { if o == nil { @@ -106,6 +111,11 @@ func (o *NiatelemetryEqptcapacityPrefixEntries5min) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "niatelemetry.EqptcapacityPrefixEntries5min" of the ObjectType field. +func (o *NiatelemetryEqptcapacityPrefixEntries5min) GetDefaultObjectType() interface{} { + return "niatelemetry.EqptcapacityPrefixEntries5min" +} + // GetExtNormalizedLast returns the ExtNormalizedLast field value if set, zero value otherwise. func (o *NiatelemetryEqptcapacityPrefixEntries5min) GetExtNormalizedLast() string { if o == nil || IsNil(o.ExtNormalizedLast) { @@ -156,7 +166,13 @@ func (o NiatelemetryEqptcapacityPrefixEntries5min) ToMap() (map[string]interface if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.ExtNormalizedLast) { toSerialize["ExtNormalizedLast"] = o.ExtNormalizedLast @@ -178,6 +194,13 @@ func (o *NiatelemetryEqptcapacityPrefixEntries5min) UnmarshalJSON(data []byte) ( "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -187,11 +210,23 @@ func (o *NiatelemetryEqptcapacityPrefixEntries5min) UnmarshalJSON(data []byte) ( } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type NiatelemetryEqptcapacityPrefixEntries5minWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_niatelemetry_fabric_module_details.go b/model_niatelemetry_fabric_module_details.go index 72db64eb30..b6555ab3ca 100644 --- a/model_niatelemetry_fabric_module_details.go +++ b/model_niatelemetry_fabric_module_details.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -99,6 +99,11 @@ func (o *NiatelemetryFabricModuleDetails) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "niatelemetry.FabricModuleDetails" of the ClassId field. +func (o *NiatelemetryFabricModuleDetails) GetDefaultClassId() interface{} { + return "niatelemetry.FabricModuleDetails" +} + // GetObjectType returns the ObjectType field value func (o *NiatelemetryFabricModuleDetails) GetObjectType() string { if o == nil { @@ -123,6 +128,11 @@ func (o *NiatelemetryFabricModuleDetails) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "niatelemetry.FabricModuleDetails" of the ObjectType field. +func (o *NiatelemetryFabricModuleDetails) GetDefaultObjectType() interface{} { + return "niatelemetry.FabricModuleDetails" +} + // GetDn returns the Dn field value if set, zero value otherwise. func (o *NiatelemetryFabricModuleDetails) GetDn() string { if o == nil || IsNil(o.Dn) { @@ -472,7 +482,13 @@ func (o NiatelemetryFabricModuleDetails) ToMap() (map[string]interface{}, error) if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Dn) { toSerialize["Dn"] = o.Dn @@ -521,6 +537,13 @@ func (o *NiatelemetryFabricModuleDetails) UnmarshalJSON(data []byte) (err error) "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -530,11 +553,23 @@ func (o *NiatelemetryFabricModuleDetails) UnmarshalJSON(data []byte) (err error) } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type NiatelemetryFabricModuleDetailsWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_niatelemetry_fabric_module_details_list.go b/model_niatelemetry_fabric_module_details_list.go index 678dbe717a..e186005889 100644 --- a/model_niatelemetry_fabric_module_details_list.go +++ b/model_niatelemetry_fabric_module_details_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *NiatelemetryFabricModuleDetailsList) GetResultsOk() ([]NiatelemetryFabr // HasResults returns a boolean if a field has been set. func (o *NiatelemetryFabricModuleDetailsList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *NiatelemetryFabricModuleDetailsList) UnmarshalJSON(data []byte) (err er "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *NiatelemetryFabricModuleDetailsList) UnmarshalJSON(data []byte) (err er } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type NiatelemetryFabricModuleDetailsListWithoutEmbeddedStruct struct { // The total number of 'niatelemetry.FabricModuleDetails' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_niatelemetry_fabric_module_details_response.go b/model_niatelemetry_fabric_module_details_response.go index bdcf1b4136..a397aa347b 100644 --- a/model_niatelemetry_fabric_module_details_response.go +++ b/model_niatelemetry_fabric_module_details_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_niatelemetry_fabric_node_control_details.go b/model_niatelemetry_fabric_node_control_details.go index 6b7fd1bcf2..156280c621 100644 --- a/model_niatelemetry_fabric_node_control_details.go +++ b/model_niatelemetry_fabric_node_control_details.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -91,6 +91,11 @@ func (o *NiatelemetryFabricNodeControlDetails) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "niatelemetry.FabricNodeControlDetails" of the ClassId field. +func (o *NiatelemetryFabricNodeControlDetails) GetDefaultClassId() interface{} { + return "niatelemetry.FabricNodeControlDetails" +} + // GetObjectType returns the ObjectType field value func (o *NiatelemetryFabricNodeControlDetails) GetObjectType() string { if o == nil { @@ -115,6 +120,11 @@ func (o *NiatelemetryFabricNodeControlDetails) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "niatelemetry.FabricNodeControlDetails" of the ObjectType field. +func (o *NiatelemetryFabricNodeControlDetails) GetDefaultObjectType() interface{} { + return "niatelemetry.FabricNodeControlDetails" +} + // GetDn returns the Dn field value if set, zero value otherwise. func (o *NiatelemetryFabricNodeControlDetails) GetDn() string { if o == nil || IsNil(o.Dn) { @@ -336,7 +346,13 @@ func (o NiatelemetryFabricNodeControlDetails) ToMap() (map[string]interface{}, e if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Dn) { toSerialize["Dn"] = o.Dn @@ -373,6 +389,13 @@ func (o *NiatelemetryFabricNodeControlDetails) UnmarshalJSON(data []byte) (err e "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -382,11 +405,23 @@ func (o *NiatelemetryFabricNodeControlDetails) UnmarshalJSON(data []byte) (err e } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type NiatelemetryFabricNodeControlDetailsWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_niatelemetry_fabric_node_control_details_list.go b/model_niatelemetry_fabric_node_control_details_list.go index f3577d3c21..5b5eaaafa7 100644 --- a/model_niatelemetry_fabric_node_control_details_list.go +++ b/model_niatelemetry_fabric_node_control_details_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *NiatelemetryFabricNodeControlDetailsList) GetResultsOk() ([]Niatelemetr // HasResults returns a boolean if a field has been set. func (o *NiatelemetryFabricNodeControlDetailsList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *NiatelemetryFabricNodeControlDetailsList) UnmarshalJSON(data []byte) (e "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *NiatelemetryFabricNodeControlDetailsList) UnmarshalJSON(data []byte) (e } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type NiatelemetryFabricNodeControlDetailsListWithoutEmbeddedStruct struct { // The total number of 'niatelemetry.FabricNodeControlDetails' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_niatelemetry_fabric_node_control_details_response.go b/model_niatelemetry_fabric_node_control_details_response.go index 1d50989a14..00eb125bbf 100644 --- a/model_niatelemetry_fabric_node_control_details_response.go +++ b/model_niatelemetry_fabric_node_control_details_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_niatelemetry_fabric_pod_profile.go b/model_niatelemetry_fabric_pod_profile.go index 3ffa002d52..22388e6030 100644 --- a/model_niatelemetry_fabric_pod_profile.go +++ b/model_niatelemetry_fabric_pod_profile.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -93,6 +93,11 @@ func (o *NiatelemetryFabricPodProfile) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "niatelemetry.FabricPodProfile" of the ClassId field. +func (o *NiatelemetryFabricPodProfile) GetDefaultClassId() interface{} { + return "niatelemetry.FabricPodProfile" +} + // GetObjectType returns the ObjectType field value func (o *NiatelemetryFabricPodProfile) GetObjectType() string { if o == nil { @@ -117,6 +122,11 @@ func (o *NiatelemetryFabricPodProfile) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "niatelemetry.FabricPodProfile" of the ObjectType field. +func (o *NiatelemetryFabricPodProfile) GetDefaultObjectType() interface{} { + return "niatelemetry.FabricPodProfile" +} + // GetDn returns the Dn field value if set, zero value otherwise. func (o *NiatelemetryFabricPodProfile) GetDn() string { if o == nil || IsNil(o.Dn) { @@ -370,7 +380,13 @@ func (o NiatelemetryFabricPodProfile) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Dn) { toSerialize["Dn"] = o.Dn @@ -410,6 +426,13 @@ func (o *NiatelemetryFabricPodProfile) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -419,11 +442,23 @@ func (o *NiatelemetryFabricPodProfile) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type NiatelemetryFabricPodProfileWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_niatelemetry_fabric_pod_profile_list.go b/model_niatelemetry_fabric_pod_profile_list.go index 721e4242a8..8c270472a4 100644 --- a/model_niatelemetry_fabric_pod_profile_list.go +++ b/model_niatelemetry_fabric_pod_profile_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *NiatelemetryFabricPodProfileList) GetResultsOk() ([]NiatelemetryFabricP // HasResults returns a boolean if a field has been set. func (o *NiatelemetryFabricPodProfileList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *NiatelemetryFabricPodProfileList) UnmarshalJSON(data []byte) (err error "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *NiatelemetryFabricPodProfileList) UnmarshalJSON(data []byte) (err error } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type NiatelemetryFabricPodProfileListWithoutEmbeddedStruct struct { // The total number of 'niatelemetry.FabricPodProfile' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_niatelemetry_fabric_pod_profile_response.go b/model_niatelemetry_fabric_pod_profile_response.go index a3b1628169..8852a0e66f 100644 --- a/model_niatelemetry_fabric_pod_profile_response.go +++ b/model_niatelemetry_fabric_pod_profile_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_niatelemetry_fabric_pod_ss.go b/model_niatelemetry_fabric_pod_ss.go index cdc70d9cf9..4997ef3edb 100644 --- a/model_niatelemetry_fabric_pod_ss.go +++ b/model_niatelemetry_fabric_pod_ss.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -97,6 +97,11 @@ func (o *NiatelemetryFabricPodSs) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "niatelemetry.FabricPodSs" of the ClassId field. +func (o *NiatelemetryFabricPodSs) GetDefaultClassId() interface{} { + return "niatelemetry.FabricPodSs" +} + // GetObjectType returns the ObjectType field value func (o *NiatelemetryFabricPodSs) GetObjectType() string { if o == nil { @@ -121,6 +126,11 @@ func (o *NiatelemetryFabricPodSs) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "niatelemetry.FabricPodSs" of the ObjectType field. +func (o *NiatelemetryFabricPodSs) GetDefaultObjectType() interface{} { + return "niatelemetry.FabricPodSs" +} + // GetDn returns the Dn field value if set, zero value otherwise. func (o *NiatelemetryFabricPodSs) GetDn() string { if o == nil || IsNil(o.Dn) { @@ -438,7 +448,13 @@ func (o NiatelemetryFabricPodSs) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Dn) { toSerialize["Dn"] = o.Dn @@ -484,6 +500,13 @@ func (o *NiatelemetryFabricPodSs) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -493,11 +516,23 @@ func (o *NiatelemetryFabricPodSs) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type NiatelemetryFabricPodSsWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_niatelemetry_fabric_pod_ss_list.go b/model_niatelemetry_fabric_pod_ss_list.go index a5759a78fb..b668c4acf1 100644 --- a/model_niatelemetry_fabric_pod_ss_list.go +++ b/model_niatelemetry_fabric_pod_ss_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *NiatelemetryFabricPodSsList) GetResultsOk() ([]NiatelemetryFabricPodSs, // HasResults returns a boolean if a field has been set. func (o *NiatelemetryFabricPodSsList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *NiatelemetryFabricPodSsList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *NiatelemetryFabricPodSsList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type NiatelemetryFabricPodSsListWithoutEmbeddedStruct struct { // The total number of 'niatelemetry.FabricPodSs' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_niatelemetry_fabric_pod_ss_response.go b/model_niatelemetry_fabric_pod_ss_response.go index 307eb88e20..b8628ab6ec 100644 --- a/model_niatelemetry_fabric_pod_ss_response.go +++ b/model_niatelemetry_fabric_pod_ss_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_niatelemetry_fan_details.go b/model_niatelemetry_fan_details.go index 42fece8e71..1b307f4f8f 100644 --- a/model_niatelemetry_fan_details.go +++ b/model_niatelemetry_fan_details.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -88,6 +88,11 @@ func (o *NiatelemetryFanDetails) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "niatelemetry.FanDetails" of the ClassId field. +func (o *NiatelemetryFanDetails) GetDefaultClassId() interface{} { + return "niatelemetry.FanDetails" +} + // GetObjectType returns the ObjectType field value func (o *NiatelemetryFanDetails) GetObjectType() string { if o == nil { @@ -112,6 +117,11 @@ func (o *NiatelemetryFanDetails) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "niatelemetry.FanDetails" of the ObjectType field. +func (o *NiatelemetryFanDetails) GetDefaultObjectType() interface{} { + return "niatelemetry.FanDetails" +} + // GetName returns the Name field value if set, zero value otherwise. func (o *NiatelemetryFanDetails) GetName() string { if o == nil || IsNil(o.Name) { @@ -258,7 +268,13 @@ func (o NiatelemetryFanDetails) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Name) { toSerialize["Name"] = o.Name @@ -289,6 +305,13 @@ func (o *NiatelemetryFanDetails) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -298,11 +321,23 @@ func (o *NiatelemetryFanDetails) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type NiatelemetryFanDetailsWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_niatelemetry_fault.go b/model_niatelemetry_fault.go index 7a34a96ca5..4c3fdb2c5d 100644 --- a/model_niatelemetry_fault.go +++ b/model_niatelemetry_fault.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -101,6 +101,11 @@ func (o *NiatelemetryFault) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "niatelemetry.Fault" of the ClassId field. +func (o *NiatelemetryFault) GetDefaultClassId() interface{} { + return "niatelemetry.Fault" +} + // GetObjectType returns the ObjectType field value func (o *NiatelemetryFault) GetObjectType() string { if o == nil { @@ -125,6 +130,11 @@ func (o *NiatelemetryFault) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "niatelemetry.Fault" of the ObjectType field. +func (o *NiatelemetryFault) GetDefaultObjectType() interface{} { + return "niatelemetry.Fault" +} + // GetCause returns the Cause field value if set, zero value otherwise. func (o *NiatelemetryFault) GetCause() string { if o == nil || IsNil(o.Cause) { @@ -506,7 +516,13 @@ func (o NiatelemetryFault) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Cause) { toSerialize["Cause"] = o.Cause @@ -558,6 +574,13 @@ func (o *NiatelemetryFault) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -567,11 +590,23 @@ func (o *NiatelemetryFault) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type NiatelemetryFaultWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_niatelemetry_fault_list.go b/model_niatelemetry_fault_list.go index d32a0bae8f..4fda3b08a2 100644 --- a/model_niatelemetry_fault_list.go +++ b/model_niatelemetry_fault_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *NiatelemetryFaultList) GetResultsOk() ([]NiatelemetryFault, bool) { // HasResults returns a boolean if a field has been set. func (o *NiatelemetryFaultList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *NiatelemetryFaultList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *NiatelemetryFaultList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type NiatelemetryFaultListWithoutEmbeddedStruct struct { // The total number of 'niatelemetry.Fault' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_niatelemetry_fault_response.go b/model_niatelemetry_fault_response.go index 239602babb..d9af1b30a8 100644 --- a/model_niatelemetry_fault_response.go +++ b/model_niatelemetry_fault_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_niatelemetry_hcloud_details.go b/model_niatelemetry_hcloud_details.go index 0b07d36524..b48eff21ca 100644 --- a/model_niatelemetry_hcloud_details.go +++ b/model_niatelemetry_hcloud_details.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,6 +104,11 @@ func (o *NiatelemetryHcloudDetails) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "niatelemetry.HcloudDetails" of the ClassId field. +func (o *NiatelemetryHcloudDetails) GetDefaultClassId() interface{} { + return "niatelemetry.HcloudDetails" +} + // GetObjectType returns the ObjectType field value func (o *NiatelemetryHcloudDetails) GetObjectType() string { if o == nil { @@ -128,6 +133,11 @@ func (o *NiatelemetryHcloudDetails) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "niatelemetry.HcloudDetails" of the ObjectType field. +func (o *NiatelemetryHcloudDetails) GetDefaultObjectType() interface{} { + return "niatelemetry.HcloudDetails" +} + // GetDn returns the Dn field value if set, zero value otherwise. func (o *NiatelemetryHcloudDetails) GetDn() string { if o == nil || IsNil(o.Dn) { @@ -277,7 +287,7 @@ func (o *NiatelemetryHcloudDetails) GetRouterOk() ([]NiatelemetryCloudRoutersEle // HasRouter returns a boolean if a field has been set. func (o *NiatelemetryHcloudDetails) HasRouter() bool { - if o != nil && IsNil(o.Router) { + if o != nil && !IsNil(o.Router) { return true } @@ -574,7 +584,13 @@ func (o NiatelemetryHcloudDetails) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Dn) { toSerialize["Dn"] = o.Dn @@ -632,6 +648,13 @@ func (o *NiatelemetryHcloudDetails) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -641,11 +664,23 @@ func (o *NiatelemetryHcloudDetails) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type NiatelemetryHcloudDetailsWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_niatelemetry_hcloud_details_list.go b/model_niatelemetry_hcloud_details_list.go index 000ab1f9be..30381cb309 100644 --- a/model_niatelemetry_hcloud_details_list.go +++ b/model_niatelemetry_hcloud_details_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *NiatelemetryHcloudDetailsList) GetResultsOk() ([]NiatelemetryHcloudDeta // HasResults returns a boolean if a field has been set. func (o *NiatelemetryHcloudDetailsList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *NiatelemetryHcloudDetailsList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *NiatelemetryHcloudDetailsList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type NiatelemetryHcloudDetailsListWithoutEmbeddedStruct struct { // The total number of 'niatelemetry.HcloudDetails' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_niatelemetry_hcloud_details_response.go b/model_niatelemetry_hcloud_details_response.go index e2623c088b..d5d4a7df1c 100644 --- a/model_niatelemetry_hcloud_details_response.go +++ b/model_niatelemetry_hcloud_details_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_niatelemetry_health_insights_data.go b/model_niatelemetry_health_insights_data.go index 9b60cf9a92..06bc40cdda 100644 --- a/model_niatelemetry_health_insights_data.go +++ b/model_niatelemetry_health_insights_data.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -93,6 +93,11 @@ func (o *NiatelemetryHealthInsightsData) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "niatelemetry.HealthInsightsData" of the ClassId field. +func (o *NiatelemetryHealthInsightsData) GetDefaultClassId() interface{} { + return "niatelemetry.HealthInsightsData" +} + // GetObjectType returns the ObjectType field value func (o *NiatelemetryHealthInsightsData) GetObjectType() string { if o == nil { @@ -117,6 +122,11 @@ func (o *NiatelemetryHealthInsightsData) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "niatelemetry.HealthInsightsData" of the ObjectType field. +func (o *NiatelemetryHealthInsightsData) GetDefaultObjectType() interface{} { + return "niatelemetry.HealthInsightsData" +} + // GetFltEqptFlashMinorAlarmFaultCount returns the FltEqptFlashMinorAlarmFaultCount field value if set, zero value otherwise. func (o *NiatelemetryHealthInsightsData) GetFltEqptFlashMinorAlarmFaultCount() int64 { if o == nil || IsNil(o.FltEqptFlashMinorAlarmFaultCount) { @@ -370,7 +380,13 @@ func (o NiatelemetryHealthInsightsData) ToMap() (map[string]interface{}, error) if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.FltEqptFlashMinorAlarmFaultCount) { toSerialize["FltEqptFlashMinorAlarmFaultCount"] = o.FltEqptFlashMinorAlarmFaultCount @@ -410,6 +426,13 @@ func (o *NiatelemetryHealthInsightsData) UnmarshalJSON(data []byte) (err error) "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -419,11 +442,23 @@ func (o *NiatelemetryHealthInsightsData) UnmarshalJSON(data []byte) (err error) } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type NiatelemetryHealthInsightsDataWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_niatelemetry_health_insights_data_list.go b/model_niatelemetry_health_insights_data_list.go index 107b71a82b..4e901aae02 100644 --- a/model_niatelemetry_health_insights_data_list.go +++ b/model_niatelemetry_health_insights_data_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *NiatelemetryHealthInsightsDataList) GetResultsOk() ([]NiatelemetryHealt // HasResults returns a boolean if a field has been set. func (o *NiatelemetryHealthInsightsDataList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *NiatelemetryHealthInsightsDataList) UnmarshalJSON(data []byte) (err err "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *NiatelemetryHealthInsightsDataList) UnmarshalJSON(data []byte) (err err } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type NiatelemetryHealthInsightsDataListWithoutEmbeddedStruct struct { // The total number of 'niatelemetry.HealthInsightsData' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_niatelemetry_health_insights_data_response.go b/model_niatelemetry_health_insights_data_response.go index 0322788ebb..11d3777470 100644 --- a/model_niatelemetry_health_insights_data_response.go +++ b/model_niatelemetry_health_insights_data_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_niatelemetry_https_acl_contract_details.go b/model_niatelemetry_https_acl_contract_details.go index 860ef7c9be..df0fd272ba 100644 --- a/model_niatelemetry_https_acl_contract_details.go +++ b/model_niatelemetry_https_acl_contract_details.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -97,6 +97,11 @@ func (o *NiatelemetryHttpsAclContractDetails) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "niatelemetry.HttpsAclContractDetails" of the ClassId field. +func (o *NiatelemetryHttpsAclContractDetails) GetDefaultClassId() interface{} { + return "niatelemetry.HttpsAclContractDetails" +} + // GetObjectType returns the ObjectType field value func (o *NiatelemetryHttpsAclContractDetails) GetObjectType() string { if o == nil { @@ -121,6 +126,11 @@ func (o *NiatelemetryHttpsAclContractDetails) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "niatelemetry.HttpsAclContractDetails" of the ObjectType field. +func (o *NiatelemetryHttpsAclContractDetails) GetDefaultObjectType() interface{} { + return "niatelemetry.HttpsAclContractDetails" +} + // GetConsumerDn returns the ConsumerDn field value if set, zero value otherwise. func (o *NiatelemetryHttpsAclContractDetails) GetConsumerDn() string { if o == nil || IsNil(o.ConsumerDn) { @@ -438,7 +448,13 @@ func (o NiatelemetryHttpsAclContractDetails) ToMap() (map[string]interface{}, er if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.ConsumerDn) { toSerialize["ConsumerDn"] = o.ConsumerDn @@ -484,6 +500,13 @@ func (o *NiatelemetryHttpsAclContractDetails) UnmarshalJSON(data []byte) (err er "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -493,11 +516,23 @@ func (o *NiatelemetryHttpsAclContractDetails) UnmarshalJSON(data []byte) (err er } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type NiatelemetryHttpsAclContractDetailsWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_niatelemetry_https_acl_contract_details_list.go b/model_niatelemetry_https_acl_contract_details_list.go index f8caf8fe8c..73c666aba0 100644 --- a/model_niatelemetry_https_acl_contract_details_list.go +++ b/model_niatelemetry_https_acl_contract_details_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *NiatelemetryHttpsAclContractDetailsList) GetResultsOk() ([]Niatelemetry // HasResults returns a boolean if a field has been set. func (o *NiatelemetryHttpsAclContractDetailsList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *NiatelemetryHttpsAclContractDetailsList) UnmarshalJSON(data []byte) (er "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *NiatelemetryHttpsAclContractDetailsList) UnmarshalJSON(data []byte) (er } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type NiatelemetryHttpsAclContractDetailsListWithoutEmbeddedStruct struct { // The total number of 'niatelemetry.HttpsAclContractDetails' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_niatelemetry_https_acl_contract_details_response.go b/model_niatelemetry_https_acl_contract_details_response.go index 5efb4dddaf..4c85e99ed8 100644 --- a/model_niatelemetry_https_acl_contract_details_response.go +++ b/model_niatelemetry_https_acl_contract_details_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_niatelemetry_https_acl_contract_filter_map.go b/model_niatelemetry_https_acl_contract_filter_map.go index edd460d92d..fad3e1ddf3 100644 --- a/model_niatelemetry_https_acl_contract_filter_map.go +++ b/model_niatelemetry_https_acl_contract_filter_map.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -93,6 +93,11 @@ func (o *NiatelemetryHttpsAclContractFilterMap) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "niatelemetry.HttpsAclContractFilterMap" of the ClassId field. +func (o *NiatelemetryHttpsAclContractFilterMap) GetDefaultClassId() interface{} { + return "niatelemetry.HttpsAclContractFilterMap" +} + // GetObjectType returns the ObjectType field value func (o *NiatelemetryHttpsAclContractFilterMap) GetObjectType() string { if o == nil { @@ -117,6 +122,11 @@ func (o *NiatelemetryHttpsAclContractFilterMap) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "niatelemetry.HttpsAclContractFilterMap" of the ObjectType field. +func (o *NiatelemetryHttpsAclContractFilterMap) GetDefaultObjectType() interface{} { + return "niatelemetry.HttpsAclContractFilterMap" +} + // GetContractName returns the ContractName field value if set, zero value otherwise. func (o *NiatelemetryHttpsAclContractFilterMap) GetContractName() string { if o == nil || IsNil(o.ContractName) { @@ -370,7 +380,13 @@ func (o NiatelemetryHttpsAclContractFilterMap) ToMap() (map[string]interface{}, if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.ContractName) { toSerialize["ContractName"] = o.ContractName @@ -410,6 +426,13 @@ func (o *NiatelemetryHttpsAclContractFilterMap) UnmarshalJSON(data []byte) (err "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -419,11 +442,23 @@ func (o *NiatelemetryHttpsAclContractFilterMap) UnmarshalJSON(data []byte) (err } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type NiatelemetryHttpsAclContractFilterMapWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_niatelemetry_https_acl_contract_filter_map_list.go b/model_niatelemetry_https_acl_contract_filter_map_list.go index aa35f22f83..9a873d3b5c 100644 --- a/model_niatelemetry_https_acl_contract_filter_map_list.go +++ b/model_niatelemetry_https_acl_contract_filter_map_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *NiatelemetryHttpsAclContractFilterMapList) GetResultsOk() ([]Niatelemet // HasResults returns a boolean if a field has been set. func (o *NiatelemetryHttpsAclContractFilterMapList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *NiatelemetryHttpsAclContractFilterMapList) UnmarshalJSON(data []byte) ( "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *NiatelemetryHttpsAclContractFilterMapList) UnmarshalJSON(data []byte) ( } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type NiatelemetryHttpsAclContractFilterMapListWithoutEmbeddedStruct struct { // The total number of 'niatelemetry.HttpsAclContractFilterMap' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_niatelemetry_https_acl_contract_filter_map_response.go b/model_niatelemetry_https_acl_contract_filter_map_response.go index 71ec5d99a0..42a3c0151d 100644 --- a/model_niatelemetry_https_acl_contract_filter_map_response.go +++ b/model_niatelemetry_https_acl_contract_filter_map_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_niatelemetry_https_acl_epg_contract_map.go b/model_niatelemetry_https_acl_epg_contract_map.go index 9e56b4ccfe..d94ebd82cb 100644 --- a/model_niatelemetry_https_acl_epg_contract_map.go +++ b/model_niatelemetry_https_acl_epg_contract_map.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -95,6 +95,11 @@ func (o *NiatelemetryHttpsAclEpgContractMap) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "niatelemetry.HttpsAclEpgContractMap" of the ClassId field. +func (o *NiatelemetryHttpsAclEpgContractMap) GetDefaultClassId() interface{} { + return "niatelemetry.HttpsAclEpgContractMap" +} + // GetObjectType returns the ObjectType field value func (o *NiatelemetryHttpsAclEpgContractMap) GetObjectType() string { if o == nil { @@ -119,6 +124,11 @@ func (o *NiatelemetryHttpsAclEpgContractMap) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "niatelemetry.HttpsAclEpgContractMap" of the ObjectType field. +func (o *NiatelemetryHttpsAclEpgContractMap) GetDefaultObjectType() interface{} { + return "niatelemetry.HttpsAclEpgContractMap" +} + // GetContractName returns the ContractName field value if set, zero value otherwise. func (o *NiatelemetryHttpsAclEpgContractMap) GetContractName() string { if o == nil || IsNil(o.ContractName) { @@ -404,7 +414,13 @@ func (o NiatelemetryHttpsAclEpgContractMap) ToMap() (map[string]interface{}, err if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.ContractName) { toSerialize["ContractName"] = o.ContractName @@ -447,6 +463,13 @@ func (o *NiatelemetryHttpsAclEpgContractMap) UnmarshalJSON(data []byte) (err err "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -456,11 +479,23 @@ func (o *NiatelemetryHttpsAclEpgContractMap) UnmarshalJSON(data []byte) (err err } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type NiatelemetryHttpsAclEpgContractMapWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_niatelemetry_https_acl_epg_contract_map_list.go b/model_niatelemetry_https_acl_epg_contract_map_list.go index 65d99711ea..8dcef3ee35 100644 --- a/model_niatelemetry_https_acl_epg_contract_map_list.go +++ b/model_niatelemetry_https_acl_epg_contract_map_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *NiatelemetryHttpsAclEpgContractMapList) GetResultsOk() ([]NiatelemetryH // HasResults returns a boolean if a field has been set. func (o *NiatelemetryHttpsAclEpgContractMapList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *NiatelemetryHttpsAclEpgContractMapList) UnmarshalJSON(data []byte) (err "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *NiatelemetryHttpsAclEpgContractMapList) UnmarshalJSON(data []byte) (err } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type NiatelemetryHttpsAclEpgContractMapListWithoutEmbeddedStruct struct { // The total number of 'niatelemetry.HttpsAclEpgContractMap' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_niatelemetry_https_acl_epg_contract_map_response.go b/model_niatelemetry_https_acl_epg_contract_map_response.go index 5bc9736901..a6b3b14ae0 100644 --- a/model_niatelemetry_https_acl_epg_contract_map_response.go +++ b/model_niatelemetry_https_acl_epg_contract_map_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_niatelemetry_https_acl_epg_details.go b/model_niatelemetry_https_acl_epg_details.go index 298321f2ad..36c8ae63eb 100644 --- a/model_niatelemetry_https_acl_epg_details.go +++ b/model_niatelemetry_https_acl_epg_details.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -91,6 +91,11 @@ func (o *NiatelemetryHttpsAclEpgDetails) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "niatelemetry.HttpsAclEpgDetails" of the ClassId field. +func (o *NiatelemetryHttpsAclEpgDetails) GetDefaultClassId() interface{} { + return "niatelemetry.HttpsAclEpgDetails" +} + // GetObjectType returns the ObjectType field value func (o *NiatelemetryHttpsAclEpgDetails) GetObjectType() string { if o == nil { @@ -115,6 +120,11 @@ func (o *NiatelemetryHttpsAclEpgDetails) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "niatelemetry.HttpsAclEpgDetails" of the ObjectType field. +func (o *NiatelemetryHttpsAclEpgDetails) GetDefaultObjectType() interface{} { + return "niatelemetry.HttpsAclEpgDetails" +} + // GetDn returns the Dn field value if set, zero value otherwise. func (o *NiatelemetryHttpsAclEpgDetails) GetDn() string { if o == nil || IsNil(o.Dn) { @@ -336,7 +346,13 @@ func (o NiatelemetryHttpsAclEpgDetails) ToMap() (map[string]interface{}, error) if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Dn) { toSerialize["Dn"] = o.Dn @@ -373,6 +389,13 @@ func (o *NiatelemetryHttpsAclEpgDetails) UnmarshalJSON(data []byte) (err error) "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -382,11 +405,23 @@ func (o *NiatelemetryHttpsAclEpgDetails) UnmarshalJSON(data []byte) (err error) } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type NiatelemetryHttpsAclEpgDetailsWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_niatelemetry_https_acl_epg_details_list.go b/model_niatelemetry_https_acl_epg_details_list.go index 38d4c60e89..6ebba17b34 100644 --- a/model_niatelemetry_https_acl_epg_details_list.go +++ b/model_niatelemetry_https_acl_epg_details_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *NiatelemetryHttpsAclEpgDetailsList) GetResultsOk() ([]NiatelemetryHttps // HasResults returns a boolean if a field has been set. func (o *NiatelemetryHttpsAclEpgDetailsList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *NiatelemetryHttpsAclEpgDetailsList) UnmarshalJSON(data []byte) (err err "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *NiatelemetryHttpsAclEpgDetailsList) UnmarshalJSON(data []byte) (err err } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type NiatelemetryHttpsAclEpgDetailsListWithoutEmbeddedStruct struct { // The total number of 'niatelemetry.HttpsAclEpgDetails' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_niatelemetry_https_acl_epg_details_response.go b/model_niatelemetry_https_acl_epg_details_response.go index 779940c8c0..e1f2e5501a 100644 --- a/model_niatelemetry_https_acl_epg_details_response.go +++ b/model_niatelemetry_https_acl_epg_details_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_niatelemetry_https_acl_filter_details.go b/model_niatelemetry_https_acl_filter_details.go index f4bbe5074c..c7aff2de59 100644 --- a/model_niatelemetry_https_acl_filter_details.go +++ b/model_niatelemetry_https_acl_filter_details.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -101,6 +101,11 @@ func (o *NiatelemetryHttpsAclFilterDetails) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "niatelemetry.HttpsAclFilterDetails" of the ClassId field. +func (o *NiatelemetryHttpsAclFilterDetails) GetDefaultClassId() interface{} { + return "niatelemetry.HttpsAclFilterDetails" +} + // GetObjectType returns the ObjectType field value func (o *NiatelemetryHttpsAclFilterDetails) GetObjectType() string { if o == nil { @@ -125,6 +130,11 @@ func (o *NiatelemetryHttpsAclFilterDetails) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "niatelemetry.HttpsAclFilterDetails" of the ObjectType field. +func (o *NiatelemetryHttpsAclFilterDetails) GetDefaultObjectType() interface{} { + return "niatelemetry.HttpsAclFilterDetails" +} + // GetDestFromPort returns the DestFromPort field value if set, zero value otherwise. func (o *NiatelemetryHttpsAclFilterDetails) GetDestFromPort() string { if o == nil || IsNil(o.DestFromPort) { @@ -506,7 +516,13 @@ func (o NiatelemetryHttpsAclFilterDetails) ToMap() (map[string]interface{}, erro if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.DestFromPort) { toSerialize["DestFromPort"] = o.DestFromPort @@ -558,6 +574,13 @@ func (o *NiatelemetryHttpsAclFilterDetails) UnmarshalJSON(data []byte) (err erro "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -567,11 +590,23 @@ func (o *NiatelemetryHttpsAclFilterDetails) UnmarshalJSON(data []byte) (err erro } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type NiatelemetryHttpsAclFilterDetailsWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_niatelemetry_https_acl_filter_details_list.go b/model_niatelemetry_https_acl_filter_details_list.go index 87a77db634..e54776e4c8 100644 --- a/model_niatelemetry_https_acl_filter_details_list.go +++ b/model_niatelemetry_https_acl_filter_details_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *NiatelemetryHttpsAclFilterDetailsList) GetResultsOk() ([]NiatelemetryHt // HasResults returns a boolean if a field has been set. func (o *NiatelemetryHttpsAclFilterDetailsList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *NiatelemetryHttpsAclFilterDetailsList) UnmarshalJSON(data []byte) (err "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *NiatelemetryHttpsAclFilterDetailsList) UnmarshalJSON(data []byte) (err } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type NiatelemetryHttpsAclFilterDetailsListWithoutEmbeddedStruct struct { // The total number of 'niatelemetry.HttpsAclFilterDetails' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_niatelemetry_https_acl_filter_details_response.go b/model_niatelemetry_https_acl_filter_details_response.go index 15ad27ca60..e1622c2f91 100644 --- a/model_niatelemetry_https_acl_filter_details_response.go +++ b/model_niatelemetry_https_acl_filter_details_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_niatelemetry_image_detail.go b/model_niatelemetry_image_detail.go index 05d5244b84..50a47b2318 100644 --- a/model_niatelemetry_image_detail.go +++ b/model_niatelemetry_image_detail.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -86,6 +86,11 @@ func (o *NiatelemetryImageDetail) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "niatelemetry.ImageDetail" of the ClassId field. +func (o *NiatelemetryImageDetail) GetDefaultClassId() interface{} { + return "niatelemetry.ImageDetail" +} + // GetObjectType returns the ObjectType field value func (o *NiatelemetryImageDetail) GetObjectType() string { if o == nil { @@ -110,6 +115,11 @@ func (o *NiatelemetryImageDetail) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "niatelemetry.ImageDetail" of the ObjectType field. +func (o *NiatelemetryImageDetail) GetDefaultObjectType() interface{} { + return "niatelemetry.ImageDetail" +} + // GetImageName returns the ImageName field value if set, zero value otherwise. func (o *NiatelemetryImageDetail) GetImageName() string { if o == nil || IsNil(o.ImageName) { @@ -224,7 +234,13 @@ func (o NiatelemetryImageDetail) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.ImageName) { toSerialize["ImageName"] = o.ImageName @@ -252,6 +268,13 @@ func (o *NiatelemetryImageDetail) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -261,11 +284,23 @@ func (o *NiatelemetryImageDetail) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type NiatelemetryImageDetailWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_niatelemetry_insight_group_details.go b/model_niatelemetry_insight_group_details.go index ca7ba04a96..e8f48aab9e 100644 --- a/model_niatelemetry_insight_group_details.go +++ b/model_niatelemetry_insight_group_details.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -106,6 +106,11 @@ func (o *NiatelemetryInsightGroupDetails) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "niatelemetry.InsightGroupDetails" of the ClassId field. +func (o *NiatelemetryInsightGroupDetails) GetDefaultClassId() interface{} { + return "niatelemetry.InsightGroupDetails" +} + // GetObjectType returns the ObjectType field value func (o *NiatelemetryInsightGroupDetails) GetObjectType() string { if o == nil { @@ -130,6 +135,11 @@ func (o *NiatelemetryInsightGroupDetails) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "niatelemetry.InsightGroupDetails" of the ObjectType field. +func (o *NiatelemetryInsightGroupDetails) GetDefaultObjectType() interface{} { + return "niatelemetry.InsightGroupDetails" +} + // GetAlertRulesCount returns the AlertRulesCount field value if set, zero value otherwise. func (o *NiatelemetryInsightGroupDetails) GetAlertRulesCount() int64 { if o == nil || IsNil(o.AlertRulesCount) { @@ -407,7 +417,7 @@ func (o *NiatelemetryInsightGroupDetails) GetInsightSitesOk() ([]NiatelemetrySit // HasInsightSites returns a boolean if a field has been set. func (o *NiatelemetryInsightGroupDetails) HasInsightSites() bool { - if o != nil && IsNil(o.InsightSites) { + if o != nil && !IsNil(o.InsightSites) { return true } @@ -608,7 +618,13 @@ func (o NiatelemetryInsightGroupDetails) ToMap() (map[string]interface{}, error) if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.AlertRulesCount) { toSerialize["AlertRulesCount"] = o.AlertRulesCount @@ -669,6 +685,13 @@ func (o *NiatelemetryInsightGroupDetails) UnmarshalJSON(data []byte) (err error) "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -678,11 +701,23 @@ func (o *NiatelemetryInsightGroupDetails) UnmarshalJSON(data []byte) (err error) } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type NiatelemetryInsightGroupDetailsWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_niatelemetry_insight_group_details_list.go b/model_niatelemetry_insight_group_details_list.go index fe13d14fcd..74904ad9b5 100644 --- a/model_niatelemetry_insight_group_details_list.go +++ b/model_niatelemetry_insight_group_details_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *NiatelemetryInsightGroupDetailsList) GetResultsOk() ([]NiatelemetryInsi // HasResults returns a boolean if a field has been set. func (o *NiatelemetryInsightGroupDetailsList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *NiatelemetryInsightGroupDetailsList) UnmarshalJSON(data []byte) (err er "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *NiatelemetryInsightGroupDetailsList) UnmarshalJSON(data []byte) (err er } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type NiatelemetryInsightGroupDetailsListWithoutEmbeddedStruct struct { // The total number of 'niatelemetry.InsightGroupDetails' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_niatelemetry_insight_group_details_response.go b/model_niatelemetry_insight_group_details_response.go index ae752395c4..2169193d3b 100644 --- a/model_niatelemetry_insight_group_details_response.go +++ b/model_niatelemetry_insight_group_details_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_niatelemetry_interface.go b/model_niatelemetry_interface.go index b1874495d0..068882f9cb 100644 --- a/model_niatelemetry_interface.go +++ b/model_niatelemetry_interface.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -84,6 +84,11 @@ func (o *NiatelemetryInterface) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "niatelemetry.Interface" of the ClassId field. +func (o *NiatelemetryInterface) GetDefaultClassId() interface{} { + return "niatelemetry.Interface" +} + // GetObjectType returns the ObjectType field value func (o *NiatelemetryInterface) GetObjectType() string { if o == nil { @@ -108,6 +113,11 @@ func (o *NiatelemetryInterface) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "niatelemetry.Interface" of the ObjectType field. +func (o *NiatelemetryInterface) GetDefaultObjectType() interface{} { + return "niatelemetry.Interface" +} + // GetInterfaceDownCount returns the InterfaceDownCount field value if set, zero value otherwise. func (o *NiatelemetryInterface) GetInterfaceDownCount() int64 { if o == nil || IsNil(o.InterfaceDownCount) { @@ -190,7 +200,13 @@ func (o NiatelemetryInterface) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.InterfaceDownCount) { toSerialize["InterfaceDownCount"] = o.InterfaceDownCount @@ -215,6 +231,13 @@ func (o *NiatelemetryInterface) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -224,11 +247,23 @@ func (o *NiatelemetryInterface) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type NiatelemetryInterfaceWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_niatelemetry_interface_element.go b/model_niatelemetry_interface_element.go index e5beefc278..0192be2671 100644 --- a/model_niatelemetry_interface_element.go +++ b/model_niatelemetry_interface_element.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -86,6 +86,11 @@ func (o *NiatelemetryInterfaceElement) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "niatelemetry.InterfaceElement" of the ClassId field. +func (o *NiatelemetryInterfaceElement) GetDefaultClassId() interface{} { + return "niatelemetry.InterfaceElement" +} + // GetObjectType returns the ObjectType field value func (o *NiatelemetryInterfaceElement) GetObjectType() string { if o == nil { @@ -110,6 +115,11 @@ func (o *NiatelemetryInterfaceElement) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "niatelemetry.InterfaceElement" of the ObjectType field. +func (o *NiatelemetryInterfaceElement) GetDefaultObjectType() interface{} { + return "niatelemetry.InterfaceElement" +} + // GetName returns the Name field value if set, zero value otherwise. func (o *NiatelemetryInterfaceElement) GetName() string { if o == nil || IsNil(o.Name) { @@ -224,7 +234,13 @@ func (o NiatelemetryInterfaceElement) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Name) { toSerialize["Name"] = o.Name @@ -252,6 +268,13 @@ func (o *NiatelemetryInterfaceElement) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -261,11 +284,23 @@ func (o *NiatelemetryInterfaceElement) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type NiatelemetryInterfaceElementWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_niatelemetry_job_detail.go b/model_niatelemetry_job_detail.go index dba9ac8a02..15e1a49b80 100644 --- a/model_niatelemetry_job_detail.go +++ b/model_niatelemetry_job_detail.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -84,6 +84,11 @@ func (o *NiatelemetryJobDetail) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "niatelemetry.JobDetail" of the ClassId field. +func (o *NiatelemetryJobDetail) GetDefaultClassId() interface{} { + return "niatelemetry.JobDetail" +} + // GetObjectType returns the ObjectType field value func (o *NiatelemetryJobDetail) GetObjectType() string { if o == nil { @@ -108,6 +113,11 @@ func (o *NiatelemetryJobDetail) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "niatelemetry.JobDetail" of the ObjectType field. +func (o *NiatelemetryJobDetail) GetDefaultObjectType() interface{} { + return "niatelemetry.JobDetail" +} + // GetJobId returns the JobId field value if set, zero value otherwise. func (o *NiatelemetryJobDetail) GetJobId() int64 { if o == nil || IsNil(o.JobId) { @@ -190,7 +200,13 @@ func (o NiatelemetryJobDetail) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.JobId) { toSerialize["JobId"] = o.JobId @@ -215,6 +231,13 @@ func (o *NiatelemetryJobDetail) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -224,11 +247,23 @@ func (o *NiatelemetryJobDetail) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type NiatelemetryJobDetailWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_niatelemetry_lc.go b/model_niatelemetry_lc.go index ee105b9d46..74dd4b73f8 100644 --- a/model_niatelemetry_lc.go +++ b/model_niatelemetry_lc.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -107,6 +107,11 @@ func (o *NiatelemetryLc) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "niatelemetry.Lc" of the ClassId field. +func (o *NiatelemetryLc) GetDefaultClassId() interface{} { + return "niatelemetry.Lc" +} + // GetObjectType returns the ObjectType field value func (o *NiatelemetryLc) GetObjectType() string { if o == nil { @@ -131,6 +136,11 @@ func (o *NiatelemetryLc) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "niatelemetry.Lc" of the ObjectType field. +func (o *NiatelemetryLc) GetDefaultObjectType() interface{} { + return "niatelemetry.Lc" +} + // GetDescription returns the Description field value if set, zero value otherwise. func (o *NiatelemetryLc) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -608,7 +618,13 @@ func (o NiatelemetryLc) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Description) { toSerialize["Description"] = o.Description @@ -669,6 +685,13 @@ func (o *NiatelemetryLc) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -678,11 +701,23 @@ func (o *NiatelemetryLc) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type NiatelemetryLcWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_niatelemetry_lc_list.go b/model_niatelemetry_lc_list.go index a8300aef31..9211313a47 100644 --- a/model_niatelemetry_lc_list.go +++ b/model_niatelemetry_lc_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *NiatelemetryLcList) GetResultsOk() ([]NiatelemetryLc, bool) { // HasResults returns a boolean if a field has been set. func (o *NiatelemetryLcList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *NiatelemetryLcList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *NiatelemetryLcList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type NiatelemetryLcListWithoutEmbeddedStruct struct { // The total number of 'niatelemetry.Lc' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_niatelemetry_lc_response.go b/model_niatelemetry_lc_response.go index 283cdaaabc..8aa426d67c 100644 --- a/model_niatelemetry_lc_response.go +++ b/model_niatelemetry_lc_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_niatelemetry_leaf_pol_grp_details.go b/model_niatelemetry_leaf_pol_grp_details.go index f6eca63565..5da0c0e656 100644 --- a/model_niatelemetry_leaf_pol_grp_details.go +++ b/model_niatelemetry_leaf_pol_grp_details.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -99,6 +99,11 @@ func (o *NiatelemetryLeafPolGrpDetails) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "niatelemetry.LeafPolGrpDetails" of the ClassId field. +func (o *NiatelemetryLeafPolGrpDetails) GetDefaultClassId() interface{} { + return "niatelemetry.LeafPolGrpDetails" +} + // GetObjectType returns the ObjectType field value func (o *NiatelemetryLeafPolGrpDetails) GetObjectType() string { if o == nil { @@ -123,6 +128,11 @@ func (o *NiatelemetryLeafPolGrpDetails) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "niatelemetry.LeafPolGrpDetails" of the ObjectType field. +func (o *NiatelemetryLeafPolGrpDetails) GetDefaultObjectType() interface{} { + return "niatelemetry.LeafPolGrpDetails" +} + // GetDn returns the Dn field value if set, zero value otherwise. func (o *NiatelemetryLeafPolGrpDetails) GetDn() string { if o == nil || IsNil(o.Dn) { @@ -472,7 +482,13 @@ func (o NiatelemetryLeafPolGrpDetails) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Dn) { toSerialize["Dn"] = o.Dn @@ -521,6 +537,13 @@ func (o *NiatelemetryLeafPolGrpDetails) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -530,11 +553,23 @@ func (o *NiatelemetryLeafPolGrpDetails) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type NiatelemetryLeafPolGrpDetailsWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_niatelemetry_leaf_pol_grp_details_list.go b/model_niatelemetry_leaf_pol_grp_details_list.go index fb66c01a77..a21401e424 100644 --- a/model_niatelemetry_leaf_pol_grp_details_list.go +++ b/model_niatelemetry_leaf_pol_grp_details_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *NiatelemetryLeafPolGrpDetailsList) GetResultsOk() ([]NiatelemetryLeafPo // HasResults returns a boolean if a field has been set. func (o *NiatelemetryLeafPolGrpDetailsList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *NiatelemetryLeafPolGrpDetailsList) UnmarshalJSON(data []byte) (err erro "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *NiatelemetryLeafPolGrpDetailsList) UnmarshalJSON(data []byte) (err erro } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type NiatelemetryLeafPolGrpDetailsListWithoutEmbeddedStruct struct { // The total number of 'niatelemetry.LeafPolGrpDetails' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_niatelemetry_leaf_pol_grp_details_response.go b/model_niatelemetry_leaf_pol_grp_details_response.go index 061944aa15..10cac3ea9d 100644 --- a/model_niatelemetry_leaf_pol_grp_details_response.go +++ b/model_niatelemetry_leaf_pol_grp_details_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_niatelemetry_logical_link.go b/model_niatelemetry_logical_link.go index 5dee48fcad..4eb85a8a36 100644 --- a/model_niatelemetry_logical_link.go +++ b/model_niatelemetry_logical_link.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -94,6 +94,11 @@ func (o *NiatelemetryLogicalLink) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "niatelemetry.LogicalLink" of the ClassId field. +func (o *NiatelemetryLogicalLink) GetDefaultClassId() interface{} { + return "niatelemetry.LogicalLink" +} + // GetObjectType returns the ObjectType field value func (o *NiatelemetryLogicalLink) GetObjectType() string { if o == nil { @@ -118,6 +123,11 @@ func (o *NiatelemetryLogicalLink) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "niatelemetry.LogicalLink" of the ObjectType field. +func (o *NiatelemetryLogicalLink) GetDefaultObjectType() interface{} { + return "niatelemetry.LogicalLink" +} + // GetDbId returns the DbId field value if set, zero value otherwise. func (o *NiatelemetryLogicalLink) GetDbId() int64 { if o == nil || IsNil(o.DbId) { @@ -360,7 +370,13 @@ func (o NiatelemetryLogicalLink) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.DbId) { toSerialize["DbId"] = o.DbId @@ -400,6 +416,13 @@ func (o *NiatelemetryLogicalLink) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -409,11 +432,23 @@ func (o *NiatelemetryLogicalLink) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type NiatelemetryLogicalLinkWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_niatelemetry_mds_neighbor_info.go b/model_niatelemetry_mds_neighbor_info.go index 1cc4151260..b9aec8c055 100644 --- a/model_niatelemetry_mds_neighbor_info.go +++ b/model_niatelemetry_mds_neighbor_info.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -82,6 +82,11 @@ func (o *NiatelemetryMdsNeighborInfo) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "niatelemetry.MdsNeighborInfo" of the ClassId field. +func (o *NiatelemetryMdsNeighborInfo) GetDefaultClassId() interface{} { + return "niatelemetry.MdsNeighborInfo" +} + // GetObjectType returns the ObjectType field value func (o *NiatelemetryMdsNeighborInfo) GetObjectType() string { if o == nil { @@ -106,6 +111,11 @@ func (o *NiatelemetryMdsNeighborInfo) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "niatelemetry.MdsNeighborInfo" of the ObjectType field. +func (o *NiatelemetryMdsNeighborInfo) GetDefaultObjectType() interface{} { + return "niatelemetry.MdsNeighborInfo" +} + // GetDeviceWwn returns the DeviceWwn field value if set, zero value otherwise. func (o *NiatelemetryMdsNeighborInfo) GetDeviceWwn() string { if o == nil || IsNil(o.DeviceWwn) { @@ -156,7 +166,13 @@ func (o NiatelemetryMdsNeighborInfo) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.DeviceWwn) { toSerialize["DeviceWwn"] = o.DeviceWwn @@ -178,6 +194,13 @@ func (o *NiatelemetryMdsNeighborInfo) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -187,11 +210,23 @@ func (o *NiatelemetryMdsNeighborInfo) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type NiatelemetryMdsNeighborInfoWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_niatelemetry_mds_neighbors.go b/model_niatelemetry_mds_neighbors.go index 69a607bb2b..ba1a991246 100644 --- a/model_niatelemetry_mds_neighbors.go +++ b/model_niatelemetry_mds_neighbors.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -94,6 +94,11 @@ func (o *NiatelemetryMdsNeighbors) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "niatelemetry.MdsNeighbors" of the ClassId field. +func (o *NiatelemetryMdsNeighbors) GetDefaultClassId() interface{} { + return "niatelemetry.MdsNeighbors" +} + // GetObjectType returns the ObjectType field value func (o *NiatelemetryMdsNeighbors) GetObjectType() string { if o == nil { @@ -118,6 +123,11 @@ func (o *NiatelemetryMdsNeighbors) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "niatelemetry.MdsNeighbors" of the ObjectType field. +func (o *NiatelemetryMdsNeighbors) GetDefaultObjectType() interface{} { + return "niatelemetry.MdsNeighbors" +} + // GetDeviceIp returns the DeviceIp field value if set, zero value otherwise. func (o *NiatelemetryMdsNeighbors) GetDeviceIp() string { if o == nil || IsNil(o.DeviceIp) { @@ -235,7 +245,7 @@ func (o *NiatelemetryMdsNeighbors) GetNeighborInfoOk() ([]NiatelemetryMdsNeighbo // HasNeighborInfo returns a boolean if a field has been set. func (o *NiatelemetryMdsNeighbors) HasNeighborInfo() bool { - if o != nil && IsNil(o.NeighborInfo) { + if o != nil && !IsNil(o.NeighborInfo) { return true } @@ -404,7 +414,13 @@ func (o NiatelemetryMdsNeighbors) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.DeviceIp) { toSerialize["DeviceIp"] = o.DeviceIp @@ -447,6 +463,13 @@ func (o *NiatelemetryMdsNeighbors) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -456,11 +479,23 @@ func (o *NiatelemetryMdsNeighbors) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type NiatelemetryMdsNeighborsWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_niatelemetry_mds_neighbors_list.go b/model_niatelemetry_mds_neighbors_list.go index 61aedd2817..987fa7b096 100644 --- a/model_niatelemetry_mds_neighbors_list.go +++ b/model_niatelemetry_mds_neighbors_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *NiatelemetryMdsNeighborsList) GetResultsOk() ([]NiatelemetryMdsNeighbor // HasResults returns a boolean if a field has been set. func (o *NiatelemetryMdsNeighborsList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *NiatelemetryMdsNeighborsList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *NiatelemetryMdsNeighborsList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type NiatelemetryMdsNeighborsListWithoutEmbeddedStruct struct { // The total number of 'niatelemetry.MdsNeighbors' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_niatelemetry_mds_neighbors_response.go b/model_niatelemetry_mds_neighbors_response.go index b2fa392f04..7ea0dd644c 100644 --- a/model_niatelemetry_mds_neighbors_response.go +++ b/model_niatelemetry_mds_neighbors_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_niatelemetry_mso_contract_details.go b/model_niatelemetry_mso_contract_details.go index 10aa072974..6d291e8159 100644 --- a/model_niatelemetry_mso_contract_details.go +++ b/model_niatelemetry_mso_contract_details.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -95,6 +95,11 @@ func (o *NiatelemetryMsoContractDetails) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "niatelemetry.MsoContractDetails" of the ClassId field. +func (o *NiatelemetryMsoContractDetails) GetDefaultClassId() interface{} { + return "niatelemetry.MsoContractDetails" +} + // GetObjectType returns the ObjectType field value func (o *NiatelemetryMsoContractDetails) GetObjectType() string { if o == nil { @@ -119,6 +124,11 @@ func (o *NiatelemetryMsoContractDetails) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "niatelemetry.MsoContractDetails" of the ObjectType field. +func (o *NiatelemetryMsoContractDetails) GetDefaultObjectType() interface{} { + return "niatelemetry.MsoContractDetails" +} + // GetContractName returns the ContractName field value if set, zero value otherwise. func (o *NiatelemetryMsoContractDetails) GetContractName() string { if o == nil || IsNil(o.ContractName) { @@ -404,7 +414,13 @@ func (o NiatelemetryMsoContractDetails) ToMap() (map[string]interface{}, error) if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.ContractName) { toSerialize["ContractName"] = o.ContractName @@ -447,6 +463,13 @@ func (o *NiatelemetryMsoContractDetails) UnmarshalJSON(data []byte) (err error) "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -456,11 +479,23 @@ func (o *NiatelemetryMsoContractDetails) UnmarshalJSON(data []byte) (err error) } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type NiatelemetryMsoContractDetailsWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_niatelemetry_mso_contract_details_list.go b/model_niatelemetry_mso_contract_details_list.go index 1d17540190..7039852fcc 100644 --- a/model_niatelemetry_mso_contract_details_list.go +++ b/model_niatelemetry_mso_contract_details_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *NiatelemetryMsoContractDetailsList) GetResultsOk() ([]NiatelemetryMsoCo // HasResults returns a boolean if a field has been set. func (o *NiatelemetryMsoContractDetailsList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *NiatelemetryMsoContractDetailsList) UnmarshalJSON(data []byte) (err err "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *NiatelemetryMsoContractDetailsList) UnmarshalJSON(data []byte) (err err } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type NiatelemetryMsoContractDetailsListWithoutEmbeddedStruct struct { // The total number of 'niatelemetry.MsoContractDetails' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_niatelemetry_mso_contract_details_response.go b/model_niatelemetry_mso_contract_details_response.go index c4e19cb56e..5facc589a1 100644 --- a/model_niatelemetry_mso_contract_details_response.go +++ b/model_niatelemetry_mso_contract_details_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_niatelemetry_mso_epg_details.go b/model_niatelemetry_mso_epg_details.go index b400911f9f..4fba6301d0 100644 --- a/model_niatelemetry_mso_epg_details.go +++ b/model_niatelemetry_mso_epg_details.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -95,6 +95,11 @@ func (o *NiatelemetryMsoEpgDetails) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "niatelemetry.MsoEpgDetails" of the ClassId field. +func (o *NiatelemetryMsoEpgDetails) GetDefaultClassId() interface{} { + return "niatelemetry.MsoEpgDetails" +} + // GetObjectType returns the ObjectType field value func (o *NiatelemetryMsoEpgDetails) GetObjectType() string { if o == nil { @@ -119,6 +124,11 @@ func (o *NiatelemetryMsoEpgDetails) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "niatelemetry.MsoEpgDetails" of the ObjectType field. +func (o *NiatelemetryMsoEpgDetails) GetDefaultObjectType() interface{} { + return "niatelemetry.MsoEpgDetails" +} + // GetDeployedSites returns the DeployedSites field value if set, zero value otherwise. func (o *NiatelemetryMsoEpgDetails) GetDeployedSites() string { if o == nil || IsNil(o.DeployedSites) { @@ -404,7 +414,13 @@ func (o NiatelemetryMsoEpgDetails) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.DeployedSites) { toSerialize["DeployedSites"] = o.DeployedSites @@ -447,6 +463,13 @@ func (o *NiatelemetryMsoEpgDetails) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -456,11 +479,23 @@ func (o *NiatelemetryMsoEpgDetails) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type NiatelemetryMsoEpgDetailsWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_niatelemetry_mso_epg_details_list.go b/model_niatelemetry_mso_epg_details_list.go index 5f220bfedc..af37737bc5 100644 --- a/model_niatelemetry_mso_epg_details_list.go +++ b/model_niatelemetry_mso_epg_details_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *NiatelemetryMsoEpgDetailsList) GetResultsOk() ([]NiatelemetryMsoEpgDeta // HasResults returns a boolean if a field has been set. func (o *NiatelemetryMsoEpgDetailsList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *NiatelemetryMsoEpgDetailsList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *NiatelemetryMsoEpgDetailsList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type NiatelemetryMsoEpgDetailsListWithoutEmbeddedStruct struct { // The total number of 'niatelemetry.MsoEpgDetails' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_niatelemetry_mso_epg_details_response.go b/model_niatelemetry_mso_epg_details_response.go index bbf124d2fa..122efd048a 100644 --- a/model_niatelemetry_mso_epg_details_response.go +++ b/model_niatelemetry_mso_epg_details_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_niatelemetry_mso_schema_details.go b/model_niatelemetry_mso_schema_details.go index e8ed31070b..131b258233 100644 --- a/model_niatelemetry_mso_schema_details.go +++ b/model_niatelemetry_mso_schema_details.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -93,6 +93,11 @@ func (o *NiatelemetryMsoSchemaDetails) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "niatelemetry.MsoSchemaDetails" of the ClassId field. +func (o *NiatelemetryMsoSchemaDetails) GetDefaultClassId() interface{} { + return "niatelemetry.MsoSchemaDetails" +} + // GetObjectType returns the ObjectType field value func (o *NiatelemetryMsoSchemaDetails) GetObjectType() string { if o == nil { @@ -117,6 +122,11 @@ func (o *NiatelemetryMsoSchemaDetails) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "niatelemetry.MsoSchemaDetails" of the ObjectType field. +func (o *NiatelemetryMsoSchemaDetails) GetDefaultObjectType() interface{} { + return "niatelemetry.MsoSchemaDetails" +} + // GetDeployedSites returns the DeployedSites field value if set, zero value otherwise. func (o *NiatelemetryMsoSchemaDetails) GetDeployedSites() string { if o == nil || IsNil(o.DeployedSites) { @@ -370,7 +380,13 @@ func (o NiatelemetryMsoSchemaDetails) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.DeployedSites) { toSerialize["DeployedSites"] = o.DeployedSites @@ -410,6 +426,13 @@ func (o *NiatelemetryMsoSchemaDetails) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -419,11 +442,23 @@ func (o *NiatelemetryMsoSchemaDetails) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type NiatelemetryMsoSchemaDetailsWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_niatelemetry_mso_schema_details_list.go b/model_niatelemetry_mso_schema_details_list.go index 2507358020..895cbe1c53 100644 --- a/model_niatelemetry_mso_schema_details_list.go +++ b/model_niatelemetry_mso_schema_details_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *NiatelemetryMsoSchemaDetailsList) GetResultsOk() ([]NiatelemetryMsoSche // HasResults returns a boolean if a field has been set. func (o *NiatelemetryMsoSchemaDetailsList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *NiatelemetryMsoSchemaDetailsList) UnmarshalJSON(data []byte) (err error "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *NiatelemetryMsoSchemaDetailsList) UnmarshalJSON(data []byte) (err error } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type NiatelemetryMsoSchemaDetailsListWithoutEmbeddedStruct struct { // The total number of 'niatelemetry.MsoSchemaDetails' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_niatelemetry_mso_schema_details_response.go b/model_niatelemetry_mso_schema_details_response.go index b8cf6f126f..8b423c9e67 100644 --- a/model_niatelemetry_mso_schema_details_response.go +++ b/model_niatelemetry_mso_schema_details_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_niatelemetry_mso_site_details.go b/model_niatelemetry_mso_site_details.go index 7b3b3f8c49..828b7fde3c 100644 --- a/model_niatelemetry_mso_site_details.go +++ b/model_niatelemetry_mso_site_details.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -97,6 +97,11 @@ func (o *NiatelemetryMsoSiteDetails) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "niatelemetry.MsoSiteDetails" of the ClassId field. +func (o *NiatelemetryMsoSiteDetails) GetDefaultClassId() interface{} { + return "niatelemetry.MsoSiteDetails" +} + // GetObjectType returns the ObjectType field value func (o *NiatelemetryMsoSiteDetails) GetObjectType() string { if o == nil { @@ -121,6 +126,11 @@ func (o *NiatelemetryMsoSiteDetails) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "niatelemetry.MsoSiteDetails" of the ObjectType field. +func (o *NiatelemetryMsoSiteDetails) GetDefaultObjectType() interface{} { + return "niatelemetry.MsoSiteDetails" +} + // GetIsCloudSecEnabled returns the IsCloudSecEnabled field value if set, zero value otherwise. func (o *NiatelemetryMsoSiteDetails) GetIsCloudSecEnabled() string { if o == nil || IsNil(o.IsCloudSecEnabled) { @@ -438,7 +448,13 @@ func (o NiatelemetryMsoSiteDetails) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.IsCloudSecEnabled) { toSerialize["IsCloudSecEnabled"] = o.IsCloudSecEnabled @@ -484,6 +500,13 @@ func (o *NiatelemetryMsoSiteDetails) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -493,11 +516,23 @@ func (o *NiatelemetryMsoSiteDetails) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type NiatelemetryMsoSiteDetailsWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_niatelemetry_mso_site_details_list.go b/model_niatelemetry_mso_site_details_list.go index 08ac21dbbe..f7841a6eed 100644 --- a/model_niatelemetry_mso_site_details_list.go +++ b/model_niatelemetry_mso_site_details_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *NiatelemetryMsoSiteDetailsList) GetResultsOk() ([]NiatelemetryMsoSiteDe // HasResults returns a boolean if a field has been set. func (o *NiatelemetryMsoSiteDetailsList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *NiatelemetryMsoSiteDetailsList) UnmarshalJSON(data []byte) (err error) "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *NiatelemetryMsoSiteDetailsList) UnmarshalJSON(data []byte) (err error) } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type NiatelemetryMsoSiteDetailsListWithoutEmbeddedStruct struct { // The total number of 'niatelemetry.MsoSiteDetails' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_niatelemetry_mso_site_details_response.go b/model_niatelemetry_mso_site_details_response.go index a18da748a9..98e5b27563 100644 --- a/model_niatelemetry_mso_site_details_response.go +++ b/model_niatelemetry_mso_site_details_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_niatelemetry_mso_tenant_details.go b/model_niatelemetry_mso_tenant_details.go index 5d0cc0add4..0bbd048756 100644 --- a/model_niatelemetry_mso_tenant_details.go +++ b/model_niatelemetry_mso_tenant_details.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -91,6 +91,11 @@ func (o *NiatelemetryMsoTenantDetails) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "niatelemetry.MsoTenantDetails" of the ClassId field. +func (o *NiatelemetryMsoTenantDetails) GetDefaultClassId() interface{} { + return "niatelemetry.MsoTenantDetails" +} + // GetObjectType returns the ObjectType field value func (o *NiatelemetryMsoTenantDetails) GetObjectType() string { if o == nil { @@ -115,6 +120,11 @@ func (o *NiatelemetryMsoTenantDetails) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "niatelemetry.MsoTenantDetails" of the ObjectType field. +func (o *NiatelemetryMsoTenantDetails) GetDefaultObjectType() interface{} { + return "niatelemetry.MsoTenantDetails" +} + // GetDeployedSites returns the DeployedSites field value if set, zero value otherwise. func (o *NiatelemetryMsoTenantDetails) GetDeployedSites() string { if o == nil || IsNil(o.DeployedSites) { @@ -336,7 +346,13 @@ func (o NiatelemetryMsoTenantDetails) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.DeployedSites) { toSerialize["DeployedSites"] = o.DeployedSites @@ -373,6 +389,13 @@ func (o *NiatelemetryMsoTenantDetails) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -382,11 +405,23 @@ func (o *NiatelemetryMsoTenantDetails) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type NiatelemetryMsoTenantDetailsWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_niatelemetry_mso_tenant_details_list.go b/model_niatelemetry_mso_tenant_details_list.go index 76995c3b0e..85f504aee2 100644 --- a/model_niatelemetry_mso_tenant_details_list.go +++ b/model_niatelemetry_mso_tenant_details_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *NiatelemetryMsoTenantDetailsList) GetResultsOk() ([]NiatelemetryMsoTena // HasResults returns a boolean if a field has been set. func (o *NiatelemetryMsoTenantDetailsList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *NiatelemetryMsoTenantDetailsList) UnmarshalJSON(data []byte) (err error "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *NiatelemetryMsoTenantDetailsList) UnmarshalJSON(data []byte) (err error } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type NiatelemetryMsoTenantDetailsListWithoutEmbeddedStruct struct { // The total number of 'niatelemetry.MsoTenantDetails' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_niatelemetry_mso_tenant_details_response.go b/model_niatelemetry_mso_tenant_details_response.go index 36c9c43f18..3da8ba7131 100644 --- a/model_niatelemetry_mso_tenant_details_response.go +++ b/model_niatelemetry_mso_tenant_details_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_niatelemetry_network_info.go b/model_niatelemetry_network_info.go index 29fe7448ce..251858852e 100644 --- a/model_niatelemetry_network_info.go +++ b/model_niatelemetry_network_info.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -88,6 +88,11 @@ func (o *NiatelemetryNetworkInfo) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "niatelemetry.NetworkInfo" of the ClassId field. +func (o *NiatelemetryNetworkInfo) GetDefaultClassId() interface{} { + return "niatelemetry.NetworkInfo" +} + // GetObjectType returns the ObjectType field value func (o *NiatelemetryNetworkInfo) GetObjectType() string { if o == nil { @@ -112,6 +117,11 @@ func (o *NiatelemetryNetworkInfo) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "niatelemetry.NetworkInfo" of the ObjectType field. +func (o *NiatelemetryNetworkInfo) GetDefaultObjectType() interface{} { + return "niatelemetry.NetworkInfo" +} + // GetActiveNode returns the ActiveNode field value if set, zero value otherwise (both if not set or set to explicit null). func (o *NiatelemetryNetworkInfo) GetActiveNode() NiatelemetryNode { if o == nil || IsNil(o.ActiveNode.Get()) { @@ -312,7 +322,13 @@ func (o NiatelemetryNetworkInfo) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.ActiveNode.IsSet() { toSerialize["ActiveNode"] = o.ActiveNode.Get() @@ -346,6 +362,13 @@ func (o *NiatelemetryNetworkInfo) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -355,11 +378,23 @@ func (o *NiatelemetryNetworkInfo) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type NiatelemetryNetworkInfoWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_niatelemetry_nexus_cloud_account.go b/model_niatelemetry_nexus_cloud_account.go index ecc2a8b182..8e918838e0 100644 --- a/model_niatelemetry_nexus_cloud_account.go +++ b/model_niatelemetry_nexus_cloud_account.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -85,6 +85,11 @@ func (o *NiatelemetryNexusCloudAccount) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "niatelemetry.NexusCloudAccount" of the ClassId field. +func (o *NiatelemetryNexusCloudAccount) GetDefaultClassId() interface{} { + return "niatelemetry.NexusCloudAccount" +} + // GetObjectType returns the ObjectType field value func (o *NiatelemetryNexusCloudAccount) GetObjectType() string { if o == nil { @@ -109,6 +114,11 @@ func (o *NiatelemetryNexusCloudAccount) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "niatelemetry.NexusCloudAccount" of the ObjectType field. +func (o *NiatelemetryNexusCloudAccount) GetDefaultObjectType() interface{} { + return "niatelemetry.NexusCloudAccount" +} + // GetAciCount returns the AciCount field value if set, zero value otherwise. func (o *NiatelemetryNexusCloudAccount) GetAciCount() int64 { if o == nil || IsNil(o.AciCount) { @@ -234,7 +244,13 @@ func (o NiatelemetryNexusCloudAccount) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.AciCount) { toSerialize["AciCount"] = o.AciCount @@ -262,6 +278,13 @@ func (o *NiatelemetryNexusCloudAccount) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -271,11 +294,23 @@ func (o *NiatelemetryNexusCloudAccount) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type NiatelemetryNexusCloudAccountWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_niatelemetry_nexus_cloud_account_list.go b/model_niatelemetry_nexus_cloud_account_list.go index 023c453bd0..e2385b4553 100644 --- a/model_niatelemetry_nexus_cloud_account_list.go +++ b/model_niatelemetry_nexus_cloud_account_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *NiatelemetryNexusCloudAccountList) GetResultsOk() ([]NiatelemetryNexusC // HasResults returns a boolean if a field has been set. func (o *NiatelemetryNexusCloudAccountList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *NiatelemetryNexusCloudAccountList) UnmarshalJSON(data []byte) (err erro "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *NiatelemetryNexusCloudAccountList) UnmarshalJSON(data []byte) (err erro } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type NiatelemetryNexusCloudAccountListWithoutEmbeddedStruct struct { // The total number of 'niatelemetry.NexusCloudAccount' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_niatelemetry_nexus_cloud_account_relationship.go b/model_niatelemetry_nexus_cloud_account_relationship.go index 24fc9de097..1c3243f576 100644 --- a/model_niatelemetry_nexus_cloud_account_relationship.go +++ b/model_niatelemetry_nexus_cloud_account_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_niatelemetry_nexus_cloud_account_response.go b/model_niatelemetry_nexus_cloud_account_response.go index 47c14080ff..ebc91c93cb 100644 --- a/model_niatelemetry_nexus_cloud_account_response.go +++ b/model_niatelemetry_nexus_cloud_account_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_niatelemetry_nexus_cloud_site.go b/model_niatelemetry_nexus_cloud_site.go index 3d676bd0a2..3800b85d77 100644 --- a/model_niatelemetry_nexus_cloud_site.go +++ b/model_niatelemetry_nexus_cloud_site.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -97,6 +97,11 @@ func (o *NiatelemetryNexusCloudSite) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "niatelemetry.NexusCloudSite" of the ClassId field. +func (o *NiatelemetryNexusCloudSite) GetDefaultClassId() interface{} { + return "niatelemetry.NexusCloudSite" +} + // GetObjectType returns the ObjectType field value func (o *NiatelemetryNexusCloudSite) GetObjectType() string { if o == nil { @@ -121,6 +126,11 @@ func (o *NiatelemetryNexusCloudSite) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "niatelemetry.NexusCloudSite" of the ObjectType field. +func (o *NiatelemetryNexusCloudSite) GetDefaultObjectType() interface{} { + return "niatelemetry.NexusCloudSite" +} + // GetAdvisories returns the Advisories field value if set, zero value otherwise. func (o *NiatelemetryNexusCloudSite) GetAdvisories() bool { if o == nil || IsNil(o.Advisories) { @@ -438,7 +448,13 @@ func (o NiatelemetryNexusCloudSite) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Advisories) { toSerialize["Advisories"] = o.Advisories @@ -484,6 +500,13 @@ func (o *NiatelemetryNexusCloudSite) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -493,11 +516,23 @@ func (o *NiatelemetryNexusCloudSite) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type NiatelemetryNexusCloudSiteWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_niatelemetry_nexus_cloud_site_list.go b/model_niatelemetry_nexus_cloud_site_list.go index c89e264241..d6083648dd 100644 --- a/model_niatelemetry_nexus_cloud_site_list.go +++ b/model_niatelemetry_nexus_cloud_site_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *NiatelemetryNexusCloudSiteList) GetResultsOk() ([]NiatelemetryNexusClou // HasResults returns a boolean if a field has been set. func (o *NiatelemetryNexusCloudSiteList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *NiatelemetryNexusCloudSiteList) UnmarshalJSON(data []byte) (err error) "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *NiatelemetryNexusCloudSiteList) UnmarshalJSON(data []byte) (err error) } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type NiatelemetryNexusCloudSiteListWithoutEmbeddedStruct struct { // The total number of 'niatelemetry.NexusCloudSite' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_niatelemetry_nexus_cloud_site_response.go b/model_niatelemetry_nexus_cloud_site_response.go index 9a82d9b289..806dcbf62d 100644 --- a/model_niatelemetry_nexus_cloud_site_response.go +++ b/model_niatelemetry_nexus_cloud_site_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_niatelemetry_nexus_dashboard_controller_details.go b/model_niatelemetry_nexus_dashboard_controller_details.go index 0fff05f5c1..8d424f4210 100644 --- a/model_niatelemetry_nexus_dashboard_controller_details.go +++ b/model_niatelemetry_nexus_dashboard_controller_details.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -88,6 +88,11 @@ func (o *NiatelemetryNexusDashboardControllerDetails) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "niatelemetry.NexusDashboardControllerDetails" of the ClassId field. +func (o *NiatelemetryNexusDashboardControllerDetails) GetDefaultClassId() interface{} { + return "niatelemetry.NexusDashboardControllerDetails" +} + // GetObjectType returns the ObjectType field value func (o *NiatelemetryNexusDashboardControllerDetails) GetObjectType() string { if o == nil { @@ -112,6 +117,11 @@ func (o *NiatelemetryNexusDashboardControllerDetails) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "niatelemetry.NexusDashboardControllerDetails" of the ObjectType field. +func (o *NiatelemetryNexusDashboardControllerDetails) GetDefaultObjectType() interface{} { + return "niatelemetry.NexusDashboardControllerDetails" +} + // GetSiteHealth returns the SiteHealth field value if set, zero value otherwise. func (o *NiatelemetryNexusDashboardControllerDetails) GetSiteHealth() int64 { if o == nil || IsNil(o.SiteHealth) { @@ -312,7 +322,13 @@ func (o NiatelemetryNexusDashboardControllerDetails) ToMap() (map[string]interfa if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.SiteHealth) { toSerialize["SiteHealth"] = o.SiteHealth @@ -346,6 +362,13 @@ func (o *NiatelemetryNexusDashboardControllerDetails) UnmarshalJSON(data []byte) "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -355,11 +378,23 @@ func (o *NiatelemetryNexusDashboardControllerDetails) UnmarshalJSON(data []byte) } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type NiatelemetryNexusDashboardControllerDetailsWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_niatelemetry_nexus_dashboard_controller_details_list.go b/model_niatelemetry_nexus_dashboard_controller_details_list.go index 35a1e19b46..4698e5d26d 100644 --- a/model_niatelemetry_nexus_dashboard_controller_details_list.go +++ b/model_niatelemetry_nexus_dashboard_controller_details_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *NiatelemetryNexusDashboardControllerDetailsList) GetResultsOk() ([]Niat // HasResults returns a boolean if a field has been set. func (o *NiatelemetryNexusDashboardControllerDetailsList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *NiatelemetryNexusDashboardControllerDetailsList) UnmarshalJSON(data []b "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *NiatelemetryNexusDashboardControllerDetailsList) UnmarshalJSON(data []b } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type NiatelemetryNexusDashboardControllerDetailsListWithoutEmbeddedStruct struct { // The total number of 'niatelemetry.NexusDashboardControllerDetails' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_niatelemetry_nexus_dashboard_controller_details_response.go b/model_niatelemetry_nexus_dashboard_controller_details_response.go index 86bf3159d8..9acfd15ed2 100644 --- a/model_niatelemetry_nexus_dashboard_controller_details_response.go +++ b/model_niatelemetry_nexus_dashboard_controller_details_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_niatelemetry_nexus_dashboard_details.go b/model_niatelemetry_nexus_dashboard_details.go index 4a8445b212..69bf30dc7c 100644 --- a/model_niatelemetry_nexus_dashboard_details.go +++ b/model_niatelemetry_nexus_dashboard_details.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -91,6 +91,11 @@ func (o *NiatelemetryNexusDashboardDetails) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "niatelemetry.NexusDashboardDetails" of the ClassId field. +func (o *NiatelemetryNexusDashboardDetails) GetDefaultClassId() interface{} { + return "niatelemetry.NexusDashboardDetails" +} + // GetObjectType returns the ObjectType field value func (o *NiatelemetryNexusDashboardDetails) GetObjectType() string { if o == nil { @@ -115,6 +120,11 @@ func (o *NiatelemetryNexusDashboardDetails) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "niatelemetry.NexusDashboardDetails" of the ObjectType field. +func (o *NiatelemetryNexusDashboardDetails) GetDefaultObjectType() interface{} { + return "niatelemetry.NexusDashboardDetails" +} + // GetClusterName returns the ClusterName field value if set, zero value otherwise. func (o *NiatelemetryNexusDashboardDetails) GetClusterName() string { if o == nil || IsNil(o.ClusterName) { @@ -336,7 +346,13 @@ func (o NiatelemetryNexusDashboardDetails) ToMap() (map[string]interface{}, erro if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.ClusterName) { toSerialize["ClusterName"] = o.ClusterName @@ -373,6 +389,13 @@ func (o *NiatelemetryNexusDashboardDetails) UnmarshalJSON(data []byte) (err erro "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -382,11 +405,23 @@ func (o *NiatelemetryNexusDashboardDetails) UnmarshalJSON(data []byte) (err erro } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type NiatelemetryNexusDashboardDetailsWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_niatelemetry_nexus_dashboard_details_list.go b/model_niatelemetry_nexus_dashboard_details_list.go index eb23fb2c6a..e955a2c634 100644 --- a/model_niatelemetry_nexus_dashboard_details_list.go +++ b/model_niatelemetry_nexus_dashboard_details_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *NiatelemetryNexusDashboardDetailsList) GetResultsOk() ([]NiatelemetryNe // HasResults returns a boolean if a field has been set. func (o *NiatelemetryNexusDashboardDetailsList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *NiatelemetryNexusDashboardDetailsList) UnmarshalJSON(data []byte) (err "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *NiatelemetryNexusDashboardDetailsList) UnmarshalJSON(data []byte) (err } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type NiatelemetryNexusDashboardDetailsListWithoutEmbeddedStruct struct { // The total number of 'niatelemetry.NexusDashboardDetails' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_niatelemetry_nexus_dashboard_details_response.go b/model_niatelemetry_nexus_dashboard_details_response.go index 12b6026389..8e7e77cdd3 100644 --- a/model_niatelemetry_nexus_dashboard_details_response.go +++ b/model_niatelemetry_nexus_dashboard_details_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_niatelemetry_nexus_dashboard_memory_details.go b/model_niatelemetry_nexus_dashboard_memory_details.go index 4538590043..73580103c8 100644 --- a/model_niatelemetry_nexus_dashboard_memory_details.go +++ b/model_niatelemetry_nexus_dashboard_memory_details.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -86,6 +86,11 @@ func (o *NiatelemetryNexusDashboardMemoryDetails) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "niatelemetry.NexusDashboardMemoryDetails" of the ClassId field. +func (o *NiatelemetryNexusDashboardMemoryDetails) GetDefaultClassId() interface{} { + return "niatelemetry.NexusDashboardMemoryDetails" +} + // GetObjectType returns the ObjectType field value func (o *NiatelemetryNexusDashboardMemoryDetails) GetObjectType() string { if o == nil { @@ -110,6 +115,11 @@ func (o *NiatelemetryNexusDashboardMemoryDetails) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "niatelemetry.NexusDashboardMemoryDetails" of the ObjectType field. +func (o *NiatelemetryNexusDashboardMemoryDetails) GetDefaultObjectType() interface{} { + return "niatelemetry.NexusDashboardMemoryDetails" +} + // GetDeviceName returns the DeviceName field value if set, zero value otherwise. func (o *NiatelemetryNexusDashboardMemoryDetails) GetDeviceName() string { if o == nil || IsNil(o.DeviceName) { @@ -278,7 +288,13 @@ func (o NiatelemetryNexusDashboardMemoryDetails) ToMap() (map[string]interface{} if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.DeviceName) { toSerialize["DeviceName"] = o.DeviceName @@ -309,6 +325,13 @@ func (o *NiatelemetryNexusDashboardMemoryDetails) UnmarshalJSON(data []byte) (er "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -318,11 +341,23 @@ func (o *NiatelemetryNexusDashboardMemoryDetails) UnmarshalJSON(data []byte) (er } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type NiatelemetryNexusDashboardMemoryDetailsWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_niatelemetry_nexus_dashboard_memory_details_list.go b/model_niatelemetry_nexus_dashboard_memory_details_list.go index 6cf0031bfc..b8e71ae1a5 100644 --- a/model_niatelemetry_nexus_dashboard_memory_details_list.go +++ b/model_niatelemetry_nexus_dashboard_memory_details_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *NiatelemetryNexusDashboardMemoryDetailsList) GetResultsOk() ([]Niatelem // HasResults returns a boolean if a field has been set. func (o *NiatelemetryNexusDashboardMemoryDetailsList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *NiatelemetryNexusDashboardMemoryDetailsList) UnmarshalJSON(data []byte) "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *NiatelemetryNexusDashboardMemoryDetailsList) UnmarshalJSON(data []byte) } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type NiatelemetryNexusDashboardMemoryDetailsListWithoutEmbeddedStruct struct { // The total number of 'niatelemetry.NexusDashboardMemoryDetails' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_niatelemetry_nexus_dashboard_memory_details_response.go b/model_niatelemetry_nexus_dashboard_memory_details_response.go index b920f4d1c6..99c907536d 100644 --- a/model_niatelemetry_nexus_dashboard_memory_details_response.go +++ b/model_niatelemetry_nexus_dashboard_memory_details_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_niatelemetry_nexus_dashboards.go b/model_niatelemetry_nexus_dashboards.go index dc55f9eb4a..38274d668b 100644 --- a/model_niatelemetry_nexus_dashboards.go +++ b/model_niatelemetry_nexus_dashboards.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -116,6 +116,11 @@ func (o *NiatelemetryNexusDashboards) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "niatelemetry.NexusDashboards" of the ClassId field. +func (o *NiatelemetryNexusDashboards) GetDefaultClassId() interface{} { + return "niatelemetry.NexusDashboards" +} + // GetObjectType returns the ObjectType field value func (o *NiatelemetryNexusDashboards) GetObjectType() string { if o == nil { @@ -140,6 +145,11 @@ func (o *NiatelemetryNexusDashboards) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "niatelemetry.NexusDashboards" of the ObjectType field. +func (o *NiatelemetryNexusDashboards) GetDefaultObjectType() interface{} { + return "niatelemetry.NexusDashboards" +} + // GetClusterName returns the ClusterName field value if set, zero value otherwise. func (o *NiatelemetryNexusDashboards) GetClusterName() string { if o == nil || IsNil(o.ClusterName) { @@ -321,7 +331,7 @@ func (o *NiatelemetryNexusDashboards) GetNdSitesOk() ([]NiatelemetrySites, bool) // HasNdSites returns a boolean if a field has been set. func (o *NiatelemetryNexusDashboards) HasNdSites() bool { - if o != nil && IsNil(o.NdSites) { + if o != nil && !IsNil(o.NdSites) { return true } @@ -778,7 +788,13 @@ func (o NiatelemetryNexusDashboards) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.ClusterName) { toSerialize["ClusterName"] = o.ClusterName @@ -854,6 +870,13 @@ func (o *NiatelemetryNexusDashboards) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -863,11 +886,23 @@ func (o *NiatelemetryNexusDashboards) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type NiatelemetryNexusDashboardsWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_niatelemetry_nexus_dashboards_list.go b/model_niatelemetry_nexus_dashboards_list.go index ce8c7037ab..dbaf417b96 100644 --- a/model_niatelemetry_nexus_dashboards_list.go +++ b/model_niatelemetry_nexus_dashboards_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *NiatelemetryNexusDashboardsList) GetResultsOk() ([]NiatelemetryNexusDas // HasResults returns a boolean if a field has been set. func (o *NiatelemetryNexusDashboardsList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *NiatelemetryNexusDashboardsList) UnmarshalJSON(data []byte) (err error) "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *NiatelemetryNexusDashboardsList) UnmarshalJSON(data []byte) (err error) } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type NiatelemetryNexusDashboardsListWithoutEmbeddedStruct struct { // The total number of 'niatelemetry.NexusDashboards' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_niatelemetry_nexus_dashboards_relationship.go b/model_niatelemetry_nexus_dashboards_relationship.go index 741a7bbc0c..421e96e1a4 100644 --- a/model_niatelemetry_nexus_dashboards_relationship.go +++ b/model_niatelemetry_nexus_dashboards_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_niatelemetry_nexus_dashboards_response.go b/model_niatelemetry_nexus_dashboards_response.go index 5e5e9ff4c6..bc71874649 100644 --- a/model_niatelemetry_nexus_dashboards_response.go +++ b/model_niatelemetry_nexus_dashboards_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_niatelemetry_nia_feature_usage.go b/model_niatelemetry_nia_feature_usage.go index 17592acf0d..9adf99ec6a 100644 --- a/model_niatelemetry_nia_feature_usage.go +++ b/model_niatelemetry_nia_feature_usage.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -304,6 +304,11 @@ func (o *NiatelemetryNiaFeatureUsage) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "niatelemetry.NiaFeatureUsage" of the ClassId field. +func (o *NiatelemetryNiaFeatureUsage) GetDefaultClassId() interface{} { + return "niatelemetry.NiaFeatureUsage" +} + // GetObjectType returns the ObjectType field value func (o *NiatelemetryNiaFeatureUsage) GetObjectType() string { if o == nil { @@ -328,6 +333,11 @@ func (o *NiatelemetryNiaFeatureUsage) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "niatelemetry.NiaFeatureUsage" of the ObjectType field. +func (o *NiatelemetryNiaFeatureUsage) GetDefaultObjectType() interface{} { + return "niatelemetry.NiaFeatureUsage" +} + // GetAaaLdapProviderCount returns the AaaLdapProviderCount field value if set, zero value otherwise. func (o *NiatelemetryNiaFeatureUsage) GetAaaLdapProviderCount() int64 { if o == nil || IsNil(o.AaaLdapProviderCount) { @@ -3984,7 +3994,13 @@ func (o NiatelemetryNiaFeatureUsage) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.AaaLdapProviderCount) { toSerialize["AaaLdapProviderCount"] = o.AaaLdapProviderCount @@ -4342,6 +4358,13 @@ func (o *NiatelemetryNiaFeatureUsage) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -4351,11 +4374,23 @@ func (o *NiatelemetryNiaFeatureUsage) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type NiatelemetryNiaFeatureUsageWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_niatelemetry_nia_feature_usage_list.go b/model_niatelemetry_nia_feature_usage_list.go index d9dce808d0..c8af17c7e2 100644 --- a/model_niatelemetry_nia_feature_usage_list.go +++ b/model_niatelemetry_nia_feature_usage_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *NiatelemetryNiaFeatureUsageList) GetResultsOk() ([]NiatelemetryNiaFeatu // HasResults returns a boolean if a field has been set. func (o *NiatelemetryNiaFeatureUsageList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *NiatelemetryNiaFeatureUsageList) UnmarshalJSON(data []byte) (err error) "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *NiatelemetryNiaFeatureUsageList) UnmarshalJSON(data []byte) (err error) } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type NiatelemetryNiaFeatureUsageListWithoutEmbeddedStruct struct { // The total number of 'niatelemetry.NiaFeatureUsage' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_niatelemetry_nia_feature_usage_response.go b/model_niatelemetry_nia_feature_usage_response.go index 8ed7522acc..126f8b6e32 100644 --- a/model_niatelemetry_nia_feature_usage_response.go +++ b/model_niatelemetry_nia_feature_usage_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_niatelemetry_nia_inventory.go b/model_niatelemetry_nia_inventory.go index b6463f90fc..1c98e8d5fa 100644 --- a/model_niatelemetry_nia_inventory.go +++ b/model_niatelemetry_nia_inventory.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -191,6 +191,11 @@ func (o *NiatelemetryNiaInventory) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "niatelemetry.NiaInventory" of the ClassId field. +func (o *NiatelemetryNiaInventory) GetDefaultClassId() interface{} { + return "niatelemetry.NiaInventory" +} + // GetObjectType returns the ObjectType field value func (o *NiatelemetryNiaInventory) GetObjectType() string { if o == nil { @@ -215,6 +220,11 @@ func (o *NiatelemetryNiaInventory) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "niatelemetry.NiaInventory" of the ObjectType field. +func (o *NiatelemetryNiaInventory) GetDefaultObjectType() interface{} { + return "niatelemetry.NiaInventory" +} + // GetControllerIpAddress returns the ControllerIpAddress field value if set, zero value otherwise. func (o *NiatelemetryNiaInventory) GetControllerIpAddress() string { if o == nil || IsNil(o.ControllerIpAddress) { @@ -364,7 +374,7 @@ func (o *NiatelemetryNiaInventory) GetDcnmFanDetailsOk() ([]NiatelemetryFanDetai // HasDcnmFanDetails returns a boolean if a field has been set. func (o *NiatelemetryNiaInventory) HasDcnmFanDetails() bool { - if o != nil && IsNil(o.DcnmFanDetails) { + if o != nil && !IsNil(o.DcnmFanDetails) { return true } @@ -792,7 +802,7 @@ func (o *NiatelemetryNiaInventory) GetInterfaceOk() ([]NiatelemetryInterfaceElem // HasInterface returns a boolean if a field has been set. func (o *NiatelemetryNiaInventory) HasInterface() bool { - if o != nil && IsNil(o.Interface) { + if o != nil && !IsNil(o.Interface) { return true } @@ -2118,7 +2128,7 @@ func (o *NiatelemetryNiaInventory) GetVniStatusOk() ([]NiatelemetryVniStatus, bo // HasVniStatus returns a boolean if a field has been set. func (o *NiatelemetryNiaInventory) HasVniStatus() bool { - if o != nil && IsNil(o.VniStatus) { + if o != nil && !IsNil(o.VniStatus) { return true } @@ -2266,7 +2276,13 @@ func (o NiatelemetryNiaInventory) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.ControllerIpAddress) { toSerialize["ControllerIpAddress"] = o.ControllerIpAddress @@ -2465,6 +2481,13 @@ func (o *NiatelemetryNiaInventory) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -2474,11 +2497,23 @@ func (o *NiatelemetryNiaInventory) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type NiatelemetryNiaInventoryWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_niatelemetry_nia_inventory_dcnm.go b/model_niatelemetry_nia_inventory_dcnm.go index a141f8b365..4cfc2837fc 100644 --- a/model_niatelemetry_nia_inventory_dcnm.go +++ b/model_niatelemetry_nia_inventory_dcnm.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -148,6 +148,11 @@ func (o *NiatelemetryNiaInventoryDcnm) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "niatelemetry.NiaInventoryDcnm" of the ClassId field. +func (o *NiatelemetryNiaInventoryDcnm) GetDefaultClassId() interface{} { + return "niatelemetry.NiaInventoryDcnm" +} + // GetObjectType returns the ObjectType field value func (o *NiatelemetryNiaInventoryDcnm) GetObjectType() string { if o == nil { @@ -172,6 +177,11 @@ func (o *NiatelemetryNiaInventoryDcnm) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "niatelemetry.NiaInventoryDcnm" of the ObjectType field. +func (o *NiatelemetryNiaInventoryDcnm) GetDefaultObjectType() interface{} { + return "niatelemetry.NiaInventoryDcnm" +} + // GetControllerHealth returns the ControllerHealth field value if set, zero value otherwise. func (o *NiatelemetryNiaInventoryDcnm) GetControllerHealth() int64 { if o == nil || IsNil(o.ControllerHealth) { @@ -289,7 +299,7 @@ func (o *NiatelemetryNiaInventoryDcnm) GetGoldenImageDetailsOk() ([]Niatelemetry // HasGoldenImageDetails returns a boolean if a field has been set. func (o *NiatelemetryNiaInventoryDcnm) HasGoldenImageDetails() bool { - if o != nil && IsNil(o.GoldenImageDetails) { + if o != nil && !IsNil(o.GoldenImageDetails) { return true } @@ -1261,7 +1271,7 @@ func (o *NiatelemetryNiaInventoryDcnm) GetUpgStatusOk() ([]NiatelemetryJobDetail // HasUpgStatus returns a boolean if a field has been set. func (o *NiatelemetryNiaInventoryDcnm) HasUpgStatus() bool { - if o != nil && IsNil(o.UpgStatus) { + if o != nil && !IsNil(o.UpgStatus) { return true } @@ -1366,7 +1376,13 @@ func (o NiatelemetryNiaInventoryDcnm) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.ControllerHealth) { toSerialize["ControllerHealth"] = o.ControllerHealth @@ -1493,6 +1509,13 @@ func (o *NiatelemetryNiaInventoryDcnm) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -1502,11 +1525,23 @@ func (o *NiatelemetryNiaInventoryDcnm) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type NiatelemetryNiaInventoryDcnmWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_niatelemetry_nia_inventory_dcnm_list.go b/model_niatelemetry_nia_inventory_dcnm_list.go index dd3a3e7abf..7d0b44856f 100644 --- a/model_niatelemetry_nia_inventory_dcnm_list.go +++ b/model_niatelemetry_nia_inventory_dcnm_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *NiatelemetryNiaInventoryDcnmList) GetResultsOk() ([]NiatelemetryNiaInve // HasResults returns a boolean if a field has been set. func (o *NiatelemetryNiaInventoryDcnmList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *NiatelemetryNiaInventoryDcnmList) UnmarshalJSON(data []byte) (err error "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *NiatelemetryNiaInventoryDcnmList) UnmarshalJSON(data []byte) (err error } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type NiatelemetryNiaInventoryDcnmListWithoutEmbeddedStruct struct { // The total number of 'niatelemetry.NiaInventoryDcnm' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_niatelemetry_nia_inventory_dcnm_response.go b/model_niatelemetry_nia_inventory_dcnm_response.go index 69d628c27f..0050f1108d 100644 --- a/model_niatelemetry_nia_inventory_dcnm_response.go +++ b/model_niatelemetry_nia_inventory_dcnm_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_niatelemetry_nia_inventory_fabric.go b/model_niatelemetry_nia_inventory_fabric.go index 3af94b4d9a..7edde39763 100644 --- a/model_niatelemetry_nia_inventory_fabric.go +++ b/model_niatelemetry_nia_inventory_fabric.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -181,6 +181,11 @@ func (o *NiatelemetryNiaInventoryFabric) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "niatelemetry.NiaInventoryFabric" of the ClassId field. +func (o *NiatelemetryNiaInventoryFabric) GetDefaultClassId() interface{} { + return "niatelemetry.NiaInventoryFabric" +} + // GetObjectType returns the ObjectType field value func (o *NiatelemetryNiaInventoryFabric) GetObjectType() string { if o == nil { @@ -205,6 +210,11 @@ func (o *NiatelemetryNiaInventoryFabric) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "niatelemetry.NiaInventoryFabric" of the ObjectType field. +func (o *NiatelemetryNiaInventoryFabric) GetDefaultObjectType() interface{} { + return "niatelemetry.NiaInventoryFabric" +} + // GetAnycastGwMac returns the AnycastGwMac field value if set, zero value otherwise. func (o *NiatelemetryNiaInventoryFabric) GetAnycastGwMac() string { if o == nil || IsNil(o.AnycastGwMac) { @@ -1058,7 +1068,7 @@ func (o *NiatelemetryNiaInventoryFabric) GetLogicalLinksOk() ([]NiatelemetryLogi // HasLogicalLinks returns a boolean if a field has been set. func (o *NiatelemetryNiaInventoryFabric) HasLogicalLinks() bool { - if o != nil && IsNil(o.LogicalLinks) { + if o != nil && !IsNil(o.LogicalLinks) { return true } @@ -1123,7 +1133,7 @@ func (o *NiatelemetryNiaInventoryFabric) GetNetworkDeploymentStatusOk() ([]Niate // HasNetworkDeploymentStatus returns a boolean if a field has been set. func (o *NiatelemetryNiaInventoryFabric) HasNetworkDeploymentStatus() bool { - if o != nil && IsNil(o.NetworkDeploymentStatus) { + if o != nil && !IsNil(o.NetworkDeploymentStatus) { return true } @@ -1732,7 +1742,7 @@ func (o *NiatelemetryNiaInventoryFabric) GetVpcDetailsOk() ([]NiatelemetryVpcDet // HasVpcDetails returns a boolean if a field has been set. func (o *NiatelemetryNiaInventoryFabric) HasVpcDetails() bool { - if o != nil && IsNil(o.VpcDetails) { + if o != nil && !IsNil(o.VpcDetails) { return true } @@ -1797,7 +1807,7 @@ func (o *NiatelemetryNiaInventoryFabric) GetVrfDeploymentStatusOk() ([]Niateleme // HasVrfDeploymentStatus returns a boolean if a field has been set. func (o *NiatelemetryNiaInventoryFabric) HasVrfDeploymentStatus() bool { - if o != nil && IsNil(o.VrfDeploymentStatus) { + if o != nil && !IsNil(o.VrfDeploymentStatus) { return true } @@ -1934,7 +1944,13 @@ func (o NiatelemetryNiaInventoryFabric) ToMap() (map[string]interface{}, error) if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.AnycastGwMac) { toSerialize["AnycastGwMac"] = o.AnycastGwMac @@ -2112,6 +2128,13 @@ func (o *NiatelemetryNiaInventoryFabric) UnmarshalJSON(data []byte) (err error) "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -2121,11 +2144,23 @@ func (o *NiatelemetryNiaInventoryFabric) UnmarshalJSON(data []byte) (err error) } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type NiatelemetryNiaInventoryFabricWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_niatelemetry_nia_inventory_fabric_list.go b/model_niatelemetry_nia_inventory_fabric_list.go index 22de49604f..4bc4c6b29c 100644 --- a/model_niatelemetry_nia_inventory_fabric_list.go +++ b/model_niatelemetry_nia_inventory_fabric_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *NiatelemetryNiaInventoryFabricList) GetResultsOk() ([]NiatelemetryNiaIn // HasResults returns a boolean if a field has been set. func (o *NiatelemetryNiaInventoryFabricList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *NiatelemetryNiaInventoryFabricList) UnmarshalJSON(data []byte) (err err "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *NiatelemetryNiaInventoryFabricList) UnmarshalJSON(data []byte) (err err } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type NiatelemetryNiaInventoryFabricListWithoutEmbeddedStruct struct { // The total number of 'niatelemetry.NiaInventoryFabric' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_niatelemetry_nia_inventory_fabric_response.go b/model_niatelemetry_nia_inventory_fabric_response.go index 8091cd5b72..c42b5cdbb7 100644 --- a/model_niatelemetry_nia_inventory_fabric_response.go +++ b/model_niatelemetry_nia_inventory_fabric_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_niatelemetry_nia_inventory_list.go b/model_niatelemetry_nia_inventory_list.go index 78c5eed5d5..fdb1eaf636 100644 --- a/model_niatelemetry_nia_inventory_list.go +++ b/model_niatelemetry_nia_inventory_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *NiatelemetryNiaInventoryList) GetResultsOk() ([]NiatelemetryNiaInventor // HasResults returns a boolean if a field has been set. func (o *NiatelemetryNiaInventoryList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *NiatelemetryNiaInventoryList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *NiatelemetryNiaInventoryList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type NiatelemetryNiaInventoryListWithoutEmbeddedStruct struct { // The total number of 'niatelemetry.NiaInventory' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_niatelemetry_nia_inventory_relationship.go b/model_niatelemetry_nia_inventory_relationship.go index de03f9b8e2..e4757660c8 100644 --- a/model_niatelemetry_nia_inventory_relationship.go +++ b/model_niatelemetry_nia_inventory_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_niatelemetry_nia_inventory_response.go b/model_niatelemetry_nia_inventory_response.go index 4e9bab32a0..f74f6c2675 100644 --- a/model_niatelemetry_nia_inventory_response.go +++ b/model_niatelemetry_nia_inventory_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_niatelemetry_nia_license_state.go b/model_niatelemetry_nia_license_state.go index 2188f7a0f9..66dd9076f9 100644 --- a/model_niatelemetry_nia_license_state.go +++ b/model_niatelemetry_nia_license_state.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -95,6 +95,11 @@ func (o *NiatelemetryNiaLicenseState) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "niatelemetry.NiaLicenseState" of the ClassId field. +func (o *NiatelemetryNiaLicenseState) GetDefaultClassId() interface{} { + return "niatelemetry.NiaLicenseState" +} + // GetObjectType returns the ObjectType field value func (o *NiatelemetryNiaLicenseState) GetObjectType() string { if o == nil { @@ -119,6 +124,11 @@ func (o *NiatelemetryNiaLicenseState) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "niatelemetry.NiaLicenseState" of the ObjectType field. +func (o *NiatelemetryNiaLicenseState) GetDefaultObjectType() interface{} { + return "niatelemetry.NiaLicenseState" +} + // GetFeatureActivated returns the FeatureActivated field value if set, zero value otherwise. func (o *NiatelemetryNiaLicenseState) GetFeatureActivated() string { if o == nil || IsNil(o.FeatureActivated) { @@ -404,7 +414,13 @@ func (o NiatelemetryNiaLicenseState) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.FeatureActivated) { toSerialize["FeatureActivated"] = o.FeatureActivated @@ -447,6 +463,13 @@ func (o *NiatelemetryNiaLicenseState) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -456,11 +479,23 @@ func (o *NiatelemetryNiaLicenseState) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type NiatelemetryNiaLicenseStateWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_niatelemetry_nia_license_state_list.go b/model_niatelemetry_nia_license_state_list.go index d100ec54f8..752e0ba007 100644 --- a/model_niatelemetry_nia_license_state_list.go +++ b/model_niatelemetry_nia_license_state_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *NiatelemetryNiaLicenseStateList) GetResultsOk() ([]NiatelemetryNiaLicen // HasResults returns a boolean if a field has been set. func (o *NiatelemetryNiaLicenseStateList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *NiatelemetryNiaLicenseStateList) UnmarshalJSON(data []byte) (err error) "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *NiatelemetryNiaLicenseStateList) UnmarshalJSON(data []byte) (err error) } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type NiatelemetryNiaLicenseStateListWithoutEmbeddedStruct struct { // The total number of 'niatelemetry.NiaLicenseState' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_niatelemetry_nia_license_state_relationship.go b/model_niatelemetry_nia_license_state_relationship.go index 0887b700b4..8f2dc6873f 100644 --- a/model_niatelemetry_nia_license_state_relationship.go +++ b/model_niatelemetry_nia_license_state_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_niatelemetry_nia_license_state_response.go b/model_niatelemetry_nia_license_state_response.go index b0c7a23f33..f2faba35d8 100644 --- a/model_niatelemetry_nia_license_state_response.go +++ b/model_niatelemetry_nia_license_state_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_niatelemetry_nicc.go b/model_niatelemetry_nicc.go index 51faaafabc..01aeb28a2b 100644 --- a/model_niatelemetry_nicc.go +++ b/model_niatelemetry_nicc.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -89,6 +89,11 @@ func (o *NiatelemetryNicc) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "niatelemetry.Nicc" of the ClassId field. +func (o *NiatelemetryNicc) GetDefaultClassId() interface{} { + return "niatelemetry.Nicc" +} + // GetObjectType returns the ObjectType field value func (o *NiatelemetryNicc) GetObjectType() string { if o == nil { @@ -113,6 +118,11 @@ func (o *NiatelemetryNicc) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "niatelemetry.Nicc" of the ObjectType field. +func (o *NiatelemetryNicc) GetDefaultObjectType() interface{} { + return "niatelemetry.Nicc" +} + // GetConfigIssues returns the ConfigIssues field value if set, zero value otherwise. func (o *NiatelemetryNicc) GetConfigIssues() string { if o == nil || IsNil(o.ConfigIssues) { @@ -302,7 +312,13 @@ func (o NiatelemetryNicc) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.ConfigIssues) { toSerialize["ConfigIssues"] = o.ConfigIssues @@ -336,6 +352,13 @@ func (o *NiatelemetryNicc) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -345,11 +368,23 @@ func (o *NiatelemetryNicc) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type NiatelemetryNiccWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_niatelemetry_nicc_list.go b/model_niatelemetry_nicc_list.go index ca1ad28fc2..6c69650b79 100644 --- a/model_niatelemetry_nicc_list.go +++ b/model_niatelemetry_nicc_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *NiatelemetryNiccList) GetResultsOk() ([]NiatelemetryNicc, bool) { // HasResults returns a boolean if a field has been set. func (o *NiatelemetryNiccList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *NiatelemetryNiccList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *NiatelemetryNiccList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type NiatelemetryNiccListWithoutEmbeddedStruct struct { // The total number of 'niatelemetry.Nicc' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_niatelemetry_nicc_response.go b/model_niatelemetry_nicc_response.go index 56cbcf0e81..114343afa5 100644 --- a/model_niatelemetry_nicc_response.go +++ b/model_niatelemetry_nicc_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_niatelemetry_node.go b/model_niatelemetry_node.go index b6d5867b33..629c7b6f97 100644 --- a/model_niatelemetry_node.go +++ b/model_niatelemetry_node.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -86,6 +86,11 @@ func (o *NiatelemetryNode) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "niatelemetry.Node" of the ClassId field. +func (o *NiatelemetryNode) GetDefaultClassId() interface{} { + return "niatelemetry.Node" +} + // GetObjectType returns the ObjectType field value func (o *NiatelemetryNode) GetObjectType() string { if o == nil { @@ -110,6 +115,11 @@ func (o *NiatelemetryNode) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "niatelemetry.Node" of the ObjectType field. +func (o *NiatelemetryNode) GetDefaultObjectType() interface{} { + return "niatelemetry.Node" +} + // GetHostname returns the Hostname field value if set, zero value otherwise. func (o *NiatelemetryNode) GetHostname() string { if o == nil || IsNil(o.Hostname) { @@ -224,7 +234,13 @@ func (o NiatelemetryNode) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Hostname) { toSerialize["Hostname"] = o.Hostname @@ -252,6 +268,13 @@ func (o *NiatelemetryNode) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -261,11 +284,23 @@ func (o *NiatelemetryNode) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type NiatelemetryNodeWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_niatelemetry_nve_packet_counters.go b/model_niatelemetry_nve_packet_counters.go index 00822aa8b5..767208b69c 100644 --- a/model_niatelemetry_nve_packet_counters.go +++ b/model_niatelemetry_nve_packet_counters.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -88,6 +88,11 @@ func (o *NiatelemetryNvePacketCounters) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "niatelemetry.NvePacketCounters" of the ClassId field. +func (o *NiatelemetryNvePacketCounters) GetDefaultClassId() interface{} { + return "niatelemetry.NvePacketCounters" +} + // GetObjectType returns the ObjectType field value func (o *NiatelemetryNvePacketCounters) GetObjectType() string { if o == nil { @@ -112,6 +117,11 @@ func (o *NiatelemetryNvePacketCounters) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "niatelemetry.NvePacketCounters" of the ObjectType field. +func (o *NiatelemetryNvePacketCounters) GetDefaultObjectType() interface{} { + return "niatelemetry.NvePacketCounters" +} + // GetMcastInpkts returns the McastInpkts field value if set, zero value otherwise. func (o *NiatelemetryNvePacketCounters) GetMcastInpkts() int64 { if o == nil || IsNil(o.McastInpkts) { @@ -258,7 +268,13 @@ func (o NiatelemetryNvePacketCounters) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.McastInpkts) { toSerialize["McastInpkts"] = o.McastInpkts @@ -289,6 +305,13 @@ func (o *NiatelemetryNvePacketCounters) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -298,11 +321,23 @@ func (o *NiatelemetryNvePacketCounters) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type NiatelemetryNvePacketCountersWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_niatelemetry_nve_vni.go b/model_niatelemetry_nve_vni.go index 3bb10b7608..7fce187fa7 100644 --- a/model_niatelemetry_nve_vni.go +++ b/model_niatelemetry_nve_vni.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -92,6 +92,11 @@ func (o *NiatelemetryNveVni) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "niatelemetry.NveVni" of the ClassId field. +func (o *NiatelemetryNveVni) GetDefaultClassId() interface{} { + return "niatelemetry.NveVni" +} + // GetObjectType returns the ObjectType field value func (o *NiatelemetryNveVni) GetObjectType() string { if o == nil { @@ -116,6 +121,11 @@ func (o *NiatelemetryNveVni) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "niatelemetry.NveVni" of the ObjectType field. +func (o *NiatelemetryNveVni) GetDefaultObjectType() interface{} { + return "niatelemetry.NveVni" +} + // GetCpVniCount returns the CpVniCount field value if set, zero value otherwise. func (o *NiatelemetryNveVni) GetCpVniCount() int64 { if o == nil || IsNil(o.CpVniCount) { @@ -326,7 +336,13 @@ func (o NiatelemetryNveVni) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.CpVniCount) { toSerialize["CpVniCount"] = o.CpVniCount @@ -363,6 +379,13 @@ func (o *NiatelemetryNveVni) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -372,11 +395,23 @@ func (o *NiatelemetryNveVni) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type NiatelemetryNveVniWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_niatelemetry_nxos_bgp_evpn.go b/model_niatelemetry_nxos_bgp_evpn.go index 41554a66be..97e9daf4f2 100644 --- a/model_niatelemetry_nxos_bgp_evpn.go +++ b/model_niatelemetry_nxos_bgp_evpn.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -86,6 +86,11 @@ func (o *NiatelemetryNxosBgpEvpn) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "niatelemetry.NxosBgpEvpn" of the ClassId field. +func (o *NiatelemetryNxosBgpEvpn) GetDefaultClassId() interface{} { + return "niatelemetry.NxosBgpEvpn" +} + // GetObjectType returns the ObjectType field value func (o *NiatelemetryNxosBgpEvpn) GetObjectType() string { if o == nil { @@ -110,6 +115,11 @@ func (o *NiatelemetryNxosBgpEvpn) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "niatelemetry.NxosBgpEvpn" of the ObjectType field. +func (o *NiatelemetryNxosBgpEvpn) GetDefaultObjectType() interface{} { + return "niatelemetry.NxosBgpEvpn" +} + // GetNxosEvpnMacCount returns the NxosEvpnMacCount field value if set, zero value otherwise. func (o *NiatelemetryNxosBgpEvpn) GetNxosEvpnMacCount() string { if o == nil || IsNil(o.NxosEvpnMacCount) { @@ -224,7 +234,13 @@ func (o NiatelemetryNxosBgpEvpn) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.NxosEvpnMacCount) { toSerialize["NxosEvpnMacCount"] = o.NxosEvpnMacCount @@ -252,6 +268,13 @@ func (o *NiatelemetryNxosBgpEvpn) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -261,11 +284,23 @@ func (o *NiatelemetryNxosBgpEvpn) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type NiatelemetryNxosBgpEvpnWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_niatelemetry_nxos_bgp_mvpn.go b/model_niatelemetry_nxos_bgp_mvpn.go index 692f523b58..43ff285702 100644 --- a/model_niatelemetry_nxos_bgp_mvpn.go +++ b/model_niatelemetry_nxos_bgp_mvpn.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -96,6 +96,11 @@ func (o *NiatelemetryNxosBgpMvpn) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "niatelemetry.NxosBgpMvpn" of the ClassId field. +func (o *NiatelemetryNxosBgpMvpn) GetDefaultClassId() interface{} { + return "niatelemetry.NxosBgpMvpn" +} + // GetObjectType returns the ObjectType field value func (o *NiatelemetryNxosBgpMvpn) GetObjectType() string { if o == nil { @@ -120,6 +125,11 @@ func (o *NiatelemetryNxosBgpMvpn) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "niatelemetry.NxosBgpMvpn" of the ObjectType field. +func (o *NiatelemetryNxosBgpMvpn) GetDefaultObjectType() interface{} { + return "niatelemetry.NxosBgpMvpn" +} + // GetCapablePeers returns the CapablePeers field value if set, zero value otherwise. func (o *NiatelemetryNxosBgpMvpn) GetCapablePeers() int64 { if o == nil || IsNil(o.CapablePeers) { @@ -394,7 +404,13 @@ func (o NiatelemetryNxosBgpMvpn) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.CapablePeers) { toSerialize["CapablePeers"] = o.CapablePeers @@ -437,6 +453,13 @@ func (o *NiatelemetryNxosBgpMvpn) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -446,11 +469,23 @@ func (o *NiatelemetryNxosBgpMvpn) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type NiatelemetryNxosBgpMvpnWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_niatelemetry_nxos_vtp.go b/model_niatelemetry_nxos_vtp.go index b257549f92..81f0193eef 100644 --- a/model_niatelemetry_nxos_vtp.go +++ b/model_niatelemetry_nxos_vtp.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -92,6 +92,11 @@ func (o *NiatelemetryNxosVtp) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "niatelemetry.NxosVtp" of the ClassId field. +func (o *NiatelemetryNxosVtp) GetDefaultClassId() interface{} { + return "niatelemetry.NxosVtp" +} + // GetObjectType returns the ObjectType field value func (o *NiatelemetryNxosVtp) GetObjectType() string { if o == nil { @@ -116,6 +121,11 @@ func (o *NiatelemetryNxosVtp) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "niatelemetry.NxosVtp" of the ObjectType field. +func (o *NiatelemetryNxosVtp) GetDefaultObjectType() interface{} { + return "niatelemetry.NxosVtp" +} + // GetOperMode returns the OperMode field value if set, zero value otherwise. func (o *NiatelemetryNxosVtp) GetOperMode() string { if o == nil || IsNil(o.OperMode) { @@ -326,7 +336,13 @@ func (o NiatelemetryNxosVtp) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.OperMode) { toSerialize["OperMode"] = o.OperMode @@ -363,6 +379,13 @@ func (o *NiatelemetryNxosVtp) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -372,11 +395,23 @@ func (o *NiatelemetryNxosVtp) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type NiatelemetryNxosVtpWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_niatelemetry_password_strength_check.go b/model_niatelemetry_password_strength_check.go index 2d327cb206..ea20d93f07 100644 --- a/model_niatelemetry_password_strength_check.go +++ b/model_niatelemetry_password_strength_check.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -91,6 +91,11 @@ func (o *NiatelemetryPasswordStrengthCheck) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "niatelemetry.PasswordStrengthCheck" of the ClassId field. +func (o *NiatelemetryPasswordStrengthCheck) GetDefaultClassId() interface{} { + return "niatelemetry.PasswordStrengthCheck" +} + // GetObjectType returns the ObjectType field value func (o *NiatelemetryPasswordStrengthCheck) GetObjectType() string { if o == nil { @@ -115,6 +120,11 @@ func (o *NiatelemetryPasswordStrengthCheck) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "niatelemetry.PasswordStrengthCheck" of the ObjectType field. +func (o *NiatelemetryPasswordStrengthCheck) GetDefaultObjectType() interface{} { + return "niatelemetry.PasswordStrengthCheck" +} + // GetDn returns the Dn field value if set, zero value otherwise. func (o *NiatelemetryPasswordStrengthCheck) GetDn() string { if o == nil || IsNil(o.Dn) { @@ -336,7 +346,13 @@ func (o NiatelemetryPasswordStrengthCheck) ToMap() (map[string]interface{}, erro if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Dn) { toSerialize["Dn"] = o.Dn @@ -373,6 +389,13 @@ func (o *NiatelemetryPasswordStrengthCheck) UnmarshalJSON(data []byte) (err erro "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -382,11 +405,23 @@ func (o *NiatelemetryPasswordStrengthCheck) UnmarshalJSON(data []byte) (err erro } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type NiatelemetryPasswordStrengthCheckWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_niatelemetry_password_strength_check_list.go b/model_niatelemetry_password_strength_check_list.go index 9f3da94548..3a49c46a9e 100644 --- a/model_niatelemetry_password_strength_check_list.go +++ b/model_niatelemetry_password_strength_check_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *NiatelemetryPasswordStrengthCheckList) GetResultsOk() ([]NiatelemetryPa // HasResults returns a boolean if a field has been set. func (o *NiatelemetryPasswordStrengthCheckList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *NiatelemetryPasswordStrengthCheckList) UnmarshalJSON(data []byte) (err "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *NiatelemetryPasswordStrengthCheckList) UnmarshalJSON(data []byte) (err } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type NiatelemetryPasswordStrengthCheckListWithoutEmbeddedStruct struct { // The total number of 'niatelemetry.PasswordStrengthCheck' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_niatelemetry_password_strength_check_response.go b/model_niatelemetry_password_strength_check_response.go index e8647da033..9c8661a582 100644 --- a/model_niatelemetry_password_strength_check_response.go +++ b/model_niatelemetry_password_strength_check_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_niatelemetry_pod_comm_policies.go b/model_niatelemetry_pod_comm_policies.go index 36b5be5f15..2304dd9ded 100644 --- a/model_niatelemetry_pod_comm_policies.go +++ b/model_niatelemetry_pod_comm_policies.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -97,6 +97,11 @@ func (o *NiatelemetryPodCommPolicies) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "niatelemetry.PodCommPolicies" of the ClassId field. +func (o *NiatelemetryPodCommPolicies) GetDefaultClassId() interface{} { + return "niatelemetry.PodCommPolicies" +} + // GetObjectType returns the ObjectType field value func (o *NiatelemetryPodCommPolicies) GetObjectType() string { if o == nil { @@ -121,6 +126,11 @@ func (o *NiatelemetryPodCommPolicies) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "niatelemetry.PodCommPolicies" of the ObjectType field. +func (o *NiatelemetryPodCommPolicies) GetDefaultObjectType() interface{} { + return "niatelemetry.PodCommPolicies" +} + // GetCommHttpAdminSt returns the CommHttpAdminSt field value if set, zero value otherwise. func (o *NiatelemetryPodCommPolicies) GetCommHttpAdminSt() string { if o == nil || IsNil(o.CommHttpAdminSt) { @@ -438,7 +448,13 @@ func (o NiatelemetryPodCommPolicies) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.CommHttpAdminSt) { toSerialize["CommHttpAdminSt"] = o.CommHttpAdminSt @@ -484,6 +500,13 @@ func (o *NiatelemetryPodCommPolicies) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -493,11 +516,23 @@ func (o *NiatelemetryPodCommPolicies) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type NiatelemetryPodCommPoliciesWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_niatelemetry_pod_comm_policies_list.go b/model_niatelemetry_pod_comm_policies_list.go index 749cb8b9a8..315b23b2fd 100644 --- a/model_niatelemetry_pod_comm_policies_list.go +++ b/model_niatelemetry_pod_comm_policies_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *NiatelemetryPodCommPoliciesList) GetResultsOk() ([]NiatelemetryPodCommP // HasResults returns a boolean if a field has been set. func (o *NiatelemetryPodCommPoliciesList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *NiatelemetryPodCommPoliciesList) UnmarshalJSON(data []byte) (err error) "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *NiatelemetryPodCommPoliciesList) UnmarshalJSON(data []byte) (err error) } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type NiatelemetryPodCommPoliciesListWithoutEmbeddedStruct struct { // The total number of 'niatelemetry.PodCommPolicies' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_niatelemetry_pod_comm_policies_response.go b/model_niatelemetry_pod_comm_policies_response.go index a6be87e037..4ffe295739 100644 --- a/model_niatelemetry_pod_comm_policies_response.go +++ b/model_niatelemetry_pod_comm_policies_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_niatelemetry_pod_snmp_policies.go b/model_niatelemetry_pod_snmp_policies.go index 0acc942389..880b7ddc76 100644 --- a/model_niatelemetry_pod_snmp_policies.go +++ b/model_niatelemetry_pod_snmp_policies.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -99,6 +99,11 @@ func (o *NiatelemetryPodSnmpPolicies) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "niatelemetry.PodSnmpPolicies" of the ClassId field. +func (o *NiatelemetryPodSnmpPolicies) GetDefaultClassId() interface{} { + return "niatelemetry.PodSnmpPolicies" +} + // GetObjectType returns the ObjectType field value func (o *NiatelemetryPodSnmpPolicies) GetObjectType() string { if o == nil { @@ -123,6 +128,11 @@ func (o *NiatelemetryPodSnmpPolicies) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "niatelemetry.PodSnmpPolicies" of the ObjectType field. +func (o *NiatelemetryPodSnmpPolicies) GetDefaultObjectType() interface{} { + return "niatelemetry.PodSnmpPolicies" +} + // GetAdminSt returns the AdminSt field value if set, zero value otherwise. func (o *NiatelemetryPodSnmpPolicies) GetAdminSt() string { if o == nil || IsNil(o.AdminSt) { @@ -472,7 +482,13 @@ func (o NiatelemetryPodSnmpPolicies) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.AdminSt) { toSerialize["AdminSt"] = o.AdminSt @@ -521,6 +537,13 @@ func (o *NiatelemetryPodSnmpPolicies) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -530,11 +553,23 @@ func (o *NiatelemetryPodSnmpPolicies) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type NiatelemetryPodSnmpPoliciesWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_niatelemetry_pod_snmp_policies_list.go b/model_niatelemetry_pod_snmp_policies_list.go index 25bf6fe8c1..998f861f8d 100644 --- a/model_niatelemetry_pod_snmp_policies_list.go +++ b/model_niatelemetry_pod_snmp_policies_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *NiatelemetryPodSnmpPoliciesList) GetResultsOk() ([]NiatelemetryPodSnmpP // HasResults returns a boolean if a field has been set. func (o *NiatelemetryPodSnmpPoliciesList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *NiatelemetryPodSnmpPoliciesList) UnmarshalJSON(data []byte) (err error) "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *NiatelemetryPodSnmpPoliciesList) UnmarshalJSON(data []byte) (err error) } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type NiatelemetryPodSnmpPoliciesListWithoutEmbeddedStruct struct { // The total number of 'niatelemetry.PodSnmpPolicies' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_niatelemetry_pod_snmp_policies_response.go b/model_niatelemetry_pod_snmp_policies_response.go index b028e6e0d2..80adcda672 100644 --- a/model_niatelemetry_pod_snmp_policies_response.go +++ b/model_niatelemetry_pod_snmp_policies_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_niatelemetry_pod_time_server_policies.go b/model_niatelemetry_pod_time_server_policies.go index aaefdb6bc0..7d882f6126 100644 --- a/model_niatelemetry_pod_time_server_policies.go +++ b/model_niatelemetry_pod_time_server_policies.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -93,6 +93,11 @@ func (o *NiatelemetryPodTimeServerPolicies) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "niatelemetry.PodTimeServerPolicies" of the ClassId field. +func (o *NiatelemetryPodTimeServerPolicies) GetDefaultClassId() interface{} { + return "niatelemetry.PodTimeServerPolicies" +} + // GetObjectType returns the ObjectType field value func (o *NiatelemetryPodTimeServerPolicies) GetObjectType() string { if o == nil { @@ -117,6 +122,11 @@ func (o *NiatelemetryPodTimeServerPolicies) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "niatelemetry.PodTimeServerPolicies" of the ObjectType field. +func (o *NiatelemetryPodTimeServerPolicies) GetDefaultObjectType() interface{} { + return "niatelemetry.PodTimeServerPolicies" +} + // GetPolDn returns the PolDn field value if set, zero value otherwise. func (o *NiatelemetryPodTimeServerPolicies) GetPolDn() string { if o == nil || IsNil(o.PolDn) { @@ -370,7 +380,13 @@ func (o NiatelemetryPodTimeServerPolicies) ToMap() (map[string]interface{}, erro if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.PolDn) { toSerialize["PolDn"] = o.PolDn @@ -410,6 +426,13 @@ func (o *NiatelemetryPodTimeServerPolicies) UnmarshalJSON(data []byte) (err erro "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -419,11 +442,23 @@ func (o *NiatelemetryPodTimeServerPolicies) UnmarshalJSON(data []byte) (err erro } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type NiatelemetryPodTimeServerPoliciesWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_niatelemetry_pod_time_server_policies_list.go b/model_niatelemetry_pod_time_server_policies_list.go index 6d2d315e14..657275c61b 100644 --- a/model_niatelemetry_pod_time_server_policies_list.go +++ b/model_niatelemetry_pod_time_server_policies_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *NiatelemetryPodTimeServerPoliciesList) GetResultsOk() ([]NiatelemetryPo // HasResults returns a boolean if a field has been set. func (o *NiatelemetryPodTimeServerPoliciesList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *NiatelemetryPodTimeServerPoliciesList) UnmarshalJSON(data []byte) (err "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *NiatelemetryPodTimeServerPoliciesList) UnmarshalJSON(data []byte) (err } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type NiatelemetryPodTimeServerPoliciesListWithoutEmbeddedStruct struct { // The total number of 'niatelemetry.PodTimeServerPolicies' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_niatelemetry_pod_time_server_policies_response.go b/model_niatelemetry_pod_time_server_policies_response.go index 072db4e86f..36f3b43c1b 100644 --- a/model_niatelemetry_pod_time_server_policies_response.go +++ b/model_niatelemetry_pod_time_server_policies_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_niatelemetry_proc_sys_cpu15min.go b/model_niatelemetry_proc_sys_cpu15min.go index 38b4c61b49..99af6a8fda 100644 --- a/model_niatelemetry_proc_sys_cpu15min.go +++ b/model_niatelemetry_proc_sys_cpu15min.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -84,6 +84,11 @@ func (o *NiatelemetryProcSysCpu15min) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "niatelemetry.ProcSysCpu15min" of the ClassId field. +func (o *NiatelemetryProcSysCpu15min) GetDefaultClassId() interface{} { + return "niatelemetry.ProcSysCpu15min" +} + // GetObjectType returns the ObjectType field value func (o *NiatelemetryProcSysCpu15min) GetObjectType() string { if o == nil { @@ -108,6 +113,11 @@ func (o *NiatelemetryProcSysCpu15min) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "niatelemetry.ProcSysCpu15min" of the ObjectType field. +func (o *NiatelemetryProcSysCpu15min) GetDefaultObjectType() interface{} { + return "niatelemetry.ProcSysCpu15min" +} + // GetKernalAvg returns the KernalAvg field value if set, zero value otherwise. func (o *NiatelemetryProcSysCpu15min) GetKernalAvg() string { if o == nil || IsNil(o.KernalAvg) { @@ -190,7 +200,13 @@ func (o NiatelemetryProcSysCpu15min) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.KernalAvg) { toSerialize["KernalAvg"] = o.KernalAvg @@ -215,6 +231,13 @@ func (o *NiatelemetryProcSysCpu15min) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -224,11 +247,23 @@ func (o *NiatelemetryProcSysCpu15min) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type NiatelemetryProcSysCpu15minWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_niatelemetry_proc_sys_cpu5min.go b/model_niatelemetry_proc_sys_cpu5min.go index 7bdf34bc58..6d4bad3922 100644 --- a/model_niatelemetry_proc_sys_cpu5min.go +++ b/model_niatelemetry_proc_sys_cpu5min.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -84,6 +84,11 @@ func (o *NiatelemetryProcSysCpu5min) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "niatelemetry.ProcSysCpu5min" of the ClassId field. +func (o *NiatelemetryProcSysCpu5min) GetDefaultClassId() interface{} { + return "niatelemetry.ProcSysCpu5min" +} + // GetObjectType returns the ObjectType field value func (o *NiatelemetryProcSysCpu5min) GetObjectType() string { if o == nil { @@ -108,6 +113,11 @@ func (o *NiatelemetryProcSysCpu5min) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "niatelemetry.ProcSysCpu5min" of the ObjectType field. +func (o *NiatelemetryProcSysCpu5min) GetDefaultObjectType() interface{} { + return "niatelemetry.ProcSysCpu5min" +} + // GetKernalAvg returns the KernalAvg field value if set, zero value otherwise. func (o *NiatelemetryProcSysCpu5min) GetKernalAvg() string { if o == nil || IsNil(o.KernalAvg) { @@ -190,7 +200,13 @@ func (o NiatelemetryProcSysCpu5min) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.KernalAvg) { toSerialize["KernalAvg"] = o.KernalAvg @@ -215,6 +231,13 @@ func (o *NiatelemetryProcSysCpu5min) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -224,11 +247,23 @@ func (o *NiatelemetryProcSysCpu5min) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type NiatelemetryProcSysCpu5minWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_niatelemetry_proc_sys_mem15min.go b/model_niatelemetry_proc_sys_mem15min.go index 410ae79a5c..5e62ed361d 100644 --- a/model_niatelemetry_proc_sys_mem15min.go +++ b/model_niatelemetry_proc_sys_mem15min.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -84,6 +84,11 @@ func (o *NiatelemetryProcSysMem15min) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "niatelemetry.ProcSysMem15min" of the ClassId field. +func (o *NiatelemetryProcSysMem15min) GetDefaultClassId() interface{} { + return "niatelemetry.ProcSysMem15min" +} + // GetObjectType returns the ObjectType field value func (o *NiatelemetryProcSysMem15min) GetObjectType() string { if o == nil { @@ -108,6 +113,11 @@ func (o *NiatelemetryProcSysMem15min) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "niatelemetry.ProcSysMem15min" of the ObjectType field. +func (o *NiatelemetryProcSysMem15min) GetDefaultObjectType() interface{} { + return "niatelemetry.ProcSysMem15min" +} + // GetFreeAvg returns the FreeAvg field value if set, zero value otherwise. func (o *NiatelemetryProcSysMem15min) GetFreeAvg() string { if o == nil || IsNil(o.FreeAvg) { @@ -190,7 +200,13 @@ func (o NiatelemetryProcSysMem15min) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.FreeAvg) { toSerialize["FreeAvg"] = o.FreeAvg @@ -215,6 +231,13 @@ func (o *NiatelemetryProcSysMem15min) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -224,11 +247,23 @@ func (o *NiatelemetryProcSysMem15min) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type NiatelemetryProcSysMem15minWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_niatelemetry_proc_sys_mem5min.go b/model_niatelemetry_proc_sys_mem5min.go index cabf246d44..0c465bf5c5 100644 --- a/model_niatelemetry_proc_sys_mem5min.go +++ b/model_niatelemetry_proc_sys_mem5min.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -84,6 +84,11 @@ func (o *NiatelemetryProcSysMem5min) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "niatelemetry.ProcSysMem5min" of the ClassId field. +func (o *NiatelemetryProcSysMem5min) GetDefaultClassId() interface{} { + return "niatelemetry.ProcSysMem5min" +} + // GetObjectType returns the ObjectType field value func (o *NiatelemetryProcSysMem5min) GetObjectType() string { if o == nil { @@ -108,6 +113,11 @@ func (o *NiatelemetryProcSysMem5min) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "niatelemetry.ProcSysMem5min" of the ObjectType field. +func (o *NiatelemetryProcSysMem5min) GetDefaultObjectType() interface{} { + return "niatelemetry.ProcSysMem5min" +} + // GetFreeAvg returns the FreeAvg field value if set, zero value otherwise. func (o *NiatelemetryProcSysMem5min) GetFreeAvg() string { if o == nil || IsNil(o.FreeAvg) { @@ -190,7 +200,13 @@ func (o NiatelemetryProcSysMem5min) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.FreeAvg) { toSerialize["FreeAvg"] = o.FreeAvg @@ -215,6 +231,13 @@ func (o *NiatelemetryProcSysMem5min) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -224,11 +247,23 @@ func (o *NiatelemetryProcSysMem5min) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type NiatelemetryProcSysMem5minWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_niatelemetry_site_inventory.go b/model_niatelemetry_site_inventory.go index bfaed56ca6..f36544821b 100644 --- a/model_niatelemetry_site_inventory.go +++ b/model_niatelemetry_site_inventory.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -99,6 +99,11 @@ func (o *NiatelemetrySiteInventory) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "niatelemetry.SiteInventory" of the ClassId field. +func (o *NiatelemetrySiteInventory) GetDefaultClassId() interface{} { + return "niatelemetry.SiteInventory" +} + // GetObjectType returns the ObjectType field value func (o *NiatelemetrySiteInventory) GetObjectType() string { if o == nil { @@ -123,6 +128,11 @@ func (o *NiatelemetrySiteInventory) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "niatelemetry.SiteInventory" of the ObjectType field. +func (o *NiatelemetrySiteInventory) GetDefaultObjectType() interface{} { + return "niatelemetry.SiteInventory" +} + // GetApps returns the Apps field value if set, zero value otherwise (both if not set or set to explicit null). func (o *NiatelemetrySiteInventory) GetApps() []string { if o == nil { @@ -144,7 +154,7 @@ func (o *NiatelemetrySiteInventory) GetAppsOk() ([]string, bool) { // HasApps returns a boolean if a field has been set. func (o *NiatelemetrySiteInventory) HasApps() bool { - if o != nil && IsNil(o.Apps) { + if o != nil && !IsNil(o.Apps) { return true } @@ -273,7 +283,7 @@ func (o *NiatelemetrySiteInventory) GetIpAddressOk() ([]string, bool) { // HasIpAddress returns a boolean if a field has been set. func (o *NiatelemetrySiteInventory) HasIpAddress() bool { - if o != nil && IsNil(o.IpAddress) { + if o != nil && !IsNil(o.IpAddress) { return true } @@ -506,7 +516,13 @@ func (o NiatelemetrySiteInventory) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.Apps != nil { toSerialize["Apps"] = o.Apps @@ -558,6 +574,13 @@ func (o *NiatelemetrySiteInventory) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -567,11 +590,23 @@ func (o *NiatelemetrySiteInventory) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type NiatelemetrySiteInventoryWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_niatelemetry_site_inventory_list.go b/model_niatelemetry_site_inventory_list.go index 5ac422f194..889cca5134 100644 --- a/model_niatelemetry_site_inventory_list.go +++ b/model_niatelemetry_site_inventory_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *NiatelemetrySiteInventoryList) GetResultsOk() ([]NiatelemetrySiteInvent // HasResults returns a boolean if a field has been set. func (o *NiatelemetrySiteInventoryList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *NiatelemetrySiteInventoryList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *NiatelemetrySiteInventoryList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type NiatelemetrySiteInventoryListWithoutEmbeddedStruct struct { // The total number of 'niatelemetry.SiteInventory' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_niatelemetry_site_inventory_response.go b/model_niatelemetry_site_inventory_response.go index 179f54b5b3..ce19c16cd0 100644 --- a/model_niatelemetry_site_inventory_response.go +++ b/model_niatelemetry_site_inventory_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_niatelemetry_sites.go b/model_niatelemetry_sites.go index 3ed7b572c1..824ffcdc6f 100644 --- a/model_niatelemetry_sites.go +++ b/model_niatelemetry_sites.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -86,6 +86,11 @@ func (o *NiatelemetrySites) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "niatelemetry.Sites" of the ClassId field. +func (o *NiatelemetrySites) GetDefaultClassId() interface{} { + return "niatelemetry.Sites" +} + // GetObjectType returns the ObjectType field value func (o *NiatelemetrySites) GetObjectType() string { if o == nil { @@ -110,6 +115,11 @@ func (o *NiatelemetrySites) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "niatelemetry.Sites" of the ObjectType field. +func (o *NiatelemetrySites) GetDefaultObjectType() interface{} { + return "niatelemetry.Sites" +} + // GetName returns the Name field value if set, zero value otherwise. func (o *NiatelemetrySites) GetName() string { if o == nil || IsNil(o.Name) { @@ -224,7 +234,13 @@ func (o NiatelemetrySites) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Name) { toSerialize["Name"] = o.Name @@ -252,6 +268,13 @@ func (o *NiatelemetrySites) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -261,11 +284,23 @@ func (o *NiatelemetrySites) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type NiatelemetrySitesWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_niatelemetry_smart_license.go b/model_niatelemetry_smart_license.go index 55883f7401..eeea08150b 100644 --- a/model_niatelemetry_smart_license.go +++ b/model_niatelemetry_smart_license.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -88,6 +88,11 @@ func (o *NiatelemetrySmartLicense) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "niatelemetry.SmartLicense" of the ClassId field. +func (o *NiatelemetrySmartLicense) GetDefaultClassId() interface{} { + return "niatelemetry.SmartLicense" +} + // GetObjectType returns the ObjectType field value func (o *NiatelemetrySmartLicense) GetObjectType() string { if o == nil { @@ -112,6 +117,11 @@ func (o *NiatelemetrySmartLicense) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "niatelemetry.SmartLicense" of the ObjectType field. +func (o *NiatelemetrySmartLicense) GetDefaultObjectType() interface{} { + return "niatelemetry.SmartLicense" +} + // GetActiveMode returns the ActiveMode field value if set, zero value otherwise. func (o *NiatelemetrySmartLicense) GetActiveMode() string { if o == nil || IsNil(o.ActiveMode) { @@ -258,7 +268,13 @@ func (o NiatelemetrySmartLicense) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.ActiveMode) { toSerialize["ActiveMode"] = o.ActiveMode @@ -289,6 +305,13 @@ func (o *NiatelemetrySmartLicense) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -298,11 +321,23 @@ func (o *NiatelemetrySmartLicense) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type NiatelemetrySmartLicenseWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_niatelemetry_snmp_src.go b/model_niatelemetry_snmp_src.go index c48b3d0a5b..68c51de456 100644 --- a/model_niatelemetry_snmp_src.go +++ b/model_niatelemetry_snmp_src.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -95,6 +95,11 @@ func (o *NiatelemetrySnmpSrc) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "niatelemetry.SnmpSrc" of the ClassId field. +func (o *NiatelemetrySnmpSrc) GetDefaultClassId() interface{} { + return "niatelemetry.SnmpSrc" +} + // GetObjectType returns the ObjectType field value func (o *NiatelemetrySnmpSrc) GetObjectType() string { if o == nil { @@ -119,6 +124,11 @@ func (o *NiatelemetrySnmpSrc) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "niatelemetry.SnmpSrc" of the ObjectType field. +func (o *NiatelemetrySnmpSrc) GetDefaultObjectType() interface{} { + return "niatelemetry.SnmpSrc" +} + // GetCommonPolicy returns the CommonPolicy field value if set, zero value otherwise. func (o *NiatelemetrySnmpSrc) GetCommonPolicy() string { if o == nil || IsNil(o.CommonPolicy) { @@ -404,7 +414,13 @@ func (o NiatelemetrySnmpSrc) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.CommonPolicy) { toSerialize["CommonPolicy"] = o.CommonPolicy @@ -447,6 +463,13 @@ func (o *NiatelemetrySnmpSrc) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -456,11 +479,23 @@ func (o *NiatelemetrySnmpSrc) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type NiatelemetrySnmpSrcWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_niatelemetry_snmp_src_list.go b/model_niatelemetry_snmp_src_list.go index bad1b88a2f..84c1e67e1f 100644 --- a/model_niatelemetry_snmp_src_list.go +++ b/model_niatelemetry_snmp_src_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *NiatelemetrySnmpSrcList) GetResultsOk() ([]NiatelemetrySnmpSrc, bool) { // HasResults returns a boolean if a field has been set. func (o *NiatelemetrySnmpSrcList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *NiatelemetrySnmpSrcList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *NiatelemetrySnmpSrcList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type NiatelemetrySnmpSrcListWithoutEmbeddedStruct struct { // The total number of 'niatelemetry.SnmpSrc' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_niatelemetry_snmp_src_response.go b/model_niatelemetry_snmp_src_response.go index e257562417..05d2761dd3 100644 --- a/model_niatelemetry_snmp_src_response.go +++ b/model_niatelemetry_snmp_src_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_niatelemetry_spine_pol_grp_details.go b/model_niatelemetry_spine_pol_grp_details.go index c359b61f53..9c23d5de64 100644 --- a/model_niatelemetry_spine_pol_grp_details.go +++ b/model_niatelemetry_spine_pol_grp_details.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -99,6 +99,11 @@ func (o *NiatelemetrySpinePolGrpDetails) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "niatelemetry.SpinePolGrpDetails" of the ClassId field. +func (o *NiatelemetrySpinePolGrpDetails) GetDefaultClassId() interface{} { + return "niatelemetry.SpinePolGrpDetails" +} + // GetObjectType returns the ObjectType field value func (o *NiatelemetrySpinePolGrpDetails) GetObjectType() string { if o == nil { @@ -123,6 +128,11 @@ func (o *NiatelemetrySpinePolGrpDetails) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "niatelemetry.SpinePolGrpDetails" of the ObjectType field. +func (o *NiatelemetrySpinePolGrpDetails) GetDefaultObjectType() interface{} { + return "niatelemetry.SpinePolGrpDetails" +} + // GetDn returns the Dn field value if set, zero value otherwise. func (o *NiatelemetrySpinePolGrpDetails) GetDn() string { if o == nil || IsNil(o.Dn) { @@ -472,7 +482,13 @@ func (o NiatelemetrySpinePolGrpDetails) ToMap() (map[string]interface{}, error) if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Dn) { toSerialize["Dn"] = o.Dn @@ -521,6 +537,13 @@ func (o *NiatelemetrySpinePolGrpDetails) UnmarshalJSON(data []byte) (err error) "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -530,11 +553,23 @@ func (o *NiatelemetrySpinePolGrpDetails) UnmarshalJSON(data []byte) (err error) } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type NiatelemetrySpinePolGrpDetailsWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_niatelemetry_spine_pol_grp_details_list.go b/model_niatelemetry_spine_pol_grp_details_list.go index 98f8745c11..4e690c74dd 100644 --- a/model_niatelemetry_spine_pol_grp_details_list.go +++ b/model_niatelemetry_spine_pol_grp_details_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *NiatelemetrySpinePolGrpDetailsList) GetResultsOk() ([]NiatelemetrySpine // HasResults returns a boolean if a field has been set. func (o *NiatelemetrySpinePolGrpDetailsList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *NiatelemetrySpinePolGrpDetailsList) UnmarshalJSON(data []byte) (err err "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *NiatelemetrySpinePolGrpDetailsList) UnmarshalJSON(data []byte) (err err } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type NiatelemetrySpinePolGrpDetailsListWithoutEmbeddedStruct struct { // The total number of 'niatelemetry.SpinePolGrpDetails' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_niatelemetry_spine_pol_grp_details_response.go b/model_niatelemetry_spine_pol_grp_details_response.go index d24174f4ed..f3af488f59 100644 --- a/model_niatelemetry_spine_pol_grp_details_response.go +++ b/model_niatelemetry_spine_pol_grp_details_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_niatelemetry_ssh_version_two.go b/model_niatelemetry_ssh_version_two.go index 7de23517d8..e128a60e82 100644 --- a/model_niatelemetry_ssh_version_two.go +++ b/model_niatelemetry_ssh_version_two.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -97,6 +97,11 @@ func (o *NiatelemetrySshVersionTwo) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "niatelemetry.SshVersionTwo" of the ClassId field. +func (o *NiatelemetrySshVersionTwo) GetDefaultClassId() interface{} { + return "niatelemetry.SshVersionTwo" +} + // GetObjectType returns the ObjectType field value func (o *NiatelemetrySshVersionTwo) GetObjectType() string { if o == nil { @@ -121,6 +126,11 @@ func (o *NiatelemetrySshVersionTwo) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "niatelemetry.SshVersionTwo" of the ObjectType field. +func (o *NiatelemetrySshVersionTwo) GetDefaultObjectType() interface{} { + return "niatelemetry.SshVersionTwo" +} + // GetAdminSt returns the AdminSt field value if set, zero value otherwise. func (o *NiatelemetrySshVersionTwo) GetAdminSt() string { if o == nil || IsNil(o.AdminSt) { @@ -438,7 +448,13 @@ func (o NiatelemetrySshVersionTwo) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.AdminSt) { toSerialize["AdminSt"] = o.AdminSt @@ -484,6 +500,13 @@ func (o *NiatelemetrySshVersionTwo) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -493,11 +516,23 @@ func (o *NiatelemetrySshVersionTwo) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type NiatelemetrySshVersionTwoWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_niatelemetry_ssh_version_two_list.go b/model_niatelemetry_ssh_version_two_list.go index 03d4e1eae9..7cf964e86b 100644 --- a/model_niatelemetry_ssh_version_two_list.go +++ b/model_niatelemetry_ssh_version_two_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *NiatelemetrySshVersionTwoList) GetResultsOk() ([]NiatelemetrySshVersion // HasResults returns a boolean if a field has been set. func (o *NiatelemetrySshVersionTwoList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *NiatelemetrySshVersionTwoList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *NiatelemetrySshVersionTwoList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type NiatelemetrySshVersionTwoListWithoutEmbeddedStruct struct { // The total number of 'niatelemetry.SshVersionTwo' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_niatelemetry_ssh_version_two_response.go b/model_niatelemetry_ssh_version_two_response.go index dbf4784cca..93ce366fb7 100644 --- a/model_niatelemetry_ssh_version_two_response.go +++ b/model_niatelemetry_ssh_version_two_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_niatelemetry_supervisor_module_details.go b/model_niatelemetry_supervisor_module_details.go index aa11614c14..36b8060cfa 100644 --- a/model_niatelemetry_supervisor_module_details.go +++ b/model_niatelemetry_supervisor_module_details.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -95,6 +95,11 @@ func (o *NiatelemetrySupervisorModuleDetails) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "niatelemetry.SupervisorModuleDetails" of the ClassId field. +func (o *NiatelemetrySupervisorModuleDetails) GetDefaultClassId() interface{} { + return "niatelemetry.SupervisorModuleDetails" +} + // GetObjectType returns the ObjectType field value func (o *NiatelemetrySupervisorModuleDetails) GetObjectType() string { if o == nil { @@ -119,6 +124,11 @@ func (o *NiatelemetrySupervisorModuleDetails) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "niatelemetry.SupervisorModuleDetails" of the ObjectType field. +func (o *NiatelemetrySupervisorModuleDetails) GetDefaultObjectType() interface{} { + return "niatelemetry.SupervisorModuleDetails" +} + // GetDn returns the Dn field value if set, zero value otherwise. func (o *NiatelemetrySupervisorModuleDetails) GetDn() string { if o == nil || IsNil(o.Dn) { @@ -404,7 +414,13 @@ func (o NiatelemetrySupervisorModuleDetails) ToMap() (map[string]interface{}, er if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Dn) { toSerialize["Dn"] = o.Dn @@ -447,6 +463,13 @@ func (o *NiatelemetrySupervisorModuleDetails) UnmarshalJSON(data []byte) (err er "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -456,11 +479,23 @@ func (o *NiatelemetrySupervisorModuleDetails) UnmarshalJSON(data []byte) (err er } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type NiatelemetrySupervisorModuleDetailsWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_niatelemetry_supervisor_module_details_list.go b/model_niatelemetry_supervisor_module_details_list.go index 6209d200cd..fb67306dc6 100644 --- a/model_niatelemetry_supervisor_module_details_list.go +++ b/model_niatelemetry_supervisor_module_details_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *NiatelemetrySupervisorModuleDetailsList) GetResultsOk() ([]Niatelemetry // HasResults returns a boolean if a field has been set. func (o *NiatelemetrySupervisorModuleDetailsList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *NiatelemetrySupervisorModuleDetailsList) UnmarshalJSON(data []byte) (er "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *NiatelemetrySupervisorModuleDetailsList) UnmarshalJSON(data []byte) (er } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type NiatelemetrySupervisorModuleDetailsListWithoutEmbeddedStruct struct { // The total number of 'niatelemetry.SupervisorModuleDetails' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_niatelemetry_supervisor_module_details_response.go b/model_niatelemetry_supervisor_module_details_response.go index 056f1f2ea7..e9f877db66 100644 --- a/model_niatelemetry_supervisor_module_details_response.go +++ b/model_niatelemetry_supervisor_module_details_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_niatelemetry_switch_disk_utilization.go b/model_niatelemetry_switch_disk_utilization.go index 83bfbad2b9..fc555ed274 100644 --- a/model_niatelemetry_switch_disk_utilization.go +++ b/model_niatelemetry_switch_disk_utilization.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -88,6 +88,11 @@ func (o *NiatelemetrySwitchDiskUtilization) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "niatelemetry.SwitchDiskUtilization" of the ClassId field. +func (o *NiatelemetrySwitchDiskUtilization) GetDefaultClassId() interface{} { + return "niatelemetry.SwitchDiskUtilization" +} + // GetObjectType returns the ObjectType field value func (o *NiatelemetrySwitchDiskUtilization) GetObjectType() string { if o == nil { @@ -112,6 +117,11 @@ func (o *NiatelemetrySwitchDiskUtilization) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "niatelemetry.SwitchDiskUtilization" of the ObjectType field. +func (o *NiatelemetrySwitchDiskUtilization) GetDefaultObjectType() interface{} { + return "niatelemetry.SwitchDiskUtilization" +} + // GetAvail returns the Avail field value if set, zero value otherwise. func (o *NiatelemetrySwitchDiskUtilization) GetAvail() string { if o == nil || IsNil(o.Avail) { @@ -258,7 +268,13 @@ func (o NiatelemetrySwitchDiskUtilization) ToMap() (map[string]interface{}, erro if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Avail) { toSerialize["Avail"] = o.Avail @@ -289,6 +305,13 @@ func (o *NiatelemetrySwitchDiskUtilization) UnmarshalJSON(data []byte) (err erro "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -298,11 +321,23 @@ func (o *NiatelemetrySwitchDiskUtilization) UnmarshalJSON(data []byte) (err erro } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type NiatelemetrySwitchDiskUtilizationWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_niatelemetry_syslog_remote_dest.go b/model_niatelemetry_syslog_remote_dest.go index 2266b2c054..a601ba5b47 100644 --- a/model_niatelemetry_syslog_remote_dest.go +++ b/model_niatelemetry_syslog_remote_dest.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -99,6 +99,11 @@ func (o *NiatelemetrySyslogRemoteDest) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "niatelemetry.SyslogRemoteDest" of the ClassId field. +func (o *NiatelemetrySyslogRemoteDest) GetDefaultClassId() interface{} { + return "niatelemetry.SyslogRemoteDest" +} + // GetObjectType returns the ObjectType field value func (o *NiatelemetrySyslogRemoteDest) GetObjectType() string { if o == nil { @@ -123,6 +128,11 @@ func (o *NiatelemetrySyslogRemoteDest) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "niatelemetry.SyslogRemoteDest" of the ObjectType field. +func (o *NiatelemetrySyslogRemoteDest) GetDefaultObjectType() interface{} { + return "niatelemetry.SyslogRemoteDest" +} + // GetAdminState returns the AdminState field value if set, zero value otherwise. func (o *NiatelemetrySyslogRemoteDest) GetAdminState() string { if o == nil || IsNil(o.AdminState) { @@ -472,7 +482,13 @@ func (o NiatelemetrySyslogRemoteDest) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.AdminState) { toSerialize["AdminState"] = o.AdminState @@ -521,6 +537,13 @@ func (o *NiatelemetrySyslogRemoteDest) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -530,11 +553,23 @@ func (o *NiatelemetrySyslogRemoteDest) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type NiatelemetrySyslogRemoteDestWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_niatelemetry_syslog_remote_dest_list.go b/model_niatelemetry_syslog_remote_dest_list.go index f29378f2b1..a97af9dca8 100644 --- a/model_niatelemetry_syslog_remote_dest_list.go +++ b/model_niatelemetry_syslog_remote_dest_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *NiatelemetrySyslogRemoteDestList) GetResultsOk() ([]NiatelemetrySyslogR // HasResults returns a boolean if a field has been set. func (o *NiatelemetrySyslogRemoteDestList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *NiatelemetrySyslogRemoteDestList) UnmarshalJSON(data []byte) (err error "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *NiatelemetrySyslogRemoteDestList) UnmarshalJSON(data []byte) (err error } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type NiatelemetrySyslogRemoteDestListWithoutEmbeddedStruct struct { // The total number of 'niatelemetry.SyslogRemoteDest' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_niatelemetry_syslog_remote_dest_response.go b/model_niatelemetry_syslog_remote_dest_response.go index 278265cfc0..b59365dc2c 100644 --- a/model_niatelemetry_syslog_remote_dest_response.go +++ b/model_niatelemetry_syslog_remote_dest_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_niatelemetry_syslog_sys_msg.go b/model_niatelemetry_syslog_sys_msg.go index ff2d4973d5..ba453e2499 100644 --- a/model_niatelemetry_syslog_sys_msg.go +++ b/model_niatelemetry_syslog_sys_msg.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -93,6 +93,11 @@ func (o *NiatelemetrySyslogSysMsg) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "niatelemetry.SyslogSysMsg" of the ClassId field. +func (o *NiatelemetrySyslogSysMsg) GetDefaultClassId() interface{} { + return "niatelemetry.SyslogSysMsg" +} + // GetObjectType returns the ObjectType field value func (o *NiatelemetrySyslogSysMsg) GetObjectType() string { if o == nil { @@ -117,6 +122,11 @@ func (o *NiatelemetrySyslogSysMsg) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "niatelemetry.SyslogSysMsg" of the ObjectType field. +func (o *NiatelemetrySyslogSysMsg) GetDefaultObjectType() interface{} { + return "niatelemetry.SyslogSysMsg" +} + // GetCommonPolicy returns the CommonPolicy field value if set, zero value otherwise. func (o *NiatelemetrySyslogSysMsg) GetCommonPolicy() string { if o == nil || IsNil(o.CommonPolicy) { @@ -370,7 +380,13 @@ func (o NiatelemetrySyslogSysMsg) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.CommonPolicy) { toSerialize["CommonPolicy"] = o.CommonPolicy @@ -410,6 +426,13 @@ func (o *NiatelemetrySyslogSysMsg) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -419,11 +442,23 @@ func (o *NiatelemetrySyslogSysMsg) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type NiatelemetrySyslogSysMsgWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_niatelemetry_syslog_sys_msg_fac_filter.go b/model_niatelemetry_syslog_sys_msg_fac_filter.go index 6efce327b1..48b4802cf2 100644 --- a/model_niatelemetry_syslog_sys_msg_fac_filter.go +++ b/model_niatelemetry_syslog_sys_msg_fac_filter.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -97,6 +97,11 @@ func (o *NiatelemetrySyslogSysMsgFacFilter) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "niatelemetry.SyslogSysMsgFacFilter" of the ClassId field. +func (o *NiatelemetrySyslogSysMsgFacFilter) GetDefaultClassId() interface{} { + return "niatelemetry.SyslogSysMsgFacFilter" +} + // GetObjectType returns the ObjectType field value func (o *NiatelemetrySyslogSysMsgFacFilter) GetObjectType() string { if o == nil { @@ -121,6 +126,11 @@ func (o *NiatelemetrySyslogSysMsgFacFilter) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "niatelemetry.SyslogSysMsgFacFilter" of the ObjectType field. +func (o *NiatelemetrySyslogSysMsgFacFilter) GetDefaultObjectType() interface{} { + return "niatelemetry.SyslogSysMsgFacFilter" +} + // GetCommonPolicy returns the CommonPolicy field value if set, zero value otherwise. func (o *NiatelemetrySyslogSysMsgFacFilter) GetCommonPolicy() string { if o == nil || IsNil(o.CommonPolicy) { @@ -438,7 +448,13 @@ func (o NiatelemetrySyslogSysMsgFacFilter) ToMap() (map[string]interface{}, erro if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.CommonPolicy) { toSerialize["CommonPolicy"] = o.CommonPolicy @@ -484,6 +500,13 @@ func (o *NiatelemetrySyslogSysMsgFacFilter) UnmarshalJSON(data []byte) (err erro "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -493,11 +516,23 @@ func (o *NiatelemetrySyslogSysMsgFacFilter) UnmarshalJSON(data []byte) (err erro } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type NiatelemetrySyslogSysMsgFacFilterWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_niatelemetry_syslog_sys_msg_fac_filter_list.go b/model_niatelemetry_syslog_sys_msg_fac_filter_list.go index 42029465b3..ffb4b16868 100644 --- a/model_niatelemetry_syslog_sys_msg_fac_filter_list.go +++ b/model_niatelemetry_syslog_sys_msg_fac_filter_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *NiatelemetrySyslogSysMsgFacFilterList) GetResultsOk() ([]NiatelemetrySy // HasResults returns a boolean if a field has been set. func (o *NiatelemetrySyslogSysMsgFacFilterList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *NiatelemetrySyslogSysMsgFacFilterList) UnmarshalJSON(data []byte) (err "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *NiatelemetrySyslogSysMsgFacFilterList) UnmarshalJSON(data []byte) (err } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type NiatelemetrySyslogSysMsgFacFilterListWithoutEmbeddedStruct struct { // The total number of 'niatelemetry.SyslogSysMsgFacFilter' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_niatelemetry_syslog_sys_msg_fac_filter_response.go b/model_niatelemetry_syslog_sys_msg_fac_filter_response.go index 50fbb9c280..a9b3403d88 100644 --- a/model_niatelemetry_syslog_sys_msg_fac_filter_response.go +++ b/model_niatelemetry_syslog_sys_msg_fac_filter_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_niatelemetry_syslog_sys_msg_list.go b/model_niatelemetry_syslog_sys_msg_list.go index 68d05c1e24..bb2e16e0cd 100644 --- a/model_niatelemetry_syslog_sys_msg_list.go +++ b/model_niatelemetry_syslog_sys_msg_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *NiatelemetrySyslogSysMsgList) GetResultsOk() ([]NiatelemetrySyslogSysMs // HasResults returns a boolean if a field has been set. func (o *NiatelemetrySyslogSysMsgList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *NiatelemetrySyslogSysMsgList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *NiatelemetrySyslogSysMsgList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type NiatelemetrySyslogSysMsgListWithoutEmbeddedStruct struct { // The total number of 'niatelemetry.SyslogSysMsg' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_niatelemetry_syslog_sys_msg_response.go b/model_niatelemetry_syslog_sys_msg_response.go index 6acbb92fb0..98dba15cb1 100644 --- a/model_niatelemetry_syslog_sys_msg_response.go +++ b/model_niatelemetry_syslog_sys_msg_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_niatelemetry_system_controller_details.go b/model_niatelemetry_system_controller_details.go index 4c7604c06e..dba3264681 100644 --- a/model_niatelemetry_system_controller_details.go +++ b/model_niatelemetry_system_controller_details.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -95,6 +95,11 @@ func (o *NiatelemetrySystemControllerDetails) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "niatelemetry.SystemControllerDetails" of the ClassId field. +func (o *NiatelemetrySystemControllerDetails) GetDefaultClassId() interface{} { + return "niatelemetry.SystemControllerDetails" +} + // GetObjectType returns the ObjectType field value func (o *NiatelemetrySystemControllerDetails) GetObjectType() string { if o == nil { @@ -119,6 +124,11 @@ func (o *NiatelemetrySystemControllerDetails) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "niatelemetry.SystemControllerDetails" of the ObjectType field. +func (o *NiatelemetrySystemControllerDetails) GetDefaultObjectType() interface{} { + return "niatelemetry.SystemControllerDetails" +} + // GetDn returns the Dn field value if set, zero value otherwise. func (o *NiatelemetrySystemControllerDetails) GetDn() string { if o == nil || IsNil(o.Dn) { @@ -404,7 +414,13 @@ func (o NiatelemetrySystemControllerDetails) ToMap() (map[string]interface{}, er if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Dn) { toSerialize["Dn"] = o.Dn @@ -447,6 +463,13 @@ func (o *NiatelemetrySystemControllerDetails) UnmarshalJSON(data []byte) (err er "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -456,11 +479,23 @@ func (o *NiatelemetrySystemControllerDetails) UnmarshalJSON(data []byte) (err er } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type NiatelemetrySystemControllerDetailsWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_niatelemetry_system_controller_details_list.go b/model_niatelemetry_system_controller_details_list.go index 2617d619e6..8914f12485 100644 --- a/model_niatelemetry_system_controller_details_list.go +++ b/model_niatelemetry_system_controller_details_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *NiatelemetrySystemControllerDetailsList) GetResultsOk() ([]Niatelemetry // HasResults returns a boolean if a field has been set. func (o *NiatelemetrySystemControllerDetailsList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *NiatelemetrySystemControllerDetailsList) UnmarshalJSON(data []byte) (er "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *NiatelemetrySystemControllerDetailsList) UnmarshalJSON(data []byte) (er } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type NiatelemetrySystemControllerDetailsListWithoutEmbeddedStruct struct { // The total number of 'niatelemetry.SystemControllerDetails' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_niatelemetry_system_controller_details_response.go b/model_niatelemetry_system_controller_details_response.go index 4d9df75aad..0edaba7ba9 100644 --- a/model_niatelemetry_system_controller_details_response.go +++ b/model_niatelemetry_system_controller_details_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_niatelemetry_tenant.go b/model_niatelemetry_tenant.go index ea1f85da56..8347cf19ec 100644 --- a/model_niatelemetry_tenant.go +++ b/model_niatelemetry_tenant.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -159,6 +159,11 @@ func (o *NiatelemetryTenant) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "niatelemetry.Tenant" of the ClassId field. +func (o *NiatelemetryTenant) GetDefaultClassId() interface{} { + return "niatelemetry.Tenant" +} + // GetObjectType returns the ObjectType field value func (o *NiatelemetryTenant) GetObjectType() string { if o == nil { @@ -183,6 +188,11 @@ func (o *NiatelemetryTenant) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "niatelemetry.Tenant" of the ObjectType field. +func (o *NiatelemetryTenant) GetDefaultObjectType() interface{} { + return "niatelemetry.Tenant" +} + // GetBfdIfPolCount returns the BfdIfPolCount field value if set, zero value otherwise. func (o *NiatelemetryTenant) GetBfdIfPolCount() int64 { if o == nil || IsNil(o.BfdIfPolCount) { @@ -1492,7 +1502,13 @@ func (o NiatelemetryTenant) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.BfdIfPolCount) { toSerialize["BfdIfPolCount"] = o.BfdIfPolCount @@ -1631,6 +1647,13 @@ func (o *NiatelemetryTenant) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -1640,11 +1663,23 @@ func (o *NiatelemetryTenant) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type NiatelemetryTenantWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_niatelemetry_tenant_list.go b/model_niatelemetry_tenant_list.go index 5efb3f49da..7e5f11dd5d 100644 --- a/model_niatelemetry_tenant_list.go +++ b/model_niatelemetry_tenant_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *NiatelemetryTenantList) GetResultsOk() ([]NiatelemetryTenant, bool) { // HasResults returns a boolean if a field has been set. func (o *NiatelemetryTenantList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *NiatelemetryTenantList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *NiatelemetryTenantList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type NiatelemetryTenantListWithoutEmbeddedStruct struct { // The total number of 'niatelemetry.Tenant' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_niatelemetry_tenant_response.go b/model_niatelemetry_tenant_response.go index 99e1cb73ab..1204e1017f 100644 --- a/model_niatelemetry_tenant_response.go +++ b/model_niatelemetry_tenant_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_niatelemetry_vni_status.go b/model_niatelemetry_vni_status.go index f04172b42d..e708514a3e 100644 --- a/model_niatelemetry_vni_status.go +++ b/model_niatelemetry_vni_status.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -86,6 +86,11 @@ func (o *NiatelemetryVniStatus) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "niatelemetry.VniStatus" of the ClassId field. +func (o *NiatelemetryVniStatus) GetDefaultClassId() interface{} { + return "niatelemetry.VniStatus" +} + // GetObjectType returns the ObjectType field value func (o *NiatelemetryVniStatus) GetObjectType() string { if o == nil { @@ -110,6 +115,11 @@ func (o *NiatelemetryVniStatus) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "niatelemetry.VniStatus" of the ObjectType field. +func (o *NiatelemetryVniStatus) GetDefaultObjectType() interface{} { + return "niatelemetry.VniStatus" +} + // GetVni returns the Vni field value if set, zero value otherwise. func (o *NiatelemetryVniStatus) GetVni() string { if o == nil || IsNil(o.Vni) { @@ -224,7 +234,13 @@ func (o NiatelemetryVniStatus) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Vni) { toSerialize["Vni"] = o.Vni @@ -252,6 +268,13 @@ func (o *NiatelemetryVniStatus) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -261,11 +284,23 @@ func (o *NiatelemetryVniStatus) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type NiatelemetryVniStatusWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_niatelemetry_vpc_details.go b/model_niatelemetry_vpc_details.go index 77b911573f..02d23591d7 100644 --- a/model_niatelemetry_vpc_details.go +++ b/model_niatelemetry_vpc_details.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -86,6 +86,11 @@ func (o *NiatelemetryVpcDetails) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "niatelemetry.VpcDetails" of the ClassId field. +func (o *NiatelemetryVpcDetails) GetDefaultClassId() interface{} { + return "niatelemetry.VpcDetails" +} + // GetObjectType returns the ObjectType field value func (o *NiatelemetryVpcDetails) GetObjectType() string { if o == nil { @@ -110,6 +115,11 @@ func (o *NiatelemetryVpcDetails) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "niatelemetry.VpcDetails" of the ObjectType field. +func (o *NiatelemetryVpcDetails) GetDefaultObjectType() interface{} { + return "niatelemetry.VpcDetails" +} + // GetIsVpcConfigured returns the IsVpcConfigured field value if set, zero value otherwise. func (o *NiatelemetryVpcDetails) GetIsVpcConfigured() bool { if o == nil || IsNil(o.IsVpcConfigured) { @@ -224,7 +234,13 @@ func (o NiatelemetryVpcDetails) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.IsVpcConfigured) { toSerialize["IsVpcConfigured"] = o.IsVpcConfigured @@ -252,6 +268,13 @@ func (o *NiatelemetryVpcDetails) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -261,11 +284,23 @@ func (o *NiatelemetryVpcDetails) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type NiatelemetryVpcDetailsWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_notification_abstract_condition.go b/model_notification_abstract_condition.go index 06f6af2f7d..cdbf2c99c7 100644 --- a/model_notification_abstract_condition.go +++ b/model_notification_abstract_condition.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -83,6 +83,10 @@ func (o *NotificationAbstractCondition) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -92,11 +96,23 @@ func (o *NotificationAbstractCondition) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type NotificationAbstractConditionWithoutEmbeddedStruct struct { } diff --git a/model_notification_abstract_mo_condition.go b/model_notification_abstract_mo_condition.go index f8ed503db2..dd1206e368 100644 --- a/model_notification_abstract_mo_condition.go +++ b/model_notification_abstract_mo_condition.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -190,7 +190,7 @@ func (o *NotificationAbstractMoCondition) GetOperationsOk() ([]string, bool) { // HasOperations returns a boolean if a field has been set. func (o *NotificationAbstractMoCondition) HasOperations() bool { - if o != nil && IsNil(o.Operations) { + if o != nil && !IsNil(o.Operations) { return true } @@ -248,6 +248,10 @@ func (o *NotificationAbstractMoCondition) UnmarshalJSON(data []byte) (err error) "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -257,11 +261,23 @@ func (o *NotificationAbstractMoCondition) UnmarshalJSON(data []byte) (err error) } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type NotificationAbstractMoConditionWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. The enum values provides the list of concrete types that can be instantiated from this abstract type. ClassId string `json:"ClassId"` diff --git a/model_notification_account_subscription.go b/model_notification_account_subscription.go index 55d8e21ffa..5c5f57351d 100644 --- a/model_notification_account_subscription.go +++ b/model_notification_account_subscription.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -29,7 +29,7 @@ type NotificationAccountSubscription struct { // The fully-qualified name of the instantiated, concrete type. The value should be the same as the 'ClassId' property. ObjectType string `json:"ObjectType"` // The name of the subscription. - Name *string `json:"Name,omitempty"` + Name *string `json:"Name,omitempty" validate:"regexp=^[a-zA-Z0-9_.-]{1,64}$"` // The chosen subscription type imposes it is own validation rules. When 'email' type is chosen, actions array can contain only one entry and it is entry should be of can be only notification.SendEmail; conditions can contain only notification.AlarmMoCondition and condition types should be unique. When the 'webhook' type is chosen, the actions array can contain only one entry and it is entry should be of can be only notification.TriggerWebhook; conditions can contain up to a limited amount of entries and all of them should be of type notification.MoCondition. * `email` - Email type requires usage of notification.SendEmail complex types for actionsand notification.AlarmMoCondition complex types for conditions. * `webhook` - Webhook type requires usage of notification.TriggerWebhook complex types for actionsand notification.MoCondition complex types for conditions. Type *string `json:"Type,omitempty"` // Used to verify the actions of the Subscription MO. For a 'webhook' type Ping event is sent to verify that the webhook server is accessible. For an 'email' type there will be a verification email sent. * `none` - No actions will be verified. Default value. * `all` - All actions will be re-verified. The previous state of the verification will be preserved. @@ -95,6 +95,11 @@ func (o *NotificationAccountSubscription) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "notification.AccountSubscription" of the ClassId field. +func (o *NotificationAccountSubscription) GetDefaultClassId() interface{} { + return "notification.AccountSubscription" +} + // GetObjectType returns the ObjectType field value func (o *NotificationAccountSubscription) GetObjectType() string { if o == nil { @@ -119,6 +124,11 @@ func (o *NotificationAccountSubscription) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "notification.AccountSubscription" of the ObjectType field. +func (o *NotificationAccountSubscription) GetDefaultObjectType() interface{} { + return "notification.AccountSubscription" +} + // GetName returns the Name field value if set, zero value otherwise. func (o *NotificationAccountSubscription) GetName() string { if o == nil || IsNil(o.Name) { @@ -276,7 +286,13 @@ func (o NotificationAccountSubscription) ToMap() (map[string]interface{}, error) if errNotificationSubscription != nil { return map[string]interface{}{}, errNotificationSubscription } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Name) { toSerialize["Name"] = o.Name @@ -307,6 +323,13 @@ func (o *NotificationAccountSubscription) UnmarshalJSON(data []byte) (err error) "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -316,18 +339,30 @@ func (o *NotificationAccountSubscription) UnmarshalJSON(data []byte) (err error) } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type NotificationAccountSubscriptionWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` // The fully-qualified name of the instantiated, concrete type. The value should be the same as the 'ClassId' property. ObjectType string `json:"ObjectType"` // The name of the subscription. - Name *string `json:"Name,omitempty"` + Name *string `json:"Name,omitempty" validate:"regexp=^[a-zA-Z0-9_.-]{1,64}$"` // The chosen subscription type imposes it is own validation rules. When 'email' type is chosen, actions array can contain only one entry and it is entry should be of can be only notification.SendEmail; conditions can contain only notification.AlarmMoCondition and condition types should be unique. When the 'webhook' type is chosen, the actions array can contain only one entry and it is entry should be of can be only notification.TriggerWebhook; conditions can contain up to a limited amount of entries and all of them should be of type notification.MoCondition. * `email` - Email type requires usage of notification.SendEmail complex types for actionsand notification.AlarmMoCondition complex types for conditions. * `webhook` - Webhook type requires usage of notification.TriggerWebhook complex types for actionsand notification.MoCondition complex types for conditions. Type *string `json:"Type,omitempty"` // Used to verify the actions of the Subscription MO. For a 'webhook' type Ping event is sent to verify that the webhook server is accessible. For an 'email' type there will be a verification email sent. * `none` - No actions will be verified. Default value. * `all` - All actions will be re-verified. The previous state of the verification will be preserved. diff --git a/model_notification_account_subscription_list.go b/model_notification_account_subscription_list.go index d023e24163..5c6254dd64 100644 --- a/model_notification_account_subscription_list.go +++ b/model_notification_account_subscription_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *NotificationAccountSubscriptionList) GetResultsOk() ([]NotificationAcco // HasResults returns a boolean if a field has been set. func (o *NotificationAccountSubscriptionList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *NotificationAccountSubscriptionList) UnmarshalJSON(data []byte) (err er "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *NotificationAccountSubscriptionList) UnmarshalJSON(data []byte) (err er } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type NotificationAccountSubscriptionListWithoutEmbeddedStruct struct { // The total number of 'notification.AccountSubscription' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_notification_account_subscription_response.go b/model_notification_account_subscription_response.go index e851651c90..8940483772 100644 --- a/model_notification_account_subscription_response.go +++ b/model_notification_account_subscription_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_notification_action.go b/model_notification_action.go index 4a4337fdaa..9b6456521d 100644 --- a/model_notification_action.go +++ b/model_notification_action.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -83,6 +83,10 @@ func (o *NotificationAction) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -92,11 +96,23 @@ func (o *NotificationAction) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type NotificationActionWithoutEmbeddedStruct struct { } diff --git a/model_notification_aggregation_settings.go b/model_notification_aggregation_settings.go index 25bb4d6975..b5512f5117 100644 --- a/model_notification_aggregation_settings.go +++ b/model_notification_aggregation_settings.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -88,6 +88,11 @@ func (o *NotificationAggregationSettings) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "notification.AggregationSettings" of the ClassId field. +func (o *NotificationAggregationSettings) GetDefaultClassId() interface{} { + return "notification.AggregationSettings" +} + // GetObjectType returns the ObjectType field value func (o *NotificationAggregationSettings) GetObjectType() string { if o == nil { @@ -112,6 +117,11 @@ func (o *NotificationAggregationSettings) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "notification.AggregationSettings" of the ObjectType field. +func (o *NotificationAggregationSettings) GetDefaultObjectType() interface{} { + return "notification.AggregationSettings" +} + // GetEnabled returns the Enabled field value if set, zero value otherwise. func (o *NotificationAggregationSettings) GetEnabled() bool { if o == nil || IsNil(o.Enabled) { @@ -258,7 +268,13 @@ func (o NotificationAggregationSettings) ToMap() (map[string]interface{}, error) if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Enabled) { toSerialize["Enabled"] = o.Enabled @@ -289,6 +305,13 @@ func (o *NotificationAggregationSettings) UnmarshalJSON(data []byte) (err error) "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -298,11 +321,23 @@ func (o *NotificationAggregationSettings) UnmarshalJSON(data []byte) (err error) } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type NotificationAggregationSettingsWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_notification_alarm_mo_condition.go b/model_notification_alarm_mo_condition.go index deeb2c7177..56668b0f34 100644 --- a/model_notification_alarm_mo_condition.go +++ b/model_notification_alarm_mo_condition.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -83,6 +83,11 @@ func (o *NotificationAlarmMoCondition) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "notification.AlarmMoCondition" of the ClassId field. +func (o *NotificationAlarmMoCondition) GetDefaultClassId() interface{} { + return "notification.AlarmMoCondition" +} + // GetObjectType returns the ObjectType field value func (o *NotificationAlarmMoCondition) GetObjectType() string { if o == nil { @@ -107,6 +112,11 @@ func (o *NotificationAlarmMoCondition) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "notification.AlarmMoCondition" of the ObjectType field. +func (o *NotificationAlarmMoCondition) GetDefaultObjectType() interface{} { + return "notification.AlarmMoCondition" +} + // GetOdataFilter returns the OdataFilter field value if set, zero value otherwise. func (o *NotificationAlarmMoCondition) GetOdataFilter() string { if o == nil || IsNil(o.OdataFilter) { @@ -160,7 +170,7 @@ func (o *NotificationAlarmMoCondition) GetSeverityOk() ([]string, bool) { // HasSeverity returns a boolean if a field has been set. func (o *NotificationAlarmMoCondition) HasSeverity() bool { - if o != nil && IsNil(o.Severity) { + if o != nil && !IsNil(o.Severity) { return true } @@ -190,7 +200,13 @@ func (o NotificationAlarmMoCondition) ToMap() (map[string]interface{}, error) { if errNotificationAbstractMoCondition != nil { return map[string]interface{}{}, errNotificationAbstractMoCondition } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.OdataFilter) { toSerialize["OdataFilter"] = o.OdataFilter @@ -215,6 +231,13 @@ func (o *NotificationAlarmMoCondition) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -224,11 +247,23 @@ func (o *NotificationAlarmMoCondition) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type NotificationAlarmMoConditionWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_notification_distributable_mo_condition.go b/model_notification_distributable_mo_condition.go index ff77b7e443..c6b627cd86 100644 --- a/model_notification_distributable_mo_condition.go +++ b/model_notification_distributable_mo_condition.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -88,6 +88,11 @@ func (o *NotificationDistributableMoCondition) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "notification.DistributableMoCondition" of the ClassId field. +func (o *NotificationDistributableMoCondition) GetDefaultClassId() interface{} { + return "notification.DistributableMoCondition" +} + // GetObjectType returns the ObjectType field value func (o *NotificationDistributableMoCondition) GetObjectType() string { if o == nil { @@ -112,6 +117,11 @@ func (o *NotificationDistributableMoCondition) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "notification.DistributableMoCondition" of the ObjectType field. +func (o *NotificationDistributableMoCondition) GetDefaultObjectType() interface{} { + return "notification.DistributableMoCondition" +} + // GetImageType returns the ImageType field value if set, zero value otherwise. func (o *NotificationDistributableMoCondition) GetImageType() string { if o == nil || IsNil(o.ImageType) { @@ -194,7 +204,13 @@ func (o NotificationDistributableMoCondition) ToMap() (map[string]interface{}, e if errNotificationAbstractMoCondition != nil { return map[string]interface{}{}, errNotificationAbstractMoCondition } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.ImageType) { toSerialize["ImageType"] = o.ImageType @@ -219,6 +235,13 @@ func (o *NotificationDistributableMoCondition) UnmarshalJSON(data []byte) (err e "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -228,11 +251,23 @@ func (o *NotificationDistributableMoCondition) UnmarshalJSON(data []byte) (err e } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type NotificationDistributableMoConditionWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_notification_mo_condition.go b/model_notification_mo_condition.go index c2e956ea3b..9e34b989a8 100644 --- a/model_notification_mo_condition.go +++ b/model_notification_mo_condition.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -82,6 +82,11 @@ func (o *NotificationMoCondition) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "notification.MoCondition" of the ClassId field. +func (o *NotificationMoCondition) GetDefaultClassId() interface{} { + return "notification.MoCondition" +} + // GetObjectType returns the ObjectType field value func (o *NotificationMoCondition) GetObjectType() string { if o == nil { @@ -106,6 +111,11 @@ func (o *NotificationMoCondition) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "notification.MoCondition" of the ObjectType field. +func (o *NotificationMoCondition) GetDefaultObjectType() interface{} { + return "notification.MoCondition" +} + // GetOdataFilter returns the OdataFilter field value if set, zero value otherwise. func (o *NotificationMoCondition) GetOdataFilter() string { if o == nil || IsNil(o.OdataFilter) { @@ -156,7 +166,13 @@ func (o NotificationMoCondition) ToMap() (map[string]interface{}, error) { if errNotificationAbstractMoCondition != nil { return map[string]interface{}{}, errNotificationAbstractMoCondition } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.OdataFilter) { toSerialize["OdataFilter"] = o.OdataFilter @@ -178,6 +194,13 @@ func (o *NotificationMoCondition) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -187,11 +210,23 @@ func (o *NotificationMoCondition) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type NotificationMoConditionWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_notification_send_email.go b/model_notification_send_email.go index 1e093dc5a2..198161ba2c 100644 --- a/model_notification_send_email.go +++ b/model_notification_send_email.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -82,6 +82,11 @@ func (o *NotificationSendEmail) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "notification.SendEmail" of the ClassId field. +func (o *NotificationSendEmail) GetDefaultClassId() interface{} { + return "notification.SendEmail" +} + // GetObjectType returns the ObjectType field value func (o *NotificationSendEmail) GetObjectType() string { if o == nil { @@ -106,6 +111,11 @@ func (o *NotificationSendEmail) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "notification.SendEmail" of the ObjectType field. +func (o *NotificationSendEmail) GetDefaultObjectType() interface{} { + return "notification.SendEmail" +} + // GetEmail returns the Email field value if set, zero value otherwise. func (o *NotificationSendEmail) GetEmail() string { if o == nil || IsNil(o.Email) { @@ -156,7 +166,13 @@ func (o NotificationSendEmail) ToMap() (map[string]interface{}, error) { if errNotificationAction != nil { return map[string]interface{}{}, errNotificationAction } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Email) { toSerialize["Email"] = o.Email @@ -178,6 +194,13 @@ func (o *NotificationSendEmail) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -187,11 +210,23 @@ func (o *NotificationSendEmail) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type NotificationSendEmailWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_notification_software_release_meta_mo_condition.go b/model_notification_software_release_meta_mo_condition.go index 684153fa5f..7043489511 100644 --- a/model_notification_software_release_meta_mo_condition.go +++ b/model_notification_software_release_meta_mo_condition.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -83,6 +83,11 @@ func (o *NotificationSoftwareReleaseMetaMoCondition) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "notification.SoftwareReleaseMetaMoCondition" of the ClassId field. +func (o *NotificationSoftwareReleaseMetaMoCondition) GetDefaultClassId() interface{} { + return "notification.SoftwareReleaseMetaMoCondition" +} + // GetObjectType returns the ObjectType field value func (o *NotificationSoftwareReleaseMetaMoCondition) GetObjectType() string { if o == nil { @@ -107,6 +112,11 @@ func (o *NotificationSoftwareReleaseMetaMoCondition) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "notification.SoftwareReleaseMetaMoCondition" of the ObjectType field. +func (o *NotificationSoftwareReleaseMetaMoCondition) GetDefaultObjectType() interface{} { + return "notification.SoftwareReleaseMetaMoCondition" +} + // GetImageTypes returns the ImageTypes field value if set, zero value otherwise (both if not set or set to explicit null). func (o *NotificationSoftwareReleaseMetaMoCondition) GetImageTypes() []string { if o == nil { @@ -128,7 +138,7 @@ func (o *NotificationSoftwareReleaseMetaMoCondition) GetImageTypesOk() ([]string // HasImageTypes returns a boolean if a field has been set. func (o *NotificationSoftwareReleaseMetaMoCondition) HasImageTypes() bool { - if o != nil && IsNil(o.ImageTypes) { + if o != nil && !IsNil(o.ImageTypes) { return true } @@ -190,7 +200,13 @@ func (o NotificationSoftwareReleaseMetaMoCondition) ToMap() (map[string]interfac if errNotificationAbstractMoCondition != nil { return map[string]interface{}{}, errNotificationAbstractMoCondition } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.ImageTypes != nil { toSerialize["ImageTypes"] = o.ImageTypes @@ -215,6 +231,13 @@ func (o *NotificationSoftwareReleaseMetaMoCondition) UnmarshalJSON(data []byte) "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -224,11 +247,23 @@ func (o *NotificationSoftwareReleaseMetaMoCondition) UnmarshalJSON(data []byte) } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type NotificationSoftwareReleaseMetaMoConditionWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_notification_subscription.go b/model_notification_subscription.go index 8beeedb521..3abf8dd60b 100644 --- a/model_notification_subscription.go +++ b/model_notification_subscription.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -84,6 +84,11 @@ func (o *NotificationSubscription) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "notification.AccountSubscription" of the ClassId field. +func (o *NotificationSubscription) GetDefaultClassId() interface{} { + return "notification.AccountSubscription" +} + // GetObjectType returns the ObjectType field value func (o *NotificationSubscription) GetObjectType() string { if o == nil { @@ -108,6 +113,11 @@ func (o *NotificationSubscription) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "notification.AccountSubscription" of the ObjectType field. +func (o *NotificationSubscription) GetDefaultObjectType() interface{} { + return "notification.AccountSubscription" +} + // GetActions returns the Actions field value if set, zero value otherwise (both if not set or set to explicit null). func (o *NotificationSubscription) GetActions() []NotificationAction { if o == nil { @@ -129,7 +139,7 @@ func (o *NotificationSubscription) GetActionsOk() ([]NotificationAction, bool) { // HasActions returns a boolean if a field has been set. func (o *NotificationSubscription) HasActions() bool { - if o != nil && IsNil(o.Actions) { + if o != nil && !IsNil(o.Actions) { return true } @@ -162,7 +172,7 @@ func (o *NotificationSubscription) GetConditionsOk() ([]NotificationAbstractCond // HasConditions returns a boolean if a field has been set. func (o *NotificationSubscription) HasConditions() bool { - if o != nil && IsNil(o.Conditions) { + if o != nil && !IsNil(o.Conditions) { return true } @@ -224,7 +234,13 @@ func (o NotificationSubscription) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.Actions != nil { toSerialize["Actions"] = o.Actions @@ -252,6 +268,13 @@ func (o *NotificationSubscription) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -261,11 +284,23 @@ func (o *NotificationSubscription) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type NotificationSubscriptionWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. The enum values provides the list of concrete types that can be instantiated from this abstract type. ClassId string `json:"ClassId"` diff --git a/model_notification_trigger_webhook.go b/model_notification_trigger_webhook.go index 2b369bf842..acc3e03b82 100644 --- a/model_notification_trigger_webhook.go +++ b/model_notification_trigger_webhook.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -42,7 +42,7 @@ type NotificationTriggerWebhook struct { // State of the action shows whether this action passes the verification or not. If this property holds 'Inactive' value, this action will not be executed. To verify action again, use the Verify property from the MO. * `Inactive` - Inactive state means action didn't pass the verification and it won't be executed. * `Active` - Active state means that action successfully passed the verification and it is ready to be performed. State *string `json:"State,omitempty"` // Payload URL of the recipient app, which is intended to serve the events that happens in Intersight. - Url *string `json:"Url,omitempty"` + Url *string `json:"Url,omitempty" validate:"regexp=^https:\\/\\/[\\\\w.-]+(?:\\\\.[\\\\w\\\\.-]+)+[\\\\w\\\\-\\\\._~:\\/?#[\\\\]@!\\\\$&'\\\\(\\\\)\\\\*\\\\+,;=.]+$"` AdditionalProperties map[string]interface{} } @@ -95,6 +95,11 @@ func (o *NotificationTriggerWebhook) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "notification.TriggerWebhook" of the ClassId field. +func (o *NotificationTriggerWebhook) GetDefaultClassId() interface{} { + return "notification.TriggerWebhook" +} + // GetObjectType returns the ObjectType field value func (o *NotificationTriggerWebhook) GetObjectType() string { if o == nil { @@ -119,6 +124,11 @@ func (o *NotificationTriggerWebhook) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "notification.TriggerWebhook" of the ObjectType field. +func (o *NotificationTriggerWebhook) GetDefaultObjectType() interface{} { + return "notification.TriggerWebhook" +} + // GetFirstFailedRequest returns the FirstFailedRequest field value if set, zero value otherwise. func (o *NotificationTriggerWebhook) GetFirstFailedRequest() time.Time { if o == nil || IsNil(o.FirstFailedRequest) { @@ -361,7 +371,13 @@ func (o NotificationTriggerWebhook) ToMap() (map[string]interface{}, error) { if errNotificationAction != nil { return map[string]interface{}{}, errNotificationAction } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.FirstFailedRequest) { toSerialize["FirstFailedRequest"] = o.FirstFailedRequest @@ -401,6 +417,13 @@ func (o *NotificationTriggerWebhook) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -410,11 +433,23 @@ func (o *NotificationTriggerWebhook) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type NotificationTriggerWebhookWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` @@ -433,7 +468,7 @@ func (o *NotificationTriggerWebhook) UnmarshalJSON(data []byte) (err error) { // State of the action shows whether this action passes the verification or not. If this property holds 'Inactive' value, this action will not be executed. To verify action again, use the Verify property from the MO. * `Inactive` - Inactive state means action didn't pass the verification and it won't be executed. * `Active` - Active state means that action successfully passed the verification and it is ready to be performed. State *string `json:"State,omitempty"` // Payload URL of the recipient app, which is intended to serve the events that happens in Intersight. - Url *string `json:"Url,omitempty"` + Url *string `json:"Url,omitempty" validate:"regexp=^https:\\/\\/[\\\\w.-]+(?:\\\\.[\\\\w\\\\.-]+)+[\\\\w\\\\-\\\\._~:\\/?#[\\\\]@!\\\\$&'\\\\(\\\\)\\\\*\\\\+,;=.]+$"` } varNotificationTriggerWebhookWithoutEmbeddedStruct := NotificationTriggerWebhookWithoutEmbeddedStruct{} diff --git a/model_ntp_auth_ntp_server.go b/model_ntp_auth_ntp_server.go index 80fabeb0dd..dfa496ea47 100644 --- a/model_ntp_auth_ntp_server.go +++ b/model_ntp_auth_ntp_server.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -92,6 +92,11 @@ func (o *NtpAuthNtpServer) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "ntp.AuthNtpServer" of the ClassId field. +func (o *NtpAuthNtpServer) GetDefaultClassId() interface{} { + return "ntp.AuthNtpServer" +} + // GetObjectType returns the ObjectType field value func (o *NtpAuthNtpServer) GetObjectType() string { if o == nil { @@ -116,6 +121,11 @@ func (o *NtpAuthNtpServer) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "ntp.AuthNtpServer" of the ObjectType field. +func (o *NtpAuthNtpServer) GetDefaultObjectType() interface{} { + return "ntp.AuthNtpServer" +} + // GetKeyType returns the KeyType field value if set, zero value otherwise. func (o *NtpAuthNtpServer) GetKeyType() string { if o == nil || IsNil(o.KeyType) { @@ -262,7 +272,13 @@ func (o NtpAuthNtpServer) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.KeyType) { toSerialize["KeyType"] = o.KeyType @@ -293,6 +309,13 @@ func (o *NtpAuthNtpServer) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -302,11 +325,23 @@ func (o *NtpAuthNtpServer) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type NtpAuthNtpServerWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_ntp_ntp_server.go b/model_ntp_ntp_server.go index 84e4eba21f..e11a78e40d 100644 --- a/model_ntp_ntp_server.go +++ b/model_ntp_ntp_server.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -92,6 +92,11 @@ func (o *NtpNtpServer) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "ntp.NtpServer" of the ClassId field. +func (o *NtpNtpServer) GetDefaultClassId() interface{} { + return "ntp.NtpServer" +} + // GetObjectType returns the ObjectType field value func (o *NtpNtpServer) GetObjectType() string { if o == nil { @@ -116,6 +121,11 @@ func (o *NtpNtpServer) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "ntp.NtpServer" of the ObjectType field. +func (o *NtpNtpServer) GetDefaultObjectType() interface{} { + return "ntp.NtpServer" +} + // GetPoll returns the Poll field value if set, zero value otherwise. func (o *NtpNtpServer) GetPoll() int64 { if o == nil || IsNil(o.Poll) { @@ -380,7 +390,13 @@ func (o NtpNtpServer) ToMap() (map[string]interface{}, error) { if errInventoryBase != nil { return map[string]interface{}{}, errInventoryBase } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Poll) { toSerialize["Poll"] = o.Poll @@ -420,6 +436,13 @@ func (o *NtpNtpServer) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -429,11 +452,23 @@ func (o *NtpNtpServer) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type NtpNtpServerWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_ntp_ntp_server_list.go b/model_ntp_ntp_server_list.go index f5523e7e24..3663ffe9a6 100644 --- a/model_ntp_ntp_server_list.go +++ b/model_ntp_ntp_server_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *NtpNtpServerList) GetResultsOk() ([]NtpNtpServer, bool) { // HasResults returns a boolean if a field has been set. func (o *NtpNtpServerList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *NtpNtpServerList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *NtpNtpServerList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type NtpNtpServerListWithoutEmbeddedStruct struct { // The total number of 'ntp.NtpServer' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_ntp_ntp_server_relationship.go b/model_ntp_ntp_server_relationship.go index edffeb3547..e5c588000b 100644 --- a/model_ntp_ntp_server_relationship.go +++ b/model_ntp_ntp_server_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_ntp_ntp_server_response.go b/model_ntp_ntp_server_response.go index a1e33f3a88..c85ab0647c 100644 --- a/model_ntp_ntp_server_response.go +++ b/model_ntp_ntp_server_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_ntp_policy.go b/model_ntp_policy.go index 323e59882e..e01ec3bce7 100644 --- a/model_ntp_policy.go +++ b/model_ntp_policy.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -98,6 +98,11 @@ func (o *NtpPolicy) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "ntp.Policy" of the ClassId field. +func (o *NtpPolicy) GetDefaultClassId() interface{} { + return "ntp.Policy" +} + // GetObjectType returns the ObjectType field value func (o *NtpPolicy) GetObjectType() string { if o == nil { @@ -122,6 +127,11 @@ func (o *NtpPolicy) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "ntp.Policy" of the ObjectType field. +func (o *NtpPolicy) GetDefaultObjectType() interface{} { + return "ntp.Policy" +} + // GetAuthenticatedNtpServers returns the AuthenticatedNtpServers field value if set, zero value otherwise (both if not set or set to explicit null). func (o *NtpPolicy) GetAuthenticatedNtpServers() []NtpAuthNtpServer { if o == nil { @@ -143,7 +153,7 @@ func (o *NtpPolicy) GetAuthenticatedNtpServersOk() ([]NtpAuthNtpServer, bool) { // HasAuthenticatedNtpServers returns a boolean if a field has been set. func (o *NtpPolicy) HasAuthenticatedNtpServers() bool { - if o != nil && IsNil(o.AuthenticatedNtpServers) { + if o != nil && !IsNil(o.AuthenticatedNtpServers) { return true } @@ -208,7 +218,7 @@ func (o *NtpPolicy) GetNtpServersOk() ([]string, bool) { // HasNtpServers returns a boolean if a field has been set. func (o *NtpPolicy) HasNtpServers() bool { - if o != nil && IsNil(o.NtpServers) { + if o != nil && !IsNil(o.NtpServers) { return true } @@ -359,7 +369,7 @@ func (o *NtpPolicy) GetProfilesOk() ([]PolicyAbstractConfigProfileRelationship, // HasProfiles returns a boolean if a field has been set. func (o *NtpPolicy) HasProfiles() bool { - if o != nil && IsNil(o.Profiles) { + if o != nil && !IsNil(o.Profiles) { return true } @@ -389,7 +399,13 @@ func (o NtpPolicy) ToMap() (map[string]interface{}, error) { if errPolicyAbstractPolicy != nil { return map[string]interface{}{}, errPolicyAbstractPolicy } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.AuthenticatedNtpServers != nil { toSerialize["AuthenticatedNtpServers"] = o.AuthenticatedNtpServers @@ -429,6 +445,13 @@ func (o *NtpPolicy) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -438,11 +461,23 @@ func (o *NtpPolicy) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type NtpPolicyWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_ntp_policy_list.go b/model_ntp_policy_list.go index f82de7c89e..e40ba09c01 100644 --- a/model_ntp_policy_list.go +++ b/model_ntp_policy_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *NtpPolicyList) GetResultsOk() ([]NtpPolicy, bool) { // HasResults returns a boolean if a field has been set. func (o *NtpPolicyList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *NtpPolicyList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *NtpPolicyList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type NtpPolicyListWithoutEmbeddedStruct struct { // The total number of 'ntp.Policy' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_ntp_policy_response.go b/model_ntp_policy_response.go index 1fe8d14136..5dca69311b 100644 --- a/model_ntp_policy_response.go +++ b/model_ntp_policy_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_oauth_access_token.go b/model_oauth_access_token.go index 8203b98637..6266b06eb7 100644 --- a/model_oauth_access_token.go +++ b/model_oauth_access_token.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -96,6 +96,11 @@ func (o *OauthAccessToken) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "oauth.AccessToken" of the ClassId field. +func (o *OauthAccessToken) GetDefaultClassId() interface{} { + return "oauth.AccessToken" +} + // GetObjectType returns the ObjectType field value func (o *OauthAccessToken) GetObjectType() string { if o == nil { @@ -120,6 +125,11 @@ func (o *OauthAccessToken) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "oauth.AccessToken" of the ObjectType field. +func (o *OauthAccessToken) GetDefaultObjectType() interface{} { + return "oauth.AccessToken" +} + // GetApiType returns the ApiType field value if set, zero value otherwise. func (o *OauthAccessToken) GetApiType() string { if o == nil || IsNil(o.ApiType) { @@ -341,7 +351,13 @@ func (o OauthAccessToken) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.ApiType) { toSerialize["ApiType"] = o.ApiType @@ -378,6 +394,13 @@ func (o *OauthAccessToken) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -387,11 +410,23 @@ func (o *OauthAccessToken) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type OauthAccessTokenWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_oauth_access_token_list.go b/model_oauth_access_token_list.go index 25c88895fc..5cb6f2b9ca 100644 --- a/model_oauth_access_token_list.go +++ b/model_oauth_access_token_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *OauthAccessTokenList) GetResultsOk() ([]OauthAccessToken, bool) { // HasResults returns a boolean if a field has been set. func (o *OauthAccessTokenList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *OauthAccessTokenList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *OauthAccessTokenList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type OauthAccessTokenListWithoutEmbeddedStruct struct { // The total number of 'oauth.AccessToken' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_oauth_access_token_relationship.go b/model_oauth_access_token_relationship.go index 01144c9a39..0999698d5a 100644 --- a/model_oauth_access_token_relationship.go +++ b/model_oauth_access_token_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_oauth_access_token_response.go b/model_oauth_access_token_response.go index 504e0a774d..175c923b9c 100644 --- a/model_oauth_access_token_response.go +++ b/model_oauth_access_token_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_oauth_authorization.go b/model_oauth_authorization.go index 26e7ba074d..6f6c302901 100644 --- a/model_oauth_authorization.go +++ b/model_oauth_authorization.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -96,6 +96,11 @@ func (o *OauthAuthorization) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "oauth.Authorization" of the ClassId field. +func (o *OauthAuthorization) GetDefaultClassId() interface{} { + return "oauth.Authorization" +} + // GetObjectType returns the ObjectType field value func (o *OauthAuthorization) GetObjectType() string { if o == nil { @@ -120,6 +125,11 @@ func (o *OauthAuthorization) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "oauth.Authorization" of the ObjectType field. +func (o *OauthAuthorization) GetDefaultObjectType() interface{} { + return "oauth.Authorization" +} + // GetApiType returns the ApiType field value if set, zero value otherwise. func (o *OauthAuthorization) GetApiType() string { if o == nil || IsNil(o.ApiType) { @@ -384,7 +394,13 @@ func (o OauthAuthorization) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.ApiType) { toSerialize["ApiType"] = o.ApiType @@ -424,6 +440,13 @@ func (o *OauthAuthorization) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -433,11 +456,23 @@ func (o *OauthAuthorization) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type OauthAuthorizationWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_oauth_authorization_list.go b/model_oauth_authorization_list.go index 43d82fcfbf..7d06c45da8 100644 --- a/model_oauth_authorization_list.go +++ b/model_oauth_authorization_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *OauthAuthorizationList) GetResultsOk() ([]OauthAuthorization, bool) { // HasResults returns a boolean if a field has been set. func (o *OauthAuthorizationList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *OauthAuthorizationList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *OauthAuthorizationList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type OauthAuthorizationListWithoutEmbeddedStruct struct { // The total number of 'oauth.Authorization' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_oauth_authorization_response.go b/model_oauth_authorization_response.go index 06673434d1..0e0d02e476 100644 --- a/model_oauth_authorization_response.go +++ b/model_oauth_authorization_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_onprem_cluster_info.go b/model_onprem_cluster_info.go index 5c6809af71..df2243643f 100644 --- a/model_onprem_cluster_info.go +++ b/model_onprem_cluster_info.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -90,6 +90,11 @@ func (o *OnpremClusterInfo) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "onprem.ClusterInfo" of the ClassId field. +func (o *OnpremClusterInfo) GetDefaultClassId() interface{} { + return "onprem.ClusterInfo" +} + // GetObjectType returns the ObjectType field value func (o *OnpremClusterInfo) GetObjectType() string { if o == nil { @@ -114,6 +119,11 @@ func (o *OnpremClusterInfo) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "onprem.ClusterInfo" of the ObjectType field. +func (o *OnpremClusterInfo) GetDefaultObjectType() interface{} { + return "onprem.ClusterInfo" +} + // GetNodes returns the Nodes field value if set, zero value otherwise (both if not set or set to explicit null). func (o *OnpremClusterInfo) GetNodes() []OnpremClusterNode { if o == nil { @@ -135,7 +145,7 @@ func (o *OnpremClusterInfo) GetNodesOk() ([]OnpremClusterNode, bool) { // HasNodes returns a boolean if a field has been set. func (o *OnpremClusterInfo) HasNodes() bool { - if o != nil && IsNil(o.Nodes) { + if o != nil && !IsNil(o.Nodes) { return true } @@ -293,7 +303,13 @@ func (o OnpremClusterInfo) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.Nodes != nil { toSerialize["Nodes"] = o.Nodes @@ -327,6 +343,13 @@ func (o *OnpremClusterInfo) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -336,11 +359,23 @@ func (o *OnpremClusterInfo) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type OnpremClusterInfoWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_onprem_cluster_node.go b/model_onprem_cluster_node.go index c2e1de35d2..95c80c49aa 100644 --- a/model_onprem_cluster_node.go +++ b/model_onprem_cluster_node.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -107,6 +107,11 @@ func (o *OnpremClusterNode) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "onprem.ClusterNode" of the ClassId field. +func (o *OnpremClusterNode) GetDefaultClassId() interface{} { + return "onprem.ClusterNode" +} + // GetObjectType returns the ObjectType field value func (o *OnpremClusterNode) GetObjectType() string { if o == nil { @@ -131,6 +136,11 @@ func (o *OnpremClusterNode) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "onprem.ClusterNode" of the ObjectType field. +func (o *OnpremClusterNode) GetDefaultObjectType() interface{} { + return "onprem.ClusterNode" +} + // GetBootTime returns the BootTime field value if set, zero value otherwise. func (o *OnpremClusterNode) GetBootTime() time.Time { if o == nil || IsNil(o.BootTime) { @@ -280,7 +290,7 @@ func (o *OnpremClusterNode) GetDisksOk() ([]OnpremResourceInfo, bool) { // HasDisks returns a boolean if a field has been set. func (o *OnpremClusterNode) HasDisks() bool { - if o != nil && IsNil(o.Disks) { + if o != nil && !IsNil(o.Disks) { return true } @@ -420,7 +430,7 @@ func (o *OnpremClusterNode) GetPingErrorNodesOk() ([]string, bool) { // HasPingErrorNodes returns a boolean if a field has been set. func (o *OnpremClusterNode) HasPingErrorNodes() bool { - if o != nil && IsNil(o.PingErrorNodes) { + if o != nil && !IsNil(o.PingErrorNodes) { return true } @@ -517,7 +527,7 @@ func (o *OnpremClusterNode) GetRsyncErrorNodesOk() ([]string, bool) { // HasRsyncErrorNodes returns a boolean if a field has been set. func (o *OnpremClusterNode) HasRsyncErrorNodes() bool { - if o != nil && IsNil(o.RsyncErrorNodes) { + if o != nil && !IsNil(o.RsyncErrorNodes) { return true } @@ -643,7 +653,13 @@ func (o OnpremClusterNode) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.BootTime) { toSerialize["BootTime"] = o.BootTime @@ -707,6 +723,13 @@ func (o *OnpremClusterNode) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -716,11 +739,23 @@ func (o *OnpremClusterNode) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type OnpremClusterNodeWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_onprem_image_package.go b/model_onprem_image_package.go index 50800be4e9..81f331f677 100644 --- a/model_onprem_image_package.go +++ b/model_onprem_image_package.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -97,6 +97,11 @@ func (o *OnpremImagePackage) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "onprem.ImagePackage" of the ClassId field. +func (o *OnpremImagePackage) GetDefaultClassId() interface{} { + return "onprem.ImagePackage" +} + // GetObjectType returns the ObjectType field value func (o *OnpremImagePackage) GetObjectType() string { if o == nil { @@ -121,6 +126,11 @@ func (o *OnpremImagePackage) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "onprem.ImagePackage" of the ObjectType field. +func (o *OnpremImagePackage) GetDefaultObjectType() interface{} { + return "onprem.ImagePackage" +} + // GetFilePath returns the FilePath field value if set, zero value otherwise. func (o *OnpremImagePackage) GetFilePath() string { if o == nil || IsNil(o.FilePath) { @@ -395,7 +405,13 @@ func (o OnpremImagePackage) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.FilePath) { toSerialize["FilePath"] = o.FilePath @@ -438,6 +454,13 @@ func (o *OnpremImagePackage) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -447,11 +470,23 @@ func (o *OnpremImagePackage) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type OnpremImagePackageWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_onprem_resource_info.go b/model_onprem_resource_info.go index 2823a2f1b3..b2cfe0edd7 100644 --- a/model_onprem_resource_info.go +++ b/model_onprem_resource_info.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -86,6 +86,11 @@ func (o *OnpremResourceInfo) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "onprem.ResourceInfo" of the ClassId field. +func (o *OnpremResourceInfo) GetDefaultClassId() interface{} { + return "onprem.ResourceInfo" +} + // GetObjectType returns the ObjectType field value func (o *OnpremResourceInfo) GetObjectType() string { if o == nil { @@ -110,6 +115,11 @@ func (o *OnpremResourceInfo) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "onprem.ResourceInfo" of the ObjectType field. +func (o *OnpremResourceInfo) GetDefaultObjectType() interface{} { + return "onprem.ResourceInfo" +} + // GetAvail returns the Avail field value if set, zero value otherwise. func (o *OnpremResourceInfo) GetAvail() int64 { if o == nil || IsNil(o.Avail) { @@ -224,7 +234,13 @@ func (o OnpremResourceInfo) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Avail) { toSerialize["Avail"] = o.Avail @@ -252,6 +268,13 @@ func (o *OnpremResourceInfo) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -261,11 +284,23 @@ func (o *OnpremResourceInfo) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type OnpremResourceInfoWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_onprem_schedule.go b/model_onprem_schedule.go index 4094df7d1b..9cc2c9c72c 100644 --- a/model_onprem_schedule.go +++ b/model_onprem_schedule.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -98,6 +98,11 @@ func (o *OnpremSchedule) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "onprem.Schedule" of the ClassId field. +func (o *OnpremSchedule) GetDefaultClassId() interface{} { + return "onprem.Schedule" +} + // GetObjectType returns the ObjectType field value func (o *OnpremSchedule) GetObjectType() string { if o == nil { @@ -122,6 +127,11 @@ func (o *OnpremSchedule) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "onprem.Schedule" of the ObjectType field. +func (o *OnpremSchedule) GetDefaultObjectType() interface{} { + return "onprem.Schedule" +} + // GetDayOfMonth returns the DayOfMonth field value if set, zero value otherwise. func (o *OnpremSchedule) GetDayOfMonth() int64 { if o == nil || IsNil(o.DayOfMonth) { @@ -364,7 +374,13 @@ func (o OnpremSchedule) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.DayOfMonth) { toSerialize["DayOfMonth"] = o.DayOfMonth @@ -404,6 +420,13 @@ func (o *OnpremSchedule) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -413,11 +436,23 @@ func (o *OnpremSchedule) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type OnpremScheduleWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_onprem_upgrade_note.go b/model_onprem_upgrade_note.go index 9dacf8936c..348d6c54f5 100644 --- a/model_onprem_upgrade_note.go +++ b/model_onprem_upgrade_note.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -82,6 +82,11 @@ func (o *OnpremUpgradeNote) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "onprem.UpgradeNote" of the ClassId field. +func (o *OnpremUpgradeNote) GetDefaultClassId() interface{} { + return "onprem.UpgradeNote" +} + // GetObjectType returns the ObjectType field value func (o *OnpremUpgradeNote) GetObjectType() string { if o == nil { @@ -106,6 +111,11 @@ func (o *OnpremUpgradeNote) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "onprem.UpgradeNote" of the ObjectType field. +func (o *OnpremUpgradeNote) GetDefaultObjectType() interface{} { + return "onprem.UpgradeNote" +} + // GetMessage returns the Message field value if set, zero value otherwise. func (o *OnpremUpgradeNote) GetMessage() string { if o == nil || IsNil(o.Message) { @@ -156,7 +166,13 @@ func (o OnpremUpgradeNote) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Message) { toSerialize["Message"] = o.Message @@ -178,6 +194,13 @@ func (o *OnpremUpgradeNote) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -187,11 +210,23 @@ func (o *OnpremUpgradeNote) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type OnpremUpgradeNoteWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_onprem_upgrade_phase.go b/model_onprem_upgrade_phase.go index c766e49c88..f1ed398bb7 100644 --- a/model_onprem_upgrade_phase.go +++ b/model_onprem_upgrade_phase.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -101,6 +101,11 @@ func (o *OnpremUpgradePhase) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "onprem.UpgradePhase" of the ClassId field. +func (o *OnpremUpgradePhase) GetDefaultClassId() interface{} { + return "onprem.UpgradePhase" +} + // GetObjectType returns the ObjectType field value func (o *OnpremUpgradePhase) GetObjectType() string { if o == nil { @@ -125,6 +130,11 @@ func (o *OnpremUpgradePhase) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "onprem.UpgradePhase" of the ObjectType field. +func (o *OnpremUpgradePhase) GetDefaultObjectType() interface{} { + return "onprem.UpgradePhase" +} + // GetCurrentNode returns the CurrentNode field value if set, zero value otherwise. func (o *OnpremUpgradePhase) GetCurrentNode() int64 { if o == nil || IsNil(o.CurrentNode) { @@ -463,7 +473,13 @@ func (o OnpremUpgradePhase) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.CurrentNode) { toSerialize["CurrentNode"] = o.CurrentNode @@ -512,6 +528,13 @@ func (o *OnpremUpgradePhase) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -521,11 +544,23 @@ func (o *OnpremUpgradePhase) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type OnpremUpgradePhaseWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_openapi_api_info.go b/model_openapi_api_info.go index ea3c2b4d77..e409e0e636 100644 --- a/model_openapi_api_info.go +++ b/model_openapi_api_info.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -99,6 +99,11 @@ func (o *OpenapiApiInfo) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "openapi.ApiInfo" of the ClassId field. +func (o *OpenapiApiInfo) GetDefaultClassId() interface{} { + return "openapi.ApiInfo" +} + // GetObjectType returns the ObjectType field value func (o *OpenapiApiInfo) GetObjectType() string { if o == nil { @@ -123,6 +128,11 @@ func (o *OpenapiApiInfo) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "openapi.ApiInfo" of the ObjectType field. +func (o *OpenapiApiInfo) GetDefaultObjectType() interface{} { + return "openapi.ApiInfo" +} + // GetApiPathObjectIdentifier returns the ApiPathObjectIdentifier field value if set, zero value otherwise. func (o *OpenapiApiInfo) GetApiPathObjectIdentifier() MoMoRef { if o == nil || IsNil(o.ApiPathObjectIdentifier) { @@ -397,7 +407,13 @@ func (o OpenapiApiInfo) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.ApiPathObjectIdentifier) { toSerialize["ApiPathObjectIdentifier"] = o.ApiPathObjectIdentifier @@ -440,6 +456,13 @@ func (o *OpenapiApiInfo) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -449,11 +472,23 @@ func (o *OpenapiApiInfo) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type OpenapiApiInfoWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_openapi_api_method_meta.go b/model_openapi_api_method_meta.go index 00c525c14d..721772e820 100644 --- a/model_openapi_api_method_meta.go +++ b/model_openapi_api_method_meta.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -91,6 +91,11 @@ func (o *OpenapiApiMethodMeta) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "openapi.ApiMethodMeta" of the ClassId field. +func (o *OpenapiApiMethodMeta) GetDefaultClassId() interface{} { + return "openapi.ApiMethodMeta" +} + // GetObjectType returns the ObjectType field value func (o *OpenapiApiMethodMeta) GetObjectType() string { if o == nil { @@ -115,6 +120,11 @@ func (o *OpenapiApiMethodMeta) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "openapi.ApiMethodMeta" of the ObjectType field. +func (o *OpenapiApiMethodMeta) GetDefaultObjectType() interface{} { + return "openapi.ApiMethodMeta" +} + // GetDescription returns the Description field value if set, zero value otherwise. func (o *OpenapiApiMethodMeta) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -336,7 +346,13 @@ func (o OpenapiApiMethodMeta) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Description) { toSerialize["Description"] = o.Description @@ -373,6 +389,13 @@ func (o *OpenapiApiMethodMeta) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -382,11 +405,23 @@ func (o *OpenapiApiMethodMeta) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type OpenapiApiMethodMetaWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_openapi_api_method_meta_list.go b/model_openapi_api_method_meta_list.go index a79a205c23..0503e8ca11 100644 --- a/model_openapi_api_method_meta_list.go +++ b/model_openapi_api_method_meta_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *OpenapiApiMethodMetaList) GetResultsOk() ([]OpenapiApiMethodMeta, bool) // HasResults returns a boolean if a field has been set. func (o *OpenapiApiMethodMetaList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *OpenapiApiMethodMetaList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *OpenapiApiMethodMetaList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type OpenapiApiMethodMetaListWithoutEmbeddedStruct struct { // The total number of 'openapi.ApiMethodMeta' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_openapi_api_method_meta_response.go b/model_openapi_api_method_meta_response.go index a1997db28a..5b2edd9325 100644 --- a/model_openapi_api_method_meta_response.go +++ b/model_openapi_api_method_meta_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_openapi_failed_task.go b/model_openapi_failed_task.go index 0521a7b26e..ab42b786e4 100644 --- a/model_openapi_failed_task.go +++ b/model_openapi_failed_task.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -86,6 +86,11 @@ func (o *OpenapiFailedTask) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "openapi.FailedTask" of the ClassId field. +func (o *OpenapiFailedTask) GetDefaultClassId() interface{} { + return "openapi.FailedTask" +} + // GetObjectType returns the ObjectType field value func (o *OpenapiFailedTask) GetObjectType() string { if o == nil { @@ -110,6 +115,11 @@ func (o *OpenapiFailedTask) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "openapi.FailedTask" of the ObjectType field. +func (o *OpenapiFailedTask) GetDefaultObjectType() interface{} { + return "openapi.FailedTask" +} + // GetName returns the Name field value if set, zero value otherwise. func (o *OpenapiFailedTask) GetName() string { if o == nil || IsNil(o.Name) { @@ -224,7 +234,13 @@ func (o OpenapiFailedTask) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Name) { toSerialize["Name"] = o.Name @@ -252,6 +268,13 @@ func (o *OpenapiFailedTask) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -261,11 +284,23 @@ func (o *OpenapiFailedTask) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type OpenapiFailedTaskWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_openapi_key_value_pair.go b/model_openapi_key_value_pair.go index 13d9136f2b..57fa516c1d 100644 --- a/model_openapi_key_value_pair.go +++ b/model_openapi_key_value_pair.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -84,6 +84,11 @@ func (o *OpenapiKeyValuePair) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "openapi.KeyValuePair" of the ClassId field. +func (o *OpenapiKeyValuePair) GetDefaultClassId() interface{} { + return "openapi.KeyValuePair" +} + // GetObjectType returns the ObjectType field value func (o *OpenapiKeyValuePair) GetObjectType() string { if o == nil { @@ -108,6 +113,11 @@ func (o *OpenapiKeyValuePair) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "openapi.KeyValuePair" of the ObjectType field. +func (o *OpenapiKeyValuePair) GetDefaultObjectType() interface{} { + return "openapi.KeyValuePair" +} + // GetKey returns the Key field value if set, zero value otherwise. func (o *OpenapiKeyValuePair) GetKey() string { if o == nil || IsNil(o.Key) { @@ -190,7 +200,13 @@ func (o OpenapiKeyValuePair) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Key) { toSerialize["Key"] = o.Key @@ -215,6 +231,13 @@ func (o *OpenapiKeyValuePair) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -224,11 +247,23 @@ func (o *OpenapiKeyValuePair) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type OpenapiKeyValuePairWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_openapi_open_api_specification.go b/model_openapi_open_api_specification.go index a7c2286ead..43539f661c 100644 --- a/model_openapi_open_api_specification.go +++ b/model_openapi_open_api_specification.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -87,6 +87,11 @@ func (o *OpenapiOpenApiSpecification) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "openapi.OpenApiSpecification" of the ClassId field. +func (o *OpenapiOpenApiSpecification) GetDefaultClassId() interface{} { + return "openapi.OpenApiSpecification" +} + // GetObjectType returns the ObjectType field value func (o *OpenapiOpenApiSpecification) GetObjectType() string { if o == nil { @@ -111,6 +116,11 @@ func (o *OpenapiOpenApiSpecification) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "openapi.OpenApiSpecification" of the ObjectType field. +func (o *OpenapiOpenApiSpecification) GetDefaultObjectType() interface{} { + return "openapi.OpenApiSpecification" +} + // GetFilePath returns the FilePath field value if set, zero value otherwise. func (o *OpenapiOpenApiSpecification) GetFilePath() string { if o == nil || IsNil(o.FilePath) { @@ -236,7 +246,13 @@ func (o OpenapiOpenApiSpecification) ToMap() (map[string]interface{}, error) { if errSoftwarerepositoryFile != nil { return map[string]interface{}{}, errSoftwarerepositoryFile } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.FilePath) { toSerialize["FilePath"] = o.FilePath @@ -264,6 +280,13 @@ func (o *OpenapiOpenApiSpecification) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -273,11 +296,23 @@ func (o *OpenapiOpenApiSpecification) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type OpenapiOpenApiSpecificationWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_openapi_open_api_specification_list.go b/model_openapi_open_api_specification_list.go index 12be951b08..3b55fea072 100644 --- a/model_openapi_open_api_specification_list.go +++ b/model_openapi_open_api_specification_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *OpenapiOpenApiSpecificationList) GetResultsOk() ([]OpenapiOpenApiSpecif // HasResults returns a boolean if a field has been set. func (o *OpenapiOpenApiSpecificationList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *OpenapiOpenApiSpecificationList) UnmarshalJSON(data []byte) (err error) "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *OpenapiOpenApiSpecificationList) UnmarshalJSON(data []byte) (err error) } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type OpenapiOpenApiSpecificationListWithoutEmbeddedStruct struct { // The total number of 'openapi.OpenApiSpecification' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_openapi_open_api_specification_relationship.go b/model_openapi_open_api_specification_relationship.go index d8daf131fe..011fb89c11 100644 --- a/model_openapi_open_api_specification_relationship.go +++ b/model_openapi_open_api_specification_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_openapi_open_api_specification_response.go b/model_openapi_open_api_specification_response.go index 74ece806c1..b20f6ba0d0 100644 --- a/model_openapi_open_api_specification_response.go +++ b/model_openapi_open_api_specification_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_openapi_process_file.go b/model_openapi_process_file.go index 9554dd4d66..7d63b6cd8b 100644 --- a/model_openapi_process_file.go +++ b/model_openapi_process_file.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -92,6 +92,11 @@ func (o *OpenapiProcessFile) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "openapi.ProcessFile" of the ClassId field. +func (o *OpenapiProcessFile) GetDefaultClassId() interface{} { + return "openapi.ProcessFile" +} + // GetObjectType returns the ObjectType field value func (o *OpenapiProcessFile) GetObjectType() string { if o == nil { @@ -116,6 +121,11 @@ func (o *OpenapiProcessFile) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "openapi.ProcessFile" of the ObjectType field. +func (o *OpenapiProcessFile) GetDefaultObjectType() interface{} { + return "openapi.ProcessFile" +} + // GetFailureReason returns the FailureReason field value if set, zero value otherwise. func (o *OpenapiProcessFile) GetFailureReason() string { if o == nil || IsNil(o.FailureReason) { @@ -380,7 +390,13 @@ func (o OpenapiProcessFile) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.FailureReason) { toSerialize["FailureReason"] = o.FailureReason @@ -420,6 +436,13 @@ func (o *OpenapiProcessFile) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -429,11 +452,23 @@ func (o *OpenapiProcessFile) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type OpenapiProcessFileWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_openapi_process_file_list.go b/model_openapi_process_file_list.go index a8b6c91c18..fa6d90331a 100644 --- a/model_openapi_process_file_list.go +++ b/model_openapi_process_file_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *OpenapiProcessFileList) GetResultsOk() ([]OpenapiProcessFile, bool) { // HasResults returns a boolean if a field has been set. func (o *OpenapiProcessFileList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *OpenapiProcessFileList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *OpenapiProcessFileList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type OpenapiProcessFileListWithoutEmbeddedStruct struct { // The total number of 'openapi.ProcessFile' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_openapi_process_file_relationship.go b/model_openapi_process_file_relationship.go index 0fa1c335fc..390739fa02 100644 --- a/model_openapi_process_file_relationship.go +++ b/model_openapi_process_file_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_openapi_process_file_response.go b/model_openapi_process_file_response.go index df6a7406cc..1c57c1d6a9 100644 --- a/model_openapi_process_file_response.go +++ b/model_openapi_process_file_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_openapi_task_generation_request.go b/model_openapi_task_generation_request.go index d53fb81bc3..cb786c3897 100644 --- a/model_openapi_task_generation_request.go +++ b/model_openapi_task_generation_request.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -108,6 +108,11 @@ func (o *OpenapiTaskGenerationRequest) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "openapi.TaskGenerationRequest" of the ClassId field. +func (o *OpenapiTaskGenerationRequest) GetDefaultClassId() interface{} { + return "openapi.TaskGenerationRequest" +} + // GetObjectType returns the ObjectType field value func (o *OpenapiTaskGenerationRequest) GetObjectType() string { if o == nil { @@ -132,6 +137,11 @@ func (o *OpenapiTaskGenerationRequest) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "openapi.TaskGenerationRequest" of the ObjectType field. +func (o *OpenapiTaskGenerationRequest) GetDefaultObjectType() interface{} { + return "openapi.TaskGenerationRequest" +} + // GetEndpointType returns the EndpointType field value if set, zero value otherwise. func (o *OpenapiTaskGenerationRequest) GetEndpointType() string { if o == nil || IsNil(o.EndpointType) { @@ -185,7 +195,7 @@ func (o *OpenapiTaskGenerationRequest) GetFailedTasksOk() ([]OpenapiFailedTask, // HasFailedTasks returns a boolean if a field has been set. func (o *OpenapiTaskGenerationRequest) HasFailedTasks() bool { - if o != nil && IsNil(o.FailedTasks) { + if o != nil && !IsNil(o.FailedTasks) { return true } @@ -218,7 +228,7 @@ func (o *OpenapiTaskGenerationRequest) GetHeaderParametersOk() ([]OpenapiKeyValu // HasHeaderParameters returns a boolean if a field has been set. func (o *OpenapiTaskGenerationRequest) HasHeaderParameters() bool { - if o != nil && IsNil(o.HeaderParameters) { + if o != nil && !IsNil(o.HeaderParameters) { return true } @@ -315,7 +325,7 @@ func (o *OpenapiTaskGenerationRequest) GetQueryParametersOk() ([]OpenapiKeyValue // HasQueryParameters returns a boolean if a field has been set. func (o *OpenapiTaskGenerationRequest) HasQueryParameters() bool { - if o != nil && IsNil(o.QueryParameters) { + if o != nil && !IsNil(o.QueryParameters) { return true } @@ -348,7 +358,7 @@ func (o *OpenapiTaskGenerationRequest) GetSelectedApisOk() ([]OpenapiApiInfo, bo // HasSelectedApis returns a boolean if a field has been set. func (o *OpenapiTaskGenerationRequest) HasSelectedApis() bool { - if o != nil && IsNil(o.SelectedApis) { + if o != nil && !IsNil(o.SelectedApis) { return true } @@ -445,7 +455,7 @@ func (o *OpenapiTaskGenerationRequest) GetTaskTagsOk() ([]OpenapiKeyValuePair, b // HasTaskTags returns a boolean if a field has been set. func (o *OpenapiTaskGenerationRequest) HasTaskTags() bool { - if o != nil && IsNil(o.TaskTags) { + if o != nil && !IsNil(o.TaskTags) { return true } @@ -636,7 +646,13 @@ func (o OpenapiTaskGenerationRequest) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.EndpointType) { toSerialize["EndpointType"] = o.EndpointType @@ -697,6 +713,13 @@ func (o *OpenapiTaskGenerationRequest) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -706,11 +729,23 @@ func (o *OpenapiTaskGenerationRequest) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type OpenapiTaskGenerationRequestWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_openapi_task_generation_request_list.go b/model_openapi_task_generation_request_list.go index c0eba4002f..ec1900e0e9 100644 --- a/model_openapi_task_generation_request_list.go +++ b/model_openapi_task_generation_request_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *OpenapiTaskGenerationRequestList) GetResultsOk() ([]OpenapiTaskGenerati // HasResults returns a boolean if a field has been set. func (o *OpenapiTaskGenerationRequestList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *OpenapiTaskGenerationRequestList) UnmarshalJSON(data []byte) (err error "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *OpenapiTaskGenerationRequestList) UnmarshalJSON(data []byte) (err error } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type OpenapiTaskGenerationRequestListWithoutEmbeddedStruct struct { // The total number of 'openapi.TaskGenerationRequest' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_openapi_task_generation_request_relationship.go b/model_openapi_task_generation_request_relationship.go index 409886d84b..cedb3899cc 100644 --- a/model_openapi_task_generation_request_relationship.go +++ b/model_openapi_task_generation_request_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_openapi_task_generation_request_response.go b/model_openapi_task_generation_request_response.go index 173c0288cd..27b45c7102 100644 --- a/model_openapi_task_generation_request_response.go +++ b/model_openapi_task_generation_request_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_openapi_task_generation_result.go b/model_openapi_task_generation_result.go index f38a878434..91eea1d348 100644 --- a/model_openapi_task_generation_result.go +++ b/model_openapi_task_generation_result.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -91,6 +91,11 @@ func (o *OpenapiTaskGenerationResult) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "openapi.TaskGenerationResult" of the ClassId field. +func (o *OpenapiTaskGenerationResult) GetDefaultClassId() interface{} { + return "openapi.TaskGenerationResult" +} + // GetObjectType returns the ObjectType field value func (o *OpenapiTaskGenerationResult) GetObjectType() string { if o == nil { @@ -115,6 +120,11 @@ func (o *OpenapiTaskGenerationResult) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "openapi.TaskGenerationResult" of the ObjectType field. +func (o *OpenapiTaskGenerationResult) GetDefaultObjectType() interface{} { + return "openapi.TaskGenerationResult" +} + // GetFailureReason returns the FailureReason field value if set, zero value otherwise. func (o *OpenapiTaskGenerationResult) GetFailureReason() string { if o == nil || IsNil(o.FailureReason) { @@ -336,7 +346,13 @@ func (o OpenapiTaskGenerationResult) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.FailureReason) { toSerialize["FailureReason"] = o.FailureReason @@ -373,6 +389,13 @@ func (o *OpenapiTaskGenerationResult) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -382,11 +405,23 @@ func (o *OpenapiTaskGenerationResult) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type OpenapiTaskGenerationResultWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_openapi_task_generation_result_list.go b/model_openapi_task_generation_result_list.go index 2cffae80f9..e13044b8b5 100644 --- a/model_openapi_task_generation_result_list.go +++ b/model_openapi_task_generation_result_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *OpenapiTaskGenerationResultList) GetResultsOk() ([]OpenapiTaskGeneratio // HasResults returns a boolean if a field has been set. func (o *OpenapiTaskGenerationResultList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *OpenapiTaskGenerationResultList) UnmarshalJSON(data []byte) (err error) "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *OpenapiTaskGenerationResultList) UnmarshalJSON(data []byte) (err error) } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type OpenapiTaskGenerationResultListWithoutEmbeddedStruct struct { // The total number of 'openapi.TaskGenerationResult' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_openapi_task_generation_result_response.go b/model_openapi_task_generation_result_response.go index 839f408de6..27c23a2a15 100644 --- a/model_openapi_task_generation_result_response.go +++ b/model_openapi_task_generation_result_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_oprs_deployment.go b/model_oprs_deployment.go index d6a360da1c..489dc69979 100644 --- a/model_oprs_deployment.go +++ b/model_oprs_deployment.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -103,6 +103,11 @@ func (o *OprsDeployment) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "oprs.Deployment" of the ClassId field. +func (o *OprsDeployment) GetDefaultClassId() interface{} { + return "oprs.Deployment" +} + // GetObjectType returns the ObjectType field value func (o *OprsDeployment) GetObjectType() string { if o == nil { @@ -127,6 +132,11 @@ func (o *OprsDeployment) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "oprs.Deployment" of the ObjectType field. +func (o *OprsDeployment) GetDefaultObjectType() interface{} { + return "oprs.Deployment" +} + // GetAvailableReplicas returns the AvailableReplicas field value if set, zero value otherwise. func (o *OprsDeployment) GetAvailableReplicas() int64 { if o == nil || IsNil(o.AvailableReplicas) { @@ -244,7 +254,7 @@ func (o *OprsDeployment) GetLabelsOk() ([]OprsKvpair, bool) { // HasLabels returns a boolean if a field has been set. func (o *OprsDeployment) HasLabels() bool { - if o != nil && IsNil(o.Labels) { + if o != nil && !IsNil(o.Labels) { return true } @@ -477,7 +487,13 @@ func (o OprsDeployment) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.AvailableReplicas) { toSerialize["AvailableReplicas"] = o.AvailableReplicas @@ -526,6 +542,13 @@ func (o *OprsDeployment) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -535,11 +558,23 @@ func (o *OprsDeployment) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type OprsDeploymentWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_oprs_deployment_list.go b/model_oprs_deployment_list.go index 6abdd6bd73..5181d446b0 100644 --- a/model_oprs_deployment_list.go +++ b/model_oprs_deployment_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *OprsDeploymentList) GetResultsOk() ([]OprsDeployment, bool) { // HasResults returns a boolean if a field has been set. func (o *OprsDeploymentList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *OprsDeploymentList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *OprsDeploymentList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type OprsDeploymentListWithoutEmbeddedStruct struct { // The total number of 'oprs.Deployment' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_oprs_deployment_response.go b/model_oprs_deployment_response.go index ed0184165a..d72262aeb4 100644 --- a/model_oprs_deployment_response.go +++ b/model_oprs_deployment_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_oprs_kvpair.go b/model_oprs_kvpair.go index fd99cde3c9..abe3112c2c 100644 --- a/model_oprs_kvpair.go +++ b/model_oprs_kvpair.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -84,6 +84,11 @@ func (o *OprsKvpair) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "oprs.Kvpair" of the ClassId field. +func (o *OprsKvpair) GetDefaultClassId() interface{} { + return "oprs.Kvpair" +} + // GetObjectType returns the ObjectType field value func (o *OprsKvpair) GetObjectType() string { if o == nil { @@ -108,6 +113,11 @@ func (o *OprsKvpair) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "oprs.Kvpair" of the ObjectType field. +func (o *OprsKvpair) GetDefaultObjectType() interface{} { + return "oprs.Kvpair" +} + // GetKey returns the Key field value if set, zero value otherwise. func (o *OprsKvpair) GetKey() string { if o == nil || IsNil(o.Key) { @@ -190,7 +200,13 @@ func (o OprsKvpair) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Key) { toSerialize["Key"] = o.Key @@ -215,6 +231,13 @@ func (o *OprsKvpair) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -224,11 +247,23 @@ func (o *OprsKvpair) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type OprsKvpairWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_oprs_sync_target_list_message.go b/model_oprs_sync_target_list_message.go index 2779eaedf0..d60e1ed440 100644 --- a/model_oprs_sync_target_list_message.go +++ b/model_oprs_sync_target_list_message.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -93,6 +93,11 @@ func (o *OprsSyncTargetListMessage) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "oprs.SyncTargetListMessage" of the ClassId field. +func (o *OprsSyncTargetListMessage) GetDefaultClassId() interface{} { + return "oprs.SyncTargetListMessage" +} + // GetObjectType returns the ObjectType field value func (o *OprsSyncTargetListMessage) GetObjectType() string { if o == nil { @@ -117,6 +122,11 @@ func (o *OprsSyncTargetListMessage) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "oprs.SyncTargetListMessage" of the ObjectType field. +func (o *OprsSyncTargetListMessage) GetDefaultObjectType() interface{} { + return "oprs.SyncTargetListMessage" +} + // GetAssistId returns the AssistId field value if set, zero value otherwise. func (o *OprsSyncTargetListMessage) GetAssistId() string { if o == nil || IsNil(o.AssistId) { @@ -202,7 +212,7 @@ func (o *OprsSyncTargetListMessage) GetTargetsOk() ([]string, bool) { // HasTargets returns a boolean if a field has been set. func (o *OprsSyncTargetListMessage) HasTargets() bool { - if o != nil && IsNil(o.Targets) { + if o != nil && !IsNil(o.Targets) { return true } @@ -307,7 +317,13 @@ func (o OprsSyncTargetListMessage) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.AssistId) { toSerialize["AssistId"] = o.AssistId @@ -341,6 +357,13 @@ func (o *OprsSyncTargetListMessage) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -350,11 +373,23 @@ func (o *OprsSyncTargetListMessage) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type OprsSyncTargetListMessageWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_oprs_sync_target_list_message_list.go b/model_oprs_sync_target_list_message_list.go index 41f0e6a903..00363dbead 100644 --- a/model_oprs_sync_target_list_message_list.go +++ b/model_oprs_sync_target_list_message_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *OprsSyncTargetListMessageList) GetResultsOk() ([]OprsSyncTargetListMess // HasResults returns a boolean if a field has been set. func (o *OprsSyncTargetListMessageList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *OprsSyncTargetListMessageList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *OprsSyncTargetListMessageList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type OprsSyncTargetListMessageListWithoutEmbeddedStruct struct { // The total number of 'oprs.SyncTargetListMessage' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_oprs_sync_target_list_message_response.go b/model_oprs_sync_target_list_message_response.go index 638fad63cb..6a2a6fb0ce 100644 --- a/model_oprs_sync_target_list_message_response.go +++ b/model_oprs_sync_target_list_message_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_organization_organization.go b/model_organization_organization.go index 63da866242..e2c0a3bdf4 100644 --- a/model_organization_organization.go +++ b/model_organization_organization.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -31,7 +31,7 @@ type OrganizationOrganization struct { // The informative description about the usage of this organization. Description *string `json:"Description,omitempty"` // The name of the organization. There can be multiple organizations under an account. - Name *string `json:"Name,omitempty"` + Name *string `json:"Name,omitempty" validate:"regexp=^[a-zA-Z0-9_.:-]{1,64}$"` Account NullableIamAccountRelationship `json:"Account,omitempty"` // An array of relationships to resourceGroup resources. ResourceGroups []ResourceGroupRelationship `json:"ResourceGroups,omitempty"` @@ -89,6 +89,11 @@ func (o *OrganizationOrganization) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "organization.Organization" of the ClassId field. +func (o *OrganizationOrganization) GetDefaultClassId() interface{} { + return "organization.Organization" +} + // GetObjectType returns the ObjectType field value func (o *OrganizationOrganization) GetObjectType() string { if o == nil { @@ -113,6 +118,11 @@ func (o *OrganizationOrganization) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "organization.Organization" of the ObjectType field. +func (o *OrganizationOrganization) GetDefaultObjectType() interface{} { + return "organization.Organization" +} + // GetDescription returns the Description field value if set, zero value otherwise. func (o *OrganizationOrganization) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -241,7 +251,7 @@ func (o *OrganizationOrganization) GetResourceGroupsOk() ([]ResourceGroupRelatio // HasResourceGroups returns a boolean if a field has been set. func (o *OrganizationOrganization) HasResourceGroups() bool { - if o != nil && IsNil(o.ResourceGroups) { + if o != nil && !IsNil(o.ResourceGroups) { return true } @@ -274,7 +284,7 @@ func (o *OrganizationOrganization) GetSharedWithResourcesOk() ([]MoBaseMoRelatio // HasSharedWithResources returns a boolean if a field has been set. func (o *OrganizationOrganization) HasSharedWithResources() bool { - if o != nil && IsNil(o.SharedWithResources) { + if o != nil && !IsNil(o.SharedWithResources) { return true } @@ -304,7 +314,13 @@ func (o OrganizationOrganization) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Description) { toSerialize["Description"] = o.Description @@ -338,6 +354,13 @@ func (o *OrganizationOrganization) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -347,11 +370,23 @@ func (o *OrganizationOrganization) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type OrganizationOrganizationWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` @@ -360,7 +395,7 @@ func (o *OrganizationOrganization) UnmarshalJSON(data []byte) (err error) { // The informative description about the usage of this organization. Description *string `json:"Description,omitempty"` // The name of the organization. There can be multiple organizations under an account. - Name *string `json:"Name,omitempty"` + Name *string `json:"Name,omitempty" validate:"regexp=^[a-zA-Z0-9_.:-]{1,64}$"` Account NullableIamAccountRelationship `json:"Account,omitempty"` // An array of relationships to resourceGroup resources. ResourceGroups []ResourceGroupRelationship `json:"ResourceGroups,omitempty"` diff --git a/model_organization_organization_list.go b/model_organization_organization_list.go index 3098a91916..23cb386e8c 100644 --- a/model_organization_organization_list.go +++ b/model_organization_organization_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *OrganizationOrganizationList) GetResultsOk() ([]OrganizationOrganizatio // HasResults returns a boolean if a field has been set. func (o *OrganizationOrganizationList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *OrganizationOrganizationList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *OrganizationOrganizationList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type OrganizationOrganizationListWithoutEmbeddedStruct struct { // The total number of 'organization.Organization' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_organization_organization_relationship.go b/model_organization_organization_relationship.go index b1fc7de3a0..2ee09384c2 100644 --- a/model_organization_organization_relationship.go +++ b/model_organization_organization_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_organization_organization_response.go b/model_organization_organization_response.go index 8ca7ce9090..8d7f7dd95f 100644 --- a/model_organization_organization_response.go +++ b/model_organization_organization_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_os_answers.go b/model_os_answers.go index 845abd990b..dd15e4d849 100644 --- a/model_os_answers.go +++ b/model_os_answers.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -112,6 +112,11 @@ func (o *OsAnswers) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "os.Answers" of the ClassId field. +func (o *OsAnswers) GetDefaultClassId() interface{} { + return "os.Answers" +} + // GetObjectType returns the ObjectType field value func (o *OsAnswers) GetObjectType() string { if o == nil { @@ -136,6 +141,11 @@ func (o *OsAnswers) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "os.Answers" of the ObjectType field. +func (o *OsAnswers) GetDefaultObjectType() interface{} { + return "os.Answers" +} + // GetAlternateNameServers returns the AlternateNameServers field value if set, zero value otherwise (both if not set or set to explicit null). func (o *OsAnswers) GetAlternateNameServers() []string { if o == nil { @@ -157,7 +167,7 @@ func (o *OsAnswers) GetAlternateNameServersOk() ([]string, bool) { // HasAlternateNameServers returns a boolean if a field has been set. func (o *OsAnswers) HasAlternateNameServers() bool { - if o != nil && IsNil(o.AlternateNameServers) { + if o != nil && !IsNil(o.AlternateNameServers) { return true } @@ -582,7 +592,13 @@ func (o OsAnswers) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.AlternateNameServers != nil { toSerialize["AlternateNameServers"] = o.AlternateNameServers @@ -640,6 +656,13 @@ func (o *OsAnswers) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -649,11 +672,23 @@ func (o *OsAnswers) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type OsAnswersWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_os_base_install_config.go b/model_os_base_install_config.go index 10fc34aa82..bbe0fea133 100644 --- a/model_os_base_install_config.go +++ b/model_os_base_install_config.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -98,6 +98,11 @@ func (o *OsBaseInstallConfig) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "os.Install" of the ClassId field. +func (o *OsBaseInstallConfig) GetDefaultClassId() interface{} { + return "os.Install" +} + // GetObjectType returns the ObjectType field value func (o *OsBaseInstallConfig) GetObjectType() string { if o == nil { @@ -122,6 +127,11 @@ func (o *OsBaseInstallConfig) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "os.Install" of the ObjectType field. +func (o *OsBaseInstallConfig) GetDefaultObjectType() interface{} { + return "os.Install" +} + // GetAdditionalParameters returns the AdditionalParameters field value if set, zero value otherwise (both if not set or set to explicit null). func (o *OsBaseInstallConfig) GetAdditionalParameters() []OsPlaceHolder { if o == nil { @@ -143,7 +153,7 @@ func (o *OsBaseInstallConfig) GetAdditionalParametersOk() ([]OsPlaceHolder, bool // HasAdditionalParameters returns a boolean if a field has been set. func (o *OsBaseInstallConfig) HasAdditionalParameters() bool { - if o != nil && IsNil(o.AdditionalParameters) { + if o != nil && !IsNil(o.AdditionalParameters) { return true } @@ -462,7 +472,13 @@ func (o OsBaseInstallConfig) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.AdditionalParameters != nil { toSerialize["AdditionalParameters"] = o.AdditionalParameters @@ -508,6 +524,13 @@ func (o *OsBaseInstallConfig) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -517,11 +540,23 @@ func (o *OsBaseInstallConfig) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type OsBaseInstallConfigWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. The enum values provides the list of concrete types that can be instantiated from this abstract type. ClassId string `json:"ClassId"` diff --git a/model_os_bulk_install_info.go b/model_os_bulk_install_info.go index f494823ecc..0883c4301a 100644 --- a/model_os_bulk_install_info.go +++ b/model_os_bulk_install_info.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -97,6 +97,11 @@ func (o *OsBulkInstallInfo) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "os.BulkInstallInfo" of the ClassId field. +func (o *OsBulkInstallInfo) GetDefaultClassId() interface{} { + return "os.BulkInstallInfo" +} + // GetObjectType returns the ObjectType field value func (o *OsBulkInstallInfo) GetObjectType() string { if o == nil { @@ -121,6 +126,11 @@ func (o *OsBulkInstallInfo) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "os.BulkInstallInfo" of the ObjectType field. +func (o *OsBulkInstallInfo) GetDefaultObjectType() interface{} { + return "os.BulkInstallInfo" +} + // GetFileContent returns the FileContent field value if set, zero value otherwise. func (o *OsBulkInstallInfo) GetFileContent() string { if o == nil || IsNil(o.FileContent) { @@ -313,7 +323,7 @@ func (o *OsBulkInstallInfo) GetServerConfigsOk() ([]OsServerConfig, bool) { // HasServerConfigs returns a boolean if a field has been set. func (o *OsBulkInstallInfo) HasServerConfigs() bool { - if o != nil && IsNil(o.ServerConfigs) { + if o != nil && !IsNil(o.ServerConfigs) { return true } @@ -346,7 +356,7 @@ func (o *OsBulkInstallInfo) GetValidationInfosOk() ([]OsValidationInformation, b // HasValidationInfos returns a boolean if a field has been set. func (o *OsBulkInstallInfo) HasValidationInfos() bool { - if o != nil && IsNil(o.ValidationInfos) { + if o != nil && !IsNil(o.ValidationInfos) { return true } @@ -551,7 +561,7 @@ func (o *OsBulkInstallInfo) GetServersOk() ([]ComputePhysicalRelationship, bool) // HasServers returns a boolean if a field has been set. func (o *OsBulkInstallInfo) HasServers() bool { - if o != nil && IsNil(o.Servers) { + if o != nil && !IsNil(o.Servers) { return true } @@ -581,7 +591,13 @@ func (o OsBulkInstallInfo) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.FileContent) { toSerialize["FileContent"] = o.FileContent @@ -636,6 +652,13 @@ func (o *OsBulkInstallInfo) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -645,11 +668,23 @@ func (o *OsBulkInstallInfo) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type OsBulkInstallInfoWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_os_bulk_install_info_list.go b/model_os_bulk_install_info_list.go index 8dacfc5978..3f6fcb9c32 100644 --- a/model_os_bulk_install_info_list.go +++ b/model_os_bulk_install_info_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *OsBulkInstallInfoList) GetResultsOk() ([]OsBulkInstallInfo, bool) { // HasResults returns a boolean if a field has been set. func (o *OsBulkInstallInfoList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *OsBulkInstallInfoList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *OsBulkInstallInfoList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type OsBulkInstallInfoListWithoutEmbeddedStruct struct { // The total number of 'os.BulkInstallInfo' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_os_bulk_install_info_response.go b/model_os_bulk_install_info_response.go index 40d91c861f..7153990711 100644 --- a/model_os_bulk_install_info_response.go +++ b/model_os_bulk_install_info_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_os_catalog.go b/model_os_catalog.go index 7b78982075..ad71bd4f3f 100644 --- a/model_os_catalog.go +++ b/model_os_catalog.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -87,6 +87,11 @@ func (o *OsCatalog) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "os.Catalog" of the ClassId field. +func (o *OsCatalog) GetDefaultClassId() interface{} { + return "os.Catalog" +} + // GetObjectType returns the ObjectType field value func (o *OsCatalog) GetObjectType() string { if o == nil { @@ -111,6 +116,11 @@ func (o *OsCatalog) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "os.Catalog" of the ObjectType field. +func (o *OsCatalog) GetDefaultObjectType() interface{} { + return "os.Catalog" +} + // GetName returns the Name field value if set, zero value otherwise. func (o *OsCatalog) GetName() string { if o == nil || IsNil(o.Name) { @@ -164,7 +174,7 @@ func (o *OsCatalog) GetConfigurationFilesOk() ([]OsConfigurationFileRelationship // HasConfigurationFiles returns a boolean if a field has been set. func (o *OsCatalog) HasConfigurationFiles() bool { - if o != nil && IsNil(o.ConfigurationFiles) { + if o != nil && !IsNil(o.ConfigurationFiles) { return true } @@ -197,7 +207,7 @@ func (o *OsCatalog) GetDistributionsOk() ([]OsDistributionRelationship, bool) { // HasDistributions returns a boolean if a field has been set. func (o *OsCatalog) HasDistributions() bool { - if o != nil && IsNil(o.Distributions) { + if o != nil && !IsNil(o.Distributions) { return true } @@ -270,7 +280,13 @@ func (o OsCatalog) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Name) { toSerialize["Name"] = o.Name @@ -301,6 +317,13 @@ func (o *OsCatalog) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -310,11 +333,23 @@ func (o *OsCatalog) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type OsCatalogWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_os_catalog_list.go b/model_os_catalog_list.go index 1ceb88a433..bf4ae18973 100644 --- a/model_os_catalog_list.go +++ b/model_os_catalog_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *OsCatalogList) GetResultsOk() ([]OsCatalog, bool) { // HasResults returns a boolean if a field has been set. func (o *OsCatalogList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *OsCatalogList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *OsCatalogList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type OsCatalogListWithoutEmbeddedStruct struct { // The total number of 'os.Catalog' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_os_catalog_relationship.go b/model_os_catalog_relationship.go index f8ac089cf4..ad3f0716e6 100644 --- a/model_os_catalog_relationship.go +++ b/model_os_catalog_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_os_catalog_response.go b/model_os_catalog_response.go index 3cd5778631..c6463a3c82 100644 --- a/model_os_catalog_response.go +++ b/model_os_catalog_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_os_configuration_file.go b/model_os_configuration_file.go index 55bd9a092e..5d937e1690 100644 --- a/model_os_configuration_file.go +++ b/model_os_configuration_file.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -35,7 +35,7 @@ type OsConfigurationFile struct { // The internal flag is set to true when configuration file is uploaded from OS Install wizard. Internal Configuration files will not be displayed in Answer Management Page. Internal *bool `json:"Internal,omitempty"` // The name of the OS ConfigurationFile that uniquely identifies the configuration file. - Name *string `json:"Name,omitempty"` + Name *string `json:"Name,omitempty" validate:"regexp=^[a-zA-Z0-9\\\\._\\\\-]+$"` Placeholders []OsPlaceHolder `json:"Placeholders,omitempty"` // An internal property that is used to distinguish between the pre-canned OS configuration file entries and user provided entries. Supported *bool `json:"Supported,omitempty"` @@ -98,6 +98,11 @@ func (o *OsConfigurationFile) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "os.ConfigurationFile" of the ClassId field. +func (o *OsConfigurationFile) GetDefaultClassId() interface{} { + return "os.ConfigurationFile" +} + // GetObjectType returns the ObjectType field value func (o *OsConfigurationFile) GetObjectType() string { if o == nil { @@ -122,6 +127,11 @@ func (o *OsConfigurationFile) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "os.ConfigurationFile" of the ObjectType field. +func (o *OsConfigurationFile) GetDefaultObjectType() interface{} { + return "os.ConfigurationFile" +} + // GetDescription returns the Description field value if set, zero value otherwise. func (o *OsConfigurationFile) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -271,7 +281,7 @@ func (o *OsConfigurationFile) GetPlaceholdersOk() ([]OsPlaceHolder, bool) { // HasPlaceholders returns a boolean if a field has been set. func (o *OsConfigurationFile) HasPlaceholders() bool { - if o != nil && IsNil(o.Placeholders) { + if o != nil && !IsNil(o.Placeholders) { return true } @@ -379,7 +389,7 @@ func (o *OsConfigurationFile) GetDistributionsOk() ([]HclOperatingSystemRelation // HasDistributions returns a boolean if a field has been set. func (o *OsConfigurationFile) HasDistributions() bool { - if o != nil && IsNil(o.Distributions) { + if o != nil && !IsNil(o.Distributions) { return true } @@ -409,7 +419,13 @@ func (o OsConfigurationFile) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Description) { toSerialize["Description"] = o.Description @@ -452,6 +468,13 @@ func (o *OsConfigurationFile) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -461,11 +484,23 @@ func (o *OsConfigurationFile) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type OsConfigurationFileWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` @@ -478,7 +513,7 @@ func (o *OsConfigurationFile) UnmarshalJSON(data []byte) (err error) { // The internal flag is set to true when configuration file is uploaded from OS Install wizard. Internal Configuration files will not be displayed in Answer Management Page. Internal *bool `json:"Internal,omitempty"` // The name of the OS ConfigurationFile that uniquely identifies the configuration file. - Name *string `json:"Name,omitempty"` + Name *string `json:"Name,omitempty" validate:"regexp=^[a-zA-Z0-9\\\\._\\\\-]+$"` Placeholders []OsPlaceHolder `json:"Placeholders,omitempty"` // An internal property that is used to distinguish between the pre-canned OS configuration file entries and user provided entries. Supported *bool `json:"Supported,omitempty"` diff --git a/model_os_configuration_file_list.go b/model_os_configuration_file_list.go index 1a788733b6..b07a1562ff 100644 --- a/model_os_configuration_file_list.go +++ b/model_os_configuration_file_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *OsConfigurationFileList) GetResultsOk() ([]OsConfigurationFile, bool) { // HasResults returns a boolean if a field has been set. func (o *OsConfigurationFileList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *OsConfigurationFileList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *OsConfigurationFileList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type OsConfigurationFileListWithoutEmbeddedStruct struct { // The total number of 'os.ConfigurationFile' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_os_configuration_file_relationship.go b/model_os_configuration_file_relationship.go index 083706b707..9647a14c03 100644 --- a/model_os_configuration_file_relationship.go +++ b/model_os_configuration_file_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_os_configuration_file_response.go b/model_os_configuration_file_response.go index 47fc91a594..2fa3951809 100644 --- a/model_os_configuration_file_response.go +++ b/model_os_configuration_file_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_os_distribution.go b/model_os_distribution.go index 95dc69861e..4b32132533 100644 --- a/model_os_distribution.go +++ b/model_os_distribution.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -92,6 +92,11 @@ func (o *OsDistribution) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "os.Distribution" of the ClassId field. +func (o *OsDistribution) GetDefaultClassId() interface{} { + return "os.Distribution" +} + // GetObjectType returns the ObjectType field value func (o *OsDistribution) GetObjectType() string { if o == nil { @@ -116,6 +121,11 @@ func (o *OsDistribution) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "os.Distribution" of the ObjectType field. +func (o *OsDistribution) GetDefaultObjectType() interface{} { + return "os.Distribution" +} + // GetIsSupported returns the IsSupported field value if set, zero value otherwise. func (o *OsDistribution) GetIsSupported() bool { if o == nil || IsNil(o.IsSupported) { @@ -265,7 +275,7 @@ func (o *OsDistribution) GetSupportedEditionsOk() ([]string, bool) { // HasSupportedEditions returns a boolean if a field has been set. func (o *OsDistribution) HasSupportedEditions() bool { - if o != nil && IsNil(o.SupportedEditions) { + if o != nil && !IsNil(o.SupportedEditions) { return true } @@ -424,7 +434,13 @@ func (o OsDistribution) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.IsSupported) { toSerialize["IsSupported"] = o.IsSupported @@ -467,6 +483,13 @@ func (o *OsDistribution) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -476,11 +499,23 @@ func (o *OsDistribution) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type OsDistributionWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_os_distribution_list.go b/model_os_distribution_list.go index d4dbe7c889..80ab5cb6aa 100644 --- a/model_os_distribution_list.go +++ b/model_os_distribution_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *OsDistributionList) GetResultsOk() ([]OsDistribution, bool) { // HasResults returns a boolean if a field has been set. func (o *OsDistributionList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *OsDistributionList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *OsDistributionList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type OsDistributionListWithoutEmbeddedStruct struct { // The total number of 'os.Distribution' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_os_distribution_relationship.go b/model_os_distribution_relationship.go index 8f07392c17..e529f2e4c8 100644 --- a/model_os_distribution_relationship.go +++ b/model_os_distribution_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_os_distribution_response.go b/model_os_distribution_response.go index 098d7bc986..2ad1eaeafc 100644 --- a/model_os_distribution_response.go +++ b/model_os_distribution_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_os_fibre_channel_target.go b/model_os_fibre_channel_target.go index 24805ad1ec..b24889f83e 100644 --- a/model_os_fibre_channel_target.go +++ b/model_os_fibre_channel_target.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -29,11 +29,11 @@ type OsFibreChannelTarget struct { // The fully-qualified name of the instantiated, concrete type. The value should be the same as the 'ClassId' property. ObjectType string `json:"ObjectType"` // The WWPN Address of the underlying fibre channel interface at initator used for SAN boot. Value must be in hexadecimal format xx:xx:xx:xx:xx:xx:xx:xx. For example, 20:00:D4:C9:3C:35:02:01. - InitiatorWwpn *string `json:"InitiatorWwpn,omitempty"` + InitiatorWwpn *string `json:"InitiatorWwpn,omitempty" validate:"regexp=(^([0-9a-fA-F]{2}:){7}[0-9a-fA-F]{2}$)"` // Logical Unit Number (LUN) of the install target. LunId *int64 `json:"LunId,omitempty"` // The WWPN Address of the underlying fibre channel interface at target used by the SAN boot device. Value must be in hexadecimal format xx:xx:xx:xx:xx:xx:xx:xx. For example, 51:4F:0C:50:14:1F:AF:01. - TargetWwpn *string `json:"TargetWwpn,omitempty"` + TargetWwpn *string `json:"TargetWwpn,omitempty" validate:"regexp=(^([0-9a-fA-F]{2}:){7}[0-9a-fA-F]{2}$)"` AdditionalProperties map[string]interface{} } @@ -90,6 +90,11 @@ func (o *OsFibreChannelTarget) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "os.FibreChannelTarget" of the ClassId field. +func (o *OsFibreChannelTarget) GetDefaultClassId() interface{} { + return "os.FibreChannelTarget" +} + // GetObjectType returns the ObjectType field value func (o *OsFibreChannelTarget) GetObjectType() string { if o == nil { @@ -114,6 +119,11 @@ func (o *OsFibreChannelTarget) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "os.FibreChannelTarget" of the ObjectType field. +func (o *OsFibreChannelTarget) GetDefaultObjectType() interface{} { + return "os.FibreChannelTarget" +} + // GetInitiatorWwpn returns the InitiatorWwpn field value if set, zero value otherwise. func (o *OsFibreChannelTarget) GetInitiatorWwpn() string { if o == nil || IsNil(o.InitiatorWwpn) { @@ -228,7 +238,13 @@ func (o OsFibreChannelTarget) ToMap() (map[string]interface{}, error) { if errOsSanTarget != nil { return map[string]interface{}{}, errOsSanTarget } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.InitiatorWwpn) { toSerialize["InitiatorWwpn"] = o.InitiatorWwpn @@ -256,6 +272,13 @@ func (o *OsFibreChannelTarget) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -265,22 +288,34 @@ func (o *OsFibreChannelTarget) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type OsFibreChannelTargetWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` // The fully-qualified name of the instantiated, concrete type. The value should be the same as the 'ClassId' property. ObjectType string `json:"ObjectType"` // The WWPN Address of the underlying fibre channel interface at initator used for SAN boot. Value must be in hexadecimal format xx:xx:xx:xx:xx:xx:xx:xx. For example, 20:00:D4:C9:3C:35:02:01. - InitiatorWwpn *string `json:"InitiatorWwpn,omitempty"` + InitiatorWwpn *string `json:"InitiatorWwpn,omitempty" validate:"regexp=(^([0-9a-fA-F]{2}:){7}[0-9a-fA-F]{2}$)"` // Logical Unit Number (LUN) of the install target. LunId *int64 `json:"LunId,omitempty"` // The WWPN Address of the underlying fibre channel interface at target used by the SAN boot device. Value must be in hexadecimal format xx:xx:xx:xx:xx:xx:xx:xx. For example, 51:4F:0C:50:14:1F:AF:01. - TargetWwpn *string `json:"TargetWwpn,omitempty"` + TargetWwpn *string `json:"TargetWwpn,omitempty" validate:"regexp=(^([0-9a-fA-F]{2}:){7}[0-9a-fA-F]{2}$)"` } varOsFibreChannelTargetWithoutEmbeddedStruct := OsFibreChannelTargetWithoutEmbeddedStruct{} diff --git a/model_os_global_config.go b/model_os_global_config.go index b5b2af0d07..457c6850a0 100644 --- a/model_os_global_config.go +++ b/model_os_global_config.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -29,7 +29,7 @@ type OsGlobalConfig struct { // The fully-qualified name of the instantiated, concrete type. The value should be the same as the 'ClassId' property. ObjectType string `json:"ObjectType"` // Name of the Configuration file. - ConfigurationFileName *string `json:"ConfigurationFileName,omitempty"` + ConfigurationFileName *string `json:"ConfigurationFileName,omitempty" validate:"regexp=^$|^[a-zA-Z0-9\\\\._\\\\-]+$"` // Configuration source for the OS Installation. ConfigurationSource *string `json:"ConfigurationSource,omitempty"` // The install method to be used for OS installation - vMedia, iPXE. Only vMedia is supported as of now. @@ -101,6 +101,11 @@ func (o *OsGlobalConfig) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "os.GlobalConfig" of the ClassId field. +func (o *OsGlobalConfig) GetDefaultClassId() interface{} { + return "os.GlobalConfig" +} + // GetObjectType returns the ObjectType field value func (o *OsGlobalConfig) GetObjectType() string { if o == nil { @@ -125,6 +130,11 @@ func (o *OsGlobalConfig) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "os.GlobalConfig" of the ObjectType field. +func (o *OsGlobalConfig) GetDefaultObjectType() interface{} { + return "os.GlobalConfig" +} + // GetConfigurationFileName returns the ConfigurationFileName field value if set, zero value otherwise. func (o *OsGlobalConfig) GetConfigurationFileName() string { if o == nil || IsNil(o.ConfigurationFileName) { @@ -442,7 +452,13 @@ func (o OsGlobalConfig) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.ConfigurationFileName) { toSerialize["ConfigurationFileName"] = o.ConfigurationFileName @@ -488,6 +504,13 @@ func (o *OsGlobalConfig) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -497,18 +520,30 @@ func (o *OsGlobalConfig) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type OsGlobalConfigWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` // The fully-qualified name of the instantiated, concrete type. The value should be the same as the 'ClassId' property. ObjectType string `json:"ObjectType"` // Name of the Configuration file. - ConfigurationFileName *string `json:"ConfigurationFileName,omitempty"` + ConfigurationFileName *string `json:"ConfigurationFileName,omitempty" validate:"regexp=^$|^[a-zA-Z0-9\\\\._\\\\-]+$"` // Configuration source for the OS Installation. ConfigurationSource *string `json:"ConfigurationSource,omitempty"` // The install method to be used for OS installation - vMedia, iPXE. Only vMedia is supported as of now. diff --git a/model_os_install.go b/model_os_install.go index fca8fa7f1f..395dabbe30 100644 --- a/model_os_install.go +++ b/model_os_install.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -90,6 +90,11 @@ func (o *OsInstall) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "os.Install" of the ClassId field. +func (o *OsInstall) GetDefaultClassId() interface{} { + return "os.Install" +} + // GetObjectType returns the ObjectType field value func (o *OsInstall) GetObjectType() string { if o == nil { @@ -114,6 +119,11 @@ func (o *OsInstall) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "os.Install" of the ObjectType field. +func (o *OsInstall) GetDefaultObjectType() interface{} { + return "os.Install" +} + // GetName returns the Name field value if set, zero value otherwise. func (o *OsInstall) GetName() string { if o == nil || IsNil(o.Name) { @@ -422,7 +432,13 @@ func (o OsInstall) ToMap() (map[string]interface{}, error) { if errOsBaseInstallConfig != nil { return map[string]interface{}{}, errOsBaseInstallConfig } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Name) { toSerialize["Name"] = o.Name @@ -462,6 +478,13 @@ func (o *OsInstall) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -471,11 +494,23 @@ func (o *OsInstall) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type OsInstallWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_os_install_list.go b/model_os_install_list.go index 57e461a5ba..5115a13a91 100644 --- a/model_os_install_list.go +++ b/model_os_install_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *OsInstallList) GetResultsOk() ([]OsInstall, bool) { // HasResults returns a boolean if a field has been set. func (o *OsInstallList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *OsInstallList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *OsInstallList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type OsInstallListWithoutEmbeddedStruct struct { // The total number of 'os.Install' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_os_install_response.go b/model_os_install_response.go index 773fb770a3..fc7f2e9311 100644 --- a/model_os_install_response.go +++ b/model_os_install_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_os_install_target.go b/model_os_install_target.go index 143e4cd879..f8676cf293 100644 --- a/model_os_install_target.go +++ b/model_os_install_target.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -83,6 +83,10 @@ func (o *OsInstallTarget) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -92,11 +96,23 @@ func (o *OsInstallTarget) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type OsInstallTargetWithoutEmbeddedStruct struct { } diff --git a/model_os_install_target_response.go b/model_os_install_target_response.go index fc1514aa21..cd80e4c322 100644 --- a/model_os_install_target_response.go +++ b/model_os_install_target_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -173,6 +173,10 @@ func (o *OsInstallTargetResponse) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -182,11 +186,23 @@ func (o *OsInstallTargetResponse) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type OsInstallTargetResponseWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. The enum values provides the list of concrete types that can be instantiated from this abstract type. ClassId string `json:"ClassId"` diff --git a/model_os_ip_configuration.go b/model_os_ip_configuration.go index 39baa9d696..1f1ddefa6a 100644 --- a/model_os_ip_configuration.go +++ b/model_os_ip_configuration.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -83,6 +83,10 @@ func (o *OsIpConfiguration) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -92,11 +96,23 @@ func (o *OsIpConfiguration) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type OsIpConfigurationWithoutEmbeddedStruct struct { } diff --git a/model_os_ipv4_configuration.go b/model_os_ipv4_configuration.go index c235c16f90..370b096116 100644 --- a/model_os_ipv4_configuration.go +++ b/model_os_ipv4_configuration.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -81,6 +81,11 @@ func (o *OsIpv4Configuration) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "os.Ipv4Configuration" of the ClassId field. +func (o *OsIpv4Configuration) GetDefaultClassId() interface{} { + return "os.Ipv4Configuration" +} + // GetObjectType returns the ObjectType field value func (o *OsIpv4Configuration) GetObjectType() string { if o == nil { @@ -105,6 +110,11 @@ func (o *OsIpv4Configuration) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "os.Ipv4Configuration" of the ObjectType field. +func (o *OsIpv4Configuration) GetDefaultObjectType() interface{} { + return "os.Ipv4Configuration" +} + // GetIpV4Config returns the IpV4Config field value if set, zero value otherwise (both if not set or set to explicit null). func (o *OsIpv4Configuration) GetIpV4Config() CommIpV4Interface { if o == nil || IsNil(o.IpV4Config.Get()) { @@ -166,7 +176,13 @@ func (o OsIpv4Configuration) ToMap() (map[string]interface{}, error) { if errOsIpConfiguration != nil { return map[string]interface{}{}, errOsIpConfiguration } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.IpV4Config.IsSet() { toSerialize["IpV4Config"] = o.IpV4Config.Get() @@ -188,6 +204,13 @@ func (o *OsIpv4Configuration) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -197,11 +220,23 @@ func (o *OsIpv4Configuration) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type OsIpv4ConfigurationWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_os_ipv6_configuration.go b/model_os_ipv6_configuration.go index 73c03a50d8..3d1f74d683 100644 --- a/model_os_ipv6_configuration.go +++ b/model_os_ipv6_configuration.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -81,6 +81,11 @@ func (o *OsIpv6Configuration) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "os.Ipv6Configuration" of the ClassId field. +func (o *OsIpv6Configuration) GetDefaultClassId() interface{} { + return "os.Ipv6Configuration" +} + // GetObjectType returns the ObjectType field value func (o *OsIpv6Configuration) GetObjectType() string { if o == nil { @@ -105,6 +110,11 @@ func (o *OsIpv6Configuration) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "os.Ipv6Configuration" of the ObjectType field. +func (o *OsIpv6Configuration) GetDefaultObjectType() interface{} { + return "os.Ipv6Configuration" +} + // GetIpV6Config returns the IpV6Config field value if set, zero value otherwise (both if not set or set to explicit null). func (o *OsIpv6Configuration) GetIpV6Config() CommIpV6Interface { if o == nil || IsNil(o.IpV6Config.Get()) { @@ -166,7 +176,13 @@ func (o OsIpv6Configuration) ToMap() (map[string]interface{}, error) { if errOsIpConfiguration != nil { return map[string]interface{}{}, errOsIpConfiguration } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.IpV6Config.IsSet() { toSerialize["IpV6Config"] = o.IpV6Config.Get() @@ -188,6 +204,13 @@ func (o *OsIpv6Configuration) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -197,11 +220,23 @@ func (o *OsIpv6Configuration) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type OsIpv6ConfigurationWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_os_iscsi_target.go b/model_os_iscsi_target.go index d1ea5719b1..28e9c0b669 100644 --- a/model_os_iscsi_target.go +++ b/model_os_iscsi_target.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -31,9 +31,9 @@ type OsIscsiTarget struct { // The Logical Unit Number (LUN) of the install target. LunId *int64 `json:"LunId,omitempty"` // IQN (iSCSI qualified name) of Storage iSCSI target.Can be up to 255 characters long and has the following format, iqn.yyyy-mm.naming-authority:unique_name. - TargetIqn *string `json:"TargetIqn,omitempty"` + TargetIqn *string `json:"TargetIqn,omitempty" validate:"regexp=^(iqn\\\\.(\\\\d{4}-(0[1-9]|1[0-2]))\\\\.([a-zA-Z0-9]+)([a-zA-Z0-9-.]*)(:)+([^,\\\\s']+))$"` // MAC address of the VNIC used as iSCSI initiator interface. - VnicMac *string `json:"VnicMac,omitempty"` + VnicMac *string `json:"VnicMac,omitempty" validate:"regexp=^([0-9A-Fa-f]{2}[:]){5}([0-9A-Fa-f]{2})$"` AdditionalProperties map[string]interface{} } @@ -90,6 +90,11 @@ func (o *OsIscsiTarget) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "os.IscsiTarget" of the ClassId field. +func (o *OsIscsiTarget) GetDefaultClassId() interface{} { + return "os.IscsiTarget" +} + // GetObjectType returns the ObjectType field value func (o *OsIscsiTarget) GetObjectType() string { if o == nil { @@ -114,6 +119,11 @@ func (o *OsIscsiTarget) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "os.IscsiTarget" of the ObjectType field. +func (o *OsIscsiTarget) GetDefaultObjectType() interface{} { + return "os.IscsiTarget" +} + // GetLunId returns the LunId field value if set, zero value otherwise. func (o *OsIscsiTarget) GetLunId() int64 { if o == nil || IsNil(o.LunId) { @@ -228,7 +238,13 @@ func (o OsIscsiTarget) ToMap() (map[string]interface{}, error) { if errOsSanTarget != nil { return map[string]interface{}{}, errOsSanTarget } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.LunId) { toSerialize["LunId"] = o.LunId @@ -256,6 +272,13 @@ func (o *OsIscsiTarget) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -265,11 +288,23 @@ func (o *OsIscsiTarget) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type OsIscsiTargetWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` @@ -278,9 +313,9 @@ func (o *OsIscsiTarget) UnmarshalJSON(data []byte) (err error) { // The Logical Unit Number (LUN) of the install target. LunId *int64 `json:"LunId,omitempty"` // IQN (iSCSI qualified name) of Storage iSCSI target.Can be up to 255 characters long and has the following format, iqn.yyyy-mm.naming-authority:unique_name. - TargetIqn *string `json:"TargetIqn,omitempty"` + TargetIqn *string `json:"TargetIqn,omitempty" validate:"regexp=^(iqn\\\\.(\\\\d{4}-(0[1-9]|1[0-2]))\\\\.([a-zA-Z0-9]+)([a-zA-Z0-9-.]*)(:)+([^,\\\\s']+))$"` // MAC address of the VNIC used as iSCSI initiator interface. - VnicMac *string `json:"VnicMac,omitempty"` + VnicMac *string `json:"VnicMac,omitempty" validate:"regexp=^([0-9A-Fa-f]{2}[:]){5}([0-9A-Fa-f]{2})$"` } varOsIscsiTargetWithoutEmbeddedStruct := OsIscsiTargetWithoutEmbeddedStruct{} diff --git a/model_os_operating_system_parameters.go b/model_os_operating_system_parameters.go index b468cf34a6..774730a62d 100644 --- a/model_os_operating_system_parameters.go +++ b/model_os_operating_system_parameters.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -83,6 +83,10 @@ func (o *OsOperatingSystemParameters) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -92,11 +96,23 @@ func (o *OsOperatingSystemParameters) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type OsOperatingSystemParametersWithoutEmbeddedStruct struct { } diff --git a/model_os_os_support.go b/model_os_os_support.go index 20132f1a12..bc4178e6d2 100644 --- a/model_os_os_support.go +++ b/model_os_os_support.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -82,6 +82,11 @@ func (o *OsOsSupport) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "os.OsSupport" of the ClassId field. +func (o *OsOsSupport) GetDefaultClassId() interface{} { + return "os.OsSupport" +} + // GetObjectType returns the ObjectType field value func (o *OsOsSupport) GetObjectType() string { if o == nil { @@ -106,6 +111,11 @@ func (o *OsOsSupport) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "os.OsSupport" of the ObjectType field. +func (o *OsOsSupport) GetDefaultObjectType() interface{} { + return "os.OsSupport" +} + // GetOsVersion returns the OsVersion field value if set, zero value otherwise. func (o *OsOsSupport) GetOsVersion() string { if o == nil || IsNil(o.OsVersion) { @@ -156,7 +166,13 @@ func (o OsOsSupport) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.OsVersion) { toSerialize["OsVersion"] = o.OsVersion @@ -178,6 +194,13 @@ func (o *OsOsSupport) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -187,11 +210,23 @@ func (o *OsOsSupport) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type OsOsSupportWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_os_physical_disk.go b/model_os_physical_disk.go index b46d2805d9..5a9604d343 100644 --- a/model_os_physical_disk.go +++ b/model_os_physical_disk.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -86,6 +86,11 @@ func (o *OsPhysicalDisk) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "os.PhysicalDisk" of the ClassId field. +func (o *OsPhysicalDisk) GetDefaultClassId() interface{} { + return "os.PhysicalDisk" +} + // GetObjectType returns the ObjectType field value func (o *OsPhysicalDisk) GetObjectType() string { if o == nil { @@ -110,6 +115,11 @@ func (o *OsPhysicalDisk) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "os.PhysicalDisk" of the ObjectType field. +func (o *OsPhysicalDisk) GetDefaultObjectType() interface{} { + return "os.PhysicalDisk" +} + // GetName returns the Name field value if set, zero value otherwise. func (o *OsPhysicalDisk) GetName() string { if o == nil || IsNil(o.Name) { @@ -224,7 +234,13 @@ func (o OsPhysicalDisk) ToMap() (map[string]interface{}, error) { if errOsInstallTarget != nil { return map[string]interface{}{}, errOsInstallTarget } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Name) { toSerialize["Name"] = o.Name @@ -252,6 +268,13 @@ func (o *OsPhysicalDisk) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -261,11 +284,23 @@ func (o *OsPhysicalDisk) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type OsPhysicalDiskWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_os_physical_disk_response.go b/model_os_physical_disk_response.go index 4ae854b9d6..486f8b98ed 100644 --- a/model_os_physical_disk_response.go +++ b/model_os_physical_disk_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -88,6 +88,11 @@ func (o *OsPhysicalDiskResponse) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "os.PhysicalDiskResponse" of the ClassId field. +func (o *OsPhysicalDiskResponse) GetDefaultClassId() interface{} { + return "os.PhysicalDiskResponse" +} + // GetObjectType returns the ObjectType field value func (o *OsPhysicalDiskResponse) GetObjectType() string { if o == nil { @@ -112,6 +117,11 @@ func (o *OsPhysicalDiskResponse) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "os.PhysicalDiskResponse" of the ObjectType field. +func (o *OsPhysicalDiskResponse) GetDefaultObjectType() interface{} { + return "os.PhysicalDiskResponse" +} + // GetBootable returns the Bootable field value if set, zero value otherwise. func (o *OsPhysicalDiskResponse) GetBootable() string { if o == nil || IsNil(o.Bootable) { @@ -258,7 +268,13 @@ func (o OsPhysicalDiskResponse) ToMap() (map[string]interface{}, error) { if errOsInstallTargetResponse != nil { return map[string]interface{}{}, errOsInstallTargetResponse } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Bootable) { toSerialize["Bootable"] = o.Bootable @@ -289,6 +305,13 @@ func (o *OsPhysicalDiskResponse) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -298,11 +321,23 @@ func (o *OsPhysicalDiskResponse) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type OsPhysicalDiskResponseWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_os_place_holder.go b/model_os_place_holder.go index f68c18f148..db07fdbae1 100644 --- a/model_os_place_holder.go +++ b/model_os_place_holder.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -90,6 +90,11 @@ func (o *OsPlaceHolder) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "os.PlaceHolder" of the ClassId field. +func (o *OsPlaceHolder) GetDefaultClassId() interface{} { + return "os.PlaceHolder" +} + // GetObjectType returns the ObjectType field value func (o *OsPlaceHolder) GetObjectType() string { if o == nil { @@ -114,6 +119,11 @@ func (o *OsPlaceHolder) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "os.PlaceHolder" of the ObjectType field. +func (o *OsPlaceHolder) GetDefaultObjectType() interface{} { + return "os.PlaceHolder" +} + // GetIsValueSet returns the IsValueSet field value if set, zero value otherwise. func (o *OsPlaceHolder) GetIsValueSet() bool { if o == nil || IsNil(o.IsValueSet) { @@ -167,7 +177,7 @@ func (o *OsPlaceHolder) GetTypeOk() (*interface{}, bool) { // HasType returns a boolean if a field has been set. func (o *OsPlaceHolder) HasType() bool { - if o != nil && IsNil(o.Type) { + if o != nil && !IsNil(o.Type) { return true } @@ -200,7 +210,7 @@ func (o *OsPlaceHolder) GetValueOk() (*interface{}, bool) { // HasValue returns a boolean if a field has been set. func (o *OsPlaceHolder) HasValue() bool { - if o != nil && IsNil(o.Value) { + if o != nil && !IsNil(o.Value) { return true } @@ -230,7 +240,13 @@ func (o OsPlaceHolder) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.IsValueSet) { toSerialize["IsValueSet"] = o.IsValueSet @@ -258,6 +274,13 @@ func (o *OsPlaceHolder) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -267,11 +290,23 @@ func (o *OsPlaceHolder) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type OsPlaceHolderWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_os_san_target.go b/model_os_san_target.go index a84dbc4fdc..007e62b277 100644 --- a/model_os_san_target.go +++ b/model_os_san_target.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -83,6 +83,10 @@ func (o *OsSanTarget) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -92,11 +96,23 @@ func (o *OsSanTarget) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type OsSanTargetWithoutEmbeddedStruct struct { } diff --git a/model_os_server_config.go b/model_os_server_config.go index c10032987f..de60c6eab7 100644 --- a/model_os_server_config.go +++ b/model_os_server_config.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -32,7 +32,7 @@ type OsServerConfig struct { Answers NullableOsAnswers `json:"Answers,omitempty"` ErrorMsgs []string `json:"ErrorMsgs,omitempty"` // The WWPN Address of the underlying fibre channel interface at the host side used for SAN accesss. Value must be in hexadecimal format xx:xx:xx:xx:xx:xx:xx:xx. For example, 20:00:D4:C9:3C:35:02:01. - InitiatorWwpn *string `json:"InitiatorWwpn,omitempty"` + InitiatorWwpn *string `json:"InitiatorWwpn,omitempty" validate:"regexp=^$|(^([0-9a-fA-F]{2}:){7}[0-9a-fA-F]{2}$)"` // The target in which OS installation triggered, the value represented is StorageControllerID follwed by PhysicalDisk SerialNumber in case of Physcial disk or VirtualDriveId for virtual drive. InstallTarget *string `json:"InstallTarget,omitempty"` // The Logical Unit Number (LUN) of the install target. @@ -44,9 +44,9 @@ type OsServerConfig struct { // IQN (iSCSI qualified name) of Storage iSCSI target. Can be up to 255 characters long and has the following format, iqn.yyyy-mm.naming-authority:unique_name. TargetIqn *string `json:"TargetIqn,omitempty"` // The WWPN Address of the underlying fibre channel interface at the target used by the storage. Value must be in hexadecimal format xx:xx:xx:xx:xx:xx:xx:xx. For example, 51:4F:0C:50:14:1F:AF:01. - TargetWwpn *string `json:"TargetWwpn,omitempty"` + TargetWwpn *string `json:"TargetWwpn,omitempty" validate:"regexp=^$|(^([0-9a-fA-F]{2}:){7}[0-9a-fA-F]{2}$)"` // MAC address of the VNIC used as iSCSI initiator interface. - VnicMac *string `json:"VnicMac,omitempty"` + VnicMac *string `json:"VnicMac,omitempty" validate:"regexp=^$|^([0-9A-Fa-f]{2}[:]){5}([0-9A-Fa-f]{2})$"` AdditionalProperties map[string]interface{} } @@ -99,6 +99,11 @@ func (o *OsServerConfig) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "os.ServerConfig" of the ClassId field. +func (o *OsServerConfig) GetDefaultClassId() interface{} { + return "os.ServerConfig" +} + // GetObjectType returns the ObjectType field value func (o *OsServerConfig) GetObjectType() string { if o == nil { @@ -123,6 +128,11 @@ func (o *OsServerConfig) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "os.ServerConfig" of the ObjectType field. +func (o *OsServerConfig) GetDefaultObjectType() interface{} { + return "os.ServerConfig" +} + // GetAdditionalParameters returns the AdditionalParameters field value if set, zero value otherwise (both if not set or set to explicit null). func (o *OsServerConfig) GetAdditionalParameters() []OsPlaceHolder { if o == nil { @@ -144,7 +154,7 @@ func (o *OsServerConfig) GetAdditionalParametersOk() ([]OsPlaceHolder, bool) { // HasAdditionalParameters returns a boolean if a field has been set. func (o *OsServerConfig) HasAdditionalParameters() bool { - if o != nil && IsNil(o.AdditionalParameters) { + if o != nil && !IsNil(o.AdditionalParameters) { return true } @@ -220,7 +230,7 @@ func (o *OsServerConfig) GetErrorMsgsOk() ([]string, bool) { // HasErrorMsgs returns a boolean if a field has been set. func (o *OsServerConfig) HasErrorMsgs() bool { - if o != nil && IsNil(o.ErrorMsgs) { + if o != nil && !IsNil(o.ErrorMsgs) { return true } @@ -560,7 +570,13 @@ func (o OsServerConfig) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.AdditionalParameters != nil { toSerialize["AdditionalParameters"] = o.AdditionalParameters @@ -615,6 +631,13 @@ func (o *OsServerConfig) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -624,11 +647,23 @@ func (o *OsServerConfig) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type OsServerConfigWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` @@ -638,7 +673,7 @@ func (o *OsServerConfig) UnmarshalJSON(data []byte) (err error) { Answers NullableOsAnswers `json:"Answers,omitempty"` ErrorMsgs []string `json:"ErrorMsgs,omitempty"` // The WWPN Address of the underlying fibre channel interface at the host side used for SAN accesss. Value must be in hexadecimal format xx:xx:xx:xx:xx:xx:xx:xx. For example, 20:00:D4:C9:3C:35:02:01. - InitiatorWwpn *string `json:"InitiatorWwpn,omitempty"` + InitiatorWwpn *string `json:"InitiatorWwpn,omitempty" validate:"regexp=^$|(^([0-9a-fA-F]{2}:){7}[0-9a-fA-F]{2}$)"` // The target in which OS installation triggered, the value represented is StorageControllerID follwed by PhysicalDisk SerialNumber in case of Physcial disk or VirtualDriveId for virtual drive. InstallTarget *string `json:"InstallTarget,omitempty"` // The Logical Unit Number (LUN) of the install target. @@ -650,9 +685,9 @@ func (o *OsServerConfig) UnmarshalJSON(data []byte) (err error) { // IQN (iSCSI qualified name) of Storage iSCSI target. Can be up to 255 characters long and has the following format, iqn.yyyy-mm.naming-authority:unique_name. TargetIqn *string `json:"TargetIqn,omitempty"` // The WWPN Address of the underlying fibre channel interface at the target used by the storage. Value must be in hexadecimal format xx:xx:xx:xx:xx:xx:xx:xx. For example, 51:4F:0C:50:14:1F:AF:01. - TargetWwpn *string `json:"TargetWwpn,omitempty"` + TargetWwpn *string `json:"TargetWwpn,omitempty" validate:"regexp=^$|(^([0-9a-fA-F]{2}:){7}[0-9a-fA-F]{2}$)"` // MAC address of the VNIC used as iSCSI initiator interface. - VnicMac *string `json:"VnicMac,omitempty"` + VnicMac *string `json:"VnicMac,omitempty" validate:"regexp=^$|^([0-9A-Fa-f]{2}[:]){5}([0-9A-Fa-f]{2})$"` } varOsServerConfigWithoutEmbeddedStruct := OsServerConfigWithoutEmbeddedStruct{} diff --git a/model_os_supported_version.go b/model_os_supported_version.go index 521a68123d..a0e2a210cb 100644 --- a/model_os_supported_version.go +++ b/model_os_supported_version.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -84,6 +84,11 @@ func (o *OsSupportedVersion) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "os.SupportedVersion" of the ClassId field. +func (o *OsSupportedVersion) GetDefaultClassId() interface{} { + return "os.SupportedVersion" +} + // GetObjectType returns the ObjectType field value func (o *OsSupportedVersion) GetObjectType() string { if o == nil { @@ -108,6 +113,11 @@ func (o *OsSupportedVersion) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "os.SupportedVersion" of the ObjectType field. +func (o *OsSupportedVersion) GetDefaultObjectType() interface{} { + return "os.SupportedVersion" +} + // GetVersionName returns the VersionName field value if set, zero value otherwise. func (o *OsSupportedVersion) GetVersionName() string { if o == nil || IsNil(o.VersionName) { @@ -244,7 +254,13 @@ func (o OsSupportedVersion) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.VersionName) { toSerialize["VersionName"] = o.VersionName @@ -272,6 +288,13 @@ func (o *OsSupportedVersion) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -281,11 +304,23 @@ func (o *OsSupportedVersion) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type OsSupportedVersionWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_os_supported_version_list.go b/model_os_supported_version_list.go index e14e76edb6..1241e18765 100644 --- a/model_os_supported_version_list.go +++ b/model_os_supported_version_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *OsSupportedVersionList) GetResultsOk() ([]OsSupportedVersion, bool) { // HasResults returns a boolean if a field has been set. func (o *OsSupportedVersionList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *OsSupportedVersionList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *OsSupportedVersionList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type OsSupportedVersionListWithoutEmbeddedStruct struct { // The total number of 'os.SupportedVersion' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_os_supported_version_response.go b/model_os_supported_version_response.go index a5e8dd350b..9d0b5f5266 100644 --- a/model_os_supported_version_response.go +++ b/model_os_supported_version_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_os_template_file.go b/model_os_template_file.go index 1d26d95ad8..3f851f78cd 100644 --- a/model_os_template_file.go +++ b/model_os_template_file.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -85,6 +85,11 @@ func (o *OsTemplateFile) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "os.TemplateFile" of the ClassId field. +func (o *OsTemplateFile) GetDefaultClassId() interface{} { + return "os.TemplateFile" +} + // GetObjectType returns the ObjectType field value func (o *OsTemplateFile) GetObjectType() string { if o == nil { @@ -109,6 +114,11 @@ func (o *OsTemplateFile) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "os.TemplateFile" of the ObjectType field. +func (o *OsTemplateFile) GetDefaultObjectType() interface{} { + return "os.TemplateFile" +} + // GetName returns the Name field value if set, zero value otherwise. func (o *OsTemplateFile) GetName() string { if o == nil || IsNil(o.Name) { @@ -162,7 +172,7 @@ func (o *OsTemplateFile) GetPlaceholdersOk() ([]string, bool) { // HasPlaceholders returns a boolean if a field has been set. func (o *OsTemplateFile) HasPlaceholders() bool { - if o != nil && IsNil(o.Placeholders) { + if o != nil && !IsNil(o.Placeholders) { return true } @@ -224,7 +234,13 @@ func (o OsTemplateFile) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Name) { toSerialize["Name"] = o.Name @@ -252,6 +268,13 @@ func (o *OsTemplateFile) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -261,11 +284,23 @@ func (o *OsTemplateFile) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type OsTemplateFileWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_os_valid_install_target.go b/model_os_valid_install_target.go index 53d3d3cc48..a3cda5843b 100644 --- a/model_os_valid_install_target.go +++ b/model_os_valid_install_target.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -95,6 +95,11 @@ func (o *OsValidInstallTarget) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "os.ValidInstallTarget" of the ClassId field. +func (o *OsValidInstallTarget) GetDefaultClassId() interface{} { + return "os.ValidInstallTarget" +} + // GetObjectType returns the ObjectType field value func (o *OsValidInstallTarget) GetObjectType() string { if o == nil { @@ -119,6 +124,11 @@ func (o *OsValidInstallTarget) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "os.ValidInstallTarget" of the ObjectType field. +func (o *OsValidInstallTarget) GetDefaultObjectType() interface{} { + return "os.ValidInstallTarget" +} + // GetError returns the Error field value if set, zero value otherwise. func (o *OsValidInstallTarget) GetError() string { if o == nil || IsNil(o.Error) { @@ -172,7 +182,7 @@ func (o *OsValidInstallTarget) GetInstallTargetsOk() ([]OsInstallTargetResponse, // HasInstallTargets returns a boolean if a field has been set. func (o *OsValidInstallTarget) HasInstallTargets() bool { - if o != nil && IsNil(o.InstallTargets) { + if o != nil && !IsNil(o.InstallTargets) { return true } @@ -205,7 +215,7 @@ func (o *OsValidInstallTarget) GetM2JbodOk() ([]OsPhysicalDiskResponse, bool) { // HasM2Jbod returns a boolean if a field has been set. func (o *OsValidInstallTarget) HasM2Jbod() bool { - if o != nil && IsNil(o.M2Jbod) { + if o != nil && !IsNil(o.M2Jbod) { return true } @@ -238,7 +248,7 @@ func (o *OsValidInstallTarget) GetM2NvmeRaidJbodOk() ([]OsPhysicalDiskResponse, // HasM2NvmeRaidJbod returns a boolean if a field has been set. func (o *OsValidInstallTarget) HasM2NvmeRaidJbod() bool { - if o != nil && IsNil(o.M2NvmeRaidJbod) { + if o != nil && !IsNil(o.M2NvmeRaidJbod) { return true } @@ -271,7 +281,7 @@ func (o *OsValidInstallTarget) GetM2NvmeRaidVirtualDrivesOk() ([]OsVirtualDriveR // HasM2NvmeRaidVirtualDrives returns a boolean if a field has been set. func (o *OsValidInstallTarget) HasM2NvmeRaidVirtualDrives() bool { - if o != nil && IsNil(o.M2NvmeRaidVirtualDrives) { + if o != nil && !IsNil(o.M2NvmeRaidVirtualDrives) { return true } @@ -304,7 +314,7 @@ func (o *OsValidInstallTarget) GetM2VirtualDrivesOk() ([]OsVirtualDriveResponse, // HasM2VirtualDrives returns a boolean if a field has been set. func (o *OsValidInstallTarget) HasM2VirtualDrives() bool { - if o != nil && IsNil(o.M2VirtualDrives) { + if o != nil && !IsNil(o.M2VirtualDrives) { return true } @@ -337,7 +347,7 @@ func (o *OsValidInstallTarget) GetMraidJbodOk() ([]OsPhysicalDiskResponse, bool) // HasMraidJbod returns a boolean if a field has been set. func (o *OsValidInstallTarget) HasMraidJbod() bool { - if o != nil && IsNil(o.MraidJbod) { + if o != nil && !IsNil(o.MraidJbod) { return true } @@ -370,7 +380,7 @@ func (o *OsValidInstallTarget) GetMraidVirtualDrivesOk() ([]OsVirtualDriveRespon // HasMraidVirtualDrives returns a boolean if a field has been set. func (o *OsValidInstallTarget) HasMraidVirtualDrives() bool { - if o != nil && IsNil(o.MraidVirtualDrives) { + if o != nil && !IsNil(o.MraidVirtualDrives) { return true } @@ -403,7 +413,7 @@ func (o *OsValidInstallTarget) GetMstorNvmeOk() ([]OsPhysicalDiskResponse, bool) // HasMstorNvme returns a boolean if a field has been set. func (o *OsValidInstallTarget) HasMstorNvme() bool { - if o != nil && IsNil(o.MstorNvme) { + if o != nil && !IsNil(o.MstorNvme) { return true } @@ -468,7 +478,7 @@ func (o *OsValidInstallTarget) GetU2NvmeOk() ([]OsPhysicalDiskResponse, bool) { // HasU2Nvme returns a boolean if a field has been set. func (o *OsValidInstallTarget) HasU2Nvme() bool { - if o != nil && IsNil(o.U2Nvme) { + if o != nil && !IsNil(o.U2Nvme) { return true } @@ -501,7 +511,7 @@ func (o *OsValidInstallTarget) GetServersOk() ([]ComputePhysicalRelationship, bo // HasServers returns a boolean if a field has been set. func (o *OsValidInstallTarget) HasServers() bool { - if o != nil && IsNil(o.Servers) { + if o != nil && !IsNil(o.Servers) { return true } @@ -531,7 +541,13 @@ func (o OsValidInstallTarget) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Error) { toSerialize["Error"] = o.Error @@ -586,6 +602,13 @@ func (o *OsValidInstallTarget) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -595,11 +618,23 @@ func (o *OsValidInstallTarget) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type OsValidInstallTargetWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_os_validation_information.go b/model_os_validation_information.go index a0bc59ecb6..fa4f97d7ee 100644 --- a/model_os_validation_information.go +++ b/model_os_validation_information.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -86,6 +86,11 @@ func (o *OsValidationInformation) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "os.ValidationInformation" of the ClassId field. +func (o *OsValidationInformation) GetDefaultClassId() interface{} { + return "os.ValidationInformation" +} + // GetObjectType returns the ObjectType field value func (o *OsValidationInformation) GetObjectType() string { if o == nil { @@ -110,6 +115,11 @@ func (o *OsValidationInformation) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "os.ValidationInformation" of the ObjectType field. +func (o *OsValidationInformation) GetDefaultObjectType() interface{} { + return "os.ValidationInformation" +} + // GetErrorMsg returns the ErrorMsg field value if set, zero value otherwise. func (o *OsValidationInformation) GetErrorMsg() string { if o == nil || IsNil(o.ErrorMsg) { @@ -224,7 +234,13 @@ func (o OsValidationInformation) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.ErrorMsg) { toSerialize["ErrorMsg"] = o.ErrorMsg @@ -252,6 +268,13 @@ func (o *OsValidationInformation) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -261,11 +284,23 @@ func (o *OsValidationInformation) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type OsValidationInformationWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_os_virtual_drive.go b/model_os_virtual_drive.go index 88af25356f..b99cec6edb 100644 --- a/model_os_virtual_drive.go +++ b/model_os_virtual_drive.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -86,6 +86,11 @@ func (o *OsVirtualDrive) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "os.VirtualDrive" of the ClassId field. +func (o *OsVirtualDrive) GetDefaultClassId() interface{} { + return "os.VirtualDrive" +} + // GetObjectType returns the ObjectType field value func (o *OsVirtualDrive) GetObjectType() string { if o == nil { @@ -110,6 +115,11 @@ func (o *OsVirtualDrive) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "os.VirtualDrive" of the ObjectType field. +func (o *OsVirtualDrive) GetDefaultObjectType() interface{} { + return "os.VirtualDrive" +} + // GetId returns the Id field value if set, zero value otherwise. func (o *OsVirtualDrive) GetId() string { if o == nil || IsNil(o.Id) { @@ -224,7 +234,13 @@ func (o OsVirtualDrive) ToMap() (map[string]interface{}, error) { if errOsInstallTarget != nil { return map[string]interface{}{}, errOsInstallTarget } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Id) { toSerialize["Id"] = o.Id @@ -252,6 +268,13 @@ func (o *OsVirtualDrive) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -261,11 +284,23 @@ func (o *OsVirtualDrive) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type OsVirtualDriveWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_os_virtual_drive_response.go b/model_os_virtual_drive_response.go index ec0457b240..2265753337 100644 --- a/model_os_virtual_drive_response.go +++ b/model_os_virtual_drive_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -88,6 +88,11 @@ func (o *OsVirtualDriveResponse) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "os.VirtualDriveResponse" of the ClassId field. +func (o *OsVirtualDriveResponse) GetDefaultClassId() interface{} { + return "os.VirtualDriveResponse" +} + // GetObjectType returns the ObjectType field value func (o *OsVirtualDriveResponse) GetObjectType() string { if o == nil { @@ -112,6 +117,11 @@ func (o *OsVirtualDriveResponse) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "os.VirtualDriveResponse" of the ObjectType field. +func (o *OsVirtualDriveResponse) GetDefaultObjectType() interface{} { + return "os.VirtualDriveResponse" +} + // GetBootable returns the Bootable field value if set, zero value otherwise. func (o *OsVirtualDriveResponse) GetBootable() string { if o == nil || IsNil(o.Bootable) { @@ -258,7 +268,13 @@ func (o OsVirtualDriveResponse) ToMap() (map[string]interface{}, error) { if errOsInstallTargetResponse != nil { return map[string]interface{}{}, errOsInstallTargetResponse } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Bootable) { toSerialize["Bootable"] = o.Bootable @@ -289,6 +305,13 @@ func (o *OsVirtualDriveResponse) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -298,11 +321,23 @@ func (o *OsVirtualDriveResponse) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type OsVirtualDriveResponseWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_os_vmware_parameters.go b/model_os_vmware_parameters.go index 6d53126b01..30cb9f0eac 100644 --- a/model_os_vmware_parameters.go +++ b/model_os_vmware_parameters.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -82,6 +82,11 @@ func (o *OsVmwareParameters) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "os.VmwareParameters" of the ClassId field. +func (o *OsVmwareParameters) GetDefaultClassId() interface{} { + return "os.VmwareParameters" +} + // GetObjectType returns the ObjectType field value func (o *OsVmwareParameters) GetObjectType() string { if o == nil { @@ -106,6 +111,11 @@ func (o *OsVmwareParameters) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "os.VmwareParameters" of the ObjectType field. +func (o *OsVmwareParameters) GetDefaultObjectType() interface{} { + return "os.VmwareParameters" +} + // GetVlanid returns the Vlanid field value if set, zero value otherwise. func (o *OsVmwareParameters) GetVlanid() int64 { if o == nil || IsNil(o.Vlanid) { @@ -156,7 +166,13 @@ func (o OsVmwareParameters) ToMap() (map[string]interface{}, error) { if errOsOperatingSystemParameters != nil { return map[string]interface{}{}, errOsOperatingSystemParameters } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Vlanid) { toSerialize["Vlanid"] = o.Vlanid @@ -178,6 +194,13 @@ func (o *OsVmwareParameters) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -187,11 +210,23 @@ func (o *OsVmwareParameters) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type OsVmwareParametersWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_os_windows_parameters.go b/model_os_windows_parameters.go index 2bab872a78..dd4a4700e7 100644 --- a/model_os_windows_parameters.go +++ b/model_os_windows_parameters.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -86,6 +86,11 @@ func (o *OsWindowsParameters) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "os.WindowsParameters" of the ClassId field. +func (o *OsWindowsParameters) GetDefaultClassId() interface{} { + return "os.WindowsParameters" +} + // GetObjectType returns the ObjectType field value func (o *OsWindowsParameters) GetObjectType() string { if o == nil { @@ -110,6 +115,11 @@ func (o *OsWindowsParameters) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "os.WindowsParameters" of the ObjectType field. +func (o *OsWindowsParameters) GetDefaultObjectType() interface{} { + return "os.WindowsParameters" +} + // GetEdition returns the Edition field value if set, zero value otherwise. func (o *OsWindowsParameters) GetEdition() string { if o == nil || IsNil(o.Edition) { @@ -160,7 +170,13 @@ func (o OsWindowsParameters) ToMap() (map[string]interface{}, error) { if errOsOperatingSystemParameters != nil { return map[string]interface{}{}, errOsOperatingSystemParameters } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Edition) { toSerialize["Edition"] = o.Edition @@ -182,6 +198,13 @@ func (o *OsWindowsParameters) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -191,11 +214,23 @@ func (o *OsWindowsParameters) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type OsWindowsParametersWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_partnerintegration_dc_logs.go b/model_partnerintegration_dc_logs.go index dd6d958adf..b5a4bc82c4 100644 --- a/model_partnerintegration_dc_logs.go +++ b/model_partnerintegration_dc_logs.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -85,6 +85,11 @@ func (o *PartnerintegrationDcLogs) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "partnerintegration.DcLogs" of the ClassId field. +func (o *PartnerintegrationDcLogs) GetDefaultClassId() interface{} { + return "partnerintegration.DcLogs" +} + // GetObjectType returns the ObjectType field value func (o *PartnerintegrationDcLogs) GetObjectType() string { if o == nil { @@ -109,6 +114,11 @@ func (o *PartnerintegrationDcLogs) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "partnerintegration.DcLogs" of the ObjectType field. +func (o *PartnerintegrationDcLogs) GetDefaultObjectType() interface{} { + return "partnerintegration.DcLogs" +} + // GetStage returns the Stage field value if set, zero value otherwise. func (o *PartnerintegrationDcLogs) GetStage() string { if o == nil || IsNil(o.Stage) { @@ -162,7 +172,7 @@ func (o *PartnerintegrationDcLogs) GetStderrOk() ([]string, bool) { // HasStderr returns a boolean if a field has been set. func (o *PartnerintegrationDcLogs) HasStderr() bool { - if o != nil && IsNil(o.Stderr) { + if o != nil && !IsNil(o.Stderr) { return true } @@ -195,7 +205,7 @@ func (o *PartnerintegrationDcLogs) GetStdoutOk() ([]string, bool) { // HasStdout returns a boolean if a field has been set. func (o *PartnerintegrationDcLogs) HasStdout() bool { - if o != nil && IsNil(o.Stdout) { + if o != nil && !IsNil(o.Stdout) { return true } @@ -268,7 +278,13 @@ func (o PartnerintegrationDcLogs) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Stage) { toSerialize["Stage"] = o.Stage @@ -299,6 +315,13 @@ func (o *PartnerintegrationDcLogs) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -308,11 +331,23 @@ func (o *PartnerintegrationDcLogs) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type PartnerintegrationDcLogsWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_partnerintegration_dc_logs_list.go b/model_partnerintegration_dc_logs_list.go index f90e5a7431..7dbf151b82 100644 --- a/model_partnerintegration_dc_logs_list.go +++ b/model_partnerintegration_dc_logs_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *PartnerintegrationDcLogsList) GetResultsOk() ([]PartnerintegrationDcLog // HasResults returns a boolean if a field has been set. func (o *PartnerintegrationDcLogsList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *PartnerintegrationDcLogsList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *PartnerintegrationDcLogsList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type PartnerintegrationDcLogsListWithoutEmbeddedStruct struct { // The total number of 'partnerintegration.DcLogs' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_partnerintegration_dc_logs_relationship.go b/model_partnerintegration_dc_logs_relationship.go index 65a35ec928..f51bf5ad9e 100644 --- a/model_partnerintegration_dc_logs_relationship.go +++ b/model_partnerintegration_dc_logs_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_partnerintegration_dc_logs_response.go b/model_partnerintegration_dc_logs_response.go index 8b21b9c687..d26c60e373 100644 --- a/model_partnerintegration_dc_logs_response.go +++ b/model_partnerintegration_dc_logs_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_partnerintegration_device_connector.go b/model_partnerintegration_device_connector.go index 37ef1b9353..623293c581 100644 --- a/model_partnerintegration_device_connector.go +++ b/model_partnerintegration_device_connector.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -37,7 +37,7 @@ type PartnerintegrationDeviceConnector struct { // Name of the docker image that is built. ImageName *string `json:"ImageName,omitempty"` // Name of the device connector recipe. - Name *string `json:"Name,omitempty"` + Name *string `json:"Name,omitempty" validate:"regexp=^[a-zA-Z0-9_.-]{1,64}$"` // Name of the bucket to pick up the file from. SrcBucket *string `json:"SrcBucket,omitempty"` // Name of source file to upload. @@ -101,6 +101,11 @@ func (o *PartnerintegrationDeviceConnector) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "partnerintegration.DeviceConnector" of the ClassId field. +func (o *PartnerintegrationDeviceConnector) GetDefaultClassId() interface{} { + return "partnerintegration.DeviceConnector" +} + // GetObjectType returns the ObjectType field value func (o *PartnerintegrationDeviceConnector) GetObjectType() string { if o == nil { @@ -125,6 +130,11 @@ func (o *PartnerintegrationDeviceConnector) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "partnerintegration.DeviceConnector" of the ObjectType field. +func (o *PartnerintegrationDeviceConnector) GetDefaultObjectType() interface{} { + return "partnerintegration.DeviceConnector" +} + // GetAction returns the Action field value if set, zero value otherwise. func (o *PartnerintegrationDeviceConnector) GetAction() string { if o == nil || IsNil(o.Action) { @@ -370,7 +380,7 @@ func (o *PartnerintegrationDeviceConnector) GetLogsOk() ([]PartnerintegrationDcL // HasLogs returns a boolean if a field has been set. func (o *PartnerintegrationDeviceConnector) HasLogs() bool { - if o != nil && IsNil(o.Logs) { + if o != nil && !IsNil(o.Logs) { return true } @@ -443,7 +453,13 @@ func (o PartnerintegrationDeviceConnector) ToMap() (map[string]interface{}, erro if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Action) { toSerialize["Action"] = o.Action @@ -489,6 +505,13 @@ func (o *PartnerintegrationDeviceConnector) UnmarshalJSON(data []byte) (err erro "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -498,11 +521,23 @@ func (o *PartnerintegrationDeviceConnector) UnmarshalJSON(data []byte) (err erro } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type PartnerintegrationDeviceConnectorWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` @@ -517,7 +552,7 @@ func (o *PartnerintegrationDeviceConnector) UnmarshalJSON(data []byte) (err erro // Name of the docker image that is built. ImageName *string `json:"ImageName,omitempty"` // Name of the device connector recipe. - Name *string `json:"Name,omitempty"` + Name *string `json:"Name,omitempty" validate:"regexp=^[a-zA-Z0-9_.-]{1,64}$"` // Name of the bucket to pick up the file from. SrcBucket *string `json:"SrcBucket,omitempty"` // Name of source file to upload. diff --git a/model_partnerintegration_device_connector_list.go b/model_partnerintegration_device_connector_list.go index a9c1f4c9f8..26c7b08f20 100644 --- a/model_partnerintegration_device_connector_list.go +++ b/model_partnerintegration_device_connector_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *PartnerintegrationDeviceConnectorList) GetResultsOk() ([]Partnerintegra // HasResults returns a boolean if a field has been set. func (o *PartnerintegrationDeviceConnectorList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *PartnerintegrationDeviceConnectorList) UnmarshalJSON(data []byte) (err "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *PartnerintegrationDeviceConnectorList) UnmarshalJSON(data []byte) (err } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type PartnerintegrationDeviceConnectorListWithoutEmbeddedStruct struct { // The total number of 'partnerintegration.DeviceConnector' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_partnerintegration_device_connector_relationship.go b/model_partnerintegration_device_connector_relationship.go index df1021ae4a..dcf99c74fe 100644 --- a/model_partnerintegration_device_connector_relationship.go +++ b/model_partnerintegration_device_connector_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_partnerintegration_device_connector_response.go b/model_partnerintegration_device_connector_response.go index f2b3ce8028..79bbd41a69 100644 --- a/model_partnerintegration_device_connector_response.go +++ b/model_partnerintegration_device_connector_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_partnerintegration_doc_issues.go b/model_partnerintegration_doc_issues.go index 46bd7e72fd..e95b586a83 100644 --- a/model_partnerintegration_doc_issues.go +++ b/model_partnerintegration_doc_issues.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -83,6 +83,11 @@ func (o *PartnerintegrationDocIssues) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "partnerintegration.DocIssues" of the ClassId field. +func (o *PartnerintegrationDocIssues) GetDefaultClassId() interface{} { + return "partnerintegration.DocIssues" +} + // GetObjectType returns the ObjectType field value func (o *PartnerintegrationDocIssues) GetObjectType() string { if o == nil { @@ -107,6 +112,11 @@ func (o *PartnerintegrationDocIssues) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "partnerintegration.DocIssues" of the ObjectType field. +func (o *PartnerintegrationDocIssues) GetDefaultObjectType() interface{} { + return "partnerintegration.DocIssues" +} + // GetDocumentationIssues returns the DocumentationIssues field value if set, zero value otherwise (both if not set or set to explicit null). func (o *PartnerintegrationDocIssues) GetDocumentationIssues() interface{} { if o == nil { @@ -128,7 +138,7 @@ func (o *PartnerintegrationDocIssues) GetDocumentationIssuesOk() (*interface{}, // HasDocumentationIssues returns a boolean if a field has been set. func (o *PartnerintegrationDocIssues) HasDocumentationIssues() bool { - if o != nil && IsNil(o.DocumentationIssues) { + if o != nil && !IsNil(o.DocumentationIssues) { return true } @@ -201,7 +211,13 @@ func (o PartnerintegrationDocIssues) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.DocumentationIssues != nil { toSerialize["DocumentationIssues"] = o.DocumentationIssues @@ -226,6 +242,13 @@ func (o *PartnerintegrationDocIssues) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -235,11 +258,23 @@ func (o *PartnerintegrationDocIssues) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type PartnerintegrationDocIssuesWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_partnerintegration_doc_issues_list.go b/model_partnerintegration_doc_issues_list.go index 80d1015ebd..f51494e7ed 100644 --- a/model_partnerintegration_doc_issues_list.go +++ b/model_partnerintegration_doc_issues_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *PartnerintegrationDocIssuesList) GetResultsOk() ([]PartnerintegrationDo // HasResults returns a boolean if a field has been set. func (o *PartnerintegrationDocIssuesList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *PartnerintegrationDocIssuesList) UnmarshalJSON(data []byte) (err error) "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *PartnerintegrationDocIssuesList) UnmarshalJSON(data []byte) (err error) } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type PartnerintegrationDocIssuesListWithoutEmbeddedStruct struct { // The total number of 'partnerintegration.DocIssues' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_partnerintegration_doc_issues_relationship.go b/model_partnerintegration_doc_issues_relationship.go index d0f4180b3b..2dfb05abdb 100644 --- a/model_partnerintegration_doc_issues_relationship.go +++ b/model_partnerintegration_doc_issues_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_partnerintegration_doc_issues_response.go b/model_partnerintegration_doc_issues_response.go index 011dd53f1b..83bbe55c5c 100644 --- a/model_partnerintegration_doc_issues_response.go +++ b/model_partnerintegration_doc_issues_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_partnerintegration_etl.go b/model_partnerintegration_etl.go index 6257320214..8e2d776611 100644 --- a/model_partnerintegration_etl.go +++ b/model_partnerintegration_etl.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -31,7 +31,7 @@ type PartnerintegrationEtl struct { // Transformation model in yaml format. Data interface{} `json:"Data,omitempty"` // Placeholder name for the ETL. - Name *string `json:"Name,omitempty"` + Name *string `json:"Name,omitempty" validate:"regexp=^[a-zA-Z0-9_.-]{1,64}$"` Inventory NullablePartnerintegrationInventoryRelationship `json:"Inventory,omitempty"` AdditionalProperties map[string]interface{} } @@ -85,6 +85,11 @@ func (o *PartnerintegrationEtl) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "partnerintegration.Etl" of the ClassId field. +func (o *PartnerintegrationEtl) GetDefaultClassId() interface{} { + return "partnerintegration.Etl" +} + // GetObjectType returns the ObjectType field value func (o *PartnerintegrationEtl) GetObjectType() string { if o == nil { @@ -109,6 +114,11 @@ func (o *PartnerintegrationEtl) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "partnerintegration.Etl" of the ObjectType field. +func (o *PartnerintegrationEtl) GetDefaultObjectType() interface{} { + return "partnerintegration.Etl" +} + // GetData returns the Data field value if set, zero value otherwise (both if not set or set to explicit null). func (o *PartnerintegrationEtl) GetData() interface{} { if o == nil { @@ -130,7 +140,7 @@ func (o *PartnerintegrationEtl) GetDataOk() (*interface{}, bool) { // HasData returns a boolean if a field has been set. func (o *PartnerintegrationEtl) HasData() bool { - if o != nil && IsNil(o.Data) { + if o != nil && !IsNil(o.Data) { return true } @@ -235,7 +245,13 @@ func (o PartnerintegrationEtl) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.Data != nil { toSerialize["Data"] = o.Data @@ -263,6 +279,13 @@ func (o *PartnerintegrationEtl) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -272,11 +295,23 @@ func (o *PartnerintegrationEtl) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type PartnerintegrationEtlWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` @@ -285,7 +320,7 @@ func (o *PartnerintegrationEtl) UnmarshalJSON(data []byte) (err error) { // Transformation model in yaml format. Data interface{} `json:"Data,omitempty"` // Placeholder name for the ETL. - Name *string `json:"Name,omitempty"` + Name *string `json:"Name,omitempty" validate:"regexp=^[a-zA-Z0-9_.-]{1,64}$"` Inventory NullablePartnerintegrationInventoryRelationship `json:"Inventory,omitempty"` } diff --git a/model_partnerintegration_etl_list.go b/model_partnerintegration_etl_list.go index e8d18b8956..ab84e7a34b 100644 --- a/model_partnerintegration_etl_list.go +++ b/model_partnerintegration_etl_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *PartnerintegrationEtlList) GetResultsOk() ([]PartnerintegrationEtl, boo // HasResults returns a boolean if a field has been set. func (o *PartnerintegrationEtlList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *PartnerintegrationEtlList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *PartnerintegrationEtlList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type PartnerintegrationEtlListWithoutEmbeddedStruct struct { // The total number of 'partnerintegration.Etl' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_partnerintegration_etl_relationship.go b/model_partnerintegration_etl_relationship.go index a436dae43f..5c87f669cc 100644 --- a/model_partnerintegration_etl_relationship.go +++ b/model_partnerintegration_etl_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_partnerintegration_etl_response.go b/model_partnerintegration_etl_response.go index e6fe4183c6..05445900a3 100644 --- a/model_partnerintegration_etl_response.go +++ b/model_partnerintegration_etl_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_partnerintegration_file.go b/model_partnerintegration_file.go index 402329e91e..95b55a90ab 100644 --- a/model_partnerintegration_file.go +++ b/model_partnerintegration_file.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -93,6 +93,11 @@ func (o *PartnerintegrationFile) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "partnerintegration.File" of the ClassId field. +func (o *PartnerintegrationFile) GetDefaultClassId() interface{} { + return "partnerintegration.File" +} + // GetObjectType returns the ObjectType field value func (o *PartnerintegrationFile) GetObjectType() string { if o == nil { @@ -117,6 +122,11 @@ func (o *PartnerintegrationFile) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "partnerintegration.File" of the ObjectType field. +func (o *PartnerintegrationFile) GetDefaultObjectType() interface{} { + return "partnerintegration.File" +} + // GetFilePath returns the FilePath field value if set, zero value otherwise. func (o *PartnerintegrationFile) GetFilePath() string { if o == nil || IsNil(o.FilePath) { @@ -274,7 +284,13 @@ func (o PartnerintegrationFile) ToMap() (map[string]interface{}, error) { if errSoftwarerepositoryFile != nil { return map[string]interface{}{}, errSoftwarerepositoryFile } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.FilePath) { toSerialize["FilePath"] = o.FilePath @@ -305,6 +321,13 @@ func (o *PartnerintegrationFile) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -314,11 +337,23 @@ func (o *PartnerintegrationFile) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type PartnerintegrationFileWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_partnerintegration_file_list.go b/model_partnerintegration_file_list.go index 3e9ce1348c..93c595d2fd 100644 --- a/model_partnerintegration_file_list.go +++ b/model_partnerintegration_file_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *PartnerintegrationFileList) GetResultsOk() ([]PartnerintegrationFile, b // HasResults returns a boolean if a field has been set. func (o *PartnerintegrationFileList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *PartnerintegrationFileList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *PartnerintegrationFileList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type PartnerintegrationFileListWithoutEmbeddedStruct struct { // The total number of 'partnerintegration.File' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_partnerintegration_file_response.go b/model_partnerintegration_file_response.go index 2b0b62dc01..3ddc87e66c 100644 --- a/model_partnerintegration_file_response.go +++ b/model_partnerintegration_file_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_partnerintegration_inventory.go b/model_partnerintegration_inventory.go index df48fecd5b..75afef25b5 100644 --- a/model_partnerintegration_inventory.go +++ b/model_partnerintegration_inventory.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -43,7 +43,7 @@ type PartnerintegrationInventory struct { // Name of the docker image that is built. ImageName *string `json:"ImageName,omitempty"` // Name of the inventory collection. - Name *string `json:"Name,omitempty"` + Name *string `json:"Name,omitempty" validate:"regexp=^[a-zA-Z0-9_.-]{1,64}$"` // Link to the generated v3 python SDK. PythonSdkUrl *string `json:"PythonSdkUrl,omitempty"` // An array of relationships to partnerintegrationDocIssues resources. @@ -112,6 +112,11 @@ func (o *PartnerintegrationInventory) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "partnerintegration.Inventory" of the ClassId field. +func (o *PartnerintegrationInventory) GetDefaultClassId() interface{} { + return "partnerintegration.Inventory" +} + // GetObjectType returns the ObjectType field value func (o *PartnerintegrationInventory) GetObjectType() string { if o == nil { @@ -136,6 +141,11 @@ func (o *PartnerintegrationInventory) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "partnerintegration.Inventory" of the ObjectType field. +func (o *PartnerintegrationInventory) GetDefaultObjectType() interface{} { + return "partnerintegration.Inventory" +} + // GetAction returns the Action field value if set, zero value otherwise. func (o *PartnerintegrationInventory) GetAction() string { if o == nil || IsNil(o.Action) { @@ -445,7 +455,7 @@ func (o *PartnerintegrationInventory) GetDocIssuesOk() ([]PartnerintegrationDocI // HasDocIssues returns a boolean if a field has been set. func (o *PartnerintegrationInventory) HasDocIssues() bool { - if o != nil && IsNil(o.DocIssues) { + if o != nil && !IsNil(o.DocIssues) { return true } @@ -478,7 +488,7 @@ func (o *PartnerintegrationInventory) GetEtlsOk() ([]PartnerintegrationEtlRelati // HasEtls returns a boolean if a field has been set. func (o *PartnerintegrationInventory) HasEtls() bool { - if o != nil && IsNil(o.Etls) { + if o != nil && !IsNil(o.Etls) { return true } @@ -511,7 +521,7 @@ func (o *PartnerintegrationInventory) GetLogsOk() ([]PartnerintegrationLogsRelat // HasLogs returns a boolean if a field has been set. func (o *PartnerintegrationInventory) HasLogs() bool { - if o != nil && IsNil(o.Logs) { + if o != nil && !IsNil(o.Logs) { return true } @@ -587,7 +597,7 @@ func (o *PartnerintegrationInventory) GetModelsOk() ([]PartnerintegrationModelRe // HasModels returns a boolean if a field has been set. func (o *PartnerintegrationInventory) HasModels() bool { - if o != nil && IsNil(o.Models) { + if o != nil && !IsNil(o.Models) { return true } @@ -660,7 +670,13 @@ func (o PartnerintegrationInventory) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Action) { toSerialize["Action"] = o.Action @@ -724,6 +740,13 @@ func (o *PartnerintegrationInventory) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -733,11 +756,23 @@ func (o *PartnerintegrationInventory) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type PartnerintegrationInventoryWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` @@ -758,7 +793,7 @@ func (o *PartnerintegrationInventory) UnmarshalJSON(data []byte) (err error) { // Name of the docker image that is built. ImageName *string `json:"ImageName,omitempty"` // Name of the inventory collection. - Name *string `json:"Name,omitempty"` + Name *string `json:"Name,omitempty" validate:"regexp=^[a-zA-Z0-9_.-]{1,64}$"` // Link to the generated v3 python SDK. PythonSdkUrl *string `json:"PythonSdkUrl,omitempty"` // An array of relationships to partnerintegrationDocIssues resources. diff --git a/model_partnerintegration_inventory_list.go b/model_partnerintegration_inventory_list.go index cc2ee39647..57dde43e5f 100644 --- a/model_partnerintegration_inventory_list.go +++ b/model_partnerintegration_inventory_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *PartnerintegrationInventoryList) GetResultsOk() ([]PartnerintegrationIn // HasResults returns a boolean if a field has been set. func (o *PartnerintegrationInventoryList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *PartnerintegrationInventoryList) UnmarshalJSON(data []byte) (err error) "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *PartnerintegrationInventoryList) UnmarshalJSON(data []byte) (err error) } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type PartnerintegrationInventoryListWithoutEmbeddedStruct struct { // The total number of 'partnerintegration.Inventory' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_partnerintegration_inventory_relationship.go b/model_partnerintegration_inventory_relationship.go index ac5802e683..e8c7e63c81 100644 --- a/model_partnerintegration_inventory_relationship.go +++ b/model_partnerintegration_inventory_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_partnerintegration_inventory_response.go b/model_partnerintegration_inventory_response.go index 761d964594..68881c1880 100644 --- a/model_partnerintegration_inventory_response.go +++ b/model_partnerintegration_inventory_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_partnerintegration_logs.go b/model_partnerintegration_logs.go index bf84e2b67a..2f1b05c8da 100644 --- a/model_partnerintegration_logs.go +++ b/model_partnerintegration_logs.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -85,6 +85,11 @@ func (o *PartnerintegrationLogs) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "partnerintegration.Logs" of the ClassId field. +func (o *PartnerintegrationLogs) GetDefaultClassId() interface{} { + return "partnerintegration.Logs" +} + // GetObjectType returns the ObjectType field value func (o *PartnerintegrationLogs) GetObjectType() string { if o == nil { @@ -109,6 +114,11 @@ func (o *PartnerintegrationLogs) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "partnerintegration.Logs" of the ObjectType field. +func (o *PartnerintegrationLogs) GetDefaultObjectType() interface{} { + return "partnerintegration.Logs" +} + // GetStage returns the Stage field value if set, zero value otherwise. func (o *PartnerintegrationLogs) GetStage() string { if o == nil || IsNil(o.Stage) { @@ -162,7 +172,7 @@ func (o *PartnerintegrationLogs) GetStderrOk() ([]string, bool) { // HasStderr returns a boolean if a field has been set. func (o *PartnerintegrationLogs) HasStderr() bool { - if o != nil && IsNil(o.Stderr) { + if o != nil && !IsNil(o.Stderr) { return true } @@ -195,7 +205,7 @@ func (o *PartnerintegrationLogs) GetStdoutOk() ([]string, bool) { // HasStdout returns a boolean if a field has been set. func (o *PartnerintegrationLogs) HasStdout() bool { - if o != nil && IsNil(o.Stdout) { + if o != nil && !IsNil(o.Stdout) { return true } @@ -268,7 +278,13 @@ func (o PartnerintegrationLogs) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Stage) { toSerialize["Stage"] = o.Stage @@ -299,6 +315,13 @@ func (o *PartnerintegrationLogs) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -308,11 +331,23 @@ func (o *PartnerintegrationLogs) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type PartnerintegrationLogsWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_partnerintegration_logs_list.go b/model_partnerintegration_logs_list.go index 56ae8d88bf..4aec4f8989 100644 --- a/model_partnerintegration_logs_list.go +++ b/model_partnerintegration_logs_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *PartnerintegrationLogsList) GetResultsOk() ([]PartnerintegrationLogs, b // HasResults returns a boolean if a field has been set. func (o *PartnerintegrationLogsList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *PartnerintegrationLogsList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *PartnerintegrationLogsList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type PartnerintegrationLogsListWithoutEmbeddedStruct struct { // The total number of 'partnerintegration.Logs' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_partnerintegration_logs_relationship.go b/model_partnerintegration_logs_relationship.go index da7ed4955e..11fcf9b56e 100644 --- a/model_partnerintegration_logs_relationship.go +++ b/model_partnerintegration_logs_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_partnerintegration_logs_response.go b/model_partnerintegration_logs_response.go index 86121e8f4b..0c1c0886c7 100644 --- a/model_partnerintegration_logs_response.go +++ b/model_partnerintegration_logs_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_partnerintegration_metrics.go b/model_partnerintegration_metrics.go index 30003483ce..2ccf6f7d0f 100644 --- a/model_partnerintegration_metrics.go +++ b/model_partnerintegration_metrics.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -30,7 +30,7 @@ type PartnerintegrationMetrics struct { ObjectType string `json:"ObjectType"` Data NullablePartnerintegrationMetricsModel `json:"Data,omitempty"` // Placeholder name for the Metrics. - Name *string `json:"Name,omitempty"` + Name *string `json:"Name,omitempty" validate:"regexp=^[a-zA-Z0-9_.-]{1,64}$"` Inventory NullablePartnerintegrationInventoryRelationship `json:"Inventory,omitempty"` AdditionalProperties map[string]interface{} } @@ -84,6 +84,11 @@ func (o *PartnerintegrationMetrics) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "partnerintegration.Metrics" of the ClassId field. +func (o *PartnerintegrationMetrics) GetDefaultClassId() interface{} { + return "partnerintegration.Metrics" +} + // GetObjectType returns the ObjectType field value func (o *PartnerintegrationMetrics) GetObjectType() string { if o == nil { @@ -108,6 +113,11 @@ func (o *PartnerintegrationMetrics) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "partnerintegration.Metrics" of the ObjectType field. +func (o *PartnerintegrationMetrics) GetDefaultObjectType() interface{} { + return "partnerintegration.Metrics" +} + // GetData returns the Data field value if set, zero value otherwise (both if not set or set to explicit null). func (o *PartnerintegrationMetrics) GetData() PartnerintegrationMetricsModel { if o == nil || IsNil(o.Data.Get()) { @@ -244,7 +254,13 @@ func (o PartnerintegrationMetrics) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.Data.IsSet() { toSerialize["Data"] = o.Data.Get() @@ -272,6 +288,13 @@ func (o *PartnerintegrationMetrics) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -281,11 +304,23 @@ func (o *PartnerintegrationMetrics) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type PartnerintegrationMetricsWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` @@ -293,7 +328,7 @@ func (o *PartnerintegrationMetrics) UnmarshalJSON(data []byte) (err error) { ObjectType string `json:"ObjectType"` Data NullablePartnerintegrationMetricsModel `json:"Data,omitempty"` // Placeholder name for the Metrics. - Name *string `json:"Name,omitempty"` + Name *string `json:"Name,omitempty" validate:"regexp=^[a-zA-Z0-9_.-]{1,64}$"` Inventory NullablePartnerintegrationInventoryRelationship `json:"Inventory,omitempty"` } diff --git a/model_partnerintegration_metrics_list.go b/model_partnerintegration_metrics_list.go index 7f7909fd56..e964f39364 100644 --- a/model_partnerintegration_metrics_list.go +++ b/model_partnerintegration_metrics_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *PartnerintegrationMetricsList) GetResultsOk() ([]PartnerintegrationMetr // HasResults returns a boolean if a field has been set. func (o *PartnerintegrationMetricsList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *PartnerintegrationMetricsList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *PartnerintegrationMetricsList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type PartnerintegrationMetricsListWithoutEmbeddedStruct struct { // The total number of 'partnerintegration.Metrics' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_partnerintegration_metrics_model.go b/model_partnerintegration_metrics_model.go index 1a33e7fd8a..9ecd2c1fc6 100644 --- a/model_partnerintegration_metrics_model.go +++ b/model_partnerintegration_metrics_model.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -90,6 +90,11 @@ func (o *PartnerintegrationMetricsModel) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "partnerintegration.MetricsModel" of the ClassId field. +func (o *PartnerintegrationMetricsModel) GetDefaultClassId() interface{} { + return "partnerintegration.MetricsModel" +} + // GetObjectType returns the ObjectType field value func (o *PartnerintegrationMetricsModel) GetObjectType() string { if o == nil { @@ -114,6 +119,11 @@ func (o *PartnerintegrationMetricsModel) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "partnerintegration.MetricsModel" of the ObjectType field. +func (o *PartnerintegrationMetricsModel) GetDefaultObjectType() interface{} { + return "partnerintegration.MetricsModel" +} + // GetAttributes returns the Attributes field value if set, zero value otherwise (both if not set or set to explicit null). func (o *PartnerintegrationMetricsModel) GetAttributes() interface{} { if o == nil { @@ -135,7 +145,7 @@ func (o *PartnerintegrationMetricsModel) GetAttributesOk() (*interface{}, bool) // HasAttributes returns a boolean if a field has been set. func (o *PartnerintegrationMetricsModel) HasAttributes() bool { - if o != nil && IsNil(o.Attributes) { + if o != nil && !IsNil(o.Attributes) { return true } @@ -168,7 +178,7 @@ func (o *PartnerintegrationMetricsModel) GetDruidInstrumentExportersOk() (*inter // HasDruidInstrumentExporters returns a boolean if a field has been set. func (o *PartnerintegrationMetricsModel) HasDruidInstrumentExporters() bool { - if o != nil && IsNil(o.DruidInstrumentExporters) { + if o != nil && !IsNil(o.DruidInstrumentExporters) { return true } @@ -201,7 +211,7 @@ func (o *PartnerintegrationMetricsModel) GetInstrumentsOk() (*interface{}, bool) // HasInstruments returns a boolean if a field has been set. func (o *PartnerintegrationMetricsModel) HasInstruments() bool { - if o != nil && IsNil(o.Instruments) { + if o != nil && !IsNil(o.Instruments) { return true } @@ -234,7 +244,7 @@ func (o *PartnerintegrationMetricsModel) GetMeterProvidersOk() (*interface{}, bo // HasMeterProviders returns a boolean if a field has been set. func (o *PartnerintegrationMetricsModel) HasMeterProviders() bool { - if o != nil && IsNil(o.MeterProviders) { + if o != nil && !IsNil(o.MeterProviders) { return true } @@ -267,7 +277,7 @@ func (o *PartnerintegrationMetricsModel) GetMetricsOk() (*interface{}, bool) { // HasMetrics returns a boolean if a field has been set. func (o *PartnerintegrationMetricsModel) HasMetrics() bool { - if o != nil && IsNil(o.Metrics) { + if o != nil && !IsNil(o.Metrics) { return true } @@ -297,7 +307,13 @@ func (o PartnerintegrationMetricsModel) ToMap() (map[string]interface{}, error) if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.Attributes != nil { toSerialize["Attributes"] = o.Attributes @@ -331,6 +347,13 @@ func (o *PartnerintegrationMetricsModel) UnmarshalJSON(data []byte) (err error) "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -340,11 +363,23 @@ func (o *PartnerintegrationMetricsModel) UnmarshalJSON(data []byte) (err error) } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type PartnerintegrationMetricsModelWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_partnerintegration_metrics_relationship.go b/model_partnerintegration_metrics_relationship.go index ab91f58a62..d921bb008c 100644 --- a/model_partnerintegration_metrics_relationship.go +++ b/model_partnerintegration_metrics_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_partnerintegration_metrics_response.go b/model_partnerintegration_metrics_response.go index 300a9b5dbb..b4fea60f28 100644 --- a/model_partnerintegration_metrics_response.go +++ b/model_partnerintegration_metrics_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_partnerintegration_model.go b/model_partnerintegration_model.go index 679f41319d..2b7b4273e1 100644 --- a/model_partnerintegration_model.go +++ b/model_partnerintegration_model.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -31,7 +31,7 @@ type PartnerintegrationModel struct { // Endpoint model in yaml format. Data interface{} `json:"Data,omitempty"` // Placeholder name for the model. - Name *string `json:"Name,omitempty"` + Name *string `json:"Name,omitempty" validate:"regexp=^[a-zA-Z0-9_.-]{1,64}$"` Inventory NullablePartnerintegrationInventoryRelationship `json:"Inventory,omitempty"` AdditionalProperties map[string]interface{} } @@ -85,6 +85,11 @@ func (o *PartnerintegrationModel) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "partnerintegration.Model" of the ClassId field. +func (o *PartnerintegrationModel) GetDefaultClassId() interface{} { + return "partnerintegration.Model" +} + // GetObjectType returns the ObjectType field value func (o *PartnerintegrationModel) GetObjectType() string { if o == nil { @@ -109,6 +114,11 @@ func (o *PartnerintegrationModel) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "partnerintegration.Model" of the ObjectType field. +func (o *PartnerintegrationModel) GetDefaultObjectType() interface{} { + return "partnerintegration.Model" +} + // GetData returns the Data field value if set, zero value otherwise (both if not set or set to explicit null). func (o *PartnerintegrationModel) GetData() interface{} { if o == nil { @@ -130,7 +140,7 @@ func (o *PartnerintegrationModel) GetDataOk() (*interface{}, bool) { // HasData returns a boolean if a field has been set. func (o *PartnerintegrationModel) HasData() bool { - if o != nil && IsNil(o.Data) { + if o != nil && !IsNil(o.Data) { return true } @@ -235,7 +245,13 @@ func (o PartnerintegrationModel) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.Data != nil { toSerialize["Data"] = o.Data @@ -263,6 +279,13 @@ func (o *PartnerintegrationModel) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -272,11 +295,23 @@ func (o *PartnerintegrationModel) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type PartnerintegrationModelWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` @@ -285,7 +320,7 @@ func (o *PartnerintegrationModel) UnmarshalJSON(data []byte) (err error) { // Endpoint model in yaml format. Data interface{} `json:"Data,omitempty"` // Placeholder name for the model. - Name *string `json:"Name,omitempty"` + Name *string `json:"Name,omitempty" validate:"regexp=^[a-zA-Z0-9_.-]{1,64}$"` Inventory NullablePartnerintegrationInventoryRelationship `json:"Inventory,omitempty"` } diff --git a/model_partnerintegration_model_list.go b/model_partnerintegration_model_list.go index 3fd3f74b2a..9d5c1e32c4 100644 --- a/model_partnerintegration_model_list.go +++ b/model_partnerintegration_model_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *PartnerintegrationModelList) GetResultsOk() ([]PartnerintegrationModel, // HasResults returns a boolean if a field has been set. func (o *PartnerintegrationModelList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *PartnerintegrationModelList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *PartnerintegrationModelList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type PartnerintegrationModelListWithoutEmbeddedStruct struct { // The total number of 'partnerintegration.Model' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_partnerintegration_model_relationship.go b/model_partnerintegration_model_relationship.go index 83de81cc34..1c4572fc30 100644 --- a/model_partnerintegration_model_relationship.go +++ b/model_partnerintegration_model_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_partnerintegration_model_response.go b/model_partnerintegration_model_response.go index 478d016588..ed0f8dd533 100644 --- a/model_partnerintegration_model_response.go +++ b/model_partnerintegration_model_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_patch_document.go b/model_patch_document.go index 63ab00ac2b..c825da7265 100644 --- a/model_patch_document.go +++ b/model_patch_document.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -200,6 +200,10 @@ func (o *PatchDocument) UnmarshalJSON(data []byte) (err error) { "path", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -209,11 +213,23 @@ func (o *PatchDocument) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } varPatchDocument := _PatchDocument{} err = json.Unmarshal(data, &varPatchDocument) diff --git a/model_pci_coprocessor_card.go b/model_pci_coprocessor_card.go index e2851ed58d..02a0e10ec2 100644 --- a/model_pci_coprocessor_card.go +++ b/model_pci_coprocessor_card.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -87,6 +87,11 @@ func (o *PciCoprocessorCard) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "pci.CoprocessorCard" of the ClassId field. +func (o *PciCoprocessorCard) GetDefaultClassId() interface{} { + return "pci.CoprocessorCard" +} + // GetObjectType returns the ObjectType field value func (o *PciCoprocessorCard) GetObjectType() string { if o == nil { @@ -111,6 +116,11 @@ func (o *PciCoprocessorCard) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "pci.CoprocessorCard" of the ObjectType field. +func (o *PciCoprocessorCard) GetDefaultObjectType() interface{} { + return "pci.CoprocessorCard" +} + // GetCardId returns the CardId field value if set, zero value otherwise. func (o *PciCoprocessorCard) GetCardId() int64 { if o == nil || IsNil(o.CardId) { @@ -322,7 +332,13 @@ func (o PciCoprocessorCard) ToMap() (map[string]interface{}, error) { if errEquipmentBase != nil { return map[string]interface{}{}, errEquipmentBase } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.CardId) { toSerialize["CardId"] = o.CardId @@ -356,6 +372,13 @@ func (o *PciCoprocessorCard) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -365,11 +388,23 @@ func (o *PciCoprocessorCard) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type PciCoprocessorCardWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_pci_coprocessor_card_list.go b/model_pci_coprocessor_card_list.go index 0323ef089a..f1c58af560 100644 --- a/model_pci_coprocessor_card_list.go +++ b/model_pci_coprocessor_card_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *PciCoprocessorCardList) GetResultsOk() ([]PciCoprocessorCard, bool) { // HasResults returns a boolean if a field has been set. func (o *PciCoprocessorCardList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *PciCoprocessorCardList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *PciCoprocessorCardList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type PciCoprocessorCardListWithoutEmbeddedStruct struct { // The total number of 'pci.CoprocessorCard' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_pci_coprocessor_card_relationship.go b/model_pci_coprocessor_card_relationship.go index 1cb9175c02..afbec62830 100644 --- a/model_pci_coprocessor_card_relationship.go +++ b/model_pci_coprocessor_card_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_pci_coprocessor_card_response.go b/model_pci_coprocessor_card_response.go index a3178d89df..b148ad70b3 100644 --- a/model_pci_coprocessor_card_response.go +++ b/model_pci_coprocessor_card_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_pci_device.go b/model_pci_device.go index 96405e2797..4818fd78a9 100644 --- a/model_pci_device.go +++ b/model_pci_device.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -94,6 +94,11 @@ func (o *PciDevice) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "pci.Device" of the ClassId field. +func (o *PciDevice) GetDefaultClassId() interface{} { + return "pci.Device" +} + // GetObjectType returns the ObjectType field value func (o *PciDevice) GetObjectType() string { if o == nil { @@ -118,6 +123,11 @@ func (o *PciDevice) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "pci.Device" of the ObjectType field. +func (o *PciDevice) GetDefaultObjectType() interface{} { + return "pci.Device" +} + // GetDeviceId returns the DeviceId field value if set, zero value otherwise. func (o *PciDevice) GetDeviceId() string { if o == nil || IsNil(o.DeviceId) { @@ -353,7 +363,7 @@ func (o *PciDevice) GetGraphicsCardsOk() ([]GraphicsCardRelationship, bool) { // HasGraphicsCards returns a boolean if a field has been set. func (o *PciDevice) HasGraphicsCards() bool { - if o != nil && IsNil(o.GraphicsCards) { + if o != nil && !IsNil(o.GraphicsCards) { return true } @@ -469,7 +479,13 @@ func (o PciDevice) ToMap() (map[string]interface{}, error) { if errEquipmentBase != nil { return map[string]interface{}{}, errEquipmentBase } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.DeviceId) { toSerialize["DeviceId"] = o.DeviceId @@ -515,6 +531,13 @@ func (o *PciDevice) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -524,11 +547,23 @@ func (o *PciDevice) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type PciDeviceWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_pci_device_list.go b/model_pci_device_list.go index bc48853f37..3173107277 100644 --- a/model_pci_device_list.go +++ b/model_pci_device_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *PciDeviceList) GetResultsOk() ([]PciDevice, bool) { // HasResults returns a boolean if a field has been set. func (o *PciDeviceList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *PciDeviceList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *PciDeviceList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type PciDeviceListWithoutEmbeddedStruct struct { // The total number of 'pci.Device' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_pci_device_relationship.go b/model_pci_device_relationship.go index 4d583dbf5d..b535201698 100644 --- a/model_pci_device_relationship.go +++ b/model_pci_device_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_pci_device_response.go b/model_pci_device_response.go index f31f797e38..057f1fcca8 100644 --- a/model_pci_device_response.go +++ b/model_pci_device_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_pci_link.go b/model_pci_link.go index 2ab4062db2..78c2f88529 100644 --- a/model_pci_link.go +++ b/model_pci_link.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -95,6 +95,11 @@ func (o *PciLink) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "pci.Link" of the ClassId field. +func (o *PciLink) GetDefaultClassId() interface{} { + return "pci.Link" +} + // GetObjectType returns the ObjectType field value func (o *PciLink) GetObjectType() string { if o == nil { @@ -119,6 +124,11 @@ func (o *PciLink) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "pci.Link" of the ObjectType field. +func (o *PciLink) GetDefaultObjectType() interface{} { + return "pci.Link" +} + // GetAdapter returns the Adapter field value if set, zero value otherwise. func (o *PciLink) GetAdapter() string { if o == nil || IsNil(o.Adapter) { @@ -458,7 +468,13 @@ func (o PciLink) ToMap() (map[string]interface{}, error) { if errEquipmentBase != nil { return map[string]interface{}{}, errEquipmentBase } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Adapter) { toSerialize["Adapter"] = o.Adapter @@ -504,6 +520,13 @@ func (o *PciLink) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -513,11 +536,23 @@ func (o *PciLink) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type PciLinkWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_pci_link_list.go b/model_pci_link_list.go index 295133e140..485e82202c 100644 --- a/model_pci_link_list.go +++ b/model_pci_link_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *PciLinkList) GetResultsOk() ([]PciLink, bool) { // HasResults returns a boolean if a field has been set. func (o *PciLinkList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *PciLinkList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *PciLinkList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type PciLinkListWithoutEmbeddedStruct struct { // The total number of 'pci.Link' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_pci_link_relationship.go b/model_pci_link_relationship.go index e58e61e1c0..ed2a2b4e93 100644 --- a/model_pci_link_relationship.go +++ b/model_pci_link_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_pci_link_response.go b/model_pci_link_response.go index 127942cdc5..b38b57ce30 100644 --- a/model_pci_link_response.go +++ b/model_pci_link_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_pci_node.go b/model_pci_node.go index bc5d8020d3..e5d1930923 100644 --- a/model_pci_node.go +++ b/model_pci_node.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -92,6 +92,11 @@ func (o *PciNode) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "pci.Node" of the ClassId field. +func (o *PciNode) GetDefaultClassId() interface{} { + return "pci.Node" +} + // GetObjectType returns the ObjectType field value func (o *PciNode) GetObjectType() string { if o == nil { @@ -116,6 +121,11 @@ func (o *PciNode) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "pci.Node" of the ObjectType field. +func (o *PciNode) GetDefaultObjectType() interface{} { + return "pci.Node" +} + // GetChassisId returns the ChassisId field value if set, zero value otherwise. func (o *PciNode) GetChassisId() string { if o == nil || IsNil(o.ChassisId) { @@ -169,7 +179,7 @@ func (o *PciNode) GetOperReasonOk() ([]string, bool) { // HasOperReason returns a boolean if a field has been set. func (o *PciNode) HasOperReason() bool { - if o != nil && IsNil(o.OperReason) { + if o != nil && !IsNil(o.OperReason) { return true } @@ -309,7 +319,7 @@ func (o *PciNode) GetGraphicsCardsOk() ([]GraphicsCardRelationship, bool) { // HasGraphicsCards returns a boolean if a field has been set. func (o *PciNode) HasGraphicsCards() bool { - if o != nil && IsNil(o.GraphicsCards) { + if o != nil && !IsNil(o.GraphicsCards) { return true } @@ -425,7 +435,13 @@ func (o PciNode) ToMap() (map[string]interface{}, error) { if errEquipmentBase != nil { return map[string]interface{}{}, errEquipmentBase } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.ChassisId) { toSerialize["ChassisId"] = o.ChassisId @@ -468,6 +484,13 @@ func (o *PciNode) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -477,11 +500,23 @@ func (o *PciNode) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type PciNodeWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_pci_node_list.go b/model_pci_node_list.go index b6c14be768..45a2f4fdae 100644 --- a/model_pci_node_list.go +++ b/model_pci_node_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *PciNodeList) GetResultsOk() ([]PciNode, bool) { // HasResults returns a boolean if a field has been set. func (o *PciNodeList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *PciNodeList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *PciNodeList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type PciNodeListWithoutEmbeddedStruct struct { // The total number of 'pci.Node' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_pci_node_relationship.go b/model_pci_node_relationship.go index e9de676b4f..e12d004dbf 100644 --- a/model_pci_node_relationship.go +++ b/model_pci_node_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_pci_node_response.go b/model_pci_node_response.go index 2950709918..c68c24cbe3 100644 --- a/model_pci_node_response.go +++ b/model_pci_node_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_pci_switch.go b/model_pci_switch.go index 574b2226b7..23b5b20c6d 100644 --- a/model_pci_switch.go +++ b/model_pci_switch.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -111,6 +111,11 @@ func (o *PciSwitch) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "pci.Switch" of the ClassId field. +func (o *PciSwitch) GetDefaultClassId() interface{} { + return "pci.Switch" +} + // GetObjectType returns the ObjectType field value func (o *PciSwitch) GetObjectType() string { if o == nil { @@ -135,6 +140,11 @@ func (o *PciSwitch) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "pci.Switch" of the ObjectType field. +func (o *PciSwitch) GetDefaultObjectType() interface{} { + return "pci.Switch" +} + // GetDeviceId returns the DeviceId field value if set, zero value otherwise. func (o *PciSwitch) GetDeviceId() string { if o == nil || IsNil(o.DeviceId) { @@ -626,7 +636,7 @@ func (o *PciSwitch) GetLinksOk() ([]PciLinkRelationship, bool) { // HasLinks returns a boolean if a field has been set. func (o *PciSwitch) HasLinks() bool { - if o != nil && IsNil(o.Links) { + if o != nil && !IsNil(o.Links) { return true } @@ -702,7 +712,7 @@ func (o *PciSwitch) GetRunningFirmwareOk() ([]FirmwareRunningFirmwareRelationshi // HasRunningFirmware returns a boolean if a field has been set. func (o *PciSwitch) HasRunningFirmware() bool { - if o != nil && IsNil(o.RunningFirmware) { + if o != nil && !IsNil(o.RunningFirmware) { return true } @@ -732,7 +742,13 @@ func (o PciSwitch) ToMap() (map[string]interface{}, error) { if errEquipmentBase != nil { return map[string]interface{}{}, errEquipmentBase } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.DeviceId) { toSerialize["DeviceId"] = o.DeviceId @@ -802,6 +818,13 @@ func (o *PciSwitch) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -811,11 +834,23 @@ func (o *PciSwitch) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type PciSwitchWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_pci_switch_list.go b/model_pci_switch_list.go index d7a136e120..a9a640161c 100644 --- a/model_pci_switch_list.go +++ b/model_pci_switch_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *PciSwitchList) GetResultsOk() ([]PciSwitch, bool) { // HasResults returns a boolean if a field has been set. func (o *PciSwitchList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *PciSwitchList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *PciSwitchList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type PciSwitchListWithoutEmbeddedStruct struct { // The total number of 'pci.Switch' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_pci_switch_relationship.go b/model_pci_switch_relationship.go index 6890b036e8..868e848ebe 100644 --- a/model_pci_switch_relationship.go +++ b/model_pci_switch_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_pci_switch_response.go b/model_pci_switch_response.go index 2289a0c00a..a0a053d800 100644 --- a/model_pci_switch_response.go +++ b/model_pci_switch_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_pkix_distinguished_name.go b/model_pkix_distinguished_name.go index 46abd77b73..7b152f2991 100644 --- a/model_pkix_distinguished_name.go +++ b/model_pkix_distinguished_name.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -87,6 +87,11 @@ func (o *PkixDistinguishedName) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "pkix.DistinguishedName" of the ClassId field. +func (o *PkixDistinguishedName) GetDefaultClassId() interface{} { + return "pkix.DistinguishedName" +} + // GetObjectType returns the ObjectType field value func (o *PkixDistinguishedName) GetObjectType() string { if o == nil { @@ -111,6 +116,11 @@ func (o *PkixDistinguishedName) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "pkix.DistinguishedName" of the ObjectType field. +func (o *PkixDistinguishedName) GetDefaultObjectType() interface{} { + return "pkix.DistinguishedName" +} + // GetCommonName returns the CommonName field value if set, zero value otherwise. func (o *PkixDistinguishedName) GetCommonName() string { if o == nil || IsNil(o.CommonName) { @@ -164,7 +174,7 @@ func (o *PkixDistinguishedName) GetCountryOk() ([]string, bool) { // HasCountry returns a boolean if a field has been set. func (o *PkixDistinguishedName) HasCountry() bool { - if o != nil && IsNil(o.Country) { + if o != nil && !IsNil(o.Country) { return true } @@ -197,7 +207,7 @@ func (o *PkixDistinguishedName) GetLocalityOk() ([]string, bool) { // HasLocality returns a boolean if a field has been set. func (o *PkixDistinguishedName) HasLocality() bool { - if o != nil && IsNil(o.Locality) { + if o != nil && !IsNil(o.Locality) { return true } @@ -230,7 +240,7 @@ func (o *PkixDistinguishedName) GetOrganizationOk() ([]string, bool) { // HasOrganization returns a boolean if a field has been set. func (o *PkixDistinguishedName) HasOrganization() bool { - if o != nil && IsNil(o.Organization) { + if o != nil && !IsNil(o.Organization) { return true } @@ -263,7 +273,7 @@ func (o *PkixDistinguishedName) GetOrganizationalUnitOk() ([]string, bool) { // HasOrganizationalUnit returns a boolean if a field has been set. func (o *PkixDistinguishedName) HasOrganizationalUnit() bool { - if o != nil && IsNil(o.OrganizationalUnit) { + if o != nil && !IsNil(o.OrganizationalUnit) { return true } @@ -296,7 +306,7 @@ func (o *PkixDistinguishedName) GetStateOk() ([]string, bool) { // HasState returns a boolean if a field has been set. func (o *PkixDistinguishedName) HasState() bool { - if o != nil && IsNil(o.State) { + if o != nil && !IsNil(o.State) { return true } @@ -326,7 +336,13 @@ func (o PkixDistinguishedName) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.CommonName) { toSerialize["CommonName"] = o.CommonName @@ -363,6 +379,13 @@ func (o *PkixDistinguishedName) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -372,11 +395,23 @@ func (o *PkixDistinguishedName) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type PkixDistinguishedNameWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_pkix_ecdsa_key_spec.go b/model_pkix_ecdsa_key_spec.go index 4a3f963afc..e5434d4fed 100644 --- a/model_pkix_ecdsa_key_spec.go +++ b/model_pkix_ecdsa_key_spec.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -86,6 +86,11 @@ func (o *PkixEcdsaKeySpec) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "pkix.EcdsaKeySpec" of the ClassId field. +func (o *PkixEcdsaKeySpec) GetDefaultClassId() interface{} { + return "pkix.EcdsaKeySpec" +} + // GetObjectType returns the ObjectType field value func (o *PkixEcdsaKeySpec) GetObjectType() string { if o == nil { @@ -110,6 +115,11 @@ func (o *PkixEcdsaKeySpec) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "pkix.EcdsaKeySpec" of the ObjectType field. +func (o *PkixEcdsaKeySpec) GetDefaultObjectType() interface{} { + return "pkix.EcdsaKeySpec" +} + // GetCurve returns the Curve field value if set, zero value otherwise. func (o *PkixEcdsaKeySpec) GetCurve() string { if o == nil || IsNil(o.Curve) { @@ -160,7 +170,13 @@ func (o PkixEcdsaKeySpec) ToMap() (map[string]interface{}, error) { if errPkixKeyGenerationSpec != nil { return map[string]interface{}{}, errPkixKeyGenerationSpec } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Curve) { toSerialize["Curve"] = o.Curve @@ -182,6 +198,13 @@ func (o *PkixEcdsaKeySpec) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -191,11 +214,23 @@ func (o *PkixEcdsaKeySpec) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type PkixEcdsaKeySpecWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_pkix_eddsa_key_spec.go b/model_pkix_eddsa_key_spec.go index 0f264ccdc9..9ee3c21c19 100644 --- a/model_pkix_eddsa_key_spec.go +++ b/model_pkix_eddsa_key_spec.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -86,6 +86,11 @@ func (o *PkixEddsaKeySpec) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "pkix.EddsaKeySpec" of the ClassId field. +func (o *PkixEddsaKeySpec) GetDefaultClassId() interface{} { + return "pkix.EddsaKeySpec" +} + // GetObjectType returns the ObjectType field value func (o *PkixEddsaKeySpec) GetObjectType() string { if o == nil { @@ -110,6 +115,11 @@ func (o *PkixEddsaKeySpec) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "pkix.EddsaKeySpec" of the ObjectType field. +func (o *PkixEddsaKeySpec) GetDefaultObjectType() interface{} { + return "pkix.EddsaKeySpec" +} + // GetAlgorithm returns the Algorithm field value if set, zero value otherwise. func (o *PkixEddsaKeySpec) GetAlgorithm() string { if o == nil || IsNil(o.Algorithm) { @@ -160,7 +170,13 @@ func (o PkixEddsaKeySpec) ToMap() (map[string]interface{}, error) { if errPkixKeyGenerationSpec != nil { return map[string]interface{}{}, errPkixKeyGenerationSpec } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Algorithm) { toSerialize["Algorithm"] = o.Algorithm @@ -182,6 +198,13 @@ func (o *PkixEddsaKeySpec) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -191,11 +214,23 @@ func (o *PkixEddsaKeySpec) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type PkixEddsaKeySpecWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_pkix_key_generation_spec.go b/model_pkix_key_generation_spec.go index 4d0c599f97..35a01e3b9a 100644 --- a/model_pkix_key_generation_spec.go +++ b/model_pkix_key_generation_spec.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -174,6 +174,10 @@ func (o *PkixKeyGenerationSpec) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -183,11 +187,23 @@ func (o *PkixKeyGenerationSpec) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type PkixKeyGenerationSpecWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. The enum values provides the list of concrete types that can be instantiated from this abstract type. ClassId string `json:"ClassId"` diff --git a/model_pkix_rsa_algorithm.go b/model_pkix_rsa_algorithm.go index b3db323784..ff8f07666f 100644 --- a/model_pkix_rsa_algorithm.go +++ b/model_pkix_rsa_algorithm.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -86,6 +86,11 @@ func (o *PkixRsaAlgorithm) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "pkix.RsaAlgorithm" of the ClassId field. +func (o *PkixRsaAlgorithm) GetDefaultClassId() interface{} { + return "pkix.RsaAlgorithm" +} + // GetObjectType returns the ObjectType field value func (o *PkixRsaAlgorithm) GetObjectType() string { if o == nil { @@ -110,6 +115,11 @@ func (o *PkixRsaAlgorithm) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "pkix.RsaAlgorithm" of the ObjectType field. +func (o *PkixRsaAlgorithm) GetDefaultObjectType() interface{} { + return "pkix.RsaAlgorithm" +} + // GetModulus returns the Modulus field value if set, zero value otherwise. func (o *PkixRsaAlgorithm) GetModulus() int32 { if o == nil || IsNil(o.Modulus) { @@ -160,7 +170,13 @@ func (o PkixRsaAlgorithm) ToMap() (map[string]interface{}, error) { if errPkixKeyGenerationSpec != nil { return map[string]interface{}{}, errPkixKeyGenerationSpec } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Modulus) { toSerialize["Modulus"] = o.Modulus @@ -182,6 +198,13 @@ func (o *PkixRsaAlgorithm) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -191,11 +214,23 @@ func (o *PkixRsaAlgorithm) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type PkixRsaAlgorithmWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_pkix_subject_alternate_name.go b/model_pkix_subject_alternate_name.go index 7ff3f885f1..45f60f9f1b 100644 --- a/model_pkix_subject_alternate_name.go +++ b/model_pkix_subject_alternate_name.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -84,6 +84,11 @@ func (o *PkixSubjectAlternateName) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "pkix.SubjectAlternateName" of the ClassId field. +func (o *PkixSubjectAlternateName) GetDefaultClassId() interface{} { + return "pkix.SubjectAlternateName" +} + // GetObjectType returns the ObjectType field value func (o *PkixSubjectAlternateName) GetObjectType() string { if o == nil { @@ -108,6 +113,11 @@ func (o *PkixSubjectAlternateName) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "pkix.SubjectAlternateName" of the ObjectType field. +func (o *PkixSubjectAlternateName) GetDefaultObjectType() interface{} { + return "pkix.SubjectAlternateName" +} + // GetDnsName returns the DnsName field value if set, zero value otherwise (both if not set or set to explicit null). func (o *PkixSubjectAlternateName) GetDnsName() []string { if o == nil { @@ -129,7 +139,7 @@ func (o *PkixSubjectAlternateName) GetDnsNameOk() ([]string, bool) { // HasDnsName returns a boolean if a field has been set. func (o *PkixSubjectAlternateName) HasDnsName() bool { - if o != nil && IsNil(o.DnsName) { + if o != nil && !IsNil(o.DnsName) { return true } @@ -162,7 +172,7 @@ func (o *PkixSubjectAlternateName) GetEmailAddressOk() ([]string, bool) { // HasEmailAddress returns a boolean if a field has been set. func (o *PkixSubjectAlternateName) HasEmailAddress() bool { - if o != nil && IsNil(o.EmailAddress) { + if o != nil && !IsNil(o.EmailAddress) { return true } @@ -195,7 +205,7 @@ func (o *PkixSubjectAlternateName) GetIpAddressOk() ([]string, bool) { // HasIpAddress returns a boolean if a field has been set. func (o *PkixSubjectAlternateName) HasIpAddress() bool { - if o != nil && IsNil(o.IpAddress) { + if o != nil && !IsNil(o.IpAddress) { return true } @@ -228,7 +238,7 @@ func (o *PkixSubjectAlternateName) GetUriOk() ([]string, bool) { // HasUri returns a boolean if a field has been set. func (o *PkixSubjectAlternateName) HasUri() bool { - if o != nil && IsNil(o.Uri) { + if o != nil && !IsNil(o.Uri) { return true } @@ -258,7 +268,13 @@ func (o PkixSubjectAlternateName) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.DnsName != nil { toSerialize["DnsName"] = o.DnsName @@ -289,6 +305,13 @@ func (o *PkixSubjectAlternateName) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -298,11 +321,23 @@ func (o *PkixSubjectAlternateName) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type PkixSubjectAlternateNameWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_policy_abstract_config_change_detail.go b/model_policy_abstract_config_change_detail.go index 8f507d7837..b3ea5b042c 100644 --- a/model_policy_abstract_config_change_detail.go +++ b/model_policy_abstract_config_change_detail.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -138,7 +138,7 @@ func (o *PolicyAbstractConfigChangeDetail) GetChangesOk() ([]string, bool) { // HasChanges returns a boolean if a field has been set. func (o *PolicyAbstractConfigChangeDetail) HasChanges() bool { - if o != nil && IsNil(o.Changes) { + if o != nil && !IsNil(o.Changes) { return true } @@ -246,7 +246,7 @@ func (o *PolicyAbstractConfigChangeDetail) GetDisruptionsOk() ([]string, bool) { // HasDisruptions returns a boolean if a field has been set. func (o *PolicyAbstractConfigChangeDetail) HasDisruptions() bool { - if o != nil && IsNil(o.Disruptions) { + if o != nil && !IsNil(o.Disruptions) { return true } @@ -377,6 +377,10 @@ func (o *PolicyAbstractConfigChangeDetail) UnmarshalJSON(data []byte) (err error "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -386,11 +390,23 @@ func (o *PolicyAbstractConfigChangeDetail) UnmarshalJSON(data []byte) (err error } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type PolicyAbstractConfigChangeDetailWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. The enum values provides the list of concrete types that can be instantiated from this abstract type. ClassId string `json:"ClassId"` diff --git a/model_policy_abstract_config_profile.go b/model_policy_abstract_config_profile.go index 494a5ad036..1042fda17c 100644 --- a/model_policy_abstract_config_profile.go +++ b/model_policy_abstract_config_profile.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -166,7 +166,7 @@ func (o *PolicyAbstractConfigProfile) GetActionParamsOk() ([]PolicyActionParam, // HasActionParams returns a boolean if a field has been set. func (o *PolicyAbstractConfigProfile) HasActionParams() bool { - if o != nil && IsNil(o.ActionParams) { + if o != nil && !IsNil(o.ActionParams) { return true } @@ -242,7 +242,7 @@ func (o *PolicyAbstractConfigProfile) GetScheduledActionsOk() ([]PolicyScheduled // HasScheduledActions returns a boolean if a field has been set. func (o *PolicyAbstractConfigProfile) HasScheduledActions() bool { - if o != nil && IsNil(o.ScheduledActions) { + if o != nil && !IsNil(o.ScheduledActions) { return true } @@ -275,7 +275,7 @@ func (o *PolicyAbstractConfigProfile) GetPolicyBucketOk() ([]PolicyAbstractPolic // HasPolicyBucket returns a boolean if a field has been set. func (o *PolicyAbstractConfigProfile) HasPolicyBucket() bool { - if o != nil && IsNil(o.PolicyBucket) { + if o != nil && !IsNil(o.PolicyBucket) { return true } @@ -339,6 +339,10 @@ func (o *PolicyAbstractConfigProfile) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -348,11 +352,23 @@ func (o *PolicyAbstractConfigProfile) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type PolicyAbstractConfigProfileWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. The enum values provides the list of concrete types that can be instantiated from this abstract type. ClassId string `json:"ClassId"` diff --git a/model_policy_abstract_config_profile_relationship.go b/model_policy_abstract_config_profile_relationship.go index 56d03c19f0..0856296e82 100644 --- a/model_policy_abstract_config_profile_relationship.go +++ b/model_policy_abstract_config_profile_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_policy_abstract_config_result.go b/model_policy_abstract_config_result.go index 6c83af1af2..c7479324ea 100644 --- a/model_policy_abstract_config_result.go +++ b/model_policy_abstract_config_result.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -128,7 +128,7 @@ func (o *PolicyAbstractConfigResult) GetAppliedPoliciesOk() ([]PolicyPolicyStatu // HasAppliedPolicies returns a boolean if a field has been set. func (o *PolicyAbstractConfigResult) HasAppliedPolicies() bool { - if o != nil && IsNil(o.AppliedPolicies) { + if o != nil && !IsNil(o.AppliedPolicies) { return true } @@ -285,6 +285,10 @@ func (o *PolicyAbstractConfigResult) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -294,11 +298,23 @@ func (o *PolicyAbstractConfigResult) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type PolicyAbstractConfigResultWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. The enum values provides the list of concrete types that can be instantiated from this abstract type. ClassId string `json:"ClassId"` diff --git a/model_policy_abstract_config_result_entry.go b/model_policy_abstract_config_result_entry.go index 3e2eeea3b4..2f338f1c78 100644 --- a/model_policy_abstract_config_result_entry.go +++ b/model_policy_abstract_config_result_entry.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -369,6 +369,10 @@ func (o *PolicyAbstractConfigResultEntry) UnmarshalJSON(data []byte) (err error) "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -378,11 +382,23 @@ func (o *PolicyAbstractConfigResultEntry) UnmarshalJSON(data []byte) (err error) } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type PolicyAbstractConfigResultEntryWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. The enum values provides the list of concrete types that can be instantiated from this abstract type. ClassId string `json:"ClassId"` diff --git a/model_policy_abstract_configuration_object.go b/model_policy_abstract_configuration_object.go index afa8d19200..19941b4820 100644 --- a/model_policy_abstract_configuration_object.go +++ b/model_policy_abstract_configuration_object.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -83,6 +83,10 @@ func (o *PolicyAbstractConfigurationObject) UnmarshalJSON(data []byte) (err erro "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -92,11 +96,23 @@ func (o *PolicyAbstractConfigurationObject) UnmarshalJSON(data []byte) (err erro } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type PolicyAbstractConfigurationObjectWithoutEmbeddedStruct struct { } diff --git a/model_policy_abstract_disruption.go b/model_policy_abstract_disruption.go index 482b70d1db..4afdf6ff7e 100644 --- a/model_policy_abstract_disruption.go +++ b/model_policy_abstract_disruption.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -88,6 +88,11 @@ func (o *PolicyAbstractDisruption) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "server.Disruption" of the ClassId field. +func (o *PolicyAbstractDisruption) GetDefaultClassId() interface{} { + return "server.Disruption" +} + // GetObjectType returns the ObjectType field value func (o *PolicyAbstractDisruption) GetObjectType() string { if o == nil { @@ -112,6 +117,11 @@ func (o *PolicyAbstractDisruption) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "server.Disruption" of the ObjectType field. +func (o *PolicyAbstractDisruption) GetDefaultObjectType() interface{} { + return "server.Disruption" +} + // GetLabel returns the Label field value if set, zero value otherwise. func (o *PolicyAbstractDisruption) GetLabel() string { if o == nil || IsNil(o.Label) { @@ -258,7 +268,13 @@ func (o PolicyAbstractDisruption) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Label) { toSerialize["Label"] = o.Label @@ -289,6 +305,13 @@ func (o *PolicyAbstractDisruption) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -298,11 +321,23 @@ func (o *PolicyAbstractDisruption) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type PolicyAbstractDisruptionWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. The enum values provides the list of concrete types that can be instantiated from this abstract type. ClassId string `json:"ClassId"` diff --git a/model_policy_abstract_inventory.go b/model_policy_abstract_inventory.go index b46db46e4b..549afedf7f 100644 --- a/model_policy_abstract_inventory.go +++ b/model_policy_abstract_inventory.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -174,6 +174,10 @@ func (o *PolicyAbstractInventory) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -183,11 +187,23 @@ func (o *PolicyAbstractInventory) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type PolicyAbstractInventoryWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. The enum values provides the list of concrete types that can be instantiated from this abstract type. ClassId string `json:"ClassId"` diff --git a/model_policy_abstract_policy.go b/model_policy_abstract_policy.go index 39d32ba3da..b21c96bfdc 100644 --- a/model_policy_abstract_policy.go +++ b/model_policy_abstract_policy.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -29,9 +29,9 @@ type PolicyAbstractPolicy struct { // The fully-qualified name of the instantiated, concrete type. The value should be the same as the 'ClassId' property. The enum values provides the list of concrete types that can be instantiated from this abstract type. ObjectType string `json:"ObjectType"` // Description of the policy. - Description *string `json:"Description,omitempty"` + Description *string `json:"Description,omitempty" validate:"regexp=^$|^[a-zA-Z0-9]+[\\\\x00-\\\\xFF]*$"` // Name of the concrete policy. - Name *string `json:"Name,omitempty"` + Name *string `json:"Name,omitempty" validate:"regexp=^[a-zA-Z0-9_.:-]{1,64}$"` AdditionalProperties map[string]interface{} } @@ -211,6 +211,10 @@ func (o *PolicyAbstractPolicy) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -220,20 +224,32 @@ func (o *PolicyAbstractPolicy) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type PolicyAbstractPolicyWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. The enum values provides the list of concrete types that can be instantiated from this abstract type. ClassId string `json:"ClassId"` // The fully-qualified name of the instantiated, concrete type. The value should be the same as the 'ClassId' property. The enum values provides the list of concrete types that can be instantiated from this abstract type. ObjectType string `json:"ObjectType"` // Description of the policy. - Description *string `json:"Description,omitempty"` + Description *string `json:"Description,omitempty" validate:"regexp=^$|^[a-zA-Z0-9]+[\\\\x00-\\\\xFF]*$"` // Name of the concrete policy. - Name *string `json:"Name,omitempty"` + Name *string `json:"Name,omitempty" validate:"regexp=^[a-zA-Z0-9_.:-]{1,64}$"` } varPolicyAbstractPolicyWithoutEmbeddedStruct := PolicyAbstractPolicyWithoutEmbeddedStruct{} diff --git a/model_policy_abstract_policy_inventory.go b/model_policy_abstract_policy_inventory.go index ddcd16c4e5..e9755e20e1 100644 --- a/model_policy_abstract_policy_inventory.go +++ b/model_policy_abstract_policy_inventory.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -29,9 +29,9 @@ type PolicyAbstractPolicyInventory struct { // The fully-qualified name of the instantiated, concrete type. The value should be the same as the 'ClassId' property. The enum values provides the list of concrete types that can be instantiated from this abstract type. ObjectType string `json:"ObjectType"` // Description of the policy. - Description *string `json:"Description,omitempty"` + Description *string `json:"Description,omitempty" validate:"regexp=^$|^[a-zA-Z0-9]+[\\\\sa-zA-Z0-9_'.:-]*$"` // Name of the inventoried policy object. - Name *string `json:"Name,omitempty"` + Name *string `json:"Name,omitempty" validate:"regexp=^[a-zA-Z0-9_.:-]{1,512}$"` AdditionalProperties map[string]interface{} } @@ -211,6 +211,10 @@ func (o *PolicyAbstractPolicyInventory) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -220,20 +224,32 @@ func (o *PolicyAbstractPolicyInventory) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type PolicyAbstractPolicyInventoryWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. The enum values provides the list of concrete types that can be instantiated from this abstract type. ClassId string `json:"ClassId"` // The fully-qualified name of the instantiated, concrete type. The value should be the same as the 'ClassId' property. The enum values provides the list of concrete types that can be instantiated from this abstract type. ObjectType string `json:"ObjectType"` // Description of the policy. - Description *string `json:"Description,omitempty"` + Description *string `json:"Description,omitempty" validate:"regexp=^$|^[a-zA-Z0-9]+[\\\\sa-zA-Z0-9_'.:-]*$"` // Name of the inventoried policy object. - Name *string `json:"Name,omitempty"` + Name *string `json:"Name,omitempty" validate:"regexp=^[a-zA-Z0-9_.:-]{1,512}$"` } varPolicyAbstractPolicyInventoryWithoutEmbeddedStruct := PolicyAbstractPolicyInventoryWithoutEmbeddedStruct{} diff --git a/model_policy_abstract_policy_item.go b/model_policy_abstract_policy_item.go index 100b3fa79f..eb62be14cb 100644 --- a/model_policy_abstract_policy_item.go +++ b/model_policy_abstract_policy_item.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -83,6 +83,10 @@ func (o *PolicyAbstractPolicyItem) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -92,11 +96,23 @@ func (o *PolicyAbstractPolicyItem) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type PolicyAbstractPolicyItemWithoutEmbeddedStruct struct { } diff --git a/model_policy_abstract_policy_relationship.go b/model_policy_abstract_policy_relationship.go index af10f76dd9..eeef2b4531 100644 --- a/model_policy_abstract_policy_relationship.go +++ b/model_policy_abstract_policy_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_policy_abstract_profile.go b/model_policy_abstract_profile.go index 1a35ff0a90..2268ce3767 100644 --- a/model_policy_abstract_profile.go +++ b/model_policy_abstract_profile.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -29,9 +29,9 @@ type PolicyAbstractProfile struct { // The fully-qualified name of the instantiated, concrete type. The value should be the same as the 'ClassId' property. The enum values provides the list of concrete types that can be instantiated from this abstract type. ObjectType string `json:"ObjectType"` // Description of the profile. - Description *string `json:"Description,omitempty"` + Description *string `json:"Description,omitempty" validate:"regexp=^$|^[a-zA-Z0-9]+[\\\\x00-\\\\xFF]*$"` // Name of the profile instance or profile template. - Name *string `json:"Name,omitempty"` + Name *string `json:"Name,omitempty" validate:"regexp=^[a-zA-Z0-9_.-]{1,64}$"` // Defines the type of the profile. Accepted values are instance or template. * `instance` - The profile defines the configuration for a specific instance of a target. Type *string `json:"Type,omitempty"` SrcTemplate NullablePolicyAbstractProfileRelationship `json:"SrcTemplate,omitempty"` @@ -299,6 +299,10 @@ func (o *PolicyAbstractProfile) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -308,20 +312,32 @@ func (o *PolicyAbstractProfile) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type PolicyAbstractProfileWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. The enum values provides the list of concrete types that can be instantiated from this abstract type. ClassId string `json:"ClassId"` // The fully-qualified name of the instantiated, concrete type. The value should be the same as the 'ClassId' property. The enum values provides the list of concrete types that can be instantiated from this abstract type. ObjectType string `json:"ObjectType"` // Description of the profile. - Description *string `json:"Description,omitempty"` + Description *string `json:"Description,omitempty" validate:"regexp=^$|^[a-zA-Z0-9]+[\\\\x00-\\\\xFF]*$"` // Name of the profile instance or profile template. - Name *string `json:"Name,omitempty"` + Name *string `json:"Name,omitempty" validate:"regexp=^[a-zA-Z0-9_.-]{1,64}$"` // Defines the type of the profile. Accepted values are instance or template. * `instance` - The profile defines the configuration for a specific instance of a target. Type *string `json:"Type,omitempty"` SrcTemplate NullablePolicyAbstractProfileRelationship `json:"SrcTemplate,omitempty"` diff --git a/model_policy_abstract_profile_relationship.go b/model_policy_abstract_profile_relationship.go index db243180d7..386e311522 100644 --- a/model_policy_abstract_profile_relationship.go +++ b/model_policy_abstract_profile_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_policy_action_param.go b/model_policy_action_param.go index d5f467b6ad..72b3ca7669 100644 --- a/model_policy_action_param.go +++ b/model_policy_action_param.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -84,6 +84,11 @@ func (o *PolicyActionParam) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "policy.ActionParam" of the ClassId field. +func (o *PolicyActionParam) GetDefaultClassId() interface{} { + return "policy.ActionParam" +} + // GetObjectType returns the ObjectType field value func (o *PolicyActionParam) GetObjectType() string { if o == nil { @@ -108,6 +113,11 @@ func (o *PolicyActionParam) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "policy.ActionParam" of the ObjectType field. +func (o *PolicyActionParam) GetDefaultObjectType() interface{} { + return "policy.ActionParam" +} + // GetName returns the Name field value if set, zero value otherwise. func (o *PolicyActionParam) GetName() string { if o == nil || IsNil(o.Name) { @@ -190,7 +200,13 @@ func (o PolicyActionParam) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Name) { toSerialize["Name"] = o.Name @@ -215,6 +231,13 @@ func (o *PolicyActionParam) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -224,11 +247,23 @@ func (o *PolicyActionParam) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type PolicyActionParamWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_policy_action_qualifier.go b/model_policy_action_qualifier.go index 1d9c808c2c..a61331c7b5 100644 --- a/model_policy_action_qualifier.go +++ b/model_policy_action_qualifier.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -83,6 +83,10 @@ func (o *PolicyActionQualifier) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -92,11 +96,23 @@ func (o *PolicyActionQualifier) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type PolicyActionQualifierWithoutEmbeddedStruct struct { } diff --git a/model_policy_config_change.go b/model_policy_config_change.go index 9a24f98fb9..8e2337e7b4 100644 --- a/model_policy_config_change.go +++ b/model_policy_config_change.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -83,6 +83,11 @@ func (o *PolicyConfigChange) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "policy.ConfigChange" of the ClassId field. +func (o *PolicyConfigChange) GetDefaultClassId() interface{} { + return "policy.ConfigChange" +} + // GetObjectType returns the ObjectType field value func (o *PolicyConfigChange) GetObjectType() string { if o == nil { @@ -107,6 +112,11 @@ func (o *PolicyConfigChange) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "policy.ConfigChange" of the ObjectType field. +func (o *PolicyConfigChange) GetDefaultObjectType() interface{} { + return "policy.ConfigChange" +} + // GetChanges returns the Changes field value if set, zero value otherwise (both if not set or set to explicit null). func (o *PolicyConfigChange) GetChanges() []string { if o == nil { @@ -128,7 +138,7 @@ func (o *PolicyConfigChange) GetChangesOk() ([]string, bool) { // HasChanges returns a boolean if a field has been set. func (o *PolicyConfigChange) HasChanges() bool { - if o != nil && IsNil(o.Changes) { + if o != nil && !IsNil(o.Changes) { return true } @@ -161,7 +171,7 @@ func (o *PolicyConfigChange) GetDisruptionsOk() ([]string, bool) { // HasDisruptions returns a boolean if a field has been set. func (o *PolicyConfigChange) HasDisruptions() bool { - if o != nil && IsNil(o.Disruptions) { + if o != nil && !IsNil(o.Disruptions) { return true } @@ -194,7 +204,7 @@ func (o *PolicyConfigChange) GetPolicyDisruptionsOk() ([]PolicyConfigChangeDisru // HasPolicyDisruptions returns a boolean if a field has been set. func (o *PolicyConfigChange) HasPolicyDisruptions() bool { - if o != nil && IsNil(o.PolicyDisruptions) { + if o != nil && !IsNil(o.PolicyDisruptions) { return true } @@ -224,7 +234,13 @@ func (o PolicyConfigChange) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.Changes != nil { toSerialize["Changes"] = o.Changes @@ -252,6 +268,13 @@ func (o *PolicyConfigChange) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -261,11 +284,23 @@ func (o *PolicyConfigChange) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type PolicyConfigChangeWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_policy_config_change_context.go b/model_policy_config_change_context.go index 2a7add8c19..812f1404aa 100644 --- a/model_policy_config_change_context.go +++ b/model_policy_config_change_context.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -85,6 +85,11 @@ func (o *PolicyConfigChangeContext) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "policy.ConfigChangeContext" of the ClassId field. +func (o *PolicyConfigChangeContext) GetDefaultClassId() interface{} { + return "policy.ConfigChangeContext" +} + // GetObjectType returns the ObjectType field value func (o *PolicyConfigChangeContext) GetObjectType() string { if o == nil { @@ -109,6 +114,11 @@ func (o *PolicyConfigChangeContext) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "policy.ConfigChangeContext" of the ObjectType field. +func (o *PolicyConfigChangeContext) GetDefaultObjectType() interface{} { + return "policy.ConfigChangeContext" +} + // GetConfigChangeError returns the ConfigChangeError field value if set, zero value otherwise. func (o *PolicyConfigChangeContext) GetConfigChangeError() string { if o == nil || IsNil(o.ConfigChangeError) { @@ -234,7 +244,13 @@ func (o PolicyConfigChangeContext) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.ConfigChangeError) { toSerialize["ConfigChangeError"] = o.ConfigChangeError @@ -262,6 +278,13 @@ func (o *PolicyConfigChangeContext) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -271,11 +294,23 @@ func (o *PolicyConfigChangeContext) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type PolicyConfigChangeContextWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_policy_config_change_disruption_detail_type.go b/model_policy_config_change_disruption_detail_type.go index 3c74bb459f..c6c410ec47 100644 --- a/model_policy_config_change_disruption_detail_type.go +++ b/model_policy_config_change_disruption_detail_type.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -85,6 +85,11 @@ func (o *PolicyConfigChangeDisruptionDetailType) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "policy.ConfigChangeDisruptionDetailType" of the ClassId field. +func (o *PolicyConfigChangeDisruptionDetailType) GetDefaultClassId() interface{} { + return "policy.ConfigChangeDisruptionDetailType" +} + // GetObjectType returns the ObjectType field value func (o *PolicyConfigChangeDisruptionDetailType) GetObjectType() string { if o == nil { @@ -109,6 +114,11 @@ func (o *PolicyConfigChangeDisruptionDetailType) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "policy.ConfigChangeDisruptionDetailType" of the ObjectType field. +func (o *PolicyConfigChangeDisruptionDetailType) GetDefaultObjectType() interface{} { + return "policy.ConfigChangeDisruptionDetailType" +} + // GetDisruptions returns the Disruptions field value if set, zero value otherwise (both if not set or set to explicit null). func (o *PolicyConfigChangeDisruptionDetailType) GetDisruptions() []string { if o == nil { @@ -130,7 +140,7 @@ func (o *PolicyConfigChangeDisruptionDetailType) GetDisruptionsOk() ([]string, b // HasDisruptions returns a boolean if a field has been set. func (o *PolicyConfigChangeDisruptionDetailType) HasDisruptions() bool { - if o != nil && IsNil(o.Disruptions) { + if o != nil && !IsNil(o.Disruptions) { return true } @@ -224,7 +234,13 @@ func (o PolicyConfigChangeDisruptionDetailType) ToMap() (map[string]interface{}, if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.Disruptions != nil { toSerialize["Disruptions"] = o.Disruptions @@ -252,6 +268,13 @@ func (o *PolicyConfigChangeDisruptionDetailType) UnmarshalJSON(data []byte) (err "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -261,11 +284,23 @@ func (o *PolicyConfigChangeDisruptionDetailType) UnmarshalJSON(data []byte) (err } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type PolicyConfigChangeDisruptionDetailTypeWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_policy_config_context.go b/model_policy_config_context.go index 6778dafd32..1e0aef4d59 100644 --- a/model_policy_config_context.go +++ b/model_policy_config_context.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -93,6 +93,11 @@ func (o *PolicyConfigContext) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "policy.ConfigContext" of the ClassId field. +func (o *PolicyConfigContext) GetDefaultClassId() interface{} { + return "policy.ConfigContext" +} + // GetObjectType returns the ObjectType field value func (o *PolicyConfigContext) GetObjectType() string { if o == nil { @@ -117,6 +122,11 @@ func (o *PolicyConfigContext) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "policy.ConfigContext" of the ObjectType field. +func (o *PolicyConfigContext) GetDefaultObjectType() interface{} { + return "policy.ConfigContext" +} + // GetConfigState returns the ConfigState field value if set, zero value otherwise. func (o *PolicyConfigContext) GetConfigState() string { if o == nil || IsNil(o.ConfigState) { @@ -298,7 +308,7 @@ func (o *PolicyConfigContext) GetInconsistencyReasonOk() ([]string, bool) { // HasInconsistencyReason returns a boolean if a field has been set. func (o *PolicyConfigContext) HasInconsistencyReason() bool { - if o != nil && IsNil(o.InconsistencyReason) { + if o != nil && !IsNil(o.InconsistencyReason) { return true } @@ -360,7 +370,13 @@ func (o PolicyConfigContext) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.ConfigState) { toSerialize["ConfigState"] = o.ConfigState @@ -400,6 +416,13 @@ func (o *PolicyConfigContext) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -409,11 +432,23 @@ func (o *PolicyConfigContext) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type PolicyConfigContextWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_policy_config_result_context.go b/model_policy_config_result_context.go index 47903a33fa..36a4266d31 100644 --- a/model_policy_config_result_context.go +++ b/model_policy_config_result_context.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -92,6 +92,11 @@ func (o *PolicyConfigResultContext) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "policy.ConfigResultContext" of the ClassId field. +func (o *PolicyConfigResultContext) GetDefaultClassId() interface{} { + return "policy.ConfigResultContext" +} + // GetObjectType returns the ObjectType field value func (o *PolicyConfigResultContext) GetObjectType() string { if o == nil { @@ -116,6 +121,11 @@ func (o *PolicyConfigResultContext) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "policy.ConfigResultContext" of the ObjectType field. +func (o *PolicyConfigResultContext) GetDefaultObjectType() interface{} { + return "policy.ConfigResultContext" +} + // GetEntityData returns the EntityData field value if set, zero value otherwise (both if not set or set to explicit null). func (o *PolicyConfigResultContext) GetEntityData() interface{} { if o == nil { @@ -137,7 +147,7 @@ func (o *PolicyConfigResultContext) GetEntityDataOk() (*interface{}, bool) { // HasEntityData returns a boolean if a field has been set. func (o *PolicyConfigResultContext) HasEntityData() bool { - if o != nil && IsNil(o.EntityData) { + if o != nil && !IsNil(o.EntityData) { return true } @@ -327,7 +337,13 @@ func (o PolicyConfigResultContext) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.EntityData != nil { toSerialize["EntityData"] = o.EntityData @@ -364,6 +380,13 @@ func (o *PolicyConfigResultContext) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -373,11 +396,23 @@ func (o *PolicyConfigResultContext) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type PolicyConfigResultContextWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_policy_policy_error.go b/model_policy_policy_error.go index f1a13e9045..3473b043c9 100644 --- a/model_policy_policy_error.go +++ b/model_policy_policy_error.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -84,6 +84,11 @@ func (o *PolicyPolicyError) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "policy.PolicyError" of the ClassId field. +func (o *PolicyPolicyError) GetDefaultClassId() interface{} { + return "policy.PolicyError" +} + // GetObjectType returns the ObjectType field value func (o *PolicyPolicyError) GetObjectType() string { if o == nil { @@ -108,6 +113,11 @@ func (o *PolicyPolicyError) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "policy.PolicyError" of the ObjectType field. +func (o *PolicyPolicyError) GetDefaultObjectType() interface{} { + return "policy.PolicyError" +} + // GetMessage returns the Message field value if set, zero value otherwise. func (o *PolicyPolicyError) GetMessage() string { if o == nil || IsNil(o.Message) { @@ -190,7 +200,13 @@ func (o PolicyPolicyError) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Message) { toSerialize["Message"] = o.Message @@ -215,6 +231,13 @@ func (o *PolicyPolicyError) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -224,11 +247,23 @@ func (o *PolicyPolicyError) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type PolicyPolicyErrorWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_policy_policy_status.go b/model_policy_policy_status.go index 1e470618c4..7318b6bdaa 100644 --- a/model_policy_policy_status.go +++ b/model_policy_policy_status.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -89,6 +89,11 @@ func (o *PolicyPolicyStatus) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "policy.PolicyStatus" of the ClassId field. +func (o *PolicyPolicyStatus) GetDefaultClassId() interface{} { + return "policy.PolicyStatus" +} + // GetObjectType returns the ObjectType field value func (o *PolicyPolicyStatus) GetObjectType() string { if o == nil { @@ -113,6 +118,11 @@ func (o *PolicyPolicyStatus) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "policy.PolicyStatus" of the ObjectType field. +func (o *PolicyPolicyStatus) GetDefaultObjectType() interface{} { + return "policy.PolicyStatus" +} + // GetErrorMessages returns the ErrorMessages field value if set, zero value otherwise (both if not set or set to explicit null). func (o *PolicyPolicyStatus) GetErrorMessages() []PolicyPolicyError { if o == nil { @@ -134,7 +144,7 @@ func (o *PolicyPolicyStatus) GetErrorMessagesOk() ([]PolicyPolicyError, bool) { // HasErrorMessages returns a boolean if a field has been set. func (o *PolicyPolicyStatus) HasErrorMessages() bool { - if o != nil && IsNil(o.ErrorMessages) { + if o != nil && !IsNil(o.ErrorMessages) { return true } @@ -292,7 +302,13 @@ func (o PolicyPolicyStatus) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.ErrorMessages != nil { toSerialize["ErrorMessages"] = o.ErrorMessages @@ -326,6 +342,13 @@ func (o *PolicyPolicyStatus) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -335,11 +358,23 @@ func (o *PolicyPolicyStatus) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type PolicyPolicyStatusWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_policy_qualifier.go b/model_policy_qualifier.go index d938fae00d..8c3b4aca44 100644 --- a/model_policy_qualifier.go +++ b/model_policy_qualifier.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -83,6 +83,10 @@ func (o *PolicyQualifier) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -92,11 +96,23 @@ func (o *PolicyQualifier) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type PolicyQualifierWithoutEmbeddedStruct struct { } diff --git a/model_policy_scheduled_action.go b/model_policy_scheduled_action.go index 2e22d0dcd8..89149d08e5 100644 --- a/model_policy_scheduled_action.go +++ b/model_policy_scheduled_action.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -84,6 +84,11 @@ func (o *PolicyScheduledAction) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "policy.ScheduledAction" of the ClassId field. +func (o *PolicyScheduledAction) GetDefaultClassId() interface{} { + return "policy.ScheduledAction" +} + // GetObjectType returns the ObjectType field value func (o *PolicyScheduledAction) GetObjectType() string { if o == nil { @@ -108,6 +113,11 @@ func (o *PolicyScheduledAction) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "policy.ScheduledAction" of the ObjectType field. +func (o *PolicyScheduledAction) GetDefaultObjectType() interface{} { + return "policy.ScheduledAction" +} + // GetAction returns the Action field value if set, zero value otherwise. func (o *PolicyScheduledAction) GetAction() string { if o == nil || IsNil(o.Action) { @@ -190,7 +200,13 @@ func (o PolicyScheduledAction) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Action) { toSerialize["Action"] = o.Action @@ -215,6 +231,13 @@ func (o *PolicyScheduledAction) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -224,11 +247,23 @@ func (o *PolicyScheduledAction) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type PolicyScheduledActionWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_policyinventory_abstract_device_info.go b/model_policyinventory_abstract_device_info.go index b7e036b27e..5bc5d8064f 100644 --- a/model_policyinventory_abstract_device_info.go +++ b/model_policyinventory_abstract_device_info.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -92,6 +92,11 @@ func (o *PolicyinventoryAbstractDeviceInfo) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "inventory.DeviceInfo" of the ClassId field. +func (o *PolicyinventoryAbstractDeviceInfo) GetDefaultClassId() interface{} { + return "inventory.DeviceInfo" +} + // GetObjectType returns the ObjectType field value func (o *PolicyinventoryAbstractDeviceInfo) GetObjectType() string { if o == nil { @@ -116,6 +121,11 @@ func (o *PolicyinventoryAbstractDeviceInfo) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "inventory.DeviceInfo" of the ObjectType field. +func (o *PolicyinventoryAbstractDeviceInfo) GetDefaultObjectType() interface{} { + return "inventory.DeviceInfo" +} + // GetConfigState returns the ConfigState field value if set, zero value otherwise. func (o *PolicyinventoryAbstractDeviceInfo) GetConfigState() string { if o == nil || IsNil(o.ConfigState) { @@ -233,7 +243,7 @@ func (o *PolicyinventoryAbstractDeviceInfo) GetJobInfoOk() ([]PolicyinventoryJob // HasJobInfo returns a boolean if a field has been set. func (o *PolicyinventoryAbstractDeviceInfo) HasJobInfo() bool { - if o != nil && IsNil(o.JobInfo) { + if o != nil && !IsNil(o.JobInfo) { return true } @@ -370,7 +380,13 @@ func (o PolicyinventoryAbstractDeviceInfo) ToMap() (map[string]interface{}, erro if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.ConfigState) { toSerialize["ConfigState"] = o.ConfigState @@ -410,6 +426,13 @@ func (o *PolicyinventoryAbstractDeviceInfo) UnmarshalJSON(data []byte) (err erro "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -419,11 +442,23 @@ func (o *PolicyinventoryAbstractDeviceInfo) UnmarshalJSON(data []byte) (err erro } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type PolicyinventoryAbstractDeviceInfoWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. The enum values provides the list of concrete types that can be instantiated from this abstract type. ClassId string `json:"ClassId"` diff --git a/model_policyinventory_job_info.go b/model_policyinventory_job_info.go index 4eb76d25bc..cb59398678 100644 --- a/model_policyinventory_job_info.go +++ b/model_policyinventory_job_info.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -89,6 +89,11 @@ func (o *PolicyinventoryJobInfo) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "policyinventory.JobInfo" of the ClassId field. +func (o *PolicyinventoryJobInfo) GetDefaultClassId() interface{} { + return "policyinventory.JobInfo" +} + // GetObjectType returns the ObjectType field value func (o *PolicyinventoryJobInfo) GetObjectType() string { if o == nil { @@ -113,6 +118,11 @@ func (o *PolicyinventoryJobInfo) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "policyinventory.JobInfo" of the ObjectType field. +func (o *PolicyinventoryJobInfo) GetDefaultObjectType() interface{} { + return "policyinventory.JobInfo" +} + // GetExecutionStatus returns the ExecutionStatus field value if set, zero value otherwise. func (o *PolicyinventoryJobInfo) GetExecutionStatus() string { if o == nil || IsNil(o.ExecutionStatus) { @@ -259,7 +269,13 @@ func (o PolicyinventoryJobInfo) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.ExecutionStatus) { toSerialize["ExecutionStatus"] = o.ExecutionStatus @@ -290,6 +306,13 @@ func (o *PolicyinventoryJobInfo) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -299,11 +322,23 @@ func (o *PolicyinventoryJobInfo) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type PolicyinventoryJobInfoWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_pool_abstract_block.go b/model_pool_abstract_block.go index c1416a37e0..982de52ae5 100644 --- a/model_pool_abstract_block.go +++ b/model_pool_abstract_block.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -211,6 +211,10 @@ func (o *PoolAbstractBlock) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -220,11 +224,23 @@ func (o *PoolAbstractBlock) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type PoolAbstractBlockWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. The enum values provides the list of concrete types that can be instantiated from this abstract type. ClassId string `json:"ClassId"` diff --git a/model_pool_abstract_block_lease.go b/model_pool_abstract_block_lease.go index ba231a3102..90c7c73887 100644 --- a/model_pool_abstract_block_lease.go +++ b/model_pool_abstract_block_lease.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -82,6 +82,11 @@ func (o *PoolAbstractBlockLease) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "ippool.BlockLease" of the ClassId field. +func (o *PoolAbstractBlockLease) GetDefaultClassId() interface{} { + return "ippool.BlockLease" +} + // GetObjectType returns the ObjectType field value func (o *PoolAbstractBlockLease) GetObjectType() string { if o == nil { @@ -106,6 +111,11 @@ func (o *PoolAbstractBlockLease) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "ippool.BlockLease" of the ObjectType field. +func (o *PoolAbstractBlockLease) GetDefaultObjectType() interface{} { + return "ippool.BlockLease" +} + // GetCount returns the Count field value if set, zero value otherwise. func (o *PoolAbstractBlockLease) GetCount() int64 { if o == nil || IsNil(o.Count) { @@ -156,7 +166,13 @@ func (o PoolAbstractBlockLease) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Count) { toSerialize["Count"] = o.Count @@ -178,6 +194,13 @@ func (o *PoolAbstractBlockLease) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -187,11 +210,23 @@ func (o *PoolAbstractBlockLease) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type PoolAbstractBlockLeaseWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. The enum values provides the list of concrete types that can be instantiated from this abstract type. ClassId string `json:"ClassId"` diff --git a/model_pool_abstract_block_type.go b/model_pool_abstract_block_type.go index 6a67c4523b..f586514fa3 100644 --- a/model_pool_abstract_block_type.go +++ b/model_pool_abstract_block_type.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -174,6 +174,10 @@ func (o *PoolAbstractBlockType) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -183,11 +187,23 @@ func (o *PoolAbstractBlockType) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type PoolAbstractBlockTypeWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. The enum values provides the list of concrete types that can be instantiated from this abstract type. ClassId string `json:"ClassId"` diff --git a/model_pool_abstract_id_pool_member.go b/model_pool_abstract_id_pool_member.go index d7909fa2ad..813292c3ad 100644 --- a/model_pool_abstract_id_pool_member.go +++ b/model_pool_abstract_id_pool_member.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -221,6 +221,10 @@ func (o *PoolAbstractIdPoolMember) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -230,11 +234,23 @@ func (o *PoolAbstractIdPoolMember) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type PoolAbstractIdPoolMemberWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. The enum values provides the list of concrete types that can be instantiated from this abstract type. ClassId string `json:"ClassId"` diff --git a/model_pool_abstract_lease.go b/model_pool_abstract_lease.go index 085ad4ca6d..a5daf5b42d 100644 --- a/model_pool_abstract_lease.go +++ b/model_pool_abstract_lease.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -219,6 +219,10 @@ func (o *PoolAbstractLease) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -228,11 +232,23 @@ func (o *PoolAbstractLease) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type PoolAbstractLeaseWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. The enum values provides the list of concrete types that can be instantiated from this abstract type. ClassId string `json:"ClassId"` diff --git a/model_pool_abstract_pool.go b/model_pool_abstract_pool.go index c218415eb4..6b0764c4fb 100644 --- a/model_pool_abstract_pool.go +++ b/model_pool_abstract_pool.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -289,6 +289,10 @@ func (o *PoolAbstractPool) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -298,11 +302,23 @@ func (o *PoolAbstractPool) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type PoolAbstractPoolWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. The enum values provides the list of concrete types that can be instantiated from this abstract type. ClassId string `json:"ClassId"` diff --git a/model_pool_abstract_pool_member.go b/model_pool_abstract_pool_member.go index 9009074e42..9b8cb1796b 100644 --- a/model_pool_abstract_pool_member.go +++ b/model_pool_abstract_pool_member.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -178,6 +178,10 @@ func (o *PoolAbstractPoolMember) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -187,11 +191,23 @@ func (o *PoolAbstractPoolMember) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type PoolAbstractPoolMemberWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. The enum values provides the list of concrete types that can be instantiated from this abstract type. ClassId string `json:"ClassId"` diff --git a/model_pool_reservation.go b/model_pool_reservation.go index e39ba404eb..728387f0fa 100644 --- a/model_pool_reservation.go +++ b/model_pool_reservation.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -178,6 +178,10 @@ func (o *PoolReservation) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -187,11 +191,23 @@ func (o *PoolReservation) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type PoolReservationWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. The enum values provides the list of concrete types that can be instantiated from this abstract type. ClassId string `json:"ClassId"` diff --git a/model_pool_reservation_reference.go b/model_pool_reservation_reference.go index df36d7dd50..44b2a255d5 100644 --- a/model_pool_reservation_reference.go +++ b/model_pool_reservation_reference.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -174,6 +174,10 @@ func (o *PoolReservationReference) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -183,11 +187,23 @@ func (o *PoolReservationReference) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type PoolReservationReferenceWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. The enum values provides the list of concrete types that can be instantiated from this abstract type. ClassId string `json:"ClassId"` diff --git a/model_port_group.go b/model_port_group.go index 6933585cb0..cf83852256 100644 --- a/model_port_group.go +++ b/model_port_group.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -92,6 +92,11 @@ func (o *PortGroup) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "port.Group" of the ClassId field. +func (o *PortGroup) GetDefaultClassId() interface{} { + return "port.Group" +} + // GetObjectType returns the ObjectType field value func (o *PortGroup) GetObjectType() string { if o == nil { @@ -116,6 +121,11 @@ func (o *PortGroup) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "port.Group" of the ObjectType field. +func (o *PortGroup) GetDefaultObjectType() interface{} { + return "port.Group" +} + // GetTransport returns the Transport field value if set, zero value otherwise. func (o *PortGroup) GetTransport() string { if o == nil || IsNil(o.Transport) { @@ -255,7 +265,7 @@ func (o *PortGroup) GetEthernetPortsOk() ([]EtherPhysicalPortRelationship, bool) // HasEthernetPorts returns a boolean if a field has been set. func (o *PortGroup) HasEthernetPorts() bool { - if o != nil && IsNil(o.EthernetPorts) { + if o != nil && !IsNil(o.EthernetPorts) { return true } @@ -288,7 +298,7 @@ func (o *PortGroup) GetFcPortsOk() ([]FcPhysicalPortRelationship, bool) { // HasFcPorts returns a boolean if a field has been set. func (o *PortGroup) HasFcPorts() bool { - if o != nil && IsNil(o.FcPorts) { + if o != nil && !IsNil(o.FcPorts) { return true } @@ -407,7 +417,7 @@ func (o *PortGroup) GetSubGroupsOk() ([]PortSubGroupRelationship, bool) { // HasSubGroups returns a boolean if a field has been set. func (o *PortGroup) HasSubGroups() bool { - if o != nil && IsNil(o.SubGroups) { + if o != nil && !IsNil(o.SubGroups) { return true } @@ -437,7 +447,13 @@ func (o PortGroup) ToMap() (map[string]interface{}, error) { if errInventoryBase != nil { return map[string]interface{}{}, errInventoryBase } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Transport) { toSerialize["Transport"] = o.Transport @@ -480,6 +496,13 @@ func (o *PortGroup) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -489,11 +512,23 @@ func (o *PortGroup) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type PortGroupWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_port_group_list.go b/model_port_group_list.go index 167b3cd42d..49620484bf 100644 --- a/model_port_group_list.go +++ b/model_port_group_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *PortGroupList) GetResultsOk() ([]PortGroup, bool) { // HasResults returns a boolean if a field has been set. func (o *PortGroupList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *PortGroupList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *PortGroupList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type PortGroupListWithoutEmbeddedStruct struct { // The total number of 'port.Group' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_port_group_relationship.go b/model_port_group_relationship.go index 49332b2ecd..7801d2dd63 100644 --- a/model_port_group_relationship.go +++ b/model_port_group_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_port_group_response.go b/model_port_group_response.go index 52c550a835..4dad665ef0 100644 --- a/model_port_group_response.go +++ b/model_port_group_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_port_interface_base.go b/model_port_interface_base.go index 9b537d7b6c..1ecdb126dd 100644 --- a/model_port_interface_base.go +++ b/model_port_interface_base.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -268,6 +268,10 @@ func (o *PortInterfaceBase) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -277,11 +281,23 @@ func (o *PortInterfaceBase) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type PortInterfaceBaseWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. The enum values provides the list of concrete types that can be instantiated from this abstract type. ClassId string `json:"ClassId"` diff --git a/model_port_interface_base_relationship.go b/model_port_interface_base_relationship.go index 672c148dcb..38f3357607 100644 --- a/model_port_interface_base_relationship.go +++ b/model_port_interface_base_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_port_mac_binding.go b/model_port_mac_binding.go index 5ad91f34c2..39a571ca37 100644 --- a/model_port_mac_binding.go +++ b/model_port_mac_binding.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -116,6 +116,11 @@ func (o *PortMacBinding) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "port.MacBinding" of the ClassId field. +func (o *PortMacBinding) GetDefaultClassId() interface{} { + return "port.MacBinding" +} + // GetObjectType returns the ObjectType field value func (o *PortMacBinding) GetObjectType() string { if o == nil { @@ -140,6 +145,11 @@ func (o *PortMacBinding) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "port.MacBinding" of the ObjectType field. +func (o *PortMacBinding) GetDefaultObjectType() interface{} { + return "port.MacBinding" +} + // GetAggregatePortId returns the AggregatePortId field value if set, zero value otherwise. func (o *PortMacBinding) GetAggregatePortId() int64 { if o == nil || IsNil(o.AggregatePortId) { @@ -788,7 +798,13 @@ func (o PortMacBinding) ToMap() (map[string]interface{}, error) { if errInventoryBase != nil { return map[string]interface{}{}, errInventoryBase } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.AggregatePortId) { toSerialize["AggregatePortId"] = o.AggregatePortId @@ -864,6 +880,13 @@ func (o *PortMacBinding) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -873,11 +896,23 @@ func (o *PortMacBinding) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type PortMacBindingWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_port_mac_binding_list.go b/model_port_mac_binding_list.go index f4c38774d5..f83b8a30f1 100644 --- a/model_port_mac_binding_list.go +++ b/model_port_mac_binding_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *PortMacBindingList) GetResultsOk() ([]PortMacBinding, bool) { // HasResults returns a boolean if a field has been set. func (o *PortMacBindingList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *PortMacBindingList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *PortMacBindingList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type PortMacBindingListWithoutEmbeddedStruct struct { // The total number of 'port.MacBinding' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_port_mac_binding_relationship.go b/model_port_mac_binding_relationship.go index 632f1d0074..586b5f796f 100644 --- a/model_port_mac_binding_relationship.go +++ b/model_port_mac_binding_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_port_mac_binding_response.go b/model_port_mac_binding_response.go index 266d55d96c..e9b17632ab 100644 --- a/model_port_mac_binding_response.go +++ b/model_port_mac_binding_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_port_physical.go b/model_port_physical.go index 46924d506f..afafe5fa0d 100644 --- a/model_port_physical.go +++ b/model_port_physical.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -359,6 +359,10 @@ func (o *PortPhysical) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -368,11 +372,23 @@ func (o *PortPhysical) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type PortPhysicalWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. The enum values provides the list of concrete types that can be instantiated from this abstract type. ClassId string `json:"ClassId"` diff --git a/model_port_sub_group.go b/model_port_sub_group.go index 097b8b5d4a..e5797ce9ab 100644 --- a/model_port_sub_group.go +++ b/model_port_sub_group.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -96,6 +96,11 @@ func (o *PortSubGroup) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "port.SubGroup" of the ClassId field. +func (o *PortSubGroup) GetDefaultClassId() interface{} { + return "port.SubGroup" +} + // GetObjectType returns the ObjectType field value func (o *PortSubGroup) GetObjectType() string { if o == nil { @@ -120,6 +125,11 @@ func (o *PortSubGroup) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "port.SubGroup" of the ObjectType field. +func (o *PortSubGroup) GetDefaultObjectType() interface{} { + return "port.SubGroup" +} + // GetAggregatePortId returns the AggregatePortId field value if set, zero value otherwise. func (o *PortSubGroup) GetAggregatePortId() int64 { if o == nil || IsNil(o.AggregatePortId) { @@ -280,7 +290,7 @@ func (o *PortSubGroup) GetEtherHostPortsOk() ([]EtherHostPortRelationship, bool) // HasEtherHostPorts returns a boolean if a field has been set. func (o *PortSubGroup) HasEtherHostPorts() bool { - if o != nil && IsNil(o.EtherHostPorts) { + if o != nil && !IsNil(o.EtherHostPorts) { return true } @@ -313,7 +323,7 @@ func (o *PortSubGroup) GetEthernetPortsOk() ([]EtherPhysicalPortRelationship, bo // HasEthernetPorts returns a boolean if a field has been set. func (o *PortSubGroup) HasEthernetPorts() bool { - if o != nil && IsNil(o.EthernetPorts) { + if o != nil && !IsNil(o.EthernetPorts) { return true } @@ -346,7 +356,7 @@ func (o *PortSubGroup) GetFcPortsOk() ([]FcPhysicalPortRelationship, bool) { // HasFcPorts returns a boolean if a field has been set. func (o *PortSubGroup) HasFcPorts() bool { - if o != nil && IsNil(o.FcPorts) { + if o != nil && !IsNil(o.FcPorts) { return true } @@ -505,7 +515,13 @@ func (o PortSubGroup) ToMap() (map[string]interface{}, error) { if errInventoryBase != nil { return map[string]interface{}{}, errInventoryBase } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.AggregatePortId) { toSerialize["AggregatePortId"] = o.AggregatePortId @@ -554,6 +570,13 @@ func (o *PortSubGroup) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -563,11 +586,23 @@ func (o *PortSubGroup) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type PortSubGroupWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_port_sub_group_list.go b/model_port_sub_group_list.go index a07032a979..c0901624a4 100644 --- a/model_port_sub_group_list.go +++ b/model_port_sub_group_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *PortSubGroupList) GetResultsOk() ([]PortSubGroup, bool) { // HasResults returns a boolean if a field has been set. func (o *PortSubGroupList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *PortSubGroupList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *PortSubGroupList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type PortSubGroupListWithoutEmbeddedStruct struct { // The total number of 'port.SubGroup' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_port_sub_group_relationship.go b/model_port_sub_group_relationship.go index a2ebaa772f..1dba523727 100644 --- a/model_port_sub_group_relationship.go +++ b/model_port_sub_group_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_port_sub_group_response.go b/model_port_sub_group_response.go index 8475d98eed..8bdc4dd80a 100644 --- a/model_port_sub_group_response.go +++ b/model_port_sub_group_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_power_control_state.go b/model_power_control_state.go index 99d7e30432..f64b0c2836 100644 --- a/model_power_control_state.go +++ b/model_power_control_state.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -102,6 +102,11 @@ func (o *PowerControlState) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "power.ControlState" of the ClassId field. +func (o *PowerControlState) GetDefaultClassId() interface{} { + return "power.ControlState" +} + // GetObjectType returns the ObjectType field value func (o *PowerControlState) GetObjectType() string { if o == nil { @@ -126,6 +131,11 @@ func (o *PowerControlState) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "power.ControlState" of the ObjectType field. +func (o *PowerControlState) GetDefaultObjectType() interface{} { + return "power.ControlState" +} + // GetAllocatedPower returns the AllocatedPower field value if set, zero value otherwise. func (o *PowerControlState) GetAllocatedPower() int64 { if o == nil || IsNil(o.AllocatedPower) { @@ -550,7 +560,13 @@ func (o PowerControlState) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.AllocatedPower) { toSerialize["AllocatedPower"] = o.AllocatedPower @@ -605,6 +621,13 @@ func (o *PowerControlState) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -614,11 +637,23 @@ func (o *PowerControlState) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type PowerControlStateWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_power_control_state_list.go b/model_power_control_state_list.go index c649232988..f072e0fb12 100644 --- a/model_power_control_state_list.go +++ b/model_power_control_state_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *PowerControlStateList) GetResultsOk() ([]PowerControlState, bool) { // HasResults returns a boolean if a field has been set. func (o *PowerControlStateList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *PowerControlStateList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *PowerControlStateList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type PowerControlStateListWithoutEmbeddedStruct struct { // The total number of 'power.ControlState' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_power_control_state_relationship.go b/model_power_control_state_relationship.go index a7f946f627..71f1e2bb53 100644 --- a/model_power_control_state_relationship.go +++ b/model_power_control_state_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_power_control_state_response.go b/model_power_control_state_response.go index f4c0852412..b09f74764d 100644 --- a/model_power_control_state_response.go +++ b/model_power_control_state_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_power_policy.go b/model_power_policy.go index 52da66455a..a1bad40825 100644 --- a/model_power_policy.go +++ b/model_power_policy.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -131,6 +131,11 @@ func (o *PowerPolicy) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "power.Policy" of the ClassId field. +func (o *PowerPolicy) GetDefaultClassId() interface{} { + return "power.Policy" +} + // GetObjectType returns the ObjectType field value func (o *PowerPolicy) GetObjectType() string { if o == nil { @@ -155,6 +160,11 @@ func (o *PowerPolicy) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "power.Policy" of the ObjectType field. +func (o *PowerPolicy) GetDefaultObjectType() interface{} { + return "power.Policy" +} + // GetAllocatedBudget returns the AllocatedBudget field value if set, zero value otherwise. func (o *PowerPolicy) GetAllocatedBudget() int64 { if o == nil || IsNil(o.AllocatedBudget) { @@ -475,7 +485,7 @@ func (o *PowerPolicy) GetProfilesOk() ([]PolicyAbstractConfigProfileRelationship // HasProfiles returns a boolean if a field has been set. func (o *PowerPolicy) HasProfiles() bool { - if o != nil && IsNil(o.Profiles) { + if o != nil && !IsNil(o.Profiles) { return true } @@ -505,7 +515,13 @@ func (o PowerPolicy) ToMap() (map[string]interface{}, error) { if errPolicyAbstractPolicy != nil { return map[string]interface{}{}, errPolicyAbstractPolicy } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.AllocatedBudget) { toSerialize["AllocatedBudget"] = o.AllocatedBudget @@ -554,6 +570,13 @@ func (o *PowerPolicy) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -563,11 +586,23 @@ func (o *PowerPolicy) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type PowerPolicyWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_power_policy_inventory.go b/model_power_policy_inventory.go index f6adbd385f..9477312cfe 100644 --- a/model_power_policy_inventory.go +++ b/model_power_policy_inventory.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -97,6 +97,11 @@ func (o *PowerPolicyInventory) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "power.PolicyInventory" of the ClassId field. +func (o *PowerPolicyInventory) GetDefaultClassId() interface{} { + return "power.PolicyInventory" +} + // GetObjectType returns the ObjectType field value func (o *PowerPolicyInventory) GetObjectType() string { if o == nil { @@ -121,6 +126,11 @@ func (o *PowerPolicyInventory) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "power.PolicyInventory" of the ObjectType field. +func (o *PowerPolicyInventory) GetDefaultObjectType() interface{} { + return "power.PolicyInventory" +} + // GetAllocatedBudget returns the AllocatedBudget field value if set, zero value otherwise. func (o *PowerPolicyInventory) GetAllocatedBudget() int64 { if o == nil || IsNil(o.AllocatedBudget) { @@ -438,7 +448,13 @@ func (o PowerPolicyInventory) ToMap() (map[string]interface{}, error) { if errPolicyAbstractPolicyInventory != nil { return map[string]interface{}{}, errPolicyAbstractPolicyInventory } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.AllocatedBudget) { toSerialize["AllocatedBudget"] = o.AllocatedBudget @@ -484,6 +500,13 @@ func (o *PowerPolicyInventory) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -493,11 +516,23 @@ func (o *PowerPolicyInventory) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type PowerPolicyInventoryWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_power_policy_inventory_list.go b/model_power_policy_inventory_list.go index 53924bb77b..5cadc46d9b 100644 --- a/model_power_policy_inventory_list.go +++ b/model_power_policy_inventory_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *PowerPolicyInventoryList) GetResultsOk() ([]PowerPolicyInventory, bool) // HasResults returns a boolean if a field has been set. func (o *PowerPolicyInventoryList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *PowerPolicyInventoryList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *PowerPolicyInventoryList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type PowerPolicyInventoryListWithoutEmbeddedStruct struct { // The total number of 'power.PolicyInventory' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_power_policy_inventory_response.go b/model_power_policy_inventory_response.go index ca2e7568ac..848176b967 100644 --- a/model_power_policy_inventory_response.go +++ b/model_power_policy_inventory_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_power_policy_list.go b/model_power_policy_list.go index e4f483cf73..71e1e03766 100644 --- a/model_power_policy_list.go +++ b/model_power_policy_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *PowerPolicyList) GetResultsOk() ([]PowerPolicy, bool) { // HasResults returns a boolean if a field has been set. func (o *PowerPolicyList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *PowerPolicyList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *PowerPolicyList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type PowerPolicyListWithoutEmbeddedStruct struct { // The total number of 'power.Policy' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_power_policy_response.go b/model_power_policy_response.go index 437c908e89..7d3bbae3c4 100644 --- a/model_power_policy_response.go +++ b/model_power_policy_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_processor_unit.go b/model_processor_unit.go index 3d68bb2e8c..80ad26f160 100644 --- a/model_processor_unit.go +++ b/model_processor_unit.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -119,6 +119,11 @@ func (o *ProcessorUnit) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "processor.Unit" of the ClassId field. +func (o *ProcessorUnit) GetDefaultClassId() interface{} { + return "processor.Unit" +} + // GetObjectType returns the ObjectType field value func (o *ProcessorUnit) GetObjectType() string { if o == nil { @@ -143,6 +148,11 @@ func (o *ProcessorUnit) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "processor.Unit" of the ObjectType field. +func (o *ProcessorUnit) GetDefaultObjectType() interface{} { + return "processor.Unit" +} + // GetArchitecture returns the Architecture field value if set, zero value otherwise. func (o *ProcessorUnit) GetArchitecture() string { if o == nil || IsNil(o.Architecture) { @@ -388,7 +398,7 @@ func (o *ProcessorUnit) GetOperReasonOk() ([]string, bool) { // HasOperReason returns a boolean if a field has been set. func (o *ProcessorUnit) HasOperReason() bool { - if o != nil && IsNil(o.OperReason) { + if o != nil && !IsNil(o.OperReason) { return true } @@ -964,7 +974,13 @@ func (o ProcessorUnit) ToMap() (map[string]interface{}, error) { if errEquipmentBase != nil { return map[string]interface{}{}, errEquipmentBase } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Architecture) { toSerialize["Architecture"] = o.Architecture @@ -1052,6 +1068,13 @@ func (o *ProcessorUnit) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -1061,11 +1084,23 @@ func (o *ProcessorUnit) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type ProcessorUnitWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_processor_unit_list.go b/model_processor_unit_list.go index 81db8aa485..85a976f5bc 100644 --- a/model_processor_unit_list.go +++ b/model_processor_unit_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *ProcessorUnitList) GetResultsOk() ([]ProcessorUnit, bool) { // HasResults returns a boolean if a field has been set. func (o *ProcessorUnitList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *ProcessorUnitList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *ProcessorUnitList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type ProcessorUnitListWithoutEmbeddedStruct struct { // The total number of 'processor.Unit' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_processor_unit_relationship.go b/model_processor_unit_relationship.go index aabd74b45a..1f5aaeb473 100644 --- a/model_processor_unit_relationship.go +++ b/model_processor_unit_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_processor_unit_response.go b/model_processor_unit_response.go index 86d2f7fbd2..19c4cdb26c 100644 --- a/model_processor_unit_response.go +++ b/model_processor_unit_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_rack_unit_personality.go b/model_rack_unit_personality.go index 69332b6b91..197fcc42cb 100644 --- a/model_rack_unit_personality.go +++ b/model_rack_unit_personality.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -89,6 +89,11 @@ func (o *RackUnitPersonality) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "rack.UnitPersonality" of the ClassId field. +func (o *RackUnitPersonality) GetDefaultClassId() interface{} { + return "rack.UnitPersonality" +} + // GetObjectType returns the ObjectType field value func (o *RackUnitPersonality) GetObjectType() string { if o == nil { @@ -113,6 +118,11 @@ func (o *RackUnitPersonality) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "rack.UnitPersonality" of the ObjectType field. +func (o *RackUnitPersonality) GetDefaultObjectType() interface{} { + return "rack.UnitPersonality" +} + // GetAdditionalInfo returns the AdditionalInfo field value if set, zero value otherwise. func (o *RackUnitPersonality) GetAdditionalInfo() string { if o == nil || IsNil(o.AdditionalInfo) { @@ -356,7 +366,13 @@ func (o RackUnitPersonality) ToMap() (map[string]interface{}, error) { if errInventoryBase != nil { return map[string]interface{}{}, errInventoryBase } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.AdditionalInfo) { toSerialize["AdditionalInfo"] = o.AdditionalInfo @@ -393,6 +409,13 @@ func (o *RackUnitPersonality) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -402,11 +425,23 @@ func (o *RackUnitPersonality) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type RackUnitPersonalityWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_rack_unit_personality_list.go b/model_rack_unit_personality_list.go index 3946fd7580..93b2c8a114 100644 --- a/model_rack_unit_personality_list.go +++ b/model_rack_unit_personality_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *RackUnitPersonalityList) GetResultsOk() ([]RackUnitPersonality, bool) { // HasResults returns a boolean if a field has been set. func (o *RackUnitPersonalityList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *RackUnitPersonalityList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *RackUnitPersonalityList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type RackUnitPersonalityListWithoutEmbeddedStruct struct { // The total number of 'rack.UnitPersonality' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_rack_unit_personality_relationship.go b/model_rack_unit_personality_relationship.go index a12e9ef47e..3238e0bed2 100644 --- a/model_rack_unit_personality_relationship.go +++ b/model_rack_unit_personality_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_rack_unit_personality_response.go b/model_rack_unit_personality_response.go index 477843d110..b6e3319526 100644 --- a/model_rack_unit_personality_response.go +++ b/model_rack_unit_personality_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_recommendation_abstract_item.go b/model_recommendation_abstract_item.go index 9d8a207ff5..fc6bab9002 100644 --- a/model_recommendation_abstract_item.go +++ b/model_recommendation_abstract_item.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -248,6 +248,10 @@ func (o *RecommendationAbstractItem) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -257,11 +261,23 @@ func (o *RecommendationAbstractItem) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type RecommendationAbstractItemWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. The enum values provides the list of concrete types that can be instantiated from this abstract type. ClassId string `json:"ClassId"` diff --git a/model_recommendation_base.go b/model_recommendation_base.go index 0fdf0ba13a..6ea82ba9b6 100644 --- a/model_recommendation_base.go +++ b/model_recommendation_base.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -249,6 +249,10 @@ func (o *RecommendationBase) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -258,11 +262,23 @@ func (o *RecommendationBase) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type RecommendationBaseWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. The enum values provides the list of concrete types that can be instantiated from this abstract type. ClassId string `json:"ClassId"` diff --git a/model_recommendation_capacity_runway.go b/model_recommendation_capacity_runway.go index 97aa15e978..c62b9fb6f4 100644 --- a/model_recommendation_capacity_runway.go +++ b/model_recommendation_capacity_runway.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -94,6 +94,11 @@ func (o *RecommendationCapacityRunway) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "recommendation.CapacityRunway" of the ClassId field. +func (o *RecommendationCapacityRunway) GetDefaultClassId() interface{} { + return "recommendation.CapacityRunway" +} + // GetObjectType returns the ObjectType field value func (o *RecommendationCapacityRunway) GetObjectType() string { if o == nil { @@ -118,6 +123,11 @@ func (o *RecommendationCapacityRunway) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "recommendation.CapacityRunway" of the ObjectType field. +func (o *RecommendationCapacityRunway) GetDefaultObjectType() interface{} { + return "recommendation.CapacityRunway" +} + // GetAdditionalCapacity returns the AdditionalCapacity field value if set, zero value otherwise. func (o *RecommendationCapacityRunway) GetAdditionalCapacity() int64 { if o == nil || IsNil(o.AdditionalCapacity) { @@ -342,7 +352,7 @@ func (o *RecommendationCapacityRunway) GetPhysicalItemOk() ([]RecommendationPhys // HasPhysicalItem returns a boolean if a field has been set. func (o *RecommendationCapacityRunway) HasPhysicalItem() bool { - if o != nil && IsNil(o.PhysicalItem) { + if o != nil && !IsNil(o.PhysicalItem) { return true } @@ -415,7 +425,13 @@ func (o RecommendationCapacityRunway) ToMap() (map[string]interface{}, error) { if errRecommendationBase != nil { return map[string]interface{}{}, errRecommendationBase } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.AdditionalCapacity) { toSerialize["AdditionalCapacity"] = o.AdditionalCapacity @@ -458,6 +474,13 @@ func (o *RecommendationCapacityRunway) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -467,11 +490,23 @@ func (o *RecommendationCapacityRunway) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type RecommendationCapacityRunwayWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_recommendation_capacity_runway_list.go b/model_recommendation_capacity_runway_list.go index d2232369c6..8b86724419 100644 --- a/model_recommendation_capacity_runway_list.go +++ b/model_recommendation_capacity_runway_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *RecommendationCapacityRunwayList) GetResultsOk() ([]RecommendationCapac // HasResults returns a boolean if a field has been set. func (o *RecommendationCapacityRunwayList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *RecommendationCapacityRunwayList) UnmarshalJSON(data []byte) (err error "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *RecommendationCapacityRunwayList) UnmarshalJSON(data []byte) (err error } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type RecommendationCapacityRunwayListWithoutEmbeddedStruct struct { // The total number of 'recommendation.CapacityRunway' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_recommendation_capacity_runway_relationship.go b/model_recommendation_capacity_runway_relationship.go index 5b824e1ccf..d8bf7f07a4 100644 --- a/model_recommendation_capacity_runway_relationship.go +++ b/model_recommendation_capacity_runway_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_recommendation_capacity_runway_response.go b/model_recommendation_capacity_runway_response.go index ef6ac32bfc..5fba05877a 100644 --- a/model_recommendation_capacity_runway_response.go +++ b/model_recommendation_capacity_runway_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_recommendation_cluster_expansion.go b/model_recommendation_cluster_expansion.go index b33ae9b865..5fbb3adf9b 100644 --- a/model_recommendation_cluster_expansion.go +++ b/model_recommendation_cluster_expansion.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -88,6 +88,11 @@ func (o *RecommendationClusterExpansion) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "recommendation.ClusterExpansion" of the ClassId field. +func (o *RecommendationClusterExpansion) GetDefaultClassId() interface{} { + return "recommendation.ClusterExpansion" +} + // GetObjectType returns the ObjectType field value func (o *RecommendationClusterExpansion) GetObjectType() string { if o == nil { @@ -112,6 +117,11 @@ func (o *RecommendationClusterExpansion) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "recommendation.ClusterExpansion" of the ObjectType field. +func (o *RecommendationClusterExpansion) GetDefaultObjectType() interface{} { + return "recommendation.ClusterExpansion" +} + // GetClusterName returns the ClusterName field value if set, zero value otherwise. func (o *RecommendationClusterExpansion) GetClusterName() string { if o == nil || IsNil(o.ClusterName) { @@ -208,7 +218,7 @@ func (o *RecommendationClusterExpansion) GetPhysicalItemOk() ([]RecommendationPh // HasPhysicalItem returns a boolean if a field has been set. func (o *RecommendationClusterExpansion) HasPhysicalItem() bool { - if o != nil && IsNil(o.PhysicalItem) { + if o != nil && !IsNil(o.PhysicalItem) { return true } @@ -284,7 +294,7 @@ func (o *RecommendationClusterExpansion) GetSoftwareItemOk() ([]RecommendationSo // HasSoftwareItem returns a boolean if a field has been set. func (o *RecommendationClusterExpansion) HasSoftwareItem() bool { - if o != nil && IsNil(o.SoftwareItem) { + if o != nil && !IsNil(o.SoftwareItem) { return true } @@ -314,7 +324,13 @@ func (o RecommendationClusterExpansion) ToMap() (map[string]interface{}, error) if errRecommendationBase != nil { return map[string]interface{}{}, errRecommendationBase } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.ClusterName) { toSerialize["ClusterName"] = o.ClusterName @@ -348,6 +364,13 @@ func (o *RecommendationClusterExpansion) UnmarshalJSON(data []byte) (err error) "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -357,11 +380,23 @@ func (o *RecommendationClusterExpansion) UnmarshalJSON(data []byte) (err error) } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type RecommendationClusterExpansionWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_recommendation_cluster_expansion_list.go b/model_recommendation_cluster_expansion_list.go index 8e9d830191..e0b9747c4a 100644 --- a/model_recommendation_cluster_expansion_list.go +++ b/model_recommendation_cluster_expansion_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *RecommendationClusterExpansionList) GetResultsOk() ([]RecommendationClu // HasResults returns a boolean if a field has been set. func (o *RecommendationClusterExpansionList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *RecommendationClusterExpansionList) UnmarshalJSON(data []byte) (err err "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *RecommendationClusterExpansionList) UnmarshalJSON(data []byte) (err err } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type RecommendationClusterExpansionListWithoutEmbeddedStruct struct { // The total number of 'recommendation.ClusterExpansion' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_recommendation_cluster_expansion_relationship.go b/model_recommendation_cluster_expansion_relationship.go index 1e8a979aeb..725545e89e 100644 --- a/model_recommendation_cluster_expansion_relationship.go +++ b/model_recommendation_cluster_expansion_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_recommendation_cluster_expansion_response.go b/model_recommendation_cluster_expansion_response.go index e6254c7dbd..d56185bef3 100644 --- a/model_recommendation_cluster_expansion_response.go +++ b/model_recommendation_cluster_expansion_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_recommendation_expansion_request.go b/model_recommendation_expansion_request.go index add345ac17..dc36dc2c56 100644 --- a/model_recommendation_expansion_request.go +++ b/model_recommendation_expansion_request.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -85,6 +85,11 @@ func (o *RecommendationExpansionRequest) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "recommendation.HardwareExpansionRequest" of the ClassId field. +func (o *RecommendationExpansionRequest) GetDefaultClassId() interface{} { + return "recommendation.HardwareExpansionRequest" +} + // GetObjectType returns the ObjectType field value func (o *RecommendationExpansionRequest) GetObjectType() string { if o == nil { @@ -109,6 +114,11 @@ func (o *RecommendationExpansionRequest) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "recommendation.HardwareExpansionRequest" of the ObjectType field. +func (o *RecommendationExpansionRequest) GetDefaultObjectType() interface{} { + return "recommendation.HardwareExpansionRequest" +} + // GetName returns the Name field value if set, zero value otherwise. func (o *RecommendationExpansionRequest) GetName() string { if o == nil || IsNil(o.Name) { @@ -191,7 +201,13 @@ func (o RecommendationExpansionRequest) ToMap() (map[string]interface{}, error) if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Name) { toSerialize["Name"] = o.Name @@ -216,6 +232,13 @@ func (o *RecommendationExpansionRequest) UnmarshalJSON(data []byte) (err error) "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -225,11 +248,23 @@ func (o *RecommendationExpansionRequest) UnmarshalJSON(data []byte) (err error) } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type RecommendationExpansionRequestWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. The enum values provides the list of concrete types that can be instantiated from this abstract type. ClassId string `json:"ClassId"` diff --git a/model_recommendation_hardware_expansion_request.go b/model_recommendation_hardware_expansion_request.go index 1217d53c67..0c8d56814d 100644 --- a/model_recommendation_hardware_expansion_request.go +++ b/model_recommendation_hardware_expansion_request.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -93,6 +93,11 @@ func (o *RecommendationHardwareExpansionRequest) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "recommendation.HardwareExpansionRequest" of the ClassId field. +func (o *RecommendationHardwareExpansionRequest) GetDefaultClassId() interface{} { + return "recommendation.HardwareExpansionRequest" +} + // GetObjectType returns the ObjectType field value func (o *RecommendationHardwareExpansionRequest) GetObjectType() string { if o == nil { @@ -117,6 +122,11 @@ func (o *RecommendationHardwareExpansionRequest) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "recommendation.HardwareExpansionRequest" of the ObjectType field. +func (o *RecommendationHardwareExpansionRequest) GetDefaultObjectType() interface{} { + return "recommendation.HardwareExpansionRequest" +} + // GetAction returns the Action field value if set, zero value otherwise. func (o *RecommendationHardwareExpansionRequest) GetAction() string { if o == nil || IsNil(o.Action) { @@ -234,7 +244,7 @@ func (o *RecommendationHardwareExpansionRequest) GetHwExpansionRequestItemsOk() // HasHwExpansionRequestItems returns a boolean if a field has been set. func (o *RecommendationHardwareExpansionRequest) HasHwExpansionRequestItems() bool { - if o != nil && IsNil(o.HwExpansionRequestItems) { + if o != nil && !IsNil(o.HwExpansionRequestItems) { return true } @@ -307,7 +317,13 @@ func (o RecommendationHardwareExpansionRequest) ToMap() (map[string]interface{}, if errRecommendationExpansionRequest != nil { return map[string]interface{}{}, errRecommendationExpansionRequest } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Action) { toSerialize["Action"] = o.Action @@ -341,6 +357,13 @@ func (o *RecommendationHardwareExpansionRequest) UnmarshalJSON(data []byte) (err "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -350,11 +373,23 @@ func (o *RecommendationHardwareExpansionRequest) UnmarshalJSON(data []byte) (err } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type RecommendationHardwareExpansionRequestWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_recommendation_hardware_expansion_request_item.go b/model_recommendation_hardware_expansion_request_item.go index 74fe239529..deb7397ea8 100644 --- a/model_recommendation_hardware_expansion_request_item.go +++ b/model_recommendation_hardware_expansion_request_item.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -103,6 +103,11 @@ func (o *RecommendationHardwareExpansionRequestItem) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "recommendation.HardwareExpansionRequestItem" of the ClassId field. +func (o *RecommendationHardwareExpansionRequestItem) GetDefaultClassId() interface{} { + return "recommendation.HardwareExpansionRequestItem" +} + // GetObjectType returns the ObjectType field value func (o *RecommendationHardwareExpansionRequestItem) GetObjectType() string { if o == nil { @@ -127,6 +132,11 @@ func (o *RecommendationHardwareExpansionRequestItem) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "recommendation.HardwareExpansionRequestItem" of the ObjectType field. +func (o *RecommendationHardwareExpansionRequestItem) GetDefaultObjectType() interface{} { + return "recommendation.HardwareExpansionRequestItem" +} + // GetItemType returns the ItemType field value if set, zero value otherwise. func (o *RecommendationHardwareExpansionRequestItem) GetItemType() string { if o == nil || IsNil(o.ItemType) { @@ -348,7 +358,13 @@ func (o RecommendationHardwareExpansionRequestItem) ToMap() (map[string]interfac if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.ItemType) { toSerialize["ItemType"] = o.ItemType @@ -385,6 +401,13 @@ func (o *RecommendationHardwareExpansionRequestItem) UnmarshalJSON(data []byte) "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -394,11 +417,23 @@ func (o *RecommendationHardwareExpansionRequestItem) UnmarshalJSON(data []byte) } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type RecommendationHardwareExpansionRequestItemWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_recommendation_hardware_expansion_request_item_list.go b/model_recommendation_hardware_expansion_request_item_list.go index ebcc32b48f..45c2f67492 100644 --- a/model_recommendation_hardware_expansion_request_item_list.go +++ b/model_recommendation_hardware_expansion_request_item_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *RecommendationHardwareExpansionRequestItemList) GetResultsOk() ([]Recom // HasResults returns a boolean if a field has been set. func (o *RecommendationHardwareExpansionRequestItemList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *RecommendationHardwareExpansionRequestItemList) UnmarshalJSON(data []by "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *RecommendationHardwareExpansionRequestItemList) UnmarshalJSON(data []by } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type RecommendationHardwareExpansionRequestItemListWithoutEmbeddedStruct struct { // The total number of 'recommendation.HardwareExpansionRequestItem' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_recommendation_hardware_expansion_request_item_relationship.go b/model_recommendation_hardware_expansion_request_item_relationship.go index 381289b481..9fd28a859e 100644 --- a/model_recommendation_hardware_expansion_request_item_relationship.go +++ b/model_recommendation_hardware_expansion_request_item_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_recommendation_hardware_expansion_request_item_response.go b/model_recommendation_hardware_expansion_request_item_response.go index 4186e3d861..3587ab05f1 100644 --- a/model_recommendation_hardware_expansion_request_item_response.go +++ b/model_recommendation_hardware_expansion_request_item_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_recommendation_hardware_expansion_request_list.go b/model_recommendation_hardware_expansion_request_list.go index ea741c9704..46d63f305a 100644 --- a/model_recommendation_hardware_expansion_request_list.go +++ b/model_recommendation_hardware_expansion_request_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *RecommendationHardwareExpansionRequestList) GetResultsOk() ([]Recommend // HasResults returns a boolean if a field has been set. func (o *RecommendationHardwareExpansionRequestList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *RecommendationHardwareExpansionRequestList) UnmarshalJSON(data []byte) "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *RecommendationHardwareExpansionRequestList) UnmarshalJSON(data []byte) } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type RecommendationHardwareExpansionRequestListWithoutEmbeddedStruct struct { // The total number of 'recommendation.HardwareExpansionRequest' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_recommendation_hardware_expansion_request_relationship.go b/model_recommendation_hardware_expansion_request_relationship.go index d1e06223a6..b68543e569 100644 --- a/model_recommendation_hardware_expansion_request_relationship.go +++ b/model_recommendation_hardware_expansion_request_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_recommendation_hardware_expansion_request_response.go b/model_recommendation_hardware_expansion_request_response.go index bca115a259..e910019dcd 100644 --- a/model_recommendation_hardware_expansion_request_response.go +++ b/model_recommendation_hardware_expansion_request_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_recommendation_physical_item.go b/model_recommendation_physical_item.go index 33499317c3..8044dd70c2 100644 --- a/model_recommendation_physical_item.go +++ b/model_recommendation_physical_item.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,6 +104,11 @@ func (o *RecommendationPhysicalItem) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "recommendation.PhysicalItem" of the ClassId field. +func (o *RecommendationPhysicalItem) GetDefaultClassId() interface{} { + return "recommendation.PhysicalItem" +} + // GetObjectType returns the ObjectType field value func (o *RecommendationPhysicalItem) GetObjectType() string { if o == nil { @@ -128,6 +133,11 @@ func (o *RecommendationPhysicalItem) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "recommendation.PhysicalItem" of the ObjectType field. +func (o *RecommendationPhysicalItem) GetDefaultObjectType() interface{} { + return "recommendation.PhysicalItem" +} + // GetCapacity returns the Capacity field value if set, zero value otherwise. func (o *RecommendationPhysicalItem) GetCapacity() int64 { if o == nil || IsNil(o.Capacity) { @@ -555,7 +565,7 @@ func (o *RecommendationPhysicalItem) GetPhysicalItemOk() ([]RecommendationPhysic // HasPhysicalItem returns a boolean if a field has been set. func (o *RecommendationPhysicalItem) HasPhysicalItem() bool { - if o != nil && IsNil(o.PhysicalItem) { + if o != nil && !IsNil(o.PhysicalItem) { return true } @@ -585,7 +595,13 @@ func (o RecommendationPhysicalItem) ToMap() (map[string]interface{}, error) { if errRecommendationAbstractItem != nil { return map[string]interface{}{}, errRecommendationAbstractItem } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Capacity) { toSerialize["Capacity"] = o.Capacity @@ -643,6 +659,13 @@ func (o *RecommendationPhysicalItem) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -652,11 +675,23 @@ func (o *RecommendationPhysicalItem) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type RecommendationPhysicalItemWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_recommendation_physical_item_list.go b/model_recommendation_physical_item_list.go index b7419c7b87..891bd9590c 100644 --- a/model_recommendation_physical_item_list.go +++ b/model_recommendation_physical_item_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *RecommendationPhysicalItemList) GetResultsOk() ([]RecommendationPhysica // HasResults returns a boolean if a field has been set. func (o *RecommendationPhysicalItemList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *RecommendationPhysicalItemList) UnmarshalJSON(data []byte) (err error) "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *RecommendationPhysicalItemList) UnmarshalJSON(data []byte) (err error) } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type RecommendationPhysicalItemListWithoutEmbeddedStruct struct { // The total number of 'recommendation.PhysicalItem' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_recommendation_physical_item_relationship.go b/model_recommendation_physical_item_relationship.go index 84ac11fd5a..6053dab571 100644 --- a/model_recommendation_physical_item_relationship.go +++ b/model_recommendation_physical_item_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_recommendation_physical_item_response.go b/model_recommendation_physical_item_response.go index 7f49179a4b..fb585e005a 100644 --- a/model_recommendation_physical_item_response.go +++ b/model_recommendation_physical_item_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_recommendation_purchase_order_estimate.go b/model_recommendation_purchase_order_estimate.go index edc6f961f0..2613c9a738 100644 --- a/model_recommendation_purchase_order_estimate.go +++ b/model_recommendation_purchase_order_estimate.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -97,6 +97,11 @@ func (o *RecommendationPurchaseOrderEstimate) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "recommendation.PurchaseOrderEstimate" of the ClassId field. +func (o *RecommendationPurchaseOrderEstimate) GetDefaultClassId() interface{} { + return "recommendation.PurchaseOrderEstimate" +} + // GetObjectType returns the ObjectType field value func (o *RecommendationPurchaseOrderEstimate) GetObjectType() string { if o == nil { @@ -121,6 +126,11 @@ func (o *RecommendationPurchaseOrderEstimate) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "recommendation.PurchaseOrderEstimate" of the ObjectType field. +func (o *RecommendationPurchaseOrderEstimate) GetDefaultObjectType() interface{} { + return "recommendation.PurchaseOrderEstimate" +} + // GetAction returns the Action field value if set, zero value otherwise. func (o *RecommendationPurchaseOrderEstimate) GetAction() string { if o == nil || IsNil(o.Action) { @@ -388,7 +398,13 @@ func (o RecommendationPurchaseOrderEstimate) ToMap() (map[string]interface{}, er if errRecommendationBase != nil { return map[string]interface{}{}, errRecommendationBase } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Action) { toSerialize["Action"] = o.Action @@ -428,6 +444,13 @@ func (o *RecommendationPurchaseOrderEstimate) UnmarshalJSON(data []byte) (err er "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -437,11 +460,23 @@ func (o *RecommendationPurchaseOrderEstimate) UnmarshalJSON(data []byte) (err er } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type RecommendationPurchaseOrderEstimateWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_recommendation_purchase_order_estimate_list.go b/model_recommendation_purchase_order_estimate_list.go index 2c911741a7..02614814d6 100644 --- a/model_recommendation_purchase_order_estimate_list.go +++ b/model_recommendation_purchase_order_estimate_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *RecommendationPurchaseOrderEstimateList) GetResultsOk() ([]Recommendati // HasResults returns a boolean if a field has been set. func (o *RecommendationPurchaseOrderEstimateList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *RecommendationPurchaseOrderEstimateList) UnmarshalJSON(data []byte) (er "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *RecommendationPurchaseOrderEstimateList) UnmarshalJSON(data []byte) (er } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type RecommendationPurchaseOrderEstimateListWithoutEmbeddedStruct struct { // The total number of 'recommendation.PurchaseOrderEstimate' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_recommendation_purchase_order_estimate_response.go b/model_recommendation_purchase_order_estimate_response.go index d72c006257..66375c3225 100644 --- a/model_recommendation_purchase_order_estimate_response.go +++ b/model_recommendation_purchase_order_estimate_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_recommendation_purchase_order_list.go b/model_recommendation_purchase_order_list.go index f42f477d2f..df4af15e24 100644 --- a/model_recommendation_purchase_order_list.go +++ b/model_recommendation_purchase_order_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -83,6 +83,11 @@ func (o *RecommendationPurchaseOrderList) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "recommendation.PurchaseOrderList" of the ClassId field. +func (o *RecommendationPurchaseOrderList) GetDefaultClassId() interface{} { + return "recommendation.PurchaseOrderList" +} + // GetObjectType returns the ObjectType field value func (o *RecommendationPurchaseOrderList) GetObjectType() string { if o == nil { @@ -107,6 +112,11 @@ func (o *RecommendationPurchaseOrderList) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "recommendation.PurchaseOrderList" of the ObjectType field. +func (o *RecommendationPurchaseOrderList) GetDefaultObjectType() interface{} { + return "recommendation.PurchaseOrderList" +} + // GetItemList returns the ItemList field value if set, zero value otherwise. func (o *RecommendationPurchaseOrderList) GetItemList() string { if o == nil || IsNil(o.ItemList) { @@ -200,7 +210,13 @@ func (o RecommendationPurchaseOrderList) ToMap() (map[string]interface{}, error) if errRecommendationBase != nil { return map[string]interface{}{}, errRecommendationBase } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.ItemList) { toSerialize["ItemList"] = o.ItemList @@ -225,6 +241,13 @@ func (o *RecommendationPurchaseOrderList) UnmarshalJSON(data []byte) (err error) "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -234,11 +257,23 @@ func (o *RecommendationPurchaseOrderList) UnmarshalJSON(data []byte) (err error) } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type RecommendationPurchaseOrderListWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_recommendation_purchase_order_list_list.go b/model_recommendation_purchase_order_list_list.go index 956b18db22..365effef85 100644 --- a/model_recommendation_purchase_order_list_list.go +++ b/model_recommendation_purchase_order_list_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *RecommendationPurchaseOrderListList) GetResultsOk() ([]RecommendationPu // HasResults returns a boolean if a field has been set. func (o *RecommendationPurchaseOrderListList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *RecommendationPurchaseOrderListList) UnmarshalJSON(data []byte) (err er "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *RecommendationPurchaseOrderListList) UnmarshalJSON(data []byte) (err er } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type RecommendationPurchaseOrderListListWithoutEmbeddedStruct struct { // The total number of 'recommendation.PurchaseOrderList' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_recommendation_purchase_order_list_response.go b/model_recommendation_purchase_order_list_response.go index be51180f87..93eeff4bc5 100644 --- a/model_recommendation_purchase_order_list_response.go +++ b/model_recommendation_purchase_order_list_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_recommendation_software_item.go b/model_recommendation_software_item.go index 8b1027d2f2..e13468ba62 100644 --- a/model_recommendation_software_item.go +++ b/model_recommendation_software_item.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -85,6 +85,11 @@ func (o *RecommendationSoftwareItem) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "recommendation.SoftwareItem" of the ClassId field. +func (o *RecommendationSoftwareItem) GetDefaultClassId() interface{} { + return "recommendation.SoftwareItem" +} + // GetObjectType returns the ObjectType field value func (o *RecommendationSoftwareItem) GetObjectType() string { if o == nil { @@ -109,6 +114,11 @@ func (o *RecommendationSoftwareItem) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "recommendation.SoftwareItem" of the ObjectType field. +func (o *RecommendationSoftwareItem) GetDefaultObjectType() interface{} { + return "recommendation.SoftwareItem" +} + // GetMessage returns the Message field value if set, zero value otherwise. func (o *RecommendationSoftwareItem) GetMessage() string { if o == nil || IsNil(o.Message) { @@ -234,7 +244,13 @@ func (o RecommendationSoftwareItem) ToMap() (map[string]interface{}, error) { if errRecommendationAbstractItem != nil { return map[string]interface{}{}, errRecommendationAbstractItem } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Message) { toSerialize["Message"] = o.Message @@ -262,6 +278,13 @@ func (o *RecommendationSoftwareItem) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -271,11 +294,23 @@ func (o *RecommendationSoftwareItem) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type RecommendationSoftwareItemWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_recommendation_software_item_list.go b/model_recommendation_software_item_list.go index 92f2a26c05..53bfc007ad 100644 --- a/model_recommendation_software_item_list.go +++ b/model_recommendation_software_item_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *RecommendationSoftwareItemList) GetResultsOk() ([]RecommendationSoftwar // HasResults returns a boolean if a field has been set. func (o *RecommendationSoftwareItemList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *RecommendationSoftwareItemList) UnmarshalJSON(data []byte) (err error) "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *RecommendationSoftwareItemList) UnmarshalJSON(data []byte) (err error) } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type RecommendationSoftwareItemListWithoutEmbeddedStruct struct { // The total number of 'recommendation.SoftwareItem' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_recommendation_software_item_relationship.go b/model_recommendation_software_item_relationship.go index 12a2770bb8..79b72a77a4 100644 --- a/model_recommendation_software_item_relationship.go +++ b/model_recommendation_software_item_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_recommendation_software_item_response.go b/model_recommendation_software_item_response.go index 61c7ceec4c..1be964a40a 100644 --- a/model_recommendation_software_item_response.go +++ b/model_recommendation_software_item_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_recovery_abstract_backup_config.go b/model_recovery_abstract_backup_config.go index fcb7e25213..af9465e3fb 100644 --- a/model_recovery_abstract_backup_config.go +++ b/model_recovery_abstract_backup_config.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -445,6 +445,10 @@ func (o *RecoveryAbstractBackupConfig) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -454,11 +458,23 @@ func (o *RecoveryAbstractBackupConfig) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type RecoveryAbstractBackupConfigWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. The enum values provides the list of concrete types that can be instantiated from this abstract type. ClassId string `json:"ClassId"` diff --git a/model_recovery_abstract_backup_info.go b/model_recovery_abstract_backup_info.go index b5da36e716..549c102c27 100644 --- a/model_recovery_abstract_backup_info.go +++ b/model_recovery_abstract_backup_info.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -81,6 +81,11 @@ func (o *RecoveryAbstractBackupInfo) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "ucsd.BackupInfo" of the ClassId field. +func (o *RecoveryAbstractBackupInfo) GetDefaultClassId() interface{} { + return "ucsd.BackupInfo" +} + // GetObjectType returns the ObjectType field value func (o *RecoveryAbstractBackupInfo) GetObjectType() string { if o == nil { @@ -105,6 +110,11 @@ func (o *RecoveryAbstractBackupInfo) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "ucsd.BackupInfo" of the ObjectType field. +func (o *RecoveryAbstractBackupInfo) GetDefaultObjectType() interface{} { + return "ucsd.BackupInfo" +} + // GetRegisteredDevice returns the RegisteredDevice field value if set, zero value otherwise (both if not set or set to explicit null). func (o *RecoveryAbstractBackupInfo) GetRegisteredDevice() AssetDeviceRegistrationRelationship { if o == nil || IsNil(o.RegisteredDevice.Get()) { @@ -166,7 +176,13 @@ func (o RecoveryAbstractBackupInfo) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.RegisteredDevice.IsSet() { toSerialize["RegisteredDevice"] = o.RegisteredDevice.Get() @@ -188,6 +204,13 @@ func (o *RecoveryAbstractBackupInfo) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -197,11 +220,23 @@ func (o *RecoveryAbstractBackupInfo) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type RecoveryAbstractBackupInfoWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. The enum values provides the list of concrete types that can be instantiated from this abstract type. ClassId string `json:"ClassId"` diff --git a/model_recovery_abstract_backup_info_relationship.go b/model_recovery_abstract_backup_info_relationship.go index 7b8ac72c7d..40f69b0c3b 100644 --- a/model_recovery_abstract_backup_info_relationship.go +++ b/model_recovery_abstract_backup_info_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_recovery_backup_config_policy.go b/model_recovery_backup_config_policy.go index 0a8f956d56..5497403234 100644 --- a/model_recovery_backup_config_policy.go +++ b/model_recovery_backup_config_policy.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -89,6 +89,11 @@ func (o *RecoveryBackupConfigPolicy) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "recovery.BackupConfigPolicy" of the ClassId field. +func (o *RecoveryBackupConfigPolicy) GetDefaultClassId() interface{} { + return "recovery.BackupConfigPolicy" +} + // GetObjectType returns the ObjectType field value func (o *RecoveryBackupConfigPolicy) GetObjectType() string { if o == nil { @@ -113,6 +118,11 @@ func (o *RecoveryBackupConfigPolicy) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "recovery.BackupConfigPolicy" of the ObjectType field. +func (o *RecoveryBackupConfigPolicy) GetDefaultObjectType() interface{} { + return "recovery.BackupConfigPolicy" +} + // GetBackupProfiles returns the BackupProfiles field value if set, zero value otherwise (both if not set or set to explicit null). func (o *RecoveryBackupConfigPolicy) GetBackupProfiles() []RecoveryBackupProfileRelationship { if o == nil { @@ -134,7 +144,7 @@ func (o *RecoveryBackupConfigPolicy) GetBackupProfilesOk() ([]RecoveryBackupProf // HasBackupProfiles returns a boolean if a field has been set. func (o *RecoveryBackupConfigPolicy) HasBackupProfiles() bool { - if o != nil && IsNil(o.BackupProfiles) { + if o != nil && !IsNil(o.BackupProfiles) { return true } @@ -207,7 +217,13 @@ func (o RecoveryBackupConfigPolicy) ToMap() (map[string]interface{}, error) { if errRecoveryAbstractBackupConfig != nil { return map[string]interface{}{}, errRecoveryAbstractBackupConfig } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.BackupProfiles != nil { toSerialize["BackupProfiles"] = o.BackupProfiles @@ -232,6 +248,13 @@ func (o *RecoveryBackupConfigPolicy) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -241,11 +264,23 @@ func (o *RecoveryBackupConfigPolicy) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type RecoveryBackupConfigPolicyWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_recovery_backup_config_policy_list.go b/model_recovery_backup_config_policy_list.go index a3430a5714..658fc8e164 100644 --- a/model_recovery_backup_config_policy_list.go +++ b/model_recovery_backup_config_policy_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *RecoveryBackupConfigPolicyList) GetResultsOk() ([]RecoveryBackupConfigP // HasResults returns a boolean if a field has been set. func (o *RecoveryBackupConfigPolicyList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *RecoveryBackupConfigPolicyList) UnmarshalJSON(data []byte) (err error) "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *RecoveryBackupConfigPolicyList) UnmarshalJSON(data []byte) (err error) } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type RecoveryBackupConfigPolicyListWithoutEmbeddedStruct struct { // The total number of 'recovery.BackupConfigPolicy' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_recovery_backup_config_policy_relationship.go b/model_recovery_backup_config_policy_relationship.go index 955991a2de..f14f4fa807 100644 --- a/model_recovery_backup_config_policy_relationship.go +++ b/model_recovery_backup_config_policy_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_recovery_backup_config_policy_response.go b/model_recovery_backup_config_policy_response.go index e2e986f157..e6838ef8b2 100644 --- a/model_recovery_backup_config_policy_response.go +++ b/model_recovery_backup_config_policy_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_recovery_backup_profile.go b/model_recovery_backup_profile.go index 3f54a28c7d..b1e79afa9f 100644 --- a/model_recovery_backup_profile.go +++ b/model_recovery_backup_profile.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -95,6 +95,11 @@ func (o *RecoveryBackupProfile) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "recovery.BackupProfile" of the ClassId field. +func (o *RecoveryBackupProfile) GetDefaultClassId() interface{} { + return "recovery.BackupProfile" +} + // GetObjectType returns the ObjectType field value func (o *RecoveryBackupProfile) GetObjectType() string { if o == nil { @@ -119,6 +124,11 @@ func (o *RecoveryBackupProfile) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "recovery.BackupProfile" of the ObjectType field. +func (o *RecoveryBackupProfile) GetDefaultObjectType() interface{} { + return "recovery.BackupProfile" +} + // GetEnabled returns the Enabled field value if set, zero value otherwise. func (o *RecoveryBackupProfile) GetEnabled() bool { if o == nil || IsNil(o.Enabled) { @@ -384,7 +394,13 @@ func (o RecoveryBackupProfile) ToMap() (map[string]interface{}, error) { if errPolicyAbstractConfigProfile != nil { return map[string]interface{}{}, errPolicyAbstractConfigProfile } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Enabled) { toSerialize["Enabled"] = o.Enabled @@ -421,6 +437,13 @@ func (o *RecoveryBackupProfile) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -430,11 +453,23 @@ func (o *RecoveryBackupProfile) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type RecoveryBackupProfileWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_recovery_backup_profile_list.go b/model_recovery_backup_profile_list.go index 9e9938cc18..d4f6e17a7f 100644 --- a/model_recovery_backup_profile_list.go +++ b/model_recovery_backup_profile_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *RecoveryBackupProfileList) GetResultsOk() ([]RecoveryBackupProfile, boo // HasResults returns a boolean if a field has been set. func (o *RecoveryBackupProfileList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *RecoveryBackupProfileList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *RecoveryBackupProfileList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type RecoveryBackupProfileListWithoutEmbeddedStruct struct { // The total number of 'recovery.BackupProfile' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_recovery_backup_profile_relationship.go b/model_recovery_backup_profile_relationship.go index f6f942d4a2..c6d79f0133 100644 --- a/model_recovery_backup_profile_relationship.go +++ b/model_recovery_backup_profile_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_recovery_backup_profile_response.go b/model_recovery_backup_profile_response.go index 53ed590857..025bf996fc 100644 --- a/model_recovery_backup_profile_response.go +++ b/model_recovery_backup_profile_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_recovery_backup_schedule.go b/model_recovery_backup_schedule.go index 02513535d7..8978e5b02c 100644 --- a/model_recovery_backup_schedule.go +++ b/model_recovery_backup_schedule.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -95,6 +95,11 @@ func (o *RecoveryBackupSchedule) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "recovery.BackupSchedule" of the ClassId field. +func (o *RecoveryBackupSchedule) GetDefaultClassId() interface{} { + return "recovery.BackupSchedule" +} + // GetObjectType returns the ObjectType field value func (o *RecoveryBackupSchedule) GetObjectType() string { if o == nil { @@ -119,6 +124,11 @@ func (o *RecoveryBackupSchedule) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "recovery.BackupSchedule" of the ObjectType field. +func (o *RecoveryBackupSchedule) GetDefaultObjectType() interface{} { + return "recovery.BackupSchedule" +} + // GetExecutionTime returns the ExecutionTime field value if set, zero value otherwise. func (o *RecoveryBackupSchedule) GetExecutionTime() time.Time { if o == nil || IsNil(o.ExecutionTime) { @@ -233,7 +243,13 @@ func (o RecoveryBackupSchedule) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.ExecutionTime) { toSerialize["ExecutionTime"] = o.ExecutionTime @@ -261,6 +277,13 @@ func (o *RecoveryBackupSchedule) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -270,11 +293,23 @@ func (o *RecoveryBackupSchedule) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type RecoveryBackupScheduleWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_recovery_config_params.go b/model_recovery_config_params.go index 62d582c0b6..75248caafa 100644 --- a/model_recovery_config_params.go +++ b/model_recovery_config_params.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -83,6 +83,10 @@ func (o *RecoveryConfigParams) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -92,11 +96,23 @@ func (o *RecoveryConfigParams) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type RecoveryConfigParamsWithoutEmbeddedStruct struct { } diff --git a/model_recovery_config_result.go b/model_recovery_config_result.go index a9764135ed..61f248c8d2 100644 --- a/model_recovery_config_result.go +++ b/model_recovery_config_result.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -83,6 +83,11 @@ func (o *RecoveryConfigResult) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "recovery.ConfigResult" of the ClassId field. +func (o *RecoveryConfigResult) GetDefaultClassId() interface{} { + return "recovery.ConfigResult" +} + // GetObjectType returns the ObjectType field value func (o *RecoveryConfigResult) GetObjectType() string { if o == nil { @@ -107,6 +112,11 @@ func (o *RecoveryConfigResult) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "recovery.ConfigResult" of the ObjectType field. +func (o *RecoveryConfigResult) GetDefaultObjectType() interface{} { + return "recovery.ConfigResult" +} + // GetBackupProfile returns the BackupProfile field value if set, zero value otherwise (both if not set or set to explicit null). func (o *RecoveryConfigResult) GetBackupProfile() RecoveryBackupProfileRelationship { if o == nil || IsNil(o.BackupProfile.Get()) { @@ -171,7 +181,7 @@ func (o *RecoveryConfigResult) GetResultEntriesOk() ([]RecoveryConfigResultEntry // HasResultEntries returns a boolean if a field has been set. func (o *RecoveryConfigResult) HasResultEntries() bool { - if o != nil && IsNil(o.ResultEntries) { + if o != nil && !IsNil(o.ResultEntries) { return true } @@ -201,7 +211,13 @@ func (o RecoveryConfigResult) ToMap() (map[string]interface{}, error) { if errPolicyAbstractConfigResult != nil { return map[string]interface{}{}, errPolicyAbstractConfigResult } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.BackupProfile.IsSet() { toSerialize["BackupProfile"] = o.BackupProfile.Get() @@ -226,6 +242,13 @@ func (o *RecoveryConfigResult) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -235,11 +258,23 @@ func (o *RecoveryConfigResult) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type RecoveryConfigResultWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_recovery_config_result_entry.go b/model_recovery_config_result_entry.go index 4fa9d0adcb..52f38290fb 100644 --- a/model_recovery_config_result_entry.go +++ b/model_recovery_config_result_entry.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -81,6 +81,11 @@ func (o *RecoveryConfigResultEntry) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "recovery.ConfigResultEntry" of the ClassId field. +func (o *RecoveryConfigResultEntry) GetDefaultClassId() interface{} { + return "recovery.ConfigResultEntry" +} + // GetObjectType returns the ObjectType field value func (o *RecoveryConfigResultEntry) GetObjectType() string { if o == nil { @@ -105,6 +110,11 @@ func (o *RecoveryConfigResultEntry) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "recovery.ConfigResultEntry" of the ObjectType field. +func (o *RecoveryConfigResultEntry) GetDefaultObjectType() interface{} { + return "recovery.ConfigResultEntry" +} + // GetConfigResult returns the ConfigResult field value if set, zero value otherwise (both if not set or set to explicit null). func (o *RecoveryConfigResultEntry) GetConfigResult() RecoveryConfigResultRelationship { if o == nil || IsNil(o.ConfigResult.Get()) { @@ -166,7 +176,13 @@ func (o RecoveryConfigResultEntry) ToMap() (map[string]interface{}, error) { if errPolicyAbstractConfigResultEntry != nil { return map[string]interface{}{}, errPolicyAbstractConfigResultEntry } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.ConfigResult.IsSet() { toSerialize["ConfigResult"] = o.ConfigResult.Get() @@ -188,6 +204,13 @@ func (o *RecoveryConfigResultEntry) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -197,11 +220,23 @@ func (o *RecoveryConfigResultEntry) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type RecoveryConfigResultEntryWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_recovery_config_result_entry_list.go b/model_recovery_config_result_entry_list.go index 18d90a3b2e..730c921de9 100644 --- a/model_recovery_config_result_entry_list.go +++ b/model_recovery_config_result_entry_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *RecoveryConfigResultEntryList) GetResultsOk() ([]RecoveryConfigResultEn // HasResults returns a boolean if a field has been set. func (o *RecoveryConfigResultEntryList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *RecoveryConfigResultEntryList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *RecoveryConfigResultEntryList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type RecoveryConfigResultEntryListWithoutEmbeddedStruct struct { // The total number of 'recovery.ConfigResultEntry' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_recovery_config_result_entry_relationship.go b/model_recovery_config_result_entry_relationship.go index cc11a8a905..7744061b0b 100644 --- a/model_recovery_config_result_entry_relationship.go +++ b/model_recovery_config_result_entry_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_recovery_config_result_entry_response.go b/model_recovery_config_result_entry_response.go index e4869e72cf..78b24d7d90 100644 --- a/model_recovery_config_result_entry_response.go +++ b/model_recovery_config_result_entry_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_recovery_config_result_list.go b/model_recovery_config_result_list.go index e1b06ed47f..92d4b78087 100644 --- a/model_recovery_config_result_list.go +++ b/model_recovery_config_result_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *RecoveryConfigResultList) GetResultsOk() ([]RecoveryConfigResult, bool) // HasResults returns a boolean if a field has been set. func (o *RecoveryConfigResultList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *RecoveryConfigResultList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *RecoveryConfigResultList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type RecoveryConfigResultListWithoutEmbeddedStruct struct { // The total number of 'recovery.ConfigResult' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_recovery_config_result_relationship.go b/model_recovery_config_result_relationship.go index acb17e50c3..de50983809 100644 --- a/model_recovery_config_result_relationship.go +++ b/model_recovery_config_result_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_recovery_config_result_response.go b/model_recovery_config_result_response.go index 4353d97e1c..68f2c2b715 100644 --- a/model_recovery_config_result_response.go +++ b/model_recovery_config_result_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_recovery_on_demand_backup.go b/model_recovery_on_demand_backup.go index 75ee5759a6..0e18bd364b 100644 --- a/model_recovery_on_demand_backup.go +++ b/model_recovery_on_demand_backup.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -89,6 +89,11 @@ func (o *RecoveryOnDemandBackup) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "recovery.OnDemandBackup" of the ClassId field. +func (o *RecoveryOnDemandBackup) GetDefaultClassId() interface{} { + return "recovery.OnDemandBackup" +} + // GetObjectType returns the ObjectType field value func (o *RecoveryOnDemandBackup) GetObjectType() string { if o == nil { @@ -113,6 +118,11 @@ func (o *RecoveryOnDemandBackup) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "recovery.OnDemandBackup" of the ObjectType field. +func (o *RecoveryOnDemandBackup) GetDefaultObjectType() interface{} { + return "recovery.OnDemandBackup" +} + // GetConfigResult returns the ConfigResult field value if set, zero value otherwise (both if not set or set to explicit null). func (o *RecoveryOnDemandBackup) GetConfigResult() RecoveryConfigResultRelationship { if o == nil || IsNil(o.ConfigResult.Get()) { @@ -260,7 +270,13 @@ func (o RecoveryOnDemandBackup) ToMap() (map[string]interface{}, error) { if errRecoveryAbstractBackupConfig != nil { return map[string]interface{}{}, errRecoveryAbstractBackupConfig } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.ConfigResult.IsSet() { toSerialize["ConfigResult"] = o.ConfigResult.Get() @@ -288,6 +304,13 @@ func (o *RecoveryOnDemandBackup) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -297,11 +320,23 @@ func (o *RecoveryOnDemandBackup) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type RecoveryOnDemandBackupWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_recovery_on_demand_backup_list.go b/model_recovery_on_demand_backup_list.go index 0b1406fe2f..8944f4df2e 100644 --- a/model_recovery_on_demand_backup_list.go +++ b/model_recovery_on_demand_backup_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *RecoveryOnDemandBackupList) GetResultsOk() ([]RecoveryOnDemandBackup, b // HasResults returns a boolean if a field has been set. func (o *RecoveryOnDemandBackupList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *RecoveryOnDemandBackupList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *RecoveryOnDemandBackupList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type RecoveryOnDemandBackupListWithoutEmbeddedStruct struct { // The total number of 'recovery.OnDemandBackup' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_recovery_on_demand_backup_response.go b/model_recovery_on_demand_backup_response.go index 87b62a9aac..998c6e10b5 100644 --- a/model_recovery_on_demand_backup_response.go +++ b/model_recovery_on_demand_backup_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_recovery_restore.go b/model_recovery_restore.go index 883d944880..610e088cf3 100644 --- a/model_recovery_restore.go +++ b/model_recovery_restore.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -85,6 +85,11 @@ func (o *RecoveryRestore) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "recovery.Restore" of the ClassId field. +func (o *RecoveryRestore) GetDefaultClassId() interface{} { + return "recovery.Restore" +} + // GetObjectType returns the ObjectType field value func (o *RecoveryRestore) GetObjectType() string { if o == nil { @@ -109,6 +114,11 @@ func (o *RecoveryRestore) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "recovery.Restore" of the ObjectType field. +func (o *RecoveryRestore) GetDefaultObjectType() interface{} { + return "recovery.Restore" +} + // GetConfigParams returns the ConfigParams field value if set, zero value otherwise (both if not set or set to explicit null). func (o *RecoveryRestore) GetConfigParams() RecoveryConfigParams { if o == nil || IsNil(o.ConfigParams.Get()) { @@ -342,7 +352,13 @@ func (o RecoveryRestore) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.ConfigParams.IsSet() { toSerialize["ConfigParams"] = o.ConfigParams.Get() @@ -376,6 +392,13 @@ func (o *RecoveryRestore) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -385,11 +408,23 @@ func (o *RecoveryRestore) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type RecoveryRestoreWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_recovery_restore_list.go b/model_recovery_restore_list.go index 3935d54ace..d6d1b21ba7 100644 --- a/model_recovery_restore_list.go +++ b/model_recovery_restore_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *RecoveryRestoreList) GetResultsOk() ([]RecoveryRestore, bool) { // HasResults returns a boolean if a field has been set. func (o *RecoveryRestoreList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *RecoveryRestoreList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *RecoveryRestoreList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type RecoveryRestoreListWithoutEmbeddedStruct struct { // The total number of 'recovery.Restore' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_recovery_restore_response.go b/model_recovery_restore_response.go index 792fd63de4..5f24efeaa8 100644 --- a/model_recovery_restore_response.go +++ b/model_recovery_restore_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_recovery_schedule_config_policy.go b/model_recovery_schedule_config_policy.go index 3f332dd3d5..e236e03b5a 100644 --- a/model_recovery_schedule_config_policy.go +++ b/model_recovery_schedule_config_policy.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -84,6 +84,11 @@ func (o *RecoveryScheduleConfigPolicy) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "recovery.ScheduleConfigPolicy" of the ClassId field. +func (o *RecoveryScheduleConfigPolicy) GetDefaultClassId() interface{} { + return "recovery.ScheduleConfigPolicy" +} + // GetObjectType returns the ObjectType field value func (o *RecoveryScheduleConfigPolicy) GetObjectType() string { if o == nil { @@ -108,6 +113,11 @@ func (o *RecoveryScheduleConfigPolicy) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "recovery.ScheduleConfigPolicy" of the ObjectType field. +func (o *RecoveryScheduleConfigPolicy) GetDefaultObjectType() interface{} { + return "recovery.ScheduleConfigPolicy" +} + // GetSchedule returns the Schedule field value if set, zero value otherwise (both if not set or set to explicit null). func (o *RecoveryScheduleConfigPolicy) GetSchedule() RecoveryBackupSchedule { if o == nil || IsNil(o.Schedule.Get()) { @@ -172,7 +182,7 @@ func (o *RecoveryScheduleConfigPolicy) GetBackupProfilesOk() ([]RecoveryBackupPr // HasBackupProfiles returns a boolean if a field has been set. func (o *RecoveryScheduleConfigPolicy) HasBackupProfiles() bool { - if o != nil && IsNil(o.BackupProfiles) { + if o != nil && !IsNil(o.BackupProfiles) { return true } @@ -245,7 +255,13 @@ func (o RecoveryScheduleConfigPolicy) ToMap() (map[string]interface{}, error) { if errPolicyAbstractPolicy != nil { return map[string]interface{}{}, errPolicyAbstractPolicy } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.Schedule.IsSet() { toSerialize["Schedule"] = o.Schedule.Get() @@ -273,6 +289,13 @@ func (o *RecoveryScheduleConfigPolicy) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -282,11 +305,23 @@ func (o *RecoveryScheduleConfigPolicy) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type RecoveryScheduleConfigPolicyWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_recovery_schedule_config_policy_list.go b/model_recovery_schedule_config_policy_list.go index bbdd313b72..3b4a7c4061 100644 --- a/model_recovery_schedule_config_policy_list.go +++ b/model_recovery_schedule_config_policy_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *RecoveryScheduleConfigPolicyList) GetResultsOk() ([]RecoveryScheduleCon // HasResults returns a boolean if a field has been set. func (o *RecoveryScheduleConfigPolicyList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *RecoveryScheduleConfigPolicyList) UnmarshalJSON(data []byte) (err error "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *RecoveryScheduleConfigPolicyList) UnmarshalJSON(data []byte) (err error } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type RecoveryScheduleConfigPolicyListWithoutEmbeddedStruct struct { // The total number of 'recovery.ScheduleConfigPolicy' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_recovery_schedule_config_policy_relationship.go b/model_recovery_schedule_config_policy_relationship.go index b84a03535b..362c82df53 100644 --- a/model_recovery_schedule_config_policy_relationship.go +++ b/model_recovery_schedule_config_policy_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_recovery_schedule_config_policy_response.go b/model_recovery_schedule_config_policy_response.go index 1ec73b6855..da34a6733d 100644 --- a/model_recovery_schedule_config_policy_response.go +++ b/model_recovery_schedule_config_policy_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_resource_abstract_reservation.go b/model_resource_abstract_reservation.go index 808770bc48..1a7d6871ba 100644 --- a/model_resource_abstract_reservation.go +++ b/model_resource_abstract_reservation.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -370,6 +370,10 @@ func (o *ResourceAbstractReservation) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -379,11 +383,23 @@ func (o *ResourceAbstractReservation) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type ResourceAbstractReservationWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. The enum values provides the list of concrete types that can be instantiated from this abstract type. ClassId string `json:"ClassId"` diff --git a/model_resource_group.go b/model_resource_group.go index 9a764a304f..fd8c03afb5 100644 --- a/model_resource_group.go +++ b/model_resource_group.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -31,7 +31,7 @@ type ResourceGroup struct { // The informative description about the usage of this Resource Group. Description *string `json:"Description,omitempty"` // The name of this resource group. - Name *string `json:"Name,omitempty"` + Name *string `json:"Name,omitempty" validate:"regexp=^[a-zA-Z0-9_.:-]{1,128}$"` PerTypeCombinedSelector []ResourcePerTypeCombinedSelector `json:"PerTypeCombinedSelector,omitempty"` // Qualifier shall be used to specify if we want to organize resources using multiple resource group or single For an account, resource groups can be of only one of the above types. (Both the types are mutually exclusive for an account.). * `Allow-Selectors` - Resources will be added to resource groups based on ODATA filter. Multiple resource group can be created to organize resources. * `Allow-All` - All resources will become part of the Resource Group. Only one resource group can be created to organize resources. Qualifier *string `json:"Qualifier,omitempty"` @@ -99,6 +99,11 @@ func (o *ResourceGroup) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "resource.Group" of the ClassId field. +func (o *ResourceGroup) GetDefaultClassId() interface{} { + return "resource.Group" +} + // GetObjectType returns the ObjectType field value func (o *ResourceGroup) GetObjectType() string { if o == nil { @@ -123,6 +128,11 @@ func (o *ResourceGroup) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "resource.Group" of the ObjectType field. +func (o *ResourceGroup) GetDefaultObjectType() interface{} { + return "resource.Group" +} + // GetDescription returns the Description field value if set, zero value otherwise. func (o *ResourceGroup) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -208,7 +218,7 @@ func (o *ResourceGroup) GetPerTypeCombinedSelectorOk() ([]ResourcePerTypeCombine // HasPerTypeCombinedSelector returns a boolean if a field has been set. func (o *ResourceGroup) HasPerTypeCombinedSelector() bool { - if o != nil && IsNil(o.PerTypeCombinedSelector) { + if o != nil && !IsNil(o.PerTypeCombinedSelector) { return true } @@ -305,7 +315,7 @@ func (o *ResourceGroup) GetSelectorsOk() ([]ResourceSelector, bool) { // HasSelectors returns a boolean if a field has been set. func (o *ResourceGroup) HasSelectors() bool { - if o != nil && IsNil(o.Selectors) { + if o != nil && !IsNil(o.Selectors) { return true } @@ -413,7 +423,7 @@ func (o *ResourceGroup) GetOrganizationsOk() ([]OrganizationOrganizationRelation // HasOrganizations returns a boolean if a field has been set. func (o *ResourceGroup) HasOrganizations() bool { - if o != nil && IsNil(o.Organizations) { + if o != nil && !IsNil(o.Organizations) { return true } @@ -443,7 +453,13 @@ func (o ResourceGroup) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Description) { toSerialize["Description"] = o.Description @@ -489,6 +505,13 @@ func (o *ResourceGroup) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -498,11 +521,23 @@ func (o *ResourceGroup) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type ResourceGroupWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` @@ -511,7 +546,7 @@ func (o *ResourceGroup) UnmarshalJSON(data []byte) (err error) { // The informative description about the usage of this Resource Group. Description *string `json:"Description,omitempty"` // The name of this resource group. - Name *string `json:"Name,omitempty"` + Name *string `json:"Name,omitempty" validate:"regexp=^[a-zA-Z0-9_.:-]{1,128}$"` PerTypeCombinedSelector []ResourcePerTypeCombinedSelector `json:"PerTypeCombinedSelector,omitempty"` // Qualifier shall be used to specify if we want to organize resources using multiple resource group or single For an account, resource groups can be of only one of the above types. (Both the types are mutually exclusive for an account.). * `Allow-Selectors` - Resources will be added to resource groups based on ODATA filter. Multiple resource group can be created to organize resources. * `Allow-All` - All resources will become part of the Resource Group. Only one resource group can be created to organize resources. Qualifier *string `json:"Qualifier,omitempty"` diff --git a/model_resource_group_list.go b/model_resource_group_list.go index 638c0ae09f..6c7ff38962 100644 --- a/model_resource_group_list.go +++ b/model_resource_group_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *ResourceGroupList) GetResultsOk() ([]ResourceGroup, bool) { // HasResults returns a boolean if a field has been set. func (o *ResourceGroupList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *ResourceGroupList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *ResourceGroupList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type ResourceGroupListWithoutEmbeddedStruct struct { // The total number of 'resource.Group' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_resource_group_member.go b/model_resource_group_member.go index f1d0a2ca1c..8717c1d084 100644 --- a/model_resource_group_member.go +++ b/model_resource_group_member.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -82,6 +82,11 @@ func (o *ResourceGroupMember) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "resource.GroupMember" of the ClassId field. +func (o *ResourceGroupMember) GetDefaultClassId() interface{} { + return "resource.GroupMember" +} + // GetObjectType returns the ObjectType field value func (o *ResourceGroupMember) GetObjectType() string { if o == nil { @@ -106,6 +111,11 @@ func (o *ResourceGroupMember) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "resource.GroupMember" of the ObjectType field. +func (o *ResourceGroupMember) GetDefaultObjectType() interface{} { + return "resource.GroupMember" +} + // GetGroup returns the Group field value if set, zero value otherwise (both if not set or set to explicit null). func (o *ResourceGroupMember) GetGroup() ResourceGroupRelationship { if o == nil || IsNil(o.Group.Get()) { @@ -210,7 +220,13 @@ func (o ResourceGroupMember) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.Group.IsSet() { toSerialize["Group"] = o.Group.Get() @@ -235,6 +251,13 @@ func (o *ResourceGroupMember) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -244,11 +267,23 @@ func (o *ResourceGroupMember) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type ResourceGroupMemberWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_resource_group_member_list.go b/model_resource_group_member_list.go index a16441d159..c04e2ea9fa 100644 --- a/model_resource_group_member_list.go +++ b/model_resource_group_member_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *ResourceGroupMemberList) GetResultsOk() ([]ResourceGroupMember, bool) { // HasResults returns a boolean if a field has been set. func (o *ResourceGroupMemberList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *ResourceGroupMemberList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *ResourceGroupMemberList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type ResourceGroupMemberListWithoutEmbeddedStruct struct { // The total number of 'resource.GroupMember' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_resource_group_member_response.go b/model_resource_group_member_response.go index b8666e895f..75d4d1dab8 100644 --- a/model_resource_group_member_response.go +++ b/model_resource_group_member_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_resource_group_relationship.go b/model_resource_group_relationship.go index cb3a2b5d09..3f96adcc25 100644 --- a/model_resource_group_relationship.go +++ b/model_resource_group_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_resource_group_response.go b/model_resource_group_response.go index 6776a59232..601ad67e96 100644 --- a/model_resource_group_response.go +++ b/model_resource_group_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_resource_license_resource_count.go b/model_resource_license_resource_count.go index 5d8cee9aa5..f4dd453265 100644 --- a/model_resource_license_resource_count.go +++ b/model_resource_license_resource_count.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -87,6 +87,11 @@ func (o *ResourceLicenseResourceCount) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "resource.LicenseResourceCount" of the ClassId field. +func (o *ResourceLicenseResourceCount) GetDefaultClassId() interface{} { + return "resource.LicenseResourceCount" +} + // GetObjectType returns the ObjectType field value func (o *ResourceLicenseResourceCount) GetObjectType() string { if o == nil { @@ -111,6 +116,11 @@ func (o *ResourceLicenseResourceCount) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "resource.LicenseResourceCount" of the ObjectType field. +func (o *ResourceLicenseResourceCount) GetDefaultObjectType() interface{} { + return "resource.LicenseResourceCount" +} + // GetLicenseType returns the LicenseType field value if set, zero value otherwise. func (o *ResourceLicenseResourceCount) GetLicenseType() string { if o == nil || IsNil(o.LicenseType) { @@ -239,7 +249,7 @@ func (o *ResourceLicenseResourceCount) GetLicenseGroupsOk() ([]ResourceGroupRela // HasLicenseGroups returns a boolean if a field has been set. func (o *ResourceLicenseResourceCount) HasLicenseGroups() bool { - if o != nil && IsNil(o.LicenseGroups) { + if o != nil && !IsNil(o.LicenseGroups) { return true } @@ -269,7 +279,13 @@ func (o ResourceLicenseResourceCount) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.LicenseType) { toSerialize["LicenseType"] = o.LicenseType @@ -300,6 +316,13 @@ func (o *ResourceLicenseResourceCount) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -309,11 +332,23 @@ func (o *ResourceLicenseResourceCount) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type ResourceLicenseResourceCountWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_resource_license_resource_count_list.go b/model_resource_license_resource_count_list.go index 82868f3f4b..ba1945e11f 100644 --- a/model_resource_license_resource_count_list.go +++ b/model_resource_license_resource_count_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *ResourceLicenseResourceCountList) GetResultsOk() ([]ResourceLicenseReso // HasResults returns a boolean if a field has been set. func (o *ResourceLicenseResourceCountList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *ResourceLicenseResourceCountList) UnmarshalJSON(data []byte) (err error "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *ResourceLicenseResourceCountList) UnmarshalJSON(data []byte) (err error } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type ResourceLicenseResourceCountListWithoutEmbeddedStruct struct { // The total number of 'resource.LicenseResourceCount' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_resource_license_resource_count_response.go b/model_resource_license_resource_count_response.go index 1962e089ee..7a9e438eb1 100644 --- a/model_resource_license_resource_count_response.go +++ b/model_resource_license_resource_count_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_resource_membership.go b/model_resource_membership.go index ad87f7ee08..22b3d811cc 100644 --- a/model_resource_membership.go +++ b/model_resource_membership.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -89,6 +89,11 @@ func (o *ResourceMembership) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "resource.Membership" of the ClassId field. +func (o *ResourceMembership) GetDefaultClassId() interface{} { + return "resource.Membership" +} + // GetObjectType returns the ObjectType field value func (o *ResourceMembership) GetObjectType() string { if o == nil { @@ -113,6 +118,11 @@ func (o *ResourceMembership) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "resource.Membership" of the ObjectType field. +func (o *ResourceMembership) GetDefaultObjectType() interface{} { + return "resource.Membership" +} + // GetGroupPermissionRoles returns the GroupPermissionRoles field value if set, zero value otherwise (both if not set or set to explicit null). func (o *ResourceMembership) GetGroupPermissionRoles() []IamGroupPermissionToRoles { if o == nil { @@ -134,7 +144,7 @@ func (o *ResourceMembership) GetGroupPermissionRolesOk() ([]IamGroupPermissionTo // HasGroupPermissionRoles returns a boolean if a field has been set. func (o *ResourceMembership) HasGroupPermissionRoles() bool { - if o != nil && IsNil(o.GroupPermissionRoles) { + if o != nil && !IsNil(o.GroupPermissionRoles) { return true } @@ -317,7 +327,7 @@ func (o *ResourceMembership) GetResourceAncestorsOk() ([]MoBaseMoRelationship, b // HasResourceAncestors returns a boolean if a field has been set. func (o *ResourceMembership) HasResourceAncestors() bool { - if o != nil && IsNil(o.ResourceAncestors) { + if o != nil && !IsNil(o.ResourceAncestors) { return true } @@ -347,7 +357,13 @@ func (o ResourceMembership) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.GroupPermissionRoles != nil { toSerialize["GroupPermissionRoles"] = o.GroupPermissionRoles @@ -384,6 +400,13 @@ func (o *ResourceMembership) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -393,11 +416,23 @@ func (o *ResourceMembership) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type ResourceMembershipWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_resource_membership_holder.go b/model_resource_membership_holder.go index 2a0221cdd8..369f8f1c1e 100644 --- a/model_resource_membership_holder.go +++ b/model_resource_membership_holder.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -83,6 +83,11 @@ func (o *ResourceMembershipHolder) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "resource.MembershipHolder" of the ClassId field. +func (o *ResourceMembershipHolder) GetDefaultClassId() interface{} { + return "resource.MembershipHolder" +} + // GetObjectType returns the ObjectType field value func (o *ResourceMembershipHolder) GetObjectType() string { if o == nil { @@ -107,6 +112,11 @@ func (o *ResourceMembershipHolder) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "resource.MembershipHolder" of the ObjectType field. +func (o *ResourceMembershipHolder) GetDefaultObjectType() interface{} { + return "resource.MembershipHolder" +} + // GetName returns the Name field value if set, zero value otherwise. func (o *ResourceMembershipHolder) GetName() string { if o == nil || IsNil(o.Name) { @@ -200,7 +210,13 @@ func (o ResourceMembershipHolder) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Name) { toSerialize["Name"] = o.Name @@ -225,6 +241,13 @@ func (o *ResourceMembershipHolder) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -234,11 +257,23 @@ func (o *ResourceMembershipHolder) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type ResourceMembershipHolderWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_resource_membership_holder_list.go b/model_resource_membership_holder_list.go index a64654bfb5..b41c4e9d4f 100644 --- a/model_resource_membership_holder_list.go +++ b/model_resource_membership_holder_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *ResourceMembershipHolderList) GetResultsOk() ([]ResourceMembershipHolde // HasResults returns a boolean if a field has been set. func (o *ResourceMembershipHolderList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *ResourceMembershipHolderList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *ResourceMembershipHolderList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type ResourceMembershipHolderListWithoutEmbeddedStruct struct { // The total number of 'resource.MembershipHolder' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_resource_membership_holder_relationship.go b/model_resource_membership_holder_relationship.go index 928abf27ed..7fb875b5e0 100644 --- a/model_resource_membership_holder_relationship.go +++ b/model_resource_membership_holder_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_resource_membership_holder_response.go b/model_resource_membership_holder_response.go index 384389e226..45487cd2f0 100644 --- a/model_resource_membership_holder_response.go +++ b/model_resource_membership_holder_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_resource_membership_list.go b/model_resource_membership_list.go index 7e2258a011..f28e3c77a5 100644 --- a/model_resource_membership_list.go +++ b/model_resource_membership_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *ResourceMembershipList) GetResultsOk() ([]ResourceMembership, bool) { // HasResults returns a boolean if a field has been set. func (o *ResourceMembershipList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *ResourceMembershipList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *ResourceMembershipList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type ResourceMembershipListWithoutEmbeddedStruct struct { // The total number of 'resource.Membership' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_resource_membership_response.go b/model_resource_membership_response.go index 8069742d89..4f3b764442 100644 --- a/model_resource_membership_response.go +++ b/model_resource_membership_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_resource_per_type_combined_selector.go b/model_resource_per_type_combined_selector.go index d22717434e..c9de155980 100644 --- a/model_resource_per_type_combined_selector.go +++ b/model_resource_per_type_combined_selector.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -86,6 +86,11 @@ func (o *ResourcePerTypeCombinedSelector) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "resource.PerTypeCombinedSelector" of the ClassId field. +func (o *ResourcePerTypeCombinedSelector) GetDefaultClassId() interface{} { + return "resource.PerTypeCombinedSelector" +} + // GetObjectType returns the ObjectType field value func (o *ResourcePerTypeCombinedSelector) GetObjectType() string { if o == nil { @@ -110,6 +115,11 @@ func (o *ResourcePerTypeCombinedSelector) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "resource.PerTypeCombinedSelector" of the ObjectType field. +func (o *ResourcePerTypeCombinedSelector) GetDefaultObjectType() interface{} { + return "resource.PerTypeCombinedSelector" +} + // GetCombinedSelector returns the CombinedSelector field value if set, zero value otherwise. func (o *ResourcePerTypeCombinedSelector) GetCombinedSelector() string { if o == nil || IsNil(o.CombinedSelector) { @@ -224,7 +234,13 @@ func (o ResourcePerTypeCombinedSelector) ToMap() (map[string]interface{}, error) if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.CombinedSelector) { toSerialize["CombinedSelector"] = o.CombinedSelector @@ -252,6 +268,13 @@ func (o *ResourcePerTypeCombinedSelector) UnmarshalJSON(data []byte) (err error) "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -261,11 +284,23 @@ func (o *ResourcePerTypeCombinedSelector) UnmarshalJSON(data []byte) (err error) } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type ResourcePerTypeCombinedSelectorWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_resource_reservation.go b/model_resource_reservation.go index 6ca913a0d7..65cb149657 100644 --- a/model_resource_reservation.go +++ b/model_resource_reservation.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -90,6 +90,11 @@ func (o *ResourceReservation) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "resource.Reservation" of the ClassId field. +func (o *ResourceReservation) GetDefaultClassId() interface{} { + return "resource.Reservation" +} + // GetObjectType returns the ObjectType field value func (o *ResourceReservation) GetObjectType() string { if o == nil { @@ -114,6 +119,11 @@ func (o *ResourceReservation) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "resource.Reservation" of the ObjectType field. +func (o *ResourceReservation) GetDefaultObjectType() interface{} { + return "resource.Reservation" +} + // GetMarkFail returns the MarkFail field value if set, zero value otherwise. func (o *ResourceReservation) GetMarkFail() bool { if o == nil || IsNil(o.MarkFail) { @@ -167,7 +177,7 @@ func (o *ResourceReservation) GetResourceMoidsOk() ([]string, bool) { // HasResourceMoids returns a boolean if a field has been set. func (o *ResourceReservation) HasResourceMoids() bool { - if o != nil && IsNil(o.ResourceMoids) { + if o != nil && !IsNil(o.ResourceMoids) { return true } @@ -275,7 +285,7 @@ func (o *ResourceReservation) GetCustomPermissionResourcesOk() ([]MoBaseMoRelati // HasCustomPermissionResources returns a boolean if a field has been set. func (o *ResourceReservation) HasCustomPermissionResources() bool { - if o != nil && IsNil(o.CustomPermissionResources) { + if o != nil && !IsNil(o.CustomPermissionResources) { return true } @@ -308,7 +318,7 @@ func (o *ResourceReservation) GetGroupsOk() ([]ResourceGroupRelationship, bool) // HasGroups returns a boolean if a field has been set. func (o *ResourceReservation) HasGroups() bool { - if o != nil && IsNil(o.Groups) { + if o != nil && !IsNil(o.Groups) { return true } @@ -338,7 +348,13 @@ func (o ResourceReservation) ToMap() (map[string]interface{}, error) { if errResourceAbstractReservation != nil { return map[string]interface{}{}, errResourceAbstractReservation } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.MarkFail) { toSerialize["MarkFail"] = o.MarkFail @@ -375,6 +391,13 @@ func (o *ResourceReservation) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -384,11 +407,23 @@ func (o *ResourceReservation) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type ResourceReservationWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_resource_reservation_list.go b/model_resource_reservation_list.go index 1331ca31f4..25e3bfaa2c 100644 --- a/model_resource_reservation_list.go +++ b/model_resource_reservation_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *ResourceReservationList) GetResultsOk() ([]ResourceReservation, bool) { // HasResults returns a boolean if a field has been set. func (o *ResourceReservationList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *ResourceReservationList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *ResourceReservationList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type ResourceReservationListWithoutEmbeddedStruct struct { // The total number of 'resource.Reservation' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_resource_reservation_relationship.go b/model_resource_reservation_relationship.go index 9f630082c0..45652dbe21 100644 --- a/model_resource_reservation_relationship.go +++ b/model_resource_reservation_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_resource_reservation_response.go b/model_resource_reservation_response.go index 8a780b3b9a..3a78a53a54 100644 --- a/model_resource_reservation_response.go +++ b/model_resource_reservation_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_resource_selection_criteria.go b/model_resource_selection_criteria.go index 74b9536e00..981a10de67 100644 --- a/model_resource_selection_criteria.go +++ b/model_resource_selection_criteria.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -29,9 +29,9 @@ type ResourceSelectionCriteria struct { // The fully-qualified name of the instantiated, concrete type. The value should be the same as the 'ClassId' property. ObjectType string `json:"ObjectType"` // The description of the Resource Selection Criteria. - Description *string `json:"Description,omitempty"` + Description *string `json:"Description,omitempty" validate:"regexp=^$|^[a-zA-Z0-9]+[\\\\x00-\\\\xFF]*$"` // Name of the Resource Selection Criteria. - Name *string `json:"Name,omitempty"` + Name *string `json:"Name,omitempty" validate:"regexp=^[a-zA-Z0-9_.:-]{1,128}$"` PlaceHolders []string `json:"PlaceHolders,omitempty"` Selectors []ResourceSelector `json:"Selectors,omitempty"` Organization NullableOrganizationOrganizationRelationship `json:"Organization,omitempty"` @@ -87,6 +87,11 @@ func (o *ResourceSelectionCriteria) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "resource.SelectionCriteria" of the ClassId field. +func (o *ResourceSelectionCriteria) GetDefaultClassId() interface{} { + return "resource.SelectionCriteria" +} + // GetObjectType returns the ObjectType field value func (o *ResourceSelectionCriteria) GetObjectType() string { if o == nil { @@ -111,6 +116,11 @@ func (o *ResourceSelectionCriteria) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "resource.SelectionCriteria" of the ObjectType field. +func (o *ResourceSelectionCriteria) GetDefaultObjectType() interface{} { + return "resource.SelectionCriteria" +} + // GetDescription returns the Description field value if set, zero value otherwise. func (o *ResourceSelectionCriteria) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -196,7 +206,7 @@ func (o *ResourceSelectionCriteria) GetPlaceHoldersOk() ([]string, bool) { // HasPlaceHolders returns a boolean if a field has been set. func (o *ResourceSelectionCriteria) HasPlaceHolders() bool { - if o != nil && IsNil(o.PlaceHolders) { + if o != nil && !IsNil(o.PlaceHolders) { return true } @@ -229,7 +239,7 @@ func (o *ResourceSelectionCriteria) GetSelectorsOk() ([]ResourceSelector, bool) // HasSelectors returns a boolean if a field has been set. func (o *ResourceSelectionCriteria) HasSelectors() bool { - if o != nil && IsNil(o.Selectors) { + if o != nil && !IsNil(o.Selectors) { return true } @@ -302,7 +312,13 @@ func (o ResourceSelectionCriteria) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Description) { toSerialize["Description"] = o.Description @@ -336,6 +352,13 @@ func (o *ResourceSelectionCriteria) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -345,20 +368,32 @@ func (o *ResourceSelectionCriteria) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type ResourceSelectionCriteriaWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` // The fully-qualified name of the instantiated, concrete type. The value should be the same as the 'ClassId' property. ObjectType string `json:"ObjectType"` // The description of the Resource Selection Criteria. - Description *string `json:"Description,omitempty"` + Description *string `json:"Description,omitempty" validate:"regexp=^$|^[a-zA-Z0-9]+[\\\\x00-\\\\xFF]*$"` // Name of the Resource Selection Criteria. - Name *string `json:"Name,omitempty"` + Name *string `json:"Name,omitempty" validate:"regexp=^[a-zA-Z0-9_.:-]{1,128}$"` PlaceHolders []string `json:"PlaceHolders,omitempty"` Selectors []ResourceSelector `json:"Selectors,omitempty"` Organization NullableOrganizationOrganizationRelationship `json:"Organization,omitempty"` diff --git a/model_resource_selection_criteria_list.go b/model_resource_selection_criteria_list.go index ef75af7f95..2a8bde743d 100644 --- a/model_resource_selection_criteria_list.go +++ b/model_resource_selection_criteria_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *ResourceSelectionCriteriaList) GetResultsOk() ([]ResourceSelectionCrite // HasResults returns a boolean if a field has been set. func (o *ResourceSelectionCriteriaList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *ResourceSelectionCriteriaList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *ResourceSelectionCriteriaList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type ResourceSelectionCriteriaListWithoutEmbeddedStruct struct { // The total number of 'resource.SelectionCriteria' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_resource_selection_criteria_response.go b/model_resource_selection_criteria_response.go index 3da6eda9ee..ba73eaf778 100644 --- a/model_resource_selection_criteria_response.go +++ b/model_resource_selection_criteria_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_resource_selector.go b/model_resource_selector.go index 9a095244a1..413ca2dd16 100644 --- a/model_resource_selector.go +++ b/model_resource_selector.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -29,7 +29,7 @@ type ResourceSelector struct { // The fully-qualified name of the instantiated, concrete type. The value should be the same as the 'ClassId' property. ObjectType string `json:"ObjectType"` // ODATA filter to select resources. The group selector may include URLs of individual resource, or OData query with filters that match multiple queries. The URLs must be relative (i.e. do not include the host). - Selector *string `json:"Selector,omitempty"` + Selector *string `json:"Selector,omitempty" validate:"regexp=^$|\\/api\\/v1\\/.*"` AdditionalProperties map[string]interface{} } @@ -82,6 +82,11 @@ func (o *ResourceSelector) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "resource.Selector" of the ClassId field. +func (o *ResourceSelector) GetDefaultClassId() interface{} { + return "resource.Selector" +} + // GetObjectType returns the ObjectType field value func (o *ResourceSelector) GetObjectType() string { if o == nil { @@ -106,6 +111,11 @@ func (o *ResourceSelector) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "resource.Selector" of the ObjectType field. +func (o *ResourceSelector) GetDefaultObjectType() interface{} { + return "resource.Selector" +} + // GetSelector returns the Selector field value if set, zero value otherwise. func (o *ResourceSelector) GetSelector() string { if o == nil || IsNil(o.Selector) { @@ -156,7 +166,13 @@ func (o ResourceSelector) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Selector) { toSerialize["Selector"] = o.Selector @@ -178,6 +194,13 @@ func (o *ResourceSelector) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -187,18 +210,30 @@ func (o *ResourceSelector) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type ResourceSelectorWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` // The fully-qualified name of the instantiated, concrete type. The value should be the same as the 'ClassId' property. ObjectType string `json:"ObjectType"` // ODATA filter to select resources. The group selector may include URLs of individual resource, or OData query with filters that match multiple queries. The URLs must be relative (i.e. do not include the host). - Selector *string `json:"Selector,omitempty"` + Selector *string `json:"Selector,omitempty" validate:"regexp=^$|\\/api\\/v1\\/.*"` } varResourceSelectorWithoutEmbeddedStruct := ResourceSelectorWithoutEmbeddedStruct{} diff --git a/model_resource_shared_resources_info_holder.go b/model_resource_shared_resources_info_holder.go index 20846d9caa..94c29eb50c 100644 --- a/model_resource_shared_resources_info_holder.go +++ b/model_resource_shared_resources_info_holder.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -87,6 +87,11 @@ func (o *ResourceSharedResourcesInfoHolder) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "resource.SharedResourcesInfoHolder" of the ClassId field. +func (o *ResourceSharedResourcesInfoHolder) GetDefaultClassId() interface{} { + return "resource.SharedResourcesInfoHolder" +} + // GetObjectType returns the ObjectType field value func (o *ResourceSharedResourcesInfoHolder) GetObjectType() string { if o == nil { @@ -111,6 +116,11 @@ func (o *ResourceSharedResourcesInfoHolder) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "resource.SharedResourcesInfoHolder" of the ObjectType field. +func (o *ResourceSharedResourcesInfoHolder) GetDefaultObjectType() interface{} { + return "resource.SharedResourcesInfoHolder" +} + // GetAccount returns the Account field value if set, zero value otherwise (both if not set or set to explicit null). func (o *ResourceSharedResourcesInfoHolder) GetAccount() IamAccountRelationship { if o == nil || IsNil(o.Account.Get()) { @@ -175,7 +185,7 @@ func (o *ResourceSharedResourcesInfoHolder) GetPeerObjectsOk() ([]MoBaseMoRelati // HasPeerObjects returns a boolean if a field has been set. func (o *ResourceSharedResourcesInfoHolder) HasPeerObjects() bool { - if o != nil && IsNil(o.PeerObjects) { + if o != nil && !IsNil(o.PeerObjects) { return true } @@ -377,7 +387,13 @@ func (o ResourceSharedResourcesInfoHolder) ToMap() (map[string]interface{}, erro if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.Account.IsSet() { toSerialize["Account"] = o.Account.Get() @@ -414,6 +430,13 @@ func (o *ResourceSharedResourcesInfoHolder) UnmarshalJSON(data []byte) (err erro "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -423,11 +446,23 @@ func (o *ResourceSharedResourcesInfoHolder) UnmarshalJSON(data []byte) (err erro } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type ResourceSharedResourcesInfoHolderWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_resource_shared_resources_info_holder_list.go b/model_resource_shared_resources_info_holder_list.go index b8fa15c6a2..61274bc6b8 100644 --- a/model_resource_shared_resources_info_holder_list.go +++ b/model_resource_shared_resources_info_holder_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *ResourceSharedResourcesInfoHolderList) GetResultsOk() ([]ResourceShared // HasResults returns a boolean if a field has been set. func (o *ResourceSharedResourcesInfoHolderList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *ResourceSharedResourcesInfoHolderList) UnmarshalJSON(data []byte) (err "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *ResourceSharedResourcesInfoHolderList) UnmarshalJSON(data []byte) (err } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type ResourceSharedResourcesInfoHolderListWithoutEmbeddedStruct struct { // The total number of 'resource.SharedResourcesInfoHolder' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_resource_shared_resources_info_holder_response.go b/model_resource_shared_resources_info_holder_response.go index cf28b77f9f..4caa09da52 100644 --- a/model_resource_shared_resources_info_holder_response.go +++ b/model_resource_shared_resources_info_holder_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_resource_source_to_permission_resources.go b/model_resource_source_to_permission_resources.go index 6ef94494c2..f8cff6294d 100644 --- a/model_resource_source_to_permission_resources.go +++ b/model_resource_source_to_permission_resources.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -84,6 +84,11 @@ func (o *ResourceSourceToPermissionResources) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "resource.SourceToPermissionResources" of the ClassId field. +func (o *ResourceSourceToPermissionResources) GetDefaultClassId() interface{} { + return "resource.SourceToPermissionResources" +} + // GetObjectType returns the ObjectType field value func (o *ResourceSourceToPermissionResources) GetObjectType() string { if o == nil { @@ -108,6 +113,11 @@ func (o *ResourceSourceToPermissionResources) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "resource.SourceToPermissionResources" of the ObjectType field. +func (o *ResourceSourceToPermissionResources) GetDefaultObjectType() interface{} { + return "resource.SourceToPermissionResources" +} + // GetPermissionResources returns the PermissionResources field value if set, zero value otherwise (both if not set or set to explicit null). func (o *ResourceSourceToPermissionResources) GetPermissionResources() []MoMoRef { if o == nil { @@ -129,7 +139,7 @@ func (o *ResourceSourceToPermissionResources) GetPermissionResourcesOk() ([]MoMo // HasPermissionResources returns a boolean if a field has been set. func (o *ResourceSourceToPermissionResources) HasPermissionResources() bool { - if o != nil && IsNil(o.PermissionResources) { + if o != nil && !IsNil(o.PermissionResources) { return true } @@ -223,7 +233,13 @@ func (o ResourceSourceToPermissionResources) ToMap() (map[string]interface{}, er if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.PermissionResources != nil { toSerialize["PermissionResources"] = o.PermissionResources @@ -251,6 +267,13 @@ func (o *ResourceSourceToPermissionResources) UnmarshalJSON(data []byte) (err er "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -260,11 +283,23 @@ func (o *ResourceSourceToPermissionResources) UnmarshalJSON(data []byte) (err er } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type ResourceSourceToPermissionResourcesWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_resource_source_to_permission_resources_holder.go b/model_resource_source_to_permission_resources_holder.go index 81287312a7..f1089602e1 100644 --- a/model_resource_source_to_permission_resources_holder.go +++ b/model_resource_source_to_permission_resources_holder.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -81,6 +81,11 @@ func (o *ResourceSourceToPermissionResourcesHolder) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "resource.SourceToPermissionResourcesHolder" of the ClassId field. +func (o *ResourceSourceToPermissionResourcesHolder) GetDefaultClassId() interface{} { + return "resource.SourceToPermissionResourcesHolder" +} + // GetObjectType returns the ObjectType field value func (o *ResourceSourceToPermissionResourcesHolder) GetObjectType() string { if o == nil { @@ -105,6 +110,11 @@ func (o *ResourceSourceToPermissionResourcesHolder) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "resource.SourceToPermissionResourcesHolder" of the ObjectType field. +func (o *ResourceSourceToPermissionResourcesHolder) GetDefaultObjectType() interface{} { + return "resource.SourceToPermissionResourcesHolder" +} + // GetSourceToPermissionResources returns the SourceToPermissionResources field value if set, zero value otherwise (both if not set or set to explicit null). func (o *ResourceSourceToPermissionResourcesHolder) GetSourceToPermissionResources() []ResourceSourceToPermissionResources { if o == nil { @@ -126,7 +136,7 @@ func (o *ResourceSourceToPermissionResourcesHolder) GetSourceToPermissionResourc // HasSourceToPermissionResources returns a boolean if a field has been set. func (o *ResourceSourceToPermissionResourcesHolder) HasSourceToPermissionResources() bool { - if o != nil && IsNil(o.SourceToPermissionResources) { + if o != nil && !IsNil(o.SourceToPermissionResources) { return true } @@ -156,7 +166,13 @@ func (o ResourceSourceToPermissionResourcesHolder) ToMap() (map[string]interface if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.SourceToPermissionResources != nil { toSerialize["SourceToPermissionResources"] = o.SourceToPermissionResources @@ -178,6 +194,13 @@ func (o *ResourceSourceToPermissionResourcesHolder) UnmarshalJSON(data []byte) ( "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -187,11 +210,23 @@ func (o *ResourceSourceToPermissionResourcesHolder) UnmarshalJSON(data []byte) ( } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type ResourceSourceToPermissionResourcesHolderWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_resourcepool_lease.go b/model_resourcepool_lease.go index 3d45efacaf..ab046b4125 100644 --- a/model_resourcepool_lease.go +++ b/model_resourcepool_lease.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -106,6 +106,11 @@ func (o *ResourcepoolLease) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "resourcepool.Lease" of the ClassId field. +func (o *ResourcepoolLease) GetDefaultClassId() interface{} { + return "resourcepool.Lease" +} + // GetObjectType returns the ObjectType field value func (o *ResourcepoolLease) GetObjectType() string { if o == nil { @@ -130,6 +135,11 @@ func (o *ResourcepoolLease) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "resourcepool.Lease" of the ObjectType field. +func (o *ResourcepoolLease) GetDefaultObjectType() interface{} { + return "resourcepool.Lease" +} + // GetCondition returns the Condition field value if set, zero value otherwise (both if not set or set to explicit null). func (o *ResourcepoolLease) GetCondition() []ResourceSelector { if o == nil { @@ -151,7 +161,7 @@ func (o *ResourcepoolLease) GetConditionOk() ([]ResourceSelector, bool) { // HasCondition returns a boolean if a field has been set. func (o *ResourcepoolLease) HasCondition() bool { - if o != nil && IsNil(o.Condition) { + if o != nil && !IsNil(o.Condition) { return true } @@ -567,7 +577,13 @@ func (o ResourcepoolLease) ToMap() (map[string]interface{}, error) { if errPoolAbstractLease != nil { return map[string]interface{}{}, errPoolAbstractLease } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.Condition != nil { toSerialize["Condition"] = o.Condition @@ -619,6 +635,13 @@ func (o *ResourcepoolLease) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -628,11 +651,23 @@ func (o *ResourcepoolLease) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type ResourcepoolLeaseWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_resourcepool_lease_list.go b/model_resourcepool_lease_list.go index 148acf419f..1b685fb591 100644 --- a/model_resourcepool_lease_list.go +++ b/model_resourcepool_lease_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *ResourcepoolLeaseList) GetResultsOk() ([]ResourcepoolLease, bool) { // HasResults returns a boolean if a field has been set. func (o *ResourcepoolLeaseList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *ResourcepoolLeaseList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *ResourcepoolLeaseList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type ResourcepoolLeaseListWithoutEmbeddedStruct struct { // The total number of 'resourcepool.Lease' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_resourcepool_lease_parameters.go b/model_resourcepool_lease_parameters.go index 9c44bdce91..6cbac78392 100644 --- a/model_resourcepool_lease_parameters.go +++ b/model_resourcepool_lease_parameters.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -83,6 +83,10 @@ func (o *ResourcepoolLeaseParameters) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -92,11 +96,23 @@ func (o *ResourcepoolLeaseParameters) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type ResourcepoolLeaseParametersWithoutEmbeddedStruct struct { } diff --git a/model_resourcepool_lease_relationship.go b/model_resourcepool_lease_relationship.go index daf0ba9278..b40bca3490 100644 --- a/model_resourcepool_lease_relationship.go +++ b/model_resourcepool_lease_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_resourcepool_lease_resource.go b/model_resourcepool_lease_resource.go index aa6de7d255..9718abacba 100644 --- a/model_resourcepool_lease_resource.go +++ b/model_resourcepool_lease_resource.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -83,6 +83,11 @@ func (o *ResourcepoolLeaseResource) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "resourcepool.LeaseResource" of the ClassId field. +func (o *ResourcepoolLeaseResource) GetDefaultClassId() interface{} { + return "resourcepool.LeaseResource" +} + // GetObjectType returns the ObjectType field value func (o *ResourcepoolLeaseResource) GetObjectType() string { if o == nil { @@ -107,6 +112,11 @@ func (o *ResourcepoolLeaseResource) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "resourcepool.LeaseResource" of the ObjectType field. +func (o *ResourcepoolLeaseResource) GetDefaultObjectType() interface{} { + return "resourcepool.LeaseResource" +} + // GetFeature returns the Feature field value if set, zero value otherwise. func (o *ResourcepoolLeaseResource) GetFeature() string { if o == nil || IsNil(o.Feature) { @@ -200,7 +210,13 @@ func (o ResourcepoolLeaseResource) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Feature) { toSerialize["Feature"] = o.Feature @@ -225,6 +241,13 @@ func (o *ResourcepoolLeaseResource) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -234,11 +257,23 @@ func (o *ResourcepoolLeaseResource) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type ResourcepoolLeaseResourceWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_resourcepool_lease_resource_list.go b/model_resourcepool_lease_resource_list.go index 26e8a6c0ee..bd9843dbae 100644 --- a/model_resourcepool_lease_resource_list.go +++ b/model_resourcepool_lease_resource_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *ResourcepoolLeaseResourceList) GetResultsOk() ([]ResourcepoolLeaseResou // HasResults returns a boolean if a field has been set. func (o *ResourcepoolLeaseResourceList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *ResourcepoolLeaseResourceList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *ResourcepoolLeaseResourceList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type ResourcepoolLeaseResourceListWithoutEmbeddedStruct struct { // The total number of 'resourcepool.LeaseResource' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_resourcepool_lease_resource_relationship.go b/model_resourcepool_lease_resource_relationship.go index 8ccc87ccb7..b46a344231 100644 --- a/model_resourcepool_lease_resource_relationship.go +++ b/model_resourcepool_lease_resource_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_resourcepool_lease_resource_response.go b/model_resourcepool_lease_resource_response.go index 282ebcf3ef..caef577a52 100644 --- a/model_resourcepool_lease_resource_response.go +++ b/model_resourcepool_lease_resource_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_resourcepool_lease_response.go b/model_resourcepool_lease_response.go index bcef61de48..c520fce7a6 100644 --- a/model_resourcepool_lease_response.go +++ b/model_resourcepool_lease_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_resourcepool_membership_reservation.go b/model_resourcepool_membership_reservation.go index 7e8830c78d..ce91d37ba3 100644 --- a/model_resourcepool_membership_reservation.go +++ b/model_resourcepool_membership_reservation.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -83,6 +83,11 @@ func (o *ResourcepoolMembershipReservation) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "resourcepool.MembershipReservation" of the ClassId field. +func (o *ResourcepoolMembershipReservation) GetDefaultClassId() interface{} { + return "resourcepool.MembershipReservation" +} + // GetObjectType returns the ObjectType field value func (o *ResourcepoolMembershipReservation) GetObjectType() string { if o == nil { @@ -107,6 +112,11 @@ func (o *ResourcepoolMembershipReservation) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "resourcepool.MembershipReservation" of the ObjectType field. +func (o *ResourcepoolMembershipReservation) GetDefaultObjectType() interface{} { + return "resourcepool.MembershipReservation" +} + // GetAccount returns the Account field value if set, zero value otherwise (both if not set or set to explicit null). func (o *ResourcepoolMembershipReservation) GetAccount() IamAccountRelationship { if o == nil || IsNil(o.Account.Get()) { @@ -171,7 +181,7 @@ func (o *ResourcepoolMembershipReservation) GetPoolsOk() ([]ResourcepoolPoolRela // HasPools returns a boolean if a field has been set. func (o *ResourcepoolMembershipReservation) HasPools() bool { - if o != nil && IsNil(o.Pools) { + if o != nil && !IsNil(o.Pools) { return true } @@ -201,7 +211,13 @@ func (o ResourcepoolMembershipReservation) ToMap() (map[string]interface{}, erro if errResourceAbstractReservation != nil { return map[string]interface{}{}, errResourceAbstractReservation } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.Account.IsSet() { toSerialize["Account"] = o.Account.Get() @@ -226,6 +242,13 @@ func (o *ResourcepoolMembershipReservation) UnmarshalJSON(data []byte) (err erro "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -235,11 +258,23 @@ func (o *ResourcepoolMembershipReservation) UnmarshalJSON(data []byte) (err erro } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type ResourcepoolMembershipReservationWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_resourcepool_membership_reservation_list.go b/model_resourcepool_membership_reservation_list.go index 3105f7eaaa..acc236f698 100644 --- a/model_resourcepool_membership_reservation_list.go +++ b/model_resourcepool_membership_reservation_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *ResourcepoolMembershipReservationList) GetResultsOk() ([]ResourcepoolMe // HasResults returns a boolean if a field has been set. func (o *ResourcepoolMembershipReservationList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *ResourcepoolMembershipReservationList) UnmarshalJSON(data []byte) (err "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *ResourcepoolMembershipReservationList) UnmarshalJSON(data []byte) (err } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type ResourcepoolMembershipReservationListWithoutEmbeddedStruct struct { // The total number of 'resourcepool.MembershipReservation' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_resourcepool_membership_reservation_response.go b/model_resourcepool_membership_reservation_response.go index 15a36ff68a..30a79dbe79 100644 --- a/model_resourcepool_membership_reservation_response.go +++ b/model_resourcepool_membership_reservation_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_resourcepool_pool.go b/model_resourcepool_pool.go index eb256e0723..a6a38dbe86 100644 --- a/model_resourcepool_pool.go +++ b/model_resourcepool_pool.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -97,6 +97,11 @@ func (o *ResourcepoolPool) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "resourcepool.Pool" of the ClassId field. +func (o *ResourcepoolPool) GetDefaultClassId() interface{} { + return "resourcepool.Pool" +} + // GetObjectType returns the ObjectType field value func (o *ResourcepoolPool) GetObjectType() string { if o == nil { @@ -121,6 +126,11 @@ func (o *ResourcepoolPool) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "resourcepool.Pool" of the ObjectType field. +func (o *ResourcepoolPool) GetDefaultObjectType() interface{} { + return "resourcepool.Pool" +} + // GetPoolType returns the PoolType field value if set, zero value otherwise. func (o *ResourcepoolPool) GetPoolType() string { if o == nil || IsNil(o.PoolType) { @@ -249,7 +259,7 @@ func (o *ResourcepoolPool) GetSelectorsOk() ([]ResourceSelector, bool) { // HasSelectors returns a boolean if a field has been set. func (o *ResourcepoolPool) HasSelectors() bool { - if o != nil && IsNil(o.Selectors) { + if o != nil && !IsNil(o.Selectors) { return true } @@ -322,7 +332,13 @@ func (o ResourcepoolPool) ToMap() (map[string]interface{}, error) { if errPoolAbstractPool != nil { return map[string]interface{}{}, errPoolAbstractPool } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.PoolType) { toSerialize["PoolType"] = o.PoolType @@ -356,6 +372,13 @@ func (o *ResourcepoolPool) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -365,11 +388,23 @@ func (o *ResourcepoolPool) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type ResourcepoolPoolWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_resourcepool_pool_list.go b/model_resourcepool_pool_list.go index 4778bd6b18..8fe18b2735 100644 --- a/model_resourcepool_pool_list.go +++ b/model_resourcepool_pool_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *ResourcepoolPoolList) GetResultsOk() ([]ResourcepoolPool, bool) { // HasResults returns a boolean if a field has been set. func (o *ResourcepoolPoolList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *ResourcepoolPoolList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *ResourcepoolPoolList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type ResourcepoolPoolListWithoutEmbeddedStruct struct { // The total number of 'resourcepool.Pool' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_resourcepool_pool_member.go b/model_resourcepool_pool_member.go index 51542ea7c1..3c8e5055f4 100644 --- a/model_resourcepool_pool_member.go +++ b/model_resourcepool_pool_member.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -88,6 +88,11 @@ func (o *ResourcepoolPoolMember) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "resourcepool.PoolMember" of the ClassId field. +func (o *ResourcepoolPoolMember) GetDefaultClassId() interface{} { + return "resourcepool.PoolMember" +} + // GetObjectType returns the ObjectType field value func (o *ResourcepoolPoolMember) GetObjectType() string { if o == nil { @@ -112,6 +117,11 @@ func (o *ResourcepoolPoolMember) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "resourcepool.PoolMember" of the ObjectType field. +func (o *ResourcepoolPoolMember) GetDefaultObjectType() interface{} { + return "resourcepool.PoolMember" +} + // GetFeatures returns the Features field value if set, zero value otherwise (both if not set or set to explicit null). func (o *ResourcepoolPoolMember) GetFeatures() []string { if o == nil { @@ -133,7 +143,7 @@ func (o *ResourcepoolPoolMember) GetFeaturesOk() ([]string, bool) { // HasFeatures returns a boolean if a field has been set. func (o *ResourcepoolPoolMember) HasFeatures() bool { - if o != nil && IsNil(o.Features) { + if o != nil && !IsNil(o.Features) { return true } @@ -166,7 +176,7 @@ func (o *ResourcepoolPoolMember) GetAssignedToEntityOk() ([]MoBaseMoRelationship // HasAssignedToEntity returns a boolean if a field has been set. func (o *ResourcepoolPoolMember) HasAssignedToEntity() bool { - if o != nil && IsNil(o.AssignedToEntity) { + if o != nil && !IsNil(o.AssignedToEntity) { return true } @@ -325,7 +335,13 @@ func (o ResourcepoolPoolMember) ToMap() (map[string]interface{}, error) { if errPoolAbstractPoolMember != nil { return map[string]interface{}{}, errPoolAbstractPoolMember } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.Features != nil { toSerialize["Features"] = o.Features @@ -359,6 +375,13 @@ func (o *ResourcepoolPoolMember) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -368,11 +391,23 @@ func (o *ResourcepoolPoolMember) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type ResourcepoolPoolMemberWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_resourcepool_pool_member_list.go b/model_resourcepool_pool_member_list.go index c5050f63fe..bb677bfe4a 100644 --- a/model_resourcepool_pool_member_list.go +++ b/model_resourcepool_pool_member_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *ResourcepoolPoolMemberList) GetResultsOk() ([]ResourcepoolPoolMember, b // HasResults returns a boolean if a field has been set. func (o *ResourcepoolPoolMemberList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *ResourcepoolPoolMemberList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *ResourcepoolPoolMemberList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type ResourcepoolPoolMemberListWithoutEmbeddedStruct struct { // The total number of 'resourcepool.PoolMember' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_resourcepool_pool_member_relationship.go b/model_resourcepool_pool_member_relationship.go index 85bed08704..624d05ea1d 100644 --- a/model_resourcepool_pool_member_relationship.go +++ b/model_resourcepool_pool_member_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_resourcepool_pool_member_response.go b/model_resourcepool_pool_member_response.go index a12bca4249..bd4beb873d 100644 --- a/model_resourcepool_pool_member_response.go +++ b/model_resourcepool_pool_member_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_resourcepool_pool_relationship.go b/model_resourcepool_pool_relationship.go index 594f6af40d..86c92385ca 100644 --- a/model_resourcepool_pool_relationship.go +++ b/model_resourcepool_pool_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_resourcepool_pool_response.go b/model_resourcepool_pool_response.go index d7ba144fe1..a120cbc7f5 100644 --- a/model_resourcepool_pool_response.go +++ b/model_resourcepool_pool_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_resourcepool_resource_pool_parameters.go b/model_resourcepool_resource_pool_parameters.go index 9aea49fc99..915f6682fd 100644 --- a/model_resourcepool_resource_pool_parameters.go +++ b/model_resourcepool_resource_pool_parameters.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -83,6 +83,10 @@ func (o *ResourcepoolResourcePoolParameters) UnmarshalJSON(data []byte) (err err "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -92,11 +96,23 @@ func (o *ResourcepoolResourcePoolParameters) UnmarshalJSON(data []byte) (err err } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type ResourcepoolResourcePoolParametersWithoutEmbeddedStruct struct { } diff --git a/model_resourcepool_server_lease_parameters.go b/model_resourcepool_server_lease_parameters.go index 11a0b29590..26bb4c1dac 100644 --- a/model_resourcepool_server_lease_parameters.go +++ b/model_resourcepool_server_lease_parameters.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -81,6 +81,11 @@ func (o *ResourcepoolServerLeaseParameters) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "resourcepool.ServerLeaseParameters" of the ClassId field. +func (o *ResourcepoolServerLeaseParameters) GetDefaultClassId() interface{} { + return "resourcepool.ServerLeaseParameters" +} + // GetObjectType returns the ObjectType field value func (o *ResourcepoolServerLeaseParameters) GetObjectType() string { if o == nil { @@ -105,6 +110,11 @@ func (o *ResourcepoolServerLeaseParameters) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "resourcepool.ServerLeaseParameters" of the ObjectType field. +func (o *ResourcepoolServerLeaseParameters) GetDefaultObjectType() interface{} { + return "resourcepool.ServerLeaseParameters" +} + // GetLifeCycleStates returns the LifeCycleStates field value if set, zero value otherwise (both if not set or set to explicit null). func (o *ResourcepoolServerLeaseParameters) GetLifeCycleStates() []string { if o == nil { @@ -126,7 +136,7 @@ func (o *ResourcepoolServerLeaseParameters) GetLifeCycleStatesOk() ([]string, bo // HasLifeCycleStates returns a boolean if a field has been set. func (o *ResourcepoolServerLeaseParameters) HasLifeCycleStates() bool { - if o != nil && IsNil(o.LifeCycleStates) { + if o != nil && !IsNil(o.LifeCycleStates) { return true } @@ -156,7 +166,13 @@ func (o ResourcepoolServerLeaseParameters) ToMap() (map[string]interface{}, erro if errResourcepoolLeaseParameters != nil { return map[string]interface{}{}, errResourcepoolLeaseParameters } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.LifeCycleStates != nil { toSerialize["LifeCycleStates"] = o.LifeCycleStates @@ -178,6 +194,13 @@ func (o *ResourcepoolServerLeaseParameters) UnmarshalJSON(data []byte) (err erro "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -187,11 +210,23 @@ func (o *ResourcepoolServerLeaseParameters) UnmarshalJSON(data []byte) (err erro } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type ResourcepoolServerLeaseParametersWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_resourcepool_server_pool_parameters.go b/model_resourcepool_server_pool_parameters.go index 618d711552..13d330f579 100644 --- a/model_resourcepool_server_pool_parameters.go +++ b/model_resourcepool_server_pool_parameters.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -86,6 +86,11 @@ func (o *ResourcepoolServerPoolParameters) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "resourcepool.ServerPoolParameters" of the ClassId field. +func (o *ResourcepoolServerPoolParameters) GetDefaultClassId() interface{} { + return "resourcepool.ServerPoolParameters" +} + // GetObjectType returns the ObjectType field value func (o *ResourcepoolServerPoolParameters) GetObjectType() string { if o == nil { @@ -110,6 +115,11 @@ func (o *ResourcepoolServerPoolParameters) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "resourcepool.ServerPoolParameters" of the ObjectType field. +func (o *ResourcepoolServerPoolParameters) GetDefaultObjectType() interface{} { + return "resourcepool.ServerPoolParameters" +} + // GetManagementMode returns the ManagementMode field value if set, zero value otherwise. func (o *ResourcepoolServerPoolParameters) GetManagementMode() string { if o == nil || IsNil(o.ManagementMode) { @@ -160,7 +170,13 @@ func (o ResourcepoolServerPoolParameters) ToMap() (map[string]interface{}, error if errResourcepoolResourcePoolParameters != nil { return map[string]interface{}{}, errResourcepoolResourcePoolParameters } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.ManagementMode) { toSerialize["ManagementMode"] = o.ManagementMode @@ -182,6 +198,13 @@ func (o *ResourcepoolServerPoolParameters) UnmarshalJSON(data []byte) (err error "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -191,11 +214,23 @@ func (o *ResourcepoolServerPoolParameters) UnmarshalJSON(data []byte) (err error } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type ResourcepoolServerPoolParametersWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_resourcepool_universe.go b/model_resourcepool_universe.go index 8a001b14f0..de0e350c11 100644 --- a/model_resourcepool_universe.go +++ b/model_resourcepool_universe.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -81,6 +81,11 @@ func (o *ResourcepoolUniverse) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "resourcepool.Universe" of the ClassId field. +func (o *ResourcepoolUniverse) GetDefaultClassId() interface{} { + return "resourcepool.Universe" +} + // GetObjectType returns the ObjectType field value func (o *ResourcepoolUniverse) GetObjectType() string { if o == nil { @@ -105,6 +110,11 @@ func (o *ResourcepoolUniverse) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "resourcepool.Universe" of the ObjectType field. +func (o *ResourcepoolUniverse) GetDefaultObjectType() interface{} { + return "resourcepool.Universe" +} + // GetAccount returns the Account field value if set, zero value otherwise (both if not set or set to explicit null). func (o *ResourcepoolUniverse) GetAccount() IamAccountRelationship { if o == nil || IsNil(o.Account.Get()) { @@ -166,7 +176,13 @@ func (o ResourcepoolUniverse) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.Account.IsSet() { toSerialize["Account"] = o.Account.Get() @@ -188,6 +204,13 @@ func (o *ResourcepoolUniverse) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -197,11 +220,23 @@ func (o *ResourcepoolUniverse) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type ResourcepoolUniverseWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_resourcepool_universe_list.go b/model_resourcepool_universe_list.go index 90ee16d788..2e0bbc42a0 100644 --- a/model_resourcepool_universe_list.go +++ b/model_resourcepool_universe_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *ResourcepoolUniverseList) GetResultsOk() ([]ResourcepoolUniverse, bool) // HasResults returns a boolean if a field has been set. func (o *ResourcepoolUniverseList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *ResourcepoolUniverseList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *ResourcepoolUniverseList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type ResourcepoolUniverseListWithoutEmbeddedStruct struct { // The total number of 'resourcepool.Universe' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_resourcepool_universe_relationship.go b/model_resourcepool_universe_relationship.go index f474935340..7ff1f3ce1c 100644 --- a/model_resourcepool_universe_relationship.go +++ b/model_resourcepool_universe_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_resourcepool_universe_response.go b/model_resourcepool_universe_response.go index 507bf96d32..9f072e3abf 100644 --- a/model_resourcepool_universe_response.go +++ b/model_resourcepool_universe_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_rproxy_reverse_proxy.go b/model_rproxy_reverse_proxy.go index a63e609a95..9288a7bbe1 100644 --- a/model_rproxy_reverse_proxy.go +++ b/model_rproxy_reverse_proxy.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -81,6 +81,11 @@ func (o *RproxyReverseProxy) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "rproxy.ReverseProxy" of the ClassId field. +func (o *RproxyReverseProxy) GetDefaultClassId() interface{} { + return "rproxy.ReverseProxy" +} + // GetObjectType returns the ObjectType field value func (o *RproxyReverseProxy) GetObjectType() string { if o == nil { @@ -105,6 +110,11 @@ func (o *RproxyReverseProxy) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "rproxy.ReverseProxy" of the ObjectType field. +func (o *RproxyReverseProxy) GetDefaultObjectType() interface{} { + return "rproxy.ReverseProxy" +} + // GetAccount returns the Account field value if set, zero value otherwise (both if not set or set to explicit null). func (o *RproxyReverseProxy) GetAccount() IamAccountRelationship { if o == nil || IsNil(o.Account.Get()) { @@ -166,7 +176,13 @@ func (o RproxyReverseProxy) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.Account.IsSet() { toSerialize["Account"] = o.Account.Get() @@ -188,6 +204,13 @@ func (o *RproxyReverseProxy) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -197,11 +220,23 @@ func (o *RproxyReverseProxy) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type RproxyReverseProxyWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_scheduler_abstract_scheduling_params.go b/model_scheduler_abstract_scheduling_params.go index b9d9284ff9..e0acc1af87 100644 --- a/model_scheduler_abstract_scheduling_params.go +++ b/model_scheduler_abstract_scheduling_params.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -83,6 +83,10 @@ func (o *SchedulerAbstractSchedulingParams) UnmarshalJSON(data []byte) (err erro "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -92,11 +96,23 @@ func (o *SchedulerAbstractSchedulingParams) UnmarshalJSON(data []byte) (err erro } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type SchedulerAbstractSchedulingParamsWithoutEmbeddedStruct struct { } diff --git a/model_scheduler_abstract_task_request.go b/model_scheduler_abstract_task_request.go index 9496460eae..ed3136bf49 100644 --- a/model_scheduler_abstract_task_request.go +++ b/model_scheduler_abstract_task_request.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -83,6 +83,10 @@ func (o *SchedulerAbstractTaskRequest) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -92,11 +96,23 @@ func (o *SchedulerAbstractTaskRequest) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type SchedulerAbstractTaskRequestWithoutEmbeddedStruct struct { } diff --git a/model_scheduler_base_cadence_params.go b/model_scheduler_base_cadence_params.go index 6e250aaceb..e1732bf6e9 100644 --- a/model_scheduler_base_cadence_params.go +++ b/model_scheduler_base_cadence_params.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -83,6 +83,10 @@ func (o *SchedulerBaseCadenceParams) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -92,11 +96,23 @@ func (o *SchedulerBaseCadenceParams) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type SchedulerBaseCadenceParamsWithoutEmbeddedStruct struct { } diff --git a/model_scheduler_base_monthly_cadence_params.go b/model_scheduler_base_monthly_cadence_params.go index f85db8033b..6b94595bbc 100644 --- a/model_scheduler_base_monthly_cadence_params.go +++ b/model_scheduler_base_monthly_cadence_params.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -161,7 +161,7 @@ func (o *SchedulerBaseMonthlyCadenceParams) GetDayOfMonthOk() ([]int64, bool) { // HasDayOfMonth returns a boolean if a field has been set. func (o *SchedulerBaseMonthlyCadenceParams) HasDayOfMonth() bool { - if o != nil && IsNil(o.DayOfMonth) { + if o != nil && !IsNil(o.DayOfMonth) { return true } @@ -262,6 +262,10 @@ func (o *SchedulerBaseMonthlyCadenceParams) UnmarshalJSON(data []byte) (err erro "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -271,11 +275,23 @@ func (o *SchedulerBaseMonthlyCadenceParams) UnmarshalJSON(data []byte) (err erro } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type SchedulerBaseMonthlyCadenceParamsWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. The enum values provides the list of concrete types that can be instantiated from this abstract type. ClassId string `json:"ClassId"` diff --git a/model_scheduler_base_schedule_params.go b/model_scheduler_base_schedule_params.go index d37f4daa9b..bfd34197bd 100644 --- a/model_scheduler_base_schedule_params.go +++ b/model_scheduler_base_schedule_params.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -216,6 +216,10 @@ func (o *SchedulerBaseScheduleParams) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -225,11 +229,23 @@ func (o *SchedulerBaseScheduleParams) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type SchedulerBaseScheduleParamsWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. The enum values provides the list of concrete types that can be instantiated from this abstract type. ClassId string `json:"ClassId"` diff --git a/model_scheduler_daily_cadence_params.go b/model_scheduler_daily_cadence_params.go index 8e30bb7ed9..7e5230113d 100644 --- a/model_scheduler_daily_cadence_params.go +++ b/model_scheduler_daily_cadence_params.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -82,6 +82,11 @@ func (o *SchedulerDailyCadenceParams) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "scheduler.DailyCadenceParams" of the ClassId field. +func (o *SchedulerDailyCadenceParams) GetDefaultClassId() interface{} { + return "scheduler.DailyCadenceParams" +} + // GetObjectType returns the ObjectType field value func (o *SchedulerDailyCadenceParams) GetObjectType() string { if o == nil { @@ -106,6 +111,11 @@ func (o *SchedulerDailyCadenceParams) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "scheduler.DailyCadenceParams" of the ObjectType field. +func (o *SchedulerDailyCadenceParams) GetDefaultObjectType() interface{} { + return "scheduler.DailyCadenceParams" +} + // GetRunEvery returns the RunEvery field value if set, zero value otherwise. func (o *SchedulerDailyCadenceParams) GetRunEvery() int64 { if o == nil || IsNil(o.RunEvery) { @@ -156,7 +166,13 @@ func (o SchedulerDailyCadenceParams) ToMap() (map[string]interface{}, error) { if errSchedulerBaseCadenceParams != nil { return map[string]interface{}{}, errSchedulerBaseCadenceParams } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.RunEvery) { toSerialize["RunEvery"] = o.RunEvery @@ -178,6 +194,13 @@ func (o *SchedulerDailyCadenceParams) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -187,11 +210,23 @@ func (o *SchedulerDailyCadenceParams) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type SchedulerDailyCadenceParamsWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_scheduler_every_cadence_params.go b/model_scheduler_every_cadence_params.go index 517e41dbe0..80b9cf3286 100644 --- a/model_scheduler_every_cadence_params.go +++ b/model_scheduler_every_cadence_params.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -82,6 +82,11 @@ func (o *SchedulerEveryCadenceParams) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "scheduler.EveryCadenceParams" of the ClassId field. +func (o *SchedulerEveryCadenceParams) GetDefaultClassId() interface{} { + return "scheduler.EveryCadenceParams" +} + // GetObjectType returns the ObjectType field value func (o *SchedulerEveryCadenceParams) GetObjectType() string { if o == nil { @@ -106,6 +111,11 @@ func (o *SchedulerEveryCadenceParams) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "scheduler.EveryCadenceParams" of the ObjectType field. +func (o *SchedulerEveryCadenceParams) GetDefaultObjectType() interface{} { + return "scheduler.EveryCadenceParams" +} + // GetInterval returns the Interval field value if set, zero value otherwise. func (o *SchedulerEveryCadenceParams) GetInterval() string { if o == nil || IsNil(o.Interval) { @@ -156,7 +166,13 @@ func (o SchedulerEveryCadenceParams) ToMap() (map[string]interface{}, error) { if errSchedulerBaseCadenceParams != nil { return map[string]interface{}{}, errSchedulerBaseCadenceParams } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Interval) { toSerialize["Interval"] = o.Interval @@ -178,6 +194,13 @@ func (o *SchedulerEveryCadenceParams) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -187,11 +210,23 @@ func (o *SchedulerEveryCadenceParams) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type SchedulerEveryCadenceParamsWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_scheduler_monthly_cadence_params.go b/model_scheduler_monthly_cadence_params.go index d0d7e7e686..12e4733085 100644 --- a/model_scheduler_monthly_cadence_params.go +++ b/model_scheduler_monthly_cadence_params.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -85,6 +85,10 @@ func (o *SchedulerMonthlyCadenceParams) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -94,11 +98,23 @@ func (o *SchedulerMonthlyCadenceParams) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type SchedulerMonthlyCadenceParamsWithoutEmbeddedStruct struct { } diff --git a/model_scheduler_monthly_week_day_format.go b/model_scheduler_monthly_week_day_format.go index 2ac5584ff5..4a8e3ffdf2 100644 --- a/model_scheduler_monthly_week_day_format.go +++ b/model_scheduler_monthly_week_day_format.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -72,7 +72,7 @@ func (o *SchedulerMonthlyWeekDayFormat) GetDayOfWeekOk() ([]string, bool) { // HasDayOfWeek returns a boolean if a field has been set. func (o *SchedulerMonthlyWeekDayFormat) HasDayOfWeek() bool { - if o != nil && IsNil(o.DayOfWeek) { + if o != nil && !IsNil(o.DayOfWeek) { return true } @@ -157,6 +157,10 @@ func (o *SchedulerMonthlyWeekDayFormat) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -166,11 +170,23 @@ func (o *SchedulerMonthlyWeekDayFormat) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type SchedulerMonthlyWeekDayFormatWithoutEmbeddedStruct struct { DayOfWeek []string `json:"DayOfWeek,omitempty"` // The week of the month, 1 through 5. diff --git a/model_scheduler_one_time_schedule_params.go b/model_scheduler_one_time_schedule_params.go index ca2551d70a..4420835a1d 100644 --- a/model_scheduler_one_time_schedule_params.go +++ b/model_scheduler_one_time_schedule_params.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -85,6 +85,10 @@ func (o *SchedulerOneTimeScheduleParams) UnmarshalJSON(data []byte) (err error) "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -94,11 +98,23 @@ func (o *SchedulerOneTimeScheduleParams) UnmarshalJSON(data []byte) (err error) } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type SchedulerOneTimeScheduleParamsWithoutEmbeddedStruct struct { } diff --git a/model_scheduler_recurring_schedule_params.go b/model_scheduler_recurring_schedule_params.go index f9a6deb2c5..68035600cd 100644 --- a/model_scheduler_recurring_schedule_params.go +++ b/model_scheduler_recurring_schedule_params.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -85,6 +85,10 @@ func (o *SchedulerRecurringScheduleParams) UnmarshalJSON(data []byte) (err error "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -94,11 +98,23 @@ func (o *SchedulerRecurringScheduleParams) UnmarshalJSON(data []byte) (err error } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type SchedulerRecurringScheduleParamsWithoutEmbeddedStruct struct { } diff --git a/model_scheduler_rest_stim_task_request.go b/model_scheduler_rest_stim_task_request.go index fba5d1c9e0..65700c05da 100644 --- a/model_scheduler_rest_stim_task_request.go +++ b/model_scheduler_rest_stim_task_request.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -94,6 +94,11 @@ func (o *SchedulerRestStimTaskRequest) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "scheduler.RestStimTaskRequest" of the ClassId field. +func (o *SchedulerRestStimTaskRequest) GetDefaultClassId() interface{} { + return "scheduler.RestStimTaskRequest" +} + // GetObjectType returns the ObjectType field value func (o *SchedulerRestStimTaskRequest) GetObjectType() string { if o == nil { @@ -118,6 +123,11 @@ func (o *SchedulerRestStimTaskRequest) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "scheduler.RestStimTaskRequest" of the ObjectType field. +func (o *SchedulerRestStimTaskRequest) GetDefaultObjectType() interface{} { + return "scheduler.RestStimTaskRequest" +} + // GetBody returns the Body field value if set, zero value otherwise (both if not set or set to explicit null). func (o *SchedulerRestStimTaskRequest) GetBody() interface{} { if o == nil { @@ -139,7 +149,7 @@ func (o *SchedulerRestStimTaskRequest) GetBodyOk() (*interface{}, bool) { // HasBody returns a boolean if a field has been set. func (o *SchedulerRestStimTaskRequest) HasBody() bool { - if o != nil && IsNil(o.Body) { + if o != nil && !IsNil(o.Body) { return true } @@ -172,7 +182,7 @@ func (o *SchedulerRestStimTaskRequest) GetHeadersOk() (*interface{}, bool) { // HasHeaders returns a boolean if a field has been set. func (o *SchedulerRestStimTaskRequest) HasHeaders() bool { - if o != nil && IsNil(o.Headers) { + if o != nil && !IsNil(o.Headers) { return true } @@ -269,7 +279,7 @@ func (o *SchedulerRestStimTaskRequest) GetResponseOk() (*interface{}, bool) { // HasResponse returns a boolean if a field has been set. func (o *SchedulerRestStimTaskRequest) HasResponse() bool { - if o != nil && IsNil(o.Response) { + if o != nil && !IsNil(o.Response) { return true } @@ -363,7 +373,13 @@ func (o SchedulerRestStimTaskRequest) ToMap() (map[string]interface{}, error) { if errSchedulerAbstractTaskRequest != nil { return map[string]interface{}{}, errSchedulerAbstractTaskRequest } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.Body != nil { toSerialize["Body"] = o.Body @@ -403,6 +419,13 @@ func (o *SchedulerRestStimTaskRequest) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -412,11 +435,23 @@ func (o *SchedulerRestStimTaskRequest) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type SchedulerRestStimTaskRequestWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_scheduler_task_result.go b/model_scheduler_task_result.go index 16838e6959..8b41057d8b 100644 --- a/model_scheduler_task_result.go +++ b/model_scheduler_task_result.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -90,6 +90,11 @@ func (o *SchedulerTaskResult) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "scheduler.TaskResult" of the ClassId field. +func (o *SchedulerTaskResult) GetDefaultClassId() interface{} { + return "scheduler.TaskResult" +} + // GetObjectType returns the ObjectType field value func (o *SchedulerTaskResult) GetObjectType() string { if o == nil { @@ -114,6 +119,11 @@ func (o *SchedulerTaskResult) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "scheduler.TaskResult" of the ObjectType field. +func (o *SchedulerTaskResult) GetDefaultObjectType() interface{} { + return "scheduler.TaskResult" +} + // GetEndTime returns the EndTime field value if set, zero value otherwise. func (o *SchedulerTaskResult) GetEndTime() time.Time { if o == nil || IsNil(o.EndTime) { @@ -357,7 +367,13 @@ func (o SchedulerTaskResult) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.EndTime) { toSerialize["EndTime"] = o.EndTime @@ -394,6 +410,13 @@ func (o *SchedulerTaskResult) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -403,11 +426,23 @@ func (o *SchedulerTaskResult) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type SchedulerTaskResultWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_scheduler_task_result_list.go b/model_scheduler_task_result_list.go index fbb3ab0484..4ed4b5da7a 100644 --- a/model_scheduler_task_result_list.go +++ b/model_scheduler_task_result_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *SchedulerTaskResultList) GetResultsOk() ([]SchedulerTaskResult, bool) { // HasResults returns a boolean if a field has been set. func (o *SchedulerTaskResultList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *SchedulerTaskResultList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *SchedulerTaskResultList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type SchedulerTaskResultListWithoutEmbeddedStruct struct { // The total number of 'scheduler.TaskResult' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_scheduler_task_result_response.go b/model_scheduler_task_result_response.go index 0c3982714a..e84d77c8d9 100644 --- a/model_scheduler_task_result_response.go +++ b/model_scheduler_task_result_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_scheduler_task_result_status.go b/model_scheduler_task_result_status.go index 0ac2b37dfa..b1d5c99dcb 100644 --- a/model_scheduler_task_result_status.go +++ b/model_scheduler_task_result_status.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -84,6 +84,11 @@ func (o *SchedulerTaskResultStatus) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "scheduler.TaskResultStatus" of the ClassId field. +func (o *SchedulerTaskResultStatus) GetDefaultClassId() interface{} { + return "scheduler.TaskResultStatus" +} + // GetObjectType returns the ObjectType field value func (o *SchedulerTaskResultStatus) GetObjectType() string { if o == nil { @@ -108,6 +113,11 @@ func (o *SchedulerTaskResultStatus) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "scheduler.TaskResultStatus" of the ObjectType field. +func (o *SchedulerTaskResultStatus) GetDefaultObjectType() interface{} { + return "scheduler.TaskResultStatus" +} + // GetReason returns the Reason field value if set, zero value otherwise. func (o *SchedulerTaskResultStatus) GetReason() string { if o == nil || IsNil(o.Reason) { @@ -190,7 +200,13 @@ func (o SchedulerTaskResultStatus) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Reason) { toSerialize["Reason"] = o.Reason @@ -215,6 +231,13 @@ func (o *SchedulerTaskResultStatus) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -224,11 +247,23 @@ func (o *SchedulerTaskResultStatus) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type SchedulerTaskResultStatusWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_scheduler_task_schedule.go b/model_scheduler_task_schedule.go index 79baacf0a0..b10725daf1 100644 --- a/model_scheduler_task_schedule.go +++ b/model_scheduler_task_schedule.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -106,6 +106,11 @@ func (o *SchedulerTaskSchedule) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "scheduler.TaskSchedule" of the ClassId field. +func (o *SchedulerTaskSchedule) GetDefaultClassId() interface{} { + return "scheduler.TaskSchedule" +} + // GetObjectType returns the ObjectType field value func (o *SchedulerTaskSchedule) GetObjectType() string { if o == nil { @@ -130,6 +135,11 @@ func (o *SchedulerTaskSchedule) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "scheduler.TaskSchedule" of the ObjectType field. +func (o *SchedulerTaskSchedule) GetDefaultObjectType() interface{} { + return "scheduler.TaskSchedule" +} + // GetAction returns the Action field value if set, zero value otherwise. func (o *SchedulerTaskSchedule) GetAction() string { if o == nil || IsNil(o.Action) { @@ -533,7 +543,13 @@ func (o SchedulerTaskSchedule) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Action) { toSerialize["Action"] = o.Action @@ -585,6 +601,13 @@ func (o *SchedulerTaskSchedule) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -594,11 +617,23 @@ func (o *SchedulerTaskSchedule) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type SchedulerTaskScheduleWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_scheduler_task_schedule_list.go b/model_scheduler_task_schedule_list.go index 278b2ed11e..b84b966837 100644 --- a/model_scheduler_task_schedule_list.go +++ b/model_scheduler_task_schedule_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *SchedulerTaskScheduleList) GetResultsOk() ([]SchedulerTaskSchedule, boo // HasResults returns a boolean if a field has been set. func (o *SchedulerTaskScheduleList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *SchedulerTaskScheduleList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *SchedulerTaskScheduleList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type SchedulerTaskScheduleListWithoutEmbeddedStruct struct { // The total number of 'scheduler.TaskSchedule' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_scheduler_task_schedule_relationship.go b/model_scheduler_task_schedule_relationship.go index 0cf105c09c..5a90e84248 100644 --- a/model_scheduler_task_schedule_relationship.go +++ b/model_scheduler_task_schedule_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_scheduler_task_schedule_response.go b/model_scheduler_task_schedule_response.go index 36f708a77d..9d576c3fe8 100644 --- a/model_scheduler_task_schedule_response.go +++ b/model_scheduler_task_schedule_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_scheduler_task_schedule_status.go b/model_scheduler_task_schedule_status.go index 8c67b91366..ef7a632beb 100644 --- a/model_scheduler_task_schedule_status.go +++ b/model_scheduler_task_schedule_status.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -95,6 +95,11 @@ func (o *SchedulerTaskScheduleStatus) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "scheduler.TaskScheduleStatus" of the ClassId field. +func (o *SchedulerTaskScheduleStatus) GetDefaultClassId() interface{} { + return "scheduler.TaskScheduleStatus" +} + // GetObjectType returns the ObjectType field value func (o *SchedulerTaskScheduleStatus) GetObjectType() string { if o == nil { @@ -119,6 +124,11 @@ func (o *SchedulerTaskScheduleStatus) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "scheduler.TaskScheduleStatus" of the ObjectType field. +func (o *SchedulerTaskScheduleStatus) GetDefaultObjectType() interface{} { + return "scheduler.TaskScheduleStatus" +} + // GetCount returns the Count field value if set, zero value otherwise. func (o *SchedulerTaskScheduleStatus) GetCount() int64 { if o == nil || IsNil(o.Count) { @@ -361,7 +371,13 @@ func (o SchedulerTaskScheduleStatus) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Count) { toSerialize["Count"] = o.Count @@ -401,6 +417,13 @@ func (o *SchedulerTaskScheduleStatus) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -410,11 +433,23 @@ func (o *SchedulerTaskScheduleStatus) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type SchedulerTaskScheduleStatusWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_scheduler_weekly_cadence_params.go b/model_scheduler_weekly_cadence_params.go index af266ca596..9322756c6d 100644 --- a/model_scheduler_weekly_cadence_params.go +++ b/model_scheduler_weekly_cadence_params.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -81,6 +81,11 @@ func (o *SchedulerWeeklyCadenceParams) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "scheduler.WeeklyCadenceParams" of the ClassId field. +func (o *SchedulerWeeklyCadenceParams) GetDefaultClassId() interface{} { + return "scheduler.WeeklyCadenceParams" +} + // GetObjectType returns the ObjectType field value func (o *SchedulerWeeklyCadenceParams) GetObjectType() string { if o == nil { @@ -105,6 +110,11 @@ func (o *SchedulerWeeklyCadenceParams) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "scheduler.WeeklyCadenceParams" of the ObjectType field. +func (o *SchedulerWeeklyCadenceParams) GetDefaultObjectType() interface{} { + return "scheduler.WeeklyCadenceParams" +} + // GetDayOfWeek returns the DayOfWeek field value if set, zero value otherwise (both if not set or set to explicit null). func (o *SchedulerWeeklyCadenceParams) GetDayOfWeek() []string { if o == nil { @@ -126,7 +136,7 @@ func (o *SchedulerWeeklyCadenceParams) GetDayOfWeekOk() ([]string, bool) { // HasDayOfWeek returns a boolean if a field has been set. func (o *SchedulerWeeklyCadenceParams) HasDayOfWeek() bool { - if o != nil && IsNil(o.DayOfWeek) { + if o != nil && !IsNil(o.DayOfWeek) { return true } @@ -156,7 +166,13 @@ func (o SchedulerWeeklyCadenceParams) ToMap() (map[string]interface{}, error) { if errSchedulerBaseCadenceParams != nil { return map[string]interface{}{}, errSchedulerBaseCadenceParams } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.DayOfWeek != nil { toSerialize["DayOfWeek"] = o.DayOfWeek @@ -178,6 +194,13 @@ func (o *SchedulerWeeklyCadenceParams) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -187,11 +210,23 @@ func (o *SchedulerWeeklyCadenceParams) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type SchedulerWeeklyCadenceParamsWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_scheduler_yearly_cadence_params.go b/model_scheduler_yearly_cadence_params.go index 3b71ae94b8..e749a171ca 100644 --- a/model_scheduler_yearly_cadence_params.go +++ b/model_scheduler_yearly_cadence_params.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -83,6 +83,11 @@ func (o *SchedulerYearlyCadenceParams) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "scheduler.YearlyCadenceParams" of the ClassId field. +func (o *SchedulerYearlyCadenceParams) GetDefaultClassId() interface{} { + return "scheduler.YearlyCadenceParams" +} + // GetObjectType returns the ObjectType field value func (o *SchedulerYearlyCadenceParams) GetObjectType() string { if o == nil { @@ -107,6 +112,11 @@ func (o *SchedulerYearlyCadenceParams) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "scheduler.YearlyCadenceParams" of the ObjectType field. +func (o *SchedulerYearlyCadenceParams) GetDefaultObjectType() interface{} { + return "scheduler.YearlyCadenceParams" +} + // GetMonthOfYear returns the MonthOfYear field value if set, zero value otherwise (both if not set or set to explicit null). func (o *SchedulerYearlyCadenceParams) GetMonthOfYear() []string { if o == nil { @@ -128,7 +138,7 @@ func (o *SchedulerYearlyCadenceParams) GetMonthOfYearOk() ([]string, bool) { // HasMonthOfYear returns a boolean if a field has been set. func (o *SchedulerYearlyCadenceParams) HasMonthOfYear() bool { - if o != nil && IsNil(o.MonthOfYear) { + if o != nil && !IsNil(o.MonthOfYear) { return true } @@ -158,7 +168,13 @@ func (o SchedulerYearlyCadenceParams) ToMap() (map[string]interface{}, error) { if errSchedulerBaseMonthlyCadenceParams != nil { return map[string]interface{}{}, errSchedulerBaseMonthlyCadenceParams } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.MonthOfYear != nil { toSerialize["MonthOfYear"] = o.MonthOfYear @@ -180,6 +196,13 @@ func (o *SchedulerYearlyCadenceParams) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -189,11 +212,23 @@ func (o *SchedulerYearlyCadenceParams) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type SchedulerYearlyCadenceParamsWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_sdaaci_connection.go b/model_sdaaci_connection.go index a7de25af2b..a81f34e0d5 100644 --- a/model_sdaaci_connection.go +++ b/model_sdaaci_connection.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -39,7 +39,7 @@ type SdaaciConnection struct { // Application EPG Name of this connection. Epg *string `json:"Epg,omitempty"` // EPG Subnet Ipv4Cidr which is configured on APIC. - EpgSubnet *string `json:"EpgSubnet,omitempty"` + EpgSubnet *string `json:"EpgSubnet,omitempty" validate:"regexp=^$|^([1-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5]).([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5]).([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5]).([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\/([0-9]|[1-2][0-9]|3[0-2])$"` // Device within the selected domain used to configure Firewall. FirewallDevice *string `json:"FirewallDevice,omitempty"` // Domain used to configure Firewall. @@ -116,6 +116,11 @@ func (o *SdaaciConnection) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "sdaaci.Connection" of the ClassId field. +func (o *SdaaciConnection) GetDefaultClassId() interface{} { + return "sdaaci.Connection" +} + // GetObjectType returns the ObjectType field value func (o *SdaaciConnection) GetObjectType() string { if o == nil { @@ -140,6 +145,11 @@ func (o *SdaaciConnection) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "sdaaci.Connection" of the ObjectType field. +func (o *SdaaciConnection) GetDefaultObjectType() interface{} { + return "sdaaci.Connection" +} + // GetAciL3Out returns the AciL3Out field value if set, zero value otherwise. func (o *SdaaciConnection) GetAciL3Out() string { if o == nil || IsNil(o.AciL3Out) { @@ -778,7 +788,13 @@ func (o SdaaciConnection) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.AciL3Out) { toSerialize["AciL3Out"] = o.AciL3Out @@ -851,6 +867,13 @@ func (o *SdaaciConnection) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -860,11 +883,23 @@ func (o *SdaaciConnection) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type SdaaciConnectionWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` @@ -881,7 +916,7 @@ func (o *SdaaciConnection) UnmarshalJSON(data []byte) (err error) { // Application EPG Name of this connection. Epg *string `json:"Epg,omitempty"` // EPG Subnet Ipv4Cidr which is configured on APIC. - EpgSubnet *string `json:"EpgSubnet,omitempty"` + EpgSubnet *string `json:"EpgSubnet,omitempty" validate:"regexp=^$|^([1-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5]).([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5]).([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5]).([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\/([0-9]|[1-2][0-9]|3[0-2])$"` // Device within the selected domain used to configure Firewall. FirewallDevice *string `json:"FirewallDevice,omitempty"` // Domain used to configure Firewall. diff --git a/model_sdaaci_connection_detail.go b/model_sdaaci_connection_detail.go index 3486f92cfc..dc3adc4516 100644 --- a/model_sdaaci_connection_detail.go +++ b/model_sdaaci_connection_detail.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -37,7 +37,7 @@ type SdaaciConnectionDetail struct { // Interface id configured on Peer A. PeerAinterface *string `json:"PeerAinterface,omitempty"` // The IP Address of the device used as the local peer. - PeerAipAddress *string `json:"PeerAipAddress,omitempty"` + PeerAipAddress *string `json:"PeerAipAddress,omitempty" validate:"regexp=^$|^([1-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5]).([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5]).([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5]).([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\/([0-9]|[1-2][0-9]|3[0-2])$"` // Type of device used as Peer A for this peer connection. PeerAtype *string `json:"PeerAtype,omitempty"` // Interface id configured on Peer B. @@ -111,6 +111,11 @@ func (o *SdaaciConnectionDetail) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "sdaaci.ConnectionDetail" of the ClassId field. +func (o *SdaaciConnectionDetail) GetDefaultClassId() interface{} { + return "sdaaci.ConnectionDetail" +} + // GetObjectType returns the ObjectType field value func (o *SdaaciConnectionDetail) GetObjectType() string { if o == nil { @@ -135,6 +140,11 @@ func (o *SdaaciConnectionDetail) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "sdaaci.ConnectionDetail" of the ObjectType field. +func (o *SdaaciConnectionDetail) GetDefaultObjectType() interface{} { + return "sdaaci.ConnectionDetail" +} + // GetDescription returns the Description field value if set, zero value otherwise. func (o *SdaaciConnectionDetail) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -612,7 +622,13 @@ func (o SdaaciConnectionDetail) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Description) { toSerialize["Description"] = o.Description @@ -673,6 +689,13 @@ func (o *SdaaciConnectionDetail) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -682,11 +705,23 @@ func (o *SdaaciConnectionDetail) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type SdaaciConnectionDetailWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` @@ -701,7 +736,7 @@ func (o *SdaaciConnectionDetail) UnmarshalJSON(data []byte) (err error) { // Interface id configured on Peer A. PeerAinterface *string `json:"PeerAinterface,omitempty"` // The IP Address of the device used as the local peer. - PeerAipAddress *string `json:"PeerAipAddress,omitempty"` + PeerAipAddress *string `json:"PeerAipAddress,omitempty" validate:"regexp=^$|^([1-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5]).([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5]).([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5]).([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\/([0-9]|[1-2][0-9]|3[0-2])$"` // Type of device used as Peer A for this peer connection. PeerAtype *string `json:"PeerAtype,omitempty"` // Interface id configured on Peer B. diff --git a/model_sdaaci_connection_detail_list.go b/model_sdaaci_connection_detail_list.go index 451142b397..f473dd91eb 100644 --- a/model_sdaaci_connection_detail_list.go +++ b/model_sdaaci_connection_detail_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *SdaaciConnectionDetailList) GetResultsOk() ([]SdaaciConnectionDetail, b // HasResults returns a boolean if a field has been set. func (o *SdaaciConnectionDetailList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *SdaaciConnectionDetailList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *SdaaciConnectionDetailList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type SdaaciConnectionDetailListWithoutEmbeddedStruct struct { // The total number of 'sdaaci.ConnectionDetail' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_sdaaci_connection_detail_response.go b/model_sdaaci_connection_detail_response.go index 7ce826a01b..d4d9775bbd 100644 --- a/model_sdaaci_connection_detail_response.go +++ b/model_sdaaci_connection_detail_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_sdaaci_connection_list.go b/model_sdaaci_connection_list.go index 83f1da32e1..81ba060a77 100644 --- a/model_sdaaci_connection_list.go +++ b/model_sdaaci_connection_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *SdaaciConnectionList) GetResultsOk() ([]SdaaciConnection, bool) { // HasResults returns a boolean if a field has been set. func (o *SdaaciConnectionList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *SdaaciConnectionList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *SdaaciConnectionList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type SdaaciConnectionListWithoutEmbeddedStruct struct { // The total number of 'sdaaci.Connection' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_sdaaci_connection_relationship.go b/model_sdaaci_connection_relationship.go index b53b3bd7b7..f8852e56ae 100644 --- a/model_sdaaci_connection_relationship.go +++ b/model_sdaaci_connection_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_sdaaci_connection_response.go b/model_sdaaci_connection_response.go index bc76226f4a..50693b9c1b 100644 --- a/model_sdaaci_connection_response.go +++ b/model_sdaaci_connection_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_sdcard_diagnostics.go b/model_sdcard_diagnostics.go index 24047bb043..6472b5350c 100644 --- a/model_sdcard_diagnostics.go +++ b/model_sdcard_diagnostics.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -83,6 +83,10 @@ func (o *SdcardDiagnostics) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -92,11 +96,23 @@ func (o *SdcardDiagnostics) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type SdcardDiagnosticsWithoutEmbeddedStruct struct { } diff --git a/model_sdcard_drivers.go b/model_sdcard_drivers.go index 847e3aad9a..87afeb8568 100644 --- a/model_sdcard_drivers.go +++ b/model_sdcard_drivers.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -83,6 +83,10 @@ func (o *SdcardDrivers) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -92,11 +96,23 @@ func (o *SdcardDrivers) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type SdcardDriversWithoutEmbeddedStruct struct { } diff --git a/model_sdcard_host_upgrade_utility.go b/model_sdcard_host_upgrade_utility.go index 5c8c503f8d..18238c5693 100644 --- a/model_sdcard_host_upgrade_utility.go +++ b/model_sdcard_host_upgrade_utility.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -83,6 +83,10 @@ func (o *SdcardHostUpgradeUtility) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -92,11 +96,23 @@ func (o *SdcardHostUpgradeUtility) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type SdcardHostUpgradeUtilityWithoutEmbeddedStruct struct { } diff --git a/model_sdcard_operating_system.go b/model_sdcard_operating_system.go index 240d3590b8..6e416ea7f7 100644 --- a/model_sdcard_operating_system.go +++ b/model_sdcard_operating_system.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -86,6 +86,11 @@ func (o *SdcardOperatingSystem) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "sdcard.OperatingSystem" of the ClassId field. +func (o *SdcardOperatingSystem) GetDefaultClassId() interface{} { + return "sdcard.OperatingSystem" +} + // GetObjectType returns the ObjectType field value func (o *SdcardOperatingSystem) GetObjectType() string { if o == nil { @@ -110,6 +115,11 @@ func (o *SdcardOperatingSystem) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "sdcard.OperatingSystem" of the ObjectType field. +func (o *SdcardOperatingSystem) GetDefaultObjectType() interface{} { + return "sdcard.OperatingSystem" +} + // GetName returns the Name field value if set, zero value otherwise. func (o *SdcardOperatingSystem) GetName() string { if o == nil || IsNil(o.Name) { @@ -160,7 +170,13 @@ func (o SdcardOperatingSystem) ToMap() (map[string]interface{}, error) { if errSdcardVirtualDrive != nil { return map[string]interface{}{}, errSdcardVirtualDrive } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Name) { toSerialize["Name"] = o.Name @@ -182,6 +198,13 @@ func (o *SdcardOperatingSystem) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -191,11 +214,23 @@ func (o *SdcardOperatingSystem) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type SdcardOperatingSystemWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_sdcard_partition.go b/model_sdcard_partition.go index b724f62cec..a5167d6633 100644 --- a/model_sdcard_partition.go +++ b/model_sdcard_partition.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -87,6 +87,11 @@ func (o *SdcardPartition) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "sdcard.Partition" of the ClassId field. +func (o *SdcardPartition) GetDefaultClassId() interface{} { + return "sdcard.Partition" +} + // GetObjectType returns the ObjectType field value func (o *SdcardPartition) GetObjectType() string { if o == nil { @@ -111,6 +116,11 @@ func (o *SdcardPartition) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "sdcard.Partition" of the ObjectType field. +func (o *SdcardPartition) GetDefaultObjectType() interface{} { + return "sdcard.Partition" +} + // GetType returns the Type field value if set, zero value otherwise. func (o *SdcardPartition) GetType() string { if o == nil || IsNil(o.Type) { @@ -164,7 +174,7 @@ func (o *SdcardPartition) GetVirtualDrivesOk() ([]SdcardVirtualDrive, bool) { // HasVirtualDrives returns a boolean if a field has been set. func (o *SdcardPartition) HasVirtualDrives() bool { - if o != nil && IsNil(o.VirtualDrives) { + if o != nil && !IsNil(o.VirtualDrives) { return true } @@ -194,7 +204,13 @@ func (o SdcardPartition) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Type) { toSerialize["Type"] = o.Type @@ -219,6 +235,13 @@ func (o *SdcardPartition) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -228,11 +251,23 @@ func (o *SdcardPartition) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type SdcardPartitionWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_sdcard_policy.go b/model_sdcard_policy.go index 04fa290e16..6c896f9189 100644 --- a/model_sdcard_policy.go +++ b/model_sdcard_policy.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -84,6 +84,11 @@ func (o *SdcardPolicy) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "sdcard.Policy" of the ClassId field. +func (o *SdcardPolicy) GetDefaultClassId() interface{} { + return "sdcard.Policy" +} + // GetObjectType returns the ObjectType field value func (o *SdcardPolicy) GetObjectType() string { if o == nil { @@ -108,6 +113,11 @@ func (o *SdcardPolicy) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "sdcard.Policy" of the ObjectType field. +func (o *SdcardPolicy) GetDefaultObjectType() interface{} { + return "sdcard.Policy" +} + // GetPartitions returns the Partitions field value if set, zero value otherwise (both if not set or set to explicit null). func (o *SdcardPolicy) GetPartitions() []SdcardPartition { if o == nil { @@ -129,7 +139,7 @@ func (o *SdcardPolicy) GetPartitionsOk() ([]SdcardPartition, bool) { // HasPartitions returns a boolean if a field has been set. func (o *SdcardPolicy) HasPartitions() bool { - if o != nil && IsNil(o.Partitions) { + if o != nil && !IsNil(o.Partitions) { return true } @@ -205,7 +215,7 @@ func (o *SdcardPolicy) GetProfilesOk() ([]PolicyAbstractConfigProfileRelationshi // HasProfiles returns a boolean if a field has been set. func (o *SdcardPolicy) HasProfiles() bool { - if o != nil && IsNil(o.Profiles) { + if o != nil && !IsNil(o.Profiles) { return true } @@ -235,7 +245,13 @@ func (o SdcardPolicy) ToMap() (map[string]interface{}, error) { if errPolicyAbstractPolicy != nil { return map[string]interface{}{}, errPolicyAbstractPolicy } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.Partitions != nil { toSerialize["Partitions"] = o.Partitions @@ -263,6 +279,13 @@ func (o *SdcardPolicy) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -272,11 +295,23 @@ func (o *SdcardPolicy) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type SdcardPolicyWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_sdcard_policy_inventory.go b/model_sdcard_policy_inventory.go index 33528d66b2..e6435dbfd9 100644 --- a/model_sdcard_policy_inventory.go +++ b/model_sdcard_policy_inventory.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -82,6 +82,11 @@ func (o *SdcardPolicyInventory) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "sdcard.PolicyInventory" of the ClassId field. +func (o *SdcardPolicyInventory) GetDefaultClassId() interface{} { + return "sdcard.PolicyInventory" +} + // GetObjectType returns the ObjectType field value func (o *SdcardPolicyInventory) GetObjectType() string { if o == nil { @@ -106,6 +111,11 @@ func (o *SdcardPolicyInventory) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "sdcard.PolicyInventory" of the ObjectType field. +func (o *SdcardPolicyInventory) GetDefaultObjectType() interface{} { + return "sdcard.PolicyInventory" +} + // GetPartitions returns the Partitions field value if set, zero value otherwise (both if not set or set to explicit null). func (o *SdcardPolicyInventory) GetPartitions() []SdcardPartition { if o == nil { @@ -127,7 +137,7 @@ func (o *SdcardPolicyInventory) GetPartitionsOk() ([]SdcardPartition, bool) { // HasPartitions returns a boolean if a field has been set. func (o *SdcardPolicyInventory) HasPartitions() bool { - if o != nil && IsNil(o.Partitions) { + if o != nil && !IsNil(o.Partitions) { return true } @@ -200,7 +210,13 @@ func (o SdcardPolicyInventory) ToMap() (map[string]interface{}, error) { if errPolicyAbstractPolicyInventory != nil { return map[string]interface{}{}, errPolicyAbstractPolicyInventory } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.Partitions != nil { toSerialize["Partitions"] = o.Partitions @@ -225,6 +241,13 @@ func (o *SdcardPolicyInventory) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -234,11 +257,23 @@ func (o *SdcardPolicyInventory) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type SdcardPolicyInventoryWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_sdcard_policy_inventory_list.go b/model_sdcard_policy_inventory_list.go index 954186e59f..b9a049df70 100644 --- a/model_sdcard_policy_inventory_list.go +++ b/model_sdcard_policy_inventory_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *SdcardPolicyInventoryList) GetResultsOk() ([]SdcardPolicyInventory, boo // HasResults returns a boolean if a field has been set. func (o *SdcardPolicyInventoryList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *SdcardPolicyInventoryList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *SdcardPolicyInventoryList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type SdcardPolicyInventoryListWithoutEmbeddedStruct struct { // The total number of 'sdcard.PolicyInventory' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_sdcard_policy_inventory_response.go b/model_sdcard_policy_inventory_response.go index 3ea58fe595..5e632892d6 100644 --- a/model_sdcard_policy_inventory_response.go +++ b/model_sdcard_policy_inventory_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_sdcard_policy_list.go b/model_sdcard_policy_list.go index 14cf844653..99b2eab8a3 100644 --- a/model_sdcard_policy_list.go +++ b/model_sdcard_policy_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *SdcardPolicyList) GetResultsOk() ([]SdcardPolicy, bool) { // HasResults returns a boolean if a field has been set. func (o *SdcardPolicyList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *SdcardPolicyList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *SdcardPolicyList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type SdcardPolicyListWithoutEmbeddedStruct struct { // The total number of 'sdcard.Policy' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_sdcard_policy_response.go b/model_sdcard_policy_response.go index 107ae17eae..31642855e9 100644 --- a/model_sdcard_policy_response.go +++ b/model_sdcard_policy_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_sdcard_server_configuration_utility.go b/model_sdcard_server_configuration_utility.go index e3f8ec72a7..4b3245c6cb 100644 --- a/model_sdcard_server_configuration_utility.go +++ b/model_sdcard_server_configuration_utility.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -83,6 +83,10 @@ func (o *SdcardServerConfigurationUtility) UnmarshalJSON(data []byte) (err error "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -92,11 +96,23 @@ func (o *SdcardServerConfigurationUtility) UnmarshalJSON(data []byte) (err error } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type SdcardServerConfigurationUtilityWithoutEmbeddedStruct struct { } diff --git a/model_sdcard_user_partition.go b/model_sdcard_user_partition.go index d94ff49f83..4232b7c743 100644 --- a/model_sdcard_user_partition.go +++ b/model_sdcard_user_partition.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -86,6 +86,11 @@ func (o *SdcardUserPartition) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "sdcard.UserPartition" of the ClassId field. +func (o *SdcardUserPartition) GetDefaultClassId() interface{} { + return "sdcard.UserPartition" +} + // GetObjectType returns the ObjectType field value func (o *SdcardUserPartition) GetObjectType() string { if o == nil { @@ -110,6 +115,11 @@ func (o *SdcardUserPartition) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "sdcard.UserPartition" of the ObjectType field. +func (o *SdcardUserPartition) GetDefaultObjectType() interface{} { + return "sdcard.UserPartition" +} + // GetName returns the Name field value if set, zero value otherwise. func (o *SdcardUserPartition) GetName() string { if o == nil || IsNil(o.Name) { @@ -160,7 +170,13 @@ func (o SdcardUserPartition) ToMap() (map[string]interface{}, error) { if errSdcardVirtualDrive != nil { return map[string]interface{}{}, errSdcardVirtualDrive } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Name) { toSerialize["Name"] = o.Name @@ -182,6 +198,13 @@ func (o *SdcardUserPartition) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -191,11 +214,23 @@ func (o *SdcardUserPartition) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type SdcardUserPartitionWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_sdcard_virtual_drive.go b/model_sdcard_virtual_drive.go index 3c38fc32a4..dc2657e796 100644 --- a/model_sdcard_virtual_drive.go +++ b/model_sdcard_virtual_drive.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -174,6 +174,10 @@ func (o *SdcardVirtualDrive) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -183,11 +187,23 @@ func (o *SdcardVirtualDrive) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type SdcardVirtualDriveWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. The enum values provides the list of concrete types that can be instantiated from this abstract type. ClassId string `json:"ClassId"` diff --git a/model_search_search_item.go b/model_search_search_item.go index 3e48214c31..8bfe1cafbd 100644 --- a/model_search_search_item.go +++ b/model_search_search_item.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -83,6 +83,10 @@ func (o *SearchSearchItem) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -92,11 +96,23 @@ func (o *SearchSearchItem) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type SearchSearchItemWithoutEmbeddedStruct struct { } diff --git a/model_search_search_item_list.go b/model_search_search_item_list.go index fe084cfd2b..fda5880a12 100644 --- a/model_search_search_item_list.go +++ b/model_search_search_item_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *SearchSearchItemList) GetResultsOk() ([]SearchSearchItem, bool) { // HasResults returns a boolean if a field has been set. func (o *SearchSearchItemList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *SearchSearchItemList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *SearchSearchItemList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type SearchSearchItemListWithoutEmbeddedStruct struct { // The total number of 'search.SearchItem' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_search_search_item_response.go b/model_search_search_item_response.go index 1258f3d820..cdc0a39043 100644 --- a/model_search_search_item_response.go +++ b/model_search_search_item_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_search_suggest_item.go b/model_search_suggest_item.go index dea9fcefec..ecc4c4b290 100644 --- a/model_search_suggest_item.go +++ b/model_search_suggest_item.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_search_suggest_item_list.go b/model_search_suggest_item_list.go index 18b40a3a4e..1ea175296a 100644 --- a/model_search_suggest_item_list.go +++ b/model_search_suggest_item_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -155,6 +155,10 @@ func (o *SearchSuggestItemList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -164,11 +168,23 @@ func (o *SearchSuggestItemList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type SearchSuggestItemListWithoutEmbeddedStruct struct { // The total number of 'search.SuggestItem' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_search_suggest_item_response.go b/model_search_suggest_item_response.go index a5c16d2c0c..f9df02bea1 100644 --- a/model_search_suggest_item_response.go +++ b/model_search_suggest_item_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_search_tag_item.go b/model_search_tag_item.go index e0d3edc1f8..3a5c4e64c0 100644 --- a/model_search_tag_item.go +++ b/model_search_tag_item.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -85,6 +85,11 @@ func (o *SearchTagItem) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "search.TagItem" of the ClassId field. +func (o *SearchTagItem) GetDefaultClassId() interface{} { + return "search.TagItem" +} + // GetObjectType returns the ObjectType field value func (o *SearchTagItem) GetObjectType() string { if o == nil { @@ -109,6 +114,11 @@ func (o *SearchTagItem) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "search.TagItem" of the ObjectType field. +func (o *SearchTagItem) GetDefaultObjectType() interface{} { + return "search.TagItem" +} + // GetCount returns the Count field value if set, zero value otherwise. func (o *SearchTagItem) GetCount() int64 { if o == nil || IsNil(o.Count) { @@ -194,7 +204,7 @@ func (o *SearchTagItem) GetValuesOk() ([]string, bool) { // HasValues returns a boolean if a field has been set. func (o *SearchTagItem) HasValues() bool { - if o != nil && IsNil(o.Values) { + if o != nil && !IsNil(o.Values) { return true } @@ -224,7 +234,13 @@ func (o SearchTagItem) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Count) { toSerialize["Count"] = o.Count @@ -252,6 +268,13 @@ func (o *SearchTagItem) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -261,11 +284,23 @@ func (o *SearchTagItem) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type SearchTagItemWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_search_tag_item_list.go b/model_search_tag_item_list.go index 32dbe60f4f..a3e2695765 100644 --- a/model_search_tag_item_list.go +++ b/model_search_tag_item_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *SearchTagItemList) GetResultsOk() ([]SearchTagItem, bool) { // HasResults returns a boolean if a field has been set. func (o *SearchTagItemList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *SearchTagItemList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *SearchTagItemList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type SearchTagItemListWithoutEmbeddedStruct struct { // The total number of 'search.TagItem' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_search_tag_item_response.go b/model_search_tag_item_response.go index 1a9730ef47..aad979d616 100644 --- a/model_search_tag_item_response.go +++ b/model_search_tag_item_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_security_unit.go b/model_security_unit.go index 36e6772f22..dcf89b34b9 100644 --- a/model_security_unit.go +++ b/model_security_unit.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -101,6 +101,11 @@ func (o *SecurityUnit) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "security.Unit" of the ClassId field. +func (o *SecurityUnit) GetDefaultClassId() interface{} { + return "security.Unit" +} + // GetObjectType returns the ObjectType field value func (o *SecurityUnit) GetObjectType() string { if o == nil { @@ -125,6 +130,11 @@ func (o *SecurityUnit) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "security.Unit" of the ObjectType field. +func (o *SecurityUnit) GetDefaultObjectType() interface{} { + return "security.Unit" +} + // GetOperState returns the OperState field value if set, zero value otherwise. func (o *SecurityUnit) GetOperState() string { if o == nil || IsNil(o.OperState) { @@ -560,7 +570,13 @@ func (o SecurityUnit) ToMap() (map[string]interface{}, error) { if errEquipmentBase != nil { return map[string]interface{}{}, errEquipmentBase } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.OperState) { toSerialize["OperState"] = o.OperState @@ -615,6 +631,13 @@ func (o *SecurityUnit) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -624,11 +647,23 @@ func (o *SecurityUnit) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type SecurityUnitWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_security_unit_list.go b/model_security_unit_list.go index 82c4bb4e67..c907619928 100644 --- a/model_security_unit_list.go +++ b/model_security_unit_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *SecurityUnitList) GetResultsOk() ([]SecurityUnit, bool) { // HasResults returns a boolean if a field has been set. func (o *SecurityUnitList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *SecurityUnitList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *SecurityUnitList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type SecurityUnitListWithoutEmbeddedStruct struct { // The total number of 'security.Unit' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_security_unit_relationship.go b/model_security_unit_relationship.go index 268942e856..ba94bfdc36 100644 --- a/model_security_unit_relationship.go +++ b/model_security_unit_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_security_unit_response.go b/model_security_unit_response.go index b80e09be6f..80a590df84 100644 --- a/model_security_unit_response.go +++ b/model_security_unit_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_server_base_profile.go b/model_server_base_profile.go index 2b4970dedf..925b30ea82 100644 --- a/model_server_base_profile.go +++ b/model_server_base_profile.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -317,6 +317,10 @@ func (o *ServerBaseProfile) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -326,11 +330,23 @@ func (o *ServerBaseProfile) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type ServerBaseProfileWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. The enum values provides the list of concrete types that can be instantiated from this abstract type. ClassId string `json:"ClassId"` diff --git a/model_server_base_profile_relationship.go b/model_server_base_profile_relationship.go index 70994ca106..b6ac1d8247 100644 --- a/model_server_base_profile_relationship.go +++ b/model_server_base_profile_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_server_config_change_detail.go b/model_server_config_change_detail.go index b7b8b378d3..d512f4e518 100644 --- a/model_server_config_change_detail.go +++ b/model_server_config_change_detail.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -85,6 +85,11 @@ func (o *ServerConfigChangeDetail) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "server.ConfigChangeDetail" of the ClassId field. +func (o *ServerConfigChangeDetail) GetDefaultClassId() interface{} { + return "server.ConfigChangeDetail" +} + // GetObjectType returns the ObjectType field value func (o *ServerConfigChangeDetail) GetObjectType() string { if o == nil { @@ -109,6 +114,11 @@ func (o *ServerConfigChangeDetail) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "server.ConfigChangeDetail" of the ObjectType field. +func (o *ServerConfigChangeDetail) GetDefaultObjectType() interface{} { + return "server.ConfigChangeDetail" +} + // GetProfile returns the Profile field value if set, zero value otherwise (both if not set or set to explicit null). func (o *ServerConfigChangeDetail) GetProfile() ServerProfileRelationship { if o == nil || IsNil(o.Profile.Get()) { @@ -170,7 +180,13 @@ func (o ServerConfigChangeDetail) ToMap() (map[string]interface{}, error) { if errPolicyAbstractConfigChangeDetail != nil { return map[string]interface{}{}, errPolicyAbstractConfigChangeDetail } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.Profile.IsSet() { toSerialize["Profile"] = o.Profile.Get() @@ -192,6 +208,13 @@ func (o *ServerConfigChangeDetail) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -201,11 +224,23 @@ func (o *ServerConfigChangeDetail) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type ServerConfigChangeDetailWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_server_config_change_detail_list.go b/model_server_config_change_detail_list.go index 15d8f4b685..53613c3f1b 100644 --- a/model_server_config_change_detail_list.go +++ b/model_server_config_change_detail_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *ServerConfigChangeDetailList) GetResultsOk() ([]ServerConfigChangeDetai // HasResults returns a boolean if a field has been set. func (o *ServerConfigChangeDetailList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *ServerConfigChangeDetailList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *ServerConfigChangeDetailList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type ServerConfigChangeDetailListWithoutEmbeddedStruct struct { // The total number of 'server.ConfigChangeDetail' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_server_config_change_detail_relationship.go b/model_server_config_change_detail_relationship.go index fac1de7616..2178e79cd7 100644 --- a/model_server_config_change_detail_relationship.go +++ b/model_server_config_change_detail_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_server_config_change_detail_response.go b/model_server_config_change_detail_response.go index 184abf8152..5bf96136f9 100644 --- a/model_server_config_change_detail_response.go +++ b/model_server_config_change_detail_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_server_config_import.go b/model_server_config_import.go index 485bd22b40..6c1faef582 100644 --- a/model_server_config_import.go +++ b/model_server_config_import.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -31,10 +31,10 @@ type ServerConfigImport struct { // Description of the imported profile. Description *string `json:"Description,omitempty"` // Policy prefix for the policies of the imported server profile. - PolicyPrefix *string `json:"PolicyPrefix,omitempty"` + PolicyPrefix *string `json:"PolicyPrefix,omitempty" validate:"regexp=^[a-zA-Z0-9_.:-]{1,32}$"` PolicyTypes []string `json:"PolicyTypes,omitempty"` // Profile name for the imported server profile. - ProfileName *string `json:"ProfileName,omitempty"` + ProfileName *string `json:"ProfileName,omitempty" validate:"regexp=^[a-zA-Z0-9_.-]{1,64}$"` Organization NullableOrganizationOrganizationRelationship `json:"Organization,omitempty"` Server NullableComputeRackUnitRelationship `json:"Server,omitempty"` ServerProfile NullableServerProfileRelationship `json:"ServerProfile,omitempty"` @@ -90,6 +90,11 @@ func (o *ServerConfigImport) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "server.ConfigImport" of the ClassId field. +func (o *ServerConfigImport) GetDefaultClassId() interface{} { + return "server.ConfigImport" +} + // GetObjectType returns the ObjectType field value func (o *ServerConfigImport) GetObjectType() string { if o == nil { @@ -114,6 +119,11 @@ func (o *ServerConfigImport) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "server.ConfigImport" of the ObjectType field. +func (o *ServerConfigImport) GetDefaultObjectType() interface{} { + return "server.ConfigImport" +} + // GetDescription returns the Description field value if set, zero value otherwise. func (o *ServerConfigImport) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -199,7 +209,7 @@ func (o *ServerConfigImport) GetPolicyTypesOk() ([]string, bool) { // HasPolicyTypes returns a boolean if a field has been set. func (o *ServerConfigImport) HasPolicyTypes() bool { - if o != nil && IsNil(o.PolicyTypes) { + if o != nil && !IsNil(o.PolicyTypes) { return true } @@ -390,7 +400,13 @@ func (o ServerConfigImport) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Description) { toSerialize["Description"] = o.Description @@ -430,6 +446,13 @@ func (o *ServerConfigImport) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -439,11 +462,23 @@ func (o *ServerConfigImport) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type ServerConfigImportWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` @@ -452,10 +487,10 @@ func (o *ServerConfigImport) UnmarshalJSON(data []byte) (err error) { // Description of the imported profile. Description *string `json:"Description,omitempty"` // Policy prefix for the policies of the imported server profile. - PolicyPrefix *string `json:"PolicyPrefix,omitempty"` + PolicyPrefix *string `json:"PolicyPrefix,omitempty" validate:"regexp=^[a-zA-Z0-9_.:-]{1,32}$"` PolicyTypes []string `json:"PolicyTypes,omitempty"` // Profile name for the imported server profile. - ProfileName *string `json:"ProfileName,omitempty"` + ProfileName *string `json:"ProfileName,omitempty" validate:"regexp=^[a-zA-Z0-9_.-]{1,64}$"` Organization NullableOrganizationOrganizationRelationship `json:"Organization,omitempty"` Server NullableComputeRackUnitRelationship `json:"Server,omitempty"` ServerProfile NullableServerProfileRelationship `json:"ServerProfile,omitempty"` diff --git a/model_server_config_import_list.go b/model_server_config_import_list.go index 7cbe39135a..edc65d7a4f 100644 --- a/model_server_config_import_list.go +++ b/model_server_config_import_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *ServerConfigImportList) GetResultsOk() ([]ServerConfigImport, bool) { // HasResults returns a boolean if a field has been set. func (o *ServerConfigImportList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *ServerConfigImportList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *ServerConfigImportList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type ServerConfigImportListWithoutEmbeddedStruct struct { // The total number of 'server.ConfigImport' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_server_config_import_response.go b/model_server_config_import_response.go index 46678dec90..3bbbb330c7 100644 --- a/model_server_config_import_response.go +++ b/model_server_config_import_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_server_config_result.go b/model_server_config_result.go index 6d957c29c2..166870a63f 100644 --- a/model_server_config_result.go +++ b/model_server_config_result.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -83,6 +83,11 @@ func (o *ServerConfigResult) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "server.ConfigResult" of the ClassId field. +func (o *ServerConfigResult) GetDefaultClassId() interface{} { + return "server.ConfigResult" +} + // GetObjectType returns the ObjectType field value func (o *ServerConfigResult) GetObjectType() string { if o == nil { @@ -107,6 +112,11 @@ func (o *ServerConfigResult) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "server.ConfigResult" of the ObjectType field. +func (o *ServerConfigResult) GetDefaultObjectType() interface{} { + return "server.ConfigResult" +} + // GetProfile returns the Profile field value if set, zero value otherwise (both if not set or set to explicit null). func (o *ServerConfigResult) GetProfile() ServerBaseProfileRelationship { if o == nil || IsNil(o.Profile.Get()) { @@ -171,7 +181,7 @@ func (o *ServerConfigResult) GetResultEntriesOk() ([]ServerConfigResultEntryRela // HasResultEntries returns a boolean if a field has been set. func (o *ServerConfigResult) HasResultEntries() bool { - if o != nil && IsNil(o.ResultEntries) { + if o != nil && !IsNil(o.ResultEntries) { return true } @@ -201,7 +211,13 @@ func (o ServerConfigResult) ToMap() (map[string]interface{}, error) { if errPolicyAbstractConfigResult != nil { return map[string]interface{}{}, errPolicyAbstractConfigResult } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.Profile.IsSet() { toSerialize["Profile"] = o.Profile.Get() @@ -226,6 +242,13 @@ func (o *ServerConfigResult) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -235,11 +258,23 @@ func (o *ServerConfigResult) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type ServerConfigResultWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_server_config_result_entry.go b/model_server_config_result_entry.go index 017703b685..9bff999764 100644 --- a/model_server_config_result_entry.go +++ b/model_server_config_result_entry.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -81,6 +81,11 @@ func (o *ServerConfigResultEntry) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "server.ConfigResultEntry" of the ClassId field. +func (o *ServerConfigResultEntry) GetDefaultClassId() interface{} { + return "server.ConfigResultEntry" +} + // GetObjectType returns the ObjectType field value func (o *ServerConfigResultEntry) GetObjectType() string { if o == nil { @@ -105,6 +110,11 @@ func (o *ServerConfigResultEntry) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "server.ConfigResultEntry" of the ObjectType field. +func (o *ServerConfigResultEntry) GetDefaultObjectType() interface{} { + return "server.ConfigResultEntry" +} + // GetConfigResult returns the ConfigResult field value if set, zero value otherwise (both if not set or set to explicit null). func (o *ServerConfigResultEntry) GetConfigResult() ServerConfigResultRelationship { if o == nil || IsNil(o.ConfigResult.Get()) { @@ -166,7 +176,13 @@ func (o ServerConfigResultEntry) ToMap() (map[string]interface{}, error) { if errPolicyAbstractConfigResultEntry != nil { return map[string]interface{}{}, errPolicyAbstractConfigResultEntry } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.ConfigResult.IsSet() { toSerialize["ConfigResult"] = o.ConfigResult.Get() @@ -188,6 +204,13 @@ func (o *ServerConfigResultEntry) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -197,11 +220,23 @@ func (o *ServerConfigResultEntry) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type ServerConfigResultEntryWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_server_config_result_entry_list.go b/model_server_config_result_entry_list.go index 189c4204f3..47c56e7ae5 100644 --- a/model_server_config_result_entry_list.go +++ b/model_server_config_result_entry_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *ServerConfigResultEntryList) GetResultsOk() ([]ServerConfigResultEntry, // HasResults returns a boolean if a field has been set. func (o *ServerConfigResultEntryList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *ServerConfigResultEntryList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *ServerConfigResultEntryList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type ServerConfigResultEntryListWithoutEmbeddedStruct struct { // The total number of 'server.ConfigResultEntry' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_server_config_result_entry_relationship.go b/model_server_config_result_entry_relationship.go index 3bbfef3ac0..b4ece60c0d 100644 --- a/model_server_config_result_entry_relationship.go +++ b/model_server_config_result_entry_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_server_config_result_entry_response.go b/model_server_config_result_entry_response.go index 98d7490a7a..5dc400dbdd 100644 --- a/model_server_config_result_entry_response.go +++ b/model_server_config_result_entry_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_server_config_result_list.go b/model_server_config_result_list.go index 6d9195eec7..7a5299e629 100644 --- a/model_server_config_result_list.go +++ b/model_server_config_result_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *ServerConfigResultList) GetResultsOk() ([]ServerConfigResult, bool) { // HasResults returns a boolean if a field has been set. func (o *ServerConfigResultList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *ServerConfigResultList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *ServerConfigResultList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type ServerConfigResultListWithoutEmbeddedStruct struct { // The total number of 'server.ConfigResult' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_server_config_result_relationship.go b/model_server_config_result_relationship.go index e3b51abd44..a7069c9f27 100644 --- a/model_server_config_result_relationship.go +++ b/model_server_config_result_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_server_config_result_response.go b/model_server_config_result_response.go index 58f6fe75d9..f5a9722176 100644 --- a/model_server_config_result_response.go +++ b/model_server_config_result_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_server_disruption.go b/model_server_disruption.go index 520b07c129..61a52c5e49 100644 --- a/model_server_disruption.go +++ b/model_server_disruption.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -81,6 +81,11 @@ func (o *ServerDisruption) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "server.Disruption" of the ClassId field. +func (o *ServerDisruption) GetDefaultClassId() interface{} { + return "server.Disruption" +} + // GetObjectType returns the ObjectType field value func (o *ServerDisruption) GetObjectType() string { if o == nil { @@ -105,6 +110,11 @@ func (o *ServerDisruption) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "server.Disruption" of the ObjectType field. +func (o *ServerDisruption) GetDefaultObjectType() interface{} { + return "server.Disruption" +} + // GetOrganization returns the Organization field value if set, zero value otherwise (both if not set or set to explicit null). func (o *ServerDisruption) GetOrganization() OrganizationOrganizationRelationship { if o == nil || IsNil(o.Organization.Get()) { @@ -166,7 +176,13 @@ func (o ServerDisruption) ToMap() (map[string]interface{}, error) { if errPolicyAbstractDisruption != nil { return map[string]interface{}{}, errPolicyAbstractDisruption } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.Organization.IsSet() { toSerialize["Organization"] = o.Organization.Get() @@ -188,6 +204,13 @@ func (o *ServerDisruption) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -197,11 +220,23 @@ func (o *ServerDisruption) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type ServerDisruptionWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_server_disruption_list.go b/model_server_disruption_list.go index 0228840ca2..498644c6fc 100644 --- a/model_server_disruption_list.go +++ b/model_server_disruption_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *ServerDisruptionList) GetResultsOk() ([]ServerDisruption, bool) { // HasResults returns a boolean if a field has been set. func (o *ServerDisruptionList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *ServerDisruptionList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *ServerDisruptionList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type ServerDisruptionListWithoutEmbeddedStruct struct { // The total number of 'server.Disruption' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_server_disruption_response.go b/model_server_disruption_response.go index 3eae201c5b..1376a9356e 100644 --- a/model_server_disruption_response.go +++ b/model_server_disruption_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_server_pending_workflow_trigger.go b/model_server_pending_workflow_trigger.go index de1b411d6c..3122888567 100644 --- a/model_server_pending_workflow_trigger.go +++ b/model_server_pending_workflow_trigger.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -83,6 +83,10 @@ func (o *ServerPendingWorkflowTrigger) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -92,11 +96,23 @@ func (o *ServerPendingWorkflowTrigger) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type ServerPendingWorkflowTriggerWithoutEmbeddedStruct struct { } diff --git a/model_server_profile.go b/model_server_profile.go index 8e56ec86a3..08c6836b04 100644 --- a/model_server_profile.go +++ b/model_server_profile.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -43,12 +43,12 @@ type ServerProfile struct { // Source of the server assigned to the Server Profile. Values can be Static, Pool or None. Static is used if a server is attached directly to a Server Profile. Pool is used if a resource pool is attached to a Server Profile. None is used if no server or resource pool is attached to a Server Profile. Slot or Serial pre-assignment is also considered to be None as it is different form of Assign Later. * `None` - No server is assigned to the server profile. * `Static` - Server is directly assigned to server profile using assign server. * `Pool` - Server is assigned from a resource pool. ServerAssignmentMode *string `json:"ServerAssignmentMode,omitempty"` // Serial number of the server that would be assigned to this pre-assigned Server Profile. It can be any string that adheres to the following constraints: It should start and end with an alphanumeric character. It cannot be more than 20 characters. - ServerPreAssignBySerial *string `json:"ServerPreAssignBySerial,omitempty"` + ServerPreAssignBySerial *string `json:"ServerPreAssignBySerial,omitempty" validate:"regexp=^[a-zA-Z0-9]{0,20}$"` ServerPreAssignBySlot NullableServerServerAssignTypeSlot `json:"ServerPreAssignBySlot,omitempty"` // The UUID address for the server must include UUID prefix xxxxxxxx-xxxx-xxxx along with the UUID suffix of format xxxx-xxxxxxxxxxxx. - StaticUuidAddress *string `json:"StaticUuidAddress,omitempty"` + StaticUuidAddress *string `json:"StaticUuidAddress,omitempty" validate:"regexp=^$|^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$"` // User label assigned to the server profile. - UserLabel *string `json:"UserLabel,omitempty"` + UserLabel *string `json:"UserLabel,omitempty" validate:"regexp=^[ !#$%&\\\\(\\\\)\\\\*\\\\+,\\\\-\\\\.\\/:;\\\\?@\\\\[\\\\]_\\\\{\\\\|\\\\}~a-zA-Z0-9]*$"` // The UUID address that is assigned to the server based on the UUID pool. Uuid *string `json:"Uuid,omitempty"` AssignedServer NullableComputePhysicalRelationship `json:"AssignedServer,omitempty"` @@ -127,6 +127,11 @@ func (o *ServerProfile) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "server.Profile" of the ClassId field. +func (o *ServerProfile) GetDefaultClassId() interface{} { + return "server.Profile" +} + // GetObjectType returns the ObjectType field value func (o *ServerProfile) GetObjectType() string { if o == nil { @@ -151,6 +156,11 @@ func (o *ServerProfile) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "server.Profile" of the ObjectType field. +func (o *ServerProfile) GetDefaultObjectType() interface{} { + return "server.Profile" +} + // GetConfigChangeContext returns the ConfigChangeContext field value if set, zero value otherwise (both if not set or set to explicit null). func (o *ServerProfile) GetConfigChangeContext() PolicyConfigChangeContext { if o == nil || IsNil(o.ConfigChangeContext.Get()) { @@ -322,7 +332,7 @@ func (o *ServerProfile) GetInternalReservationReferencesOk() ([]PoolReservationR // HasInternalReservationReferences returns a boolean if a field has been set. func (o *ServerProfile) HasInternalReservationReferences() bool { - if o != nil && IsNil(o.InternalReservationReferences) { + if o != nil && !IsNil(o.InternalReservationReferences) { return true } @@ -419,7 +429,7 @@ func (o *ServerProfile) GetReservationReferencesOk() ([]PoolReservationReference // HasReservationReferences returns a boolean if a field has been set. func (o *ServerProfile) HasReservationReferences() bool { - if o != nil && IsNil(o.ReservationReferences) { + if o != nil && !IsNil(o.ReservationReferences) { return true } @@ -784,7 +794,7 @@ func (o *ServerProfile) GetConfigChangeDetailsOk() ([]ServerConfigChangeDetailRe // HasConfigChangeDetails returns a boolean if a field has been set. func (o *ServerProfile) HasConfigChangeDetails() bool { - if o != nil && IsNil(o.ConfigChangeDetails) { + if o != nil && !IsNil(o.ConfigChangeDetails) { return true } @@ -946,7 +956,7 @@ func (o *ServerProfile) GetRunningWorkflowsOk() ([]WorkflowWorkflowInfoRelations // HasRunningWorkflows returns a boolean if a field has been set. func (o *ServerProfile) HasRunningWorkflows() bool { - if o != nil && IsNil(o.RunningWorkflows) { + if o != nil && !IsNil(o.RunningWorkflows) { return true } @@ -1062,7 +1072,13 @@ func (o ServerProfile) ToMap() (map[string]interface{}, error) { if errServerBaseProfile != nil { return map[string]interface{}{}, errServerBaseProfile } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.ConfigChangeContext.IsSet() { toSerialize["ConfigChangeContext"] = o.ConfigChangeContext.Get() @@ -1153,6 +1169,13 @@ func (o *ServerProfile) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -1162,11 +1185,23 @@ func (o *ServerProfile) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type ServerProfileWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` @@ -1187,12 +1222,12 @@ func (o *ServerProfile) UnmarshalJSON(data []byte) (err error) { // Source of the server assigned to the Server Profile. Values can be Static, Pool or None. Static is used if a server is attached directly to a Server Profile. Pool is used if a resource pool is attached to a Server Profile. None is used if no server or resource pool is attached to a Server Profile. Slot or Serial pre-assignment is also considered to be None as it is different form of Assign Later. * `None` - No server is assigned to the server profile. * `Static` - Server is directly assigned to server profile using assign server. * `Pool` - Server is assigned from a resource pool. ServerAssignmentMode *string `json:"ServerAssignmentMode,omitempty"` // Serial number of the server that would be assigned to this pre-assigned Server Profile. It can be any string that adheres to the following constraints: It should start and end with an alphanumeric character. It cannot be more than 20 characters. - ServerPreAssignBySerial *string `json:"ServerPreAssignBySerial,omitempty"` + ServerPreAssignBySerial *string `json:"ServerPreAssignBySerial,omitempty" validate:"regexp=^[a-zA-Z0-9]{0,20}$"` ServerPreAssignBySlot NullableServerServerAssignTypeSlot `json:"ServerPreAssignBySlot,omitempty"` // The UUID address for the server must include UUID prefix xxxxxxxx-xxxx-xxxx along with the UUID suffix of format xxxx-xxxxxxxxxxxx. - StaticUuidAddress *string `json:"StaticUuidAddress,omitempty"` + StaticUuidAddress *string `json:"StaticUuidAddress,omitempty" validate:"regexp=^$|^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$"` // User label assigned to the server profile. - UserLabel *string `json:"UserLabel,omitempty"` + UserLabel *string `json:"UserLabel,omitempty" validate:"regexp=^[ !#$%&\\\\(\\\\)\\\\*\\\\+,\\\\-\\\\.\\/:;\\\\?@\\\\[\\\\]_\\\\{\\\\|\\\\}~a-zA-Z0-9]*$"` // The UUID address that is assigned to the server based on the UUID pool. Uuid *string `json:"Uuid,omitempty"` AssignedServer NullableComputePhysicalRelationship `json:"AssignedServer,omitempty"` diff --git a/model_server_profile_list.go b/model_server_profile_list.go index d4f6d97074..8c3b227629 100644 --- a/model_server_profile_list.go +++ b/model_server_profile_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *ServerProfileList) GetResultsOk() ([]ServerProfile, bool) { // HasResults returns a boolean if a field has been set. func (o *ServerProfileList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *ServerProfileList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *ServerProfileList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type ServerProfileListWithoutEmbeddedStruct struct { // The total number of 'server.Profile' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_server_profile_relationship.go b/model_server_profile_relationship.go index c2414d7dcb..809ec757ad 100644 --- a/model_server_profile_relationship.go +++ b/model_server_profile_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_server_profile_response.go b/model_server_profile_response.go index ca2553ed27..6306e049ac 100644 --- a/model_server_profile_response.go +++ b/model_server_profile_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_server_profile_template.go b/model_server_profile_template.go index c9b8b1566b..6c6e2595fe 100644 --- a/model_server_profile_template.go +++ b/model_server_profile_template.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -91,6 +91,11 @@ func (o *ServerProfileTemplate) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "server.ProfileTemplate" of the ClassId field. +func (o *ServerProfileTemplate) GetDefaultClassId() interface{} { + return "server.ProfileTemplate" +} + // GetObjectType returns the ObjectType field value func (o *ServerProfileTemplate) GetObjectType() string { if o == nil { @@ -115,6 +120,11 @@ func (o *ServerProfileTemplate) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "server.ProfileTemplate" of the ObjectType field. +func (o *ServerProfileTemplate) GetDefaultObjectType() interface{} { + return "server.ProfileTemplate" +} + // GetUsage returns the Usage field value if set, zero value otherwise. func (o *ServerProfileTemplate) GetUsage() int64 { if o == nil || IsNil(o.Usage) { @@ -208,7 +218,13 @@ func (o ServerProfileTemplate) ToMap() (map[string]interface{}, error) { if errServerBaseProfile != nil { return map[string]interface{}{}, errServerBaseProfile } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Usage) { toSerialize["Usage"] = o.Usage @@ -233,6 +249,13 @@ func (o *ServerProfileTemplate) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -242,11 +265,23 @@ func (o *ServerProfileTemplate) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type ServerProfileTemplateWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_server_profile_template_list.go b/model_server_profile_template_list.go index d984b7708d..de0f0ac7ad 100644 --- a/model_server_profile_template_list.go +++ b/model_server_profile_template_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *ServerProfileTemplateList) GetResultsOk() ([]ServerProfileTemplate, boo // HasResults returns a boolean if a field has been set. func (o *ServerProfileTemplateList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *ServerProfileTemplateList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *ServerProfileTemplateList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type ServerProfileTemplateListWithoutEmbeddedStruct struct { // The total number of 'server.ProfileTemplate' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_server_profile_template_response.go b/model_server_profile_template_response.go index 5ba8d56ca7..aa227b1de1 100644 --- a/model_server_profile_template_response.go +++ b/model_server_profile_template_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_server_server_assign_type_slot.go b/model_server_server_assign_type_slot.go index 604a2838e4..3445def8f8 100644 --- a/model_server_server_assign_type_slot.go +++ b/model_server_server_assign_type_slot.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -31,7 +31,7 @@ type ServerServerAssignTypeSlot struct { // Chassis-id of the slot that would be assigned to this pre-assigned server profile. ChassisId *int64 `json:"ChassisId,omitempty"` // Domain name of the Fabric Interconnect to which the chassis is or to be connected. It can be any string that adheres to the following constraints: It should start and end with an alphanumeric character. It can have underscores and hyphens. It cannot be more than 30 characters. - DomainName *string `json:"DomainName,omitempty"` + DomainName *string `json:"DomainName,omitempty" validate:"regexp=^[a-zA-Z0-9_\\\\-]{0,30}$"` // Slot-id of the server that would be assigned to this pre-assigned server profile. SlotId *int64 `json:"SlotId,omitempty"` AdditionalProperties map[string]interface{} @@ -94,6 +94,11 @@ func (o *ServerServerAssignTypeSlot) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "server.ServerAssignTypeSlot" of the ClassId field. +func (o *ServerServerAssignTypeSlot) GetDefaultClassId() interface{} { + return "server.ServerAssignTypeSlot" +} + // GetObjectType returns the ObjectType field value func (o *ServerServerAssignTypeSlot) GetObjectType() string { if o == nil { @@ -118,6 +123,11 @@ func (o *ServerServerAssignTypeSlot) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "server.ServerAssignTypeSlot" of the ObjectType field. +func (o *ServerServerAssignTypeSlot) GetDefaultObjectType() interface{} { + return "server.ServerAssignTypeSlot" +} + // GetChassisId returns the ChassisId field value if set, zero value otherwise. func (o *ServerServerAssignTypeSlot) GetChassisId() int64 { if o == nil || IsNil(o.ChassisId) { @@ -232,7 +242,13 @@ func (o ServerServerAssignTypeSlot) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.ChassisId) { toSerialize["ChassisId"] = o.ChassisId @@ -260,6 +276,13 @@ func (o *ServerServerAssignTypeSlot) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -269,11 +292,23 @@ func (o *ServerServerAssignTypeSlot) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type ServerServerAssignTypeSlotWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` @@ -282,7 +317,7 @@ func (o *ServerServerAssignTypeSlot) UnmarshalJSON(data []byte) (err error) { // Chassis-id of the slot that would be assigned to this pre-assigned server profile. ChassisId *int64 `json:"ChassisId,omitempty"` // Domain name of the Fabric Interconnect to which the chassis is or to be connected. It can be any string that adheres to the following constraints: It should start and end with an alphanumeric character. It can have underscores and hyphens. It cannot be more than 30 characters. - DomainName *string `json:"DomainName,omitempty"` + DomainName *string `json:"DomainName,omitempty" validate:"regexp=^[a-zA-Z0-9_\\\\-]{0,30}$"` // Slot-id of the server that would be assigned to this pre-assigned server profile. SlotId *int64 `json:"SlotId,omitempty"` } diff --git a/model_serviceitem_base_message.go b/model_serviceitem_base_message.go index 5719d025e4..dad765211e 100644 --- a/model_serviceitem_base_message.go +++ b/model_serviceitem_base_message.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -286,6 +286,10 @@ func (o *ServiceitemBaseMessage) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -295,11 +299,23 @@ func (o *ServiceitemBaseMessage) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type ServiceitemBaseMessageWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. The enum values provides the list of concrete types that can be instantiated from this abstract type. ClassId string `json:"ClassId"` diff --git a/model_serviceitem_health_check_error_element.go b/model_serviceitem_health_check_error_element.go index ed824b8c37..2704015e9c 100644 --- a/model_serviceitem_health_check_error_element.go +++ b/model_serviceitem_health_check_error_element.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -83,6 +83,11 @@ func (o *ServiceitemHealthCheckErrorElement) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "serviceitem.HealthCheckErrorElement" of the ClassId field. +func (o *ServiceitemHealthCheckErrorElement) GetDefaultClassId() interface{} { + return "serviceitem.HealthCheckErrorElement" +} + // GetObjectType returns the ObjectType field value func (o *ServiceitemHealthCheckErrorElement) GetObjectType() string { if o == nil { @@ -107,6 +112,11 @@ func (o *ServiceitemHealthCheckErrorElement) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "serviceitem.HealthCheckErrorElement" of the ObjectType field. +func (o *ServiceitemHealthCheckErrorElement) GetDefaultObjectType() interface{} { + return "serviceitem.HealthCheckErrorElement" +} + // GetElementType returns the ElementType field value if set, zero value otherwise. func (o *ServiceitemHealthCheckErrorElement) GetElementType() string { if o == nil || IsNil(o.ElementType) { @@ -160,7 +170,7 @@ func (o *ServiceitemHealthCheckErrorElement) GetElementsOk() ([]MoMoRef, bool) { // HasElements returns a boolean if a field has been set. func (o *ServiceitemHealthCheckErrorElement) HasElements() bool { - if o != nil && IsNil(o.Elements) { + if o != nil && !IsNil(o.Elements) { return true } @@ -190,7 +200,13 @@ func (o ServiceitemHealthCheckErrorElement) ToMap() (map[string]interface{}, err if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.ElementType) { toSerialize["ElementType"] = o.ElementType @@ -215,6 +231,13 @@ func (o *ServiceitemHealthCheckErrorElement) UnmarshalJSON(data []byte) (err err "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -224,11 +247,23 @@ func (o *ServiceitemHealthCheckErrorElement) UnmarshalJSON(data []byte) (err err } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type ServiceitemHealthCheckErrorElementWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_serviceitem_message.go b/model_serviceitem_message.go index 821b2087ee..4ca5f2f183 100644 --- a/model_serviceitem_message.go +++ b/model_serviceitem_message.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -83,6 +83,10 @@ func (o *ServiceitemMessage) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -92,11 +96,23 @@ func (o *ServiceitemMessage) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type ServiceitemMessageWithoutEmbeddedStruct struct { } diff --git a/model_serviceitem_selection_criteria_input.go b/model_serviceitem_selection_criteria_input.go index 16e09d8403..101f2ad40a 100644 --- a/model_serviceitem_selection_criteria_input.go +++ b/model_serviceitem_selection_criteria_input.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -85,6 +85,11 @@ func (o *ServiceitemSelectionCriteriaInput) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "serviceitem.SelectionCriteriaInput" of the ClassId field. +func (o *ServiceitemSelectionCriteriaInput) GetDefaultClassId() interface{} { + return "serviceitem.SelectionCriteriaInput" +} + // GetObjectType returns the ObjectType field value func (o *ServiceitemSelectionCriteriaInput) GetObjectType() string { if o == nil { @@ -109,6 +114,11 @@ func (o *ServiceitemSelectionCriteriaInput) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "serviceitem.SelectionCriteriaInput" of the ObjectType field. +func (o *ServiceitemSelectionCriteriaInput) GetDefaultObjectType() interface{} { + return "serviceitem.SelectionCriteriaInput" +} + // GetFilterConditions returns the FilterConditions field value if set, zero value otherwise (both if not set or set to explicit null). func (o *ServiceitemSelectionCriteriaInput) GetFilterConditions() []ResourceSelector { if o == nil { @@ -130,7 +140,7 @@ func (o *ServiceitemSelectionCriteriaInput) GetFilterConditionsOk() ([]ResourceS // HasFilterConditions returns a boolean if a field has been set. func (o *ServiceitemSelectionCriteriaInput) HasFilterConditions() bool { - if o != nil && IsNil(o.FilterConditions) { + if o != nil && !IsNil(o.FilterConditions) { return true } @@ -195,7 +205,7 @@ func (o *ServiceitemSelectionCriteriaInput) GetInputValueOk() (*interface{}, boo // HasInputValue returns a boolean if a field has been set. func (o *ServiceitemSelectionCriteriaInput) HasInputValue() bool { - if o != nil && IsNil(o.InputValue) { + if o != nil && !IsNil(o.InputValue) { return true } @@ -225,7 +235,13 @@ func (o ServiceitemSelectionCriteriaInput) ToMap() (map[string]interface{}, erro if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.FilterConditions != nil { toSerialize["FilterConditions"] = o.FilterConditions @@ -253,6 +269,13 @@ func (o *ServiceitemSelectionCriteriaInput) UnmarshalJSON(data []byte) (err erro "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -262,11 +285,23 @@ func (o *ServiceitemSelectionCriteriaInput) UnmarshalJSON(data []byte) (err erro } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type ServiceitemSelectionCriteriaInputWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_servicenow_change_request.go b/model_servicenow_change_request.go index dfffd4a643..15a3600137 100644 --- a/model_servicenow_change_request.go +++ b/model_servicenow_change_request.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -122,6 +122,11 @@ func (o *ServicenowChangeRequest) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "servicenow.ChangeRequest" of the ClassId field. +func (o *ServicenowChangeRequest) GetDefaultClassId() interface{} { + return "servicenow.ChangeRequest" +} + // GetObjectType returns the ObjectType field value func (o *ServicenowChangeRequest) GetObjectType() string { if o == nil { @@ -146,6 +151,11 @@ func (o *ServicenowChangeRequest) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "servicenow.ChangeRequest" of the ObjectType field. +func (o *ServicenowChangeRequest) GetDefaultObjectType() interface{} { + return "servicenow.ChangeRequest" +} + // GetApproval returns the Approval field value if set, zero value otherwise. func (o *ServicenowChangeRequest) GetApproval() string { if o == nil || IsNil(o.Approval) { @@ -836,7 +846,13 @@ func (o ServicenowChangeRequest) ToMap() (map[string]interface{}, error) { if errServicenowInventoryEntity != nil { return map[string]interface{}{}, errServicenowInventoryEntity } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Approval) { toSerialize["Approval"] = o.Approval @@ -918,6 +934,13 @@ func (o *ServicenowChangeRequest) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -927,11 +950,23 @@ func (o *ServicenowChangeRequest) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type ServicenowChangeRequestWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_servicenow_change_request_list.go b/model_servicenow_change_request_list.go index c94cc077d7..f4d6d626ce 100644 --- a/model_servicenow_change_request_list.go +++ b/model_servicenow_change_request_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *ServicenowChangeRequestList) GetResultsOk() ([]ServicenowChangeRequest, // HasResults returns a boolean if a field has been set. func (o *ServicenowChangeRequestList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *ServicenowChangeRequestList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *ServicenowChangeRequestList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type ServicenowChangeRequestListWithoutEmbeddedStruct struct { // The total number of 'servicenow.ChangeRequest' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_servicenow_change_request_response.go b/model_servicenow_change_request_response.go index 35d1863548..b47fffb660 100644 --- a/model_servicenow_change_request_response.go +++ b/model_servicenow_change_request_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_servicenow_incident.go b/model_servicenow_incident.go index 948b9771eb..3739843d56 100644 --- a/model_servicenow_incident.go +++ b/model_servicenow_incident.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -122,6 +122,11 @@ func (o *ServicenowIncident) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "servicenow.Incident" of the ClassId field. +func (o *ServicenowIncident) GetDefaultClassId() interface{} { + return "servicenow.Incident" +} + // GetObjectType returns the ObjectType field value func (o *ServicenowIncident) GetObjectType() string { if o == nil { @@ -146,6 +151,11 @@ func (o *ServicenowIncident) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "servicenow.Incident" of the ObjectType field. +func (o *ServicenowIncident) GetDefaultObjectType() interface{} { + return "servicenow.Incident" +} + // GetApproval returns the Approval field value if set, zero value otherwise. func (o *ServicenowIncident) GetApproval() string { if o == nil || IsNil(o.Approval) { @@ -836,7 +846,13 @@ func (o ServicenowIncident) ToMap() (map[string]interface{}, error) { if errServicenowInventoryEntity != nil { return map[string]interface{}{}, errServicenowInventoryEntity } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Approval) { toSerialize["Approval"] = o.Approval @@ -918,6 +934,13 @@ func (o *ServicenowIncident) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -927,11 +950,23 @@ func (o *ServicenowIncident) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type ServicenowIncidentWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_servicenow_incident_list.go b/model_servicenow_incident_list.go index d67b97b35a..573004ea0c 100644 --- a/model_servicenow_incident_list.go +++ b/model_servicenow_incident_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *ServicenowIncidentList) GetResultsOk() ([]ServicenowIncident, bool) { // HasResults returns a boolean if a field has been set. func (o *ServicenowIncidentList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *ServicenowIncidentList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *ServicenowIncidentList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type ServicenowIncidentListWithoutEmbeddedStruct struct { // The total number of 'servicenow.Incident' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_servicenow_incident_response.go b/model_servicenow_incident_response.go index b08fc4a3ae..651738eb22 100644 --- a/model_servicenow_incident_response.go +++ b/model_servicenow_incident_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_servicenow_inventory_entity.go b/model_servicenow_inventory_entity.go index a08ff15204..e3473cf9f6 100644 --- a/model_servicenow_inventory_entity.go +++ b/model_servicenow_inventory_entity.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -184,6 +184,10 @@ func (o *ServicenowInventoryEntity) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -193,11 +197,23 @@ func (o *ServicenowInventoryEntity) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type ServicenowInventoryEntityWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. The enum values provides the list of concrete types that can be instantiated from this abstract type. ClassId string `json:"ClassId"` diff --git a/model_servicerequest_message.go b/model_servicerequest_message.go index db0012af65..40892cda77 100644 --- a/model_servicerequest_message.go +++ b/model_servicerequest_message.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -82,6 +82,11 @@ func (o *ServicerequestMessage) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "servicerequest.Message" of the ClassId field. +func (o *ServicerequestMessage) GetDefaultClassId() interface{} { + return "servicerequest.Message" +} + // GetObjectType returns the ObjectType field value func (o *ServicerequestMessage) GetObjectType() string { if o == nil { @@ -106,6 +111,11 @@ func (o *ServicerequestMessage) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "servicerequest.Message" of the ObjectType field. +func (o *ServicerequestMessage) GetDefaultObjectType() interface{} { + return "servicerequest.Message" +} + // GetServiceItemName returns the ServiceItemName field value if set, zero value otherwise. func (o *ServicerequestMessage) GetServiceItemName() string { if o == nil || IsNil(o.ServiceItemName) { @@ -156,7 +166,13 @@ func (o ServicerequestMessage) ToMap() (map[string]interface{}, error) { if errServiceitemBaseMessage != nil { return map[string]interface{}{}, errServiceitemBaseMessage } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.ServiceItemName) { toSerialize["ServiceItemName"] = o.ServiceItemName @@ -178,6 +194,13 @@ func (o *ServicerequestMessage) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -187,11 +210,23 @@ func (o *ServicerequestMessage) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type ServicerequestMessageWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_session_abstract_session.go b/model_session_abstract_session.go index 2ca8136728..34f6b189e9 100644 --- a/model_session_abstract_session.go +++ b/model_session_abstract_session.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -327,6 +327,10 @@ func (o *SessionAbstractSession) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -336,11 +340,23 @@ func (o *SessionAbstractSession) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type SessionAbstractSessionWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. The enum values provides the list of concrete types that can be instantiated from this abstract type. ClassId string `json:"ClassId"` diff --git a/model_session_abstract_session_relationship.go b/model_session_abstract_session_relationship.go index 29ba77fd34..812ec6f257 100644 --- a/model_session_abstract_session_relationship.go +++ b/model_session_abstract_session_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_session_abstract_sub_session.go b/model_session_abstract_sub_session.go index 4b9bc93af2..3f93be29b3 100644 --- a/model_session_abstract_sub_session.go +++ b/model_session_abstract_sub_session.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -317,6 +317,10 @@ func (o *SessionAbstractSubSession) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -326,11 +330,23 @@ func (o *SessionAbstractSubSession) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type SessionAbstractSubSessionWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. The enum values provides the list of concrete types that can be instantiated from this abstract type. ClassId string `json:"ClassId"` diff --git a/model_smtp_policy.go b/model_smtp_policy.go index 2f4864508f..cf247b2a4f 100644 --- a/model_smtp_policy.go +++ b/model_smtp_policy.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -29,7 +29,7 @@ type SmtpPolicy struct { // The fully-qualified name of the instantiated, concrete type. The value should be the same as the 'ClassId' property. ObjectType string `json:"ObjectType"` // Authorization password for the process. - AuthPassword *string `json:"AuthPassword,omitempty"` + AuthPassword *string `json:"AuthPassword,omitempty" validate:"regexp=^[\\\\S+]{0,254}$"` // If enabled, lets user input username and password. EnableAuth *bool `json:"EnableAuth,omitempty"` // If enabled, lets user input valid CA certificates for authorization. @@ -41,7 +41,7 @@ type SmtpPolicy struct { // Minimum fault severity level to receive email notifications. Email notifications are sent for all faults whose severity is equal to or greater than the chosen level. * `critical` - Minimum severity to report is critical. * `condition` - Minimum severity to report is informational. * `warning` - Minimum severity to report is warning. * `minor` - Minimum severity to report is minor. * `major` - Minimum severity to report is major. MinSeverity *string `json:"MinSeverity,omitempty"` // The email address entered here will be displayed as the from address (mail received from address) of all the SMTP mail alerts that are received. If not configured, the hostname of the server is used in the from address field. - SenderEmail *string `json:"SenderEmail,omitempty"` + SenderEmail *string "json:\"SenderEmail,omitempty\" validate:\"regexp=^$|^[a-zA-Z0-9.!#$%&'*+\\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\\\\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$\"" // Port number used by the SMTP server for outgoing SMTP communication. SmtpPort *int64 `json:"SmtpPort,omitempty"` SmtpRecipients []string `json:"SmtpRecipients,omitempty"` @@ -126,6 +126,11 @@ func (o *SmtpPolicy) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "smtp.Policy" of the ClassId field. +func (o *SmtpPolicy) GetDefaultClassId() interface{} { + return "smtp.Policy" +} + // GetObjectType returns the ObjectType field value func (o *SmtpPolicy) GetObjectType() string { if o == nil { @@ -150,6 +155,11 @@ func (o *SmtpPolicy) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "smtp.Policy" of the ObjectType field. +func (o *SmtpPolicy) GetDefaultObjectType() interface{} { + return "smtp.Policy" +} + // GetAuthPassword returns the AuthPassword field value if set, zero value otherwise. func (o *SmtpPolicy) GetAuthPassword() string { if o == nil || IsNil(o.AuthPassword) { @@ -427,7 +437,7 @@ func (o *SmtpPolicy) GetSmtpRecipientsOk() ([]string, bool) { // HasSmtpRecipients returns a boolean if a field has been set. func (o *SmtpPolicy) HasSmtpRecipients() bool { - if o != nil && IsNil(o.SmtpRecipients) { + if o != nil && !IsNil(o.SmtpRecipients) { return true } @@ -653,7 +663,7 @@ func (o *SmtpPolicy) GetProfilesOk() ([]PolicyAbstractConfigProfileRelationship, // HasProfiles returns a boolean if a field has been set. func (o *SmtpPolicy) HasProfiles() bool { - if o != nil && IsNil(o.Profiles) { + if o != nil && !IsNil(o.Profiles) { return true } @@ -683,7 +693,13 @@ func (o SmtpPolicy) ToMap() (map[string]interface{}, error) { if errPolicyAbstractPolicy != nil { return map[string]interface{}{}, errPolicyAbstractPolicy } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.AuthPassword) { toSerialize["AuthPassword"] = o.AuthPassword @@ -747,6 +763,13 @@ func (o *SmtpPolicy) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -756,18 +779,30 @@ func (o *SmtpPolicy) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type SmtpPolicyWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` // The fully-qualified name of the instantiated, concrete type. The value should be the same as the 'ClassId' property. ObjectType string `json:"ObjectType"` // Authorization password for the process. - AuthPassword *string `json:"AuthPassword,omitempty"` + AuthPassword *string `json:"AuthPassword,omitempty" validate:"regexp=^[\\\\S+]{0,254}$"` // If enabled, lets user input username and password. EnableAuth *bool `json:"EnableAuth,omitempty"` // If enabled, lets user input valid CA certificates for authorization. @@ -779,7 +814,7 @@ func (o *SmtpPolicy) UnmarshalJSON(data []byte) (err error) { // Minimum fault severity level to receive email notifications. Email notifications are sent for all faults whose severity is equal to or greater than the chosen level. * `critical` - Minimum severity to report is critical. * `condition` - Minimum severity to report is informational. * `warning` - Minimum severity to report is warning. * `minor` - Minimum severity to report is minor. * `major` - Minimum severity to report is major. MinSeverity *string `json:"MinSeverity,omitempty"` // The email address entered here will be displayed as the from address (mail received from address) of all the SMTP mail alerts that are received. If not configured, the hostname of the server is used in the from address field. - SenderEmail *string `json:"SenderEmail,omitempty"` + SenderEmail *string "json:\"SenderEmail,omitempty\" validate:\"regexp=^$|^[a-zA-Z0-9.!#$%&'*+\\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\\\\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$\"" // Port number used by the SMTP server for outgoing SMTP communication. SmtpPort *int64 `json:"SmtpPort,omitempty"` SmtpRecipients []string `json:"SmtpRecipients,omitempty"` diff --git a/model_smtp_policy_list.go b/model_smtp_policy_list.go index 85fc12e714..2e80faec28 100644 --- a/model_smtp_policy_list.go +++ b/model_smtp_policy_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *SmtpPolicyList) GetResultsOk() ([]SmtpPolicy, bool) { // HasResults returns a boolean if a field has been set. func (o *SmtpPolicyList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *SmtpPolicyList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *SmtpPolicyList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type SmtpPolicyListWithoutEmbeddedStruct struct { // The total number of 'smtp.Policy' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_smtp_policy_response.go b/model_smtp_policy_response.go index a2e8d35bd4..42dc8512a2 100644 --- a/model_smtp_policy_response.go +++ b/model_smtp_policy_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_snmp_policy.go b/model_snmp_policy.go index cb1f716a41..52bc6ced6f 100644 --- a/model_snmp_policy.go +++ b/model_snmp_policy.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -35,7 +35,7 @@ type SnmpPolicy struct { // State of the SNMP Policy on the endpoint. If enabled, the endpoint sends SNMP traps to the designated host. Enabled *bool `json:"Enabled,omitempty"` // User-defined unique identification of the static engine. - EngineId *string `json:"EngineId,omitempty"` + EngineId *string `json:"EngineId,omitempty" validate:"regexp=^[^#!&]*$"` // Port on which Cisco IMC SNMP agent runs. Enter a value between 1-65535. Reserved ports not allowed (22, 23, 80, 123, 389, 443, 623, 636, 2068, 3268, 3269). SnmpPort *int64 `json:"SnmpPort,omitempty"` SnmpTraps []SnmpTrap `json:"SnmpTraps,omitempty"` @@ -125,6 +125,11 @@ func (o *SnmpPolicy) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "snmp.Policy" of the ClassId field. +func (o *SnmpPolicy) GetDefaultClassId() interface{} { + return "snmp.Policy" +} + // GetObjectType returns the ObjectType field value func (o *SnmpPolicy) GetObjectType() string { if o == nil { @@ -149,6 +154,11 @@ func (o *SnmpPolicy) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "snmp.Policy" of the ObjectType field. +func (o *SnmpPolicy) GetDefaultObjectType() interface{} { + return "snmp.Policy" +} + // GetAccessCommunityString returns the AccessCommunityString field value if set, zero value otherwise. func (o *SnmpPolicy) GetAccessCommunityString() string { if o == nil || IsNil(o.AccessCommunityString) { @@ -330,7 +340,7 @@ func (o *SnmpPolicy) GetSnmpTrapsOk() ([]SnmpTrap, bool) { // HasSnmpTraps returns a boolean if a field has been set. func (o *SnmpPolicy) HasSnmpTraps() bool { - if o != nil && IsNil(o.SnmpTraps) { + if o != nil && !IsNil(o.SnmpTraps) { return true } @@ -363,7 +373,7 @@ func (o *SnmpPolicy) GetSnmpUsersOk() ([]SnmpUser, bool) { // HasSnmpUsers returns a boolean if a field has been set. func (o *SnmpPolicy) HasSnmpUsers() bool { - if o != nil && IsNil(o.SnmpUsers) { + if o != nil && !IsNil(o.SnmpUsers) { return true } @@ -599,7 +609,7 @@ func (o *SnmpPolicy) GetProfilesOk() ([]PolicyAbstractConfigProfileRelationship, // HasProfiles returns a boolean if a field has been set. func (o *SnmpPolicy) HasProfiles() bool { - if o != nil && IsNil(o.Profiles) { + if o != nil && !IsNil(o.Profiles) { return true } @@ -629,7 +639,13 @@ func (o SnmpPolicy) ToMap() (map[string]interface{}, error) { if errPolicyAbstractPolicy != nil { return map[string]interface{}{}, errPolicyAbstractPolicy } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.AccessCommunityString) { toSerialize["AccessCommunityString"] = o.AccessCommunityString @@ -690,6 +706,13 @@ func (o *SnmpPolicy) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -699,11 +722,23 @@ func (o *SnmpPolicy) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type SnmpPolicyWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` @@ -716,7 +751,7 @@ func (o *SnmpPolicy) UnmarshalJSON(data []byte) (err error) { // State of the SNMP Policy on the endpoint. If enabled, the endpoint sends SNMP traps to the designated host. Enabled *bool `json:"Enabled,omitempty"` // User-defined unique identification of the static engine. - EngineId *string `json:"EngineId,omitempty"` + EngineId *string `json:"EngineId,omitempty" validate:"regexp=^[^#!&]*$"` // Port on which Cisco IMC SNMP agent runs. Enter a value between 1-65535. Reserved ports not allowed (22, 23, 80, 123, 389, 443, 623, 636, 2068, 3268, 3269). SnmpPort *int64 `json:"SnmpPort,omitempty"` SnmpTraps []SnmpTrap `json:"SnmpTraps,omitempty"` diff --git a/model_snmp_policy_inventory.go b/model_snmp_policy_inventory.go index 45d65fe37e..8e6d46f0a2 100644 --- a/model_snmp_policy_inventory.go +++ b/model_snmp_policy_inventory.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -35,7 +35,7 @@ type SnmpPolicyInventory struct { // State of the SNMP Policy on the endpoint. If enabled, the endpoint sends SNMP traps to the designated host. Enabled *bool `json:"Enabled,omitempty"` // User-defined unique identification of the static engine. - EngineId *string `json:"EngineId,omitempty"` + EngineId *string `json:"EngineId,omitempty" validate:"regexp=^[^#!&]*$"` // Port on which Cisco IMC SNMP agent runs. Enter a value between 1-65535. Reserved ports not allowed (22, 23, 80, 123, 389, 443, 623, 636, 2068, 3268, 3269). SnmpPort *int64 `json:"SnmpPort,omitempty"` SnmpTraps []SnmpTrap `json:"SnmpTraps,omitempty"` @@ -103,6 +103,11 @@ func (o *SnmpPolicyInventory) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "snmp.PolicyInventory" of the ClassId field. +func (o *SnmpPolicyInventory) GetDefaultClassId() interface{} { + return "snmp.PolicyInventory" +} + // GetObjectType returns the ObjectType field value func (o *SnmpPolicyInventory) GetObjectType() string { if o == nil { @@ -127,6 +132,11 @@ func (o *SnmpPolicyInventory) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "snmp.PolicyInventory" of the ObjectType field. +func (o *SnmpPolicyInventory) GetDefaultObjectType() interface{} { + return "snmp.PolicyInventory" +} + // GetAccessCommunityString returns the AccessCommunityString field value if set, zero value otherwise. func (o *SnmpPolicyInventory) GetAccessCommunityString() string { if o == nil || IsNil(o.AccessCommunityString) { @@ -308,7 +318,7 @@ func (o *SnmpPolicyInventory) GetSnmpTrapsOk() ([]SnmpTrap, bool) { // HasSnmpTraps returns a boolean if a field has been set. func (o *SnmpPolicyInventory) HasSnmpTraps() bool { - if o != nil && IsNil(o.SnmpTraps) { + if o != nil && !IsNil(o.SnmpTraps) { return true } @@ -341,7 +351,7 @@ func (o *SnmpPolicyInventory) GetSnmpUsersOk() ([]SnmpUser, bool) { // HasSnmpUsers returns a boolean if a field has been set. func (o *SnmpPolicyInventory) HasSnmpUsers() bool { - if o != nil && IsNil(o.SnmpUsers) { + if o != nil && !IsNil(o.SnmpUsers) { return true } @@ -574,7 +584,13 @@ func (o SnmpPolicyInventory) ToMap() (map[string]interface{}, error) { if errPolicyAbstractPolicyInventory != nil { return map[string]interface{}{}, errPolicyAbstractPolicyInventory } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.AccessCommunityString) { toSerialize["AccessCommunityString"] = o.AccessCommunityString @@ -632,6 +648,13 @@ func (o *SnmpPolicyInventory) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -641,11 +664,23 @@ func (o *SnmpPolicyInventory) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type SnmpPolicyInventoryWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` @@ -658,7 +693,7 @@ func (o *SnmpPolicyInventory) UnmarshalJSON(data []byte) (err error) { // State of the SNMP Policy on the endpoint. If enabled, the endpoint sends SNMP traps to the designated host. Enabled *bool `json:"Enabled,omitempty"` // User-defined unique identification of the static engine. - EngineId *string `json:"EngineId,omitempty"` + EngineId *string `json:"EngineId,omitempty" validate:"regexp=^[^#!&]*$"` // Port on which Cisco IMC SNMP agent runs. Enter a value between 1-65535. Reserved ports not allowed (22, 23, 80, 123, 389, 443, 623, 636, 2068, 3268, 3269). SnmpPort *int64 `json:"SnmpPort,omitempty"` SnmpTraps []SnmpTrap `json:"SnmpTraps,omitempty"` diff --git a/model_snmp_policy_inventory_list.go b/model_snmp_policy_inventory_list.go index c4c17d02bd..465b1cda3c 100644 --- a/model_snmp_policy_inventory_list.go +++ b/model_snmp_policy_inventory_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *SnmpPolicyInventoryList) GetResultsOk() ([]SnmpPolicyInventory, bool) { // HasResults returns a boolean if a field has been set. func (o *SnmpPolicyInventoryList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *SnmpPolicyInventoryList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *SnmpPolicyInventoryList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type SnmpPolicyInventoryListWithoutEmbeddedStruct struct { // The total number of 'snmp.PolicyInventory' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_snmp_policy_inventory_response.go b/model_snmp_policy_inventory_response.go index a00c7b8f09..b94c4688aa 100644 --- a/model_snmp_policy_inventory_response.go +++ b/model_snmp_policy_inventory_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_snmp_policy_list.go b/model_snmp_policy_list.go index f3d064a9f7..3e180b595b 100644 --- a/model_snmp_policy_list.go +++ b/model_snmp_policy_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *SnmpPolicyList) GetResultsOk() ([]SnmpPolicy, bool) { // HasResults returns a boolean if a field has been set. func (o *SnmpPolicyList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *SnmpPolicyList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *SnmpPolicyList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type SnmpPolicyListWithoutEmbeddedStruct struct { // The total number of 'snmp.Policy' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_snmp_policy_response.go b/model_snmp_policy_response.go index d5637a249e..4b6be0413e 100644 --- a/model_snmp_policy_response.go +++ b/model_snmp_policy_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_snmp_trap.go b/model_snmp_trap.go index ca8ef87b8f..f9663b4e20 100644 --- a/model_snmp_trap.go +++ b/model_snmp_trap.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -114,6 +114,11 @@ func (o *SnmpTrap) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "snmp.Trap" of the ClassId field. +func (o *SnmpTrap) GetDefaultClassId() interface{} { + return "snmp.Trap" +} + // GetObjectType returns the ObjectType field value func (o *SnmpTrap) GetObjectType() string { if o == nil { @@ -138,6 +143,11 @@ func (o *SnmpTrap) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "snmp.Trap" of the ObjectType field. +func (o *SnmpTrap) GetDefaultObjectType() interface{} { + return "snmp.Trap" +} + // GetCommunity returns the Community field value if set, zero value otherwise. func (o *SnmpTrap) GetCommunity() string { if o == nil || IsNil(o.Community) { @@ -444,7 +454,13 @@ func (o SnmpTrap) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Community) { toSerialize["Community"] = o.Community @@ -490,6 +506,13 @@ func (o *SnmpTrap) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -499,11 +522,23 @@ func (o *SnmpTrap) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type SnmpTrapWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_snmp_user.go b/model_snmp_user.go index 87d881a71e..8a59d41a90 100644 --- a/model_snmp_user.go +++ b/model_snmp_user.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -108,6 +108,11 @@ func (o *SnmpUser) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "snmp.User" of the ClassId field. +func (o *SnmpUser) GetDefaultClassId() interface{} { + return "snmp.User" +} + // GetObjectType returns the ObjectType field value func (o *SnmpUser) GetObjectType() string { if o == nil { @@ -132,6 +137,11 @@ func (o *SnmpUser) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "snmp.User" of the ObjectType field. +func (o *SnmpUser) GetDefaultObjectType() interface{} { + return "snmp.User" +} + // GetAuthPassword returns the AuthPassword field value if set, zero value otherwise. func (o *SnmpUser) GetAuthPassword() string { if o == nil || IsNil(o.AuthPassword) { @@ -406,7 +416,13 @@ func (o SnmpUser) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.AuthPassword) { toSerialize["AuthPassword"] = o.AuthPassword @@ -449,6 +465,13 @@ func (o *SnmpUser) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -458,11 +481,23 @@ func (o *SnmpUser) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type SnmpUserWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_software_appliance_distributable.go b/model_software_appliance_distributable.go index e6c50e93ff..5d9a605217 100644 --- a/model_software_appliance_distributable.go +++ b/model_software_appliance_distributable.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -87,6 +87,11 @@ func (o *SoftwareApplianceDistributable) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "software.ApplianceDistributable" of the ClassId field. +func (o *SoftwareApplianceDistributable) GetDefaultClassId() interface{} { + return "software.ApplianceDistributable" +} + // GetObjectType returns the ObjectType field value func (o *SoftwareApplianceDistributable) GetObjectType() string { if o == nil { @@ -111,6 +116,11 @@ func (o *SoftwareApplianceDistributable) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "software.ApplianceDistributable" of the ObjectType field. +func (o *SoftwareApplianceDistributable) GetDefaultObjectType() interface{} { + return "software.ApplianceDistributable" +} + // GetCatalog returns the Catalog field value if set, zero value otherwise (both if not set or set to explicit null). func (o *SoftwareApplianceDistributable) GetCatalog() SoftwarerepositoryCatalogRelationship { if o == nil || IsNil(o.Catalog.Get()) { @@ -172,7 +182,13 @@ func (o SoftwareApplianceDistributable) ToMap() (map[string]interface{}, error) if errFirmwareBaseDistributable != nil { return map[string]interface{}{}, errFirmwareBaseDistributable } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.Catalog.IsSet() { toSerialize["Catalog"] = o.Catalog.Get() @@ -194,6 +210,13 @@ func (o *SoftwareApplianceDistributable) UnmarshalJSON(data []byte) (err error) "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -203,11 +226,23 @@ func (o *SoftwareApplianceDistributable) UnmarshalJSON(data []byte) (err error) } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type SoftwareApplianceDistributableWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_software_appliance_distributable_list.go b/model_software_appliance_distributable_list.go index 04c8fc99ec..4086eb34fb 100644 --- a/model_software_appliance_distributable_list.go +++ b/model_software_appliance_distributable_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *SoftwareApplianceDistributableList) GetResultsOk() ([]SoftwareAppliance // HasResults returns a boolean if a field has been set. func (o *SoftwareApplianceDistributableList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *SoftwareApplianceDistributableList) UnmarshalJSON(data []byte) (err err "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *SoftwareApplianceDistributableList) UnmarshalJSON(data []byte) (err err } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type SoftwareApplianceDistributableListWithoutEmbeddedStruct struct { // The total number of 'software.ApplianceDistributable' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_software_appliance_distributable_response.go b/model_software_appliance_distributable_response.go index 0ec29b1905..32b3e3c813 100644 --- a/model_software_appliance_distributable_response.go +++ b/model_software_appliance_distributable_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_software_download_history.go b/model_software_download_history.go index 7e086ff1c7..379b5206ed 100644 --- a/model_software_download_history.go +++ b/model_software_download_history.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -93,6 +93,11 @@ func (o *SoftwareDownloadHistory) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "software.DownloadHistory" of the ClassId field. +func (o *SoftwareDownloadHistory) GetDefaultClassId() interface{} { + return "software.DownloadHistory" +} + // GetObjectType returns the ObjectType field value func (o *SoftwareDownloadHistory) GetObjectType() string { if o == nil { @@ -117,6 +122,11 @@ func (o *SoftwareDownloadHistory) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "software.DownloadHistory" of the ObjectType field. +func (o *SoftwareDownloadHistory) GetDefaultObjectType() interface{} { + return "software.DownloadHistory" +} + // GetName returns the Name field value if set, zero value otherwise. func (o *SoftwareDownloadHistory) GetName() string { if o == nil || IsNil(o.Name) { @@ -381,7 +391,13 @@ func (o SoftwareDownloadHistory) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Name) { toSerialize["Name"] = o.Name @@ -421,6 +437,13 @@ func (o *SoftwareDownloadHistory) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -430,11 +453,23 @@ func (o *SoftwareDownloadHistory) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type SoftwareDownloadHistoryWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_software_download_history_list.go b/model_software_download_history_list.go index 4e23d5429b..4e66fec415 100644 --- a/model_software_download_history_list.go +++ b/model_software_download_history_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *SoftwareDownloadHistoryList) GetResultsOk() ([]SoftwareDownloadHistory, // HasResults returns a boolean if a field has been set. func (o *SoftwareDownloadHistoryList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *SoftwareDownloadHistoryList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *SoftwareDownloadHistoryList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type SoftwareDownloadHistoryListWithoutEmbeddedStruct struct { // The total number of 'software.DownloadHistory' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_software_download_history_response.go b/model_software_download_history_response.go index 5d94450c2a..e13e27b8eb 100644 --- a/model_software_download_history_response.go +++ b/model_software_download_history_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_software_hci_bundle_distributable.go b/model_software_hci_bundle_distributable.go index 5326bdaa55..56ee093f23 100644 --- a/model_software_hci_bundle_distributable.go +++ b/model_software_hci_bundle_distributable.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -89,6 +89,11 @@ func (o *SoftwareHciBundleDistributable) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "software.HciBundleDistributable" of the ClassId field. +func (o *SoftwareHciBundleDistributable) GetDefaultClassId() interface{} { + return "software.HciBundleDistributable" +} + // GetObjectType returns the ObjectType field value func (o *SoftwareHciBundleDistributable) GetObjectType() string { if o == nil { @@ -113,6 +118,11 @@ func (o *SoftwareHciBundleDistributable) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "software.HciBundleDistributable" of the ObjectType field. +func (o *SoftwareHciBundleDistributable) GetDefaultObjectType() interface{} { + return "software.HciBundleDistributable" +} + // GetCatalog returns the Catalog field value if set, zero value otherwise (both if not set or set to explicit null). func (o *SoftwareHciBundleDistributable) GetCatalog() SoftwarerepositoryCatalogRelationship { if o == nil || IsNil(o.Catalog.Get()) { @@ -177,7 +187,7 @@ func (o *SoftwareHciBundleDistributable) GetImagesOk() ([]SoftwareHciDistributab // HasImages returns a boolean if a field has been set. func (o *SoftwareHciBundleDistributable) HasImages() bool { - if o != nil && IsNil(o.Images) { + if o != nil && !IsNil(o.Images) { return true } @@ -207,7 +217,13 @@ func (o SoftwareHciBundleDistributable) ToMap() (map[string]interface{}, error) if errFirmwareBaseDistributable != nil { return map[string]interface{}{}, errFirmwareBaseDistributable } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.Catalog.IsSet() { toSerialize["Catalog"] = o.Catalog.Get() @@ -232,6 +248,13 @@ func (o *SoftwareHciBundleDistributable) UnmarshalJSON(data []byte) (err error) "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -241,11 +264,23 @@ func (o *SoftwareHciBundleDistributable) UnmarshalJSON(data []byte) (err error) } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type SoftwareHciBundleDistributableWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_software_hci_bundle_distributable_list.go b/model_software_hci_bundle_distributable_list.go index 7b990c4c44..8860a2602f 100644 --- a/model_software_hci_bundle_distributable_list.go +++ b/model_software_hci_bundle_distributable_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *SoftwareHciBundleDistributableList) GetResultsOk() ([]SoftwareHciBundle // HasResults returns a boolean if a field has been set. func (o *SoftwareHciBundleDistributableList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *SoftwareHciBundleDistributableList) UnmarshalJSON(data []byte) (err err "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *SoftwareHciBundleDistributableList) UnmarshalJSON(data []byte) (err err } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type SoftwareHciBundleDistributableListWithoutEmbeddedStruct struct { // The total number of 'software.HciBundleDistributable' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_software_hci_bundle_distributable_response.go b/model_software_hci_bundle_distributable_response.go index 895d0c43e7..c7572f1267 100644 --- a/model_software_hci_bundle_distributable_response.go +++ b/model_software_hci_bundle_distributable_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_software_hci_distributable.go b/model_software_hci_distributable.go index a33933d2d6..099ee8e71d 100644 --- a/model_software_hci_distributable.go +++ b/model_software_hci_distributable.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -89,6 +89,11 @@ func (o *SoftwareHciDistributable) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "software.HciDistributable" of the ClassId field. +func (o *SoftwareHciDistributable) GetDefaultClassId() interface{} { + return "software.HciDistributable" +} + // GetObjectType returns the ObjectType field value func (o *SoftwareHciDistributable) GetObjectType() string { if o == nil { @@ -113,6 +118,11 @@ func (o *SoftwareHciDistributable) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "software.HciDistributable" of the ObjectType field. +func (o *SoftwareHciDistributable) GetDefaultObjectType() interface{} { + return "software.HciDistributable" +} + // GetMetaInfo returns the MetaInfo field value if set, zero value otherwise (both if not set or set to explicit null). func (o *SoftwareHciDistributable) GetMetaInfo() interface{} { if o == nil { @@ -134,7 +144,7 @@ func (o *SoftwareHciDistributable) GetMetaInfoOk() (*interface{}, bool) { // HasMetaInfo returns a boolean if a field has been set. func (o *SoftwareHciDistributable) HasMetaInfo() bool { - if o != nil && IsNil(o.MetaInfo) { + if o != nil && !IsNil(o.MetaInfo) { return true } @@ -207,7 +217,13 @@ func (o SoftwareHciDistributable) ToMap() (map[string]interface{}, error) { if errFirmwareBaseDistributable != nil { return map[string]interface{}{}, errFirmwareBaseDistributable } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.MetaInfo != nil { toSerialize["MetaInfo"] = o.MetaInfo @@ -232,6 +248,13 @@ func (o *SoftwareHciDistributable) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -241,11 +264,23 @@ func (o *SoftwareHciDistributable) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type SoftwareHciDistributableWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_software_hci_distributable_list.go b/model_software_hci_distributable_list.go index 81b26a5a83..1799eba976 100644 --- a/model_software_hci_distributable_list.go +++ b/model_software_hci_distributable_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *SoftwareHciDistributableList) GetResultsOk() ([]SoftwareHciDistributabl // HasResults returns a boolean if a field has been set. func (o *SoftwareHciDistributableList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *SoftwareHciDistributableList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *SoftwareHciDistributableList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type SoftwareHciDistributableListWithoutEmbeddedStruct struct { // The total number of 'software.HciDistributable' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_software_hci_distributable_relationship.go b/model_software_hci_distributable_relationship.go index 6480c95890..30c982905f 100644 --- a/model_software_hci_distributable_relationship.go +++ b/model_software_hci_distributable_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_software_hci_distributable_response.go b/model_software_hci_distributable_response.go index 3e6ea42141..13ff9ddfcc 100644 --- a/model_software_hci_distributable_response.go +++ b/model_software_hci_distributable_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_software_hcl_meta.go b/model_software_hcl_meta.go index dc149b4afe..d8928078ec 100644 --- a/model_software_hcl_meta.go +++ b/model_software_hcl_meta.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -93,6 +93,11 @@ func (o *SoftwareHclMeta) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "software.HclMeta" of the ClassId field. +func (o *SoftwareHclMeta) GetDefaultClassId() interface{} { + return "software.HclMeta" +} + // GetObjectType returns the ObjectType field value func (o *SoftwareHclMeta) GetObjectType() string { if o == nil { @@ -117,6 +122,11 @@ func (o *SoftwareHclMeta) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "software.HclMeta" of the ObjectType field. +func (o *SoftwareHclMeta) GetDefaultObjectType() interface{} { + return "software.HclMeta" +} + // GetContentType returns the ContentType field value if set, zero value otherwise. func (o *SoftwareHclMeta) GetContentType() string { if o == nil || IsNil(o.ContentType) { @@ -210,7 +220,13 @@ func (o SoftwareHclMeta) ToMap() (map[string]interface{}, error) { if errFirmwareBaseDistributable != nil { return map[string]interface{}{}, errFirmwareBaseDistributable } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.ContentType) { toSerialize["ContentType"] = o.ContentType @@ -235,6 +251,13 @@ func (o *SoftwareHclMeta) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -244,11 +267,23 @@ func (o *SoftwareHclMeta) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type SoftwareHclMetaWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_software_hcl_meta_list.go b/model_software_hcl_meta_list.go index 2de056a388..bf18827d74 100644 --- a/model_software_hcl_meta_list.go +++ b/model_software_hcl_meta_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *SoftwareHclMetaList) GetResultsOk() ([]SoftwareHclMeta, bool) { // HasResults returns a boolean if a field has been set. func (o *SoftwareHclMetaList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *SoftwareHclMetaList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *SoftwareHclMetaList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type SoftwareHclMetaListWithoutEmbeddedStruct struct { // The total number of 'software.HclMeta' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_software_hcl_meta_response.go b/model_software_hcl_meta_response.go index dd123a11ad..31e89525a7 100644 --- a/model_software_hcl_meta_response.go +++ b/model_software_hcl_meta_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_software_hyperflex_bundle_distributable.go b/model_software_hyperflex_bundle_distributable.go index 308987f226..ad3689a3f4 100644 --- a/model_software_hyperflex_bundle_distributable.go +++ b/model_software_hyperflex_bundle_distributable.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -89,6 +89,11 @@ func (o *SoftwareHyperflexBundleDistributable) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "software.HyperflexBundleDistributable" of the ClassId field. +func (o *SoftwareHyperflexBundleDistributable) GetDefaultClassId() interface{} { + return "software.HyperflexBundleDistributable" +} + // GetObjectType returns the ObjectType field value func (o *SoftwareHyperflexBundleDistributable) GetObjectType() string { if o == nil { @@ -113,6 +118,11 @@ func (o *SoftwareHyperflexBundleDistributable) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "software.HyperflexBundleDistributable" of the ObjectType field. +func (o *SoftwareHyperflexBundleDistributable) GetDefaultObjectType() interface{} { + return "software.HyperflexBundleDistributable" +} + // GetCatalog returns the Catalog field value if set, zero value otherwise (both if not set or set to explicit null). func (o *SoftwareHyperflexBundleDistributable) GetCatalog() SoftwarerepositoryCatalogRelationship { if o == nil || IsNil(o.Catalog.Get()) { @@ -177,7 +187,7 @@ func (o *SoftwareHyperflexBundleDistributable) GetImagesOk() ([]SoftwareHyperfle // HasImages returns a boolean if a field has been set. func (o *SoftwareHyperflexBundleDistributable) HasImages() bool { - if o != nil && IsNil(o.Images) { + if o != nil && !IsNil(o.Images) { return true } @@ -207,7 +217,13 @@ func (o SoftwareHyperflexBundleDistributable) ToMap() (map[string]interface{}, e if errFirmwareBaseDistributable != nil { return map[string]interface{}{}, errFirmwareBaseDistributable } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.Catalog.IsSet() { toSerialize["Catalog"] = o.Catalog.Get() @@ -232,6 +248,13 @@ func (o *SoftwareHyperflexBundleDistributable) UnmarshalJSON(data []byte) (err e "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -241,11 +264,23 @@ func (o *SoftwareHyperflexBundleDistributable) UnmarshalJSON(data []byte) (err e } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type SoftwareHyperflexBundleDistributableWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_software_hyperflex_bundle_distributable_list.go b/model_software_hyperflex_bundle_distributable_list.go index c709d2e0d6..9af5c0de30 100644 --- a/model_software_hyperflex_bundle_distributable_list.go +++ b/model_software_hyperflex_bundle_distributable_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *SoftwareHyperflexBundleDistributableList) GetResultsOk() ([]SoftwareHyp // HasResults returns a boolean if a field has been set. func (o *SoftwareHyperflexBundleDistributableList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *SoftwareHyperflexBundleDistributableList) UnmarshalJSON(data []byte) (e "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *SoftwareHyperflexBundleDistributableList) UnmarshalJSON(data []byte) (e } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type SoftwareHyperflexBundleDistributableListWithoutEmbeddedStruct struct { // The total number of 'software.HyperflexBundleDistributable' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_software_hyperflex_bundle_distributable_response.go b/model_software_hyperflex_bundle_distributable_response.go index 2a3294b321..5c3ccc4607 100644 --- a/model_software_hyperflex_bundle_distributable_response.go +++ b/model_software_hyperflex_bundle_distributable_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_software_hyperflex_distributable.go b/model_software_hyperflex_distributable.go index 9c37bce6ef..7daf2e98a6 100644 --- a/model_software_hyperflex_distributable.go +++ b/model_software_hyperflex_distributable.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -87,6 +87,11 @@ func (o *SoftwareHyperflexDistributable) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "software.HyperflexDistributable" of the ClassId field. +func (o *SoftwareHyperflexDistributable) GetDefaultClassId() interface{} { + return "software.HyperflexDistributable" +} + // GetObjectType returns the ObjectType field value func (o *SoftwareHyperflexDistributable) GetObjectType() string { if o == nil { @@ -111,6 +116,11 @@ func (o *SoftwareHyperflexDistributable) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "software.HyperflexDistributable" of the ObjectType field. +func (o *SoftwareHyperflexDistributable) GetDefaultObjectType() interface{} { + return "software.HyperflexDistributable" +} + // GetCatalog returns the Catalog field value if set, zero value otherwise (both if not set or set to explicit null). func (o *SoftwareHyperflexDistributable) GetCatalog() SoftwarerepositoryCatalogRelationship { if o == nil || IsNil(o.Catalog.Get()) { @@ -172,7 +182,13 @@ func (o SoftwareHyperflexDistributable) ToMap() (map[string]interface{}, error) if errFirmwareBaseDistributable != nil { return map[string]interface{}{}, errFirmwareBaseDistributable } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.Catalog.IsSet() { toSerialize["Catalog"] = o.Catalog.Get() @@ -194,6 +210,13 @@ func (o *SoftwareHyperflexDistributable) UnmarshalJSON(data []byte) (err error) "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -203,11 +226,23 @@ func (o *SoftwareHyperflexDistributable) UnmarshalJSON(data []byte) (err error) } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type SoftwareHyperflexDistributableWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_software_hyperflex_distributable_list.go b/model_software_hyperflex_distributable_list.go index d5380ce89e..d2c63c66d6 100644 --- a/model_software_hyperflex_distributable_list.go +++ b/model_software_hyperflex_distributable_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *SoftwareHyperflexDistributableList) GetResultsOk() ([]SoftwareHyperflex // HasResults returns a boolean if a field has been set. func (o *SoftwareHyperflexDistributableList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *SoftwareHyperflexDistributableList) UnmarshalJSON(data []byte) (err err "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *SoftwareHyperflexDistributableList) UnmarshalJSON(data []byte) (err err } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type SoftwareHyperflexDistributableListWithoutEmbeddedStruct struct { // The total number of 'software.HyperflexDistributable' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_software_hyperflex_distributable_relationship.go b/model_software_hyperflex_distributable_relationship.go index 6080c9f294..ff99f356f6 100644 --- a/model_software_hyperflex_distributable_relationship.go +++ b/model_software_hyperflex_distributable_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_software_hyperflex_distributable_response.go b/model_software_hyperflex_distributable_response.go index 60896cb52e..064f08c271 100644 --- a/model_software_hyperflex_distributable_response.go +++ b/model_software_hyperflex_distributable_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_software_iks_bundle_distributable.go b/model_software_iks_bundle_distributable.go index cc269a2aae..f92b6d9e7b 100644 --- a/model_software_iks_bundle_distributable.go +++ b/model_software_iks_bundle_distributable.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -89,6 +89,11 @@ func (o *SoftwareIksBundleDistributable) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "software.IksBundleDistributable" of the ClassId field. +func (o *SoftwareIksBundleDistributable) GetDefaultClassId() interface{} { + return "software.IksBundleDistributable" +} + // GetObjectType returns the ObjectType field value func (o *SoftwareIksBundleDistributable) GetObjectType() string { if o == nil { @@ -113,6 +118,11 @@ func (o *SoftwareIksBundleDistributable) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "software.IksBundleDistributable" of the ObjectType field. +func (o *SoftwareIksBundleDistributable) GetDefaultObjectType() interface{} { + return "software.IksBundleDistributable" +} + // GetCatalog returns the Catalog field value if set, zero value otherwise (both if not set or set to explicit null). func (o *SoftwareIksBundleDistributable) GetCatalog() SoftwarerepositoryCatalogRelationship { if o == nil || IsNil(o.Catalog.Get()) { @@ -177,7 +187,7 @@ func (o *SoftwareIksBundleDistributable) GetImagesOk() ([]SoftwareSolutionDistri // HasImages returns a boolean if a field has been set. func (o *SoftwareIksBundleDistributable) HasImages() bool { - if o != nil && IsNil(o.Images) { + if o != nil && !IsNil(o.Images) { return true } @@ -207,7 +217,13 @@ func (o SoftwareIksBundleDistributable) ToMap() (map[string]interface{}, error) if errFirmwareBaseDistributable != nil { return map[string]interface{}{}, errFirmwareBaseDistributable } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.Catalog.IsSet() { toSerialize["Catalog"] = o.Catalog.Get() @@ -232,6 +248,13 @@ func (o *SoftwareIksBundleDistributable) UnmarshalJSON(data []byte) (err error) "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -241,11 +264,23 @@ func (o *SoftwareIksBundleDistributable) UnmarshalJSON(data []byte) (err error) } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type SoftwareIksBundleDistributableWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_software_iks_bundle_distributable_list.go b/model_software_iks_bundle_distributable_list.go index 680024e14a..890378f402 100644 --- a/model_software_iks_bundle_distributable_list.go +++ b/model_software_iks_bundle_distributable_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *SoftwareIksBundleDistributableList) GetResultsOk() ([]SoftwareIksBundle // HasResults returns a boolean if a field has been set. func (o *SoftwareIksBundleDistributableList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *SoftwareIksBundleDistributableList) UnmarshalJSON(data []byte) (err err "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *SoftwareIksBundleDistributableList) UnmarshalJSON(data []byte) (err err } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type SoftwareIksBundleDistributableListWithoutEmbeddedStruct struct { // The total number of 'software.IksBundleDistributable' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_software_iks_bundle_distributable_response.go b/model_software_iks_bundle_distributable_response.go index e4f16625b3..0d03855ed1 100644 --- a/model_software_iks_bundle_distributable_response.go +++ b/model_software_iks_bundle_distributable_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_software_release_meta.go b/model_software_release_meta.go index 4854f86a7a..3fe4be4646 100644 --- a/model_software_release_meta.go +++ b/model_software_release_meta.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -90,6 +90,11 @@ func (o *SoftwareReleaseMeta) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "software.ReleaseMeta" of the ClassId field. +func (o *SoftwareReleaseMeta) GetDefaultClassId() interface{} { + return "software.ReleaseMeta" +} + // GetObjectType returns the ObjectType field value func (o *SoftwareReleaseMeta) GetObjectType() string { if o == nil { @@ -114,6 +119,11 @@ func (o *SoftwareReleaseMeta) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "software.ReleaseMeta" of the ObjectType field. +func (o *SoftwareReleaseMeta) GetDefaultObjectType() interface{} { + return "software.ReleaseMeta" +} + // GetImageType returns the ImageType field value if set, zero value otherwise. func (o *SoftwareReleaseMeta) GetImageType() string { if o == nil || IsNil(o.ImageType) { @@ -346,7 +356,13 @@ func (o SoftwareReleaseMeta) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.ImageType) { toSerialize["ImageType"] = o.ImageType @@ -383,6 +399,13 @@ func (o *SoftwareReleaseMeta) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -392,11 +415,23 @@ func (o *SoftwareReleaseMeta) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type SoftwareReleaseMetaWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_software_release_meta_list.go b/model_software_release_meta_list.go index c88231fb01..4907e8a950 100644 --- a/model_software_release_meta_list.go +++ b/model_software_release_meta_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *SoftwareReleaseMetaList) GetResultsOk() ([]SoftwareReleaseMeta, bool) { // HasResults returns a boolean if a field has been set. func (o *SoftwareReleaseMetaList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *SoftwareReleaseMetaList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *SoftwareReleaseMetaList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type SoftwareReleaseMetaListWithoutEmbeddedStruct struct { // The total number of 'software.ReleaseMeta' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_software_release_meta_response.go b/model_software_release_meta_response.go index 6149ac71f5..4bc7fe6fd8 100644 --- a/model_software_release_meta_response.go +++ b/model_software_release_meta_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_software_solution_distributable.go b/model_software_solution_distributable.go index e272ab3e38..7268bda76b 100644 --- a/model_software_solution_distributable.go +++ b/model_software_solution_distributable.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -97,6 +97,11 @@ func (o *SoftwareSolutionDistributable) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "software.SolutionDistributable" of the ClassId field. +func (o *SoftwareSolutionDistributable) GetDefaultClassId() interface{} { + return "software.SolutionDistributable" +} + // GetObjectType returns the ObjectType field value func (o *SoftwareSolutionDistributable) GetObjectType() string { if o == nil { @@ -121,6 +126,11 @@ func (o *SoftwareSolutionDistributable) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "software.SolutionDistributable" of the ObjectType field. +func (o *SoftwareSolutionDistributable) GetDefaultObjectType() interface{} { + return "software.SolutionDistributable" +} + // GetFilePath returns the FilePath field value if set, zero value otherwise. func (o *SoftwareSolutionDistributable) GetFilePath() string { if o == nil || IsNil(o.FilePath) { @@ -278,7 +288,13 @@ func (o SoftwareSolutionDistributable) ToMap() (map[string]interface{}, error) { if errFirmwareBaseDistributable != nil { return map[string]interface{}{}, errFirmwareBaseDistributable } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.FilePath) { toSerialize["FilePath"] = o.FilePath @@ -309,6 +325,13 @@ func (o *SoftwareSolutionDistributable) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -318,11 +341,23 @@ func (o *SoftwareSolutionDistributable) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type SoftwareSolutionDistributableWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_software_solution_distributable_list.go b/model_software_solution_distributable_list.go index 076a03ed14..daa4aa1e4a 100644 --- a/model_software_solution_distributable_list.go +++ b/model_software_solution_distributable_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *SoftwareSolutionDistributableList) GetResultsOk() ([]SoftwareSolutionDi // HasResults returns a boolean if a field has been set. func (o *SoftwareSolutionDistributableList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *SoftwareSolutionDistributableList) UnmarshalJSON(data []byte) (err erro "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *SoftwareSolutionDistributableList) UnmarshalJSON(data []byte) (err erro } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type SoftwareSolutionDistributableListWithoutEmbeddedStruct struct { // The total number of 'software.SolutionDistributable' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_software_solution_distributable_relationship.go b/model_software_solution_distributable_relationship.go index 11197f3aae..efcb2d16a3 100644 --- a/model_software_solution_distributable_relationship.go +++ b/model_software_solution_distributable_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_software_solution_distributable_response.go b/model_software_solution_distributable_response.go index 4b48610367..16744abf48 100644 --- a/model_software_solution_distributable_response.go +++ b/model_software_solution_distributable_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_software_ucsd_bundle_distributable.go b/model_software_ucsd_bundle_distributable.go index 7ad5b4094e..e96a6df933 100644 --- a/model_software_ucsd_bundle_distributable.go +++ b/model_software_ucsd_bundle_distributable.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -89,6 +89,11 @@ func (o *SoftwareUcsdBundleDistributable) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "software.UcsdBundleDistributable" of the ClassId field. +func (o *SoftwareUcsdBundleDistributable) GetDefaultClassId() interface{} { + return "software.UcsdBundleDistributable" +} + // GetObjectType returns the ObjectType field value func (o *SoftwareUcsdBundleDistributable) GetObjectType() string { if o == nil { @@ -113,6 +118,11 @@ func (o *SoftwareUcsdBundleDistributable) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "software.UcsdBundleDistributable" of the ObjectType field. +func (o *SoftwareUcsdBundleDistributable) GetDefaultObjectType() interface{} { + return "software.UcsdBundleDistributable" +} + // GetCatalog returns the Catalog field value if set, zero value otherwise (both if not set or set to explicit null). func (o *SoftwareUcsdBundleDistributable) GetCatalog() SoftwarerepositoryCatalogRelationship { if o == nil || IsNil(o.Catalog.Get()) { @@ -177,7 +187,7 @@ func (o *SoftwareUcsdBundleDistributable) GetImagesOk() ([]SoftwareUcsdDistribut // HasImages returns a boolean if a field has been set. func (o *SoftwareUcsdBundleDistributable) HasImages() bool { - if o != nil && IsNil(o.Images) { + if o != nil && !IsNil(o.Images) { return true } @@ -207,7 +217,13 @@ func (o SoftwareUcsdBundleDistributable) ToMap() (map[string]interface{}, error) if errFirmwareBaseDistributable != nil { return map[string]interface{}{}, errFirmwareBaseDistributable } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.Catalog.IsSet() { toSerialize["Catalog"] = o.Catalog.Get() @@ -232,6 +248,13 @@ func (o *SoftwareUcsdBundleDistributable) UnmarshalJSON(data []byte) (err error) "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -241,11 +264,23 @@ func (o *SoftwareUcsdBundleDistributable) UnmarshalJSON(data []byte) (err error) } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type SoftwareUcsdBundleDistributableWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_software_ucsd_bundle_distributable_list.go b/model_software_ucsd_bundle_distributable_list.go index a35234914d..bfb34f4f50 100644 --- a/model_software_ucsd_bundle_distributable_list.go +++ b/model_software_ucsd_bundle_distributable_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *SoftwareUcsdBundleDistributableList) GetResultsOk() ([]SoftwareUcsdBund // HasResults returns a boolean if a field has been set. func (o *SoftwareUcsdBundleDistributableList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *SoftwareUcsdBundleDistributableList) UnmarshalJSON(data []byte) (err er "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *SoftwareUcsdBundleDistributableList) UnmarshalJSON(data []byte) (err er } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type SoftwareUcsdBundleDistributableListWithoutEmbeddedStruct struct { // The total number of 'software.UcsdBundleDistributable' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_software_ucsd_bundle_distributable_response.go b/model_software_ucsd_bundle_distributable_response.go index d14529679b..64e772918a 100644 --- a/model_software_ucsd_bundle_distributable_response.go +++ b/model_software_ucsd_bundle_distributable_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_software_ucsd_distributable.go b/model_software_ucsd_distributable.go index 88d0f09d0b..9d5c58b6f4 100644 --- a/model_software_ucsd_distributable.go +++ b/model_software_ucsd_distributable.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -87,6 +87,11 @@ func (o *SoftwareUcsdDistributable) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "software.UcsdDistributable" of the ClassId field. +func (o *SoftwareUcsdDistributable) GetDefaultClassId() interface{} { + return "software.UcsdDistributable" +} + // GetObjectType returns the ObjectType field value func (o *SoftwareUcsdDistributable) GetObjectType() string { if o == nil { @@ -111,6 +116,11 @@ func (o *SoftwareUcsdDistributable) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "software.UcsdDistributable" of the ObjectType field. +func (o *SoftwareUcsdDistributable) GetDefaultObjectType() interface{} { + return "software.UcsdDistributable" +} + // GetCatalog returns the Catalog field value if set, zero value otherwise (both if not set or set to explicit null). func (o *SoftwareUcsdDistributable) GetCatalog() SoftwarerepositoryCatalogRelationship { if o == nil || IsNil(o.Catalog.Get()) { @@ -172,7 +182,13 @@ func (o SoftwareUcsdDistributable) ToMap() (map[string]interface{}, error) { if errFirmwareBaseDistributable != nil { return map[string]interface{}{}, errFirmwareBaseDistributable } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.Catalog.IsSet() { toSerialize["Catalog"] = o.Catalog.Get() @@ -194,6 +210,13 @@ func (o *SoftwareUcsdDistributable) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -203,11 +226,23 @@ func (o *SoftwareUcsdDistributable) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type SoftwareUcsdDistributableWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_software_ucsd_distributable_list.go b/model_software_ucsd_distributable_list.go index 153ddf4918..98359f2654 100644 --- a/model_software_ucsd_distributable_list.go +++ b/model_software_ucsd_distributable_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *SoftwareUcsdDistributableList) GetResultsOk() ([]SoftwareUcsdDistributa // HasResults returns a boolean if a field has been set. func (o *SoftwareUcsdDistributableList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *SoftwareUcsdDistributableList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *SoftwareUcsdDistributableList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type SoftwareUcsdDistributableListWithoutEmbeddedStruct struct { // The total number of 'software.UcsdDistributable' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_software_ucsd_distributable_relationship.go b/model_software_ucsd_distributable_relationship.go index a2a0e037c4..18e84dcafb 100644 --- a/model_software_ucsd_distributable_relationship.go +++ b/model_software_ucsd_distributable_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_software_ucsd_distributable_response.go b/model_software_ucsd_distributable_response.go index a4b9b395ef..43be596c56 100644 --- a/model_software_ucsd_distributable_response.go +++ b/model_software_ucsd_distributable_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_softwarerepository_appliance_upload.go b/model_softwarerepository_appliance_upload.go index eab5e100bf..d031d96afa 100644 --- a/model_softwarerepository_appliance_upload.go +++ b/model_softwarerepository_appliance_upload.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -83,6 +83,10 @@ func (o *SoftwarerepositoryApplianceUpload) UnmarshalJSON(data []byte) (err erro "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -92,11 +96,23 @@ func (o *SoftwarerepositoryApplianceUpload) UnmarshalJSON(data []byte) (err erro } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type SoftwarerepositoryApplianceUploadWithoutEmbeddedStruct struct { } diff --git a/model_softwarerepository_authorization.go b/model_softwarerepository_authorization.go index 249250e808..9b597a7e8f 100644 --- a/model_softwarerepository_authorization.go +++ b/model_softwarerepository_authorization.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -97,6 +97,11 @@ func (o *SoftwarerepositoryAuthorization) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "softwarerepository.Authorization" of the ClassId field. +func (o *SoftwarerepositoryAuthorization) GetDefaultClassId() interface{} { + return "softwarerepository.Authorization" +} + // GetObjectType returns the ObjectType field value func (o *SoftwarerepositoryAuthorization) GetObjectType() string { if o == nil { @@ -121,6 +126,11 @@ func (o *SoftwarerepositoryAuthorization) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "softwarerepository.Authorization" of the ObjectType field. +func (o *SoftwarerepositoryAuthorization) GetDefaultObjectType() interface{} { + return "softwarerepository.Authorization" +} + // GetIsAsdv4AlarmDismissed returns the IsAsdv4AlarmDismissed field value if set, zero value otherwise. func (o *SoftwarerepositoryAuthorization) GetIsAsdv4AlarmDismissed() bool { if o == nil || IsNil(o.IsAsdv4AlarmDismissed) { @@ -374,7 +384,13 @@ func (o SoftwarerepositoryAuthorization) ToMap() (map[string]interface{}, error) if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.IsAsdv4AlarmDismissed) { toSerialize["IsAsdv4AlarmDismissed"] = o.IsAsdv4AlarmDismissed @@ -414,6 +430,13 @@ func (o *SoftwarerepositoryAuthorization) UnmarshalJSON(data []byte) (err error) "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -423,11 +446,23 @@ func (o *SoftwarerepositoryAuthorization) UnmarshalJSON(data []byte) (err error) } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type SoftwarerepositoryAuthorizationWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_softwarerepository_authorization_list.go b/model_softwarerepository_authorization_list.go index 61cc3ef6a1..e8f24b457e 100644 --- a/model_softwarerepository_authorization_list.go +++ b/model_softwarerepository_authorization_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *SoftwarerepositoryAuthorizationList) GetResultsOk() ([]Softwarereposito // HasResults returns a boolean if a field has been set. func (o *SoftwarerepositoryAuthorizationList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *SoftwarerepositoryAuthorizationList) UnmarshalJSON(data []byte) (err er "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *SoftwarerepositoryAuthorizationList) UnmarshalJSON(data []byte) (err er } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type SoftwarerepositoryAuthorizationListWithoutEmbeddedStruct struct { // The total number of 'softwarerepository.Authorization' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_softwarerepository_authorization_response.go b/model_softwarerepository_authorization_response.go index e27bf0c65d..2d80d079ba 100644 --- a/model_softwarerepository_authorization_response.go +++ b/model_softwarerepository_authorization_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_softwarerepository_cached_image.go b/model_softwarerepository_cached_image.go index 995bbe5577..a6411c4342 100644 --- a/model_softwarerepository_cached_image.go +++ b/model_softwarerepository_cached_image.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,6 +104,11 @@ func (o *SoftwarerepositoryCachedImage) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "softwarerepository.CachedImage" of the ClassId field. +func (o *SoftwarerepositoryCachedImage) GetDefaultClassId() interface{} { + return "softwarerepository.CachedImage" +} + // GetObjectType returns the ObjectType field value func (o *SoftwarerepositoryCachedImage) GetObjectType() string { if o == nil { @@ -128,6 +133,11 @@ func (o *SoftwarerepositoryCachedImage) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "softwarerepository.CachedImage" of the ObjectType field. +func (o *SoftwarerepositoryCachedImage) GetDefaultObjectType() interface{} { + return "softwarerepository.CachedImage" +} + // GetAction returns the Action field value if set, zero value otherwise. func (o *SoftwarerepositoryCachedImage) GetAction() string { if o == nil || IsNil(o.Action) { @@ -373,7 +383,7 @@ func (o *SoftwarerepositoryCachedImage) GetRegisteredWorkflowsOk() ([]string, bo // HasRegisteredWorkflows returns a boolean if a field has been set. func (o *SoftwarerepositoryCachedImage) HasRegisteredWorkflows() bool { - if o != nil && IsNil(o.RegisteredWorkflows) { + if o != nil && !IsNil(o.RegisteredWorkflows) { return true } @@ -521,7 +531,13 @@ func (o SoftwarerepositoryCachedImage) ToMap() (map[string]interface{}, error) { if errConnectorDownloadStatus != nil { return map[string]interface{}{}, errConnectorDownloadStatus } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Action) { toSerialize["Action"] = o.Action @@ -573,6 +589,13 @@ func (o *SoftwarerepositoryCachedImage) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -582,11 +605,23 @@ func (o *SoftwarerepositoryCachedImage) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type SoftwarerepositoryCachedImageWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_softwarerepository_cached_image_list.go b/model_softwarerepository_cached_image_list.go index 77e20f351e..3cbdb95ae8 100644 --- a/model_softwarerepository_cached_image_list.go +++ b/model_softwarerepository_cached_image_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *SoftwarerepositoryCachedImageList) GetResultsOk() ([]Softwarerepository // HasResults returns a boolean if a field has been set. func (o *SoftwarerepositoryCachedImageList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *SoftwarerepositoryCachedImageList) UnmarshalJSON(data []byte) (err erro "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *SoftwarerepositoryCachedImageList) UnmarshalJSON(data []byte) (err erro } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type SoftwarerepositoryCachedImageListWithoutEmbeddedStruct struct { // The total number of 'softwarerepository.CachedImage' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_softwarerepository_cached_image_response.go b/model_softwarerepository_cached_image_response.go index a8cc3e5f11..f3b73a4c16 100644 --- a/model_softwarerepository_cached_image_response.go +++ b/model_softwarerepository_cached_image_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_softwarerepository_catalog.go b/model_softwarerepository_catalog.go index aea9a5a0d6..8f47810a2c 100644 --- a/model_softwarerepository_catalog.go +++ b/model_softwarerepository_catalog.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -86,6 +86,11 @@ func (o *SoftwarerepositoryCatalog) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "softwarerepository.Catalog" of the ClassId field. +func (o *SoftwarerepositoryCatalog) GetDefaultClassId() interface{} { + return "softwarerepository.Catalog" +} + // GetObjectType returns the ObjectType field value func (o *SoftwarerepositoryCatalog) GetObjectType() string { if o == nil { @@ -110,6 +115,11 @@ func (o *SoftwarerepositoryCatalog) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "softwarerepository.Catalog" of the ObjectType field. +func (o *SoftwarerepositoryCatalog) GetDefaultObjectType() interface{} { + return "softwarerepository.Catalog" +} + // GetIsImagePullFailure returns the IsImagePullFailure field value if set, zero value otherwise. func (o *SoftwarerepositoryCatalog) GetIsImagePullFailure() bool { if o == nil || IsNil(o.IsImagePullFailure) { @@ -278,7 +288,13 @@ func (o SoftwarerepositoryCatalog) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.IsImagePullFailure) { toSerialize["IsImagePullFailure"] = o.IsImagePullFailure @@ -309,6 +325,13 @@ func (o *SoftwarerepositoryCatalog) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -318,11 +341,23 @@ func (o *SoftwarerepositoryCatalog) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type SoftwarerepositoryCatalogWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_softwarerepository_catalog_list.go b/model_softwarerepository_catalog_list.go index d528655c52..3be7796c8e 100644 --- a/model_softwarerepository_catalog_list.go +++ b/model_softwarerepository_catalog_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *SoftwarerepositoryCatalogList) GetResultsOk() ([]SoftwarerepositoryCata // HasResults returns a boolean if a field has been set. func (o *SoftwarerepositoryCatalogList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *SoftwarerepositoryCatalogList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *SoftwarerepositoryCatalogList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type SoftwarerepositoryCatalogListWithoutEmbeddedStruct struct { // The total number of 'softwarerepository.Catalog' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_softwarerepository_catalog_relationship.go b/model_softwarerepository_catalog_relationship.go index 8ad030b407..4b4cb44463 100644 --- a/model_softwarerepository_catalog_relationship.go +++ b/model_softwarerepository_catalog_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_softwarerepository_catalog_response.go b/model_softwarerepository_catalog_response.go index 4823607c6b..3bf281cfe3 100644 --- a/model_softwarerepository_catalog_response.go +++ b/model_softwarerepository_catalog_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_softwarerepository_category_mapper.go b/model_softwarerepository_category_mapper.go index 5f471c9cc8..27ecb90402 100644 --- a/model_softwarerepository_category_mapper.go +++ b/model_softwarerepository_category_mapper.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -108,6 +108,11 @@ func (o *SoftwarerepositoryCategoryMapper) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "softwarerepository.CategoryMapper" of the ClassId field. +func (o *SoftwarerepositoryCategoryMapper) GetDefaultClassId() interface{} { + return "softwarerepository.CategoryMapper" +} + // GetObjectType returns the ObjectType field value func (o *SoftwarerepositoryCategoryMapper) GetObjectType() string { if o == nil { @@ -132,6 +137,11 @@ func (o *SoftwarerepositoryCategoryMapper) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "softwarerepository.CategoryMapper" of the ObjectType field. +func (o *SoftwarerepositoryCategoryMapper) GetDefaultObjectType() interface{} { + return "softwarerepository.CategoryMapper" +} + // GetCategory returns the Category field value if set, zero value otherwise. func (o *SoftwarerepositoryCategoryMapper) GetCategory() string { if o == nil || IsNil(o.Category) { @@ -377,7 +387,7 @@ func (o *SoftwarerepositoryCategoryMapper) GetSupportedModelsOk() ([]string, boo // HasSupportedModels returns a boolean if a field has been set. func (o *SoftwarerepositoryCategoryMapper) HasSupportedModels() bool { - if o != nil && IsNil(o.SupportedModels) { + if o != nil && !IsNil(o.SupportedModels) { return true } @@ -442,7 +452,7 @@ func (o *SoftwarerepositoryCategoryMapper) GetTagTypesOk() ([]string, bool) { // HasTagTypes returns a boolean if a field has been set. func (o *SoftwarerepositoryCategoryMapper) HasTagTypes() bool { - if o != nil && IsNil(o.TagTypes) { + if o != nil && !IsNil(o.TagTypes) { return true } @@ -504,7 +514,13 @@ func (o SoftwarerepositoryCategoryMapper) ToMap() (map[string]interface{}, error if errCapabilityCapability != nil { return map[string]interface{}{}, errCapabilityCapability } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Category) { toSerialize["Category"] = o.Category @@ -556,6 +572,13 @@ func (o *SoftwarerepositoryCategoryMapper) UnmarshalJSON(data []byte) (err error "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -565,11 +588,23 @@ func (o *SoftwarerepositoryCategoryMapper) UnmarshalJSON(data []byte) (err error } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type SoftwarerepositoryCategoryMapperWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_softwarerepository_category_mapper_list.go b/model_softwarerepository_category_mapper_list.go index dcce233b6f..575b281123 100644 --- a/model_softwarerepository_category_mapper_list.go +++ b/model_softwarerepository_category_mapper_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *SoftwarerepositoryCategoryMapperList) GetResultsOk() ([]Softwarereposit // HasResults returns a boolean if a field has been set. func (o *SoftwarerepositoryCategoryMapperList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *SoftwarerepositoryCategoryMapperList) UnmarshalJSON(data []byte) (err e "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *SoftwarerepositoryCategoryMapperList) UnmarshalJSON(data []byte) (err e } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type SoftwarerepositoryCategoryMapperListWithoutEmbeddedStruct struct { // The total number of 'softwarerepository.CategoryMapper' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_softwarerepository_category_mapper_model.go b/model_softwarerepository_category_mapper_model.go index 5cffa2d024..b992f66d6b 100644 --- a/model_softwarerepository_category_mapper_model.go +++ b/model_softwarerepository_category_mapper_model.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -93,6 +93,11 @@ func (o *SoftwarerepositoryCategoryMapperModel) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "softwarerepository.CategoryMapperModel" of the ClassId field. +func (o *SoftwarerepositoryCategoryMapperModel) GetDefaultClassId() interface{} { + return "softwarerepository.CategoryMapperModel" +} + // GetObjectType returns the ObjectType field value func (o *SoftwarerepositoryCategoryMapperModel) GetObjectType() string { if o == nil { @@ -117,6 +122,11 @@ func (o *SoftwarerepositoryCategoryMapperModel) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "softwarerepository.CategoryMapperModel" of the ObjectType field. +func (o *SoftwarerepositoryCategoryMapperModel) GetDefaultObjectType() interface{} { + return "softwarerepository.CategoryMapperModel" +} + // GetCategory returns the Category field value if set, zero value otherwise. func (o *SoftwarerepositoryCategoryMapperModel) GetCategory() string { if o == nil || IsNil(o.Category) { @@ -330,7 +340,7 @@ func (o *SoftwarerepositoryCategoryMapperModel) GetSupportedModelsOk() ([]string // HasSupportedModels returns a boolean if a field has been set. func (o *SoftwarerepositoryCategoryMapperModel) HasSupportedModels() bool { - if o != nil && IsNil(o.SupportedModels) { + if o != nil && !IsNil(o.SupportedModels) { return true } @@ -360,7 +370,13 @@ func (o SoftwarerepositoryCategoryMapperModel) ToMap() (map[string]interface{}, if errCapabilityCapability != nil { return map[string]interface{}{}, errCapabilityCapability } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Category) { toSerialize["Category"] = o.Category @@ -400,6 +416,13 @@ func (o *SoftwarerepositoryCategoryMapperModel) UnmarshalJSON(data []byte) (err "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -409,11 +432,23 @@ func (o *SoftwarerepositoryCategoryMapperModel) UnmarshalJSON(data []byte) (err } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type SoftwarerepositoryCategoryMapperModelWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_softwarerepository_category_mapper_model_list.go b/model_softwarerepository_category_mapper_model_list.go index 305fd488f4..ed7ac0f524 100644 --- a/model_softwarerepository_category_mapper_model_list.go +++ b/model_softwarerepository_category_mapper_model_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *SoftwarerepositoryCategoryMapperModelList) GetResultsOk() ([]Softwarere // HasResults returns a boolean if a field has been set. func (o *SoftwarerepositoryCategoryMapperModelList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *SoftwarerepositoryCategoryMapperModelList) UnmarshalJSON(data []byte) ( "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *SoftwarerepositoryCategoryMapperModelList) UnmarshalJSON(data []byte) ( } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type SoftwarerepositoryCategoryMapperModelListWithoutEmbeddedStruct struct { // The total number of 'softwarerepository.CategoryMapperModel' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_softwarerepository_category_mapper_model_response.go b/model_softwarerepository_category_mapper_model_response.go index 141c36a746..a0ff703912 100644 --- a/model_softwarerepository_category_mapper_model_response.go +++ b/model_softwarerepository_category_mapper_model_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_softwarerepository_category_mapper_response.go b/model_softwarerepository_category_mapper_response.go index 97e9fb8dbb..84c40f9ce9 100644 --- a/model_softwarerepository_category_mapper_response.go +++ b/model_softwarerepository_category_mapper_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_softwarerepository_category_support_constraint.go b/model_softwarerepository_category_support_constraint.go index 961a67257b..db2b3ef87a 100644 --- a/model_softwarerepository_category_support_constraint.go +++ b/model_softwarerepository_category_support_constraint.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -90,6 +90,11 @@ func (o *SoftwarerepositoryCategorySupportConstraint) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "softwarerepository.CategorySupportConstraint" of the ClassId field. +func (o *SoftwarerepositoryCategorySupportConstraint) GetDefaultClassId() interface{} { + return "softwarerepository.CategorySupportConstraint" +} + // GetObjectType returns the ObjectType field value func (o *SoftwarerepositoryCategorySupportConstraint) GetObjectType() string { if o == nil { @@ -114,6 +119,11 @@ func (o *SoftwarerepositoryCategorySupportConstraint) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "softwarerepository.CategorySupportConstraint" of the ObjectType field. +func (o *SoftwarerepositoryCategorySupportConstraint) GetDefaultObjectType() interface{} { + return "softwarerepository.CategorySupportConstraint" +} + // GetConstraintId returns the ConstraintId field value if set, zero value otherwise. func (o *SoftwarerepositoryCategorySupportConstraint) GetConstraintId() string { if o == nil || IsNil(o.ConstraintId) { @@ -167,7 +177,7 @@ func (o *SoftwarerepositoryCategorySupportConstraint) GetFilteredModelsOk() ([]S // HasFilteredModels returns a boolean if a field has been set. func (o *SoftwarerepositoryCategorySupportConstraint) HasFilteredModels() bool { - if o != nil && IsNil(o.FilteredModels) { + if o != nil && !IsNil(o.FilteredModels) { return true } @@ -296,7 +306,7 @@ func (o *SoftwarerepositoryCategorySupportConstraint) GetSupportedModelsOk() ([] // HasSupportedModels returns a boolean if a field has been set. func (o *SoftwarerepositoryCategorySupportConstraint) HasSupportedModels() bool { - if o != nil && IsNil(o.SupportedModels) { + if o != nil && !IsNil(o.SupportedModels) { return true } @@ -326,7 +336,13 @@ func (o SoftwarerepositoryCategorySupportConstraint) ToMap() (map[string]interfa if errCapabilityCapability != nil { return map[string]interface{}{}, errCapabilityCapability } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.ConstraintId) { toSerialize["ConstraintId"] = o.ConstraintId @@ -363,6 +379,13 @@ func (o *SoftwarerepositoryCategorySupportConstraint) UnmarshalJSON(data []byte) "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -372,11 +395,23 @@ func (o *SoftwarerepositoryCategorySupportConstraint) UnmarshalJSON(data []byte) } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type SoftwarerepositoryCategorySupportConstraintWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_softwarerepository_category_support_constraint_list.go b/model_softwarerepository_category_support_constraint_list.go index d070aa1db1..0ae2e20762 100644 --- a/model_softwarerepository_category_support_constraint_list.go +++ b/model_softwarerepository_category_support_constraint_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *SoftwarerepositoryCategorySupportConstraintList) GetResultsOk() ([]Soft // HasResults returns a boolean if a field has been set. func (o *SoftwarerepositoryCategorySupportConstraintList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *SoftwarerepositoryCategorySupportConstraintList) UnmarshalJSON(data []b "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *SoftwarerepositoryCategorySupportConstraintList) UnmarshalJSON(data []b } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type SoftwarerepositoryCategorySupportConstraintListWithoutEmbeddedStruct struct { // The total number of 'softwarerepository.CategorySupportConstraint' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_softwarerepository_category_support_constraint_response.go b/model_softwarerepository_category_support_constraint_response.go index 2c9cf24cb2..ae41128077 100644 --- a/model_softwarerepository_category_support_constraint_response.go +++ b/model_softwarerepository_category_support_constraint_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_softwarerepository_category_unsupported_models.go b/model_softwarerepository_category_unsupported_models.go index 66cff63143..2b0001d780 100644 --- a/model_softwarerepository_category_unsupported_models.go +++ b/model_softwarerepository_category_unsupported_models.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -83,6 +83,11 @@ func (o *SoftwarerepositoryCategoryUnsupportedModels) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "softwarerepository.CategoryUnsupportedModels" of the ClassId field. +func (o *SoftwarerepositoryCategoryUnsupportedModels) GetDefaultClassId() interface{} { + return "softwarerepository.CategoryUnsupportedModels" +} + // GetObjectType returns the ObjectType field value func (o *SoftwarerepositoryCategoryUnsupportedModels) GetObjectType() string { if o == nil { @@ -107,6 +112,11 @@ func (o *SoftwarerepositoryCategoryUnsupportedModels) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "softwarerepository.CategoryUnsupportedModels" of the ObjectType field. +func (o *SoftwarerepositoryCategoryUnsupportedModels) GetDefaultObjectType() interface{} { + return "softwarerepository.CategoryUnsupportedModels" +} + // GetMdfId returns the MdfId field value if set, zero value otherwise. func (o *SoftwarerepositoryCategoryUnsupportedModels) GetMdfId() string { if o == nil || IsNil(o.MdfId) { @@ -160,7 +170,7 @@ func (o *SoftwarerepositoryCategoryUnsupportedModels) GetModelConstraintOk() ([] // HasModelConstraint returns a boolean if a field has been set. func (o *SoftwarerepositoryCategoryUnsupportedModels) HasModelConstraint() bool { - if o != nil && IsNil(o.ModelConstraint) { + if o != nil && !IsNil(o.ModelConstraint) { return true } @@ -190,7 +200,13 @@ func (o SoftwarerepositoryCategoryUnsupportedModels) ToMap() (map[string]interfa if errCapabilityCapability != nil { return map[string]interface{}{}, errCapabilityCapability } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.MdfId) { toSerialize["MdfId"] = o.MdfId @@ -215,6 +231,13 @@ func (o *SoftwarerepositoryCategoryUnsupportedModels) UnmarshalJSON(data []byte) "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -224,11 +247,23 @@ func (o *SoftwarerepositoryCategoryUnsupportedModels) UnmarshalJSON(data []byte) } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type SoftwarerepositoryCategoryUnsupportedModelsWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_softwarerepository_category_unsupported_models_list.go b/model_softwarerepository_category_unsupported_models_list.go index b6867e1a9f..f6aa7ea8ec 100644 --- a/model_softwarerepository_category_unsupported_models_list.go +++ b/model_softwarerepository_category_unsupported_models_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *SoftwarerepositoryCategoryUnsupportedModelsList) GetResultsOk() ([]Soft // HasResults returns a boolean if a field has been set. func (o *SoftwarerepositoryCategoryUnsupportedModelsList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *SoftwarerepositoryCategoryUnsupportedModelsList) UnmarshalJSON(data []b "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *SoftwarerepositoryCategoryUnsupportedModelsList) UnmarshalJSON(data []b } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type SoftwarerepositoryCategoryUnsupportedModelsListWithoutEmbeddedStruct struct { // The total number of 'softwarerepository.CategoryUnsupportedModels' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_softwarerepository_category_unsupported_models_response.go b/model_softwarerepository_category_unsupported_models_response.go index cf300a9282..4ddc1654c7 100644 --- a/model_softwarerepository_category_unsupported_models_response.go +++ b/model_softwarerepository_category_unsupported_models_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_softwarerepository_cifs_server.go b/model_softwarerepository_cifs_server.go index 6b11ef3fe7..e67b1fe217 100644 --- a/model_softwarerepository_cifs_server.go +++ b/model_softwarerepository_cifs_server.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -96,6 +96,11 @@ func (o *SoftwarerepositoryCifsServer) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "softwarerepository.CifsServer" of the ClassId field. +func (o *SoftwarerepositoryCifsServer) GetDefaultClassId() interface{} { + return "softwarerepository.CifsServer" +} + // GetObjectType returns the ObjectType field value func (o *SoftwarerepositoryCifsServer) GetObjectType() string { if o == nil { @@ -120,6 +125,11 @@ func (o *SoftwarerepositoryCifsServer) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "softwarerepository.CifsServer" of the ObjectType field. +func (o *SoftwarerepositoryCifsServer) GetDefaultObjectType() interface{} { + return "softwarerepository.CifsServer" +} + // GetFileLocation returns the FileLocation field value if set, zero value otherwise. func (o *SoftwarerepositoryCifsServer) GetFileLocation() string { if o == nil || IsNil(o.FileLocation) { @@ -394,7 +404,13 @@ func (o SoftwarerepositoryCifsServer) ToMap() (map[string]interface{}, error) { if errSoftwarerepositoryFileServer != nil { return map[string]interface{}{}, errSoftwarerepositoryFileServer } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.FileLocation) { toSerialize["FileLocation"] = o.FileLocation @@ -437,6 +453,13 @@ func (o *SoftwarerepositoryCifsServer) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -446,11 +469,23 @@ func (o *SoftwarerepositoryCifsServer) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type SoftwarerepositoryCifsServerWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_softwarerepository_constraint_models.go b/model_softwarerepository_constraint_models.go index 039c2896b6..42844d68e6 100644 --- a/model_softwarerepository_constraint_models.go +++ b/model_softwarerepository_constraint_models.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -87,6 +87,11 @@ func (o *SoftwarerepositoryConstraintModels) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "softwarerepository.ConstraintModels" of the ClassId field. +func (o *SoftwarerepositoryConstraintModels) GetDefaultClassId() interface{} { + return "softwarerepository.ConstraintModels" +} + // GetObjectType returns the ObjectType field value func (o *SoftwarerepositoryConstraintModels) GetObjectType() string { if o == nil { @@ -111,6 +116,11 @@ func (o *SoftwarerepositoryConstraintModels) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "softwarerepository.ConstraintModels" of the ObjectType field. +func (o *SoftwarerepositoryConstraintModels) GetDefaultObjectType() interface{} { + return "softwarerepository.ConstraintModels" +} + // GetMinVersion returns the MinVersion field value if set, zero value otherwise. func (o *SoftwarerepositoryConstraintModels) GetMinVersion() string { if o == nil || IsNil(o.MinVersion) { @@ -228,7 +238,7 @@ func (o *SoftwarerepositoryConstraintModels) GetSupportedModelsOk() ([]string, b // HasSupportedModels returns a boolean if a field has been set. func (o *SoftwarerepositoryConstraintModels) HasSupportedModels() bool { - if o != nil && IsNil(o.SupportedModels) { + if o != nil && !IsNil(o.SupportedModels) { return true } @@ -258,7 +268,13 @@ func (o SoftwarerepositoryConstraintModels) ToMap() (map[string]interface{}, err if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.MinVersion) { toSerialize["MinVersion"] = o.MinVersion @@ -289,6 +305,13 @@ func (o *SoftwarerepositoryConstraintModels) UnmarshalJSON(data []byte) (err err "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -298,11 +321,23 @@ func (o *SoftwarerepositoryConstraintModels) UnmarshalJSON(data []byte) (err err } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type SoftwarerepositoryConstraintModelsWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_softwarerepository_download_spec.go b/model_softwarerepository_download_spec.go index 344208b937..3bfe69796d 100644 --- a/model_softwarerepository_download_spec.go +++ b/model_softwarerepository_download_spec.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -95,6 +95,11 @@ func (o *SoftwarerepositoryDownloadSpec) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "softwarerepository.DownloadSpec" of the ClassId field. +func (o *SoftwarerepositoryDownloadSpec) GetDefaultClassId() interface{} { + return "softwarerepository.DownloadSpec" +} + // GetObjectType returns the ObjectType field value func (o *SoftwarerepositoryDownloadSpec) GetObjectType() string { if o == nil { @@ -119,6 +124,11 @@ func (o *SoftwarerepositoryDownloadSpec) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "softwarerepository.DownloadSpec" of the ObjectType field. +func (o *SoftwarerepositoryDownloadSpec) GetDefaultObjectType() interface{} { + return "softwarerepository.DownloadSpec" +} + // GetAuthToken returns the AuthToken field value if set, zero value otherwise. func (o *SoftwarerepositoryDownloadSpec) GetAuthToken() string { if o == nil || IsNil(o.AuthToken) { @@ -404,7 +414,13 @@ func (o SoftwarerepositoryDownloadSpec) ToMap() (map[string]interface{}, error) if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.AuthToken) { toSerialize["AuthToken"] = o.AuthToken @@ -447,6 +463,13 @@ func (o *SoftwarerepositoryDownloadSpec) UnmarshalJSON(data []byte) (err error) "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -456,11 +479,23 @@ func (o *SoftwarerepositoryDownloadSpec) UnmarshalJSON(data []byte) (err error) } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type SoftwarerepositoryDownloadSpecWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_softwarerepository_download_spec_list.go b/model_softwarerepository_download_spec_list.go index 2e34a28593..e07e44c424 100644 --- a/model_softwarerepository_download_spec_list.go +++ b/model_softwarerepository_download_spec_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *SoftwarerepositoryDownloadSpecList) GetResultsOk() ([]Softwarerepositor // HasResults returns a boolean if a field has been set. func (o *SoftwarerepositoryDownloadSpecList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *SoftwarerepositoryDownloadSpecList) UnmarshalJSON(data []byte) (err err "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *SoftwarerepositoryDownloadSpecList) UnmarshalJSON(data []byte) (err err } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type SoftwarerepositoryDownloadSpecListWithoutEmbeddedStruct struct { // The total number of 'softwarerepository.DownloadSpec' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_softwarerepository_download_spec_response.go b/model_softwarerepository_download_spec_response.go index 93e338185f..03ebc03e7d 100644 --- a/model_softwarerepository_download_spec_response.go +++ b/model_softwarerepository_download_spec_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_softwarerepository_file.go b/model_softwarerepository_file.go index 089d37ed74..d52233253d 100644 --- a/model_softwarerepository_file.go +++ b/model_softwarerepository_file.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -744,6 +744,10 @@ func (o *SoftwarerepositoryFile) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -753,11 +757,23 @@ func (o *SoftwarerepositoryFile) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type SoftwarerepositoryFileWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. The enum values provides the list of concrete types that can be instantiated from this abstract type. ClassId string `json:"ClassId"` diff --git a/model_softwarerepository_file_relationship.go b/model_softwarerepository_file_relationship.go index 002545dfb1..dec88cbd42 100644 --- a/model_softwarerepository_file_relationship.go +++ b/model_softwarerepository_file_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_softwarerepository_file_server.go b/model_softwarerepository_file_server.go index 3625b2965b..99051c61e7 100644 --- a/model_softwarerepository_file_server.go +++ b/model_softwarerepository_file_server.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -83,6 +83,10 @@ func (o *SoftwarerepositoryFileServer) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -92,11 +96,23 @@ func (o *SoftwarerepositoryFileServer) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type SoftwarerepositoryFileServerWithoutEmbeddedStruct struct { } diff --git a/model_softwarerepository_http_server.go b/model_softwarerepository_http_server.go index a5df728563..2e46fa6fa7 100644 --- a/model_softwarerepository_http_server.go +++ b/model_softwarerepository_http_server.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -88,6 +88,11 @@ func (o *SoftwarerepositoryHttpServer) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "softwarerepository.HttpServer" of the ClassId field. +func (o *SoftwarerepositoryHttpServer) GetDefaultClassId() interface{} { + return "softwarerepository.HttpServer" +} + // GetObjectType returns the ObjectType field value func (o *SoftwarerepositoryHttpServer) GetObjectType() string { if o == nil { @@ -112,6 +117,11 @@ func (o *SoftwarerepositoryHttpServer) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "softwarerepository.HttpServer" of the ObjectType field. +func (o *SoftwarerepositoryHttpServer) GetDefaultObjectType() interface{} { + return "softwarerepository.HttpServer" +} + // GetIsPasswordSet returns the IsPasswordSet field value if set, zero value otherwise. func (o *SoftwarerepositoryHttpServer) GetIsPasswordSet() bool { if o == nil || IsNil(o.IsPasswordSet) { @@ -258,7 +268,13 @@ func (o SoftwarerepositoryHttpServer) ToMap() (map[string]interface{}, error) { if errSoftwarerepositoryFileServer != nil { return map[string]interface{}{}, errSoftwarerepositoryFileServer } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.IsPasswordSet) { toSerialize["IsPasswordSet"] = o.IsPasswordSet @@ -289,6 +305,13 @@ func (o *SoftwarerepositoryHttpServer) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -298,11 +321,23 @@ func (o *SoftwarerepositoryHttpServer) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type SoftwarerepositoryHttpServerWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_softwarerepository_import_result.go b/model_softwarerepository_import_result.go index 8eaa0121f4..7e79faa52d 100644 --- a/model_softwarerepository_import_result.go +++ b/model_softwarerepository_import_result.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -84,6 +84,11 @@ func (o *SoftwarerepositoryImportResult) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "softwarerepository.ImportResult" of the ClassId field. +func (o *SoftwarerepositoryImportResult) GetDefaultClassId() interface{} { + return "softwarerepository.ImportResult" +} + // GetObjectType returns the ObjectType field value func (o *SoftwarerepositoryImportResult) GetObjectType() string { if o == nil { @@ -108,6 +113,11 @@ func (o *SoftwarerepositoryImportResult) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "softwarerepository.ImportResult" of the ObjectType field. +func (o *SoftwarerepositoryImportResult) GetDefaultObjectType() interface{} { + return "softwarerepository.ImportResult" +} + // GetErrorMessage returns the ErrorMessage field value if set, zero value otherwise. func (o *SoftwarerepositoryImportResult) GetErrorMessage() string { if o == nil || IsNil(o.ErrorMessage) { @@ -190,7 +200,13 @@ func (o SoftwarerepositoryImportResult) ToMap() (map[string]interface{}, error) if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.ErrorMessage) { toSerialize["ErrorMessage"] = o.ErrorMessage @@ -215,6 +231,13 @@ func (o *SoftwarerepositoryImportResult) UnmarshalJSON(data []byte) (err error) "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -224,11 +247,23 @@ func (o *SoftwarerepositoryImportResult) UnmarshalJSON(data []byte) (err error) } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type SoftwarerepositoryImportResultWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_softwarerepository_local_machine.go b/model_softwarerepository_local_machine.go index 2e413ff9d7..e063d28cb8 100644 --- a/model_softwarerepository_local_machine.go +++ b/model_softwarerepository_local_machine.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -89,6 +89,11 @@ func (o *SoftwarerepositoryLocalMachine) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "softwarerepository.LocalMachine" of the ClassId field. +func (o *SoftwarerepositoryLocalMachine) GetDefaultClassId() interface{} { + return "softwarerepository.LocalMachine" +} + // GetObjectType returns the ObjectType field value func (o *SoftwarerepositoryLocalMachine) GetObjectType() string { if o == nil { @@ -113,6 +118,11 @@ func (o *SoftwarerepositoryLocalMachine) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "softwarerepository.LocalMachine" of the ObjectType field. +func (o *SoftwarerepositoryLocalMachine) GetDefaultObjectType() interface{} { + return "softwarerepository.LocalMachine" +} + // GetDownloadUrl returns the DownloadUrl field value if set, zero value otherwise. func (o *SoftwarerepositoryLocalMachine) GetDownloadUrl() string { if o == nil || IsNil(o.DownloadUrl) { @@ -262,7 +272,7 @@ func (o *SoftwarerepositoryLocalMachine) GetUploadUrlsOk() ([]string, bool) { // HasUploadUrls returns a boolean if a field has been set. func (o *SoftwarerepositoryLocalMachine) HasUploadUrls() bool { - if o != nil && IsNil(o.UploadUrls) { + if o != nil && !IsNil(o.UploadUrls) { return true } @@ -292,7 +302,13 @@ func (o SoftwarerepositoryLocalMachine) ToMap() (map[string]interface{}, error) if errSoftwarerepositoryFileServer != nil { return map[string]interface{}{}, errSoftwarerepositoryFileServer } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.DownloadUrl) { toSerialize["DownloadUrl"] = o.DownloadUrl @@ -326,6 +342,13 @@ func (o *SoftwarerepositoryLocalMachine) UnmarshalJSON(data []byte) (err error) "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -335,11 +358,23 @@ func (o *SoftwarerepositoryLocalMachine) UnmarshalJSON(data []byte) (err error) } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type SoftwarerepositoryLocalMachineWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_softwarerepository_nfs_server.go b/model_softwarerepository_nfs_server.go index 31a9fde231..646840a82a 100644 --- a/model_softwarerepository_nfs_server.go +++ b/model_softwarerepository_nfs_server.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -90,6 +90,11 @@ func (o *SoftwarerepositoryNfsServer) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "softwarerepository.NfsServer" of the ClassId field. +func (o *SoftwarerepositoryNfsServer) GetDefaultClassId() interface{} { + return "softwarerepository.NfsServer" +} + // GetObjectType returns the ObjectType field value func (o *SoftwarerepositoryNfsServer) GetObjectType() string { if o == nil { @@ -114,6 +119,11 @@ func (o *SoftwarerepositoryNfsServer) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "softwarerepository.NfsServer" of the ObjectType field. +func (o *SoftwarerepositoryNfsServer) GetDefaultObjectType() interface{} { + return "softwarerepository.NfsServer" +} + // GetFileLocation returns the FileLocation field value if set, zero value otherwise. func (o *SoftwarerepositoryNfsServer) GetFileLocation() string { if o == nil || IsNil(o.FileLocation) { @@ -292,7 +302,13 @@ func (o SoftwarerepositoryNfsServer) ToMap() (map[string]interface{}, error) { if errSoftwarerepositoryFileServer != nil { return map[string]interface{}{}, errSoftwarerepositoryFileServer } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.FileLocation) { toSerialize["FileLocation"] = o.FileLocation @@ -326,6 +342,13 @@ func (o *SoftwarerepositoryNfsServer) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -335,11 +358,23 @@ func (o *SoftwarerepositoryNfsServer) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type SoftwarerepositoryNfsServerWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_softwarerepository_operating_system_file.go b/model_softwarerepository_operating_system_file.go index abdaa2c6ba..c61d4f7fa5 100644 --- a/model_softwarerepository_operating_system_file.go +++ b/model_softwarerepository_operating_system_file.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -85,6 +85,11 @@ func (o *SoftwarerepositoryOperatingSystemFile) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "softwarerepository.OperatingSystemFile" of the ClassId field. +func (o *SoftwarerepositoryOperatingSystemFile) GetDefaultClassId() interface{} { + return "softwarerepository.OperatingSystemFile" +} + // GetObjectType returns the ObjectType field value func (o *SoftwarerepositoryOperatingSystemFile) GetObjectType() string { if o == nil { @@ -109,6 +114,11 @@ func (o *SoftwarerepositoryOperatingSystemFile) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "softwarerepository.OperatingSystemFile" of the ObjectType field. +func (o *SoftwarerepositoryOperatingSystemFile) GetDefaultObjectType() interface{} { + return "softwarerepository.OperatingSystemFile" +} + // GetVendor returns the Vendor field value if set, zero value otherwise. func (o *SoftwarerepositoryOperatingSystemFile) GetVendor() string { if o == nil || IsNil(o.Vendor) { @@ -202,7 +212,13 @@ func (o SoftwarerepositoryOperatingSystemFile) ToMap() (map[string]interface{}, if errSoftwarerepositoryFile != nil { return map[string]interface{}{}, errSoftwarerepositoryFile } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Vendor) { toSerialize["Vendor"] = o.Vendor @@ -227,6 +243,13 @@ func (o *SoftwarerepositoryOperatingSystemFile) UnmarshalJSON(data []byte) (err "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -236,11 +259,23 @@ func (o *SoftwarerepositoryOperatingSystemFile) UnmarshalJSON(data []byte) (err } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type SoftwarerepositoryOperatingSystemFileWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_softwarerepository_operating_system_file_list.go b/model_softwarerepository_operating_system_file_list.go index 2e2f942e14..5bd2c59ef5 100644 --- a/model_softwarerepository_operating_system_file_list.go +++ b/model_softwarerepository_operating_system_file_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *SoftwarerepositoryOperatingSystemFileList) GetResultsOk() ([]Softwarere // HasResults returns a boolean if a field has been set. func (o *SoftwarerepositoryOperatingSystemFileList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *SoftwarerepositoryOperatingSystemFileList) UnmarshalJSON(data []byte) ( "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *SoftwarerepositoryOperatingSystemFileList) UnmarshalJSON(data []byte) ( } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type SoftwarerepositoryOperatingSystemFileListWithoutEmbeddedStruct struct { // The total number of 'softwarerepository.OperatingSystemFile' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_softwarerepository_operating_system_file_relationship.go b/model_softwarerepository_operating_system_file_relationship.go index d95a5205ac..af8ae5fa3e 100644 --- a/model_softwarerepository_operating_system_file_relationship.go +++ b/model_softwarerepository_operating_system_file_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_softwarerepository_operating_system_file_response.go b/model_softwarerepository_operating_system_file_response.go index bbc161c1d0..3e033a119a 100644 --- a/model_softwarerepository_operating_system_file_response.go +++ b/model_softwarerepository_operating_system_file_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_softwarerepository_release.go b/model_softwarerepository_release.go index 28feefabb7..45f08821f9 100644 --- a/model_softwarerepository_release.go +++ b/model_softwarerepository_release.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -95,6 +95,11 @@ func (o *SoftwarerepositoryRelease) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "softwarerepository.Release" of the ClassId field. +func (o *SoftwarerepositoryRelease) GetDefaultClassId() interface{} { + return "softwarerepository.Release" +} + // GetObjectType returns the ObjectType field value func (o *SoftwarerepositoryRelease) GetObjectType() string { if o == nil { @@ -119,6 +124,11 @@ func (o *SoftwarerepositoryRelease) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "softwarerepository.Release" of the ObjectType field. +func (o *SoftwarerepositoryRelease) GetDefaultObjectType() interface{} { + return "softwarerepository.Release" +} + // GetReleaseDate returns the ReleaseDate field value if set, zero value otherwise. func (o *SoftwarerepositoryRelease) GetReleaseDate() time.Time { if o == nil || IsNil(o.ReleaseDate) { @@ -204,7 +214,7 @@ func (o *SoftwarerepositoryRelease) GetSupportedModelsOk() ([]string, bool) { // HasSupportedModels returns a boolean if a field has been set. func (o *SoftwarerepositoryRelease) HasSupportedModels() bool { - if o != nil && IsNil(o.SupportedModels) { + if o != nil && !IsNil(o.SupportedModels) { return true } @@ -341,7 +351,13 @@ func (o SoftwarerepositoryRelease) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.ReleaseDate) { toSerialize["ReleaseDate"] = o.ReleaseDate @@ -378,6 +394,13 @@ func (o *SoftwarerepositoryRelease) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -387,11 +410,23 @@ func (o *SoftwarerepositoryRelease) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type SoftwarerepositoryReleaseWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_softwarerepository_release_list.go b/model_softwarerepository_release_list.go index d7cd5a9643..ff9d5e1bb0 100644 --- a/model_softwarerepository_release_list.go +++ b/model_softwarerepository_release_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *SoftwarerepositoryReleaseList) GetResultsOk() ([]SoftwarerepositoryRele // HasResults returns a boolean if a field has been set. func (o *SoftwarerepositoryReleaseList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *SoftwarerepositoryReleaseList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *SoftwarerepositoryReleaseList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type SoftwarerepositoryReleaseListWithoutEmbeddedStruct struct { // The total number of 'softwarerepository.Release' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_softwarerepository_release_relationship.go b/model_softwarerepository_release_relationship.go index 4dfcb58cdd..7a9e348493 100644 --- a/model_softwarerepository_release_relationship.go +++ b/model_softwarerepository_release_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_softwarerepository_release_response.go b/model_softwarerepository_release_response.go index a9cc652a94..c3eaf0b28c 100644 --- a/model_softwarerepository_release_response.go +++ b/model_softwarerepository_release_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_softwarerepository_unsupported_model_constraint.go b/model_softwarerepository_unsupported_model_constraint.go index f15e5c68bc..72d6c73a42 100644 --- a/model_softwarerepository_unsupported_model_constraint.go +++ b/model_softwarerepository_unsupported_model_constraint.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -87,6 +87,11 @@ func (o *SoftwarerepositoryUnsupportedModelConstraint) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "softwarerepository.UnsupportedModelConstraint" of the ClassId field. +func (o *SoftwarerepositoryUnsupportedModelConstraint) GetDefaultClassId() interface{} { + return "softwarerepository.UnsupportedModelConstraint" +} + // GetObjectType returns the ObjectType field value func (o *SoftwarerepositoryUnsupportedModelConstraint) GetObjectType() string { if o == nil { @@ -111,6 +116,11 @@ func (o *SoftwarerepositoryUnsupportedModelConstraint) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "softwarerepository.UnsupportedModelConstraint" of the ObjectType field. +func (o *SoftwarerepositoryUnsupportedModelConstraint) GetDefaultObjectType() interface{} { + return "softwarerepository.UnsupportedModelConstraint" +} + // GetMaxVersion returns the MaxVersion field value if set, zero value otherwise. func (o *SoftwarerepositoryUnsupportedModelConstraint) GetMaxVersion() string { if o == nil || IsNil(o.MaxVersion) { @@ -228,7 +238,7 @@ func (o *SoftwarerepositoryUnsupportedModelConstraint) GetUnsupportedModelsOk() // HasUnsupportedModels returns a boolean if a field has been set. func (o *SoftwarerepositoryUnsupportedModelConstraint) HasUnsupportedModels() bool { - if o != nil && IsNil(o.UnsupportedModels) { + if o != nil && !IsNil(o.UnsupportedModels) { return true } @@ -258,7 +268,13 @@ func (o SoftwarerepositoryUnsupportedModelConstraint) ToMap() (map[string]interf if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.MaxVersion) { toSerialize["MaxVersion"] = o.MaxVersion @@ -289,6 +305,13 @@ func (o *SoftwarerepositoryUnsupportedModelConstraint) UnmarshalJSON(data []byte "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -298,11 +321,23 @@ func (o *SoftwarerepositoryUnsupportedModelConstraint) UnmarshalJSON(data []byte } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type SoftwarerepositoryUnsupportedModelConstraintWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_sol_policy.go b/model_sol_policy.go index 1624cd860c..6d0608cb54 100644 --- a/model_sol_policy.go +++ b/model_sol_policy.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -107,6 +107,11 @@ func (o *SolPolicy) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "sol.Policy" of the ClassId field. +func (o *SolPolicy) GetDefaultClassId() interface{} { + return "sol.Policy" +} + // GetObjectType returns the ObjectType field value func (o *SolPolicy) GetObjectType() string { if o == nil { @@ -131,6 +136,11 @@ func (o *SolPolicy) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "sol.Policy" of the ObjectType field. +func (o *SolPolicy) GetDefaultObjectType() interface{} { + return "sol.Policy" +} + // GetBaudRate returns the BaudRate field value if set, zero value otherwise. func (o *SolPolicy) GetBaudRate() int32 { if o == nil || IsNil(o.BaudRate) { @@ -323,7 +333,7 @@ func (o *SolPolicy) GetProfilesOk() ([]PolicyAbstractConfigProfileRelationship, // HasProfiles returns a boolean if a field has been set. func (o *SolPolicy) HasProfiles() bool { - if o != nil && IsNil(o.Profiles) { + if o != nil && !IsNil(o.Profiles) { return true } @@ -353,7 +363,13 @@ func (o SolPolicy) ToMap() (map[string]interface{}, error) { if errPolicyAbstractPolicy != nil { return map[string]interface{}{}, errPolicyAbstractPolicy } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.BaudRate) { toSerialize["BaudRate"] = o.BaudRate @@ -390,6 +406,13 @@ func (o *SolPolicy) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -399,11 +422,23 @@ func (o *SolPolicy) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type SolPolicyWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_sol_policy_inventory.go b/model_sol_policy_inventory.go index 76b3d1279c..2189d2f90f 100644 --- a/model_sol_policy_inventory.go +++ b/model_sol_policy_inventory.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -89,6 +89,11 @@ func (o *SolPolicyInventory) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "sol.PolicyInventory" of the ClassId field. +func (o *SolPolicyInventory) GetDefaultClassId() interface{} { + return "sol.PolicyInventory" +} + // GetObjectType returns the ObjectType field value func (o *SolPolicyInventory) GetObjectType() string { if o == nil { @@ -113,6 +118,11 @@ func (o *SolPolicyInventory) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "sol.PolicyInventory" of the ObjectType field. +func (o *SolPolicyInventory) GetDefaultObjectType() interface{} { + return "sol.PolicyInventory" +} + // GetBaudRate returns the BaudRate field value if set, zero value otherwise. func (o *SolPolicyInventory) GetBaudRate() int32 { if o == nil || IsNil(o.BaudRate) { @@ -302,7 +312,13 @@ func (o SolPolicyInventory) ToMap() (map[string]interface{}, error) { if errPolicyAbstractPolicyInventory != nil { return map[string]interface{}{}, errPolicyAbstractPolicyInventory } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.BaudRate) { toSerialize["BaudRate"] = o.BaudRate @@ -336,6 +352,13 @@ func (o *SolPolicyInventory) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -345,11 +368,23 @@ func (o *SolPolicyInventory) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type SolPolicyInventoryWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_sol_policy_inventory_list.go b/model_sol_policy_inventory_list.go index cad00039ff..cc9d0f6487 100644 --- a/model_sol_policy_inventory_list.go +++ b/model_sol_policy_inventory_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *SolPolicyInventoryList) GetResultsOk() ([]SolPolicyInventory, bool) { // HasResults returns a boolean if a field has been set. func (o *SolPolicyInventoryList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *SolPolicyInventoryList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *SolPolicyInventoryList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type SolPolicyInventoryListWithoutEmbeddedStruct struct { // The total number of 'sol.PolicyInventory' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_sol_policy_inventory_response.go b/model_sol_policy_inventory_response.go index 6cddaefc97..6713403fd3 100644 --- a/model_sol_policy_inventory_response.go +++ b/model_sol_policy_inventory_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_sol_policy_list.go b/model_sol_policy_list.go index 7980b20c6b..3446238065 100644 --- a/model_sol_policy_list.go +++ b/model_sol_policy_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *SolPolicyList) GetResultsOk() ([]SolPolicy, bool) { // HasResults returns a boolean if a field has been set. func (o *SolPolicyList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *SolPolicyList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *SolPolicyList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type SolPolicyListWithoutEmbeddedStruct struct { // The total number of 'sol.Policy' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_sol_policy_response.go b/model_sol_policy_response.go index 475cc4d0c5..b41ce0c784 100644 --- a/model_sol_policy_response.go +++ b/model_sol_policy_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_ssh_policy.go b/model_ssh_policy.go index d2ed4408f1..493cfaccb3 100644 --- a/model_ssh_policy.go +++ b/model_ssh_policy.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -101,6 +101,11 @@ func (o *SshPolicy) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "ssh.Policy" of the ClassId field. +func (o *SshPolicy) GetDefaultClassId() interface{} { + return "ssh.Policy" +} + // GetObjectType returns the ObjectType field value func (o *SshPolicy) GetObjectType() string { if o == nil { @@ -125,6 +130,11 @@ func (o *SshPolicy) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "ssh.Policy" of the ObjectType field. +func (o *SshPolicy) GetDefaultObjectType() interface{} { + return "ssh.Policy" +} + // GetEnabled returns the Enabled field value if set, zero value otherwise. func (o *SshPolicy) GetEnabled() bool { if o == nil || IsNil(o.Enabled) { @@ -285,7 +295,7 @@ func (o *SshPolicy) GetProfilesOk() ([]PolicyAbstractConfigProfileRelationship, // HasProfiles returns a boolean if a field has been set. func (o *SshPolicy) HasProfiles() bool { - if o != nil && IsNil(o.Profiles) { + if o != nil && !IsNil(o.Profiles) { return true } @@ -315,7 +325,13 @@ func (o SshPolicy) ToMap() (map[string]interface{}, error) { if errPolicyAbstractPolicy != nil { return map[string]interface{}{}, errPolicyAbstractPolicy } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Enabled) { toSerialize["Enabled"] = o.Enabled @@ -349,6 +365,13 @@ func (o *SshPolicy) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -358,11 +381,23 @@ func (o *SshPolicy) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type SshPolicyWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_ssh_policy_inventory.go b/model_ssh_policy_inventory.go index a6022e6916..3b324aed23 100644 --- a/model_ssh_policy_inventory.go +++ b/model_ssh_policy_inventory.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -87,6 +87,11 @@ func (o *SshPolicyInventory) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "ssh.PolicyInventory" of the ClassId field. +func (o *SshPolicyInventory) GetDefaultClassId() interface{} { + return "ssh.PolicyInventory" +} + // GetObjectType returns the ObjectType field value func (o *SshPolicyInventory) GetObjectType() string { if o == nil { @@ -111,6 +116,11 @@ func (o *SshPolicyInventory) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "ssh.PolicyInventory" of the ObjectType field. +func (o *SshPolicyInventory) GetDefaultObjectType() interface{} { + return "ssh.PolicyInventory" +} + // GetEnabled returns the Enabled field value if set, zero value otherwise. func (o *SshPolicyInventory) GetEnabled() bool { if o == nil || IsNil(o.Enabled) { @@ -268,7 +278,13 @@ func (o SshPolicyInventory) ToMap() (map[string]interface{}, error) { if errPolicyAbstractPolicyInventory != nil { return map[string]interface{}{}, errPolicyAbstractPolicyInventory } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Enabled) { toSerialize["Enabled"] = o.Enabled @@ -299,6 +315,13 @@ func (o *SshPolicyInventory) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -308,11 +331,23 @@ func (o *SshPolicyInventory) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type SshPolicyInventoryWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_ssh_policy_inventory_list.go b/model_ssh_policy_inventory_list.go index ab482c5f9b..11bcc86d20 100644 --- a/model_ssh_policy_inventory_list.go +++ b/model_ssh_policy_inventory_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *SshPolicyInventoryList) GetResultsOk() ([]SshPolicyInventory, bool) { // HasResults returns a boolean if a field has been set. func (o *SshPolicyInventoryList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *SshPolicyInventoryList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *SshPolicyInventoryList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type SshPolicyInventoryListWithoutEmbeddedStruct struct { // The total number of 'ssh.PolicyInventory' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_ssh_policy_inventory_response.go b/model_ssh_policy_inventory_response.go index 30bad38637..bf309bc048 100644 --- a/model_ssh_policy_inventory_response.go +++ b/model_ssh_policy_inventory_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_ssh_policy_list.go b/model_ssh_policy_list.go index 0e8f9814a8..c71bdb486b 100644 --- a/model_ssh_policy_list.go +++ b/model_ssh_policy_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *SshPolicyList) GetResultsOk() ([]SshPolicy, bool) { // HasResults returns a boolean if a field has been set. func (o *SshPolicyList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *SshPolicyList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *SshPolicyList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type SshPolicyListWithoutEmbeddedStruct struct { // The total number of 'ssh.Policy' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_ssh_policy_response.go b/model_ssh_policy_response.go index 44ef24663c..7f9a9b9f69 100644 --- a/model_ssh_policy_response.go +++ b/model_ssh_policy_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_storage_automatic_drive_group.go b/model_storage_automatic_drive_group.go index 875ea4d6ed..4e305ace9c 100644 --- a/model_storage_automatic_drive_group.go +++ b/model_storage_automatic_drive_group.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -35,7 +35,7 @@ type StorageAutomaticDriveGroup struct { // Minimum size of the drive to be used for creating this RAID group. MinimumDriveSize *int64 `json:"MinimumDriveSize,omitempty"` // Number of dedicated hot spare disks for this RAID group. Allowed value is a comma or hyphen separated number range. - NumDedicatedHotSpares *string `json:"NumDedicatedHotSpares,omitempty"` + NumDedicatedHotSpares *string `json:"NumDedicatedHotSpares,omitempty" validate:"regexp=^$|^((\\\\d+\\\\-\\\\d+)|(\\\\d+))(,((\\\\d+\\\\-\\\\d+)|(\\\\d+)))*$"` // Number of span groups to be created for this RAID group. Non-nested RAID levels have a single span. NumberOfSpans *int64 `json:"NumberOfSpans,omitempty"` // This flag enables the drive group to use all the remaining drives on the server. @@ -104,6 +104,11 @@ func (o *StorageAutomaticDriveGroup) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "storage.AutomaticDriveGroup" of the ClassId field. +func (o *StorageAutomaticDriveGroup) GetDefaultClassId() interface{} { + return "storage.AutomaticDriveGroup" +} + // GetObjectType returns the ObjectType field value func (o *StorageAutomaticDriveGroup) GetObjectType() string { if o == nil { @@ -128,6 +133,11 @@ func (o *StorageAutomaticDriveGroup) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "storage.AutomaticDriveGroup" of the ObjectType field. +func (o *StorageAutomaticDriveGroup) GetDefaultObjectType() interface{} { + return "storage.AutomaticDriveGroup" +} + // GetDriveType returns the DriveType field value if set, zero value otherwise. func (o *StorageAutomaticDriveGroup) GetDriveType() string { if o == nil || IsNil(o.DriveType) { @@ -338,7 +348,13 @@ func (o StorageAutomaticDriveGroup) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.DriveType) { toSerialize["DriveType"] = o.DriveType @@ -375,6 +391,13 @@ func (o *StorageAutomaticDriveGroup) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -384,11 +407,23 @@ func (o *StorageAutomaticDriveGroup) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type StorageAutomaticDriveGroupWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` @@ -401,7 +436,7 @@ func (o *StorageAutomaticDriveGroup) UnmarshalJSON(data []byte) (err error) { // Minimum size of the drive to be used for creating this RAID group. MinimumDriveSize *int64 `json:"MinimumDriveSize,omitempty"` // Number of dedicated hot spare disks for this RAID group. Allowed value is a comma or hyphen separated number range. - NumDedicatedHotSpares *string `json:"NumDedicatedHotSpares,omitempty"` + NumDedicatedHotSpares *string `json:"NumDedicatedHotSpares,omitempty" validate:"regexp=^$|^((\\\\d+\\\\-\\\\d+)|(\\\\d+))(,((\\\\d+\\\\-\\\\d+)|(\\\\d+)))*$"` // Number of span groups to be created for this RAID group. Non-nested RAID levels have a single span. NumberOfSpans *int64 `json:"NumberOfSpans,omitempty"` // This flag enables the drive group to use all the remaining drives on the server. diff --git a/model_storage_base_array.go b/model_storage_base_array.go index fc814b26a6..68b88b1d4f 100644 --- a/model_storage_base_array.go +++ b/model_storage_base_array.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -184,6 +184,10 @@ func (o *StorageBaseArray) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -193,11 +197,23 @@ func (o *StorageBaseArray) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type StorageBaseArrayWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. The enum values provides the list of concrete types that can be instantiated from this abstract type. ClassId string `json:"ClassId"` diff --git a/model_storage_base_array_controller.go b/model_storage_base_array_controller.go index 94c2f46202..7881af4659 100644 --- a/model_storage_base_array_controller.go +++ b/model_storage_base_array_controller.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -285,6 +285,10 @@ func (o *StorageBaseArrayController) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -294,11 +298,23 @@ func (o *StorageBaseArrayController) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type StorageBaseArrayControllerWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. The enum values provides the list of concrete types that can be instantiated from this abstract type. ClassId string `json:"ClassId"` diff --git a/model_storage_base_array_disk.go b/model_storage_base_array_disk.go index 2d028e6adc..47cafd4991 100644 --- a/model_storage_base_array_disk.go +++ b/model_storage_base_array_disk.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -443,6 +443,10 @@ func (o *StorageBaseArrayDisk) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -452,11 +456,23 @@ func (o *StorageBaseArrayDisk) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type StorageBaseArrayDiskWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. The enum values provides the list of concrete types that can be instantiated from this abstract type. ClassId string `json:"ClassId"` diff --git a/model_storage_base_array_relationship.go b/model_storage_base_array_relationship.go index 9e3f537f98..4eaa47dabd 100644 --- a/model_storage_base_array_relationship.go +++ b/model_storage_base_array_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_storage_base_capacity.go b/model_storage_base_capacity.go index e7ec0d5143..f72d6e2f33 100644 --- a/model_storage_base_capacity.go +++ b/model_storage_base_capacity.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -322,6 +322,10 @@ func (o *StorageBaseCapacity) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -331,11 +335,23 @@ func (o *StorageBaseCapacity) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type StorageBaseCapacityWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. The enum values provides the list of concrete types that can be instantiated from this abstract type. ClassId string `json:"ClassId"` diff --git a/model_storage_base_cluster.go b/model_storage_base_cluster.go index e78d2fb681..60702e4800 100644 --- a/model_storage_base_cluster.go +++ b/model_storage_base_cluster.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -83,6 +83,11 @@ func (o *StorageBaseCluster) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "hyperflex.Cluster" of the ClassId field. +func (o *StorageBaseCluster) GetDefaultClassId() interface{} { + return "hyperflex.Cluster" +} + // GetObjectType returns the ObjectType field value func (o *StorageBaseCluster) GetObjectType() string { if o == nil { @@ -107,6 +112,11 @@ func (o *StorageBaseCluster) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "hyperflex.Cluster" of the ObjectType field. +func (o *StorageBaseCluster) GetDefaultObjectType() interface{} { + return "hyperflex.Cluster" +} + // GetStorageCapacity returns the StorageCapacity field value if set, zero value otherwise. func (o *StorageBaseCluster) GetStorageCapacity() int64 { if o == nil || IsNil(o.StorageCapacity) { @@ -200,7 +210,13 @@ func (o StorageBaseCluster) ToMap() (map[string]interface{}, error) { if errInfraBaseCluster != nil { return map[string]interface{}{}, errInfraBaseCluster } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.StorageCapacity) { toSerialize["StorageCapacity"] = o.StorageCapacity @@ -225,6 +241,13 @@ func (o *StorageBaseCluster) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -234,11 +257,23 @@ func (o *StorageBaseCluster) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type StorageBaseClusterWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. The enum values provides the list of concrete types that can be instantiated from this abstract type. ClassId string `json:"ClassId"` diff --git a/model_storage_base_cluster_relationship.go b/model_storage_base_cluster_relationship.go index 1751b5460e..231871632f 100644 --- a/model_storage_base_cluster_relationship.go +++ b/model_storage_base_cluster_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_storage_base_disk_pool.go b/model_storage_base_disk_pool.go index 7f1b6a25a6..c2b329404d 100644 --- a/model_storage_base_disk_pool.go +++ b/model_storage_base_disk_pool.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -332,6 +332,10 @@ func (o *StorageBaseDiskPool) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -341,11 +345,23 @@ func (o *StorageBaseDiskPool) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type StorageBaseDiskPoolWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. The enum values provides the list of concrete types that can be instantiated from this abstract type. ClassId string `json:"ClassId"` diff --git a/model_storage_base_host.go b/model_storage_base_host.go index c9264be932..dffc0c9d74 100644 --- a/model_storage_base_host.go +++ b/model_storage_base_host.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -161,7 +161,7 @@ func (o *StorageBaseHost) GetInitiatorsOk() ([]StorageBaseInitiator, bool) { // HasInitiators returns a boolean if a field has been set. func (o *StorageBaseHost) HasInitiators() bool { - if o != nil && IsNil(o.Initiators) { + if o != nil && !IsNil(o.Initiators) { return true } @@ -332,6 +332,10 @@ func (o *StorageBaseHost) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -341,11 +345,23 @@ func (o *StorageBaseHost) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type StorageBaseHostWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. The enum values provides the list of concrete types that can be instantiated from this abstract type. ClassId string `json:"ClassId"` diff --git a/model_storage_base_host_group.go b/model_storage_base_host_group.go index 452c97b291..b68957dc82 100644 --- a/model_storage_base_host_group.go +++ b/model_storage_base_host_group.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -258,6 +258,10 @@ func (o *StorageBaseHostGroup) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -267,11 +271,23 @@ func (o *StorageBaseHostGroup) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type StorageBaseHostGroupWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. The enum values provides the list of concrete types that can be instantiated from this abstract type. ClassId string `json:"ClassId"` diff --git a/model_storage_base_host_lun.go b/model_storage_base_host_lun.go index 2543bf526c..9b7e08f884 100644 --- a/model_storage_base_host_lun.go +++ b/model_storage_base_host_lun.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -248,6 +248,10 @@ func (o *StorageBaseHostLun) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -257,11 +261,23 @@ func (o *StorageBaseHostLun) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type StorageBaseHostLunWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. The enum values provides the list of concrete types that can be instantiated from this abstract type. ClassId string `json:"ClassId"` diff --git a/model_storage_base_initiator.go b/model_storage_base_initiator.go index fe9a513d81..b7450720d7 100644 --- a/model_storage_base_initiator.go +++ b/model_storage_base_initiator.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -322,6 +322,10 @@ func (o *StorageBaseInitiator) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -331,11 +335,23 @@ func (o *StorageBaseInitiator) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type StorageBaseInitiatorWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. The enum values provides the list of concrete types that can be instantiated from this abstract type. ClassId string `json:"ClassId"` diff --git a/model_storage_base_nfs_export.go b/model_storage_base_nfs_export.go index f0b762e4b3..7d699ca4ff 100644 --- a/model_storage_base_nfs_export.go +++ b/model_storage_base_nfs_export.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -31,7 +31,7 @@ type StorageBaseNfsExport struct { // Name of the NFS export in storage array. Name *string `json:"Name,omitempty"` // The uuid of this NFS export. - Uuid *string `json:"Uuid,omitempty"` + Uuid *string `json:"Uuid,omitempty" validate:"regexp=^$|^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"` AdditionalProperties map[string]interface{} } @@ -84,6 +84,11 @@ func (o *StorageBaseNfsExport) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "storage.NetAppExportPolicy" of the ClassId field. +func (o *StorageBaseNfsExport) GetDefaultClassId() interface{} { + return "storage.NetAppExportPolicy" +} + // GetObjectType returns the ObjectType field value func (o *StorageBaseNfsExport) GetObjectType() string { if o == nil { @@ -108,6 +113,11 @@ func (o *StorageBaseNfsExport) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "storage.NetAppExportPolicy" of the ObjectType field. +func (o *StorageBaseNfsExport) GetDefaultObjectType() interface{} { + return "storage.NetAppExportPolicy" +} + // GetName returns the Name field value if set, zero value otherwise. func (o *StorageBaseNfsExport) GetName() string { if o == nil || IsNil(o.Name) { @@ -190,7 +200,13 @@ func (o StorageBaseNfsExport) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Name) { toSerialize["Name"] = o.Name @@ -215,6 +231,13 @@ func (o *StorageBaseNfsExport) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -224,11 +247,23 @@ func (o *StorageBaseNfsExport) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type StorageBaseNfsExportWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. The enum values provides the list of concrete types that can be instantiated from this abstract type. ClassId string `json:"ClassId"` @@ -237,7 +272,7 @@ func (o *StorageBaseNfsExport) UnmarshalJSON(data []byte) (err error) { // Name of the NFS export in storage array. Name *string `json:"Name,omitempty"` // The uuid of this NFS export. - Uuid *string `json:"Uuid,omitempty"` + Uuid *string `json:"Uuid,omitempty" validate:"regexp=^$|^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"` } varStorageBaseNfsExportWithoutEmbeddedStruct := StorageBaseNfsExportWithoutEmbeddedStruct{} diff --git a/model_storage_base_performance_metrics_average.go b/model_storage_base_performance_metrics_average.go index aaa81137f1..41a8205718 100644 --- a/model_storage_base_performance_metrics_average.go +++ b/model_storage_base_performance_metrics_average.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -88,6 +88,11 @@ func (o *StorageBasePerformanceMetricsAverage) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "storage.NetAppPerformanceMetricsAverage" of the ClassId field. +func (o *StorageBasePerformanceMetricsAverage) GetDefaultClassId() interface{} { + return "storage.NetAppPerformanceMetricsAverage" +} + // GetObjectType returns the ObjectType field value func (o *StorageBasePerformanceMetricsAverage) GetObjectType() string { if o == nil { @@ -112,6 +117,11 @@ func (o *StorageBasePerformanceMetricsAverage) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "storage.NetAppPerformanceMetricsAverage" of the ObjectType field. +func (o *StorageBasePerformanceMetricsAverage) GetDefaultObjectType() interface{} { + return "storage.NetAppPerformanceMetricsAverage" +} + // GetIops returns the Iops field value if set, zero value otherwise. func (o *StorageBasePerformanceMetricsAverage) GetIops() float64 { if o == nil || IsNil(o.Iops) { @@ -258,7 +268,13 @@ func (o StorageBasePerformanceMetricsAverage) ToMap() (map[string]interface{}, e if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Iops) { toSerialize["Iops"] = o.Iops @@ -289,6 +305,13 @@ func (o *StorageBasePerformanceMetricsAverage) UnmarshalJSON(data []byte) (err e "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -298,11 +321,23 @@ func (o *StorageBasePerformanceMetricsAverage) UnmarshalJSON(data []byte) (err e } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type StorageBasePerformanceMetricsAverageWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. The enum values provides the list of concrete types that can be instantiated from this abstract type. ClassId string `json:"ClassId"` diff --git a/model_storage_base_physical_port.go b/model_storage_base_physical_port.go index 51a996e7d5..426a61e839 100644 --- a/model_storage_base_physical_port.go +++ b/model_storage_base_physical_port.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -433,6 +433,10 @@ func (o *StorageBasePhysicalPort) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -442,11 +446,23 @@ func (o *StorageBasePhysicalPort) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type StorageBasePhysicalPortWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. The enum values provides the list of concrete types that can be instantiated from this abstract type. ClassId string `json:"ClassId"` diff --git a/model_storage_base_protection_group.go b/model_storage_base_protection_group.go index 515af76bf9..48f6d5d917 100644 --- a/model_storage_base_protection_group.go +++ b/model_storage_base_protection_group.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -88,6 +88,11 @@ func (o *StorageBaseProtectionGroup) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "storage.PureProtectionGroup" of the ClassId field. +func (o *StorageBaseProtectionGroup) GetDefaultClassId() interface{} { + return "storage.PureProtectionGroup" +} + // GetObjectType returns the ObjectType field value func (o *StorageBaseProtectionGroup) GetObjectType() string { if o == nil { @@ -112,6 +117,11 @@ func (o *StorageBaseProtectionGroup) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "storage.PureProtectionGroup" of the ObjectType field. +func (o *StorageBaseProtectionGroup) GetDefaultObjectType() interface{} { + return "storage.PureProtectionGroup" +} + // GetName returns the Name field value if set, zero value otherwise. func (o *StorageBaseProtectionGroup) GetName() string { if o == nil || IsNil(o.Name) { @@ -258,7 +268,13 @@ func (o StorageBaseProtectionGroup) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Name) { toSerialize["Name"] = o.Name @@ -289,6 +305,13 @@ func (o *StorageBaseProtectionGroup) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -298,11 +321,23 @@ func (o *StorageBaseProtectionGroup) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type StorageBaseProtectionGroupWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. The enum values provides the list of concrete types that can be instantiated from this abstract type. ClassId string `json:"ClassId"` diff --git a/model_storage_base_protection_group_snapshot.go b/model_storage_base_protection_group_snapshot.go index f726021851..90dae9a5c2 100644 --- a/model_storage_base_protection_group_snapshot.go +++ b/model_storage_base_protection_group_snapshot.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -89,6 +89,11 @@ func (o *StorageBaseProtectionGroupSnapshot) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "storage.PureProtectionGroupSnapshot" of the ClassId field. +func (o *StorageBaseProtectionGroupSnapshot) GetDefaultClassId() interface{} { + return "storage.PureProtectionGroupSnapshot" +} + // GetObjectType returns the ObjectType field value func (o *StorageBaseProtectionGroupSnapshot) GetObjectType() string { if o == nil { @@ -113,6 +118,11 @@ func (o *StorageBaseProtectionGroupSnapshot) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "storage.PureProtectionGroupSnapshot" of the ObjectType field. +func (o *StorageBaseProtectionGroupSnapshot) GetDefaultObjectType() interface{} { + return "storage.PureProtectionGroupSnapshot" +} + // GetCreatedTime returns the CreatedTime field value if set, zero value otherwise. func (o *StorageBaseProtectionGroupSnapshot) GetCreatedTime() time.Time { if o == nil || IsNil(o.CreatedTime) { @@ -259,7 +269,13 @@ func (o StorageBaseProtectionGroupSnapshot) ToMap() (map[string]interface{}, err if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.CreatedTime) { toSerialize["CreatedTime"] = o.CreatedTime @@ -290,6 +306,13 @@ func (o *StorageBaseProtectionGroupSnapshot) UnmarshalJSON(data []byte) (err err "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -299,11 +322,23 @@ func (o *StorageBaseProtectionGroupSnapshot) UnmarshalJSON(data []byte) (err err } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type StorageBaseProtectionGroupSnapshotWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. The enum values provides the list of concrete types that can be instantiated from this abstract type. ClassId string `json:"ClassId"` diff --git a/model_storage_base_raid_group.go b/model_storage_base_raid_group.go index ed9d563740..c7083e44ff 100644 --- a/model_storage_base_raid_group.go +++ b/model_storage_base_raid_group.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -85,6 +85,11 @@ func (o *StorageBaseRaidGroup) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "storage.HitachiParityGroup" of the ClassId field. +func (o *StorageBaseRaidGroup) GetDefaultClassId() interface{} { + return "storage.HitachiParityGroup" +} + // GetObjectType returns the ObjectType field value func (o *StorageBaseRaidGroup) GetObjectType() string { if o == nil { @@ -109,6 +114,11 @@ func (o *StorageBaseRaidGroup) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "storage.HitachiParityGroup" of the ObjectType field. +func (o *StorageBaseRaidGroup) GetDefaultObjectType() interface{} { + return "storage.HitachiParityGroup" +} + // GetLevel returns the Level field value if set, zero value otherwise. func (o *StorageBaseRaidGroup) GetLevel() string { if o == nil || IsNil(o.Level) { @@ -234,7 +244,13 @@ func (o StorageBaseRaidGroup) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Level) { toSerialize["Level"] = o.Level @@ -262,6 +278,13 @@ func (o *StorageBaseRaidGroup) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -271,11 +294,23 @@ func (o *StorageBaseRaidGroup) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type StorageBaseRaidGroupWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. The enum values provides the list of concrete types that can be instantiated from this abstract type. ClassId string `json:"ClassId"` diff --git a/model_storage_base_replication_blackout.go b/model_storage_base_replication_blackout.go index 0dbd0fe172..20daef16aa 100644 --- a/model_storage_base_replication_blackout.go +++ b/model_storage_base_replication_blackout.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -84,6 +84,11 @@ func (o *StorageBaseReplicationBlackout) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "storage.PureReplicationBlackout" of the ClassId field. +func (o *StorageBaseReplicationBlackout) GetDefaultClassId() interface{} { + return "storage.PureReplicationBlackout" +} + // GetObjectType returns the ObjectType field value func (o *StorageBaseReplicationBlackout) GetObjectType() string { if o == nil { @@ -108,6 +113,11 @@ func (o *StorageBaseReplicationBlackout) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "storage.PureReplicationBlackout" of the ObjectType field. +func (o *StorageBaseReplicationBlackout) GetDefaultObjectType() interface{} { + return "storage.PureReplicationBlackout" +} + // GetEnd returns the End field value if set, zero value otherwise. func (o *StorageBaseReplicationBlackout) GetEnd() string { if o == nil || IsNil(o.End) { @@ -190,7 +200,13 @@ func (o StorageBaseReplicationBlackout) ToMap() (map[string]interface{}, error) if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.End) { toSerialize["End"] = o.End @@ -215,6 +231,13 @@ func (o *StorageBaseReplicationBlackout) UnmarshalJSON(data []byte) (err error) "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -224,11 +247,23 @@ func (o *StorageBaseReplicationBlackout) UnmarshalJSON(data []byte) (err error) } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type StorageBaseReplicationBlackoutWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. The enum values provides the list of concrete types that can be instantiated from this abstract type. ClassId string `json:"ClassId"` diff --git a/model_storage_base_replication_schedule.go b/model_storage_base_replication_schedule.go index 2f1606d75e..d2ae71e1ef 100644 --- a/model_storage_base_replication_schedule.go +++ b/model_storage_base_replication_schedule.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -88,6 +88,11 @@ func (o *StorageBaseReplicationSchedule) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "storage.PureReplicationSchedule" of the ClassId field. +func (o *StorageBaseReplicationSchedule) GetDefaultClassId() interface{} { + return "storage.PureReplicationSchedule" +} + // GetObjectType returns the ObjectType field value func (o *StorageBaseReplicationSchedule) GetObjectType() string { if o == nil { @@ -112,6 +117,11 @@ func (o *StorageBaseReplicationSchedule) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "storage.PureReplicationSchedule" of the ObjectType field. +func (o *StorageBaseReplicationSchedule) GetDefaultObjectType() interface{} { + return "storage.PureReplicationSchedule" +} + // GetFrequency returns the Frequency field value if set, zero value otherwise. func (o *StorageBaseReplicationSchedule) GetFrequency() string { if o == nil || IsNil(o.Frequency) { @@ -258,7 +268,13 @@ func (o StorageBaseReplicationSchedule) ToMap() (map[string]interface{}, error) if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Frequency) { toSerialize["Frequency"] = o.Frequency @@ -289,6 +305,13 @@ func (o *StorageBaseReplicationSchedule) UnmarshalJSON(data []byte) (err error) "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -298,11 +321,23 @@ func (o *StorageBaseReplicationSchedule) UnmarshalJSON(data []byte) (err error) } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type StorageBaseReplicationScheduleWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. The enum values provides the list of concrete types that can be instantiated from this abstract type. ClassId string `json:"ClassId"` diff --git a/model_storage_base_snapshot.go b/model_storage_base_snapshot.go index 56febefec3..d1dff56429 100644 --- a/model_storage_base_snapshot.go +++ b/model_storage_base_snapshot.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -323,6 +323,10 @@ func (o *StorageBaseSnapshot) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -332,11 +336,23 @@ func (o *StorageBaseSnapshot) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type StorageBaseSnapshotWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. The enum values provides the list of concrete types that can be instantiated from this abstract type. ClassId string `json:"ClassId"` diff --git a/model_storage_base_snapshot_schedule.go b/model_storage_base_snapshot_schedule.go index 895be48f53..33c11479d7 100644 --- a/model_storage_base_snapshot_schedule.go +++ b/model_storage_base_snapshot_schedule.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -88,6 +88,11 @@ func (o *StorageBaseSnapshotSchedule) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "storage.PureSnapshotSchedule" of the ClassId field. +func (o *StorageBaseSnapshotSchedule) GetDefaultClassId() interface{} { + return "storage.PureSnapshotSchedule" +} + // GetObjectType returns the ObjectType field value func (o *StorageBaseSnapshotSchedule) GetObjectType() string { if o == nil { @@ -112,6 +117,11 @@ func (o *StorageBaseSnapshotSchedule) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "storage.PureSnapshotSchedule" of the ObjectType field. +func (o *StorageBaseSnapshotSchedule) GetDefaultObjectType() interface{} { + return "storage.PureSnapshotSchedule" +} + // GetFrequency returns the Frequency field value if set, zero value otherwise. func (o *StorageBaseSnapshotSchedule) GetFrequency() string { if o == nil || IsNil(o.Frequency) { @@ -258,7 +268,13 @@ func (o StorageBaseSnapshotSchedule) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Frequency) { toSerialize["Frequency"] = o.Frequency @@ -289,6 +305,13 @@ func (o *StorageBaseSnapshotSchedule) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -298,11 +321,23 @@ func (o *StorageBaseSnapshotSchedule) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type StorageBaseSnapshotScheduleWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. The enum values provides the list of concrete types that can be instantiated from this abstract type. ClassId string `json:"ClassId"` diff --git a/model_storage_base_storage_container.go b/model_storage_base_storage_container.go index 20acd35f6a..52d4e80448 100644 --- a/model_storage_base_storage_container.go +++ b/model_storage_base_storage_container.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -259,6 +259,10 @@ func (o *StorageBaseStorageContainer) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -268,11 +272,23 @@ func (o *StorageBaseStorageContainer) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type StorageBaseStorageContainerWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. The enum values provides the list of concrete types that can be instantiated from this abstract type. ClassId string `json:"ClassId"` diff --git a/model_storage_base_target.go b/model_storage_base_target.go index b7d489124f..3c14bb0bb1 100644 --- a/model_storage_base_target.go +++ b/model_storage_base_target.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -84,6 +84,11 @@ func (o *StorageBaseTarget) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "hyperflex.Target" of the ClassId field. +func (o *StorageBaseTarget) GetDefaultClassId() interface{} { + return "hyperflex.Target" +} + // GetObjectType returns the ObjectType field value func (o *StorageBaseTarget) GetObjectType() string { if o == nil { @@ -108,6 +113,11 @@ func (o *StorageBaseTarget) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "hyperflex.Target" of the ObjectType field. +func (o *StorageBaseTarget) GetDefaultObjectType() interface{} { + return "hyperflex.Target" +} + // GetDescription returns the Description field value if set, zero value otherwise. func (o *StorageBaseTarget) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -190,7 +200,13 @@ func (o StorageBaseTarget) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Description) { toSerialize["Description"] = o.Description @@ -215,6 +231,13 @@ func (o *StorageBaseTarget) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -224,11 +247,23 @@ func (o *StorageBaseTarget) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type StorageBaseTargetWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. The enum values provides the list of concrete types that can be instantiated from this abstract type. ClassId string `json:"ClassId"` diff --git a/model_storage_base_tenant.go b/model_storage_base_tenant.go index b9d2668b82..a37cdd666c 100644 --- a/model_storage_base_tenant.go +++ b/model_storage_base_tenant.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -33,7 +33,7 @@ type StorageBaseTenant struct { // The state of this tenant. * `Unknown` - Component state is not available. * `Starting` - Component is being started. * `Running` - Component is currently running. * `Stopping` - Component is being stopped. * `Stopped` - Component has been stopped. * `Deleting` - Component deletion is in progress. State *string `json:"State,omitempty"` // The uuid of this tenant in storage array. - Uuid *string `json:"Uuid,omitempty"` + Uuid *string `json:"Uuid,omitempty" validate:"regexp=^$|^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"` AdditionalProperties map[string]interface{} } @@ -86,6 +86,11 @@ func (o *StorageBaseTenant) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "storage.NetAppStorageVm" of the ClassId field. +func (o *StorageBaseTenant) GetDefaultClassId() interface{} { + return "storage.NetAppStorageVm" +} + // GetObjectType returns the ObjectType field value func (o *StorageBaseTenant) GetObjectType() string { if o == nil { @@ -110,6 +115,11 @@ func (o *StorageBaseTenant) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "storage.NetAppStorageVm" of the ObjectType field. +func (o *StorageBaseTenant) GetDefaultObjectType() interface{} { + return "storage.NetAppStorageVm" +} + // GetName returns the Name field value if set, zero value otherwise. func (o *StorageBaseTenant) GetName() string { if o == nil || IsNil(o.Name) { @@ -224,7 +234,13 @@ func (o StorageBaseTenant) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Name) { toSerialize["Name"] = o.Name @@ -252,6 +268,13 @@ func (o *StorageBaseTenant) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -261,11 +284,23 @@ func (o *StorageBaseTenant) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type StorageBaseTenantWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. The enum values provides the list of concrete types that can be instantiated from this abstract type. ClassId string `json:"ClassId"` @@ -276,7 +311,7 @@ func (o *StorageBaseTenant) UnmarshalJSON(data []byte) (err error) { // The state of this tenant. * `Unknown` - Component state is not available. * `Starting` - Component is being started. * `Running` - Component is currently running. * `Stopping` - Component is being stopped. * `Stopped` - Component has been stopped. * `Deleting` - Component deletion is in progress. State *string `json:"State,omitempty"` // The uuid of this tenant in storage array. - Uuid *string `json:"Uuid,omitempty"` + Uuid *string `json:"Uuid,omitempty" validate:"regexp=^$|^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"` } varStorageBaseTenantWithoutEmbeddedStruct := StorageBaseTenantWithoutEmbeddedStruct{} diff --git a/model_storage_base_volume.go b/model_storage_base_volume.go index bfa34bd970..8f2df2878b 100644 --- a/model_storage_base_volume.go +++ b/model_storage_base_volume.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -332,6 +332,10 @@ func (o *StorageBaseVolume) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -341,11 +345,23 @@ func (o *StorageBaseVolume) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type StorageBaseVolumeWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. The enum values provides the list of concrete types that can be instantiated from this abstract type. ClassId string `json:"ClassId"` diff --git a/model_storage_battery_backup_unit.go b/model_storage_battery_backup_unit.go index cd8aa9deee..3a96b0a533 100644 --- a/model_storage_battery_backup_unit.go +++ b/model_storage_battery_backup_unit.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -133,6 +133,11 @@ func (o *StorageBatteryBackupUnit) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "storage.BatteryBackupUnit" of the ClassId field. +func (o *StorageBatteryBackupUnit) GetDefaultClassId() interface{} { + return "storage.BatteryBackupUnit" +} + // GetObjectType returns the ObjectType field value func (o *StorageBatteryBackupUnit) GetObjectType() string { if o == nil { @@ -157,6 +162,11 @@ func (o *StorageBatteryBackupUnit) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "storage.BatteryBackupUnit" of the ObjectType field. +func (o *StorageBatteryBackupUnit) GetDefaultObjectType() interface{} { + return "storage.BatteryBackupUnit" +} + // GetCapacitanceInPercent returns the CapacitanceInPercent field value if set, zero value otherwise. func (o *StorageBatteryBackupUnit) GetCapacitanceInPercent() int64 { if o == nil || IsNil(o.CapacitanceInPercent) { @@ -1104,7 +1114,13 @@ func (o StorageBatteryBackupUnit) ToMap() (map[string]interface{}, error) { if errEquipmentBase != nil { return map[string]interface{}{}, errEquipmentBase } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.CapacitanceInPercent) { toSerialize["CapacitanceInPercent"] = o.CapacitanceInPercent @@ -1207,6 +1223,13 @@ func (o *StorageBatteryBackupUnit) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -1216,11 +1239,23 @@ func (o *StorageBatteryBackupUnit) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type StorageBatteryBackupUnitWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_storage_battery_backup_unit_list.go b/model_storage_battery_backup_unit_list.go index 03b0bd8059..5b0a5fd103 100644 --- a/model_storage_battery_backup_unit_list.go +++ b/model_storage_battery_backup_unit_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *StorageBatteryBackupUnitList) GetResultsOk() ([]StorageBatteryBackupUni // HasResults returns a boolean if a field has been set. func (o *StorageBatteryBackupUnitList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *StorageBatteryBackupUnitList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *StorageBatteryBackupUnitList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type StorageBatteryBackupUnitListWithoutEmbeddedStruct struct { // The total number of 'storage.BatteryBackupUnit' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_storage_battery_backup_unit_relationship.go b/model_storage_battery_backup_unit_relationship.go index b2892d8abd..7598d0b67d 100644 --- a/model_storage_battery_backup_unit_relationship.go +++ b/model_storage_battery_backup_unit_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_storage_battery_backup_unit_response.go b/model_storage_battery_backup_unit_response.go index b48d71f06f..855ad44529 100644 --- a/model_storage_battery_backup_unit_response.go +++ b/model_storage_battery_backup_unit_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_storage_controller.go b/model_storage_controller.go index bd83538882..ceb82d7775 100644 --- a/model_storage_controller.go +++ b/model_storage_controller.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -156,6 +156,11 @@ func (o *StorageController) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "storage.Controller" of the ClassId field. +func (o *StorageController) GetDefaultClassId() interface{} { + return "storage.Controller" +} + // GetObjectType returns the ObjectType field value func (o *StorageController) GetObjectType() string { if o == nil { @@ -180,6 +185,11 @@ func (o *StorageController) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "storage.Controller" of the ObjectType field. +func (o *StorageController) GetDefaultObjectType() interface{} { + return "storage.Controller" +} + // GetConnectedSasExpander returns the ConnectedSasExpander field value if set, zero value otherwise. func (o *StorageController) GetConnectedSasExpander() bool { if o == nil || IsNil(o.ConnectedSasExpander) { @@ -1269,7 +1279,7 @@ func (o *StorageController) GetDiskGroupOk() ([]StorageDiskGroupRelationship, bo // HasDiskGroup returns a boolean if a field has been set. func (o *StorageController) HasDiskGroup() bool { - if o != nil && IsNil(o.DiskGroup) { + if o != nil && !IsNil(o.DiskGroup) { return true } @@ -1302,7 +1312,7 @@ func (o *StorageController) GetDiskSlotOk() ([]StorageDiskSlotRelationship, bool // HasDiskSlot returns a boolean if a field has been set. func (o *StorageController) HasDiskSlot() bool { - if o != nil && IsNil(o.DiskSlot) { + if o != nil && !IsNil(o.DiskSlot) { return true } @@ -1378,7 +1388,7 @@ func (o *StorageController) GetPhysicalDiskExtensionsOk() ([]StoragePhysicalDisk // HasPhysicalDiskExtensions returns a boolean if a field has been set. func (o *StorageController) HasPhysicalDiskExtensions() bool { - if o != nil && IsNil(o.PhysicalDiskExtensions) { + if o != nil && !IsNil(o.PhysicalDiskExtensions) { return true } @@ -1411,7 +1421,7 @@ func (o *StorageController) GetPhysicalDisksOk() ([]StoragePhysicalDiskRelations // HasPhysicalDisks returns a boolean if a field has been set. func (o *StorageController) HasPhysicalDisks() bool { - if o != nil && IsNil(o.PhysicalDisks) { + if o != nil && !IsNil(o.PhysicalDisks) { return true } @@ -1487,7 +1497,7 @@ func (o *StorageController) GetRunningFirmwareOk() ([]FirmwareRunningFirmwareRel // HasRunningFirmware returns a boolean if a field has been set. func (o *StorageController) HasRunningFirmware() bool { - if o != nil && IsNil(o.RunningFirmware) { + if o != nil && !IsNil(o.RunningFirmware) { return true } @@ -1520,7 +1530,7 @@ func (o *StorageController) GetVirtualDriveExtensionsOk() ([]StorageVirtualDrive // HasVirtualDriveExtensions returns a boolean if a field has been set. func (o *StorageController) HasVirtualDriveExtensions() bool { - if o != nil && IsNil(o.VirtualDriveExtensions) { + if o != nil && !IsNil(o.VirtualDriveExtensions) { return true } @@ -1553,7 +1563,7 @@ func (o *StorageController) GetVirtualDrivesOk() ([]StorageVirtualDriveRelations // HasVirtualDrives returns a boolean if a field has been set. func (o *StorageController) HasVirtualDrives() bool { - if o != nil && IsNil(o.VirtualDrives) { + if o != nil && !IsNil(o.VirtualDrives) { return true } @@ -1583,7 +1593,13 @@ func (o StorageController) ToMap() (map[string]interface{}, error) { if errEquipmentBase != nil { return map[string]interface{}{}, errEquipmentBase } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.ConnectedSasExpander) { toSerialize["ConnectedSasExpander"] = o.ConnectedSasExpander @@ -1725,6 +1741,13 @@ func (o *StorageController) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -1734,11 +1757,23 @@ func (o *StorageController) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type StorageControllerWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_storage_controller_drive.go b/model_storage_controller_drive.go index 8db5f07c66..36d5f921b4 100644 --- a/model_storage_controller_drive.go +++ b/model_storage_controller_drive.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -96,6 +96,11 @@ func (o *StorageControllerDrive) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "storage.ControllerDrive" of the ClassId field. +func (o *StorageControllerDrive) GetDefaultClassId() interface{} { + return "storage.ControllerDrive" +} + // GetObjectType returns the ObjectType field value func (o *StorageControllerDrive) GetObjectType() string { if o == nil { @@ -120,6 +125,11 @@ func (o *StorageControllerDrive) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "storage.ControllerDrive" of the ObjectType field. +func (o *StorageControllerDrive) GetDefaultObjectType() interface{} { + return "storage.ControllerDrive" +} + // GetControllerType returns the ControllerType field value if set, zero value otherwise. func (o *StorageControllerDrive) GetControllerType() string { if o == nil || IsNil(o.ControllerType) { @@ -419,7 +429,7 @@ func (o *StorageControllerDrive) GetStorageItemOk() ([]StorageItemRelationship, // HasStorageItem returns a boolean if a field has been set. func (o *StorageControllerDrive) HasStorageItem() bool { - if o != nil && IsNil(o.StorageItem) { + if o != nil && !IsNil(o.StorageItem) { return true } @@ -449,7 +459,13 @@ func (o StorageControllerDrive) ToMap() (map[string]interface{}, error) { if errInventoryBase != nil { return map[string]interface{}{}, errInventoryBase } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.ControllerType) { toSerialize["ControllerType"] = o.ControllerType @@ -495,6 +511,13 @@ func (o *StorageControllerDrive) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -504,11 +527,23 @@ func (o *StorageControllerDrive) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type StorageControllerDriveWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_storage_controller_drive_list.go b/model_storage_controller_drive_list.go index 87e0aa9358..5d0c585a86 100644 --- a/model_storage_controller_drive_list.go +++ b/model_storage_controller_drive_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *StorageControllerDriveList) GetResultsOk() ([]StorageControllerDrive, b // HasResults returns a boolean if a field has been set. func (o *StorageControllerDriveList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *StorageControllerDriveList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *StorageControllerDriveList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type StorageControllerDriveListWithoutEmbeddedStruct struct { // The total number of 'storage.ControllerDrive' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_storage_controller_drive_relationship.go b/model_storage_controller_drive_relationship.go index 5990b832cb..1a1cd5f6f3 100644 --- a/model_storage_controller_drive_relationship.go +++ b/model_storage_controller_drive_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_storage_controller_drive_response.go b/model_storage_controller_drive_response.go index 107eb51d98..a36e379848 100644 --- a/model_storage_controller_drive_response.go +++ b/model_storage_controller_drive_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_storage_controller_list.go b/model_storage_controller_list.go index d4e4f49d6b..108c54c1fc 100644 --- a/model_storage_controller_list.go +++ b/model_storage_controller_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *StorageControllerList) GetResultsOk() ([]StorageController, bool) { // HasResults returns a boolean if a field has been set. func (o *StorageControllerList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *StorageControllerList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *StorageControllerList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type StorageControllerListWithoutEmbeddedStruct struct { // The total number of 'storage.Controller' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_storage_controller_relationship.go b/model_storage_controller_relationship.go index 683a31d6ac..0803c1de71 100644 --- a/model_storage_controller_relationship.go +++ b/model_storage_controller_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_storage_controller_response.go b/model_storage_controller_response.go index 47c8da5f66..fb31d9d116 100644 --- a/model_storage_controller_response.go +++ b/model_storage_controller_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_storage_disk_group.go b/model_storage_disk_group.go index ce49c604a5..7696742c53 100644 --- a/model_storage_disk_group.go +++ b/model_storage_disk_group.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -92,6 +92,11 @@ func (o *StorageDiskGroup) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "storage.DiskGroup" of the ClassId field. +func (o *StorageDiskGroup) GetDefaultClassId() interface{} { + return "storage.DiskGroup" +} + // GetObjectType returns the ObjectType field value func (o *StorageDiskGroup) GetObjectType() string { if o == nil { @@ -116,6 +121,11 @@ func (o *StorageDiskGroup) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "storage.DiskGroup" of the ObjectType field. +func (o *StorageDiskGroup) GetDefaultObjectType() interface{} { + return "storage.DiskGroup" +} + // GetName returns the Name field value if set, zero value otherwise. func (o *StorageDiskGroup) GetName() string { if o == nil || IsNil(o.Name) { @@ -201,7 +211,7 @@ func (o *StorageDiskGroup) GetDedicatedHotSparesOk() ([]StoragePhysicalDiskRelat // HasDedicatedHotSpares returns a boolean if a field has been set. func (o *StorageDiskGroup) HasDedicatedHotSpares() bool { - if o != nil && IsNil(o.DedicatedHotSpares) { + if o != nil && !IsNil(o.DedicatedHotSpares) { return true } @@ -277,7 +287,7 @@ func (o *StorageDiskGroup) GetSpansOk() ([]StorageSpanRelationship, bool) { // HasSpans returns a boolean if a field has been set. func (o *StorageDiskGroup) HasSpans() bool { - if o != nil && IsNil(o.Spans) { + if o != nil && !IsNil(o.Spans) { return true } @@ -353,7 +363,7 @@ func (o *StorageDiskGroup) GetVirtualDrivesOk() ([]StorageVirtualDriveRelationsh // HasVirtualDrives returns a boolean if a field has been set. func (o *StorageDiskGroup) HasVirtualDrives() bool { - if o != nil && IsNil(o.VirtualDrives) { + if o != nil && !IsNil(o.VirtualDrives) { return true } @@ -383,7 +393,13 @@ func (o StorageDiskGroup) ToMap() (map[string]interface{}, error) { if errInventoryBase != nil { return map[string]interface{}{}, errInventoryBase } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Name) { toSerialize["Name"] = o.Name @@ -423,6 +439,13 @@ func (o *StorageDiskGroup) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -432,11 +455,23 @@ func (o *StorageDiskGroup) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type StorageDiskGroupWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_storage_disk_group_list.go b/model_storage_disk_group_list.go index b3497629d2..6ab7d4bfb8 100644 --- a/model_storage_disk_group_list.go +++ b/model_storage_disk_group_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *StorageDiskGroupList) GetResultsOk() ([]StorageDiskGroup, bool) { // HasResults returns a boolean if a field has been set. func (o *StorageDiskGroupList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *StorageDiskGroupList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *StorageDiskGroupList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type StorageDiskGroupListWithoutEmbeddedStruct struct { // The total number of 'storage.DiskGroup' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_storage_disk_group_relationship.go b/model_storage_disk_group_relationship.go index 9f47dc1654..5ddf5e5894 100644 --- a/model_storage_disk_group_relationship.go +++ b/model_storage_disk_group_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_storage_disk_group_response.go b/model_storage_disk_group_response.go index 722d4316ec..40e64b4016 100644 --- a/model_storage_disk_group_response.go +++ b/model_storage_disk_group_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_storage_disk_slot.go b/model_storage_disk_slot.go index 7f805195ed..7e7cfbc890 100644 --- a/model_storage_disk_slot.go +++ b/model_storage_disk_slot.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -84,6 +84,11 @@ func (o *StorageDiskSlot) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "storage.DiskSlot" of the ClassId field. +func (o *StorageDiskSlot) GetDefaultClassId() interface{} { + return "storage.DiskSlot" +} + // GetObjectType returns the ObjectType field value func (o *StorageDiskSlot) GetObjectType() string { if o == nil { @@ -108,6 +113,11 @@ func (o *StorageDiskSlot) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "storage.DiskSlot" of the ObjectType field. +func (o *StorageDiskSlot) GetDefaultObjectType() interface{} { + return "storage.DiskSlot" +} + // GetInventoryDeviceInfo returns the InventoryDeviceInfo field value if set, zero value otherwise (both if not set or set to explicit null). func (o *StorageDiskSlot) GetInventoryDeviceInfo() InventoryDeviceInfoRelationship { if o == nil || IsNil(o.InventoryDeviceInfo.Get()) { @@ -298,7 +308,13 @@ func (o StorageDiskSlot) ToMap() (map[string]interface{}, error) { if errEquipmentSlot != nil { return map[string]interface{}{}, errEquipmentSlot } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.InventoryDeviceInfo.IsSet() { toSerialize["InventoryDeviceInfo"] = o.InventoryDeviceInfo.Get() @@ -329,6 +345,13 @@ func (o *StorageDiskSlot) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -338,11 +361,23 @@ func (o *StorageDiskSlot) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type StorageDiskSlotWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_storage_disk_slot_list.go b/model_storage_disk_slot_list.go index 37257312be..b45e3c6b85 100644 --- a/model_storage_disk_slot_list.go +++ b/model_storage_disk_slot_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *StorageDiskSlotList) GetResultsOk() ([]StorageDiskSlot, bool) { // HasResults returns a boolean if a field has been set. func (o *StorageDiskSlotList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *StorageDiskSlotList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *StorageDiskSlotList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type StorageDiskSlotListWithoutEmbeddedStruct struct { // The total number of 'storage.DiskSlot' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_storage_disk_slot_relationship.go b/model_storage_disk_slot_relationship.go index 03dfa3e313..8b6c2f6b70 100644 --- a/model_storage_disk_slot_relationship.go +++ b/model_storage_disk_slot_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_storage_disk_slot_response.go b/model_storage_disk_slot_response.go index 92342f401e..a73957ffb1 100644 --- a/model_storage_disk_slot_response.go +++ b/model_storage_disk_slot_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_storage_drive_group.go b/model_storage_drive_group.go index e5821fc595..57b28035d6 100644 --- a/model_storage_drive_group.go +++ b/model_storage_drive_group.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -31,7 +31,7 @@ type StorageDriveGroup struct { AutomaticDriveGroup NullableStorageAutomaticDriveGroup `json:"AutomaticDriveGroup,omitempty"` ManualDriveGroup NullableStorageManualDriveGroup `json:"ManualDriveGroup,omitempty"` // The name of the drive group. The name can be between 1 and 64 alphanumeric characters. Spaces or any special characters other than - (hyphen), _ (underscore), : (colon), and . (period) are not allowed. - Name *string `json:"Name,omitempty"` + Name *string `json:"Name,omitempty" validate:"regexp=^[a-zA-Z0-9_.:-]{1,64}$"` // The supported RAID level for the disk group. * `Raid0` - RAID 0 Stripe Raid Level. * `Raid1` - RAID 1 Mirror Raid Level. * `Raid5` - RAID 5 Mirror Raid Level. * `Raid6` - RAID 6 Mirror Raid Level. * `Raid10` - RAID 10 Mirror Raid Level. * `Raid50` - RAID 50 Mirror Raid Level. * `Raid60` - RAID 60 Mirror Raid Level. RaidLevel *string `json:"RaidLevel,omitempty"` // Enables/disables the drive encryption on all the drives used in this policy. This flag just enables the drive security and only after remote key setting configured, the actual encryption will be done. @@ -96,6 +96,11 @@ func (o *StorageDriveGroup) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "storage.DriveGroup" of the ClassId field. +func (o *StorageDriveGroup) GetDefaultClassId() interface{} { + return "storage.DriveGroup" +} + // GetObjectType returns the ObjectType field value func (o *StorageDriveGroup) GetObjectType() string { if o == nil { @@ -120,6 +125,11 @@ func (o *StorageDriveGroup) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "storage.DriveGroup" of the ObjectType field. +func (o *StorageDriveGroup) GetDefaultObjectType() interface{} { + return "storage.DriveGroup" +} + // GetAutomaticDriveGroup returns the AutomaticDriveGroup field value if set, zero value otherwise (both if not set or set to explicit null). func (o *StorageDriveGroup) GetAutomaticDriveGroup() StorageAutomaticDriveGroup { if o == nil || IsNil(o.AutomaticDriveGroup.Get()) { @@ -355,7 +365,7 @@ func (o *StorageDriveGroup) GetVirtualDrivesOk() ([]StorageVirtualDriveConfigura // HasVirtualDrives returns a boolean if a field has been set. func (o *StorageDriveGroup) HasVirtualDrives() bool { - if o != nil && IsNil(o.VirtualDrives) { + if o != nil && !IsNil(o.VirtualDrives) { return true } @@ -428,7 +438,13 @@ func (o StorageDriveGroup) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.AutomaticDriveGroup.IsSet() { toSerialize["AutomaticDriveGroup"] = o.AutomaticDriveGroup.Get() @@ -471,6 +487,13 @@ func (o *StorageDriveGroup) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -480,11 +503,23 @@ func (o *StorageDriveGroup) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type StorageDriveGroupWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` @@ -493,7 +528,7 @@ func (o *StorageDriveGroup) UnmarshalJSON(data []byte) (err error) { AutomaticDriveGroup NullableStorageAutomaticDriveGroup `json:"AutomaticDriveGroup,omitempty"` ManualDriveGroup NullableStorageManualDriveGroup `json:"ManualDriveGroup,omitempty"` // The name of the drive group. The name can be between 1 and 64 alphanumeric characters. Spaces or any special characters other than - (hyphen), _ (underscore), : (colon), and . (period) are not allowed. - Name *string `json:"Name,omitempty"` + Name *string `json:"Name,omitempty" validate:"regexp=^[a-zA-Z0-9_.:-]{1,64}$"` // The supported RAID level for the disk group. * `Raid0` - RAID 0 Stripe Raid Level. * `Raid1` - RAID 1 Mirror Raid Level. * `Raid5` - RAID 5 Mirror Raid Level. * `Raid6` - RAID 6 Mirror Raid Level. * `Raid10` - RAID 10 Mirror Raid Level. * `Raid50` - RAID 50 Mirror Raid Level. * `Raid60` - RAID 60 Mirror Raid Level. RaidLevel *string `json:"RaidLevel,omitempty"` // Enables/disables the drive encryption on all the drives used in this policy. This flag just enables the drive security and only after remote key setting configured, the actual encryption will be done. diff --git a/model_storage_drive_group_list.go b/model_storage_drive_group_list.go index c44e3c44a3..5eb8cb3937 100644 --- a/model_storage_drive_group_list.go +++ b/model_storage_drive_group_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *StorageDriveGroupList) GetResultsOk() ([]StorageDriveGroup, bool) { // HasResults returns a boolean if a field has been set. func (o *StorageDriveGroupList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *StorageDriveGroupList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *StorageDriveGroupList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type StorageDriveGroupListWithoutEmbeddedStruct struct { // The total number of 'storage.DriveGroup' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_storage_drive_group_relationship.go b/model_storage_drive_group_relationship.go index c47f64622a..b882663eaf 100644 --- a/model_storage_drive_group_relationship.go +++ b/model_storage_drive_group_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_storage_drive_group_response.go b/model_storage_drive_group_response.go index 886356ab6e..11a2b8542d 100644 --- a/model_storage_drive_group_response.go +++ b/model_storage_drive_group_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_storage_drive_security_policy.go b/model_storage_drive_security_policy.go index 1990888ac6..765515a482 100644 --- a/model_storage_drive_security_policy.go +++ b/model_storage_drive_security_policy.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -84,6 +84,11 @@ func (o *StorageDriveSecurityPolicy) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "storage.DriveSecurityPolicy" of the ClassId field. +func (o *StorageDriveSecurityPolicy) GetDefaultClassId() interface{} { + return "storage.DriveSecurityPolicy" +} + // GetObjectType returns the ObjectType field value func (o *StorageDriveSecurityPolicy) GetObjectType() string { if o == nil { @@ -108,6 +113,11 @@ func (o *StorageDriveSecurityPolicy) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "storage.DriveSecurityPolicy" of the ObjectType field. +func (o *StorageDriveSecurityPolicy) GetDefaultObjectType() interface{} { + return "storage.DriveSecurityPolicy" +} + // GetKeySetting returns the KeySetting field value if set, zero value otherwise (both if not set or set to explicit null). func (o *StorageDriveSecurityPolicy) GetKeySetting() StorageKeySetting { if o == nil || IsNil(o.KeySetting.Get()) { @@ -215,7 +225,7 @@ func (o *StorageDriveSecurityPolicy) GetProfilesOk() ([]PolicyAbstractConfigProf // HasProfiles returns a boolean if a field has been set. func (o *StorageDriveSecurityPolicy) HasProfiles() bool { - if o != nil && IsNil(o.Profiles) { + if o != nil && !IsNil(o.Profiles) { return true } @@ -245,7 +255,13 @@ func (o StorageDriveSecurityPolicy) ToMap() (map[string]interface{}, error) { if errPolicyAbstractPolicy != nil { return map[string]interface{}{}, errPolicyAbstractPolicy } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.KeySetting.IsSet() { toSerialize["KeySetting"] = o.KeySetting.Get() @@ -273,6 +289,13 @@ func (o *StorageDriveSecurityPolicy) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -282,11 +305,23 @@ func (o *StorageDriveSecurityPolicy) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type StorageDriveSecurityPolicyWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_storage_drive_security_policy_list.go b/model_storage_drive_security_policy_list.go index 6f76121992..7c49f502c8 100644 --- a/model_storage_drive_security_policy_list.go +++ b/model_storage_drive_security_policy_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *StorageDriveSecurityPolicyList) GetResultsOk() ([]StorageDriveSecurityP // HasResults returns a boolean if a field has been set. func (o *StorageDriveSecurityPolicyList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *StorageDriveSecurityPolicyList) UnmarshalJSON(data []byte) (err error) "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *StorageDriveSecurityPolicyList) UnmarshalJSON(data []byte) (err error) } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type StorageDriveSecurityPolicyListWithoutEmbeddedStruct struct { // The total number of 'storage.DriveSecurityPolicy' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_storage_drive_security_policy_response.go b/model_storage_drive_security_policy_response.go index ce30f3fa28..b8c466136b 100644 --- a/model_storage_drive_security_policy_response.go +++ b/model_storage_drive_security_policy_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_storage_enclosure.go b/model_storage_enclosure.go index 61bf368413..8ea6af7d0e 100644 --- a/model_storage_enclosure.go +++ b/model_storage_enclosure.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -103,6 +103,11 @@ func (o *StorageEnclosure) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "storage.Enclosure" of the ClassId field. +func (o *StorageEnclosure) GetDefaultClassId() interface{} { + return "storage.Enclosure" +} + // GetObjectType returns the ObjectType field value func (o *StorageEnclosure) GetObjectType() string { if o == nil { @@ -127,6 +132,11 @@ func (o *StorageEnclosure) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "storage.Enclosure" of the ObjectType field. +func (o *StorageEnclosure) GetDefaultObjectType() interface{} { + return "storage.Enclosure" +} + // GetChassisId returns the ChassisId field value if set, zero value otherwise. func (o *StorageEnclosure) GetChassisId() int64 { if o == nil || IsNil(o.ChassisId) { @@ -426,7 +436,7 @@ func (o *StorageEnclosure) GetEnclosureDiskSlotsOk() ([]StorageEnclosureDiskSlot // HasEnclosureDiskSlots returns a boolean if a field has been set. func (o *StorageEnclosure) HasEnclosureDiskSlots() bool { - if o != nil && IsNil(o.EnclosureDiskSlots) { + if o != nil && !IsNil(o.EnclosureDiskSlots) { return true } @@ -459,7 +469,7 @@ func (o *StorageEnclosure) GetEnclosureDisksOk() ([]StorageEnclosureDiskRelation // HasEnclosureDisks returns a boolean if a field has been set. func (o *StorageEnclosure) HasEnclosureDisks() bool { - if o != nil && IsNil(o.EnclosureDisks) { + if o != nil && !IsNil(o.EnclosureDisks) { return true } @@ -578,7 +588,7 @@ func (o *StorageEnclosure) GetPhysicalDisksOk() ([]StoragePhysicalDiskRelationsh // HasPhysicalDisks returns a boolean if a field has been set. func (o *StorageEnclosure) HasPhysicalDisks() bool { - if o != nil && IsNil(o.PhysicalDisks) { + if o != nil && !IsNil(o.PhysicalDisks) { return true } @@ -651,7 +661,13 @@ func (o StorageEnclosure) ToMap() (map[string]interface{}, error) { if errEquipmentBase != nil { return map[string]interface{}{}, errEquipmentBase } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.ChassisId) { toSerialize["ChassisId"] = o.ChassisId @@ -712,6 +728,13 @@ func (o *StorageEnclosure) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -721,11 +744,23 @@ func (o *StorageEnclosure) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type StorageEnclosureWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_storage_enclosure_disk.go b/model_storage_enclosure_disk.go index 2e98fc5088..d21f0b7b3e 100644 --- a/model_storage_enclosure_disk.go +++ b/model_storage_enclosure_disk.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -102,6 +102,11 @@ func (o *StorageEnclosureDisk) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "storage.EnclosureDisk" of the ClassId field. +func (o *StorageEnclosureDisk) GetDefaultClassId() interface{} { + return "storage.EnclosureDisk" +} + // GetObjectType returns the ObjectType field value func (o *StorageEnclosureDisk) GetObjectType() string { if o == nil { @@ -126,6 +131,11 @@ func (o *StorageEnclosureDisk) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "storage.EnclosureDisk" of the ObjectType field. +func (o *StorageEnclosureDisk) GetDefaultObjectType() interface{} { + return "storage.EnclosureDisk" +} + // GetBlockSize returns the BlockSize field value if set, zero value otherwise. func (o *StorageEnclosureDisk) GetBlockSize() string { if o == nil || IsNil(o.BlockSize) { @@ -604,7 +614,13 @@ func (o StorageEnclosureDisk) ToMap() (map[string]interface{}, error) { if errEquipmentBase != nil { return map[string]interface{}{}, errEquipmentBase } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.BlockSize) { toSerialize["BlockSize"] = o.BlockSize @@ -662,6 +678,13 @@ func (o *StorageEnclosureDisk) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -671,11 +694,23 @@ func (o *StorageEnclosureDisk) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type StorageEnclosureDiskWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_storage_enclosure_disk_list.go b/model_storage_enclosure_disk_list.go index 634b32ecf1..a54d856bb8 100644 --- a/model_storage_enclosure_disk_list.go +++ b/model_storage_enclosure_disk_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *StorageEnclosureDiskList) GetResultsOk() ([]StorageEnclosureDisk, bool) // HasResults returns a boolean if a field has been set. func (o *StorageEnclosureDiskList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *StorageEnclosureDiskList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *StorageEnclosureDiskList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type StorageEnclosureDiskListWithoutEmbeddedStruct struct { // The total number of 'storage.EnclosureDisk' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_storage_enclosure_disk_relationship.go b/model_storage_enclosure_disk_relationship.go index d5e4b884e8..f028f48c4d 100644 --- a/model_storage_enclosure_disk_relationship.go +++ b/model_storage_enclosure_disk_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_storage_enclosure_disk_response.go b/model_storage_enclosure_disk_response.go index c7932c7513..16b5ab1ce2 100644 --- a/model_storage_enclosure_disk_response.go +++ b/model_storage_enclosure_disk_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_storage_enclosure_disk_slot_ep.go b/model_storage_enclosure_disk_slot_ep.go index 66a0d64515..43c27d49d7 100644 --- a/model_storage_enclosure_disk_slot_ep.go +++ b/model_storage_enclosure_disk_slot_ep.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -91,6 +91,11 @@ func (o *StorageEnclosureDiskSlotEp) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "storage.EnclosureDiskSlotEp" of the ClassId field. +func (o *StorageEnclosureDiskSlotEp) GetDefaultClassId() interface{} { + return "storage.EnclosureDiskSlotEp" +} + // GetObjectType returns the ObjectType field value func (o *StorageEnclosureDiskSlotEp) GetObjectType() string { if o == nil { @@ -115,6 +120,11 @@ func (o *StorageEnclosureDiskSlotEp) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "storage.EnclosureDiskSlotEp" of the ObjectType field. +func (o *StorageEnclosureDiskSlotEp) GetDefaultObjectType() interface{} { + return "storage.EnclosureDiskSlotEp" +} + // GetDrivePath returns the DrivePath field value if set, zero value otherwise. func (o *StorageEnclosureDiskSlotEp) GetDrivePath() string { if o == nil || IsNil(o.DrivePath) { @@ -390,7 +400,13 @@ func (o StorageEnclosureDiskSlotEp) ToMap() (map[string]interface{}, error) { if errInventoryBase != nil { return map[string]interface{}{}, errInventoryBase } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.DrivePath) { toSerialize["DrivePath"] = o.DrivePath @@ -430,6 +446,13 @@ func (o *StorageEnclosureDiskSlotEp) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -439,11 +462,23 @@ func (o *StorageEnclosureDiskSlotEp) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type StorageEnclosureDiskSlotEpWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_storage_enclosure_disk_slot_ep_list.go b/model_storage_enclosure_disk_slot_ep_list.go index 521be83e33..60c1053e9e 100644 --- a/model_storage_enclosure_disk_slot_ep_list.go +++ b/model_storage_enclosure_disk_slot_ep_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *StorageEnclosureDiskSlotEpList) GetResultsOk() ([]StorageEnclosureDiskS // HasResults returns a boolean if a field has been set. func (o *StorageEnclosureDiskSlotEpList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *StorageEnclosureDiskSlotEpList) UnmarshalJSON(data []byte) (err error) "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *StorageEnclosureDiskSlotEpList) UnmarshalJSON(data []byte) (err error) } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type StorageEnclosureDiskSlotEpListWithoutEmbeddedStruct struct { // The total number of 'storage.EnclosureDiskSlotEp' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_storage_enclosure_disk_slot_ep_relationship.go b/model_storage_enclosure_disk_slot_ep_relationship.go index 9e3a09f267..939ce5c9ac 100644 --- a/model_storage_enclosure_disk_slot_ep_relationship.go +++ b/model_storage_enclosure_disk_slot_ep_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_storage_enclosure_disk_slot_ep_response.go b/model_storage_enclosure_disk_slot_ep_response.go index 77357f019d..68738bc8d3 100644 --- a/model_storage_enclosure_disk_slot_ep_response.go +++ b/model_storage_enclosure_disk_slot_ep_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_storage_enclosure_list.go b/model_storage_enclosure_list.go index 47ab757840..5f9065eec0 100644 --- a/model_storage_enclosure_list.go +++ b/model_storage_enclosure_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *StorageEnclosureList) GetResultsOk() ([]StorageEnclosure, bool) { // HasResults returns a boolean if a field has been set. func (o *StorageEnclosureList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *StorageEnclosureList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *StorageEnclosureList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type StorageEnclosureListWithoutEmbeddedStruct struct { // The total number of 'storage.Enclosure' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_storage_enclosure_relationship.go b/model_storage_enclosure_relationship.go index 19a8ffffd5..6dfa473b97 100644 --- a/model_storage_enclosure_relationship.go +++ b/model_storage_enclosure_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_storage_enclosure_response.go b/model_storage_enclosure_response.go index 6f938b20c8..6b5045fde9 100644 --- a/model_storage_enclosure_response.go +++ b/model_storage_enclosure_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_storage_external_lun.go b/model_storage_external_lun.go index 9eda2f3b38..3251c053d7 100644 --- a/model_storage_external_lun.go +++ b/model_storage_external_lun.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -90,6 +90,11 @@ func (o *StorageExternalLun) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "storage.ExternalLun" of the ClassId field. +func (o *StorageExternalLun) GetDefaultClassId() interface{} { + return "storage.ExternalLun" +} + // GetObjectType returns the ObjectType field value func (o *StorageExternalLun) GetObjectType() string { if o == nil { @@ -114,6 +119,11 @@ func (o *StorageExternalLun) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "storage.ExternalLun" of the ObjectType field. +func (o *StorageExternalLun) GetDefaultObjectType() interface{} { + return "storage.ExternalLun" +} + // GetExternalLun returns the ExternalLun field value if set, zero value otherwise. func (o *StorageExternalLun) GetExternalLun() int64 { if o == nil || IsNil(o.ExternalLun) { @@ -292,7 +302,13 @@ func (o StorageExternalLun) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.ExternalLun) { toSerialize["ExternalLun"] = o.ExternalLun @@ -326,6 +342,13 @@ func (o *StorageExternalLun) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -335,11 +358,23 @@ func (o *StorageExternalLun) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type StorageExternalLunWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_storage_external_parity_group.go b/model_storage_external_parity_group.go index 55c15bf337..247d3c0cc2 100644 --- a/model_storage_external_parity_group.go +++ b/model_storage_external_parity_group.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -97,6 +97,11 @@ func (o *StorageExternalParityGroup) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "storage.ExternalParityGroup" of the ClassId field. +func (o *StorageExternalParityGroup) GetDefaultClassId() interface{} { + return "storage.ExternalParityGroup" +} + // GetObjectType returns the ObjectType field value func (o *StorageExternalParityGroup) GetObjectType() string { if o == nil { @@ -121,6 +126,11 @@ func (o *StorageExternalParityGroup) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "storage.ExternalParityGroup" of the ObjectType field. +func (o *StorageExternalParityGroup) GetDefaultObjectType() interface{} { + return "storage.ExternalParityGroup" +} + // GetCacheMode returns the CacheMode field value if set, zero value otherwise. func (o *StorageExternalParityGroup) GetCacheMode() string { if o == nil || IsNil(o.CacheMode) { @@ -174,7 +184,7 @@ func (o *StorageExternalParityGroup) GetExternalLunsOk() ([]StorageExternalLun, // HasExternalLuns returns a boolean if a field has been set. func (o *StorageExternalParityGroup) HasExternalLuns() bool { - if o != nil && IsNil(o.ExternalLuns) { + if o != nil && !IsNil(o.ExternalLuns) { return true } @@ -428,7 +438,13 @@ func (o StorageExternalParityGroup) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.CacheMode) { toSerialize["CacheMode"] = o.CacheMode @@ -474,6 +490,13 @@ func (o *StorageExternalParityGroup) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -483,11 +506,23 @@ func (o *StorageExternalParityGroup) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type StorageExternalParityGroupWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_storage_external_path.go b/model_storage_external_path.go index 70a7a9b7df..4142c5abba 100644 --- a/model_storage_external_path.go +++ b/model_storage_external_path.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -90,6 +90,11 @@ func (o *StorageExternalPath) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "storage.ExternalPath" of the ClassId field. +func (o *StorageExternalPath) GetDefaultClassId() interface{} { + return "storage.ExternalPath" +} + // GetObjectType returns the ObjectType field value func (o *StorageExternalPath) GetObjectType() string { if o == nil { @@ -114,6 +119,11 @@ func (o *StorageExternalPath) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "storage.ExternalPath" of the ObjectType field. +func (o *StorageExternalPath) GetDefaultObjectType() interface{} { + return "storage.ExternalPath" +} + // GetBlockedPathMonitoring returns the BlockedPathMonitoring field value if set, zero value otherwise. func (o *StorageExternalPath) GetBlockedPathMonitoring() int64 { if o == nil || IsNil(o.BlockedPathMonitoring) { @@ -292,7 +302,13 @@ func (o StorageExternalPath) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.BlockedPathMonitoring) { toSerialize["BlockedPathMonitoring"] = o.BlockedPathMonitoring @@ -326,6 +342,13 @@ func (o *StorageExternalPath) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -335,11 +358,23 @@ func (o *StorageExternalPath) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type StorageExternalPathWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_storage_file_item.go b/model_storage_file_item.go index d49337582a..4319656b89 100644 --- a/model_storage_file_item.go +++ b/model_storage_file_item.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -96,6 +96,11 @@ func (o *StorageFileItem) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "storage.FileItem" of the ClassId field. +func (o *StorageFileItem) GetDefaultClassId() interface{} { + return "storage.FileItem" +} + // GetObjectType returns the ObjectType field value func (o *StorageFileItem) GetObjectType() string { if o == nil { @@ -120,6 +125,11 @@ func (o *StorageFileItem) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "storage.FileItem" of the ObjectType field. +func (o *StorageFileItem) GetDefaultObjectType() interface{} { + return "storage.FileItem" +} + // GetDescription returns the Description field value if set, zero value otherwise. func (o *StorageFileItem) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -448,7 +458,13 @@ func (o StorageFileItem) ToMap() (map[string]interface{}, error) { if errInventoryBase != nil { return map[string]interface{}{}, errInventoryBase } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Description) { toSerialize["Description"] = o.Description @@ -494,6 +510,13 @@ func (o *StorageFileItem) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -503,11 +526,23 @@ func (o *StorageFileItem) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type StorageFileItemWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_storage_file_item_list.go b/model_storage_file_item_list.go index 6d7935a3fc..f0ccf8b5e2 100644 --- a/model_storage_file_item_list.go +++ b/model_storage_file_item_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *StorageFileItemList) GetResultsOk() ([]StorageFileItem, bool) { // HasResults returns a boolean if a field has been set. func (o *StorageFileItemList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *StorageFileItemList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *StorageFileItemList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type StorageFileItemListWithoutEmbeddedStruct struct { // The total number of 'storage.FileItem' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_storage_file_item_relationship.go b/model_storage_file_item_relationship.go index b016546d1e..6240b72759 100644 --- a/model_storage_file_item_relationship.go +++ b/model_storage_file_item_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_storage_file_item_response.go b/model_storage_file_item_response.go index a38f731221..4788d56002 100644 --- a/model_storage_file_item_response.go +++ b/model_storage_file_item_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_storage_flex_flash_controller.go b/model_storage_flex_flash_controller.go index 81c841d5d2..0d9f9b8322 100644 --- a/model_storage_flex_flash_controller.go +++ b/model_storage_flex_flash_controller.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -95,6 +95,11 @@ func (o *StorageFlexFlashController) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "storage.FlexFlashController" of the ClassId field. +func (o *StorageFlexFlashController) GetDefaultClassId() interface{} { + return "storage.FlexFlashController" +} + // GetObjectType returns the ObjectType field value func (o *StorageFlexFlashController) GetObjectType() string { if o == nil { @@ -119,6 +124,11 @@ func (o *StorageFlexFlashController) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "storage.FlexFlashController" of the ObjectType field. +func (o *StorageFlexFlashController) GetDefaultObjectType() interface{} { + return "storage.FlexFlashController" +} + // GetControllerState returns the ControllerState field value if set, zero value otherwise. func (o *StorageFlexFlashController) GetControllerState() string { if o == nil || IsNil(o.ControllerState) { @@ -247,7 +257,7 @@ func (o *StorageFlexFlashController) GetFlexFlashControllerPropsOk() ([]StorageF // HasFlexFlashControllerProps returns a boolean if a field has been set. func (o *StorageFlexFlashController) HasFlexFlashControllerProps() bool { - if o != nil && IsNil(o.FlexFlashControllerProps) { + if o != nil && !IsNil(o.FlexFlashControllerProps) { return true } @@ -280,7 +290,7 @@ func (o *StorageFlexFlashController) GetFlexFlashPhysicalDrivesOk() ([]StorageFl // HasFlexFlashPhysicalDrives returns a boolean if a field has been set. func (o *StorageFlexFlashController) HasFlexFlashPhysicalDrives() bool { - if o != nil && IsNil(o.FlexFlashPhysicalDrives) { + if o != nil && !IsNil(o.FlexFlashPhysicalDrives) { return true } @@ -313,7 +323,7 @@ func (o *StorageFlexFlashController) GetFlexFlashVirtualDrivesOk() ([]StorageFle // HasFlexFlashVirtualDrives returns a boolean if a field has been set. func (o *StorageFlexFlashController) HasFlexFlashVirtualDrives() bool { - if o != nil && IsNil(o.FlexFlashVirtualDrives) { + if o != nil && !IsNil(o.FlexFlashVirtualDrives) { return true } @@ -432,7 +442,7 @@ func (o *StorageFlexFlashController) GetRunningFirmwareOk() ([]FirmwareRunningFi // HasRunningFirmware returns a boolean if a field has been set. func (o *StorageFlexFlashController) HasRunningFirmware() bool { - if o != nil && IsNil(o.RunningFirmware) { + if o != nil && !IsNil(o.RunningFirmware) { return true } @@ -462,7 +472,13 @@ func (o StorageFlexFlashController) ToMap() (map[string]interface{}, error) { if errEquipmentBase != nil { return map[string]interface{}{}, errEquipmentBase } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.ControllerState) { toSerialize["ControllerState"] = o.ControllerState @@ -508,6 +524,13 @@ func (o *StorageFlexFlashController) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -517,11 +540,23 @@ func (o *StorageFlexFlashController) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type StorageFlexFlashControllerWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_storage_flex_flash_controller_list.go b/model_storage_flex_flash_controller_list.go index 7b186bba42..8770a3bff3 100644 --- a/model_storage_flex_flash_controller_list.go +++ b/model_storage_flex_flash_controller_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *StorageFlexFlashControllerList) GetResultsOk() ([]StorageFlexFlashContr // HasResults returns a boolean if a field has been set. func (o *StorageFlexFlashControllerList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *StorageFlexFlashControllerList) UnmarshalJSON(data []byte) (err error) "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *StorageFlexFlashControllerList) UnmarshalJSON(data []byte) (err error) } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type StorageFlexFlashControllerListWithoutEmbeddedStruct struct { // The total number of 'storage.FlexFlashController' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_storage_flex_flash_controller_props.go b/model_storage_flex_flash_controller_props.go index 1bbd44ed5f..22ff18eab6 100644 --- a/model_storage_flex_flash_controller_props.go +++ b/model_storage_flex_flash_controller_props.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -105,6 +105,11 @@ func (o *StorageFlexFlashControllerProps) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "storage.FlexFlashControllerProps" of the ClassId field. +func (o *StorageFlexFlashControllerProps) GetDefaultClassId() interface{} { + return "storage.FlexFlashControllerProps" +} + // GetObjectType returns the ObjectType field value func (o *StorageFlexFlashControllerProps) GetObjectType() string { if o == nil { @@ -129,6 +134,11 @@ func (o *StorageFlexFlashControllerProps) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "storage.FlexFlashControllerProps" of the ObjectType field. +func (o *StorageFlexFlashControllerProps) GetDefaultObjectType() interface{} { + return "storage.FlexFlashControllerProps" +} + // GetCardsManageable returns the CardsManageable field value if set, zero value otherwise. func (o *StorageFlexFlashControllerProps) GetCardsManageable() string { if o == nil || IsNil(o.CardsManageable) { @@ -628,7 +638,13 @@ func (o StorageFlexFlashControllerProps) ToMap() (map[string]interface{}, error) if errEquipmentBase != nil { return map[string]interface{}{}, errEquipmentBase } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.CardsManageable) { toSerialize["CardsManageable"] = o.CardsManageable @@ -689,6 +705,13 @@ func (o *StorageFlexFlashControllerProps) UnmarshalJSON(data []byte) (err error) "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -698,11 +721,23 @@ func (o *StorageFlexFlashControllerProps) UnmarshalJSON(data []byte) (err error) } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type StorageFlexFlashControllerPropsWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_storage_flex_flash_controller_props_list.go b/model_storage_flex_flash_controller_props_list.go index f4573a212f..43c85d513e 100644 --- a/model_storage_flex_flash_controller_props_list.go +++ b/model_storage_flex_flash_controller_props_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *StorageFlexFlashControllerPropsList) GetResultsOk() ([]StorageFlexFlash // HasResults returns a boolean if a field has been set. func (o *StorageFlexFlashControllerPropsList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *StorageFlexFlashControllerPropsList) UnmarshalJSON(data []byte) (err er "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *StorageFlexFlashControllerPropsList) UnmarshalJSON(data []byte) (err er } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type StorageFlexFlashControllerPropsListWithoutEmbeddedStruct struct { // The total number of 'storage.FlexFlashControllerProps' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_storage_flex_flash_controller_props_relationship.go b/model_storage_flex_flash_controller_props_relationship.go index dd6cfe28a3..3f5d1e9e30 100644 --- a/model_storage_flex_flash_controller_props_relationship.go +++ b/model_storage_flex_flash_controller_props_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_storage_flex_flash_controller_props_response.go b/model_storage_flex_flash_controller_props_response.go index 9d9f66e746..9a7fba463e 100644 --- a/model_storage_flex_flash_controller_props_response.go +++ b/model_storage_flex_flash_controller_props_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_storage_flex_flash_controller_relationship.go b/model_storage_flex_flash_controller_relationship.go index ef66bf3975..77f3516e94 100644 --- a/model_storage_flex_flash_controller_relationship.go +++ b/model_storage_flex_flash_controller_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_storage_flex_flash_controller_response.go b/model_storage_flex_flash_controller_response.go index c966fc502d..195836b5ce 100644 --- a/model_storage_flex_flash_controller_response.go +++ b/model_storage_flex_flash_controller_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_storage_flex_flash_physical_drive.go b/model_storage_flex_flash_physical_drive.go index 8f2abe7fcf..1034d45910 100644 --- a/model_storage_flex_flash_physical_drive.go +++ b/model_storage_flex_flash_physical_drive.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -91,6 +91,11 @@ func (o *StorageFlexFlashPhysicalDrive) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "storage.FlexFlashPhysicalDrive" of the ClassId field. +func (o *StorageFlexFlashPhysicalDrive) GetDefaultClassId() interface{} { + return "storage.FlexFlashPhysicalDrive" +} + // GetObjectType returns the ObjectType field value func (o *StorageFlexFlashPhysicalDrive) GetObjectType() string { if o == nil { @@ -115,6 +120,11 @@ func (o *StorageFlexFlashPhysicalDrive) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "storage.FlexFlashPhysicalDrive" of the ObjectType field. +func (o *StorageFlexFlashPhysicalDrive) GetDefaultObjectType() interface{} { + return "storage.FlexFlashPhysicalDrive" +} + // GetCardStatus returns the CardStatus field value if set, zero value otherwise. func (o *StorageFlexFlashPhysicalDrive) GetCardStatus() string { if o == nil || IsNil(o.CardStatus) { @@ -390,7 +400,13 @@ func (o StorageFlexFlashPhysicalDrive) ToMap() (map[string]interface{}, error) { if errEquipmentBase != nil { return map[string]interface{}{}, errEquipmentBase } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.CardStatus) { toSerialize["CardStatus"] = o.CardStatus @@ -430,6 +446,13 @@ func (o *StorageFlexFlashPhysicalDrive) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -439,11 +462,23 @@ func (o *StorageFlexFlashPhysicalDrive) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type StorageFlexFlashPhysicalDriveWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_storage_flex_flash_physical_drive_list.go b/model_storage_flex_flash_physical_drive_list.go index fd9a734757..132345449a 100644 --- a/model_storage_flex_flash_physical_drive_list.go +++ b/model_storage_flex_flash_physical_drive_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *StorageFlexFlashPhysicalDriveList) GetResultsOk() ([]StorageFlexFlashPh // HasResults returns a boolean if a field has been set. func (o *StorageFlexFlashPhysicalDriveList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *StorageFlexFlashPhysicalDriveList) UnmarshalJSON(data []byte) (err erro "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *StorageFlexFlashPhysicalDriveList) UnmarshalJSON(data []byte) (err erro } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type StorageFlexFlashPhysicalDriveListWithoutEmbeddedStruct struct { // The total number of 'storage.FlexFlashPhysicalDrive' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_storage_flex_flash_physical_drive_relationship.go b/model_storage_flex_flash_physical_drive_relationship.go index bdfbc4b858..1117dbfdea 100644 --- a/model_storage_flex_flash_physical_drive_relationship.go +++ b/model_storage_flex_flash_physical_drive_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_storage_flex_flash_physical_drive_response.go b/model_storage_flex_flash_physical_drive_response.go index f562af3888..13b21841fa 100644 --- a/model_storage_flex_flash_physical_drive_response.go +++ b/model_storage_flex_flash_physical_drive_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_storage_flex_flash_virtual_drive.go b/model_storage_flex_flash_virtual_drive.go index 349a502764..856998aef2 100644 --- a/model_storage_flex_flash_virtual_drive.go +++ b/model_storage_flex_flash_virtual_drive.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -95,6 +95,11 @@ func (o *StorageFlexFlashVirtualDrive) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "storage.FlexFlashVirtualDrive" of the ClassId field. +func (o *StorageFlexFlashVirtualDrive) GetDefaultClassId() interface{} { + return "storage.FlexFlashVirtualDrive" +} + // GetObjectType returns the ObjectType field value func (o *StorageFlexFlashVirtualDrive) GetObjectType() string { if o == nil { @@ -119,6 +124,11 @@ func (o *StorageFlexFlashVirtualDrive) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "storage.FlexFlashVirtualDrive" of the ObjectType field. +func (o *StorageFlexFlashVirtualDrive) GetDefaultObjectType() interface{} { + return "storage.FlexFlashVirtualDrive" +} + // GetDriveScope returns the DriveScope field value if set, zero value otherwise. func (o *StorageFlexFlashVirtualDrive) GetDriveScope() string { if o == nil || IsNil(o.DriveScope) { @@ -458,7 +468,13 @@ func (o StorageFlexFlashVirtualDrive) ToMap() (map[string]interface{}, error) { if errEquipmentBase != nil { return map[string]interface{}{}, errEquipmentBase } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.DriveScope) { toSerialize["DriveScope"] = o.DriveScope @@ -504,6 +520,13 @@ func (o *StorageFlexFlashVirtualDrive) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -513,11 +536,23 @@ func (o *StorageFlexFlashVirtualDrive) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type StorageFlexFlashVirtualDriveWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_storage_flex_flash_virtual_drive_list.go b/model_storage_flex_flash_virtual_drive_list.go index fa02204be7..0327c298c2 100644 --- a/model_storage_flex_flash_virtual_drive_list.go +++ b/model_storage_flex_flash_virtual_drive_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *StorageFlexFlashVirtualDriveList) GetResultsOk() ([]StorageFlexFlashVir // HasResults returns a boolean if a field has been set. func (o *StorageFlexFlashVirtualDriveList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *StorageFlexFlashVirtualDriveList) UnmarshalJSON(data []byte) (err error "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *StorageFlexFlashVirtualDriveList) UnmarshalJSON(data []byte) (err error } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type StorageFlexFlashVirtualDriveListWithoutEmbeddedStruct struct { // The total number of 'storage.FlexFlashVirtualDrive' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_storage_flex_flash_virtual_drive_relationship.go b/model_storage_flex_flash_virtual_drive_relationship.go index 9f7c0ce130..7565537a5e 100644 --- a/model_storage_flex_flash_virtual_drive_relationship.go +++ b/model_storage_flex_flash_virtual_drive_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_storage_flex_flash_virtual_drive_response.go b/model_storage_flex_flash_virtual_drive_response.go index 2ad40f3d20..ad556bdedb 100644 --- a/model_storage_flex_flash_virtual_drive_response.go +++ b/model_storage_flex_flash_virtual_drive_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_storage_flex_util_controller.go b/model_storage_flex_util_controller.go index 525019c3a5..32050200c5 100644 --- a/model_storage_flex_util_controller.go +++ b/model_storage_flex_util_controller.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -95,6 +95,11 @@ func (o *StorageFlexUtilController) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "storage.FlexUtilController" of the ClassId field. +func (o *StorageFlexUtilController) GetDefaultClassId() interface{} { + return "storage.FlexUtilController" +} + // GetObjectType returns the ObjectType field value func (o *StorageFlexUtilController) GetObjectType() string { if o == nil { @@ -119,6 +124,11 @@ func (o *StorageFlexUtilController) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "storage.FlexUtilController" of the ObjectType field. +func (o *StorageFlexUtilController) GetDefaultObjectType() interface{} { + return "storage.FlexUtilController" +} + // GetControllerName returns the ControllerName field value if set, zero value otherwise. func (o *StorageFlexUtilController) GetControllerName() string { if o == nil || IsNil(o.ControllerName) { @@ -311,7 +321,7 @@ func (o *StorageFlexUtilController) GetFlexUtilPhysicalDrivesOk() ([]StorageFlex // HasFlexUtilPhysicalDrives returns a boolean if a field has been set. func (o *StorageFlexUtilController) HasFlexUtilPhysicalDrives() bool { - if o != nil && IsNil(o.FlexUtilPhysicalDrives) { + if o != nil && !IsNil(o.FlexUtilPhysicalDrives) { return true } @@ -344,7 +354,7 @@ func (o *StorageFlexUtilController) GetFlexUtilVirtualDrivesOk() ([]StorageFlexU // HasFlexUtilVirtualDrives returns a boolean if a field has been set. func (o *StorageFlexUtilController) HasFlexUtilVirtualDrives() bool { - if o != nil && IsNil(o.FlexUtilVirtualDrives) { + if o != nil && !IsNil(o.FlexUtilVirtualDrives) { return true } @@ -460,7 +470,13 @@ func (o StorageFlexUtilController) ToMap() (map[string]interface{}, error) { if errInventoryBase != nil { return map[string]interface{}{}, errInventoryBase } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.ControllerName) { toSerialize["ControllerName"] = o.ControllerName @@ -506,6 +522,13 @@ func (o *StorageFlexUtilController) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -515,11 +538,23 @@ func (o *StorageFlexUtilController) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type StorageFlexUtilControllerWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_storage_flex_util_controller_list.go b/model_storage_flex_util_controller_list.go index 3a394a2ae9..0defca10bb 100644 --- a/model_storage_flex_util_controller_list.go +++ b/model_storage_flex_util_controller_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *StorageFlexUtilControllerList) GetResultsOk() ([]StorageFlexUtilControl // HasResults returns a boolean if a field has been set. func (o *StorageFlexUtilControllerList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *StorageFlexUtilControllerList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *StorageFlexUtilControllerList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type StorageFlexUtilControllerListWithoutEmbeddedStruct struct { // The total number of 'storage.FlexUtilController' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_storage_flex_util_controller_relationship.go b/model_storage_flex_util_controller_relationship.go index f8c651da6d..61218dd77e 100644 --- a/model_storage_flex_util_controller_relationship.go +++ b/model_storage_flex_util_controller_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_storage_flex_util_controller_response.go b/model_storage_flex_util_controller_response.go index ebc4757fb9..3650e5c343 100644 --- a/model_storage_flex_util_controller_response.go +++ b/model_storage_flex_util_controller_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_storage_flex_util_physical_drive.go b/model_storage_flex_util_physical_drive.go index d7c6b76ee5..6ebb148a9c 100644 --- a/model_storage_flex_util_physical_drive.go +++ b/model_storage_flex_util_physical_drive.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -119,6 +119,11 @@ func (o *StorageFlexUtilPhysicalDrive) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "storage.FlexUtilPhysicalDrive" of the ClassId field. +func (o *StorageFlexUtilPhysicalDrive) GetDefaultClassId() interface{} { + return "storage.FlexUtilPhysicalDrive" +} + // GetObjectType returns the ObjectType field value func (o *StorageFlexUtilPhysicalDrive) GetObjectType() string { if o == nil { @@ -143,6 +148,11 @@ func (o *StorageFlexUtilPhysicalDrive) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "storage.FlexUtilPhysicalDrive" of the ObjectType field. +func (o *StorageFlexUtilPhysicalDrive) GetDefaultObjectType() interface{} { + return "storage.FlexUtilPhysicalDrive" +} + // GetBlockSize returns the BlockSize field value if set, zero value otherwise. func (o *StorageFlexUtilPhysicalDrive) GetBlockSize() string { if o == nil || IsNil(o.BlockSize) { @@ -866,7 +876,13 @@ func (o StorageFlexUtilPhysicalDrive) ToMap() (map[string]interface{}, error) { if errEquipmentBase != nil { return map[string]interface{}{}, errEquipmentBase } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.BlockSize) { toSerialize["BlockSize"] = o.BlockSize @@ -948,6 +964,13 @@ func (o *StorageFlexUtilPhysicalDrive) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -957,11 +980,23 @@ func (o *StorageFlexUtilPhysicalDrive) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type StorageFlexUtilPhysicalDriveWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_storage_flex_util_physical_drive_list.go b/model_storage_flex_util_physical_drive_list.go index b7de0af0c2..be69ad42db 100644 --- a/model_storage_flex_util_physical_drive_list.go +++ b/model_storage_flex_util_physical_drive_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *StorageFlexUtilPhysicalDriveList) GetResultsOk() ([]StorageFlexUtilPhys // HasResults returns a boolean if a field has been set. func (o *StorageFlexUtilPhysicalDriveList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *StorageFlexUtilPhysicalDriveList) UnmarshalJSON(data []byte) (err error "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *StorageFlexUtilPhysicalDriveList) UnmarshalJSON(data []byte) (err error } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type StorageFlexUtilPhysicalDriveListWithoutEmbeddedStruct struct { // The total number of 'storage.FlexUtilPhysicalDrive' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_storage_flex_util_physical_drive_relationship.go b/model_storage_flex_util_physical_drive_relationship.go index a78f450d8c..4f3ea5098a 100644 --- a/model_storage_flex_util_physical_drive_relationship.go +++ b/model_storage_flex_util_physical_drive_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_storage_flex_util_physical_drive_response.go b/model_storage_flex_util_physical_drive_response.go index 87a968a198..dc84e2290e 100644 --- a/model_storage_flex_util_physical_drive_response.go +++ b/model_storage_flex_util_physical_drive_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_storage_flex_util_virtual_drive.go b/model_storage_flex_util_virtual_drive.go index 1f19ea0242..4a9f327378 100644 --- a/model_storage_flex_util_virtual_drive.go +++ b/model_storage_flex_util_virtual_drive.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -99,6 +99,11 @@ func (o *StorageFlexUtilVirtualDrive) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "storage.FlexUtilVirtualDrive" of the ClassId field. +func (o *StorageFlexUtilVirtualDrive) GetDefaultClassId() interface{} { + return "storage.FlexUtilVirtualDrive" +} + // GetObjectType returns the ObjectType field value func (o *StorageFlexUtilVirtualDrive) GetObjectType() string { if o == nil { @@ -123,6 +128,11 @@ func (o *StorageFlexUtilVirtualDrive) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "storage.FlexUtilVirtualDrive" of the ObjectType field. +func (o *StorageFlexUtilVirtualDrive) GetDefaultObjectType() interface{} { + return "storage.FlexUtilVirtualDrive" +} + // GetDriveStatus returns the DriveStatus field value if set, zero value otherwise. func (o *StorageFlexUtilVirtualDrive) GetDriveStatus() string { if o == nil || IsNil(o.DriveStatus) { @@ -526,7 +536,13 @@ func (o StorageFlexUtilVirtualDrive) ToMap() (map[string]interface{}, error) { if errInventoryBase != nil { return map[string]interface{}{}, errInventoryBase } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.DriveStatus) { toSerialize["DriveStatus"] = o.DriveStatus @@ -578,6 +594,13 @@ func (o *StorageFlexUtilVirtualDrive) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -587,11 +610,23 @@ func (o *StorageFlexUtilVirtualDrive) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type StorageFlexUtilVirtualDriveWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_storage_flex_util_virtual_drive_list.go b/model_storage_flex_util_virtual_drive_list.go index 4dcb7fe1d6..3ac26210a0 100644 --- a/model_storage_flex_util_virtual_drive_list.go +++ b/model_storage_flex_util_virtual_drive_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *StorageFlexUtilVirtualDriveList) GetResultsOk() ([]StorageFlexUtilVirtu // HasResults returns a boolean if a field has been set. func (o *StorageFlexUtilVirtualDriveList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *StorageFlexUtilVirtualDriveList) UnmarshalJSON(data []byte) (err error) "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *StorageFlexUtilVirtualDriveList) UnmarshalJSON(data []byte) (err error) } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type StorageFlexUtilVirtualDriveListWithoutEmbeddedStruct struct { // The total number of 'storage.FlexUtilVirtualDrive' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_storage_flex_util_virtual_drive_relationship.go b/model_storage_flex_util_virtual_drive_relationship.go index 4964e5a31b..27ac859198 100644 --- a/model_storage_flex_util_virtual_drive_relationship.go +++ b/model_storage_flex_util_virtual_drive_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_storage_flex_util_virtual_drive_response.go b/model_storage_flex_util_virtual_drive_response.go index fdda199682..01e7bd5788 100644 --- a/model_storage_flex_util_virtual_drive_response.go +++ b/model_storage_flex_util_virtual_drive_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_storage_hitachi_array.go b/model_storage_hitachi_array.go index 5776c9971b..0efe0d53b4 100644 --- a/model_storage_hitachi_array.go +++ b/model_storage_hitachi_array.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -97,6 +97,11 @@ func (o *StorageHitachiArray) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "storage.HitachiArray" of the ClassId field. +func (o *StorageHitachiArray) GetDefaultClassId() interface{} { + return "storage.HitachiArray" +} + // GetObjectType returns the ObjectType field value func (o *StorageHitachiArray) GetObjectType() string { if o == nil { @@ -121,6 +126,11 @@ func (o *StorageHitachiArray) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "storage.HitachiArray" of the ObjectType field. +func (o *StorageHitachiArray) GetDefaultObjectType() interface{} { + return "storage.HitachiArray" +} + // GetCtl1Ip returns the Ctl1Ip field value if set, zero value otherwise. func (o *StorageHitachiArray) GetCtl1Ip() string { if o == nil || IsNil(o.Ctl1Ip) { @@ -438,7 +448,13 @@ func (o StorageHitachiArray) ToMap() (map[string]interface{}, error) { if errStorageBaseArray != nil { return map[string]interface{}{}, errStorageBaseArray } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Ctl1Ip) { toSerialize["Ctl1Ip"] = o.Ctl1Ip @@ -484,6 +500,13 @@ func (o *StorageHitachiArray) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -493,11 +516,23 @@ func (o *StorageHitachiArray) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type StorageHitachiArrayWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_storage_hitachi_array_list.go b/model_storage_hitachi_array_list.go index d2b3c4b73e..24890ea05f 100644 --- a/model_storage_hitachi_array_list.go +++ b/model_storage_hitachi_array_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *StorageHitachiArrayList) GetResultsOk() ([]StorageHitachiArray, bool) { // HasResults returns a boolean if a field has been set. func (o *StorageHitachiArrayList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *StorageHitachiArrayList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *StorageHitachiArrayList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type StorageHitachiArrayListWithoutEmbeddedStruct struct { // The total number of 'storage.HitachiArray' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_storage_hitachi_array_relationship.go b/model_storage_hitachi_array_relationship.go index db2e383404..c2a6b80442 100644 --- a/model_storage_hitachi_array_relationship.go +++ b/model_storage_hitachi_array_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_storage_hitachi_array_response.go b/model_storage_hitachi_array_response.go index eca06656f5..c466d57437 100644 --- a/model_storage_hitachi_array_response.go +++ b/model_storage_hitachi_array_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_storage_hitachi_array_utilization.go b/model_storage_hitachi_array_utilization.go index 9ac1afe53c..08e9c85a9a 100644 --- a/model_storage_hitachi_array_utilization.go +++ b/model_storage_hitachi_array_utilization.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -84,6 +84,11 @@ func (o *StorageHitachiArrayUtilization) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "storage.HitachiArrayUtilization" of the ClassId field. +func (o *StorageHitachiArrayUtilization) GetDefaultClassId() interface{} { + return "storage.HitachiArrayUtilization" +} + // GetObjectType returns the ObjectType field value func (o *StorageHitachiArrayUtilization) GetObjectType() string { if o == nil { @@ -108,6 +113,11 @@ func (o *StorageHitachiArrayUtilization) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "storage.HitachiArrayUtilization" of the ObjectType field. +func (o *StorageHitachiArrayUtilization) GetDefaultObjectType() interface{} { + return "storage.HitachiArrayUtilization" +} + // GetDataReduction returns the DataReduction field value if set, zero value otherwise. func (o *StorageHitachiArrayUtilization) GetDataReduction() float32 { if o == nil || IsNil(o.DataReduction) { @@ -190,7 +200,13 @@ func (o StorageHitachiArrayUtilization) ToMap() (map[string]interface{}, error) if errStorageBaseCapacity != nil { return map[string]interface{}{}, errStorageBaseCapacity } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.DataReduction) { toSerialize["DataReduction"] = o.DataReduction @@ -215,6 +231,13 @@ func (o *StorageHitachiArrayUtilization) UnmarshalJSON(data []byte) (err error) "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -224,11 +247,23 @@ func (o *StorageHitachiArrayUtilization) UnmarshalJSON(data []byte) (err error) } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type StorageHitachiArrayUtilizationWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_storage_hitachi_capacity.go b/model_storage_hitachi_capacity.go index cfeecc69c4..f3be417ce8 100644 --- a/model_storage_hitachi_capacity.go +++ b/model_storage_hitachi_capacity.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -83,6 +83,10 @@ func (o *StorageHitachiCapacity) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -92,11 +96,23 @@ func (o *StorageHitachiCapacity) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type StorageHitachiCapacityWithoutEmbeddedStruct struct { } diff --git a/model_storage_hitachi_controller.go b/model_storage_hitachi_controller.go index 3d5ff47523..e2d2226c5c 100644 --- a/model_storage_hitachi_controller.go +++ b/model_storage_hitachi_controller.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -82,6 +82,11 @@ func (o *StorageHitachiController) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "storage.HitachiController" of the ClassId field. +func (o *StorageHitachiController) GetDefaultClassId() interface{} { + return "storage.HitachiController" +} + // GetObjectType returns the ObjectType field value func (o *StorageHitachiController) GetObjectType() string { if o == nil { @@ -106,6 +111,11 @@ func (o *StorageHitachiController) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "storage.HitachiController" of the ObjectType field. +func (o *StorageHitachiController) GetDefaultObjectType() interface{} { + return "storage.HitachiController" +} + // GetArray returns the Array field value if set, zero value otherwise (both if not set or set to explicit null). func (o *StorageHitachiController) GetArray() StorageHitachiArrayRelationship { if o == nil || IsNil(o.Array.Get()) { @@ -210,7 +220,13 @@ func (o StorageHitachiController) ToMap() (map[string]interface{}, error) { if errStorageBaseArrayController != nil { return map[string]interface{}{}, errStorageBaseArrayController } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.Array.IsSet() { toSerialize["Array"] = o.Array.Get() @@ -235,6 +251,13 @@ func (o *StorageHitachiController) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -244,11 +267,23 @@ func (o *StorageHitachiController) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type StorageHitachiControllerWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_storage_hitachi_controller_list.go b/model_storage_hitachi_controller_list.go index 752c12fb7a..026f844478 100644 --- a/model_storage_hitachi_controller_list.go +++ b/model_storage_hitachi_controller_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *StorageHitachiControllerList) GetResultsOk() ([]StorageHitachiControlle // HasResults returns a boolean if a field has been set. func (o *StorageHitachiControllerList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *StorageHitachiControllerList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *StorageHitachiControllerList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type StorageHitachiControllerListWithoutEmbeddedStruct struct { // The total number of 'storage.HitachiController' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_storage_hitachi_controller_response.go b/model_storage_hitachi_controller_response.go index 7a20fce423..e2e8c003d8 100644 --- a/model_storage_hitachi_controller_response.go +++ b/model_storage_hitachi_controller_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_storage_hitachi_disk.go b/model_storage_hitachi_disk.go index 5c39a78c54..27aba15eae 100644 --- a/model_storage_hitachi_disk.go +++ b/model_storage_hitachi_disk.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -91,6 +91,11 @@ func (o *StorageHitachiDisk) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "storage.HitachiDisk" of the ClassId field. +func (o *StorageHitachiDisk) GetDefaultClassId() interface{} { + return "storage.HitachiDisk" +} + // GetObjectType returns the ObjectType field value func (o *StorageHitachiDisk) GetObjectType() string { if o == nil { @@ -115,6 +120,11 @@ func (o *StorageHitachiDisk) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "storage.HitachiDisk" of the ObjectType field. +func (o *StorageHitachiDisk) GetDefaultObjectType() interface{} { + return "storage.HitachiDisk" +} + // GetDriveTypeCode returns the DriveTypeCode field value if set, zero value otherwise. func (o *StorageHitachiDisk) GetDriveTypeCode() string { if o == nil || IsNil(o.DriveTypeCode) { @@ -390,7 +400,13 @@ func (o StorageHitachiDisk) ToMap() (map[string]interface{}, error) { if errStorageBaseArrayDisk != nil { return map[string]interface{}{}, errStorageBaseArrayDisk } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.DriveTypeCode) { toSerialize["DriveTypeCode"] = o.DriveTypeCode @@ -430,6 +446,13 @@ func (o *StorageHitachiDisk) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -439,11 +462,23 @@ func (o *StorageHitachiDisk) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type StorageHitachiDiskWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_storage_hitachi_disk_list.go b/model_storage_hitachi_disk_list.go index e48a59a09f..33eb0747f5 100644 --- a/model_storage_hitachi_disk_list.go +++ b/model_storage_hitachi_disk_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *StorageHitachiDiskList) GetResultsOk() ([]StorageHitachiDisk, bool) { // HasResults returns a boolean if a field has been set. func (o *StorageHitachiDiskList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *StorageHitachiDiskList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *StorageHitachiDiskList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type StorageHitachiDiskListWithoutEmbeddedStruct struct { // The total number of 'storage.HitachiDisk' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_storage_hitachi_disk_response.go b/model_storage_hitachi_disk_response.go index a9b0d587aa..98b25cce2c 100644 --- a/model_storage_hitachi_disk_response.go +++ b/model_storage_hitachi_disk_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_storage_hitachi_external_parity_group.go b/model_storage_hitachi_external_parity_group.go index eb3a591f26..57963651c3 100644 --- a/model_storage_hitachi_external_parity_group.go +++ b/model_storage_hitachi_external_parity_group.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -108,6 +108,11 @@ func (o *StorageHitachiExternalParityGroup) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "storage.HitachiExternalParityGroup" of the ClassId field. +func (o *StorageHitachiExternalParityGroup) GetDefaultClassId() interface{} { + return "storage.HitachiExternalParityGroup" +} + // GetObjectType returns the ObjectType field value func (o *StorageHitachiExternalParityGroup) GetObjectType() string { if o == nil { @@ -132,6 +137,11 @@ func (o *StorageHitachiExternalParityGroup) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "storage.HitachiExternalParityGroup" of the ObjectType field. +func (o *StorageHitachiExternalParityGroup) GetDefaultObjectType() interface{} { + return "storage.HitachiExternalParityGroup" +} + // GetAllocatableOpenVolumeCapacity returns the AllocatableOpenVolumeCapacity field value if set, zero value otherwise. func (o *StorageHitachiExternalParityGroup) GetAllocatableOpenVolumeCapacity() int64 { if o == nil || IsNil(o.AllocatableOpenVolumeCapacity) { @@ -441,7 +451,7 @@ func (o *StorageHitachiExternalParityGroup) GetSpacesOk() ([]StorageSpace, bool) // HasSpaces returns a boolean if a field has been set. func (o *StorageHitachiExternalParityGroup) HasSpaces() bool { - if o != nil && IsNil(o.Spaces) { + if o != nil && !IsNil(o.Spaces) { return true } @@ -685,7 +695,13 @@ func (o StorageHitachiExternalParityGroup) ToMap() (map[string]interface{}, erro if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.AllocatableOpenVolumeCapacity) { toSerialize["AllocatableOpenVolumeCapacity"] = o.AllocatableOpenVolumeCapacity @@ -752,6 +768,13 @@ func (o *StorageHitachiExternalParityGroup) UnmarshalJSON(data []byte) (err erro "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -761,11 +784,23 @@ func (o *StorageHitachiExternalParityGroup) UnmarshalJSON(data []byte) (err erro } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type StorageHitachiExternalParityGroupWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_storage_hitachi_external_parity_group_list.go b/model_storage_hitachi_external_parity_group_list.go index 9fe8ea817c..a5cdba209c 100644 --- a/model_storage_hitachi_external_parity_group_list.go +++ b/model_storage_hitachi_external_parity_group_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *StorageHitachiExternalParityGroupList) GetResultsOk() ([]StorageHitachi // HasResults returns a boolean if a field has been set. func (o *StorageHitachiExternalParityGroupList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *StorageHitachiExternalParityGroupList) UnmarshalJSON(data []byte) (err "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *StorageHitachiExternalParityGroupList) UnmarshalJSON(data []byte) (err } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type StorageHitachiExternalParityGroupListWithoutEmbeddedStruct struct { // The total number of 'storage.HitachiExternalParityGroup' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_storage_hitachi_external_parity_group_response.go b/model_storage_hitachi_external_parity_group_response.go index ef612f1bfc..9fe723f864 100644 --- a/model_storage_hitachi_external_parity_group_response.go +++ b/model_storage_hitachi_external_parity_group_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_storage_hitachi_external_path_group.go b/model_storage_hitachi_external_path_group.go index ec573a352f..15d2370649 100644 --- a/model_storage_hitachi_external_path_group.go +++ b/model_storage_hitachi_external_path_group.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -90,6 +90,11 @@ func (o *StorageHitachiExternalPathGroup) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "storage.HitachiExternalPathGroup" of the ClassId field. +func (o *StorageHitachiExternalPathGroup) GetDefaultClassId() interface{} { + return "storage.HitachiExternalPathGroup" +} + // GetObjectType returns the ObjectType field value func (o *StorageHitachiExternalPathGroup) GetObjectType() string { if o == nil { @@ -114,6 +119,11 @@ func (o *StorageHitachiExternalPathGroup) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "storage.HitachiExternalPathGroup" of the ObjectType field. +func (o *StorageHitachiExternalPathGroup) GetDefaultObjectType() interface{} { + return "storage.HitachiExternalPathGroup" +} + // GetExternalParityGroups returns the ExternalParityGroups field value if set, zero value otherwise (both if not set or set to explicit null). func (o *StorageHitachiExternalPathGroup) GetExternalParityGroups() []StorageExternalParityGroup { if o == nil { @@ -135,7 +145,7 @@ func (o *StorageHitachiExternalPathGroup) GetExternalParityGroupsOk() ([]Storage // HasExternalParityGroups returns a boolean if a field has been set. func (o *StorageHitachiExternalPathGroup) HasExternalParityGroups() bool { - if o != nil && IsNil(o.ExternalParityGroups) { + if o != nil && !IsNil(o.ExternalParityGroups) { return true } @@ -168,7 +178,7 @@ func (o *StorageHitachiExternalPathGroup) GetExternalPathsOk() ([]StorageExterna // HasExternalPaths returns a boolean if a field has been set. func (o *StorageHitachiExternalPathGroup) HasExternalPaths() bool { - if o != nil && IsNil(o.ExternalPaths) { + if o != nil && !IsNil(o.ExternalPaths) { return true } @@ -380,7 +390,13 @@ func (o StorageHitachiExternalPathGroup) ToMap() (map[string]interface{}, error) if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.ExternalParityGroups != nil { toSerialize["ExternalParityGroups"] = o.ExternalParityGroups @@ -420,6 +436,13 @@ func (o *StorageHitachiExternalPathGroup) UnmarshalJSON(data []byte) (err error) "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -429,11 +452,23 @@ func (o *StorageHitachiExternalPathGroup) UnmarshalJSON(data []byte) (err error) } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type StorageHitachiExternalPathGroupWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_storage_hitachi_external_path_group_list.go b/model_storage_hitachi_external_path_group_list.go index bcd7dc93dc..d23bbe0a2d 100644 --- a/model_storage_hitachi_external_path_group_list.go +++ b/model_storage_hitachi_external_path_group_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *StorageHitachiExternalPathGroupList) GetResultsOk() ([]StorageHitachiEx // HasResults returns a boolean if a field has been set. func (o *StorageHitachiExternalPathGroupList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *StorageHitachiExternalPathGroupList) UnmarshalJSON(data []byte) (err er "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *StorageHitachiExternalPathGroupList) UnmarshalJSON(data []byte) (err er } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type StorageHitachiExternalPathGroupListWithoutEmbeddedStruct struct { // The total number of 'storage.HitachiExternalPathGroup' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_storage_hitachi_external_path_group_response.go b/model_storage_hitachi_external_path_group_response.go index 71d3270d3f..c131ee9c4f 100644 --- a/model_storage_hitachi_external_path_group_response.go +++ b/model_storage_hitachi_external_path_group_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_storage_hitachi_external_storage_lun.go b/model_storage_hitachi_external_storage_lun.go index 649f5f6fcc..3f619355fe 100644 --- a/model_storage_hitachi_external_storage_lun.go +++ b/model_storage_hitachi_external_storage_lun.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -101,6 +101,11 @@ func (o *StorageHitachiExternalStorageLun) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "storage.HitachiExternalStorageLun" of the ClassId field. +func (o *StorageHitachiExternalStorageLun) GetDefaultClassId() interface{} { + return "storage.HitachiExternalStorageLun" +} + // GetObjectType returns the ObjectType field value func (o *StorageHitachiExternalStorageLun) GetObjectType() string { if o == nil { @@ -125,6 +130,11 @@ func (o *StorageHitachiExternalStorageLun) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "storage.HitachiExternalStorageLun" of the ObjectType field. +func (o *StorageHitachiExternalStorageLun) GetDefaultObjectType() interface{} { + return "storage.HitachiExternalStorageLun" +} + // GetExternalLun returns the ExternalLun field value if set, zero value otherwise. func (o *StorageHitachiExternalStorageLun) GetExternalLun() int64 { if o == nil || IsNil(o.ExternalLun) { @@ -560,7 +570,13 @@ func (o StorageHitachiExternalStorageLun) ToMap() (map[string]interface{}, error if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.ExternalLun) { toSerialize["ExternalLun"] = o.ExternalLun @@ -615,6 +631,13 @@ func (o *StorageHitachiExternalStorageLun) UnmarshalJSON(data []byte) (err error "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -624,11 +647,23 @@ func (o *StorageHitachiExternalStorageLun) UnmarshalJSON(data []byte) (err error } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type StorageHitachiExternalStorageLunWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_storage_hitachi_external_storage_lun_list.go b/model_storage_hitachi_external_storage_lun_list.go index 9639331c2d..cef0866500 100644 --- a/model_storage_hitachi_external_storage_lun_list.go +++ b/model_storage_hitachi_external_storage_lun_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *StorageHitachiExternalStorageLunList) GetResultsOk() ([]StorageHitachiE // HasResults returns a boolean if a field has been set. func (o *StorageHitachiExternalStorageLunList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *StorageHitachiExternalStorageLunList) UnmarshalJSON(data []byte) (err e "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *StorageHitachiExternalStorageLunList) UnmarshalJSON(data []byte) (err e } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type StorageHitachiExternalStorageLunListWithoutEmbeddedStruct struct { // The total number of 'storage.HitachiExternalStorageLun' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_storage_hitachi_external_storage_lun_response.go b/model_storage_hitachi_external_storage_lun_response.go index 5e38cc0a0d..cfd744ebd8 100644 --- a/model_storage_hitachi_external_storage_lun_response.go +++ b/model_storage_hitachi_external_storage_lun_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_storage_hitachi_external_storage_port.go b/model_storage_hitachi_external_storage_port.go index 12ff5aaf21..f6c9f3bdad 100644 --- a/model_storage_hitachi_external_storage_port.go +++ b/model_storage_hitachi_external_storage_port.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -102,6 +102,11 @@ func (o *StorageHitachiExternalStoragePort) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "storage.HitachiExternalStoragePort" of the ClassId field. +func (o *StorageHitachiExternalStoragePort) GetDefaultClassId() interface{} { + return "storage.HitachiExternalStoragePort" +} + // GetObjectType returns the ObjectType field value func (o *StorageHitachiExternalStoragePort) GetObjectType() string { if o == nil { @@ -126,6 +131,11 @@ func (o *StorageHitachiExternalStoragePort) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "storage.HitachiExternalStoragePort" of the ObjectType field. +func (o *StorageHitachiExternalStoragePort) GetDefaultObjectType() interface{} { + return "storage.HitachiExternalStoragePort" +} + // GetExternalIsUsed returns the ExternalIsUsed field value if set, zero value otherwise. func (o *StorageHitachiExternalStoragePort) GetExternalIsUsed() bool { if o == nil || IsNil(o.ExternalIsUsed) { @@ -550,7 +560,13 @@ func (o StorageHitachiExternalStoragePort) ToMap() (map[string]interface{}, erro if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.ExternalIsUsed) { toSerialize["ExternalIsUsed"] = o.ExternalIsUsed @@ -605,6 +621,13 @@ func (o *StorageHitachiExternalStoragePort) UnmarshalJSON(data []byte) (err erro "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -614,11 +637,23 @@ func (o *StorageHitachiExternalStoragePort) UnmarshalJSON(data []byte) (err erro } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type StorageHitachiExternalStoragePortWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_storage_hitachi_external_storage_port_list.go b/model_storage_hitachi_external_storage_port_list.go index c1027222d0..69af995236 100644 --- a/model_storage_hitachi_external_storage_port_list.go +++ b/model_storage_hitachi_external_storage_port_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *StorageHitachiExternalStoragePortList) GetResultsOk() ([]StorageHitachi // HasResults returns a boolean if a field has been set. func (o *StorageHitachiExternalStoragePortList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *StorageHitachiExternalStoragePortList) UnmarshalJSON(data []byte) (err "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *StorageHitachiExternalStoragePortList) UnmarshalJSON(data []byte) (err } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type StorageHitachiExternalStoragePortListWithoutEmbeddedStruct struct { // The total number of 'storage.HitachiExternalStoragePort' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_storage_hitachi_external_storage_port_relationship.go b/model_storage_hitachi_external_storage_port_relationship.go index d91724f7a8..505be86ba1 100644 --- a/model_storage_hitachi_external_storage_port_relationship.go +++ b/model_storage_hitachi_external_storage_port_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_storage_hitachi_external_storage_port_response.go b/model_storage_hitachi_external_storage_port_response.go index e5596443f0..264c0dc202 100644 --- a/model_storage_hitachi_external_storage_port_response.go +++ b/model_storage_hitachi_external_storage_port_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_storage_hitachi_host.go b/model_storage_hitachi_host.go index 0878b6adfe..e32e779c00 100644 --- a/model_storage_hitachi_host.go +++ b/model_storage_hitachi_host.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -101,6 +101,11 @@ func (o *StorageHitachiHost) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "storage.HitachiHost" of the ClassId field. +func (o *StorageHitachiHost) GetDefaultClassId() interface{} { + return "storage.HitachiHost" +} + // GetObjectType returns the ObjectType field value func (o *StorageHitachiHost) GetObjectType() string { if o == nil { @@ -125,6 +130,11 @@ func (o *StorageHitachiHost) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "storage.HitachiHost" of the ObjectType field. +func (o *StorageHitachiHost) GetDefaultObjectType() interface{} { + return "storage.HitachiHost" +} + // GetAuthenticationMode returns the AuthenticationMode field value if set, zero value otherwise. func (o *StorageHitachiHost) GetAuthenticationMode() string { if o == nil || IsNil(o.AuthenticationMode) { @@ -242,7 +252,7 @@ func (o *StorageHitachiHost) GetHostModeOptionsOk() ([]int64, bool) { // HasHostModeOptions returns a boolean if a field has been set. func (o *StorageHitachiHost) HasHostModeOptions() bool { - if o != nil && IsNil(o.HostModeOptions) { + if o != nil && !IsNil(o.HostModeOptions) { return true } @@ -550,7 +560,13 @@ func (o StorageHitachiHost) ToMap() (map[string]interface{}, error) { if errStorageBaseHost != nil { return map[string]interface{}{}, errStorageBaseHost } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.AuthenticationMode) { toSerialize["AuthenticationMode"] = o.AuthenticationMode @@ -605,6 +621,13 @@ func (o *StorageHitachiHost) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -614,11 +637,23 @@ func (o *StorageHitachiHost) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type StorageHitachiHostWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_storage_hitachi_host_list.go b/model_storage_hitachi_host_list.go index aa87bebf3d..4b8bfb8836 100644 --- a/model_storage_hitachi_host_list.go +++ b/model_storage_hitachi_host_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *StorageHitachiHostList) GetResultsOk() ([]StorageHitachiHost, bool) { // HasResults returns a boolean if a field has been set. func (o *StorageHitachiHostList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *StorageHitachiHostList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *StorageHitachiHostList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type StorageHitachiHostListWithoutEmbeddedStruct struct { // The total number of 'storage.HitachiHost' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_storage_hitachi_host_lun.go b/model_storage_hitachi_host_lun.go index 29635a7098..168b918b9f 100644 --- a/model_storage_hitachi_host_lun.go +++ b/model_storage_hitachi_host_lun.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -86,6 +86,11 @@ func (o *StorageHitachiHostLun) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "storage.HitachiHostLun" of the ClassId field. +func (o *StorageHitachiHostLun) GetDefaultClassId() interface{} { + return "storage.HitachiHostLun" +} + // GetObjectType returns the ObjectType field value func (o *StorageHitachiHostLun) GetObjectType() string { if o == nil { @@ -110,6 +115,11 @@ func (o *StorageHitachiHostLun) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "storage.HitachiHostLun" of the ObjectType field. +func (o *StorageHitachiHostLun) GetDefaultObjectType() interface{} { + return "storage.HitachiHostLun" +} + // GetPortId returns the PortId field value if set, zero value otherwise. func (o *StorageHitachiHostLun) GetPortId() string { if o == nil || IsNil(o.PortId) { @@ -332,7 +342,13 @@ func (o StorageHitachiHostLun) ToMap() (map[string]interface{}, error) { if errStorageBaseHostLun != nil { return map[string]interface{}{}, errStorageBaseHostLun } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.PortId) { toSerialize["PortId"] = o.PortId @@ -366,6 +382,13 @@ func (o *StorageHitachiHostLun) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -375,11 +398,23 @@ func (o *StorageHitachiHostLun) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type StorageHitachiHostLunWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_storage_hitachi_host_lun_list.go b/model_storage_hitachi_host_lun_list.go index 56f62d97f3..5a7243e5a5 100644 --- a/model_storage_hitachi_host_lun_list.go +++ b/model_storage_hitachi_host_lun_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *StorageHitachiHostLunList) GetResultsOk() ([]StorageHitachiHostLun, boo // HasResults returns a boolean if a field has been set. func (o *StorageHitachiHostLunList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *StorageHitachiHostLunList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *StorageHitachiHostLunList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type StorageHitachiHostLunListWithoutEmbeddedStruct struct { // The total number of 'storage.HitachiHostLun' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_storage_hitachi_host_lun_response.go b/model_storage_hitachi_host_lun_response.go index d63a8a01c1..754dd52684 100644 --- a/model_storage_hitachi_host_lun_response.go +++ b/model_storage_hitachi_host_lun_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_storage_hitachi_host_relationship.go b/model_storage_hitachi_host_relationship.go index 60f1dacdc3..ae2b123684 100644 --- a/model_storage_hitachi_host_relationship.go +++ b/model_storage_hitachi_host_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_storage_hitachi_host_response.go b/model_storage_hitachi_host_response.go index 321c953e33..9aa919471a 100644 --- a/model_storage_hitachi_host_response.go +++ b/model_storage_hitachi_host_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_storage_hitachi_initiator.go b/model_storage_hitachi_initiator.go index 1cac66c38e..02ac5895da 100644 --- a/model_storage_hitachi_initiator.go +++ b/model_storage_hitachi_initiator.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -82,6 +82,11 @@ func (o *StorageHitachiInitiator) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "storage.HitachiInitiator" of the ClassId field. +func (o *StorageHitachiInitiator) GetDefaultClassId() interface{} { + return "storage.HitachiInitiator" +} + // GetObjectType returns the ObjectType field value func (o *StorageHitachiInitiator) GetObjectType() string { if o == nil { @@ -106,6 +111,11 @@ func (o *StorageHitachiInitiator) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "storage.HitachiInitiator" of the ObjectType field. +func (o *StorageHitachiInitiator) GetDefaultObjectType() interface{} { + return "storage.HitachiInitiator" +} + // GetWwpn returns the Wwpn field value if set, zero value otherwise. func (o *StorageHitachiInitiator) GetWwpn() string { if o == nil || IsNil(o.Wwpn) { @@ -156,7 +166,13 @@ func (o StorageHitachiInitiator) ToMap() (map[string]interface{}, error) { if errStorageBaseInitiator != nil { return map[string]interface{}{}, errStorageBaseInitiator } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Wwpn) { toSerialize["Wwpn"] = o.Wwpn @@ -178,6 +194,13 @@ func (o *StorageHitachiInitiator) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -187,11 +210,23 @@ func (o *StorageHitachiInitiator) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type StorageHitachiInitiatorWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_storage_hitachi_parity_group.go b/model_storage_hitachi_parity_group.go index b7bbc968ab..c9d887dabf 100644 --- a/model_storage_hitachi_parity_group.go +++ b/model_storage_hitachi_parity_group.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -92,6 +92,11 @@ func (o *StorageHitachiParityGroup) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "storage.HitachiParityGroup" of the ClassId field. +func (o *StorageHitachiParityGroup) GetDefaultClassId() interface{} { + return "storage.HitachiParityGroup" +} + // GetObjectType returns the ObjectType field value func (o *StorageHitachiParityGroup) GetObjectType() string { if o == nil { @@ -116,6 +121,11 @@ func (o *StorageHitachiParityGroup) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "storage.HitachiParityGroup" of the ObjectType field. +func (o *StorageHitachiParityGroup) GetDefaultObjectType() interface{} { + return "storage.HitachiParityGroup" +} + // GetDiskSpeed returns the DiskSpeed field value if set, zero value otherwise. func (o *StorageHitachiParityGroup) GetDiskSpeed() string { if o == nil || IsNil(o.DiskSpeed) { @@ -380,7 +390,13 @@ func (o StorageHitachiParityGroup) ToMap() (map[string]interface{}, error) { if errStorageBaseRaidGroup != nil { return map[string]interface{}{}, errStorageBaseRaidGroup } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.DiskSpeed) { toSerialize["DiskSpeed"] = o.DiskSpeed @@ -420,6 +436,13 @@ func (o *StorageHitachiParityGroup) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -429,11 +452,23 @@ func (o *StorageHitachiParityGroup) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type StorageHitachiParityGroupWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_storage_hitachi_parity_group_list.go b/model_storage_hitachi_parity_group_list.go index 25e21d6e28..9a22a466b3 100644 --- a/model_storage_hitachi_parity_group_list.go +++ b/model_storage_hitachi_parity_group_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *StorageHitachiParityGroupList) GetResultsOk() ([]StorageHitachiParityGr // HasResults returns a boolean if a field has been set. func (o *StorageHitachiParityGroupList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *StorageHitachiParityGroupList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *StorageHitachiParityGroupList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type StorageHitachiParityGroupListWithoutEmbeddedStruct struct { // The total number of 'storage.HitachiParityGroup' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_storage_hitachi_parity_group_relationship.go b/model_storage_hitachi_parity_group_relationship.go index 30786d7728..065dce8dc8 100644 --- a/model_storage_hitachi_parity_group_relationship.go +++ b/model_storage_hitachi_parity_group_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_storage_hitachi_parity_group_response.go b/model_storage_hitachi_parity_group_response.go index 33460837b6..b00e0cb79c 100644 --- a/model_storage_hitachi_parity_group_response.go +++ b/model_storage_hitachi_parity_group_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_storage_hitachi_pool.go b/model_storage_hitachi_pool.go index f5b0c2d5ed..fa4455bba6 100644 --- a/model_storage_hitachi_pool.go +++ b/model_storage_hitachi_pool.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -102,6 +102,11 @@ func (o *StorageHitachiPool) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "storage.HitachiPool" of the ClassId field. +func (o *StorageHitachiPool) GetDefaultClassId() interface{} { + return "storage.HitachiPool" +} + // GetObjectType returns the ObjectType field value func (o *StorageHitachiPool) GetObjectType() string { if o == nil { @@ -126,6 +131,11 @@ func (o *StorageHitachiPool) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "storage.HitachiPool" of the ObjectType field. +func (o *StorageHitachiPool) GetDefaultObjectType() interface{} { + return "storage.HitachiPool" +} + // GetBlockingModeBlockade returns the BlockingModeBlockade field value if set, zero value otherwise. func (o *StorageHitachiPool) GetBlockingModeBlockade() string { if o == nil || IsNil(o.BlockingModeBlockade) { @@ -550,7 +560,13 @@ func (o StorageHitachiPool) ToMap() (map[string]interface{}, error) { if errStorageBaseDiskPool != nil { return map[string]interface{}{}, errStorageBaseDiskPool } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.BlockingModeBlockade) { toSerialize["BlockingModeBlockade"] = o.BlockingModeBlockade @@ -605,6 +621,13 @@ func (o *StorageHitachiPool) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -614,11 +637,23 @@ func (o *StorageHitachiPool) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type StorageHitachiPoolWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_storage_hitachi_pool_list.go b/model_storage_hitachi_pool_list.go index 716d5c92c7..1ed9c6f915 100644 --- a/model_storage_hitachi_pool_list.go +++ b/model_storage_hitachi_pool_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *StorageHitachiPoolList) GetResultsOk() ([]StorageHitachiPool, bool) { // HasResults returns a boolean if a field has been set. func (o *StorageHitachiPoolList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *StorageHitachiPoolList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *StorageHitachiPoolList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type StorageHitachiPoolListWithoutEmbeddedStruct struct { // The total number of 'storage.HitachiPool' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_storage_hitachi_pool_relationship.go b/model_storage_hitachi_pool_relationship.go index 53c8f244f3..f0d35f92c6 100644 --- a/model_storage_hitachi_pool_relationship.go +++ b/model_storage_hitachi_pool_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_storage_hitachi_pool_response.go b/model_storage_hitachi_pool_response.go index c2a9d1f3f4..4f39478f6e 100644 --- a/model_storage_hitachi_pool_response.go +++ b/model_storage_hitachi_pool_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_storage_hitachi_port.go b/model_storage_hitachi_port.go index 3c609d7ae1..337b218482 100644 --- a/model_storage_hitachi_port.go +++ b/model_storage_hitachi_port.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -31,11 +31,11 @@ type StorageHitachiPort struct { // Fabric mode of the port. true, Set. false, Not set. FabricMode *bool `json:"FabricMode,omitempty"` // IPv4 address of Hitachi Port. - Ipv4Address *string `json:"Ipv4Address,omitempty"` + Ipv4Address *string `json:"Ipv4Address,omitempty" validate:"regexp=^$|^([1-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\\\.([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\\\.([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\\\.([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])$"` // IPv6 global address value. - Ipv6GlobalAddress *string `json:"Ipv6GlobalAddress,omitempty"` + Ipv6GlobalAddress *string `json:"Ipv6GlobalAddress,omitempty" validate:"regexp=^$|^(([0-9A-Fa-f]{1,4}:([0-9A-Fa-f]{1,4}:([0-9A-Fa-f]{1,4}:([0-9A-Fa-f]{1,4}:([0-9A-Fa-f]{1,4}:[0-9A-Fa-f]{0,4}|:[0-9A-Fa-f]{1,4})?|(:[0-9A-Fa-f]{1,4}){0,2})|(:[0-9A-Fa-f]{1,4}){0,3})|(:[0-9A-Fa-f]{1,4}){0,4})|:(:[0-9A-Fa-f]{1,4}){0,5})((:[0-9A-Fa-f]{1,4}){2}|:(25[0-5]|(2[0-4]|1[0-9]|[1-9])?[0-9])(\\\\.(25[0-5]|(2[0-4]|1[0-9]|[1-9])?[0-9])){3})|(([0-9A-Fa-f]{1,4}:){1,6}|:):[0-9A-Fa-f]{0,4}|([0-9A-Fa-f]{1,4}:){7}:)$"` // IPv6 link local address value. - Ipv6LinkLocalAddress *string `json:"Ipv6LinkLocalAddress,omitempty"` + Ipv6LinkLocalAddress *string `json:"Ipv6LinkLocalAddress,omitempty" validate:"regexp=^$|^(([0-9A-Fa-f]{1,4}:([0-9A-Fa-f]{1,4}:([0-9A-Fa-f]{1,4}:([0-9A-Fa-f]{1,4}:([0-9A-Fa-f]{1,4}:[0-9A-Fa-f]{0,4}|:[0-9A-Fa-f]{1,4})?|(:[0-9A-Fa-f]{1,4}){0,2})|(:[0-9A-Fa-f]{1,4}){0,3})|(:[0-9A-Fa-f]{1,4}){0,4})|:(:[0-9A-Fa-f]{1,4}){0,5})((:[0-9A-Fa-f]{1,4}){2}|:(25[0-5]|(2[0-4]|1[0-9]|[1-9])?[0-9])(\\\\.(25[0-5]|(2[0-4]|1[0-9]|[1-9])?[0-9])){3})|(([0-9A-Fa-f]{1,4}:){1,6}|:):[0-9A-Fa-f]{0,4}|([0-9A-Fa-f]{1,4}:){7}:)$"` // Determines if IPv6 mode is enabled on the port. IsIpv6Enable *bool `json:"IsIpv6Enable,omitempty"` // The value set for the port loop ID (AL_PA). @@ -104,6 +104,11 @@ func (o *StorageHitachiPort) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "storage.HitachiPort" of the ClassId field. +func (o *StorageHitachiPort) GetDefaultClassId() interface{} { + return "storage.HitachiPort" +} + // GetObjectType returns the ObjectType field value func (o *StorageHitachiPort) GetObjectType() string { if o == nil { @@ -128,6 +133,11 @@ func (o *StorageHitachiPort) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "storage.HitachiPort" of the ObjectType field. +func (o *StorageHitachiPort) GetDefaultObjectType() interface{} { + return "storage.HitachiPort" +} + // GetFabricMode returns the FabricMode field value if set, zero value otherwise. func (o *StorageHitachiPort) GetFabricMode() bool { if o == nil || IsNil(o.FabricMode) { @@ -584,7 +594,13 @@ func (o StorageHitachiPort) ToMap() (map[string]interface{}, error) { if errStorageBasePhysicalPort != nil { return map[string]interface{}{}, errStorageBasePhysicalPort } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.FabricMode) { toSerialize["FabricMode"] = o.FabricMode @@ -642,6 +658,13 @@ func (o *StorageHitachiPort) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -651,11 +674,23 @@ func (o *StorageHitachiPort) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type StorageHitachiPortWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` @@ -664,11 +699,11 @@ func (o *StorageHitachiPort) UnmarshalJSON(data []byte) (err error) { // Fabric mode of the port. true, Set. false, Not set. FabricMode *bool `json:"FabricMode,omitempty"` // IPv4 address of Hitachi Port. - Ipv4Address *string `json:"Ipv4Address,omitempty"` + Ipv4Address *string `json:"Ipv4Address,omitempty" validate:"regexp=^$|^([1-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\\\.([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\\\.([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\\\.([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])$"` // IPv6 global address value. - Ipv6GlobalAddress *string `json:"Ipv6GlobalAddress,omitempty"` + Ipv6GlobalAddress *string `json:"Ipv6GlobalAddress,omitempty" validate:"regexp=^$|^(([0-9A-Fa-f]{1,4}:([0-9A-Fa-f]{1,4}:([0-9A-Fa-f]{1,4}:([0-9A-Fa-f]{1,4}:([0-9A-Fa-f]{1,4}:[0-9A-Fa-f]{0,4}|:[0-9A-Fa-f]{1,4})?|(:[0-9A-Fa-f]{1,4}){0,2})|(:[0-9A-Fa-f]{1,4}){0,3})|(:[0-9A-Fa-f]{1,4}){0,4})|:(:[0-9A-Fa-f]{1,4}){0,5})((:[0-9A-Fa-f]{1,4}){2}|:(25[0-5]|(2[0-4]|1[0-9]|[1-9])?[0-9])(\\\\.(25[0-5]|(2[0-4]|1[0-9]|[1-9])?[0-9])){3})|(([0-9A-Fa-f]{1,4}:){1,6}|:):[0-9A-Fa-f]{0,4}|([0-9A-Fa-f]{1,4}:){7}:)$"` // IPv6 link local address value. - Ipv6LinkLocalAddress *string `json:"Ipv6LinkLocalAddress,omitempty"` + Ipv6LinkLocalAddress *string `json:"Ipv6LinkLocalAddress,omitempty" validate:"regexp=^$|^(([0-9A-Fa-f]{1,4}:([0-9A-Fa-f]{1,4}:([0-9A-Fa-f]{1,4}:([0-9A-Fa-f]{1,4}:([0-9A-Fa-f]{1,4}:[0-9A-Fa-f]{0,4}|:[0-9A-Fa-f]{1,4})?|(:[0-9A-Fa-f]{1,4}){0,2})|(:[0-9A-Fa-f]{1,4}){0,3})|(:[0-9A-Fa-f]{1,4}){0,4})|:(:[0-9A-Fa-f]{1,4}){0,5})((:[0-9A-Fa-f]{1,4}){2}|:(25[0-5]|(2[0-4]|1[0-9]|[1-9])?[0-9])(\\\\.(25[0-5]|(2[0-4]|1[0-9]|[1-9])?[0-9])){3})|(([0-9A-Fa-f]{1,4}:){1,6}|:):[0-9A-Fa-f]{0,4}|([0-9A-Fa-f]{1,4}:){7}:)$"` // Determines if IPv6 mode is enabled on the port. IsIpv6Enable *bool `json:"IsIpv6Enable,omitempty"` // The value set for the port loop ID (AL_PA). diff --git a/model_storage_hitachi_port_list.go b/model_storage_hitachi_port_list.go index ccf45d2d4f..6c1c54c701 100644 --- a/model_storage_hitachi_port_list.go +++ b/model_storage_hitachi_port_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *StorageHitachiPortList) GetResultsOk() ([]StorageHitachiPort, bool) { // HasResults returns a boolean if a field has been set. func (o *StorageHitachiPortList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *StorageHitachiPortList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *StorageHitachiPortList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type StorageHitachiPortListWithoutEmbeddedStruct struct { // The total number of 'storage.HitachiPort' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_storage_hitachi_port_response.go b/model_storage_hitachi_port_response.go index f86b625220..c1d32009e0 100644 --- a/model_storage_hitachi_port_response.go +++ b/model_storage_hitachi_port_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_storage_hitachi_remote_copy_pair_gad.go b/model_storage_hitachi_remote_copy_pair_gad.go index 40a3e9f8fa..971ffd3d6e 100644 --- a/model_storage_hitachi_remote_copy_pair_gad.go +++ b/model_storage_hitachi_remote_copy_pair_gad.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -106,6 +106,11 @@ func (o *StorageHitachiRemoteCopyPairGad) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "storage.HitachiRemoteCopyPairGad" of the ClassId field. +func (o *StorageHitachiRemoteCopyPairGad) GetDefaultClassId() interface{} { + return "storage.HitachiRemoteCopyPairGad" +} + // GetObjectType returns the ObjectType field value func (o *StorageHitachiRemoteCopyPairGad) GetObjectType() string { if o == nil { @@ -130,6 +135,11 @@ func (o *StorageHitachiRemoteCopyPairGad) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "storage.HitachiRemoteCopyPairGad" of the ObjectType field. +func (o *StorageHitachiRemoteCopyPairGad) GetDefaultObjectType() interface{} { + return "storage.HitachiRemoteCopyPairGad" +} + // GetCreatedLocalTime returns the CreatedLocalTime field value if set, zero value otherwise. func (o *StorageHitachiRemoteCopyPairGad) GetCreatedLocalTime() string { if o == nil || IsNil(o.CreatedLocalTime) { @@ -618,7 +628,13 @@ func (o StorageHitachiRemoteCopyPairGad) ToMap() (map[string]interface{}, error) if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.CreatedLocalTime) { toSerialize["CreatedLocalTime"] = o.CreatedLocalTime @@ -679,6 +695,13 @@ func (o *StorageHitachiRemoteCopyPairGad) UnmarshalJSON(data []byte) (err error) "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -688,11 +711,23 @@ func (o *StorageHitachiRemoteCopyPairGad) UnmarshalJSON(data []byte) (err error) } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type StorageHitachiRemoteCopyPairGadWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_storage_hitachi_remote_copy_pair_gad_list.go b/model_storage_hitachi_remote_copy_pair_gad_list.go index 1c0c20b98b..5bf11483de 100644 --- a/model_storage_hitachi_remote_copy_pair_gad_list.go +++ b/model_storage_hitachi_remote_copy_pair_gad_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *StorageHitachiRemoteCopyPairGadList) GetResultsOk() ([]StorageHitachiRe // HasResults returns a boolean if a field has been set. func (o *StorageHitachiRemoteCopyPairGadList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *StorageHitachiRemoteCopyPairGadList) UnmarshalJSON(data []byte) (err er "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *StorageHitachiRemoteCopyPairGadList) UnmarshalJSON(data []byte) (err er } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type StorageHitachiRemoteCopyPairGadListWithoutEmbeddedStruct struct { // The total number of 'storage.HitachiRemoteCopyPairGad' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_storage_hitachi_remote_copy_pair_gad_response.go b/model_storage_hitachi_remote_copy_pair_gad_response.go index 6c57d57898..fe3eaa57ea 100644 --- a/model_storage_hitachi_remote_copy_pair_gad_response.go +++ b/model_storage_hitachi_remote_copy_pair_gad_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_storage_hitachi_remote_copy_pair_tc.go b/model_storage_hitachi_remote_copy_pair_tc.go index 16e66cd273..e5d1cb74e6 100644 --- a/model_storage_hitachi_remote_copy_pair_tc.go +++ b/model_storage_hitachi_remote_copy_pair_tc.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -98,6 +98,11 @@ func (o *StorageHitachiRemoteCopyPairTc) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "storage.HitachiRemoteCopyPairTc" of the ClassId field. +func (o *StorageHitachiRemoteCopyPairTc) GetDefaultClassId() interface{} { + return "storage.HitachiRemoteCopyPairTc" +} + // GetObjectType returns the ObjectType field value func (o *StorageHitachiRemoteCopyPairTc) GetObjectType() string { if o == nil { @@ -122,6 +127,11 @@ func (o *StorageHitachiRemoteCopyPairTc) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "storage.HitachiRemoteCopyPairTc" of the ObjectType field. +func (o *StorageHitachiRemoteCopyPairTc) GetDefaultObjectType() interface{} { + return "storage.HitachiRemoteCopyPairTc" +} + // GetMuNumber returns the MuNumber field value if set, zero value otherwise. func (o *StorageHitachiRemoteCopyPairTc) GetMuNumber() string { if o == nil || IsNil(o.MuNumber) { @@ -482,7 +492,13 @@ func (o StorageHitachiRemoteCopyPairTc) ToMap() (map[string]interface{}, error) if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.MuNumber) { toSerialize["MuNumber"] = o.MuNumber @@ -531,6 +547,13 @@ func (o *StorageHitachiRemoteCopyPairTc) UnmarshalJSON(data []byte) (err error) "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -540,11 +563,23 @@ func (o *StorageHitachiRemoteCopyPairTc) UnmarshalJSON(data []byte) (err error) } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type StorageHitachiRemoteCopyPairTcWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_storage_hitachi_remote_copy_pair_tc_list.go b/model_storage_hitachi_remote_copy_pair_tc_list.go index a948b61343..ad5159a19d 100644 --- a/model_storage_hitachi_remote_copy_pair_tc_list.go +++ b/model_storage_hitachi_remote_copy_pair_tc_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *StorageHitachiRemoteCopyPairTcList) GetResultsOk() ([]StorageHitachiRem // HasResults returns a boolean if a field has been set. func (o *StorageHitachiRemoteCopyPairTcList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *StorageHitachiRemoteCopyPairTcList) UnmarshalJSON(data []byte) (err err "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *StorageHitachiRemoteCopyPairTcList) UnmarshalJSON(data []byte) (err err } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type StorageHitachiRemoteCopyPairTcListWithoutEmbeddedStruct struct { // The total number of 'storage.HitachiRemoteCopyPairTc' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_storage_hitachi_remote_copy_pair_tc_response.go b/model_storage_hitachi_remote_copy_pair_tc_response.go index f35edc18c9..095a7a16a9 100644 --- a/model_storage_hitachi_remote_copy_pair_tc_response.go +++ b/model_storage_hitachi_remote_copy_pair_tc_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_storage_hitachi_remote_copy_pair_ur.go b/model_storage_hitachi_remote_copy_pair_ur.go index c838f79ca2..2b77d62cbe 100644 --- a/model_storage_hitachi_remote_copy_pair_ur.go +++ b/model_storage_hitachi_remote_copy_pair_ur.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -98,6 +98,11 @@ func (o *StorageHitachiRemoteCopyPairUr) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "storage.HitachiRemoteCopyPairUr" of the ClassId field. +func (o *StorageHitachiRemoteCopyPairUr) GetDefaultClassId() interface{} { + return "storage.HitachiRemoteCopyPairUr" +} + // GetObjectType returns the ObjectType field value func (o *StorageHitachiRemoteCopyPairUr) GetObjectType() string { if o == nil { @@ -122,6 +127,11 @@ func (o *StorageHitachiRemoteCopyPairUr) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "storage.HitachiRemoteCopyPairUr" of the ObjectType field. +func (o *StorageHitachiRemoteCopyPairUr) GetDefaultObjectType() interface{} { + return "storage.HitachiRemoteCopyPairUr" +} + // GetMuNumber returns the MuNumber field value if set, zero value otherwise. func (o *StorageHitachiRemoteCopyPairUr) GetMuNumber() string { if o == nil || IsNil(o.MuNumber) { @@ -482,7 +492,13 @@ func (o StorageHitachiRemoteCopyPairUr) ToMap() (map[string]interface{}, error) if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.MuNumber) { toSerialize["MuNumber"] = o.MuNumber @@ -531,6 +547,13 @@ func (o *StorageHitachiRemoteCopyPairUr) UnmarshalJSON(data []byte) (err error) "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -540,11 +563,23 @@ func (o *StorageHitachiRemoteCopyPairUr) UnmarshalJSON(data []byte) (err error) } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type StorageHitachiRemoteCopyPairUrWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_storage_hitachi_remote_copy_pair_ur_list.go b/model_storage_hitachi_remote_copy_pair_ur_list.go index 35092a59e5..677a032ab6 100644 --- a/model_storage_hitachi_remote_copy_pair_ur_list.go +++ b/model_storage_hitachi_remote_copy_pair_ur_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *StorageHitachiRemoteCopyPairUrList) GetResultsOk() ([]StorageHitachiRem // HasResults returns a boolean if a field has been set. func (o *StorageHitachiRemoteCopyPairUrList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *StorageHitachiRemoteCopyPairUrList) UnmarshalJSON(data []byte) (err err "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *StorageHitachiRemoteCopyPairUrList) UnmarshalJSON(data []byte) (err err } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type StorageHitachiRemoteCopyPairUrListWithoutEmbeddedStruct struct { // The total number of 'storage.HitachiRemoteCopyPairUr' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_storage_hitachi_remote_copy_pair_ur_response.go b/model_storage_hitachi_remote_copy_pair_ur_response.go index 9008707c9a..c341087016 100644 --- a/model_storage_hitachi_remote_copy_pair_ur_response.go +++ b/model_storage_hitachi_remote_copy_pair_ur_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_storage_hitachi_remote_replication.go b/model_storage_hitachi_remote_replication.go index 181f8df5d2..32ab1df859 100644 --- a/model_storage_hitachi_remote_replication.go +++ b/model_storage_hitachi_remote_replication.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -118,6 +118,11 @@ func (o *StorageHitachiRemoteReplication) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "storage.HitachiRemoteReplication" of the ClassId field. +func (o *StorageHitachiRemoteReplication) GetDefaultClassId() interface{} { + return "storage.HitachiRemoteReplication" +} + // GetObjectType returns the ObjectType field value func (o *StorageHitachiRemoteReplication) GetObjectType() string { if o == nil { @@ -142,6 +147,11 @@ func (o *StorageHitachiRemoteReplication) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "storage.HitachiRemoteReplication" of the ObjectType field. +func (o *StorageHitachiRemoteReplication) GetDefaultObjectType() interface{} { + return "storage.HitachiRemoteReplication" +} + // GetConsistencyGroupId returns the ConsistencyGroupId field value if set, zero value otherwise. func (o *StorageHitachiRemoteReplication) GetConsistencyGroupId() string { if o == nil || IsNil(o.ConsistencyGroupId) { @@ -822,7 +832,13 @@ func (o StorageHitachiRemoteReplication) ToMap() (map[string]interface{}, error) if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.ConsistencyGroupId) { toSerialize["ConsistencyGroupId"] = o.ConsistencyGroupId @@ -901,6 +917,13 @@ func (o *StorageHitachiRemoteReplication) UnmarshalJSON(data []byte) (err error) "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -910,11 +933,23 @@ func (o *StorageHitachiRemoteReplication) UnmarshalJSON(data []byte) (err error) } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type StorageHitachiRemoteReplicationWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_storage_hitachi_remote_replication_list.go b/model_storage_hitachi_remote_replication_list.go index f346c7e2db..f4c80481b4 100644 --- a/model_storage_hitachi_remote_replication_list.go +++ b/model_storage_hitachi_remote_replication_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *StorageHitachiRemoteReplicationList) GetResultsOk() ([]StorageHitachiRe // HasResults returns a boolean if a field has been set. func (o *StorageHitachiRemoteReplicationList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *StorageHitachiRemoteReplicationList) UnmarshalJSON(data []byte) (err er "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *StorageHitachiRemoteReplicationList) UnmarshalJSON(data []byte) (err er } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type StorageHitachiRemoteReplicationListWithoutEmbeddedStruct struct { // The total number of 'storage.HitachiRemoteReplication' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_storage_hitachi_remote_replication_response.go b/model_storage_hitachi_remote_replication_response.go index c6f13060e5..0b87401497 100644 --- a/model_storage_hitachi_remote_replication_response.go +++ b/model_storage_hitachi_remote_replication_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_storage_hitachi_snapshot.go b/model_storage_hitachi_snapshot.go index 9a954963a0..4bb47cffa1 100644 --- a/model_storage_hitachi_snapshot.go +++ b/model_storage_hitachi_snapshot.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -106,6 +106,11 @@ func (o *StorageHitachiSnapshot) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "storage.HitachiSnapshot" of the ClassId field. +func (o *StorageHitachiSnapshot) GetDefaultClassId() interface{} { + return "storage.HitachiSnapshot" +} + // GetObjectType returns the ObjectType field value func (o *StorageHitachiSnapshot) GetObjectType() string { if o == nil { @@ -130,6 +135,11 @@ func (o *StorageHitachiSnapshot) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "storage.HitachiSnapshot" of the ObjectType field. +func (o *StorageHitachiSnapshot) GetDefaultObjectType() interface{} { + return "storage.HitachiSnapshot" +} + // GetConcordanceRate returns the ConcordanceRate field value if set, zero value otherwise. func (o *StorageHitachiSnapshot) GetConcordanceRate() int64 { if o == nil || IsNil(o.ConcordanceRate) { @@ -618,7 +628,13 @@ func (o StorageHitachiSnapshot) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.ConcordanceRate) { toSerialize["ConcordanceRate"] = o.ConcordanceRate @@ -679,6 +695,13 @@ func (o *StorageHitachiSnapshot) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -688,11 +711,23 @@ func (o *StorageHitachiSnapshot) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type StorageHitachiSnapshotWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_storage_hitachi_snapshot_list.go b/model_storage_hitachi_snapshot_list.go index a03632dbb6..eae8ad5544 100644 --- a/model_storage_hitachi_snapshot_list.go +++ b/model_storage_hitachi_snapshot_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *StorageHitachiSnapshotList) GetResultsOk() ([]StorageHitachiSnapshot, b // HasResults returns a boolean if a field has been set. func (o *StorageHitachiSnapshotList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *StorageHitachiSnapshotList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *StorageHitachiSnapshotList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type StorageHitachiSnapshotListWithoutEmbeddedStruct struct { // The total number of 'storage.HitachiSnapshot' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_storage_hitachi_snapshot_response.go b/model_storage_hitachi_snapshot_response.go index 7af10c179f..4d000de997 100644 --- a/model_storage_hitachi_snapshot_response.go +++ b/model_storage_hitachi_snapshot_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_storage_hitachi_volume.go b/model_storage_hitachi_volume.go index f8707cbc54..abb132ff7a 100644 --- a/model_storage_hitachi_volume.go +++ b/model_storage_hitachi_volume.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -115,6 +115,11 @@ func (o *StorageHitachiVolume) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "storage.HitachiVolume" of the ClassId field. +func (o *StorageHitachiVolume) GetDefaultClassId() interface{} { + return "storage.HitachiVolume" +} + // GetObjectType returns the ObjectType field value func (o *StorageHitachiVolume) GetObjectType() string { if o == nil { @@ -139,6 +144,11 @@ func (o *StorageHitachiVolume) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "storage.HitachiVolume" of the ObjectType field. +func (o *StorageHitachiVolume) GetDefaultObjectType() interface{} { + return "storage.HitachiVolume" +} + // GetAttributes returns the Attributes field value if set, zero value otherwise (both if not set or set to explicit null). func (o *StorageHitachiVolume) GetAttributes() []string { if o == nil { @@ -160,7 +170,7 @@ func (o *StorageHitachiVolume) GetAttributesOk() ([]string, bool) { // HasAttributes returns a boolean if a field has been set. func (o *StorageHitachiVolume) HasAttributes() bool { - if o != nil && IsNil(o.Attributes) { + if o != nil && !IsNil(o.Attributes) { return true } @@ -513,7 +523,7 @@ func (o *StorageHitachiVolume) GetParityGroupIdsOk() ([]string, bool) { // HasParityGroupIds returns a boolean if a field has been set. func (o *StorageHitachiVolume) HasParityGroupIds() bool { - if o != nil && IsNil(o.ParityGroupIds) { + if o != nil && !IsNil(o.ParityGroupIds) { return true } @@ -717,7 +727,7 @@ func (o *StorageHitachiVolume) GetParityGroupsOk() ([]StorageHitachiParityGroupR // HasParityGroups returns a boolean if a field has been set. func (o *StorageHitachiVolume) HasParityGroups() bool { - if o != nil && IsNil(o.ParityGroups) { + if o != nil && !IsNil(o.ParityGroups) { return true } @@ -833,7 +843,13 @@ func (o StorageHitachiVolume) ToMap() (map[string]interface{}, error) { if errStorageBaseVolume != nil { return map[string]interface{}{}, errStorageBaseVolume } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.Attributes != nil { toSerialize["Attributes"] = o.Attributes @@ -912,6 +928,13 @@ func (o *StorageHitachiVolume) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -921,11 +944,23 @@ func (o *StorageHitachiVolume) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type StorageHitachiVolumeWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_storage_hitachi_volume_list.go b/model_storage_hitachi_volume_list.go index 4ae01f0223..261cff7248 100644 --- a/model_storage_hitachi_volume_list.go +++ b/model_storage_hitachi_volume_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *StorageHitachiVolumeList) GetResultsOk() ([]StorageHitachiVolume, bool) // HasResults returns a boolean if a field has been set. func (o *StorageHitachiVolumeList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *StorageHitachiVolumeList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *StorageHitachiVolumeList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type StorageHitachiVolumeListWithoutEmbeddedStruct struct { // The total number of 'storage.HitachiVolume' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_storage_hitachi_volume_migration_pair.go b/model_storage_hitachi_volume_migration_pair.go index 45a934893c..b9ff2cfc1b 100644 --- a/model_storage_hitachi_volume_migration_pair.go +++ b/model_storage_hitachi_volume_migration_pair.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -94,6 +94,11 @@ func (o *StorageHitachiVolumeMigrationPair) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "storage.HitachiVolumeMigrationPair" of the ClassId field. +func (o *StorageHitachiVolumeMigrationPair) GetDefaultClassId() interface{} { + return "storage.HitachiVolumeMigrationPair" +} + // GetObjectType returns the ObjectType field value func (o *StorageHitachiVolumeMigrationPair) GetObjectType() string { if o == nil { @@ -118,6 +123,11 @@ func (o *StorageHitachiVolumeMigrationPair) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "storage.HitachiVolumeMigrationPair" of the ObjectType field. +func (o *StorageHitachiVolumeMigrationPair) GetDefaultObjectType() interface{} { + return "storage.HitachiVolumeMigrationPair" +} + // GetCopyMode returns the CopyMode field value if set, zero value otherwise. func (o *StorageHitachiVolumeMigrationPair) GetCopyMode() string { if o == nil || IsNil(o.CopyMode) { @@ -414,7 +424,13 @@ func (o StorageHitachiVolumeMigrationPair) ToMap() (map[string]interface{}, erro if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.CopyMode) { toSerialize["CopyMode"] = o.CopyMode @@ -457,6 +473,13 @@ func (o *StorageHitachiVolumeMigrationPair) UnmarshalJSON(data []byte) (err erro "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -466,11 +489,23 @@ func (o *StorageHitachiVolumeMigrationPair) UnmarshalJSON(data []byte) (err erro } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type StorageHitachiVolumeMigrationPairWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_storage_hitachi_volume_migration_pair_list.go b/model_storage_hitachi_volume_migration_pair_list.go index 00a736819a..7283ed1c07 100644 --- a/model_storage_hitachi_volume_migration_pair_list.go +++ b/model_storage_hitachi_volume_migration_pair_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *StorageHitachiVolumeMigrationPairList) GetResultsOk() ([]StorageHitachi // HasResults returns a boolean if a field has been set. func (o *StorageHitachiVolumeMigrationPairList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *StorageHitachiVolumeMigrationPairList) UnmarshalJSON(data []byte) (err "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *StorageHitachiVolumeMigrationPairList) UnmarshalJSON(data []byte) (err } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type StorageHitachiVolumeMigrationPairListWithoutEmbeddedStruct struct { // The total number of 'storage.HitachiVolumeMigrationPair' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_storage_hitachi_volume_migration_pair_response.go b/model_storage_hitachi_volume_migration_pair_response.go index 548f6fb098..d6cfc2435f 100644 --- a/model_storage_hitachi_volume_migration_pair_response.go +++ b/model_storage_hitachi_volume_migration_pair_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_storage_hitachi_volume_relationship.go b/model_storage_hitachi_volume_relationship.go index 12f5b9bf2d..5c4fa25fed 100644 --- a/model_storage_hitachi_volume_relationship.go +++ b/model_storage_hitachi_volume_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_storage_hitachi_volume_response.go b/model_storage_hitachi_volume_response.go index 1799c4d6a0..cb784bb06f 100644 --- a/model_storage_hitachi_volume_response.go +++ b/model_storage_hitachi_volume_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_storage_hyper_flex_iscsi_initiator.go b/model_storage_hyper_flex_iscsi_initiator.go index 64347fe778..a0735b68ab 100644 --- a/model_storage_hyper_flex_iscsi_initiator.go +++ b/model_storage_hyper_flex_iscsi_initiator.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -81,6 +81,11 @@ func (o *StorageHyperFlexIscsiInitiator) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "storage.HyperFlexIscsiInitiator" of the ClassId field. +func (o *StorageHyperFlexIscsiInitiator) GetDefaultClassId() interface{} { + return "storage.HyperFlexIscsiInitiator" +} + // GetObjectType returns the ObjectType field value func (o *StorageHyperFlexIscsiInitiator) GetObjectType() string { if o == nil { @@ -105,6 +110,11 @@ func (o *StorageHyperFlexIscsiInitiator) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "storage.HyperFlexIscsiInitiator" of the ObjectType field. +func (o *StorageHyperFlexIscsiInitiator) GetDefaultObjectType() interface{} { + return "storage.HyperFlexIscsiInitiator" +} + // GetIpAddresses returns the IpAddresses field value if set, zero value otherwise (both if not set or set to explicit null). func (o *StorageHyperFlexIscsiInitiator) GetIpAddresses() []string { if o == nil { @@ -126,7 +136,7 @@ func (o *StorageHyperFlexIscsiInitiator) GetIpAddressesOk() ([]string, bool) { // HasIpAddresses returns a boolean if a field has been set. func (o *StorageHyperFlexIscsiInitiator) HasIpAddresses() bool { - if o != nil && IsNil(o.IpAddresses) { + if o != nil && !IsNil(o.IpAddresses) { return true } @@ -156,7 +166,13 @@ func (o StorageHyperFlexIscsiInitiator) ToMap() (map[string]interface{}, error) if errStorageBaseInitiator != nil { return map[string]interface{}{}, errStorageBaseInitiator } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.IpAddresses != nil { toSerialize["IpAddresses"] = o.IpAddresses @@ -178,6 +194,13 @@ func (o *StorageHyperFlexIscsiInitiator) UnmarshalJSON(data []byte) (err error) "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -187,11 +210,23 @@ func (o *StorageHyperFlexIscsiInitiator) UnmarshalJSON(data []byte) (err error) } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type StorageHyperFlexIscsiInitiatorWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_storage_hyper_flex_storage_container.go b/model_storage_hyper_flex_storage_container.go index 10eede5754..b7122c7f63 100644 --- a/model_storage_hyper_flex_storage_container.go +++ b/model_storage_hyper_flex_storage_container.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -103,6 +103,11 @@ func (o *StorageHyperFlexStorageContainer) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "storage.HyperFlexStorageContainer" of the ClassId field. +func (o *StorageHyperFlexStorageContainer) GetDefaultClassId() interface{} { + return "storage.HyperFlexStorageContainer" +} + // GetObjectType returns the ObjectType field value func (o *StorageHyperFlexStorageContainer) GetObjectType() string { if o == nil { @@ -127,6 +132,11 @@ func (o *StorageHyperFlexStorageContainer) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "storage.HyperFlexStorageContainer" of the ObjectType field. +func (o *StorageHyperFlexStorageContainer) GetDefaultObjectType() interface{} { + return "storage.HyperFlexStorageContainer" +} + // GetDataBlockSize returns the DataBlockSize field value if set, zero value otherwise. func (o *StorageHyperFlexStorageContainer) GetDataBlockSize() int64 { if o == nil || IsNil(o.DataBlockSize) { @@ -551,7 +561,13 @@ func (o StorageHyperFlexStorageContainer) ToMap() (map[string]interface{}, error if errStorageBaseStorageContainer != nil { return map[string]interface{}{}, errStorageBaseStorageContainer } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.DataBlockSize) { toSerialize["DataBlockSize"] = o.DataBlockSize @@ -606,6 +622,13 @@ func (o *StorageHyperFlexStorageContainer) UnmarshalJSON(data []byte) (err error "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -615,11 +638,23 @@ func (o *StorageHyperFlexStorageContainer) UnmarshalJSON(data []byte) (err error } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type StorageHyperFlexStorageContainerWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_storage_hyper_flex_storage_container_list.go b/model_storage_hyper_flex_storage_container_list.go index 54b4bf9477..087994d5cd 100644 --- a/model_storage_hyper_flex_storage_container_list.go +++ b/model_storage_hyper_flex_storage_container_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *StorageHyperFlexStorageContainerList) GetResultsOk() ([]StorageHyperFle // HasResults returns a boolean if a field has been set. func (o *StorageHyperFlexStorageContainerList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *StorageHyperFlexStorageContainerList) UnmarshalJSON(data []byte) (err e "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *StorageHyperFlexStorageContainerList) UnmarshalJSON(data []byte) (err e } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type StorageHyperFlexStorageContainerListWithoutEmbeddedStruct struct { // The total number of 'storage.HyperFlexStorageContainer' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_storage_hyper_flex_storage_container_relationship.go b/model_storage_hyper_flex_storage_container_relationship.go index 16f9977fbb..dfde64f8f5 100644 --- a/model_storage_hyper_flex_storage_container_relationship.go +++ b/model_storage_hyper_flex_storage_container_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_storage_hyper_flex_storage_container_response.go b/model_storage_hyper_flex_storage_container_response.go index 0d75fb3819..7e8cd80c55 100644 --- a/model_storage_hyper_flex_storage_container_response.go +++ b/model_storage_hyper_flex_storage_container_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_storage_hyper_flex_volume.go b/model_storage_hyper_flex_volume.go index c53b3fc3b3..325bdd1be3 100644 --- a/model_storage_hyper_flex_volume.go +++ b/model_storage_hyper_flex_volume.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -102,6 +102,11 @@ func (o *StorageHyperFlexVolume) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "storage.HyperFlexVolume" of the ClassId field. +func (o *StorageHyperFlexVolume) GetDefaultClassId() interface{} { + return "storage.HyperFlexVolume" +} + // GetObjectType returns the ObjectType field value func (o *StorageHyperFlexVolume) GetObjectType() string { if o == nil { @@ -126,6 +131,11 @@ func (o *StorageHyperFlexVolume) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "storage.HyperFlexVolume" of the ObjectType field. +func (o *StorageHyperFlexVolume) GetDefaultObjectType() interface{} { + return "storage.HyperFlexVolume" +} + // GetCapacity returns the Capacity field value if set, zero value otherwise. func (o *StorageHyperFlexVolume) GetCapacity() int64 { if o == nil || IsNil(o.Capacity) { @@ -561,7 +571,13 @@ func (o StorageHyperFlexVolume) ToMap() (map[string]interface{}, error) { if errStorageBaseVolume != nil { return map[string]interface{}{}, errStorageBaseVolume } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Capacity) { toSerialize["Capacity"] = o.Capacity @@ -616,6 +632,13 @@ func (o *StorageHyperFlexVolume) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -625,11 +648,23 @@ func (o *StorageHyperFlexVolume) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type StorageHyperFlexVolumeWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_storage_hyper_flex_volume_list.go b/model_storage_hyper_flex_volume_list.go index 2eaab395d9..20c9ab82d1 100644 --- a/model_storage_hyper_flex_volume_list.go +++ b/model_storage_hyper_flex_volume_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *StorageHyperFlexVolumeList) GetResultsOk() ([]StorageHyperFlexVolume, b // HasResults returns a boolean if a field has been set. func (o *StorageHyperFlexVolumeList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *StorageHyperFlexVolumeList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *StorageHyperFlexVolumeList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type StorageHyperFlexVolumeListWithoutEmbeddedStruct struct { // The total number of 'storage.HyperFlexVolume' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_storage_hyper_flex_volume_relationship.go b/model_storage_hyper_flex_volume_relationship.go index 6bff04e328..d753d0fccb 100644 --- a/model_storage_hyper_flex_volume_relationship.go +++ b/model_storage_hyper_flex_volume_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_storage_hyper_flex_volume_response.go b/model_storage_hyper_flex_volume_response.go index 235283860a..197903a90a 100644 --- a/model_storage_hyper_flex_volume_response.go +++ b/model_storage_hyper_flex_volume_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_storage_initiator.go b/model_storage_initiator.go index 0edc0fab4d..2c9547e664 100644 --- a/model_storage_initiator.go +++ b/model_storage_initiator.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -83,6 +83,10 @@ func (o *StorageInitiator) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -92,11 +96,23 @@ func (o *StorageInitiator) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type StorageInitiatorWithoutEmbeddedStruct struct { } diff --git a/model_storage_item.go b/model_storage_item.go index eaf945556e..578cf32023 100644 --- a/model_storage_item.go +++ b/model_storage_item.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -96,6 +96,11 @@ func (o *StorageItem) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "storage.Item" of the ClassId field. +func (o *StorageItem) GetDefaultClassId() interface{} { + return "storage.Item" +} + // GetObjectType returns the ObjectType field value func (o *StorageItem) GetObjectType() string { if o == nil { @@ -120,6 +125,11 @@ func (o *StorageItem) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "storage.Item" of the ObjectType field. +func (o *StorageItem) GetDefaultObjectType() interface{} { + return "storage.Item" +} + // GetAlarmType returns the AlarmType field value if set, zero value otherwise. func (o *StorageItem) GetAlarmType() string { if o == nil || IsNil(o.AlarmType) { @@ -473,7 +483,7 @@ func (o *StorageItem) GetStorageFilesOk() ([]StorageFileItemRelationship, bool) // HasStorageFiles returns a boolean if a field has been set. func (o *StorageItem) HasStorageFiles() bool { - if o != nil && IsNil(o.StorageFiles) { + if o != nil && !IsNil(o.StorageFiles) { return true } @@ -503,7 +513,13 @@ func (o StorageItem) ToMap() (map[string]interface{}, error) { if errInventoryBase != nil { return map[string]interface{}{}, errInventoryBase } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.AlarmType) { toSerialize["AlarmType"] = o.AlarmType @@ -552,6 +568,13 @@ func (o *StorageItem) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -561,11 +584,23 @@ func (o *StorageItem) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type StorageItemWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_storage_item_list.go b/model_storage_item_list.go index 25df47e8cc..42dbfbc35f 100644 --- a/model_storage_item_list.go +++ b/model_storage_item_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *StorageItemList) GetResultsOk() ([]StorageItem, bool) { // HasResults returns a boolean if a field has been set. func (o *StorageItemList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *StorageItemList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *StorageItemList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type StorageItemListWithoutEmbeddedStruct struct { // The total number of 'storage.Item' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_storage_item_relationship.go b/model_storage_item_relationship.go index a88a78e96f..d5172655db 100644 --- a/model_storage_item_relationship.go +++ b/model_storage_item_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_storage_item_response.go b/model_storage_item_response.go index 848a3cc6fd..59e4ff85d4 100644 --- a/model_storage_item_response.go +++ b/model_storage_item_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_storage_key_setting.go b/model_storage_key_setting.go index 81438943ed..c8486fb79e 100644 --- a/model_storage_key_setting.go +++ b/model_storage_key_setting.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -88,6 +88,11 @@ func (o *StorageKeySetting) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "storage.KeySetting" of the ClassId field. +func (o *StorageKeySetting) GetDefaultClassId() interface{} { + return "storage.KeySetting" +} + // GetObjectType returns the ObjectType field value func (o *StorageKeySetting) GetObjectType() string { if o == nil { @@ -112,6 +117,11 @@ func (o *StorageKeySetting) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "storage.KeySetting" of the ObjectType field. +func (o *StorageKeySetting) GetDefaultObjectType() interface{} { + return "storage.KeySetting" +} + // GetKeyType returns the KeyType field value if set, zero value otherwise. func (o *StorageKeySetting) GetKeyType() string { if o == nil || IsNil(o.KeyType) { @@ -248,7 +258,13 @@ func (o StorageKeySetting) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.KeyType) { toSerialize["KeyType"] = o.KeyType @@ -276,6 +292,13 @@ func (o *StorageKeySetting) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -285,11 +308,23 @@ func (o *StorageKeySetting) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type StorageKeySettingWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_storage_kmip_auth_credentials.go b/model_storage_kmip_auth_credentials.go index 7004f97e63..9794ead793 100644 --- a/model_storage_kmip_auth_credentials.go +++ b/model_storage_kmip_auth_credentials.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -31,11 +31,11 @@ type StorageKmipAuthCredentials struct { // Indicates whether the value of the 'password' property has been set. IsPasswordSet *bool `json:"IsPasswordSet,omitempty"` // The password for the KMIP server login. - Password *string `json:"Password,omitempty"` + Password *string "json:\"Password,omitempty\" validate:\"regexp=[!\\\"#%&'\\\\(\\\\)\\\\*\\\\+,\\\\-\\\\.\\/:;<>@\\\\[\\\\\\\\\\\\]\\\\^_`\\\\{\\\\|\\\\}~a-zA-Z0-9]{0,80}\"" // Enables/disables the authentication for communicating with KMIP server. This flag enables the authentication which makes authentication mandatory. UseAuthentication *bool `json:"UseAuthentication,omitempty"` // The user name for the KMIP server login. - Username *string `json:"Username,omitempty"` + Username *string `json:"Username,omitempty" validate:"regexp=^$|[a-zA-Z][a-zA-Z0-9_.-]{0,31}"` AdditionalProperties map[string]interface{} } @@ -88,6 +88,11 @@ func (o *StorageKmipAuthCredentials) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "storage.KmipAuthCredentials" of the ClassId field. +func (o *StorageKmipAuthCredentials) GetDefaultClassId() interface{} { + return "storage.KmipAuthCredentials" +} + // GetObjectType returns the ObjectType field value func (o *StorageKmipAuthCredentials) GetObjectType() string { if o == nil { @@ -112,6 +117,11 @@ func (o *StorageKmipAuthCredentials) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "storage.KmipAuthCredentials" of the ObjectType field. +func (o *StorageKmipAuthCredentials) GetDefaultObjectType() interface{} { + return "storage.KmipAuthCredentials" +} + // GetIsPasswordSet returns the IsPasswordSet field value if set, zero value otherwise. func (o *StorageKmipAuthCredentials) GetIsPasswordSet() bool { if o == nil || IsNil(o.IsPasswordSet) { @@ -258,7 +268,13 @@ func (o StorageKmipAuthCredentials) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.IsPasswordSet) { toSerialize["IsPasswordSet"] = o.IsPasswordSet @@ -289,6 +305,13 @@ func (o *StorageKmipAuthCredentials) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -298,11 +321,23 @@ func (o *StorageKmipAuthCredentials) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type StorageKmipAuthCredentialsWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` @@ -311,11 +346,11 @@ func (o *StorageKmipAuthCredentials) UnmarshalJSON(data []byte) (err error) { // Indicates whether the value of the 'password' property has been set. IsPasswordSet *bool `json:"IsPasswordSet,omitempty"` // The password for the KMIP server login. - Password *string `json:"Password,omitempty"` + Password *string "json:\"Password,omitempty\" validate:\"regexp=[!\\\"#%&'\\\\(\\\\)\\\\*\\\\+,\\\\-\\\\.\\/:;<>@\\\\[\\\\\\\\\\\\]\\\\^_`\\\\{\\\\|\\\\}~a-zA-Z0-9]{0,80}\"" // Enables/disables the authentication for communicating with KMIP server. This flag enables the authentication which makes authentication mandatory. UseAuthentication *bool `json:"UseAuthentication,omitempty"` // The user name for the KMIP server login. - Username *string `json:"Username,omitempty"` + Username *string `json:"Username,omitempty" validate:"regexp=^$|[a-zA-Z][a-zA-Z0-9_.-]{0,31}"` } varStorageKmipAuthCredentialsWithoutEmbeddedStruct := StorageKmipAuthCredentialsWithoutEmbeddedStruct{} diff --git a/model_storage_kmip_server.go b/model_storage_kmip_server.go index 7920ce505b..b16babae2a 100644 --- a/model_storage_kmip_server.go +++ b/model_storage_kmip_server.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -96,6 +96,11 @@ func (o *StorageKmipServer) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "storage.KmipServer" of the ClassId field. +func (o *StorageKmipServer) GetDefaultClassId() interface{} { + return "storage.KmipServer" +} + // GetObjectType returns the ObjectType field value func (o *StorageKmipServer) GetObjectType() string { if o == nil { @@ -120,6 +125,11 @@ func (o *StorageKmipServer) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "storage.KmipServer" of the ObjectType field. +func (o *StorageKmipServer) GetDefaultObjectType() interface{} { + return "storage.KmipServer" +} + // GetEnableDriveSecurity returns the EnableDriveSecurity field value if set, zero value otherwise. func (o *StorageKmipServer) GetEnableDriveSecurity() bool { if o == nil || IsNil(o.EnableDriveSecurity) { @@ -266,7 +276,13 @@ func (o StorageKmipServer) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.EnableDriveSecurity) { toSerialize["EnableDriveSecurity"] = o.EnableDriveSecurity @@ -297,6 +313,13 @@ func (o *StorageKmipServer) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -306,11 +329,23 @@ func (o *StorageKmipServer) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type StorageKmipServerWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_storage_local_key_setting.go b/model_storage_local_key_setting.go index 9e054be35c..f1efdc16f9 100644 --- a/model_storage_local_key_setting.go +++ b/model_storage_local_key_setting.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -29,13 +29,13 @@ type StorageLocalKeySetting struct { // The fully-qualified name of the instantiated, concrete type. The value should be the same as the 'ClassId' property. ObjectType string `json:"ObjectType"` // Current Security Key Passphrase which is already configured on the server. - ExistingKey *string `json:"ExistingKey,omitempty"` + ExistingKey *string `json:"ExistingKey,omitempty" validate:"regexp=^$|^[a-zA-Z0-9=!&#$%+^@_*-]+$"` // Indicates whether the value of the 'existingKey' property has been set. IsExistingKeySet *bool `json:"IsExistingKeySet,omitempty"` // Indicates whether the value of the 'newKey' property has been set. IsNewKeySet *bool `json:"IsNewKeySet,omitempty"` // New Security Key Passphrase to be configured on the controller. - NewKey *string `json:"NewKey,omitempty"` + NewKey *string `json:"NewKey,omitempty" validate:"regexp=^$|^[a-zA-Z0-9=!&#$%+^@_*-]+$"` AdditionalProperties map[string]interface{} } @@ -88,6 +88,11 @@ func (o *StorageLocalKeySetting) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "storage.LocalKeySetting" of the ClassId field. +func (o *StorageLocalKeySetting) GetDefaultClassId() interface{} { + return "storage.LocalKeySetting" +} + // GetObjectType returns the ObjectType field value func (o *StorageLocalKeySetting) GetObjectType() string { if o == nil { @@ -112,6 +117,11 @@ func (o *StorageLocalKeySetting) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "storage.LocalKeySetting" of the ObjectType field. +func (o *StorageLocalKeySetting) GetDefaultObjectType() interface{} { + return "storage.LocalKeySetting" +} + // GetExistingKey returns the ExistingKey field value if set, zero value otherwise. func (o *StorageLocalKeySetting) GetExistingKey() string { if o == nil || IsNil(o.ExistingKey) { @@ -258,7 +268,13 @@ func (o StorageLocalKeySetting) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.ExistingKey) { toSerialize["ExistingKey"] = o.ExistingKey @@ -289,6 +305,13 @@ func (o *StorageLocalKeySetting) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -298,24 +321,36 @@ func (o *StorageLocalKeySetting) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type StorageLocalKeySettingWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` // The fully-qualified name of the instantiated, concrete type. The value should be the same as the 'ClassId' property. ObjectType string `json:"ObjectType"` // Current Security Key Passphrase which is already configured on the server. - ExistingKey *string `json:"ExistingKey,omitempty"` + ExistingKey *string `json:"ExistingKey,omitempty" validate:"regexp=^$|^[a-zA-Z0-9=!&#$%+^@_*-]+$"` // Indicates whether the value of the 'existingKey' property has been set. IsExistingKeySet *bool `json:"IsExistingKeySet,omitempty"` // Indicates whether the value of the 'newKey' property has been set. IsNewKeySet *bool `json:"IsNewKeySet,omitempty"` // New Security Key Passphrase to be configured on the controller. - NewKey *string `json:"NewKey,omitempty"` + NewKey *string `json:"NewKey,omitempty" validate:"regexp=^$|^[a-zA-Z0-9=!&#$%+^@_*-]+$"` } varStorageLocalKeySettingWithoutEmbeddedStruct := StorageLocalKeySettingWithoutEmbeddedStruct{} diff --git a/model_storage_m2_virtual_drive_config.go b/model_storage_m2_virtual_drive_config.go index 92bad8b44a..77515075db 100644 --- a/model_storage_m2_virtual_drive_config.go +++ b/model_storage_m2_virtual_drive_config.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -33,7 +33,7 @@ type StorageM2VirtualDriveConfig struct { // If enabled, this will create a virtual drive on the M.2 RAID controller. Enable *bool `json:"Enable,omitempty"` // The name of the virtual drive. The name can be between 1 and 15 alphanumeric characters. Spaces or any special characters other than - (hyphen) and _ (underscore) are not allowed. This field will be pre-populated with the default or user configured value which can be edited. - Name *string `json:"Name,omitempty"` + Name *string `json:"Name,omitempty" validate:"regexp=^[a-zA-Z0-9\\\\-_]*$"` AdditionalProperties map[string]interface{} } @@ -98,6 +98,11 @@ func (o *StorageM2VirtualDriveConfig) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "storage.M2VirtualDriveConfig" of the ClassId field. +func (o *StorageM2VirtualDriveConfig) GetDefaultClassId() interface{} { + return "storage.M2VirtualDriveConfig" +} + // GetObjectType returns the ObjectType field value func (o *StorageM2VirtualDriveConfig) GetObjectType() string { if o == nil { @@ -122,6 +127,11 @@ func (o *StorageM2VirtualDriveConfig) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "storage.M2VirtualDriveConfig" of the ObjectType field. +func (o *StorageM2VirtualDriveConfig) GetDefaultObjectType() interface{} { + return "storage.M2VirtualDriveConfig" +} + // GetControllerSlot returns the ControllerSlot field value if set, zero value otherwise. func (o *StorageM2VirtualDriveConfig) GetControllerSlot() string { if o == nil || IsNil(o.ControllerSlot) { @@ -236,7 +246,13 @@ func (o StorageM2VirtualDriveConfig) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.ControllerSlot) { toSerialize["ControllerSlot"] = o.ControllerSlot @@ -264,6 +280,13 @@ func (o *StorageM2VirtualDriveConfig) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -273,11 +296,23 @@ func (o *StorageM2VirtualDriveConfig) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type StorageM2VirtualDriveConfigWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` @@ -288,7 +323,7 @@ func (o *StorageM2VirtualDriveConfig) UnmarshalJSON(data []byte) (err error) { // If enabled, this will create a virtual drive on the M.2 RAID controller. Enable *bool `json:"Enable,omitempty"` // The name of the virtual drive. The name can be between 1 and 15 alphanumeric characters. Spaces or any special characters other than - (hyphen) and _ (underscore) are not allowed. This field will be pre-populated with the default or user configured value which can be edited. - Name *string `json:"Name,omitempty"` + Name *string `json:"Name,omitempty" validate:"regexp=^[a-zA-Z0-9\\\\-_]*$"` } varStorageM2VirtualDriveConfigWithoutEmbeddedStruct := StorageM2VirtualDriveConfigWithoutEmbeddedStruct{} diff --git a/model_storage_manual_drive_group.go b/model_storage_manual_drive_group.go index eafb2e89d3..9ebdd0af4f 100644 --- a/model_storage_manual_drive_group.go +++ b/model_storage_manual_drive_group.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -29,7 +29,7 @@ type StorageManualDriveGroup struct { // The fully-qualified name of the instantiated, concrete type. The value should be the same as the 'ClassId' property. ObjectType string `json:"ObjectType"` // A collection of drives to be used as hot spares for this Drive Group. - DedicatedHotSpares *string `json:"DedicatedHotSpares,omitempty"` + DedicatedHotSpares *string `json:"DedicatedHotSpares,omitempty" validate:"regexp=^$|^((\\\\d+\\\\-\\\\d+)|(\\\\d+))(,((\\\\d+\\\\-\\\\d+)|(\\\\d+)))*$"` SpanGroups []StorageSpanDrives `json:"SpanGroups,omitempty"` AdditionalProperties map[string]interface{} } @@ -83,6 +83,11 @@ func (o *StorageManualDriveGroup) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "storage.ManualDriveGroup" of the ClassId field. +func (o *StorageManualDriveGroup) GetDefaultClassId() interface{} { + return "storage.ManualDriveGroup" +} + // GetObjectType returns the ObjectType field value func (o *StorageManualDriveGroup) GetObjectType() string { if o == nil { @@ -107,6 +112,11 @@ func (o *StorageManualDriveGroup) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "storage.ManualDriveGroup" of the ObjectType field. +func (o *StorageManualDriveGroup) GetDefaultObjectType() interface{} { + return "storage.ManualDriveGroup" +} + // GetDedicatedHotSpares returns the DedicatedHotSpares field value if set, zero value otherwise. func (o *StorageManualDriveGroup) GetDedicatedHotSpares() string { if o == nil || IsNil(o.DedicatedHotSpares) { @@ -160,7 +170,7 @@ func (o *StorageManualDriveGroup) GetSpanGroupsOk() ([]StorageSpanDrives, bool) // HasSpanGroups returns a boolean if a field has been set. func (o *StorageManualDriveGroup) HasSpanGroups() bool { - if o != nil && IsNil(o.SpanGroups) { + if o != nil && !IsNil(o.SpanGroups) { return true } @@ -190,7 +200,13 @@ func (o StorageManualDriveGroup) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.DedicatedHotSpares) { toSerialize["DedicatedHotSpares"] = o.DedicatedHotSpares @@ -215,6 +231,13 @@ func (o *StorageManualDriveGroup) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -224,18 +247,30 @@ func (o *StorageManualDriveGroup) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type StorageManualDriveGroupWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` // The fully-qualified name of the instantiated, concrete type. The value should be the same as the 'ClassId' property. ObjectType string `json:"ObjectType"` // A collection of drives to be used as hot spares for this Drive Group. - DedicatedHotSpares *string `json:"DedicatedHotSpares,omitempty"` + DedicatedHotSpares *string `json:"DedicatedHotSpares,omitempty" validate:"regexp=^$|^((\\\\d+\\\\-\\\\d+)|(\\\\d+))(,((\\\\d+\\\\-\\\\d+)|(\\\\d+)))*$"` SpanGroups []StorageSpanDrives `json:"SpanGroups,omitempty"` } diff --git a/model_storage_net_app_aggregate.go b/model_storage_net_app_aggregate.go index 1147a3bada..02fccc09c6 100644 --- a/model_storage_net_app_aggregate.go +++ b/model_storage_net_app_aggregate.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -45,7 +45,7 @@ type StorageNetAppAggregate struct { // Current state of the NetApp aggregate. * `Unknown` - Specifies that the aggregate is discovered, but the aggregate information is not yet retrieved by the Unified Manager server. * `Online` - Aggregate is ready and available. * `Onlining` - The state is transitioning online. * `Offline` - Aggregate is unavailable. * `Offlining` - The state is transitioning offline. * `Relocating` - The aggregate is being relocated. * `Restricted` - Limited operations (e.g., parity reconstruction) are allowed, but data access is not allowed. * `Failed` - The aggregate cannot be brought online. * `Inconsistent` - The aggregate has been marked corrupted; contact technical support. * `Unmounted` - The aggregate is not mounted. State *string `json:"State,omitempty"` // Uuid of NetApp Aggregate. - Uuid *string `json:"Uuid,omitempty"` + Uuid *string `json:"Uuid,omitempty" validate:"regexp=^$|^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"` ArrayController NullableStorageNetAppNodeRelationship `json:"ArrayController,omitempty"` // An array of relationships to storageNetAppAggregateEvent resources. Events []StorageNetAppAggregateEventRelationship `json:"Events,omitempty"` @@ -101,6 +101,11 @@ func (o *StorageNetAppAggregate) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "storage.NetAppAggregate" of the ClassId field. +func (o *StorageNetAppAggregate) GetDefaultClassId() interface{} { + return "storage.NetAppAggregate" +} + // GetObjectType returns the ObjectType field value func (o *StorageNetAppAggregate) GetObjectType() string { if o == nil { @@ -125,6 +130,11 @@ func (o *StorageNetAppAggregate) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "storage.NetAppAggregate" of the ObjectType field. +func (o *StorageNetAppAggregate) GetDefaultObjectType() interface{} { + return "storage.NetAppAggregate" +} + // GetAggregateType returns the AggregateType field value if set, zero value otherwise. func (o *StorageNetAppAggregate) GetAggregateType() string { if o == nil || IsNil(o.AggregateType) { @@ -210,7 +220,7 @@ func (o *StorageNetAppAggregate) GetCloudStorageOk() ([]string, bool) { // HasCloudStorage returns a boolean if a field has been set. func (o *StorageNetAppAggregate) HasCloudStorage() bool { - if o != nil && IsNil(o.CloudStorage) { + if o != nil && !IsNil(o.CloudStorage) { return true } @@ -510,7 +520,7 @@ func (o *StorageNetAppAggregate) GetEventsOk() ([]StorageNetAppAggregateEventRel // HasEvents returns a boolean if a field has been set. func (o *StorageNetAppAggregate) HasEvents() bool { - if o != nil && IsNil(o.Events) { + if o != nil && !IsNil(o.Events) { return true } @@ -540,7 +550,13 @@ func (o StorageNetAppAggregate) ToMap() (map[string]interface{}, error) { if errStorageBaseDiskPool != nil { return map[string]interface{}{}, errStorageBaseDiskPool } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.AggregateType) { toSerialize["AggregateType"] = o.AggregateType @@ -595,6 +611,13 @@ func (o *StorageNetAppAggregate) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -604,11 +627,23 @@ func (o *StorageNetAppAggregate) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type StorageNetAppAggregateWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` @@ -631,7 +666,7 @@ func (o *StorageNetAppAggregate) UnmarshalJSON(data []byte) (err error) { // Current state of the NetApp aggregate. * `Unknown` - Specifies that the aggregate is discovered, but the aggregate information is not yet retrieved by the Unified Manager server. * `Online` - Aggregate is ready and available. * `Onlining` - The state is transitioning online. * `Offline` - Aggregate is unavailable. * `Offlining` - The state is transitioning offline. * `Relocating` - The aggregate is being relocated. * `Restricted` - Limited operations (e.g., parity reconstruction) are allowed, but data access is not allowed. * `Failed` - The aggregate cannot be brought online. * `Inconsistent` - The aggregate has been marked corrupted; contact technical support. * `Unmounted` - The aggregate is not mounted. State *string `json:"State,omitempty"` // Uuid of NetApp Aggregate. - Uuid *string `json:"Uuid,omitempty"` + Uuid *string `json:"Uuid,omitempty" validate:"regexp=^$|^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"` ArrayController NullableStorageNetAppNodeRelationship `json:"ArrayController,omitempty"` // An array of relationships to storageNetAppAggregateEvent resources. Events []StorageNetAppAggregateEventRelationship `json:"Events,omitempty"` diff --git a/model_storage_net_app_aggregate_event.go b/model_storage_net_app_aggregate_event.go index 642af97dc7..3ad07924c8 100644 --- a/model_storage_net_app_aggregate_event.go +++ b/model_storage_net_app_aggregate_event.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -81,6 +81,11 @@ func (o *StorageNetAppAggregateEvent) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "storage.NetAppAggregateEvent" of the ClassId field. +func (o *StorageNetAppAggregateEvent) GetDefaultClassId() interface{} { + return "storage.NetAppAggregateEvent" +} + // GetObjectType returns the ObjectType field value func (o *StorageNetAppAggregateEvent) GetObjectType() string { if o == nil { @@ -105,6 +110,11 @@ func (o *StorageNetAppAggregateEvent) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "storage.NetAppAggregateEvent" of the ObjectType field. +func (o *StorageNetAppAggregateEvent) GetDefaultObjectType() interface{} { + return "storage.NetAppAggregateEvent" +} + // GetAggregate returns the Aggregate field value if set, zero value otherwise (both if not set or set to explicit null). func (o *StorageNetAppAggregateEvent) GetAggregate() StorageNetAppAggregateRelationship { if o == nil || IsNil(o.Aggregate.Get()) { @@ -166,7 +176,13 @@ func (o StorageNetAppAggregateEvent) ToMap() (map[string]interface{}, error) { if errStorageNetAppBaseEvent != nil { return map[string]interface{}{}, errStorageNetAppBaseEvent } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.Aggregate.IsSet() { toSerialize["Aggregate"] = o.Aggregate.Get() @@ -188,6 +204,13 @@ func (o *StorageNetAppAggregateEvent) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -197,11 +220,23 @@ func (o *StorageNetAppAggregateEvent) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type StorageNetAppAggregateEventWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_storage_net_app_aggregate_event_list.go b/model_storage_net_app_aggregate_event_list.go index e9304a9a20..2a76a46fea 100644 --- a/model_storage_net_app_aggregate_event_list.go +++ b/model_storage_net_app_aggregate_event_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *StorageNetAppAggregateEventList) GetResultsOk() ([]StorageNetAppAggrega // HasResults returns a boolean if a field has been set. func (o *StorageNetAppAggregateEventList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *StorageNetAppAggregateEventList) UnmarshalJSON(data []byte) (err error) "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *StorageNetAppAggregateEventList) UnmarshalJSON(data []byte) (err error) } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type StorageNetAppAggregateEventListWithoutEmbeddedStruct struct { // The total number of 'storage.NetAppAggregateEvent' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_storage_net_app_aggregate_event_relationship.go b/model_storage_net_app_aggregate_event_relationship.go index aef4a8bdb0..3c9bad788e 100644 --- a/model_storage_net_app_aggregate_event_relationship.go +++ b/model_storage_net_app_aggregate_event_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_storage_net_app_aggregate_event_response.go b/model_storage_net_app_aggregate_event_response.go index 520982ca29..db9e9d9775 100644 --- a/model_storage_net_app_aggregate_event_response.go +++ b/model_storage_net_app_aggregate_event_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_storage_net_app_aggregate_list.go b/model_storage_net_app_aggregate_list.go index 8c69babd5b..f9a2ef72ae 100644 --- a/model_storage_net_app_aggregate_list.go +++ b/model_storage_net_app_aggregate_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *StorageNetAppAggregateList) GetResultsOk() ([]StorageNetAppAggregate, b // HasResults returns a boolean if a field has been set. func (o *StorageNetAppAggregateList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *StorageNetAppAggregateList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *StorageNetAppAggregateList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type StorageNetAppAggregateListWithoutEmbeddedStruct struct { // The total number of 'storage.NetAppAggregate' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_storage_net_app_aggregate_relationship.go b/model_storage_net_app_aggregate_relationship.go index 27a30f1b23..92dc1ec036 100644 --- a/model_storage_net_app_aggregate_relationship.go +++ b/model_storage_net_app_aggregate_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_storage_net_app_aggregate_response.go b/model_storage_net_app_aggregate_response.go index 701730fd4b..bf46d81c9b 100644 --- a/model_storage_net_app_aggregate_response.go +++ b/model_storage_net_app_aggregate_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_storage_net_app_auto_support.go b/model_storage_net_app_auto_support.go index 681ca2f455..ff5e4cde2f 100644 --- a/model_storage_net_app_auto_support.go +++ b/model_storage_net_app_auto_support.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -88,6 +88,11 @@ func (o *StorageNetAppAutoSupport) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "storage.NetAppAutoSupport" of the ClassId field. +func (o *StorageNetAppAutoSupport) GetDefaultClassId() interface{} { + return "storage.NetAppAutoSupport" +} + // GetObjectType returns the ObjectType field value func (o *StorageNetAppAutoSupport) GetObjectType() string { if o == nil { @@ -112,6 +117,11 @@ func (o *StorageNetAppAutoSupport) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "storage.NetAppAutoSupport" of the ObjectType field. +func (o *StorageNetAppAutoSupport) GetDefaultObjectType() interface{} { + return "storage.NetAppAutoSupport" +} + // GetEnabled returns the Enabled field value if set, zero value otherwise. func (o *StorageNetAppAutoSupport) GetEnabled() bool { if o == nil || IsNil(o.Enabled) { @@ -258,7 +268,13 @@ func (o StorageNetAppAutoSupport) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Enabled) { toSerialize["Enabled"] = o.Enabled @@ -289,6 +305,13 @@ func (o *StorageNetAppAutoSupport) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -298,11 +321,23 @@ func (o *StorageNetAppAutoSupport) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type StorageNetAppAutoSupportWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_storage_net_app_base_disk.go b/model_storage_net_app_base_disk.go index 4d4e97d021..18f2ad0355 100644 --- a/model_storage_net_app_base_disk.go +++ b/model_storage_net_app_base_disk.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -31,7 +31,7 @@ type StorageNetAppBaseDisk struct { // The NetApp base disk model. BaseDiskModel *string `json:"BaseDiskModel,omitempty"` // Unique identity of the device. - ClusterUuid *string `json:"ClusterUuid,omitempty"` + ClusterUuid *string `json:"ClusterUuid,omitempty" validate:"regexp=^$|^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"` // Supported container type for NetApp disk. * `Unknown` - Default container type is currently unknown. * `Aggregate` - Disk is used as a physical disk in an aggregate. * `Broken` - Disk is in a broken pool. * `Label Maintenance` - Disk is in online label maintenance list. * `Foreign` - Array LUN has been marked foreign. * `Maintenance` - Disk is in maintenance center. * `Mediator` - A mediator disk is a disk used on non-shared HA systems hosted by an external node which is used to communicate the viability of the storage failover between non-shared HA nodes. * `Shared` - Disk is partitioned or in a storage pool. * `Remote` - Disk belongs to a remote cluster. * `Spare` - The disk is a spare disk. * `Unassigned` - Disk ownership has not been assigned. * `Unsupported` - The disk is not supported. ContainerType *string `json:"ContainerType,omitempty"` // NetApp base disk shelf bay. @@ -51,7 +51,7 @@ type StorageNetAppBaseDisk struct { // Current state of the NetApp disk. * `Present` - Storage disk state type is present. * `Copy` - Storage disk state type is copy. * `Broken` - Storage disk state type is broken. * `Maintenance` - Storage disk state type is maintenance. * `Partner` - Storage disk state type is partner. * `Pending` - Storage disk state type is pending. * `Reconstructing` - Storage disk state type is reconstructing. * `Removed` - Storage disk state type is removed. * `Spare` - Storage disk state type is spare. * `Unfail` - Storage disk state type is unfail. * `Zeroing` - Storage disk state type is zeroing. State *string `json:"State,omitempty"` // Universally unique identifier of the NetApp Disk. - Uuid *string `json:"Uuid,omitempty"` + Uuid *string `json:"Uuid,omitempty" validate:"regexp=^$|^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"` Array NullableStorageNetAppClusterRelationship `json:"Array,omitempty"` ArrayController NullableStorageNetAppNodeRelationship `json:"ArrayController,omitempty"` // An array of relationships to storageNetAppAggregate resources. @@ -110,6 +110,11 @@ func (o *StorageNetAppBaseDisk) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "storage.NetAppBaseDisk" of the ClassId field. +func (o *StorageNetAppBaseDisk) GetDefaultClassId() interface{} { + return "storage.NetAppBaseDisk" +} + // GetObjectType returns the ObjectType field value func (o *StorageNetAppBaseDisk) GetObjectType() string { if o == nil { @@ -134,6 +139,11 @@ func (o *StorageNetAppBaseDisk) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "storage.NetAppBaseDisk" of the ObjectType field. +func (o *StorageNetAppBaseDisk) GetDefaultObjectType() interface{} { + return "storage.NetAppBaseDisk" +} + // GetBaseDiskModel returns the BaseDiskModel field value if set, zero value otherwise. func (o *StorageNetAppBaseDisk) GetBaseDiskModel() string { if o == nil || IsNil(o.BaseDiskModel) { @@ -625,7 +635,7 @@ func (o *StorageNetAppBaseDisk) GetDiskPoolOk() ([]StorageNetAppAggregateRelatio // HasDiskPool returns a boolean if a field has been set. func (o *StorageNetAppBaseDisk) HasDiskPool() bool { - if o != nil && IsNil(o.DiskPool) { + if o != nil && !IsNil(o.DiskPool) { return true } @@ -658,7 +668,7 @@ func (o *StorageNetAppBaseDisk) GetEventsOk() ([]StorageNetAppDiskEventRelations // HasEvents returns a boolean if a field has been set. func (o *StorageNetAppBaseDisk) HasEvents() bool { - if o != nil && IsNil(o.Events) { + if o != nil && !IsNil(o.Events) { return true } @@ -688,7 +698,13 @@ func (o StorageNetAppBaseDisk) ToMap() (map[string]interface{}, error) { if errStorageBaseArrayDisk != nil { return map[string]interface{}{}, errStorageBaseArrayDisk } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.BaseDiskModel) { toSerialize["BaseDiskModel"] = o.BaseDiskModel @@ -755,6 +771,13 @@ func (o *StorageNetAppBaseDisk) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -764,11 +787,23 @@ func (o *StorageNetAppBaseDisk) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type StorageNetAppBaseDiskWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` @@ -777,7 +812,7 @@ func (o *StorageNetAppBaseDisk) UnmarshalJSON(data []byte) (err error) { // The NetApp base disk model. BaseDiskModel *string `json:"BaseDiskModel,omitempty"` // Unique identity of the device. - ClusterUuid *string `json:"ClusterUuid,omitempty"` + ClusterUuid *string `json:"ClusterUuid,omitempty" validate:"regexp=^$|^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"` // Supported container type for NetApp disk. * `Unknown` - Default container type is currently unknown. * `Aggregate` - Disk is used as a physical disk in an aggregate. * `Broken` - Disk is in a broken pool. * `Label Maintenance` - Disk is in online label maintenance list. * `Foreign` - Array LUN has been marked foreign. * `Maintenance` - Disk is in maintenance center. * `Mediator` - A mediator disk is a disk used on non-shared HA systems hosted by an external node which is used to communicate the viability of the storage failover between non-shared HA nodes. * `Shared` - Disk is partitioned or in a storage pool. * `Remote` - Disk belongs to a remote cluster. * `Spare` - The disk is a spare disk. * `Unassigned` - Disk ownership has not been assigned. * `Unsupported` - The disk is not supported. ContainerType *string `json:"ContainerType,omitempty"` // NetApp base disk shelf bay. @@ -797,7 +832,7 @@ func (o *StorageNetAppBaseDisk) UnmarshalJSON(data []byte) (err error) { // Current state of the NetApp disk. * `Present` - Storage disk state type is present. * `Copy` - Storage disk state type is copy. * `Broken` - Storage disk state type is broken. * `Maintenance` - Storage disk state type is maintenance. * `Partner` - Storage disk state type is partner. * `Pending` - Storage disk state type is pending. * `Reconstructing` - Storage disk state type is reconstructing. * `Removed` - Storage disk state type is removed. * `Spare` - Storage disk state type is spare. * `Unfail` - Storage disk state type is unfail. * `Zeroing` - Storage disk state type is zeroing. State *string `json:"State,omitempty"` // Universally unique identifier of the NetApp Disk. - Uuid *string `json:"Uuid,omitempty"` + Uuid *string `json:"Uuid,omitempty" validate:"regexp=^$|^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"` Array NullableStorageNetAppClusterRelationship `json:"Array,omitempty"` ArrayController NullableStorageNetAppNodeRelationship `json:"ArrayController,omitempty"` // An array of relationships to storageNetAppAggregate resources. diff --git a/model_storage_net_app_base_disk_list.go b/model_storage_net_app_base_disk_list.go index 48f80c187a..b68eda3021 100644 --- a/model_storage_net_app_base_disk_list.go +++ b/model_storage_net_app_base_disk_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *StorageNetAppBaseDiskList) GetResultsOk() ([]StorageNetAppBaseDisk, boo // HasResults returns a boolean if a field has been set. func (o *StorageNetAppBaseDiskList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *StorageNetAppBaseDiskList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *StorageNetAppBaseDiskList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type StorageNetAppBaseDiskListWithoutEmbeddedStruct struct { // The total number of 'storage.NetAppBaseDisk' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_storage_net_app_base_disk_relationship.go b/model_storage_net_app_base_disk_relationship.go index 7b38929d5a..8ce12522b5 100644 --- a/model_storage_net_app_base_disk_relationship.go +++ b/model_storage_net_app_base_disk_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_storage_net_app_base_disk_response.go b/model_storage_net_app_base_disk_response.go index 053c3c67d0..e43548c5b5 100644 --- a/model_storage_net_app_base_disk_response.go +++ b/model_storage_net_app_base_disk_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_storage_net_app_base_event.go b/model_storage_net_app_base_event.go index d907769179..de3e5d3a3c 100644 --- a/model_storage_net_app_base_event.go +++ b/model_storage_net_app_base_event.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -55,7 +55,7 @@ type StorageNetAppBaseEvent struct { // Unique identifier of the storage VM. SvmUuid *string `json:"SvmUuid,omitempty"` // Unique identifier of the event. - Uuid *string `json:"Uuid,omitempty"` + Uuid *string `json:"Uuid,omitempty" validate:"regexp=^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"` AdditionalProperties map[string]interface{} } @@ -655,6 +655,10 @@ func (o *StorageNetAppBaseEvent) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -664,11 +668,23 @@ func (o *StorageNetAppBaseEvent) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type StorageNetAppBaseEventWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. The enum values provides the list of concrete types that can be instantiated from this abstract type. ClassId string `json:"ClassId"` @@ -701,7 +717,7 @@ func (o *StorageNetAppBaseEvent) UnmarshalJSON(data []byte) (err error) { // Unique identifier of the storage VM. SvmUuid *string `json:"SvmUuid,omitempty"` // Unique identifier of the event. - Uuid *string `json:"Uuid,omitempty"` + Uuid *string `json:"Uuid,omitempty" validate:"regexp=^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"` } varStorageNetAppBaseEventWithoutEmbeddedStruct := StorageNetAppBaseEventWithoutEmbeddedStruct{} diff --git a/model_storage_net_app_base_ip_interface.go b/model_storage_net_app_base_ip_interface.go index 734492f40b..66316d80ab 100644 --- a/model_storage_net_app_base_ip_interface.go +++ b/model_storage_net_app_base_ip_interface.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -60,7 +60,7 @@ type StorageNetAppBaseIpInterface struct { // Service policy name of IP interface. ServicePolicyName *string `json:"ServicePolicyName,omitempty"` // Service policy UUID of IP interface. - ServicePolicyUuid *string `json:"ServicePolicyUuid,omitempty"` + ServicePolicyUuid *string `json:"ServicePolicyUuid,omitempty" validate:"regexp=^$|^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"` Services []string `json:"Services,omitempty"` // The state of the IP interface. * `down` - An inactive port is listed as Down. * `up` - An active port is listed as Up. * `present` - An active port is listed as present. // Deprecated @@ -68,7 +68,7 @@ type StorageNetAppBaseIpInterface struct { // The storage virtual machine name for the interface. SvmName *string `json:"SvmName,omitempty"` // Uuid of NetApp IP Interface. - Uuid *string `json:"Uuid,omitempty"` + Uuid *string `json:"Uuid,omitempty" validate:"regexp=^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"` AdditionalProperties map[string]interface{} } @@ -677,7 +677,7 @@ func (o *StorageNetAppBaseIpInterface) GetServicesOk() ([]string, bool) { // HasServices returns a boolean if a field has been set. func (o *StorageNetAppBaseIpInterface) HasServices() bool { - if o != nil && IsNil(o.Services) { + if o != nil && !IsNil(o.Services) { return true } @@ -885,6 +885,10 @@ func (o *StorageNetAppBaseIpInterface) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -894,11 +898,23 @@ func (o *StorageNetAppBaseIpInterface) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type StorageNetAppBaseIpInterfaceWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. The enum values provides the list of concrete types that can be instantiated from this abstract type. ClassId string `json:"ClassId"` @@ -936,7 +952,7 @@ func (o *StorageNetAppBaseIpInterface) UnmarshalJSON(data []byte) (err error) { // Service policy name of IP interface. ServicePolicyName *string `json:"ServicePolicyName,omitempty"` // Service policy UUID of IP interface. - ServicePolicyUuid *string `json:"ServicePolicyUuid,omitempty"` + ServicePolicyUuid *string `json:"ServicePolicyUuid,omitempty" validate:"regexp=^$|^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"` Services []string `json:"Services,omitempty"` // The state of the IP interface. * `down` - An inactive port is listed as Down. * `up` - An active port is listed as Up. * `present` - An active port is listed as present. // Deprecated @@ -944,7 +960,7 @@ func (o *StorageNetAppBaseIpInterface) UnmarshalJSON(data []byte) (err error) { // The storage virtual machine name for the interface. SvmName *string `json:"SvmName,omitempty"` // Uuid of NetApp IP Interface. - Uuid *string `json:"Uuid,omitempty"` + Uuid *string `json:"Uuid,omitempty" validate:"regexp=^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"` } varStorageNetAppBaseIpInterfaceWithoutEmbeddedStruct := StorageNetAppBaseIpInterfaceWithoutEmbeddedStruct{} diff --git a/model_storage_net_app_base_snap_mirror_policy.go b/model_storage_net_app_base_snap_mirror_policy.go index 7d4b1f9764..ecfd71a2be 100644 --- a/model_storage_net_app_base_snap_mirror_policy.go +++ b/model_storage_net_app_base_snap_mirror_policy.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -41,11 +41,11 @@ type StorageNetAppBaseSnapMirrorPolicy struct { // Name of the schedule used to update asynchronous relationships. TransferScheduleName *string `json:"TransferScheduleName,omitempty"` // Uuid of the schedule used to update asynchronous relationships. - TransferScheduleUuid *string `json:"TransferScheduleUuid,omitempty"` + TransferScheduleUuid *string `json:"TransferScheduleUuid,omitempty" validate:"regexp=^$|^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"` // SnapMirror policy type can be async, sync, or continuous. Type *string `json:"Type,omitempty"` // Uuid of the NetApp SnapMirror policy. - Uuid *string `json:"Uuid,omitempty"` + Uuid *string `json:"Uuid,omitempty" validate:"regexp=^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"` AdditionalProperties map[string]interface{} } @@ -470,6 +470,10 @@ func (o *StorageNetAppBaseSnapMirrorPolicy) UnmarshalJSON(data []byte) (err erro "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -479,11 +483,23 @@ func (o *StorageNetAppBaseSnapMirrorPolicy) UnmarshalJSON(data []byte) (err erro } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type StorageNetAppBaseSnapMirrorPolicyWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. The enum values provides the list of concrete types that can be instantiated from this abstract type. ClassId string `json:"ClassId"` @@ -502,11 +518,11 @@ func (o *StorageNetAppBaseSnapMirrorPolicy) UnmarshalJSON(data []byte) (err erro // Name of the schedule used to update asynchronous relationships. TransferScheduleName *string `json:"TransferScheduleName,omitempty"` // Uuid of the schedule used to update asynchronous relationships. - TransferScheduleUuid *string `json:"TransferScheduleUuid,omitempty"` + TransferScheduleUuid *string `json:"TransferScheduleUuid,omitempty" validate:"regexp=^$|^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"` // SnapMirror policy type can be async, sync, or continuous. Type *string `json:"Type,omitempty"` // Uuid of the NetApp SnapMirror policy. - Uuid *string `json:"Uuid,omitempty"` + Uuid *string `json:"Uuid,omitempty" validate:"regexp=^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"` } varStorageNetAppBaseSnapMirrorPolicyWithoutEmbeddedStruct := StorageNetAppBaseSnapMirrorPolicyWithoutEmbeddedStruct{} diff --git a/model_storage_net_app_base_snap_mirror_policy_relationship.go b/model_storage_net_app_base_snap_mirror_policy_relationship.go index 3df6fb3ffd..0d6c8494fa 100644 --- a/model_storage_net_app_base_snap_mirror_policy_relationship.go +++ b/model_storage_net_app_base_snap_mirror_policy_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_storage_net_app_base_snapshot_policy.go b/model_storage_net_app_base_snapshot_policy.go index 4c2664b8f7..6a5aa8e014 100644 --- a/model_storage_net_app_base_snapshot_policy.go +++ b/model_storage_net_app_base_snapshot_policy.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -36,7 +36,7 @@ type StorageNetAppBaseSnapshotPolicy struct { // Identifies whether the Snapshot Policy is owned by the Storage Virtual Machine or the cluster. Scope *string `json:"Scope,omitempty"` // Uuid of the NetApp Snapshot Policy. - Uuid *string `json:"Uuid,omitempty"` + Uuid *string `json:"Uuid,omitempty" validate:"regexp=^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"` AdditionalProperties map[string]interface{} } @@ -130,7 +130,7 @@ func (o *StorageNetAppBaseSnapshotPolicy) GetCopiesOk() ([]StorageNetAppSnapshot // HasCopies returns a boolean if a field has been set. func (o *StorageNetAppBaseSnapshotPolicy) HasCopies() bool { - if o != nil && IsNil(o.Copies) { + if o != nil && !IsNil(o.Copies) { return true } @@ -322,6 +322,10 @@ func (o *StorageNetAppBaseSnapshotPolicy) UnmarshalJSON(data []byte) (err error) "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -331,11 +335,23 @@ func (o *StorageNetAppBaseSnapshotPolicy) UnmarshalJSON(data []byte) (err error) } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type StorageNetAppBaseSnapshotPolicyWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. The enum values provides the list of concrete types that can be instantiated from this abstract type. ClassId string `json:"ClassId"` @@ -349,7 +365,7 @@ func (o *StorageNetAppBaseSnapshotPolicy) UnmarshalJSON(data []byte) (err error) // Identifies whether the Snapshot Policy is owned by the Storage Virtual Machine or the cluster. Scope *string `json:"Scope,omitempty"` // Uuid of the NetApp Snapshot Policy. - Uuid *string `json:"Uuid,omitempty"` + Uuid *string `json:"Uuid,omitempty" validate:"regexp=^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"` } varStorageNetAppBaseSnapshotPolicyWithoutEmbeddedStruct := StorageNetAppBaseSnapshotPolicyWithoutEmbeddedStruct{} diff --git a/model_storage_net_app_cifs_acl.go b/model_storage_net_app_cifs_acl.go index ad6a861c17..fdebfce45d 100644 --- a/model_storage_net_app_cifs_acl.go +++ b/model_storage_net_app_cifs_acl.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -86,6 +86,11 @@ func (o *StorageNetAppCifsAcl) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "storage.NetAppCifsAcl" of the ClassId field. +func (o *StorageNetAppCifsAcl) GetDefaultClassId() interface{} { + return "storage.NetAppCifsAcl" +} + // GetObjectType returns the ObjectType field value func (o *StorageNetAppCifsAcl) GetObjectType() string { if o == nil { @@ -110,6 +115,11 @@ func (o *StorageNetAppCifsAcl) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "storage.NetAppCifsAcl" of the ObjectType field. +func (o *StorageNetAppCifsAcl) GetDefaultObjectType() interface{} { + return "storage.NetAppCifsAcl" +} + // GetPermission returns the Permission field value if set, zero value otherwise. func (o *StorageNetAppCifsAcl) GetPermission() string { if o == nil || IsNil(o.Permission) { @@ -224,7 +234,13 @@ func (o StorageNetAppCifsAcl) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Permission) { toSerialize["Permission"] = o.Permission @@ -252,6 +268,13 @@ func (o *StorageNetAppCifsAcl) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -261,11 +284,23 @@ func (o *StorageNetAppCifsAcl) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type StorageNetAppCifsAclWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_storage_net_app_cifs_service.go b/model_storage_net_app_cifs_service.go index bfe1fa030b..92fedbca36 100644 --- a/model_storage_net_app_cifs_service.go +++ b/model_storage_net_app_cifs_service.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -41,7 +41,7 @@ type StorageNetAppCifsService struct { // The storage virtual machine name for the CIFS service. SvmName *string `json:"SvmName,omitempty"` // Unique identifier for the NetApp Storage Virtual Machine. - SvmUuid *string `json:"SvmUuid,omitempty"` + SvmUuid *string `json:"SvmUuid,omitempty" validate:"regexp=^$|^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"` Tenant NullableStorageNetAppStorageVmRelationship `json:"Tenant,omitempty"` AdditionalProperties map[string]interface{} } @@ -95,6 +95,11 @@ func (o *StorageNetAppCifsService) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "storage.NetAppCifsService" of the ClassId field. +func (o *StorageNetAppCifsService) GetDefaultClassId() interface{} { + return "storage.NetAppCifsService" +} + // GetObjectType returns the ObjectType field value func (o *StorageNetAppCifsService) GetObjectType() string { if o == nil { @@ -119,6 +124,11 @@ func (o *StorageNetAppCifsService) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "storage.NetAppCifsService" of the ObjectType field. +func (o *StorageNetAppCifsService) GetDefaultObjectType() interface{} { + return "storage.NetAppCifsService" +} + // GetActiveDirectoryFqdn returns the ActiveDirectoryFqdn field value if set, zero value otherwise. func (o *StorageNetAppCifsService) GetActiveDirectoryFqdn() string { if o == nil || IsNil(o.ActiveDirectoryFqdn) { @@ -404,7 +414,13 @@ func (o StorageNetAppCifsService) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.ActiveDirectoryFqdn) { toSerialize["ActiveDirectoryFqdn"] = o.ActiveDirectoryFqdn @@ -447,6 +463,13 @@ func (o *StorageNetAppCifsService) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -456,11 +479,23 @@ func (o *StorageNetAppCifsService) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type StorageNetAppCifsServiceWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` @@ -479,7 +514,7 @@ func (o *StorageNetAppCifsService) UnmarshalJSON(data []byte) (err error) { // The storage virtual machine name for the CIFS service. SvmName *string `json:"SvmName,omitempty"` // Unique identifier for the NetApp Storage Virtual Machine. - SvmUuid *string `json:"SvmUuid,omitempty"` + SvmUuid *string `json:"SvmUuid,omitempty" validate:"regexp=^$|^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"` Tenant NullableStorageNetAppStorageVmRelationship `json:"Tenant,omitempty"` } diff --git a/model_storage_net_app_cifs_service_list.go b/model_storage_net_app_cifs_service_list.go index 284a0fd640..4137f443f3 100644 --- a/model_storage_net_app_cifs_service_list.go +++ b/model_storage_net_app_cifs_service_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *StorageNetAppCifsServiceList) GetResultsOk() ([]StorageNetAppCifsServic // HasResults returns a boolean if a field has been set. func (o *StorageNetAppCifsServiceList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *StorageNetAppCifsServiceList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *StorageNetAppCifsServiceList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type StorageNetAppCifsServiceListWithoutEmbeddedStruct struct { // The total number of 'storage.NetAppCifsService' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_storage_net_app_cifs_service_response.go b/model_storage_net_app_cifs_service_response.go index f0b76a925c..61d200edf4 100644 --- a/model_storage_net_app_cifs_service_response.go +++ b/model_storage_net_app_cifs_service_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_storage_net_app_cifs_share.go b/model_storage_net_app_cifs_share.go index 19f88d785a..155e3d2b1c 100644 --- a/model_storage_net_app_cifs_share.go +++ b/model_storage_net_app_cifs_share.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -42,7 +42,7 @@ type StorageNetAppCifsShare struct { // The storage virtual machine name for the CIFS share. SvmName *string `json:"SvmName,omitempty"` // Unique identifier for the NetApp Storage Virtual Machine. - SvmUuid *string `json:"SvmUuid,omitempty"` + SvmUuid *string `json:"SvmUuid,omitempty" validate:"regexp=^$|^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"` StorageContainer NullableStorageNetAppVolumeRelationship `json:"StorageContainer,omitempty"` Tenant NullableStorageNetAppStorageVmRelationship `json:"Tenant,omitempty"` AdditionalProperties map[string]interface{} @@ -97,6 +97,11 @@ func (o *StorageNetAppCifsShare) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "storage.NetAppCifsShare" of the ClassId field. +func (o *StorageNetAppCifsShare) GetDefaultClassId() interface{} { + return "storage.NetAppCifsShare" +} + // GetObjectType returns the ObjectType field value func (o *StorageNetAppCifsShare) GetObjectType() string { if o == nil { @@ -121,6 +126,11 @@ func (o *StorageNetAppCifsShare) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "storage.NetAppCifsShare" of the ObjectType field. +func (o *StorageNetAppCifsShare) GetDefaultObjectType() interface{} { + return "storage.NetAppCifsShare" +} + // GetComment returns the Comment field value if set, zero value otherwise. func (o *StorageNetAppCifsShare) GetComment() string { if o == nil || IsNil(o.Comment) { @@ -270,7 +280,7 @@ func (o *StorageNetAppCifsShare) GetNetAppCifsAclOk() ([]StorageNetAppCifsAcl, b // HasNetAppCifsAcl returns a boolean if a field has been set. func (o *StorageNetAppCifsShare) HasNetAppCifsAcl() bool { - if o != nil && IsNil(o.NetAppCifsAcl) { + if o != nil && !IsNil(o.NetAppCifsAcl) { return true } @@ -482,7 +492,13 @@ func (o StorageNetAppCifsShare) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Comment) { toSerialize["Comment"] = o.Comment @@ -531,6 +547,13 @@ func (o *StorageNetAppCifsShare) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -540,11 +563,23 @@ func (o *StorageNetAppCifsShare) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type StorageNetAppCifsShareWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` @@ -564,7 +599,7 @@ func (o *StorageNetAppCifsShare) UnmarshalJSON(data []byte) (err error) { // The storage virtual machine name for the CIFS share. SvmName *string `json:"SvmName,omitempty"` // Unique identifier for the NetApp Storage Virtual Machine. - SvmUuid *string `json:"SvmUuid,omitempty"` + SvmUuid *string `json:"SvmUuid,omitempty" validate:"regexp=^$|^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"` StorageContainer NullableStorageNetAppVolumeRelationship `json:"StorageContainer,omitempty"` Tenant NullableStorageNetAppStorageVmRelationship `json:"Tenant,omitempty"` } diff --git a/model_storage_net_app_cifs_share_list.go b/model_storage_net_app_cifs_share_list.go index 23825bd046..4f4234c30b 100644 --- a/model_storage_net_app_cifs_share_list.go +++ b/model_storage_net_app_cifs_share_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *StorageNetAppCifsShareList) GetResultsOk() ([]StorageNetAppCifsShare, b // HasResults returns a boolean if a field has been set. func (o *StorageNetAppCifsShareList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *StorageNetAppCifsShareList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *StorageNetAppCifsShareList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type StorageNetAppCifsShareListWithoutEmbeddedStruct struct { // The total number of 'storage.NetAppCifsShare' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_storage_net_app_cifs_share_response.go b/model_storage_net_app_cifs_share_response.go index d6eaa2ced4..e1427f2fb3 100644 --- a/model_storage_net_app_cifs_share_response.go +++ b/model_storage_net_app_cifs_share_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_storage_net_app_cloud_target.go b/model_storage_net_app_cloud_target.go index 2bda346868..1d948945e3 100644 --- a/model_storage_net_app_cloud_target.go +++ b/model_storage_net_app_cloud_target.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -60,7 +60,7 @@ type StorageNetAppCloudTarget struct { // The amount of cloud space used by all the aggregates attached to the target, in bytes. Used *int64 `json:"Used,omitempty"` // Uuid of the cloud target. - Uuid *string `json:"Uuid,omitempty"` + Uuid *string `json:"Uuid,omitempty" validate:"regexp=^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"` Array NullableStorageNetAppClusterRelationship `json:"Array,omitempty"` AdditionalProperties map[string]interface{} } @@ -114,6 +114,11 @@ func (o *StorageNetAppCloudTarget) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "storage.NetAppCloudTarget" of the ClassId field. +func (o *StorageNetAppCloudTarget) GetDefaultClassId() interface{} { + return "storage.NetAppCloudTarget" +} + // GetObjectType returns the ObjectType field value func (o *StorageNetAppCloudTarget) GetObjectType() string { if o == nil { @@ -138,6 +143,11 @@ func (o *StorageNetAppCloudTarget) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "storage.NetAppCloudTarget" of the ObjectType field. +func (o *StorageNetAppCloudTarget) GetDefaultObjectType() interface{} { + return "storage.NetAppCloudTarget" +} + // GetAccessKey returns the AccessKey field value if set, zero value otherwise. func (o *StorageNetAppCloudTarget) GetAccessKey() string { if o == nil || IsNil(o.AccessKey) { @@ -319,7 +329,7 @@ func (o *StorageNetAppCloudTarget) GetCloudStorageOk() ([]string, bool) { // HasCloudStorage returns a boolean if a field has been set. func (o *StorageNetAppCloudTarget) HasCloudStorage() bool { - if o != nil && IsNil(o.CloudStorage) { + if o != nil && !IsNil(o.CloudStorage) { return true } @@ -744,7 +754,13 @@ func (o StorageNetAppCloudTarget) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.AccessKey) { toSerialize["AccessKey"] = o.AccessKey @@ -817,6 +833,13 @@ func (o *StorageNetAppCloudTarget) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -826,11 +849,23 @@ func (o *StorageNetAppCloudTarget) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type StorageNetAppCloudTargetWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` @@ -868,7 +903,7 @@ func (o *StorageNetAppCloudTarget) UnmarshalJSON(data []byte) (err error) { // The amount of cloud space used by all the aggregates attached to the target, in bytes. Used *int64 `json:"Used,omitempty"` // Uuid of the cloud target. - Uuid *string `json:"Uuid,omitempty"` + Uuid *string `json:"Uuid,omitempty" validate:"regexp=^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"` Array NullableStorageNetAppClusterRelationship `json:"Array,omitempty"` } diff --git a/model_storage_net_app_cloud_target_list.go b/model_storage_net_app_cloud_target_list.go index 49af7f4367..71483b1a12 100644 --- a/model_storage_net_app_cloud_target_list.go +++ b/model_storage_net_app_cloud_target_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *StorageNetAppCloudTargetList) GetResultsOk() ([]StorageNetAppCloudTarge // HasResults returns a boolean if a field has been set. func (o *StorageNetAppCloudTargetList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *StorageNetAppCloudTargetList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *StorageNetAppCloudTargetList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type StorageNetAppCloudTargetListWithoutEmbeddedStruct struct { // The total number of 'storage.NetAppCloudTarget' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_storage_net_app_cloud_target_response.go b/model_storage_net_app_cloud_target_response.go index f3e3221c12..2e503c8955 100644 --- a/model_storage_net_app_cloud_target_response.go +++ b/model_storage_net_app_cloud_target_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_storage_net_app_cluster.go b/model_storage_net_app_cluster.go index ace1667957..8929803a50 100644 --- a/model_storage_net_app_cluster.go +++ b/model_storage_net_app_cluster.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -112,6 +112,11 @@ func (o *StorageNetAppCluster) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "storage.NetAppCluster" of the ClassId field. +func (o *StorageNetAppCluster) GetDefaultClassId() interface{} { + return "storage.NetAppCluster" +} + // GetObjectType returns the ObjectType field value func (o *StorageNetAppCluster) GetObjectType() string { if o == nil { @@ -136,6 +141,11 @@ func (o *StorageNetAppCluster) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "storage.NetAppCluster" of the ObjectType field. +func (o *StorageNetAppCluster) GetDefaultObjectType() interface{} { + return "storage.NetAppCluster" +} + // GetAutoSupport returns the AutoSupport field value if set, zero value otherwise (both if not set or set to explicit null). func (o *StorageNetAppCluster) GetAutoSupport() StorageNetAppAutoSupport { if o == nil || IsNil(o.AutoSupport.Get()) { @@ -339,7 +349,7 @@ func (o *StorageNetAppCluster) GetDnsDomainsOk() ([]string, bool) { // HasDnsDomains returns a boolean if a field has been set. func (o *StorageNetAppCluster) HasDnsDomains() bool { - if o != nil && IsNil(o.DnsDomains) { + if o != nil && !IsNil(o.DnsDomains) { return true } @@ -500,7 +510,7 @@ func (o *StorageNetAppCluster) GetManagementAddressOk() ([]string, bool) { // HasManagementAddress returns a boolean if a field has been set. func (o *StorageNetAppCluster) HasManagementAddress() bool { - if o != nil && IsNil(o.ManagementAddress) { + if o != nil && !IsNil(o.ManagementAddress) { return true } @@ -533,7 +543,7 @@ func (o *StorageNetAppCluster) GetNameServersOk() ([]string, bool) { // HasNameServers returns a boolean if a field has been set. func (o *StorageNetAppCluster) HasNameServers() bool { - if o != nil && IsNil(o.NameServers) { + if o != nil && !IsNil(o.NameServers) { return true } @@ -566,7 +576,7 @@ func (o *StorageNetAppCluster) GetNtpServersOk() ([]string, bool) { // HasNtpServers returns a boolean if a field has been set. func (o *StorageNetAppCluster) HasNtpServers() bool { - if o != nil && IsNil(o.NtpServers) { + if o != nil && !IsNil(o.NtpServers) { return true } @@ -759,7 +769,7 @@ func (o *StorageNetAppCluster) GetEventsOk() ([]StorageNetAppClusterEventRelatio // HasEvents returns a boolean if a field has been set. func (o *StorageNetAppCluster) HasEvents() bool { - if o != nil && IsNil(o.Events) { + if o != nil && !IsNil(o.Events) { return true } @@ -832,7 +842,13 @@ func (o StorageNetAppCluster) ToMap() (map[string]interface{}, error) { if errStorageBaseArray != nil { return map[string]interface{}{}, errStorageBaseArray } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.AutoSupport.IsSet() { toSerialize["AutoSupport"] = o.AutoSupport.Get() @@ -911,6 +927,13 @@ func (o *StorageNetAppCluster) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -920,11 +943,23 @@ func (o *StorageNetAppCluster) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type StorageNetAppClusterWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_storage_net_app_cluster_event.go b/model_storage_net_app_cluster_event.go index 497b0cf845..a75806b8bc 100644 --- a/model_storage_net_app_cluster_event.go +++ b/model_storage_net_app_cluster_event.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -81,6 +81,11 @@ func (o *StorageNetAppClusterEvent) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "storage.NetAppClusterEvent" of the ClassId field. +func (o *StorageNetAppClusterEvent) GetDefaultClassId() interface{} { + return "storage.NetAppClusterEvent" +} + // GetObjectType returns the ObjectType field value func (o *StorageNetAppClusterEvent) GetObjectType() string { if o == nil { @@ -105,6 +110,11 @@ func (o *StorageNetAppClusterEvent) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "storage.NetAppClusterEvent" of the ObjectType field. +func (o *StorageNetAppClusterEvent) GetDefaultObjectType() interface{} { + return "storage.NetAppClusterEvent" +} + // GetArray returns the Array field value if set, zero value otherwise (both if not set or set to explicit null). func (o *StorageNetAppClusterEvent) GetArray() StorageNetAppClusterRelationship { if o == nil || IsNil(o.Array.Get()) { @@ -166,7 +176,13 @@ func (o StorageNetAppClusterEvent) ToMap() (map[string]interface{}, error) { if errStorageNetAppBaseEvent != nil { return map[string]interface{}{}, errStorageNetAppBaseEvent } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.Array.IsSet() { toSerialize["Array"] = o.Array.Get() @@ -188,6 +204,13 @@ func (o *StorageNetAppClusterEvent) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -197,11 +220,23 @@ func (o *StorageNetAppClusterEvent) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type StorageNetAppClusterEventWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_storage_net_app_cluster_event_list.go b/model_storage_net_app_cluster_event_list.go index 48d2f8b4df..9689c0d42b 100644 --- a/model_storage_net_app_cluster_event_list.go +++ b/model_storage_net_app_cluster_event_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *StorageNetAppClusterEventList) GetResultsOk() ([]StorageNetAppClusterEv // HasResults returns a boolean if a field has been set. func (o *StorageNetAppClusterEventList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *StorageNetAppClusterEventList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *StorageNetAppClusterEventList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type StorageNetAppClusterEventListWithoutEmbeddedStruct struct { // The total number of 'storage.NetAppClusterEvent' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_storage_net_app_cluster_event_relationship.go b/model_storage_net_app_cluster_event_relationship.go index e9795d5b61..10dc6054d6 100644 --- a/model_storage_net_app_cluster_event_relationship.go +++ b/model_storage_net_app_cluster_event_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_storage_net_app_cluster_event_response.go b/model_storage_net_app_cluster_event_response.go index 461c349189..072df503c5 100644 --- a/model_storage_net_app_cluster_event_response.go +++ b/model_storage_net_app_cluster_event_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_storage_net_app_cluster_list.go b/model_storage_net_app_cluster_list.go index 10cbd8abe1..9e3143eac6 100644 --- a/model_storage_net_app_cluster_list.go +++ b/model_storage_net_app_cluster_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *StorageNetAppClusterList) GetResultsOk() ([]StorageNetAppCluster, bool) // HasResults returns a boolean if a field has been set. func (o *StorageNetAppClusterList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *StorageNetAppClusterList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *StorageNetAppClusterList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type StorageNetAppClusterListWithoutEmbeddedStruct struct { // The total number of 'storage.NetAppCluster' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_storage_net_app_cluster_relationship.go b/model_storage_net_app_cluster_relationship.go index 068058649a..13d95daf23 100644 --- a/model_storage_net_app_cluster_relationship.go +++ b/model_storage_net_app_cluster_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_storage_net_app_cluster_response.go b/model_storage_net_app_cluster_response.go index 9771c3d4d0..b57d3ba531 100644 --- a/model_storage_net_app_cluster_response.go +++ b/model_storage_net_app_cluster_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_storage_net_app_cluster_snap_mirror_policy.go b/model_storage_net_app_cluster_snap_mirror_policy.go index 46f888d43c..b203f91384 100644 --- a/model_storage_net_app_cluster_snap_mirror_policy.go +++ b/model_storage_net_app_cluster_snap_mirror_policy.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -81,6 +81,11 @@ func (o *StorageNetAppClusterSnapMirrorPolicy) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "storage.NetAppClusterSnapMirrorPolicy" of the ClassId field. +func (o *StorageNetAppClusterSnapMirrorPolicy) GetDefaultClassId() interface{} { + return "storage.NetAppClusterSnapMirrorPolicy" +} + // GetObjectType returns the ObjectType field value func (o *StorageNetAppClusterSnapMirrorPolicy) GetObjectType() string { if o == nil { @@ -105,6 +110,11 @@ func (o *StorageNetAppClusterSnapMirrorPolicy) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "storage.NetAppClusterSnapMirrorPolicy" of the ObjectType field. +func (o *StorageNetAppClusterSnapMirrorPolicy) GetDefaultObjectType() interface{} { + return "storage.NetAppClusterSnapMirrorPolicy" +} + // GetArray returns the Array field value if set, zero value otherwise (both if not set or set to explicit null). func (o *StorageNetAppClusterSnapMirrorPolicy) GetArray() StorageNetAppClusterRelationship { if o == nil || IsNil(o.Array.Get()) { @@ -166,7 +176,13 @@ func (o StorageNetAppClusterSnapMirrorPolicy) ToMap() (map[string]interface{}, e if errStorageNetAppBaseSnapMirrorPolicy != nil { return map[string]interface{}{}, errStorageNetAppBaseSnapMirrorPolicy } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.Array.IsSet() { toSerialize["Array"] = o.Array.Get() @@ -188,6 +204,13 @@ func (o *StorageNetAppClusterSnapMirrorPolicy) UnmarshalJSON(data []byte) (err e "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -197,11 +220,23 @@ func (o *StorageNetAppClusterSnapMirrorPolicy) UnmarshalJSON(data []byte) (err e } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type StorageNetAppClusterSnapMirrorPolicyWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_storage_net_app_cluster_snap_mirror_policy_list.go b/model_storage_net_app_cluster_snap_mirror_policy_list.go index 12d2aa1ebf..de4439de8c 100644 --- a/model_storage_net_app_cluster_snap_mirror_policy_list.go +++ b/model_storage_net_app_cluster_snap_mirror_policy_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *StorageNetAppClusterSnapMirrorPolicyList) GetResultsOk() ([]StorageNetA // HasResults returns a boolean if a field has been set. func (o *StorageNetAppClusterSnapMirrorPolicyList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *StorageNetAppClusterSnapMirrorPolicyList) UnmarshalJSON(data []byte) (e "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *StorageNetAppClusterSnapMirrorPolicyList) UnmarshalJSON(data []byte) (e } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type StorageNetAppClusterSnapMirrorPolicyListWithoutEmbeddedStruct struct { // The total number of 'storage.NetAppClusterSnapMirrorPolicy' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_storage_net_app_cluster_snap_mirror_policy_response.go b/model_storage_net_app_cluster_snap_mirror_policy_response.go index 9a0ef11b0c..83eb040831 100644 --- a/model_storage_net_app_cluster_snap_mirror_policy_response.go +++ b/model_storage_net_app_cluster_snap_mirror_policy_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_storage_net_app_cluster_snapshot_policy.go b/model_storage_net_app_cluster_snapshot_policy.go index 57dd82491b..432422374e 100644 --- a/model_storage_net_app_cluster_snapshot_policy.go +++ b/model_storage_net_app_cluster_snapshot_policy.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -81,6 +81,11 @@ func (o *StorageNetAppClusterSnapshotPolicy) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "storage.NetAppClusterSnapshotPolicy" of the ClassId field. +func (o *StorageNetAppClusterSnapshotPolicy) GetDefaultClassId() interface{} { + return "storage.NetAppClusterSnapshotPolicy" +} + // GetObjectType returns the ObjectType field value func (o *StorageNetAppClusterSnapshotPolicy) GetObjectType() string { if o == nil { @@ -105,6 +110,11 @@ func (o *StorageNetAppClusterSnapshotPolicy) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "storage.NetAppClusterSnapshotPolicy" of the ObjectType field. +func (o *StorageNetAppClusterSnapshotPolicy) GetDefaultObjectType() interface{} { + return "storage.NetAppClusterSnapshotPolicy" +} + // GetArray returns the Array field value if set, zero value otherwise (both if not set or set to explicit null). func (o *StorageNetAppClusterSnapshotPolicy) GetArray() StorageNetAppClusterRelationship { if o == nil || IsNil(o.Array.Get()) { @@ -166,7 +176,13 @@ func (o StorageNetAppClusterSnapshotPolicy) ToMap() (map[string]interface{}, err if errStorageNetAppBaseSnapshotPolicy != nil { return map[string]interface{}{}, errStorageNetAppBaseSnapshotPolicy } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.Array.IsSet() { toSerialize["Array"] = o.Array.Get() @@ -188,6 +204,13 @@ func (o *StorageNetAppClusterSnapshotPolicy) UnmarshalJSON(data []byte) (err err "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -197,11 +220,23 @@ func (o *StorageNetAppClusterSnapshotPolicy) UnmarshalJSON(data []byte) (err err } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type StorageNetAppClusterSnapshotPolicyWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_storage_net_app_cluster_snapshot_policy_list.go b/model_storage_net_app_cluster_snapshot_policy_list.go index ccc8c1b9e2..3f6e13ee29 100644 --- a/model_storage_net_app_cluster_snapshot_policy_list.go +++ b/model_storage_net_app_cluster_snapshot_policy_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *StorageNetAppClusterSnapshotPolicyList) GetResultsOk() ([]StorageNetApp // HasResults returns a boolean if a field has been set. func (o *StorageNetAppClusterSnapshotPolicyList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *StorageNetAppClusterSnapshotPolicyList) UnmarshalJSON(data []byte) (err "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *StorageNetAppClusterSnapshotPolicyList) UnmarshalJSON(data []byte) (err } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type StorageNetAppClusterSnapshotPolicyListWithoutEmbeddedStruct struct { // The total number of 'storage.NetAppClusterSnapshotPolicy' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_storage_net_app_cluster_snapshot_policy_response.go b/model_storage_net_app_cluster_snapshot_policy_response.go index 298c0e2ca7..3273d1fbb7 100644 --- a/model_storage_net_app_cluster_snapshot_policy_response.go +++ b/model_storage_net_app_cluster_snapshot_policy_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_storage_net_app_data_ip_interface.go b/model_storage_net_app_data_ip_interface.go index 29e76aabcf..4e90190a64 100644 --- a/model_storage_net_app_data_ip_interface.go +++ b/model_storage_net_app_data_ip_interface.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -85,6 +85,11 @@ func (o *StorageNetAppDataIpInterface) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "storage.NetAppDataIpInterface" of the ClassId field. +func (o *StorageNetAppDataIpInterface) GetDefaultClassId() interface{} { + return "storage.NetAppDataIpInterface" +} + // GetObjectType returns the ObjectType field value func (o *StorageNetAppDataIpInterface) GetObjectType() string { if o == nil { @@ -109,6 +114,11 @@ func (o *StorageNetAppDataIpInterface) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "storage.NetAppDataIpInterface" of the ObjectType field. +func (o *StorageNetAppDataIpInterface) GetDefaultObjectType() interface{} { + return "storage.NetAppDataIpInterface" +} + // GetArrayController returns the ArrayController field value if set, zero value otherwise (both if not set or set to explicit null). func (o *StorageNetAppDataIpInterface) GetArrayController() StorageNetAppNodeRelationship { if o == nil || IsNil(o.ArrayController.Get()) { @@ -173,7 +183,7 @@ func (o *StorageNetAppDataIpInterface) GetEventsOk() ([]StorageNetAppDataIpInter // HasEvents returns a boolean if a field has been set. func (o *StorageNetAppDataIpInterface) HasEvents() bool { - if o != nil && IsNil(o.Events) { + if o != nil && !IsNil(o.Events) { return true } @@ -289,7 +299,13 @@ func (o StorageNetAppDataIpInterface) ToMap() (map[string]interface{}, error) { if errStorageNetAppBaseIpInterface != nil { return map[string]interface{}{}, errStorageNetAppBaseIpInterface } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.ArrayController.IsSet() { toSerialize["ArrayController"] = o.ArrayController.Get() @@ -320,6 +336,13 @@ func (o *StorageNetAppDataIpInterface) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -329,11 +352,23 @@ func (o *StorageNetAppDataIpInterface) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type StorageNetAppDataIpInterfaceWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_storage_net_app_data_ip_interface_event.go b/model_storage_net_app_data_ip_interface_event.go index fe9f5ee7cf..a901bbf7d6 100644 --- a/model_storage_net_app_data_ip_interface_event.go +++ b/model_storage_net_app_data_ip_interface_event.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -81,6 +81,11 @@ func (o *StorageNetAppDataIpInterfaceEvent) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "storage.NetAppDataIpInterfaceEvent" of the ClassId field. +func (o *StorageNetAppDataIpInterfaceEvent) GetDefaultClassId() interface{} { + return "storage.NetAppDataIpInterfaceEvent" +} + // GetObjectType returns the ObjectType field value func (o *StorageNetAppDataIpInterfaceEvent) GetObjectType() string { if o == nil { @@ -105,6 +110,11 @@ func (o *StorageNetAppDataIpInterfaceEvent) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "storage.NetAppDataIpInterfaceEvent" of the ObjectType field. +func (o *StorageNetAppDataIpInterfaceEvent) GetDefaultObjectType() interface{} { + return "storage.NetAppDataIpInterfaceEvent" +} + // GetIpInterface returns the IpInterface field value if set, zero value otherwise (both if not set or set to explicit null). func (o *StorageNetAppDataIpInterfaceEvent) GetIpInterface() StorageNetAppDataIpInterfaceRelationship { if o == nil || IsNil(o.IpInterface.Get()) { @@ -166,7 +176,13 @@ func (o StorageNetAppDataIpInterfaceEvent) ToMap() (map[string]interface{}, erro if errStorageNetAppBaseEvent != nil { return map[string]interface{}{}, errStorageNetAppBaseEvent } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.IpInterface.IsSet() { toSerialize["IpInterface"] = o.IpInterface.Get() @@ -188,6 +204,13 @@ func (o *StorageNetAppDataIpInterfaceEvent) UnmarshalJSON(data []byte) (err erro "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -197,11 +220,23 @@ func (o *StorageNetAppDataIpInterfaceEvent) UnmarshalJSON(data []byte) (err erro } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type StorageNetAppDataIpInterfaceEventWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_storage_net_app_data_ip_interface_event_list.go b/model_storage_net_app_data_ip_interface_event_list.go index db85606c96..8cf6f87c5a 100644 --- a/model_storage_net_app_data_ip_interface_event_list.go +++ b/model_storage_net_app_data_ip_interface_event_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *StorageNetAppDataIpInterfaceEventList) GetResultsOk() ([]StorageNetAppD // HasResults returns a boolean if a field has been set. func (o *StorageNetAppDataIpInterfaceEventList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *StorageNetAppDataIpInterfaceEventList) UnmarshalJSON(data []byte) (err "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *StorageNetAppDataIpInterfaceEventList) UnmarshalJSON(data []byte) (err } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type StorageNetAppDataIpInterfaceEventListWithoutEmbeddedStruct struct { // The total number of 'storage.NetAppDataIpInterfaceEvent' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_storage_net_app_data_ip_interface_event_relationship.go b/model_storage_net_app_data_ip_interface_event_relationship.go index 1aa33398b6..e2e629933d 100644 --- a/model_storage_net_app_data_ip_interface_event_relationship.go +++ b/model_storage_net_app_data_ip_interface_event_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_storage_net_app_data_ip_interface_event_response.go b/model_storage_net_app_data_ip_interface_event_response.go index 40cf3e3d08..b189d4aba1 100644 --- a/model_storage_net_app_data_ip_interface_event_response.go +++ b/model_storage_net_app_data_ip_interface_event_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_storage_net_app_data_ip_interface_list.go b/model_storage_net_app_data_ip_interface_list.go index d75a60e376..fcf81b3868 100644 --- a/model_storage_net_app_data_ip_interface_list.go +++ b/model_storage_net_app_data_ip_interface_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *StorageNetAppDataIpInterfaceList) GetResultsOk() ([]StorageNetAppDataIp // HasResults returns a boolean if a field has been set. func (o *StorageNetAppDataIpInterfaceList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *StorageNetAppDataIpInterfaceList) UnmarshalJSON(data []byte) (err error "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *StorageNetAppDataIpInterfaceList) UnmarshalJSON(data []byte) (err error } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type StorageNetAppDataIpInterfaceListWithoutEmbeddedStruct struct { // The total number of 'storage.NetAppDataIpInterface' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_storage_net_app_data_ip_interface_relationship.go b/model_storage_net_app_data_ip_interface_relationship.go index f3ec44cd61..4f6d118bfa 100644 --- a/model_storage_net_app_data_ip_interface_relationship.go +++ b/model_storage_net_app_data_ip_interface_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_storage_net_app_data_ip_interface_response.go b/model_storage_net_app_data_ip_interface_response.go index 53fc0c0f0c..d506c108eb 100644 --- a/model_storage_net_app_data_ip_interface_response.go +++ b/model_storage_net_app_data_ip_interface_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_storage_net_app_disk_event.go b/model_storage_net_app_disk_event.go index a8633e71d9..f7f8e7ead0 100644 --- a/model_storage_net_app_disk_event.go +++ b/model_storage_net_app_disk_event.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -81,6 +81,11 @@ func (o *StorageNetAppDiskEvent) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "storage.NetAppDiskEvent" of the ClassId field. +func (o *StorageNetAppDiskEvent) GetDefaultClassId() interface{} { + return "storage.NetAppDiskEvent" +} + // GetObjectType returns the ObjectType field value func (o *StorageNetAppDiskEvent) GetObjectType() string { if o == nil { @@ -105,6 +110,11 @@ func (o *StorageNetAppDiskEvent) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "storage.NetAppDiskEvent" of the ObjectType field. +func (o *StorageNetAppDiskEvent) GetDefaultObjectType() interface{} { + return "storage.NetAppDiskEvent" +} + // GetDisk returns the Disk field value if set, zero value otherwise (both if not set or set to explicit null). func (o *StorageNetAppDiskEvent) GetDisk() StorageNetAppBaseDiskRelationship { if o == nil || IsNil(o.Disk.Get()) { @@ -166,7 +176,13 @@ func (o StorageNetAppDiskEvent) ToMap() (map[string]interface{}, error) { if errStorageNetAppBaseEvent != nil { return map[string]interface{}{}, errStorageNetAppBaseEvent } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.Disk.IsSet() { toSerialize["Disk"] = o.Disk.Get() @@ -188,6 +204,13 @@ func (o *StorageNetAppDiskEvent) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -197,11 +220,23 @@ func (o *StorageNetAppDiskEvent) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type StorageNetAppDiskEventWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_storage_net_app_disk_event_list.go b/model_storage_net_app_disk_event_list.go index 3a34ff4d9b..a264a96e65 100644 --- a/model_storage_net_app_disk_event_list.go +++ b/model_storage_net_app_disk_event_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *StorageNetAppDiskEventList) GetResultsOk() ([]StorageNetAppDiskEvent, b // HasResults returns a boolean if a field has been set. func (o *StorageNetAppDiskEventList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *StorageNetAppDiskEventList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *StorageNetAppDiskEventList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type StorageNetAppDiskEventListWithoutEmbeddedStruct struct { // The total number of 'storage.NetAppDiskEvent' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_storage_net_app_disk_event_relationship.go b/model_storage_net_app_disk_event_relationship.go index c40af586fe..8cd9214e58 100644 --- a/model_storage_net_app_disk_event_relationship.go +++ b/model_storage_net_app_disk_event_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_storage_net_app_disk_event_response.go b/model_storage_net_app_disk_event_response.go index 8f25af845c..aa05810b47 100644 --- a/model_storage_net_app_disk_event_response.go +++ b/model_storage_net_app_disk_event_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_storage_net_app_ethernet_port.go b/model_storage_net_app_ethernet_port.go index 70860e26f7..a55497c101 100644 --- a/model_storage_net_app_ethernet_port.go +++ b/model_storage_net_app_ethernet_port.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -33,7 +33,7 @@ type StorageNetAppEthernetPort struct { // Status of port to determine if its enabled or not. Enabled *string `json:"Enabled,omitempty"` // MAC address of the port available in storage array. - MacAddress *string `json:"MacAddress,omitempty"` + MacAddress *string `json:"MacAddress,omitempty" validate:"regexp=^$|^([0-9A-Fa-f]{2}[:-]){5}([0-9A-Fa-f]{2})$"` // Maximum transmission unit of the physical port available in storage array. Mtu *int64 `json:"Mtu,omitempty"` // Name of the port available in storage array. @@ -52,7 +52,7 @@ type StorageNetAppEthernetPort struct { // Type of the port available in storage array. * `LAG` - Storage port of type lag. * `physical` - LIFs can be configured directly on physical ports. * `VLAN` - A logical port that receives and sends VLAN-tagged (IEEE 802.1Q standard) traffic. VLAN port characteristics include the VLAN ID for the port. Type *string `json:"Type,omitempty"` // Universally unique identifier of the physical port. - Uuid *string `json:"Uuid,omitempty"` + Uuid *string `json:"Uuid,omitempty" validate:"regexp=^$|^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"` ArrayController NullableStorageNetAppNodeRelationship `json:"ArrayController,omitempty"` // An array of relationships to storageNetAppEthernetPortEvent resources. Events []StorageNetAppEthernetPortEventRelationship `json:"Events,omitempty"` @@ -108,6 +108,11 @@ func (o *StorageNetAppEthernetPort) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "storage.NetAppEthernetPort" of the ClassId field. +func (o *StorageNetAppEthernetPort) GetDefaultClassId() interface{} { + return "storage.NetAppEthernetPort" +} + // GetObjectType returns the ObjectType field value func (o *StorageNetAppEthernetPort) GetObjectType() string { if o == nil { @@ -132,6 +137,11 @@ func (o *StorageNetAppEthernetPort) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "storage.NetAppEthernetPort" of the ObjectType field. +func (o *StorageNetAppEthernetPort) GetDefaultObjectType() interface{} { + return "storage.NetAppEthernetPort" +} + // GetBroadcastDomainName returns the BroadcastDomainName field value if set, zero value otherwise. func (o *StorageNetAppEthernetPort) GetBroadcastDomainName() string { if o == nil || IsNil(o.BroadcastDomainName) { @@ -637,7 +647,7 @@ func (o *StorageNetAppEthernetPort) GetEventsOk() ([]StorageNetAppEthernetPortEv // HasEvents returns a boolean if a field has been set. func (o *StorageNetAppEthernetPort) HasEvents() bool { - if o != nil && IsNil(o.Events) { + if o != nil && !IsNil(o.Events) { return true } @@ -667,7 +677,13 @@ func (o StorageNetAppEthernetPort) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.BroadcastDomainName) { toSerialize["BroadcastDomainName"] = o.BroadcastDomainName @@ -731,6 +747,13 @@ func (o *StorageNetAppEthernetPort) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -740,11 +763,23 @@ func (o *StorageNetAppEthernetPort) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type StorageNetAppEthernetPortWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` @@ -755,7 +790,7 @@ func (o *StorageNetAppEthernetPort) UnmarshalJSON(data []byte) (err error) { // Status of port to determine if its enabled or not. Enabled *string `json:"Enabled,omitempty"` // MAC address of the port available in storage array. - MacAddress *string `json:"MacAddress,omitempty"` + MacAddress *string `json:"MacAddress,omitempty" validate:"regexp=^$|^([0-9A-Fa-f]{2}[:-]){5}([0-9A-Fa-f]{2})$"` // Maximum transmission unit of the physical port available in storage array. Mtu *int64 `json:"Mtu,omitempty"` // Name of the port available in storage array. @@ -774,7 +809,7 @@ func (o *StorageNetAppEthernetPort) UnmarshalJSON(data []byte) (err error) { // Type of the port available in storage array. * `LAG` - Storage port of type lag. * `physical` - LIFs can be configured directly on physical ports. * `VLAN` - A logical port that receives and sends VLAN-tagged (IEEE 802.1Q standard) traffic. VLAN port characteristics include the VLAN ID for the port. Type *string `json:"Type,omitempty"` // Universally unique identifier of the physical port. - Uuid *string `json:"Uuid,omitempty"` + Uuid *string `json:"Uuid,omitempty" validate:"regexp=^$|^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"` ArrayController NullableStorageNetAppNodeRelationship `json:"ArrayController,omitempty"` // An array of relationships to storageNetAppEthernetPortEvent resources. Events []StorageNetAppEthernetPortEventRelationship `json:"Events,omitempty"` diff --git a/model_storage_net_app_ethernet_port_event.go b/model_storage_net_app_ethernet_port_event.go index 7e80d70586..483502ad2c 100644 --- a/model_storage_net_app_ethernet_port_event.go +++ b/model_storage_net_app_ethernet_port_event.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -81,6 +81,11 @@ func (o *StorageNetAppEthernetPortEvent) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "storage.NetAppEthernetPortEvent" of the ClassId field. +func (o *StorageNetAppEthernetPortEvent) GetDefaultClassId() interface{} { + return "storage.NetAppEthernetPortEvent" +} + // GetObjectType returns the ObjectType field value func (o *StorageNetAppEthernetPortEvent) GetObjectType() string { if o == nil { @@ -105,6 +110,11 @@ func (o *StorageNetAppEthernetPortEvent) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "storage.NetAppEthernetPortEvent" of the ObjectType field. +func (o *StorageNetAppEthernetPortEvent) GetDefaultObjectType() interface{} { + return "storage.NetAppEthernetPortEvent" +} + // GetEthernetPort returns the EthernetPort field value if set, zero value otherwise (both if not set or set to explicit null). func (o *StorageNetAppEthernetPortEvent) GetEthernetPort() StorageNetAppEthernetPortRelationship { if o == nil || IsNil(o.EthernetPort.Get()) { @@ -166,7 +176,13 @@ func (o StorageNetAppEthernetPortEvent) ToMap() (map[string]interface{}, error) if errStorageNetAppBaseEvent != nil { return map[string]interface{}{}, errStorageNetAppBaseEvent } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.EthernetPort.IsSet() { toSerialize["EthernetPort"] = o.EthernetPort.Get() @@ -188,6 +204,13 @@ func (o *StorageNetAppEthernetPortEvent) UnmarshalJSON(data []byte) (err error) "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -197,11 +220,23 @@ func (o *StorageNetAppEthernetPortEvent) UnmarshalJSON(data []byte) (err error) } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type StorageNetAppEthernetPortEventWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_storage_net_app_ethernet_port_event_list.go b/model_storage_net_app_ethernet_port_event_list.go index 22194abd2c..1af7313406 100644 --- a/model_storage_net_app_ethernet_port_event_list.go +++ b/model_storage_net_app_ethernet_port_event_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *StorageNetAppEthernetPortEventList) GetResultsOk() ([]StorageNetAppEthe // HasResults returns a boolean if a field has been set. func (o *StorageNetAppEthernetPortEventList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *StorageNetAppEthernetPortEventList) UnmarshalJSON(data []byte) (err err "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *StorageNetAppEthernetPortEventList) UnmarshalJSON(data []byte) (err err } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type StorageNetAppEthernetPortEventListWithoutEmbeddedStruct struct { // The total number of 'storage.NetAppEthernetPortEvent' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_storage_net_app_ethernet_port_event_relationship.go b/model_storage_net_app_ethernet_port_event_relationship.go index 9c0af01cf8..40e9478991 100644 --- a/model_storage_net_app_ethernet_port_event_relationship.go +++ b/model_storage_net_app_ethernet_port_event_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_storage_net_app_ethernet_port_event_response.go b/model_storage_net_app_ethernet_port_event_response.go index c067b91f45..ad38e821cd 100644 --- a/model_storage_net_app_ethernet_port_event_response.go +++ b/model_storage_net_app_ethernet_port_event_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_storage_net_app_ethernet_port_lag.go b/model_storage_net_app_ethernet_port_lag.go index 27a0bfbc1b..2cafe063e3 100644 --- a/model_storage_net_app_ethernet_port_lag.go +++ b/model_storage_net_app_ethernet_port_lag.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -86,6 +86,11 @@ func (o *StorageNetAppEthernetPortLag) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "storage.NetAppEthernetPortLag" of the ClassId field. +func (o *StorageNetAppEthernetPortLag) GetDefaultClassId() interface{} { + return "storage.NetAppEthernetPortLag" +} + // GetObjectType returns the ObjectType field value func (o *StorageNetAppEthernetPortLag) GetObjectType() string { if o == nil { @@ -110,6 +115,11 @@ func (o *StorageNetAppEthernetPortLag) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "storage.NetAppEthernetPortLag" of the ObjectType field. +func (o *StorageNetAppEthernetPortLag) GetDefaultObjectType() interface{} { + return "storage.NetAppEthernetPortLag" +} + // GetActivePorts returns the ActivePorts field value if set, zero value otherwise (both if not set or set to explicit null). func (o *StorageNetAppEthernetPortLag) GetActivePorts() []StorageNetAppPort { if o == nil { @@ -131,7 +141,7 @@ func (o *StorageNetAppEthernetPortLag) GetActivePortsOk() ([]StorageNetAppPort, // HasActivePorts returns a boolean if a field has been set. func (o *StorageNetAppEthernetPortLag) HasActivePorts() bool { - if o != nil && IsNil(o.ActivePorts) { + if o != nil && !IsNil(o.ActivePorts) { return true } @@ -196,7 +206,7 @@ func (o *StorageNetAppEthernetPortLag) GetMemberPortsOk() ([]StorageNetAppPort, // HasMemberPorts returns a boolean if a field has been set. func (o *StorageNetAppEthernetPortLag) HasMemberPorts() bool { - if o != nil && IsNil(o.MemberPorts) { + if o != nil && !IsNil(o.MemberPorts) { return true } @@ -258,7 +268,13 @@ func (o StorageNetAppEthernetPortLag) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.ActivePorts != nil { toSerialize["ActivePorts"] = o.ActivePorts @@ -289,6 +305,13 @@ func (o *StorageNetAppEthernetPortLag) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -298,11 +321,23 @@ func (o *StorageNetAppEthernetPortLag) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type StorageNetAppEthernetPortLagWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_storage_net_app_ethernet_port_list.go b/model_storage_net_app_ethernet_port_list.go index b4592907fb..a2e6cf5e5c 100644 --- a/model_storage_net_app_ethernet_port_list.go +++ b/model_storage_net_app_ethernet_port_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *StorageNetAppEthernetPortList) GetResultsOk() ([]StorageNetAppEthernetP // HasResults returns a boolean if a field has been set. func (o *StorageNetAppEthernetPortList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *StorageNetAppEthernetPortList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *StorageNetAppEthernetPortList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type StorageNetAppEthernetPortListWithoutEmbeddedStruct struct { // The total number of 'storage.NetAppEthernetPort' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_storage_net_app_ethernet_port_relationship.go b/model_storage_net_app_ethernet_port_relationship.go index c5f5d36a44..889187aac5 100644 --- a/model_storage_net_app_ethernet_port_relationship.go +++ b/model_storage_net_app_ethernet_port_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_storage_net_app_ethernet_port_response.go b/model_storage_net_app_ethernet_port_response.go index 59296d34fa..26104ecd70 100644 --- a/model_storage_net_app_ethernet_port_response.go +++ b/model_storage_net_app_ethernet_port_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_storage_net_app_ethernet_port_vlan.go b/model_storage_net_app_ethernet_port_vlan.go index 6b06b0c327..7b0b65d31f 100644 --- a/model_storage_net_app_ethernet_port_vlan.go +++ b/model_storage_net_app_ethernet_port_vlan.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -83,6 +83,11 @@ func (o *StorageNetAppEthernetPortVlan) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "storage.NetAppEthernetPortVlan" of the ClassId field. +func (o *StorageNetAppEthernetPortVlan) GetDefaultClassId() interface{} { + return "storage.NetAppEthernetPortVlan" +} + // GetObjectType returns the ObjectType field value func (o *StorageNetAppEthernetPortVlan) GetObjectType() string { if o == nil { @@ -107,6 +112,11 @@ func (o *StorageNetAppEthernetPortVlan) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "storage.NetAppEthernetPortVlan" of the ObjectType field. +func (o *StorageNetAppEthernetPortVlan) GetDefaultObjectType() interface{} { + return "storage.NetAppEthernetPortVlan" +} + // GetBasePort returns the BasePort field value if set, zero value otherwise (both if not set or set to explicit null). func (o *StorageNetAppEthernetPortVlan) GetBasePort() StorageNetAppPort { if o == nil || IsNil(o.BasePort.Get()) { @@ -200,7 +210,13 @@ func (o StorageNetAppEthernetPortVlan) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.BasePort.IsSet() { toSerialize["BasePort"] = o.BasePort.Get() @@ -225,6 +241,13 @@ func (o *StorageNetAppEthernetPortVlan) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -234,11 +257,23 @@ func (o *StorageNetAppEthernetPortVlan) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type StorageNetAppEthernetPortVlanWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_storage_net_app_export_policy.go b/model_storage_net_app_export_policy.go index c64c8f80d4..c372206d0b 100644 --- a/model_storage_net_app_export_policy.go +++ b/model_storage_net_app_export_policy.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -29,7 +29,7 @@ type StorageNetAppExportPolicy struct { // The fully-qualified name of the instantiated, concrete type. The value should be the same as the 'ClassId' property. ObjectType string `json:"ObjectType"` // Unique identity of the device. - ClusterUuid *string `json:"ClusterUuid,omitempty"` + ClusterUuid *string `json:"ClusterUuid,omitempty" validate:"regexp=^$|^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"` NetAppExportPolicyRule []StorageNetAppExportPolicyRule `json:"NetAppExportPolicyRule,omitempty"` // ID for the Export Policy. PolicyId *int64 `json:"PolicyId,omitempty"` @@ -89,6 +89,11 @@ func (o *StorageNetAppExportPolicy) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "storage.NetAppExportPolicy" of the ClassId field. +func (o *StorageNetAppExportPolicy) GetDefaultClassId() interface{} { + return "storage.NetAppExportPolicy" +} + // GetObjectType returns the ObjectType field value func (o *StorageNetAppExportPolicy) GetObjectType() string { if o == nil { @@ -113,6 +118,11 @@ func (o *StorageNetAppExportPolicy) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "storage.NetAppExportPolicy" of the ObjectType field. +func (o *StorageNetAppExportPolicy) GetDefaultObjectType() interface{} { + return "storage.NetAppExportPolicy" +} + // GetClusterUuid returns the ClusterUuid field value if set, zero value otherwise. func (o *StorageNetAppExportPolicy) GetClusterUuid() string { if o == nil || IsNil(o.ClusterUuid) { @@ -166,7 +176,7 @@ func (o *StorageNetAppExportPolicy) GetNetAppExportPolicyRuleOk() ([]StorageNetA // HasNetAppExportPolicyRule returns a boolean if a field has been set. func (o *StorageNetAppExportPolicy) HasNetAppExportPolicyRule() bool { - if o != nil && IsNil(o.NetAppExportPolicyRule) { + if o != nil && !IsNil(o.NetAppExportPolicyRule) { return true } @@ -346,7 +356,13 @@ func (o StorageNetAppExportPolicy) ToMap() (map[string]interface{}, error) { if errStorageBaseNfsExport != nil { return map[string]interface{}{}, errStorageBaseNfsExport } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.ClusterUuid) { toSerialize["ClusterUuid"] = o.ClusterUuid @@ -383,6 +399,13 @@ func (o *StorageNetAppExportPolicy) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -392,18 +415,30 @@ func (o *StorageNetAppExportPolicy) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type StorageNetAppExportPolicyWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` // The fully-qualified name of the instantiated, concrete type. The value should be the same as the 'ClassId' property. ObjectType string `json:"ObjectType"` // Unique identity of the device. - ClusterUuid *string `json:"ClusterUuid,omitempty"` + ClusterUuid *string `json:"ClusterUuid,omitempty" validate:"regexp=^$|^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"` NetAppExportPolicyRule []StorageNetAppExportPolicyRule `json:"NetAppExportPolicyRule,omitempty"` // ID for the Export Policy. PolicyId *int64 `json:"PolicyId,omitempty"` diff --git a/model_storage_net_app_export_policy_list.go b/model_storage_net_app_export_policy_list.go index 6963bab68d..d3865cfba0 100644 --- a/model_storage_net_app_export_policy_list.go +++ b/model_storage_net_app_export_policy_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *StorageNetAppExportPolicyList) GetResultsOk() ([]StorageNetAppExportPol // HasResults returns a boolean if a field has been set. func (o *StorageNetAppExportPolicyList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *StorageNetAppExportPolicyList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *StorageNetAppExportPolicyList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type StorageNetAppExportPolicyListWithoutEmbeddedStruct struct { // The total number of 'storage.NetAppExportPolicy' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_storage_net_app_export_policy_response.go b/model_storage_net_app_export_policy_response.go index 338f441b57..60c28d45f9 100644 --- a/model_storage_net_app_export_policy_response.go +++ b/model_storage_net_app_export_policy_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_storage_net_app_export_policy_rule.go b/model_storage_net_app_export_policy_rule.go index e1e23fcd06..73e44d0f60 100644 --- a/model_storage_net_app_export_policy_rule.go +++ b/model_storage_net_app_export_policy_rule.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -89,6 +89,11 @@ func (o *StorageNetAppExportPolicyRule) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "storage.NetAppExportPolicyRule" of the ClassId field. +func (o *StorageNetAppExportPolicyRule) GetDefaultClassId() interface{} { + return "storage.NetAppExportPolicyRule" +} + // GetObjectType returns the ObjectType field value func (o *StorageNetAppExportPolicyRule) GetObjectType() string { if o == nil { @@ -113,6 +118,11 @@ func (o *StorageNetAppExportPolicyRule) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "storage.NetAppExportPolicyRule" of the ObjectType field. +func (o *StorageNetAppExportPolicyRule) GetDefaultObjectType() interface{} { + return "storage.NetAppExportPolicyRule" +} + // GetClientMatch returns the ClientMatch field value if set, zero value otherwise (both if not set or set to explicit null). func (o *StorageNetAppExportPolicyRule) GetClientMatch() []string { if o == nil { @@ -134,7 +144,7 @@ func (o *StorageNetAppExportPolicyRule) GetClientMatchOk() ([]string, bool) { // HasClientMatch returns a boolean if a field has been set. func (o *StorageNetAppExportPolicyRule) HasClientMatch() bool { - if o != nil && IsNil(o.ClientMatch) { + if o != nil && !IsNil(o.ClientMatch) { return true } @@ -199,7 +209,7 @@ func (o *StorageNetAppExportPolicyRule) GetProtocolsOk() ([]string, bool) { // HasProtocols returns a boolean if a field has been set. func (o *StorageNetAppExportPolicyRule) HasProtocols() bool { - if o != nil && IsNil(o.Protocols) { + if o != nil && !IsNil(o.Protocols) { return true } @@ -232,7 +242,7 @@ func (o *StorageNetAppExportPolicyRule) GetRoRuleOk() ([]string, bool) { // HasRoRule returns a boolean if a field has been set. func (o *StorageNetAppExportPolicyRule) HasRoRule() bool { - if o != nil && IsNil(o.RoRule) { + if o != nil && !IsNil(o.RoRule) { return true } @@ -265,7 +275,7 @@ func (o *StorageNetAppExportPolicyRule) GetRwRuleOk() ([]string, bool) { // HasRwRule returns a boolean if a field has been set. func (o *StorageNetAppExportPolicyRule) HasRwRule() bool { - if o != nil && IsNil(o.RwRule) { + if o != nil && !IsNil(o.RwRule) { return true } @@ -298,7 +308,7 @@ func (o *StorageNetAppExportPolicyRule) GetSuperUserOk() ([]string, bool) { // HasSuperUser returns a boolean if a field has been set. func (o *StorageNetAppExportPolicyRule) HasSuperUser() bool { - if o != nil && IsNil(o.SuperUser) { + if o != nil && !IsNil(o.SuperUser) { return true } @@ -360,7 +370,13 @@ func (o StorageNetAppExportPolicyRule) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.ClientMatch != nil { toSerialize["ClientMatch"] = o.ClientMatch @@ -400,6 +416,13 @@ func (o *StorageNetAppExportPolicyRule) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -409,11 +432,23 @@ func (o *StorageNetAppExportPolicyRule) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type StorageNetAppExportPolicyRuleWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_storage_net_app_fc_interface.go b/model_storage_net_app_fc_interface.go index 7cd43ff3bb..32e7390bdf 100644 --- a/model_storage_net_app_fc_interface.go +++ b/model_storage_net_app_fc_interface.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -38,7 +38,7 @@ type StorageNetAppFcInterface struct { // The storage virtual machine name for the interface. SvmName *string `json:"SvmName,omitempty"` // Uuid of NetApp FC Interface. - Uuid *string `json:"Uuid,omitempty"` + Uuid *string `json:"Uuid,omitempty" validate:"regexp=^$|^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"` // The parent volume name for the interface. VolumeName *string `json:"VolumeName,omitempty"` ArrayController NullableStorageNetAppNodeRelationship `json:"ArrayController,omitempty"` @@ -98,6 +98,11 @@ func (o *StorageNetAppFcInterface) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "storage.NetAppFcInterface" of the ClassId field. +func (o *StorageNetAppFcInterface) GetDefaultClassId() interface{} { + return "storage.NetAppFcInterface" +} + // GetObjectType returns the ObjectType field value func (o *StorageNetAppFcInterface) GetObjectType() string { if o == nil { @@ -122,6 +127,11 @@ func (o *StorageNetAppFcInterface) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "storage.NetAppFcInterface" of the ObjectType field. +func (o *StorageNetAppFcInterface) GetDefaultObjectType() interface{} { + return "storage.NetAppFcInterface" +} + // GetEnabled returns the Enabled field value if set, zero value otherwise. func (o *StorageNetAppFcInterface) GetEnabled() string { if o == nil || IsNil(o.Enabled) { @@ -381,7 +391,7 @@ func (o *StorageNetAppFcInterface) GetEventsOk() ([]StorageNetAppFcInterfaceEven // HasEvents returns a boolean if a field has been set. func (o *StorageNetAppFcInterface) HasEvents() bool { - if o != nil && IsNil(o.Events) { + if o != nil && !IsNil(o.Events) { return true } @@ -497,7 +507,13 @@ func (o StorageNetAppFcInterface) ToMap() (map[string]interface{}, error) { if errStorageBasePhysicalPort != nil { return map[string]interface{}{}, errStorageBasePhysicalPort } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Enabled) { toSerialize["Enabled"] = o.Enabled @@ -546,6 +562,13 @@ func (o *StorageNetAppFcInterface) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -555,11 +578,23 @@ func (o *StorageNetAppFcInterface) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type StorageNetAppFcInterfaceWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` @@ -575,7 +610,7 @@ func (o *StorageNetAppFcInterface) UnmarshalJSON(data []byte) (err error) { // The storage virtual machine name for the interface. SvmName *string `json:"SvmName,omitempty"` // Uuid of NetApp FC Interface. - Uuid *string `json:"Uuid,omitempty"` + Uuid *string `json:"Uuid,omitempty" validate:"regexp=^$|^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"` // The parent volume name for the interface. VolumeName *string `json:"VolumeName,omitempty"` ArrayController NullableStorageNetAppNodeRelationship `json:"ArrayController,omitempty"` diff --git a/model_storage_net_app_fc_interface_event.go b/model_storage_net_app_fc_interface_event.go index 80175dd7de..380b028dc3 100644 --- a/model_storage_net_app_fc_interface_event.go +++ b/model_storage_net_app_fc_interface_event.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -81,6 +81,11 @@ func (o *StorageNetAppFcInterfaceEvent) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "storage.NetAppFcInterfaceEvent" of the ClassId field. +func (o *StorageNetAppFcInterfaceEvent) GetDefaultClassId() interface{} { + return "storage.NetAppFcInterfaceEvent" +} + // GetObjectType returns the ObjectType field value func (o *StorageNetAppFcInterfaceEvent) GetObjectType() string { if o == nil { @@ -105,6 +110,11 @@ func (o *StorageNetAppFcInterfaceEvent) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "storage.NetAppFcInterfaceEvent" of the ObjectType field. +func (o *StorageNetAppFcInterfaceEvent) GetDefaultObjectType() interface{} { + return "storage.NetAppFcInterfaceEvent" +} + // GetFcInterface returns the FcInterface field value if set, zero value otherwise (both if not set or set to explicit null). func (o *StorageNetAppFcInterfaceEvent) GetFcInterface() StorageNetAppFcInterfaceRelationship { if o == nil || IsNil(o.FcInterface.Get()) { @@ -166,7 +176,13 @@ func (o StorageNetAppFcInterfaceEvent) ToMap() (map[string]interface{}, error) { if errStorageNetAppBaseEvent != nil { return map[string]interface{}{}, errStorageNetAppBaseEvent } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.FcInterface.IsSet() { toSerialize["FcInterface"] = o.FcInterface.Get() @@ -188,6 +204,13 @@ func (o *StorageNetAppFcInterfaceEvent) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -197,11 +220,23 @@ func (o *StorageNetAppFcInterfaceEvent) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type StorageNetAppFcInterfaceEventWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_storage_net_app_fc_interface_event_list.go b/model_storage_net_app_fc_interface_event_list.go index 2c782c2ae5..2e82355856 100644 --- a/model_storage_net_app_fc_interface_event_list.go +++ b/model_storage_net_app_fc_interface_event_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *StorageNetAppFcInterfaceEventList) GetResultsOk() ([]StorageNetAppFcInt // HasResults returns a boolean if a field has been set. func (o *StorageNetAppFcInterfaceEventList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *StorageNetAppFcInterfaceEventList) UnmarshalJSON(data []byte) (err erro "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *StorageNetAppFcInterfaceEventList) UnmarshalJSON(data []byte) (err erro } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type StorageNetAppFcInterfaceEventListWithoutEmbeddedStruct struct { // The total number of 'storage.NetAppFcInterfaceEvent' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_storage_net_app_fc_interface_event_relationship.go b/model_storage_net_app_fc_interface_event_relationship.go index 3513aad010..2e9f3c5398 100644 --- a/model_storage_net_app_fc_interface_event_relationship.go +++ b/model_storage_net_app_fc_interface_event_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_storage_net_app_fc_interface_event_response.go b/model_storage_net_app_fc_interface_event_response.go index 56ec0c5550..2ac2a02c62 100644 --- a/model_storage_net_app_fc_interface_event_response.go +++ b/model_storage_net_app_fc_interface_event_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_storage_net_app_fc_interface_list.go b/model_storage_net_app_fc_interface_list.go index 502d8722f7..5335ddc162 100644 --- a/model_storage_net_app_fc_interface_list.go +++ b/model_storage_net_app_fc_interface_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *StorageNetAppFcInterfaceList) GetResultsOk() ([]StorageNetAppFcInterfac // HasResults returns a boolean if a field has been set. func (o *StorageNetAppFcInterfaceList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *StorageNetAppFcInterfaceList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *StorageNetAppFcInterfaceList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type StorageNetAppFcInterfaceListWithoutEmbeddedStruct struct { // The total number of 'storage.NetAppFcInterface' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_storage_net_app_fc_interface_relationship.go b/model_storage_net_app_fc_interface_relationship.go index 5e1b42a60a..ac707323bf 100644 --- a/model_storage_net_app_fc_interface_relationship.go +++ b/model_storage_net_app_fc_interface_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_storage_net_app_fc_interface_response.go b/model_storage_net_app_fc_interface_response.go index 8c4908e3b9..fc3b4c22f9 100644 --- a/model_storage_net_app_fc_interface_response.go +++ b/model_storage_net_app_fc_interface_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_storage_net_app_fc_port.go b/model_storage_net_app_fc_port.go index fa7553d016..33a8cc794d 100644 --- a/model_storage_net_app_fc_port.go +++ b/model_storage_net_app_fc_port.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -39,7 +39,7 @@ type StorageNetAppFcPort struct { // State of the port available in storage array. * `Unknown` - Default unknown port state. * `StartUp` - The port in the storage array is booting up. * `LinkNotConnected` - The port has finished initialization, but a link with the fabric is not established. * `Online` - The port is initialized and a link with the fabric has been established. * `LinkDisconnected` - The link on this port is currently not established. * `OfflineUser` - The port is administratively disabled. * `OfflineSystem` - The port is set to offline by the system. This happens when the port encounters too many errors. * `NodeOffline` - The state information for the port cannot be retrieved. The node is offline or inaccessible. State *string `json:"State,omitempty"` // Universally unique identifier of the FC port. - Uuid *string `json:"Uuid,omitempty"` + Uuid *string `json:"Uuid,omitempty" validate:"regexp=^$|^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"` ArrayController NullableStorageNetAppNodeRelationship `json:"ArrayController,omitempty"` // An array of relationships to storageNetAppFcPortEvent resources. Events []StorageNetAppFcPortEventRelationship `json:"Events,omitempty"` @@ -95,6 +95,11 @@ func (o *StorageNetAppFcPort) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "storage.NetAppFcPort" of the ClassId field. +func (o *StorageNetAppFcPort) GetDefaultClassId() interface{} { + return "storage.NetAppFcPort" +} + // GetObjectType returns the ObjectType field value func (o *StorageNetAppFcPort) GetObjectType() string { if o == nil { @@ -119,6 +124,11 @@ func (o *StorageNetAppFcPort) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "storage.NetAppFcPort" of the ObjectType field. +func (o *StorageNetAppFcPort) GetDefaultObjectType() interface{} { + return "storage.NetAppFcPort" +} + // GetNodeName returns the NodeName field value if set, zero value otherwise. func (o *StorageNetAppFcPort) GetNodeName() string { if o == nil || IsNil(o.NodeName) { @@ -375,7 +385,7 @@ func (o *StorageNetAppFcPort) GetEventsOk() ([]StorageNetAppFcPortEventRelations // HasEvents returns a boolean if a field has been set. func (o *StorageNetAppFcPort) HasEvents() bool { - if o != nil && IsNil(o.Events) { + if o != nil && !IsNil(o.Events) { return true } @@ -405,7 +415,13 @@ func (o StorageNetAppFcPort) ToMap() (map[string]interface{}, error) { if errStorageBasePhysicalPort != nil { return map[string]interface{}{}, errStorageBasePhysicalPort } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.NodeName) { toSerialize["NodeName"] = o.NodeName @@ -448,6 +464,13 @@ func (o *StorageNetAppFcPort) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -457,11 +480,23 @@ func (o *StorageNetAppFcPort) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type StorageNetAppFcPortWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` @@ -478,7 +513,7 @@ func (o *StorageNetAppFcPort) UnmarshalJSON(data []byte) (err error) { // State of the port available in storage array. * `Unknown` - Default unknown port state. * `StartUp` - The port in the storage array is booting up. * `LinkNotConnected` - The port has finished initialization, but a link with the fabric is not established. * `Online` - The port is initialized and a link with the fabric has been established. * `LinkDisconnected` - The link on this port is currently not established. * `OfflineUser` - The port is administratively disabled. * `OfflineSystem` - The port is set to offline by the system. This happens when the port encounters too many errors. * `NodeOffline` - The state information for the port cannot be retrieved. The node is offline or inaccessible. State *string `json:"State,omitempty"` // Universally unique identifier of the FC port. - Uuid *string `json:"Uuid,omitempty"` + Uuid *string `json:"Uuid,omitempty" validate:"regexp=^$|^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"` ArrayController NullableStorageNetAppNodeRelationship `json:"ArrayController,omitempty"` // An array of relationships to storageNetAppFcPortEvent resources. Events []StorageNetAppFcPortEventRelationship `json:"Events,omitempty"` diff --git a/model_storage_net_app_fc_port_event.go b/model_storage_net_app_fc_port_event.go index da975def62..a248257f85 100644 --- a/model_storage_net_app_fc_port_event.go +++ b/model_storage_net_app_fc_port_event.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -81,6 +81,11 @@ func (o *StorageNetAppFcPortEvent) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "storage.NetAppFcPortEvent" of the ClassId field. +func (o *StorageNetAppFcPortEvent) GetDefaultClassId() interface{} { + return "storage.NetAppFcPortEvent" +} + // GetObjectType returns the ObjectType field value func (o *StorageNetAppFcPortEvent) GetObjectType() string { if o == nil { @@ -105,6 +110,11 @@ func (o *StorageNetAppFcPortEvent) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "storage.NetAppFcPortEvent" of the ObjectType field. +func (o *StorageNetAppFcPortEvent) GetDefaultObjectType() interface{} { + return "storage.NetAppFcPortEvent" +} + // GetFcPort returns the FcPort field value if set, zero value otherwise (both if not set or set to explicit null). func (o *StorageNetAppFcPortEvent) GetFcPort() StorageNetAppFcPortRelationship { if o == nil || IsNil(o.FcPort.Get()) { @@ -166,7 +176,13 @@ func (o StorageNetAppFcPortEvent) ToMap() (map[string]interface{}, error) { if errStorageNetAppBaseEvent != nil { return map[string]interface{}{}, errStorageNetAppBaseEvent } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.FcPort.IsSet() { toSerialize["FcPort"] = o.FcPort.Get() @@ -188,6 +204,13 @@ func (o *StorageNetAppFcPortEvent) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -197,11 +220,23 @@ func (o *StorageNetAppFcPortEvent) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type StorageNetAppFcPortEventWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_storage_net_app_fc_port_event_list.go b/model_storage_net_app_fc_port_event_list.go index 5b951037ff..a9463b2371 100644 --- a/model_storage_net_app_fc_port_event_list.go +++ b/model_storage_net_app_fc_port_event_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *StorageNetAppFcPortEventList) GetResultsOk() ([]StorageNetAppFcPortEven // HasResults returns a boolean if a field has been set. func (o *StorageNetAppFcPortEventList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *StorageNetAppFcPortEventList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *StorageNetAppFcPortEventList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type StorageNetAppFcPortEventListWithoutEmbeddedStruct struct { // The total number of 'storage.NetAppFcPortEvent' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_storage_net_app_fc_port_event_relationship.go b/model_storage_net_app_fc_port_event_relationship.go index 1bf3561d9f..87f14dc2a9 100644 --- a/model_storage_net_app_fc_port_event_relationship.go +++ b/model_storage_net_app_fc_port_event_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_storage_net_app_fc_port_event_response.go b/model_storage_net_app_fc_port_event_response.go index 8ae8c36e2e..f0158b6f1d 100644 --- a/model_storage_net_app_fc_port_event_response.go +++ b/model_storage_net_app_fc_port_event_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_storage_net_app_fc_port_list.go b/model_storage_net_app_fc_port_list.go index ec29746de2..a7efc2389d 100644 --- a/model_storage_net_app_fc_port_list.go +++ b/model_storage_net_app_fc_port_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *StorageNetAppFcPortList) GetResultsOk() ([]StorageNetAppFcPort, bool) { // HasResults returns a boolean if a field has been set. func (o *StorageNetAppFcPortList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *StorageNetAppFcPortList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *StorageNetAppFcPortList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type StorageNetAppFcPortListWithoutEmbeddedStruct struct { // The total number of 'storage.NetAppFcPort' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_storage_net_app_fc_port_relationship.go b/model_storage_net_app_fc_port_relationship.go index b364fda645..717b5c6708 100644 --- a/model_storage_net_app_fc_port_relationship.go +++ b/model_storage_net_app_fc_port_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_storage_net_app_fc_port_response.go b/model_storage_net_app_fc_port_response.go index f5c8dd01cd..56d67cca2d 100644 --- a/model_storage_net_app_fc_port_response.go +++ b/model_storage_net_app_fc_port_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_storage_net_app_high_availability.go b/model_storage_net_app_high_availability.go index 78ff5c4212..a21bdc3618 100644 --- a/model_storage_net_app_high_availability.go +++ b/model_storage_net_app_high_availability.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -94,6 +94,11 @@ func (o *StorageNetAppHighAvailability) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "storage.NetAppHighAvailability" of the ClassId field. +func (o *StorageNetAppHighAvailability) GetDefaultClassId() interface{} { + return "storage.NetAppHighAvailability" +} + // GetObjectType returns the ObjectType field value func (o *StorageNetAppHighAvailability) GetObjectType() string { if o == nil { @@ -118,6 +123,11 @@ func (o *StorageNetAppHighAvailability) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "storage.NetAppHighAvailability" of the ObjectType field. +func (o *StorageNetAppHighAvailability) GetDefaultObjectType() interface{} { + return "storage.NetAppHighAvailability" +} + // GetAutoGivebackEnabled returns the AutoGivebackEnabled field value if set, zero value otherwise. func (o *StorageNetAppHighAvailability) GetAutoGivebackEnabled() bool { if o == nil || IsNil(o.AutoGivebackEnabled) { @@ -360,7 +370,13 @@ func (o StorageNetAppHighAvailability) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.AutoGivebackEnabled) { toSerialize["AutoGivebackEnabled"] = o.AutoGivebackEnabled @@ -400,6 +416,13 @@ func (o *StorageNetAppHighAvailability) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -409,11 +432,23 @@ func (o *StorageNetAppHighAvailability) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type StorageNetAppHighAvailabilityWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_storage_net_app_initiator_group.go b/model_storage_net_app_initiator_group.go index 73fdb5edde..f78c57e6cb 100644 --- a/model_storage_net_app_initiator_group.go +++ b/model_storage_net_app_initiator_group.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -33,7 +33,7 @@ type StorageNetAppInitiatorGroup struct { // The storage virtual machine name for the initiator group. SvmName *string `json:"SvmName,omitempty"` // Universally unique identifier of the LUN. - Uuid *string `json:"Uuid,omitempty"` + Uuid *string `json:"Uuid,omitempty" validate:"regexp=^$|^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"` Tenant NullableStorageNetAppStorageVmRelationship `json:"Tenant,omitempty"` AdditionalProperties map[string]interface{} } @@ -87,6 +87,11 @@ func (o *StorageNetAppInitiatorGroup) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "storage.NetAppInitiatorGroup" of the ClassId field. +func (o *StorageNetAppInitiatorGroup) GetDefaultClassId() interface{} { + return "storage.NetAppInitiatorGroup" +} + // GetObjectType returns the ObjectType field value func (o *StorageNetAppInitiatorGroup) GetObjectType() string { if o == nil { @@ -111,6 +116,11 @@ func (o *StorageNetAppInitiatorGroup) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "storage.NetAppInitiatorGroup" of the ObjectType field. +func (o *StorageNetAppInitiatorGroup) GetDefaultObjectType() interface{} { + return "storage.NetAppInitiatorGroup" +} + // GetProtocol returns the Protocol field value if set, zero value otherwise. func (o *StorageNetAppInitiatorGroup) GetProtocol() string { if o == nil || IsNil(o.Protocol) { @@ -268,7 +278,13 @@ func (o StorageNetAppInitiatorGroup) ToMap() (map[string]interface{}, error) { if errStorageBaseHost != nil { return map[string]interface{}{}, errStorageBaseHost } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Protocol) { toSerialize["Protocol"] = o.Protocol @@ -299,6 +315,13 @@ func (o *StorageNetAppInitiatorGroup) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -308,11 +331,23 @@ func (o *StorageNetAppInitiatorGroup) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type StorageNetAppInitiatorGroupWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` @@ -323,7 +358,7 @@ func (o *StorageNetAppInitiatorGroup) UnmarshalJSON(data []byte) (err error) { // The storage virtual machine name for the initiator group. SvmName *string `json:"SvmName,omitempty"` // Universally unique identifier of the LUN. - Uuid *string `json:"Uuid,omitempty"` + Uuid *string `json:"Uuid,omitempty" validate:"regexp=^$|^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"` Tenant NullableStorageNetAppStorageVmRelationship `json:"Tenant,omitempty"` } diff --git a/model_storage_net_app_initiator_group_list.go b/model_storage_net_app_initiator_group_list.go index c4de6940a6..610750be23 100644 --- a/model_storage_net_app_initiator_group_list.go +++ b/model_storage_net_app_initiator_group_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *StorageNetAppInitiatorGroupList) GetResultsOk() ([]StorageNetAppInitiat // HasResults returns a boolean if a field has been set. func (o *StorageNetAppInitiatorGroupList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *StorageNetAppInitiatorGroupList) UnmarshalJSON(data []byte) (err error) "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *StorageNetAppInitiatorGroupList) UnmarshalJSON(data []byte) (err error) } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type StorageNetAppInitiatorGroupListWithoutEmbeddedStruct struct { // The total number of 'storage.NetAppInitiatorGroup' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_storage_net_app_initiator_group_relationship.go b/model_storage_net_app_initiator_group_relationship.go index d7cc395669..d1b92e01e5 100644 --- a/model_storage_net_app_initiator_group_relationship.go +++ b/model_storage_net_app_initiator_group_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_storage_net_app_initiator_group_response.go b/model_storage_net_app_initiator_group_response.go index bbc89537f8..1adb0abe8c 100644 --- a/model_storage_net_app_initiator_group_response.go +++ b/model_storage_net_app_initiator_group_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_storage_net_app_ip_interface.go b/model_storage_net_app_ip_interface.go index dbf58ce2bf..38b4b75f23 100644 --- a/model_storage_net_app_ip_interface.go +++ b/model_storage_net_app_ip_interface.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -45,12 +45,12 @@ type StorageNetAppIpInterface struct { // Service policy name of IP interface. ServicePolicyName *string `json:"ServicePolicyName,omitempty"` // Service policy UUID of IP interface. - ServicePolicyUuid *string `json:"ServicePolicyUuid,omitempty"` + ServicePolicyUuid *string `json:"ServicePolicyUuid,omitempty" validate:"regexp=^$|^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"` Services []string `json:"Services,omitempty"` // The state of the IP interface. * `down` - An inactive port is listed as Down. * `up` - An active port is listed as Up. * `present` - An active port is listed as present. State *string `json:"State,omitempty"` // Uuid of NetApp IP Interface. - Uuid *string `json:"Uuid,omitempty"` + Uuid *string `json:"Uuid,omitempty" validate:"regexp=^$|^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"` ArrayController NullableStorageNetAppNodeRelationship `json:"ArrayController,omitempty"` // An array of relationships to storageNetAppIpInterfaceEvent resources. Events []StorageNetAppIpInterfaceEventRelationship `json:"Events,omitempty"` @@ -108,6 +108,11 @@ func (o *StorageNetAppIpInterface) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "storage.NetAppIpInterface" of the ClassId field. +func (o *StorageNetAppIpInterface) GetDefaultClassId() interface{} { + return "storage.NetAppIpInterface" +} + // GetObjectType returns the ObjectType field value func (o *StorageNetAppIpInterface) GetObjectType() string { if o == nil { @@ -132,6 +137,11 @@ func (o *StorageNetAppIpInterface) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "storage.NetAppIpInterface" of the ObjectType field. +func (o *StorageNetAppIpInterface) GetDefaultObjectType() interface{} { + return "storage.NetAppIpInterface" +} + // GetEnabled returns the Enabled field value if set, zero value otherwise. func (o *StorageNetAppIpInterface) GetEnabled() string { if o == nil || IsNil(o.Enabled) { @@ -441,7 +451,7 @@ func (o *StorageNetAppIpInterface) GetServicesOk() ([]string, bool) { // HasServices returns a boolean if a field has been set. func (o *StorageNetAppIpInterface) HasServices() bool { - if o != nil && IsNil(o.Services) { + if o != nil && !IsNil(o.Services) { return true } @@ -581,7 +591,7 @@ func (o *StorageNetAppIpInterface) GetEventsOk() ([]StorageNetAppIpInterfaceEven // HasEvents returns a boolean if a field has been set. func (o *StorageNetAppIpInterface) HasEvents() bool { - if o != nil && IsNil(o.Events) { + if o != nil && !IsNil(o.Events) { return true } @@ -697,7 +707,13 @@ func (o StorageNetAppIpInterface) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Enabled) { toSerialize["Enabled"] = o.Enabled @@ -764,6 +780,13 @@ func (o *StorageNetAppIpInterface) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -773,11 +796,23 @@ func (o *StorageNetAppIpInterface) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type StorageNetAppIpInterfaceWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` @@ -800,12 +835,12 @@ func (o *StorageNetAppIpInterface) UnmarshalJSON(data []byte) (err error) { // Service policy name of IP interface. ServicePolicyName *string `json:"ServicePolicyName,omitempty"` // Service policy UUID of IP interface. - ServicePolicyUuid *string `json:"ServicePolicyUuid,omitempty"` + ServicePolicyUuid *string `json:"ServicePolicyUuid,omitempty" validate:"regexp=^$|^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"` Services []string `json:"Services,omitempty"` // The state of the IP interface. * `down` - An inactive port is listed as Down. * `up` - An active port is listed as Up. * `present` - An active port is listed as present. State *string `json:"State,omitempty"` // Uuid of NetApp IP Interface. - Uuid *string `json:"Uuid,omitempty"` + Uuid *string `json:"Uuid,omitempty" validate:"regexp=^$|^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"` ArrayController NullableStorageNetAppNodeRelationship `json:"ArrayController,omitempty"` // An array of relationships to storageNetAppIpInterfaceEvent resources. Events []StorageNetAppIpInterfaceEventRelationship `json:"Events,omitempty"` diff --git a/model_storage_net_app_ip_interface_event.go b/model_storage_net_app_ip_interface_event.go index 74b3446ca0..22d082117f 100644 --- a/model_storage_net_app_ip_interface_event.go +++ b/model_storage_net_app_ip_interface_event.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -81,6 +81,11 @@ func (o *StorageNetAppIpInterfaceEvent) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "storage.NetAppIpInterfaceEvent" of the ClassId field. +func (o *StorageNetAppIpInterfaceEvent) GetDefaultClassId() interface{} { + return "storage.NetAppIpInterfaceEvent" +} + // GetObjectType returns the ObjectType field value func (o *StorageNetAppIpInterfaceEvent) GetObjectType() string { if o == nil { @@ -105,6 +110,11 @@ func (o *StorageNetAppIpInterfaceEvent) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "storage.NetAppIpInterfaceEvent" of the ObjectType field. +func (o *StorageNetAppIpInterfaceEvent) GetDefaultObjectType() interface{} { + return "storage.NetAppIpInterfaceEvent" +} + // GetIpInterface returns the IpInterface field value if set, zero value otherwise (both if not set or set to explicit null). func (o *StorageNetAppIpInterfaceEvent) GetIpInterface() StorageNetAppIpInterfaceRelationship { if o == nil || IsNil(o.IpInterface.Get()) { @@ -166,7 +176,13 @@ func (o StorageNetAppIpInterfaceEvent) ToMap() (map[string]interface{}, error) { if errStorageNetAppBaseEvent != nil { return map[string]interface{}{}, errStorageNetAppBaseEvent } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.IpInterface.IsSet() { toSerialize["IpInterface"] = o.IpInterface.Get() @@ -188,6 +204,13 @@ func (o *StorageNetAppIpInterfaceEvent) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -197,11 +220,23 @@ func (o *StorageNetAppIpInterfaceEvent) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type StorageNetAppIpInterfaceEventWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_storage_net_app_ip_interface_event_list.go b/model_storage_net_app_ip_interface_event_list.go index 1daa0336e3..fc42bfdcf1 100644 --- a/model_storage_net_app_ip_interface_event_list.go +++ b/model_storage_net_app_ip_interface_event_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *StorageNetAppIpInterfaceEventList) GetResultsOk() ([]StorageNetAppIpInt // HasResults returns a boolean if a field has been set. func (o *StorageNetAppIpInterfaceEventList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *StorageNetAppIpInterfaceEventList) UnmarshalJSON(data []byte) (err erro "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *StorageNetAppIpInterfaceEventList) UnmarshalJSON(data []byte) (err erro } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type StorageNetAppIpInterfaceEventListWithoutEmbeddedStruct struct { // The total number of 'storage.NetAppIpInterfaceEvent' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_storage_net_app_ip_interface_event_relationship.go b/model_storage_net_app_ip_interface_event_relationship.go index 5f241263c0..6b118879a1 100644 --- a/model_storage_net_app_ip_interface_event_relationship.go +++ b/model_storage_net_app_ip_interface_event_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_storage_net_app_ip_interface_event_response.go b/model_storage_net_app_ip_interface_event_response.go index 30f6bdb204..6fe6f4e0ad 100644 --- a/model_storage_net_app_ip_interface_event_response.go +++ b/model_storage_net_app_ip_interface_event_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_storage_net_app_ip_interface_list.go b/model_storage_net_app_ip_interface_list.go index 950270c900..23ca54e10a 100644 --- a/model_storage_net_app_ip_interface_list.go +++ b/model_storage_net_app_ip_interface_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *StorageNetAppIpInterfaceList) GetResultsOk() ([]StorageNetAppIpInterfac // HasResults returns a boolean if a field has been set. func (o *StorageNetAppIpInterfaceList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *StorageNetAppIpInterfaceList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *StorageNetAppIpInterfaceList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type StorageNetAppIpInterfaceListWithoutEmbeddedStruct struct { // The total number of 'storage.NetAppIpInterface' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_storage_net_app_ip_interface_relationship.go b/model_storage_net_app_ip_interface_relationship.go index b6b9be86ce..c8525da455 100644 --- a/model_storage_net_app_ip_interface_relationship.go +++ b/model_storage_net_app_ip_interface_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_storage_net_app_ip_interface_response.go b/model_storage_net_app_ip_interface_response.go index 395fde67fd..0212e5ceca 100644 --- a/model_storage_net_app_ip_interface_response.go +++ b/model_storage_net_app_ip_interface_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_storage_net_app_iscsi_service.go b/model_storage_net_app_iscsi_service.go index f4e842ae34..954cd88a9f 100644 --- a/model_storage_net_app_iscsi_service.go +++ b/model_storage_net_app_iscsi_service.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -29,7 +29,7 @@ type StorageNetAppIscsiService struct { // The fully-qualified name of the instantiated, concrete type. The value should be the same as the 'ClassId' property. ObjectType string `json:"ObjectType"` // Unique identifier for the NetApp Storage Virtual Machine. - SvmUuid *string `json:"SvmUuid,omitempty"` + SvmUuid *string `json:"SvmUuid,omitempty" validate:"regexp=^$|^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"` // The iSCSI target alias of the iSCSI service. TargetAlias *string `json:"TargetAlias,omitempty"` // The iSCSI target name of the iSCSI service. @@ -87,6 +87,11 @@ func (o *StorageNetAppIscsiService) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "storage.NetAppIscsiService" of the ClassId field. +func (o *StorageNetAppIscsiService) GetDefaultClassId() interface{} { + return "storage.NetAppIscsiService" +} + // GetObjectType returns the ObjectType field value func (o *StorageNetAppIscsiService) GetObjectType() string { if o == nil { @@ -111,6 +116,11 @@ func (o *StorageNetAppIscsiService) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "storage.NetAppIscsiService" of the ObjectType field. +func (o *StorageNetAppIscsiService) GetDefaultObjectType() interface{} { + return "storage.NetAppIscsiService" +} + // GetSvmUuid returns the SvmUuid field value if set, zero value otherwise. func (o *StorageNetAppIscsiService) GetSvmUuid() string { if o == nil || IsNil(o.SvmUuid) { @@ -268,7 +278,13 @@ func (o StorageNetAppIscsiService) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.SvmUuid) { toSerialize["SvmUuid"] = o.SvmUuid @@ -299,6 +315,13 @@ func (o *StorageNetAppIscsiService) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -308,18 +331,30 @@ func (o *StorageNetAppIscsiService) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type StorageNetAppIscsiServiceWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` // The fully-qualified name of the instantiated, concrete type. The value should be the same as the 'ClassId' property. ObjectType string `json:"ObjectType"` // Unique identifier for the NetApp Storage Virtual Machine. - SvmUuid *string `json:"SvmUuid,omitempty"` + SvmUuid *string `json:"SvmUuid,omitempty" validate:"regexp=^$|^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"` // The iSCSI target alias of the iSCSI service. TargetAlias *string `json:"TargetAlias,omitempty"` // The iSCSI target name of the iSCSI service. diff --git a/model_storage_net_app_iscsi_service_list.go b/model_storage_net_app_iscsi_service_list.go index 11be7c2760..f9e6c825c8 100644 --- a/model_storage_net_app_iscsi_service_list.go +++ b/model_storage_net_app_iscsi_service_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *StorageNetAppIscsiServiceList) GetResultsOk() ([]StorageNetAppIscsiServ // HasResults returns a boolean if a field has been set. func (o *StorageNetAppIscsiServiceList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *StorageNetAppIscsiServiceList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *StorageNetAppIscsiServiceList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type StorageNetAppIscsiServiceListWithoutEmbeddedStruct struct { // The total number of 'storage.NetAppIscsiService' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_storage_net_app_iscsi_service_response.go b/model_storage_net_app_iscsi_service_response.go index 43fdd885f5..9c67364d6e 100644 --- a/model_storage_net_app_iscsi_service_response.go +++ b/model_storage_net_app_iscsi_service_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_storage_net_app_license.go b/model_storage_net_app_license.go index a23ac8c2ab..9e136272fe 100644 --- a/model_storage_net_app_license.go +++ b/model_storage_net_app_license.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -29,7 +29,7 @@ type StorageNetAppLicense struct { // The fully-qualified name of the instantiated, concrete type. The value should be the same as the 'ClassId' property. ObjectType string `json:"ObjectType"` // Unique identity of the device. - ClusterUuid *string `json:"ClusterUuid,omitempty"` + ClusterUuid *string `json:"ClusterUuid,omitempty" validate:"regexp=^$|^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"` // The name of the license package. Name *string `json:"Name,omitempty"` // Summary state of license package based on all installed licenses. * `Unknown` - The summary state of the license package is unknown. * `Compliant` - The summary state of the license package is compliant. * `Noncompliant` - The summary state of the license package is noncompliant. * `Unlicensed` - The summary state of the license package is unlicensed. @@ -87,6 +87,11 @@ func (o *StorageNetAppLicense) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "storage.NetAppLicense" of the ClassId field. +func (o *StorageNetAppLicense) GetDefaultClassId() interface{} { + return "storage.NetAppLicense" +} + // GetObjectType returns the ObjectType field value func (o *StorageNetAppLicense) GetObjectType() string { if o == nil { @@ -111,6 +116,11 @@ func (o *StorageNetAppLicense) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "storage.NetAppLicense" of the ObjectType field. +func (o *StorageNetAppLicense) GetDefaultObjectType() interface{} { + return "storage.NetAppLicense" +} + // GetClusterUuid returns the ClusterUuid field value if set, zero value otherwise. func (o *StorageNetAppLicense) GetClusterUuid() string { if o == nil || IsNil(o.ClusterUuid) { @@ -268,7 +278,13 @@ func (o StorageNetAppLicense) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.ClusterUuid) { toSerialize["ClusterUuid"] = o.ClusterUuid @@ -299,6 +315,13 @@ func (o *StorageNetAppLicense) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -308,18 +331,30 @@ func (o *StorageNetAppLicense) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type StorageNetAppLicenseWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` // The fully-qualified name of the instantiated, concrete type. The value should be the same as the 'ClassId' property. ObjectType string `json:"ObjectType"` // Unique identity of the device. - ClusterUuid *string `json:"ClusterUuid,omitempty"` + ClusterUuid *string `json:"ClusterUuid,omitempty" validate:"regexp=^$|^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"` // The name of the license package. Name *string `json:"Name,omitempty"` // Summary state of license package based on all installed licenses. * `Unknown` - The summary state of the license package is unknown. * `Compliant` - The summary state of the license package is compliant. * `Noncompliant` - The summary state of the license package is noncompliant. * `Unlicensed` - The summary state of the license package is unlicensed. diff --git a/model_storage_net_app_license_list.go b/model_storage_net_app_license_list.go index d8b3df3df1..d64e816057 100644 --- a/model_storage_net_app_license_list.go +++ b/model_storage_net_app_license_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *StorageNetAppLicenseList) GetResultsOk() ([]StorageNetAppLicense, bool) // HasResults returns a boolean if a field has been set. func (o *StorageNetAppLicenseList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *StorageNetAppLicenseList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *StorageNetAppLicenseList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type StorageNetAppLicenseListWithoutEmbeddedStruct struct { // The total number of 'storage.NetAppLicense' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_storage_net_app_license_response.go b/model_storage_net_app_license_response.go index 86fa680d7a..521ccf420a 100644 --- a/model_storage_net_app_license_response.go +++ b/model_storage_net_app_license_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_storage_net_app_lun.go b/model_storage_net_app_lun.go index d437839577..87e8a4a1a8 100644 --- a/model_storage_net_app_lun.go +++ b/model_storage_net_app_lun.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -49,7 +49,7 @@ type StorageNetAppLun struct { // The storage virtual machine name for the lun. SvmName *string `json:"SvmName,omitempty"` // Universally unique identifier of the LUN. - Uuid *string `json:"Uuid,omitempty"` + Uuid *string `json:"Uuid,omitempty" validate:"regexp=^$|^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"` // The parent volume name for the lun. VolumeName *string `json:"VolumeName,omitempty"` Array NullableStorageNetAppClusterRelationship `json:"Array,omitempty"` @@ -110,6 +110,11 @@ func (o *StorageNetAppLun) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "storage.NetAppLun" of the ClassId field. +func (o *StorageNetAppLun) GetDefaultClassId() interface{} { + return "storage.NetAppLun" +} + // GetObjectType returns the ObjectType field value func (o *StorageNetAppLun) GetObjectType() string { if o == nil { @@ -134,6 +139,11 @@ func (o *StorageNetAppLun) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "storage.NetAppLun" of the ObjectType field. +func (o *StorageNetAppLun) GetDefaultObjectType() interface{} { + return "storage.NetAppLun" +} + // GetAvgPerformanceMetrics returns the AvgPerformanceMetrics field value if set, zero value otherwise. func (o *StorageNetAppLun) GetAvgPerformanceMetrics() StorageNetAppPerformanceMetricsAverage { if o == nil || IsNil(o.AvgPerformanceMetrics) { @@ -585,7 +595,7 @@ func (o *StorageNetAppLun) GetEventsOk() ([]StorageNetAppLunEventRelationship, b // HasEvents returns a boolean if a field has been set. func (o *StorageNetAppLun) HasEvents() bool { - if o != nil && IsNil(o.Events) { + if o != nil && !IsNil(o.Events) { return true } @@ -618,7 +628,7 @@ func (o *StorageNetAppLun) GetHostOk() ([]StorageNetAppInitiatorGroupRelationshi // HasHost returns a boolean if a field has been set. func (o *StorageNetAppLun) HasHost() bool { - if o != nil && IsNil(o.Host) { + if o != nil && !IsNil(o.Host) { return true } @@ -691,7 +701,13 @@ func (o StorageNetAppLun) ToMap() (map[string]interface{}, error) { if errStorageBaseVolume != nil { return map[string]interface{}{}, errStorageBaseVolume } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.AvgPerformanceMetrics) { toSerialize["AvgPerformanceMetrics"] = o.AvgPerformanceMetrics @@ -758,6 +774,13 @@ func (o *StorageNetAppLun) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -767,11 +790,23 @@ func (o *StorageNetAppLun) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type StorageNetAppLunWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` @@ -798,7 +833,7 @@ func (o *StorageNetAppLun) UnmarshalJSON(data []byte) (err error) { // The storage virtual machine name for the lun. SvmName *string `json:"SvmName,omitempty"` // Universally unique identifier of the LUN. - Uuid *string `json:"Uuid,omitempty"` + Uuid *string `json:"Uuid,omitempty" validate:"regexp=^$|^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"` // The parent volume name for the lun. VolumeName *string `json:"VolumeName,omitempty"` Array NullableStorageNetAppClusterRelationship `json:"Array,omitempty"` diff --git a/model_storage_net_app_lun_event.go b/model_storage_net_app_lun_event.go index b5dfbd1103..2bc03f269f 100644 --- a/model_storage_net_app_lun_event.go +++ b/model_storage_net_app_lun_event.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -81,6 +81,11 @@ func (o *StorageNetAppLunEvent) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "storage.NetAppLunEvent" of the ClassId field. +func (o *StorageNetAppLunEvent) GetDefaultClassId() interface{} { + return "storage.NetAppLunEvent" +} + // GetObjectType returns the ObjectType field value func (o *StorageNetAppLunEvent) GetObjectType() string { if o == nil { @@ -105,6 +110,11 @@ func (o *StorageNetAppLunEvent) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "storage.NetAppLunEvent" of the ObjectType field. +func (o *StorageNetAppLunEvent) GetDefaultObjectType() interface{} { + return "storage.NetAppLunEvent" +} + // GetLun returns the Lun field value if set, zero value otherwise (both if not set or set to explicit null). func (o *StorageNetAppLunEvent) GetLun() StorageNetAppLunRelationship { if o == nil || IsNil(o.Lun.Get()) { @@ -166,7 +176,13 @@ func (o StorageNetAppLunEvent) ToMap() (map[string]interface{}, error) { if errStorageNetAppBaseEvent != nil { return map[string]interface{}{}, errStorageNetAppBaseEvent } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.Lun.IsSet() { toSerialize["Lun"] = o.Lun.Get() @@ -188,6 +204,13 @@ func (o *StorageNetAppLunEvent) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -197,11 +220,23 @@ func (o *StorageNetAppLunEvent) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type StorageNetAppLunEventWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_storage_net_app_lun_event_list.go b/model_storage_net_app_lun_event_list.go index 4172e743be..514b66c564 100644 --- a/model_storage_net_app_lun_event_list.go +++ b/model_storage_net_app_lun_event_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *StorageNetAppLunEventList) GetResultsOk() ([]StorageNetAppLunEvent, boo // HasResults returns a boolean if a field has been set. func (o *StorageNetAppLunEventList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *StorageNetAppLunEventList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *StorageNetAppLunEventList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type StorageNetAppLunEventListWithoutEmbeddedStruct struct { // The total number of 'storage.NetAppLunEvent' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_storage_net_app_lun_event_relationship.go b/model_storage_net_app_lun_event_relationship.go index d08253c6d6..f4b1c074c6 100644 --- a/model_storage_net_app_lun_event_relationship.go +++ b/model_storage_net_app_lun_event_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_storage_net_app_lun_event_response.go b/model_storage_net_app_lun_event_response.go index 1e78cbd661..15a1342caa 100644 --- a/model_storage_net_app_lun_event_response.go +++ b/model_storage_net_app_lun_event_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_storage_net_app_lun_list.go b/model_storage_net_app_lun_list.go index db1156749b..32938a003e 100644 --- a/model_storage_net_app_lun_list.go +++ b/model_storage_net_app_lun_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *StorageNetAppLunList) GetResultsOk() ([]StorageNetAppLun, bool) { // HasResults returns a boolean if a field has been set. func (o *StorageNetAppLunList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *StorageNetAppLunList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *StorageNetAppLunList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type StorageNetAppLunListWithoutEmbeddedStruct struct { // The total number of 'storage.NetAppLun' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_storage_net_app_lun_map.go b/model_storage_net_app_lun_map.go index b53ec08e11..f3a9f88baf 100644 --- a/model_storage_net_app_lun_map.go +++ b/model_storage_net_app_lun_map.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -29,9 +29,9 @@ type StorageNetAppLunMap struct { // The fully-qualified name of the instantiated, concrete type. The value should be the same as the 'ClassId' property. ObjectType string `json:"ObjectType"` // UUID of the initiator group. - IgroupUuid *string `json:"IgroupUuid,omitempty"` + IgroupUuid *string `json:"IgroupUuid,omitempty" validate:"regexp=^$|^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"` // Universally unique identifier of the LUN. - LunUuid *string `json:"LunUuid,omitempty"` + LunUuid *string `json:"LunUuid,omitempty" validate:"regexp=^$|^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"` // An array of relationships to storageNetAppInitiatorGroup resources. Host []StorageNetAppInitiatorGroupRelationship `json:"Host,omitempty"` Tenant NullableStorageNetAppStorageVmRelationship `json:"Tenant,omitempty"` @@ -88,6 +88,11 @@ func (o *StorageNetAppLunMap) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "storage.NetAppLunMap" of the ClassId field. +func (o *StorageNetAppLunMap) GetDefaultClassId() interface{} { + return "storage.NetAppLunMap" +} + // GetObjectType returns the ObjectType field value func (o *StorageNetAppLunMap) GetObjectType() string { if o == nil { @@ -112,6 +117,11 @@ func (o *StorageNetAppLunMap) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "storage.NetAppLunMap" of the ObjectType field. +func (o *StorageNetAppLunMap) GetDefaultObjectType() interface{} { + return "storage.NetAppLunMap" +} + // GetIgroupUuid returns the IgroupUuid field value if set, zero value otherwise. func (o *StorageNetAppLunMap) GetIgroupUuid() string { if o == nil || IsNil(o.IgroupUuid) { @@ -197,7 +207,7 @@ func (o *StorageNetAppLunMap) GetHostOk() ([]StorageNetAppInitiatorGroupRelation // HasHost returns a boolean if a field has been set. func (o *StorageNetAppLunMap) HasHost() bool { - if o != nil && IsNil(o.Host) { + if o != nil && !IsNil(o.Host) { return true } @@ -313,7 +323,13 @@ func (o StorageNetAppLunMap) ToMap() (map[string]interface{}, error) { if errStorageBaseHostLun != nil { return map[string]interface{}{}, errStorageBaseHostLun } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.IgroupUuid) { toSerialize["IgroupUuid"] = o.IgroupUuid @@ -347,6 +363,13 @@ func (o *StorageNetAppLunMap) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -356,20 +379,32 @@ func (o *StorageNetAppLunMap) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type StorageNetAppLunMapWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` // The fully-qualified name of the instantiated, concrete type. The value should be the same as the 'ClassId' property. ObjectType string `json:"ObjectType"` // UUID of the initiator group. - IgroupUuid *string `json:"IgroupUuid,omitempty"` + IgroupUuid *string `json:"IgroupUuid,omitempty" validate:"regexp=^$|^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"` // Universally unique identifier of the LUN. - LunUuid *string `json:"LunUuid,omitempty"` + LunUuid *string `json:"LunUuid,omitempty" validate:"regexp=^$|^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"` // An array of relationships to storageNetAppInitiatorGroup resources. Host []StorageNetAppInitiatorGroupRelationship `json:"Host,omitempty"` Tenant NullableStorageNetAppStorageVmRelationship `json:"Tenant,omitempty"` diff --git a/model_storage_net_app_lun_map_list.go b/model_storage_net_app_lun_map_list.go index 311d81c0c2..26f3a4c07b 100644 --- a/model_storage_net_app_lun_map_list.go +++ b/model_storage_net_app_lun_map_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *StorageNetAppLunMapList) GetResultsOk() ([]StorageNetAppLunMap, bool) { // HasResults returns a boolean if a field has been set. func (o *StorageNetAppLunMapList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *StorageNetAppLunMapList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *StorageNetAppLunMapList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type StorageNetAppLunMapListWithoutEmbeddedStruct struct { // The total number of 'storage.NetAppLunMap' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_storage_net_app_lun_map_response.go b/model_storage_net_app_lun_map_response.go index c0dc26021f..b30a2be507 100644 --- a/model_storage_net_app_lun_map_response.go +++ b/model_storage_net_app_lun_map_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_storage_net_app_lun_relationship.go b/model_storage_net_app_lun_relationship.go index 6ab0e6d6fb..60cbea4edd 100644 --- a/model_storage_net_app_lun_relationship.go +++ b/model_storage_net_app_lun_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_storage_net_app_lun_response.go b/model_storage_net_app_lun_response.go index 91fdfc1410..c7d23f98d4 100644 --- a/model_storage_net_app_lun_response.go +++ b/model_storage_net_app_lun_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_storage_net_app_namespace.go b/model_storage_net_app_namespace.go index 78c6278810..966970bd4c 100644 --- a/model_storage_net_app_namespace.go +++ b/model_storage_net_app_namespace.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -46,7 +46,7 @@ type StorageNetAppNamespace struct { // The storage virtual machine name for the NVMe namespace. SvmName *string `json:"SvmName,omitempty"` // Universally unique identifier of the NVMe namespace. - Uuid *string `json:"Uuid,omitempty"` + Uuid *string `json:"Uuid,omitempty" validate:"regexp=^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"` // The volume name in which the NVMe namespace is located. VolumeName *string `json:"VolumeName,omitempty"` Array NullableStorageNetAppClusterRelationship `json:"Array,omitempty"` @@ -103,6 +103,11 @@ func (o *StorageNetAppNamespace) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "storage.NetAppNamespace" of the ClassId field. +func (o *StorageNetAppNamespace) GetDefaultClassId() interface{} { + return "storage.NetAppNamespace" +} + // GetObjectType returns the ObjectType field value func (o *StorageNetAppNamespace) GetObjectType() string { if o == nil { @@ -127,6 +132,11 @@ func (o *StorageNetAppNamespace) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "storage.NetAppNamespace" of the ObjectType field. +func (o *StorageNetAppNamespace) GetDefaultObjectType() interface{} { + return "storage.NetAppNamespace" +} + // GetContainerState returns the ContainerState field value if set, zero value otherwise. func (o *StorageNetAppNamespace) GetContainerState() string { if o == nil || IsNil(o.ContainerState) { @@ -594,7 +604,13 @@ func (o StorageNetAppNamespace) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.ContainerState) { toSerialize["ContainerState"] = o.ContainerState @@ -652,6 +668,13 @@ func (o *StorageNetAppNamespace) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -661,11 +684,23 @@ func (o *StorageNetAppNamespace) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type StorageNetAppNamespaceWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` @@ -689,7 +724,7 @@ func (o *StorageNetAppNamespace) UnmarshalJSON(data []byte) (err error) { // The storage virtual machine name for the NVMe namespace. SvmName *string `json:"SvmName,omitempty"` // Universally unique identifier of the NVMe namespace. - Uuid *string `json:"Uuid,omitempty"` + Uuid *string `json:"Uuid,omitempty" validate:"regexp=^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"` // The volume name in which the NVMe namespace is located. VolumeName *string `json:"VolumeName,omitempty"` Array NullableStorageNetAppClusterRelationship `json:"Array,omitempty"` diff --git a/model_storage_net_app_namespace_list.go b/model_storage_net_app_namespace_list.go index 8bb95e8fd6..69394f49a1 100644 --- a/model_storage_net_app_namespace_list.go +++ b/model_storage_net_app_namespace_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *StorageNetAppNamespaceList) GetResultsOk() ([]StorageNetAppNamespace, b // HasResults returns a boolean if a field has been set. func (o *StorageNetAppNamespaceList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *StorageNetAppNamespaceList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *StorageNetAppNamespaceList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type StorageNetAppNamespaceListWithoutEmbeddedStruct struct { // The total number of 'storage.NetAppNamespace' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_storage_net_app_namespace_response.go b/model_storage_net_app_namespace_response.go index b9adec00e8..3c451a19a9 100644 --- a/model_storage_net_app_namespace_response.go +++ b/model_storage_net_app_namespace_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_storage_net_app_nfs_client.go b/model_storage_net_app_nfs_client.go index 6aa2ce0f85..3fc8b277fd 100644 --- a/model_storage_net_app_nfs_client.go +++ b/model_storage_net_app_nfs_client.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -39,11 +39,11 @@ type StorageNetAppNfsClient struct { // The storage virtual machine name for the NFS client. SvmName *string `json:"SvmName,omitempty"` // Unique identifier for the NetApp Storage Virtual Machine. - SvmUuid *string `json:"SvmUuid,omitempty"` + SvmUuid *string `json:"SvmUuid,omitempty" validate:"regexp=^$|^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"` // The parent volume name for the NFS client. VolumeName *string `json:"VolumeName,omitempty"` // Unique identifier for the NetApp Volume. - VolumeUuid *string `json:"VolumeUuid,omitempty"` + VolumeUuid *string `json:"VolumeUuid,omitempty" validate:"regexp=^$|^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"` StorageContainer NullableStorageNetAppVolumeRelationship `json:"StorageContainer,omitempty"` Tenant NullableStorageNetAppStorageVmRelationship `json:"Tenant,omitempty"` AdditionalProperties map[string]interface{} @@ -98,6 +98,11 @@ func (o *StorageNetAppNfsClient) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "storage.NetAppNfsClient" of the ClassId field. +func (o *StorageNetAppNfsClient) GetDefaultClassId() interface{} { + return "storage.NetAppNfsClient" +} + // GetObjectType returns the ObjectType field value func (o *StorageNetAppNfsClient) GetObjectType() string { if o == nil { @@ -122,6 +127,11 @@ func (o *StorageNetAppNfsClient) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "storage.NetAppNfsClient" of the ObjectType field. +func (o *StorageNetAppNfsClient) GetDefaultObjectType() interface{} { + return "storage.NetAppNfsClient" +} + // GetClientIp returns the ClientIp field value if set, zero value otherwise. func (o *StorageNetAppNfsClient) GetClientIp() string { if o == nil || IsNil(o.ClientIp) { @@ -482,7 +492,13 @@ func (o StorageNetAppNfsClient) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.ClientIp) { toSerialize["ClientIp"] = o.ClientIp @@ -531,6 +547,13 @@ func (o *StorageNetAppNfsClient) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -540,11 +563,23 @@ func (o *StorageNetAppNfsClient) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type StorageNetAppNfsClientWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` @@ -561,11 +596,11 @@ func (o *StorageNetAppNfsClient) UnmarshalJSON(data []byte) (err error) { // The storage virtual machine name for the NFS client. SvmName *string `json:"SvmName,omitempty"` // Unique identifier for the NetApp Storage Virtual Machine. - SvmUuid *string `json:"SvmUuid,omitempty"` + SvmUuid *string `json:"SvmUuid,omitempty" validate:"regexp=^$|^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"` // The parent volume name for the NFS client. VolumeName *string `json:"VolumeName,omitempty"` // Unique identifier for the NetApp Volume. - VolumeUuid *string `json:"VolumeUuid,omitempty"` + VolumeUuid *string `json:"VolumeUuid,omitempty" validate:"regexp=^$|^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"` StorageContainer NullableStorageNetAppVolumeRelationship `json:"StorageContainer,omitempty"` Tenant NullableStorageNetAppStorageVmRelationship `json:"Tenant,omitempty"` } diff --git a/model_storage_net_app_nfs_client_list.go b/model_storage_net_app_nfs_client_list.go index 4f8122376d..7ff82c0c7e 100644 --- a/model_storage_net_app_nfs_client_list.go +++ b/model_storage_net_app_nfs_client_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *StorageNetAppNfsClientList) GetResultsOk() ([]StorageNetAppNfsClient, b // HasResults returns a boolean if a field has been set. func (o *StorageNetAppNfsClientList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *StorageNetAppNfsClientList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *StorageNetAppNfsClientList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type StorageNetAppNfsClientListWithoutEmbeddedStruct struct { // The total number of 'storage.NetAppNfsClient' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_storage_net_app_nfs_client_response.go b/model_storage_net_app_nfs_client_response.go index 906408727f..285a35aa54 100644 --- a/model_storage_net_app_nfs_client_response.go +++ b/model_storage_net_app_nfs_client_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_storage_net_app_nfs_service.go b/model_storage_net_app_nfs_service.go index 52ed526348..f123f7c878 100644 --- a/model_storage_net_app_nfs_service.go +++ b/model_storage_net_app_nfs_service.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -35,7 +35,7 @@ type StorageNetAppNfsService struct { // Specifies whether NFSv4.0 protocol is enabled. NfsV4Enabled *bool `json:"NfsV4Enabled,omitempty"` // Unique identifier for the NetApp Storage Virtual Machine. - SvmUuid *string `json:"SvmUuid,omitempty"` + SvmUuid *string `json:"SvmUuid,omitempty" validate:"regexp=^$|^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"` Tenant NullableStorageNetAppStorageVmRelationship `json:"Tenant,omitempty"` AdditionalProperties map[string]interface{} } @@ -89,6 +89,11 @@ func (o *StorageNetAppNfsService) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "storage.NetAppNfsService" of the ClassId field. +func (o *StorageNetAppNfsService) GetDefaultClassId() interface{} { + return "storage.NetAppNfsService" +} + // GetObjectType returns the ObjectType field value func (o *StorageNetAppNfsService) GetObjectType() string { if o == nil { @@ -113,6 +118,11 @@ func (o *StorageNetAppNfsService) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "storage.NetAppNfsService" of the ObjectType field. +func (o *StorageNetAppNfsService) GetDefaultObjectType() interface{} { + return "storage.NetAppNfsService" +} + // GetNfsV3Enabled returns the NfsV3Enabled field value if set, zero value otherwise. func (o *StorageNetAppNfsService) GetNfsV3Enabled() bool { if o == nil || IsNil(o.NfsV3Enabled) { @@ -302,7 +312,13 @@ func (o StorageNetAppNfsService) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.NfsV3Enabled) { toSerialize["NfsV3Enabled"] = o.NfsV3Enabled @@ -336,6 +352,13 @@ func (o *StorageNetAppNfsService) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -345,11 +368,23 @@ func (o *StorageNetAppNfsService) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type StorageNetAppNfsServiceWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` @@ -362,7 +397,7 @@ func (o *StorageNetAppNfsService) UnmarshalJSON(data []byte) (err error) { // Specifies whether NFSv4.0 protocol is enabled. NfsV4Enabled *bool `json:"NfsV4Enabled,omitempty"` // Unique identifier for the NetApp Storage Virtual Machine. - SvmUuid *string `json:"SvmUuid,omitempty"` + SvmUuid *string `json:"SvmUuid,omitempty" validate:"regexp=^$|^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"` Tenant NullableStorageNetAppStorageVmRelationship `json:"Tenant,omitempty"` } diff --git a/model_storage_net_app_nfs_service_list.go b/model_storage_net_app_nfs_service_list.go index 9477eaae3d..4a3208e188 100644 --- a/model_storage_net_app_nfs_service_list.go +++ b/model_storage_net_app_nfs_service_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *StorageNetAppNfsServiceList) GetResultsOk() ([]StorageNetAppNfsService, // HasResults returns a boolean if a field has been set. func (o *StorageNetAppNfsServiceList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *StorageNetAppNfsServiceList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *StorageNetAppNfsServiceList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type StorageNetAppNfsServiceListWithoutEmbeddedStruct struct { // The total number of 'storage.NetAppNfsService' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_storage_net_app_nfs_service_response.go b/model_storage_net_app_nfs_service_response.go index bfe7eddf16..c3daf45da3 100644 --- a/model_storage_net_app_nfs_service_response.go +++ b/model_storage_net_app_nfs_service_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_storage_net_app_node.go b/model_storage_net_app_node.go index 37f07fba4e..34a3e60e93 100644 --- a/model_storage_net_app_node.go +++ b/model_storage_net_app_node.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -42,7 +42,7 @@ type StorageNetAppNode struct { // The system id of the NetApp Node. Systemid *string `json:"Systemid,omitempty"` // Universally unique identifier of NetApp Node. - Uuid *string `json:"Uuid,omitempty"` + Uuid *string `json:"Uuid,omitempty" validate:"regexp=^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"` Array NullableStorageNetAppClusterRelationship `json:"Array,omitempty"` // An array of relationships to storageNetAppNodeEvent resources. Events []StorageNetAppNodeEventRelationship `json:"Events,omitempty"` @@ -98,6 +98,11 @@ func (o *StorageNetAppNode) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "storage.NetAppNode" of the ClassId field. +func (o *StorageNetAppNode) GetDefaultClassId() interface{} { + return "storage.NetAppNode" +} + // GetObjectType returns the ObjectType field value func (o *StorageNetAppNode) GetObjectType() string { if o == nil { @@ -122,6 +127,11 @@ func (o *StorageNetAppNode) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "storage.NetAppNode" of the ObjectType field. +func (o *StorageNetAppNode) GetDefaultObjectType() interface{} { + return "storage.NetAppNode" +} + // GetAvgPerformanceMetrics returns the AvgPerformanceMetrics field value if set, zero value otherwise. func (o *StorageNetAppNode) GetAvgPerformanceMetrics() StorageNetAppPerformanceMetricsAverage { if o == nil || IsNil(o.AvgPerformanceMetrics) { @@ -456,7 +466,7 @@ func (o *StorageNetAppNode) GetEventsOk() ([]StorageNetAppNodeEventRelationship, // HasEvents returns a boolean if a field has been set. func (o *StorageNetAppNode) HasEvents() bool { - if o != nil && IsNil(o.Events) { + if o != nil && !IsNil(o.Events) { return true } @@ -486,7 +496,13 @@ func (o StorageNetAppNode) ToMap() (map[string]interface{}, error) { if errStorageBaseArrayController != nil { return map[string]interface{}{}, errStorageBaseArrayController } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.AvgPerformanceMetrics) { toSerialize["AvgPerformanceMetrics"] = o.AvgPerformanceMetrics @@ -535,6 +551,13 @@ func (o *StorageNetAppNode) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -544,11 +567,23 @@ func (o *StorageNetAppNode) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type StorageNetAppNodeWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` @@ -568,7 +603,7 @@ func (o *StorageNetAppNode) UnmarshalJSON(data []byte) (err error) { // The system id of the NetApp Node. Systemid *string `json:"Systemid,omitempty"` // Universally unique identifier of NetApp Node. - Uuid *string `json:"Uuid,omitempty"` + Uuid *string `json:"Uuid,omitempty" validate:"regexp=^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"` Array NullableStorageNetAppClusterRelationship `json:"Array,omitempty"` // An array of relationships to storageNetAppNodeEvent resources. Events []StorageNetAppNodeEventRelationship `json:"Events,omitempty"` diff --git a/model_storage_net_app_node_cdp_neighbor.go b/model_storage_net_app_node_cdp_neighbor.go index 4a61bc98ee..f8a7557fc6 100644 --- a/model_storage_net_app_node_cdp_neighbor.go +++ b/model_storage_net_app_node_cdp_neighbor.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -100,6 +100,11 @@ func (o *StorageNetAppNodeCdpNeighbor) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "storage.NetAppNodeCdpNeighbor" of the ClassId field. +func (o *StorageNetAppNodeCdpNeighbor) GetDefaultClassId() interface{} { + return "storage.NetAppNodeCdpNeighbor" +} + // GetObjectType returns the ObjectType field value func (o *StorageNetAppNodeCdpNeighbor) GetObjectType() string { if o == nil { @@ -124,6 +129,11 @@ func (o *StorageNetAppNodeCdpNeighbor) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "storage.NetAppNodeCdpNeighbor" of the ObjectType field. +func (o *StorageNetAppNodeCdpNeighbor) GetDefaultObjectType() interface{} { + return "storage.NetAppNodeCdpNeighbor" +} + // GetCapabilities returns the Capabilities field value if set, zero value otherwise (both if not set or set to explicit null). func (o *StorageNetAppNodeCdpNeighbor) GetCapabilities() []string { if o == nil { @@ -145,7 +155,7 @@ func (o *StorageNetAppNodeCdpNeighbor) GetCapabilitiesOk() ([]string, bool) { // HasCapabilities returns a boolean if a field has been set. func (o *StorageNetAppNodeCdpNeighbor) HasCapabilities() bool { - if o != nil && IsNil(o.Capabilities) { + if o != nil && !IsNil(o.Capabilities) { return true } @@ -506,7 +516,13 @@ func (o StorageNetAppNodeCdpNeighbor) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.Capabilities != nil { toSerialize["Capabilities"] = o.Capabilities @@ -558,6 +574,13 @@ func (o *StorageNetAppNodeCdpNeighbor) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -567,11 +590,23 @@ func (o *StorageNetAppNodeCdpNeighbor) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type StorageNetAppNodeCdpNeighborWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_storage_net_app_node_cdp_neighbor_list.go b/model_storage_net_app_node_cdp_neighbor_list.go index 3564936c7f..6c3dcde13b 100644 --- a/model_storage_net_app_node_cdp_neighbor_list.go +++ b/model_storage_net_app_node_cdp_neighbor_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *StorageNetAppNodeCdpNeighborList) GetResultsOk() ([]StorageNetAppNodeCd // HasResults returns a boolean if a field has been set. func (o *StorageNetAppNodeCdpNeighborList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *StorageNetAppNodeCdpNeighborList) UnmarshalJSON(data []byte) (err error "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *StorageNetAppNodeCdpNeighborList) UnmarshalJSON(data []byte) (err error } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type StorageNetAppNodeCdpNeighborListWithoutEmbeddedStruct struct { // The total number of 'storage.NetAppNodeCdpNeighbor' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_storage_net_app_node_cdp_neighbor_response.go b/model_storage_net_app_node_cdp_neighbor_response.go index b1a4a1a5e0..06d3ef17bd 100644 --- a/model_storage_net_app_node_cdp_neighbor_response.go +++ b/model_storage_net_app_node_cdp_neighbor_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_storage_net_app_node_event.go b/model_storage_net_app_node_event.go index 1ccee1b0b3..95daca9a1b 100644 --- a/model_storage_net_app_node_event.go +++ b/model_storage_net_app_node_event.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -81,6 +81,11 @@ func (o *StorageNetAppNodeEvent) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "storage.NetAppNodeEvent" of the ClassId field. +func (o *StorageNetAppNodeEvent) GetDefaultClassId() interface{} { + return "storage.NetAppNodeEvent" +} + // GetObjectType returns the ObjectType field value func (o *StorageNetAppNodeEvent) GetObjectType() string { if o == nil { @@ -105,6 +110,11 @@ func (o *StorageNetAppNodeEvent) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "storage.NetAppNodeEvent" of the ObjectType field. +func (o *StorageNetAppNodeEvent) GetDefaultObjectType() interface{} { + return "storage.NetAppNodeEvent" +} + // GetArrayController returns the ArrayController field value if set, zero value otherwise (both if not set or set to explicit null). func (o *StorageNetAppNodeEvent) GetArrayController() StorageNetAppNodeRelationship { if o == nil || IsNil(o.ArrayController.Get()) { @@ -166,7 +176,13 @@ func (o StorageNetAppNodeEvent) ToMap() (map[string]interface{}, error) { if errStorageNetAppBaseEvent != nil { return map[string]interface{}{}, errStorageNetAppBaseEvent } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.ArrayController.IsSet() { toSerialize["ArrayController"] = o.ArrayController.Get() @@ -188,6 +204,13 @@ func (o *StorageNetAppNodeEvent) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -197,11 +220,23 @@ func (o *StorageNetAppNodeEvent) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type StorageNetAppNodeEventWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_storage_net_app_node_event_list.go b/model_storage_net_app_node_event_list.go index 159d41b15d..442c53c9b7 100644 --- a/model_storage_net_app_node_event_list.go +++ b/model_storage_net_app_node_event_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *StorageNetAppNodeEventList) GetResultsOk() ([]StorageNetAppNodeEvent, b // HasResults returns a boolean if a field has been set. func (o *StorageNetAppNodeEventList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *StorageNetAppNodeEventList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *StorageNetAppNodeEventList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type StorageNetAppNodeEventListWithoutEmbeddedStruct struct { // The total number of 'storage.NetAppNodeEvent' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_storage_net_app_node_event_relationship.go b/model_storage_net_app_node_event_relationship.go index e63f725568..418b50b6fd 100644 --- a/model_storage_net_app_node_event_relationship.go +++ b/model_storage_net_app_node_event_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_storage_net_app_node_event_response.go b/model_storage_net_app_node_event_response.go index 942abb0997..2afb0fbd19 100644 --- a/model_storage_net_app_node_event_response.go +++ b/model_storage_net_app_node_event_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_storage_net_app_node_list.go b/model_storage_net_app_node_list.go index ff434d8764..3ec3a2f7b2 100644 --- a/model_storage_net_app_node_list.go +++ b/model_storage_net_app_node_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *StorageNetAppNodeList) GetResultsOk() ([]StorageNetAppNode, bool) { // HasResults returns a boolean if a field has been set. func (o *StorageNetAppNodeList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *StorageNetAppNodeList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *StorageNetAppNodeList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type StorageNetAppNodeListWithoutEmbeddedStruct struct { // The total number of 'storage.NetAppNode' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_storage_net_app_node_relationship.go b/model_storage_net_app_node_relationship.go index be94a4cd9c..c17d79e166 100644 --- a/model_storage_net_app_node_relationship.go +++ b/model_storage_net_app_node_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_storage_net_app_node_response.go b/model_storage_net_app_node_response.go index 0fab2027e4..b89366d17d 100644 --- a/model_storage_net_app_node_response.go +++ b/model_storage_net_app_node_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_storage_net_app_non_data_ip_interface.go b/model_storage_net_app_non_data_ip_interface.go index 88beda1262..cbae4a8e7f 100644 --- a/model_storage_net_app_non_data_ip_interface.go +++ b/model_storage_net_app_non_data_ip_interface.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -85,6 +85,11 @@ func (o *StorageNetAppNonDataIpInterface) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "storage.NetAppNonDataIpInterface" of the ClassId field. +func (o *StorageNetAppNonDataIpInterface) GetDefaultClassId() interface{} { + return "storage.NetAppNonDataIpInterface" +} + // GetObjectType returns the ObjectType field value func (o *StorageNetAppNonDataIpInterface) GetObjectType() string { if o == nil { @@ -109,6 +114,11 @@ func (o *StorageNetAppNonDataIpInterface) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "storage.NetAppNonDataIpInterface" of the ObjectType field. +func (o *StorageNetAppNonDataIpInterface) GetDefaultObjectType() interface{} { + return "storage.NetAppNonDataIpInterface" +} + // GetArray returns the Array field value if set, zero value otherwise (both if not set or set to explicit null). func (o *StorageNetAppNonDataIpInterface) GetArray() StorageNetAppClusterRelationship { if o == nil || IsNil(o.Array.Get()) { @@ -216,7 +226,7 @@ func (o *StorageNetAppNonDataIpInterface) GetEventsOk() ([]StorageNetAppNonDataI // HasEvents returns a boolean if a field has been set. func (o *StorageNetAppNonDataIpInterface) HasEvents() bool { - if o != nil && IsNil(o.Events) { + if o != nil && !IsNil(o.Events) { return true } @@ -289,7 +299,13 @@ func (o StorageNetAppNonDataIpInterface) ToMap() (map[string]interface{}, error) if errStorageNetAppBaseIpInterface != nil { return map[string]interface{}{}, errStorageNetAppBaseIpInterface } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.Array.IsSet() { toSerialize["Array"] = o.Array.Get() @@ -320,6 +336,13 @@ func (o *StorageNetAppNonDataIpInterface) UnmarshalJSON(data []byte) (err error) "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -329,11 +352,23 @@ func (o *StorageNetAppNonDataIpInterface) UnmarshalJSON(data []byte) (err error) } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type StorageNetAppNonDataIpInterfaceWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_storage_net_app_non_data_ip_interface_event.go b/model_storage_net_app_non_data_ip_interface_event.go index dcddcd518b..fb2ce1ab5a 100644 --- a/model_storage_net_app_non_data_ip_interface_event.go +++ b/model_storage_net_app_non_data_ip_interface_event.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -81,6 +81,11 @@ func (o *StorageNetAppNonDataIpInterfaceEvent) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "storage.NetAppNonDataIpInterfaceEvent" of the ClassId field. +func (o *StorageNetAppNonDataIpInterfaceEvent) GetDefaultClassId() interface{} { + return "storage.NetAppNonDataIpInterfaceEvent" +} + // GetObjectType returns the ObjectType field value func (o *StorageNetAppNonDataIpInterfaceEvent) GetObjectType() string { if o == nil { @@ -105,6 +110,11 @@ func (o *StorageNetAppNonDataIpInterfaceEvent) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "storage.NetAppNonDataIpInterfaceEvent" of the ObjectType field. +func (o *StorageNetAppNonDataIpInterfaceEvent) GetDefaultObjectType() interface{} { + return "storage.NetAppNonDataIpInterfaceEvent" +} + // GetIpInterface returns the IpInterface field value if set, zero value otherwise (both if not set or set to explicit null). func (o *StorageNetAppNonDataIpInterfaceEvent) GetIpInterface() StorageNetAppNonDataIpInterfaceRelationship { if o == nil || IsNil(o.IpInterface.Get()) { @@ -166,7 +176,13 @@ func (o StorageNetAppNonDataIpInterfaceEvent) ToMap() (map[string]interface{}, e if errStorageNetAppBaseEvent != nil { return map[string]interface{}{}, errStorageNetAppBaseEvent } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.IpInterface.IsSet() { toSerialize["IpInterface"] = o.IpInterface.Get() @@ -188,6 +204,13 @@ func (o *StorageNetAppNonDataIpInterfaceEvent) UnmarshalJSON(data []byte) (err e "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -197,11 +220,23 @@ func (o *StorageNetAppNonDataIpInterfaceEvent) UnmarshalJSON(data []byte) (err e } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type StorageNetAppNonDataIpInterfaceEventWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_storage_net_app_non_data_ip_interface_event_list.go b/model_storage_net_app_non_data_ip_interface_event_list.go index 805d9aee4e..86dea6a20e 100644 --- a/model_storage_net_app_non_data_ip_interface_event_list.go +++ b/model_storage_net_app_non_data_ip_interface_event_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *StorageNetAppNonDataIpInterfaceEventList) GetResultsOk() ([]StorageNetA // HasResults returns a boolean if a field has been set. func (o *StorageNetAppNonDataIpInterfaceEventList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *StorageNetAppNonDataIpInterfaceEventList) UnmarshalJSON(data []byte) (e "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *StorageNetAppNonDataIpInterfaceEventList) UnmarshalJSON(data []byte) (e } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type StorageNetAppNonDataIpInterfaceEventListWithoutEmbeddedStruct struct { // The total number of 'storage.NetAppNonDataIpInterfaceEvent' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_storage_net_app_non_data_ip_interface_event_relationship.go b/model_storage_net_app_non_data_ip_interface_event_relationship.go index 6af126749e..4c8bcca672 100644 --- a/model_storage_net_app_non_data_ip_interface_event_relationship.go +++ b/model_storage_net_app_non_data_ip_interface_event_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_storage_net_app_non_data_ip_interface_event_response.go b/model_storage_net_app_non_data_ip_interface_event_response.go index 36f68b853b..5dbe5096de 100644 --- a/model_storage_net_app_non_data_ip_interface_event_response.go +++ b/model_storage_net_app_non_data_ip_interface_event_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_storage_net_app_non_data_ip_interface_list.go b/model_storage_net_app_non_data_ip_interface_list.go index 0fcd4f24d7..716150e993 100644 --- a/model_storage_net_app_non_data_ip_interface_list.go +++ b/model_storage_net_app_non_data_ip_interface_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *StorageNetAppNonDataIpInterfaceList) GetResultsOk() ([]StorageNetAppNon // HasResults returns a boolean if a field has been set. func (o *StorageNetAppNonDataIpInterfaceList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *StorageNetAppNonDataIpInterfaceList) UnmarshalJSON(data []byte) (err er "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *StorageNetAppNonDataIpInterfaceList) UnmarshalJSON(data []byte) (err er } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type StorageNetAppNonDataIpInterfaceListWithoutEmbeddedStruct struct { // The total number of 'storage.NetAppNonDataIpInterface' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_storage_net_app_non_data_ip_interface_relationship.go b/model_storage_net_app_non_data_ip_interface_relationship.go index 250ebb5a41..8b288acc88 100644 --- a/model_storage_net_app_non_data_ip_interface_relationship.go +++ b/model_storage_net_app_non_data_ip_interface_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_storage_net_app_non_data_ip_interface_response.go b/model_storage_net_app_non_data_ip_interface_response.go index 6a456000e4..3f40f02501 100644 --- a/model_storage_net_app_non_data_ip_interface_response.go +++ b/model_storage_net_app_non_data_ip_interface_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_storage_net_app_ntp_server.go b/model_storage_net_app_ntp_server.go index 26d17b3a8e..5543536647 100644 --- a/model_storage_net_app_ntp_server.go +++ b/model_storage_net_app_ntp_server.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -34,7 +34,7 @@ type StorageNetAppNtpServer struct { // NTP symmetric authentication key identifier or index number (ID). AuthenticationKeyId *string `json:"AuthenticationKeyId,omitempty"` // Unique identity of the device. - ClusterUuid *string `json:"ClusterUuid,omitempty"` + ClusterUuid *string `json:"ClusterUuid,omitempty" validate:"regexp=^$|^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"` // Indicates whether or not NTP symmetric authentication is enabled. IsAuthenticationEnabled *string `json:"IsAuthenticationEnabled,omitempty"` // NTP server host name, IPv4, or IPv6 address. @@ -94,6 +94,11 @@ func (o *StorageNetAppNtpServer) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "storage.NetAppNtpServer" of the ClassId field. +func (o *StorageNetAppNtpServer) GetDefaultClassId() interface{} { + return "storage.NetAppNtpServer" +} + // GetObjectType returns the ObjectType field value func (o *StorageNetAppNtpServer) GetObjectType() string { if o == nil { @@ -118,6 +123,11 @@ func (o *StorageNetAppNtpServer) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "storage.NetAppNtpServer" of the ObjectType field. +func (o *StorageNetAppNtpServer) GetDefaultObjectType() interface{} { + return "storage.NetAppNtpServer" +} + // GetAuthenticationEnabled returns the AuthenticationEnabled field value if set, zero value otherwise. // Deprecated func (o *StorageNetAppNtpServer) GetAuthenticationEnabled() bool { @@ -374,7 +384,13 @@ func (o StorageNetAppNtpServer) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.AuthenticationEnabled) { toSerialize["AuthenticationEnabled"] = o.AuthenticationEnabled @@ -414,6 +430,13 @@ func (o *StorageNetAppNtpServer) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -423,11 +446,23 @@ func (o *StorageNetAppNtpServer) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type StorageNetAppNtpServerWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` @@ -439,7 +474,7 @@ func (o *StorageNetAppNtpServer) UnmarshalJSON(data []byte) (err error) { // NTP symmetric authentication key identifier or index number (ID). AuthenticationKeyId *string `json:"AuthenticationKeyId,omitempty"` // Unique identity of the device. - ClusterUuid *string `json:"ClusterUuid,omitempty"` + ClusterUuid *string `json:"ClusterUuid,omitempty" validate:"regexp=^$|^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"` // Indicates whether or not NTP symmetric authentication is enabled. IsAuthenticationEnabled *string `json:"IsAuthenticationEnabled,omitempty"` // NTP server host name, IPv4, or IPv6 address. diff --git a/model_storage_net_app_ntp_server_list.go b/model_storage_net_app_ntp_server_list.go index 7648463122..eb56354e1b 100644 --- a/model_storage_net_app_ntp_server_list.go +++ b/model_storage_net_app_ntp_server_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *StorageNetAppNtpServerList) GetResultsOk() ([]StorageNetAppNtpServer, b // HasResults returns a boolean if a field has been set. func (o *StorageNetAppNtpServerList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *StorageNetAppNtpServerList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *StorageNetAppNtpServerList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type StorageNetAppNtpServerListWithoutEmbeddedStruct struct { // The total number of 'storage.NetAppNtpServer' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_storage_net_app_ntp_server_response.go b/model_storage_net_app_ntp_server_response.go index cf550782d7..8a8e4130e5 100644 --- a/model_storage_net_app_ntp_server_response.go +++ b/model_storage_net_app_ntp_server_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_storage_net_app_performance_metrics_average.go b/model_storage_net_app_performance_metrics_average.go index 5cbc719285..6c25763e35 100644 --- a/model_storage_net_app_performance_metrics_average.go +++ b/model_storage_net_app_performance_metrics_average.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -83,6 +83,13 @@ func (o *StorageNetAppPerformanceMetricsAverage) UnmarshalJSON(data []byte) (err "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -92,11 +99,23 @@ func (o *StorageNetAppPerformanceMetricsAverage) UnmarshalJSON(data []byte) (err } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type StorageNetAppPerformanceMetricsAverageWithoutEmbeddedStruct struct { } diff --git a/model_storage_net_app_port.go b/model_storage_net_app_port.go index 44159c7e6f..05cb4ccf7f 100644 --- a/model_storage_net_app_port.go +++ b/model_storage_net_app_port.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -86,6 +86,11 @@ func (o *StorageNetAppPort) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "storage.NetAppPort" of the ClassId field. +func (o *StorageNetAppPort) GetDefaultClassId() interface{} { + return "storage.NetAppPort" +} + // GetObjectType returns the ObjectType field value func (o *StorageNetAppPort) GetObjectType() string { if o == nil { @@ -110,6 +115,11 @@ func (o *StorageNetAppPort) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "storage.NetAppPort" of the ObjectType field. +func (o *StorageNetAppPort) GetDefaultObjectType() interface{} { + return "storage.NetAppPort" +} + // GetName returns the Name field value if set, zero value otherwise. func (o *StorageNetAppPort) GetName() string { if o == nil || IsNil(o.Name) { @@ -224,7 +234,13 @@ func (o StorageNetAppPort) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Name) { toSerialize["Name"] = o.Name @@ -252,6 +268,13 @@ func (o *StorageNetAppPort) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -261,11 +284,23 @@ func (o *StorageNetAppPort) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type StorageNetAppPortWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_storage_net_app_qtree.go b/model_storage_net_app_qtree.go index 9f9632e13a..b469ce7401 100644 --- a/model_storage_net_app_qtree.go +++ b/model_storage_net_app_qtree.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -45,7 +45,7 @@ type StorageNetAppQtree struct { // The parent volume name for the qtree. VolumeName *string `json:"VolumeName,omitempty"` // NetApp Volume uuid, unique identifier for the NetApp volume. - VolumeUuid *string `json:"VolumeUuid,omitempty"` + VolumeUuid *string `json:"VolumeUuid,omitempty" validate:"regexp=^$|^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"` StorageContainer NullableStorageNetAppVolumeRelationship `json:"StorageContainer,omitempty"` Tenant NullableStorageNetAppStorageVmRelationship `json:"Tenant,omitempty"` AdditionalProperties map[string]interface{} @@ -100,6 +100,11 @@ func (o *StorageNetAppQtree) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "storage.NetAppQtree" of the ClassId field. +func (o *StorageNetAppQtree) GetDefaultClassId() interface{} { + return "storage.NetAppQtree" +} + // GetObjectType returns the ObjectType field value func (o *StorageNetAppQtree) GetObjectType() string { if o == nil { @@ -124,6 +129,11 @@ func (o *StorageNetAppQtree) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "storage.NetAppQtree" of the ObjectType field. +func (o *StorageNetAppQtree) GetDefaultObjectType() interface{} { + return "storage.NetAppQtree" +} + // GetExportPolicyId returns the ExportPolicyId field value if set, zero value otherwise. func (o *StorageNetAppQtree) GetExportPolicyId() string { if o == nil || IsNil(o.ExportPolicyId) { @@ -516,7 +526,13 @@ func (o StorageNetAppQtree) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.ExportPolicyId) { toSerialize["ExportPolicyId"] = o.ExportPolicyId @@ -568,6 +584,13 @@ func (o *StorageNetAppQtree) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -577,11 +600,23 @@ func (o *StorageNetAppQtree) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type StorageNetAppQtreeWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` @@ -604,7 +639,7 @@ func (o *StorageNetAppQtree) UnmarshalJSON(data []byte) (err error) { // The parent volume name for the qtree. VolumeName *string `json:"VolumeName,omitempty"` // NetApp Volume uuid, unique identifier for the NetApp volume. - VolumeUuid *string `json:"VolumeUuid,omitempty"` + VolumeUuid *string `json:"VolumeUuid,omitempty" validate:"regexp=^$|^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"` StorageContainer NullableStorageNetAppVolumeRelationship `json:"StorageContainer,omitempty"` Tenant NullableStorageNetAppStorageVmRelationship `json:"Tenant,omitempty"` } diff --git a/model_storage_net_app_qtree_list.go b/model_storage_net_app_qtree_list.go index 1f4072c35b..8bc690ca4f 100644 --- a/model_storage_net_app_qtree_list.go +++ b/model_storage_net_app_qtree_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *StorageNetAppQtreeList) GetResultsOk() ([]StorageNetAppQtree, bool) { // HasResults returns a boolean if a field has been set. func (o *StorageNetAppQtreeList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *StorageNetAppQtreeList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *StorageNetAppQtreeList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type StorageNetAppQtreeListWithoutEmbeddedStruct struct { // The total number of 'storage.NetAppQtree' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_storage_net_app_qtree_response.go b/model_storage_net_app_qtree_response.go index a900a4ac84..82e48c238c 100644 --- a/model_storage_net_app_qtree_response.go +++ b/model_storage_net_app_qtree_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_storage_net_app_schedule.go b/model_storage_net_app_schedule.go index 0c7ef93860..92e69428ed 100644 --- a/model_storage_net_app_schedule.go +++ b/model_storage_net_app_schedule.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -33,7 +33,7 @@ type StorageNetAppSchedule struct { // The type of the schedule (cron or interval). Type *string `json:"Type,omitempty"` // Universally unique identifier of the schedule. - Uuid *string `json:"Uuid,omitempty"` + Uuid *string `json:"Uuid,omitempty" validate:"regexp=^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"` Array NullableStorageNetAppClusterRelationship `json:"Array,omitempty"` AdditionalProperties map[string]interface{} } @@ -87,6 +87,11 @@ func (o *StorageNetAppSchedule) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "storage.NetAppSchedule" of the ClassId field. +func (o *StorageNetAppSchedule) GetDefaultClassId() interface{} { + return "storage.NetAppSchedule" +} + // GetObjectType returns the ObjectType field value func (o *StorageNetAppSchedule) GetObjectType() string { if o == nil { @@ -111,6 +116,11 @@ func (o *StorageNetAppSchedule) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "storage.NetAppSchedule" of the ObjectType field. +func (o *StorageNetAppSchedule) GetDefaultObjectType() interface{} { + return "storage.NetAppSchedule" +} + // GetName returns the Name field value if set, zero value otherwise. func (o *StorageNetAppSchedule) GetName() string { if o == nil || IsNil(o.Name) { @@ -268,7 +278,13 @@ func (o StorageNetAppSchedule) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Name) { toSerialize["Name"] = o.Name @@ -299,6 +315,13 @@ func (o *StorageNetAppSchedule) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -308,11 +331,23 @@ func (o *StorageNetAppSchedule) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type StorageNetAppScheduleWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` @@ -323,7 +358,7 @@ func (o *StorageNetAppSchedule) UnmarshalJSON(data []byte) (err error) { // The type of the schedule (cron or interval). Type *string `json:"Type,omitempty"` // Universally unique identifier of the schedule. - Uuid *string `json:"Uuid,omitempty"` + Uuid *string `json:"Uuid,omitempty" validate:"regexp=^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"` Array NullableStorageNetAppClusterRelationship `json:"Array,omitempty"` } diff --git a/model_storage_net_app_schedule_list.go b/model_storage_net_app_schedule_list.go index 0ba53a5845..80965450f3 100644 --- a/model_storage_net_app_schedule_list.go +++ b/model_storage_net_app_schedule_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *StorageNetAppScheduleList) GetResultsOk() ([]StorageNetAppSchedule, boo // HasResults returns a boolean if a field has been set. func (o *StorageNetAppScheduleList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *StorageNetAppScheduleList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *StorageNetAppScheduleList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type StorageNetAppScheduleListWithoutEmbeddedStruct struct { // The total number of 'storage.NetAppSchedule' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_storage_net_app_schedule_response.go b/model_storage_net_app_schedule_response.go index 01e25b7e81..f92be3a915 100644 --- a/model_storage_net_app_schedule_response.go +++ b/model_storage_net_app_schedule_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_storage_net_app_sensor.go b/model_storage_net_app_sensor.go index 8b9c78bd2d..92ab3dd566 100644 --- a/model_storage_net_app_sensor.go +++ b/model_storage_net_app_sensor.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -81,6 +81,11 @@ func (o *StorageNetAppSensor) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "storage.NetAppSensor" of the ClassId field. +func (o *StorageNetAppSensor) GetDefaultClassId() interface{} { + return "storage.NetAppSensor" +} + // GetObjectType returns the ObjectType field value func (o *StorageNetAppSensor) GetObjectType() string { if o == nil { @@ -105,6 +110,11 @@ func (o *StorageNetAppSensor) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "storage.NetAppSensor" of the ObjectType field. +func (o *StorageNetAppSensor) GetDefaultObjectType() interface{} { + return "storage.NetAppSensor" +} + // GetArrayController returns the ArrayController field value if set, zero value otherwise (both if not set or set to explicit null). func (o *StorageNetAppSensor) GetArrayController() StorageNetAppNodeRelationship { if o == nil || IsNil(o.ArrayController.Get()) { @@ -166,7 +176,13 @@ func (o StorageNetAppSensor) ToMap() (map[string]interface{}, error) { if errEquipmentBaseSensor != nil { return map[string]interface{}{}, errEquipmentBaseSensor } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.ArrayController.IsSet() { toSerialize["ArrayController"] = o.ArrayController.Get() @@ -188,6 +204,13 @@ func (o *StorageNetAppSensor) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -197,11 +220,23 @@ func (o *StorageNetAppSensor) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type StorageNetAppSensorWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_storage_net_app_sensor_list.go b/model_storage_net_app_sensor_list.go index 8c8279bbf7..ba41531796 100644 --- a/model_storage_net_app_sensor_list.go +++ b/model_storage_net_app_sensor_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *StorageNetAppSensorList) GetResultsOk() ([]StorageNetAppSensor, bool) { // HasResults returns a boolean if a field has been set. func (o *StorageNetAppSensorList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *StorageNetAppSensorList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *StorageNetAppSensorList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type StorageNetAppSensorListWithoutEmbeddedStruct struct { // The total number of 'storage.NetAppSensor' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_storage_net_app_sensor_response.go b/model_storage_net_app_sensor_response.go index 05bb743190..ef9512a894 100644 --- a/model_storage_net_app_sensor_response.go +++ b/model_storage_net_app_sensor_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_storage_net_app_snap_mirror_relationship.go b/model_storage_net_app_snap_mirror_relationship.go index da55e78d6a..da2e714e24 100644 --- a/model_storage_net_app_snap_mirror_relationship.go +++ b/model_storage_net_app_snap_mirror_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -39,13 +39,13 @@ type StorageNetAppSnapMirrorRelationship struct { // SnapMirror policy type can be async, sync, or continuous. PolicyType *string `json:"PolicyType,omitempty"` // Uuid of the NetApp SnapMirror policy. - PolicyUuid *string `json:"PolicyUuid,omitempty"` + PolicyUuid *string `json:"PolicyUuid,omitempty" validate:"regexp=^$|^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"` // Path to the source endpoint of a SnapMirror relationship. Examples: ONTAP FlexVol/FlexGroup - svm1:volume1; ONTAP SVM - svm1: ; ONTAP Consistency Group - svm1:/cg/cg_name. SourcePath *string `json:"SourcePath,omitempty"` // State of the relationship. State *string `json:"State,omitempty"` // Uuid of the NetApp SnapMirror relationship. - Uuid *string `json:"Uuid,omitempty"` + Uuid *string `json:"Uuid,omitempty" validate:"regexp=^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"` Array NullableStorageNetAppClusterRelationship `json:"Array,omitempty"` DestinationTenant NullableStorageNetAppStorageVmRelationship `json:"DestinationTenant,omitempty"` Policy NullableStorageNetAppBaseSnapMirrorPolicyRelationship `json:"Policy,omitempty"` @@ -101,6 +101,11 @@ func (o *StorageNetAppSnapMirrorRelationship) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "storage.NetAppSnapMirrorRelationship" of the ClassId field. +func (o *StorageNetAppSnapMirrorRelationship) GetDefaultClassId() interface{} { + return "storage.NetAppSnapMirrorRelationship" +} + // GetObjectType returns the ObjectType field value func (o *StorageNetAppSnapMirrorRelationship) GetObjectType() string { if o == nil { @@ -125,6 +130,11 @@ func (o *StorageNetAppSnapMirrorRelationship) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "storage.NetAppSnapMirrorRelationship" of the ObjectType field. +func (o *StorageNetAppSnapMirrorRelationship) GetDefaultObjectType() interface{} { + return "storage.NetAppSnapMirrorRelationship" +} + // GetDestinationPath returns the DestinationPath field value if set, zero value otherwise. func (o *StorageNetAppSnapMirrorRelationship) GetDestinationPath() string { if o == nil || IsNil(o.DestinationPath) { @@ -560,7 +570,13 @@ func (o StorageNetAppSnapMirrorRelationship) ToMap() (map[string]interface{}, er if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.DestinationPath) { toSerialize["DestinationPath"] = o.DestinationPath @@ -615,6 +631,13 @@ func (o *StorageNetAppSnapMirrorRelationship) UnmarshalJSON(data []byte) (err er "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -624,11 +647,23 @@ func (o *StorageNetAppSnapMirrorRelationship) UnmarshalJSON(data []byte) (err er } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type StorageNetAppSnapMirrorRelationshipWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` @@ -645,13 +680,13 @@ func (o *StorageNetAppSnapMirrorRelationship) UnmarshalJSON(data []byte) (err er // SnapMirror policy type can be async, sync, or continuous. PolicyType *string `json:"PolicyType,omitempty"` // Uuid of the NetApp SnapMirror policy. - PolicyUuid *string `json:"PolicyUuid,omitempty"` + PolicyUuid *string `json:"PolicyUuid,omitempty" validate:"regexp=^$|^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"` // Path to the source endpoint of a SnapMirror relationship. Examples: ONTAP FlexVol/FlexGroup - svm1:volume1; ONTAP SVM - svm1: ; ONTAP Consistency Group - svm1:/cg/cg_name. SourcePath *string `json:"SourcePath,omitempty"` // State of the relationship. State *string `json:"State,omitempty"` // Uuid of the NetApp SnapMirror relationship. - Uuid *string `json:"Uuid,omitempty"` + Uuid *string `json:"Uuid,omitempty" validate:"regexp=^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"` Array NullableStorageNetAppClusterRelationship `json:"Array,omitempty"` DestinationTenant NullableStorageNetAppStorageVmRelationship `json:"DestinationTenant,omitempty"` Policy NullableStorageNetAppBaseSnapMirrorPolicyRelationship `json:"Policy,omitempty"` diff --git a/model_storage_net_app_snap_mirror_relationship_list.go b/model_storage_net_app_snap_mirror_relationship_list.go index e456625fd9..d5a72ddf70 100644 --- a/model_storage_net_app_snap_mirror_relationship_list.go +++ b/model_storage_net_app_snap_mirror_relationship_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *StorageNetAppSnapMirrorRelationshipList) GetResultsOk() ([]StorageNetAp // HasResults returns a boolean if a field has been set. func (o *StorageNetAppSnapMirrorRelationshipList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *StorageNetAppSnapMirrorRelationshipList) UnmarshalJSON(data []byte) (er "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *StorageNetAppSnapMirrorRelationshipList) UnmarshalJSON(data []byte) (er } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type StorageNetAppSnapMirrorRelationshipListWithoutEmbeddedStruct struct { // The total number of 'storage.NetAppSnapMirrorRelationship' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_storage_net_app_snap_mirror_relationship_response.go b/model_storage_net_app_snap_mirror_relationship_response.go index de2cdf5547..812cbdf686 100644 --- a/model_storage_net_app_snap_mirror_relationship_response.go +++ b/model_storage_net_app_snap_mirror_relationship_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_storage_net_app_snapshot_policy_schedule.go b/model_storage_net_app_snapshot_policy_schedule.go index 476d1c4f3f..2d8e94eb3a 100644 --- a/model_storage_net_app_snapshot_policy_schedule.go +++ b/model_storage_net_app_snapshot_policy_schedule.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -86,6 +86,11 @@ func (o *StorageNetAppSnapshotPolicySchedule) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "storage.NetAppSnapshotPolicySchedule" of the ClassId field. +func (o *StorageNetAppSnapshotPolicySchedule) GetDefaultClassId() interface{} { + return "storage.NetAppSnapshotPolicySchedule" +} + // GetObjectType returns the ObjectType field value func (o *StorageNetAppSnapshotPolicySchedule) GetObjectType() string { if o == nil { @@ -110,6 +115,11 @@ func (o *StorageNetAppSnapshotPolicySchedule) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "storage.NetAppSnapshotPolicySchedule" of the ObjectType field. +func (o *StorageNetAppSnapshotPolicySchedule) GetDefaultObjectType() interface{} { + return "storage.NetAppSnapshotPolicySchedule" +} + // GetCount returns the Count field value if set, zero value otherwise. func (o *StorageNetAppSnapshotPolicySchedule) GetCount() int64 { if o == nil || IsNil(o.Count) { @@ -224,7 +234,13 @@ func (o StorageNetAppSnapshotPolicySchedule) ToMap() (map[string]interface{}, er if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Count) { toSerialize["Count"] = o.Count @@ -252,6 +268,13 @@ func (o *StorageNetAppSnapshotPolicySchedule) UnmarshalJSON(data []byte) (err er "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -261,11 +284,23 @@ func (o *StorageNetAppSnapshotPolicySchedule) UnmarshalJSON(data []byte) (err er } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type StorageNetAppSnapshotPolicyScheduleWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_storage_net_app_storage_cluster_efficiency.go b/model_storage_net_app_storage_cluster_efficiency.go index 68a88cff42..77a8488fa1 100644 --- a/model_storage_net_app_storage_cluster_efficiency.go +++ b/model_storage_net_app_storage_cluster_efficiency.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -86,6 +86,11 @@ func (o *StorageNetAppStorageClusterEfficiency) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "storage.NetAppStorageClusterEfficiency" of the ClassId field. +func (o *StorageNetAppStorageClusterEfficiency) GetDefaultClassId() interface{} { + return "storage.NetAppStorageClusterEfficiency" +} + // GetObjectType returns the ObjectType field value func (o *StorageNetAppStorageClusterEfficiency) GetObjectType() string { if o == nil { @@ -110,6 +115,11 @@ func (o *StorageNetAppStorageClusterEfficiency) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "storage.NetAppStorageClusterEfficiency" of the ObjectType field. +func (o *StorageNetAppStorageClusterEfficiency) GetDefaultObjectType() interface{} { + return "storage.NetAppStorageClusterEfficiency" +} + // GetLogicalUsed returns the LogicalUsed field value if set, zero value otherwise. func (o *StorageNetAppStorageClusterEfficiency) GetLogicalUsed() int64 { if o == nil || IsNil(o.LogicalUsed) { @@ -224,7 +234,13 @@ func (o StorageNetAppStorageClusterEfficiency) ToMap() (map[string]interface{}, if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.LogicalUsed) { toSerialize["LogicalUsed"] = o.LogicalUsed @@ -252,6 +268,13 @@ func (o *StorageNetAppStorageClusterEfficiency) UnmarshalJSON(data []byte) (err "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -261,11 +284,23 @@ func (o *StorageNetAppStorageClusterEfficiency) UnmarshalJSON(data []byte) (err } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type StorageNetAppStorageClusterEfficiencyWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_storage_net_app_storage_utilization.go b/model_storage_net_app_storage_utilization.go index 65c4b6ba4b..8231b12c23 100644 --- a/model_storage_net_app_storage_utilization.go +++ b/model_storage_net_app_storage_utilization.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -84,6 +84,11 @@ func (o *StorageNetAppStorageUtilization) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "storage.NetAppStorageUtilization" of the ClassId field. +func (o *StorageNetAppStorageUtilization) GetDefaultClassId() interface{} { + return "storage.NetAppStorageUtilization" +} + // GetObjectType returns the ObjectType field value func (o *StorageNetAppStorageUtilization) GetObjectType() string { if o == nil { @@ -108,6 +113,11 @@ func (o *StorageNetAppStorageUtilization) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "storage.NetAppStorageUtilization" of the ObjectType field. +func (o *StorageNetAppStorageUtilization) GetDefaultObjectType() interface{} { + return "storage.NetAppStorageUtilization" +} + // GetLogicalUsed returns the LogicalUsed field value if set, zero value otherwise. func (o *StorageNetAppStorageUtilization) GetLogicalUsed() int64 { if o == nil || IsNil(o.LogicalUsed) { @@ -190,7 +200,13 @@ func (o StorageNetAppStorageUtilization) ToMap() (map[string]interface{}, error) if errStorageBaseCapacity != nil { return map[string]interface{}{}, errStorageBaseCapacity } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.LogicalUsed) { toSerialize["LogicalUsed"] = o.LogicalUsed @@ -215,6 +231,13 @@ func (o *StorageNetAppStorageUtilization) UnmarshalJSON(data []byte) (err error) "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -224,11 +247,23 @@ func (o *StorageNetAppStorageUtilization) UnmarshalJSON(data []byte) (err error) } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type StorageNetAppStorageUtilizationWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_storage_net_app_storage_vm.go b/model_storage_net_app_storage_vm.go index 0196dc3835..3b946c0d41 100644 --- a/model_storage_net_app_storage_vm.go +++ b/model_storage_net_app_storage_vm.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -109,6 +109,11 @@ func (o *StorageNetAppStorageVm) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "storage.NetAppStorageVm" of the ClassId field. +func (o *StorageNetAppStorageVm) GetDefaultClassId() interface{} { + return "storage.NetAppStorageVm" +} + // GetObjectType returns the ObjectType field value func (o *StorageNetAppStorageVm) GetObjectType() string { if o == nil { @@ -133,6 +138,11 @@ func (o *StorageNetAppStorageVm) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "storage.NetAppStorageVm" of the ObjectType field. +func (o *StorageNetAppStorageVm) GetDefaultObjectType() interface{} { + return "storage.NetAppStorageVm" +} + // GetAggregates returns the Aggregates field value if set, zero value otherwise (both if not set or set to explicit null). func (o *StorageNetAppStorageVm) GetAggregates() []string { if o == nil { @@ -154,7 +164,7 @@ func (o *StorageNetAppStorageVm) GetAggregatesOk() ([]string, bool) { // HasAggregates returns a boolean if a field has been set. func (o *StorageNetAppStorageVm) HasAggregates() bool { - if o != nil && IsNil(o.Aggregates) { + if o != nil && !IsNil(o.Aggregates) { return true } @@ -251,7 +261,7 @@ func (o *StorageNetAppStorageVm) GetDnsDomainsOk() ([]string, bool) { // HasDnsDomains returns a boolean if a field has been set. func (o *StorageNetAppStorageVm) HasDnsDomains() bool { - if o != nil && IsNil(o.DnsDomains) { + if o != nil && !IsNil(o.DnsDomains) { return true } @@ -444,7 +454,7 @@ func (o *StorageNetAppStorageVm) GetNameServersOk() ([]string, bool) { // HasNameServers returns a boolean if a field has been set. func (o *StorageNetAppStorageVm) HasNameServers() bool { - if o != nil && IsNil(o.NameServers) { + if o != nil && !IsNil(o.NameServers) { return true } @@ -648,7 +658,7 @@ func (o *StorageNetAppStorageVm) GetDiskPoolOk() ([]StorageNetAppAggregateRelati // HasDiskPool returns a boolean if a field has been set. func (o *StorageNetAppStorageVm) HasDiskPool() bool { - if o != nil && IsNil(o.DiskPool) { + if o != nil && !IsNil(o.DiskPool) { return true } @@ -681,7 +691,7 @@ func (o *StorageNetAppStorageVm) GetEventsOk() ([]StorageNetAppSvmEventRelations // HasEvents returns a boolean if a field has been set. func (o *StorageNetAppStorageVm) HasEvents() bool { - if o != nil && IsNil(o.Events) { + if o != nil && !IsNil(o.Events) { return true } @@ -711,7 +721,13 @@ func (o StorageNetAppStorageVm) ToMap() (map[string]interface{}, error) { if errStorageBaseTenant != nil { return map[string]interface{}{}, errStorageBaseTenant } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.Aggregates != nil { toSerialize["Aggregates"] = o.Aggregates @@ -781,6 +797,13 @@ func (o *StorageNetAppStorageVm) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -790,11 +813,23 @@ func (o *StorageNetAppStorageVm) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type StorageNetAppStorageVmWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_storage_net_app_storage_vm_list.go b/model_storage_net_app_storage_vm_list.go index 22a79c7795..b2d352fcc9 100644 --- a/model_storage_net_app_storage_vm_list.go +++ b/model_storage_net_app_storage_vm_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *StorageNetAppStorageVmList) GetResultsOk() ([]StorageNetAppStorageVm, b // HasResults returns a boolean if a field has been set. func (o *StorageNetAppStorageVmList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *StorageNetAppStorageVmList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *StorageNetAppStorageVmList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type StorageNetAppStorageVmListWithoutEmbeddedStruct struct { // The total number of 'storage.NetAppStorageVm' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_storage_net_app_storage_vm_relationship.go b/model_storage_net_app_storage_vm_relationship.go index e60f9be60a..cbbcce122c 100644 --- a/model_storage_net_app_storage_vm_relationship.go +++ b/model_storage_net_app_storage_vm_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_storage_net_app_storage_vm_response.go b/model_storage_net_app_storage_vm_response.go index 7e18fbab4a..0aed52096e 100644 --- a/model_storage_net_app_storage_vm_response.go +++ b/model_storage_net_app_storage_vm_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_storage_net_app_svm_event.go b/model_storage_net_app_svm_event.go index f982a85b5d..b547f113ee 100644 --- a/model_storage_net_app_svm_event.go +++ b/model_storage_net_app_svm_event.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -81,6 +81,11 @@ func (o *StorageNetAppSvmEvent) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "storage.NetAppSvmEvent" of the ClassId field. +func (o *StorageNetAppSvmEvent) GetDefaultClassId() interface{} { + return "storage.NetAppSvmEvent" +} + // GetObjectType returns the ObjectType field value func (o *StorageNetAppSvmEvent) GetObjectType() string { if o == nil { @@ -105,6 +110,11 @@ func (o *StorageNetAppSvmEvent) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "storage.NetAppSvmEvent" of the ObjectType field. +func (o *StorageNetAppSvmEvent) GetDefaultObjectType() interface{} { + return "storage.NetAppSvmEvent" +} + // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). func (o *StorageNetAppSvmEvent) GetTenant() StorageNetAppStorageVmRelationship { if o == nil || IsNil(o.Tenant.Get()) { @@ -166,7 +176,13 @@ func (o StorageNetAppSvmEvent) ToMap() (map[string]interface{}, error) { if errStorageNetAppBaseEvent != nil { return map[string]interface{}{}, errStorageNetAppBaseEvent } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.Tenant.IsSet() { toSerialize["Tenant"] = o.Tenant.Get() @@ -188,6 +204,13 @@ func (o *StorageNetAppSvmEvent) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -197,11 +220,23 @@ func (o *StorageNetAppSvmEvent) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type StorageNetAppSvmEventWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_storage_net_app_svm_event_list.go b/model_storage_net_app_svm_event_list.go index 9ca2b1cc4c..3018b1a72c 100644 --- a/model_storage_net_app_svm_event_list.go +++ b/model_storage_net_app_svm_event_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *StorageNetAppSvmEventList) GetResultsOk() ([]StorageNetAppSvmEvent, boo // HasResults returns a boolean if a field has been set. func (o *StorageNetAppSvmEventList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *StorageNetAppSvmEventList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *StorageNetAppSvmEventList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type StorageNetAppSvmEventListWithoutEmbeddedStruct struct { // The total number of 'storage.NetAppSvmEvent' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_storage_net_app_svm_event_relationship.go b/model_storage_net_app_svm_event_relationship.go index 60eefb981e..c82230b6d4 100644 --- a/model_storage_net_app_svm_event_relationship.go +++ b/model_storage_net_app_svm_event_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_storage_net_app_svm_event_response.go b/model_storage_net_app_svm_event_response.go index 340a96bfaf..2604de5dce 100644 --- a/model_storage_net_app_svm_event_response.go +++ b/model_storage_net_app_svm_event_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_storage_net_app_svm_snap_mirror_policy.go b/model_storage_net_app_svm_snap_mirror_policy.go index 2dfdf15b9c..3422d978c6 100644 --- a/model_storage_net_app_svm_snap_mirror_policy.go +++ b/model_storage_net_app_svm_snap_mirror_policy.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -83,6 +83,11 @@ func (o *StorageNetAppSvmSnapMirrorPolicy) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "storage.NetAppSvmSnapMirrorPolicy" of the ClassId field. +func (o *StorageNetAppSvmSnapMirrorPolicy) GetDefaultClassId() interface{} { + return "storage.NetAppSvmSnapMirrorPolicy" +} + // GetObjectType returns the ObjectType field value func (o *StorageNetAppSvmSnapMirrorPolicy) GetObjectType() string { if o == nil { @@ -107,6 +112,11 @@ func (o *StorageNetAppSvmSnapMirrorPolicy) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "storage.NetAppSvmSnapMirrorPolicy" of the ObjectType field. +func (o *StorageNetAppSvmSnapMirrorPolicy) GetDefaultObjectType() interface{} { + return "storage.NetAppSvmSnapMirrorPolicy" +} + // GetSvmName returns the SvmName field value if set, zero value otherwise. func (o *StorageNetAppSvmSnapMirrorPolicy) GetSvmName() string { if o == nil || IsNil(o.SvmName) { @@ -200,7 +210,13 @@ func (o StorageNetAppSvmSnapMirrorPolicy) ToMap() (map[string]interface{}, error if errStorageNetAppBaseSnapMirrorPolicy != nil { return map[string]interface{}{}, errStorageNetAppBaseSnapMirrorPolicy } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.SvmName) { toSerialize["SvmName"] = o.SvmName @@ -225,6 +241,13 @@ func (o *StorageNetAppSvmSnapMirrorPolicy) UnmarshalJSON(data []byte) (err error "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -234,11 +257,23 @@ func (o *StorageNetAppSvmSnapMirrorPolicy) UnmarshalJSON(data []byte) (err error } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type StorageNetAppSvmSnapMirrorPolicyWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_storage_net_app_svm_snap_mirror_policy_list.go b/model_storage_net_app_svm_snap_mirror_policy_list.go index 01e03485b9..ca2f43056c 100644 --- a/model_storage_net_app_svm_snap_mirror_policy_list.go +++ b/model_storage_net_app_svm_snap_mirror_policy_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *StorageNetAppSvmSnapMirrorPolicyList) GetResultsOk() ([]StorageNetAppSv // HasResults returns a boolean if a field has been set. func (o *StorageNetAppSvmSnapMirrorPolicyList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *StorageNetAppSvmSnapMirrorPolicyList) UnmarshalJSON(data []byte) (err e "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *StorageNetAppSvmSnapMirrorPolicyList) UnmarshalJSON(data []byte) (err e } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type StorageNetAppSvmSnapMirrorPolicyListWithoutEmbeddedStruct struct { // The total number of 'storage.NetAppSvmSnapMirrorPolicy' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_storage_net_app_svm_snap_mirror_policy_response.go b/model_storage_net_app_svm_snap_mirror_policy_response.go index 8219d48bde..540c6ef965 100644 --- a/model_storage_net_app_svm_snap_mirror_policy_response.go +++ b/model_storage_net_app_svm_snap_mirror_policy_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_storage_net_app_svm_snapshot_policy.go b/model_storage_net_app_svm_snapshot_policy.go index 5304c56cb6..a15e72dd7b 100644 --- a/model_storage_net_app_svm_snapshot_policy.go +++ b/model_storage_net_app_svm_snapshot_policy.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -83,6 +83,11 @@ func (o *StorageNetAppSvmSnapshotPolicy) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "storage.NetAppSvmSnapshotPolicy" of the ClassId field. +func (o *StorageNetAppSvmSnapshotPolicy) GetDefaultClassId() interface{} { + return "storage.NetAppSvmSnapshotPolicy" +} + // GetObjectType returns the ObjectType field value func (o *StorageNetAppSvmSnapshotPolicy) GetObjectType() string { if o == nil { @@ -107,6 +112,11 @@ func (o *StorageNetAppSvmSnapshotPolicy) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "storage.NetAppSvmSnapshotPolicy" of the ObjectType field. +func (o *StorageNetAppSvmSnapshotPolicy) GetDefaultObjectType() interface{} { + return "storage.NetAppSvmSnapshotPolicy" +} + // GetSvmName returns the SvmName field value if set, zero value otherwise. func (o *StorageNetAppSvmSnapshotPolicy) GetSvmName() string { if o == nil || IsNil(o.SvmName) { @@ -200,7 +210,13 @@ func (o StorageNetAppSvmSnapshotPolicy) ToMap() (map[string]interface{}, error) if errStorageNetAppBaseSnapshotPolicy != nil { return map[string]interface{}{}, errStorageNetAppBaseSnapshotPolicy } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.SvmName) { toSerialize["SvmName"] = o.SvmName @@ -225,6 +241,13 @@ func (o *StorageNetAppSvmSnapshotPolicy) UnmarshalJSON(data []byte) (err error) "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -234,11 +257,23 @@ func (o *StorageNetAppSvmSnapshotPolicy) UnmarshalJSON(data []byte) (err error) } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type StorageNetAppSvmSnapshotPolicyWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_storage_net_app_svm_snapshot_policy_list.go b/model_storage_net_app_svm_snapshot_policy_list.go index 55ce239231..9c68cec141 100644 --- a/model_storage_net_app_svm_snapshot_policy_list.go +++ b/model_storage_net_app_svm_snapshot_policy_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *StorageNetAppSvmSnapshotPolicyList) GetResultsOk() ([]StorageNetAppSvmS // HasResults returns a boolean if a field has been set. func (o *StorageNetAppSvmSnapshotPolicyList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *StorageNetAppSvmSnapshotPolicyList) UnmarshalJSON(data []byte) (err err "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *StorageNetAppSvmSnapshotPolicyList) UnmarshalJSON(data []byte) (err err } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type StorageNetAppSvmSnapshotPolicyListWithoutEmbeddedStruct struct { // The total number of 'storage.NetAppSvmSnapshotPolicy' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_storage_net_app_svm_snapshot_policy_response.go b/model_storage_net_app_svm_snapshot_policy_response.go index 8cab4bea2c..1bdf3774c6 100644 --- a/model_storage_net_app_svm_snapshot_policy_response.go +++ b/model_storage_net_app_svm_snapshot_policy_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_storage_net_app_volume.go b/model_storage_net_app_volume.go index b6a8ba2775..06bcc08335 100644 --- a/model_storage_net_app_volume.go +++ b/model_storage_net_app_volume.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -44,7 +44,7 @@ type StorageNetAppVolume struct { // The name of the Snapshot Policy. SnapshotPolicyName *string `json:"SnapshotPolicyName,omitempty"` // The UUID of the Snapshot Policy. - SnapshotPolicyUuid *string `json:"SnapshotPolicyUuid,omitempty"` + SnapshotPolicyUuid *string `json:"SnapshotPolicyUuid,omitempty" validate:"regexp=^$|^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"` // The space that has been set aside as a reserve for Snapshot copy usage represented as a percent. SnapshotReservePercent *int64 `json:"SnapshotReservePercent,omitempty"` // The total space used by Snapshot copies in the volume represented in bytes. @@ -58,7 +58,7 @@ type StorageNetAppVolume struct { // NetApp volume type. The volume type can be Read-write, Data-protection, or Load-sharing. * `data-protection` - Prevents modification of the data on the Volume. * `read-write` - Data on the Volume can be modified. * `load-sharing` - The volume type is Load Sharing DP. Type *string `json:"Type,omitempty"` // Universally unique identifier of a NetApp Volume. - Uuid *string `json:"Uuid,omitempty"` + Uuid *string `json:"Uuid,omitempty" validate:"regexp=^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"` Array NullableStorageNetAppClusterRelationship `json:"Array,omitempty"` // An array of relationships to storageNetAppAggregate resources. DiskPool []StorageNetAppAggregateRelationship `json:"DiskPool,omitempty"` @@ -117,6 +117,11 @@ func (o *StorageNetAppVolume) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "storage.NetAppVolume" of the ClassId field. +func (o *StorageNetAppVolume) GetDefaultClassId() interface{} { + return "storage.NetAppVolume" +} + // GetObjectType returns the ObjectType field value func (o *StorageNetAppVolume) GetObjectType() string { if o == nil { @@ -141,6 +146,11 @@ func (o *StorageNetAppVolume) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "storage.NetAppVolume" of the ObjectType field. +func (o *StorageNetAppVolume) GetDefaultObjectType() interface{} { + return "storage.NetAppVolume" +} + // GetAutosizeMode returns the AutosizeMode field value if set, zero value otherwise. func (o *StorageNetAppVolume) GetAutosizeMode() string { if o == nil || IsNil(o.AutosizeMode) { @@ -717,7 +727,7 @@ func (o *StorageNetAppVolume) GetDiskPoolOk() ([]StorageNetAppAggregateRelations // HasDiskPool returns a boolean if a field has been set. func (o *StorageNetAppVolume) HasDiskPool() bool { - if o != nil && IsNil(o.DiskPool) { + if o != nil && !IsNil(o.DiskPool) { return true } @@ -750,7 +760,7 @@ func (o *StorageNetAppVolume) GetEventsOk() ([]StorageNetAppVolumeEventRelations // HasEvents returns a boolean if a field has been set. func (o *StorageNetAppVolume) HasEvents() bool { - if o != nil && IsNil(o.Events) { + if o != nil && !IsNil(o.Events) { return true } @@ -823,7 +833,13 @@ func (o StorageNetAppVolume) ToMap() (map[string]interface{}, error) { if errStorageBaseStorageContainer != nil { return map[string]interface{}{}, errStorageBaseStorageContainer } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.AutosizeMode) { toSerialize["AutosizeMode"] = o.AutosizeMode @@ -902,6 +918,13 @@ func (o *StorageNetAppVolume) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -911,11 +934,23 @@ func (o *StorageNetAppVolume) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type StorageNetAppVolumeWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` @@ -937,7 +972,7 @@ func (o *StorageNetAppVolume) UnmarshalJSON(data []byte) (err error) { // The name of the Snapshot Policy. SnapshotPolicyName *string `json:"SnapshotPolicyName,omitempty"` // The UUID of the Snapshot Policy. - SnapshotPolicyUuid *string `json:"SnapshotPolicyUuid,omitempty"` + SnapshotPolicyUuid *string `json:"SnapshotPolicyUuid,omitempty" validate:"regexp=^$|^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"` // The space that has been set aside as a reserve for Snapshot copy usage represented as a percent. SnapshotReservePercent *int64 `json:"SnapshotReservePercent,omitempty"` // The total space used by Snapshot copies in the volume represented in bytes. @@ -951,7 +986,7 @@ func (o *StorageNetAppVolume) UnmarshalJSON(data []byte) (err error) { // NetApp volume type. The volume type can be Read-write, Data-protection, or Load-sharing. * `data-protection` - Prevents modification of the data on the Volume. * `read-write` - Data on the Volume can be modified. * `load-sharing` - The volume type is Load Sharing DP. Type *string `json:"Type,omitempty"` // Universally unique identifier of a NetApp Volume. - Uuid *string `json:"Uuid,omitempty"` + Uuid *string `json:"Uuid,omitempty" validate:"regexp=^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"` Array NullableStorageNetAppClusterRelationship `json:"Array,omitempty"` // An array of relationships to storageNetAppAggregate resources. DiskPool []StorageNetAppAggregateRelationship `json:"DiskPool,omitempty"` diff --git a/model_storage_net_app_volume_event.go b/model_storage_net_app_volume_event.go index ffcb711db1..1fb89bdae6 100644 --- a/model_storage_net_app_volume_event.go +++ b/model_storage_net_app_volume_event.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -81,6 +81,11 @@ func (o *StorageNetAppVolumeEvent) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "storage.NetAppVolumeEvent" of the ClassId field. +func (o *StorageNetAppVolumeEvent) GetDefaultClassId() interface{} { + return "storage.NetAppVolumeEvent" +} + // GetObjectType returns the ObjectType field value func (o *StorageNetAppVolumeEvent) GetObjectType() string { if o == nil { @@ -105,6 +110,11 @@ func (o *StorageNetAppVolumeEvent) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "storage.NetAppVolumeEvent" of the ObjectType field. +func (o *StorageNetAppVolumeEvent) GetDefaultObjectType() interface{} { + return "storage.NetAppVolumeEvent" +} + // GetVolume returns the Volume field value if set, zero value otherwise (both if not set or set to explicit null). func (o *StorageNetAppVolumeEvent) GetVolume() StorageNetAppVolumeRelationship { if o == nil || IsNil(o.Volume.Get()) { @@ -166,7 +176,13 @@ func (o StorageNetAppVolumeEvent) ToMap() (map[string]interface{}, error) { if errStorageNetAppBaseEvent != nil { return map[string]interface{}{}, errStorageNetAppBaseEvent } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.Volume.IsSet() { toSerialize["Volume"] = o.Volume.Get() @@ -188,6 +204,13 @@ func (o *StorageNetAppVolumeEvent) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -197,11 +220,23 @@ func (o *StorageNetAppVolumeEvent) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type StorageNetAppVolumeEventWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_storage_net_app_volume_event_list.go b/model_storage_net_app_volume_event_list.go index d92c957379..bf89b986b7 100644 --- a/model_storage_net_app_volume_event_list.go +++ b/model_storage_net_app_volume_event_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *StorageNetAppVolumeEventList) GetResultsOk() ([]StorageNetAppVolumeEven // HasResults returns a boolean if a field has been set. func (o *StorageNetAppVolumeEventList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *StorageNetAppVolumeEventList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *StorageNetAppVolumeEventList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type StorageNetAppVolumeEventListWithoutEmbeddedStruct struct { // The total number of 'storage.NetAppVolumeEvent' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_storage_net_app_volume_event_relationship.go b/model_storage_net_app_volume_event_relationship.go index 450ee28037..86fee71718 100644 --- a/model_storage_net_app_volume_event_relationship.go +++ b/model_storage_net_app_volume_event_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_storage_net_app_volume_event_response.go b/model_storage_net_app_volume_event_response.go index 8fa42b221a..a44f6f1803 100644 --- a/model_storage_net_app_volume_event_response.go +++ b/model_storage_net_app_volume_event_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_storage_net_app_volume_list.go b/model_storage_net_app_volume_list.go index 91b1f96a26..e629d2e51d 100644 --- a/model_storage_net_app_volume_list.go +++ b/model_storage_net_app_volume_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *StorageNetAppVolumeList) GetResultsOk() ([]StorageNetAppVolume, bool) { // HasResults returns a boolean if a field has been set. func (o *StorageNetAppVolumeList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *StorageNetAppVolumeList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *StorageNetAppVolumeList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type StorageNetAppVolumeListWithoutEmbeddedStruct struct { // The total number of 'storage.NetAppVolume' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_storage_net_app_volume_relationship.go b/model_storage_net_app_volume_relationship.go index 08acffa39c..79305ae0d3 100644 --- a/model_storage_net_app_volume_relationship.go +++ b/model_storage_net_app_volume_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_storage_net_app_volume_response.go b/model_storage_net_app_volume_response.go index 040da68116..b3d1ffdcdf 100644 --- a/model_storage_net_app_volume_response.go +++ b/model_storage_net_app_volume_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_storage_net_app_volume_snapshot.go b/model_storage_net_app_volume_snapshot.go index 43fff1ea71..8f2a7909b8 100644 --- a/model_storage_net_app_volume_snapshot.go +++ b/model_storage_net_app_volume_snapshot.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -29,7 +29,7 @@ type StorageNetAppVolumeSnapshot struct { // The fully-qualified name of the instantiated, concrete type. The value should be the same as the 'ClassId' property. ObjectType string `json:"ObjectType"` // Universally unique identifier of the volume snapshot. - Uuid *string `json:"Uuid,omitempty"` + Uuid *string `json:"Uuid,omitempty" validate:"regexp=^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"` Array NullableStorageNetAppClusterRelationship `json:"Array,omitempty"` StorageContainer NullableStorageNetAppVolumeRelationship `json:"StorageContainer,omitempty"` AdditionalProperties map[string]interface{} @@ -84,6 +84,11 @@ func (o *StorageNetAppVolumeSnapshot) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "storage.NetAppVolumeSnapshot" of the ClassId field. +func (o *StorageNetAppVolumeSnapshot) GetDefaultClassId() interface{} { + return "storage.NetAppVolumeSnapshot" +} + // GetObjectType returns the ObjectType field value func (o *StorageNetAppVolumeSnapshot) GetObjectType() string { if o == nil { @@ -108,6 +113,11 @@ func (o *StorageNetAppVolumeSnapshot) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "storage.NetAppVolumeSnapshot" of the ObjectType field. +func (o *StorageNetAppVolumeSnapshot) GetDefaultObjectType() interface{} { + return "storage.NetAppVolumeSnapshot" +} + // GetUuid returns the Uuid field value if set, zero value otherwise. func (o *StorageNetAppVolumeSnapshot) GetUuid() string { if o == nil || IsNil(o.Uuid) { @@ -244,7 +254,13 @@ func (o StorageNetAppVolumeSnapshot) ToMap() (map[string]interface{}, error) { if errStorageBaseSnapshot != nil { return map[string]interface{}{}, errStorageBaseSnapshot } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Uuid) { toSerialize["Uuid"] = o.Uuid @@ -272,6 +288,13 @@ func (o *StorageNetAppVolumeSnapshot) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -281,18 +304,30 @@ func (o *StorageNetAppVolumeSnapshot) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type StorageNetAppVolumeSnapshotWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` // The fully-qualified name of the instantiated, concrete type. The value should be the same as the 'ClassId' property. ObjectType string `json:"ObjectType"` // Universally unique identifier of the volume snapshot. - Uuid *string `json:"Uuid,omitempty"` + Uuid *string `json:"Uuid,omitempty" validate:"regexp=^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"` Array NullableStorageNetAppClusterRelationship `json:"Array,omitempty"` StorageContainer NullableStorageNetAppVolumeRelationship `json:"StorageContainer,omitempty"` } diff --git a/model_storage_net_app_volume_snapshot_list.go b/model_storage_net_app_volume_snapshot_list.go index 41bf13ba99..faf9787d72 100644 --- a/model_storage_net_app_volume_snapshot_list.go +++ b/model_storage_net_app_volume_snapshot_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *StorageNetAppVolumeSnapshotList) GetResultsOk() ([]StorageNetAppVolumeS // HasResults returns a boolean if a field has been set. func (o *StorageNetAppVolumeSnapshotList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *StorageNetAppVolumeSnapshotList) UnmarshalJSON(data []byte) (err error) "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *StorageNetAppVolumeSnapshotList) UnmarshalJSON(data []byte) (err error) } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type StorageNetAppVolumeSnapshotListWithoutEmbeddedStruct struct { // The total number of 'storage.NetAppVolumeSnapshot' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_storage_net_app_volume_snapshot_response.go b/model_storage_net_app_volume_snapshot_response.go index 4c7e2861da..024c88687d 100644 --- a/model_storage_net_app_volume_snapshot_response.go +++ b/model_storage_net_app_volume_snapshot_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_storage_nvme_dedicated_hot_spare_configuration.go b/model_storage_nvme_dedicated_hot_spare_configuration.go index a03755f0ae..e3909295ea 100644 --- a/model_storage_nvme_dedicated_hot_spare_configuration.go +++ b/model_storage_nvme_dedicated_hot_spare_configuration.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -88,6 +88,11 @@ func (o *StorageNvmeDedicatedHotSpareConfiguration) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "storage.NvmeDedicatedHotSpareConfiguration" of the ClassId field. +func (o *StorageNvmeDedicatedHotSpareConfiguration) GetDefaultClassId() interface{} { + return "storage.NvmeDedicatedHotSpareConfiguration" +} + // GetObjectType returns the ObjectType field value func (o *StorageNvmeDedicatedHotSpareConfiguration) GetObjectType() string { if o == nil { @@ -112,6 +117,11 @@ func (o *StorageNvmeDedicatedHotSpareConfiguration) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "storage.NvmeDedicatedHotSpareConfiguration" of the ObjectType field. +func (o *StorageNvmeDedicatedHotSpareConfiguration) GetDefaultObjectType() interface{} { + return "storage.NvmeDedicatedHotSpareConfiguration" +} + // GetIsNewVd returns the IsNewVd field value if set, zero value otherwise. func (o *StorageNvmeDedicatedHotSpareConfiguration) GetIsNewVd() bool { if o == nil || IsNil(o.IsNewVd) { @@ -258,7 +268,13 @@ func (o StorageNvmeDedicatedHotSpareConfiguration) ToMap() (map[string]interface if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.IsNewVd) { toSerialize["IsNewVd"] = o.IsNewVd @@ -289,6 +305,13 @@ func (o *StorageNvmeDedicatedHotSpareConfiguration) UnmarshalJSON(data []byte) ( "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -298,11 +321,23 @@ func (o *StorageNvmeDedicatedHotSpareConfiguration) UnmarshalJSON(data []byte) ( } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type StorageNvmeDedicatedHotSpareConfigurationWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_storage_nvme_physical_disk_state.go b/model_storage_nvme_physical_disk_state.go index dbe536c302..5d30b26f49 100644 --- a/model_storage_nvme_physical_disk_state.go +++ b/model_storage_nvme_physical_disk_state.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -84,6 +84,11 @@ func (o *StorageNvmePhysicalDiskState) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "storage.NvmePhysicalDiskState" of the ClassId field. +func (o *StorageNvmePhysicalDiskState) GetDefaultClassId() interface{} { + return "storage.NvmePhysicalDiskState" +} + // GetObjectType returns the ObjectType field value func (o *StorageNvmePhysicalDiskState) GetObjectType() string { if o == nil { @@ -108,6 +113,11 @@ func (o *StorageNvmePhysicalDiskState) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "storage.NvmePhysicalDiskState" of the ObjectType field. +func (o *StorageNvmePhysicalDiskState) GetDefaultObjectType() interface{} { + return "storage.NvmePhysicalDiskState" +} + // GetSlot returns the Slot field value if set, zero value otherwise. func (o *StorageNvmePhysicalDiskState) GetSlot() string { if o == nil || IsNil(o.Slot) { @@ -190,7 +200,13 @@ func (o StorageNvmePhysicalDiskState) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Slot) { toSerialize["Slot"] = o.Slot @@ -215,6 +231,13 @@ func (o *StorageNvmePhysicalDiskState) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -224,11 +247,23 @@ func (o *StorageNvmePhysicalDiskState) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type StorageNvmePhysicalDiskStateWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_storage_nvme_raid_configuration.go b/model_storage_nvme_raid_configuration.go index e0b9e5aff5..96e0b36f06 100644 --- a/model_storage_nvme_raid_configuration.go +++ b/model_storage_nvme_raid_configuration.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -88,6 +88,11 @@ func (o *StorageNvmeRaidConfiguration) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "storage.NvmeRaidConfiguration" of the ClassId field. +func (o *StorageNvmeRaidConfiguration) GetDefaultClassId() interface{} { + return "storage.NvmeRaidConfiguration" +} + // GetObjectType returns the ObjectType field value func (o *StorageNvmeRaidConfiguration) GetObjectType() string { if o == nil { @@ -112,6 +117,11 @@ func (o *StorageNvmeRaidConfiguration) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "storage.NvmeRaidConfiguration" of the ObjectType field. +func (o *StorageNvmeRaidConfiguration) GetDefaultObjectType() interface{} { + return "storage.NvmeRaidConfiguration" +} + // GetControllerDn returns the ControllerDn field value if set, zero value otherwise. func (o *StorageNvmeRaidConfiguration) GetControllerDn() string { if o == nil || IsNil(o.ControllerDn) { @@ -197,7 +207,7 @@ func (o *StorageNvmeRaidConfiguration) GetDiskStatesOk() ([]StorageNvmePhysicalD // HasDiskStates returns a boolean if a field has been set. func (o *StorageNvmeRaidConfiguration) HasDiskStates() bool { - if o != nil && IsNil(o.DiskStates) { + if o != nil && !IsNil(o.DiskStates) { return true } @@ -230,7 +240,7 @@ func (o *StorageNvmeRaidConfiguration) GetDriveGroupsOk() ([]StorageNvmeRaidDriv // HasDriveGroups returns a boolean if a field has been set. func (o *StorageNvmeRaidConfiguration) HasDriveGroups() bool { - if o != nil && IsNil(o.DriveGroups) { + if o != nil && !IsNil(o.DriveGroups) { return true } @@ -346,7 +356,13 @@ func (o StorageNvmeRaidConfiguration) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.ControllerDn) { toSerialize["ControllerDn"] = o.ControllerDn @@ -383,6 +399,13 @@ func (o *StorageNvmeRaidConfiguration) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -392,11 +415,23 @@ func (o *StorageNvmeRaidConfiguration) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type StorageNvmeRaidConfigurationWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_storage_nvme_raid_configuration_list.go b/model_storage_nvme_raid_configuration_list.go index 0d2b3ed3dd..45e88a58ed 100644 --- a/model_storage_nvme_raid_configuration_list.go +++ b/model_storage_nvme_raid_configuration_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *StorageNvmeRaidConfigurationList) GetResultsOk() ([]StorageNvmeRaidConf // HasResults returns a boolean if a field has been set. func (o *StorageNvmeRaidConfigurationList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *StorageNvmeRaidConfigurationList) UnmarshalJSON(data []byte) (err error "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *StorageNvmeRaidConfigurationList) UnmarshalJSON(data []byte) (err error } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type StorageNvmeRaidConfigurationListWithoutEmbeddedStruct struct { // The total number of 'storage.NvmeRaidConfiguration' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_storage_nvme_raid_configuration_response.go b/model_storage_nvme_raid_configuration_response.go index 712599f594..965b93c863 100644 --- a/model_storage_nvme_raid_configuration_response.go +++ b/model_storage_nvme_raid_configuration_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_storage_nvme_raid_drive_group.go b/model_storage_nvme_raid_drive_group.go index 90c3131d62..ffab78461b 100644 --- a/model_storage_nvme_raid_drive_group.go +++ b/model_storage_nvme_raid_drive_group.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -84,6 +84,11 @@ func (o *StorageNvmeRaidDriveGroup) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "storage.NvmeRaidDriveGroup" of the ClassId field. +func (o *StorageNvmeRaidDriveGroup) GetDefaultClassId() interface{} { + return "storage.NvmeRaidDriveGroup" +} + // GetObjectType returns the ObjectType field value func (o *StorageNvmeRaidDriveGroup) GetObjectType() string { if o == nil { @@ -108,6 +113,11 @@ func (o *StorageNvmeRaidDriveGroup) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "storage.NvmeRaidDriveGroup" of the ObjectType field. +func (o *StorageNvmeRaidDriveGroup) GetDefaultObjectType() interface{} { + return "storage.NvmeRaidDriveGroup" +} + // GetConfigurations returns the Configurations field value if set, zero value otherwise (both if not set or set to explicit null). func (o *StorageNvmeRaidDriveGroup) GetConfigurations() []StorageNvmeVirtualDriveConfiguration { if o == nil { @@ -129,7 +139,7 @@ func (o *StorageNvmeRaidDriveGroup) GetConfigurationsOk() ([]StorageNvmeVirtualD // HasConfigurations returns a boolean if a field has been set. func (o *StorageNvmeRaidDriveGroup) HasConfigurations() bool { - if o != nil && IsNil(o.Configurations) { + if o != nil && !IsNil(o.Configurations) { return true } @@ -162,7 +172,7 @@ func (o *StorageNvmeRaidDriveGroup) GetDedicatedHotSparesForDriveGroupOk() ([]St // HasDedicatedHotSparesForDriveGroup returns a boolean if a field has been set. func (o *StorageNvmeRaidDriveGroup) HasDedicatedHotSparesForDriveGroup() bool { - if o != nil && IsNil(o.DedicatedHotSparesForDriveGroup) { + if o != nil && !IsNil(o.DedicatedHotSparesForDriveGroup) { return true } @@ -224,7 +234,13 @@ func (o StorageNvmeRaidDriveGroup) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.Configurations != nil { toSerialize["Configurations"] = o.Configurations @@ -252,6 +268,13 @@ func (o *StorageNvmeRaidDriveGroup) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -261,11 +284,23 @@ func (o *StorageNvmeRaidDriveGroup) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type StorageNvmeRaidDriveGroupWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_storage_nvme_virtual_drive_configuration.go b/model_storage_nvme_virtual_drive_configuration.go index 058e44882e..85a30861dc 100644 --- a/model_storage_nvme_virtual_drive_configuration.go +++ b/model_storage_nvme_virtual_drive_configuration.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -105,6 +105,11 @@ func (o *StorageNvmeVirtualDriveConfiguration) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "storage.NvmeVirtualDriveConfiguration" of the ClassId field. +func (o *StorageNvmeVirtualDriveConfiguration) GetDefaultClassId() interface{} { + return "storage.NvmeVirtualDriveConfiguration" +} + // GetObjectType returns the ObjectType field value func (o *StorageNvmeVirtualDriveConfiguration) GetObjectType() string { if o == nil { @@ -129,6 +134,11 @@ func (o *StorageNvmeVirtualDriveConfiguration) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "storage.NvmeVirtualDriveConfiguration" of the ObjectType field. +func (o *StorageNvmeVirtualDriveConfiguration) GetDefaultObjectType() interface{} { + return "storage.NvmeVirtualDriveConfiguration" +} + // GetAccessPolicy returns the AccessPolicy field value if set, zero value otherwise. func (o *StorageNvmeVirtualDriveConfiguration) GetAccessPolicy() string { if o == nil || IsNil(o.AccessPolicy) { @@ -470,7 +480,7 @@ func (o *StorageNvmeVirtualDriveConfiguration) GetSpanDisksOk() ([]string, bool) // HasSpanDisks returns a boolean if a field has been set. func (o *StorageNvmeVirtualDriveConfiguration) HasSpanDisks() bool { - if o != nil && IsNil(o.SpanDisks) { + if o != nil && !IsNil(o.SpanDisks) { return true } @@ -564,7 +574,13 @@ func (o StorageNvmeVirtualDriveConfiguration) ToMap() (map[string]interface{}, e if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.AccessPolicy) { toSerialize["AccessPolicy"] = o.AccessPolicy @@ -622,6 +638,13 @@ func (o *StorageNvmeVirtualDriveConfiguration) UnmarshalJSON(data []byte) (err e "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -631,11 +654,23 @@ func (o *StorageNvmeVirtualDriveConfiguration) UnmarshalJSON(data []byte) (err e } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type StorageNvmeVirtualDriveConfigurationWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_storage_physical_disk.go b/model_storage_physical_disk.go index 08ddb50f31..608579bb0c 100644 --- a/model_storage_physical_disk.go +++ b/model_storage_physical_disk.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -197,6 +197,11 @@ func (o *StoragePhysicalDisk) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "storage.PhysicalDisk" of the ClassId field. +func (o *StoragePhysicalDisk) GetDefaultClassId() interface{} { + return "storage.PhysicalDisk" +} + // GetObjectType returns the ObjectType field value func (o *StoragePhysicalDisk) GetObjectType() string { if o == nil { @@ -221,6 +226,11 @@ func (o *StoragePhysicalDisk) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "storage.PhysicalDisk" of the ObjectType field. +func (o *StoragePhysicalDisk) GetDefaultObjectType() interface{} { + return "storage.PhysicalDisk" +} + // GetBackgroundOperations returns the BackgroundOperations field value if set, zero value otherwise. func (o *StoragePhysicalDisk) GetBackgroundOperations() string { if o == nil || IsNil(o.BackgroundOperations) { @@ -2024,7 +2034,7 @@ func (o *StoragePhysicalDisk) GetPhysicalDiskExtensionsOk() ([]StoragePhysicalDi // HasPhysicalDiskExtensions returns a boolean if a field has been set. func (o *StoragePhysicalDisk) HasPhysicalDiskExtensions() bool { - if o != nil && IsNil(o.PhysicalDiskExtensions) { + if o != nil && !IsNil(o.PhysicalDiskExtensions) { return true } @@ -2100,7 +2110,7 @@ func (o *StoragePhysicalDisk) GetRunningFirmwareOk() ([]FirmwareRunningFirmwareR // HasRunningFirmware returns a boolean if a field has been set. func (o *StoragePhysicalDisk) HasRunningFirmware() bool { - if o != nil && IsNil(o.RunningFirmware) { + if o != nil && !IsNil(o.RunningFirmware) { return true } @@ -2133,7 +2143,7 @@ func (o *StoragePhysicalDisk) GetSasPortsOk() ([]StorageSasPortRelationship, boo // HasSasPorts returns a boolean if a field has been set. func (o *StoragePhysicalDisk) HasSasPorts() bool { - if o != nil && IsNil(o.SasPorts) { + if o != nil && !IsNil(o.SasPorts) { return true } @@ -2249,7 +2259,13 @@ func (o StoragePhysicalDisk) ToMap() (map[string]interface{}, error) { if errEquipmentBase != nil { return map[string]interface{}{}, errEquipmentBase } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.BackgroundOperations) { toSerialize["BackgroundOperations"] = o.BackgroundOperations @@ -2451,6 +2467,13 @@ func (o *StoragePhysicalDisk) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -2460,11 +2483,23 @@ func (o *StoragePhysicalDisk) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type StoragePhysicalDiskWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_storage_physical_disk_extension.go b/model_storage_physical_disk_extension.go index 9fb4e2e10d..13f79b9556 100644 --- a/model_storage_physical_disk_extension.go +++ b/model_storage_physical_disk_extension.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -94,6 +94,11 @@ func (o *StoragePhysicalDiskExtension) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "storage.PhysicalDiskExtension" of the ClassId field. +func (o *StoragePhysicalDiskExtension) GetDefaultClassId() interface{} { + return "storage.PhysicalDiskExtension" +} + // GetObjectType returns the ObjectType field value func (o *StoragePhysicalDiskExtension) GetObjectType() string { if o == nil { @@ -118,6 +123,11 @@ func (o *StoragePhysicalDiskExtension) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "storage.PhysicalDiskExtension" of the ObjectType field. +func (o *StoragePhysicalDiskExtension) GetDefaultObjectType() interface{} { + return "storage.PhysicalDiskExtension" +} + // GetBootable returns the Bootable field value if set, zero value otherwise. func (o *StoragePhysicalDiskExtension) GetBootable() string { if o == nil || IsNil(o.Bootable) { @@ -468,7 +478,13 @@ func (o StoragePhysicalDiskExtension) ToMap() (map[string]interface{}, error) { if errEquipmentBase != nil { return map[string]interface{}{}, errEquipmentBase } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Bootable) { toSerialize["Bootable"] = o.Bootable @@ -514,6 +530,13 @@ func (o *StoragePhysicalDiskExtension) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -523,11 +546,23 @@ func (o *StoragePhysicalDiskExtension) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type StoragePhysicalDiskExtensionWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_storage_physical_disk_extension_list.go b/model_storage_physical_disk_extension_list.go index 2a57666c26..41d2a817a4 100644 --- a/model_storage_physical_disk_extension_list.go +++ b/model_storage_physical_disk_extension_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *StoragePhysicalDiskExtensionList) GetResultsOk() ([]StoragePhysicalDisk // HasResults returns a boolean if a field has been set. func (o *StoragePhysicalDiskExtensionList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *StoragePhysicalDiskExtensionList) UnmarshalJSON(data []byte) (err error "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *StoragePhysicalDiskExtensionList) UnmarshalJSON(data []byte) (err error } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type StoragePhysicalDiskExtensionListWithoutEmbeddedStruct struct { // The total number of 'storage.PhysicalDiskExtension' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_storage_physical_disk_extension_relationship.go b/model_storage_physical_disk_extension_relationship.go index efaf073d37..2c6fbf73c7 100644 --- a/model_storage_physical_disk_extension_relationship.go +++ b/model_storage_physical_disk_extension_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_storage_physical_disk_extension_response.go b/model_storage_physical_disk_extension_response.go index 6afbeefa26..fb26b18076 100644 --- a/model_storage_physical_disk_extension_response.go +++ b/model_storage_physical_disk_extension_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_storage_physical_disk_list.go b/model_storage_physical_disk_list.go index 2b07b41c65..6320d282fe 100644 --- a/model_storage_physical_disk_list.go +++ b/model_storage_physical_disk_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *StoragePhysicalDiskList) GetResultsOk() ([]StoragePhysicalDisk, bool) { // HasResults returns a boolean if a field has been set. func (o *StoragePhysicalDiskList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *StoragePhysicalDiskList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *StoragePhysicalDiskList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type StoragePhysicalDiskListWithoutEmbeddedStruct struct { // The total number of 'storage.PhysicalDisk' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_storage_physical_disk_relationship.go b/model_storage_physical_disk_relationship.go index 7b24629bed..87107abf3c 100644 --- a/model_storage_physical_disk_relationship.go +++ b/model_storage_physical_disk_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_storage_physical_disk_response.go b/model_storage_physical_disk_response.go index 829b0cbfb2..7c168cd92b 100644 --- a/model_storage_physical_disk_response.go +++ b/model_storage_physical_disk_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_storage_physical_disk_usage.go b/model_storage_physical_disk_usage.go index 7b1fb25a34..86b758270d 100644 --- a/model_storage_physical_disk_usage.go +++ b/model_storage_physical_disk_usage.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -95,6 +95,11 @@ func (o *StoragePhysicalDiskUsage) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "storage.PhysicalDiskUsage" of the ClassId field. +func (o *StoragePhysicalDiskUsage) GetDefaultClassId() interface{} { + return "storage.PhysicalDiskUsage" +} + // GetObjectType returns the ObjectType field value func (o *StoragePhysicalDiskUsage) GetObjectType() string { if o == nil { @@ -119,6 +124,11 @@ func (o *StoragePhysicalDiskUsage) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "storage.PhysicalDiskUsage" of the ObjectType field. +func (o *StoragePhysicalDiskUsage) GetDefaultObjectType() interface{} { + return "storage.PhysicalDiskUsage" +} + // GetNumberOfBlocks returns the NumberOfBlocks field value if set, zero value otherwise. func (o *StoragePhysicalDiskUsage) GetNumberOfBlocks() string { if o == nil || IsNil(o.NumberOfBlocks) { @@ -458,7 +468,13 @@ func (o StoragePhysicalDiskUsage) ToMap() (map[string]interface{}, error) { if errInventoryBase != nil { return map[string]interface{}{}, errInventoryBase } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.NumberOfBlocks) { toSerialize["NumberOfBlocks"] = o.NumberOfBlocks @@ -504,6 +520,13 @@ func (o *StoragePhysicalDiskUsage) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -513,11 +536,23 @@ func (o *StoragePhysicalDiskUsage) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type StoragePhysicalDiskUsageWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_storage_physical_disk_usage_list.go b/model_storage_physical_disk_usage_list.go index 0815350b9a..cd927a9b54 100644 --- a/model_storage_physical_disk_usage_list.go +++ b/model_storage_physical_disk_usage_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *StoragePhysicalDiskUsageList) GetResultsOk() ([]StoragePhysicalDiskUsag // HasResults returns a boolean if a field has been set. func (o *StoragePhysicalDiskUsageList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *StoragePhysicalDiskUsageList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *StoragePhysicalDiskUsageList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type StoragePhysicalDiskUsageListWithoutEmbeddedStruct struct { // The total number of 'storage.PhysicalDiskUsage' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_storage_physical_disk_usage_relationship.go b/model_storage_physical_disk_usage_relationship.go index 98e3b70981..a2682b00a1 100644 --- a/model_storage_physical_disk_usage_relationship.go +++ b/model_storage_physical_disk_usage_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_storage_physical_disk_usage_response.go b/model_storage_physical_disk_usage_response.go index d47e336e68..5216841b1c 100644 --- a/model_storage_physical_disk_usage_response.go +++ b/model_storage_physical_disk_usage_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_storage_pure_array.go b/model_storage_pure_array.go index b6383b5551..cdf07d10b5 100644 --- a/model_storage_pure_array.go +++ b/model_storage_pure_array.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -83,6 +83,11 @@ func (o *StoragePureArray) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "storage.PureArray" of the ClassId field. +func (o *StoragePureArray) GetDefaultClassId() interface{} { + return "storage.PureArray" +} + // GetObjectType returns the ObjectType field value func (o *StoragePureArray) GetObjectType() string { if o == nil { @@ -107,6 +112,11 @@ func (o *StoragePureArray) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "storage.PureArray" of the ObjectType field. +func (o *StoragePureArray) GetDefaultObjectType() interface{} { + return "storage.PureArray" +} + // GetApiVersion returns the ApiVersion field value if set, zero value otherwise. func (o *StoragePureArray) GetApiVersion() string { if o == nil || IsNil(o.ApiVersion) { @@ -200,7 +210,13 @@ func (o StoragePureArray) ToMap() (map[string]interface{}, error) { if errStorageBaseArray != nil { return map[string]interface{}{}, errStorageBaseArray } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.ApiVersion) { toSerialize["ApiVersion"] = o.ApiVersion @@ -225,6 +241,13 @@ func (o *StoragePureArray) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -234,11 +257,23 @@ func (o *StoragePureArray) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type StoragePureArrayWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_storage_pure_array_alerts.go b/model_storage_pure_array_alerts.go index 099705865a..d5887370ec 100644 --- a/model_storage_pure_array_alerts.go +++ b/model_storage_pure_array_alerts.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -92,6 +92,11 @@ func (o *StoragePureArrayAlerts) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "storage.PureArrayAlerts" of the ClassId field. +func (o *StoragePureArrayAlerts) GetDefaultClassId() interface{} { + return "storage.PureArrayAlerts" +} + // GetObjectType returns the ObjectType field value func (o *StoragePureArrayAlerts) GetObjectType() string { if o == nil { @@ -116,6 +121,11 @@ func (o *StoragePureArrayAlerts) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "storage.PureArrayAlerts" of the ObjectType field. +func (o *StoragePureArrayAlerts) GetDefaultObjectType() interface{} { + return "storage.PureArrayAlerts" +} + // GetCause returns the Cause field value if set, zero value otherwise. func (o *StoragePureArrayAlerts) GetCause() string { if o == nil || IsNil(o.Cause) { @@ -337,7 +347,13 @@ func (o StoragePureArrayAlerts) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Cause) { toSerialize["Cause"] = o.Cause @@ -374,6 +390,13 @@ func (o *StoragePureArrayAlerts) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -383,11 +406,23 @@ func (o *StoragePureArrayAlerts) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type StoragePureArrayAlertsWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_storage_pure_array_alerts_list.go b/model_storage_pure_array_alerts_list.go index 1e378ffe8e..2120ac80b6 100644 --- a/model_storage_pure_array_alerts_list.go +++ b/model_storage_pure_array_alerts_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *StoragePureArrayAlertsList) GetResultsOk() ([]StoragePureArrayAlerts, b // HasResults returns a boolean if a field has been set. func (o *StoragePureArrayAlertsList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *StoragePureArrayAlertsList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *StoragePureArrayAlertsList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type StoragePureArrayAlertsListWithoutEmbeddedStruct struct { // The total number of 'storage.PureArrayAlerts' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_storage_pure_array_alerts_response.go b/model_storage_pure_array_alerts_response.go index 1e0f919a29..c71749656b 100644 --- a/model_storage_pure_array_alerts_response.go +++ b/model_storage_pure_array_alerts_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_storage_pure_array_list.go b/model_storage_pure_array_list.go index 95311e6bf3..bc65c1b394 100644 --- a/model_storage_pure_array_list.go +++ b/model_storage_pure_array_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *StoragePureArrayList) GetResultsOk() ([]StoragePureArray, bool) { // HasResults returns a boolean if a field has been set. func (o *StoragePureArrayList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *StoragePureArrayList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *StoragePureArrayList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type StoragePureArrayListWithoutEmbeddedStruct struct { // The total number of 'storage.PureArray' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_storage_pure_array_relationship.go b/model_storage_pure_array_relationship.go index fd91360d94..6f55ed734f 100644 --- a/model_storage_pure_array_relationship.go +++ b/model_storage_pure_array_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_storage_pure_array_response.go b/model_storage_pure_array_response.go index 5d5fbdd090..3a0df89385 100644 --- a/model_storage_pure_array_response.go +++ b/model_storage_pure_array_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_storage_pure_array_utilization.go b/model_storage_pure_array_utilization.go index 609d9ea673..a8f6f3cb98 100644 --- a/model_storage_pure_array_utilization.go +++ b/model_storage_pure_array_utilization.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -98,6 +98,11 @@ func (o *StoragePureArrayUtilization) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "storage.PureArrayUtilization" of the ClassId field. +func (o *StoragePureArrayUtilization) GetDefaultClassId() interface{} { + return "storage.PureArrayUtilization" +} + // GetObjectType returns the ObjectType field value func (o *StoragePureArrayUtilization) GetObjectType() string { if o == nil { @@ -122,6 +127,11 @@ func (o *StoragePureArrayUtilization) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "storage.PureArrayUtilization" of the ObjectType field. +func (o *StoragePureArrayUtilization) GetDefaultObjectType() interface{} { + return "storage.PureArrayUtilization" +} + // GetDataReduction returns the DataReduction field value if set, zero value otherwise. func (o *StoragePureArrayUtilization) GetDataReduction() float32 { if o == nil || IsNil(o.DataReduction) { @@ -428,7 +438,13 @@ func (o StoragePureArrayUtilization) ToMap() (map[string]interface{}, error) { if errStorageBaseCapacity != nil { return map[string]interface{}{}, errStorageBaseCapacity } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.DataReduction) { toSerialize["DataReduction"] = o.DataReduction @@ -474,6 +490,13 @@ func (o *StoragePureArrayUtilization) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -483,11 +506,23 @@ func (o *StoragePureArrayUtilization) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type StoragePureArrayUtilizationWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_storage_pure_controller.go b/model_storage_pure_controller.go index fa98e6b7f4..5a420593e1 100644 --- a/model_storage_pure_controller.go +++ b/model_storage_pure_controller.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -82,6 +82,11 @@ func (o *StoragePureController) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "storage.PureController" of the ClassId field. +func (o *StoragePureController) GetDefaultClassId() interface{} { + return "storage.PureController" +} + // GetObjectType returns the ObjectType field value func (o *StoragePureController) GetObjectType() string { if o == nil { @@ -106,6 +111,11 @@ func (o *StoragePureController) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "storage.PureController" of the ObjectType field. +func (o *StoragePureController) GetDefaultObjectType() interface{} { + return "storage.PureController" +} + // GetArray returns the Array field value if set, zero value otherwise (both if not set or set to explicit null). func (o *StoragePureController) GetArray() StoragePureArrayRelationship { if o == nil || IsNil(o.Array.Get()) { @@ -210,7 +220,13 @@ func (o StoragePureController) ToMap() (map[string]interface{}, error) { if errStorageBaseArrayController != nil { return map[string]interface{}{}, errStorageBaseArrayController } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.Array.IsSet() { toSerialize["Array"] = o.Array.Get() @@ -235,6 +251,13 @@ func (o *StoragePureController) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -244,11 +267,23 @@ func (o *StoragePureController) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type StoragePureControllerWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_storage_pure_controller_list.go b/model_storage_pure_controller_list.go index 8219d9ecab..63b1000278 100644 --- a/model_storage_pure_controller_list.go +++ b/model_storage_pure_controller_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *StoragePureControllerList) GetResultsOk() ([]StoragePureController, boo // HasResults returns a boolean if a field has been set. func (o *StoragePureControllerList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *StoragePureControllerList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *StoragePureControllerList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type StoragePureControllerListWithoutEmbeddedStruct struct { // The total number of 'storage.PureController' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_storage_pure_controller_relationship.go b/model_storage_pure_controller_relationship.go index 3dc62b0b69..5e913728eb 100644 --- a/model_storage_pure_controller_relationship.go +++ b/model_storage_pure_controller_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_storage_pure_controller_response.go b/model_storage_pure_controller_response.go index df99ea243f..839c3f271f 100644 --- a/model_storage_pure_controller_response.go +++ b/model_storage_pure_controller_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_storage_pure_disk.go b/model_storage_pure_disk.go index cd90f2a5fb..c82159d83b 100644 --- a/model_storage_pure_disk.go +++ b/model_storage_pure_disk.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -82,6 +82,11 @@ func (o *StoragePureDisk) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "storage.PureDisk" of the ClassId field. +func (o *StoragePureDisk) GetDefaultClassId() interface{} { + return "storage.PureDisk" +} + // GetObjectType returns the ObjectType field value func (o *StoragePureDisk) GetObjectType() string { if o == nil { @@ -106,6 +111,11 @@ func (o *StoragePureDisk) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "storage.PureDisk" of the ObjectType field. +func (o *StoragePureDisk) GetDefaultObjectType() interface{} { + return "storage.PureDisk" +} + // GetArray returns the Array field value if set, zero value otherwise (both if not set or set to explicit null). func (o *StoragePureDisk) GetArray() StoragePureArrayRelationship { if o == nil || IsNil(o.Array.Get()) { @@ -210,7 +220,13 @@ func (o StoragePureDisk) ToMap() (map[string]interface{}, error) { if errStorageBaseArrayDisk != nil { return map[string]interface{}{}, errStorageBaseArrayDisk } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.Array.IsSet() { toSerialize["Array"] = o.Array.Get() @@ -235,6 +251,13 @@ func (o *StoragePureDisk) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -244,11 +267,23 @@ func (o *StoragePureDisk) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type StoragePureDiskWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_storage_pure_disk_list.go b/model_storage_pure_disk_list.go index 09594e6019..58bac0bfcb 100644 --- a/model_storage_pure_disk_list.go +++ b/model_storage_pure_disk_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *StoragePureDiskList) GetResultsOk() ([]StoragePureDisk, bool) { // HasResults returns a boolean if a field has been set. func (o *StoragePureDiskList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *StoragePureDiskList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *StoragePureDiskList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type StoragePureDiskListWithoutEmbeddedStruct struct { // The total number of 'storage.PureDisk' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_storage_pure_disk_response.go b/model_storage_pure_disk_response.go index 12c42a68af..bf25c979bd 100644 --- a/model_storage_pure_disk_response.go +++ b/model_storage_pure_disk_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_storage_pure_disk_utilization.go b/model_storage_pure_disk_utilization.go index 2ed4c3051b..6aa09ac1ea 100644 --- a/model_storage_pure_disk_utilization.go +++ b/model_storage_pure_disk_utilization.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -83,6 +83,10 @@ func (o *StoragePureDiskUtilization) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -92,11 +96,23 @@ func (o *StoragePureDiskUtilization) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type StoragePureDiskUtilizationWithoutEmbeddedStruct struct { } diff --git a/model_storage_pure_host.go b/model_storage_pure_host.go index 43c2aa7887..fcb2b3925b 100644 --- a/model_storage_pure_host.go +++ b/model_storage_pure_host.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -86,6 +86,11 @@ func (o *StoragePureHost) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "storage.PureHost" of the ClassId field. +func (o *StoragePureHost) GetDefaultClassId() interface{} { + return "storage.PureHost" +} + // GetObjectType returns the ObjectType field value func (o *StoragePureHost) GetObjectType() string { if o == nil { @@ -110,6 +115,11 @@ func (o *StoragePureHost) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "storage.PureHost" of the ObjectType field. +func (o *StoragePureHost) GetDefaultObjectType() interface{} { + return "storage.PureHost" +} + // GetHostGroupName returns the HostGroupName field value if set, zero value otherwise. func (o *StoragePureHost) GetHostGroupName() string { if o == nil || IsNil(o.HostGroupName) { @@ -332,7 +342,13 @@ func (o StoragePureHost) ToMap() (map[string]interface{}, error) { if errStorageBaseHost != nil { return map[string]interface{}{}, errStorageBaseHost } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.HostGroupName) { toSerialize["HostGroupName"] = o.HostGroupName @@ -366,6 +382,13 @@ func (o *StoragePureHost) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -375,11 +398,23 @@ func (o *StoragePureHost) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type StoragePureHostWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_storage_pure_host_group.go b/model_storage_pure_host_group.go index 509d3f3b6c..d9e8f79020 100644 --- a/model_storage_pure_host_group.go +++ b/model_storage_pure_host_group.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -86,6 +86,11 @@ func (o *StoragePureHostGroup) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "storage.PureHostGroup" of the ClassId field. +func (o *StoragePureHostGroup) GetDefaultClassId() interface{} { + return "storage.PureHostGroup" +} + // GetObjectType returns the ObjectType field value func (o *StoragePureHostGroup) GetObjectType() string { if o == nil { @@ -110,6 +115,11 @@ func (o *StoragePureHostGroup) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "storage.PureHostGroup" of the ObjectType field. +func (o *StoragePureHostGroup) GetDefaultObjectType() interface{} { + return "storage.PureHostGroup" +} + // GetHostNames returns the HostNames field value if set, zero value otherwise (both if not set or set to explicit null). func (o *StoragePureHostGroup) GetHostNames() []string { if o == nil { @@ -131,7 +141,7 @@ func (o *StoragePureHostGroup) GetHostNamesOk() ([]string, bool) { // HasHostNames returns a boolean if a field has been set. func (o *StoragePureHostGroup) HasHostNames() bool { - if o != nil && IsNil(o.HostNames) { + if o != nil && !IsNil(o.HostNames) { return true } @@ -207,7 +217,7 @@ func (o *StoragePureHostGroup) GetHostsOk() ([]StoragePureHostRelationship, bool // HasHosts returns a boolean if a field has been set. func (o *StoragePureHostGroup) HasHosts() bool { - if o != nil && IsNil(o.Hosts) { + if o != nil && !IsNil(o.Hosts) { return true } @@ -323,7 +333,13 @@ func (o StoragePureHostGroup) ToMap() (map[string]interface{}, error) { if errStorageBaseHostGroup != nil { return map[string]interface{}{}, errStorageBaseHostGroup } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.HostNames != nil { toSerialize["HostNames"] = o.HostNames @@ -357,6 +373,13 @@ func (o *StoragePureHostGroup) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -366,11 +389,23 @@ func (o *StoragePureHostGroup) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type StoragePureHostGroupWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_storage_pure_host_group_list.go b/model_storage_pure_host_group_list.go index 0fc01991b5..0144f97922 100644 --- a/model_storage_pure_host_group_list.go +++ b/model_storage_pure_host_group_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *StoragePureHostGroupList) GetResultsOk() ([]StoragePureHostGroup, bool) // HasResults returns a boolean if a field has been set. func (o *StoragePureHostGroupList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *StoragePureHostGroupList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *StoragePureHostGroupList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type StoragePureHostGroupListWithoutEmbeddedStruct struct { // The total number of 'storage.PureHostGroup' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_storage_pure_host_group_relationship.go b/model_storage_pure_host_group_relationship.go index 10bf44db21..5879464e06 100644 --- a/model_storage_pure_host_group_relationship.go +++ b/model_storage_pure_host_group_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_storage_pure_host_group_response.go b/model_storage_pure_host_group_response.go index c6fb353908..9bd90b10ea 100644 --- a/model_storage_pure_host_group_response.go +++ b/model_storage_pure_host_group_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_storage_pure_host_list.go b/model_storage_pure_host_list.go index 551f114177..335034ba6e 100644 --- a/model_storage_pure_host_list.go +++ b/model_storage_pure_host_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *StoragePureHostList) GetResultsOk() ([]StoragePureHost, bool) { // HasResults returns a boolean if a field has been set. func (o *StoragePureHostList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *StoragePureHostList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *StoragePureHostList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type StoragePureHostListWithoutEmbeddedStruct struct { // The total number of 'storage.PureHost' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_storage_pure_host_lun.go b/model_storage_pure_host_lun.go index b011b8554d..0c37640189 100644 --- a/model_storage_pure_host_lun.go +++ b/model_storage_pure_host_lun.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -89,6 +89,11 @@ func (o *StoragePureHostLun) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "storage.PureHostLun" of the ClassId field. +func (o *StoragePureHostLun) GetDefaultClassId() interface{} { + return "storage.PureHostLun" +} + // GetObjectType returns the ObjectType field value func (o *StoragePureHostLun) GetObjectType() string { if o == nil { @@ -113,6 +118,11 @@ func (o *StoragePureHostLun) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "storage.PureHostLun" of the ObjectType field. +func (o *StoragePureHostLun) GetDefaultObjectType() interface{} { + return "storage.PureHostLun" +} + // GetHostGroupName returns the HostGroupName field value if set, zero value otherwise. func (o *StoragePureHostLun) GetHostGroupName() string { if o == nil || IsNil(o.HostGroupName) { @@ -410,7 +420,13 @@ func (o StoragePureHostLun) ToMap() (map[string]interface{}, error) { if errStorageBaseHostLun != nil { return map[string]interface{}{}, errStorageBaseHostLun } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.HostGroupName) { toSerialize["HostGroupName"] = o.HostGroupName @@ -450,6 +466,13 @@ func (o *StoragePureHostLun) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -459,11 +482,23 @@ func (o *StoragePureHostLun) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type StoragePureHostLunWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_storage_pure_host_lun_list.go b/model_storage_pure_host_lun_list.go index 364ad793ae..2646a1a8ce 100644 --- a/model_storage_pure_host_lun_list.go +++ b/model_storage_pure_host_lun_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *StoragePureHostLunList) GetResultsOk() ([]StoragePureHostLun, bool) { // HasResults returns a boolean if a field has been set. func (o *StoragePureHostLunList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *StoragePureHostLunList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *StoragePureHostLunList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type StoragePureHostLunListWithoutEmbeddedStruct struct { // The total number of 'storage.PureHostLun' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_storage_pure_host_lun_response.go b/model_storage_pure_host_lun_response.go index bfbceb9607..62883ad043 100644 --- a/model_storage_pure_host_lun_response.go +++ b/model_storage_pure_host_lun_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_storage_pure_host_relationship.go b/model_storage_pure_host_relationship.go index a81d27df00..28652f67b9 100644 --- a/model_storage_pure_host_relationship.go +++ b/model_storage_pure_host_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_storage_pure_host_response.go b/model_storage_pure_host_response.go index abe9971592..dff45ce79d 100644 --- a/model_storage_pure_host_response.go +++ b/model_storage_pure_host_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_storage_pure_host_utilization.go b/model_storage_pure_host_utilization.go index 07e83995fb..bc03b226cb 100644 --- a/model_storage_pure_host_utilization.go +++ b/model_storage_pure_host_utilization.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -83,6 +83,10 @@ func (o *StoragePureHostUtilization) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -92,11 +96,23 @@ func (o *StoragePureHostUtilization) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type StoragePureHostUtilizationWithoutEmbeddedStruct struct { } diff --git a/model_storage_pure_port.go b/model_storage_pure_port.go index d975ce06d0..c8cc26684d 100644 --- a/model_storage_pure_port.go +++ b/model_storage_pure_port.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -89,6 +89,11 @@ func (o *StoragePurePort) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "storage.PurePort" of the ClassId field. +func (o *StoragePurePort) GetDefaultClassId() interface{} { + return "storage.PurePort" +} + // GetObjectType returns the ObjectType field value func (o *StoragePurePort) GetObjectType() string { if o == nil { @@ -113,6 +118,11 @@ func (o *StoragePurePort) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "storage.PurePort" of the ObjectType field. +func (o *StoragePurePort) GetDefaultObjectType() interface{} { + return "storage.PurePort" +} + // GetFailover returns the Failover field value if set, zero value otherwise. func (o *StoragePurePort) GetFailover() string { if o == nil || IsNil(o.Failover) { @@ -356,7 +366,13 @@ func (o StoragePurePort) ToMap() (map[string]interface{}, error) { if errStorageBasePhysicalPort != nil { return map[string]interface{}{}, errStorageBasePhysicalPort } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Failover) { toSerialize["Failover"] = o.Failover @@ -393,6 +409,13 @@ func (o *StoragePurePort) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -402,11 +425,23 @@ func (o *StoragePurePort) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type StoragePurePortWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_storage_pure_port_list.go b/model_storage_pure_port_list.go index 4caa9ff4ab..65244add07 100644 --- a/model_storage_pure_port_list.go +++ b/model_storage_pure_port_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *StoragePurePortList) GetResultsOk() ([]StoragePurePort, bool) { // HasResults returns a boolean if a field has been set. func (o *StoragePurePortList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *StoragePurePortList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *StoragePurePortList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type StoragePurePortListWithoutEmbeddedStruct struct { // The total number of 'storage.PurePort' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_storage_pure_port_response.go b/model_storage_pure_port_response.go index e0766355f2..0b3bfe93bc 100644 --- a/model_storage_pure_port_response.go +++ b/model_storage_pure_port_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_storage_pure_protection_group.go b/model_storage_pure_protection_group.go index e6b2472d43..d07497275d 100644 --- a/model_storage_pure_protection_group.go +++ b/model_storage_pure_protection_group.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -93,6 +93,11 @@ func (o *StoragePureProtectionGroup) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "storage.PureProtectionGroup" of the ClassId field. +func (o *StoragePureProtectionGroup) GetDefaultClassId() interface{} { + return "storage.PureProtectionGroup" +} + // GetObjectType returns the ObjectType field value func (o *StoragePureProtectionGroup) GetObjectType() string { if o == nil { @@ -117,6 +122,11 @@ func (o *StoragePureProtectionGroup) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "storage.PureProtectionGroup" of the ObjectType field. +func (o *StoragePureProtectionGroup) GetDefaultObjectType() interface{} { + return "storage.PureProtectionGroup" +} + // GetSize returns the Size field value if set, zero value otherwise. func (o *StoragePureProtectionGroup) GetSize() int64 { if o == nil || IsNil(o.Size) { @@ -202,7 +212,7 @@ func (o *StoragePureProtectionGroup) GetTargetsOk() ([]string, bool) { // HasTargets returns a boolean if a field has been set. func (o *StoragePureProtectionGroup) HasTargets() bool { - if o != nil && IsNil(o.Targets) { + if o != nil && !IsNil(o.Targets) { return true } @@ -278,7 +288,7 @@ func (o *StoragePureProtectionGroup) GetHostGroupsOk() ([]StoragePureHostGroupRe // HasHostGroups returns a boolean if a field has been set. func (o *StoragePureProtectionGroup) HasHostGroups() bool { - if o != nil && IsNil(o.HostGroups) { + if o != nil && !IsNil(o.HostGroups) { return true } @@ -311,7 +321,7 @@ func (o *StoragePureProtectionGroup) GetHostsOk() ([]StoragePureHostRelationship // HasHosts returns a boolean if a field has been set. func (o *StoragePureProtectionGroup) HasHosts() bool { - if o != nil && IsNil(o.Hosts) { + if o != nil && !IsNil(o.Hosts) { return true } @@ -387,7 +397,7 @@ func (o *StoragePureProtectionGroup) GetVolumesOk() ([]StoragePureVolumeRelation // HasVolumes returns a boolean if a field has been set. func (o *StoragePureProtectionGroup) HasVolumes() bool { - if o != nil && IsNil(o.Volumes) { + if o != nil && !IsNil(o.Volumes) { return true } @@ -417,7 +427,13 @@ func (o StoragePureProtectionGroup) ToMap() (map[string]interface{}, error) { if errStorageBaseProtectionGroup != nil { return map[string]interface{}{}, errStorageBaseProtectionGroup } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Size) { toSerialize["Size"] = o.Size @@ -460,6 +476,13 @@ func (o *StoragePureProtectionGroup) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -469,11 +492,23 @@ func (o *StoragePureProtectionGroup) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type StoragePureProtectionGroupWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_storage_pure_protection_group_list.go b/model_storage_pure_protection_group_list.go index 6286c4071e..572eec991e 100644 --- a/model_storage_pure_protection_group_list.go +++ b/model_storage_pure_protection_group_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *StoragePureProtectionGroupList) GetResultsOk() ([]StoragePureProtection // HasResults returns a boolean if a field has been set. func (o *StoragePureProtectionGroupList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *StoragePureProtectionGroupList) UnmarshalJSON(data []byte) (err error) "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *StoragePureProtectionGroupList) UnmarshalJSON(data []byte) (err error) } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type StoragePureProtectionGroupListWithoutEmbeddedStruct struct { // The total number of 'storage.PureProtectionGroup' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_storage_pure_protection_group_relationship.go b/model_storage_pure_protection_group_relationship.go index 2eb750a641..b4cfb32999 100644 --- a/model_storage_pure_protection_group_relationship.go +++ b/model_storage_pure_protection_group_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_storage_pure_protection_group_response.go b/model_storage_pure_protection_group_response.go index adb7ec20c5..39aea27e7d 100644 --- a/model_storage_pure_protection_group_response.go +++ b/model_storage_pure_protection_group_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_storage_pure_protection_group_snapshot.go b/model_storage_pure_protection_group_snapshot.go index 609cbf7e3d..7d22683bea 100644 --- a/model_storage_pure_protection_group_snapshot.go +++ b/model_storage_pure_protection_group_snapshot.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -83,6 +83,11 @@ func (o *StoragePureProtectionGroupSnapshot) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "storage.PureProtectionGroupSnapshot" of the ClassId field. +func (o *StoragePureProtectionGroupSnapshot) GetDefaultClassId() interface{} { + return "storage.PureProtectionGroupSnapshot" +} + // GetObjectType returns the ObjectType field value func (o *StoragePureProtectionGroupSnapshot) GetObjectType() string { if o == nil { @@ -107,6 +112,11 @@ func (o *StoragePureProtectionGroupSnapshot) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "storage.PureProtectionGroupSnapshot" of the ObjectType field. +func (o *StoragePureProtectionGroupSnapshot) GetDefaultObjectType() interface{} { + return "storage.PureProtectionGroupSnapshot" +} + // GetArray returns the Array field value if set, zero value otherwise (both if not set or set to explicit null). func (o *StoragePureProtectionGroupSnapshot) GetArray() StoragePureArrayRelationship { if o == nil || IsNil(o.Array.Get()) { @@ -254,7 +264,13 @@ func (o StoragePureProtectionGroupSnapshot) ToMap() (map[string]interface{}, err if errStorageBaseProtectionGroupSnapshot != nil { return map[string]interface{}{}, errStorageBaseProtectionGroupSnapshot } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.Array.IsSet() { toSerialize["Array"] = o.Array.Get() @@ -282,6 +298,13 @@ func (o *StoragePureProtectionGroupSnapshot) UnmarshalJSON(data []byte) (err err "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -291,11 +314,23 @@ func (o *StoragePureProtectionGroupSnapshot) UnmarshalJSON(data []byte) (err err } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type StoragePureProtectionGroupSnapshotWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_storage_pure_protection_group_snapshot_list.go b/model_storage_pure_protection_group_snapshot_list.go index 13c5a91379..20e77badbf 100644 --- a/model_storage_pure_protection_group_snapshot_list.go +++ b/model_storage_pure_protection_group_snapshot_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *StoragePureProtectionGroupSnapshotList) GetResultsOk() ([]StoragePurePr // HasResults returns a boolean if a field has been set. func (o *StoragePureProtectionGroupSnapshotList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *StoragePureProtectionGroupSnapshotList) UnmarshalJSON(data []byte) (err "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *StoragePureProtectionGroupSnapshotList) UnmarshalJSON(data []byte) (err } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type StoragePureProtectionGroupSnapshotListWithoutEmbeddedStruct struct { // The total number of 'storage.PureProtectionGroupSnapshot' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_storage_pure_protection_group_snapshot_relationship.go b/model_storage_pure_protection_group_snapshot_relationship.go index c1ad4f32f4..43277b42fe 100644 --- a/model_storage_pure_protection_group_snapshot_relationship.go +++ b/model_storage_pure_protection_group_snapshot_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_storage_pure_protection_group_snapshot_response.go b/model_storage_pure_protection_group_snapshot_response.go index 98144db34b..31f9399fb6 100644 --- a/model_storage_pure_protection_group_snapshot_response.go +++ b/model_storage_pure_protection_group_snapshot_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_storage_pure_replication_blackout.go b/model_storage_pure_replication_blackout.go index 76c7edec8a..0457bcc64d 100644 --- a/model_storage_pure_replication_blackout.go +++ b/model_storage_pure_replication_blackout.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -83,6 +83,13 @@ func (o *StoragePureReplicationBlackout) UnmarshalJSON(data []byte) (err error) "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -92,11 +99,23 @@ func (o *StoragePureReplicationBlackout) UnmarshalJSON(data []byte) (err error) } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type StoragePureReplicationBlackoutWithoutEmbeddedStruct struct { } diff --git a/model_storage_pure_replication_schedule.go b/model_storage_pure_replication_schedule.go index 9e57f1ecb7..940e8f3c86 100644 --- a/model_storage_pure_replication_schedule.go +++ b/model_storage_pure_replication_schedule.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -88,6 +88,11 @@ func (o *StoragePureReplicationSchedule) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "storage.PureReplicationSchedule" of the ClassId field. +func (o *StoragePureReplicationSchedule) GetDefaultClassId() interface{} { + return "storage.PureReplicationSchedule" +} + // GetObjectType returns the ObjectType field value func (o *StoragePureReplicationSchedule) GetObjectType() string { if o == nil { @@ -112,6 +117,11 @@ func (o *StoragePureReplicationSchedule) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "storage.PureReplicationSchedule" of the ObjectType field. +func (o *StoragePureReplicationSchedule) GetDefaultObjectType() interface{} { + return "storage.PureReplicationSchedule" +} + // GetDailyLimit returns the DailyLimit field value if set, zero value otherwise. func (o *StoragePureReplicationSchedule) GetDailyLimit() int64 { if o == nil || IsNil(o.DailyLimit) { @@ -165,7 +175,7 @@ func (o *StoragePureReplicationSchedule) GetReplicationBlackoutIntervalsOk() ([] // HasReplicationBlackoutIntervals returns a boolean if a field has been set. func (o *StoragePureReplicationSchedule) HasReplicationBlackoutIntervals() bool { - if o != nil && IsNil(o.ReplicationBlackoutIntervals) { + if o != nil && !IsNil(o.ReplicationBlackoutIntervals) { return true } @@ -356,7 +366,13 @@ func (o StoragePureReplicationSchedule) ToMap() (map[string]interface{}, error) if errStorageBaseReplicationSchedule != nil { return map[string]interface{}{}, errStorageBaseReplicationSchedule } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.DailyLimit) { toSerialize["DailyLimit"] = o.DailyLimit @@ -393,6 +409,13 @@ func (o *StoragePureReplicationSchedule) UnmarshalJSON(data []byte) (err error) "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -402,11 +425,23 @@ func (o *StoragePureReplicationSchedule) UnmarshalJSON(data []byte) (err error) } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type StoragePureReplicationScheduleWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_storage_pure_replication_schedule_list.go b/model_storage_pure_replication_schedule_list.go index f1489fd93c..07d090d993 100644 --- a/model_storage_pure_replication_schedule_list.go +++ b/model_storage_pure_replication_schedule_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *StoragePureReplicationScheduleList) GetResultsOk() ([]StoragePureReplic // HasResults returns a boolean if a field has been set. func (o *StoragePureReplicationScheduleList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *StoragePureReplicationScheduleList) UnmarshalJSON(data []byte) (err err "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *StoragePureReplicationScheduleList) UnmarshalJSON(data []byte) (err err } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type StoragePureReplicationScheduleListWithoutEmbeddedStruct struct { // The total number of 'storage.PureReplicationSchedule' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_storage_pure_replication_schedule_response.go b/model_storage_pure_replication_schedule_response.go index 347b5be31a..0c601fc1d4 100644 --- a/model_storage_pure_replication_schedule_response.go +++ b/model_storage_pure_replication_schedule_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_storage_pure_snapshot_schedule.go b/model_storage_pure_snapshot_schedule.go index f202bb61a7..2e2bc627bc 100644 --- a/model_storage_pure_snapshot_schedule.go +++ b/model_storage_pure_snapshot_schedule.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -87,6 +87,11 @@ func (o *StoragePureSnapshotSchedule) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "storage.PureSnapshotSchedule" of the ClassId field. +func (o *StoragePureSnapshotSchedule) GetDefaultClassId() interface{} { + return "storage.PureSnapshotSchedule" +} + // GetObjectType returns the ObjectType field value func (o *StoragePureSnapshotSchedule) GetObjectType() string { if o == nil { @@ -111,6 +116,11 @@ func (o *StoragePureSnapshotSchedule) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "storage.PureSnapshotSchedule" of the ObjectType field. +func (o *StoragePureSnapshotSchedule) GetDefaultObjectType() interface{} { + return "storage.PureSnapshotSchedule" +} + // GetDailyLimit returns the DailyLimit field value if set, zero value otherwise. func (o *StoragePureSnapshotSchedule) GetDailyLimit() int64 { if o == nil || IsNil(o.DailyLimit) { @@ -322,7 +332,13 @@ func (o StoragePureSnapshotSchedule) ToMap() (map[string]interface{}, error) { if errStorageBaseSnapshotSchedule != nil { return map[string]interface{}{}, errStorageBaseSnapshotSchedule } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.DailyLimit) { toSerialize["DailyLimit"] = o.DailyLimit @@ -356,6 +372,13 @@ func (o *StoragePureSnapshotSchedule) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -365,11 +388,23 @@ func (o *StoragePureSnapshotSchedule) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type StoragePureSnapshotScheduleWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_storage_pure_snapshot_schedule_list.go b/model_storage_pure_snapshot_schedule_list.go index 1ae6840c07..624ccc97ad 100644 --- a/model_storage_pure_snapshot_schedule_list.go +++ b/model_storage_pure_snapshot_schedule_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *StoragePureSnapshotScheduleList) GetResultsOk() ([]StoragePureSnapshotS // HasResults returns a boolean if a field has been set. func (o *StoragePureSnapshotScheduleList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *StoragePureSnapshotScheduleList) UnmarshalJSON(data []byte) (err error) "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *StoragePureSnapshotScheduleList) UnmarshalJSON(data []byte) (err error) } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type StoragePureSnapshotScheduleListWithoutEmbeddedStruct struct { // The total number of 'storage.PureSnapshotSchedule' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_storage_pure_snapshot_schedule_response.go b/model_storage_pure_snapshot_schedule_response.go index 342fe134b0..40e2080d74 100644 --- a/model_storage_pure_snapshot_schedule_response.go +++ b/model_storage_pure_snapshot_schedule_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_storage_pure_target_array.go b/model_storage_pure_target_array.go index d408f6cbff..eb7baa8123 100644 --- a/model_storage_pure_target_array.go +++ b/model_storage_pure_target_array.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -84,6 +84,11 @@ func (o *StoragePureTargetArray) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "storage.PureTargetArray" of the ClassId field. +func (o *StoragePureTargetArray) GetDefaultClassId() interface{} { + return "storage.PureTargetArray" +} + // GetObjectType returns the ObjectType field value func (o *StoragePureTargetArray) GetObjectType() string { if o == nil { @@ -108,6 +113,11 @@ func (o *StoragePureTargetArray) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "storage.PureTargetArray" of the ObjectType field. +func (o *StoragePureTargetArray) GetDefaultObjectType() interface{} { + return "storage.PureTargetArray" +} + // GetName returns the Name field value if set, zero value otherwise. func (o *StoragePureTargetArray) GetName() string { if o == nil || IsNil(o.Name) { @@ -244,7 +254,13 @@ func (o StoragePureTargetArray) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Name) { toSerialize["Name"] = o.Name @@ -272,6 +288,13 @@ func (o *StoragePureTargetArray) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -281,11 +304,23 @@ func (o *StoragePureTargetArray) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type StoragePureTargetArrayWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_storage_pure_target_array_list.go b/model_storage_pure_target_array_list.go index 8fa00b0651..14577cb2e8 100644 --- a/model_storage_pure_target_array_list.go +++ b/model_storage_pure_target_array_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *StoragePureTargetArrayList) GetResultsOk() ([]StoragePureTargetArray, b // HasResults returns a boolean if a field has been set. func (o *StoragePureTargetArrayList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *StoragePureTargetArrayList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *StoragePureTargetArrayList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type StoragePureTargetArrayListWithoutEmbeddedStruct struct { // The total number of 'storage.PureTargetArray' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_storage_pure_target_array_response.go b/model_storage_pure_target_array_response.go index 409c0488fe..118ba98a9c 100644 --- a/model_storage_pure_target_array_response.go +++ b/model_storage_pure_target_array_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_storage_pure_volume.go b/model_storage_pure_volume.go index f02b31601c..b728f86972 100644 --- a/model_storage_pure_volume.go +++ b/model_storage_pure_volume.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -90,6 +90,11 @@ func (o *StoragePureVolume) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "storage.PureVolume" of the ClassId field. +func (o *StoragePureVolume) GetDefaultClassId() interface{} { + return "storage.PureVolume" +} + // GetObjectType returns the ObjectType field value func (o *StoragePureVolume) GetObjectType() string { if o == nil { @@ -114,6 +119,11 @@ func (o *StoragePureVolume) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "storage.PureVolume" of the ObjectType field. +func (o *StoragePureVolume) GetDefaultObjectType() interface{} { + return "storage.PureVolume" +} + // GetCreated returns the Created field value if set, zero value otherwise. func (o *StoragePureVolume) GetCreated() time.Time { if o == nil || IsNil(o.Created) { @@ -357,7 +367,13 @@ func (o StoragePureVolume) ToMap() (map[string]interface{}, error) { if errStorageBaseVolume != nil { return map[string]interface{}{}, errStorageBaseVolume } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Created) { toSerialize["Created"] = o.Created @@ -394,6 +410,13 @@ func (o *StoragePureVolume) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -403,11 +426,23 @@ func (o *StoragePureVolume) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type StoragePureVolumeWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_storage_pure_volume_list.go b/model_storage_pure_volume_list.go index 026c1e4b96..9590006492 100644 --- a/model_storage_pure_volume_list.go +++ b/model_storage_pure_volume_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *StoragePureVolumeList) GetResultsOk() ([]StoragePureVolume, bool) { // HasResults returns a boolean if a field has been set. func (o *StoragePureVolumeList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *StoragePureVolumeList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *StoragePureVolumeList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type StoragePureVolumeListWithoutEmbeddedStruct struct { // The total number of 'storage.PureVolume' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_storage_pure_volume_relationship.go b/model_storage_pure_volume_relationship.go index 99f71ba306..3eb2f92977 100644 --- a/model_storage_pure_volume_relationship.go +++ b/model_storage_pure_volume_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_storage_pure_volume_response.go b/model_storage_pure_volume_response.go index 1893dcf8b6..89670e3a8d 100644 --- a/model_storage_pure_volume_response.go +++ b/model_storage_pure_volume_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_storage_pure_volume_snapshot.go b/model_storage_pure_volume_snapshot.go index 24b66dd6d6..4d17a150b8 100644 --- a/model_storage_pure_volume_snapshot.go +++ b/model_storage_pure_volume_snapshot.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -86,6 +86,11 @@ func (o *StoragePureVolumeSnapshot) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "storage.PureVolumeSnapshot" of the ClassId field. +func (o *StoragePureVolumeSnapshot) GetDefaultClassId() interface{} { + return "storage.PureVolumeSnapshot" +} + // GetObjectType returns the ObjectType field value func (o *StoragePureVolumeSnapshot) GetObjectType() string { if o == nil { @@ -110,6 +115,11 @@ func (o *StoragePureVolumeSnapshot) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "storage.PureVolumeSnapshot" of the ObjectType field. +func (o *StoragePureVolumeSnapshot) GetDefaultObjectType() interface{} { + return "storage.PureVolumeSnapshot" +} + // GetSerial returns the Serial field value if set, zero value otherwise. func (o *StoragePureVolumeSnapshot) GetSerial() string { if o == nil || IsNil(o.Serial) { @@ -332,7 +342,13 @@ func (o StoragePureVolumeSnapshot) ToMap() (map[string]interface{}, error) { if errStorageBaseSnapshot != nil { return map[string]interface{}{}, errStorageBaseSnapshot } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Serial) { toSerialize["Serial"] = o.Serial @@ -366,6 +382,13 @@ func (o *StoragePureVolumeSnapshot) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -375,11 +398,23 @@ func (o *StoragePureVolumeSnapshot) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type StoragePureVolumeSnapshotWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_storage_pure_volume_snapshot_list.go b/model_storage_pure_volume_snapshot_list.go index 68c6dbec79..fc731f4750 100644 --- a/model_storage_pure_volume_snapshot_list.go +++ b/model_storage_pure_volume_snapshot_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *StoragePureVolumeSnapshotList) GetResultsOk() ([]StoragePureVolumeSnaps // HasResults returns a boolean if a field has been set. func (o *StoragePureVolumeSnapshotList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *StoragePureVolumeSnapshotList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *StoragePureVolumeSnapshotList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type StoragePureVolumeSnapshotListWithoutEmbeddedStruct struct { // The total number of 'storage.PureVolumeSnapshot' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_storage_pure_volume_snapshot_response.go b/model_storage_pure_volume_snapshot_response.go index 73cc347d86..50a5ee5cdb 100644 --- a/model_storage_pure_volume_snapshot_response.go +++ b/model_storage_pure_volume_snapshot_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_storage_pure_volume_utilization.go b/model_storage_pure_volume_utilization.go index 1ab2235e7e..e938a9385e 100644 --- a/model_storage_pure_volume_utilization.go +++ b/model_storage_pure_volume_utilization.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -83,6 +83,10 @@ func (o *StoragePureVolumeUtilization) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -92,11 +96,23 @@ func (o *StoragePureVolumeUtilization) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type StoragePureVolumeUtilizationWithoutEmbeddedStruct struct { } diff --git a/model_storage_r0_drive.go b/model_storage_r0_drive.go index 0c05ec20f3..a71b57adc8 100644 --- a/model_storage_r0_drive.go +++ b/model_storage_r0_drive.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -29,9 +29,9 @@ type StorageR0Drive struct { // The fully-qualified name of the instantiated, concrete type. The value should be the same as the 'ClassId' property. ObjectType string `json:"ObjectType"` // The set of drive slots where RAID0 virtual drives must be created. - DriveSlots *string `json:"DriveSlots,omitempty"` + DriveSlots *string `json:"DriveSlots,omitempty" validate:"regexp=^$|^((\\\\d+\\\\-\\\\d+)|(\\\\d+))(,((\\\\d+\\\\-\\\\d+)|(\\\\d+)))*$"` // The list of drive slots where RAID0 virtual drives must be created (comma separated). - DriveSlotsList *string `json:"DriveSlotsList,omitempty"` + DriveSlotsList *string `json:"DriveSlotsList,omitempty" validate:"regexp=^$|^((\\\\d+\\\\-\\\\d+)|(\\\\d+))(,((\\\\d+\\\\-\\\\d+)|(\\\\d+)))*$"` // If enabled, this will create a RAID0 virtual drive per disk and encompassing the whole disk. Enable *bool `json:"Enable,omitempty"` VirtualDrivePolicy NullableStorageVirtualDrivePolicy `json:"VirtualDrivePolicy,omitempty"` @@ -91,6 +91,11 @@ func (o *StorageR0Drive) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "storage.R0Drive" of the ClassId field. +func (o *StorageR0Drive) GetDefaultClassId() interface{} { + return "storage.R0Drive" +} + // GetObjectType returns the ObjectType field value func (o *StorageR0Drive) GetObjectType() string { if o == nil { @@ -115,6 +120,11 @@ func (o *StorageR0Drive) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "storage.R0Drive" of the ObjectType field. +func (o *StorageR0Drive) GetDefaultObjectType() interface{} { + return "storage.R0Drive" +} + // GetDriveSlots returns the DriveSlots field value if set, zero value otherwise. func (o *StorageR0Drive) GetDriveSlots() string { if o == nil || IsNil(o.DriveSlots) { @@ -272,7 +282,13 @@ func (o StorageR0Drive) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.DriveSlots) { toSerialize["DriveSlots"] = o.DriveSlots @@ -303,6 +319,13 @@ func (o *StorageR0Drive) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -312,20 +335,32 @@ func (o *StorageR0Drive) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type StorageR0DriveWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` // The fully-qualified name of the instantiated, concrete type. The value should be the same as the 'ClassId' property. ObjectType string `json:"ObjectType"` // The set of drive slots where RAID0 virtual drives must be created. - DriveSlots *string `json:"DriveSlots,omitempty"` + DriveSlots *string `json:"DriveSlots,omitempty" validate:"regexp=^$|^((\\\\d+\\\\-\\\\d+)|(\\\\d+))(,((\\\\d+\\\\-\\\\d+)|(\\\\d+)))*$"` // The list of drive slots where RAID0 virtual drives must be created (comma separated). - DriveSlotsList *string `json:"DriveSlotsList,omitempty"` + DriveSlotsList *string `json:"DriveSlotsList,omitempty" validate:"regexp=^$|^((\\\\d+\\\\-\\\\d+)|(\\\\d+))(,((\\\\d+\\\\-\\\\d+)|(\\\\d+)))*$"` // If enabled, this will create a RAID0 virtual drive per disk and encompassing the whole disk. Enable *bool `json:"Enable,omitempty"` VirtualDrivePolicy NullableStorageVirtualDrivePolicy `json:"VirtualDrivePolicy,omitempty"` diff --git a/model_storage_remote_key_setting.go b/model_storage_remote_key_setting.go index 15254bbb89..811ab5cc8a 100644 --- a/model_storage_remote_key_setting.go +++ b/model_storage_remote_key_setting.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -30,7 +30,7 @@ type StorageRemoteKeySetting struct { ObjectType string `json:"ObjectType"` AuthCredentials NullableStorageKmipAuthCredentials `json:"AuthCredentials,omitempty"` // Current Security Key Passphrase which is already configured on the server. - ExistingKey *string `json:"ExistingKey,omitempty"` + ExistingKey *string `json:"ExistingKey,omitempty" validate:"regexp=^$|^[a-zA-Z0-9=!&#$%+^@_*-]+$"` // Indicates whether the value of the 'existingKey' property has been set. IsExistingKeySet *bool `json:"IsExistingKeySet,omitempty"` PrimaryServer NullableStorageKmipServer `json:"PrimaryServer,omitempty"` @@ -89,6 +89,11 @@ func (o *StorageRemoteKeySetting) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "storage.RemoteKeySetting" of the ClassId field. +func (o *StorageRemoteKeySetting) GetDefaultClassId() interface{} { + return "storage.RemoteKeySetting" +} + // GetObjectType returns the ObjectType field value func (o *StorageRemoteKeySetting) GetObjectType() string { if o == nil { @@ -113,6 +118,11 @@ func (o *StorageRemoteKeySetting) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "storage.RemoteKeySetting" of the ObjectType field. +func (o *StorageRemoteKeySetting) GetDefaultObjectType() interface{} { + return "storage.RemoteKeySetting" +} + // GetAuthCredentials returns the AuthCredentials field value if set, zero value otherwise (both if not set or set to explicit null). func (o *StorageRemoteKeySetting) GetAuthCredentials() StorageKmipAuthCredentials { if o == nil || IsNil(o.AuthCredentials.Get()) { @@ -356,7 +366,13 @@ func (o StorageRemoteKeySetting) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.AuthCredentials.IsSet() { toSerialize["AuthCredentials"] = o.AuthCredentials.Get() @@ -393,6 +409,13 @@ func (o *StorageRemoteKeySetting) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -402,11 +425,23 @@ func (o *StorageRemoteKeySetting) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type StorageRemoteKeySettingWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` @@ -414,7 +449,7 @@ func (o *StorageRemoteKeySetting) UnmarshalJSON(data []byte) (err error) { ObjectType string `json:"ObjectType"` AuthCredentials NullableStorageKmipAuthCredentials `json:"AuthCredentials,omitempty"` // Current Security Key Passphrase which is already configured on the server. - ExistingKey *string `json:"ExistingKey,omitempty"` + ExistingKey *string `json:"ExistingKey,omitempty" validate:"regexp=^$|^[a-zA-Z0-9=!&#$%+^@_*-]+$"` // Indicates whether the value of the 'existingKey' property has been set. IsExistingKeySet *bool `json:"IsExistingKeySet,omitempty"` PrimaryServer NullableStorageKmipServer `json:"PrimaryServer,omitempty"` diff --git a/model_storage_sas_expander.go b/model_storage_sas_expander.go index 657b326e05..92234c6e79 100644 --- a/model_storage_sas_expander.go +++ b/model_storage_sas_expander.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -95,6 +95,11 @@ func (o *StorageSasExpander) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "storage.SasExpander" of the ClassId field. +func (o *StorageSasExpander) GetDefaultClassId() interface{} { + return "storage.SasExpander" +} + // GetObjectType returns the ObjectType field value func (o *StorageSasExpander) GetObjectType() string { if o == nil { @@ -119,6 +124,11 @@ func (o *StorageSasExpander) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "storage.SasExpander" of the ObjectType field. +func (o *StorageSasExpander) GetDefaultObjectType() interface{} { + return "storage.SasExpander" +} + // GetExpanderId returns the ExpanderId field value if set, zero value otherwise. func (o *StorageSasExpander) GetExpanderId() int64 { if o == nil || IsNil(o.ExpanderId) { @@ -512,7 +522,13 @@ func (o StorageSasExpander) ToMap() (map[string]interface{}, error) { if errEquipmentBase != nil { return map[string]interface{}{}, errEquipmentBase } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.ExpanderId) { toSerialize["ExpanderId"] = o.ExpanderId @@ -561,6 +577,13 @@ func (o *StorageSasExpander) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -570,11 +593,23 @@ func (o *StorageSasExpander) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type StorageSasExpanderWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_storage_sas_expander_list.go b/model_storage_sas_expander_list.go index ba35e7af66..a1c8a19e9a 100644 --- a/model_storage_sas_expander_list.go +++ b/model_storage_sas_expander_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *StorageSasExpanderList) GetResultsOk() ([]StorageSasExpander, bool) { // HasResults returns a boolean if a field has been set. func (o *StorageSasExpanderList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *StorageSasExpanderList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *StorageSasExpanderList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type StorageSasExpanderListWithoutEmbeddedStruct struct { // The total number of 'storage.SasExpander' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_storage_sas_expander_relationship.go b/model_storage_sas_expander_relationship.go index 0d368d57dc..11c4d1c1e9 100644 --- a/model_storage_sas_expander_relationship.go +++ b/model_storage_sas_expander_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_storage_sas_expander_response.go b/model_storage_sas_expander_response.go index b937d4f8c6..25d20da737 100644 --- a/model_storage_sas_expander_response.go +++ b/model_storage_sas_expander_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_storage_sas_port.go b/model_storage_sas_port.go index 018ca82d44..7d90b6a29d 100644 --- a/model_storage_sas_port.go +++ b/model_storage_sas_port.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -93,6 +93,11 @@ func (o *StorageSasPort) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "storage.SasPort" of the ClassId field. +func (o *StorageSasPort) GetDefaultClassId() interface{} { + return "storage.SasPort" +} + // GetObjectType returns the ObjectType field value func (o *StorageSasPort) GetObjectType() string { if o == nil { @@ -117,6 +122,11 @@ func (o *StorageSasPort) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "storage.SasPort" of the ObjectType field. +func (o *StorageSasPort) GetDefaultObjectType() interface{} { + return "storage.SasPort" +} + // GetAddress returns the Address field value if set, zero value otherwise. func (o *StorageSasPort) GetAddress() string { if o == nil || IsNil(o.Address) { @@ -424,7 +434,13 @@ func (o StorageSasPort) ToMap() (map[string]interface{}, error) { if errInventoryBase != nil { return map[string]interface{}{}, errInventoryBase } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Address) { toSerialize["Address"] = o.Address @@ -467,6 +483,13 @@ func (o *StorageSasPort) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -476,11 +499,23 @@ func (o *StorageSasPort) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type StorageSasPortWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_storage_sas_port_list.go b/model_storage_sas_port_list.go index 5610e6e348..096c14b60c 100644 --- a/model_storage_sas_port_list.go +++ b/model_storage_sas_port_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *StorageSasPortList) GetResultsOk() ([]StorageSasPort, bool) { // HasResults returns a boolean if a field has been set. func (o *StorageSasPortList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *StorageSasPortList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *StorageSasPortList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type StorageSasPortListWithoutEmbeddedStruct struct { // The total number of 'storage.SasPort' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_storage_sas_port_relationship.go b/model_storage_sas_port_relationship.go index 4fc07d3462..54b6bc7377 100644 --- a/model_storage_sas_port_relationship.go +++ b/model_storage_sas_port_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_storage_sas_port_response.go b/model_storage_sas_port_response.go index fc9c9f4776..20a6bc5cd6 100644 --- a/model_storage_sas_port_response.go +++ b/model_storage_sas_port_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_storage_space.go b/model_storage_space.go index 3764f8b793..4da31c60b9 100644 --- a/model_storage_space.go +++ b/model_storage_space.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -90,6 +90,11 @@ func (o *StorageSpace) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "storage.Space" of the ClassId field. +func (o *StorageSpace) GetDefaultClassId() interface{} { + return "storage.Space" +} + // GetObjectType returns the ObjectType field value func (o *StorageSpace) GetObjectType() string { if o == nil { @@ -114,6 +119,11 @@ func (o *StorageSpace) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "storage.Space" of the ObjectType field. +func (o *StorageSpace) GetDefaultObjectType() interface{} { + return "storage.Space" +} + // GetLbaLocation returns the LbaLocation field value if set, zero value otherwise. func (o *StorageSpace) GetLbaLocation() string { if o == nil || IsNil(o.LbaLocation) { @@ -292,7 +302,13 @@ func (o StorageSpace) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.LbaLocation) { toSerialize["LbaLocation"] = o.LbaLocation @@ -326,6 +342,13 @@ func (o *StorageSpace) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -335,11 +358,23 @@ func (o *StorageSpace) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type StorageSpaceWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_storage_span.go b/model_storage_span.go index 797b4ba785..713f0a9b50 100644 --- a/model_storage_span.go +++ b/model_storage_span.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -87,6 +87,11 @@ func (o *StorageSpan) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "storage.Span" of the ClassId field. +func (o *StorageSpan) GetDefaultClassId() interface{} { + return "storage.Span" +} + // GetObjectType returns the ObjectType field value func (o *StorageSpan) GetObjectType() string { if o == nil { @@ -111,6 +116,11 @@ func (o *StorageSpan) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "storage.Span" of the ObjectType field. +func (o *StorageSpan) GetDefaultObjectType() interface{} { + return "storage.Span" +} + // GetSlots returns the Slots field value if set, zero value otherwise (both if not set or set to explicit null). func (o *StorageSpan) GetSlots() []int64 { if o == nil { @@ -132,7 +142,7 @@ func (o *StorageSpan) GetSlotsOk() ([]int64, bool) { // HasSlots returns a boolean if a field has been set. func (o *StorageSpan) HasSlots() bool { - if o != nil && IsNil(o.Slots) { + if o != nil && !IsNil(o.Slots) { return true } @@ -240,7 +250,7 @@ func (o *StorageSpan) GetPhysicalDisksOk() ([]StoragePhysicalDiskRelationship, b // HasPhysicalDisks returns a boolean if a field has been set. func (o *StorageSpan) HasPhysicalDisks() bool { - if o != nil && IsNil(o.PhysicalDisks) { + if o != nil && !IsNil(o.PhysicalDisks) { return true } @@ -313,7 +323,13 @@ func (o StorageSpan) ToMap() (map[string]interface{}, error) { if errInventoryBase != nil { return map[string]interface{}{}, errInventoryBase } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.Slots != nil { toSerialize["Slots"] = o.Slots @@ -347,6 +363,13 @@ func (o *StorageSpan) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -356,11 +379,23 @@ func (o *StorageSpan) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type StorageSpanWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_storage_span_drives.go b/model_storage_span_drives.go index 93670a72a8..666bf1cd86 100644 --- a/model_storage_span_drives.go +++ b/model_storage_span_drives.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -29,7 +29,7 @@ type StorageSpanDrives struct { // The fully-qualified name of the instantiated, concrete type. The value should be the same as the 'ClassId' property. ObjectType string `json:"ObjectType"` // Collection of local disks that are part of this span group. Allowed value is a comma or hyphen separated number range. The minimum number of disks needed in a span group varies based on RAID level. RAID0 requires at least one disk, RAID1 and RAID10 requires at least 2 and in multiples of 2, RAID5 RAID50 RAID6 and RAID60 require at least 3 disks in a span group. - Slots *string `json:"Slots,omitempty"` + Slots *string `json:"Slots,omitempty" validate:"regexp=^$|^((\\\\d+\\\\-\\\\d+)|(\\\\d+))(,((\\\\d+\\\\-\\\\d+)|(\\\\d+)))*$"` AdditionalProperties map[string]interface{} } @@ -82,6 +82,11 @@ func (o *StorageSpanDrives) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "storage.SpanDrives" of the ClassId field. +func (o *StorageSpanDrives) GetDefaultClassId() interface{} { + return "storage.SpanDrives" +} + // GetObjectType returns the ObjectType field value func (o *StorageSpanDrives) GetObjectType() string { if o == nil { @@ -106,6 +111,11 @@ func (o *StorageSpanDrives) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "storage.SpanDrives" of the ObjectType field. +func (o *StorageSpanDrives) GetDefaultObjectType() interface{} { + return "storage.SpanDrives" +} + // GetSlots returns the Slots field value if set, zero value otherwise. func (o *StorageSpanDrives) GetSlots() string { if o == nil || IsNil(o.Slots) { @@ -156,7 +166,13 @@ func (o StorageSpanDrives) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Slots) { toSerialize["Slots"] = o.Slots @@ -178,6 +194,13 @@ func (o *StorageSpanDrives) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -187,18 +210,30 @@ func (o *StorageSpanDrives) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type StorageSpanDrivesWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` // The fully-qualified name of the instantiated, concrete type. The value should be the same as the 'ClassId' property. ObjectType string `json:"ObjectType"` // Collection of local disks that are part of this span group. Allowed value is a comma or hyphen separated number range. The minimum number of disks needed in a span group varies based on RAID level. RAID0 requires at least one disk, RAID1 and RAID10 requires at least 2 and in multiples of 2, RAID5 RAID50 RAID6 and RAID60 require at least 3 disks in a span group. - Slots *string `json:"Slots,omitempty"` + Slots *string `json:"Slots,omitempty" validate:"regexp=^$|^((\\\\d+\\\\-\\\\d+)|(\\\\d+))(,((\\\\d+\\\\-\\\\d+)|(\\\\d+)))*$"` } varStorageSpanDrivesWithoutEmbeddedStruct := StorageSpanDrivesWithoutEmbeddedStruct{} diff --git a/model_storage_span_list.go b/model_storage_span_list.go index 350d51b7f9..8bd86105d9 100644 --- a/model_storage_span_list.go +++ b/model_storage_span_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *StorageSpanList) GetResultsOk() ([]StorageSpan, bool) { // HasResults returns a boolean if a field has been set. func (o *StorageSpanList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *StorageSpanList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *StorageSpanList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type StorageSpanListWithoutEmbeddedStruct struct { // The total number of 'storage.Span' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_storage_span_relationship.go b/model_storage_span_relationship.go index 3cd15ac146..b5e5736a56 100644 --- a/model_storage_span_relationship.go +++ b/model_storage_span_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_storage_span_response.go b/model_storage_span_response.go index ceb2bb96d0..4fb26ecae8 100644 --- a/model_storage_span_response.go +++ b/model_storage_span_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_storage_storage_container_host_mount_status.go b/model_storage_storage_container_host_mount_status.go index 7078c172ef..fd9e7d12b1 100644 --- a/model_storage_storage_container_host_mount_status.go +++ b/model_storage_storage_container_host_mount_status.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -88,6 +88,11 @@ func (o *StorageStorageContainerHostMountStatus) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "storage.StorageContainerHostMountStatus" of the ClassId field. +func (o *StorageStorageContainerHostMountStatus) GetDefaultClassId() interface{} { + return "storage.StorageContainerHostMountStatus" +} + // GetObjectType returns the ObjectType field value func (o *StorageStorageContainerHostMountStatus) GetObjectType() string { if o == nil { @@ -112,6 +117,11 @@ func (o *StorageStorageContainerHostMountStatus) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "storage.StorageContainerHostMountStatus" of the ObjectType field. +func (o *StorageStorageContainerHostMountStatus) GetDefaultObjectType() interface{} { + return "storage.StorageContainerHostMountStatus" +} + // GetAccessibility returns the Accessibility field value if set, zero value otherwise. func (o *StorageStorageContainerHostMountStatus) GetAccessibility() string { if o == nil || IsNil(o.Accessibility) { @@ -258,7 +268,13 @@ func (o StorageStorageContainerHostMountStatus) ToMap() (map[string]interface{}, if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Accessibility) { toSerialize["Accessibility"] = o.Accessibility @@ -289,6 +305,13 @@ func (o *StorageStorageContainerHostMountStatus) UnmarshalJSON(data []byte) (err "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -298,11 +321,23 @@ func (o *StorageStorageContainerHostMountStatus) UnmarshalJSON(data []byte) (err } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type StorageStorageContainerHostMountStatusWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_storage_storage_container_utilization.go b/model_storage_storage_container_utilization.go index c87f7f9b78..d96af70484 100644 --- a/model_storage_storage_container_utilization.go +++ b/model_storage_storage_container_utilization.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -83,6 +83,10 @@ func (o *StorageStorageContainerUtilization) UnmarshalJSON(data []byte) (err err "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -92,11 +96,23 @@ func (o *StorageStorageContainerUtilization) UnmarshalJSON(data []byte) (err err } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type StorageStorageContainerUtilizationWithoutEmbeddedStruct struct { } diff --git a/model_storage_storage_policy.go b/model_storage_storage_policy.go index b9990316c3..3b05d7b6f9 100644 --- a/model_storage_storage_policy.go +++ b/model_storage_storage_policy.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -31,15 +31,15 @@ type StorageStoragePolicy struct { // All unconfigured drives will move to the selected state on deployment. Newly inserted drives will move to the selected state. Select Unconfigured Good option to retain the existing configuration. Select JBOD to move the unconfigured drives to JBOD state. Select RAID0 to create a RAID0 virtual drive on each of the unconfigured drives. If JBOD is selected, unconfigured drives will move to JBOD state on host reboot. This setting is applicable only to selected set of controllers on FI attached servers. * `UnconfiguredGood` - Newly inserted drives or on reboot, drives will remain the same state. * `Jbod` - Newly inserted drives or on reboot, drives will automatically move to JBOD state if drive state was UnconfiguredGood. * `RAID0` - Newly inserted drives or on reboot, virtual drives will be created, respective drives will move to Online state. DefaultDriveMode *string `json:"DefaultDriveMode,omitempty"` // Only U.3 NVMe drives has to be specified, entered slots will be moved to Direct attached mode. Allowed slots are 1-4, 101-104. Allowed value is a comma or hyphen separated number range. - DirectAttachedNvmeSlots *string `json:"DirectAttachedNvmeSlots,omitempty"` + DirectAttachedNvmeSlots *string `json:"DirectAttachedNvmeSlots,omitempty" validate:"regexp=^$|^((\\\\d+\\\\-\\\\d+)|(\\\\d+))(,((\\\\d+\\\\-\\\\d+)|(\\\\d+)))*$"` // A collection of disks that is to be used as hot spares, globally, for all the RAID groups. Allowed value is a number range separated by a comma or a hyphen. - GlobalHotSpares *string `json:"GlobalHotSpares,omitempty"` + GlobalHotSpares *string `json:"GlobalHotSpares,omitempty" validate:"regexp=^$|^((\\\\d+\\\\-\\\\d+)|(\\\\d+))(,((\\\\d+\\\\-\\\\d+)|(\\\\d+)))*$"` M2VirtualDrive NullableStorageM2VirtualDriveConfig `json:"M2VirtualDrive,omitempty"` Raid0Drive NullableStorageR0Drive `json:"Raid0Drive,omitempty"` // Only U.3 NVMe drives has to be specified, entered slots will be moved to RAID attached mode. Allowed slots are 1-4, 101-104. Allowed value is a comma or hyphen separated number range. - RaidAttachedNvmeSlots *string `json:"RaidAttachedNvmeSlots,omitempty"` + RaidAttachedNvmeSlots *string `json:"RaidAttachedNvmeSlots,omitempty" validate:"regexp=^$|^((\\\\d+\\\\-\\\\d+)|(\\\\d+))(,((\\\\d+\\\\-\\\\d+)|(\\\\d+)))*$"` // JBOD drives specified in this slot range will be encrypted. Allowed values are 'ALL', or a comma or hyphen separated number range. Sample format is ALL or 1, 3 or 4-6, 8. Setting the value to 'ALL' will encrypt all the unused UnconfigureGood/JBOD disks. - SecureJbods *string `json:"SecureJbods,omitempty"` + SecureJbods *string `json:"SecureJbods,omitempty" validate:"regexp=^$|^((((\\\\d+\\\\-\\\\d+)|(\\\\d+))(,((\\\\d+\\\\-\\\\d+)|(\\\\d+)))*)|(a|A)(l|L)(l|L))$"` // State to which drives, not used in this policy, are to be moved. NoChange will not change the drive state. No Change must be selected if Default Drive State is set to JBOD or RAID0. * `NoChange` - Drive state will not be modified by Storage Policy. * `UnconfiguredGood` - Unconfigured good state -ready to be added in a RAID group. * `Jbod` - JBOD state where the disks start showing up to Host OS. UnusedDisksState *string `json:"UnusedDisksState,omitempty"` // Disks in JBOD State are used to create virtual drives. This setting must be disabled if Default Drive State is set to JBOD. @@ -109,6 +109,11 @@ func (o *StorageStoragePolicy) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "storage.StoragePolicy" of the ClassId field. +func (o *StorageStoragePolicy) GetDefaultClassId() interface{} { + return "storage.StoragePolicy" +} + // GetObjectType returns the ObjectType field value func (o *StorageStoragePolicy) GetObjectType() string { if o == nil { @@ -133,6 +138,11 @@ func (o *StorageStoragePolicy) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "storage.StoragePolicy" of the ObjectType field. +func (o *StorageStoragePolicy) GetDefaultObjectType() interface{} { + return "storage.StoragePolicy" +} + // GetDefaultDriveMode returns the DefaultDriveMode field value if set, zero value otherwise. func (o *StorageStoragePolicy) GetDefaultDriveMode() string { if o == nil || IsNil(o.DefaultDriveMode) { @@ -464,7 +474,7 @@ func (o *StorageStoragePolicy) GetDriveGroupOk() ([]StorageDriveGroupRelationshi // HasDriveGroup returns a boolean if a field has been set. func (o *StorageStoragePolicy) HasDriveGroup() bool { - if o != nil && IsNil(o.DriveGroup) { + if o != nil && !IsNil(o.DriveGroup) { return true } @@ -540,7 +550,7 @@ func (o *StorageStoragePolicy) GetProfilesOk() ([]PolicyAbstractConfigProfileRel // HasProfiles returns a boolean if a field has been set. func (o *StorageStoragePolicy) HasProfiles() bool { - if o != nil && IsNil(o.Profiles) { + if o != nil && !IsNil(o.Profiles) { return true } @@ -570,7 +580,13 @@ func (o StorageStoragePolicy) ToMap() (map[string]interface{}, error) { if errPolicyAbstractPolicy != nil { return map[string]interface{}{}, errPolicyAbstractPolicy } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.DefaultDriveMode) { toSerialize["DefaultDriveMode"] = o.DefaultDriveMode @@ -625,6 +641,13 @@ func (o *StorageStoragePolicy) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -634,11 +657,23 @@ func (o *StorageStoragePolicy) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type StorageStoragePolicyWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` @@ -647,15 +682,15 @@ func (o *StorageStoragePolicy) UnmarshalJSON(data []byte) (err error) { // All unconfigured drives will move to the selected state on deployment. Newly inserted drives will move to the selected state. Select Unconfigured Good option to retain the existing configuration. Select JBOD to move the unconfigured drives to JBOD state. Select RAID0 to create a RAID0 virtual drive on each of the unconfigured drives. If JBOD is selected, unconfigured drives will move to JBOD state on host reboot. This setting is applicable only to selected set of controllers on FI attached servers. * `UnconfiguredGood` - Newly inserted drives or on reboot, drives will remain the same state. * `Jbod` - Newly inserted drives or on reboot, drives will automatically move to JBOD state if drive state was UnconfiguredGood. * `RAID0` - Newly inserted drives or on reboot, virtual drives will be created, respective drives will move to Online state. DefaultDriveMode *string `json:"DefaultDriveMode,omitempty"` // Only U.3 NVMe drives has to be specified, entered slots will be moved to Direct attached mode. Allowed slots are 1-4, 101-104. Allowed value is a comma or hyphen separated number range. - DirectAttachedNvmeSlots *string `json:"DirectAttachedNvmeSlots,omitempty"` + DirectAttachedNvmeSlots *string `json:"DirectAttachedNvmeSlots,omitempty" validate:"regexp=^$|^((\\\\d+\\\\-\\\\d+)|(\\\\d+))(,((\\\\d+\\\\-\\\\d+)|(\\\\d+)))*$"` // A collection of disks that is to be used as hot spares, globally, for all the RAID groups. Allowed value is a number range separated by a comma or a hyphen. - GlobalHotSpares *string `json:"GlobalHotSpares,omitempty"` + GlobalHotSpares *string `json:"GlobalHotSpares,omitempty" validate:"regexp=^$|^((\\\\d+\\\\-\\\\d+)|(\\\\d+))(,((\\\\d+\\\\-\\\\d+)|(\\\\d+)))*$"` M2VirtualDrive NullableStorageM2VirtualDriveConfig `json:"M2VirtualDrive,omitempty"` Raid0Drive NullableStorageR0Drive `json:"Raid0Drive,omitempty"` // Only U.3 NVMe drives has to be specified, entered slots will be moved to RAID attached mode. Allowed slots are 1-4, 101-104. Allowed value is a comma or hyphen separated number range. - RaidAttachedNvmeSlots *string `json:"RaidAttachedNvmeSlots,omitempty"` + RaidAttachedNvmeSlots *string `json:"RaidAttachedNvmeSlots,omitempty" validate:"regexp=^$|^((\\\\d+\\\\-\\\\d+)|(\\\\d+))(,((\\\\d+\\\\-\\\\d+)|(\\\\d+)))*$"` // JBOD drives specified in this slot range will be encrypted. Allowed values are 'ALL', or a comma or hyphen separated number range. Sample format is ALL or 1, 3 or 4-6, 8. Setting the value to 'ALL' will encrypt all the unused UnconfigureGood/JBOD disks. - SecureJbods *string `json:"SecureJbods,omitempty"` + SecureJbods *string `json:"SecureJbods,omitempty" validate:"regexp=^$|^((((\\\\d+\\\\-\\\\d+)|(\\\\d+))(,((\\\\d+\\\\-\\\\d+)|(\\\\d+)))*)|(a|A)(l|L)(l|L))$"` // State to which drives, not used in this policy, are to be moved. NoChange will not change the drive state. No Change must be selected if Default Drive State is set to JBOD or RAID0. * `NoChange` - Drive state will not be modified by Storage Policy. * `UnconfiguredGood` - Unconfigured good state -ready to be added in a RAID group. * `Jbod` - JBOD state where the disks start showing up to Host OS. UnusedDisksState *string `json:"UnusedDisksState,omitempty"` // Disks in JBOD State are used to create virtual drives. This setting must be disabled if Default Drive State is set to JBOD. diff --git a/model_storage_storage_policy_list.go b/model_storage_storage_policy_list.go index 23ffe0172d..45ce1b90c7 100644 --- a/model_storage_storage_policy_list.go +++ b/model_storage_storage_policy_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *StorageStoragePolicyList) GetResultsOk() ([]StorageStoragePolicy, bool) // HasResults returns a boolean if a field has been set. func (o *StorageStoragePolicyList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *StorageStoragePolicyList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *StorageStoragePolicyList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type StorageStoragePolicyListWithoutEmbeddedStruct struct { // The total number of 'storage.StoragePolicy' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_storage_storage_policy_relationship.go b/model_storage_storage_policy_relationship.go index c777d7b5b0..a5995988e2 100644 --- a/model_storage_storage_policy_relationship.go +++ b/model_storage_storage_policy_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_storage_storage_policy_response.go b/model_storage_storage_policy_response.go index a87b03142c..461374e03c 100644 --- a/model_storage_storage_policy_response.go +++ b/model_storage_storage_policy_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_storage_storage_utilization.go b/model_storage_storage_utilization.go index 9ee51562bd..10d383ea60 100644 --- a/model_storage_storage_utilization.go +++ b/model_storage_storage_utilization.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -322,6 +322,10 @@ func (o *StorageStorageUtilization) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -331,11 +335,23 @@ func (o *StorageStorageUtilization) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type StorageStorageUtilizationWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. The enum values provides the list of concrete types that can be instantiated from this abstract type. ClassId string `json:"ClassId"` diff --git a/model_storage_vd_member_ep.go b/model_storage_vd_member_ep.go index bac0dd4105..cb481bba4c 100644 --- a/model_storage_vd_member_ep.go +++ b/model_storage_vd_member_ep.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -93,6 +93,11 @@ func (o *StorageVdMemberEp) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "storage.VdMemberEp" of the ClassId field. +func (o *StorageVdMemberEp) GetDefaultClassId() interface{} { + return "storage.VdMemberEp" +} + // GetObjectType returns the ObjectType field value func (o *StorageVdMemberEp) GetObjectType() string { if o == nil { @@ -117,6 +122,11 @@ func (o *StorageVdMemberEp) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "storage.VdMemberEp" of the ObjectType field. +func (o *StorageVdMemberEp) GetDefaultObjectType() interface{} { + return "storage.VdMemberEp" +} + // GetOperQualifierReason returns the OperQualifierReason field value if set, zero value otherwise. func (o *StorageVdMemberEp) GetOperQualifierReason() string { if o == nil || IsNil(o.OperQualifierReason) { @@ -424,7 +434,13 @@ func (o StorageVdMemberEp) ToMap() (map[string]interface{}, error) { if errInventoryBase != nil { return map[string]interface{}{}, errInventoryBase } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.OperQualifierReason) { toSerialize["OperQualifierReason"] = o.OperQualifierReason @@ -467,6 +483,13 @@ func (o *StorageVdMemberEp) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -476,11 +499,23 @@ func (o *StorageVdMemberEp) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type StorageVdMemberEpWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_storage_vd_member_ep_list.go b/model_storage_vd_member_ep_list.go index 39a2912718..9e4bc2d6c9 100644 --- a/model_storage_vd_member_ep_list.go +++ b/model_storage_vd_member_ep_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *StorageVdMemberEpList) GetResultsOk() ([]StorageVdMemberEp, bool) { // HasResults returns a boolean if a field has been set. func (o *StorageVdMemberEpList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *StorageVdMemberEpList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *StorageVdMemberEpList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type StorageVdMemberEpListWithoutEmbeddedStruct struct { // The total number of 'storage.VdMemberEp' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_storage_vd_member_ep_relationship.go b/model_storage_vd_member_ep_relationship.go index 1115a8be52..4f8ec460f4 100644 --- a/model_storage_vd_member_ep_relationship.go +++ b/model_storage_vd_member_ep_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_storage_vd_member_ep_response.go b/model_storage_vd_member_ep_response.go index 810a4b6ce3..af90ac6ae1 100644 --- a/model_storage_vd_member_ep_response.go +++ b/model_storage_vd_member_ep_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_storage_virtual_drive.go b/model_storage_virtual_drive.go index 9e416a112b..bc8aedd38a 100644 --- a/model_storage_virtual_drive.go +++ b/model_storage_virtual_drive.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -140,6 +140,11 @@ func (o *StorageVirtualDrive) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "storage.VirtualDrive" of the ClassId field. +func (o *StorageVirtualDrive) GetDefaultClassId() interface{} { + return "storage.VirtualDrive" +} + // GetObjectType returns the ObjectType field value func (o *StorageVirtualDrive) GetObjectType() string { if o == nil { @@ -164,6 +169,11 @@ func (o *StorageVirtualDrive) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "storage.VirtualDrive" of the ObjectType field. +func (o *StorageVirtualDrive) GetDefaultObjectType() interface{} { + return "storage.VirtualDrive" +} + // GetAccessPolicy returns the AccessPolicy field value if set, zero value otherwise. func (o *StorageVirtualDrive) GetAccessPolicy() string { if o == nil || IsNil(o.AccessPolicy) { @@ -1071,7 +1081,7 @@ func (o *StorageVirtualDrive) GetPhysicalDiskUsagesOk() ([]StoragePhysicalDiskUs // HasPhysicalDiskUsages returns a boolean if a field has been set. func (o *StorageVirtualDrive) HasPhysicalDiskUsages() bool { - if o != nil && IsNil(o.PhysicalDiskUsages) { + if o != nil && !IsNil(o.PhysicalDiskUsages) { return true } @@ -1233,7 +1243,7 @@ func (o *StorageVirtualDrive) GetVdMemberEpsOk() ([]StorageVdMemberEpRelationshi // HasVdMemberEps returns a boolean if a field has been set. func (o *StorageVirtualDrive) HasVdMemberEps() bool { - if o != nil && IsNil(o.VdMemberEps) { + if o != nil && !IsNil(o.VdMemberEps) { return true } @@ -1306,7 +1316,13 @@ func (o StorageVirtualDrive) ToMap() (map[string]interface{}, error) { if errEquipmentBase != nil { return map[string]interface{}{}, errEquipmentBase } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.AccessPolicy) { toSerialize["AccessPolicy"] = o.AccessPolicy @@ -1424,6 +1440,13 @@ func (o *StorageVirtualDrive) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -1433,11 +1456,23 @@ func (o *StorageVirtualDrive) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type StorageVirtualDriveWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_storage_virtual_drive_configuration.go b/model_storage_virtual_drive_configuration.go index 6ad58fe4a9..f5f72a61be 100644 --- a/model_storage_virtual_drive_configuration.go +++ b/model_storage_virtual_drive_configuration.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -33,7 +33,7 @@ type StorageVirtualDriveConfiguration struct { // This flag enables the virtual drive to use all the space available in the disk group. When this flag is enabled, the size property is ignored. ExpandToAvailable *bool `json:"ExpandToAvailable,omitempty"` // The name of the virtual drive. The name can be between 1 and 15 alphanumeric characters. Spaces or any special characters other than - (hyphen) and _ (underscore) are not allowed. - Name *string `json:"Name,omitempty"` + Name *string `json:"Name,omitempty" validate:"regexp=^[a-zA-Z0-9\\\\-_]*$"` // Virtual drive size in MebiBytes. Size is mandatory field except when the Expand to Available option is enabled. Size *int64 `json:"Size,omitempty"` VirtualDrivePolicy NullableStorageVirtualDrivePolicy `json:"VirtualDrivePolicy,omitempty"` @@ -89,6 +89,11 @@ func (o *StorageVirtualDriveConfiguration) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "storage.VirtualDriveConfiguration" of the ClassId field. +func (o *StorageVirtualDriveConfiguration) GetDefaultClassId() interface{} { + return "storage.VirtualDriveConfiguration" +} + // GetObjectType returns the ObjectType field value func (o *StorageVirtualDriveConfiguration) GetObjectType() string { if o == nil { @@ -113,6 +118,11 @@ func (o *StorageVirtualDriveConfiguration) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "storage.VirtualDriveConfiguration" of the ObjectType field. +func (o *StorageVirtualDriveConfiguration) GetDefaultObjectType() interface{} { + return "storage.VirtualDriveConfiguration" +} + // GetBootDrive returns the BootDrive field value if set, zero value otherwise. func (o *StorageVirtualDriveConfiguration) GetBootDrive() bool { if o == nil || IsNil(o.BootDrive) { @@ -302,7 +312,13 @@ func (o StorageVirtualDriveConfiguration) ToMap() (map[string]interface{}, error if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.BootDrive) { toSerialize["BootDrive"] = o.BootDrive @@ -336,6 +352,13 @@ func (o *StorageVirtualDriveConfiguration) UnmarshalJSON(data []byte) (err error "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -345,11 +368,23 @@ func (o *StorageVirtualDriveConfiguration) UnmarshalJSON(data []byte) (err error } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type StorageVirtualDriveConfigurationWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` @@ -360,7 +395,7 @@ func (o *StorageVirtualDriveConfiguration) UnmarshalJSON(data []byte) (err error // This flag enables the virtual drive to use all the space available in the disk group. When this flag is enabled, the size property is ignored. ExpandToAvailable *bool `json:"ExpandToAvailable,omitempty"` // The name of the virtual drive. The name can be between 1 and 15 alphanumeric characters. Spaces or any special characters other than - (hyphen) and _ (underscore) are not allowed. - Name *string `json:"Name,omitempty"` + Name *string `json:"Name,omitempty" validate:"regexp=^[a-zA-Z0-9\\\\-_]*$"` // Virtual drive size in MebiBytes. Size is mandatory field except when the Expand to Available option is enabled. Size *int64 `json:"Size,omitempty"` VirtualDrivePolicy NullableStorageVirtualDrivePolicy `json:"VirtualDrivePolicy,omitempty"` diff --git a/model_storage_virtual_drive_container.go b/model_storage_virtual_drive_container.go index 6814724a9f..5d128c29fd 100644 --- a/model_storage_virtual_drive_container.go +++ b/model_storage_virtual_drive_container.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -87,6 +87,11 @@ func (o *StorageVirtualDriveContainer) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "storage.VirtualDriveContainer" of the ClassId field. +func (o *StorageVirtualDriveContainer) GetDefaultClassId() interface{} { + return "storage.VirtualDriveContainer" +} + // GetObjectType returns the ObjectType field value func (o *StorageVirtualDriveContainer) GetObjectType() string { if o == nil { @@ -111,6 +116,11 @@ func (o *StorageVirtualDriveContainer) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "storage.VirtualDriveContainer" of the ObjectType field. +func (o *StorageVirtualDriveContainer) GetDefaultObjectType() interface{} { + return "storage.VirtualDriveContainer" +} + // GetContainerId returns the ContainerId field value if set, zero value otherwise. func (o *StorageVirtualDriveContainer) GetContainerId() int64 { if o == nil || IsNil(o.ContainerId) { @@ -293,7 +303,7 @@ func (o *StorageVirtualDriveContainer) GetVirtualDriveOk() ([]StorageVirtualDriv // HasVirtualDrive returns a boolean if a field has been set. func (o *StorageVirtualDriveContainer) HasVirtualDrive() bool { - if o != nil && IsNil(o.VirtualDrive) { + if o != nil && !IsNil(o.VirtualDrive) { return true } @@ -323,7 +333,13 @@ func (o StorageVirtualDriveContainer) ToMap() (map[string]interface{}, error) { if errEquipmentBase != nil { return map[string]interface{}{}, errEquipmentBase } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.ContainerId) { toSerialize["ContainerId"] = o.ContainerId @@ -357,6 +373,13 @@ func (o *StorageVirtualDriveContainer) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -366,11 +389,23 @@ func (o *StorageVirtualDriveContainer) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type StorageVirtualDriveContainerWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_storage_virtual_drive_container_list.go b/model_storage_virtual_drive_container_list.go index ffd129c0ec..8a3b23249c 100644 --- a/model_storage_virtual_drive_container_list.go +++ b/model_storage_virtual_drive_container_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *StorageVirtualDriveContainerList) GetResultsOk() ([]StorageVirtualDrive // HasResults returns a boolean if a field has been set. func (o *StorageVirtualDriveContainerList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *StorageVirtualDriveContainerList) UnmarshalJSON(data []byte) (err error "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *StorageVirtualDriveContainerList) UnmarshalJSON(data []byte) (err error } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type StorageVirtualDriveContainerListWithoutEmbeddedStruct struct { // The total number of 'storage.VirtualDriveContainer' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_storage_virtual_drive_container_relationship.go b/model_storage_virtual_drive_container_relationship.go index f4bf271475..97105aba26 100644 --- a/model_storage_virtual_drive_container_relationship.go +++ b/model_storage_virtual_drive_container_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_storage_virtual_drive_container_response.go b/model_storage_virtual_drive_container_response.go index 0c4073f463..c56b5003d8 100644 --- a/model_storage_virtual_drive_container_response.go +++ b/model_storage_virtual_drive_container_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_storage_virtual_drive_extension.go b/model_storage_virtual_drive_extension.go index 42fcb42322..67e825a4b3 100644 --- a/model_storage_virtual_drive_extension.go +++ b/model_storage_virtual_drive_extension.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -102,6 +102,11 @@ func (o *StorageVirtualDriveExtension) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "storage.VirtualDriveExtension" of the ClassId field. +func (o *StorageVirtualDriveExtension) GetDefaultClassId() interface{} { + return "storage.VirtualDriveExtension" +} + // GetObjectType returns the ObjectType field value func (o *StorageVirtualDriveExtension) GetObjectType() string { if o == nil { @@ -126,6 +131,11 @@ func (o *StorageVirtualDriveExtension) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "storage.VirtualDriveExtension" of the ObjectType field. +func (o *StorageVirtualDriveExtension) GetDefaultObjectType() interface{} { + return "storage.VirtualDriveExtension" +} + // GetBootable returns the Bootable field value if set, zero value otherwise. func (o *StorageVirtualDriveExtension) GetBootable() string { if o == nil || IsNil(o.Bootable) { @@ -604,7 +614,13 @@ func (o StorageVirtualDriveExtension) ToMap() (map[string]interface{}, error) { if errInventoryBase != nil { return map[string]interface{}{}, errInventoryBase } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Bootable) { toSerialize["Bootable"] = o.Bootable @@ -662,6 +678,13 @@ func (o *StorageVirtualDriveExtension) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -671,11 +694,23 @@ func (o *StorageVirtualDriveExtension) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type StorageVirtualDriveExtensionWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_storage_virtual_drive_extension_list.go b/model_storage_virtual_drive_extension_list.go index e40db45240..69781acc46 100644 --- a/model_storage_virtual_drive_extension_list.go +++ b/model_storage_virtual_drive_extension_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *StorageVirtualDriveExtensionList) GetResultsOk() ([]StorageVirtualDrive // HasResults returns a boolean if a field has been set. func (o *StorageVirtualDriveExtensionList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *StorageVirtualDriveExtensionList) UnmarshalJSON(data []byte) (err error "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *StorageVirtualDriveExtensionList) UnmarshalJSON(data []byte) (err error } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type StorageVirtualDriveExtensionListWithoutEmbeddedStruct struct { // The total number of 'storage.VirtualDriveExtension' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_storage_virtual_drive_extension_relationship.go b/model_storage_virtual_drive_extension_relationship.go index 205c709ecf..3e3cb11a1a 100644 --- a/model_storage_virtual_drive_extension_relationship.go +++ b/model_storage_virtual_drive_extension_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_storage_virtual_drive_extension_response.go b/model_storage_virtual_drive_extension_response.go index fa7b12e70b..c345f490ac 100644 --- a/model_storage_virtual_drive_extension_response.go +++ b/model_storage_virtual_drive_extension_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_storage_virtual_drive_identity.go b/model_storage_virtual_drive_identity.go index 0989752505..f6c364f2ab 100644 --- a/model_storage_virtual_drive_identity.go +++ b/model_storage_virtual_drive_identity.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -85,6 +85,11 @@ func (o *StorageVirtualDriveIdentity) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "storage.VirtualDriveIdentity" of the ClassId field. +func (o *StorageVirtualDriveIdentity) GetDefaultClassId() interface{} { + return "storage.VirtualDriveIdentity" +} + // GetObjectType returns the ObjectType field value func (o *StorageVirtualDriveIdentity) GetObjectType() string { if o == nil { @@ -109,6 +114,11 @@ func (o *StorageVirtualDriveIdentity) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "storage.VirtualDriveIdentity" of the ObjectType field. +func (o *StorageVirtualDriveIdentity) GetDefaultObjectType() interface{} { + return "storage.VirtualDriveIdentity" +} + // GetName returns the Name field value if set, zero value otherwise. func (o *StorageVirtualDriveIdentity) GetName() string { if o == nil || IsNil(o.Name) { @@ -288,7 +298,13 @@ func (o StorageVirtualDriveIdentity) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Name) { toSerialize["Name"] = o.Name @@ -319,6 +335,13 @@ func (o *StorageVirtualDriveIdentity) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -328,11 +351,23 @@ func (o *StorageVirtualDriveIdentity) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type StorageVirtualDriveIdentityWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_storage_virtual_drive_identity_list.go b/model_storage_virtual_drive_identity_list.go index 41ad5a65b3..988fbcec8f 100644 --- a/model_storage_virtual_drive_identity_list.go +++ b/model_storage_virtual_drive_identity_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *StorageVirtualDriveIdentityList) GetResultsOk() ([]StorageVirtualDriveI // HasResults returns a boolean if a field has been set. func (o *StorageVirtualDriveIdentityList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *StorageVirtualDriveIdentityList) UnmarshalJSON(data []byte) (err error) "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *StorageVirtualDriveIdentityList) UnmarshalJSON(data []byte) (err error) } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type StorageVirtualDriveIdentityListWithoutEmbeddedStruct struct { // The total number of 'storage.VirtualDriveIdentity' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_storage_virtual_drive_identity_response.go b/model_storage_virtual_drive_identity_response.go index b62420eea9..d2f09ed74e 100644 --- a/model_storage_virtual_drive_identity_response.go +++ b/model_storage_virtual_drive_identity_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_storage_virtual_drive_list.go b/model_storage_virtual_drive_list.go index 0b766d3d0c..c491e88b38 100644 --- a/model_storage_virtual_drive_list.go +++ b/model_storage_virtual_drive_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *StorageVirtualDriveList) GetResultsOk() ([]StorageVirtualDrive, bool) { // HasResults returns a boolean if a field has been set. func (o *StorageVirtualDriveList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *StorageVirtualDriveList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *StorageVirtualDriveList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type StorageVirtualDriveListWithoutEmbeddedStruct struct { // The total number of 'storage.VirtualDrive' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_storage_virtual_drive_policy.go b/model_storage_virtual_drive_policy.go index 56e218bdda..8178f5d8a8 100644 --- a/model_storage_virtual_drive_policy.go +++ b/model_storage_virtual_drive_policy.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -110,6 +110,11 @@ func (o *StorageVirtualDrivePolicy) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "storage.VirtualDrivePolicy" of the ClassId field. +func (o *StorageVirtualDrivePolicy) GetDefaultClassId() interface{} { + return "storage.VirtualDrivePolicy" +} + // GetObjectType returns the ObjectType field value func (o *StorageVirtualDrivePolicy) GetObjectType() string { if o == nil { @@ -134,6 +139,11 @@ func (o *StorageVirtualDrivePolicy) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "storage.VirtualDrivePolicy" of the ObjectType field. +func (o *StorageVirtualDrivePolicy) GetDefaultObjectType() interface{} { + return "storage.VirtualDrivePolicy" +} + // GetAccessPolicy returns the AccessPolicy field value if set, zero value otherwise. func (o *StorageVirtualDrivePolicy) GetAccessPolicy() string { if o == nil || IsNil(o.AccessPolicy) { @@ -312,7 +322,13 @@ func (o StorageVirtualDrivePolicy) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.AccessPolicy) { toSerialize["AccessPolicy"] = o.AccessPolicy @@ -346,6 +362,13 @@ func (o *StorageVirtualDrivePolicy) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -355,11 +378,23 @@ func (o *StorageVirtualDrivePolicy) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type StorageVirtualDrivePolicyWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_storage_virtual_drive_relationship.go b/model_storage_virtual_drive_relationship.go index cc5713ebc4..629f1e0f3f 100644 --- a/model_storage_virtual_drive_relationship.go +++ b/model_storage_virtual_drive_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_storage_virtual_drive_response.go b/model_storage_virtual_drive_response.go index f879939933..ccb368843f 100644 --- a/model_storage_virtual_drive_response.go +++ b/model_storage_virtual_drive_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_storage_volume_utilization.go b/model_storage_volume_utilization.go index 6a0fd67b07..6c53976455 100644 --- a/model_storage_volume_utilization.go +++ b/model_storage_volume_utilization.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -83,6 +83,10 @@ func (o *StorageVolumeUtilization) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -92,11 +96,23 @@ func (o *StorageVolumeUtilization) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type StorageVolumeUtilizationWithoutEmbeddedStruct struct { } diff --git a/model_sw_id_pool_base.go b/model_sw_id_pool_base.go index db55bafc4a..72305a0164 100644 --- a/model_sw_id_pool_base.go +++ b/model_sw_id_pool_base.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -124,7 +124,7 @@ func (o *SwIdPoolBase) GetGapAvailableIdsOk() ([]int64, bool) { // HasGapAvailableIds returns a boolean if a field has been set. func (o *SwIdPoolBase) HasGapAvailableIds() bool { - if o != nil && IsNil(o.GapAvailableIds) { + if o != nil && !IsNil(o.GapAvailableIds) { return true } @@ -211,6 +211,10 @@ func (o *SwIdPoolBase) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -220,11 +224,23 @@ func (o *SwIdPoolBase) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type SwIdPoolBaseWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. The enum values provides the list of concrete types that can be instantiated from this abstract type. ClassId string `json:"ClassId"` diff --git a/model_syslog_local_client_base.go b/model_syslog_local_client_base.go index 879e3ba96e..d777730dd6 100644 --- a/model_syslog_local_client_base.go +++ b/model_syslog_local_client_base.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -86,6 +86,11 @@ func (o *SyslogLocalClientBase) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "syslog.LocalFileLoggingClient" of the ClassId field. +func (o *SyslogLocalClientBase) GetDefaultClassId() interface{} { + return "syslog.LocalFileLoggingClient" +} + // GetObjectType returns the ObjectType field value func (o *SyslogLocalClientBase) GetObjectType() string { if o == nil { @@ -110,6 +115,11 @@ func (o *SyslogLocalClientBase) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "syslog.LocalFileLoggingClient" of the ObjectType field. +func (o *SyslogLocalClientBase) GetDefaultObjectType() interface{} { + return "syslog.LocalFileLoggingClient" +} + // GetMinSeverity returns the MinSeverity field value if set, zero value otherwise. func (o *SyslogLocalClientBase) GetMinSeverity() string { if o == nil || IsNil(o.MinSeverity) { @@ -160,7 +170,13 @@ func (o SyslogLocalClientBase) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.MinSeverity) { toSerialize["MinSeverity"] = o.MinSeverity @@ -182,6 +198,13 @@ func (o *SyslogLocalClientBase) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -191,11 +214,23 @@ func (o *SyslogLocalClientBase) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type SyslogLocalClientBaseWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. The enum values provides the list of concrete types that can be instantiated from this abstract type. ClassId string `json:"ClassId"` diff --git a/model_syslog_local_file_logging_client.go b/model_syslog_local_file_logging_client.go index d1eae56d7b..a21e1249c1 100644 --- a/model_syslog_local_file_logging_client.go +++ b/model_syslog_local_file_logging_client.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -85,6 +85,13 @@ func (o *SyslogLocalFileLoggingClient) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -94,11 +101,23 @@ func (o *SyslogLocalFileLoggingClient) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type SyslogLocalFileLoggingClientWithoutEmbeddedStruct struct { } diff --git a/model_syslog_policy.go b/model_syslog_policy.go index 38f0b1dbc4..91ff9d12ca 100644 --- a/model_syslog_policy.go +++ b/model_syslog_policy.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -85,6 +85,11 @@ func (o *SyslogPolicy) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "syslog.Policy" of the ClassId field. +func (o *SyslogPolicy) GetDefaultClassId() interface{} { + return "syslog.Policy" +} + // GetObjectType returns the ObjectType field value func (o *SyslogPolicy) GetObjectType() string { if o == nil { @@ -109,6 +114,11 @@ func (o *SyslogPolicy) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "syslog.Policy" of the ObjectType field. +func (o *SyslogPolicy) GetDefaultObjectType() interface{} { + return "syslog.Policy" +} + // GetLocalClients returns the LocalClients field value if set, zero value otherwise (both if not set or set to explicit null). func (o *SyslogPolicy) GetLocalClients() []SyslogLocalClientBase { if o == nil { @@ -130,7 +140,7 @@ func (o *SyslogPolicy) GetLocalClientsOk() ([]SyslogLocalClientBase, bool) { // HasLocalClients returns a boolean if a field has been set. func (o *SyslogPolicy) HasLocalClients() bool { - if o != nil && IsNil(o.LocalClients) { + if o != nil && !IsNil(o.LocalClients) { return true } @@ -163,7 +173,7 @@ func (o *SyslogPolicy) GetRemoteClientsOk() ([]SyslogRemoteClientBase, bool) { // HasRemoteClients returns a boolean if a field has been set. func (o *SyslogPolicy) HasRemoteClients() bool { - if o != nil && IsNil(o.RemoteClients) { + if o != nil && !IsNil(o.RemoteClients) { return true } @@ -239,7 +249,7 @@ func (o *SyslogPolicy) GetProfilesOk() ([]PolicyAbstractConfigProfileRelationshi // HasProfiles returns a boolean if a field has been set. func (o *SyslogPolicy) HasProfiles() bool { - if o != nil && IsNil(o.Profiles) { + if o != nil && !IsNil(o.Profiles) { return true } @@ -269,7 +279,13 @@ func (o SyslogPolicy) ToMap() (map[string]interface{}, error) { if errPolicyAbstractPolicy != nil { return map[string]interface{}{}, errPolicyAbstractPolicy } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.LocalClients != nil { toSerialize["LocalClients"] = o.LocalClients @@ -300,6 +316,13 @@ func (o *SyslogPolicy) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -309,11 +332,23 @@ func (o *SyslogPolicy) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type SyslogPolicyWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_syslog_policy_inventory.go b/model_syslog_policy_inventory.go index 01c5e4a49b..30babcf0d0 100644 --- a/model_syslog_policy_inventory.go +++ b/model_syslog_policy_inventory.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -83,6 +83,11 @@ func (o *SyslogPolicyInventory) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "syslog.PolicyInventory" of the ClassId field. +func (o *SyslogPolicyInventory) GetDefaultClassId() interface{} { + return "syslog.PolicyInventory" +} + // GetObjectType returns the ObjectType field value func (o *SyslogPolicyInventory) GetObjectType() string { if o == nil { @@ -107,6 +112,11 @@ func (o *SyslogPolicyInventory) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "syslog.PolicyInventory" of the ObjectType field. +func (o *SyslogPolicyInventory) GetDefaultObjectType() interface{} { + return "syslog.PolicyInventory" +} + // GetLocalClients returns the LocalClients field value if set, zero value otherwise (both if not set or set to explicit null). func (o *SyslogPolicyInventory) GetLocalClients() []SyslogLocalClientBase { if o == nil { @@ -128,7 +138,7 @@ func (o *SyslogPolicyInventory) GetLocalClientsOk() ([]SyslogLocalClientBase, bo // HasLocalClients returns a boolean if a field has been set. func (o *SyslogPolicyInventory) HasLocalClients() bool { - if o != nil && IsNil(o.LocalClients) { + if o != nil && !IsNil(o.LocalClients) { return true } @@ -161,7 +171,7 @@ func (o *SyslogPolicyInventory) GetRemoteClientsOk() ([]SyslogRemoteClientBase, // HasRemoteClients returns a boolean if a field has been set. func (o *SyslogPolicyInventory) HasRemoteClients() bool { - if o != nil && IsNil(o.RemoteClients) { + if o != nil && !IsNil(o.RemoteClients) { return true } @@ -234,7 +244,13 @@ func (o SyslogPolicyInventory) ToMap() (map[string]interface{}, error) { if errPolicyAbstractPolicyInventory != nil { return map[string]interface{}{}, errPolicyAbstractPolicyInventory } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.LocalClients != nil { toSerialize["LocalClients"] = o.LocalClients @@ -262,6 +278,13 @@ func (o *SyslogPolicyInventory) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -271,11 +294,23 @@ func (o *SyslogPolicyInventory) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type SyslogPolicyInventoryWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_syslog_policy_inventory_list.go b/model_syslog_policy_inventory_list.go index 7e9d60601a..14e5da711f 100644 --- a/model_syslog_policy_inventory_list.go +++ b/model_syslog_policy_inventory_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *SyslogPolicyInventoryList) GetResultsOk() ([]SyslogPolicyInventory, boo // HasResults returns a boolean if a field has been set. func (o *SyslogPolicyInventoryList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *SyslogPolicyInventoryList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *SyslogPolicyInventoryList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type SyslogPolicyInventoryListWithoutEmbeddedStruct struct { // The total number of 'syslog.PolicyInventory' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_syslog_policy_inventory_response.go b/model_syslog_policy_inventory_response.go index 3ae8d28d8a..8e5dceb6c5 100644 --- a/model_syslog_policy_inventory_response.go +++ b/model_syslog_policy_inventory_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_syslog_policy_list.go b/model_syslog_policy_list.go index aa25d7b3cc..ff1d06debe 100644 --- a/model_syslog_policy_list.go +++ b/model_syslog_policy_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *SyslogPolicyList) GetResultsOk() ([]SyslogPolicy, bool) { // HasResults returns a boolean if a field has been set. func (o *SyslogPolicyList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *SyslogPolicyList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *SyslogPolicyList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type SyslogPolicyListWithoutEmbeddedStruct struct { // The total number of 'syslog.Policy' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_syslog_policy_response.go b/model_syslog_policy_response.go index fcac43bca1..78d386fa3f 100644 --- a/model_syslog_policy_response.go +++ b/model_syslog_policy_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_syslog_remote_client_base.go b/model_syslog_remote_client_base.go index d600c012dc..f4c0b2cd18 100644 --- a/model_syslog_remote_client_base.go +++ b/model_syslog_remote_client_base.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -110,6 +110,11 @@ func (o *SyslogRemoteClientBase) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "syslog.RemoteLoggingClient" of the ClassId field. +func (o *SyslogRemoteClientBase) GetDefaultClassId() interface{} { + return "syslog.RemoteLoggingClient" +} + // GetObjectType returns the ObjectType field value func (o *SyslogRemoteClientBase) GetObjectType() string { if o == nil { @@ -134,6 +139,11 @@ func (o *SyslogRemoteClientBase) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "syslog.RemoteLoggingClient" of the ObjectType field. +func (o *SyslogRemoteClientBase) GetDefaultObjectType() interface{} { + return "syslog.RemoteLoggingClient" +} + // GetEnabled returns the Enabled field value if set, zero value otherwise. func (o *SyslogRemoteClientBase) GetEnabled() bool { if o == nil || IsNil(o.Enabled) { @@ -376,7 +386,13 @@ func (o SyslogRemoteClientBase) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Enabled) { toSerialize["Enabled"] = o.Enabled @@ -416,6 +432,13 @@ func (o *SyslogRemoteClientBase) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -425,11 +448,23 @@ func (o *SyslogRemoteClientBase) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type SyslogRemoteClientBaseWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. The enum values provides the list of concrete types that can be instantiated from this abstract type. ClassId string `json:"ClassId"` diff --git a/model_syslog_remote_logging_client.go b/model_syslog_remote_logging_client.go index 2ebee21a70..df2a28b035 100644 --- a/model_syslog_remote_logging_client.go +++ b/model_syslog_remote_logging_client.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -91,6 +91,13 @@ func (o *SyslogRemoteLoggingClient) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -100,11 +107,23 @@ func (o *SyslogRemoteLoggingClient) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type SyslogRemoteLoggingClientWithoutEmbeddedStruct struct { } diff --git a/model_tam_action.go b/model_tam_action.go index 1babb10a0b..cc828e3c52 100644 --- a/model_tam_action.go +++ b/model_tam_action.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,6 +104,11 @@ func (o *TamAction) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "tam.Action" of the ClassId field. +func (o *TamAction) GetDefaultClassId() interface{} { + return "tam.Action" +} + // GetObjectType returns the ObjectType field value func (o *TamAction) GetObjectType() string { if o == nil { @@ -128,6 +133,11 @@ func (o *TamAction) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "tam.Action" of the ObjectType field. +func (o *TamAction) GetDefaultObjectType() interface{} { + return "tam.Action" +} + // GetAffectedObjectType returns the AffectedObjectType field value if set, zero value otherwise. func (o *TamAction) GetAffectedObjectType() string { if o == nil || IsNil(o.AffectedObjectType) { @@ -213,7 +223,7 @@ func (o *TamAction) GetIdentifiersOk() ([]TamIdentifiers, bool) { // HasIdentifiers returns a boolean if a field has been set. func (o *TamAction) HasIdentifiers() bool { - if o != nil && IsNil(o.Identifiers) { + if o != nil && !IsNil(o.Identifiers) { return true } @@ -310,7 +320,7 @@ func (o *TamAction) GetQueriesOk() ([]TamQueryEntry, bool) { // HasQueries returns a boolean if a field has been set. func (o *TamAction) HasQueries() bool { - if o != nil && IsNil(o.Queries) { + if o != nil && !IsNil(o.Queries) { return true } @@ -372,7 +382,13 @@ func (o TamAction) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.AffectedObjectType) { toSerialize["AffectedObjectType"] = o.AffectedObjectType @@ -412,6 +428,13 @@ func (o *TamAction) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -421,11 +444,23 @@ func (o *TamAction) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type TamActionWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_tam_advisory_count.go b/model_tam_advisory_count.go index 12c2fcd90a..47cab8aa65 100644 --- a/model_tam_advisory_count.go +++ b/model_tam_advisory_count.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -83,6 +83,11 @@ func (o *TamAdvisoryCount) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "tam.AdvisoryCount" of the ClassId field. +func (o *TamAdvisoryCount) GetDefaultClassId() interface{} { + return "tam.AdvisoryCount" +} + // GetObjectType returns the ObjectType field value func (o *TamAdvisoryCount) GetObjectType() string { if o == nil { @@ -107,6 +112,11 @@ func (o *TamAdvisoryCount) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "tam.AdvisoryCount" of the ObjectType field. +func (o *TamAdvisoryCount) GetDefaultObjectType() interface{} { + return "tam.AdvisoryCount" +} + // GetAdvisoryCount returns the AdvisoryCount field value if set, zero value otherwise. func (o *TamAdvisoryCount) GetAdvisoryCount() int64 { if o == nil || IsNil(o.AdvisoryCount) { @@ -200,7 +210,13 @@ func (o TamAdvisoryCount) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.AdvisoryCount) { toSerialize["AdvisoryCount"] = o.AdvisoryCount @@ -225,6 +241,13 @@ func (o *TamAdvisoryCount) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -234,11 +257,23 @@ func (o *TamAdvisoryCount) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type TamAdvisoryCountWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_tam_advisory_count_list.go b/model_tam_advisory_count_list.go index 1eb6ce2f71..3c0cbb8f28 100644 --- a/model_tam_advisory_count_list.go +++ b/model_tam_advisory_count_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *TamAdvisoryCountList) GetResultsOk() ([]TamAdvisoryCount, bool) { // HasResults returns a boolean if a field has been set. func (o *TamAdvisoryCountList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *TamAdvisoryCountList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *TamAdvisoryCountList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type TamAdvisoryCountListWithoutEmbeddedStruct struct { // The total number of 'tam.AdvisoryCount' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_tam_advisory_count_response.go b/model_tam_advisory_count_response.go index 73866c836e..1fa8636030 100644 --- a/model_tam_advisory_count_response.go +++ b/model_tam_advisory_count_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_tam_advisory_definition.go b/model_tam_advisory_definition.go index c0aaaa2cd5..760b3215c0 100644 --- a/model_tam_advisory_definition.go +++ b/model_tam_advisory_definition.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -41,7 +41,7 @@ type TamAdvisoryDefinition struct { // Orion pod on which this advisory should process. * `tier1` - Advisory processing will be taken care in first advisory driver of multinode cluster. * `tier2` - Advisory processing will be taken care in second advisory driver of multinode cluster. ExecuteOnPod *string `json:"ExecuteOnPod,omitempty"` // A link to an external URL describing security Advisory in more details. - ExternalUrl *string `json:"ExternalUrl,omitempty"` + ExternalUrl *string `json:"ExternalUrl,omitempty" validate:"regexp=^$|^(?:http(s)?:\\/\\/)?[\\\\w.-]+(?:\\\\.[\\\\w\\\\.-]+)+[\\\\w\\\\-\\\\._~:\\/?#[\\\\]@!\\\\$&'\\\\(\\\\)\\\\*\\\\+,;=.]+$"` OtherRefUrls []string `json:"OtherRefUrls,omitempty"` // Recommended action to resolve the security advisory. Recommendation *string `json:"Recommendation,omitempty"` @@ -115,6 +115,11 @@ func (o *TamAdvisoryDefinition) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "tam.AdvisoryDefinition" of the ClassId field. +func (o *TamAdvisoryDefinition) GetDefaultClassId() interface{} { + return "tam.AdvisoryDefinition" +} + // GetObjectType returns the ObjectType field value func (o *TamAdvisoryDefinition) GetObjectType() string { if o == nil { @@ -139,6 +144,11 @@ func (o *TamAdvisoryDefinition) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "tam.AdvisoryDefinition" of the ObjectType field. +func (o *TamAdvisoryDefinition) GetDefaultObjectType() interface{} { + return "tam.AdvisoryDefinition" +} + // GetActions returns the Actions field value if set, zero value otherwise (both if not set or set to explicit null). func (o *TamAdvisoryDefinition) GetActions() []TamAction { if o == nil { @@ -160,7 +170,7 @@ func (o *TamAdvisoryDefinition) GetActionsOk() ([]TamAction, bool) { // HasActions returns a boolean if a field has been set. func (o *TamAdvisoryDefinition) HasActions() bool { - if o != nil && IsNil(o.Actions) { + if o != nil && !IsNil(o.Actions) { return true } @@ -268,7 +278,7 @@ func (o *TamAdvisoryDefinition) GetApiDataSourcesOk() ([]TamApiDataSource, bool) // HasApiDataSources returns a boolean if a field has been set. func (o *TamAdvisoryDefinition) HasApiDataSources() bool { - if o != nil && IsNil(o.ApiDataSources) { + if o != nil && !IsNil(o.ApiDataSources) { return true } @@ -429,7 +439,7 @@ func (o *TamAdvisoryDefinition) GetOtherRefUrlsOk() ([]string, bool) { // HasOtherRefUrls returns a boolean if a field has been set. func (o *TamAdvisoryDefinition) HasOtherRefUrls() bool { - if o != nil && IsNil(o.OtherRefUrls) { + if o != nil && !IsNil(o.OtherRefUrls) { return true } @@ -494,7 +504,7 @@ func (o *TamAdvisoryDefinition) GetS3DataSourcesOk() ([]TamS3DataSource, bool) { // HasS3DataSources returns a boolean if a field has been set. func (o *TamAdvisoryDefinition) HasS3DataSources() bool { - if o != nil && IsNil(o.S3DataSources) { + if o != nil && !IsNil(o.S3DataSources) { return true } @@ -663,7 +673,13 @@ func (o TamAdvisoryDefinition) ToMap() (map[string]interface{}, error) { if errTamBaseAdvisory != nil { return map[string]interface{}{}, errTamBaseAdvisory } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.Actions != nil { toSerialize["Actions"] = o.Actions @@ -727,6 +743,13 @@ func (o *TamAdvisoryDefinition) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -736,11 +759,23 @@ func (o *TamAdvisoryDefinition) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type TamAdvisoryDefinitionWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` @@ -758,7 +793,7 @@ func (o *TamAdvisoryDefinition) UnmarshalJSON(data []byte) (err error) { // Orion pod on which this advisory should process. * `tier1` - Advisory processing will be taken care in first advisory driver of multinode cluster. * `tier2` - Advisory processing will be taken care in second advisory driver of multinode cluster. ExecuteOnPod *string `json:"ExecuteOnPod,omitempty"` // A link to an external URL describing security Advisory in more details. - ExternalUrl *string `json:"ExternalUrl,omitempty"` + ExternalUrl *string `json:"ExternalUrl,omitempty" validate:"regexp=^$|^(?:http(s)?:\\/\\/)?[\\\\w.-]+(?:\\\\.[\\\\w\\\\.-]+)+[\\\\w\\\\-\\\\._~:\\/?#[\\\\]@!\\\\$&'\\\\(\\\\)\\\\*\\\\+,;=.]+$"` OtherRefUrls []string `json:"OtherRefUrls,omitempty"` // Recommended action to resolve the security advisory. Recommendation *string `json:"Recommendation,omitempty"` diff --git a/model_tam_advisory_definition_list.go b/model_tam_advisory_definition_list.go index b893072434..b1bba394f3 100644 --- a/model_tam_advisory_definition_list.go +++ b/model_tam_advisory_definition_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *TamAdvisoryDefinitionList) GetResultsOk() ([]TamAdvisoryDefinition, boo // HasResults returns a boolean if a field has been set. func (o *TamAdvisoryDefinitionList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *TamAdvisoryDefinitionList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *TamAdvisoryDefinitionList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type TamAdvisoryDefinitionListWithoutEmbeddedStruct struct { // The total number of 'tam.AdvisoryDefinition' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_tam_advisory_definition_response.go b/model_tam_advisory_definition_response.go index 071bf503ef..283f4f1bab 100644 --- a/model_tam_advisory_definition_response.go +++ b/model_tam_advisory_definition_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_tam_advisory_info.go b/model_tam_advisory_info.go index 94fe1143d9..4838747cde 100644 --- a/model_tam_advisory_info.go +++ b/model_tam_advisory_info.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -88,6 +88,11 @@ func (o *TamAdvisoryInfo) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "tam.AdvisoryInfo" of the ClassId field. +func (o *TamAdvisoryInfo) GetDefaultClassId() interface{} { + return "tam.AdvisoryInfo" +} + // GetObjectType returns the ObjectType field value func (o *TamAdvisoryInfo) GetObjectType() string { if o == nil { @@ -112,6 +117,11 @@ func (o *TamAdvisoryInfo) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "tam.AdvisoryInfo" of the ObjectType field. +func (o *TamAdvisoryInfo) GetDefaultObjectType() interface{} { + return "tam.AdvisoryInfo" +} + // GetState returns the State field value if set, zero value otherwise. func (o *TamAdvisoryInfo) GetState() string { if o == nil || IsNil(o.State) { @@ -248,7 +258,13 @@ func (o TamAdvisoryInfo) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.State) { toSerialize["State"] = o.State @@ -276,6 +292,13 @@ func (o *TamAdvisoryInfo) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -285,11 +308,23 @@ func (o *TamAdvisoryInfo) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type TamAdvisoryInfoWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_tam_advisory_info_list.go b/model_tam_advisory_info_list.go index 681496d88b..801f5d0755 100644 --- a/model_tam_advisory_info_list.go +++ b/model_tam_advisory_info_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *TamAdvisoryInfoList) GetResultsOk() ([]TamAdvisoryInfo, bool) { // HasResults returns a boolean if a field has been set. func (o *TamAdvisoryInfoList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *TamAdvisoryInfoList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *TamAdvisoryInfoList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type TamAdvisoryInfoListWithoutEmbeddedStruct struct { // The total number of 'tam.AdvisoryInfo' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_tam_advisory_info_response.go b/model_tam_advisory_info_response.go index 3006184073..fef8d3dcd5 100644 --- a/model_tam_advisory_info_response.go +++ b/model_tam_advisory_info_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_tam_advisory_instance.go b/model_tam_advisory_instance.go index 3c6c34e53b..080d7e7bd1 100644 --- a/model_tam_advisory_instance.go +++ b/model_tam_advisory_instance.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -98,6 +98,11 @@ func (o *TamAdvisoryInstance) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "tam.AdvisoryInstance" of the ClassId field. +func (o *TamAdvisoryInstance) GetDefaultClassId() interface{} { + return "tam.AdvisoryInstance" +} + // GetObjectType returns the ObjectType field value func (o *TamAdvisoryInstance) GetObjectType() string { if o == nil { @@ -122,6 +127,11 @@ func (o *TamAdvisoryInstance) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "tam.AdvisoryInstance" of the ObjectType field. +func (o *TamAdvisoryInstance) GetDefaultObjectType() interface{} { + return "tam.AdvisoryInstance" +} + // GetAffectedObjectMoid returns the AffectedObjectMoid field value if set, zero value otherwise. func (o *TamAdvisoryInstance) GetAffectedObjectMoid() string { if o == nil || IsNil(o.AffectedObjectMoid) { @@ -429,7 +439,13 @@ func (o TamAdvisoryInstance) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.AffectedObjectMoid) { toSerialize["AffectedObjectMoid"] = o.AffectedObjectMoid @@ -472,6 +488,13 @@ func (o *TamAdvisoryInstance) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -481,11 +504,23 @@ func (o *TamAdvisoryInstance) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type TamAdvisoryInstanceWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_tam_advisory_instance_list.go b/model_tam_advisory_instance_list.go index 43ba2cdb8f..50070e0bf4 100644 --- a/model_tam_advisory_instance_list.go +++ b/model_tam_advisory_instance_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *TamAdvisoryInstanceList) GetResultsOk() ([]TamAdvisoryInstance, bool) { // HasResults returns a boolean if a field has been set. func (o *TamAdvisoryInstanceList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *TamAdvisoryInstanceList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *TamAdvisoryInstanceList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type TamAdvisoryInstanceListWithoutEmbeddedStruct struct { // The total number of 'tam.AdvisoryInstance' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_tam_advisory_instance_response.go b/model_tam_advisory_instance_response.go index 872291b509..651cd9706f 100644 --- a/model_tam_advisory_instance_response.go +++ b/model_tam_advisory_instance_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_tam_api_data_source.go b/model_tam_api_data_source.go index 9727a1b449..6a87119119 100644 --- a/model_tam_api_data_source.go +++ b/model_tam_api_data_source.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -85,6 +85,11 @@ func (o *TamApiDataSource) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "tam.ApiDataSource" of the ClassId field. +func (o *TamApiDataSource) GetDefaultClassId() interface{} { + return "tam.ApiDataSource" +} + // GetObjectType returns the ObjectType field value func (o *TamApiDataSource) GetObjectType() string { if o == nil { @@ -109,6 +114,11 @@ func (o *TamApiDataSource) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "tam.ApiDataSource" of the ObjectType field. +func (o *TamApiDataSource) GetDefaultObjectType() interface{} { + return "tam.ApiDataSource" +} + // GetMoType returns the MoType field value if set, zero value otherwise. func (o *TamApiDataSource) GetMoType() string { if o == nil || IsNil(o.MoType) { @@ -162,7 +172,7 @@ func (o *TamApiDataSource) GetQueriesOk() ([]TamQueryEntry, bool) { // HasQueries returns a boolean if a field has been set. func (o *TamApiDataSource) HasQueries() bool { - if o != nil && IsNil(o.Queries) { + if o != nil && !IsNil(o.Queries) { return true } @@ -192,7 +202,13 @@ func (o TamApiDataSource) ToMap() (map[string]interface{}, error) { if errTamBaseDataSource != nil { return map[string]interface{}{}, errTamBaseDataSource } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.MoType) { toSerialize["MoType"] = o.MoType @@ -217,6 +233,13 @@ func (o *TamApiDataSource) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -226,11 +249,23 @@ func (o *TamApiDataSource) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type TamApiDataSourceWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_tam_base_advisory.go b/model_tam_base_advisory.go index 95b9175235..0cc97325c2 100644 --- a/model_tam_base_advisory.go +++ b/model_tam_base_advisory.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -299,6 +299,10 @@ func (o *TamBaseAdvisory) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -308,11 +312,23 @@ func (o *TamBaseAdvisory) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type TamBaseAdvisoryWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. The enum values provides the list of concrete types that can be instantiated from this abstract type. ClassId string `json:"ClassId"` diff --git a/model_tam_base_advisory_details.go b/model_tam_base_advisory_details.go index 91b7bcc5be..8b76f9ba51 100644 --- a/model_tam_base_advisory_details.go +++ b/model_tam_base_advisory_details.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -174,6 +174,10 @@ func (o *TamBaseAdvisoryDetails) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -183,11 +187,23 @@ func (o *TamBaseAdvisoryDetails) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type TamBaseAdvisoryDetailsWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. The enum values provides the list of concrete types that can be instantiated from this abstract type. ClassId string `json:"ClassId"` diff --git a/model_tam_base_advisory_relationship.go b/model_tam_base_advisory_relationship.go index 15ac01b112..7e835390c3 100644 --- a/model_tam_base_advisory_relationship.go +++ b/model_tam_base_advisory_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_tam_base_data_source.go b/model_tam_base_data_source.go index a99d9d526b..cb19aa52bd 100644 --- a/model_tam_base_data_source.go +++ b/model_tam_base_data_source.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -215,6 +215,10 @@ func (o *TamBaseDataSource) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -224,11 +228,23 @@ func (o *TamBaseDataSource) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type TamBaseDataSourceWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. The enum values provides the list of concrete types that can be instantiated from this abstract type. ClassId string `json:"ClassId"` diff --git a/model_tam_eol_advisory_details.go b/model_tam_eol_advisory_details.go index 0d8a169a77..e338be1ff8 100644 --- a/model_tam_eol_advisory_details.go +++ b/model_tam_eol_advisory_details.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -84,6 +84,11 @@ func (o *TamEolAdvisoryDetails) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "tam.EolAdvisoryDetails" of the ClassId field. +func (o *TamEolAdvisoryDetails) GetDefaultClassId() interface{} { + return "tam.EolAdvisoryDetails" +} + // GetObjectType returns the ObjectType field value func (o *TamEolAdvisoryDetails) GetObjectType() string { if o == nil { @@ -108,6 +113,11 @@ func (o *TamEolAdvisoryDetails) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "tam.EolAdvisoryDetails" of the ObjectType field. +func (o *TamEolAdvisoryDetails) GetDefaultObjectType() interface{} { + return "tam.EolAdvisoryDetails" +} + // GetAllMilestones returns the AllMilestones field value if set, zero value otherwise (both if not set or set to explicit null). func (o *TamEolAdvisoryDetails) GetAllMilestones() []TamMilestone { if o == nil { @@ -129,7 +139,7 @@ func (o *TamEolAdvisoryDetails) GetAllMilestonesOk() ([]TamMilestone, bool) { // HasAllMilestones returns a boolean if a field has been set. func (o *TamEolAdvisoryDetails) HasAllMilestones() bool { - if o != nil && IsNil(o.AllMilestones) { + if o != nil && !IsNil(o.AllMilestones) { return true } @@ -234,7 +244,13 @@ func (o TamEolAdvisoryDetails) ToMap() (map[string]interface{}, error) { if errTamBaseAdvisoryDetails != nil { return map[string]interface{}{}, errTamBaseAdvisoryDetails } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.AllMilestones != nil { toSerialize["AllMilestones"] = o.AllMilestones @@ -262,6 +278,13 @@ func (o *TamEolAdvisoryDetails) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -271,11 +294,23 @@ func (o *TamEolAdvisoryDetails) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type TamEolAdvisoryDetailsWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_tam_eol_severity.go b/model_tam_eol_severity.go index 68c4614e66..c3e57218a0 100644 --- a/model_tam_eol_severity.go +++ b/model_tam_eol_severity.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -86,6 +86,11 @@ func (o *TamEolSeverity) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "tam.EolSeverity" of the ClassId field. +func (o *TamEolSeverity) GetDefaultClassId() interface{} { + return "tam.EolSeverity" +} + // GetObjectType returns the ObjectType field value func (o *TamEolSeverity) GetObjectType() string { if o == nil { @@ -110,6 +115,11 @@ func (o *TamEolSeverity) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "tam.EolSeverity" of the ObjectType field. +func (o *TamEolSeverity) GetDefaultObjectType() interface{} { + return "tam.EolSeverity" +} + // GetLevel returns the Level field value if set, zero value otherwise. func (o *TamEolSeverity) GetLevel() string { if o == nil || IsNil(o.Level) { @@ -160,7 +170,13 @@ func (o TamEolSeverity) ToMap() (map[string]interface{}, error) { if errTamSeverity != nil { return map[string]interface{}{}, errTamSeverity } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Level) { toSerialize["Level"] = o.Level @@ -182,6 +198,13 @@ func (o *TamEolSeverity) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -191,11 +214,23 @@ func (o *TamEolSeverity) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type TamEolSeverityWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_tam_identifiers.go b/model_tam_identifiers.go index 9d475f2580..7c21530974 100644 --- a/model_tam_identifiers.go +++ b/model_tam_identifiers.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -84,6 +84,11 @@ func (o *TamIdentifiers) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "tam.Identifiers" of the ClassId field. +func (o *TamIdentifiers) GetDefaultClassId() interface{} { + return "tam.Identifiers" +} + // GetObjectType returns the ObjectType field value func (o *TamIdentifiers) GetObjectType() string { if o == nil { @@ -108,6 +113,11 @@ func (o *TamIdentifiers) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "tam.Identifiers" of the ObjectType field. +func (o *TamIdentifiers) GetDefaultObjectType() interface{} { + return "tam.Identifiers" +} + // GetName returns the Name field value if set, zero value otherwise. func (o *TamIdentifiers) GetName() string { if o == nil || IsNil(o.Name) { @@ -190,7 +200,13 @@ func (o TamIdentifiers) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Name) { toSerialize["Name"] = o.Name @@ -215,6 +231,13 @@ func (o *TamIdentifiers) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -224,11 +247,23 @@ func (o *TamIdentifiers) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type TamIdentifiersWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_tam_milestone.go b/model_tam_milestone.go index c4dc456ea5..c608c97a44 100644 --- a/model_tam_milestone.go +++ b/model_tam_milestone.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -111,6 +111,11 @@ func (o *TamMilestone) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "tam.Milestone" of the ClassId field. +func (o *TamMilestone) GetDefaultClassId() interface{} { + return "tam.Milestone" +} + // GetObjectType returns the ObjectType field value func (o *TamMilestone) GetObjectType() string { if o == nil { @@ -135,6 +140,11 @@ func (o *TamMilestone) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "tam.Milestone" of the ObjectType field. +func (o *TamMilestone) GetDefaultObjectType() interface{} { + return "tam.Milestone" +} + // GetDate returns the Date field value if set, zero value otherwise. func (o *TamMilestone) GetDate() time.Time { if o == nil || IsNil(o.Date) { @@ -377,7 +387,13 @@ func (o TamMilestone) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Date) { toSerialize["Date"] = o.Date @@ -417,6 +433,13 @@ func (o *TamMilestone) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -426,11 +449,23 @@ func (o *TamMilestone) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type TamMilestoneWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_tam_psirt_severity.go b/model_tam_psirt_severity.go index 7f8d92eeff..c8ade0938b 100644 --- a/model_tam_psirt_severity.go +++ b/model_tam_psirt_severity.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -86,6 +86,11 @@ func (o *TamPsirtSeverity) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "tam.PsirtSeverity" of the ClassId field. +func (o *TamPsirtSeverity) GetDefaultClassId() interface{} { + return "tam.PsirtSeverity" +} + // GetObjectType returns the ObjectType field value func (o *TamPsirtSeverity) GetObjectType() string { if o == nil { @@ -110,6 +115,11 @@ func (o *TamPsirtSeverity) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "tam.PsirtSeverity" of the ObjectType field. +func (o *TamPsirtSeverity) GetDefaultObjectType() interface{} { + return "tam.PsirtSeverity" +} + // GetLevel returns the Level field value if set, zero value otherwise. func (o *TamPsirtSeverity) GetLevel() string { if o == nil || IsNil(o.Level) { @@ -160,7 +170,13 @@ func (o TamPsirtSeverity) ToMap() (map[string]interface{}, error) { if errTamSeverity != nil { return map[string]interface{}{}, errTamSeverity } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Level) { toSerialize["Level"] = o.Level @@ -182,6 +198,13 @@ func (o *TamPsirtSeverity) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -191,11 +214,23 @@ func (o *TamPsirtSeverity) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type TamPsirtSeverityWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_tam_query_entry.go b/model_tam_query_entry.go index 576e778d09..345562a381 100644 --- a/model_tam_query_entry.go +++ b/model_tam_query_entry.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -86,6 +86,11 @@ func (o *TamQueryEntry) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "tam.QueryEntry" of the ClassId field. +func (o *TamQueryEntry) GetDefaultClassId() interface{} { + return "tam.QueryEntry" +} + // GetObjectType returns the ObjectType field value func (o *TamQueryEntry) GetObjectType() string { if o == nil { @@ -110,6 +115,11 @@ func (o *TamQueryEntry) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "tam.QueryEntry" of the ObjectType field. +func (o *TamQueryEntry) GetDefaultObjectType() interface{} { + return "tam.QueryEntry" +} + // GetName returns the Name field value if set, zero value otherwise. func (o *TamQueryEntry) GetName() string { if o == nil || IsNil(o.Name) { @@ -224,7 +234,13 @@ func (o TamQueryEntry) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Name) { toSerialize["Name"] = o.Name @@ -252,6 +268,13 @@ func (o *TamQueryEntry) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -261,11 +284,23 @@ func (o *TamQueryEntry) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type TamQueryEntryWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_tam_s3_data_source.go b/model_tam_s3_data_source.go index 05f3bda567..82ceef142b 100644 --- a/model_tam_s3_data_source.go +++ b/model_tam_s3_data_source.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -85,6 +85,11 @@ func (o *TamS3DataSource) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "tam.S3DataSource" of the ClassId field. +func (o *TamS3DataSource) GetDefaultClassId() interface{} { + return "tam.S3DataSource" +} + // GetObjectType returns the ObjectType field value func (o *TamS3DataSource) GetObjectType() string { if o == nil { @@ -109,6 +114,11 @@ func (o *TamS3DataSource) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "tam.S3DataSource" of the ObjectType field. +func (o *TamS3DataSource) GetDefaultObjectType() interface{} { + return "tam.S3DataSource" +} + // GetQueries returns the Queries field value if set, zero value otherwise (both if not set or set to explicit null). func (o *TamS3DataSource) GetQueries() []TamQueryEntry { if o == nil { @@ -130,7 +140,7 @@ func (o *TamS3DataSource) GetQueriesOk() ([]TamQueryEntry, bool) { // HasQueries returns a boolean if a field has been set. func (o *TamS3DataSource) HasQueries() bool { - if o != nil && IsNil(o.Queries) { + if o != nil && !IsNil(o.Queries) { return true } @@ -192,7 +202,13 @@ func (o TamS3DataSource) ToMap() (map[string]interface{}, error) { if errTamBaseDataSource != nil { return map[string]interface{}{}, errTamBaseDataSource } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.Queries != nil { toSerialize["Queries"] = o.Queries @@ -217,6 +233,13 @@ func (o *TamS3DataSource) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -226,11 +249,23 @@ func (o *TamS3DataSource) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type TamS3DataSourceWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_tam_security_advisory.go b/model_tam_security_advisory.go index bfc374c52e..541bf0df74 100644 --- a/model_tam_security_advisory.go +++ b/model_tam_security_advisory.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -45,7 +45,7 @@ type TamSecurityAdvisory struct { // Orion pod on which this advisory should process. * `tier1` - Advisory processing will be taken care in first advisory driver of multinode cluster. * `tier2` - Advisory processing will be taken care in second advisory driver of multinode cluster. ExecuteOnPod *string `json:"ExecuteOnPod,omitempty"` // A link to an external URL describing security Advisory in more details. - ExternalUrl *string `json:"ExternalUrl,omitempty"` + ExternalUrl *string `json:"ExternalUrl,omitempty" validate:"regexp=^$|^(?:http(s)?:\\/\\/)?[\\\\w.-]+(?:\\\\.[\\\\w\\\\.-]+)+[\\\\w\\\\-\\\\._~:\\/?#[\\\\]@!\\\\$&'\\\\(\\\\)\\\\*\\\\+,;=.]+$"` OtherRefUrls []string `json:"OtherRefUrls,omitempty"` // Recommended action to resolve the security advisory. Recommendation *string `json:"Recommendation,omitempty"` @@ -120,6 +120,11 @@ func (o *TamSecurityAdvisory) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "tam.SecurityAdvisory" of the ClassId field. +func (o *TamSecurityAdvisory) GetDefaultClassId() interface{} { + return "tam.SecurityAdvisory" +} + // GetObjectType returns the ObjectType field value func (o *TamSecurityAdvisory) GetObjectType() string { if o == nil { @@ -144,6 +149,11 @@ func (o *TamSecurityAdvisory) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "tam.SecurityAdvisory" of the ObjectType field. +func (o *TamSecurityAdvisory) GetDefaultObjectType() interface{} { + return "tam.SecurityAdvisory" +} + // GetActions returns the Actions field value if set, zero value otherwise (both if not set or set to explicit null). func (o *TamSecurityAdvisory) GetActions() []TamAction { if o == nil { @@ -165,7 +175,7 @@ func (o *TamSecurityAdvisory) GetActionsOk() ([]TamAction, bool) { // HasActions returns a boolean if a field has been set. func (o *TamSecurityAdvisory) HasActions() bool { - if o != nil && IsNil(o.Actions) { + if o != nil && !IsNil(o.Actions) { return true } @@ -230,7 +240,7 @@ func (o *TamSecurityAdvisory) GetApiDataSourcesOk() ([]TamApiDataSource, bool) { // HasApiDataSources returns a boolean if a field has been set. func (o *TamSecurityAdvisory) HasApiDataSources() bool { - if o != nil && IsNil(o.ApiDataSources) { + if o != nil && !IsNil(o.ApiDataSources) { return true } @@ -295,7 +305,7 @@ func (o *TamSecurityAdvisory) GetCveIdsOk() ([]string, bool) { // HasCveIds returns a boolean if a field has been set. func (o *TamSecurityAdvisory) HasCveIds() bool { - if o != nil && IsNil(o.CveIds) { + if o != nil && !IsNil(o.CveIds) { return true } @@ -488,7 +498,7 @@ func (o *TamSecurityAdvisory) GetOtherRefUrlsOk() ([]string, bool) { // HasOtherRefUrls returns a boolean if a field has been set. func (o *TamSecurityAdvisory) HasOtherRefUrls() bool { - if o != nil && IsNil(o.OtherRefUrls) { + if o != nil && !IsNil(o.OtherRefUrls) { return true } @@ -721,7 +731,13 @@ func (o TamSecurityAdvisory) ToMap() (map[string]interface{}, error) { if errTamBaseAdvisory != nil { return map[string]interface{}{}, errTamBaseAdvisory } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.Actions != nil { toSerialize["Actions"] = o.Actions @@ -791,6 +807,13 @@ func (o *TamSecurityAdvisory) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -800,11 +823,23 @@ func (o *TamSecurityAdvisory) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type TamSecurityAdvisoryWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` @@ -826,7 +861,7 @@ func (o *TamSecurityAdvisory) UnmarshalJSON(data []byte) (err error) { // Orion pod on which this advisory should process. * `tier1` - Advisory processing will be taken care in first advisory driver of multinode cluster. * `tier2` - Advisory processing will be taken care in second advisory driver of multinode cluster. ExecuteOnPod *string `json:"ExecuteOnPod,omitempty"` // A link to an external URL describing security Advisory in more details. - ExternalUrl *string `json:"ExternalUrl,omitempty"` + ExternalUrl *string `json:"ExternalUrl,omitempty" validate:"regexp=^$|^(?:http(s)?:\\/\\/)?[\\\\w.-]+(?:\\\\.[\\\\w\\\\.-]+)+[\\\\w\\\\-\\\\._~:\\/?#[\\\\]@!\\\\$&'\\\\(\\\\)\\\\*\\\\+,;=.]+$"` OtherRefUrls []string `json:"OtherRefUrls,omitempty"` // Recommended action to resolve the security advisory. Recommendation *string `json:"Recommendation,omitempty"` diff --git a/model_tam_security_advisory_details.go b/model_tam_security_advisory_details.go index e4b040e4e2..f4040e7d94 100644 --- a/model_tam_security_advisory_details.go +++ b/model_tam_security_advisory_details.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -93,6 +93,11 @@ func (o *TamSecurityAdvisoryDetails) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "tam.SecurityAdvisoryDetails" of the ClassId field. +func (o *TamSecurityAdvisoryDetails) GetDefaultClassId() interface{} { + return "tam.SecurityAdvisoryDetails" +} + // GetObjectType returns the ObjectType field value func (o *TamSecurityAdvisoryDetails) GetObjectType() string { if o == nil { @@ -117,6 +122,11 @@ func (o *TamSecurityAdvisoryDetails) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "tam.SecurityAdvisoryDetails" of the ObjectType field. +func (o *TamSecurityAdvisoryDetails) GetDefaultObjectType() interface{} { + return "tam.SecurityAdvisoryDetails" +} + // GetBaseScore returns the BaseScore field value if set, zero value otherwise. func (o *TamSecurityAdvisoryDetails) GetBaseScore() float32 { if o == nil || IsNil(o.BaseScore) { @@ -170,7 +180,7 @@ func (o *TamSecurityAdvisoryDetails) GetCveIdsOk() ([]string, bool) { // HasCveIds returns a boolean if a field has been set. func (o *TamSecurityAdvisoryDetails) HasCveIds() bool { - if o != nil && IsNil(o.CveIds) { + if o != nil && !IsNil(o.CveIds) { return true } @@ -296,7 +306,13 @@ func (o TamSecurityAdvisoryDetails) ToMap() (map[string]interface{}, error) { if errTamBaseAdvisoryDetails != nil { return map[string]interface{}{}, errTamBaseAdvisoryDetails } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.BaseScore) { toSerialize["BaseScore"] = o.BaseScore @@ -330,6 +346,13 @@ func (o *TamSecurityAdvisoryDetails) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -339,11 +362,23 @@ func (o *TamSecurityAdvisoryDetails) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type TamSecurityAdvisoryDetailsWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_tam_security_advisory_list.go b/model_tam_security_advisory_list.go index dfb4ec2c37..ca9cf2b1ed 100644 --- a/model_tam_security_advisory_list.go +++ b/model_tam_security_advisory_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *TamSecurityAdvisoryList) GetResultsOk() ([]TamSecurityAdvisory, bool) { // HasResults returns a boolean if a field has been set. func (o *TamSecurityAdvisoryList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *TamSecurityAdvisoryList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *TamSecurityAdvisoryList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type TamSecurityAdvisoryListWithoutEmbeddedStruct struct { // The total number of 'tam.SecurityAdvisory' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_tam_security_advisory_response.go b/model_tam_security_advisory_response.go index b367038ccf..5a114d94d4 100644 --- a/model_tam_security_advisory_response.go +++ b/model_tam_security_advisory_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_tam_severity.go b/model_tam_severity.go index a6b184bf53..4f704134c4 100644 --- a/model_tam_severity.go +++ b/model_tam_severity.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -83,6 +83,10 @@ func (o *TamSeverity) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -92,11 +96,23 @@ func (o *TamSeverity) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type TamSeverityWithoutEmbeddedStruct struct { } diff --git a/model_tam_text_fsm_template_data_source.go b/model_tam_text_fsm_template_data_source.go index 075eb50dd6..76935b70fc 100644 --- a/model_tam_text_fsm_template_data_source.go +++ b/model_tam_text_fsm_template_data_source.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -84,6 +84,11 @@ func (o *TamTextFsmTemplateDataSource) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "tam.TextFsmTemplateDataSource" of the ClassId field. +func (o *TamTextFsmTemplateDataSource) GetDefaultClassId() interface{} { + return "tam.TextFsmTemplateDataSource" +} + // GetObjectType returns the ObjectType field value func (o *TamTextFsmTemplateDataSource) GetObjectType() string { if o == nil { @@ -108,6 +113,11 @@ func (o *TamTextFsmTemplateDataSource) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "tam.TextFsmTemplateDataSource" of the ObjectType field. +func (o *TamTextFsmTemplateDataSource) GetDefaultObjectType() interface{} { + return "tam.TextFsmTemplateDataSource" +} + // GetCmd returns the Cmd field value if set, zero value otherwise. func (o *TamTextFsmTemplateDataSource) GetCmd() string { if o == nil || IsNil(o.Cmd) { @@ -158,7 +168,13 @@ func (o TamTextFsmTemplateDataSource) ToMap() (map[string]interface{}, error) { if errTamBaseDataSource != nil { return map[string]interface{}{}, errTamBaseDataSource } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Cmd) { toSerialize["Cmd"] = o.Cmd @@ -180,6 +196,13 @@ func (o *TamTextFsmTemplateDataSource) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -189,11 +212,23 @@ func (o *TamTextFsmTemplateDataSource) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type TamTextFsmTemplateDataSourceWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_task_fabric_mos_scoped_inventory.go b/model_task_fabric_mos_scoped_inventory.go index 38efd5fe15..d1e58ebd9b 100644 --- a/model_task_fabric_mos_scoped_inventory.go +++ b/model_task_fabric_mos_scoped_inventory.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -81,6 +81,11 @@ func (o *TaskFabricMosScopedInventory) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "task.FabricMosScopedInventory" of the ClassId field. +func (o *TaskFabricMosScopedInventory) GetDefaultClassId() interface{} { + return "task.FabricMosScopedInventory" +} + // GetObjectType returns the ObjectType field value func (o *TaskFabricMosScopedInventory) GetObjectType() string { if o == nil { @@ -105,6 +110,11 @@ func (o *TaskFabricMosScopedInventory) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "task.FabricMosScopedInventory" of the ObjectType field. +func (o *TaskFabricMosScopedInventory) GetDefaultObjectType() interface{} { + return "task.FabricMosScopedInventory" +} + // GetRegisteredDevice returns the RegisteredDevice field value if set, zero value otherwise (both if not set or set to explicit null). func (o *TaskFabricMosScopedInventory) GetRegisteredDevice() AssetDeviceRegistrationRelationship { if o == nil || IsNil(o.RegisteredDevice.Get()) { @@ -166,7 +176,13 @@ func (o TaskFabricMosScopedInventory) ToMap() (map[string]interface{}, error) { if errConnectorScopedInventory != nil { return map[string]interface{}{}, errConnectorScopedInventory } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.RegisteredDevice.IsSet() { toSerialize["RegisteredDevice"] = o.RegisteredDevice.Get() @@ -188,6 +204,13 @@ func (o *TaskFabricMosScopedInventory) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -197,11 +220,23 @@ func (o *TaskFabricMosScopedInventory) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type TaskFabricMosScopedInventoryWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_task_hitachi_scoped_inventory.go b/model_task_hitachi_scoped_inventory.go index 2697058fb4..24471df91e 100644 --- a/model_task_hitachi_scoped_inventory.go +++ b/model_task_hitachi_scoped_inventory.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -81,6 +81,11 @@ func (o *TaskHitachiScopedInventory) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "task.HitachiScopedInventory" of the ClassId field. +func (o *TaskHitachiScopedInventory) GetDefaultClassId() interface{} { + return "task.HitachiScopedInventory" +} + // GetObjectType returns the ObjectType field value func (o *TaskHitachiScopedInventory) GetObjectType() string { if o == nil { @@ -105,6 +110,11 @@ func (o *TaskHitachiScopedInventory) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "task.HitachiScopedInventory" of the ObjectType field. +func (o *TaskHitachiScopedInventory) GetDefaultObjectType() interface{} { + return "task.HitachiScopedInventory" +} + // GetRegisteredDevice returns the RegisteredDevice field value if set, zero value otherwise (both if not set or set to explicit null). func (o *TaskHitachiScopedInventory) GetRegisteredDevice() AssetDeviceRegistrationRelationship { if o == nil || IsNil(o.RegisteredDevice.Get()) { @@ -166,7 +176,13 @@ func (o TaskHitachiScopedInventory) ToMap() (map[string]interface{}, error) { if errConnectorScopedInventory != nil { return map[string]interface{}{}, errConnectorScopedInventory } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.RegisteredDevice.IsSet() { toSerialize["RegisteredDevice"] = o.RegisteredDevice.Get() @@ -188,6 +204,13 @@ func (o *TaskHitachiScopedInventory) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -197,11 +220,23 @@ func (o *TaskHitachiScopedInventory) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type TaskHitachiScopedInventoryWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_task_hyper_flex_management_scoped_inventory.go b/model_task_hyper_flex_management_scoped_inventory.go index 09f47c54e8..001520326b 100644 --- a/model_task_hyper_flex_management_scoped_inventory.go +++ b/model_task_hyper_flex_management_scoped_inventory.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -81,6 +81,11 @@ func (o *TaskHyperFlexManagementScopedInventory) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "task.HyperFlexManagementScopedInventory" of the ClassId field. +func (o *TaskHyperFlexManagementScopedInventory) GetDefaultClassId() interface{} { + return "task.HyperFlexManagementScopedInventory" +} + // GetObjectType returns the ObjectType field value func (o *TaskHyperFlexManagementScopedInventory) GetObjectType() string { if o == nil { @@ -105,6 +110,11 @@ func (o *TaskHyperFlexManagementScopedInventory) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "task.HyperFlexManagementScopedInventory" of the ObjectType field. +func (o *TaskHyperFlexManagementScopedInventory) GetDefaultObjectType() interface{} { + return "task.HyperFlexManagementScopedInventory" +} + // GetRegisteredDevice returns the RegisteredDevice field value if set, zero value otherwise (both if not set or set to explicit null). func (o *TaskHyperFlexManagementScopedInventory) GetRegisteredDevice() AssetDeviceRegistrationRelationship { if o == nil || IsNil(o.RegisteredDevice.Get()) { @@ -166,7 +176,13 @@ func (o TaskHyperFlexManagementScopedInventory) ToMap() (map[string]interface{}, if errConnectorScopedInventory != nil { return map[string]interface{}{}, errConnectorScopedInventory } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.RegisteredDevice.IsSet() { toSerialize["RegisteredDevice"] = o.RegisteredDevice.Get() @@ -188,6 +204,13 @@ func (o *TaskHyperFlexManagementScopedInventory) UnmarshalJSON(data []byte) (err "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -197,11 +220,23 @@ func (o *TaskHyperFlexManagementScopedInventory) UnmarshalJSON(data []byte) (err } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type TaskHyperFlexManagementScopedInventoryWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_task_hyperflex_scoped_inventory.go b/model_task_hyperflex_scoped_inventory.go index 7c3c75806a..004a98e479 100644 --- a/model_task_hyperflex_scoped_inventory.go +++ b/model_task_hyperflex_scoped_inventory.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -81,6 +81,11 @@ func (o *TaskHyperflexScopedInventory) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "task.HyperflexScopedInventory" of the ClassId field. +func (o *TaskHyperflexScopedInventory) GetDefaultClassId() interface{} { + return "task.HyperflexScopedInventory" +} + // GetObjectType returns the ObjectType field value func (o *TaskHyperflexScopedInventory) GetObjectType() string { if o == nil { @@ -105,6 +110,11 @@ func (o *TaskHyperflexScopedInventory) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "task.HyperflexScopedInventory" of the ObjectType field. +func (o *TaskHyperflexScopedInventory) GetDefaultObjectType() interface{} { + return "task.HyperflexScopedInventory" +} + // GetRegisteredDevice returns the RegisteredDevice field value if set, zero value otherwise (both if not set or set to explicit null). func (o *TaskHyperflexScopedInventory) GetRegisteredDevice() AssetDeviceRegistrationRelationship { if o == nil || IsNil(o.RegisteredDevice.Get()) { @@ -166,7 +176,13 @@ func (o TaskHyperflexScopedInventory) ToMap() (map[string]interface{}, error) { if errConnectorScopedInventory != nil { return map[string]interface{}{}, errConnectorScopedInventory } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.RegisteredDevice.IsSet() { toSerialize["RegisteredDevice"] = o.RegisteredDevice.Get() @@ -188,6 +204,13 @@ func (o *TaskHyperflexScopedInventory) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -197,11 +220,23 @@ func (o *TaskHyperflexScopedInventory) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type TaskHyperflexScopedInventoryWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_task_mds_scoped_inventory.go b/model_task_mds_scoped_inventory.go index eda6e40e44..51e46ffe2b 100644 --- a/model_task_mds_scoped_inventory.go +++ b/model_task_mds_scoped_inventory.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -81,6 +81,11 @@ func (o *TaskMdsScopedInventory) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "task.MdsScopedInventory" of the ClassId field. +func (o *TaskMdsScopedInventory) GetDefaultClassId() interface{} { + return "task.MdsScopedInventory" +} + // GetObjectType returns the ObjectType field value func (o *TaskMdsScopedInventory) GetObjectType() string { if o == nil { @@ -105,6 +110,11 @@ func (o *TaskMdsScopedInventory) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "task.MdsScopedInventory" of the ObjectType field. +func (o *TaskMdsScopedInventory) GetDefaultObjectType() interface{} { + return "task.MdsScopedInventory" +} + // GetRegisteredDevice returns the RegisteredDevice field value if set, zero value otherwise (both if not set or set to explicit null). func (o *TaskMdsScopedInventory) GetRegisteredDevice() AssetDeviceRegistrationRelationship { if o == nil || IsNil(o.RegisteredDevice.Get()) { @@ -166,7 +176,13 @@ func (o TaskMdsScopedInventory) ToMap() (map[string]interface{}, error) { if errConnectorScopedInventory != nil { return map[string]interface{}{}, errConnectorScopedInventory } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.RegisteredDevice.IsSet() { toSerialize["RegisteredDevice"] = o.RegisteredDevice.Get() @@ -188,6 +204,13 @@ func (o *TaskMdsScopedInventory) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -197,11 +220,23 @@ func (o *TaskMdsScopedInventory) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type TaskMdsScopedInventoryWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_task_mds_system_scoped_inventory.go b/model_task_mds_system_scoped_inventory.go index 4796df3661..9bf21d6118 100644 --- a/model_task_mds_system_scoped_inventory.go +++ b/model_task_mds_system_scoped_inventory.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -81,6 +81,11 @@ func (o *TaskMdsSystemScopedInventory) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "task.MdsSystemScopedInventory" of the ClassId field. +func (o *TaskMdsSystemScopedInventory) GetDefaultClassId() interface{} { + return "task.MdsSystemScopedInventory" +} + // GetObjectType returns the ObjectType field value func (o *TaskMdsSystemScopedInventory) GetObjectType() string { if o == nil { @@ -105,6 +110,11 @@ func (o *TaskMdsSystemScopedInventory) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "task.MdsSystemScopedInventory" of the ObjectType field. +func (o *TaskMdsSystemScopedInventory) GetDefaultObjectType() interface{} { + return "task.MdsSystemScopedInventory" +} + // GetRegisteredDevice returns the RegisteredDevice field value if set, zero value otherwise (both if not set or set to explicit null). func (o *TaskMdsSystemScopedInventory) GetRegisteredDevice() AssetDeviceRegistrationRelationship { if o == nil || IsNil(o.RegisteredDevice.Get()) { @@ -166,7 +176,13 @@ func (o TaskMdsSystemScopedInventory) ToMap() (map[string]interface{}, error) { if errConnectorScopedInventory != nil { return map[string]interface{}{}, errConnectorScopedInventory } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.RegisteredDevice.IsSet() { toSerialize["RegisteredDevice"] = o.RegisteredDevice.Get() @@ -188,6 +204,13 @@ func (o *TaskMdsSystemScopedInventory) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -197,11 +220,23 @@ func (o *TaskMdsSystemScopedInventory) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type TaskMdsSystemScopedInventoryWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_task_meraki_scoped_inventory.go b/model_task_meraki_scoped_inventory.go index 653dd62a76..04a09acd53 100644 --- a/model_task_meraki_scoped_inventory.go +++ b/model_task_meraki_scoped_inventory.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -81,6 +81,11 @@ func (o *TaskMerakiScopedInventory) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "task.MerakiScopedInventory" of the ClassId field. +func (o *TaskMerakiScopedInventory) GetDefaultClassId() interface{} { + return "task.MerakiScopedInventory" +} + // GetObjectType returns the ObjectType field value func (o *TaskMerakiScopedInventory) GetObjectType() string { if o == nil { @@ -105,6 +110,11 @@ func (o *TaskMerakiScopedInventory) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "task.MerakiScopedInventory" of the ObjectType field. +func (o *TaskMerakiScopedInventory) GetDefaultObjectType() interface{} { + return "task.MerakiScopedInventory" +} + // GetRegisteredDevice returns the RegisteredDevice field value if set, zero value otherwise (both if not set or set to explicit null). func (o *TaskMerakiScopedInventory) GetRegisteredDevice() AssetDeviceRegistrationRelationship { if o == nil || IsNil(o.RegisteredDevice.Get()) { @@ -166,7 +176,13 @@ func (o TaskMerakiScopedInventory) ToMap() (map[string]interface{}, error) { if errConnectorScopedInventory != nil { return map[string]interface{}{}, errConnectorScopedInventory } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.RegisteredDevice.IsSet() { toSerialize["RegisteredDevice"] = o.RegisteredDevice.Get() @@ -188,6 +204,13 @@ func (o *TaskMerakiScopedInventory) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -197,11 +220,23 @@ func (o *TaskMerakiScopedInventory) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type TaskMerakiScopedInventoryWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_task_net_app_scoped_inventory.go b/model_task_net_app_scoped_inventory.go index f2f46c2071..93b6f289f3 100644 --- a/model_task_net_app_scoped_inventory.go +++ b/model_task_net_app_scoped_inventory.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -81,6 +81,11 @@ func (o *TaskNetAppScopedInventory) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "task.NetAppScopedInventory" of the ClassId field. +func (o *TaskNetAppScopedInventory) GetDefaultClassId() interface{} { + return "task.NetAppScopedInventory" +} + // GetObjectType returns the ObjectType field value func (o *TaskNetAppScopedInventory) GetObjectType() string { if o == nil { @@ -105,6 +110,11 @@ func (o *TaskNetAppScopedInventory) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "task.NetAppScopedInventory" of the ObjectType field. +func (o *TaskNetAppScopedInventory) GetDefaultObjectType() interface{} { + return "task.NetAppScopedInventory" +} + // GetRegisteredDevice returns the RegisteredDevice field value if set, zero value otherwise (both if not set or set to explicit null). func (o *TaskNetAppScopedInventory) GetRegisteredDevice() AssetDeviceRegistrationRelationship { if o == nil || IsNil(o.RegisteredDevice.Get()) { @@ -166,7 +176,13 @@ func (o TaskNetAppScopedInventory) ToMap() (map[string]interface{}, error) { if errConnectorScopedInventory != nil { return map[string]interface{}{}, errConnectorScopedInventory } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.RegisteredDevice.IsSet() { toSerialize["RegisteredDevice"] = o.RegisteredDevice.Get() @@ -188,6 +204,13 @@ func (o *TaskNetAppScopedInventory) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -197,11 +220,23 @@ func (o *TaskNetAppScopedInventory) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type TaskNetAppScopedInventoryWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_task_nexus_scoped_inventory.go b/model_task_nexus_scoped_inventory.go index e1a4ac6341..2ba7bc3c5c 100644 --- a/model_task_nexus_scoped_inventory.go +++ b/model_task_nexus_scoped_inventory.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -81,6 +81,11 @@ func (o *TaskNexusScopedInventory) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "task.NexusScopedInventory" of the ClassId field. +func (o *TaskNexusScopedInventory) GetDefaultClassId() interface{} { + return "task.NexusScopedInventory" +} + // GetObjectType returns the ObjectType field value func (o *TaskNexusScopedInventory) GetObjectType() string { if o == nil { @@ -105,6 +110,11 @@ func (o *TaskNexusScopedInventory) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "task.NexusScopedInventory" of the ObjectType field. +func (o *TaskNexusScopedInventory) GetDefaultObjectType() interface{} { + return "task.NexusScopedInventory" +} + // GetRegisteredDevice returns the RegisteredDevice field value if set, zero value otherwise (both if not set or set to explicit null). func (o *TaskNexusScopedInventory) GetRegisteredDevice() AssetDeviceRegistrationRelationship { if o == nil || IsNil(o.RegisteredDevice.Get()) { @@ -166,7 +176,13 @@ func (o TaskNexusScopedInventory) ToMap() (map[string]interface{}, error) { if errConnectorScopedInventory != nil { return map[string]interface{}{}, errConnectorScopedInventory } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.RegisteredDevice.IsSet() { toSerialize["RegisteredDevice"] = o.RegisteredDevice.Get() @@ -188,6 +204,13 @@ func (o *TaskNexusScopedInventory) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -197,11 +220,23 @@ func (o *TaskNexusScopedInventory) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type TaskNexusScopedInventoryWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_task_nexus_system_scoped_inventory.go b/model_task_nexus_system_scoped_inventory.go index 4aafa1ec7c..4f57c85d22 100644 --- a/model_task_nexus_system_scoped_inventory.go +++ b/model_task_nexus_system_scoped_inventory.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -81,6 +81,11 @@ func (o *TaskNexusSystemScopedInventory) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "task.NexusSystemScopedInventory" of the ClassId field. +func (o *TaskNexusSystemScopedInventory) GetDefaultClassId() interface{} { + return "task.NexusSystemScopedInventory" +} + // GetObjectType returns the ObjectType field value func (o *TaskNexusSystemScopedInventory) GetObjectType() string { if o == nil { @@ -105,6 +110,11 @@ func (o *TaskNexusSystemScopedInventory) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "task.NexusSystemScopedInventory" of the ObjectType field. +func (o *TaskNexusSystemScopedInventory) GetDefaultObjectType() interface{} { + return "task.NexusSystemScopedInventory" +} + // GetRegisteredDevice returns the RegisteredDevice field value if set, zero value otherwise (both if not set or set to explicit null). func (o *TaskNexusSystemScopedInventory) GetRegisteredDevice() AssetDeviceRegistrationRelationship { if o == nil || IsNil(o.RegisteredDevice.Get()) { @@ -166,7 +176,13 @@ func (o TaskNexusSystemScopedInventory) ToMap() (map[string]interface{}, error) if errConnectorScopedInventory != nil { return map[string]interface{}{}, errConnectorScopedInventory } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.RegisteredDevice.IsSet() { toSerialize["RegisteredDevice"] = o.RegisteredDevice.Get() @@ -188,6 +204,13 @@ func (o *TaskNexusSystemScopedInventory) UnmarshalJSON(data []byte) (err error) "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -197,11 +220,23 @@ func (o *TaskNexusSystemScopedInventory) UnmarshalJSON(data []byte) (err error) } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type TaskNexusSystemScopedInventoryWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_task_nexus_vlan_scoped_inventory.go b/model_task_nexus_vlan_scoped_inventory.go index 75bb5125a2..d48d32db9c 100644 --- a/model_task_nexus_vlan_scoped_inventory.go +++ b/model_task_nexus_vlan_scoped_inventory.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -81,6 +81,11 @@ func (o *TaskNexusVlanScopedInventory) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "task.NexusVlanScopedInventory" of the ClassId field. +func (o *TaskNexusVlanScopedInventory) GetDefaultClassId() interface{} { + return "task.NexusVlanScopedInventory" +} + // GetObjectType returns the ObjectType field value func (o *TaskNexusVlanScopedInventory) GetObjectType() string { if o == nil { @@ -105,6 +110,11 @@ func (o *TaskNexusVlanScopedInventory) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "task.NexusVlanScopedInventory" of the ObjectType field. +func (o *TaskNexusVlanScopedInventory) GetDefaultObjectType() interface{} { + return "task.NexusVlanScopedInventory" +} + // GetRegisteredDevice returns the RegisteredDevice field value if set, zero value otherwise (both if not set or set to explicit null). func (o *TaskNexusVlanScopedInventory) GetRegisteredDevice() AssetDeviceRegistrationRelationship { if o == nil || IsNil(o.RegisteredDevice.Get()) { @@ -166,7 +176,13 @@ func (o TaskNexusVlanScopedInventory) ToMap() (map[string]interface{}, error) { if errConnectorScopedInventory != nil { return map[string]interface{}{}, errConnectorScopedInventory } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.RegisteredDevice.IsSet() { toSerialize["RegisteredDevice"] = o.RegisteredDevice.Get() @@ -188,6 +204,13 @@ func (o *TaskNexusVlanScopedInventory) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -197,11 +220,23 @@ func (o *TaskNexusVlanScopedInventory) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type TaskNexusVlanScopedInventoryWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_task_public_cloud_scoped_inventory.go b/model_task_public_cloud_scoped_inventory.go index ad9439eef2..61adb5936b 100644 --- a/model_task_public_cloud_scoped_inventory.go +++ b/model_task_public_cloud_scoped_inventory.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -81,6 +81,11 @@ func (o *TaskPublicCloudScopedInventory) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "task.PublicCloudScopedInventory" of the ClassId field. +func (o *TaskPublicCloudScopedInventory) GetDefaultClassId() interface{} { + return "task.PublicCloudScopedInventory" +} + // GetObjectType returns the ObjectType field value func (o *TaskPublicCloudScopedInventory) GetObjectType() string { if o == nil { @@ -105,6 +110,11 @@ func (o *TaskPublicCloudScopedInventory) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "task.PublicCloudScopedInventory" of the ObjectType field. +func (o *TaskPublicCloudScopedInventory) GetDefaultObjectType() interface{} { + return "task.PublicCloudScopedInventory" +} + // GetRegisteredDevice returns the RegisteredDevice field value if set, zero value otherwise (both if not set or set to explicit null). func (o *TaskPublicCloudScopedInventory) GetRegisteredDevice() AssetDeviceRegistrationRelationship { if o == nil || IsNil(o.RegisteredDevice.Get()) { @@ -166,7 +176,13 @@ func (o TaskPublicCloudScopedInventory) ToMap() (map[string]interface{}, error) if errConnectorScopedInventory != nil { return map[string]interface{}{}, errConnectorScopedInventory } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.RegisteredDevice.IsSet() { toSerialize["RegisteredDevice"] = o.RegisteredDevice.Get() @@ -188,6 +204,13 @@ func (o *TaskPublicCloudScopedInventory) UnmarshalJSON(data []byte) (err error) "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -197,11 +220,23 @@ func (o *TaskPublicCloudScopedInventory) UnmarshalJSON(data []byte) (err error) } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type TaskPublicCloudScopedInventoryWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_task_pure_scoped_inventory.go b/model_task_pure_scoped_inventory.go index 4c2ccffa68..39bb485fb1 100644 --- a/model_task_pure_scoped_inventory.go +++ b/model_task_pure_scoped_inventory.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -81,6 +81,11 @@ func (o *TaskPureScopedInventory) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "task.PureScopedInventory" of the ClassId field. +func (o *TaskPureScopedInventory) GetDefaultClassId() interface{} { + return "task.PureScopedInventory" +} + // GetObjectType returns the ObjectType field value func (o *TaskPureScopedInventory) GetObjectType() string { if o == nil { @@ -105,6 +110,11 @@ func (o *TaskPureScopedInventory) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "task.PureScopedInventory" of the ObjectType field. +func (o *TaskPureScopedInventory) GetDefaultObjectType() interface{} { + return "task.PureScopedInventory" +} + // GetRegisteredDevice returns the RegisteredDevice field value if set, zero value otherwise (both if not set or set to explicit null). func (o *TaskPureScopedInventory) GetRegisteredDevice() AssetDeviceRegistrationRelationship { if o == nil || IsNil(o.RegisteredDevice.Get()) { @@ -166,7 +176,13 @@ func (o TaskPureScopedInventory) ToMap() (map[string]interface{}, error) { if errConnectorScopedInventory != nil { return map[string]interface{}{}, errConnectorScopedInventory } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.RegisteredDevice.IsSet() { toSerialize["RegisteredDevice"] = o.RegisteredDevice.Get() @@ -188,6 +204,13 @@ func (o *TaskPureScopedInventory) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -197,11 +220,23 @@ func (o *TaskPureScopedInventory) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type TaskPureScopedInventoryWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_task_server_scoped_inventory.go b/model_task_server_scoped_inventory.go index 668490e765..de5e93ed02 100644 --- a/model_task_server_scoped_inventory.go +++ b/model_task_server_scoped_inventory.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -81,6 +81,11 @@ func (o *TaskServerScopedInventory) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "task.ServerScopedInventory" of the ClassId field. +func (o *TaskServerScopedInventory) GetDefaultClassId() interface{} { + return "task.ServerScopedInventory" +} + // GetObjectType returns the ObjectType field value func (o *TaskServerScopedInventory) GetObjectType() string { if o == nil { @@ -105,6 +110,11 @@ func (o *TaskServerScopedInventory) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "task.ServerScopedInventory" of the ObjectType field. +func (o *TaskServerScopedInventory) GetDefaultObjectType() interface{} { + return "task.ServerScopedInventory" +} + // GetRegisteredDevice returns the RegisteredDevice field value if set, zero value otherwise (both if not set or set to explicit null). func (o *TaskServerScopedInventory) GetRegisteredDevice() AssetDeviceRegistrationRelationship { if o == nil || IsNil(o.RegisteredDevice.Get()) { @@ -166,7 +176,13 @@ func (o TaskServerScopedInventory) ToMap() (map[string]interface{}, error) { if errConnectorScopedInventory != nil { return map[string]interface{}{}, errConnectorScopedInventory } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.RegisteredDevice.IsSet() { toSerialize["RegisteredDevice"] = o.RegisteredDevice.Get() @@ -188,6 +204,13 @@ func (o *TaskServerScopedInventory) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -197,11 +220,23 @@ func (o *TaskServerScopedInventory) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type TaskServerScopedInventoryWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_techsupportmanagement_appliance_param.go b/model_techsupportmanagement_appliance_param.go index 10805ee0a5..9b8eef9240 100644 --- a/model_techsupportmanagement_appliance_param.go +++ b/model_techsupportmanagement_appliance_param.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -82,6 +82,11 @@ func (o *TechsupportmanagementApplianceParam) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "techsupportmanagement.ApplianceParam" of the ClassId field. +func (o *TechsupportmanagementApplianceParam) GetDefaultClassId() interface{} { + return "techsupportmanagement.ApplianceParam" +} + // GetObjectType returns the ObjectType field value func (o *TechsupportmanagementApplianceParam) GetObjectType() string { if o == nil { @@ -106,6 +111,11 @@ func (o *TechsupportmanagementApplianceParam) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "techsupportmanagement.ApplianceParam" of the ObjectType field. +func (o *TechsupportmanagementApplianceParam) GetDefaultObjectType() interface{} { + return "techsupportmanagement.ApplianceParam" +} + // GetIsApplianceRequest returns the IsApplianceRequest field value if set, zero value otherwise. func (o *TechsupportmanagementApplianceParam) GetIsApplianceRequest() bool { if o == nil || IsNil(o.IsApplianceRequest) { @@ -156,7 +166,13 @@ func (o TechsupportmanagementApplianceParam) ToMap() (map[string]interface{}, er if errConnectorPlatformParamBase != nil { return map[string]interface{}{}, errConnectorPlatformParamBase } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.IsApplianceRequest) { toSerialize["IsApplianceRequest"] = o.IsApplianceRequest @@ -178,6 +194,13 @@ func (o *TechsupportmanagementApplianceParam) UnmarshalJSON(data []byte) (err er "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -187,11 +210,23 @@ func (o *TechsupportmanagementApplianceParam) UnmarshalJSON(data []byte) (err er } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type TechsupportmanagementApplianceParamWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_techsupportmanagement_collection_control_policy.go b/model_techsupportmanagement_collection_control_policy.go index 237739f380..f94f1d2182 100644 --- a/model_techsupportmanagement_collection_control_policy.go +++ b/model_techsupportmanagement_collection_control_policy.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -89,6 +89,11 @@ func (o *TechsupportmanagementCollectionControlPolicy) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "techsupportmanagement.CollectionControlPolicy" of the ClassId field. +func (o *TechsupportmanagementCollectionControlPolicy) GetDefaultClassId() interface{} { + return "techsupportmanagement.CollectionControlPolicy" +} + // GetObjectType returns the ObjectType field value func (o *TechsupportmanagementCollectionControlPolicy) GetObjectType() string { if o == nil { @@ -113,6 +118,11 @@ func (o *TechsupportmanagementCollectionControlPolicy) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "techsupportmanagement.CollectionControlPolicy" of the ObjectType field. +func (o *TechsupportmanagementCollectionControlPolicy) GetDefaultObjectType() interface{} { + return "techsupportmanagement.CollectionControlPolicy" +} + // GetDeploymentType returns the DeploymentType field value if set, zero value otherwise. func (o *TechsupportmanagementCollectionControlPolicy) GetDeploymentType() string { if o == nil || IsNil(o.DeploymentType) { @@ -238,7 +248,13 @@ func (o TechsupportmanagementCollectionControlPolicy) ToMap() (map[string]interf if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.DeploymentType) { toSerialize["DeploymentType"] = o.DeploymentType @@ -266,6 +282,13 @@ func (o *TechsupportmanagementCollectionControlPolicy) UnmarshalJSON(data []byte "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -275,11 +298,23 @@ func (o *TechsupportmanagementCollectionControlPolicy) UnmarshalJSON(data []byte } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type TechsupportmanagementCollectionControlPolicyWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_techsupportmanagement_collection_control_policy_list.go b/model_techsupportmanagement_collection_control_policy_list.go index ec5489d4d4..0c0b60722b 100644 --- a/model_techsupportmanagement_collection_control_policy_list.go +++ b/model_techsupportmanagement_collection_control_policy_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *TechsupportmanagementCollectionControlPolicyList) GetResultsOk() ([]Tec // HasResults returns a boolean if a field has been set. func (o *TechsupportmanagementCollectionControlPolicyList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *TechsupportmanagementCollectionControlPolicyList) UnmarshalJSON(data [] "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *TechsupportmanagementCollectionControlPolicyList) UnmarshalJSON(data [] } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type TechsupportmanagementCollectionControlPolicyListWithoutEmbeddedStruct struct { // The total number of 'techsupportmanagement.CollectionControlPolicy' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_techsupportmanagement_collection_control_policy_response.go b/model_techsupportmanagement_collection_control_policy_response.go index 6879e32d1c..12e1efa087 100644 --- a/model_techsupportmanagement_collection_control_policy_response.go +++ b/model_techsupportmanagement_collection_control_policy_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_techsupportmanagement_download.go b/model_techsupportmanagement_download.go index 5a3ba01428..d9999e3631 100644 --- a/model_techsupportmanagement_download.go +++ b/model_techsupportmanagement_download.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -81,6 +81,11 @@ func (o *TechsupportmanagementDownload) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "techsupportmanagement.Download" of the ClassId field. +func (o *TechsupportmanagementDownload) GetDefaultClassId() interface{} { + return "techsupportmanagement.Download" +} + // GetObjectType returns the ObjectType field value func (o *TechsupportmanagementDownload) GetObjectType() string { if o == nil { @@ -105,6 +110,11 @@ func (o *TechsupportmanagementDownload) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "techsupportmanagement.Download" of the ObjectType field. +func (o *TechsupportmanagementDownload) GetDefaultObjectType() interface{} { + return "techsupportmanagement.Download" +} + // GetTechSupportStatus returns the TechSupportStatus field value if set, zero value otherwise (both if not set or set to explicit null). func (o *TechsupportmanagementDownload) GetTechSupportStatus() TechsupportmanagementTechSupportStatusRelationship { if o == nil || IsNil(o.TechSupportStatus.Get()) { @@ -166,7 +176,13 @@ func (o TechsupportmanagementDownload) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.TechSupportStatus.IsSet() { toSerialize["TechSupportStatus"] = o.TechSupportStatus.Get() @@ -188,6 +204,13 @@ func (o *TechsupportmanagementDownload) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -197,11 +220,23 @@ func (o *TechsupportmanagementDownload) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type TechsupportmanagementDownloadWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_techsupportmanagement_download_list.go b/model_techsupportmanagement_download_list.go index 81b2749d80..3f2bc02405 100644 --- a/model_techsupportmanagement_download_list.go +++ b/model_techsupportmanagement_download_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *TechsupportmanagementDownloadList) GetResultsOk() ([]Techsupportmanagem // HasResults returns a boolean if a field has been set. func (o *TechsupportmanagementDownloadList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *TechsupportmanagementDownloadList) UnmarshalJSON(data []byte) (err erro "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *TechsupportmanagementDownloadList) UnmarshalJSON(data []byte) (err erro } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type TechsupportmanagementDownloadListWithoutEmbeddedStruct struct { // The total number of 'techsupportmanagement.Download' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_techsupportmanagement_download_response.go b/model_techsupportmanagement_download_response.go index d692e98b81..54f7785fc3 100644 --- a/model_techsupportmanagement_download_response.go +++ b/model_techsupportmanagement_download_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_techsupportmanagement_end_point.go b/model_techsupportmanagement_end_point.go index 82fdcd3ef2..b146f43dda 100644 --- a/model_techsupportmanagement_end_point.go +++ b/model_techsupportmanagement_end_point.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -95,6 +95,11 @@ func (o *TechsupportmanagementEndPoint) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "techsupportmanagement.EndPoint" of the ClassId field. +func (o *TechsupportmanagementEndPoint) GetDefaultClassId() interface{} { + return "techsupportmanagement.EndPoint" +} + // GetObjectType returns the ObjectType field value func (o *TechsupportmanagementEndPoint) GetObjectType() string { if o == nil { @@ -119,6 +124,11 @@ func (o *TechsupportmanagementEndPoint) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "techsupportmanagement.EndPoint" of the ObjectType field. +func (o *TechsupportmanagementEndPoint) GetDefaultObjectType() interface{} { + return "techsupportmanagement.EndPoint" +} + // GetDeviceMoid returns the DeviceMoid field value if set, zero value otherwise. func (o *TechsupportmanagementEndPoint) GetDeviceMoid() string { if o == nil || IsNil(o.DeviceMoid) { @@ -458,7 +468,13 @@ func (o TechsupportmanagementEndPoint) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.DeviceMoid) { toSerialize["DeviceMoid"] = o.DeviceMoid @@ -504,6 +520,13 @@ func (o *TechsupportmanagementEndPoint) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -513,11 +536,23 @@ func (o *TechsupportmanagementEndPoint) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type TechsupportmanagementEndPointWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_techsupportmanagement_end_point_list.go b/model_techsupportmanagement_end_point_list.go index fcd4e34d76..ae07f2b5ef 100644 --- a/model_techsupportmanagement_end_point_list.go +++ b/model_techsupportmanagement_end_point_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *TechsupportmanagementEndPointList) GetResultsOk() ([]Techsupportmanagem // HasResults returns a boolean if a field has been set. func (o *TechsupportmanagementEndPointList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *TechsupportmanagementEndPointList) UnmarshalJSON(data []byte) (err erro "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *TechsupportmanagementEndPointList) UnmarshalJSON(data []byte) (err erro } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type TechsupportmanagementEndPointListWithoutEmbeddedStruct struct { // The total number of 'techsupportmanagement.EndPoint' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_techsupportmanagement_end_point_response.go b/model_techsupportmanagement_end_point_response.go index f71a08ded8..0e741658bd 100644 --- a/model_techsupportmanagement_end_point_response.go +++ b/model_techsupportmanagement_end_point_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_techsupportmanagement_nia_param.go b/model_techsupportmanagement_nia_param.go index 935f507fdd..38e615734a 100644 --- a/model_techsupportmanagement_nia_param.go +++ b/model_techsupportmanagement_nia_param.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -106,6 +106,11 @@ func (o *TechsupportmanagementNiaParam) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "techsupportmanagement.NiaParam" of the ClassId field. +func (o *TechsupportmanagementNiaParam) GetDefaultClassId() interface{} { + return "techsupportmanagement.NiaParam" +} + // GetObjectType returns the ObjectType field value func (o *TechsupportmanagementNiaParam) GetObjectType() string { if o == nil { @@ -130,6 +135,11 @@ func (o *TechsupportmanagementNiaParam) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "techsupportmanagement.NiaParam" of the ObjectType field. +func (o *TechsupportmanagementNiaParam) GetDefaultObjectType() interface{} { + return "techsupportmanagement.NiaParam" +} + // GetCollectionClass returns the CollectionClass field value if set, zero value otherwise. func (o *TechsupportmanagementNiaParam) GetCollectionClass() int32 { if o == nil || IsNil(o.CollectionClass) { @@ -311,7 +321,7 @@ func (o *TechsupportmanagementNiaParam) GetPidsOk() ([]string, bool) { // HasPids returns a boolean if a field has been set. func (o *TechsupportmanagementNiaParam) HasPids() bool { - if o != nil && IsNil(o.Pids) { + if o != nil && !IsNil(o.Pids) { return true } @@ -344,7 +354,7 @@ func (o *TechsupportmanagementNiaParam) GetSerialNumbersOk() ([]string, bool) { // HasSerialNumbers returns a boolean if a field has been set. func (o *TechsupportmanagementNiaParam) HasSerialNumbers() bool { - if o != nil && IsNil(o.SerialNumbers) { + if o != nil && !IsNil(o.SerialNumbers) { return true } @@ -406,7 +416,13 @@ func (o TechsupportmanagementNiaParam) ToMap() (map[string]interface{}, error) { if errConnectorPlatformParamBase != nil { return map[string]interface{}{}, errConnectorPlatformParamBase } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.CollectionClass) { toSerialize["CollectionClass"] = o.CollectionClass @@ -449,6 +465,13 @@ func (o *TechsupportmanagementNiaParam) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -458,11 +481,23 @@ func (o *TechsupportmanagementNiaParam) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type TechsupportmanagementNiaParamWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_techsupportmanagement_platform_param.go b/model_techsupportmanagement_platform_param.go index e3ee8917ef..18df471890 100644 --- a/model_techsupportmanagement_platform_param.go +++ b/model_techsupportmanagement_platform_param.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -88,6 +88,11 @@ func (o *TechsupportmanagementPlatformParam) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "techsupportmanagement.PlatformParam" of the ClassId field. +func (o *TechsupportmanagementPlatformParam) GetDefaultClassId() interface{} { + return "techsupportmanagement.PlatformParam" +} + // GetObjectType returns the ObjectType field value func (o *TechsupportmanagementPlatformParam) GetObjectType() string { if o == nil { @@ -112,6 +117,11 @@ func (o *TechsupportmanagementPlatformParam) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "techsupportmanagement.PlatformParam" of the ObjectType field. +func (o *TechsupportmanagementPlatformParam) GetDefaultObjectType() interface{} { + return "techsupportmanagement.PlatformParam" +} + // GetCollectionType returns the CollectionType field value if set, zero value otherwise. func (o *TechsupportmanagementPlatformParam) GetCollectionType() int32 { if o == nil || IsNil(o.CollectionType) { @@ -194,7 +204,13 @@ func (o TechsupportmanagementPlatformParam) ToMap() (map[string]interface{}, err if errConnectorPlatformParamBase != nil { return map[string]interface{}{}, errConnectorPlatformParamBase } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.CollectionType) { toSerialize["CollectionType"] = o.CollectionType @@ -219,6 +235,13 @@ func (o *TechsupportmanagementPlatformParam) UnmarshalJSON(data []byte) (err err "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -228,11 +251,23 @@ func (o *TechsupportmanagementPlatformParam) UnmarshalJSON(data []byte) (err err } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type TechsupportmanagementPlatformParamWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_techsupportmanagement_tech_support_bundle.go b/model_techsupportmanagement_tech_support_bundle.go index 592de7636e..40763a3b8f 100644 --- a/model_techsupportmanagement_tech_support_bundle.go +++ b/model_techsupportmanagement_tech_support_bundle.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -98,6 +98,11 @@ func (o *TechsupportmanagementTechSupportBundle) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "techsupportmanagement.TechSupportBundle" of the ClassId field. +func (o *TechsupportmanagementTechSupportBundle) GetDefaultClassId() interface{} { + return "techsupportmanagement.TechSupportBundle" +} + // GetObjectType returns the ObjectType field value func (o *TechsupportmanagementTechSupportBundle) GetObjectType() string { if o == nil { @@ -122,6 +127,11 @@ func (o *TechsupportmanagementTechSupportBundle) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "techsupportmanagement.TechSupportBundle" of the ObjectType field. +func (o *TechsupportmanagementTechSupportBundle) GetDefaultObjectType() interface{} { + return "techsupportmanagement.TechSupportBundle" +} + // GetDeviceIdentifier returns the DeviceIdentifier field value if set, zero value otherwise. func (o *TechsupportmanagementTechSupportBundle) GetDeviceIdentifier() string { if o == nil || IsNil(o.DeviceIdentifier) { @@ -472,7 +482,13 @@ func (o TechsupportmanagementTechSupportBundle) ToMap() (map[string]interface{}, if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.DeviceIdentifier) { toSerialize["DeviceIdentifier"] = o.DeviceIdentifier @@ -518,6 +534,13 @@ func (o *TechsupportmanagementTechSupportBundle) UnmarshalJSON(data []byte) (err "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -527,11 +550,23 @@ func (o *TechsupportmanagementTechSupportBundle) UnmarshalJSON(data []byte) (err } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type TechsupportmanagementTechSupportBundleWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_techsupportmanagement_tech_support_bundle_list.go b/model_techsupportmanagement_tech_support_bundle_list.go index 051d322580..358c16ffbf 100644 --- a/model_techsupportmanagement_tech_support_bundle_list.go +++ b/model_techsupportmanagement_tech_support_bundle_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *TechsupportmanagementTechSupportBundleList) GetResultsOk() ([]Techsuppo // HasResults returns a boolean if a field has been set. func (o *TechsupportmanagementTechSupportBundleList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *TechsupportmanagementTechSupportBundleList) UnmarshalJSON(data []byte) "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *TechsupportmanagementTechSupportBundleList) UnmarshalJSON(data []byte) } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type TechsupportmanagementTechSupportBundleListWithoutEmbeddedStruct struct { // The total number of 'techsupportmanagement.TechSupportBundle' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_techsupportmanagement_tech_support_bundle_relationship.go b/model_techsupportmanagement_tech_support_bundle_relationship.go index a691494b74..84fa97f05d 100644 --- a/model_techsupportmanagement_tech_support_bundle_relationship.go +++ b/model_techsupportmanagement_tech_support_bundle_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_techsupportmanagement_tech_support_bundle_response.go b/model_techsupportmanagement_tech_support_bundle_response.go index b926e21c7b..7c8c9909b0 100644 --- a/model_techsupportmanagement_tech_support_bundle_response.go +++ b/model_techsupportmanagement_tech_support_bundle_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_techsupportmanagement_tech_support_file_info.go b/model_techsupportmanagement_tech_support_file_info.go index 5645848c9d..8196517e00 100644 --- a/model_techsupportmanagement_tech_support_file_info.go +++ b/model_techsupportmanagement_tech_support_file_info.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -88,6 +88,11 @@ func (o *TechsupportmanagementTechSupportFileInfo) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "techsupportmanagement.TechSupportFileInfo" of the ClassId field. +func (o *TechsupportmanagementTechSupportFileInfo) GetDefaultClassId() interface{} { + return "techsupportmanagement.TechSupportFileInfo" +} + // GetObjectType returns the ObjectType field value func (o *TechsupportmanagementTechSupportFileInfo) GetObjectType() string { if o == nil { @@ -112,6 +117,11 @@ func (o *TechsupportmanagementTechSupportFileInfo) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "techsupportmanagement.TechSupportFileInfo" of the ObjectType field. +func (o *TechsupportmanagementTechSupportFileInfo) GetDefaultObjectType() interface{} { + return "techsupportmanagement.TechSupportFileInfo" +} + // GetFileName returns the FileName field value if set, zero value otherwise. func (o *TechsupportmanagementTechSupportFileInfo) GetFileName() string { if o == nil || IsNil(o.FileName) { @@ -258,7 +268,13 @@ func (o TechsupportmanagementTechSupportFileInfo) ToMap() (map[string]interface{ if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.FileName) { toSerialize["FileName"] = o.FileName @@ -289,6 +305,13 @@ func (o *TechsupportmanagementTechSupportFileInfo) UnmarshalJSON(data []byte) (e "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -298,11 +321,23 @@ func (o *TechsupportmanagementTechSupportFileInfo) UnmarshalJSON(data []byte) (e } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type TechsupportmanagementTechSupportFileInfoWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_techsupportmanagement_tech_support_status.go b/model_techsupportmanagement_tech_support_status.go index f625477677..7bcdf73a71 100644 --- a/model_techsupportmanagement_tech_support_status.go +++ b/model_techsupportmanagement_tech_support_status.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,6 +104,11 @@ func (o *TechsupportmanagementTechSupportStatus) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "techsupportmanagement.TechSupportStatus" of the ClassId field. +func (o *TechsupportmanagementTechSupportStatus) GetDefaultClassId() interface{} { + return "techsupportmanagement.TechSupportStatus" +} + // GetObjectType returns the ObjectType field value func (o *TechsupportmanagementTechSupportStatus) GetObjectType() string { if o == nil { @@ -128,6 +133,11 @@ func (o *TechsupportmanagementTechSupportStatus) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "techsupportmanagement.TechSupportStatus" of the ObjectType field. +func (o *TechsupportmanagementTechSupportStatus) GetDefaultObjectType() interface{} { + return "techsupportmanagement.TechSupportStatus" +} + // GetFileName returns the FileName field value if set, zero value otherwise. func (o *TechsupportmanagementTechSupportStatus) GetFileName() string { if o == nil || IsNil(o.FileName) { @@ -405,7 +415,7 @@ func (o *TechsupportmanagementTechSupportStatus) GetTechsupportFilesOk() ([]Tech // HasTechsupportFiles returns a boolean if a field has been set. func (o *TechsupportmanagementTechSupportStatus) HasTechsupportFiles() bool { - if o != nil && IsNil(o.TechsupportFiles) { + if o != nil && !IsNil(o.TechsupportFiles) { return true } @@ -639,7 +649,13 @@ func (o TechsupportmanagementTechSupportStatus) ToMap() (map[string]interface{}, if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.FileName) { toSerialize["FileName"] = o.FileName @@ -700,6 +716,13 @@ func (o *TechsupportmanagementTechSupportStatus) UnmarshalJSON(data []byte) (err "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -709,11 +732,23 @@ func (o *TechsupportmanagementTechSupportStatus) UnmarshalJSON(data []byte) (err } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type TechsupportmanagementTechSupportStatusWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_techsupportmanagement_tech_support_status_list.go b/model_techsupportmanagement_tech_support_status_list.go index eb409ef855..e1a8f7a216 100644 --- a/model_techsupportmanagement_tech_support_status_list.go +++ b/model_techsupportmanagement_tech_support_status_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *TechsupportmanagementTechSupportStatusList) GetResultsOk() ([]Techsuppo // HasResults returns a boolean if a field has been set. func (o *TechsupportmanagementTechSupportStatusList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *TechsupportmanagementTechSupportStatusList) UnmarshalJSON(data []byte) "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *TechsupportmanagementTechSupportStatusList) UnmarshalJSON(data []byte) } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type TechsupportmanagementTechSupportStatusListWithoutEmbeddedStruct struct { // The total number of 'techsupportmanagement.TechSupportStatus' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_techsupportmanagement_tech_support_status_relationship.go b/model_techsupportmanagement_tech_support_status_relationship.go index 8aac1f32c9..48f17c5685 100644 --- a/model_techsupportmanagement_tech_support_status_relationship.go +++ b/model_techsupportmanagement_tech_support_status_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_techsupportmanagement_tech_support_status_response.go b/model_techsupportmanagement_tech_support_status_response.go index 196017b014..2f55c31d29 100644 --- a/model_techsupportmanagement_tech_support_status_response.go +++ b/model_techsupportmanagement_tech_support_status_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_telemetry_druid_aggregate_search_spec.go b/model_telemetry_druid_aggregate_search_spec.go index b6af0e7749..a1cf8aff91 100644 --- a/model_telemetry_druid_aggregate_search_spec.go +++ b/model_telemetry_druid_aggregate_search_spec.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_telemetry_druid_aggregator.go b/model_telemetry_druid_aggregator.go index 1cb2b3b73a..49f77e7e03 100644 --- a/model_telemetry_druid_aggregator.go +++ b/model_telemetry_druid_aggregator.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_telemetry_druid_and_filter.go b/model_telemetry_druid_and_filter.go index d4b7e5c954..3cd51c4353 100644 --- a/model_telemetry_druid_and_filter.go +++ b/model_telemetry_druid_and_filter.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -125,6 +125,10 @@ func (o *TelemetryDruidAndFilter) UnmarshalJSON(data []byte) (err error) { "fields", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -134,11 +138,23 @@ func (o *TelemetryDruidAndFilter) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } varTelemetryDruidAndFilter := _TelemetryDruidAndFilter{} err = json.Unmarshal(data, &varTelemetryDruidAndFilter) diff --git a/model_telemetry_druid_any_aggregator.go b/model_telemetry_druid_any_aggregator.go index 1e8d65cf85..5b7a0c2420 100644 --- a/model_telemetry_druid_any_aggregator.go +++ b/model_telemetry_druid_any_aggregator.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -155,6 +155,10 @@ func (o *TelemetryDruidAnyAggregator) UnmarshalJSON(data []byte) (err error) { "fieldName", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -164,11 +168,23 @@ func (o *TelemetryDruidAnyAggregator) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } varTelemetryDruidAnyAggregator := _TelemetryDruidAnyAggregator{} err = json.Unmarshal(data, &varTelemetryDruidAnyAggregator) diff --git a/model_telemetry_druid_arithmetic_post_aggregator.go b/model_telemetry_druid_arithmetic_post_aggregator.go index 42105ed045..b54a7922b8 100644 --- a/model_telemetry_druid_arithmetic_post_aggregator.go +++ b/model_telemetry_druid_arithmetic_post_aggregator.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -244,6 +244,10 @@ func (o *TelemetryDruidArithmeticPostAggregator) UnmarshalJSON(data []byte) (err "type", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -253,11 +257,23 @@ func (o *TelemetryDruidArithmeticPostAggregator) UnmarshalJSON(data []byte) (err } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } varTelemetryDruidArithmeticPostAggregator := _TelemetryDruidArithmeticPostAggregator{} err = json.Unmarshal(data, &varTelemetryDruidArithmeticPostAggregator) diff --git a/model_telemetry_druid_base_aggregator.go b/model_telemetry_druid_base_aggregator.go index f9491447c8..009f20dce2 100644 --- a/model_telemetry_druid_base_aggregator.go +++ b/model_telemetry_druid_base_aggregator.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -97,6 +97,10 @@ func (o *TelemetryDruidBaseAggregator) UnmarshalJSON(data []byte) (err error) { "type", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -106,11 +110,23 @@ func (o *TelemetryDruidBaseAggregator) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } varTelemetryDruidBaseAggregator := _TelemetryDruidBaseAggregator{} err = json.Unmarshal(data, &varTelemetryDruidBaseAggregator) diff --git a/model_telemetry_druid_base_data_source.go b/model_telemetry_druid_base_data_source.go index 4c2bc9b294..b34f91fa6d 100644 --- a/model_telemetry_druid_base_data_source.go +++ b/model_telemetry_druid_base_data_source.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -97,6 +97,10 @@ func (o *TelemetryDruidBaseDataSource) UnmarshalJSON(data []byte) (err error) { "type", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -106,11 +110,23 @@ func (o *TelemetryDruidBaseDataSource) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } varTelemetryDruidBaseDataSource := _TelemetryDruidBaseDataSource{} err = json.Unmarshal(data, &varTelemetryDruidBaseDataSource) diff --git a/model_telemetry_druid_base_dimension_spec.go b/model_telemetry_druid_base_dimension_spec.go index e19fbeb4ff..ff967576f7 100644 --- a/model_telemetry_druid_base_dimension_spec.go +++ b/model_telemetry_druid_base_dimension_spec.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -97,6 +97,10 @@ func (o *TelemetryDruidBaseDimensionSpec) UnmarshalJSON(data []byte) (err error) "type", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -106,11 +110,23 @@ func (o *TelemetryDruidBaseDimensionSpec) UnmarshalJSON(data []byte) (err error) } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } varTelemetryDruidBaseDimensionSpec := _TelemetryDruidBaseDimensionSpec{} err = json.Unmarshal(data, &varTelemetryDruidBaseDimensionSpec) diff --git a/model_telemetry_druid_base_extraction_function.go b/model_telemetry_druid_base_extraction_function.go index 2c9d170cf7..8c2fe26903 100644 --- a/model_telemetry_druid_base_extraction_function.go +++ b/model_telemetry_druid_base_extraction_function.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -97,6 +97,10 @@ func (o *TelemetryDruidBaseExtractionFunction) UnmarshalJSON(data []byte) (err e "type", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -106,11 +110,23 @@ func (o *TelemetryDruidBaseExtractionFunction) UnmarshalJSON(data []byte) (err e } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } varTelemetryDruidBaseExtractionFunction := _TelemetryDruidBaseExtractionFunction{} err = json.Unmarshal(data, &varTelemetryDruidBaseExtractionFunction) diff --git a/model_telemetry_druid_base_filter.go b/model_telemetry_druid_base_filter.go index b822f811e7..3d6d05a647 100644 --- a/model_telemetry_druid_base_filter.go +++ b/model_telemetry_druid_base_filter.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -97,6 +97,10 @@ func (o *TelemetryDruidBaseFilter) UnmarshalJSON(data []byte) (err error) { "type", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -106,11 +110,23 @@ func (o *TelemetryDruidBaseFilter) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } varTelemetryDruidBaseFilter := _TelemetryDruidBaseFilter{} err = json.Unmarshal(data, &varTelemetryDruidBaseFilter) diff --git a/model_telemetry_druid_base_granularity.go b/model_telemetry_druid_base_granularity.go index 1bc6d3ecb1..811b160cac 100644 --- a/model_telemetry_druid_base_granularity.go +++ b/model_telemetry_druid_base_granularity.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -97,6 +97,10 @@ func (o *TelemetryDruidBaseGranularity) UnmarshalJSON(data []byte) (err error) { "type", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -106,11 +110,23 @@ func (o *TelemetryDruidBaseGranularity) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } varTelemetryDruidBaseGranularity := _TelemetryDruidBaseGranularity{} err = json.Unmarshal(data, &varTelemetryDruidBaseGranularity) diff --git a/model_telemetry_druid_base_having_filter.go b/model_telemetry_druid_base_having_filter.go index 4856647884..c72f9642fc 100644 --- a/model_telemetry_druid_base_having_filter.go +++ b/model_telemetry_druid_base_having_filter.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -97,6 +97,10 @@ func (o *TelemetryDruidBaseHavingFilter) UnmarshalJSON(data []byte) (err error) "type", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -106,11 +110,23 @@ func (o *TelemetryDruidBaseHavingFilter) UnmarshalJSON(data []byte) (err error) } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } varTelemetryDruidBaseHavingFilter := _TelemetryDruidBaseHavingFilter{} err = json.Unmarshal(data, &varTelemetryDruidBaseHavingFilter) diff --git a/model_telemetry_druid_base_limit_spec.go b/model_telemetry_druid_base_limit_spec.go index 8e48a33c48..2458f24a11 100644 --- a/model_telemetry_druid_base_limit_spec.go +++ b/model_telemetry_druid_base_limit_spec.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -97,6 +97,10 @@ func (o *TelemetryDruidBaseLimitSpec) UnmarshalJSON(data []byte) (err error) { "type", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -106,11 +110,23 @@ func (o *TelemetryDruidBaseLimitSpec) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } varTelemetryDruidBaseLimitSpec := _TelemetryDruidBaseLimitSpec{} err = json.Unmarshal(data, &varTelemetryDruidBaseLimitSpec) diff --git a/model_telemetry_druid_base_post_aggregator.go b/model_telemetry_druid_base_post_aggregator.go index 5ba55d5a24..39def01ed4 100644 --- a/model_telemetry_druid_base_post_aggregator.go +++ b/model_telemetry_druid_base_post_aggregator.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -134,6 +134,10 @@ func (o *TelemetryDruidBasePostAggregator) UnmarshalJSON(data []byte) (err error "type", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -143,11 +147,23 @@ func (o *TelemetryDruidBasePostAggregator) UnmarshalJSON(data []byte) (err error } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } varTelemetryDruidBasePostAggregator := _TelemetryDruidBasePostAggregator{} err = json.Unmarshal(data, &varTelemetryDruidBasePostAggregator) diff --git a/model_telemetry_druid_base_query_spec.go b/model_telemetry_druid_base_query_spec.go index bc74128a92..57b4f4a66b 100644 --- a/model_telemetry_druid_base_query_spec.go +++ b/model_telemetry_druid_base_query_spec.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -97,6 +97,10 @@ func (o *TelemetryDruidBaseQuerySpec) UnmarshalJSON(data []byte) (err error) { "type", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -106,11 +110,23 @@ func (o *TelemetryDruidBaseQuerySpec) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } varTelemetryDruidBaseQuerySpec := _TelemetryDruidBaseQuerySpec{} err = json.Unmarshal(data, &varTelemetryDruidBaseQuerySpec) diff --git a/model_telemetry_druid_base_request.go b/model_telemetry_druid_base_request.go index c5c506fce9..56062a4099 100644 --- a/model_telemetry_druid_base_request.go +++ b/model_telemetry_druid_base_request.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -96,6 +96,10 @@ func (o *TelemetryDruidBaseRequest) UnmarshalJSON(data []byte) (err error) { "queryType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -105,11 +109,23 @@ func (o *TelemetryDruidBaseRequest) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } varTelemetryDruidBaseRequest := _TelemetryDruidBaseRequest{} err = json.Unmarshal(data, &varTelemetryDruidBaseRequest) diff --git a/model_telemetry_druid_base_search_spec.go b/model_telemetry_druid_base_search_spec.go index 95bb8b7926..9099711be6 100644 --- a/model_telemetry_druid_base_search_spec.go +++ b/model_telemetry_druid_base_search_spec.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -96,6 +96,10 @@ func (o *TelemetryDruidBaseSearchSpec) UnmarshalJSON(data []byte) (err error) { "type", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -105,11 +109,23 @@ func (o *TelemetryDruidBaseSearchSpec) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } varTelemetryDruidBaseSearchSpec := _TelemetryDruidBaseSearchSpec{} err = json.Unmarshal(data, &varTelemetryDruidBaseSearchSpec) diff --git a/model_telemetry_druid_base_top_n_metric_spec.go b/model_telemetry_druid_base_top_n_metric_spec.go index 4ff773dd0d..55429b28a0 100644 --- a/model_telemetry_druid_base_top_n_metric_spec.go +++ b/model_telemetry_druid_base_top_n_metric_spec.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -97,6 +97,10 @@ func (o *TelemetryDruidBaseTopNMetricSpec) UnmarshalJSON(data []byte) (err error "type", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -106,11 +110,23 @@ func (o *TelemetryDruidBaseTopNMetricSpec) UnmarshalJSON(data []byte) (err error } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } varTelemetryDruidBaseTopNMetricSpec := _TelemetryDruidBaseTopNMetricSpec{} err = json.Unmarshal(data, &varTelemetryDruidBaseTopNMetricSpec) diff --git a/model_telemetry_druid_bound_filter.go b/model_telemetry_druid_bound_filter.go index 4701ee1c69..bfe8b6e5a4 100644 --- a/model_telemetry_druid_bound_filter.go +++ b/model_telemetry_druid_bound_filter.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -346,6 +346,10 @@ func (o *TelemetryDruidBoundFilter) UnmarshalJSON(data []byte) (err error) { "dimension", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -355,11 +359,23 @@ func (o *TelemetryDruidBoundFilter) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } varTelemetryDruidBoundFilter := _TelemetryDruidBoundFilter{} err = json.Unmarshal(data, &varTelemetryDruidBoundFilter) diff --git a/model_telemetry_druid_column_comparison_filter.go b/model_telemetry_druid_column_comparison_filter.go index ca2bf5586b..4755cc083c 100644 --- a/model_telemetry_druid_column_comparison_filter.go +++ b/model_telemetry_druid_column_comparison_filter.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -126,6 +126,10 @@ func (o *TelemetryDruidColumnComparisonFilter) UnmarshalJSON(data []byte) (err e "dimensions", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -135,11 +139,23 @@ func (o *TelemetryDruidColumnComparisonFilter) UnmarshalJSON(data []byte) (err e } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } varTelemetryDruidColumnComparisonFilter := _TelemetryDruidColumnComparisonFilter{} err = json.Unmarshal(data, &varTelemetryDruidColumnComparisonFilter) diff --git a/model_telemetry_druid_constant_post_aggregator.go b/model_telemetry_druid_constant_post_aggregator.go index 5ced24aa4f..eb0ede8be8 100644 --- a/model_telemetry_druid_constant_post_aggregator.go +++ b/model_telemetry_druid_constant_post_aggregator.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -208,6 +208,10 @@ func (o *TelemetryDruidConstantPostAggregator) UnmarshalJSON(data []byte) (err e "type", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -217,11 +221,23 @@ func (o *TelemetryDruidConstantPostAggregator) UnmarshalJSON(data []byte) (err e } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } varTelemetryDruidConstantPostAggregator := _TelemetryDruidConstantPostAggregator{} err = json.Unmarshal(data, &varTelemetryDruidConstantPostAggregator) diff --git a/model_telemetry_druid_contains_search_spec.go b/model_telemetry_druid_contains_search_spec.go index 2a96bd62c3..dfc42f3985 100644 --- a/model_telemetry_druid_contains_search_spec.go +++ b/model_telemetry_druid_contains_search_spec.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -162,6 +162,10 @@ func (o *TelemetryDruidContainsSearchSpec) UnmarshalJSON(data []byte) (err error "value", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -171,11 +175,23 @@ func (o *TelemetryDruidContainsSearchSpec) UnmarshalJSON(data []byte) (err error } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } varTelemetryDruidContainsSearchSpec := _TelemetryDruidContainsSearchSpec{} err = json.Unmarshal(data, &varTelemetryDruidContainsSearchSpec) diff --git a/model_telemetry_druid_count_aggregator.go b/model_telemetry_druid_count_aggregator.go index d7dcc5946e..861fcedae0 100644 --- a/model_telemetry_druid_count_aggregator.go +++ b/model_telemetry_druid_count_aggregator.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -134,6 +134,10 @@ func (o *TelemetryDruidCountAggregator) UnmarshalJSON(data []byte) (err error) { "type", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -143,11 +147,23 @@ func (o *TelemetryDruidCountAggregator) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } varTelemetryDruidCountAggregator := _TelemetryDruidCountAggregator{} err = json.Unmarshal(data, &varTelemetryDruidCountAggregator) diff --git a/model_telemetry_druid_data_source.go b/model_telemetry_druid_data_source.go index 2b7c280d78..fcb4b7d24c 100644 --- a/model_telemetry_druid_data_source.go +++ b/model_telemetry_druid_data_source.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_telemetry_druid_data_source_metadata_request.go b/model_telemetry_druid_data_source_metadata_request.go index 312320ea4c..3204a88f41 100644 --- a/model_telemetry_druid_data_source_metadata_request.go +++ b/model_telemetry_druid_data_source_metadata_request.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -160,6 +160,10 @@ func (o *TelemetryDruidDataSourceMetadataRequest) UnmarshalJSON(data []byte) (er "dataSource", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -169,11 +173,23 @@ func (o *TelemetryDruidDataSourceMetadataRequest) UnmarshalJSON(data []byte) (er } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } varTelemetryDruidDataSourceMetadataRequest := _TelemetryDruidDataSourceMetadataRequest{} err = json.Unmarshal(data, &varTelemetryDruidDataSourceMetadataRequest) diff --git a/model_telemetry_druid_data_source_metadata_result.go b/model_telemetry_druid_data_source_metadata_result.go index 6cc99f7142..8a3be3751a 100644 --- a/model_telemetry_druid_data_source_metadata_result.go +++ b/model_telemetry_druid_data_source_metadata_result.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_telemetry_druid_default_dimension_spec.go b/model_telemetry_druid_default_dimension_spec.go index 6913720fa2..bd2d0bd1ec 100644 --- a/model_telemetry_druid_default_dimension_spec.go +++ b/model_telemetry_druid_default_dimension_spec.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -150,6 +150,11 @@ func (o *TelemetryDruidDefaultDimensionSpec) SetOutputType(v string) { o.OutputType = v } +// GetDefaultOutputType returns the default value "STRING" of the OutputType field. +func (o *TelemetryDruidDefaultDimensionSpec) GetDefaultOutputType() interface{} { + return "STRING" +} + func (o TelemetryDruidDefaultDimensionSpec) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -163,6 +168,9 @@ func (o TelemetryDruidDefaultDimensionSpec) ToMap() (map[string]interface{}, err toSerialize["type"] = o.Type toSerialize["dimension"] = o.Dimension toSerialize["outputName"] = o.OutputName + if _, exists := toSerialize["outputType"]; !exists { + toSerialize["outputType"] = o.GetDefaultOutputType() + } toSerialize["outputType"] = o.OutputType for key, value := range o.AdditionalProperties { @@ -183,6 +191,12 @@ func (o *TelemetryDruidDefaultDimensionSpec) UnmarshalJSON(data []byte) (err err "outputType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "outputType": o.GetDefaultOutputType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -192,11 +206,23 @@ func (o *TelemetryDruidDefaultDimensionSpec) UnmarshalJSON(data []byte) (err err } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } varTelemetryDruidDefaultDimensionSpec := _TelemetryDruidDefaultDimensionSpec{} err = json.Unmarshal(data, &varTelemetryDruidDefaultDimensionSpec) diff --git a/model_telemetry_druid_default_limit_spec.go b/model_telemetry_druid_default_limit_spec.go index bbd4ed5cec..6edecda6a0 100644 --- a/model_telemetry_druid_default_limit_spec.go +++ b/model_telemetry_druid_default_limit_spec.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -154,6 +154,10 @@ func (o *TelemetryDruidDefaultLimitSpec) UnmarshalJSON(data []byte) (err error) "columns", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -163,11 +167,23 @@ func (o *TelemetryDruidDefaultLimitSpec) UnmarshalJSON(data []byte) (err error) } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } varTelemetryDruidDefaultLimitSpec := _TelemetryDruidDefaultLimitSpec{} err = json.Unmarshal(data, &varTelemetryDruidDefaultLimitSpec) diff --git a/model_telemetry_druid_dimension_spec.go b/model_telemetry_druid_dimension_spec.go index e9435e0dfa..4dd5b7c811 100644 --- a/model_telemetry_druid_dimension_spec.go +++ b/model_telemetry_druid_dimension_spec.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_telemetry_druid_dimension_top_n_metric_spec.go b/model_telemetry_druid_dimension_top_n_metric_spec.go index 7b77c5aed0..522dc9adfc 100644 --- a/model_telemetry_druid_dimension_top_n_metric_spec.go +++ b/model_telemetry_druid_dimension_top_n_metric_spec.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -175,6 +175,10 @@ func (o *TelemetryDruidDimensionTopNMetricSpec) UnmarshalJSON(data []byte) (err "type", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -184,11 +188,23 @@ func (o *TelemetryDruidDimensionTopNMetricSpec) UnmarshalJSON(data []byte) (err } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } varTelemetryDruidDimensionTopNMetricSpec := _TelemetryDruidDimensionTopNMetricSpec{} err = json.Unmarshal(data, &varTelemetryDruidDimensionTopNMetricSpec) diff --git a/model_telemetry_druid_duration_granularity.go b/model_telemetry_druid_duration_granularity.go index 310ef59ae0..a25152581b 100644 --- a/model_telemetry_druid_duration_granularity.go +++ b/model_telemetry_druid_duration_granularity.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -164,6 +164,10 @@ func (o *TelemetryDruidDurationGranularity) UnmarshalJSON(data []byte) (err erro "duration", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -173,11 +177,23 @@ func (o *TelemetryDruidDurationGranularity) UnmarshalJSON(data []byte) (err erro } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } varTelemetryDruidDurationGranularity := _TelemetryDruidDurationGranularity{} err = json.Unmarshal(data, &varTelemetryDruidDurationGranularity) diff --git a/model_telemetry_druid_equality_filter.go b/model_telemetry_druid_equality_filter.go index a642c0076a..d05f007730 100644 --- a/model_telemetry_druid_equality_filter.go +++ b/model_telemetry_druid_equality_filter.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -187,6 +187,10 @@ func (o *TelemetryDruidEqualityFilter) UnmarshalJSON(data []byte) (err error) { "matchValue", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -196,11 +200,23 @@ func (o *TelemetryDruidEqualityFilter) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } varTelemetryDruidEqualityFilter := _TelemetryDruidEqualityFilter{} err = json.Unmarshal(data, &varTelemetryDruidEqualityFilter) diff --git a/model_telemetry_druid_error.go b/model_telemetry_druid_error.go index ea346b882e..6e40ba15bc 100644 --- a/model_telemetry_druid_error.go +++ b/model_telemetry_druid_error.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -133,7 +133,7 @@ func (o *TelemetryDruidError) GetErrorClassOk() (*interface{}, bool) { // HasErrorClass returns a boolean if a field has been set. func (o *TelemetryDruidError) HasErrorClass() bool { - if o != nil && IsNil(o.ErrorClass) { + if o != nil && !IsNil(o.ErrorClass) { return true } diff --git a/model_telemetry_druid_expression_filter.go b/model_telemetry_druid_expression_filter.go index a13767dd67..56d23e35d2 100644 --- a/model_telemetry_druid_expression_filter.go +++ b/model_telemetry_druid_expression_filter.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -125,6 +125,10 @@ func (o *TelemetryDruidExpressionFilter) UnmarshalJSON(data []byte) (err error) "expression", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -134,11 +138,23 @@ func (o *TelemetryDruidExpressionFilter) UnmarshalJSON(data []byte) (err error) } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } varTelemetryDruidExpressionFilter := _TelemetryDruidExpressionFilter{} err = json.Unmarshal(data, &varTelemetryDruidExpressionFilter) diff --git a/model_telemetry_druid_expression_post_aggregator.go b/model_telemetry_druid_expression_post_aggregator.go index acc0afb14e..44f02850e8 100644 --- a/model_telemetry_druid_expression_post_aggregator.go +++ b/model_telemetry_druid_expression_post_aggregator.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -245,6 +245,10 @@ func (o *TelemetryDruidExpressionPostAggregator) UnmarshalJSON(data []byte) (err "type", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -254,11 +258,23 @@ func (o *TelemetryDruidExpressionPostAggregator) UnmarshalJSON(data []byte) (err } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } varTelemetryDruidExpressionPostAggregator := _TelemetryDruidExpressionPostAggregator{} err = json.Unmarshal(data, &varTelemetryDruidExpressionPostAggregator) diff --git a/model_telemetry_druid_extraction_dimension_spec.go b/model_telemetry_druid_extraction_dimension_spec.go index fee02fbecf..8b44255963 100644 --- a/model_telemetry_druid_extraction_dimension_spec.go +++ b/model_telemetry_druid_extraction_dimension_spec.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -152,6 +152,11 @@ func (o *TelemetryDruidExtractionDimensionSpec) SetOutputType(v string) { o.OutputType = v } +// GetDefaultOutputType returns the default value "STRING" of the OutputType field. +func (o *TelemetryDruidExtractionDimensionSpec) GetDefaultOutputType() interface{} { + return "STRING" +} + // GetExtractionFn returns the ExtractionFn field value func (o *TelemetryDruidExtractionDimensionSpec) GetExtractionFn() TelemetryDruidExtractionFunction { if o == nil { @@ -189,6 +194,9 @@ func (o TelemetryDruidExtractionDimensionSpec) ToMap() (map[string]interface{}, toSerialize["type"] = o.Type toSerialize["dimension"] = o.Dimension toSerialize["outputName"] = o.OutputName + if _, exists := toSerialize["outputType"]; !exists { + toSerialize["outputType"] = o.GetDefaultOutputType() + } toSerialize["outputType"] = o.OutputType toSerialize["extractionFn"] = o.ExtractionFn @@ -211,6 +219,12 @@ func (o *TelemetryDruidExtractionDimensionSpec) UnmarshalJSON(data []byte) (err "extractionFn", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "outputType": o.GetDefaultOutputType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -220,11 +234,23 @@ func (o *TelemetryDruidExtractionDimensionSpec) UnmarshalJSON(data []byte) (err } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } varTelemetryDruidExtractionDimensionSpec := _TelemetryDruidExtractionDimensionSpec{} err = json.Unmarshal(data, &varTelemetryDruidExtractionDimensionSpec) diff --git a/model_telemetry_druid_extraction_function.go b/model_telemetry_druid_extraction_function.go index b250e37115..450984d1da 100644 --- a/model_telemetry_druid_extraction_function.go +++ b/model_telemetry_druid_extraction_function.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_telemetry_druid_extraction_function_bucket.go b/model_telemetry_druid_extraction_function_bucket.go index c22638f4df..28e3265fbc 100644 --- a/model_telemetry_druid_extraction_function_bucket.go +++ b/model_telemetry_druid_extraction_function_bucket.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -170,6 +170,10 @@ func (o *TelemetryDruidExtractionFunctionBucket) UnmarshalJSON(data []byte) (err "type", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -179,11 +183,23 @@ func (o *TelemetryDruidExtractionFunctionBucket) UnmarshalJSON(data []byte) (err } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } varTelemetryDruidExtractionFunctionBucket := _TelemetryDruidExtractionFunctionBucket{} err = json.Unmarshal(data, &varTelemetryDruidExtractionFunctionBucket) diff --git a/model_telemetry_druid_extraction_function_cascade.go b/model_telemetry_druid_extraction_function_cascade.go index ecb3b3f3bb..d6cdf6ded8 100644 --- a/model_telemetry_druid_extraction_function_cascade.go +++ b/model_telemetry_druid_extraction_function_cascade.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -132,6 +132,10 @@ func (o *TelemetryDruidExtractionFunctionCascade) UnmarshalJSON(data []byte) (er "type", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -141,11 +145,23 @@ func (o *TelemetryDruidExtractionFunctionCascade) UnmarshalJSON(data []byte) (er } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } varTelemetryDruidExtractionFunctionCascade := _TelemetryDruidExtractionFunctionCascade{} err = json.Unmarshal(data, &varTelemetryDruidExtractionFunctionCascade) diff --git a/model_telemetry_druid_extraction_function_inline_lookup.go b/model_telemetry_druid_extraction_function_inline_lookup.go index 68281ea539..49ae7177a4 100644 --- a/model_telemetry_druid_extraction_function_inline_lookup.go +++ b/model_telemetry_druid_extraction_function_inline_lookup.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -280,6 +280,10 @@ func (o *TelemetryDruidExtractionFunctionInlineLookup) UnmarshalJSON(data []byte "type", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -289,11 +293,23 @@ func (o *TelemetryDruidExtractionFunctionInlineLookup) UnmarshalJSON(data []byte } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } varTelemetryDruidExtractionFunctionInlineLookup := _TelemetryDruidExtractionFunctionInlineLookup{} err = json.Unmarshal(data, &varTelemetryDruidExtractionFunctionInlineLookup) diff --git a/model_telemetry_druid_extraction_function_inline_lookup_all_of_lookup.go b/model_telemetry_druid_extraction_function_inline_lookup_all_of_lookup.go index 746c44dad1..17e9423be1 100644 --- a/model_telemetry_druid_extraction_function_inline_lookup_all_of_lookup.go +++ b/model_telemetry_druid_extraction_function_inline_lookup_all_of_lookup.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_telemetry_druid_extraction_function_lower_case.go b/model_telemetry_druid_extraction_function_lower_case.go index 0429a3b2b5..1d23eb52c8 100644 --- a/model_telemetry_druid_extraction_function_lower_case.go +++ b/model_telemetry_druid_extraction_function_lower_case.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -132,6 +132,10 @@ func (o *TelemetryDruidExtractionFunctionLowerCase) UnmarshalJSON(data []byte) ( "type", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -141,11 +145,23 @@ func (o *TelemetryDruidExtractionFunctionLowerCase) UnmarshalJSON(data []byte) ( } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } varTelemetryDruidExtractionFunctionLowerCase := _TelemetryDruidExtractionFunctionLowerCase{} err = json.Unmarshal(data, &varTelemetryDruidExtractionFunctionLowerCase) diff --git a/model_telemetry_druid_extraction_function_partial.go b/model_telemetry_druid_extraction_function_partial.go index 07b902f822..5ffbffa672 100644 --- a/model_telemetry_druid_extraction_function_partial.go +++ b/model_telemetry_druid_extraction_function_partial.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -124,6 +124,10 @@ func (o *TelemetryDruidExtractionFunctionPartial) UnmarshalJSON(data []byte) (er "expr", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -133,11 +137,23 @@ func (o *TelemetryDruidExtractionFunctionPartial) UnmarshalJSON(data []byte) (er } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } varTelemetryDruidExtractionFunctionPartial := _TelemetryDruidExtractionFunctionPartial{} err = json.Unmarshal(data, &varTelemetryDruidExtractionFunctionPartial) diff --git a/model_telemetry_druid_extraction_function_regex.go b/model_telemetry_druid_extraction_function_regex.go index b11254ebe0..2677f09b44 100644 --- a/model_telemetry_druid_extraction_function_regex.go +++ b/model_telemetry_druid_extraction_function_regex.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -122,7 +122,7 @@ func (o *TelemetryDruidExtractionFunctionRegex) GetIndexOk() (*interface{}, bool // HasIndex returns a boolean if a field has been set. func (o *TelemetryDruidExtractionFunctionRegex) HasIndex() bool { - if o != nil && IsNil(o.Index) { + if o != nil && !IsNil(o.Index) { return true } @@ -236,6 +236,10 @@ func (o *TelemetryDruidExtractionFunctionRegex) UnmarshalJSON(data []byte) (err "expr", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -245,11 +249,23 @@ func (o *TelemetryDruidExtractionFunctionRegex) UnmarshalJSON(data []byte) (err } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } varTelemetryDruidExtractionFunctionRegex := _TelemetryDruidExtractionFunctionRegex{} err = json.Unmarshal(data, &varTelemetryDruidExtractionFunctionRegex) diff --git a/model_telemetry_druid_extraction_function_search_query.go b/model_telemetry_druid_extraction_function_search_query.go index a0141b1efd..e8d9a4724e 100644 --- a/model_telemetry_druid_extraction_function_search_query.go +++ b/model_telemetry_druid_extraction_function_search_query.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -124,6 +124,10 @@ func (o *TelemetryDruidExtractionFunctionSearchQuery) UnmarshalJSON(data []byte) "query", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -133,11 +137,23 @@ func (o *TelemetryDruidExtractionFunctionSearchQuery) UnmarshalJSON(data []byte) } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } varTelemetryDruidExtractionFunctionSearchQuery := _TelemetryDruidExtractionFunctionSearchQuery{} err = json.Unmarshal(data, &varTelemetryDruidExtractionFunctionSearchQuery) diff --git a/model_telemetry_druid_extraction_function_string_format.go b/model_telemetry_druid_extraction_function_string_format.go index 80ba6fda00..a4ed87918e 100644 --- a/model_telemetry_druid_extraction_function_string_format.go +++ b/model_telemetry_druid_extraction_function_string_format.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -161,6 +161,10 @@ func (o *TelemetryDruidExtractionFunctionStringFormat) UnmarshalJSON(data []byte "format", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -170,11 +174,23 @@ func (o *TelemetryDruidExtractionFunctionStringFormat) UnmarshalJSON(data []byte } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } varTelemetryDruidExtractionFunctionStringFormat := _TelemetryDruidExtractionFunctionStringFormat{} err = json.Unmarshal(data, &varTelemetryDruidExtractionFunctionStringFormat) diff --git a/model_telemetry_druid_extraction_function_strlen.go b/model_telemetry_druid_extraction_function_strlen.go index 4c69eb6a4e..8d454ab1b5 100644 --- a/model_telemetry_druid_extraction_function_strlen.go +++ b/model_telemetry_druid_extraction_function_strlen.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -96,6 +96,10 @@ func (o *TelemetryDruidExtractionFunctionStrlen) UnmarshalJSON(data []byte) (err "type", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -105,11 +109,23 @@ func (o *TelemetryDruidExtractionFunctionStrlen) UnmarshalJSON(data []byte) (err } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } varTelemetryDruidExtractionFunctionStrlen := _TelemetryDruidExtractionFunctionStrlen{} err = json.Unmarshal(data, &varTelemetryDruidExtractionFunctionStrlen) diff --git a/model_telemetry_druid_extraction_function_substring.go b/model_telemetry_druid_extraction_function_substring.go index 66f13d7b52..decf0f8ccb 100644 --- a/model_telemetry_druid_extraction_function_substring.go +++ b/model_telemetry_druid_extraction_function_substring.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -161,6 +161,10 @@ func (o *TelemetryDruidExtractionFunctionSubstring) UnmarshalJSON(data []byte) ( "index", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -170,11 +174,23 @@ func (o *TelemetryDruidExtractionFunctionSubstring) UnmarshalJSON(data []byte) ( } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } varTelemetryDruidExtractionFunctionSubstring := _TelemetryDruidExtractionFunctionSubstring{} err = json.Unmarshal(data, &varTelemetryDruidExtractionFunctionSubstring) diff --git a/model_telemetry_druid_extraction_function_time_format.go b/model_telemetry_druid_extraction_function_time_format.go index 75bbb31dd4..0ac45d66d1 100644 --- a/model_telemetry_druid_extraction_function_time_format.go +++ b/model_telemetry_druid_extraction_function_time_format.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -280,6 +280,10 @@ func (o *TelemetryDruidExtractionFunctionTimeFormat) UnmarshalJSON(data []byte) "type", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -289,11 +293,23 @@ func (o *TelemetryDruidExtractionFunctionTimeFormat) UnmarshalJSON(data []byte) } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } varTelemetryDruidExtractionFunctionTimeFormat := _TelemetryDruidExtractionFunctionTimeFormat{} err = json.Unmarshal(data, &varTelemetryDruidExtractionFunctionTimeFormat) diff --git a/model_telemetry_druid_extraction_function_time_parsing.go b/model_telemetry_druid_extraction_function_time_parsing.go index 2469d46f54..2b67ac9650 100644 --- a/model_telemetry_druid_extraction_function_time_parsing.go +++ b/model_telemetry_druid_extraction_function_time_parsing.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -204,6 +204,10 @@ func (o *TelemetryDruidExtractionFunctionTimeParsing) UnmarshalJSON(data []byte) "type", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -213,11 +217,23 @@ func (o *TelemetryDruidExtractionFunctionTimeParsing) UnmarshalJSON(data []byte) } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } varTelemetryDruidExtractionFunctionTimeParsing := _TelemetryDruidExtractionFunctionTimeParsing{} err = json.Unmarshal(data, &varTelemetryDruidExtractionFunctionTimeParsing) diff --git a/model_telemetry_druid_extraction_function_upper_case.go b/model_telemetry_druid_extraction_function_upper_case.go index aa74546d2c..43ed39257c 100644 --- a/model_telemetry_druid_extraction_function_upper_case.go +++ b/model_telemetry_druid_extraction_function_upper_case.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -132,6 +132,10 @@ func (o *TelemetryDruidExtractionFunctionUpperCase) UnmarshalJSON(data []byte) ( "type", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -141,11 +145,23 @@ func (o *TelemetryDruidExtractionFunctionUpperCase) UnmarshalJSON(data []byte) ( } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } varTelemetryDruidExtractionFunctionUpperCase := _TelemetryDruidExtractionFunctionUpperCase{} err = json.Unmarshal(data, &varTelemetryDruidExtractionFunctionUpperCase) diff --git a/model_telemetry_druid_false_filter.go b/model_telemetry_druid_false_filter.go index c6db714675..4970ce2904 100644 --- a/model_telemetry_druid_false_filter.go +++ b/model_telemetry_druid_false_filter.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -96,6 +96,10 @@ func (o *TelemetryDruidFalseFilter) UnmarshalJSON(data []byte) (err error) { "type", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -105,11 +109,23 @@ func (o *TelemetryDruidFalseFilter) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } varTelemetryDruidFalseFilter := _TelemetryDruidFalseFilter{} err = json.Unmarshal(data, &varTelemetryDruidFalseFilter) diff --git a/model_telemetry_druid_field_accessor_post_aggregator.go b/model_telemetry_druid_field_accessor_post_aggregator.go index adda8f5d11..8ca1c824db 100644 --- a/model_telemetry_druid_field_accessor_post_aggregator.go +++ b/model_telemetry_druid_field_accessor_post_aggregator.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -208,6 +208,10 @@ func (o *TelemetryDruidFieldAccessorPostAggregator) UnmarshalJSON(data []byte) ( "type", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -217,11 +221,23 @@ func (o *TelemetryDruidFieldAccessorPostAggregator) UnmarshalJSON(data []byte) ( } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } varTelemetryDruidFieldAccessorPostAggregator := _TelemetryDruidFieldAccessorPostAggregator{} err = json.Unmarshal(data, &varTelemetryDruidFieldAccessorPostAggregator) diff --git a/model_telemetry_druid_filter.go b/model_telemetry_druid_filter.go index 659951234c..974bb42f42 100644 --- a/model_telemetry_druid_filter.go +++ b/model_telemetry_druid_filter.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_telemetry_druid_filtered_aggregator.go b/model_telemetry_druid_filtered_aggregator.go index c5cb830aab..093b66a53b 100644 --- a/model_telemetry_druid_filtered_aggregator.go +++ b/model_telemetry_druid_filtered_aggregator.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -153,6 +153,10 @@ func (o *TelemetryDruidFilteredAggregator) UnmarshalJSON(data []byte) (err error "aggregator", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -162,11 +166,23 @@ func (o *TelemetryDruidFilteredAggregator) UnmarshalJSON(data []byte) (err error } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } varTelemetryDruidFilteredAggregator := _TelemetryDruidFilteredAggregator{} err = json.Unmarshal(data, &varTelemetryDruidFilteredAggregator) diff --git a/model_telemetry_druid_first_last_aggregator.go b/model_telemetry_druid_first_last_aggregator.go index a5558a9dae..482582fa32 100644 --- a/model_telemetry_druid_first_last_aggregator.go +++ b/model_telemetry_druid_first_last_aggregator.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -155,6 +155,10 @@ func (o *TelemetryDruidFirstLastAggregator) UnmarshalJSON(data []byte) (err erro "fieldName", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -164,11 +168,23 @@ func (o *TelemetryDruidFirstLastAggregator) UnmarshalJSON(data []byte) (err erro } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } varTelemetryDruidFirstLastAggregator := _TelemetryDruidFirstLastAggregator{} err = json.Unmarshal(data, &varTelemetryDruidFirstLastAggregator) diff --git a/model_telemetry_druid_fragment_search_spec.go b/model_telemetry_druid_fragment_search_spec.go index 1dd4cc486c..3d376970ae 100644 --- a/model_telemetry_druid_fragment_search_spec.go +++ b/model_telemetry_druid_fragment_search_spec.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -162,6 +162,10 @@ func (o *TelemetryDruidFragmentSearchSpec) UnmarshalJSON(data []byte) (err error "values", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -171,11 +175,23 @@ func (o *TelemetryDruidFragmentSearchSpec) UnmarshalJSON(data []byte) (err error } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } varTelemetryDruidFragmentSearchSpec := _TelemetryDruidFragmentSearchSpec{} err = json.Unmarshal(data, &varTelemetryDruidFragmentSearchSpec) diff --git a/model_telemetry_druid_granularity.go b/model_telemetry_druid_granularity.go index e224bfe7f6..250cee3564 100644 --- a/model_telemetry_druid_granularity.go +++ b/model_telemetry_druid_granularity.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_telemetry_druid_greatest_least_post_aggregator.go b/model_telemetry_druid_greatest_least_post_aggregator.go index 09b9a26966..1046f7a1bb 100644 --- a/model_telemetry_druid_greatest_least_post_aggregator.go +++ b/model_telemetry_druid_greatest_least_post_aggregator.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -171,6 +171,10 @@ func (o *TelemetryDruidGreatestLeastPostAggregator) UnmarshalJSON(data []byte) ( "type", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -180,11 +184,23 @@ func (o *TelemetryDruidGreatestLeastPostAggregator) UnmarshalJSON(data []byte) ( } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } varTelemetryDruidGreatestLeastPostAggregator := _TelemetryDruidGreatestLeastPostAggregator{} err = json.Unmarshal(data, &varTelemetryDruidGreatestLeastPostAggregator) diff --git a/model_telemetry_druid_group_by_request.go b/model_telemetry_druid_group_by_request.go index 0f8e095394..b23b140a3d 100644 --- a/model_telemetry_druid_group_by_request.go +++ b/model_telemetry_druid_group_by_request.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -465,6 +465,10 @@ func (o *TelemetryDruidGroupByRequest) UnmarshalJSON(data []byte) (err error) { "intervals", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -474,11 +478,23 @@ func (o *TelemetryDruidGroupByRequest) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } varTelemetryDruidGroupByRequest := _TelemetryDruidGroupByRequest{} err = json.Unmarshal(data, &varTelemetryDruidGroupByRequest) diff --git a/model_telemetry_druid_group_by_result.go b/model_telemetry_druid_group_by_result.go index ec031828ec..cccb5c31d0 100644 --- a/model_telemetry_druid_group_by_result.go +++ b/model_telemetry_druid_group_by_result.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_telemetry_druid_having_dimension_selector_filter.go b/model_telemetry_druid_having_dimension_selector_filter.go index 1e37de4915..c2a3c334a5 100644 --- a/model_telemetry_druid_having_dimension_selector_filter.go +++ b/model_telemetry_druid_having_dimension_selector_filter.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -154,6 +154,10 @@ func (o *TelemetryDruidHavingDimensionSelectorFilter) UnmarshalJSON(data []byte) "value", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -163,11 +167,23 @@ func (o *TelemetryDruidHavingDimensionSelectorFilter) UnmarshalJSON(data []byte) } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } varTelemetryDruidHavingDimensionSelectorFilter := _TelemetryDruidHavingDimensionSelectorFilter{} err = json.Unmarshal(data, &varTelemetryDruidHavingDimensionSelectorFilter) diff --git a/model_telemetry_druid_having_filter.go b/model_telemetry_druid_having_filter.go index 88b4401bda..894fee2ad6 100644 --- a/model_telemetry_druid_having_filter.go +++ b/model_telemetry_druid_having_filter.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_telemetry_druid_having_numeric_filter.go b/model_telemetry_druid_having_numeric_filter.go index f47cf7c006..e5ce53fb78 100644 --- a/model_telemetry_druid_having_numeric_filter.go +++ b/model_telemetry_druid_having_numeric_filter.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -154,6 +154,10 @@ func (o *TelemetryDruidHavingNumericFilter) UnmarshalJSON(data []byte) (err erro "value", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -163,11 +167,23 @@ func (o *TelemetryDruidHavingNumericFilter) UnmarshalJSON(data []byte) (err erro } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } varTelemetryDruidHavingNumericFilter := _TelemetryDruidHavingNumericFilter{} err = json.Unmarshal(data, &varTelemetryDruidHavingNumericFilter) diff --git a/model_telemetry_druid_having_query_filter.go b/model_telemetry_druid_having_query_filter.go index 7986547d4d..79cc78d53a 100644 --- a/model_telemetry_druid_having_query_filter.go +++ b/model_telemetry_druid_having_query_filter.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -125,6 +125,10 @@ func (o *TelemetryDruidHavingQueryFilter) UnmarshalJSON(data []byte) (err error) "filter", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -134,11 +138,23 @@ func (o *TelemetryDruidHavingQueryFilter) UnmarshalJSON(data []byte) (err error) } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } varTelemetryDruidHavingQueryFilter := _TelemetryDruidHavingQueryFilter{} err = json.Unmarshal(data, &varTelemetryDruidHavingQueryFilter) diff --git a/model_telemetry_druid_hyper_unique_post_aggregator.go b/model_telemetry_druid_hyper_unique_post_aggregator.go index 04f40bd53a..6454bb59b7 100644 --- a/model_telemetry_druid_hyper_unique_post_aggregator.go +++ b/model_telemetry_druid_hyper_unique_post_aggregator.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -208,6 +208,10 @@ func (o *TelemetryDruidHyperUniquePostAggregator) UnmarshalJSON(data []byte) (er "type", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -217,11 +221,23 @@ func (o *TelemetryDruidHyperUniquePostAggregator) UnmarshalJSON(data []byte) (er } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } varTelemetryDruidHyperUniquePostAggregator := _TelemetryDruidHyperUniquePostAggregator{} err = json.Unmarshal(data, &varTelemetryDruidHyperUniquePostAggregator) diff --git a/model_telemetry_druid_in_filter.go b/model_telemetry_druid_in_filter.go index 3cd052f00c..c0755f3c56 100644 --- a/model_telemetry_druid_in_filter.go +++ b/model_telemetry_druid_in_filter.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -190,6 +190,10 @@ func (o *TelemetryDruidInFilter) UnmarshalJSON(data []byte) (err error) { "values", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -199,11 +203,23 @@ func (o *TelemetryDruidInFilter) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } varTelemetryDruidInFilter := _TelemetryDruidInFilter{} err = json.Unmarshal(data, &varTelemetryDruidInFilter) diff --git a/model_telemetry_druid_inline_data_source.go b/model_telemetry_druid_inline_data_source.go index 1c904ff066..5f59122a2d 100644 --- a/model_telemetry_druid_inline_data_source.go +++ b/model_telemetry_druid_inline_data_source.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -155,6 +155,10 @@ func (o *TelemetryDruidInlineDataSource) UnmarshalJSON(data []byte) (err error) "rows", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -164,11 +168,23 @@ func (o *TelemetryDruidInlineDataSource) UnmarshalJSON(data []byte) (err error) } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } varTelemetryDruidInlineDataSource := _TelemetryDruidInlineDataSource{} err = json.Unmarshal(data, &varTelemetryDruidInlineDataSource) diff --git a/model_telemetry_druid_insensitive_contains_search_spec.go b/model_telemetry_druid_insensitive_contains_search_spec.go index c8af93cbdd..610203457b 100644 --- a/model_telemetry_druid_insensitive_contains_search_spec.go +++ b/model_telemetry_druid_insensitive_contains_search_spec.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -125,6 +125,10 @@ func (o *TelemetryDruidInsensitiveContainsSearchSpec) UnmarshalJSON(data []byte) "value", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -134,11 +138,23 @@ func (o *TelemetryDruidInsensitiveContainsSearchSpec) UnmarshalJSON(data []byte) } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } varTelemetryDruidInsensitiveContainsSearchSpec := _TelemetryDruidInsensitiveContainsSearchSpec{} err = json.Unmarshal(data, &varTelemetryDruidInsensitiveContainsSearchSpec) diff --git a/model_telemetry_druid_interval_filter.go b/model_telemetry_druid_interval_filter.go index db9eca058f..1c1998dc2a 100644 --- a/model_telemetry_druid_interval_filter.go +++ b/model_telemetry_druid_interval_filter.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -190,6 +190,10 @@ func (o *TelemetryDruidIntervalFilter) UnmarshalJSON(data []byte) (err error) { "intervals", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -199,11 +203,23 @@ func (o *TelemetryDruidIntervalFilter) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } varTelemetryDruidIntervalFilter := _TelemetryDruidIntervalFilter{} err = json.Unmarshal(data, &varTelemetryDruidIntervalFilter) diff --git a/model_telemetry_druid_interval_result.go b/model_telemetry_druid_interval_result.go index fdbb15b480..8f151985d3 100644 --- a/model_telemetry_druid_interval_result.go +++ b/model_telemetry_druid_interval_result.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_telemetry_druid_inverted_top_n_metric_spec.go b/model_telemetry_druid_inverted_top_n_metric_spec.go index ecddf568e1..6aa40b5dce 100644 --- a/model_telemetry_druid_inverted_top_n_metric_spec.go +++ b/model_telemetry_druid_inverted_top_n_metric_spec.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -125,6 +125,10 @@ func (o *TelemetryDruidInvertedTopNMetricSpec) UnmarshalJSON(data []byte) (err e "metric", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -134,11 +138,23 @@ func (o *TelemetryDruidInvertedTopNMetricSpec) UnmarshalJSON(data []byte) (err e } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } varTelemetryDruidInvertedTopNMetricSpec := _TelemetryDruidInvertedTopNMetricSpec{} err = json.Unmarshal(data, &varTelemetryDruidInvertedTopNMetricSpec) diff --git a/model_telemetry_druid_join_data_source.go b/model_telemetry_druid_join_data_source.go index 015c6637bd..bdb98472b7 100644 --- a/model_telemetry_druid_join_data_source.go +++ b/model_telemetry_druid_join_data_source.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -241,6 +241,10 @@ func (o *TelemetryDruidJoinDataSource) UnmarshalJSON(data []byte) (err error) { "joinType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -250,11 +254,23 @@ func (o *TelemetryDruidJoinDataSource) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } varTelemetryDruidJoinDataSource := _TelemetryDruidJoinDataSource{} err = json.Unmarshal(data, &varTelemetryDruidJoinDataSource) diff --git a/model_telemetry_druid_like_filter.go b/model_telemetry_druid_like_filter.go index bb25bbd3f7..0102e28d8a 100644 --- a/model_telemetry_druid_like_filter.go +++ b/model_telemetry_druid_like_filter.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -227,6 +227,10 @@ func (o *TelemetryDruidLikeFilter) UnmarshalJSON(data []byte) (err error) { "pattern", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -236,11 +240,23 @@ func (o *TelemetryDruidLikeFilter) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } varTelemetryDruidLikeFilter := _TelemetryDruidLikeFilter{} err = json.Unmarshal(data, &varTelemetryDruidLikeFilter) diff --git a/model_telemetry_druid_lookup_data_source.go b/model_telemetry_druid_lookup_data_source.go index 391313862e..3982196134 100644 --- a/model_telemetry_druid_lookup_data_source.go +++ b/model_telemetry_druid_lookup_data_source.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -126,6 +126,10 @@ func (o *TelemetryDruidLookupDataSource) UnmarshalJSON(data []byte) (err error) "lookup", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -135,11 +139,23 @@ func (o *TelemetryDruidLookupDataSource) UnmarshalJSON(data []byte) (err error) } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } varTelemetryDruidLookupDataSource := _TelemetryDruidLookupDataSource{} err = json.Unmarshal(data, &varTelemetryDruidLookupDataSource) diff --git a/model_telemetry_druid_min_max_aggregator.go b/model_telemetry_druid_min_max_aggregator.go index fe3fd038ec..3f31f5966f 100644 --- a/model_telemetry_druid_min_max_aggregator.go +++ b/model_telemetry_druid_min_max_aggregator.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -155,6 +155,10 @@ func (o *TelemetryDruidMinMaxAggregator) UnmarshalJSON(data []byte) (err error) "fieldName", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -164,11 +168,23 @@ func (o *TelemetryDruidMinMaxAggregator) UnmarshalJSON(data []byte) (err error) } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } varTelemetryDruidMinMaxAggregator := _TelemetryDruidMinMaxAggregator{} err = json.Unmarshal(data, &varTelemetryDruidMinMaxAggregator) diff --git a/model_telemetry_druid_not_filter.go b/model_telemetry_druid_not_filter.go index c32c4ba01e..126aa31c1f 100644 --- a/model_telemetry_druid_not_filter.go +++ b/model_telemetry_druid_not_filter.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -125,6 +125,10 @@ func (o *TelemetryDruidNotFilter) UnmarshalJSON(data []byte) (err error) { "field", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -134,11 +138,23 @@ func (o *TelemetryDruidNotFilter) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } varTelemetryDruidNotFilter := _TelemetryDruidNotFilter{} err = json.Unmarshal(data, &varTelemetryDruidNotFilter) diff --git a/model_telemetry_druid_null_filter.go b/model_telemetry_druid_null_filter.go index 7cf782f66d..414ff14e97 100644 --- a/model_telemetry_druid_null_filter.go +++ b/model_telemetry_druid_null_filter.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -125,6 +125,10 @@ func (o *TelemetryDruidNullFilter) UnmarshalJSON(data []byte) (err error) { "column", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -134,11 +138,23 @@ func (o *TelemetryDruidNullFilter) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } varTelemetryDruidNullFilter := _TelemetryDruidNullFilter{} err = json.Unmarshal(data, &varTelemetryDruidNullFilter) diff --git a/model_telemetry_druid_numeric_top_n_metric_spec.go b/model_telemetry_druid_numeric_top_n_metric_spec.go index 2a8c0dee2c..5255a733c9 100644 --- a/model_telemetry_druid_numeric_top_n_metric_spec.go +++ b/model_telemetry_druid_numeric_top_n_metric_spec.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -126,6 +126,10 @@ func (o *TelemetryDruidNumericTopNMetricSpec) UnmarshalJSON(data []byte) (err er "metric", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -135,11 +139,23 @@ func (o *TelemetryDruidNumericTopNMetricSpec) UnmarshalJSON(data []byte) (err er } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } varTelemetryDruidNumericTopNMetricSpec := _TelemetryDruidNumericTopNMetricSpec{} err = json.Unmarshal(data, &varTelemetryDruidNumericTopNMetricSpec) diff --git a/model_telemetry_druid_or_filter.go b/model_telemetry_druid_or_filter.go index edc223c321..7e07b6ce18 100644 --- a/model_telemetry_druid_or_filter.go +++ b/model_telemetry_druid_or_filter.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -125,6 +125,10 @@ func (o *TelemetryDruidOrFilter) UnmarshalJSON(data []byte) (err error) { "fields", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -134,11 +138,23 @@ func (o *TelemetryDruidOrFilter) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } varTelemetryDruidOrFilter := _TelemetryDruidOrFilter{} err = json.Unmarshal(data, &varTelemetryDruidOrFilter) diff --git a/model_telemetry_druid_order_by_column_spec.go b/model_telemetry_druid_order_by_column_spec.go index e17abeafe0..fefce679f9 100644 --- a/model_telemetry_druid_order_by_column_spec.go +++ b/model_telemetry_druid_order_by_column_spec.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_telemetry_druid_period_granularity.go b/model_telemetry_druid_period_granularity.go index 74a66a6ad1..58cda851c0 100644 --- a/model_telemetry_druid_period_granularity.go +++ b/model_telemetry_druid_period_granularity.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -163,6 +163,10 @@ func (o *TelemetryDruidPeriodGranularity) UnmarshalJSON(data []byte) (err error) "period", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -172,11 +176,23 @@ func (o *TelemetryDruidPeriodGranularity) UnmarshalJSON(data []byte) (err error) } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } varTelemetryDruidPeriodGranularity := _TelemetryDruidPeriodGranularity{} err = json.Unmarshal(data, &varTelemetryDruidPeriodGranularity) diff --git a/model_telemetry_druid_post_aggregator.go b/model_telemetry_druid_post_aggregator.go index ea974f2718..00eee3136b 100644 --- a/model_telemetry_druid_post_aggregator.go +++ b/model_telemetry_druid_post_aggregator.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_telemetry_druid_query_context.go b/model_telemetry_druid_query_context.go index ea3c9549a5..e58dfae772 100644 --- a/model_telemetry_druid_query_context.go +++ b/model_telemetry_druid_query_context.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_telemetry_druid_query_data_source.go b/model_telemetry_druid_query_data_source.go index f5831c90cb..55e0e59a56 100644 --- a/model_telemetry_druid_query_data_source.go +++ b/model_telemetry_druid_query_data_source.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -125,6 +125,10 @@ func (o *TelemetryDruidQueryDataSource) UnmarshalJSON(data []byte) (err error) { "query", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -134,11 +138,23 @@ func (o *TelemetryDruidQueryDataSource) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } varTelemetryDruidQueryDataSource := _TelemetryDruidQueryDataSource{} err = json.Unmarshal(data, &varTelemetryDruidQueryDataSource) diff --git a/model_telemetry_druid_query_spec.go b/model_telemetry_druid_query_spec.go index 8ce1af6249..3fd7736ec3 100644 --- a/model_telemetry_druid_query_spec.go +++ b/model_telemetry_druid_query_spec.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_telemetry_druid_query_spec_contains.go b/model_telemetry_druid_query_spec_contains.go index ce87b2c3f0..d3e9b0328e 100644 --- a/model_telemetry_druid_query_spec_contains.go +++ b/model_telemetry_druid_query_spec_contains.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -162,6 +162,10 @@ func (o *TelemetryDruidQuerySpecContains) UnmarshalJSON(data []byte) (err error) "value", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -171,11 +175,23 @@ func (o *TelemetryDruidQuerySpecContains) UnmarshalJSON(data []byte) (err error) } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } varTelemetryDruidQuerySpecContains := _TelemetryDruidQuerySpecContains{} err = json.Unmarshal(data, &varTelemetryDruidQuerySpecContains) diff --git a/model_telemetry_druid_query_spec_fragment.go b/model_telemetry_druid_query_spec_fragment.go index e18b6c1e2a..ede0fab586 100644 --- a/model_telemetry_druid_query_spec_fragment.go +++ b/model_telemetry_druid_query_spec_fragment.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -162,6 +162,10 @@ func (o *TelemetryDruidQuerySpecFragment) UnmarshalJSON(data []byte) (err error) "values", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -171,11 +175,23 @@ func (o *TelemetryDruidQuerySpecFragment) UnmarshalJSON(data []byte) (err error) } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } varTelemetryDruidQuerySpecFragment := _TelemetryDruidQuerySpecFragment{} err = json.Unmarshal(data, &varTelemetryDruidQuerySpecFragment) diff --git a/model_telemetry_druid_query_spec_insensitive_contains.go b/model_telemetry_druid_query_spec_insensitive_contains.go index 8089a84a5b..99d7ef54e9 100644 --- a/model_telemetry_druid_query_spec_insensitive_contains.go +++ b/model_telemetry_druid_query_spec_insensitive_contains.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -125,6 +125,10 @@ func (o *TelemetryDruidQuerySpecInsensitiveContains) UnmarshalJSON(data []byte) "value", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -134,11 +138,23 @@ func (o *TelemetryDruidQuerySpecInsensitiveContains) UnmarshalJSON(data []byte) } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } varTelemetryDruidQuerySpecInsensitiveContains := _TelemetryDruidQuerySpecInsensitiveContains{} err = json.Unmarshal(data, &varTelemetryDruidQuerySpecInsensitiveContains) diff --git a/model_telemetry_druid_range_filter.go b/model_telemetry_druid_range_filter.go index 243e578627..4a08cea839 100644 --- a/model_telemetry_druid_range_filter.go +++ b/model_telemetry_druid_range_filter.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -152,7 +152,7 @@ func (o *TelemetryDruidRangeFilter) GetLowerOk() (*interface{}, bool) { // HasLower returns a boolean if a field has been set. func (o *TelemetryDruidRangeFilter) HasLower() bool { - if o != nil && IsNil(o.Lower) { + if o != nil && !IsNil(o.Lower) { return true } @@ -185,7 +185,7 @@ func (o *TelemetryDruidRangeFilter) GetUpperOk() (*interface{}, bool) { // HasUpper returns a boolean if a field has been set. func (o *TelemetryDruidRangeFilter) HasUpper() bool { - if o != nil && IsNil(o.Upper) { + if o != nil && !IsNil(o.Upper) { return true } @@ -304,6 +304,10 @@ func (o *TelemetryDruidRangeFilter) UnmarshalJSON(data []byte) (err error) { "matchValueType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -313,11 +317,23 @@ func (o *TelemetryDruidRangeFilter) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } varTelemetryDruidRangeFilter := _TelemetryDruidRangeFilter{} err = json.Unmarshal(data, &varTelemetryDruidRangeFilter) diff --git a/model_telemetry_druid_regex_filter.go b/model_telemetry_druid_regex_filter.go index 73d706625d..0b3a0d656f 100644 --- a/model_telemetry_druid_regex_filter.go +++ b/model_telemetry_druid_regex_filter.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -190,6 +190,10 @@ func (o *TelemetryDruidRegexFilter) UnmarshalJSON(data []byte) (err error) { "pattern", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -199,11 +203,23 @@ func (o *TelemetryDruidRegexFilter) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } varTelemetryDruidRegexFilter := _TelemetryDruidRegexFilter{} err = json.Unmarshal(data, &varTelemetryDruidRegexFilter) diff --git a/model_telemetry_druid_regex_search_spec.go b/model_telemetry_druid_regex_search_spec.go index 28f1641a3d..9922c719d5 100644 --- a/model_telemetry_druid_regex_search_spec.go +++ b/model_telemetry_druid_regex_search_spec.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -125,6 +125,10 @@ func (o *TelemetryDruidRegexSearchSpec) UnmarshalJSON(data []byte) (err error) { "regex", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -134,11 +138,23 @@ func (o *TelemetryDruidRegexSearchSpec) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } varTelemetryDruidRegexSearchSpec := _TelemetryDruidRegexSearchSpec{} err = json.Unmarshal(data, &varTelemetryDruidRegexSearchSpec) diff --git a/model_telemetry_druid_scan_request.go b/model_telemetry_druid_scan_request.go index 9d95d49a9f..1e468298e2 100644 --- a/model_telemetry_druid_scan_request.go +++ b/model_telemetry_druid_scan_request.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -500,6 +500,10 @@ func (o *TelemetryDruidScanRequest) UnmarshalJSON(data []byte) (err error) { "intervals", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -509,11 +513,23 @@ func (o *TelemetryDruidScanRequest) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } varTelemetryDruidScanRequest := _TelemetryDruidScanRequest{} err = json.Unmarshal(data, &varTelemetryDruidScanRequest) diff --git a/model_telemetry_druid_scan_result.go b/model_telemetry_druid_scan_result.go index 5a03fd9150..3e2082b82b 100644 --- a/model_telemetry_druid_scan_result.go +++ b/model_telemetry_druid_scan_result.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_telemetry_druid_search_filter.go b/model_telemetry_druid_search_filter.go index 7a2cfe86ce..d562d6ccef 100644 --- a/model_telemetry_druid_search_filter.go +++ b/model_telemetry_druid_search_filter.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -189,6 +189,10 @@ func (o *TelemetryDruidSearchFilter) UnmarshalJSON(data []byte) (err error) { "query", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -198,11 +202,23 @@ func (o *TelemetryDruidSearchFilter) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } varTelemetryDruidSearchFilter := _TelemetryDruidSearchFilter{} err = json.Unmarshal(data, &varTelemetryDruidSearchFilter) diff --git a/model_telemetry_druid_search_request.go b/model_telemetry_druid_search_request.go index 5f97e3a5aa..09fa8c1865 100644 --- a/model_telemetry_druid_search_request.go +++ b/model_telemetry_druid_search_request.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -400,6 +400,10 @@ func (o *TelemetryDruidSearchRequest) UnmarshalJSON(data []byte) (err error) { "granularity", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -409,11 +413,23 @@ func (o *TelemetryDruidSearchRequest) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } varTelemetryDruidSearchRequest := _TelemetryDruidSearchRequest{} err = json.Unmarshal(data, &varTelemetryDruidSearchRequest) diff --git a/model_telemetry_druid_search_result.go b/model_telemetry_druid_search_result.go index b6fcaf7450..60f7509cc3 100644 --- a/model_telemetry_druid_search_result.go +++ b/model_telemetry_druid_search_result.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_telemetry_druid_segment_metadata_request.go b/model_telemetry_druid_segment_metadata_request.go index d6a817a73e..382af93780 100644 --- a/model_telemetry_druid_segment_metadata_request.go +++ b/model_telemetry_druid_segment_metadata_request.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -345,6 +345,10 @@ func (o *TelemetryDruidSegmentMetadataRequest) UnmarshalJSON(data []byte) (err e "dataSource", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -354,11 +358,23 @@ func (o *TelemetryDruidSegmentMetadataRequest) UnmarshalJSON(data []byte) (err e } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } varTelemetryDruidSegmentMetadataRequest := _TelemetryDruidSegmentMetadataRequest{} err = json.Unmarshal(data, &varTelemetryDruidSegmentMetadataRequest) diff --git a/model_telemetry_druid_segment_metadata_result.go b/model_telemetry_druid_segment_metadata_result.go index b5ba24339c..a3db17d486 100644 --- a/model_telemetry_druid_segment_metadata_result.go +++ b/model_telemetry_druid_segment_metadata_result.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_telemetry_druid_selector_filter.go b/model_telemetry_druid_selector_filter.go index c734490819..7958932be1 100644 --- a/model_telemetry_druid_selector_filter.go +++ b/model_telemetry_druid_selector_filter.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -190,6 +190,10 @@ func (o *TelemetryDruidSelectorFilter) UnmarshalJSON(data []byte) (err error) { "value", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -199,11 +203,23 @@ func (o *TelemetryDruidSelectorFilter) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } varTelemetryDruidSelectorFilter := _TelemetryDruidSelectorFilter{} err = json.Unmarshal(data, &varTelemetryDruidSelectorFilter) diff --git a/model_telemetry_druid_string_any_aggregator.go b/model_telemetry_druid_string_any_aggregator.go index 2522d1bc1e..e2251e48a2 100644 --- a/model_telemetry_druid_string_any_aggregator.go +++ b/model_telemetry_druid_string_any_aggregator.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -195,6 +195,10 @@ func (o *TelemetryDruidStringAnyAggregator) UnmarshalJSON(data []byte) (err erro "fieldName", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -204,11 +208,23 @@ func (o *TelemetryDruidStringAnyAggregator) UnmarshalJSON(data []byte) (err erro } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } varTelemetryDruidStringAnyAggregator := _TelemetryDruidStringAnyAggregator{} err = json.Unmarshal(data, &varTelemetryDruidStringAnyAggregator) diff --git a/model_telemetry_druid_string_first_last_aggregator.go b/model_telemetry_druid_string_first_last_aggregator.go index b60265cda3..e9526ac285 100644 --- a/model_telemetry_druid_string_first_last_aggregator.go +++ b/model_telemetry_druid_string_first_last_aggregator.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -195,6 +195,10 @@ func (o *TelemetryDruidStringFirstLastAggregator) UnmarshalJSON(data []byte) (er "fieldName", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -204,11 +208,23 @@ func (o *TelemetryDruidStringFirstLastAggregator) UnmarshalJSON(data []byte) (er } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } varTelemetryDruidStringFirstLastAggregator := _TelemetryDruidStringFirstLastAggregator{} err = json.Unmarshal(data, &varTelemetryDruidStringFirstLastAggregator) diff --git a/model_telemetry_druid_sum_aggregator.go b/model_telemetry_druid_sum_aggregator.go index c36784c009..75d2b34c9f 100644 --- a/model_telemetry_druid_sum_aggregator.go +++ b/model_telemetry_druid_sum_aggregator.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -155,6 +155,10 @@ func (o *TelemetryDruidSumAggregator) UnmarshalJSON(data []byte) (err error) { "fieldName", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -164,11 +168,23 @@ func (o *TelemetryDruidSumAggregator) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } varTelemetryDruidSumAggregator := _TelemetryDruidSumAggregator{} err = json.Unmarshal(data, &varTelemetryDruidSumAggregator) diff --git a/model_telemetry_druid_table_data_source.go b/model_telemetry_druid_table_data_source.go index c15753d9b6..d754d8356a 100644 --- a/model_telemetry_druid_table_data_source.go +++ b/model_telemetry_druid_table_data_source.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -126,6 +126,10 @@ func (o *TelemetryDruidTableDataSource) UnmarshalJSON(data []byte) (err error) { "name", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -135,11 +139,23 @@ func (o *TelemetryDruidTableDataSource) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } varTelemetryDruidTableDataSource := _TelemetryDruidTableDataSource{} err = json.Unmarshal(data, &varTelemetryDruidTableDataSource) diff --git a/model_telemetry_druid_theta_sketch_aggregator.go b/model_telemetry_druid_theta_sketch_aggregator.go index 919bccf9fd..409d2f9b82 100644 --- a/model_telemetry_druid_theta_sketch_aggregator.go +++ b/model_telemetry_druid_theta_sketch_aggregator.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -196,6 +196,10 @@ func (o *TelemetryDruidThetaSketchAggregator) UnmarshalJSON(data []byte) (err er "fieldName", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -205,11 +209,23 @@ func (o *TelemetryDruidThetaSketchAggregator) UnmarshalJSON(data []byte) (err er } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } varTelemetryDruidThetaSketchAggregator := _TelemetryDruidThetaSketchAggregator{} err = json.Unmarshal(data, &varTelemetryDruidThetaSketchAggregator) diff --git a/model_telemetry_druid_theta_sketch_estimate_post_aggregator.go b/model_telemetry_druid_theta_sketch_estimate_post_aggregator.go index c84ab3d50b..dcefa6d166 100644 --- a/model_telemetry_druid_theta_sketch_estimate_post_aggregator.go +++ b/model_telemetry_druid_theta_sketch_estimate_post_aggregator.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -208,6 +208,10 @@ func (o *TelemetryDruidThetaSketchEstimatePostAggregator) UnmarshalJSON(data []b "type", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -217,11 +221,23 @@ func (o *TelemetryDruidThetaSketchEstimatePostAggregator) UnmarshalJSON(data []b } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } varTelemetryDruidThetaSketchEstimatePostAggregator := _TelemetryDruidThetaSketchEstimatePostAggregator{} err = json.Unmarshal(data, &varTelemetryDruidThetaSketchEstimatePostAggregator) diff --git a/model_telemetry_druid_theta_sketch_operations_post_aggregator.go b/model_telemetry_druid_theta_sketch_operations_post_aggregator.go index 7bc16f2d28..9e61071578 100644 --- a/model_telemetry_druid_theta_sketch_operations_post_aggregator.go +++ b/model_telemetry_druid_theta_sketch_operations_post_aggregator.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -248,6 +248,10 @@ func (o *TelemetryDruidThetaSketchOperationsPostAggregator) UnmarshalJSON(data [ "type", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -257,11 +261,23 @@ func (o *TelemetryDruidThetaSketchOperationsPostAggregator) UnmarshalJSON(data [ } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } varTelemetryDruidThetaSketchOperationsPostAggregator := _TelemetryDruidThetaSketchOperationsPostAggregator{} err = json.Unmarshal(data, &varTelemetryDruidThetaSketchOperationsPostAggregator) diff --git a/model_telemetry_druid_time_boundary_request.go b/model_telemetry_druid_time_boundary_request.go index 98a434065f..ab141fe6c5 100644 --- a/model_telemetry_druid_time_boundary_request.go +++ b/model_telemetry_druid_time_boundary_request.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -233,6 +233,10 @@ func (o *TelemetryDruidTimeBoundaryRequest) UnmarshalJSON(data []byte) (err erro "dataSource", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -242,11 +246,23 @@ func (o *TelemetryDruidTimeBoundaryRequest) UnmarshalJSON(data []byte) (err erro } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } varTelemetryDruidTimeBoundaryRequest := _TelemetryDruidTimeBoundaryRequest{} err = json.Unmarshal(data, &varTelemetryDruidTimeBoundaryRequest) diff --git a/model_telemetry_druid_time_boundary_result.go b/model_telemetry_druid_time_boundary_result.go index dd494267ed..000bd28959 100644 --- a/model_telemetry_druid_time_boundary_result.go +++ b/model_telemetry_druid_time_boundary_result.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_telemetry_druid_time_series_request.go b/model_telemetry_druid_time_series_request.go index 5cd4919c5a..05a0246e31 100644 --- a/model_telemetry_druid_time_series_request.go +++ b/model_telemetry_druid_time_series_request.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -401,6 +401,10 @@ func (o *TelemetryDruidTimeSeriesRequest) UnmarshalJSON(data []byte) (err error) "granularity", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -410,11 +414,23 @@ func (o *TelemetryDruidTimeSeriesRequest) UnmarshalJSON(data []byte) (err error) } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } varTelemetryDruidTimeSeriesRequest := _TelemetryDruidTimeSeriesRequest{} err = json.Unmarshal(data, &varTelemetryDruidTimeSeriesRequest) diff --git a/model_telemetry_druid_top_n_metric_spec.go b/model_telemetry_druid_top_n_metric_spec.go index e62ebea65e..d6258be9f8 100644 --- a/model_telemetry_druid_top_n_metric_spec.go +++ b/model_telemetry_druid_top_n_metric_spec.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_telemetry_druid_top_n_request.go b/model_telemetry_druid_top_n_request.go index 8a5658a36a..65e253995f 100644 --- a/model_telemetry_druid_top_n_request.go +++ b/model_telemetry_druid_top_n_request.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -412,6 +412,10 @@ func (o *TelemetryDruidTopNRequest) UnmarshalJSON(data []byte) (err error) { "metric", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -421,11 +425,23 @@ func (o *TelemetryDruidTopNRequest) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } varTelemetryDruidTopNRequest := _TelemetryDruidTopNRequest{} err = json.Unmarshal(data, &varTelemetryDruidTopNRequest) diff --git a/model_telemetry_druid_top_n_result.go b/model_telemetry_druid_top_n_result.go index ef5ceb57c8..d5aa10dce9 100644 --- a/model_telemetry_druid_top_n_result.go +++ b/model_telemetry_druid_top_n_result.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_telemetry_druid_true_filter.go b/model_telemetry_druid_true_filter.go index 257c423426..1f238c13f2 100644 --- a/model_telemetry_druid_true_filter.go +++ b/model_telemetry_druid_true_filter.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -96,6 +96,10 @@ func (o *TelemetryDruidTrueFilter) UnmarshalJSON(data []byte) (err error) { "type", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -105,11 +109,23 @@ func (o *TelemetryDruidTrueFilter) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } varTelemetryDruidTrueFilter := _TelemetryDruidTrueFilter{} err = json.Unmarshal(data, &varTelemetryDruidTrueFilter) diff --git a/model_telemetry_druid_union_data_source.go b/model_telemetry_druid_union_data_source.go index d1a2997664..7b1387e05f 100644 --- a/model_telemetry_druid_union_data_source.go +++ b/model_telemetry_druid_union_data_source.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -126,6 +126,10 @@ func (o *TelemetryDruidUnionDataSource) UnmarshalJSON(data []byte) (err error) { "dataSources", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -135,11 +139,23 @@ func (o *TelemetryDruidUnionDataSource) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } varTelemetryDruidUnionDataSource := _TelemetryDruidUnionDataSource{} err = json.Unmarshal(data, &varTelemetryDruidUnionDataSource) diff --git a/model_template_transformation_stage.go b/model_template_transformation_stage.go index f7aeabdc4d..051abe9b73 100644 --- a/model_template_transformation_stage.go +++ b/model_template_transformation_stage.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -33,7 +33,7 @@ type TemplateTransformationStage struct { // A collection of arguments for the function being executed. FunctionArguments interface{} `json:"FunctionArguments,omitempty"` // The unique name by which the output of this transformation stage can be accessed in further stages. Only alphanumeric characters are allowed. - Name *string `json:"Name,omitempty"` + Name *string `json:"Name,omitempty" validate:"regexp=^$|^[a-zA-Z0-9]{1,64}$"` AdditionalProperties map[string]interface{} } @@ -86,6 +86,11 @@ func (o *TemplateTransformationStage) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "template.TransformationStage" of the ClassId field. +func (o *TemplateTransformationStage) GetDefaultClassId() interface{} { + return "template.TransformationStage" +} + // GetObjectType returns the ObjectType field value func (o *TemplateTransformationStage) GetObjectType() string { if o == nil { @@ -110,6 +115,11 @@ func (o *TemplateTransformationStage) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "template.TransformationStage" of the ObjectType field. +func (o *TemplateTransformationStage) GetDefaultObjectType() interface{} { + return "template.TransformationStage" +} + // GetFunction returns the Function field value if set, zero value otherwise. func (o *TemplateTransformationStage) GetFunction() string { if o == nil || IsNil(o.Function) { @@ -163,7 +173,7 @@ func (o *TemplateTransformationStage) GetFunctionArgumentsOk() (*interface{}, bo // HasFunctionArguments returns a boolean if a field has been set. func (o *TemplateTransformationStage) HasFunctionArguments() bool { - if o != nil && IsNil(o.FunctionArguments) { + if o != nil && !IsNil(o.FunctionArguments) { return true } @@ -225,7 +235,13 @@ func (o TemplateTransformationStage) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Function) { toSerialize["Function"] = o.Function @@ -253,6 +269,13 @@ func (o *TemplateTransformationStage) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -262,11 +285,23 @@ func (o *TemplateTransformationStage) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type TemplateTransformationStageWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` @@ -277,7 +312,7 @@ func (o *TemplateTransformationStage) UnmarshalJSON(data []byte) (err error) { // A collection of arguments for the function being executed. FunctionArguments interface{} `json:"FunctionArguments,omitempty"` // The unique name by which the output of this transformation stage can be accessed in further stages. Only alphanumeric characters are allowed. - Name *string `json:"Name,omitempty"` + Name *string `json:"Name,omitempty" validate:"regexp=^$|^[a-zA-Z0-9]{1,64}$"` } varTemplateTransformationStageWithoutEmbeddedStruct := TemplateTransformationStageWithoutEmbeddedStruct{} diff --git a/model_terminal_audit_log.go b/model_terminal_audit_log.go index 40c9fa447d..41f4313623 100644 --- a/model_terminal_audit_log.go +++ b/model_terminal_audit_log.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -87,6 +87,11 @@ func (o *TerminalAuditLog) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "terminal.AuditLog" of the ClassId field. +func (o *TerminalAuditLog) GetDefaultClassId() interface{} { + return "terminal.AuditLog" +} + // GetObjectType returns the ObjectType field value func (o *TerminalAuditLog) GetObjectType() string { if o == nil { @@ -111,6 +116,11 @@ func (o *TerminalAuditLog) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "terminal.AuditLog" of the ObjectType field. +func (o *TerminalAuditLog) GetDefaultObjectType() interface{} { + return "terminal.AuditLog" +} + // GetEndTime returns the EndTime field value if set, zero value otherwise. func (o *TerminalAuditLog) GetEndTime() time.Time { if o == nil || IsNil(o.EndTime) { @@ -279,7 +289,13 @@ func (o TerminalAuditLog) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.EndTime) { toSerialize["EndTime"] = o.EndTime @@ -310,6 +326,13 @@ func (o *TerminalAuditLog) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -319,11 +342,23 @@ func (o *TerminalAuditLog) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type TerminalAuditLogWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_terminal_audit_log_list.go b/model_terminal_audit_log_list.go index 1da9b7434a..8de0a6af2b 100644 --- a/model_terminal_audit_log_list.go +++ b/model_terminal_audit_log_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *TerminalAuditLogList) GetResultsOk() ([]TerminalAuditLog, bool) { // HasResults returns a boolean if a field has been set. func (o *TerminalAuditLogList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *TerminalAuditLogList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *TerminalAuditLogList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type TerminalAuditLogListWithoutEmbeddedStruct struct { // The total number of 'terminal.AuditLog' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_terminal_audit_log_response.go b/model_terminal_audit_log_response.go index 7c6f0404f7..b852354f45 100644 --- a/model_terminal_audit_log_response.go +++ b/model_terminal_audit_log_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_terraform_cloud_resource.go b/model_terraform_cloud_resource.go index d1c6831568..3f196dbaf1 100644 --- a/model_terraform_cloud_resource.go +++ b/model_terraform_cloud_resource.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -86,6 +86,11 @@ func (o *TerraformCloudResource) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "terraform.CloudResource" of the ClassId field. +func (o *TerraformCloudResource) GetDefaultClassId() interface{} { + return "terraform.CloudResource" +} + // GetObjectType returns the ObjectType field value func (o *TerraformCloudResource) GetObjectType() string { if o == nil { @@ -110,6 +115,11 @@ func (o *TerraformCloudResource) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "terraform.CloudResource" of the ObjectType field. +func (o *TerraformCloudResource) GetDefaultObjectType() interface{} { + return "terraform.CloudResource" +} + // GetCurrentStatus returns the CurrentStatus field value if set, zero value otherwise. func (o *TerraformCloudResource) GetCurrentStatus() string { if o == nil || IsNil(o.CurrentStatus) { @@ -224,7 +234,13 @@ func (o TerraformCloudResource) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.CurrentStatus) { toSerialize["CurrentStatus"] = o.CurrentStatus @@ -252,6 +268,13 @@ func (o *TerraformCloudResource) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -261,11 +284,23 @@ func (o *TerraformCloudResource) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type TerraformCloudResourceWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_terraform_executor.go b/model_terraform_executor.go index 643214e6d8..9be5add395 100644 --- a/model_terraform_executor.go +++ b/model_terraform_executor.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -113,6 +113,11 @@ func (o *TerraformExecutor) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "terraform.Executor" of the ClassId field. +func (o *TerraformExecutor) GetDefaultClassId() interface{} { + return "terraform.Executor" +} + // GetObjectType returns the ObjectType field value func (o *TerraformExecutor) GetObjectType() string { if o == nil { @@ -137,6 +142,11 @@ func (o *TerraformExecutor) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "terraform.Executor" of the ObjectType field. +func (o *TerraformExecutor) GetDefaultObjectType() interface{} { + return "terraform.Executor" +} + // GetCloudResource returns the CloudResource field value if set, zero value otherwise (both if not set or set to explicit null). func (o *TerraformExecutor) GetCloudResource() []TerraformCloudResource { if o == nil { @@ -158,7 +168,7 @@ func (o *TerraformExecutor) GetCloudResourceOk() ([]TerraformCloudResource, bool // HasCloudResource returns a boolean if a field has been set. func (o *TerraformExecutor) HasCloudResource() bool { - if o != nil && IsNil(o.CloudResource) { + if o != nil && !IsNil(o.CloudResource) { return true } @@ -255,7 +265,7 @@ func (o *TerraformExecutor) GetOutputOk() (*interface{}, bool) { // HasOutput returns a boolean if a field has been set. func (o *TerraformExecutor) HasOutput() bool { - if o != nil && IsNil(o.Output) { + if o != nil && !IsNil(o.Output) { return true } @@ -320,7 +330,7 @@ func (o *TerraformExecutor) GetRunStateOk() ([]TerraformRunstate, bool) { // HasRunState returns a boolean if a field has been set. func (o *TerraformExecutor) HasRunState() bool { - if o != nil && IsNil(o.RunState) { + if o != nil && !IsNil(o.RunState) { return true } @@ -481,7 +491,7 @@ func (o *TerraformExecutor) GetStderrOk() (*interface{}, bool) { // HasStderr returns a boolean if a field has been set. func (o *TerraformExecutor) HasStderr() bool { - if o != nil && IsNil(o.Stderr) { + if o != nil && !IsNil(o.Stderr) { return true } @@ -514,7 +524,7 @@ func (o *TerraformExecutor) GetStdoutOk() (*interface{}, bool) { // HasStdout returns a boolean if a field has been set. func (o *TerraformExecutor) HasStdout() bool { - if o != nil && IsNil(o.Stdout) { + if o != nil && !IsNil(o.Stdout) { return true } @@ -579,7 +589,7 @@ func (o *TerraformExecutor) GetVariablesOk() (*interface{}, bool) { // HasVariables returns a boolean if a field has been set. func (o *TerraformExecutor) HasVariables() bool { - if o != nil && IsNil(o.Variables) { + if o != nil && !IsNil(o.Variables) { return true } @@ -738,7 +748,13 @@ func (o TerraformExecutor) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.CloudResource != nil { toSerialize["CloudResource"] = o.CloudResource @@ -808,6 +824,13 @@ func (o *TerraformExecutor) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -817,11 +840,23 @@ func (o *TerraformExecutor) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type TerraformExecutorWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_terraform_executor_list.go b/model_terraform_executor_list.go index 896742286a..e9d554d6ee 100644 --- a/model_terraform_executor_list.go +++ b/model_terraform_executor_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *TerraformExecutorList) GetResultsOk() ([]TerraformExecutor, bool) { // HasResults returns a boolean if a field has been set. func (o *TerraformExecutorList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *TerraformExecutorList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *TerraformExecutorList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type TerraformExecutorListWithoutEmbeddedStruct struct { // The total number of 'terraform.Executor' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_terraform_executor_response.go b/model_terraform_executor_response.go index 0c4a4d8ac3..c6ffecd6b9 100644 --- a/model_terraform_executor_response.go +++ b/model_terraform_executor_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_terraform_runstate.go b/model_terraform_runstate.go index 6ca8b53e6a..7f5285ae6a 100644 --- a/model_terraform_runstate.go +++ b/model_terraform_runstate.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -84,6 +84,11 @@ func (o *TerraformRunstate) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "terraform.Runstate" of the ClassId field. +func (o *TerraformRunstate) GetDefaultClassId() interface{} { + return "terraform.Runstate" +} + // GetObjectType returns the ObjectType field value func (o *TerraformRunstate) GetObjectType() string { if o == nil { @@ -108,6 +113,11 @@ func (o *TerraformRunstate) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "terraform.Runstate" of the ObjectType field. +func (o *TerraformRunstate) GetDefaultObjectType() interface{} { + return "terraform.Runstate" +} + // GetRunId returns the RunId field value if set, zero value otherwise. func (o *TerraformRunstate) GetRunId() string { if o == nil || IsNil(o.RunId) { @@ -190,7 +200,13 @@ func (o TerraformRunstate) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.RunId) { toSerialize["RunId"] = o.RunId @@ -215,6 +231,13 @@ func (o *TerraformRunstate) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -224,11 +247,23 @@ func (o *TerraformRunstate) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type TerraformRunstateWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_thermal_policy.go b/model_thermal_policy.go index a3664e2e31..932c181d20 100644 --- a/model_thermal_policy.go +++ b/model_thermal_policy.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -89,6 +89,11 @@ func (o *ThermalPolicy) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "thermal.Policy" of the ClassId field. +func (o *ThermalPolicy) GetDefaultClassId() interface{} { + return "thermal.Policy" +} + // GetObjectType returns the ObjectType field value func (o *ThermalPolicy) GetObjectType() string { if o == nil { @@ -113,6 +118,11 @@ func (o *ThermalPolicy) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "thermal.Policy" of the ObjectType field. +func (o *ThermalPolicy) GetDefaultObjectType() interface{} { + return "thermal.Policy" +} + // GetFanControlMode returns the FanControlMode field value if set, zero value otherwise. func (o *ThermalPolicy) GetFanControlMode() string { if o == nil || IsNil(o.FanControlMode) { @@ -209,7 +219,7 @@ func (o *ThermalPolicy) GetProfilesOk() ([]PolicyAbstractConfigProfileRelationsh // HasProfiles returns a boolean if a field has been set. func (o *ThermalPolicy) HasProfiles() bool { - if o != nil && IsNil(o.Profiles) { + if o != nil && !IsNil(o.Profiles) { return true } @@ -239,7 +249,13 @@ func (o ThermalPolicy) ToMap() (map[string]interface{}, error) { if errPolicyAbstractPolicy != nil { return map[string]interface{}{}, errPolicyAbstractPolicy } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.FanControlMode) { toSerialize["FanControlMode"] = o.FanControlMode @@ -267,6 +283,13 @@ func (o *ThermalPolicy) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -276,11 +299,23 @@ func (o *ThermalPolicy) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type ThermalPolicyWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_thermal_policy_inventory.go b/model_thermal_policy_inventory.go index c727f846c2..34501bd0b1 100644 --- a/model_thermal_policy_inventory.go +++ b/model_thermal_policy_inventory.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -85,6 +85,11 @@ func (o *ThermalPolicyInventory) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "thermal.PolicyInventory" of the ClassId field. +func (o *ThermalPolicyInventory) GetDefaultClassId() interface{} { + return "thermal.PolicyInventory" +} + // GetObjectType returns the ObjectType field value func (o *ThermalPolicyInventory) GetObjectType() string { if o == nil { @@ -109,6 +114,11 @@ func (o *ThermalPolicyInventory) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "thermal.PolicyInventory" of the ObjectType field. +func (o *ThermalPolicyInventory) GetDefaultObjectType() interface{} { + return "thermal.PolicyInventory" +} + // GetAggressiveCooling returns the AggressiveCooling field value if set, zero value otherwise. func (o *ThermalPolicyInventory) GetAggressiveCooling() string { if o == nil || IsNil(o.AggressiveCooling) { @@ -234,7 +244,13 @@ func (o ThermalPolicyInventory) ToMap() (map[string]interface{}, error) { if errPolicyAbstractPolicyInventory != nil { return map[string]interface{}{}, errPolicyAbstractPolicyInventory } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.AggressiveCooling) { toSerialize["AggressiveCooling"] = o.AggressiveCooling @@ -262,6 +278,13 @@ func (o *ThermalPolicyInventory) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -271,11 +294,23 @@ func (o *ThermalPolicyInventory) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type ThermalPolicyInventoryWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_thermal_policy_inventory_list.go b/model_thermal_policy_inventory_list.go index 080db2c9f0..3aa13e0666 100644 --- a/model_thermal_policy_inventory_list.go +++ b/model_thermal_policy_inventory_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *ThermalPolicyInventoryList) GetResultsOk() ([]ThermalPolicyInventory, b // HasResults returns a boolean if a field has been set. func (o *ThermalPolicyInventoryList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *ThermalPolicyInventoryList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *ThermalPolicyInventoryList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type ThermalPolicyInventoryListWithoutEmbeddedStruct struct { // The total number of 'thermal.PolicyInventory' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_thermal_policy_inventory_response.go b/model_thermal_policy_inventory_response.go index 2874b0b5e9..360946133d 100644 --- a/model_thermal_policy_inventory_response.go +++ b/model_thermal_policy_inventory_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_thermal_policy_list.go b/model_thermal_policy_list.go index 78a134f713..c00cbeb2e3 100644 --- a/model_thermal_policy_list.go +++ b/model_thermal_policy_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *ThermalPolicyList) GetResultsOk() ([]ThermalPolicy, bool) { // HasResults returns a boolean if a field has been set. func (o *ThermalPolicyList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *ThermalPolicyList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *ThermalPolicyList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type ThermalPolicyListWithoutEmbeddedStruct struct { // The total number of 'thermal.Policy' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_thermal_policy_response.go b/model_thermal_policy_response.go index e922c0101c..acdb4de3c5 100644 --- a/model_thermal_policy_response.go +++ b/model_thermal_policy_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_top_system.go b/model_top_system.go index 53d9a6943a..1a905be3ec 100644 --- a/model_top_system.go +++ b/model_top_system.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -99,6 +99,11 @@ func (o *TopSystem) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "top.System" of the ClassId field. +func (o *TopSystem) GetDefaultClassId() interface{} { + return "top.System" +} + // GetObjectType returns the ObjectType field value func (o *TopSystem) GetObjectType() string { if o == nil { @@ -123,6 +128,11 @@ func (o *TopSystem) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "top.System" of the ObjectType field. +func (o *TopSystem) GetDefaultObjectType() interface{} { + return "top.System" +} + // GetIpv4Address returns the Ipv4Address field value if set, zero value otherwise. func (o *TopSystem) GetIpv4Address() string { if o == nil || IsNil(o.Ipv4Address) { @@ -304,7 +314,7 @@ func (o *TopSystem) GetComputeBladesOk() ([]ComputeBladeRelationship, bool) { // HasComputeBlades returns a boolean if a field has been set. func (o *TopSystem) HasComputeBlades() bool { - if o != nil && IsNil(o.ComputeBlades) { + if o != nil && !IsNil(o.ComputeBlades) { return true } @@ -337,7 +347,7 @@ func (o *TopSystem) GetComputeRackUnitsOk() ([]ComputeRackUnitRelationship, bool // HasComputeRackUnits returns a boolean if a field has been set. func (o *TopSystem) HasComputeRackUnits() bool { - if o != nil && IsNil(o.ComputeRackUnits) { + if o != nil && !IsNil(o.ComputeRackUnits) { return true } @@ -456,7 +466,7 @@ func (o *TopSystem) GetNetworkElementsOk() ([]NetworkElementRelationship, bool) // HasNetworkElements returns a boolean if a field has been set. func (o *TopSystem) HasNetworkElements() bool { - if o != nil && IsNil(o.NetworkElements) { + if o != nil && !IsNil(o.NetworkElements) { return true } @@ -529,7 +539,13 @@ func (o TopSystem) ToMap() (map[string]interface{}, error) { if errInventoryBase != nil { return map[string]interface{}{}, errInventoryBase } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Ipv4Address) { toSerialize["Ipv4Address"] = o.Ipv4Address @@ -581,6 +597,13 @@ func (o *TopSystem) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -590,11 +613,23 @@ func (o *TopSystem) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type TopSystemWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_top_system_list.go b/model_top_system_list.go index 53b3ff13d4..0e86d43f0f 100644 --- a/model_top_system_list.go +++ b/model_top_system_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *TopSystemList) GetResultsOk() ([]TopSystem, bool) { // HasResults returns a boolean if a field has been set. func (o *TopSystemList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *TopSystemList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *TopSystemList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type TopSystemListWithoutEmbeddedStruct struct { // The total number of 'top.System' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_top_system_relationship.go b/model_top_system_relationship.go index 4526743e94..0699fd72fb 100644 --- a/model_top_system_relationship.go +++ b/model_top_system_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_top_system_response.go b/model_top_system_response.go index 22f328c1a2..9ea8b3f82e 100644 --- a/model_top_system_response.go +++ b/model_top_system_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_tunneling_tunnel.go b/model_tunneling_tunnel.go index 7a3eff7a45..78a776b5fe 100644 --- a/model_tunneling_tunnel.go +++ b/model_tunneling_tunnel.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -176,6 +176,10 @@ func (o *TunnelingTunnel) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -185,11 +189,23 @@ func (o *TunnelingTunnel) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type TunnelingTunnelWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. The enum values provides the list of concrete types that can be instantiated from this abstract type. ClassId string `json:"ClassId"` diff --git a/model_ucsd_backup_info.go b/model_ucsd_backup_info.go index 71827410d5..0784f6264d 100644 --- a/model_ucsd_backup_info.go +++ b/model_ucsd_backup_info.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -112,6 +112,11 @@ func (o *UcsdBackupInfo) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "ucsd.BackupInfo" of the ClassId field. +func (o *UcsdBackupInfo) GetDefaultClassId() interface{} { + return "ucsd.BackupInfo" +} + // GetObjectType returns the ObjectType field value func (o *UcsdBackupInfo) GetObjectType() string { if o == nil { @@ -136,6 +141,11 @@ func (o *UcsdBackupInfo) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "ucsd.BackupInfo" of the ObjectType field. +func (o *UcsdBackupInfo) GetDefaultObjectType() interface{} { + return "ucsd.BackupInfo" +} + // GetBackupFileName returns the BackupFileName field value if set, zero value otherwise. func (o *UcsdBackupInfo) GetBackupFileName() string { if o == nil || IsNil(o.BackupFileName) { @@ -285,7 +295,7 @@ func (o *UcsdBackupInfo) GetConnectorsOk() ([]UcsdConnectorPack, bool) { // HasConnectors returns a boolean if a field has been set. func (o *UcsdBackupInfo) HasConnectors() bool { - if o != nil && IsNil(o.Connectors) { + if o != nil && !IsNil(o.Connectors) { return true } @@ -667,7 +677,13 @@ func (o UcsdBackupInfo) ToMap() (map[string]interface{}, error) { if errRecoveryAbstractBackupInfo != nil { return map[string]interface{}{}, errRecoveryAbstractBackupInfo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.BackupFileName) { toSerialize["BackupFileName"] = o.BackupFileName @@ -734,6 +750,13 @@ func (o *UcsdBackupInfo) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -743,11 +766,23 @@ func (o *UcsdBackupInfo) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type UcsdBackupInfoWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_ucsd_backup_info_list.go b/model_ucsd_backup_info_list.go index 0e3c7fd2a9..7b5933e5be 100644 --- a/model_ucsd_backup_info_list.go +++ b/model_ucsd_backup_info_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *UcsdBackupInfoList) GetResultsOk() ([]UcsdBackupInfo, bool) { // HasResults returns a boolean if a field has been set. func (o *UcsdBackupInfoList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *UcsdBackupInfoList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *UcsdBackupInfoList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type UcsdBackupInfoListWithoutEmbeddedStruct struct { // The total number of 'ucsd.BackupInfo' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_ucsd_backup_info_response.go b/model_ucsd_backup_info_response.go index e8300e0636..e71c41d997 100644 --- a/model_ucsd_backup_info_response.go +++ b/model_ucsd_backup_info_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_ucsd_connector_pack.go b/model_ucsd_connector_pack.go index a6bdf0e432..86c7b3654a 100644 --- a/model_ucsd_connector_pack.go +++ b/model_ucsd_connector_pack.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -92,6 +92,11 @@ func (o *UcsdConnectorPack) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "ucsd.ConnectorPack" of the ClassId field. +func (o *UcsdConnectorPack) GetDefaultClassId() interface{} { + return "ucsd.ConnectorPack" +} + // GetObjectType returns the ObjectType field value func (o *UcsdConnectorPack) GetObjectType() string { if o == nil { @@ -116,6 +121,11 @@ func (o *UcsdConnectorPack) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "ucsd.ConnectorPack" of the ObjectType field. +func (o *UcsdConnectorPack) GetDefaultObjectType() interface{} { + return "ucsd.ConnectorPack" +} + // GetConnectorFeature returns the ConnectorFeature field value if set, zero value otherwise. func (o *UcsdConnectorPack) GetConnectorFeature() string { if o == nil || IsNil(o.ConnectorFeature) { @@ -169,7 +179,7 @@ func (o *UcsdConnectorPack) GetDependencyNamesOk() ([]string, bool) { // HasDependencyNames returns a boolean if a field has been set. func (o *UcsdConnectorPack) HasDependencyNames() bool { - if o != nil && IsNil(o.DependencyNames) { + if o != nil && !IsNil(o.DependencyNames) { return true } @@ -266,7 +276,7 @@ func (o *UcsdConnectorPack) GetServicesOk() ([]string, bool) { // HasServices returns a boolean if a field has been set. func (o *UcsdConnectorPack) HasServices() bool { - if o != nil && IsNil(o.Services) { + if o != nil && !IsNil(o.Services) { return true } @@ -360,7 +370,13 @@ func (o UcsdConnectorPack) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.ConnectorFeature) { toSerialize["ConnectorFeature"] = o.ConnectorFeature @@ -400,6 +416,13 @@ func (o *UcsdConnectorPack) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -409,11 +432,23 @@ func (o *UcsdConnectorPack) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type UcsdConnectorPackWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_ucsd_ucsd_restore_parameters.go b/model_ucsd_ucsd_restore_parameters.go index e95980149b..bc98f271ec 100644 --- a/model_ucsd_ucsd_restore_parameters.go +++ b/model_ucsd_ucsd_restore_parameters.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -94,6 +94,11 @@ func (o *UcsdUcsdRestoreParameters) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "ucsd.UcsdRestoreParameters" of the ClassId field. +func (o *UcsdUcsdRestoreParameters) GetDefaultClassId() interface{} { + return "ucsd.UcsdRestoreParameters" +} + // GetObjectType returns the ObjectType field value func (o *UcsdUcsdRestoreParameters) GetObjectType() string { if o == nil { @@ -118,6 +123,11 @@ func (o *UcsdUcsdRestoreParameters) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "ucsd.UcsdRestoreParameters" of the ObjectType field. +func (o *UcsdUcsdRestoreParameters) GetDefaultObjectType() interface{} { + return "ucsd.UcsdRestoreParameters" +} + // GetIsPasswordSet returns the IsPasswordSet field value if set, zero value otherwise. func (o *UcsdUcsdRestoreParameters) GetIsPasswordSet() bool { if o == nil || IsNil(o.IsPasswordSet) { @@ -360,7 +370,13 @@ func (o UcsdUcsdRestoreParameters) ToMap() (map[string]interface{}, error) { if errRecoveryConfigParams != nil { return map[string]interface{}{}, errRecoveryConfigParams } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.IsPasswordSet) { toSerialize["IsPasswordSet"] = o.IsPasswordSet @@ -400,6 +416,13 @@ func (o *UcsdUcsdRestoreParameters) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -409,11 +432,23 @@ func (o *UcsdUcsdRestoreParameters) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type UcsdUcsdRestoreParametersWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_ucsdconnector_rest_client_message.go b/model_ucsdconnector_rest_client_message.go index f4a259bf7f..7bbdd79adf 100644 --- a/model_ucsdconnector_rest_client_message.go +++ b/model_ucsdconnector_rest_client_message.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -88,6 +88,11 @@ func (o *UcsdconnectorRestClientMessage) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "ucsdconnector.RestClientMessage" of the ClassId field. +func (o *UcsdconnectorRestClientMessage) GetDefaultClassId() interface{} { + return "ucsdconnector.RestClientMessage" +} + // GetObjectType returns the ObjectType field value func (o *UcsdconnectorRestClientMessage) GetObjectType() string { if o == nil { @@ -112,6 +117,11 @@ func (o *UcsdconnectorRestClientMessage) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "ucsdconnector.RestClientMessage" of the ObjectType field. +func (o *UcsdconnectorRestClientMessage) GetDefaultObjectType() interface{} { + return "ucsdconnector.RestClientMessage" +} + // GetBody returns the Body field value if set, zero value otherwise. func (o *UcsdconnectorRestClientMessage) GetBody() string { if o == nil || IsNil(o.Body) { @@ -165,7 +175,7 @@ func (o *UcsdconnectorRestClientMessage) GetHeaderOk() (*interface{}, bool) { // HasHeader returns a boolean if a field has been set. func (o *UcsdconnectorRestClientMessage) HasHeader() bool { - if o != nil && IsNil(o.Header) { + if o != nil && !IsNil(o.Header) { return true } @@ -259,7 +269,13 @@ func (o UcsdconnectorRestClientMessage) ToMap() (map[string]interface{}, error) if errConnectorAuthMessage != nil { return map[string]interface{}{}, errConnectorAuthMessage } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Body) { toSerialize["Body"] = o.Body @@ -290,6 +306,13 @@ func (o *UcsdconnectorRestClientMessage) UnmarshalJSON(data []byte) (err error) "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -299,11 +322,23 @@ func (o *UcsdconnectorRestClientMessage) UnmarshalJSON(data []byte) (err error) } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type UcsdconnectorRestClientMessageWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_uuidpool_block.go b/model_uuidpool_block.go index f2f607442f..d5fb53e203 100644 --- a/model_uuidpool_block.go +++ b/model_uuidpool_block.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -86,6 +86,11 @@ func (o *UuidpoolBlock) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "uuidpool.Block" of the ClassId field. +func (o *UuidpoolBlock) GetDefaultClassId() interface{} { + return "uuidpool.Block" +} + // GetObjectType returns the ObjectType field value func (o *UuidpoolBlock) GetObjectType() string { if o == nil { @@ -110,6 +115,11 @@ func (o *UuidpoolBlock) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "uuidpool.Block" of the ObjectType field. +func (o *UuidpoolBlock) GetDefaultObjectType() interface{} { + return "uuidpool.Block" +} + // GetPrefix returns the Prefix field value if set, zero value otherwise. func (o *UuidpoolBlock) GetPrefix() string { if o == nil || IsNil(o.Prefix) { @@ -238,7 +248,7 @@ func (o *UuidpoolBlock) GetReservationsOk() ([]UuidpoolReservationRelationship, // HasReservations returns a boolean if a field has been set. func (o *UuidpoolBlock) HasReservations() bool { - if o != nil && IsNil(o.Reservations) { + if o != nil && !IsNil(o.Reservations) { return true } @@ -268,7 +278,13 @@ func (o UuidpoolBlock) ToMap() (map[string]interface{}, error) { if errPoolAbstractBlock != nil { return map[string]interface{}{}, errPoolAbstractBlock } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Prefix) { toSerialize["Prefix"] = o.Prefix @@ -299,6 +315,13 @@ func (o *UuidpoolBlock) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -308,11 +331,23 @@ func (o *UuidpoolBlock) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type UuidpoolBlockWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_uuidpool_block_list.go b/model_uuidpool_block_list.go index 1145f3e1fb..c90f32a0f6 100644 --- a/model_uuidpool_block_list.go +++ b/model_uuidpool_block_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *UuidpoolBlockList) GetResultsOk() ([]UuidpoolBlock, bool) { // HasResults returns a boolean if a field has been set. func (o *UuidpoolBlockList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *UuidpoolBlockList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *UuidpoolBlockList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type UuidpoolBlockListWithoutEmbeddedStruct struct { // The total number of 'uuidpool.Block' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_uuidpool_block_relationship.go b/model_uuidpool_block_relationship.go index d88767e232..a811f3481d 100644 --- a/model_uuidpool_block_relationship.go +++ b/model_uuidpool_block_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_uuidpool_block_response.go b/model_uuidpool_block_response.go index 44a8c922cf..86f4949cec 100644 --- a/model_uuidpool_block_response.go +++ b/model_uuidpool_block_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_uuidpool_pool.go b/model_uuidpool_pool.go index f36bddc5f3..c618197795 100644 --- a/model_uuidpool_pool.go +++ b/model_uuidpool_pool.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -29,7 +29,7 @@ type UuidpoolPool struct { // The fully-qualified name of the instantiated, concrete type. The value should be the same as the 'ClassId' property. ObjectType string `json:"ObjectType"` // The UUID prefix must be in hexadecimal format xxxxxxxx-xxxx-xxxx. - Prefix *string `json:"Prefix,omitempty"` + Prefix *string `json:"Prefix,omitempty" validate:"regexp=^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}$"` UuidSuffixBlocks []UuidpoolUuidBlock `json:"UuidSuffixBlocks,omitempty"` // An array of relationships to uuidpoolBlock resources. BlockHeads []UuidpoolBlockRelationship `json:"BlockHeads,omitempty"` @@ -90,6 +90,11 @@ func (o *UuidpoolPool) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "uuidpool.Pool" of the ClassId field. +func (o *UuidpoolPool) GetDefaultClassId() interface{} { + return "uuidpool.Pool" +} + // GetObjectType returns the ObjectType field value func (o *UuidpoolPool) GetObjectType() string { if o == nil { @@ -114,6 +119,11 @@ func (o *UuidpoolPool) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "uuidpool.Pool" of the ObjectType field. +func (o *UuidpoolPool) GetDefaultObjectType() interface{} { + return "uuidpool.Pool" +} + // GetPrefix returns the Prefix field value if set, zero value otherwise. func (o *UuidpoolPool) GetPrefix() string { if o == nil || IsNil(o.Prefix) { @@ -167,7 +177,7 @@ func (o *UuidpoolPool) GetUuidSuffixBlocksOk() ([]UuidpoolUuidBlock, bool) { // HasUuidSuffixBlocks returns a boolean if a field has been set. func (o *UuidpoolPool) HasUuidSuffixBlocks() bool { - if o != nil && IsNil(o.UuidSuffixBlocks) { + if o != nil && !IsNil(o.UuidSuffixBlocks) { return true } @@ -200,7 +210,7 @@ func (o *UuidpoolPool) GetBlockHeadsOk() ([]UuidpoolBlockRelationship, bool) { // HasBlockHeads returns a boolean if a field has been set. func (o *UuidpoolPool) HasBlockHeads() bool { - if o != nil && IsNil(o.BlockHeads) { + if o != nil && !IsNil(o.BlockHeads) { return true } @@ -276,7 +286,7 @@ func (o *UuidpoolPool) GetReservationsOk() ([]UuidpoolReservationRelationship, b // HasReservations returns a boolean if a field has been set. func (o *UuidpoolPool) HasReservations() bool { - if o != nil && IsNil(o.Reservations) { + if o != nil && !IsNil(o.Reservations) { return true } @@ -306,7 +316,13 @@ func (o UuidpoolPool) ToMap() (map[string]interface{}, error) { if errPoolAbstractPool != nil { return map[string]interface{}{}, errPoolAbstractPool } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Prefix) { toSerialize["Prefix"] = o.Prefix @@ -340,6 +356,13 @@ func (o *UuidpoolPool) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -349,18 +372,30 @@ func (o *UuidpoolPool) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type UuidpoolPoolWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` // The fully-qualified name of the instantiated, concrete type. The value should be the same as the 'ClassId' property. ObjectType string `json:"ObjectType"` // The UUID prefix must be in hexadecimal format xxxxxxxx-xxxx-xxxx. - Prefix *string `json:"Prefix,omitempty"` + Prefix *string `json:"Prefix,omitempty" validate:"regexp=^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}$"` UuidSuffixBlocks []UuidpoolUuidBlock `json:"UuidSuffixBlocks,omitempty"` // An array of relationships to uuidpoolBlock resources. BlockHeads []UuidpoolBlockRelationship `json:"BlockHeads,omitempty"` diff --git a/model_uuidpool_pool_list.go b/model_uuidpool_pool_list.go index 8b8ba3cafe..d2f6388e9e 100644 --- a/model_uuidpool_pool_list.go +++ b/model_uuidpool_pool_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *UuidpoolPoolList) GetResultsOk() ([]UuidpoolPool, bool) { // HasResults returns a boolean if a field has been set. func (o *UuidpoolPoolList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *UuidpoolPoolList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *UuidpoolPoolList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type UuidpoolPoolListWithoutEmbeddedStruct struct { // The total number of 'uuidpool.Pool' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_uuidpool_pool_member.go b/model_uuidpool_pool_member.go index 059239d3b2..5b455eb138 100644 --- a/model_uuidpool_pool_member.go +++ b/model_uuidpool_pool_member.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -93,6 +93,11 @@ func (o *UuidpoolPoolMember) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "uuidpool.PoolMember" of the ClassId field. +func (o *UuidpoolPoolMember) GetDefaultClassId() interface{} { + return "uuidpool.PoolMember" +} + // GetObjectType returns the ObjectType field value func (o *UuidpoolPoolMember) GetObjectType() string { if o == nil { @@ -117,6 +122,11 @@ func (o *UuidpoolPoolMember) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "uuidpool.PoolMember" of the ObjectType field. +func (o *UuidpoolPoolMember) GetDefaultObjectType() interface{} { + return "uuidpool.PoolMember" +} + // GetUuid returns the Uuid field value if set, zero value otherwise. func (o *UuidpoolPoolMember) GetUuid() string { if o == nil || IsNil(o.Uuid) { @@ -382,7 +392,13 @@ func (o UuidpoolPoolMember) ToMap() (map[string]interface{}, error) { if errPoolAbstractIdPoolMember != nil { return map[string]interface{}{}, errPoolAbstractIdPoolMember } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Uuid) { toSerialize["Uuid"] = o.Uuid @@ -419,6 +435,13 @@ func (o *UuidpoolPoolMember) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -428,11 +451,23 @@ func (o *UuidpoolPoolMember) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type UuidpoolPoolMemberWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_uuidpool_pool_member_list.go b/model_uuidpool_pool_member_list.go index 1026a5e4db..bc7aed535c 100644 --- a/model_uuidpool_pool_member_list.go +++ b/model_uuidpool_pool_member_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *UuidpoolPoolMemberList) GetResultsOk() ([]UuidpoolPoolMember, bool) { // HasResults returns a boolean if a field has been set. func (o *UuidpoolPoolMemberList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *UuidpoolPoolMemberList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *UuidpoolPoolMemberList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type UuidpoolPoolMemberListWithoutEmbeddedStruct struct { // The total number of 'uuidpool.PoolMember' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_uuidpool_pool_member_relationship.go b/model_uuidpool_pool_member_relationship.go index fdfc7867b5..58aa9d338c 100644 --- a/model_uuidpool_pool_member_relationship.go +++ b/model_uuidpool_pool_member_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_uuidpool_pool_member_response.go b/model_uuidpool_pool_member_response.go index 4d3f67ea1b..02f8606f24 100644 --- a/model_uuidpool_pool_member_response.go +++ b/model_uuidpool_pool_member_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_uuidpool_pool_relationship.go b/model_uuidpool_pool_relationship.go index 9c2acbe3e4..516041123f 100644 --- a/model_uuidpool_pool_relationship.go +++ b/model_uuidpool_pool_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_uuidpool_pool_response.go b/model_uuidpool_pool_response.go index 26ee5c6d06..8c59c15d6c 100644 --- a/model_uuidpool_pool_response.go +++ b/model_uuidpool_pool_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_uuidpool_reservation.go b/model_uuidpool_reservation.go index 8726b8e1ea..b6f1f980b3 100644 --- a/model_uuidpool_reservation.go +++ b/model_uuidpool_reservation.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -29,7 +29,7 @@ type UuidpoolReservation struct { // The fully-qualified name of the instantiated, concrete type. The value should be the same as the 'ClassId' property. ObjectType string `json:"ObjectType"` // UUID identity to be reserved. - Identity *string `json:"Identity,omitempty"` + Identity *string `json:"Identity,omitempty" validate:"regexp=^$|^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$"` Block NullableUuidpoolBlockRelationship `json:"Block,omitempty"` Organization NullableOrganizationOrganizationRelationship `json:"Organization,omitempty"` Pool NullableUuidpoolPoolRelationship `json:"Pool,omitempty"` @@ -89,6 +89,11 @@ func (o *UuidpoolReservation) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "uuidpool.Reservation" of the ClassId field. +func (o *UuidpoolReservation) GetDefaultClassId() interface{} { + return "uuidpool.Reservation" +} + // GetObjectType returns the ObjectType field value func (o *UuidpoolReservation) GetObjectType() string { if o == nil { @@ -113,6 +118,11 @@ func (o *UuidpoolReservation) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "uuidpool.Reservation" of the ObjectType field. +func (o *UuidpoolReservation) GetDefaultObjectType() interface{} { + return "uuidpool.Reservation" +} + // GetIdentity returns the Identity field value if set, zero value otherwise. func (o *UuidpoolReservation) GetIdentity() string { if o == nil || IsNil(o.Identity) { @@ -378,7 +388,13 @@ func (o UuidpoolReservation) ToMap() (map[string]interface{}, error) { if errPoolReservation != nil { return map[string]interface{}{}, errPoolReservation } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Identity) { toSerialize["Identity"] = o.Identity @@ -415,6 +431,13 @@ func (o *UuidpoolReservation) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -424,18 +447,30 @@ func (o *UuidpoolReservation) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type UuidpoolReservationWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` // The fully-qualified name of the instantiated, concrete type. The value should be the same as the 'ClassId' property. ObjectType string `json:"ObjectType"` // UUID identity to be reserved. - Identity *string `json:"Identity,omitempty"` + Identity *string `json:"Identity,omitempty" validate:"regexp=^$|^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$"` Block NullableUuidpoolBlockRelationship `json:"Block,omitempty"` Organization NullableOrganizationOrganizationRelationship `json:"Organization,omitempty"` Pool NullableUuidpoolPoolRelationship `json:"Pool,omitempty"` diff --git a/model_uuidpool_reservation_list.go b/model_uuidpool_reservation_list.go index 9c266c04dd..8047de9f86 100644 --- a/model_uuidpool_reservation_list.go +++ b/model_uuidpool_reservation_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *UuidpoolReservationList) GetResultsOk() ([]UuidpoolReservation, bool) { // HasResults returns a boolean if a field has been set. func (o *UuidpoolReservationList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *UuidpoolReservationList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *UuidpoolReservationList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type UuidpoolReservationListWithoutEmbeddedStruct struct { // The total number of 'uuidpool.Reservation' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_uuidpool_reservation_reference.go b/model_uuidpool_reservation_reference.go index 8f527308a8..08e00712cc 100644 --- a/model_uuidpool_reservation_reference.go +++ b/model_uuidpool_reservation_reference.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -83,6 +83,10 @@ func (o *UuidpoolReservationReference) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -92,11 +96,23 @@ func (o *UuidpoolReservationReference) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type UuidpoolReservationReferenceWithoutEmbeddedStruct struct { } diff --git a/model_uuidpool_reservation_relationship.go b/model_uuidpool_reservation_relationship.go index 704de0e804..e4951ad121 100644 --- a/model_uuidpool_reservation_relationship.go +++ b/model_uuidpool_reservation_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_uuidpool_reservation_response.go b/model_uuidpool_reservation_response.go index 1c38caa438..e05b0cb8c7 100644 --- a/model_uuidpool_reservation_response.go +++ b/model_uuidpool_reservation_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_uuidpool_universe.go b/model_uuidpool_universe.go index cb277792c3..86d9cec5fa 100644 --- a/model_uuidpool_universe.go +++ b/model_uuidpool_universe.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -81,6 +81,11 @@ func (o *UuidpoolUniverse) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "uuidpool.Universe" of the ClassId field. +func (o *UuidpoolUniverse) GetDefaultClassId() interface{} { + return "uuidpool.Universe" +} + // GetObjectType returns the ObjectType field value func (o *UuidpoolUniverse) GetObjectType() string { if o == nil { @@ -105,6 +110,11 @@ func (o *UuidpoolUniverse) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "uuidpool.Universe" of the ObjectType field. +func (o *UuidpoolUniverse) GetDefaultObjectType() interface{} { + return "uuidpool.Universe" +} + // GetAccount returns the Account field value if set, zero value otherwise (both if not set or set to explicit null). func (o *UuidpoolUniverse) GetAccount() IamAccountRelationship { if o == nil || IsNil(o.Account.Get()) { @@ -166,7 +176,13 @@ func (o UuidpoolUniverse) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.Account.IsSet() { toSerialize["Account"] = o.Account.Get() @@ -188,6 +204,13 @@ func (o *UuidpoolUniverse) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -197,11 +220,23 @@ func (o *UuidpoolUniverse) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type UuidpoolUniverseWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_uuidpool_universe_list.go b/model_uuidpool_universe_list.go index 0add7ba6d2..bd4cae4466 100644 --- a/model_uuidpool_universe_list.go +++ b/model_uuidpool_universe_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *UuidpoolUniverseList) GetResultsOk() ([]UuidpoolUniverse, bool) { // HasResults returns a boolean if a field has been set. func (o *UuidpoolUniverseList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *UuidpoolUniverseList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *UuidpoolUniverseList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type UuidpoolUniverseListWithoutEmbeddedStruct struct { // The total number of 'uuidpool.Universe' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_uuidpool_universe_relationship.go b/model_uuidpool_universe_relationship.go index 62c73ccf16..960a5e169c 100644 --- a/model_uuidpool_universe_relationship.go +++ b/model_uuidpool_universe_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_uuidpool_universe_response.go b/model_uuidpool_universe_response.go index 5b11f405af..1487a4267c 100644 --- a/model_uuidpool_universe_response.go +++ b/model_uuidpool_universe_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_uuidpool_uuid_block.go b/model_uuidpool_uuid_block.go index 649ca556f1..4cecbe643e 100644 --- a/model_uuidpool_uuid_block.go +++ b/model_uuidpool_uuid_block.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -29,9 +29,9 @@ type UuidpoolUuidBlock struct { // The fully-qualified name of the instantiated, concrete type. The value should be the same as the 'ClassId' property. ObjectType string `json:"ObjectType"` // Starting UUID suffix of the block must be in hexadecimal format xxxx-xxxxxxxxxxxx. - From *string `json:"From,omitempty"` + From *string `json:"From,omitempty" validate:"regexp=^$|^[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$"` // Starting UUID suffix of the block must be in hexadecimal format xxxx-xxxxxxxxxxxx. - To *string `json:"To,omitempty"` + To *string `json:"To,omitempty" validate:"regexp=^$|^[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$"` AdditionalProperties map[string]interface{} } @@ -84,6 +84,11 @@ func (o *UuidpoolUuidBlock) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "uuidpool.UuidBlock" of the ClassId field. +func (o *UuidpoolUuidBlock) GetDefaultClassId() interface{} { + return "uuidpool.UuidBlock" +} + // GetObjectType returns the ObjectType field value func (o *UuidpoolUuidBlock) GetObjectType() string { if o == nil { @@ -108,6 +113,11 @@ func (o *UuidpoolUuidBlock) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "uuidpool.UuidBlock" of the ObjectType field. +func (o *UuidpoolUuidBlock) GetDefaultObjectType() interface{} { + return "uuidpool.UuidBlock" +} + // GetFrom returns the From field value if set, zero value otherwise. func (o *UuidpoolUuidBlock) GetFrom() string { if o == nil || IsNil(o.From) { @@ -190,7 +200,13 @@ func (o UuidpoolUuidBlock) ToMap() (map[string]interface{}, error) { if errPoolAbstractBlockType != nil { return map[string]interface{}{}, errPoolAbstractBlockType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.From) { toSerialize["From"] = o.From @@ -215,6 +231,13 @@ func (o *UuidpoolUuidBlock) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -224,20 +247,32 @@ func (o *UuidpoolUuidBlock) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type UuidpoolUuidBlockWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` // The fully-qualified name of the instantiated, concrete type. The value should be the same as the 'ClassId' property. ObjectType string `json:"ObjectType"` // Starting UUID suffix of the block must be in hexadecimal format xxxx-xxxxxxxxxxxx. - From *string `json:"From,omitempty"` + From *string `json:"From,omitempty" validate:"regexp=^$|^[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$"` // Starting UUID suffix of the block must be in hexadecimal format xxxx-xxxxxxxxxxxx. - To *string `json:"To,omitempty"` + To *string `json:"To,omitempty" validate:"regexp=^$|^[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$"` } varUuidpoolUuidBlockWithoutEmbeddedStruct := UuidpoolUuidBlockWithoutEmbeddedStruct{} diff --git a/model_uuidpool_uuid_lease.go b/model_uuidpool_uuid_lease.go index f3affba050..78167ece36 100644 --- a/model_uuidpool_uuid_lease.go +++ b/model_uuidpool_uuid_lease.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -30,7 +30,7 @@ type UuidpoolUuidLease struct { ObjectType string `json:"ObjectType"` Reservation *UuidpoolReservationReference `json:"Reservation,omitempty"` // UUID Prefix+Suffix numbers. - Uuid *string `json:"Uuid,omitempty"` + Uuid *string `json:"Uuid,omitempty" validate:"regexp=^$|^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$"` AssignedToEntity NullableMoBaseMoRelationship `json:"AssignedToEntity,omitempty"` Pool NullableUuidpoolPoolRelationship `json:"Pool,omitempty"` PoolMember NullableUuidpoolPoolMemberRelationship `json:"PoolMember,omitempty"` @@ -91,6 +91,11 @@ func (o *UuidpoolUuidLease) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "uuidpool.UuidLease" of the ClassId field. +func (o *UuidpoolUuidLease) GetDefaultClassId() interface{} { + return "uuidpool.UuidLease" +} + // GetObjectType returns the ObjectType field value func (o *UuidpoolUuidLease) GetObjectType() string { if o == nil { @@ -115,6 +120,11 @@ func (o *UuidpoolUuidLease) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "uuidpool.UuidLease" of the ObjectType field. +func (o *UuidpoolUuidLease) GetDefaultObjectType() interface{} { + return "uuidpool.UuidLease" +} + // GetReservation returns the Reservation field value if set, zero value otherwise. func (o *UuidpoolUuidLease) GetReservation() UuidpoolReservationReference { if o == nil || IsNil(o.Reservation) { @@ -369,7 +379,13 @@ func (o UuidpoolUuidLease) ToMap() (map[string]interface{}, error) { if errPoolAbstractLease != nil { return map[string]interface{}{}, errPoolAbstractLease } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Reservation) { toSerialize["Reservation"] = o.Reservation @@ -406,6 +422,13 @@ func (o *UuidpoolUuidLease) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -415,11 +438,23 @@ func (o *UuidpoolUuidLease) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type UuidpoolUuidLeaseWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` @@ -427,7 +462,7 @@ func (o *UuidpoolUuidLease) UnmarshalJSON(data []byte) (err error) { ObjectType string `json:"ObjectType"` Reservation *UuidpoolReservationReference `json:"Reservation,omitempty"` // UUID Prefix+Suffix numbers. - Uuid *string `json:"Uuid,omitempty"` + Uuid *string `json:"Uuid,omitempty" validate:"regexp=^$|^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$"` AssignedToEntity NullableMoBaseMoRelationship `json:"AssignedToEntity,omitempty"` Pool NullableUuidpoolPoolRelationship `json:"Pool,omitempty"` PoolMember NullableUuidpoolPoolMemberRelationship `json:"PoolMember,omitempty"` diff --git a/model_uuidpool_uuid_lease_list.go b/model_uuidpool_uuid_lease_list.go index cbf279b886..37001a1dee 100644 --- a/model_uuidpool_uuid_lease_list.go +++ b/model_uuidpool_uuid_lease_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *UuidpoolUuidLeaseList) GetResultsOk() ([]UuidpoolUuidLease, bool) { // HasResults returns a boolean if a field has been set. func (o *UuidpoolUuidLeaseList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *UuidpoolUuidLeaseList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *UuidpoolUuidLeaseList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type UuidpoolUuidLeaseListWithoutEmbeddedStruct struct { // The total number of 'uuidpool.UuidLease' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_uuidpool_uuid_lease_relationship.go b/model_uuidpool_uuid_lease_relationship.go index 962adf6be1..59625d8b7c 100644 --- a/model_uuidpool_uuid_lease_relationship.go +++ b/model_uuidpool_uuid_lease_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_uuidpool_uuid_lease_response.go b/model_uuidpool_uuid_lease_response.go index 1c9ab7b571..1dc0726c6e 100644 --- a/model_uuidpool_uuid_lease_response.go +++ b/model_uuidpool_uuid_lease_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_view_health_status.go b/model_view_health_status.go index 5b77c966a5..c8d51bfc50 100644 --- a/model_view_health_status.go +++ b/model_view_health_status.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -83,6 +83,10 @@ func (o *ViewHealthStatus) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -92,11 +96,23 @@ func (o *ViewHealthStatus) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type ViewHealthStatusWithoutEmbeddedStruct struct { } diff --git a/model_view_health_status_list.go b/model_view_health_status_list.go index 17cce8b9ba..9ed7ab2492 100644 --- a/model_view_health_status_list.go +++ b/model_view_health_status_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *ViewHealthStatusList) GetResultsOk() ([]ViewHealthStatus, bool) { // HasResults returns a boolean if a field has been set. func (o *ViewHealthStatusList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *ViewHealthStatusList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *ViewHealthStatusList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type ViewHealthStatusListWithoutEmbeddedStruct struct { // The total number of 'view.HealthStatus' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_view_health_status_response.go b/model_view_health_status_response.go index ae856861c3..1cbc21bcde 100644 --- a/model_view_health_status_response.go +++ b/model_view_health_status_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_view_server.go b/model_view_server.go index 3980710964..25a0a25498 100644 --- a/model_view_server.go +++ b/model_view_server.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -83,6 +83,10 @@ func (o *ViewServer) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -92,11 +96,23 @@ func (o *ViewServer) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type ViewServerWithoutEmbeddedStruct struct { } diff --git a/model_view_server_list.go b/model_view_server_list.go index 2675661981..6f94a65466 100644 --- a/model_view_server_list.go +++ b/model_view_server_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *ViewServerList) GetResultsOk() ([]ViewServer, bool) { // HasResults returns a boolean if a field has been set. func (o *ViewServerList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *ViewServerList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *ViewServerList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type ViewServerListWithoutEmbeddedStruct struct { // The total number of 'view.Server' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_view_server_response.go b/model_view_server_response.go index 79c6b71b76..0b5d71db6d 100644 --- a/model_view_server_response.go +++ b/model_view_server_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_virtualization_action_info.go b/model_virtualization_action_info.go index 74bf369a86..a74c8ba815 100644 --- a/model_virtualization_action_info.go +++ b/model_virtualization_action_info.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -86,6 +86,11 @@ func (o *VirtualizationActionInfo) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "virtualization.ActionInfo" of the ClassId field. +func (o *VirtualizationActionInfo) GetDefaultClassId() interface{} { + return "virtualization.ActionInfo" +} + // GetObjectType returns the ObjectType field value func (o *VirtualizationActionInfo) GetObjectType() string { if o == nil { @@ -110,6 +115,11 @@ func (o *VirtualizationActionInfo) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "virtualization.ActionInfo" of the ObjectType field. +func (o *VirtualizationActionInfo) GetDefaultObjectType() interface{} { + return "virtualization.ActionInfo" +} + // GetFailureReason returns the FailureReason field value if set, zero value otherwise. func (o *VirtualizationActionInfo) GetFailureReason() string { if o == nil || IsNil(o.FailureReason) { @@ -224,7 +234,13 @@ func (o VirtualizationActionInfo) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.FailureReason) { toSerialize["FailureReason"] = o.FailureReason @@ -252,6 +268,13 @@ func (o *VirtualizationActionInfo) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -261,11 +284,23 @@ func (o *VirtualizationActionInfo) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type VirtualizationActionInfoWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_virtualization_aws_vm_compute_configuration.go b/model_virtualization_aws_vm_compute_configuration.go index 848c7a8b25..dd20e664ef 100644 --- a/model_virtualization_aws_vm_compute_configuration.go +++ b/model_virtualization_aws_vm_compute_configuration.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -83,6 +83,13 @@ func (o *VirtualizationAwsVmComputeConfiguration) UnmarshalJSON(data []byte) (er "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -92,11 +99,23 @@ func (o *VirtualizationAwsVmComputeConfiguration) UnmarshalJSON(data []byte) (er } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type VirtualizationAwsVmComputeConfigurationWithoutEmbeddedStruct struct { } diff --git a/model_virtualization_aws_vm_configuration.go b/model_virtualization_aws_vm_configuration.go index 5559a350cb..d30817ce90 100644 --- a/model_virtualization_aws_vm_configuration.go +++ b/model_virtualization_aws_vm_configuration.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -83,6 +83,13 @@ func (o *VirtualizationAwsVmConfiguration) UnmarshalJSON(data []byte) (err error "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -92,11 +99,23 @@ func (o *VirtualizationAwsVmConfiguration) UnmarshalJSON(data []byte) (err error } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type VirtualizationAwsVmConfigurationWithoutEmbeddedStruct struct { } diff --git a/model_virtualization_aws_vm_network_configuration.go b/model_virtualization_aws_vm_network_configuration.go index 71a60fce68..7f701acb00 100644 --- a/model_virtualization_aws_vm_network_configuration.go +++ b/model_virtualization_aws_vm_network_configuration.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -83,6 +83,13 @@ func (o *VirtualizationAwsVmNetworkConfiguration) UnmarshalJSON(data []byte) (er "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -92,11 +99,23 @@ func (o *VirtualizationAwsVmNetworkConfiguration) UnmarshalJSON(data []byte) (er } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type VirtualizationAwsVmNetworkConfigurationWithoutEmbeddedStruct struct { } diff --git a/model_virtualization_aws_vm_storage_configuration.go b/model_virtualization_aws_vm_storage_configuration.go index aa5153a1ed..db35617f37 100644 --- a/model_virtualization_aws_vm_storage_configuration.go +++ b/model_virtualization_aws_vm_storage_configuration.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -83,6 +83,13 @@ func (o *VirtualizationAwsVmStorageConfiguration) UnmarshalJSON(data []byte) (er "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -92,11 +99,23 @@ func (o *VirtualizationAwsVmStorageConfiguration) UnmarshalJSON(data []byte) (er } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type VirtualizationAwsVmStorageConfigurationWithoutEmbeddedStruct struct { } diff --git a/model_virtualization_base_cluster.go b/model_virtualization_base_cluster.go index 4305cd22ff..737fb0caed 100644 --- a/model_virtualization_base_cluster.go +++ b/model_virtualization_base_cluster.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -95,6 +95,11 @@ func (o *VirtualizationBaseCluster) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "virtualization.VmwareCluster" of the ClassId field. +func (o *VirtualizationBaseCluster) GetDefaultClassId() interface{} { + return "virtualization.VmwareCluster" +} + // GetObjectType returns the ObjectType field value func (o *VirtualizationBaseCluster) GetObjectType() string { if o == nil { @@ -119,6 +124,11 @@ func (o *VirtualizationBaseCluster) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "virtualization.VmwareCluster" of the ObjectType field. +func (o *VirtualizationBaseCluster) GetDefaultObjectType() interface{} { + return "virtualization.VmwareCluster" +} + // GetAlarmSummary returns the AlarmSummary field value if set, zero value otherwise (both if not set or set to explicit null). func (o *VirtualizationBaseCluster) GetAlarmSummary() CondAlarmSummary { if o == nil || IsNil(o.AlarmSummary.Get()) { @@ -394,7 +404,13 @@ func (o VirtualizationBaseCluster) ToMap() (map[string]interface{}, error) { if errComputeBaseCluster != nil { return map[string]interface{}{}, errComputeBaseCluster } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.AlarmSummary.IsSet() { toSerialize["AlarmSummary"] = o.AlarmSummary.Get() @@ -434,6 +450,13 @@ func (o *VirtualizationBaseCluster) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -443,11 +466,23 @@ func (o *VirtualizationBaseCluster) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type VirtualizationBaseClusterWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. The enum values provides the list of concrete types that can be instantiated from this abstract type. ClassId string `json:"ClassId"` diff --git a/model_virtualization_base_cluster_relationship.go b/model_virtualization_base_cluster_relationship.go index b36a2c3d5b..c586908d6d 100644 --- a/model_virtualization_base_cluster_relationship.go +++ b/model_virtualization_base_cluster_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_virtualization_base_custom_spec.go b/model_virtualization_base_custom_spec.go index dfe272bd11..2c8e857f5a 100644 --- a/model_virtualization_base_custom_spec.go +++ b/model_virtualization_base_custom_spec.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -83,6 +83,10 @@ func (o *VirtualizationBaseCustomSpec) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -92,11 +96,23 @@ func (o *VirtualizationBaseCustomSpec) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type VirtualizationBaseCustomSpecWithoutEmbeddedStruct struct { } diff --git a/model_virtualization_base_datacenter.go b/model_virtualization_base_datacenter.go index e024eece2c..7faec76a1b 100644 --- a/model_virtualization_base_datacenter.go +++ b/model_virtualization_base_datacenter.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -82,6 +82,11 @@ func (o *VirtualizationBaseDatacenter) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "virtualization.VmwareDatacenter" of the ClassId field. +func (o *VirtualizationBaseDatacenter) GetDefaultClassId() interface{} { + return "virtualization.VmwareDatacenter" +} + // GetObjectType returns the ObjectType field value func (o *VirtualizationBaseDatacenter) GetObjectType() string { if o == nil { @@ -106,6 +111,11 @@ func (o *VirtualizationBaseDatacenter) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "virtualization.VmwareDatacenter" of the ObjectType field. +func (o *VirtualizationBaseDatacenter) GetDefaultObjectType() interface{} { + return "virtualization.VmwareDatacenter" +} + // GetIdentity returns the Identity field value if set, zero value otherwise. func (o *VirtualizationBaseDatacenter) GetIdentity() string { if o == nil || IsNil(o.Identity) { @@ -156,7 +166,13 @@ func (o VirtualizationBaseDatacenter) ToMap() (map[string]interface{}, error) { if errVirtualizationBasePlacement != nil { return map[string]interface{}{}, errVirtualizationBasePlacement } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Identity) { toSerialize["Identity"] = o.Identity @@ -178,6 +194,13 @@ func (o *VirtualizationBaseDatacenter) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -187,11 +210,23 @@ func (o *VirtualizationBaseDatacenter) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type VirtualizationBaseDatacenterWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. The enum values provides the list of concrete types that can be instantiated from this abstract type. ClassId string `json:"ClassId"` diff --git a/model_virtualization_base_datastore.go b/model_virtualization_base_datastore.go index 8c28be89f6..a44c610199 100644 --- a/model_virtualization_base_datastore.go +++ b/model_virtualization_base_datastore.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -95,6 +95,11 @@ func (o *VirtualizationBaseDatastore) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "virtualization.VmwareDatastore" of the ClassId field. +func (o *VirtualizationBaseDatastore) GetDefaultClassId() interface{} { + return "virtualization.VmwareDatastore" +} + // GetObjectType returns the ObjectType field value func (o *VirtualizationBaseDatastore) GetObjectType() string { if o == nil { @@ -119,6 +124,11 @@ func (o *VirtualizationBaseDatastore) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "virtualization.VmwareDatastore" of the ObjectType field. +func (o *VirtualizationBaseDatastore) GetDefaultObjectType() interface{} { + return "virtualization.VmwareDatastore" +} + // GetCapacity returns the Capacity field value if set, zero value otherwise (both if not set or set to explicit null). func (o *VirtualizationBaseDatastore) GetCapacity() VirtualizationStorageCapacity { if o == nil || IsNil(o.Capacity.Get()) { @@ -340,7 +350,13 @@ func (o VirtualizationBaseDatastore) ToMap() (map[string]interface{}, error) { if errVirtualizationBaseSourceDevice != nil { return map[string]interface{}{}, errVirtualizationBaseSourceDevice } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.Capacity.IsSet() { toSerialize["Capacity"] = o.Capacity.Get() @@ -377,6 +393,13 @@ func (o *VirtualizationBaseDatastore) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -386,11 +409,23 @@ func (o *VirtualizationBaseDatastore) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type VirtualizationBaseDatastoreWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. The enum values provides the list of concrete types that can be instantiated from this abstract type. ClassId string `json:"ClassId"` diff --git a/model_virtualization_base_datastore_cluster.go b/model_virtualization_base_datastore_cluster.go index 1dabd0d0d7..7cb1d342d2 100644 --- a/model_virtualization_base_datastore_cluster.go +++ b/model_virtualization_base_datastore_cluster.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -97,6 +97,11 @@ func (o *VirtualizationBaseDatastoreCluster) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "virtualization.VmwareDatastoreCluster" of the ClassId field. +func (o *VirtualizationBaseDatastoreCluster) GetDefaultClassId() interface{} { + return "virtualization.VmwareDatastoreCluster" +} + // GetObjectType returns the ObjectType field value func (o *VirtualizationBaseDatastoreCluster) GetObjectType() string { if o == nil { @@ -121,6 +126,11 @@ func (o *VirtualizationBaseDatastoreCluster) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "virtualization.VmwareDatastoreCluster" of the ObjectType field. +func (o *VirtualizationBaseDatastoreCluster) GetDefaultObjectType() interface{} { + return "virtualization.VmwareDatastoreCluster" +} + // GetCapacity returns the Capacity field value if set, zero value otherwise (both if not set or set to explicit null). func (o *VirtualizationBaseDatastoreCluster) GetCapacity() VirtualizationStorageCapacity { if o == nil || IsNil(o.Capacity.Get()) { @@ -374,7 +384,13 @@ func (o VirtualizationBaseDatastoreCluster) ToMap() (map[string]interface{}, err if errVirtualizationBaseSourceDevice != nil { return map[string]interface{}{}, errVirtualizationBaseSourceDevice } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.Capacity.IsSet() { toSerialize["Capacity"] = o.Capacity.Get() @@ -414,6 +430,13 @@ func (o *VirtualizationBaseDatastoreCluster) UnmarshalJSON(data []byte) (err err "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -423,11 +446,23 @@ func (o *VirtualizationBaseDatastoreCluster) UnmarshalJSON(data []byte) (err err } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type VirtualizationBaseDatastoreClusterWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. The enum values provides the list of concrete types that can be instantiated from this abstract type. ClassId string `json:"ClassId"` diff --git a/model_virtualization_base_distributed_network.go b/model_virtualization_base_distributed_network.go index 989b865642..e91ed46ae8 100644 --- a/model_virtualization_base_distributed_network.go +++ b/model_virtualization_base_distributed_network.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -83,6 +83,10 @@ func (o *VirtualizationBaseDistributedNetwork) UnmarshalJSON(data []byte) (err e "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -92,11 +96,23 @@ func (o *VirtualizationBaseDistributedNetwork) UnmarshalJSON(data []byte) (err e } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type VirtualizationBaseDistributedNetworkWithoutEmbeddedStruct struct { } diff --git a/model_virtualization_base_distributed_switch.go b/model_virtualization_base_distributed_switch.go index 24ee395883..d7abb32508 100644 --- a/model_virtualization_base_distributed_switch.go +++ b/model_virtualization_base_distributed_switch.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -83,6 +83,10 @@ func (o *VirtualizationBaseDistributedSwitch) UnmarshalJSON(data []byte) (err er "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -92,11 +96,23 @@ func (o *VirtualizationBaseDistributedSwitch) UnmarshalJSON(data []byte) (err er } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type VirtualizationBaseDistributedSwitchWithoutEmbeddedStruct struct { } diff --git a/model_virtualization_base_folder.go b/model_virtualization_base_folder.go index 9d66c86f81..cee6d0d602 100644 --- a/model_virtualization_base_folder.go +++ b/model_virtualization_base_folder.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -84,6 +84,11 @@ func (o *VirtualizationBaseFolder) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "virtualization.VmwareFolder" of the ClassId field. +func (o *VirtualizationBaseFolder) GetDefaultClassId() interface{} { + return "virtualization.VmwareFolder" +} + // GetObjectType returns the ObjectType field value func (o *VirtualizationBaseFolder) GetObjectType() string { if o == nil { @@ -108,6 +113,11 @@ func (o *VirtualizationBaseFolder) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "virtualization.VmwareFolder" of the ObjectType field. +func (o *VirtualizationBaseFolder) GetDefaultObjectType() interface{} { + return "virtualization.VmwareFolder" +} + // GetIdentity returns the Identity field value if set, zero value otherwise. func (o *VirtualizationBaseFolder) GetIdentity() string { if o == nil || IsNil(o.Identity) { @@ -190,7 +200,13 @@ func (o VirtualizationBaseFolder) ToMap() (map[string]interface{}, error) { if errVirtualizationBaseSourceDevice != nil { return map[string]interface{}{}, errVirtualizationBaseSourceDevice } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Identity) { toSerialize["Identity"] = o.Identity @@ -215,6 +231,13 @@ func (o *VirtualizationBaseFolder) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -224,11 +247,23 @@ func (o *VirtualizationBaseFolder) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type VirtualizationBaseFolderWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. The enum values provides the list of concrete types that can be instantiated from this abstract type. ClassId string `json:"ClassId"` diff --git a/model_virtualization_base_host.go b/model_virtualization_base_host.go index 9fc16e8a90..2d1df33578 100644 --- a/model_virtualization_base_host.go +++ b/model_virtualization_base_host.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -50,7 +50,7 @@ type VirtualizationBaseHost struct { // The uptime of the host, stored as Duration (from w3c). UpTime *string `json:"UpTime,omitempty"` // Universally unique identity of this host (example b3d4483b-5560-9342-8309-b486c9236610). Internally generated. - Uuid *string `json:"Uuid,omitempty"` + Uuid *string `json:"Uuid,omitempty" validate:"regexp=^$|^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"` // Commercial vendor details of this hardware. Vendor *string `json:"Vendor,omitempty"` AdditionalProperties map[string]interface{} @@ -750,6 +750,10 @@ func (o *VirtualizationBaseHost) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -759,11 +763,23 @@ func (o *VirtualizationBaseHost) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type VirtualizationBaseHostWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. The enum values provides the list of concrete types that can be instantiated from this abstract type. ClassId string `json:"ClassId"` @@ -791,7 +807,7 @@ func (o *VirtualizationBaseHost) UnmarshalJSON(data []byte) (err error) { // The uptime of the host, stored as Duration (from w3c). UpTime *string `json:"UpTime,omitempty"` // Universally unique identity of this host (example b3d4483b-5560-9342-8309-b486c9236610). Internally generated. - Uuid *string `json:"Uuid,omitempty"` + Uuid *string `json:"Uuid,omitempty" validate:"regexp=^$|^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"` // Commercial vendor details of this hardware. Vendor *string `json:"Vendor,omitempty"` } diff --git a/model_virtualization_base_host_configuration.go b/model_virtualization_base_host_configuration.go index 1823ca379d..909a5ba033 100644 --- a/model_virtualization_base_host_configuration.go +++ b/model_virtualization_base_host_configuration.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -83,6 +83,10 @@ func (o *VirtualizationBaseHostConfiguration) UnmarshalJSON(data []byte) (err er "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -92,11 +96,23 @@ func (o *VirtualizationBaseHostConfiguration) UnmarshalJSON(data []byte) (err er } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type VirtualizationBaseHostConfigurationWithoutEmbeddedStruct struct { } diff --git a/model_virtualization_base_host_gpu.go b/model_virtualization_base_host_gpu.go index 87face3284..84f87641a0 100644 --- a/model_virtualization_base_host_gpu.go +++ b/model_virtualization_base_host_gpu.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -83,6 +83,13 @@ func (o *VirtualizationBaseHostGpu) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -92,11 +99,23 @@ func (o *VirtualizationBaseHostGpu) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type VirtualizationBaseHostGpuWithoutEmbeddedStruct struct { } diff --git a/model_virtualization_base_host_pci_device.go b/model_virtualization_base_host_pci_device.go index e532dfbbc7..c88c29c1c8 100644 --- a/model_virtualization_base_host_pci_device.go +++ b/model_virtualization_base_host_pci_device.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -110,6 +110,11 @@ func (o *VirtualizationBaseHostPciDevice) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "virtualization.VmwareHostGpu" of the ClassId field. +func (o *VirtualizationBaseHostPciDevice) GetDefaultClassId() interface{} { + return "virtualization.VmwareHostGpu" +} + // GetObjectType returns the ObjectType field value func (o *VirtualizationBaseHostPciDevice) GetObjectType() string { if o == nil { @@ -134,6 +139,11 @@ func (o *VirtualizationBaseHostPciDevice) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "virtualization.VmwareHostGpu" of the ObjectType field. +func (o *VirtualizationBaseHostPciDevice) GetDefaultObjectType() interface{} { + return "virtualization.VmwareHostGpu" +} + // GetBus returns the Bus field value if set, zero value otherwise. func (o *VirtualizationBaseHostPciDevice) GetBus() int64 { if o == nil || IsNil(o.Bus) { @@ -686,7 +696,13 @@ func (o VirtualizationBaseHostPciDevice) ToMap() (map[string]interface{}, error) if errVirtualizationBaseSourceDevice != nil { return map[string]interface{}{}, errVirtualizationBaseSourceDevice } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Bus) { toSerialize["Bus"] = o.Bus @@ -753,6 +769,13 @@ func (o *VirtualizationBaseHostPciDevice) UnmarshalJSON(data []byte) (err error) "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -762,11 +785,23 @@ func (o *VirtualizationBaseHostPciDevice) UnmarshalJSON(data []byte) (err error) } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type VirtualizationBaseHostPciDeviceWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. The enum values provides the list of concrete types that can be instantiated from this abstract type. ClassId string `json:"ClassId"` diff --git a/model_virtualization_base_host_pci_device_relationship.go b/model_virtualization_base_host_pci_device_relationship.go index 47d1b4641b..d922f35d5a 100644 --- a/model_virtualization_base_host_pci_device_relationship.go +++ b/model_virtualization_base_host_pci_device_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_virtualization_base_host_relationship.go b/model_virtualization_base_host_relationship.go index bdd17c0289..da6e5537fa 100644 --- a/model_virtualization_base_host_relationship.go +++ b/model_virtualization_base_host_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_virtualization_base_hypervisor_manager.go b/model_virtualization_base_hypervisor_manager.go index 5ab1447df7..b5d691e0a7 100644 --- a/model_virtualization_base_hypervisor_manager.go +++ b/model_virtualization_base_hypervisor_manager.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -33,7 +33,7 @@ type VirtualizationBaseHypervisorManager struct { // Identity of the hypervisor (not manipulated by user). It could be a UUID too. For example, c917093f-5443-4748-bc09-eec72ded7608. Identity *string `json:"Identity,omitempty"` // The user provided name for the hypervisor manager. For example, vCenterIreland. Usually, this name is subject to manipulation by the user. It is not the identity of the hypervisor. - Name *string `json:"Name,omitempty"` + Name *string `json:"Name,omitempty" validate:"regexp=^[a-zA-Z0-9]+[\\\\sa-zA-Z0-9_-]{1,32}$"` // Release version of the Hypervisor Manger (VMware vCenter Server 6.0.0 build-4541947). Version *string `json:"Version,omitempty"` RegisteredDevice NullableAssetDeviceRegistrationRelationship `json:"RegisteredDevice,omitempty"` @@ -89,6 +89,11 @@ func (o *VirtualizationBaseHypervisorManager) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "virtualization.VmwareVcenter" of the ClassId field. +func (o *VirtualizationBaseHypervisorManager) GetDefaultClassId() interface{} { + return "virtualization.VmwareVcenter" +} + // GetObjectType returns the ObjectType field value func (o *VirtualizationBaseHypervisorManager) GetObjectType() string { if o == nil { @@ -113,6 +118,11 @@ func (o *VirtualizationBaseHypervisorManager) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "virtualization.VmwareVcenter" of the ObjectType field. +func (o *VirtualizationBaseHypervisorManager) GetDefaultObjectType() interface{} { + return "virtualization.VmwareVcenter" +} + // GetBuild returns the Build field value if set, zero value otherwise. func (o *VirtualizationBaseHypervisorManager) GetBuild() string { if o == nil || IsNil(o.Build) { @@ -302,7 +312,13 @@ func (o VirtualizationBaseHypervisorManager) ToMap() (map[string]interface{}, er if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Build) { toSerialize["Build"] = o.Build @@ -336,6 +352,13 @@ func (o *VirtualizationBaseHypervisorManager) UnmarshalJSON(data []byte) (err er "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -345,11 +368,23 @@ func (o *VirtualizationBaseHypervisorManager) UnmarshalJSON(data []byte) (err er } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type VirtualizationBaseHypervisorManagerWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. The enum values provides the list of concrete types that can be instantiated from this abstract type. ClassId string `json:"ClassId"` @@ -360,7 +395,7 @@ func (o *VirtualizationBaseHypervisorManager) UnmarshalJSON(data []byte) (err er // Identity of the hypervisor (not manipulated by user). It could be a UUID too. For example, c917093f-5443-4748-bc09-eec72ded7608. Identity *string `json:"Identity,omitempty"` // The user provided name for the hypervisor manager. For example, vCenterIreland. Usually, this name is subject to manipulation by the user. It is not the identity of the hypervisor. - Name *string `json:"Name,omitempty"` + Name *string `json:"Name,omitempty" validate:"regexp=^[a-zA-Z0-9]+[\\\\sa-zA-Z0-9_-]{1,32}$"` // Release version of the Hypervisor Manger (VMware vCenter Server 6.0.0 build-4541947). Version *string `json:"Version,omitempty"` RegisteredDevice NullableAssetDeviceRegistrationRelationship `json:"RegisteredDevice,omitempty"` diff --git a/model_virtualization_base_kernel_network.go b/model_virtualization_base_kernel_network.go index 6ab6ef885e..2e8a57095a 100644 --- a/model_virtualization_base_kernel_network.go +++ b/model_virtualization_base_kernel_network.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -83,6 +83,10 @@ func (o *VirtualizationBaseKernelNetwork) UnmarshalJSON(data []byte) (err error) "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -92,11 +96,23 @@ func (o *VirtualizationBaseKernelNetwork) UnmarshalJSON(data []byte) (err error) } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type VirtualizationBaseKernelNetworkWithoutEmbeddedStruct struct { } diff --git a/model_virtualization_base_network.go b/model_virtualization_base_network.go index 54ff1b00d6..dd9326d5c8 100644 --- a/model_virtualization_base_network.go +++ b/model_virtualization_base_network.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -211,6 +211,10 @@ func (o *VirtualizationBaseNetwork) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -220,11 +224,23 @@ func (o *VirtualizationBaseNetwork) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type VirtualizationBaseNetworkWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. The enum values provides the list of concrete types that can be instantiated from this abstract type. ClassId string `json:"ClassId"` diff --git a/model_virtualization_base_network_relationship.go b/model_virtualization_base_network_relationship.go index e31e42be5a..8ed4a54004 100644 --- a/model_virtualization_base_network_relationship.go +++ b/model_virtualization_base_network_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_virtualization_base_physical_network_interface.go b/model_virtualization_base_physical_network_interface.go index 12a71a0840..045e09f6f3 100644 --- a/model_virtualization_base_physical_network_interface.go +++ b/model_virtualization_base_physical_network_interface.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -84,6 +84,11 @@ func (o *VirtualizationBasePhysicalNetworkInterface) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "virtualization.VmwarePhysicalNetworkInterface" of the ClassId field. +func (o *VirtualizationBasePhysicalNetworkInterface) GetDefaultClassId() interface{} { + return "virtualization.VmwarePhysicalNetworkInterface" +} + // GetObjectType returns the ObjectType field value func (o *VirtualizationBasePhysicalNetworkInterface) GetObjectType() string { if o == nil { @@ -108,6 +113,11 @@ func (o *VirtualizationBasePhysicalNetworkInterface) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "virtualization.VmwarePhysicalNetworkInterface" of the ObjectType field. +func (o *VirtualizationBasePhysicalNetworkInterface) GetDefaultObjectType() interface{} { + return "virtualization.VmwarePhysicalNetworkInterface" +} + // GetIdentity returns the Identity field value if set, zero value otherwise. func (o *VirtualizationBasePhysicalNetworkInterface) GetIdentity() string { if o == nil || IsNil(o.Identity) { @@ -190,7 +200,13 @@ func (o VirtualizationBasePhysicalNetworkInterface) ToMap() (map[string]interfac if errVirtualizationBaseSourceDevice != nil { return map[string]interface{}{}, errVirtualizationBaseSourceDevice } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Identity) { toSerialize["Identity"] = o.Identity @@ -215,6 +231,13 @@ func (o *VirtualizationBasePhysicalNetworkInterface) UnmarshalJSON(data []byte) "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -224,11 +247,23 @@ func (o *VirtualizationBasePhysicalNetworkInterface) UnmarshalJSON(data []byte) } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type VirtualizationBasePhysicalNetworkInterfaceWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. The enum values provides the list of concrete types that can be instantiated from this abstract type. ClassId string `json:"ClassId"` diff --git a/model_virtualization_base_placement.go b/model_virtualization_base_placement.go index ab967e04b5..a729b0484b 100644 --- a/model_virtualization_base_placement.go +++ b/model_virtualization_base_placement.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -31,7 +31,7 @@ type VirtualizationBasePlacement struct { // Name of the virtual machine placement. It is the name of the VPC (Virtual Private Cloud) in case of AWS virtual machine, and datacenter name in case of VMware virtual machine. Name *string `json:"Name,omitempty"` // The uuid of this placement. The uuid is internally generated and not user specified. - Uuid *string `json:"Uuid,omitempty"` + Uuid *string `json:"Uuid,omitempty" validate:"regexp=^$|^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"` AdditionalProperties map[string]interface{} } @@ -211,6 +211,10 @@ func (o *VirtualizationBasePlacement) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -220,11 +224,23 @@ func (o *VirtualizationBasePlacement) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type VirtualizationBasePlacementWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. The enum values provides the list of concrete types that can be instantiated from this abstract type. ClassId string `json:"ClassId"` @@ -233,7 +249,7 @@ func (o *VirtualizationBasePlacement) UnmarshalJSON(data []byte) (err error) { // Name of the virtual machine placement. It is the name of the VPC (Virtual Private Cloud) in case of AWS virtual machine, and datacenter name in case of VMware virtual machine. Name *string `json:"Name,omitempty"` // The uuid of this placement. The uuid is internally generated and not user specified. - Uuid *string `json:"Uuid,omitempty"` + Uuid *string `json:"Uuid,omitempty" validate:"regexp=^$|^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"` } varVirtualizationBasePlacementWithoutEmbeddedStruct := VirtualizationBasePlacementWithoutEmbeddedStruct{} diff --git a/model_virtualization_base_source_device.go b/model_virtualization_base_source_device.go index bc2983d71a..f9d9b9e86f 100644 --- a/model_virtualization_base_source_device.go +++ b/model_virtualization_base_source_device.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -184,6 +184,10 @@ func (o *VirtualizationBaseSourceDevice) UnmarshalJSON(data []byte) (err error) "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -193,11 +197,23 @@ func (o *VirtualizationBaseSourceDevice) UnmarshalJSON(data []byte) (err error) } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type VirtualizationBaseSourceDeviceWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. The enum values provides the list of concrete types that can be instantiated from this abstract type. ClassId string `json:"ClassId"` diff --git a/model_virtualization_base_switch.go b/model_virtualization_base_switch.go index 62b0521bc6..7fc666eb12 100644 --- a/model_virtualization_base_switch.go +++ b/model_virtualization_base_switch.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -211,6 +211,10 @@ func (o *VirtualizationBaseSwitch) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -220,11 +224,23 @@ func (o *VirtualizationBaseSwitch) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type VirtualizationBaseSwitchWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. The enum values provides the list of concrete types that can be instantiated from this abstract type. ClassId string `json:"ClassId"` diff --git a/model_virtualization_base_virtual_disk.go b/model_virtualization_base_virtual_disk.go index 2847e4e5de..44e812a286 100644 --- a/model_virtualization_base_virtual_disk.go +++ b/model_virtualization_base_virtual_disk.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -211,6 +211,10 @@ func (o *VirtualizationBaseVirtualDisk) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -220,11 +224,23 @@ func (o *VirtualizationBaseVirtualDisk) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type VirtualizationBaseVirtualDiskWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. The enum values provides the list of concrete types that can be instantiated from this abstract type. ClassId string `json:"ClassId"` diff --git a/model_virtualization_base_virtual_machine.go b/model_virtualization_base_virtual_machine.go index 3bfaa15754..f6a4438e01 100644 --- a/model_virtualization_base_virtual_machine.go +++ b/model_virtualization_base_virtual_machine.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -53,7 +53,7 @@ type VirtualizationBaseVirtualMachine struct { // The current state of the virtual machine. For example, starting, stopped, etc. * `None` - A place holder for the default value. * `Creating` - Virtual machine creation is in progress. * `Pending` - The virtual machine is preparing to enter the started state. * `Starting` - The virtual machine is starting. * `Started` - The virtual machine is running and ready for use. * `Stopping` - The virtual machine is preparing to be stopped. * `Stopped` - The virtual machine is shut down and cannot be used. The virtual machine can be started again at any time. * `Pausing` - The virtual machine is preparing to be paused. * `Paused` - The virtual machine enters into paused state due to low free disk space. * `Suspending` - The virtual machine is preparing to be suspended. * `Suspended` - Virtual machine is in sleep mode.When a virtual machine is suspended, the current state of theoperating system, and applications is saved, and the virtual machine put into a suspended mode. * `Deleting` - The virtual machine is preparing to be terminated. * `Terminated` - The virtual machine has been permanently deleted and cannot be started. * `Rebooting` - The virtual machine reboot is in progress. * `Error` - The deployment of virtual machine is failed. * `Warning` - The virtual machine is in warning state. State *string `json:"State,omitempty"` // The uuid of this virtual machine. The uuid is internally generated and not user specified. - Uuid *string `json:"Uuid,omitempty"` + Uuid *string `json:"Uuid,omitempty" validate:"regexp=^$|^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"` // Time when this virtualmachine is created. VmCreationTime *time.Time `json:"VmCreationTime,omitempty"` AdditionalProperties map[string]interface{} @@ -379,7 +379,7 @@ func (o *VirtualizationBaseVirtualMachine) GetIpAddressOk() ([]string, bool) { // HasIpAddress returns a boolean if a field has been set. func (o *VirtualizationBaseVirtualMachine) HasIpAddress() bool { - if o != nil && IsNil(o.IpAddress) { + if o != nil && !IsNil(o.IpAddress) { return true } @@ -786,6 +786,10 @@ func (o *VirtualizationBaseVirtualMachine) UnmarshalJSON(data []byte) (err error "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -795,11 +799,23 @@ func (o *VirtualizationBaseVirtualMachine) UnmarshalJSON(data []byte) (err error } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type VirtualizationBaseVirtualMachineWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. The enum values provides the list of concrete types that can be instantiated from this abstract type. ClassId string `json:"ClassId"` @@ -829,7 +845,7 @@ func (o *VirtualizationBaseVirtualMachine) UnmarshalJSON(data []byte) (err error // The current state of the virtual machine. For example, starting, stopped, etc. * `None` - A place holder for the default value. * `Creating` - Virtual machine creation is in progress. * `Pending` - The virtual machine is preparing to enter the started state. * `Starting` - The virtual machine is starting. * `Started` - The virtual machine is running and ready for use. * `Stopping` - The virtual machine is preparing to be stopped. * `Stopped` - The virtual machine is shut down and cannot be used. The virtual machine can be started again at any time. * `Pausing` - The virtual machine is preparing to be paused. * `Paused` - The virtual machine enters into paused state due to low free disk space. * `Suspending` - The virtual machine is preparing to be suspended. * `Suspended` - Virtual machine is in sleep mode.When a virtual machine is suspended, the current state of theoperating system, and applications is saved, and the virtual machine put into a suspended mode. * `Deleting` - The virtual machine is preparing to be terminated. * `Terminated` - The virtual machine has been permanently deleted and cannot be started. * `Rebooting` - The virtual machine reboot is in progress. * `Error` - The deployment of virtual machine is failed. * `Warning` - The virtual machine is in warning state. State *string `json:"State,omitempty"` // The uuid of this virtual machine. The uuid is internally generated and not user specified. - Uuid *string `json:"Uuid,omitempty"` + Uuid *string `json:"Uuid,omitempty" validate:"regexp=^$|^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"` // Time when this virtualmachine is created. VmCreationTime *time.Time `json:"VmCreationTime,omitempty"` } diff --git a/model_virtualization_base_virtual_machine_gpu.go b/model_virtualization_base_virtual_machine_gpu.go index f18b8a0120..7ef097c3f3 100644 --- a/model_virtualization_base_virtual_machine_gpu.go +++ b/model_virtualization_base_virtual_machine_gpu.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -83,6 +83,13 @@ func (o *VirtualizationBaseVirtualMachineGpu) UnmarshalJSON(data []byte) (err er "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -92,11 +99,23 @@ func (o *VirtualizationBaseVirtualMachineGpu) UnmarshalJSON(data []byte) (err er } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type VirtualizationBaseVirtualMachineGpuWithoutEmbeddedStruct struct { } diff --git a/model_virtualization_base_virtual_machine_pci_device.go b/model_virtualization_base_virtual_machine_pci_device.go index 017ae8bcd3..1cac71d2ca 100644 --- a/model_virtualization_base_virtual_machine_pci_device.go +++ b/model_virtualization_base_virtual_machine_pci_device.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -88,6 +88,11 @@ func (o *VirtualizationBaseVirtualMachinePciDevice) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "virtualization.VmwareVirtualMachineGpu" of the ClassId field. +func (o *VirtualizationBaseVirtualMachinePciDevice) GetDefaultClassId() interface{} { + return "virtualization.VmwareVirtualMachineGpu" +} + // GetObjectType returns the ObjectType field value func (o *VirtualizationBaseVirtualMachinePciDevice) GetObjectType() string { if o == nil { @@ -112,6 +117,11 @@ func (o *VirtualizationBaseVirtualMachinePciDevice) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "virtualization.VmwareVirtualMachineGpu" of the ObjectType field. +func (o *VirtualizationBaseVirtualMachinePciDevice) GetDefaultObjectType() interface{} { + return "virtualization.VmwareVirtualMachineGpu" +} + // GetBackingPciId returns the BackingPciId field value if set, zero value otherwise. func (o *VirtualizationBaseVirtualMachinePciDevice) GetBackingPciId() string { if o == nil || IsNil(o.BackingPciId) { @@ -312,7 +322,13 @@ func (o VirtualizationBaseVirtualMachinePciDevice) ToMap() (map[string]interface if errVirtualizationBaseSourceDevice != nil { return map[string]interface{}{}, errVirtualizationBaseSourceDevice } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.BackingPciId) { toSerialize["BackingPciId"] = o.BackingPciId @@ -346,6 +362,13 @@ func (o *VirtualizationBaseVirtualMachinePciDevice) UnmarshalJSON(data []byte) ( "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -355,11 +378,23 @@ func (o *VirtualizationBaseVirtualMachinePciDevice) UnmarshalJSON(data []byte) ( } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type VirtualizationBaseVirtualMachinePciDeviceWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. The enum values provides the list of concrete types that can be instantiated from this abstract type. ClassId string `json:"ClassId"` diff --git a/model_virtualization_base_virtual_machine_relationship.go b/model_virtualization_base_virtual_machine_relationship.go index 8f2104590c..a5974ed2a6 100644 --- a/model_virtualization_base_virtual_machine_relationship.go +++ b/model_virtualization_base_virtual_machine_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_virtualization_base_virtual_machine_snapshot.go b/model_virtualization_base_virtual_machine_snapshot.go index 2d7329c34f..f4c8169728 100644 --- a/model_virtualization_base_virtual_machine_snapshot.go +++ b/model_virtualization_base_virtual_machine_snapshot.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -84,6 +84,11 @@ func (o *VirtualizationBaseVirtualMachineSnapshot) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "virtualization.VmwareVirtualMachineSnapshot" of the ClassId field. +func (o *VirtualizationBaseVirtualMachineSnapshot) GetDefaultClassId() interface{} { + return "virtualization.VmwareVirtualMachineSnapshot" +} + // GetObjectType returns the ObjectType field value func (o *VirtualizationBaseVirtualMachineSnapshot) GetObjectType() string { if o == nil { @@ -108,6 +113,11 @@ func (o *VirtualizationBaseVirtualMachineSnapshot) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "virtualization.VmwareVirtualMachineSnapshot" of the ObjectType field. +func (o *VirtualizationBaseVirtualMachineSnapshot) GetDefaultObjectType() interface{} { + return "virtualization.VmwareVirtualMachineSnapshot" +} + // GetIdentity returns the Identity field value if set, zero value otherwise. func (o *VirtualizationBaseVirtualMachineSnapshot) GetIdentity() string { if o == nil || IsNil(o.Identity) { @@ -190,7 +200,13 @@ func (o VirtualizationBaseVirtualMachineSnapshot) ToMap() (map[string]interface{ if errVirtualizationBaseSourceDevice != nil { return map[string]interface{}{}, errVirtualizationBaseSourceDevice } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Identity) { toSerialize["Identity"] = o.Identity @@ -215,6 +231,13 @@ func (o *VirtualizationBaseVirtualMachineSnapshot) UnmarshalJSON(data []byte) (e "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -224,11 +247,23 @@ func (o *VirtualizationBaseVirtualMachineSnapshot) UnmarshalJSON(data []byte) (e } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type VirtualizationBaseVirtualMachineSnapshotWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. The enum values provides the list of concrete types that can be instantiated from this abstract type. ClassId string `json:"ClassId"` diff --git a/model_virtualization_base_virtual_network.go b/model_virtualization_base_virtual_network.go index cd954ed668..072041cc0b 100644 --- a/model_virtualization_base_virtual_network.go +++ b/model_virtualization_base_virtual_network.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -83,6 +83,10 @@ func (o *VirtualizationBaseVirtualNetwork) UnmarshalJSON(data []byte) (err error "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -92,11 +96,23 @@ func (o *VirtualizationBaseVirtualNetwork) UnmarshalJSON(data []byte) (err error } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type VirtualizationBaseVirtualNetworkWithoutEmbeddedStruct struct { } diff --git a/model_virtualization_base_virtual_network_interface.go b/model_virtualization_base_virtual_network_interface.go index 31f0b47ac9..45da75b493 100644 --- a/model_virtualization_base_virtual_network_interface.go +++ b/model_virtualization_base_virtual_network_interface.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -82,6 +82,11 @@ func (o *VirtualizationBaseVirtualNetworkInterface) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "virtualization.VmwareVirtualNetworkInterface" of the ClassId field. +func (o *VirtualizationBaseVirtualNetworkInterface) GetDefaultClassId() interface{} { + return "virtualization.VmwareVirtualNetworkInterface" +} + // GetObjectType returns the ObjectType field value func (o *VirtualizationBaseVirtualNetworkInterface) GetObjectType() string { if o == nil { @@ -106,6 +111,11 @@ func (o *VirtualizationBaseVirtualNetworkInterface) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "virtualization.VmwareVirtualNetworkInterface" of the ObjectType field. +func (o *VirtualizationBaseVirtualNetworkInterface) GetDefaultObjectType() interface{} { + return "virtualization.VmwareVirtualNetworkInterface" +} + // GetName returns the Name field value if set, zero value otherwise. func (o *VirtualizationBaseVirtualNetworkInterface) GetName() string { if o == nil || IsNil(o.Name) { @@ -156,7 +166,13 @@ func (o VirtualizationBaseVirtualNetworkInterface) ToMap() (map[string]interface if errVirtualizationBaseSourceDevice != nil { return map[string]interface{}{}, errVirtualizationBaseSourceDevice } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Name) { toSerialize["Name"] = o.Name @@ -178,6 +194,13 @@ func (o *VirtualizationBaseVirtualNetworkInterface) UnmarshalJSON(data []byte) ( "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -187,11 +210,23 @@ func (o *VirtualizationBaseVirtualNetworkInterface) UnmarshalJSON(data []byte) ( } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type VirtualizationBaseVirtualNetworkInterfaceWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. The enum values provides the list of concrete types that can be instantiated from this abstract type. ClassId string `json:"ClassId"` diff --git a/model_virtualization_base_virtual_network_interface_card.go b/model_virtualization_base_virtual_network_interface_card.go index 53fed63b0c..d0afbb7d73 100644 --- a/model_virtualization_base_virtual_network_interface_card.go +++ b/model_virtualization_base_virtual_network_interface_card.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -31,7 +31,7 @@ type VirtualizationBaseVirtualNetworkInterfaceCard struct { // Type or model of the virtual network interface card. * `Unknown` - The type of the network adaptor type is unknown. * `E1000` - Emulated version of the Intel 82545EM Gigabit Ethernet NIC. * `SRIOV` - Representation of a virtual function (VF) on a physical NIC with SR-IOV support. * `VMXNET2` - VMXNET 2 (Enhanced) is available only for some guest operating systems on ESX/ESXi 3.5 and later. * `VMXNET3` - VMXNET 3 offers all the features available in VMXNET 2 and adds several new features. * `E1000E` - E1000E – emulates a newer real network adapter, the 1 Gbit Intel 82574, and is available for Windows 2012 and later. The E1000E needs virtual machine hardware version 8 or later. * `NE2K_PCI` - The Ne2000 network card uses two ring buffers for packet handling. These are circular buffers made of 256-byte pages that the chip's DMA logic will use to store received packets or to get received packets. * `PCnet` - The PCnet-PCI II is a PCI network adapter. It has built-in support for CRC checks and can automatically pad short packets to the minimum Ethernet length. * `RTL8139` - The RTL8139 is a fast Ethernet card that operates at 10/100 Mbps. It is compliant with PCI version 2.0/2.1 and it is known for reliability and superior performance. * `VirtIO` - VirtIO is a standardized interface which allows virtual machines access to simplified \"virtual\" devices, such as block devices, network adapters and consoles. Accessing devices through VirtIO on a guest VM improves performance over more traditional \"emulated\" devices, as VirtIO devices require only the bare minimum setup and configuration needed to send and receive data, while the host machine handles the majority of the setup and maintenance of the actual physical hardware. * `` - Default network adaptor type supported by the hypervisor. AdapterType *string `json:"AdapterType,omitempty"` // MAC address assigned to the virtual network interface card. - MacAddress *string `json:"MacAddress,omitempty"` + MacAddress *string `json:"MacAddress,omitempty" validate:"regexp=^$|^([0-9A-Fa-f]{2}[:-]){5}([0-9A-Fa-f]{2})$"` // Name of the virtual network interface card. Name *string `json:"Name,omitempty"` AdditionalProperties map[string]interface{} @@ -90,6 +90,11 @@ func (o *VirtualizationBaseVirtualNetworkInterfaceCard) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "cloud.AwsNetworkInterface" of the ClassId field. +func (o *VirtualizationBaseVirtualNetworkInterfaceCard) GetDefaultClassId() interface{} { + return "cloud.AwsNetworkInterface" +} + // GetObjectType returns the ObjectType field value func (o *VirtualizationBaseVirtualNetworkInterfaceCard) GetObjectType() string { if o == nil { @@ -114,6 +119,11 @@ func (o *VirtualizationBaseVirtualNetworkInterfaceCard) SetObjectType(v string) o.ObjectType = v } +// GetDefaultObjectType returns the default value "cloud.AwsNetworkInterface" of the ObjectType field. +func (o *VirtualizationBaseVirtualNetworkInterfaceCard) GetDefaultObjectType() interface{} { + return "cloud.AwsNetworkInterface" +} + // GetAdapterType returns the AdapterType field value if set, zero value otherwise. func (o *VirtualizationBaseVirtualNetworkInterfaceCard) GetAdapterType() string { if o == nil || IsNil(o.AdapterType) { @@ -228,7 +238,13 @@ func (o VirtualizationBaseVirtualNetworkInterfaceCard) ToMap() (map[string]inter if errVirtualizationBaseSourceDevice != nil { return map[string]interface{}{}, errVirtualizationBaseSourceDevice } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.AdapterType) { toSerialize["AdapterType"] = o.AdapterType @@ -256,6 +272,13 @@ func (o *VirtualizationBaseVirtualNetworkInterfaceCard) UnmarshalJSON(data []byt "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -265,11 +288,23 @@ func (o *VirtualizationBaseVirtualNetworkInterfaceCard) UnmarshalJSON(data []byt } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type VirtualizationBaseVirtualNetworkInterfaceCardWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. The enum values provides the list of concrete types that can be instantiated from this abstract type. ClassId string `json:"ClassId"` @@ -278,7 +313,7 @@ func (o *VirtualizationBaseVirtualNetworkInterfaceCard) UnmarshalJSON(data []byt // Type or model of the virtual network interface card. * `Unknown` - The type of the network adaptor type is unknown. * `E1000` - Emulated version of the Intel 82545EM Gigabit Ethernet NIC. * `SRIOV` - Representation of a virtual function (VF) on a physical NIC with SR-IOV support. * `VMXNET2` - VMXNET 2 (Enhanced) is available only for some guest operating systems on ESX/ESXi 3.5 and later. * `VMXNET3` - VMXNET 3 offers all the features available in VMXNET 2 and adds several new features. * `E1000E` - E1000E – emulates a newer real network adapter, the 1 Gbit Intel 82574, and is available for Windows 2012 and later. The E1000E needs virtual machine hardware version 8 or later. * `NE2K_PCI` - The Ne2000 network card uses two ring buffers for packet handling. These are circular buffers made of 256-byte pages that the chip's DMA logic will use to store received packets or to get received packets. * `PCnet` - The PCnet-PCI II is a PCI network adapter. It has built-in support for CRC checks and can automatically pad short packets to the minimum Ethernet length. * `RTL8139` - The RTL8139 is a fast Ethernet card that operates at 10/100 Mbps. It is compliant with PCI version 2.0/2.1 and it is known for reliability and superior performance. * `VirtIO` - VirtIO is a standardized interface which allows virtual machines access to simplified \"virtual\" devices, such as block devices, network adapters and consoles. Accessing devices through VirtIO on a guest VM improves performance over more traditional \"emulated\" devices, as VirtIO devices require only the bare minimum setup and configuration needed to send and receive data, while the host machine handles the majority of the setup and maintenance of the actual physical hardware. * `` - Default network adaptor type supported by the hypervisor. AdapterType *string `json:"AdapterType,omitempty"` // MAC address assigned to the virtual network interface card. - MacAddress *string `json:"MacAddress,omitempty"` + MacAddress *string `json:"MacAddress,omitempty" validate:"regexp=^$|^([0-9A-Fa-f]{2}[:-]){5}([0-9A-Fa-f]{2})$"` // Name of the virtual network interface card. Name *string `json:"Name,omitempty"` } diff --git a/model_virtualization_base_virtual_switch.go b/model_virtualization_base_virtual_switch.go index 48328ad7e7..9dbf784906 100644 --- a/model_virtualization_base_virtual_switch.go +++ b/model_virtualization_base_virtual_switch.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -83,6 +83,10 @@ func (o *VirtualizationBaseVirtualSwitch) UnmarshalJSON(data []byte) (err error) "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -92,11 +96,23 @@ func (o *VirtualizationBaseVirtualSwitch) UnmarshalJSON(data []byte) (err error) } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type VirtualizationBaseVirtualSwitchWithoutEmbeddedStruct struct { } diff --git a/model_virtualization_base_vm_configuration.go b/model_virtualization_base_vm_configuration.go index 3a487e0e4d..46606b4dd5 100644 --- a/model_virtualization_base_vm_configuration.go +++ b/model_virtualization_base_vm_configuration.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -83,6 +83,10 @@ func (o *VirtualizationBaseVmConfiguration) UnmarshalJSON(data []byte) (err erro "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -92,11 +96,23 @@ func (o *VirtualizationBaseVmConfiguration) UnmarshalJSON(data []byte) (err erro } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type VirtualizationBaseVmConfigurationWithoutEmbeddedStruct struct { } diff --git a/model_virtualization_cloud_init_config.go b/model_virtualization_cloud_init_config.go index 11509c545f..b6be190fce 100644 --- a/model_virtualization_cloud_init_config.go +++ b/model_virtualization_cloud_init_config.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -94,6 +94,11 @@ func (o *VirtualizationCloudInitConfig) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "virtualization.CloudInitConfig" of the ClassId field. +func (o *VirtualizationCloudInitConfig) GetDefaultClassId() interface{} { + return "virtualization.CloudInitConfig" +} + // GetObjectType returns the ObjectType field value func (o *VirtualizationCloudInitConfig) GetObjectType() string { if o == nil { @@ -118,6 +123,11 @@ func (o *VirtualizationCloudInitConfig) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "virtualization.CloudInitConfig" of the ObjectType field. +func (o *VirtualizationCloudInitConfig) GetDefaultObjectType() interface{} { + return "virtualization.CloudInitConfig" +} + // GetConfigType returns the ConfigType field value if set, zero value otherwise. func (o *VirtualizationCloudInitConfig) GetConfigType() string { if o == nil || IsNil(o.ConfigType) { @@ -296,7 +306,13 @@ func (o VirtualizationCloudInitConfig) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.ConfigType) { toSerialize["ConfigType"] = o.ConfigType @@ -330,6 +346,13 @@ func (o *VirtualizationCloudInitConfig) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -339,11 +362,23 @@ func (o *VirtualizationCloudInitConfig) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type VirtualizationCloudInitConfigWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_virtualization_cloud_vm_compute_configuration.go b/model_virtualization_cloud_vm_compute_configuration.go index c7c230b5b2..98ed02914a 100644 --- a/model_virtualization_cloud_vm_compute_configuration.go +++ b/model_virtualization_cloud_vm_compute_configuration.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -82,6 +82,11 @@ func (o *VirtualizationCloudVmComputeConfiguration) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "virtualization.AwsVmComputeConfiguration" of the ClassId field. +func (o *VirtualizationCloudVmComputeConfiguration) GetDefaultClassId() interface{} { + return "virtualization.AwsVmComputeConfiguration" +} + // GetObjectType returns the ObjectType field value func (o *VirtualizationCloudVmComputeConfiguration) GetObjectType() string { if o == nil { @@ -106,6 +111,11 @@ func (o *VirtualizationCloudVmComputeConfiguration) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "virtualization.AwsVmComputeConfiguration" of the ObjectType field. +func (o *VirtualizationCloudVmComputeConfiguration) GetDefaultObjectType() interface{} { + return "virtualization.AwsVmComputeConfiguration" +} + // GetInstanceTypeId returns the InstanceTypeId field value if set, zero value otherwise. func (o *VirtualizationCloudVmComputeConfiguration) GetInstanceTypeId() string { if o == nil || IsNil(o.InstanceTypeId) { @@ -156,7 +166,13 @@ func (o VirtualizationCloudVmComputeConfiguration) ToMap() (map[string]interface if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.InstanceTypeId) { toSerialize["InstanceTypeId"] = o.InstanceTypeId @@ -178,6 +194,13 @@ func (o *VirtualizationCloudVmComputeConfiguration) UnmarshalJSON(data []byte) ( "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -187,11 +210,23 @@ func (o *VirtualizationCloudVmComputeConfiguration) UnmarshalJSON(data []byte) ( } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type VirtualizationCloudVmComputeConfigurationWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. The enum values provides the list of concrete types that can be instantiated from this abstract type. ClassId string `json:"ClassId"` diff --git a/model_virtualization_cloud_vm_configuration.go b/model_virtualization_cloud_vm_configuration.go index 5ba86d2aef..db246d5168 100644 --- a/model_virtualization_cloud_vm_configuration.go +++ b/model_virtualization_cloud_vm_configuration.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -94,6 +94,11 @@ func (o *VirtualizationCloudVmConfiguration) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "virtualization.AwsVmConfiguration" of the ClassId field. +func (o *VirtualizationCloudVmConfiguration) GetDefaultClassId() interface{} { + return "virtualization.AwsVmConfiguration" +} + // GetObjectType returns the ObjectType field value func (o *VirtualizationCloudVmConfiguration) GetObjectType() string { if o == nil { @@ -118,6 +123,11 @@ func (o *VirtualizationCloudVmConfiguration) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "virtualization.AwsVmConfiguration" of the ObjectType field. +func (o *VirtualizationCloudVmConfiguration) GetDefaultObjectType() interface{} { + return "virtualization.AwsVmConfiguration" +} + // GetAvailabilityZoneId returns the AvailabilityZoneId field value if set, zero value otherwise. func (o *VirtualizationCloudVmConfiguration) GetAvailabilityZoneId() string { if o == nil || IsNil(o.AvailabilityZoneId) { @@ -353,7 +363,7 @@ func (o *VirtualizationCloudVmConfiguration) GetSecurityGroupsOk() ([]string, bo // HasSecurityGroups returns a boolean if a field has been set. func (o *VirtualizationCloudVmConfiguration) HasSecurityGroups() bool { - if o != nil && IsNil(o.SecurityGroups) { + if o != nil && !IsNil(o.SecurityGroups) { return true } @@ -458,7 +468,13 @@ func (o VirtualizationCloudVmConfiguration) ToMap() (map[string]interface{}, err if errVirtualizationBaseVmConfiguration != nil { return map[string]interface{}{}, errVirtualizationBaseVmConfiguration } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.AvailabilityZoneId) { toSerialize["AvailabilityZoneId"] = o.AvailabilityZoneId @@ -504,6 +520,13 @@ func (o *VirtualizationCloudVmConfiguration) UnmarshalJSON(data []byte) (err err "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -513,11 +536,23 @@ func (o *VirtualizationCloudVmConfiguration) UnmarshalJSON(data []byte) (err err } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type VirtualizationCloudVmConfigurationWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. The enum values provides the list of concrete types that can be instantiated from this abstract type. ClassId string `json:"ClassId"` diff --git a/model_virtualization_cloud_vm_network_configuration.go b/model_virtualization_cloud_vm_network_configuration.go index a07503c62e..736a2d8abc 100644 --- a/model_virtualization_cloud_vm_network_configuration.go +++ b/model_virtualization_cloud_vm_network_configuration.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -83,6 +83,11 @@ func (o *VirtualizationCloudVmNetworkConfiguration) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "virtualization.AwsVmNetworkConfiguration" of the ClassId field. +func (o *VirtualizationCloudVmNetworkConfiguration) GetDefaultClassId() interface{} { + return "virtualization.AwsVmNetworkConfiguration" +} + // GetObjectType returns the ObjectType field value func (o *VirtualizationCloudVmNetworkConfiguration) GetObjectType() string { if o == nil { @@ -107,6 +112,11 @@ func (o *VirtualizationCloudVmNetworkConfiguration) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "virtualization.AwsVmNetworkConfiguration" of the ObjectType field. +func (o *VirtualizationCloudVmNetworkConfiguration) GetDefaultObjectType() interface{} { + return "virtualization.AwsVmNetworkConfiguration" +} + // GetInterfaces returns the Interfaces field value if set, zero value otherwise (both if not set or set to explicit null). func (o *VirtualizationCloudVmNetworkConfiguration) GetInterfaces() []VirtualizationNetworkInterface { if o == nil { @@ -128,7 +138,7 @@ func (o *VirtualizationCloudVmNetworkConfiguration) GetInterfacesOk() ([]Virtual // HasInterfaces returns a boolean if a field has been set. func (o *VirtualizationCloudVmNetworkConfiguration) HasInterfaces() bool { - if o != nil && IsNil(o.Interfaces) { + if o != nil && !IsNil(o.Interfaces) { return true } @@ -190,7 +200,13 @@ func (o VirtualizationCloudVmNetworkConfiguration) ToMap() (map[string]interface if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.Interfaces != nil { toSerialize["Interfaces"] = o.Interfaces @@ -215,6 +231,13 @@ func (o *VirtualizationCloudVmNetworkConfiguration) UnmarshalJSON(data []byte) ( "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -224,11 +247,23 @@ func (o *VirtualizationCloudVmNetworkConfiguration) UnmarshalJSON(data []byte) ( } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type VirtualizationCloudVmNetworkConfigurationWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. The enum values provides the list of concrete types that can be instantiated from this abstract type. ClassId string `json:"ClassId"` diff --git a/model_virtualization_cloud_vm_storage_configuration.go b/model_virtualization_cloud_vm_storage_configuration.go index e5944f2228..47ad339c2b 100644 --- a/model_virtualization_cloud_vm_storage_configuration.go +++ b/model_virtualization_cloud_vm_storage_configuration.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -81,6 +81,11 @@ func (o *VirtualizationCloudVmStorageConfiguration) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "virtualization.AwsVmStorageConfiguration" of the ClassId field. +func (o *VirtualizationCloudVmStorageConfiguration) GetDefaultClassId() interface{} { + return "virtualization.AwsVmStorageConfiguration" +} + // GetObjectType returns the ObjectType field value func (o *VirtualizationCloudVmStorageConfiguration) GetObjectType() string { if o == nil { @@ -105,6 +110,11 @@ func (o *VirtualizationCloudVmStorageConfiguration) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "virtualization.AwsVmStorageConfiguration" of the ObjectType field. +func (o *VirtualizationCloudVmStorageConfiguration) GetDefaultObjectType() interface{} { + return "virtualization.AwsVmStorageConfiguration" +} + // GetVolumes returns the Volumes field value if set, zero value otherwise (both if not set or set to explicit null). func (o *VirtualizationCloudVmStorageConfiguration) GetVolumes() []VirtualizationVolumeInfo { if o == nil { @@ -126,7 +136,7 @@ func (o *VirtualizationCloudVmStorageConfiguration) GetVolumesOk() ([]Virtualiza // HasVolumes returns a boolean if a field has been set. func (o *VirtualizationCloudVmStorageConfiguration) HasVolumes() bool { - if o != nil && IsNil(o.Volumes) { + if o != nil && !IsNil(o.Volumes) { return true } @@ -156,7 +166,13 @@ func (o VirtualizationCloudVmStorageConfiguration) ToMap() (map[string]interface if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.Volumes != nil { toSerialize["Volumes"] = o.Volumes @@ -178,6 +194,13 @@ func (o *VirtualizationCloudVmStorageConfiguration) UnmarshalJSON(data []byte) ( "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -187,11 +210,23 @@ func (o *VirtualizationCloudVmStorageConfiguration) UnmarshalJSON(data []byte) ( } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type VirtualizationCloudVmStorageConfigurationWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. The enum values provides the list of concrete types that can be instantiated from this abstract type. ClassId string `json:"ClassId"` diff --git a/model_virtualization_compute_capacity.go b/model_virtualization_compute_capacity.go index 9df6d780e2..a1579b5181 100644 --- a/model_virtualization_compute_capacity.go +++ b/model_virtualization_compute_capacity.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -86,6 +86,11 @@ func (o *VirtualizationComputeCapacity) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "virtualization.ComputeCapacity" of the ClassId field. +func (o *VirtualizationComputeCapacity) GetDefaultClassId() interface{} { + return "virtualization.ComputeCapacity" +} + // GetObjectType returns the ObjectType field value func (o *VirtualizationComputeCapacity) GetObjectType() string { if o == nil { @@ -110,6 +115,11 @@ func (o *VirtualizationComputeCapacity) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "virtualization.ComputeCapacity" of the ObjectType field. +func (o *VirtualizationComputeCapacity) GetDefaultObjectType() interface{} { + return "virtualization.ComputeCapacity" +} + // GetCapacity returns the Capacity field value if set, zero value otherwise. func (o *VirtualizationComputeCapacity) GetCapacity() int64 { if o == nil || IsNil(o.Capacity) { @@ -224,7 +234,13 @@ func (o VirtualizationComputeCapacity) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Capacity) { toSerialize["Capacity"] = o.Capacity @@ -252,6 +268,13 @@ func (o *VirtualizationComputeCapacity) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -261,11 +284,23 @@ func (o *VirtualizationComputeCapacity) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type VirtualizationComputeCapacityWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_virtualization_cpu_info.go b/model_virtualization_cpu_info.go index 267c41b371..14dd80e6ce 100644 --- a/model_virtualization_cpu_info.go +++ b/model_virtualization_cpu_info.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -90,6 +90,11 @@ func (o *VirtualizationCpuInfo) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "virtualization.CpuInfo" of the ClassId field. +func (o *VirtualizationCpuInfo) GetDefaultClassId() interface{} { + return "virtualization.CpuInfo" +} + // GetObjectType returns the ObjectType field value func (o *VirtualizationCpuInfo) GetObjectType() string { if o == nil { @@ -114,6 +119,11 @@ func (o *VirtualizationCpuInfo) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "virtualization.CpuInfo" of the ObjectType field. +func (o *VirtualizationCpuInfo) GetDefaultObjectType() interface{} { + return "virtualization.CpuInfo" +} + // GetCores returns the Cores field value if set, zero value otherwise. func (o *VirtualizationCpuInfo) GetCores() int64 { if o == nil || IsNil(o.Cores) { @@ -292,7 +302,13 @@ func (o VirtualizationCpuInfo) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Cores) { toSerialize["Cores"] = o.Cores @@ -326,6 +342,13 @@ func (o *VirtualizationCpuInfo) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -335,11 +358,23 @@ func (o *VirtualizationCpuInfo) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type VirtualizationCpuInfoWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_virtualization_esxi_clone_custom_spec.go b/model_virtualization_esxi_clone_custom_spec.go index 87f3657e77..ba4f2ad75d 100644 --- a/model_virtualization_esxi_clone_custom_spec.go +++ b/model_virtualization_esxi_clone_custom_spec.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -84,6 +84,11 @@ func (o *VirtualizationEsxiCloneCustomSpec) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "virtualization.EsxiCloneCustomSpec" of the ClassId field. +func (o *VirtualizationEsxiCloneCustomSpec) GetDefaultClassId() interface{} { + return "virtualization.EsxiCloneCustomSpec" +} + // GetObjectType returns the ObjectType field value func (o *VirtualizationEsxiCloneCustomSpec) GetObjectType() string { if o == nil { @@ -108,6 +113,11 @@ func (o *VirtualizationEsxiCloneCustomSpec) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "virtualization.EsxiCloneCustomSpec" of the ObjectType field. +func (o *VirtualizationEsxiCloneCustomSpec) GetDefaultObjectType() interface{} { + return "virtualization.EsxiCloneCustomSpec" +} + // GetExtraConfig returns the ExtraConfig field value if set, zero value otherwise (both if not set or set to explicit null). func (o *VirtualizationEsxiCloneCustomSpec) GetExtraConfig() interface{} { if o == nil { @@ -129,7 +139,7 @@ func (o *VirtualizationEsxiCloneCustomSpec) GetExtraConfigOk() (*interface{}, bo // HasExtraConfig returns a boolean if a field has been set. func (o *VirtualizationEsxiCloneCustomSpec) HasExtraConfig() bool { - if o != nil && IsNil(o.ExtraConfig) { + if o != nil && !IsNil(o.ExtraConfig) { return true } @@ -162,7 +172,7 @@ func (o *VirtualizationEsxiCloneCustomSpec) GetOvaEnvSpecOk() (*interface{}, boo // HasOvaEnvSpec returns a boolean if a field has been set. func (o *VirtualizationEsxiCloneCustomSpec) HasOvaEnvSpec() bool { - if o != nil && IsNil(o.OvaEnvSpec) { + if o != nil && !IsNil(o.OvaEnvSpec) { return true } @@ -192,7 +202,13 @@ func (o VirtualizationEsxiCloneCustomSpec) ToMap() (map[string]interface{}, erro if errVirtualizationBaseCustomSpec != nil { return map[string]interface{}{}, errVirtualizationBaseCustomSpec } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.ExtraConfig != nil { toSerialize["ExtraConfig"] = o.ExtraConfig @@ -217,6 +233,13 @@ func (o *VirtualizationEsxiCloneCustomSpec) UnmarshalJSON(data []byte) (err erro "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -226,11 +249,23 @@ func (o *VirtualizationEsxiCloneCustomSpec) UnmarshalJSON(data []byte) (err erro } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type VirtualizationEsxiCloneCustomSpecWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_virtualization_esxi_console.go b/model_virtualization_esxi_console.go index 054d15ad28..d8a0322c56 100644 --- a/model_virtualization_esxi_console.go +++ b/model_virtualization_esxi_console.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -86,6 +86,11 @@ func (o *VirtualizationEsxiConsole) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "virtualization.EsxiConsole" of the ClassId field. +func (o *VirtualizationEsxiConsole) GetDefaultClassId() interface{} { + return "virtualization.EsxiConsole" +} + // GetObjectType returns the ObjectType field value func (o *VirtualizationEsxiConsole) GetObjectType() string { if o == nil { @@ -110,6 +115,11 @@ func (o *VirtualizationEsxiConsole) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "virtualization.EsxiConsole" of the ObjectType field. +func (o *VirtualizationEsxiConsole) GetDefaultObjectType() interface{} { + return "virtualization.EsxiConsole" +} + // GetStreamId returns the StreamId field value if set, zero value otherwise. func (o *VirtualizationEsxiConsole) GetStreamId() string { if o == nil || IsNil(o.StreamId) { @@ -246,7 +256,13 @@ func (o VirtualizationEsxiConsole) ToMap() (map[string]interface{}, error) { if errSessionAbstractSubSession != nil { return map[string]interface{}{}, errSessionAbstractSubSession } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.StreamId) { toSerialize["StreamId"] = o.StreamId @@ -274,6 +290,13 @@ func (o *VirtualizationEsxiConsole) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -283,11 +306,23 @@ func (o *VirtualizationEsxiConsole) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type VirtualizationEsxiConsoleWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_virtualization_esxi_console_list.go b/model_virtualization_esxi_console_list.go index 398c0f9d63..966f17b875 100644 --- a/model_virtualization_esxi_console_list.go +++ b/model_virtualization_esxi_console_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *VirtualizationEsxiConsoleList) GetResultsOk() ([]VirtualizationEsxiCons // HasResults returns a boolean if a field has been set. func (o *VirtualizationEsxiConsoleList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *VirtualizationEsxiConsoleList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *VirtualizationEsxiConsoleList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type VirtualizationEsxiConsoleListWithoutEmbeddedStruct struct { // The total number of 'virtualization.EsxiConsole' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_virtualization_esxi_console_response.go b/model_virtualization_esxi_console_response.go index 468ba4ecb5..d1ddb29889 100644 --- a/model_virtualization_esxi_console_response.go +++ b/model_virtualization_esxi_console_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_virtualization_esxi_host_configuration.go b/model_virtualization_esxi_host_configuration.go index 15d45c804b..e5296637da 100644 --- a/model_virtualization_esxi_host_configuration.go +++ b/model_virtualization_esxi_host_configuration.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -82,6 +82,11 @@ func (o *VirtualizationEsxiHostConfiguration) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "virtualization.EsxiHostConfiguration" of the ClassId field. +func (o *VirtualizationEsxiHostConfiguration) GetDefaultClassId() interface{} { + return "virtualization.EsxiHostConfiguration" +} + // GetObjectType returns the ObjectType field value func (o *VirtualizationEsxiHostConfiguration) GetObjectType() string { if o == nil { @@ -106,6 +111,11 @@ func (o *VirtualizationEsxiHostConfiguration) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "virtualization.EsxiHostConfiguration" of the ObjectType field. +func (o *VirtualizationEsxiHostConfiguration) GetDefaultObjectType() interface{} { + return "virtualization.EsxiHostConfiguration" +} + // GetDatacenter returns the Datacenter field value if set, zero value otherwise. func (o *VirtualizationEsxiHostConfiguration) GetDatacenter() string { if o == nil || IsNil(o.Datacenter) { @@ -156,7 +166,13 @@ func (o VirtualizationEsxiHostConfiguration) ToMap() (map[string]interface{}, er if errVirtualizationBaseHostConfiguration != nil { return map[string]interface{}{}, errVirtualizationBaseHostConfiguration } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Datacenter) { toSerialize["Datacenter"] = o.Datacenter @@ -178,6 +194,13 @@ func (o *VirtualizationEsxiHostConfiguration) UnmarshalJSON(data []byte) (err er "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -187,11 +210,23 @@ func (o *VirtualizationEsxiHostConfiguration) UnmarshalJSON(data []byte) (err er } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type VirtualizationEsxiHostConfigurationWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_virtualization_esxi_ova_custom_spec.go b/model_virtualization_esxi_ova_custom_spec.go index 553a202c9b..c59118418e 100644 --- a/model_virtualization_esxi_ova_custom_spec.go +++ b/model_virtualization_esxi_ova_custom_spec.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -84,6 +84,11 @@ func (o *VirtualizationEsxiOvaCustomSpec) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "virtualization.EsxiOvaCustomSpec" of the ClassId field. +func (o *VirtualizationEsxiOvaCustomSpec) GetDefaultClassId() interface{} { + return "virtualization.EsxiOvaCustomSpec" +} + // GetObjectType returns the ObjectType field value func (o *VirtualizationEsxiOvaCustomSpec) GetObjectType() string { if o == nil { @@ -108,6 +113,11 @@ func (o *VirtualizationEsxiOvaCustomSpec) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "virtualization.EsxiOvaCustomSpec" of the ObjectType field. +func (o *VirtualizationEsxiOvaCustomSpec) GetDefaultObjectType() interface{} { + return "virtualization.EsxiOvaCustomSpec" +} + // GetExtraConfig returns the ExtraConfig field value if set, zero value otherwise (both if not set or set to explicit null). func (o *VirtualizationEsxiOvaCustomSpec) GetExtraConfig() interface{} { if o == nil { @@ -129,7 +139,7 @@ func (o *VirtualizationEsxiOvaCustomSpec) GetExtraConfigOk() (*interface{}, bool // HasExtraConfig returns a boolean if a field has been set. func (o *VirtualizationEsxiOvaCustomSpec) HasExtraConfig() bool { - if o != nil && IsNil(o.ExtraConfig) { + if o != nil && !IsNil(o.ExtraConfig) { return true } @@ -162,7 +172,7 @@ func (o *VirtualizationEsxiOvaCustomSpec) GetOvaEnvSpecOk() (*interface{}, bool) // HasOvaEnvSpec returns a boolean if a field has been set. func (o *VirtualizationEsxiOvaCustomSpec) HasOvaEnvSpec() bool { - if o != nil && IsNil(o.OvaEnvSpec) { + if o != nil && !IsNil(o.OvaEnvSpec) { return true } @@ -192,7 +202,13 @@ func (o VirtualizationEsxiOvaCustomSpec) ToMap() (map[string]interface{}, error) if errVirtualizationBaseCustomSpec != nil { return map[string]interface{}{}, errVirtualizationBaseCustomSpec } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.ExtraConfig != nil { toSerialize["ExtraConfig"] = o.ExtraConfig @@ -217,6 +233,13 @@ func (o *VirtualizationEsxiOvaCustomSpec) UnmarshalJSON(data []byte) (err error) "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -226,11 +249,23 @@ func (o *VirtualizationEsxiOvaCustomSpec) UnmarshalJSON(data []byte) (err error) } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type VirtualizationEsxiOvaCustomSpecWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_virtualization_esxi_vm_compute_configuration.go b/model_virtualization_esxi_vm_compute_configuration.go index 10d3b43732..0aae06e2f2 100644 --- a/model_virtualization_esxi_vm_compute_configuration.go +++ b/model_virtualization_esxi_vm_compute_configuration.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -82,6 +82,11 @@ func (o *VirtualizationEsxiVmComputeConfiguration) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "virtualization.EsxiVmComputeConfiguration" of the ClassId field. +func (o *VirtualizationEsxiVmComputeConfiguration) GetDefaultClassId() interface{} { + return "virtualization.EsxiVmComputeConfiguration" +} + // GetObjectType returns the ObjectType field value func (o *VirtualizationEsxiVmComputeConfiguration) GetObjectType() string { if o == nil { @@ -106,6 +111,11 @@ func (o *VirtualizationEsxiVmComputeConfiguration) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "virtualization.EsxiVmComputeConfiguration" of the ObjectType field. +func (o *VirtualizationEsxiVmComputeConfiguration) GetDefaultObjectType() interface{} { + return "virtualization.EsxiVmComputeConfiguration" +} + // GetResourcePool returns the ResourcePool field value if set, zero value otherwise. func (o *VirtualizationEsxiVmComputeConfiguration) GetResourcePool() string { if o == nil || IsNil(o.ResourcePool) { @@ -156,7 +166,13 @@ func (o VirtualizationEsxiVmComputeConfiguration) ToMap() (map[string]interface{ if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.ResourcePool) { toSerialize["ResourcePool"] = o.ResourcePool @@ -178,6 +194,13 @@ func (o *VirtualizationEsxiVmComputeConfiguration) UnmarshalJSON(data []byte) (e "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -187,11 +210,23 @@ func (o *VirtualizationEsxiVmComputeConfiguration) UnmarshalJSON(data []byte) (e } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type VirtualizationEsxiVmComputeConfigurationWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_virtualization_esxi_vm_configuration.go b/model_virtualization_esxi_vm_configuration.go index 0712b578bf..69f4b6c083 100644 --- a/model_virtualization_esxi_vm_configuration.go +++ b/model_virtualization_esxi_vm_configuration.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -96,6 +96,11 @@ func (o *VirtualizationEsxiVmConfiguration) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "virtualization.EsxiVmConfiguration" of the ClassId field. +func (o *VirtualizationEsxiVmConfiguration) GetDefaultClassId() interface{} { + return "virtualization.EsxiVmConfiguration" +} + // GetObjectType returns the ObjectType field value func (o *VirtualizationEsxiVmConfiguration) GetObjectType() string { if o == nil { @@ -120,6 +125,11 @@ func (o *VirtualizationEsxiVmConfiguration) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "virtualization.EsxiVmConfiguration" of the ObjectType field. +func (o *VirtualizationEsxiVmConfiguration) GetDefaultObjectType() interface{} { + return "virtualization.EsxiVmConfiguration" +} + // GetAnnotation returns the Annotation field value if set, zero value otherwise. func (o *VirtualizationEsxiVmConfiguration) GetAnnotation() string { if o == nil || IsNil(o.Annotation) { @@ -502,7 +512,13 @@ func (o VirtualizationEsxiVmConfiguration) ToMap() (map[string]interface{}, erro if errVirtualizationBaseVmConfiguration != nil { return map[string]interface{}{}, errVirtualizationBaseVmConfiguration } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Annotation) { toSerialize["Annotation"] = o.Annotation @@ -551,6 +567,13 @@ func (o *VirtualizationEsxiVmConfiguration) UnmarshalJSON(data []byte) (err erro "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -560,11 +583,23 @@ func (o *VirtualizationEsxiVmConfiguration) UnmarshalJSON(data []byte) (err erro } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type VirtualizationEsxiVmConfigurationWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_virtualization_esxi_vm_network_configuration.go b/model_virtualization_esxi_vm_network_configuration.go index 831d1cd42f..c748c79e1d 100644 --- a/model_virtualization_esxi_vm_network_configuration.go +++ b/model_virtualization_esxi_vm_network_configuration.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -81,6 +81,11 @@ func (o *VirtualizationEsxiVmNetworkConfiguration) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "virtualization.EsxiVmNetworkConfiguration" of the ClassId field. +func (o *VirtualizationEsxiVmNetworkConfiguration) GetDefaultClassId() interface{} { + return "virtualization.EsxiVmNetworkConfiguration" +} + // GetObjectType returns the ObjectType field value func (o *VirtualizationEsxiVmNetworkConfiguration) GetObjectType() string { if o == nil { @@ -105,6 +110,11 @@ func (o *VirtualizationEsxiVmNetworkConfiguration) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "virtualization.EsxiVmNetworkConfiguration" of the ObjectType field. +func (o *VirtualizationEsxiVmNetworkConfiguration) GetDefaultObjectType() interface{} { + return "virtualization.EsxiVmNetworkConfiguration" +} + // GetInterfaces returns the Interfaces field value if set, zero value otherwise (both if not set or set to explicit null). func (o *VirtualizationEsxiVmNetworkConfiguration) GetInterfaces() []VirtualizationNetworkInterface { if o == nil { @@ -126,7 +136,7 @@ func (o *VirtualizationEsxiVmNetworkConfiguration) GetInterfacesOk() ([]Virtuali // HasInterfaces returns a boolean if a field has been set. func (o *VirtualizationEsxiVmNetworkConfiguration) HasInterfaces() bool { - if o != nil && IsNil(o.Interfaces) { + if o != nil && !IsNil(o.Interfaces) { return true } @@ -156,7 +166,13 @@ func (o VirtualizationEsxiVmNetworkConfiguration) ToMap() (map[string]interface{ if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.Interfaces != nil { toSerialize["Interfaces"] = o.Interfaces @@ -178,6 +194,13 @@ func (o *VirtualizationEsxiVmNetworkConfiguration) UnmarshalJSON(data []byte) (e "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -187,11 +210,23 @@ func (o *VirtualizationEsxiVmNetworkConfiguration) UnmarshalJSON(data []byte) (e } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type VirtualizationEsxiVmNetworkConfigurationWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_virtualization_esxi_vm_storage_configuration.go b/model_virtualization_esxi_vm_storage_configuration.go index 943c0615aa..f0662f6a97 100644 --- a/model_virtualization_esxi_vm_storage_configuration.go +++ b/model_virtualization_esxi_vm_storage_configuration.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -83,6 +83,11 @@ func (o *VirtualizationEsxiVmStorageConfiguration) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "virtualization.EsxiVmStorageConfiguration" of the ClassId field. +func (o *VirtualizationEsxiVmStorageConfiguration) GetDefaultClassId() interface{} { + return "virtualization.EsxiVmStorageConfiguration" +} + // GetObjectType returns the ObjectType field value func (o *VirtualizationEsxiVmStorageConfiguration) GetObjectType() string { if o == nil { @@ -107,6 +112,11 @@ func (o *VirtualizationEsxiVmStorageConfiguration) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "virtualization.EsxiVmStorageConfiguration" of the ObjectType field. +func (o *VirtualizationEsxiVmStorageConfiguration) GetDefaultObjectType() interface{} { + return "virtualization.EsxiVmStorageConfiguration" +} + // GetDatastore returns the Datastore field value if set, zero value otherwise. func (o *VirtualizationEsxiVmStorageConfiguration) GetDatastore() string { if o == nil || IsNil(o.Datastore) { @@ -160,7 +170,7 @@ func (o *VirtualizationEsxiVmStorageConfiguration) GetDisksOk() ([]Virtualizatio // HasDisks returns a boolean if a field has been set. func (o *VirtualizationEsxiVmStorageConfiguration) HasDisks() bool { - if o != nil && IsNil(o.Disks) { + if o != nil && !IsNil(o.Disks) { return true } @@ -190,7 +200,13 @@ func (o VirtualizationEsxiVmStorageConfiguration) ToMap() (map[string]interface{ if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Datastore) { toSerialize["Datastore"] = o.Datastore @@ -215,6 +231,13 @@ func (o *VirtualizationEsxiVmStorageConfiguration) UnmarshalJSON(data []byte) (e "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -224,11 +247,23 @@ func (o *VirtualizationEsxiVmStorageConfiguration) UnmarshalJSON(data []byte) (e } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type VirtualizationEsxiVmStorageConfigurationWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_virtualization_guest_info.go b/model_virtualization_guest_info.go index 9673fba71e..32a62c1286 100644 --- a/model_virtualization_guest_info.go +++ b/model_virtualization_guest_info.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -88,6 +88,11 @@ func (o *VirtualizationGuestInfo) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "virtualization.GuestInfo" of the ClassId field. +func (o *VirtualizationGuestInfo) GetDefaultClassId() interface{} { + return "virtualization.GuestInfo" +} + // GetObjectType returns the ObjectType field value func (o *VirtualizationGuestInfo) GetObjectType() string { if o == nil { @@ -112,6 +117,11 @@ func (o *VirtualizationGuestInfo) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "virtualization.GuestInfo" of the ObjectType field. +func (o *VirtualizationGuestInfo) GetDefaultObjectType() interface{} { + return "virtualization.GuestInfo" +} + // GetHostname returns the Hostname field value if set, zero value otherwise. func (o *VirtualizationGuestInfo) GetHostname() string { if o == nil || IsNil(o.Hostname) { @@ -258,7 +268,13 @@ func (o VirtualizationGuestInfo) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Hostname) { toSerialize["Hostname"] = o.Hostname @@ -289,6 +305,13 @@ func (o *VirtualizationGuestInfo) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -298,11 +321,23 @@ func (o *VirtualizationGuestInfo) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type VirtualizationGuestInfoWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_virtualization_host.go b/model_virtualization_host.go index 9fd27b4d6f..28ddf21763 100644 --- a/model_virtualization_host.go +++ b/model_virtualization_host.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -112,6 +112,11 @@ func (o *VirtualizationHost) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "virtualization.Host" of the ClassId field. +func (o *VirtualizationHost) GetDefaultClassId() interface{} { + return "virtualization.Host" +} + // GetObjectType returns the ObjectType field value func (o *VirtualizationHost) GetObjectType() string { if o == nil { @@ -136,6 +141,11 @@ func (o *VirtualizationHost) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "virtualization.Host" of the ObjectType field. +func (o *VirtualizationHost) GetDefaultObjectType() interface{} { + return "virtualization.Host" +} + // GetAction returns the Action field value if set, zero value otherwise. func (o *VirtualizationHost) GetAction() string { if o == nil || IsNil(o.Action) { @@ -646,7 +656,13 @@ func (o VirtualizationHost) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Action) { toSerialize["Action"] = o.Action @@ -707,6 +723,13 @@ func (o *VirtualizationHost) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -716,11 +739,23 @@ func (o *VirtualizationHost) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type VirtualizationHostWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_virtualization_host_list.go b/model_virtualization_host_list.go index 7e5a08fafd..2e142f7ba9 100644 --- a/model_virtualization_host_list.go +++ b/model_virtualization_host_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *VirtualizationHostList) GetResultsOk() ([]VirtualizationHost, bool) { // HasResults returns a boolean if a field has been set. func (o *VirtualizationHostList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *VirtualizationHostList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *VirtualizationHostList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type VirtualizationHostListWithoutEmbeddedStruct struct { // The total number of 'virtualization.Host' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_virtualization_host_response.go b/model_virtualization_host_response.go index 8dac441966..1b07f34687 100644 --- a/model_virtualization_host_response.go +++ b/model_virtualization_host_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_virtualization_ip_address_info.go b/model_virtualization_ip_address_info.go index 293ef5e9eb..2db63c17a9 100644 --- a/model_virtualization_ip_address_info.go +++ b/model_virtualization_ip_address_info.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -86,6 +86,11 @@ func (o *VirtualizationIpAddressInfo) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "virtualization.IpAddressInfo" of the ClassId field. +func (o *VirtualizationIpAddressInfo) GetDefaultClassId() interface{} { + return "virtualization.IpAddressInfo" +} + // GetObjectType returns the ObjectType field value func (o *VirtualizationIpAddressInfo) GetObjectType() string { if o == nil { @@ -110,6 +115,11 @@ func (o *VirtualizationIpAddressInfo) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "virtualization.IpAddressInfo" of the ObjectType field. +func (o *VirtualizationIpAddressInfo) GetDefaultObjectType() interface{} { + return "virtualization.IpAddressInfo" +} + // GetGatewayIp returns the GatewayIp field value if set, zero value otherwise. func (o *VirtualizationIpAddressInfo) GetGatewayIp() string { if o == nil || IsNil(o.GatewayIp) { @@ -224,7 +234,13 @@ func (o VirtualizationIpAddressInfo) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.GatewayIp) { toSerialize["GatewayIp"] = o.GatewayIp @@ -252,6 +268,13 @@ func (o *VirtualizationIpAddressInfo) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -261,11 +284,23 @@ func (o *VirtualizationIpAddressInfo) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type VirtualizationIpAddressInfoWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_virtualization_memory_capacity.go b/model_virtualization_memory_capacity.go index 5709f889dd..d963dece72 100644 --- a/model_virtualization_memory_capacity.go +++ b/model_virtualization_memory_capacity.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -86,6 +86,11 @@ func (o *VirtualizationMemoryCapacity) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "virtualization.MemoryCapacity" of the ClassId field. +func (o *VirtualizationMemoryCapacity) GetDefaultClassId() interface{} { + return "virtualization.MemoryCapacity" +} + // GetObjectType returns the ObjectType field value func (o *VirtualizationMemoryCapacity) GetObjectType() string { if o == nil { @@ -110,6 +115,11 @@ func (o *VirtualizationMemoryCapacity) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "virtualization.MemoryCapacity" of the ObjectType field. +func (o *VirtualizationMemoryCapacity) GetDefaultObjectType() interface{} { + return "virtualization.MemoryCapacity" +} + // GetCapacity returns the Capacity field value if set, zero value otherwise. func (o *VirtualizationMemoryCapacity) GetCapacity() int64 { if o == nil || IsNil(o.Capacity) { @@ -224,7 +234,13 @@ func (o VirtualizationMemoryCapacity) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Capacity) { toSerialize["Capacity"] = o.Capacity @@ -252,6 +268,13 @@ func (o *VirtualizationMemoryCapacity) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -261,11 +284,23 @@ func (o *VirtualizationMemoryCapacity) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type VirtualizationMemoryCapacityWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_virtualization_network_interface.go b/model_virtualization_network_interface.go index 11a34bb2de..3ed57a07fb 100644 --- a/model_virtualization_network_interface.go +++ b/model_virtualization_network_interface.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -41,7 +41,7 @@ type VirtualizationNetworkInterface struct { // Set to true, if IPv6 address should be allocated for the NIC. Ipv6Address *bool `json:"Ipv6Address,omitempty"` // Virtual machine network mac address. - MacAddress *string `json:"MacAddress,omitempty"` + MacAddress *string `json:"MacAddress,omitempty" validate:"regexp=^$|^([0-9A-Fa-f]{2}[:-]){5}([0-9A-Fa-f]{2})$"` // Name of the network interface. This may be different from guest operating system assigned. Name *string `json:"Name,omitempty"` // Identity of the network to which this network interface belongs. @@ -118,6 +118,11 @@ func (o *VirtualizationNetworkInterface) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "virtualization.NetworkInterface" of the ClassId field. +func (o *VirtualizationNetworkInterface) GetDefaultClassId() interface{} { + return "virtualization.NetworkInterface" +} + // GetObjectType returns the ObjectType field value func (o *VirtualizationNetworkInterface) GetObjectType() string { if o == nil { @@ -142,6 +147,11 @@ func (o *VirtualizationNetworkInterface) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "virtualization.NetworkInterface" of the ObjectType field. +func (o *VirtualizationNetworkInterface) GetDefaultObjectType() interface{} { + return "virtualization.NetworkInterface" +} + // GetAdaptorType returns the AdaptorType field value if set, zero value otherwise. func (o *VirtualizationNetworkInterface) GetAdaptorType() string { if o == nil || IsNil(o.AdaptorType) { @@ -579,7 +589,7 @@ func (o *VirtualizationNetworkInterface) GetSecurityGroupsOk() ([]string, bool) // HasSecurityGroups returns a boolean if a field has been set. func (o *VirtualizationNetworkInterface) HasSecurityGroups() bool { - if o != nil && IsNil(o.SecurityGroups) { + if o != nil && !IsNil(o.SecurityGroups) { return true } @@ -612,7 +622,7 @@ func (o *VirtualizationNetworkInterface) GetStaticIpAddressOk() ([]Virtualizatio // HasStaticIpAddress returns a boolean if a field has been set. func (o *VirtualizationNetworkInterface) HasStaticIpAddress() bool { - if o != nil && IsNil(o.StaticIpAddress) { + if o != nil && !IsNil(o.StaticIpAddress) { return true } @@ -674,7 +684,13 @@ func (o VirtualizationNetworkInterface) ToMap() (map[string]interface{}, error) if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.AdaptorType) { toSerialize["AdaptorType"] = o.AdaptorType @@ -741,6 +757,13 @@ func (o *VirtualizationNetworkInterface) UnmarshalJSON(data []byte) (err error) "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -750,11 +773,23 @@ func (o *VirtualizationNetworkInterface) UnmarshalJSON(data []byte) (err error) } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type VirtualizationNetworkInterfaceWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` @@ -773,7 +808,7 @@ func (o *VirtualizationNetworkInterface) UnmarshalJSON(data []byte) (err error) // Set to true, if IPv6 address should be allocated for the NIC. Ipv6Address *bool `json:"Ipv6Address,omitempty"` // Virtual machine network mac address. - MacAddress *string `json:"MacAddress,omitempty"` + MacAddress *string `json:"MacAddress,omitempty" validate:"regexp=^$|^([0-9A-Fa-f]{2}[:-]){5}([0-9A-Fa-f]{2})$"` // Name of the network interface. This may be different from guest operating system assigned. Name *string `json:"Name,omitempty"` // Identity of the network to which this network interface belongs. diff --git a/model_virtualization_product_info.go b/model_virtualization_product_info.go index 6895b816e3..eebde041fc 100644 --- a/model_virtualization_product_info.go +++ b/model_virtualization_product_info.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -90,6 +90,11 @@ func (o *VirtualizationProductInfo) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "virtualization.ProductInfo" of the ClassId field. +func (o *VirtualizationProductInfo) GetDefaultClassId() interface{} { + return "virtualization.ProductInfo" +} + // GetObjectType returns the ObjectType field value func (o *VirtualizationProductInfo) GetObjectType() string { if o == nil { @@ -114,6 +119,11 @@ func (o *VirtualizationProductInfo) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "virtualization.ProductInfo" of the ObjectType field. +func (o *VirtualizationProductInfo) GetDefaultObjectType() interface{} { + return "virtualization.ProductInfo" +} + // GetBuild returns the Build field value if set, zero value otherwise. func (o *VirtualizationProductInfo) GetBuild() string { if o == nil || IsNil(o.Build) { @@ -292,7 +302,13 @@ func (o VirtualizationProductInfo) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Build) { toSerialize["Build"] = o.Build @@ -326,6 +342,13 @@ func (o *VirtualizationProductInfo) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -335,11 +358,23 @@ func (o *VirtualizationProductInfo) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type VirtualizationProductInfoWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_virtualization_storage_capacity.go b/model_virtualization_storage_capacity.go index c429e23a69..e3e76dfaff 100644 --- a/model_virtualization_storage_capacity.go +++ b/model_virtualization_storage_capacity.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -86,6 +86,11 @@ func (o *VirtualizationStorageCapacity) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "virtualization.StorageCapacity" of the ClassId field. +func (o *VirtualizationStorageCapacity) GetDefaultClassId() interface{} { + return "virtualization.StorageCapacity" +} + // GetObjectType returns the ObjectType field value func (o *VirtualizationStorageCapacity) GetObjectType() string { if o == nil { @@ -110,6 +115,11 @@ func (o *VirtualizationStorageCapacity) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "virtualization.StorageCapacity" of the ObjectType field. +func (o *VirtualizationStorageCapacity) GetDefaultObjectType() interface{} { + return "virtualization.StorageCapacity" +} + // GetCapacity returns the Capacity field value if set, zero value otherwise. func (o *VirtualizationStorageCapacity) GetCapacity() int64 { if o == nil || IsNil(o.Capacity) { @@ -224,7 +234,13 @@ func (o VirtualizationStorageCapacity) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Capacity) { toSerialize["Capacity"] = o.Capacity @@ -252,6 +268,13 @@ func (o *VirtualizationStorageCapacity) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -261,11 +284,23 @@ func (o *VirtualizationStorageCapacity) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type VirtualizationStorageCapacityWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_virtualization_virtual_machine.go b/model_virtualization_virtual_machine.go index cca1142ad3..6b7966e389 100644 --- a/model_virtualization_virtual_machine.go +++ b/model_virtualization_virtual_machine.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -134,6 +134,11 @@ func (o *VirtualizationVirtualMachine) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "virtualization.VirtualMachine" of the ClassId field. +func (o *VirtualizationVirtualMachine) GetDefaultClassId() interface{} { + return "virtualization.VirtualMachine" +} + // GetObjectType returns the ObjectType field value func (o *VirtualizationVirtualMachine) GetObjectType() string { if o == nil { @@ -158,6 +163,11 @@ func (o *VirtualizationVirtualMachine) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "virtualization.VirtualMachine" of the ObjectType field. +func (o *VirtualizationVirtualMachine) GetDefaultObjectType() interface{} { + return "virtualization.VirtualMachine" +} + // GetAction returns the Action field value if set, zero value otherwise. func (o *VirtualizationVirtualMachine) GetAction() string { if o == nil || IsNil(o.Action) { @@ -254,7 +264,7 @@ func (o *VirtualizationVirtualMachine) GetAffinitySelectorsOk() ([]InfraMetaData // HasAffinitySelectors returns a boolean if a field has been set. func (o *VirtualizationVirtualMachine) HasAffinitySelectors() bool { - if o != nil && IsNil(o.AffinitySelectors) { + if o != nil && !IsNil(o.AffinitySelectors) { return true } @@ -287,7 +297,7 @@ func (o *VirtualizationVirtualMachine) GetAntiAffinitySelectorsOk() ([]InfraMeta // HasAntiAffinitySelectors returns a boolean if a field has been set. func (o *VirtualizationVirtualMachine) HasAntiAffinitySelectors() bool { - if o != nil && IsNil(o.AntiAffinitySelectors) { + if o != nil && !IsNil(o.AntiAffinitySelectors) { return true } @@ -459,7 +469,7 @@ func (o *VirtualizationVirtualMachine) GetDiskOk() ([]VirtualizationVirtualMachi // HasDisk returns a boolean if a field has been set. func (o *VirtualizationVirtualMachine) HasDisk() bool { - if o != nil && IsNil(o.Disk) { + if o != nil && !IsNil(o.Disk) { return true } @@ -524,7 +534,7 @@ func (o *VirtualizationVirtualMachine) GetGpuConfigsOk() ([]InfraBaseGpuConfigur // HasGpuConfigs returns a boolean if a field has been set. func (o *VirtualizationVirtualMachine) HasGpuConfigs() bool { - if o != nil && IsNil(o.GpuConfigs) { + if o != nil && !IsNil(o.GpuConfigs) { return true } @@ -653,7 +663,7 @@ func (o *VirtualizationVirtualMachine) GetInterfacesOk() ([]VirtualizationNetwor // HasInterfaces returns a boolean if a field has been set. func (o *VirtualizationVirtualMachine) HasInterfaces() bool { - if o != nil && IsNil(o.Interfaces) { + if o != nil && !IsNil(o.Interfaces) { return true } @@ -686,7 +696,7 @@ func (o *VirtualizationVirtualMachine) GetLabelsOk() ([]InfraMetaData, bool) { // HasLabels returns a boolean if a field has been set. func (o *VirtualizationVirtualMachine) HasLabels() bool { - if o != nil && IsNil(o.Labels) { + if o != nil && !IsNil(o.Labels) { return true } @@ -1102,7 +1112,13 @@ func (o VirtualizationVirtualMachine) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Action) { toSerialize["Action"] = o.Action @@ -1199,6 +1215,13 @@ func (o *VirtualizationVirtualMachine) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -1208,11 +1231,23 @@ func (o *VirtualizationVirtualMachine) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type VirtualizationVirtualMachineWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_virtualization_virtual_machine_disk.go b/model_virtualization_virtual_machine_disk.go index 62f68df203..e5ac5462cb 100644 --- a/model_virtualization_virtual_machine_disk.go +++ b/model_virtualization_virtual_machine_disk.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -98,6 +98,11 @@ func (o *VirtualizationVirtualMachineDisk) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "virtualization.VirtualMachineDisk" of the ClassId field. +func (o *VirtualizationVirtualMachineDisk) GetDefaultClassId() interface{} { + return "virtualization.VirtualMachineDisk" +} + // GetObjectType returns the ObjectType field value func (o *VirtualizationVirtualMachineDisk) GetObjectType() string { if o == nil { @@ -122,6 +127,11 @@ func (o *VirtualizationVirtualMachineDisk) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "virtualization.VirtualMachineDisk" of the ObjectType field. +func (o *VirtualizationVirtualMachineDisk) GetDefaultObjectType() interface{} { + return "virtualization.VirtualMachineDisk" +} + // GetBus returns the Bus field value if set, zero value otherwise. func (o *VirtualizationVirtualMachineDisk) GetBus() string { if o == nil || IsNil(o.Bus) { @@ -300,7 +310,13 @@ func (o VirtualizationVirtualMachineDisk) ToMap() (map[string]interface{}, error if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Bus) { toSerialize["Bus"] = o.Bus @@ -334,6 +350,13 @@ func (o *VirtualizationVirtualMachineDisk) UnmarshalJSON(data []byte) (err error "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -343,11 +366,23 @@ func (o *VirtualizationVirtualMachineDisk) UnmarshalJSON(data []byte) (err error } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type VirtualizationVirtualMachineDiskWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_virtualization_virtual_machine_list.go b/model_virtualization_virtual_machine_list.go index 9c7c54b98b..6650ce9ff4 100644 --- a/model_virtualization_virtual_machine_list.go +++ b/model_virtualization_virtual_machine_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *VirtualizationVirtualMachineList) GetResultsOk() ([]VirtualizationVirtu // HasResults returns a boolean if a field has been set. func (o *VirtualizationVirtualMachineList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *VirtualizationVirtualMachineList) UnmarshalJSON(data []byte) (err error "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *VirtualizationVirtualMachineList) UnmarshalJSON(data []byte) (err error } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type VirtualizationVirtualMachineListWithoutEmbeddedStruct struct { // The total number of 'virtualization.VirtualMachine' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_virtualization_virtual_machine_relationship.go b/model_virtualization_virtual_machine_relationship.go index eb37344a88..3a6d5a0fa8 100644 --- a/model_virtualization_virtual_machine_relationship.go +++ b/model_virtualization_virtual_machine_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_virtualization_virtual_machine_response.go b/model_virtualization_virtual_machine_response.go index c23291071c..c7e3fedf17 100644 --- a/model_virtualization_virtual_machine_response.go +++ b/model_virtualization_virtual_machine_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_virtualization_vm_esxi_disk.go b/model_virtualization_vm_esxi_disk.go index 98c68e7091..8c472ec846 100644 --- a/model_virtualization_vm_esxi_disk.go +++ b/model_virtualization_vm_esxi_disk.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -92,6 +92,11 @@ func (o *VirtualizationVmEsxiDisk) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "virtualization.VmEsxiDisk" of the ClassId field. +func (o *VirtualizationVmEsxiDisk) GetDefaultClassId() interface{} { + return "virtualization.VmEsxiDisk" +} + // GetObjectType returns the ObjectType field value func (o *VirtualizationVmEsxiDisk) GetObjectType() string { if o == nil { @@ -116,6 +121,11 @@ func (o *VirtualizationVmEsxiDisk) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "virtualization.VmEsxiDisk" of the ObjectType field. +func (o *VirtualizationVmEsxiDisk) GetDefaultObjectType() interface{} { + return "virtualization.VmEsxiDisk" +} + // GetCapacity returns the Capacity field value if set, zero value otherwise. func (o *VirtualizationVmEsxiDisk) GetCapacity() string { if o == nil || IsNil(o.Capacity) { @@ -326,7 +336,13 @@ func (o VirtualizationVmEsxiDisk) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Capacity) { toSerialize["Capacity"] = o.Capacity @@ -363,6 +379,13 @@ func (o *VirtualizationVmEsxiDisk) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -372,11 +395,23 @@ func (o *VirtualizationVmEsxiDisk) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type VirtualizationVmEsxiDiskWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_virtualization_vmware_cluster.go b/model_virtualization_vmware_cluster.go index 1c18311bca..e37a5914ed 100644 --- a/model_virtualization_vmware_cluster.go +++ b/model_virtualization_vmware_cluster.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -92,6 +92,11 @@ func (o *VirtualizationVmwareCluster) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "virtualization.VmwareCluster" of the ClassId field. +func (o *VirtualizationVmwareCluster) GetDefaultClassId() interface{} { + return "virtualization.VmwareCluster" +} + // GetObjectType returns the ObjectType field value func (o *VirtualizationVmwareCluster) GetObjectType() string { if o == nil { @@ -116,6 +121,11 @@ func (o *VirtualizationVmwareCluster) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "virtualization.VmwareCluster" of the ObjectType field. +func (o *VirtualizationVmwareCluster) GetDefaultObjectType() interface{} { + return "virtualization.VmwareCluster" +} + // GetCpuOverCommitment returns the CpuOverCommitment field value if set, zero value otherwise. func (o *VirtualizationVmwareCluster) GetCpuOverCommitment() int64 { if o == nil || IsNil(o.CpuOverCommitment) { @@ -348,7 +358,13 @@ func (o VirtualizationVmwareCluster) ToMap() (map[string]interface{}, error) { if errVirtualizationBaseCluster != nil { return map[string]interface{}{}, errVirtualizationBaseCluster } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.CpuOverCommitment) { toSerialize["CpuOverCommitment"] = o.CpuOverCommitment @@ -385,6 +401,13 @@ func (o *VirtualizationVmwareCluster) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -394,11 +417,23 @@ func (o *VirtualizationVmwareCluster) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type VirtualizationVmwareClusterWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_virtualization_vmware_cluster_list.go b/model_virtualization_vmware_cluster_list.go index f3b8e1ee71..2ad06e4222 100644 --- a/model_virtualization_vmware_cluster_list.go +++ b/model_virtualization_vmware_cluster_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *VirtualizationVmwareClusterList) GetResultsOk() ([]VirtualizationVmware // HasResults returns a boolean if a field has been set. func (o *VirtualizationVmwareClusterList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *VirtualizationVmwareClusterList) UnmarshalJSON(data []byte) (err error) "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *VirtualizationVmwareClusterList) UnmarshalJSON(data []byte) (err error) } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type VirtualizationVmwareClusterListWithoutEmbeddedStruct struct { // The total number of 'virtualization.VmwareCluster' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_virtualization_vmware_cluster_relationship.go b/model_virtualization_vmware_cluster_relationship.go index 3515c5637c..afec6390a7 100644 --- a/model_virtualization_vmware_cluster_relationship.go +++ b/model_virtualization_vmware_cluster_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_virtualization_vmware_cluster_response.go b/model_virtualization_vmware_cluster_response.go index cb2e62fab4..eee0c6ad3d 100644 --- a/model_virtualization_vmware_cluster_response.go +++ b/model_virtualization_vmware_cluster_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_virtualization_vmware_datacenter.go b/model_virtualization_vmware_datacenter.go index dc5fb29b10..06f556c3e8 100644 --- a/model_virtualization_vmware_datacenter.go +++ b/model_virtualization_vmware_datacenter.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -102,6 +102,11 @@ func (o *VirtualizationVmwareDatacenter) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "virtualization.VmwareDatacenter" of the ClassId field. +func (o *VirtualizationVmwareDatacenter) GetDefaultClassId() interface{} { + return "virtualization.VmwareDatacenter" +} + // GetObjectType returns the ObjectType field value func (o *VirtualizationVmwareDatacenter) GetObjectType() string { if o == nil { @@ -126,6 +131,11 @@ func (o *VirtualizationVmwareDatacenter) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "virtualization.VmwareDatacenter" of the ObjectType field. +func (o *VirtualizationVmwareDatacenter) GetDefaultObjectType() interface{} { + return "virtualization.VmwareDatacenter" +} + // GetClusterCount returns the ClusterCount field value if set, zero value otherwise. func (o *VirtualizationVmwareDatacenter) GetClusterCount() int64 { if o == nil || IsNil(o.ClusterCount) { @@ -550,7 +560,13 @@ func (o VirtualizationVmwareDatacenter) ToMap() (map[string]interface{}, error) if errVirtualizationBaseDatacenter != nil { return map[string]interface{}{}, errVirtualizationBaseDatacenter } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.ClusterCount) { toSerialize["ClusterCount"] = o.ClusterCount @@ -605,6 +621,13 @@ func (o *VirtualizationVmwareDatacenter) UnmarshalJSON(data []byte) (err error) "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -614,11 +637,23 @@ func (o *VirtualizationVmwareDatacenter) UnmarshalJSON(data []byte) (err error) } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type VirtualizationVmwareDatacenterWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_virtualization_vmware_datacenter_list.go b/model_virtualization_vmware_datacenter_list.go index 7b751eb612..96ccebdf74 100644 --- a/model_virtualization_vmware_datacenter_list.go +++ b/model_virtualization_vmware_datacenter_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *VirtualizationVmwareDatacenterList) GetResultsOk() ([]VirtualizationVmw // HasResults returns a boolean if a field has been set. func (o *VirtualizationVmwareDatacenterList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *VirtualizationVmwareDatacenterList) UnmarshalJSON(data []byte) (err err "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *VirtualizationVmwareDatacenterList) UnmarshalJSON(data []byte) (err err } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type VirtualizationVmwareDatacenterListWithoutEmbeddedStruct struct { // The total number of 'virtualization.VmwareDatacenter' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_virtualization_vmware_datacenter_relationship.go b/model_virtualization_vmware_datacenter_relationship.go index d8cb5a9a29..8b790cf492 100644 --- a/model_virtualization_vmware_datacenter_relationship.go +++ b/model_virtualization_vmware_datacenter_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_virtualization_vmware_datacenter_response.go b/model_virtualization_vmware_datacenter_response.go index 521748fa9e..69e2becdb5 100644 --- a/model_virtualization_vmware_datacenter_response.go +++ b/model_virtualization_vmware_datacenter_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_virtualization_vmware_datastore.go b/model_virtualization_vmware_datastore.go index 5068ccea17..53d62c334e 100644 --- a/model_virtualization_vmware_datastore.go +++ b/model_virtualization_vmware_datastore.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -111,6 +111,11 @@ func (o *VirtualizationVmwareDatastore) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "virtualization.VmwareDatastore" of the ClassId field. +func (o *VirtualizationVmwareDatastore) GetDefaultClassId() interface{} { + return "virtualization.VmwareDatastore" +} + // GetObjectType returns the ObjectType field value func (o *VirtualizationVmwareDatastore) GetObjectType() string { if o == nil { @@ -135,6 +140,11 @@ func (o *VirtualizationVmwareDatastore) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "virtualization.VmwareDatastore" of the ObjectType field. +func (o *VirtualizationVmwareDatastore) GetDefaultObjectType() interface{} { + return "virtualization.VmwareDatastore" +} + // GetAccessible returns the Accessible field value if set, zero value otherwise. func (o *VirtualizationVmwareDatastore) GetAccessible() bool { if o == nil || IsNil(o.Accessible) { @@ -487,7 +497,7 @@ func (o *VirtualizationVmwareDatastore) GetClustersOk() ([]VirtualizationVmwareC // HasClusters returns a boolean if a field has been set. func (o *VirtualizationVmwareDatastore) HasClusters() bool { - if o != nil && IsNil(o.Clusters) { + if o != nil && !IsNil(o.Clusters) { return true } @@ -606,7 +616,7 @@ func (o *VirtualizationVmwareDatastore) GetHostsOk() ([]VirtualizationVmwareHost // HasHosts returns a boolean if a field has been set. func (o *VirtualizationVmwareDatastore) HasHosts() bool { - if o != nil && IsNil(o.Hosts) { + if o != nil && !IsNil(o.Hosts) { return true } @@ -636,7 +646,13 @@ func (o VirtualizationVmwareDatastore) ToMap() (map[string]interface{}, error) { if errVirtualizationBaseDatastore != nil { return map[string]interface{}{}, errVirtualizationBaseDatastore } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Accessible) { toSerialize["Accessible"] = o.Accessible @@ -697,6 +713,13 @@ func (o *VirtualizationVmwareDatastore) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -706,11 +729,23 @@ func (o *VirtualizationVmwareDatastore) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type VirtualizationVmwareDatastoreWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_virtualization_vmware_datastore_cluster.go b/model_virtualization_vmware_datastore_cluster.go index 7e6a58af9b..8f5b757acb 100644 --- a/model_virtualization_vmware_datastore_cluster.go +++ b/model_virtualization_vmware_datastore_cluster.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -121,6 +121,11 @@ func (o *VirtualizationVmwareDatastoreCluster) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "virtualization.VmwareDatastoreCluster" of the ClassId field. +func (o *VirtualizationVmwareDatastoreCluster) GetDefaultClassId() interface{} { + return "virtualization.VmwareDatastoreCluster" +} + // GetObjectType returns the ObjectType field value func (o *VirtualizationVmwareDatastoreCluster) GetObjectType() string { if o == nil { @@ -145,6 +150,11 @@ func (o *VirtualizationVmwareDatastoreCluster) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "virtualization.VmwareDatastoreCluster" of the ObjectType field. +func (o *VirtualizationVmwareDatastoreCluster) GetDefaultObjectType() interface{} { + return "virtualization.VmwareDatastoreCluster" +} + // GetAutomationLevel returns the AutomationLevel field value if set, zero value otherwise. func (o *VirtualizationVmwareDatastoreCluster) GetAutomationLevel() string { if o == nil || IsNil(o.AutomationLevel) { @@ -750,7 +760,13 @@ func (o VirtualizationVmwareDatastoreCluster) ToMap() (map[string]interface{}, e if errVirtualizationBaseDatastoreCluster != nil { return map[string]interface{}{}, errVirtualizationBaseDatastoreCluster } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.AutomationLevel) { toSerialize["AutomationLevel"] = o.AutomationLevel @@ -823,6 +839,13 @@ func (o *VirtualizationVmwareDatastoreCluster) UnmarshalJSON(data []byte) (err e "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -832,11 +855,23 @@ func (o *VirtualizationVmwareDatastoreCluster) UnmarshalJSON(data []byte) (err e } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type VirtualizationVmwareDatastoreClusterWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_virtualization_vmware_datastore_cluster_list.go b/model_virtualization_vmware_datastore_cluster_list.go index b7d9f03e5b..dceaccfd32 100644 --- a/model_virtualization_vmware_datastore_cluster_list.go +++ b/model_virtualization_vmware_datastore_cluster_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *VirtualizationVmwareDatastoreClusterList) GetResultsOk() ([]Virtualizat // HasResults returns a boolean if a field has been set. func (o *VirtualizationVmwareDatastoreClusterList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *VirtualizationVmwareDatastoreClusterList) UnmarshalJSON(data []byte) (e "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *VirtualizationVmwareDatastoreClusterList) UnmarshalJSON(data []byte) (e } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type VirtualizationVmwareDatastoreClusterListWithoutEmbeddedStruct struct { // The total number of 'virtualization.VmwareDatastoreCluster' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_virtualization_vmware_datastore_cluster_relationship.go b/model_virtualization_vmware_datastore_cluster_relationship.go index 34276c53c8..b985d33f6e 100644 --- a/model_virtualization_vmware_datastore_cluster_relationship.go +++ b/model_virtualization_vmware_datastore_cluster_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_virtualization_vmware_datastore_cluster_response.go b/model_virtualization_vmware_datastore_cluster_response.go index 52304b4fff..0e7135c916 100644 --- a/model_virtualization_vmware_datastore_cluster_response.go +++ b/model_virtualization_vmware_datastore_cluster_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_virtualization_vmware_datastore_list.go b/model_virtualization_vmware_datastore_list.go index 55c06570d2..dc94081764 100644 --- a/model_virtualization_vmware_datastore_list.go +++ b/model_virtualization_vmware_datastore_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *VirtualizationVmwareDatastoreList) GetResultsOk() ([]VirtualizationVmwa // HasResults returns a boolean if a field has been set. func (o *VirtualizationVmwareDatastoreList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *VirtualizationVmwareDatastoreList) UnmarshalJSON(data []byte) (err erro "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *VirtualizationVmwareDatastoreList) UnmarshalJSON(data []byte) (err erro } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type VirtualizationVmwareDatastoreListWithoutEmbeddedStruct struct { // The total number of 'virtualization.VmwareDatastore' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_virtualization_vmware_datastore_relationship.go b/model_virtualization_vmware_datastore_relationship.go index da44fc422a..580ff7a699 100644 --- a/model_virtualization_vmware_datastore_relationship.go +++ b/model_virtualization_vmware_datastore_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_virtualization_vmware_datastore_response.go b/model_virtualization_vmware_datastore_response.go index 53144bb1b4..abd699b5a0 100644 --- a/model_virtualization_vmware_datastore_response.go +++ b/model_virtualization_vmware_datastore_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_virtualization_vmware_discovery_protocol.go b/model_virtualization_vmware_discovery_protocol.go index 73e1f0eb27..b959fe339b 100644 --- a/model_virtualization_vmware_discovery_protocol.go +++ b/model_virtualization_vmware_discovery_protocol.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -84,6 +84,11 @@ func (o *VirtualizationVmwareDiscoveryProtocol) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "virtualization.VmwareDiscoveryProtocol" of the ClassId field. +func (o *VirtualizationVmwareDiscoveryProtocol) GetDefaultClassId() interface{} { + return "virtualization.VmwareDiscoveryProtocol" +} + // GetObjectType returns the ObjectType field value func (o *VirtualizationVmwareDiscoveryProtocol) GetObjectType() string { if o == nil { @@ -108,6 +113,11 @@ func (o *VirtualizationVmwareDiscoveryProtocol) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "virtualization.VmwareDiscoveryProtocol" of the ObjectType field. +func (o *VirtualizationVmwareDiscoveryProtocol) GetDefaultObjectType() interface{} { + return "virtualization.VmwareDiscoveryProtocol" +} + // GetOperation returns the Operation field value if set, zero value otherwise. func (o *VirtualizationVmwareDiscoveryProtocol) GetOperation() string { if o == nil || IsNil(o.Operation) { @@ -190,7 +200,13 @@ func (o VirtualizationVmwareDiscoveryProtocol) ToMap() (map[string]interface{}, if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Operation) { toSerialize["Operation"] = o.Operation @@ -215,6 +231,13 @@ func (o *VirtualizationVmwareDiscoveryProtocol) UnmarshalJSON(data []byte) (err "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -224,11 +247,23 @@ func (o *VirtualizationVmwareDiscoveryProtocol) UnmarshalJSON(data []byte) (err } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type VirtualizationVmwareDiscoveryProtocolWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_virtualization_vmware_distributed_network.go b/model_virtualization_vmware_distributed_network.go index 1818a69e7a..82e641b3ee 100644 --- a/model_virtualization_vmware_distributed_network.go +++ b/model_virtualization_vmware_distributed_network.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -115,6 +115,11 @@ func (o *VirtualizationVmwareDistributedNetwork) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "virtualization.VmwareDistributedNetwork" of the ClassId field. +func (o *VirtualizationVmwareDistributedNetwork) GetDefaultClassId() interface{} { + return "virtualization.VmwareDistributedNetwork" +} + // GetObjectType returns the ObjectType field value func (o *VirtualizationVmwareDistributedNetwork) GetObjectType() string { if o == nil { @@ -139,6 +144,11 @@ func (o *VirtualizationVmwareDistributedNetwork) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "virtualization.VmwareDistributedNetwork" of the ObjectType field. +func (o *VirtualizationVmwareDistributedNetwork) GetDefaultObjectType() interface{} { + return "virtualization.VmwareDistributedNetwork" +} + // GetForgedTransmits returns the ForgedTransmits field value if set, zero value otherwise. func (o *VirtualizationVmwareDistributedNetwork) GetForgedTransmits() string { if o == nil || IsNil(o.ForgedTransmits) { @@ -395,7 +405,7 @@ func (o *VirtualizationVmwareDistributedNetwork) GetVlanRangeOk() ([]Virtualizat // HasVlanRange returns a boolean if a field has been set. func (o *VirtualizationVmwareDistributedNetwork) HasVlanRange() bool { - if o != nil && IsNil(o.VlanRange) { + if o != nil && !IsNil(o.VlanRange) { return true } @@ -503,7 +513,7 @@ func (o *VirtualizationVmwareDistributedNetwork) GetHostsOk() ([]VirtualizationV // HasHosts returns a boolean if a field has been set. func (o *VirtualizationVmwareDistributedNetwork) HasHosts() bool { - if o != nil && IsNil(o.Hosts) { + if o != nil && !IsNil(o.Hosts) { return true } @@ -533,7 +543,13 @@ func (o VirtualizationVmwareDistributedNetwork) ToMap() (map[string]interface{}, if errVirtualizationBaseDistributedNetwork != nil { return map[string]interface{}{}, errVirtualizationBaseDistributedNetwork } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.ForgedTransmits) { toSerialize["ForgedTransmits"] = o.ForgedTransmits @@ -585,6 +601,13 @@ func (o *VirtualizationVmwareDistributedNetwork) UnmarshalJSON(data []byte) (err "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -594,11 +617,23 @@ func (o *VirtualizationVmwareDistributedNetwork) UnmarshalJSON(data []byte) (err } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type VirtualizationVmwareDistributedNetworkWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_virtualization_vmware_distributed_network_list.go b/model_virtualization_vmware_distributed_network_list.go index 311a088eb2..bc48390ddf 100644 --- a/model_virtualization_vmware_distributed_network_list.go +++ b/model_virtualization_vmware_distributed_network_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *VirtualizationVmwareDistributedNetworkList) GetResultsOk() ([]Virtualiz // HasResults returns a boolean if a field has been set. func (o *VirtualizationVmwareDistributedNetworkList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *VirtualizationVmwareDistributedNetworkList) UnmarshalJSON(data []byte) "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *VirtualizationVmwareDistributedNetworkList) UnmarshalJSON(data []byte) } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type VirtualizationVmwareDistributedNetworkListWithoutEmbeddedStruct struct { // The total number of 'virtualization.VmwareDistributedNetwork' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_virtualization_vmware_distributed_network_relationship.go b/model_virtualization_vmware_distributed_network_relationship.go index 5b17fabfb6..7880176737 100644 --- a/model_virtualization_vmware_distributed_network_relationship.go +++ b/model_virtualization_vmware_distributed_network_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_virtualization_vmware_distributed_network_response.go b/model_virtualization_vmware_distributed_network_response.go index f0b47b8d95..c3a912f589 100644 --- a/model_virtualization_vmware_distributed_network_response.go +++ b/model_virtualization_vmware_distributed_network_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_virtualization_vmware_distributed_switch.go b/model_virtualization_vmware_distributed_switch.go index dc0d713002..75222cb0f6 100644 --- a/model_virtualization_vmware_distributed_switch.go +++ b/model_virtualization_vmware_distributed_switch.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -49,7 +49,7 @@ type VirtualizationVmwareDistributedSwitch struct { ResourceAllocationSystemTraffic []VirtualizationVmwareResourceAllocationSystemTrafficTypes `json:"ResourceAllocationSystemTraffic,omitempty"` SwitchCapacity NullableVirtualizationStorageCapacity `json:"SwitchCapacity,omitempty"` // Universally Unique Id of this distributed virtual switch. - Uuid *string `json:"Uuid,omitempty"` + Uuid *string `json:"Uuid,omitempty" validate:"regexp=^$|^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"` // The running config's version details are represented. Version *string `json:"Version,omitempty"` Datacenter NullableVirtualizationVmwareDatacenterRelationship `json:"Datacenter,omitempty"` @@ -107,6 +107,11 @@ func (o *VirtualizationVmwareDistributedSwitch) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "virtualization.VmwareDistributedSwitch" of the ClassId field. +func (o *VirtualizationVmwareDistributedSwitch) GetDefaultClassId() interface{} { + return "virtualization.VmwareDistributedSwitch" +} + // GetObjectType returns the ObjectType field value func (o *VirtualizationVmwareDistributedSwitch) GetObjectType() string { if o == nil { @@ -131,6 +136,11 @@ func (o *VirtualizationVmwareDistributedSwitch) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "virtualization.VmwareDistributedSwitch" of the ObjectType field. +func (o *VirtualizationVmwareDistributedSwitch) GetDefaultObjectType() interface{} { + return "virtualization.VmwareDistributedSwitch" +} + // GetDescription returns the Description field value if set, zero value otherwise. func (o *VirtualizationVmwareDistributedSwitch) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -494,7 +504,7 @@ func (o *VirtualizationVmwareDistributedSwitch) GetResourceAllocationSystemTraff // HasResourceAllocationSystemTraffic returns a boolean if a field has been set. func (o *VirtualizationVmwareDistributedSwitch) HasResourceAllocationSystemTraffic() bool { - if o != nil && IsNil(o.ResourceAllocationSystemTraffic) { + if o != nil && !IsNil(o.ResourceAllocationSystemTraffic) { return true } @@ -677,7 +687,7 @@ func (o *VirtualizationVmwareDistributedSwitch) GetHostsOk() ([]VirtualizationVm // HasHosts returns a boolean if a field has been set. func (o *VirtualizationVmwareDistributedSwitch) HasHosts() bool { - if o != nil && IsNil(o.Hosts) { + if o != nil && !IsNil(o.Hosts) { return true } @@ -707,7 +717,13 @@ func (o VirtualizationVmwareDistributedSwitch) ToMap() (map[string]interface{}, if errVirtualizationBaseDistributedSwitch != nil { return map[string]interface{}{}, errVirtualizationBaseDistributedSwitch } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Description) { toSerialize["Description"] = o.Description @@ -774,6 +790,13 @@ func (o *VirtualizationVmwareDistributedSwitch) UnmarshalJSON(data []byte) (err "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -783,11 +806,23 @@ func (o *VirtualizationVmwareDistributedSwitch) UnmarshalJSON(data []byte) (err } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type VirtualizationVmwareDistributedSwitchWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` @@ -814,7 +849,7 @@ func (o *VirtualizationVmwareDistributedSwitch) UnmarshalJSON(data []byte) (err ResourceAllocationSystemTraffic []VirtualizationVmwareResourceAllocationSystemTrafficTypes `json:"ResourceAllocationSystemTraffic,omitempty"` SwitchCapacity NullableVirtualizationStorageCapacity `json:"SwitchCapacity,omitempty"` // Universally Unique Id of this distributed virtual switch. - Uuid *string `json:"Uuid,omitempty"` + Uuid *string `json:"Uuid,omitempty" validate:"regexp=^$|^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"` // The running config's version details are represented. Version *string `json:"Version,omitempty"` Datacenter NullableVirtualizationVmwareDatacenterRelationship `json:"Datacenter,omitempty"` diff --git a/model_virtualization_vmware_distributed_switch_list.go b/model_virtualization_vmware_distributed_switch_list.go index 1decc14a10..239a3005b8 100644 --- a/model_virtualization_vmware_distributed_switch_list.go +++ b/model_virtualization_vmware_distributed_switch_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *VirtualizationVmwareDistributedSwitchList) GetResultsOk() ([]Virtualiza // HasResults returns a boolean if a field has been set. func (o *VirtualizationVmwareDistributedSwitchList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *VirtualizationVmwareDistributedSwitchList) UnmarshalJSON(data []byte) ( "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *VirtualizationVmwareDistributedSwitchList) UnmarshalJSON(data []byte) ( } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type VirtualizationVmwareDistributedSwitchListWithoutEmbeddedStruct struct { // The total number of 'virtualization.VmwareDistributedSwitch' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_virtualization_vmware_distributed_switch_relationship.go b/model_virtualization_vmware_distributed_switch_relationship.go index 2b1bbb22c4..3eb100570c 100644 --- a/model_virtualization_vmware_distributed_switch_relationship.go +++ b/model_virtualization_vmware_distributed_switch_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_virtualization_vmware_distributed_switch_response.go b/model_virtualization_vmware_distributed_switch_response.go index 55cb2534ac..e3b0b7c6de 100644 --- a/model_virtualization_vmware_distributed_switch_response.go +++ b/model_virtualization_vmware_distributed_switch_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_virtualization_vmware_folder.go b/model_virtualization_vmware_folder.go index 78d8eb4730..e340c2c702 100644 --- a/model_virtualization_vmware_folder.go +++ b/model_virtualization_vmware_folder.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -93,6 +93,11 @@ func (o *VirtualizationVmwareFolder) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "virtualization.VmwareFolder" of the ClassId field. +func (o *VirtualizationVmwareFolder) GetDefaultClassId() interface{} { + return "virtualization.VmwareFolder" +} + // GetObjectType returns the ObjectType field value func (o *VirtualizationVmwareFolder) GetObjectType() string { if o == nil { @@ -117,6 +122,11 @@ func (o *VirtualizationVmwareFolder) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "virtualization.VmwareFolder" of the ObjectType field. +func (o *VirtualizationVmwareFolder) GetDefaultObjectType() interface{} { + return "virtualization.VmwareFolder" +} + // GetInternal returns the Internal field value if set, zero value otherwise. func (o *VirtualizationVmwareFolder) GetInternal() bool { if o == nil || IsNil(o.Internal) { @@ -360,7 +370,13 @@ func (o VirtualizationVmwareFolder) ToMap() (map[string]interface{}, error) { if errVirtualizationBaseFolder != nil { return map[string]interface{}{}, errVirtualizationBaseFolder } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Internal) { toSerialize["Internal"] = o.Internal @@ -397,6 +413,13 @@ func (o *VirtualizationVmwareFolder) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -406,11 +429,23 @@ func (o *VirtualizationVmwareFolder) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type VirtualizationVmwareFolderWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_virtualization_vmware_folder_list.go b/model_virtualization_vmware_folder_list.go index c2ac83ee0d..c6ab44efbd 100644 --- a/model_virtualization_vmware_folder_list.go +++ b/model_virtualization_vmware_folder_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *VirtualizationVmwareFolderList) GetResultsOk() ([]VirtualizationVmwareF // HasResults returns a boolean if a field has been set. func (o *VirtualizationVmwareFolderList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *VirtualizationVmwareFolderList) UnmarshalJSON(data []byte) (err error) "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *VirtualizationVmwareFolderList) UnmarshalJSON(data []byte) (err error) } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type VirtualizationVmwareFolderListWithoutEmbeddedStruct struct { // The total number of 'virtualization.VmwareFolder' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_virtualization_vmware_folder_relationship.go b/model_virtualization_vmware_folder_relationship.go index 4f9011371d..e6b9c223ec 100644 --- a/model_virtualization_vmware_folder_relationship.go +++ b/model_virtualization_vmware_folder_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_virtualization_vmware_folder_response.go b/model_virtualization_vmware_folder_response.go index d5ae125c3b..e2fa040673 100644 --- a/model_virtualization_vmware_folder_response.go +++ b/model_virtualization_vmware_folder_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_virtualization_vmware_host.go b/model_virtualization_vmware_host.go index e99370a6fb..b8e73ae016 100644 --- a/model_virtualization_vmware_host.go +++ b/model_virtualization_vmware_host.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -122,6 +122,11 @@ func (o *VirtualizationVmwareHost) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "virtualization.VmwareHost" of the ClassId field. +func (o *VirtualizationVmwareHost) GetDefaultClassId() interface{} { + return "virtualization.VmwareHost" +} + // GetObjectType returns the ObjectType field value func (o *VirtualizationVmwareHost) GetObjectType() string { if o == nil { @@ -146,6 +151,11 @@ func (o *VirtualizationVmwareHost) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "virtualization.VmwareHost" of the ObjectType field. +func (o *VirtualizationVmwareHost) GetDefaultObjectType() interface{} { + return "virtualization.VmwareHost" +} + // GetBootTime returns the BootTime field value if set, zero value otherwise. func (o *VirtualizationVmwareHost) GetBootTime() time.Time { if o == nil || IsNil(o.BootTime) { @@ -263,7 +273,7 @@ func (o *VirtualizationVmwareHost) GetDnsServersOk() ([]string, bool) { // HasDnsServers returns a boolean if a field has been set. func (o *VirtualizationVmwareHost) HasDnsServers() bool { - if o != nil && IsNil(o.DnsServers) { + if o != nil && !IsNil(o.DnsServers) { return true } @@ -392,7 +402,7 @@ func (o *VirtualizationVmwareHost) GetNtpServersOk() ([]string, bool) { // HasNtpServers returns a boolean if a field has been set. func (o *VirtualizationVmwareHost) HasNtpServers() bool { - if o != nil && IsNil(o.NtpServers) { + if o != nil && !IsNil(o.NtpServers) { return true } @@ -682,7 +692,7 @@ func (o *VirtualizationVmwareHost) GetDatastoresOk() ([]VirtualizationVmwareData // HasDatastores returns a boolean if a field has been set. func (o *VirtualizationVmwareHost) HasDatastores() bool { - if o != nil && IsNil(o.Datastores) { + if o != nil && !IsNil(o.Datastores) { return true } @@ -715,7 +725,7 @@ func (o *VirtualizationVmwareHost) GetDistributedNetworksOk() ([]VirtualizationV // HasDistributedNetworks returns a boolean if a field has been set. func (o *VirtualizationVmwareHost) HasDistributedNetworks() bool { - if o != nil && IsNil(o.DistributedNetworks) { + if o != nil && !IsNil(o.DistributedNetworks) { return true } @@ -748,7 +758,7 @@ func (o *VirtualizationVmwareHost) GetDistributedSwitchesOk() ([]VirtualizationV // HasDistributedSwitches returns a boolean if a field has been set. func (o *VirtualizationVmwareHost) HasDistributedSwitches() bool { - if o != nil && IsNil(o.DistributedSwitches) { + if o != nil && !IsNil(o.DistributedSwitches) { return true } @@ -864,7 +874,13 @@ func (o VirtualizationVmwareHost) ToMap() (map[string]interface{}, error) { if errVirtualizationBaseHost != nil { return map[string]interface{}{}, errVirtualizationBaseHost } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.BootTime) { toSerialize["BootTime"] = o.BootTime @@ -943,6 +959,13 @@ func (o *VirtualizationVmwareHost) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -952,11 +975,23 @@ func (o *VirtualizationVmwareHost) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type VirtualizationVmwareHostWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_virtualization_vmware_host_gpu.go b/model_virtualization_vmware_host_gpu.go index ac1c0952f1..4183b5e9d2 100644 --- a/model_virtualization_vmware_host_gpu.go +++ b/model_virtualization_vmware_host_gpu.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -83,6 +83,13 @@ func (o *VirtualizationVmwareHostGpu) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -92,11 +99,23 @@ func (o *VirtualizationVmwareHostGpu) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type VirtualizationVmwareHostGpuWithoutEmbeddedStruct struct { } diff --git a/model_virtualization_vmware_host_gpu_list.go b/model_virtualization_vmware_host_gpu_list.go index 1842c1fe0b..46bebb1bcb 100644 --- a/model_virtualization_vmware_host_gpu_list.go +++ b/model_virtualization_vmware_host_gpu_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *VirtualizationVmwareHostGpuList) GetResultsOk() ([]VirtualizationVmware // HasResults returns a boolean if a field has been set. func (o *VirtualizationVmwareHostGpuList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *VirtualizationVmwareHostGpuList) UnmarshalJSON(data []byte) (err error) "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *VirtualizationVmwareHostGpuList) UnmarshalJSON(data []byte) (err error) } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type VirtualizationVmwareHostGpuListWithoutEmbeddedStruct struct { // The total number of 'virtualization.VmwareHostGpu' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_virtualization_vmware_host_gpu_response.go b/model_virtualization_vmware_host_gpu_response.go index 343a2fe5d4..ad48898f73 100644 --- a/model_virtualization_vmware_host_gpu_response.go +++ b/model_virtualization_vmware_host_gpu_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_virtualization_vmware_host_list.go b/model_virtualization_vmware_host_list.go index ed8d7eb525..e0ab8dbf8e 100644 --- a/model_virtualization_vmware_host_list.go +++ b/model_virtualization_vmware_host_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *VirtualizationVmwareHostList) GetResultsOk() ([]VirtualizationVmwareHos // HasResults returns a boolean if a field has been set. func (o *VirtualizationVmwareHostList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *VirtualizationVmwareHostList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *VirtualizationVmwareHostList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type VirtualizationVmwareHostListWithoutEmbeddedStruct struct { // The total number of 'virtualization.VmwareHost' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_virtualization_vmware_host_relationship.go b/model_virtualization_vmware_host_relationship.go index bafaee1c6f..ef4a8c15aa 100644 --- a/model_virtualization_vmware_host_relationship.go +++ b/model_virtualization_vmware_host_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_virtualization_vmware_host_response.go b/model_virtualization_vmware_host_response.go index 80e60d174e..d99d21cc4e 100644 --- a/model_virtualization_vmware_host_response.go +++ b/model_virtualization_vmware_host_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_virtualization_vmware_kernel_network.go b/model_virtualization_vmware_kernel_network.go index 8235bc9c00..82bc43d213 100644 --- a/model_virtualization_vmware_kernel_network.go +++ b/model_virtualization_vmware_kernel_network.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -32,7 +32,7 @@ type VirtualizationVmwareKernelNetwork struct { FaultToleranceLogging *bool `json:"FaultToleranceLogging,omitempty"` IpAddress []string `json:"IpAddress,omitempty"` // Standard MAC address assigned to this kernel network. - MacAddress *string `json:"MacAddress,omitempty"` + MacAddress *string `json:"MacAddress,omitempty" validate:"regexp=^$|^([0-9A-Fa-f]{2}[:-]){5}([0-9A-Fa-f]{2})$"` // Indicates that management traffic is enabled on this kernel network. Management *bool `json:"Management,omitempty"` // Maximum transmission unit configured on a kernel network. @@ -106,6 +106,11 @@ func (o *VirtualizationVmwareKernelNetwork) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "virtualization.VmwareKernelNetwork" of the ClassId field. +func (o *VirtualizationVmwareKernelNetwork) GetDefaultClassId() interface{} { + return "virtualization.VmwareKernelNetwork" +} + // GetObjectType returns the ObjectType field value func (o *VirtualizationVmwareKernelNetwork) GetObjectType() string { if o == nil { @@ -130,6 +135,11 @@ func (o *VirtualizationVmwareKernelNetwork) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "virtualization.VmwareKernelNetwork" of the ObjectType field. +func (o *VirtualizationVmwareKernelNetwork) GetDefaultObjectType() interface{} { + return "virtualization.VmwareKernelNetwork" +} + // GetFaultToleranceLogging returns the FaultToleranceLogging field value if set, zero value otherwise. func (o *VirtualizationVmwareKernelNetwork) GetFaultToleranceLogging() bool { if o == nil || IsNil(o.FaultToleranceLogging) { @@ -183,7 +193,7 @@ func (o *VirtualizationVmwareKernelNetwork) GetIpAddressOk() ([]string, bool) { // HasIpAddress returns a boolean if a field has been set. func (o *VirtualizationVmwareKernelNetwork) HasIpAddress() bool { - if o != nil && IsNil(o.IpAddress) { + if o != nil && !IsNil(o.IpAddress) { return true } @@ -662,7 +672,13 @@ func (o VirtualizationVmwareKernelNetwork) ToMap() (map[string]interface{}, erro if errVirtualizationBaseKernelNetwork != nil { return map[string]interface{}{}, errVirtualizationBaseKernelNetwork } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.FaultToleranceLogging) { toSerialize["FaultToleranceLogging"] = o.FaultToleranceLogging @@ -726,6 +742,13 @@ func (o *VirtualizationVmwareKernelNetwork) UnmarshalJSON(data []byte) (err erro "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -735,11 +758,23 @@ func (o *VirtualizationVmwareKernelNetwork) UnmarshalJSON(data []byte) (err erro } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type VirtualizationVmwareKernelNetworkWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` @@ -749,7 +784,7 @@ func (o *VirtualizationVmwareKernelNetwork) UnmarshalJSON(data []byte) (err erro FaultToleranceLogging *bool `json:"FaultToleranceLogging,omitempty"` IpAddress []string `json:"IpAddress,omitempty"` // Standard MAC address assigned to this kernel network. - MacAddress *string `json:"MacAddress,omitempty"` + MacAddress *string `json:"MacAddress,omitempty" validate:"regexp=^$|^([0-9A-Fa-f]{2}[:-]){5}([0-9A-Fa-f]{2})$"` // Indicates that management traffic is enabled on this kernel network. Management *bool `json:"Management,omitempty"` // Maximum transmission unit configured on a kernel network. diff --git a/model_virtualization_vmware_kernel_network_list.go b/model_virtualization_vmware_kernel_network_list.go index 50036a2b4e..09467ca6f3 100644 --- a/model_virtualization_vmware_kernel_network_list.go +++ b/model_virtualization_vmware_kernel_network_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *VirtualizationVmwareKernelNetworkList) GetResultsOk() ([]Virtualization // HasResults returns a boolean if a field has been set. func (o *VirtualizationVmwareKernelNetworkList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *VirtualizationVmwareKernelNetworkList) UnmarshalJSON(data []byte) (err "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *VirtualizationVmwareKernelNetworkList) UnmarshalJSON(data []byte) (err } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type VirtualizationVmwareKernelNetworkListWithoutEmbeddedStruct struct { // The total number of 'virtualization.VmwareKernelNetwork' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_virtualization_vmware_kernel_network_response.go b/model_virtualization_vmware_kernel_network_response.go index c91f19e0e8..20625f4f95 100644 --- a/model_virtualization_vmware_kernel_network_response.go +++ b/model_virtualization_vmware_kernel_network_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_virtualization_vmware_network.go b/model_virtualization_vmware_network.go index d91ef01eba..eaf7633e8b 100644 --- a/model_virtualization_vmware_network.go +++ b/model_virtualization_vmware_network.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -103,6 +103,11 @@ func (o *VirtualizationVmwareNetwork) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "virtualization.VmwareNetwork" of the ClassId field. +func (o *VirtualizationVmwareNetwork) GetDefaultClassId() interface{} { + return "virtualization.VmwareNetwork" +} + // GetObjectType returns the ObjectType field value func (o *VirtualizationVmwareNetwork) GetObjectType() string { if o == nil { @@ -127,6 +132,11 @@ func (o *VirtualizationVmwareNetwork) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "virtualization.VmwareNetwork" of the ObjectType field. +func (o *VirtualizationVmwareNetwork) GetDefaultObjectType() interface{} { + return "virtualization.VmwareNetwork" +} + // GetForgedTransmits returns the ForgedTransmits field value if set, zero value otherwise. func (o *VirtualizationVmwareNetwork) GetForgedTransmits() string { if o == nil || IsNil(o.ForgedTransmits) { @@ -402,7 +412,13 @@ func (o VirtualizationVmwareNetwork) ToMap() (map[string]interface{}, error) { if errVirtualizationBaseVirtualNetwork != nil { return map[string]interface{}{}, errVirtualizationBaseVirtualNetwork } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.ForgedTransmits) { toSerialize["ForgedTransmits"] = o.ForgedTransmits @@ -442,6 +458,13 @@ func (o *VirtualizationVmwareNetwork) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -451,11 +474,23 @@ func (o *VirtualizationVmwareNetwork) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type VirtualizationVmwareNetworkWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_virtualization_vmware_network_list.go b/model_virtualization_vmware_network_list.go index 8119fd58da..0ba934adf0 100644 --- a/model_virtualization_vmware_network_list.go +++ b/model_virtualization_vmware_network_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *VirtualizationVmwareNetworkList) GetResultsOk() ([]VirtualizationVmware // HasResults returns a boolean if a field has been set. func (o *VirtualizationVmwareNetworkList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *VirtualizationVmwareNetworkList) UnmarshalJSON(data []byte) (err error) "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *VirtualizationVmwareNetworkList) UnmarshalJSON(data []byte) (err error) } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type VirtualizationVmwareNetworkListWithoutEmbeddedStruct struct { // The total number of 'virtualization.VmwareNetwork' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_virtualization_vmware_network_relationship.go b/model_virtualization_vmware_network_relationship.go index ccd40ddbe0..0c3ef2c83a 100644 --- a/model_virtualization_vmware_network_relationship.go +++ b/model_virtualization_vmware_network_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_virtualization_vmware_network_response.go b/model_virtualization_vmware_network_response.go index ae78aa1e1e..061375c69b 100644 --- a/model_virtualization_vmware_network_response.go +++ b/model_virtualization_vmware_network_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_virtualization_vmware_physical_network_interface.go b/model_virtualization_vmware_physical_network_interface.go index 8818c1e072..7ddce8cc36 100644 --- a/model_virtualization_vmware_physical_network_interface.go +++ b/model_virtualization_vmware_physical_network_interface.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -33,7 +33,7 @@ type VirtualizationVmwarePhysicalNetworkInterface struct { // Link speed of the physical network interface. LinkSpeed *int32 `json:"LinkSpeed,omitempty"` // Standard MAC address assigned to physical network interface. - MacAddress *string `json:"MacAddress,omitempty"` + MacAddress *string `json:"MacAddress,omitempty" validate:"regexp=^$|^([0-9A-Fa-f]{2}[:-]){5}([0-9A-Fa-f]{2})$"` // PCI info for physical network interface. Pci *string `json:"Pci,omitempty"` // Switch associated with the physical network interface. @@ -91,6 +91,11 @@ func (o *VirtualizationVmwarePhysicalNetworkInterface) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "virtualization.VmwarePhysicalNetworkInterface" of the ClassId field. +func (o *VirtualizationVmwarePhysicalNetworkInterface) GetDefaultClassId() interface{} { + return "virtualization.VmwarePhysicalNetworkInterface" +} + // GetObjectType returns the ObjectType field value func (o *VirtualizationVmwarePhysicalNetworkInterface) GetObjectType() string { if o == nil { @@ -115,6 +120,11 @@ func (o *VirtualizationVmwarePhysicalNetworkInterface) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "virtualization.VmwarePhysicalNetworkInterface" of the ObjectType field. +func (o *VirtualizationVmwarePhysicalNetworkInterface) GetDefaultObjectType() interface{} { + return "virtualization.VmwarePhysicalNetworkInterface" +} + // GetDriver returns the Driver field value if set, zero value otherwise. func (o *VirtualizationVmwarePhysicalNetworkInterface) GetDriver() string { if o == nil || IsNil(o.Driver) { @@ -336,7 +346,13 @@ func (o VirtualizationVmwarePhysicalNetworkInterface) ToMap() (map[string]interf if errVirtualizationBasePhysicalNetworkInterface != nil { return map[string]interface{}{}, errVirtualizationBasePhysicalNetworkInterface } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Driver) { toSerialize["Driver"] = o.Driver @@ -373,6 +389,13 @@ func (o *VirtualizationVmwarePhysicalNetworkInterface) UnmarshalJSON(data []byte "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -382,11 +405,23 @@ func (o *VirtualizationVmwarePhysicalNetworkInterface) UnmarshalJSON(data []byte } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type VirtualizationVmwarePhysicalNetworkInterfaceWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` @@ -397,7 +432,7 @@ func (o *VirtualizationVmwarePhysicalNetworkInterface) UnmarshalJSON(data []byte // Link speed of the physical network interface. LinkSpeed *int32 `json:"LinkSpeed,omitempty"` // Standard MAC address assigned to physical network interface. - MacAddress *string `json:"MacAddress,omitempty"` + MacAddress *string `json:"MacAddress,omitempty" validate:"regexp=^$|^([0-9A-Fa-f]{2}[:-]){5}([0-9A-Fa-f]{2})$"` // PCI info for physical network interface. Pci *string `json:"Pci,omitempty"` // Switch associated with the physical network interface. diff --git a/model_virtualization_vmware_physical_network_interface_list.go b/model_virtualization_vmware_physical_network_interface_list.go index a96cde4666..42d5177d6c 100644 --- a/model_virtualization_vmware_physical_network_interface_list.go +++ b/model_virtualization_vmware_physical_network_interface_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *VirtualizationVmwarePhysicalNetworkInterfaceList) GetResultsOk() ([]Vir // HasResults returns a boolean if a field has been set. func (o *VirtualizationVmwarePhysicalNetworkInterfaceList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *VirtualizationVmwarePhysicalNetworkInterfaceList) UnmarshalJSON(data [] "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *VirtualizationVmwarePhysicalNetworkInterfaceList) UnmarshalJSON(data [] } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type VirtualizationVmwarePhysicalNetworkInterfaceListWithoutEmbeddedStruct struct { // The total number of 'virtualization.VmwarePhysicalNetworkInterface' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_virtualization_vmware_physical_network_interface_relationship.go b/model_virtualization_vmware_physical_network_interface_relationship.go index 4f1fc0c57a..0b874193dc 100644 --- a/model_virtualization_vmware_physical_network_interface_relationship.go +++ b/model_virtualization_vmware_physical_network_interface_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_virtualization_vmware_physical_network_interface_response.go b/model_virtualization_vmware_physical_network_interface_response.go index 60e8d4204d..8317784c32 100644 --- a/model_virtualization_vmware_physical_network_interface_response.go +++ b/model_virtualization_vmware_physical_network_interface_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_virtualization_vmware_proactive_ha.go b/model_virtualization_vmware_proactive_ha.go index 93f51baf9a..80605ed795 100644 --- a/model_virtualization_vmware_proactive_ha.go +++ b/model_virtualization_vmware_proactive_ha.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -88,6 +88,11 @@ func (o *VirtualizationVmwareProactiveHa) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "virtualization.VmwareProactiveHa" of the ClassId field. +func (o *VirtualizationVmwareProactiveHa) GetDefaultClassId() interface{} { + return "virtualization.VmwareProactiveHa" +} + // GetObjectType returns the ObjectType field value func (o *VirtualizationVmwareProactiveHa) GetObjectType() string { if o == nil { @@ -112,6 +117,11 @@ func (o *VirtualizationVmwareProactiveHa) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "virtualization.VmwareProactiveHa" of the ObjectType field. +func (o *VirtualizationVmwareProactiveHa) GetDefaultObjectType() interface{} { + return "virtualization.VmwareProactiveHa" +} + // GetLastAcknowledgedAlarmTime returns the LastAcknowledgedAlarmTime field value if set, zero value otherwise. func (o *VirtualizationVmwareProactiveHa) GetLastAcknowledgedAlarmTime() time.Time { if o == nil || IsNil(o.LastAcknowledgedAlarmTime) { @@ -197,7 +207,7 @@ func (o *VirtualizationVmwareProactiveHa) GetAlarmDefinitionsOk() ([]CondAlarmDe // HasAlarmDefinitions returns a boolean if a field has been set. func (o *VirtualizationVmwareProactiveHa) HasAlarmDefinitions() bool { - if o != nil && IsNil(o.AlarmDefinitions) { + if o != nil && !IsNil(o.AlarmDefinitions) { return true } @@ -270,7 +280,13 @@ func (o VirtualizationVmwareProactiveHa) ToMap() (map[string]interface{}, error) if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.LastAcknowledgedAlarmTime) { toSerialize["LastAcknowledgedAlarmTime"] = o.LastAcknowledgedAlarmTime @@ -301,6 +317,13 @@ func (o *VirtualizationVmwareProactiveHa) UnmarshalJSON(data []byte) (err error) "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -310,11 +333,23 @@ func (o *VirtualizationVmwareProactiveHa) UnmarshalJSON(data []byte) (err error) } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type VirtualizationVmwareProactiveHaWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_virtualization_vmware_proactive_ha_list.go b/model_virtualization_vmware_proactive_ha_list.go index 4380d5e420..720919af2e 100644 --- a/model_virtualization_vmware_proactive_ha_list.go +++ b/model_virtualization_vmware_proactive_ha_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *VirtualizationVmwareProactiveHaList) GetResultsOk() ([]VirtualizationVm // HasResults returns a boolean if a field has been set. func (o *VirtualizationVmwareProactiveHaList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *VirtualizationVmwareProactiveHaList) UnmarshalJSON(data []byte) (err er "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *VirtualizationVmwareProactiveHaList) UnmarshalJSON(data []byte) (err er } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type VirtualizationVmwareProactiveHaListWithoutEmbeddedStruct struct { // The total number of 'virtualization.VmwareProactiveHa' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_virtualization_vmware_proactive_ha_response.go b/model_virtualization_vmware_proactive_ha_response.go index 1dde91c352..8094c7417d 100644 --- a/model_virtualization_vmware_proactive_ha_response.go +++ b/model_virtualization_vmware_proactive_ha_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_virtualization_vmware_remote_display_info.go b/model_virtualization_vmware_remote_display_info.go index 5a452bd407..dfb94e9fec 100644 --- a/model_virtualization_vmware_remote_display_info.go +++ b/model_virtualization_vmware_remote_display_info.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -86,6 +86,11 @@ func (o *VirtualizationVmwareRemoteDisplayInfo) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "virtualization.VmwareRemoteDisplayInfo" of the ClassId field. +func (o *VirtualizationVmwareRemoteDisplayInfo) GetDefaultClassId() interface{} { + return "virtualization.VmwareRemoteDisplayInfo" +} + // GetObjectType returns the ObjectType field value func (o *VirtualizationVmwareRemoteDisplayInfo) GetObjectType() string { if o == nil { @@ -110,6 +115,11 @@ func (o *VirtualizationVmwareRemoteDisplayInfo) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "virtualization.VmwareRemoteDisplayInfo" of the ObjectType field. +func (o *VirtualizationVmwareRemoteDisplayInfo) GetDefaultObjectType() interface{} { + return "virtualization.VmwareRemoteDisplayInfo" +} + // GetRemoteDisplayPassword returns the RemoteDisplayPassword field value if set, zero value otherwise. func (o *VirtualizationVmwareRemoteDisplayInfo) GetRemoteDisplayPassword() string { if o == nil || IsNil(o.RemoteDisplayPassword) { @@ -224,7 +234,13 @@ func (o VirtualizationVmwareRemoteDisplayInfo) ToMap() (map[string]interface{}, if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.RemoteDisplayPassword) { toSerialize["RemoteDisplayPassword"] = o.RemoteDisplayPassword @@ -252,6 +268,13 @@ func (o *VirtualizationVmwareRemoteDisplayInfo) UnmarshalJSON(data []byte) (err "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -261,11 +284,23 @@ func (o *VirtualizationVmwareRemoteDisplayInfo) UnmarshalJSON(data []byte) (err } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type VirtualizationVmwareRemoteDisplayInfoWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_virtualization_vmware_resource_allocation_system_traffic_types.go b/model_virtualization_vmware_resource_allocation_system_traffic_types.go index c1e1de150e..b75127dda3 100644 --- a/model_virtualization_vmware_resource_allocation_system_traffic_types.go +++ b/model_virtualization_vmware_resource_allocation_system_traffic_types.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -94,6 +94,11 @@ func (o *VirtualizationVmwareResourceAllocationSystemTrafficTypes) SetClassId(v o.ClassId = v } +// GetDefaultClassId returns the default value "virtualization.VmwareResourceAllocationSystemTrafficTypes" of the ClassId field. +func (o *VirtualizationVmwareResourceAllocationSystemTrafficTypes) GetDefaultClassId() interface{} { + return "virtualization.VmwareResourceAllocationSystemTrafficTypes" +} + // GetObjectType returns the ObjectType field value func (o *VirtualizationVmwareResourceAllocationSystemTrafficTypes) GetObjectType() string { if o == nil { @@ -118,6 +123,11 @@ func (o *VirtualizationVmwareResourceAllocationSystemTrafficTypes) SetObjectType o.ObjectType = v } +// GetDefaultObjectType returns the default value "virtualization.VmwareResourceAllocationSystemTrafficTypes" of the ObjectType field. +func (o *VirtualizationVmwareResourceAllocationSystemTrafficTypes) GetDefaultObjectType() interface{} { + return "virtualization.VmwareResourceAllocationSystemTrafficTypes" +} + // GetLimit returns the Limit field value if set, zero value otherwise. func (o *VirtualizationVmwareResourceAllocationSystemTrafficTypes) GetLimit() int64 { if o == nil || IsNil(o.Limit) { @@ -296,7 +306,13 @@ func (o VirtualizationVmwareResourceAllocationSystemTrafficTypes) ToMap() (map[s if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Limit) { toSerialize["Limit"] = o.Limit @@ -330,6 +346,13 @@ func (o *VirtualizationVmwareResourceAllocationSystemTrafficTypes) UnmarshalJSON "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -339,11 +362,23 @@ func (o *VirtualizationVmwareResourceAllocationSystemTrafficTypes) UnmarshalJSON } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type VirtualizationVmwareResourceAllocationSystemTrafficTypesWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_virtualization_vmware_resource_consumption.go b/model_virtualization_vmware_resource_consumption.go index 44710b3eb2..b80ced7fbc 100644 --- a/model_virtualization_vmware_resource_consumption.go +++ b/model_virtualization_vmware_resource_consumption.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -84,6 +84,11 @@ func (o *VirtualizationVmwareResourceConsumption) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "virtualization.VmwareResourceConsumption" of the ClassId field. +func (o *VirtualizationVmwareResourceConsumption) GetDefaultClassId() interface{} { + return "virtualization.VmwareResourceConsumption" +} + // GetObjectType returns the ObjectType field value func (o *VirtualizationVmwareResourceConsumption) GetObjectType() string { if o == nil { @@ -108,6 +113,11 @@ func (o *VirtualizationVmwareResourceConsumption) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "virtualization.VmwareResourceConsumption" of the ObjectType field. +func (o *VirtualizationVmwareResourceConsumption) GetDefaultObjectType() interface{} { + return "virtualization.VmwareResourceConsumption" +} + // GetCpuConsumed returns the CpuConsumed field value if set, zero value otherwise. func (o *VirtualizationVmwareResourceConsumption) GetCpuConsumed() int64 { if o == nil || IsNil(o.CpuConsumed) { @@ -190,7 +200,13 @@ func (o VirtualizationVmwareResourceConsumption) ToMap() (map[string]interface{} if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.CpuConsumed) { toSerialize["CpuConsumed"] = o.CpuConsumed @@ -215,6 +231,13 @@ func (o *VirtualizationVmwareResourceConsumption) UnmarshalJSON(data []byte) (er "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -224,11 +247,23 @@ func (o *VirtualizationVmwareResourceConsumption) UnmarshalJSON(data []byte) (er } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type VirtualizationVmwareResourceConsumptionWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_virtualization_vmware_shares_info.go b/model_virtualization_vmware_shares_info.go index 74c61b968d..381b15295a 100644 --- a/model_virtualization_vmware_shares_info.go +++ b/model_virtualization_vmware_shares_info.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -84,6 +84,11 @@ func (o *VirtualizationVmwareSharesInfo) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "virtualization.VmwareSharesInfo" of the ClassId field. +func (o *VirtualizationVmwareSharesInfo) GetDefaultClassId() interface{} { + return "virtualization.VmwareSharesInfo" +} + // GetObjectType returns the ObjectType field value func (o *VirtualizationVmwareSharesInfo) GetObjectType() string { if o == nil { @@ -108,6 +113,11 @@ func (o *VirtualizationVmwareSharesInfo) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "virtualization.VmwareSharesInfo" of the ObjectType field. +func (o *VirtualizationVmwareSharesInfo) GetDefaultObjectType() interface{} { + return "virtualization.VmwareSharesInfo" +} + // GetLevel returns the Level field value if set, zero value otherwise. func (o *VirtualizationVmwareSharesInfo) GetLevel() string { if o == nil || IsNil(o.Level) { @@ -190,7 +200,13 @@ func (o VirtualizationVmwareSharesInfo) ToMap() (map[string]interface{}, error) if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Level) { toSerialize["Level"] = o.Level @@ -215,6 +231,13 @@ func (o *VirtualizationVmwareSharesInfo) UnmarshalJSON(data []byte) (err error) "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -224,11 +247,23 @@ func (o *VirtualizationVmwareSharesInfo) UnmarshalJSON(data []byte) (err error) } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type VirtualizationVmwareSharesInfoWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_virtualization_vmware_teaming_and_failover.go b/model_virtualization_vmware_teaming_and_failover.go index 8ba46e71f9..aa5d970da0 100644 --- a/model_virtualization_vmware_teaming_and_failover.go +++ b/model_virtualization_vmware_teaming_and_failover.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -100,6 +100,11 @@ func (o *VirtualizationVmwareTeamingAndFailover) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "virtualization.VmwareTeamingAndFailover" of the ClassId field. +func (o *VirtualizationVmwareTeamingAndFailover) GetDefaultClassId() interface{} { + return "virtualization.VmwareTeamingAndFailover" +} + // GetObjectType returns the ObjectType field value func (o *VirtualizationVmwareTeamingAndFailover) GetObjectType() string { if o == nil { @@ -124,6 +129,11 @@ func (o *VirtualizationVmwareTeamingAndFailover) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "virtualization.VmwareTeamingAndFailover" of the ObjectType field. +func (o *VirtualizationVmwareTeamingAndFailover) GetDefaultObjectType() interface{} { + return "virtualization.VmwareTeamingAndFailover" +} + // GetActiveAdapters returns the ActiveAdapters field value if set, zero value otherwise (both if not set or set to explicit null). func (o *VirtualizationVmwareTeamingAndFailover) GetActiveAdapters() []string { if o == nil { @@ -145,7 +155,7 @@ func (o *VirtualizationVmwareTeamingAndFailover) GetActiveAdaptersOk() ([]string // HasActiveAdapters returns a boolean if a field has been set. func (o *VirtualizationVmwareTeamingAndFailover) HasActiveAdapters() bool { - if o != nil && IsNil(o.ActiveAdapters) { + if o != nil && !IsNil(o.ActiveAdapters) { return true } @@ -338,7 +348,7 @@ func (o *VirtualizationVmwareTeamingAndFailover) GetStandbyAdaptersOk() ([]strin // HasStandbyAdapters returns a boolean if a field has been set. func (o *VirtualizationVmwareTeamingAndFailover) HasStandbyAdapters() bool { - if o != nil && IsNil(o.StandbyAdapters) { + if o != nil && !IsNil(o.StandbyAdapters) { return true } @@ -368,7 +378,13 @@ func (o VirtualizationVmwareTeamingAndFailover) ToMap() (map[string]interface{}, if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.ActiveAdapters != nil { toSerialize["ActiveAdapters"] = o.ActiveAdapters @@ -408,6 +424,13 @@ func (o *VirtualizationVmwareTeamingAndFailover) UnmarshalJSON(data []byte) (err "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -417,11 +440,23 @@ func (o *VirtualizationVmwareTeamingAndFailover) UnmarshalJSON(data []byte) (err } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type VirtualizationVmwareTeamingAndFailoverWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_virtualization_vmware_uplink_port.go b/model_virtualization_vmware_uplink_port.go index 256e519b2f..872b51b974 100644 --- a/model_virtualization_vmware_uplink_port.go +++ b/model_virtualization_vmware_uplink_port.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -89,6 +89,11 @@ func (o *VirtualizationVmwareUplinkPort) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "virtualization.VmwareUplinkPort" of the ClassId field. +func (o *VirtualizationVmwareUplinkPort) GetDefaultClassId() interface{} { + return "virtualization.VmwareUplinkPort" +} + // GetObjectType returns the ObjectType field value func (o *VirtualizationVmwareUplinkPort) GetObjectType() string { if o == nil { @@ -113,6 +118,11 @@ func (o *VirtualizationVmwareUplinkPort) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "virtualization.VmwareUplinkPort" of the ObjectType field. +func (o *VirtualizationVmwareUplinkPort) GetDefaultObjectType() interface{} { + return "virtualization.VmwareUplinkPort" +} + // GetIdentity returns the Identity field value if set, zero value otherwise. func (o *VirtualizationVmwareUplinkPort) GetIdentity() string { if o == nil || IsNil(o.Identity) { @@ -356,7 +366,13 @@ func (o VirtualizationVmwareUplinkPort) ToMap() (map[string]interface{}, error) if errVirtualizationBaseSourceDevice != nil { return map[string]interface{}{}, errVirtualizationBaseSourceDevice } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Identity) { toSerialize["Identity"] = o.Identity @@ -393,6 +409,13 @@ func (o *VirtualizationVmwareUplinkPort) UnmarshalJSON(data []byte) (err error) "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -402,11 +425,23 @@ func (o *VirtualizationVmwareUplinkPort) UnmarshalJSON(data []byte) (err error) } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type VirtualizationVmwareUplinkPortWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_virtualization_vmware_uplink_port_list.go b/model_virtualization_vmware_uplink_port_list.go index b1cceb56c5..658601a051 100644 --- a/model_virtualization_vmware_uplink_port_list.go +++ b/model_virtualization_vmware_uplink_port_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *VirtualizationVmwareUplinkPortList) GetResultsOk() ([]VirtualizationVmw // HasResults returns a boolean if a field has been set. func (o *VirtualizationVmwareUplinkPortList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *VirtualizationVmwareUplinkPortList) UnmarshalJSON(data []byte) (err err "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *VirtualizationVmwareUplinkPortList) UnmarshalJSON(data []byte) (err err } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type VirtualizationVmwareUplinkPortListWithoutEmbeddedStruct struct { // The total number of 'virtualization.VmwareUplinkPort' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_virtualization_vmware_uplink_port_response.go b/model_virtualization_vmware_uplink_port_response.go index 47532f0bd7..b00c121bbb 100644 --- a/model_virtualization_vmware_uplink_port_response.go +++ b/model_virtualization_vmware_uplink_port_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_virtualization_vmware_vcenter.go b/model_virtualization_vmware_vcenter.go index 2acd9335b8..78076d5ace 100644 --- a/model_virtualization_vmware_vcenter.go +++ b/model_virtualization_vmware_vcenter.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -101,6 +101,11 @@ func (o *VirtualizationVmwareVcenter) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "virtualization.VmwareVcenter" of the ClassId field. +func (o *VirtualizationVmwareVcenter) GetDefaultClassId() interface{} { + return "virtualization.VmwareVcenter" +} + // GetObjectType returns the ObjectType field value func (o *VirtualizationVmwareVcenter) GetObjectType() string { if o == nil { @@ -125,6 +130,11 @@ func (o *VirtualizationVmwareVcenter) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "virtualization.VmwareVcenter" of the ObjectType field. +func (o *VirtualizationVmwareVcenter) GetDefaultObjectType() interface{} { + return "virtualization.VmwareVcenter" +} + // GetClusterCount returns the ClusterCount field value if set, zero value otherwise. func (o *VirtualizationVmwareVcenter) GetClusterCount() int64 { if o == nil || IsNil(o.ClusterCount) { @@ -370,7 +380,7 @@ func (o *VirtualizationVmwareVcenter) GetIpAddressOk() ([]string, bool) { // HasIpAddress returns a boolean if a field has been set. func (o *VirtualizationVmwareVcenter) HasIpAddress() bool { - if o != nil && IsNil(o.IpAddress) { + if o != nil && !IsNil(o.IpAddress) { return true } @@ -496,7 +506,13 @@ func (o VirtualizationVmwareVcenter) ToMap() (map[string]interface{}, error) { if errVirtualizationBaseHypervisorManager != nil { return map[string]interface{}{}, errVirtualizationBaseHypervisorManager } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.ClusterCount) { toSerialize["ClusterCount"] = o.ClusterCount @@ -548,6 +564,13 @@ func (o *VirtualizationVmwareVcenter) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -557,11 +580,23 @@ func (o *VirtualizationVmwareVcenter) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type VirtualizationVmwareVcenterWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_virtualization_vmware_vcenter_list.go b/model_virtualization_vmware_vcenter_list.go index bdae7b0d08..bf3e22e29a 100644 --- a/model_virtualization_vmware_vcenter_list.go +++ b/model_virtualization_vmware_vcenter_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *VirtualizationVmwareVcenterList) GetResultsOk() ([]VirtualizationVmware // HasResults returns a boolean if a field has been set. func (o *VirtualizationVmwareVcenterList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *VirtualizationVmwareVcenterList) UnmarshalJSON(data []byte) (err error) "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *VirtualizationVmwareVcenterList) UnmarshalJSON(data []byte) (err error) } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type VirtualizationVmwareVcenterListWithoutEmbeddedStruct struct { // The total number of 'virtualization.VmwareVcenter' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_virtualization_vmware_vcenter_relationship.go b/model_virtualization_vmware_vcenter_relationship.go index 7a4bb54e9b..5deeb4ea9b 100644 --- a/model_virtualization_vmware_vcenter_relationship.go +++ b/model_virtualization_vmware_vcenter_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_virtualization_vmware_vcenter_response.go b/model_virtualization_vmware_vcenter_response.go index d075121f5f..7affd60151 100644 --- a/model_virtualization_vmware_vcenter_response.go +++ b/model_virtualization_vmware_vcenter_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_virtualization_vmware_virtual_disk.go b/model_virtualization_vmware_virtual_disk.go index eaa25ce446..ce23b36bc8 100644 --- a/model_virtualization_vmware_virtual_disk.go +++ b/model_virtualization_vmware_virtual_disk.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -54,9 +54,9 @@ type VirtualizationVmwareVirtualDisk struct { // Unit number of the disk on its controller. UnitNumber *int64 `json:"UnitNumber,omitempty"` // UUID assigned by vCenter to every disk. - Uuid *string `json:"Uuid,omitempty"` + Uuid *string `json:"Uuid,omitempty" validate:"regexp=^$|^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"` // Identity of the virtual disk object as the first class entity. - VdiskId *string `json:"VdiskId,omitempty"` + VdiskId *string `json:"VdiskId,omitempty" validate:"regexp=^$|^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"` // Vendor of the storage device. Vendor *string `json:"Vendor,omitempty"` // Path of the virtual disk. @@ -137,6 +137,11 @@ func (o *VirtualizationVmwareVirtualDisk) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "virtualization.VmwareVirtualDisk" of the ClassId field. +func (o *VirtualizationVmwareVirtualDisk) GetDefaultClassId() interface{} { + return "virtualization.VmwareVirtualDisk" +} + // GetObjectType returns the ObjectType field value func (o *VirtualizationVmwareVirtualDisk) GetObjectType() string { if o == nil { @@ -161,6 +166,11 @@ func (o *VirtualizationVmwareVirtualDisk) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "virtualization.VmwareVirtualDisk" of the ObjectType field. +func (o *VirtualizationVmwareVirtualDisk) GetDefaultObjectType() interface{} { + return "virtualization.VmwareVirtualDisk" +} + // GetCompatibilityMode returns the CompatibilityMode field value if set, zero value otherwise. func (o *VirtualizationVmwareVirtualDisk) GetCompatibilityMode() string { if o == nil || IsNil(o.CompatibilityMode) { @@ -852,7 +862,13 @@ func (o VirtualizationVmwareVirtualDisk) ToMap() (map[string]interface{}, error) if errVirtualizationBaseVirtualDisk != nil { return map[string]interface{}{}, errVirtualizationBaseVirtualDisk } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.CompatibilityMode) { toSerialize["CompatibilityMode"] = o.CompatibilityMode @@ -931,6 +947,13 @@ func (o *VirtualizationVmwareVirtualDisk) UnmarshalJSON(data []byte) (err error) "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -940,11 +963,23 @@ func (o *VirtualizationVmwareVirtualDisk) UnmarshalJSON(data []byte) (err error) } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type VirtualizationVmwareVirtualDiskWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` @@ -976,9 +1011,9 @@ func (o *VirtualizationVmwareVirtualDisk) UnmarshalJSON(data []byte) (err error) // Unit number of the disk on its controller. UnitNumber *int64 `json:"UnitNumber,omitempty"` // UUID assigned by vCenter to every disk. - Uuid *string `json:"Uuid,omitempty"` + Uuid *string `json:"Uuid,omitempty" validate:"regexp=^$|^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"` // Identity of the virtual disk object as the first class entity. - VdiskId *string `json:"VdiskId,omitempty"` + VdiskId *string `json:"VdiskId,omitempty" validate:"regexp=^$|^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"` // Vendor of the storage device. Vendor *string `json:"Vendor,omitempty"` // Path of the virtual disk. diff --git a/model_virtualization_vmware_virtual_disk_list.go b/model_virtualization_vmware_virtual_disk_list.go index 94c03c8c48..3fdad5abc9 100644 --- a/model_virtualization_vmware_virtual_disk_list.go +++ b/model_virtualization_vmware_virtual_disk_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *VirtualizationVmwareVirtualDiskList) GetResultsOk() ([]VirtualizationVm // HasResults returns a boolean if a field has been set. func (o *VirtualizationVmwareVirtualDiskList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *VirtualizationVmwareVirtualDiskList) UnmarshalJSON(data []byte) (err er "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *VirtualizationVmwareVirtualDiskList) UnmarshalJSON(data []byte) (err er } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type VirtualizationVmwareVirtualDiskListWithoutEmbeddedStruct struct { // The total number of 'virtualization.VmwareVirtualDisk' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_virtualization_vmware_virtual_disk_response.go b/model_virtualization_vmware_virtual_disk_response.go index 0f9f96824c..13c8f6dbdd 100644 --- a/model_virtualization_vmware_virtual_disk_response.go +++ b/model_virtualization_vmware_virtual_disk_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_virtualization_vmware_virtual_machine.go b/model_virtualization_vmware_virtual_machine.go index 041e25f52c..4b2f0e1062 100644 --- a/model_virtualization_vmware_virtual_machine.go +++ b/model_virtualization_vmware_virtual_machine.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -55,7 +55,7 @@ type VirtualizationVmwareVirtualMachine struct { // Minimum host ESXi version required for the virtual machine. HostCompatibility *string `json:"HostCompatibility,omitempty"` // UUID assigned by vCenter to every VM. - InstanceUuid *string `json:"InstanceUuid,omitempty"` + InstanceUuid *string `json:"InstanceUuid,omitempty" validate:"regexp=^$|^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"` // Inventory path to the VM. Example - /DC/vm/folder/VMName. InventoryPath *string `json:"InventoryPath,omitempty"` // If true, indicates that the entity refers to a template of a virtual machine and not a real virtual machine. @@ -169,6 +169,11 @@ func (o *VirtualizationVmwareVirtualMachine) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "virtualization.VmwareVirtualMachine" of the ClassId field. +func (o *VirtualizationVmwareVirtualMachine) GetDefaultClassId() interface{} { + return "virtualization.VmwareVirtualMachine" +} + // GetObjectType returns the ObjectType field value func (o *VirtualizationVmwareVirtualMachine) GetObjectType() string { if o == nil { @@ -193,6 +198,11 @@ func (o *VirtualizationVmwareVirtualMachine) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "virtualization.VmwareVirtualMachine" of the ObjectType field. +func (o *VirtualizationVmwareVirtualMachine) GetDefaultObjectType() interface{} { + return "virtualization.VmwareVirtualMachine" +} + // GetAnnotation returns the Annotation field value if set, zero value otherwise. func (o *VirtualizationVmwareVirtualMachine) GetAnnotation() string { if o == nil || IsNil(o.Annotation) { @@ -428,7 +438,7 @@ func (o *VirtualizationVmwareVirtualMachine) GetCustomAttributesOk() ([]string, // HasCustomAttributes returns a boolean if a field has been set. func (o *VirtualizationVmwareVirtualMachine) HasCustomAttributes() bool { - if o != nil && IsNil(o.CustomAttributes) { + if o != nil && !IsNil(o.CustomAttributes) { return true } @@ -568,7 +578,7 @@ func (o *VirtualizationVmwareVirtualMachine) GetDnsServerListOk() ([]string, boo // HasDnsServerList returns a boolean if a field has been set. func (o *VirtualizationVmwareVirtualMachine) HasDnsServerList() bool { - if o != nil && IsNil(o.DnsServerList) { + if o != nil && !IsNil(o.DnsServerList) { return true } @@ -601,7 +611,7 @@ func (o *VirtualizationVmwareVirtualMachine) GetDnsSuffixListOk() ([]string, boo // HasDnsSuffixList returns a boolean if a field has been set. func (o *VirtualizationVmwareVirtualMachine) HasDnsSuffixList() bool { - if o != nil && IsNil(o.DnsSuffixList) { + if o != nil && !IsNil(o.DnsSuffixList) { return true } @@ -634,7 +644,7 @@ func (o *VirtualizationVmwareVirtualMachine) GetExtraConfigOk() (*interface{}, b // HasExtraConfig returns a boolean if a field has been set. func (o *VirtualizationVmwareVirtualMachine) HasExtraConfig() bool { - if o != nil && IsNil(o.ExtraConfig) { + if o != nil && !IsNil(o.ExtraConfig) { return true } @@ -859,7 +869,7 @@ func (o *VirtualizationVmwareVirtualMachine) GetMacAddressOk() ([]string, bool) // HasMacAddress returns a boolean if a field has been set. func (o *VirtualizationVmwareVirtualMachine) HasMacAddress() bool { - if o != nil && IsNil(o.MacAddress) { + if o != nil && !IsNil(o.MacAddress) { return true } @@ -999,7 +1009,7 @@ func (o *VirtualizationVmwareVirtualMachine) GetPassthroughDevicesOk() ([]int64, // HasPassthroughDevices returns a boolean if a field has been set. func (o *VirtualizationVmwareVirtualMachine) HasPassthroughDevices() bool { - if o != nil && IsNil(o.PassthroughDevices) { + if o != nil && !IsNil(o.PassthroughDevices) { return true } @@ -1032,7 +1042,7 @@ func (o *VirtualizationVmwareVirtualMachine) GetPortGroupsOk() ([]string, bool) // HasPortGroups returns a boolean if a field has been set. func (o *VirtualizationVmwareVirtualMachine) HasPortGroups() bool { - if o != nil && IsNil(o.PortGroups) { + if o != nil && !IsNil(o.PortGroups) { return true } @@ -1332,7 +1342,7 @@ func (o *VirtualizationVmwareVirtualMachine) GetVirtualDisksOk() ([]int64, bool) // HasVirtualDisks returns a boolean if a field has been set. func (o *VirtualizationVmwareVirtualMachine) HasVirtualDisks() bool { - if o != nil && IsNil(o.VirtualDisks) { + if o != nil && !IsNil(o.VirtualDisks) { return true } @@ -1365,7 +1375,7 @@ func (o *VirtualizationVmwareVirtualMachine) GetVirtualNetworkInterfacesOk() ([] // HasVirtualNetworkInterfaces returns a boolean if a field has been set. func (o *VirtualizationVmwareVirtualMachine) HasVirtualNetworkInterfaces() bool { - if o != nil && IsNil(o.VirtualNetworkInterfaces) { + if o != nil && !IsNil(o.VirtualNetworkInterfaces) { return true } @@ -1676,7 +1686,7 @@ func (o *VirtualizationVmwareVirtualMachine) GetDatastoresOk() ([]Virtualization // HasDatastores returns a boolean if a field has been set. func (o *VirtualizationVmwareVirtualMachine) HasDatastores() bool { - if o != nil && IsNil(o.Datastores) { + if o != nil && !IsNil(o.Datastores) { return true } @@ -1752,7 +1762,7 @@ func (o *VirtualizationVmwareVirtualMachine) GetNetworksOk() ([]VirtualizationBa // HasNetworks returns a boolean if a field has been set. func (o *VirtualizationVmwareVirtualMachine) HasNetworks() bool { - if o != nil && IsNil(o.Networks) { + if o != nil && !IsNil(o.Networks) { return true } @@ -1825,7 +1835,13 @@ func (o VirtualizationVmwareVirtualMachine) ToMap() (map[string]interface{}, err if errVirtualizationBaseVirtualMachine != nil { return map[string]interface{}{}, errVirtualizationBaseVirtualMachine } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Annotation) { toSerialize["Annotation"] = o.Annotation @@ -1985,6 +2001,13 @@ func (o *VirtualizationVmwareVirtualMachine) UnmarshalJSON(data []byte) (err err "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -1994,11 +2017,23 @@ func (o *VirtualizationVmwareVirtualMachine) UnmarshalJSON(data []byte) (err err } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type VirtualizationVmwareVirtualMachineWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` @@ -2031,7 +2066,7 @@ func (o *VirtualizationVmwareVirtualMachine) UnmarshalJSON(data []byte) (err err // Minimum host ESXi version required for the virtual machine. HostCompatibility *string `json:"HostCompatibility,omitempty"` // UUID assigned by vCenter to every VM. - InstanceUuid *string `json:"InstanceUuid,omitempty"` + InstanceUuid *string `json:"InstanceUuid,omitempty" validate:"regexp=^$|^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"` // Inventory path to the VM. Example - /DC/vm/folder/VMName. InventoryPath *string `json:"InventoryPath,omitempty"` // If true, indicates that the entity refers to a template of a virtual machine and not a real virtual machine. diff --git a/model_virtualization_vmware_virtual_machine_gpu.go b/model_virtualization_vmware_virtual_machine_gpu.go index f67fa6806a..479f0a8516 100644 --- a/model_virtualization_vmware_virtual_machine_gpu.go +++ b/model_virtualization_vmware_virtual_machine_gpu.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -84,6 +84,11 @@ func (o *VirtualizationVmwareVirtualMachineGpu) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "virtualization.VmwareVirtualMachineGpu" of the ClassId field. +func (o *VirtualizationVmwareVirtualMachineGpu) GetDefaultClassId() interface{} { + return "virtualization.VmwareVirtualMachineGpu" +} + // GetObjectType returns the ObjectType field value func (o *VirtualizationVmwareVirtualMachineGpu) GetObjectType() string { if o == nil { @@ -108,6 +113,11 @@ func (o *VirtualizationVmwareVirtualMachineGpu) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "virtualization.VmwareVirtualMachineGpu" of the ObjectType field. +func (o *VirtualizationVmwareVirtualMachineGpu) GetDefaultObjectType() interface{} { + return "virtualization.VmwareVirtualMachineGpu" +} + // GetKey returns the Key field value if set, zero value otherwise. func (o *VirtualizationVmwareVirtualMachineGpu) GetKey() int64 { if o == nil || IsNil(o.Key) { @@ -190,7 +200,13 @@ func (o VirtualizationVmwareVirtualMachineGpu) ToMap() (map[string]interface{}, if errVirtualizationBaseVirtualMachineGpu != nil { return map[string]interface{}{}, errVirtualizationBaseVirtualMachineGpu } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Key) { toSerialize["Key"] = o.Key @@ -215,6 +231,13 @@ func (o *VirtualizationVmwareVirtualMachineGpu) UnmarshalJSON(data []byte) (err "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -224,11 +247,23 @@ func (o *VirtualizationVmwareVirtualMachineGpu) UnmarshalJSON(data []byte) (err } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type VirtualizationVmwareVirtualMachineGpuWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_virtualization_vmware_virtual_machine_gpu_list.go b/model_virtualization_vmware_virtual_machine_gpu_list.go index ad20a031ed..105b90e869 100644 --- a/model_virtualization_vmware_virtual_machine_gpu_list.go +++ b/model_virtualization_vmware_virtual_machine_gpu_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *VirtualizationVmwareVirtualMachineGpuList) GetResultsOk() ([]Virtualiza // HasResults returns a boolean if a field has been set. func (o *VirtualizationVmwareVirtualMachineGpuList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *VirtualizationVmwareVirtualMachineGpuList) UnmarshalJSON(data []byte) ( "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *VirtualizationVmwareVirtualMachineGpuList) UnmarshalJSON(data []byte) ( } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type VirtualizationVmwareVirtualMachineGpuListWithoutEmbeddedStruct struct { // The total number of 'virtualization.VmwareVirtualMachineGpu' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_virtualization_vmware_virtual_machine_gpu_response.go b/model_virtualization_vmware_virtual_machine_gpu_response.go index ccfc989401..b4f2e07244 100644 --- a/model_virtualization_vmware_virtual_machine_gpu_response.go +++ b/model_virtualization_vmware_virtual_machine_gpu_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_virtualization_vmware_virtual_machine_list.go b/model_virtualization_vmware_virtual_machine_list.go index 92abb9c492..7eecf65ca3 100644 --- a/model_virtualization_vmware_virtual_machine_list.go +++ b/model_virtualization_vmware_virtual_machine_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *VirtualizationVmwareVirtualMachineList) GetResultsOk() ([]Virtualizatio // HasResults returns a boolean if a field has been set. func (o *VirtualizationVmwareVirtualMachineList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *VirtualizationVmwareVirtualMachineList) UnmarshalJSON(data []byte) (err "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *VirtualizationVmwareVirtualMachineList) UnmarshalJSON(data []byte) (err } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type VirtualizationVmwareVirtualMachineListWithoutEmbeddedStruct struct { // The total number of 'virtualization.VmwareVirtualMachine' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_virtualization_vmware_virtual_machine_relationship.go b/model_virtualization_vmware_virtual_machine_relationship.go index 24d830a770..62423cf641 100644 --- a/model_virtualization_vmware_virtual_machine_relationship.go +++ b/model_virtualization_vmware_virtual_machine_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_virtualization_vmware_virtual_machine_response.go b/model_virtualization_vmware_virtual_machine_response.go index 4bd76d3d1c..1363e2c03d 100644 --- a/model_virtualization_vmware_virtual_machine_response.go +++ b/model_virtualization_vmware_virtual_machine_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_virtualization_vmware_virtual_machine_snapshot.go b/model_virtualization_vmware_virtual_machine_snapshot.go index a11e3ca528..d0c9f73129 100644 --- a/model_virtualization_vmware_virtual_machine_snapshot.go +++ b/model_virtualization_vmware_virtual_machine_snapshot.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -100,6 +100,11 @@ func (o *VirtualizationVmwareVirtualMachineSnapshot) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "virtualization.VmwareVirtualMachineSnapshot" of the ClassId field. +func (o *VirtualizationVmwareVirtualMachineSnapshot) GetDefaultClassId() interface{} { + return "virtualization.VmwareVirtualMachineSnapshot" +} + // GetObjectType returns the ObjectType field value func (o *VirtualizationVmwareVirtualMachineSnapshot) GetObjectType() string { if o == nil { @@ -124,6 +129,11 @@ func (o *VirtualizationVmwareVirtualMachineSnapshot) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "virtualization.VmwareVirtualMachineSnapshot" of the ObjectType field. +func (o *VirtualizationVmwareVirtualMachineSnapshot) GetDefaultObjectType() interface{} { + return "virtualization.VmwareVirtualMachineSnapshot" +} + // GetCreationTime returns the CreationTime field value if set, zero value otherwise. func (o *VirtualizationVmwareVirtualMachineSnapshot) GetCreationTime() time.Time { if o == nil || IsNil(o.CreationTime) { @@ -473,7 +483,13 @@ func (o VirtualizationVmwareVirtualMachineSnapshot) ToMap() (map[string]interfac if errVirtualizationBaseVirtualMachineSnapshot != nil { return map[string]interface{}{}, errVirtualizationBaseVirtualMachineSnapshot } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.CreationTime) { toSerialize["CreationTime"] = o.CreationTime @@ -522,6 +538,13 @@ func (o *VirtualizationVmwareVirtualMachineSnapshot) UnmarshalJSON(data []byte) "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -531,11 +554,23 @@ func (o *VirtualizationVmwareVirtualMachineSnapshot) UnmarshalJSON(data []byte) } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type VirtualizationVmwareVirtualMachineSnapshotWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_virtualization_vmware_virtual_machine_snapshot_list.go b/model_virtualization_vmware_virtual_machine_snapshot_list.go index bbb0ac2449..a0f7855dd7 100644 --- a/model_virtualization_vmware_virtual_machine_snapshot_list.go +++ b/model_virtualization_vmware_virtual_machine_snapshot_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *VirtualizationVmwareVirtualMachineSnapshotList) GetResultsOk() ([]Virtu // HasResults returns a boolean if a field has been set. func (o *VirtualizationVmwareVirtualMachineSnapshotList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *VirtualizationVmwareVirtualMachineSnapshotList) UnmarshalJSON(data []by "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *VirtualizationVmwareVirtualMachineSnapshotList) UnmarshalJSON(data []by } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type VirtualizationVmwareVirtualMachineSnapshotListWithoutEmbeddedStruct struct { // The total number of 'virtualization.VmwareVirtualMachineSnapshot' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_virtualization_vmware_virtual_machine_snapshot_response.go b/model_virtualization_vmware_virtual_machine_snapshot_response.go index b1bd8f8d95..1bb02ff8fa 100644 --- a/model_virtualization_vmware_virtual_machine_snapshot_response.go +++ b/model_virtualization_vmware_virtual_machine_snapshot_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_virtualization_vmware_virtual_network_interface.go b/model_virtualization_vmware_virtual_network_interface.go index 564632cfa2..6cf0f9f7e5 100644 --- a/model_virtualization_vmware_virtual_network_interface.go +++ b/model_virtualization_vmware_virtual_network_interface.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -37,7 +37,7 @@ type VirtualizationVmwareVirtualNetworkInterface struct { // The internally assigned key of this virtual network interface. This entity is not manipulated by users. Key *int64 `json:"Key,omitempty"` // MAC address assigned to virtual network interface. - MacAddress *string `json:"MacAddress,omitempty"` + MacAddress *string `json:"MacAddress,omitempty" validate:"regexp=^$|^([0-9A-Fa-f]{2}[:-]){5}([0-9A-Fa-f]{2})$"` // MAC address type for the mac address assigned to virtual network interface. * `manual` - Statically assigned MAC address. * `generated` - Automatically generated MAC address. * `assigned` - MAC address assigned by VCenter to the virtual network interface card. MacAddressType *string `json:"MacAddressType,omitempty"` // Type of network for virtual network interface. It can be either standard or distributed. @@ -102,6 +102,11 @@ func (o *VirtualizationVmwareVirtualNetworkInterface) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "virtualization.VmwareVirtualNetworkInterface" of the ClassId field. +func (o *VirtualizationVmwareVirtualNetworkInterface) GetDefaultClassId() interface{} { + return "virtualization.VmwareVirtualNetworkInterface" +} + // GetObjectType returns the ObjectType field value func (o *VirtualizationVmwareVirtualNetworkInterface) GetObjectType() string { if o == nil { @@ -126,6 +131,11 @@ func (o *VirtualizationVmwareVirtualNetworkInterface) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "virtualization.VmwareVirtualNetworkInterface" of the ObjectType field. +func (o *VirtualizationVmwareVirtualNetworkInterface) GetDefaultObjectType() interface{} { + return "virtualization.VmwareVirtualNetworkInterface" +} + // GetAdapterType returns the AdapterType field value if set, zero value otherwise. func (o *VirtualizationVmwareVirtualNetworkInterface) GetAdapterType() string { if o == nil || IsNil(o.AdapterType) { @@ -486,7 +496,13 @@ func (o VirtualizationVmwareVirtualNetworkInterface) ToMap() (map[string]interfa if errVirtualizationBaseVirtualNetworkInterface != nil { return map[string]interface{}{}, errVirtualizationBaseVirtualNetworkInterface } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.AdapterType) { toSerialize["AdapterType"] = o.AdapterType @@ -535,6 +551,13 @@ func (o *VirtualizationVmwareVirtualNetworkInterface) UnmarshalJSON(data []byte) "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -544,11 +567,23 @@ func (o *VirtualizationVmwareVirtualNetworkInterface) UnmarshalJSON(data []byte) } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type VirtualizationVmwareVirtualNetworkInterfaceWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` @@ -563,7 +598,7 @@ func (o *VirtualizationVmwareVirtualNetworkInterface) UnmarshalJSON(data []byte) // The internally assigned key of this virtual network interface. This entity is not manipulated by users. Key *int64 `json:"Key,omitempty"` // MAC address assigned to virtual network interface. - MacAddress *string `json:"MacAddress,omitempty"` + MacAddress *string `json:"MacAddress,omitempty" validate:"regexp=^$|^([0-9A-Fa-f]{2}[:-]){5}([0-9A-Fa-f]{2})$"` // MAC address type for the mac address assigned to virtual network interface. * `manual` - Statically assigned MAC address. * `generated` - Automatically generated MAC address. * `assigned` - MAC address assigned by VCenter to the virtual network interface card. MacAddressType *string `json:"MacAddressType,omitempty"` // Type of network for virtual network interface. It can be either standard or distributed. diff --git a/model_virtualization_vmware_virtual_network_interface_list.go b/model_virtualization_vmware_virtual_network_interface_list.go index ef08e233db..6586c28077 100644 --- a/model_virtualization_vmware_virtual_network_interface_list.go +++ b/model_virtualization_vmware_virtual_network_interface_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *VirtualizationVmwareVirtualNetworkInterfaceList) GetResultsOk() ([]Virt // HasResults returns a boolean if a field has been set. func (o *VirtualizationVmwareVirtualNetworkInterfaceList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *VirtualizationVmwareVirtualNetworkInterfaceList) UnmarshalJSON(data []b "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *VirtualizationVmwareVirtualNetworkInterfaceList) UnmarshalJSON(data []b } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type VirtualizationVmwareVirtualNetworkInterfaceListWithoutEmbeddedStruct struct { // The total number of 'virtualization.VmwareVirtualNetworkInterface' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_virtualization_vmware_virtual_network_interface_response.go b/model_virtualization_vmware_virtual_network_interface_response.go index 9b18c930a9..04e66a9a53 100644 --- a/model_virtualization_vmware_virtual_network_interface_response.go +++ b/model_virtualization_vmware_virtual_network_interface_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_virtualization_vmware_virtual_switch.go b/model_virtualization_vmware_virtual_switch.go index 48bb7f02cb..ecacd0866c 100644 --- a/model_virtualization_vmware_virtual_switch.go +++ b/model_virtualization_vmware_virtual_switch.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -106,6 +106,11 @@ func (o *VirtualizationVmwareVirtualSwitch) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "virtualization.VmwareVirtualSwitch" of the ClassId field. +func (o *VirtualizationVmwareVirtualSwitch) GetDefaultClassId() interface{} { + return "virtualization.VmwareVirtualSwitch" +} + // GetObjectType returns the ObjectType field value func (o *VirtualizationVmwareVirtualSwitch) GetObjectType() string { if o == nil { @@ -130,6 +135,11 @@ func (o *VirtualizationVmwareVirtualSwitch) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "virtualization.VmwareVirtualSwitch" of the ObjectType field. +func (o *VirtualizationVmwareVirtualSwitch) GetDefaultObjectType() interface{} { + return "virtualization.VmwareVirtualSwitch" +} + // GetForgedTransmits returns the ForgedTransmits field value if set, zero value otherwise. func (o *VirtualizationVmwareVirtualSwitch) GetForgedTransmits() string { if o == nil || IsNil(o.ForgedTransmits) { @@ -426,7 +436,13 @@ func (o VirtualizationVmwareVirtualSwitch) ToMap() (map[string]interface{}, erro if errVirtualizationBaseVirtualSwitch != nil { return map[string]interface{}{}, errVirtualizationBaseVirtualSwitch } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.ForgedTransmits) { toSerialize["ForgedTransmits"] = o.ForgedTransmits @@ -469,6 +485,13 @@ func (o *VirtualizationVmwareVirtualSwitch) UnmarshalJSON(data []byte) (err erro "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -478,11 +501,23 @@ func (o *VirtualizationVmwareVirtualSwitch) UnmarshalJSON(data []byte) (err erro } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type VirtualizationVmwareVirtualSwitchWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_virtualization_vmware_virtual_switch_list.go b/model_virtualization_vmware_virtual_switch_list.go index c988d47b81..ea354dfd85 100644 --- a/model_virtualization_vmware_virtual_switch_list.go +++ b/model_virtualization_vmware_virtual_switch_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *VirtualizationVmwareVirtualSwitchList) GetResultsOk() ([]Virtualization // HasResults returns a boolean if a field has been set. func (o *VirtualizationVmwareVirtualSwitchList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *VirtualizationVmwareVirtualSwitchList) UnmarshalJSON(data []byte) (err "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *VirtualizationVmwareVirtualSwitchList) UnmarshalJSON(data []byte) (err } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type VirtualizationVmwareVirtualSwitchListWithoutEmbeddedStruct struct { // The total number of 'virtualization.VmwareVirtualSwitch' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_virtualization_vmware_virtual_switch_relationship.go b/model_virtualization_vmware_virtual_switch_relationship.go index 300ef65973..30ba83bf6d 100644 --- a/model_virtualization_vmware_virtual_switch_relationship.go +++ b/model_virtualization_vmware_virtual_switch_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_virtualization_vmware_virtual_switch_response.go b/model_virtualization_vmware_virtual_switch_response.go index c59739468d..6b8a2d782a 100644 --- a/model_virtualization_vmware_virtual_switch_response.go +++ b/model_virtualization_vmware_virtual_switch_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_virtualization_vmware_vlan_range.go b/model_virtualization_vmware_vlan_range.go index b4ce3d6b53..7793cf09e4 100644 --- a/model_virtualization_vmware_vlan_range.go +++ b/model_virtualization_vmware_vlan_range.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -84,6 +84,11 @@ func (o *VirtualizationVmwareVlanRange) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "virtualization.VmwareVlanRange" of the ClassId field. +func (o *VirtualizationVmwareVlanRange) GetDefaultClassId() interface{} { + return "virtualization.VmwareVlanRange" +} + // GetObjectType returns the ObjectType field value func (o *VirtualizationVmwareVlanRange) GetObjectType() string { if o == nil { @@ -108,6 +113,11 @@ func (o *VirtualizationVmwareVlanRange) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "virtualization.VmwareVlanRange" of the ObjectType field. +func (o *VirtualizationVmwareVlanRange) GetDefaultObjectType() interface{} { + return "virtualization.VmwareVlanRange" +} + // GetVlanRangeEnd returns the VlanRangeEnd field value if set, zero value otherwise. func (o *VirtualizationVmwareVlanRange) GetVlanRangeEnd() int64 { if o == nil || IsNil(o.VlanRangeEnd) { @@ -190,7 +200,13 @@ func (o VirtualizationVmwareVlanRange) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.VlanRangeEnd) { toSerialize["VlanRangeEnd"] = o.VlanRangeEnd @@ -215,6 +231,13 @@ func (o *VirtualizationVmwareVlanRange) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -224,11 +247,23 @@ func (o *VirtualizationVmwareVlanRange) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type VirtualizationVmwareVlanRangeWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_virtualization_vmware_vm_cpu_share_info.go b/model_virtualization_vmware_vm_cpu_share_info.go index ab3bebb4d4..bab42e544f 100644 --- a/model_virtualization_vmware_vm_cpu_share_info.go +++ b/model_virtualization_vmware_vm_cpu_share_info.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -88,6 +88,11 @@ func (o *VirtualizationVmwareVmCpuShareInfo) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "virtualization.VmwareVmCpuShareInfo" of the ClassId field. +func (o *VirtualizationVmwareVmCpuShareInfo) GetDefaultClassId() interface{} { + return "virtualization.VmwareVmCpuShareInfo" +} + // GetObjectType returns the ObjectType field value func (o *VirtualizationVmwareVmCpuShareInfo) GetObjectType() string { if o == nil { @@ -112,6 +117,11 @@ func (o *VirtualizationVmwareVmCpuShareInfo) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "virtualization.VmwareVmCpuShareInfo" of the ObjectType field. +func (o *VirtualizationVmwareVmCpuShareInfo) GetDefaultObjectType() interface{} { + return "virtualization.VmwareVmCpuShareInfo" +} + // GetCpuLimit returns the CpuLimit field value if set, zero value otherwise. func (o *VirtualizationVmwareVmCpuShareInfo) GetCpuLimit() int64 { if o == nil || IsNil(o.CpuLimit) { @@ -258,7 +268,13 @@ func (o VirtualizationVmwareVmCpuShareInfo) ToMap() (map[string]interface{}, err if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.CpuLimit) { toSerialize["CpuLimit"] = o.CpuLimit @@ -289,6 +305,13 @@ func (o *VirtualizationVmwareVmCpuShareInfo) UnmarshalJSON(data []byte) (err err "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -298,11 +321,23 @@ func (o *VirtualizationVmwareVmCpuShareInfo) UnmarshalJSON(data []byte) (err err } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type VirtualizationVmwareVmCpuShareInfoWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_virtualization_vmware_vm_cpu_socket_info.go b/model_virtualization_vmware_vm_cpu_socket_info.go index 43474af7f1..5c062dab66 100644 --- a/model_virtualization_vmware_vm_cpu_socket_info.go +++ b/model_virtualization_vmware_vm_cpu_socket_info.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -86,6 +86,11 @@ func (o *VirtualizationVmwareVmCpuSocketInfo) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "virtualization.VmwareVmCpuSocketInfo" of the ClassId field. +func (o *VirtualizationVmwareVmCpuSocketInfo) GetDefaultClassId() interface{} { + return "virtualization.VmwareVmCpuSocketInfo" +} + // GetObjectType returns the ObjectType field value func (o *VirtualizationVmwareVmCpuSocketInfo) GetObjectType() string { if o == nil { @@ -110,6 +115,11 @@ func (o *VirtualizationVmwareVmCpuSocketInfo) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "virtualization.VmwareVmCpuSocketInfo" of the ObjectType field. +func (o *VirtualizationVmwareVmCpuSocketInfo) GetDefaultObjectType() interface{} { + return "virtualization.VmwareVmCpuSocketInfo" +} + // GetCoresPerSocket returns the CoresPerSocket field value if set, zero value otherwise. func (o *VirtualizationVmwareVmCpuSocketInfo) GetCoresPerSocket() int64 { if o == nil || IsNil(o.CoresPerSocket) { @@ -224,7 +234,13 @@ func (o VirtualizationVmwareVmCpuSocketInfo) ToMap() (map[string]interface{}, er if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.CoresPerSocket) { toSerialize["CoresPerSocket"] = o.CoresPerSocket @@ -252,6 +268,13 @@ func (o *VirtualizationVmwareVmCpuSocketInfo) UnmarshalJSON(data []byte) (err er "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -261,11 +284,23 @@ func (o *VirtualizationVmwareVmCpuSocketInfo) UnmarshalJSON(data []byte) (err er } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type VirtualizationVmwareVmCpuSocketInfoWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_virtualization_vmware_vm_disk_commit_info.go b/model_virtualization_vmware_vm_disk_commit_info.go index e6718c1529..d3106e1da9 100644 --- a/model_virtualization_vmware_vm_disk_commit_info.go +++ b/model_virtualization_vmware_vm_disk_commit_info.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -86,6 +86,11 @@ func (o *VirtualizationVmwareVmDiskCommitInfo) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "virtualization.VmwareVmDiskCommitInfo" of the ClassId field. +func (o *VirtualizationVmwareVmDiskCommitInfo) GetDefaultClassId() interface{} { + return "virtualization.VmwareVmDiskCommitInfo" +} + // GetObjectType returns the ObjectType field value func (o *VirtualizationVmwareVmDiskCommitInfo) GetObjectType() string { if o == nil { @@ -110,6 +115,11 @@ func (o *VirtualizationVmwareVmDiskCommitInfo) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "virtualization.VmwareVmDiskCommitInfo" of the ObjectType field. +func (o *VirtualizationVmwareVmDiskCommitInfo) GetDefaultObjectType() interface{} { + return "virtualization.VmwareVmDiskCommitInfo" +} + // GetCommittedDisk returns the CommittedDisk field value if set, zero value otherwise. func (o *VirtualizationVmwareVmDiskCommitInfo) GetCommittedDisk() int64 { if o == nil || IsNil(o.CommittedDisk) { @@ -224,7 +234,13 @@ func (o VirtualizationVmwareVmDiskCommitInfo) ToMap() (map[string]interface{}, e if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.CommittedDisk) { toSerialize["CommittedDisk"] = o.CommittedDisk @@ -252,6 +268,13 @@ func (o *VirtualizationVmwareVmDiskCommitInfo) UnmarshalJSON(data []byte) (err e "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -261,11 +284,23 @@ func (o *VirtualizationVmwareVmDiskCommitInfo) UnmarshalJSON(data []byte) (err e } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type VirtualizationVmwareVmDiskCommitInfoWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_virtualization_vmware_vm_memory_share_info.go b/model_virtualization_vmware_vm_memory_share_info.go index 1f423c947f..945de4f183 100644 --- a/model_virtualization_vmware_vm_memory_share_info.go +++ b/model_virtualization_vmware_vm_memory_share_info.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -88,6 +88,11 @@ func (o *VirtualizationVmwareVmMemoryShareInfo) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "virtualization.VmwareVmMemoryShareInfo" of the ClassId field. +func (o *VirtualizationVmwareVmMemoryShareInfo) GetDefaultClassId() interface{} { + return "virtualization.VmwareVmMemoryShareInfo" +} + // GetObjectType returns the ObjectType field value func (o *VirtualizationVmwareVmMemoryShareInfo) GetObjectType() string { if o == nil { @@ -112,6 +117,11 @@ func (o *VirtualizationVmwareVmMemoryShareInfo) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "virtualization.VmwareVmMemoryShareInfo" of the ObjectType field. +func (o *VirtualizationVmwareVmMemoryShareInfo) GetDefaultObjectType() interface{} { + return "virtualization.VmwareVmMemoryShareInfo" +} + // GetMemLimit returns the MemLimit field value if set, zero value otherwise. func (o *VirtualizationVmwareVmMemoryShareInfo) GetMemLimit() int64 { if o == nil || IsNil(o.MemLimit) { @@ -258,7 +268,13 @@ func (o VirtualizationVmwareVmMemoryShareInfo) ToMap() (map[string]interface{}, if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.MemLimit) { toSerialize["MemLimit"] = o.MemLimit @@ -289,6 +305,13 @@ func (o *VirtualizationVmwareVmMemoryShareInfo) UnmarshalJSON(data []byte) (err "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -298,11 +321,23 @@ func (o *VirtualizationVmwareVmMemoryShareInfo) UnmarshalJSON(data []byte) (err } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type VirtualizationVmwareVmMemoryShareInfoWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_virtualization_volume_info.go b/model_virtualization_volume_info.go index d5a97530be..48bca7555e 100644 --- a/model_virtualization_volume_info.go +++ b/model_virtualization_volume_info.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -100,6 +100,11 @@ func (o *VirtualizationVolumeInfo) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "virtualization.VolumeInfo" of the ClassId field. +func (o *VirtualizationVolumeInfo) GetDefaultClassId() interface{} { + return "virtualization.VolumeInfo" +} + // GetObjectType returns the ObjectType field value func (o *VirtualizationVolumeInfo) GetObjectType() string { if o == nil { @@ -124,6 +129,11 @@ func (o *VirtualizationVolumeInfo) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "virtualization.VolumeInfo" of the ObjectType field. +func (o *VirtualizationVolumeInfo) GetDefaultObjectType() interface{} { + return "virtualization.VolumeInfo" +} + // GetBootable returns the Bootable field value if set, zero value otherwise. func (o *VirtualizationVolumeInfo) GetBootable() bool { if o == nil || IsNil(o.Bootable) { @@ -462,7 +472,13 @@ func (o VirtualizationVolumeInfo) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Bootable) { toSerialize["Bootable"] = o.Bootable @@ -511,6 +527,13 @@ func (o *VirtualizationVolumeInfo) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -520,11 +543,23 @@ func (o *VirtualizationVolumeInfo) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type VirtualizationVolumeInfoWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_vmedia_mapping.go b/model_vmedia_mapping.go index 0b9f53c2fd..404534ea39 100644 --- a/model_vmedia_mapping.go +++ b/model_vmedia_mapping.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -45,15 +45,15 @@ type VmediaMapping struct { // Password associated with the username. Password *string `json:"Password,omitempty"` // The remote file location path for the virtual media mapping. Accepted formats are: HDD for CIFS/NFS: hostname-or-IP/filePath/fileName.img. CDD for CIFS/NFS: hostname-or-IP/filePath/fileName.iso. HDD for HTTP/S: http[s]://hostname-or-IP/filePath/fileName.img. CDD for HTTP/S: http[s]://hostname-or-IP/filePath/fileName.iso. - RemoteFile *string `json:"RemoteFile,omitempty"` + RemoteFile *string `json:"RemoteFile,omitempty" validate:"regexp=^$|^[ !#$%\\\\(\\\\)\\\\+,\\\\-\\\\.:\\\\?@\\\\[\\\\]_\\\\{\\\\}=~a-zA-Z0-9]+$"` // URL path to the location of the image on the remote server. The preferred format is '/path'. - RemotePath *string `json:"RemotePath,omitempty"` + RemotePath *string `json:"RemotePath,omitempty" validate:"regexp=^$|^[ !#$%\\\\(\\\\)\\\\+,\\\\-\\\\.\\/:\\\\?@\\\\[\\\\]_\\\\{\\\\}=~a-zA-Z0-9]+$"` // File Location in standard format 'hostname/filePath/fileName'. This field should be used to calculate config drift. User input format may vary while inventory will return data in format in compliance with mount option for the mount. Both will be converged to this standard format for comparison. SanitizedFileLocation *string `json:"SanitizedFileLocation,omitempty"` // Username to log in to the remote server. Username *string `json:"Username,omitempty"` // Identity of the image for Virtual Media mapping. - VolumeName *string `json:"VolumeName,omitempty"` + VolumeName *string `json:"VolumeName,omitempty" validate:"regexp=^[\\\\-\\\\.:_a-zA-Z0-9]+$"` AdditionalProperties map[string]interface{} } @@ -118,6 +118,11 @@ func (o *VmediaMapping) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "vmedia.Mapping" of the ClassId field. +func (o *VmediaMapping) GetDefaultClassId() interface{} { + return "vmedia.Mapping" +} + // GetObjectType returns the ObjectType field value func (o *VmediaMapping) GetObjectType() string { if o == nil { @@ -142,6 +147,11 @@ func (o *VmediaMapping) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "vmedia.Mapping" of the ObjectType field. +func (o *VmediaMapping) GetDefaultObjectType() interface{} { + return "vmedia.Mapping" +} + // GetAuthenticationProtocol returns the AuthenticationProtocol field value if set, zero value otherwise. func (o *VmediaMapping) GetAuthenticationProtocol() string { if o == nil || IsNil(o.AuthenticationProtocol) { @@ -576,7 +586,13 @@ func (o VmediaMapping) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.AuthenticationProtocol) { toSerialize["AuthenticationProtocol"] = o.AuthenticationProtocol @@ -634,6 +650,13 @@ func (o *VmediaMapping) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -643,11 +666,23 @@ func (o *VmediaMapping) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type VmediaMappingWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` @@ -670,15 +705,15 @@ func (o *VmediaMapping) UnmarshalJSON(data []byte) (err error) { // Password associated with the username. Password *string `json:"Password,omitempty"` // The remote file location path for the virtual media mapping. Accepted formats are: HDD for CIFS/NFS: hostname-or-IP/filePath/fileName.img. CDD for CIFS/NFS: hostname-or-IP/filePath/fileName.iso. HDD for HTTP/S: http[s]://hostname-or-IP/filePath/fileName.img. CDD for HTTP/S: http[s]://hostname-or-IP/filePath/fileName.iso. - RemoteFile *string `json:"RemoteFile,omitempty"` + RemoteFile *string `json:"RemoteFile,omitempty" validate:"regexp=^$|^[ !#$%\\\\(\\\\)\\\\+,\\\\-\\\\.:\\\\?@\\\\[\\\\]_\\\\{\\\\}=~a-zA-Z0-9]+$"` // URL path to the location of the image on the remote server. The preferred format is '/path'. - RemotePath *string `json:"RemotePath,omitempty"` + RemotePath *string `json:"RemotePath,omitempty" validate:"regexp=^$|^[ !#$%\\\\(\\\\)\\\\+,\\\\-\\\\.\\/:\\\\?@\\\\[\\\\]_\\\\{\\\\}=~a-zA-Z0-9]+$"` // File Location in standard format 'hostname/filePath/fileName'. This field should be used to calculate config drift. User input format may vary while inventory will return data in format in compliance with mount option for the mount. Both will be converged to this standard format for comparison. SanitizedFileLocation *string `json:"SanitizedFileLocation,omitempty"` // Username to log in to the remote server. Username *string `json:"Username,omitempty"` // Identity of the image for Virtual Media mapping. - VolumeName *string `json:"VolumeName,omitempty"` + VolumeName *string `json:"VolumeName,omitempty" validate:"regexp=^[\\\\-\\\\.:_a-zA-Z0-9]+$"` } varVmediaMappingWithoutEmbeddedStruct := VmediaMappingWithoutEmbeddedStruct{} diff --git a/model_vmedia_policy.go b/model_vmedia_policy.go index 9b64c42407..dda69873f9 100644 --- a/model_vmedia_policy.go +++ b/model_vmedia_policy.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -102,6 +102,11 @@ func (o *VmediaPolicy) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "vmedia.Policy" of the ClassId field. +func (o *VmediaPolicy) GetDefaultClassId() interface{} { + return "vmedia.Policy" +} + // GetObjectType returns the ObjectType field value func (o *VmediaPolicy) GetObjectType() string { if o == nil { @@ -126,6 +131,11 @@ func (o *VmediaPolicy) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "vmedia.Policy" of the ObjectType field. +func (o *VmediaPolicy) GetDefaultObjectType() interface{} { + return "vmedia.Policy" +} + // GetEnabled returns the Enabled field value if set, zero value otherwise. func (o *VmediaPolicy) GetEnabled() bool { if o == nil || IsNil(o.Enabled) { @@ -243,7 +253,7 @@ func (o *VmediaPolicy) GetMappingsOk() ([]VmediaMapping, bool) { // HasMappings returns a boolean if a field has been set. func (o *VmediaPolicy) HasMappings() bool { - if o != nil && IsNil(o.Mappings) { + if o != nil && !IsNil(o.Mappings) { return true } @@ -319,7 +329,7 @@ func (o *VmediaPolicy) GetProfilesOk() ([]PolicyAbstractConfigProfileRelationshi // HasProfiles returns a boolean if a field has been set. func (o *VmediaPolicy) HasProfiles() bool { - if o != nil && IsNil(o.Profiles) { + if o != nil && !IsNil(o.Profiles) { return true } @@ -349,7 +359,13 @@ func (o VmediaPolicy) ToMap() (map[string]interface{}, error) { if errPolicyAbstractPolicy != nil { return map[string]interface{}{}, errPolicyAbstractPolicy } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Enabled) { toSerialize["Enabled"] = o.Enabled @@ -386,6 +402,13 @@ func (o *VmediaPolicy) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -395,11 +418,23 @@ func (o *VmediaPolicy) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type VmediaPolicyWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_vmedia_policy_inventory.go b/model_vmedia_policy_inventory.go index ec6f8f7b29..23218b1e9e 100644 --- a/model_vmedia_policy_inventory.go +++ b/model_vmedia_policy_inventory.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -88,6 +88,11 @@ func (o *VmediaPolicyInventory) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "vmedia.PolicyInventory" of the ClassId field. +func (o *VmediaPolicyInventory) GetDefaultClassId() interface{} { + return "vmedia.PolicyInventory" +} + // GetObjectType returns the ObjectType field value func (o *VmediaPolicyInventory) GetObjectType() string { if o == nil { @@ -112,6 +117,11 @@ func (o *VmediaPolicyInventory) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "vmedia.PolicyInventory" of the ObjectType field. +func (o *VmediaPolicyInventory) GetDefaultObjectType() interface{} { + return "vmedia.PolicyInventory" +} + // GetEnabled returns the Enabled field value if set, zero value otherwise. func (o *VmediaPolicyInventory) GetEnabled() bool { if o == nil || IsNil(o.Enabled) { @@ -229,7 +239,7 @@ func (o *VmediaPolicyInventory) GetMappingsOk() ([]VmediaMapping, bool) { // HasMappings returns a boolean if a field has been set. func (o *VmediaPolicyInventory) HasMappings() bool { - if o != nil && IsNil(o.Mappings) { + if o != nil && !IsNil(o.Mappings) { return true } @@ -302,7 +312,13 @@ func (o VmediaPolicyInventory) ToMap() (map[string]interface{}, error) { if errPolicyAbstractPolicyInventory != nil { return map[string]interface{}{}, errPolicyAbstractPolicyInventory } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Enabled) { toSerialize["Enabled"] = o.Enabled @@ -336,6 +352,13 @@ func (o *VmediaPolicyInventory) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -345,11 +368,23 @@ func (o *VmediaPolicyInventory) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type VmediaPolicyInventoryWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_vmedia_policy_inventory_list.go b/model_vmedia_policy_inventory_list.go index 6108095a02..7fa6b2d6fd 100644 --- a/model_vmedia_policy_inventory_list.go +++ b/model_vmedia_policy_inventory_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *VmediaPolicyInventoryList) GetResultsOk() ([]VmediaPolicyInventory, boo // HasResults returns a boolean if a field has been set. func (o *VmediaPolicyInventoryList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *VmediaPolicyInventoryList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *VmediaPolicyInventoryList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type VmediaPolicyInventoryListWithoutEmbeddedStruct struct { // The total number of 'vmedia.PolicyInventory' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_vmedia_policy_inventory_response.go b/model_vmedia_policy_inventory_response.go index d77fd06405..e811bbbc6a 100644 --- a/model_vmedia_policy_inventory_response.go +++ b/model_vmedia_policy_inventory_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_vmedia_policy_list.go b/model_vmedia_policy_list.go index cb3b71873e..9d57fae0dc 100644 --- a/model_vmedia_policy_list.go +++ b/model_vmedia_policy_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *VmediaPolicyList) GetResultsOk() ([]VmediaPolicy, bool) { // HasResults returns a boolean if a field has been set. func (o *VmediaPolicyList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *VmediaPolicyList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *VmediaPolicyList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type VmediaPolicyListWithoutEmbeddedStruct struct { // The total number of 'vmedia.Policy' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_vmedia_policy_response.go b/model_vmedia_policy_response.go index 4f4d960c56..fbad44d4e9 100644 --- a/model_vmedia_policy_response.go +++ b/model_vmedia_policy_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_vmrc_console.go b/model_vmrc_console.go index 81022248fe..27665322b1 100644 --- a/model_vmrc_console.go +++ b/model_vmrc_console.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -84,6 +84,11 @@ func (o *VmrcConsole) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "vmrc.Console" of the ClassId field. +func (o *VmrcConsole) GetDefaultClassId() interface{} { + return "vmrc.Console" +} + // GetObjectType returns the ObjectType field value func (o *VmrcConsole) GetObjectType() string { if o == nil { @@ -108,6 +113,11 @@ func (o *VmrcConsole) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "vmrc.Console" of the ObjectType field. +func (o *VmrcConsole) GetDefaultObjectType() interface{} { + return "vmrc.Console" +} + // GetVcenter returns the Vcenter field value if set, zero value otherwise (both if not set or set to explicit null). func (o *VmrcConsole) GetVcenter() VirtualizationVmwareVcenterRelationship { if o == nil || IsNil(o.Vcenter.Get()) { @@ -212,7 +222,13 @@ func (o VmrcConsole) ToMap() (map[string]interface{}, error) { if errTunnelingTunnel != nil { return map[string]interface{}{}, errTunnelingTunnel } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.Vcenter.IsSet() { toSerialize["Vcenter"] = o.Vcenter.Get() @@ -237,6 +253,13 @@ func (o *VmrcConsole) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -246,11 +269,23 @@ func (o *VmrcConsole) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type VmrcConsoleWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_vmrc_console_list.go b/model_vmrc_console_list.go index c3b64669ba..5b9598f8a3 100644 --- a/model_vmrc_console_list.go +++ b/model_vmrc_console_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *VmrcConsoleList) GetResultsOk() ([]VmrcConsole, bool) { // HasResults returns a boolean if a field has been set. func (o *VmrcConsoleList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *VmrcConsoleList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *VmrcConsoleList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type VmrcConsoleListWithoutEmbeddedStruct struct { // The total number of 'vmrc.Console' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_vmrc_console_response.go b/model_vmrc_console_response.go index 6a243133b2..19351be7a8 100644 --- a/model_vmrc_console_response.go +++ b/model_vmrc_console_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_vnic_arfs_settings.go b/model_vnic_arfs_settings.go index 4eb487646c..86acd70be0 100644 --- a/model_vnic_arfs_settings.go +++ b/model_vnic_arfs_settings.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -86,6 +86,11 @@ func (o *VnicArfsSettings) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "vnic.ArfsSettings" of the ClassId field. +func (o *VnicArfsSettings) GetDefaultClassId() interface{} { + return "vnic.ArfsSettings" +} + // GetObjectType returns the ObjectType field value func (o *VnicArfsSettings) GetObjectType() string { if o == nil { @@ -110,6 +115,11 @@ func (o *VnicArfsSettings) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "vnic.ArfsSettings" of the ObjectType field. +func (o *VnicArfsSettings) GetDefaultObjectType() interface{} { + return "vnic.ArfsSettings" +} + // GetEnabled returns the Enabled field value if set, zero value otherwise. func (o *VnicArfsSettings) GetEnabled() bool { if o == nil || IsNil(o.Enabled) { @@ -160,7 +170,13 @@ func (o VnicArfsSettings) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Enabled) { toSerialize["Enabled"] = o.Enabled @@ -182,6 +198,13 @@ func (o *VnicArfsSettings) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -191,11 +214,23 @@ func (o *VnicArfsSettings) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type VnicArfsSettingsWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_vnic_base_eth_if.go b/model_vnic_base_eth_if.go index 3f1a09e457..d983ddab43 100644 --- a/model_vnic_base_eth_if.go +++ b/model_vnic_base_eth_if.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -32,7 +32,7 @@ type VnicBaseEthIf struct { // Enabling failover ensures that traffic from the vNIC automatically fails over to the secondary Fabric Interconnect, in case the specified Fabric Interconnect path goes down. Failover applies only to Cisco VICs that are connected to a Fabric Interconnect cluster. FailoverEnabled *bool `json:"FailoverEnabled,omitempty"` // Pingroup name associated to vNIC for static pinning. LCP deploy will resolve pingroup name and fetches the correspoding uplink port/port channel to pin the vNIC traffic. - PinGroupName *string `json:"PinGroupName,omitempty"` + PinGroupName *string `json:"PinGroupName,omitempty" validate:"regexp=^$|^[a-zA-Z0-9_.:-]{1,64}$"` SriovSettings NullableVnicSriovSettings `json:"SriovSettings,omitempty"` UsnicSettings NullableVnicUsnicSettings `json:"UsnicSettings,omitempty"` VmqSettings NullableVnicVmqSettings `json:"VmqSettings,omitempty"` @@ -549,7 +549,7 @@ func (o *VnicBaseEthIf) GetFabricEthNetworkGroupPolicyOk() ([]FabricEthNetworkGr // HasFabricEthNetworkGroupPolicy returns a boolean if a field has been set. func (o *VnicBaseEthIf) HasFabricEthNetworkGroupPolicy() bool { - if o != nil && IsNil(o.FabricEthNetworkGroupPolicy) { + if o != nil && !IsNil(o.FabricEthNetworkGroupPolicy) { return true } @@ -723,6 +723,10 @@ func (o *VnicBaseEthIf) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -732,11 +736,23 @@ func (o *VnicBaseEthIf) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type VnicBaseEthIfWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. The enum values provides the list of concrete types that can be instantiated from this abstract type. ClassId string `json:"ClassId"` @@ -746,7 +762,7 @@ func (o *VnicBaseEthIf) UnmarshalJSON(data []byte) (err error) { // Enabling failover ensures that traffic from the vNIC automatically fails over to the secondary Fabric Interconnect, in case the specified Fabric Interconnect path goes down. Failover applies only to Cisco VICs that are connected to a Fabric Interconnect cluster. FailoverEnabled *bool `json:"FailoverEnabled,omitempty"` // Pingroup name associated to vNIC for static pinning. LCP deploy will resolve pingroup name and fetches the correspoding uplink port/port channel to pin the vNIC traffic. - PinGroupName *string `json:"PinGroupName,omitempty"` + PinGroupName *string `json:"PinGroupName,omitempty" validate:"regexp=^$|^[a-zA-Z0-9_.:-]{1,64}$"` SriovSettings NullableVnicSriovSettings `json:"SriovSettings,omitempty"` UsnicSettings NullableVnicUsnicSettings `json:"UsnicSettings,omitempty"` VmqSettings NullableVnicVmqSettings `json:"VmqSettings,omitempty"` diff --git a/model_vnic_base_fc_if.go b/model_vnic_base_fc_if.go index b0e1cc7cb0..6113a0c9bd 100644 --- a/model_vnic_base_fc_if.go +++ b/model_vnic_base_fc_if.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -31,7 +31,7 @@ type VnicBaseFcIf struct { // Enables retention of LUN ID associations in memory until they are manually cleared. PersistentBindings *bool `json:"PersistentBindings,omitempty"` // Pingroup name associated to vfc for static pinning. SCP deploy will resolve pingroup name and fetches the correspoding uplink port/port channel to pin the vfc traffic. - PinGroupName *string `json:"PinGroupName,omitempty"` + PinGroupName *string `json:"PinGroupName,omitempty" validate:"regexp=^$|^[a-zA-Z0-9_.:-]{1,64}$"` // VHBA Type configuration for SAN Connectivity Policy. This configuration is supported only on Cisco VIC 14XX series and higher series of adapters. * `fc-initiator` - The default value set for vHBA Type Configuration. Fc-initiator specifies vHBA as a consumer of storage. Enables SCSI commands to transfer data and status information between host and target storage systems. * `fc-nvme-initiator` - Fc-nvme-initiator specifies vHBA as a consumer of storage. Enables NVMe-based message commands to transfer data and status information between host and target storage systems. * `fc-nvme-target` - Fc-nvme-target specifies vHBA as a provider of storage volumes to initiators. Enables NVMe-based message commands to transfer data and status information between host and target storage systems. Currently tech-preview, only enabled with an asynchronous driver. * `fc-target` - Fc-target specifies vHBA as a provider of storage volumes to initiators. Enables SCSI commands to transfer data and status information between host and target storage systems. fc-target is enabled only with an asynchronous driver. Type *string `json:"Type,omitempty"` FcAdapterPolicy NullableVnicFcAdapterPolicyRelationship `json:"FcAdapterPolicy,omitempty"` @@ -362,7 +362,7 @@ func (o *VnicBaseFcIf) GetFcZonePoliciesOk() ([]FabricFcZonePolicyRelationship, // HasFcZonePolicies returns a boolean if a field has been set. func (o *VnicBaseFcIf) HasFcZonePolicies() bool { - if o != nil && IsNil(o.FcZonePolicies) { + if o != nil && !IsNil(o.FcZonePolicies) { return true } @@ -478,6 +478,10 @@ func (o *VnicBaseFcIf) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -487,11 +491,23 @@ func (o *VnicBaseFcIf) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type VnicBaseFcIfWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. The enum values provides the list of concrete types that can be instantiated from this abstract type. ClassId string `json:"ClassId"` @@ -500,7 +516,7 @@ func (o *VnicBaseFcIf) UnmarshalJSON(data []byte) (err error) { // Enables retention of LUN ID associations in memory until they are manually cleared. PersistentBindings *bool `json:"PersistentBindings,omitempty"` // Pingroup name associated to vfc for static pinning. SCP deploy will resolve pingroup name and fetches the correspoding uplink port/port channel to pin the vfc traffic. - PinGroupName *string `json:"PinGroupName,omitempty"` + PinGroupName *string `json:"PinGroupName,omitempty" validate:"regexp=^$|^[a-zA-Z0-9_.:-]{1,64}$"` // VHBA Type configuration for SAN Connectivity Policy. This configuration is supported only on Cisco VIC 14XX series and higher series of adapters. * `fc-initiator` - The default value set for vHBA Type Configuration. Fc-initiator specifies vHBA as a consumer of storage. Enables SCSI commands to transfer data and status information between host and target storage systems. * `fc-nvme-initiator` - Fc-nvme-initiator specifies vHBA as a consumer of storage. Enables NVMe-based message commands to transfer data and status information between host and target storage systems. * `fc-nvme-target` - Fc-nvme-target specifies vHBA as a provider of storage volumes to initiators. Enables NVMe-based message commands to transfer data and status information between host and target storage systems. Currently tech-preview, only enabled with an asynchronous driver. * `fc-target` - Fc-target specifies vHBA as a provider of storage volumes to initiators. Enables SCSI commands to transfer data and status information between host and target storage systems. fc-target is enabled only with an asynchronous driver. Type *string `json:"Type,omitempty"` FcAdapterPolicy NullableVnicFcAdapterPolicyRelationship `json:"FcAdapterPolicy,omitempty"` diff --git a/model_vnic_cdn.go b/model_vnic_cdn.go index ff2a2db8c9..a20e8b7541 100644 --- a/model_vnic_cdn.go +++ b/model_vnic_cdn.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -31,7 +31,7 @@ type VnicCdn struct { // Source of the CDN. It can either be user specified or be the same as the vNIC name. * `vnic` - Source of the CDN is the same as the vNIC name. * `user` - Source of the CDN is specified by the user. Source *string `json:"Source,omitempty"` // The CDN value entered in case of user defined mode. - Value *string `json:"Value,omitempty"` + Value *string `json:"Value,omitempty" validate:"regexp=^[a-zA-Z0-9\\\\-\\\\._:]*$"` AdditionalProperties map[string]interface{} } @@ -88,6 +88,11 @@ func (o *VnicCdn) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "vnic.Cdn" of the ClassId field. +func (o *VnicCdn) GetDefaultClassId() interface{} { + return "vnic.Cdn" +} + // GetObjectType returns the ObjectType field value func (o *VnicCdn) GetObjectType() string { if o == nil { @@ -112,6 +117,11 @@ func (o *VnicCdn) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "vnic.Cdn" of the ObjectType field. +func (o *VnicCdn) GetDefaultObjectType() interface{} { + return "vnic.Cdn" +} + // GetSource returns the Source field value if set, zero value otherwise. func (o *VnicCdn) GetSource() string { if o == nil || IsNil(o.Source) { @@ -194,7 +204,13 @@ func (o VnicCdn) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Source) { toSerialize["Source"] = o.Source @@ -219,6 +235,13 @@ func (o *VnicCdn) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -228,11 +251,23 @@ func (o *VnicCdn) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type VnicCdnWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` @@ -241,7 +276,7 @@ func (o *VnicCdn) UnmarshalJSON(data []byte) (err error) { // Source of the CDN. It can either be user specified or be the same as the vNIC name. * `vnic` - Source of the CDN is the same as the vNIC name. * `user` - Source of the CDN is specified by the user. Source *string `json:"Source,omitempty"` // The CDN value entered in case of user defined mode. - Value *string `json:"Value,omitempty"` + Value *string `json:"Value,omitempty" validate:"regexp=^[a-zA-Z0-9\\\\-\\\\._:]*$"` } varVnicCdnWithoutEmbeddedStruct := VnicCdnWithoutEmbeddedStruct{} diff --git a/model_vnic_completion_queue_settings.go b/model_vnic_completion_queue_settings.go index 2a6b99bb39..5fbce189ad 100644 --- a/model_vnic_completion_queue_settings.go +++ b/model_vnic_completion_queue_settings.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -92,6 +92,11 @@ func (o *VnicCompletionQueueSettings) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "vnic.CompletionQueueSettings" of the ClassId field. +func (o *VnicCompletionQueueSettings) GetDefaultClassId() interface{} { + return "vnic.CompletionQueueSettings" +} + // GetObjectType returns the ObjectType field value func (o *VnicCompletionQueueSettings) GetObjectType() string { if o == nil { @@ -116,6 +121,11 @@ func (o *VnicCompletionQueueSettings) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "vnic.CompletionQueueSettings" of the ObjectType field. +func (o *VnicCompletionQueueSettings) GetDefaultObjectType() interface{} { + return "vnic.CompletionQueueSettings" +} + // GetCount returns the Count field value if set, zero value otherwise. func (o *VnicCompletionQueueSettings) GetCount() int64 { if o == nil || IsNil(o.Count) { @@ -198,7 +208,13 @@ func (o VnicCompletionQueueSettings) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Count) { toSerialize["Count"] = o.Count @@ -223,6 +239,13 @@ func (o *VnicCompletionQueueSettings) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -232,11 +255,23 @@ func (o *VnicCompletionQueueSettings) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type VnicCompletionQueueSettingsWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_vnic_eth_adapter_policy.go b/model_vnic_eth_adapter_policy.go index 78e7256b05..82d735bdd7 100644 --- a/model_vnic_eth_adapter_policy.go +++ b/model_vnic_eth_adapter_policy.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -122,6 +122,11 @@ func (o *VnicEthAdapterPolicy) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "vnic.EthAdapterPolicy" of the ClassId field. +func (o *VnicEthAdapterPolicy) GetDefaultClassId() interface{} { + return "vnic.EthAdapterPolicy" +} + // GetObjectType returns the ObjectType field value func (o *VnicEthAdapterPolicy) GetObjectType() string { if o == nil { @@ -146,6 +151,11 @@ func (o *VnicEthAdapterPolicy) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "vnic.EthAdapterPolicy" of the ObjectType field. +func (o *VnicEthAdapterPolicy) GetDefaultObjectType() interface{} { + return "vnic.EthAdapterPolicy" +} + // GetAdvancedFilter returns the AdvancedFilter field value if set, zero value otherwise. func (o *VnicEthAdapterPolicy) GetAdvancedFilter() bool { if o == nil || IsNil(o.AdvancedFilter) { @@ -840,7 +850,13 @@ func (o VnicEthAdapterPolicy) ToMap() (map[string]interface{}, error) { if errPolicyAbstractPolicy != nil { return map[string]interface{}{}, errPolicyAbstractPolicy } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.AdvancedFilter) { toSerialize["AdvancedFilter"] = o.AdvancedFilter @@ -910,6 +926,13 @@ func (o *VnicEthAdapterPolicy) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -919,11 +942,23 @@ func (o *VnicEthAdapterPolicy) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type VnicEthAdapterPolicyWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_vnic_eth_adapter_policy_inventory.go b/model_vnic_eth_adapter_policy_inventory.go index 5c3e341795..a0d0994406 100644 --- a/model_vnic_eth_adapter_policy_inventory.go +++ b/model_vnic_eth_adapter_policy_inventory.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -102,6 +102,11 @@ func (o *VnicEthAdapterPolicyInventory) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "vnic.EthAdapterPolicyInventory" of the ClassId field. +func (o *VnicEthAdapterPolicyInventory) GetDefaultClassId() interface{} { + return "vnic.EthAdapterPolicyInventory" +} + // GetObjectType returns the ObjectType field value func (o *VnicEthAdapterPolicyInventory) GetObjectType() string { if o == nil { @@ -126,6 +131,11 @@ func (o *VnicEthAdapterPolicyInventory) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "vnic.EthAdapterPolicyInventory" of the ObjectType field. +func (o *VnicEthAdapterPolicyInventory) GetDefaultObjectType() interface{} { + return "vnic.EthAdapterPolicyInventory" +} + // GetAdvancedFilter returns the AdvancedFilter field value if set, zero value otherwise. func (o *VnicEthAdapterPolicyInventory) GetAdvancedFilter() bool { if o == nil || IsNil(o.AdvancedFilter) { @@ -820,7 +830,13 @@ func (o VnicEthAdapterPolicyInventory) ToMap() (map[string]interface{}, error) { if errPolicyAbstractPolicyInventory != nil { return map[string]interface{}{}, errPolicyAbstractPolicyInventory } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.AdvancedFilter) { toSerialize["AdvancedFilter"] = o.AdvancedFilter @@ -890,6 +906,13 @@ func (o *VnicEthAdapterPolicyInventory) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -899,11 +922,23 @@ func (o *VnicEthAdapterPolicyInventory) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type VnicEthAdapterPolicyInventoryWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_vnic_eth_adapter_policy_inventory_list.go b/model_vnic_eth_adapter_policy_inventory_list.go index 56118d8d68..01eaa5de59 100644 --- a/model_vnic_eth_adapter_policy_inventory_list.go +++ b/model_vnic_eth_adapter_policy_inventory_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *VnicEthAdapterPolicyInventoryList) GetResultsOk() ([]VnicEthAdapterPoli // HasResults returns a boolean if a field has been set. func (o *VnicEthAdapterPolicyInventoryList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *VnicEthAdapterPolicyInventoryList) UnmarshalJSON(data []byte) (err erro "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *VnicEthAdapterPolicyInventoryList) UnmarshalJSON(data []byte) (err erro } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type VnicEthAdapterPolicyInventoryListWithoutEmbeddedStruct struct { // The total number of 'vnic.EthAdapterPolicyInventory' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_vnic_eth_adapter_policy_inventory_relationship.go b/model_vnic_eth_adapter_policy_inventory_relationship.go index 37666396e5..bdd17a6d94 100644 --- a/model_vnic_eth_adapter_policy_inventory_relationship.go +++ b/model_vnic_eth_adapter_policy_inventory_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_vnic_eth_adapter_policy_inventory_response.go b/model_vnic_eth_adapter_policy_inventory_response.go index e0b3c46570..b3961c5433 100644 --- a/model_vnic_eth_adapter_policy_inventory_response.go +++ b/model_vnic_eth_adapter_policy_inventory_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_vnic_eth_adapter_policy_list.go b/model_vnic_eth_adapter_policy_list.go index a09e1454b4..0b13cd7625 100644 --- a/model_vnic_eth_adapter_policy_list.go +++ b/model_vnic_eth_adapter_policy_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *VnicEthAdapterPolicyList) GetResultsOk() ([]VnicEthAdapterPolicy, bool) // HasResults returns a boolean if a field has been set. func (o *VnicEthAdapterPolicyList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *VnicEthAdapterPolicyList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *VnicEthAdapterPolicyList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type VnicEthAdapterPolicyListWithoutEmbeddedStruct struct { // The total number of 'vnic.EthAdapterPolicy' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_vnic_eth_adapter_policy_relationship.go b/model_vnic_eth_adapter_policy_relationship.go index a3fc21021b..ade9681958 100644 --- a/model_vnic_eth_adapter_policy_relationship.go +++ b/model_vnic_eth_adapter_policy_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_vnic_eth_adapter_policy_response.go b/model_vnic_eth_adapter_policy_response.go index 4376f3efcc..7987e50336 100644 --- a/model_vnic_eth_adapter_policy_response.go +++ b/model_vnic_eth_adapter_policy_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_vnic_eth_if.go b/model_vnic_eth_if.go index e254c71e11..3ce2518104 100644 --- a/model_vnic_eth_if.go +++ b/model_vnic_eth_if.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -32,13 +32,13 @@ type VnicEthIf struct { IscsiIpV4AddressAllocationType *string `json:"IscsiIpV4AddressAllocationType,omitempty"` IscsiIpV4Config NullableIppoolIpV4Config `json:"IscsiIpV4Config,omitempty"` // IP address associated to the vNIC. - IscsiIpv4Address *string `json:"IscsiIpv4Address,omitempty"` + IscsiIpv4Address *string `json:"IscsiIpv4Address,omitempty" validate:"regexp=^$|^([1-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\\\.([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\\\.([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\\\.([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])$"` // The MAC address that is assigned to the vNIC based on the MAC pool that has been assigned to the LAN Connectivity Policy. MacAddress *string `json:"MacAddress,omitempty"` // Type of allocation selected to assign a MAC address for the vnic. * `POOL` - The user selects a pool from which the mac/wwn address will be leased for the Virtual Interface. * `STATIC` - The user assigns a static mac/wwn address for the Virtual Interface. MacAddressType *string `json:"MacAddressType,omitempty"` // Name of the virtual ethernet interface. - Name *string `json:"Name,omitempty"` + Name *string `json:"Name,omitempty" validate:"regexp=^[a-zA-Z0-9-._:]+$"` // The order in which the virtual interface is brought up. The order assigned to an interface should be unique for all the Ethernet and Fibre-Channel interfaces on each PCI link on a VIC adapter. The order should start from zero with no overlaps. The maximum value of PCI order is limited by the number of virtual interfaces (Ethernet and Fibre-Channel) on each PCI link on a VIC adapter. All VIC adapters have a single PCI link except VIC 1340, VIC 1380 and VIC 1385 which have two. Order *int64 `json:"Order,omitempty"` OverriddenList []string `json:"OverriddenList,omitempty"` @@ -119,6 +119,11 @@ func (o *VnicEthIf) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "vnic.EthIf" of the ClassId field. +func (o *VnicEthIf) GetDefaultClassId() interface{} { + return "vnic.EthIf" +} + // GetObjectType returns the ObjectType field value func (o *VnicEthIf) GetObjectType() string { if o == nil { @@ -143,6 +148,11 @@ func (o *VnicEthIf) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "vnic.EthIf" of the ObjectType field. +func (o *VnicEthIf) GetDefaultObjectType() interface{} { + return "vnic.EthIf" +} + // GetIscsiIpV4AddressAllocationType returns the IscsiIpV4AddressAllocationType field value if set, zero value otherwise. func (o *VnicEthIf) GetIscsiIpV4AddressAllocationType() string { if o == nil || IsNil(o.IscsiIpV4AddressAllocationType) { @@ -399,7 +409,7 @@ func (o *VnicEthIf) GetOverriddenListOk() ([]string, bool) { // HasOverriddenList returns a boolean if a field has been set. func (o *VnicEthIf) HasOverriddenList() bool { - if o != nil && IsNil(o.OverriddenList) { + if o != nil && !IsNil(o.OverriddenList) { return true } @@ -539,7 +549,7 @@ func (o *VnicEthIf) GetTemplateActionsOk() ([]MotemplateActionEntry, bool) { // HasTemplateActions returns a boolean if a field has been set. func (o *VnicEthIf) HasTemplateActions() bool { - if o != nil && IsNil(o.TemplateActions) { + if o != nil && !IsNil(o.TemplateActions) { return true } @@ -572,7 +582,7 @@ func (o *VnicEthIf) GetTemplateSyncErrorsOk() ([]MotemplateSyncError, bool) { // HasTemplateSyncErrors returns a boolean if a field has been set. func (o *VnicEthIf) HasTemplateSyncErrors() bool { - if o != nil && IsNil(o.TemplateSyncErrors) { + if o != nil && !IsNil(o.TemplateSyncErrors) { return true } @@ -884,7 +894,7 @@ func (o *VnicEthIf) GetSpVnicsOk() ([]VnicEthIfRelationship, bool) { // HasSpVnics returns a boolean if a field has been set. func (o *VnicEthIf) HasSpVnics() bool { - if o != nil && IsNil(o.SpVnics) { + if o != nil && !IsNil(o.SpVnics) { return true } @@ -957,7 +967,13 @@ func (o VnicEthIf) ToMap() (map[string]interface{}, error) { if errVnicBaseEthIf != nil { return map[string]interface{}{}, errVnicBaseEthIf } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.IscsiIpV4AddressAllocationType) { toSerialize["IscsiIpV4AddressAllocationType"] = o.IscsiIpV4AddressAllocationType @@ -1042,6 +1058,13 @@ func (o *VnicEthIf) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -1051,11 +1074,23 @@ func (o *VnicEthIf) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type VnicEthIfWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` @@ -1065,13 +1100,13 @@ func (o *VnicEthIf) UnmarshalJSON(data []byte) (err error) { IscsiIpV4AddressAllocationType *string `json:"IscsiIpV4AddressAllocationType,omitempty"` IscsiIpV4Config NullableIppoolIpV4Config `json:"IscsiIpV4Config,omitempty"` // IP address associated to the vNIC. - IscsiIpv4Address *string `json:"IscsiIpv4Address,omitempty"` + IscsiIpv4Address *string `json:"IscsiIpv4Address,omitempty" validate:"regexp=^$|^([1-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\\\.([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\\\.([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\\\.([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])$"` // The MAC address that is assigned to the vNIC based on the MAC pool that has been assigned to the LAN Connectivity Policy. MacAddress *string `json:"MacAddress,omitempty"` // Type of allocation selected to assign a MAC address for the vnic. * `POOL` - The user selects a pool from which the mac/wwn address will be leased for the Virtual Interface. * `STATIC` - The user assigns a static mac/wwn address for the Virtual Interface. MacAddressType *string `json:"MacAddressType,omitempty"` // Name of the virtual ethernet interface. - Name *string `json:"Name,omitempty"` + Name *string `json:"Name,omitempty" validate:"regexp=^[a-zA-Z0-9-._:]+$"` // The order in which the virtual interface is brought up. The order assigned to an interface should be unique for all the Ethernet and Fibre-Channel interfaces on each PCI link on a VIC adapter. The order should start from zero with no overlaps. The maximum value of PCI order is limited by the number of virtual interfaces (Ethernet and Fibre-Channel) on each PCI link on a VIC adapter. All VIC adapters have a single PCI link except VIC 1340, VIC 1380 and VIC 1385 which have two. Order *int64 `json:"Order,omitempty"` OverriddenList []string `json:"OverriddenList,omitempty"` diff --git a/model_vnic_eth_if_inventory.go b/model_vnic_eth_if_inventory.go index 8eefa4befb..fb08f3c66d 100644 --- a/model_vnic_eth_if_inventory.go +++ b/model_vnic_eth_if_inventory.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -35,18 +35,18 @@ type VnicEthIfInventory struct { IscsiIpV4AddressAllocationType *string `json:"IscsiIpV4AddressAllocationType,omitempty"` IscsiIpV4Config NullableIppoolIpV4Config `json:"IscsiIpV4Config,omitempty"` // IP address associated to the vNIC. - IscsiIpv4Address *string `json:"IscsiIpv4Address,omitempty"` + IscsiIpv4Address *string `json:"IscsiIpv4Address,omitempty" validate:"regexp=^$|^([1-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\\\.([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\\\.([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\\\.([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])$"` // The MAC address that is assigned to the vNIC based on the MAC pool that has been assigned to the LAN Connectivity Policy. MacAddress *string `json:"MacAddress,omitempty"` // Type of allocation selected to assign a MAC address for the vnic. * `POOL` - The user selects a pool from which the mac/wwn address will be leased for the Virtual Interface. * `STATIC` - The user assigns a static mac/wwn address for the Virtual Interface. MacAddressType *string `json:"MacAddressType,omitempty"` // Name of the virtual ethernet interface. - Name *string `json:"Name,omitempty"` + Name *string `json:"Name,omitempty" validate:"regexp=^[a-zA-Z0-9-._:]+$"` // The order in which the virtual interface is brought up. The order assigned to an interface should be unique for all the Ethernet and Fibre-Channel interfaces on each PCI link on a VIC adapter. The order should start from zero with no overlaps. The maximum value of PCI order is limited by the number of virtual interfaces (Ethernet and Fibre-Channel) on each PCI link on a VIC adapter. All VIC adapters have a single PCI link except VIC 1340, VIC 1380 and VIC 1385 which have two. Order *int64 `json:"Order,omitempty"` OverriddenList []string `json:"OverriddenList,omitempty"` // Pingroup name associated to vNIC for static pinning. LCP deploy will resolve pingroup name and fetches the correspoding uplink port/port channel to pin the vNIC traffic. - PinGroupName *string `json:"PinGroupName,omitempty"` + PinGroupName *string `json:"PinGroupName,omitempty" validate:"regexp=^$|^[a-zA-Z0-9_.:-]{1,64}$"` Placement NullableVnicPlacementSettings `json:"Placement,omitempty"` SriovSettings NullableVnicSriovSettings `json:"SriovSettings,omitempty"` // The Standby VIF Id is applicable for failover enabled vNICS. It should be the same as the channel number of the standby vethernet created on switch in order to set up the standby data path. @@ -128,6 +128,11 @@ func (o *VnicEthIfInventory) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "vnic.EthIfInventory" of the ClassId field. +func (o *VnicEthIfInventory) GetDefaultClassId() interface{} { + return "vnic.EthIfInventory" +} + // GetObjectType returns the ObjectType field value func (o *VnicEthIfInventory) GetObjectType() string { if o == nil { @@ -152,6 +157,11 @@ func (o *VnicEthIfInventory) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "vnic.EthIfInventory" of the ObjectType field. +func (o *VnicEthIfInventory) GetDefaultObjectType() interface{} { + return "vnic.EthIfInventory" +} + // GetCdn returns the Cdn field value if set, zero value otherwise (both if not set or set to explicit null). func (o *VnicEthIfInventory) GetCdn() VnicCdn { if o == nil || IsNil(o.Cdn.Get()) { @@ -483,7 +493,7 @@ func (o *VnicEthIfInventory) GetOverriddenListOk() ([]string, bool) { // HasOverriddenList returns a boolean if a field has been set. func (o *VnicEthIfInventory) HasOverriddenList() bool { - if o != nil && IsNil(o.OverriddenList) { + if o != nil && !IsNil(o.OverriddenList) { return true } @@ -698,7 +708,7 @@ func (o *VnicEthIfInventory) GetTemplateActionsOk() ([]MotemplateActionEntry, bo // HasTemplateActions returns a boolean if a field has been set. func (o *VnicEthIfInventory) HasTemplateActions() bool { - if o != nil && IsNil(o.TemplateActions) { + if o != nil && !IsNil(o.TemplateActions) { return true } @@ -731,7 +741,7 @@ func (o *VnicEthIfInventory) GetTemplateSyncErrorsOk() ([]MotemplateSyncError, b // HasTemplateSyncErrors returns a boolean if a field has been set. func (o *VnicEthIfInventory) HasTemplateSyncErrors() bool { - if o != nil && IsNil(o.TemplateSyncErrors) { + if o != nil && !IsNil(o.TemplateSyncErrors) { return true } @@ -1086,7 +1096,7 @@ func (o *VnicEthIfInventory) GetFabricEthNetworkGroupPolicyOk() ([]FabricEthNetw // HasFabricEthNetworkGroupPolicy returns a boolean if a field has been set. func (o *VnicEthIfInventory) HasFabricEthNetworkGroupPolicy() bool { - if o != nil && IsNil(o.FabricEthNetworkGroupPolicy) { + if o != nil && !IsNil(o.FabricEthNetworkGroupPolicy) { return true } @@ -1377,7 +1387,7 @@ func (o *VnicEthIfInventory) GetSpVnicsOk() ([]VnicEthIfInventoryRelationship, b // HasSpVnics returns a boolean if a field has been set. func (o *VnicEthIfInventory) HasSpVnics() bool { - if o != nil && IsNil(o.SpVnics) { + if o != nil && !IsNil(o.SpVnics) { return true } @@ -1450,7 +1460,13 @@ func (o VnicEthIfInventory) ToMap() (map[string]interface{}, error) { if errPolicyAbstractInventory != nil { return map[string]interface{}{}, errPolicyAbstractInventory } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.Cdn.IsSet() { toSerialize["Cdn"] = o.Cdn.Get() @@ -1571,6 +1587,13 @@ func (o *VnicEthIfInventory) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -1580,11 +1603,23 @@ func (o *VnicEthIfInventory) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type VnicEthIfInventoryWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` @@ -1597,18 +1632,18 @@ func (o *VnicEthIfInventory) UnmarshalJSON(data []byte) (err error) { IscsiIpV4AddressAllocationType *string `json:"IscsiIpV4AddressAllocationType,omitempty"` IscsiIpV4Config NullableIppoolIpV4Config `json:"IscsiIpV4Config,omitempty"` // IP address associated to the vNIC. - IscsiIpv4Address *string `json:"IscsiIpv4Address,omitempty"` + IscsiIpv4Address *string `json:"IscsiIpv4Address,omitempty" validate:"regexp=^$|^([1-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\\\.([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\\\.([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\\\.([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])$"` // The MAC address that is assigned to the vNIC based on the MAC pool that has been assigned to the LAN Connectivity Policy. MacAddress *string `json:"MacAddress,omitempty"` // Type of allocation selected to assign a MAC address for the vnic. * `POOL` - The user selects a pool from which the mac/wwn address will be leased for the Virtual Interface. * `STATIC` - The user assigns a static mac/wwn address for the Virtual Interface. MacAddressType *string `json:"MacAddressType,omitempty"` // Name of the virtual ethernet interface. - Name *string `json:"Name,omitempty"` + Name *string `json:"Name,omitempty" validate:"regexp=^[a-zA-Z0-9-._:]+$"` // The order in which the virtual interface is brought up. The order assigned to an interface should be unique for all the Ethernet and Fibre-Channel interfaces on each PCI link on a VIC adapter. The order should start from zero with no overlaps. The maximum value of PCI order is limited by the number of virtual interfaces (Ethernet and Fibre-Channel) on each PCI link on a VIC adapter. All VIC adapters have a single PCI link except VIC 1340, VIC 1380 and VIC 1385 which have two. Order *int64 `json:"Order,omitempty"` OverriddenList []string `json:"OverriddenList,omitempty"` // Pingroup name associated to vNIC for static pinning. LCP deploy will resolve pingroup name and fetches the correspoding uplink port/port channel to pin the vNIC traffic. - PinGroupName *string `json:"PinGroupName,omitempty"` + PinGroupName *string `json:"PinGroupName,omitempty" validate:"regexp=^$|^[a-zA-Z0-9_.:-]{1,64}$"` Placement NullableVnicPlacementSettings `json:"Placement,omitempty"` SriovSettings NullableVnicSriovSettings `json:"SriovSettings,omitempty"` // The Standby VIF Id is applicable for failover enabled vNICS. It should be the same as the channel number of the standby vethernet created on switch in order to set up the standby data path. diff --git a/model_vnic_eth_if_inventory_list.go b/model_vnic_eth_if_inventory_list.go index f7821a9e89..a35f30f240 100644 --- a/model_vnic_eth_if_inventory_list.go +++ b/model_vnic_eth_if_inventory_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *VnicEthIfInventoryList) GetResultsOk() ([]VnicEthIfInventory, bool) { // HasResults returns a boolean if a field has been set. func (o *VnicEthIfInventoryList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *VnicEthIfInventoryList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *VnicEthIfInventoryList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type VnicEthIfInventoryListWithoutEmbeddedStruct struct { // The total number of 'vnic.EthIfInventory' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_vnic_eth_if_inventory_relationship.go b/model_vnic_eth_if_inventory_relationship.go index 1ef51eeaf9..136beff420 100644 --- a/model_vnic_eth_if_inventory_relationship.go +++ b/model_vnic_eth_if_inventory_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_vnic_eth_if_inventory_response.go b/model_vnic_eth_if_inventory_response.go index 5a359c0778..30f30e6a09 100644 --- a/model_vnic_eth_if_inventory_response.go +++ b/model_vnic_eth_if_inventory_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_vnic_eth_if_list.go b/model_vnic_eth_if_list.go index 0cb22f2cb3..86055ce236 100644 --- a/model_vnic_eth_if_list.go +++ b/model_vnic_eth_if_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *VnicEthIfList) GetResultsOk() ([]VnicEthIf, bool) { // HasResults returns a boolean if a field has been set. func (o *VnicEthIfList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *VnicEthIfList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *VnicEthIfList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type VnicEthIfListWithoutEmbeddedStruct struct { // The total number of 'vnic.EthIf' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_vnic_eth_if_relationship.go b/model_vnic_eth_if_relationship.go index 092b0d36c5..1a952514fd 100644 --- a/model_vnic_eth_if_relationship.go +++ b/model_vnic_eth_if_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_vnic_eth_if_response.go b/model_vnic_eth_if_response.go index 2af60d90c1..b29c043d81 100644 --- a/model_vnic_eth_if_response.go +++ b/model_vnic_eth_if_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_vnic_eth_interrupt_settings.go b/model_vnic_eth_interrupt_settings.go index a1036cad03..ced8aee911 100644 --- a/model_vnic_eth_interrupt_settings.go +++ b/model_vnic_eth_interrupt_settings.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,6 +104,11 @@ func (o *VnicEthInterruptSettings) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "vnic.EthInterruptSettings" of the ClassId field. +func (o *VnicEthInterruptSettings) GetDefaultClassId() interface{} { + return "vnic.EthInterruptSettings" +} + // GetObjectType returns the ObjectType field value func (o *VnicEthInterruptSettings) GetObjectType() string { if o == nil { @@ -128,6 +133,11 @@ func (o *VnicEthInterruptSettings) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "vnic.EthInterruptSettings" of the ObjectType field. +func (o *VnicEthInterruptSettings) GetDefaultObjectType() interface{} { + return "vnic.EthInterruptSettings" +} + // GetCoalescingTime returns the CoalescingTime field value if set, zero value otherwise. func (o *VnicEthInterruptSettings) GetCoalescingTime() int64 { if o == nil || IsNil(o.CoalescingTime) { @@ -274,7 +284,13 @@ func (o VnicEthInterruptSettings) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.CoalescingTime) { toSerialize["CoalescingTime"] = o.CoalescingTime @@ -305,6 +321,13 @@ func (o *VnicEthInterruptSettings) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -314,11 +337,23 @@ func (o *VnicEthInterruptSettings) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type VnicEthInterruptSettingsWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_vnic_eth_network_policy.go b/model_vnic_eth_network_policy.go index 825e1bd791..1b9c52a880 100644 --- a/model_vnic_eth_network_policy.go +++ b/model_vnic_eth_network_policy.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -89,6 +89,11 @@ func (o *VnicEthNetworkPolicy) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "vnic.EthNetworkPolicy" of the ClassId field. +func (o *VnicEthNetworkPolicy) GetDefaultClassId() interface{} { + return "vnic.EthNetworkPolicy" +} + // GetObjectType returns the ObjectType field value func (o *VnicEthNetworkPolicy) GetObjectType() string { if o == nil { @@ -113,6 +118,11 @@ func (o *VnicEthNetworkPolicy) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "vnic.EthNetworkPolicy" of the ObjectType field. +func (o *VnicEthNetworkPolicy) GetDefaultObjectType() interface{} { + return "vnic.EthNetworkPolicy" +} + // GetTargetPlatform returns the TargetPlatform field value if set, zero value otherwise. // Deprecated func (o *VnicEthNetworkPolicy) GetTargetPlatform() string { @@ -252,7 +262,13 @@ func (o VnicEthNetworkPolicy) ToMap() (map[string]interface{}, error) { if errPolicyAbstractPolicy != nil { return map[string]interface{}{}, errPolicyAbstractPolicy } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.TargetPlatform) { toSerialize["TargetPlatform"] = o.TargetPlatform @@ -280,6 +296,13 @@ func (o *VnicEthNetworkPolicy) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -289,11 +312,23 @@ func (o *VnicEthNetworkPolicy) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type VnicEthNetworkPolicyWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_vnic_eth_network_policy_inventory.go b/model_vnic_eth_network_policy_inventory.go index b88d1a9a5a..59a31f8194 100644 --- a/model_vnic_eth_network_policy_inventory.go +++ b/model_vnic_eth_network_policy_inventory.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -85,6 +85,11 @@ func (o *VnicEthNetworkPolicyInventory) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "vnic.EthNetworkPolicyInventory" of the ClassId field. +func (o *VnicEthNetworkPolicyInventory) GetDefaultClassId() interface{} { + return "vnic.EthNetworkPolicyInventory" +} + // GetObjectType returns the ObjectType field value func (o *VnicEthNetworkPolicyInventory) GetObjectType() string { if o == nil { @@ -109,6 +114,11 @@ func (o *VnicEthNetworkPolicyInventory) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "vnic.EthNetworkPolicyInventory" of the ObjectType field. +func (o *VnicEthNetworkPolicyInventory) GetDefaultObjectType() interface{} { + return "vnic.EthNetworkPolicyInventory" +} + // GetTargetPlatform returns the TargetPlatform field value if set, zero value otherwise. // Deprecated func (o *VnicEthNetworkPolicyInventory) GetTargetPlatform() string { @@ -248,7 +258,13 @@ func (o VnicEthNetworkPolicyInventory) ToMap() (map[string]interface{}, error) { if errPolicyAbstractPolicyInventory != nil { return map[string]interface{}{}, errPolicyAbstractPolicyInventory } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.TargetPlatform) { toSerialize["TargetPlatform"] = o.TargetPlatform @@ -276,6 +292,13 @@ func (o *VnicEthNetworkPolicyInventory) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -285,11 +308,23 @@ func (o *VnicEthNetworkPolicyInventory) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type VnicEthNetworkPolicyInventoryWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_vnic_eth_network_policy_inventory_list.go b/model_vnic_eth_network_policy_inventory_list.go index bb22dbf057..9306211bbf 100644 --- a/model_vnic_eth_network_policy_inventory_list.go +++ b/model_vnic_eth_network_policy_inventory_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *VnicEthNetworkPolicyInventoryList) GetResultsOk() ([]VnicEthNetworkPoli // HasResults returns a boolean if a field has been set. func (o *VnicEthNetworkPolicyInventoryList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *VnicEthNetworkPolicyInventoryList) UnmarshalJSON(data []byte) (err erro "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *VnicEthNetworkPolicyInventoryList) UnmarshalJSON(data []byte) (err erro } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type VnicEthNetworkPolicyInventoryListWithoutEmbeddedStruct struct { // The total number of 'vnic.EthNetworkPolicyInventory' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_vnic_eth_network_policy_inventory_relationship.go b/model_vnic_eth_network_policy_inventory_relationship.go index 062304906f..4935927b80 100644 --- a/model_vnic_eth_network_policy_inventory_relationship.go +++ b/model_vnic_eth_network_policy_inventory_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_vnic_eth_network_policy_inventory_response.go b/model_vnic_eth_network_policy_inventory_response.go index f36a2e3cff..23aed713c2 100644 --- a/model_vnic_eth_network_policy_inventory_response.go +++ b/model_vnic_eth_network_policy_inventory_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_vnic_eth_network_policy_list.go b/model_vnic_eth_network_policy_list.go index 2037547600..7e3bb988a4 100644 --- a/model_vnic_eth_network_policy_list.go +++ b/model_vnic_eth_network_policy_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *VnicEthNetworkPolicyList) GetResultsOk() ([]VnicEthNetworkPolicy, bool) // HasResults returns a boolean if a field has been set. func (o *VnicEthNetworkPolicyList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *VnicEthNetworkPolicyList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *VnicEthNetworkPolicyList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type VnicEthNetworkPolicyListWithoutEmbeddedStruct struct { // The total number of 'vnic.EthNetworkPolicy' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_vnic_eth_network_policy_relationship.go b/model_vnic_eth_network_policy_relationship.go index 07a72b48e1..99fe0fd7d3 100644 --- a/model_vnic_eth_network_policy_relationship.go +++ b/model_vnic_eth_network_policy_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_vnic_eth_network_policy_response.go b/model_vnic_eth_network_policy_response.go index a1268fc18f..711faa2475 100644 --- a/model_vnic_eth_network_policy_response.go +++ b/model_vnic_eth_network_policy_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_vnic_eth_qos_policy.go b/model_vnic_eth_qos_policy.go index d5ef648345..246a30d0b7 100644 --- a/model_vnic_eth_qos_policy.go +++ b/model_vnic_eth_qos_policy.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -117,6 +117,11 @@ func (o *VnicEthQosPolicy) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "vnic.EthQosPolicy" of the ClassId field. +func (o *VnicEthQosPolicy) GetDefaultClassId() interface{} { + return "vnic.EthQosPolicy" +} + // GetObjectType returns the ObjectType field value func (o *VnicEthQosPolicy) GetObjectType() string { if o == nil { @@ -141,6 +146,11 @@ func (o *VnicEthQosPolicy) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "vnic.EthQosPolicy" of the ObjectType field. +func (o *VnicEthQosPolicy) GetDefaultObjectType() interface{} { + return "vnic.EthQosPolicy" +} + // GetBurst returns the Burst field value if set, zero value otherwise. func (o *VnicEthQosPolicy) GetBurst() int64 { if o == nil || IsNil(o.Burst) { @@ -394,7 +404,13 @@ func (o VnicEthQosPolicy) ToMap() (map[string]interface{}, error) { if errPolicyAbstractPolicy != nil { return map[string]interface{}{}, errPolicyAbstractPolicy } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Burst) { toSerialize["Burst"] = o.Burst @@ -434,6 +450,13 @@ func (o *VnicEthQosPolicy) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -443,11 +466,23 @@ func (o *VnicEthQosPolicy) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type VnicEthQosPolicyWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_vnic_eth_qos_policy_inventory.go b/model_vnic_eth_qos_policy_inventory.go index c2c3087291..9e7d6111a7 100644 --- a/model_vnic_eth_qos_policy_inventory.go +++ b/model_vnic_eth_qos_policy_inventory.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -93,6 +93,11 @@ func (o *VnicEthQosPolicyInventory) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "vnic.EthQosPolicyInventory" of the ClassId field. +func (o *VnicEthQosPolicyInventory) GetDefaultClassId() interface{} { + return "vnic.EthQosPolicyInventory" +} + // GetObjectType returns the ObjectType field value func (o *VnicEthQosPolicyInventory) GetObjectType() string { if o == nil { @@ -117,6 +122,11 @@ func (o *VnicEthQosPolicyInventory) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "vnic.EthQosPolicyInventory" of the ObjectType field. +func (o *VnicEthQosPolicyInventory) GetDefaultObjectType() interface{} { + return "vnic.EthQosPolicyInventory" +} + // GetBurst returns the Burst field value if set, zero value otherwise. func (o *VnicEthQosPolicyInventory) GetBurst() int64 { if o == nil || IsNil(o.Burst) { @@ -370,7 +380,13 @@ func (o VnicEthQosPolicyInventory) ToMap() (map[string]interface{}, error) { if errPolicyAbstractPolicyInventory != nil { return map[string]interface{}{}, errPolicyAbstractPolicyInventory } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Burst) { toSerialize["Burst"] = o.Burst @@ -410,6 +426,13 @@ func (o *VnicEthQosPolicyInventory) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -419,11 +442,23 @@ func (o *VnicEthQosPolicyInventory) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type VnicEthQosPolicyInventoryWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_vnic_eth_qos_policy_inventory_list.go b/model_vnic_eth_qos_policy_inventory_list.go index bb831f06a6..b1ef94347f 100644 --- a/model_vnic_eth_qos_policy_inventory_list.go +++ b/model_vnic_eth_qos_policy_inventory_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *VnicEthQosPolicyInventoryList) GetResultsOk() ([]VnicEthQosPolicyInvent // HasResults returns a boolean if a field has been set. func (o *VnicEthQosPolicyInventoryList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *VnicEthQosPolicyInventoryList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *VnicEthQosPolicyInventoryList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type VnicEthQosPolicyInventoryListWithoutEmbeddedStruct struct { // The total number of 'vnic.EthQosPolicyInventory' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_vnic_eth_qos_policy_inventory_relationship.go b/model_vnic_eth_qos_policy_inventory_relationship.go index 4de21e55a6..f62d687c22 100644 --- a/model_vnic_eth_qos_policy_inventory_relationship.go +++ b/model_vnic_eth_qos_policy_inventory_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_vnic_eth_qos_policy_inventory_response.go b/model_vnic_eth_qos_policy_inventory_response.go index d4bed1a623..f02f6699ca 100644 --- a/model_vnic_eth_qos_policy_inventory_response.go +++ b/model_vnic_eth_qos_policy_inventory_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_vnic_eth_qos_policy_list.go b/model_vnic_eth_qos_policy_list.go index fd7caddb84..aa0067eeab 100644 --- a/model_vnic_eth_qos_policy_list.go +++ b/model_vnic_eth_qos_policy_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *VnicEthQosPolicyList) GetResultsOk() ([]VnicEthQosPolicy, bool) { // HasResults returns a boolean if a field has been set. func (o *VnicEthQosPolicyList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *VnicEthQosPolicyList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *VnicEthQosPolicyList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type VnicEthQosPolicyListWithoutEmbeddedStruct struct { // The total number of 'vnic.EthQosPolicy' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_vnic_eth_qos_policy_relationship.go b/model_vnic_eth_qos_policy_relationship.go index 711c105a6b..e0286504ce 100644 --- a/model_vnic_eth_qos_policy_relationship.go +++ b/model_vnic_eth_qos_policy_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_vnic_eth_qos_policy_response.go b/model_vnic_eth_qos_policy_response.go index 04dbc434ba..22e275d779 100644 --- a/model_vnic_eth_qos_policy_response.go +++ b/model_vnic_eth_qos_policy_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_vnic_eth_rx_queue_settings.go b/model_vnic_eth_rx_queue_settings.go index 1152f67e2c..d839f4965b 100644 --- a/model_vnic_eth_rx_queue_settings.go +++ b/model_vnic_eth_rx_queue_settings.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -92,6 +92,11 @@ func (o *VnicEthRxQueueSettings) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "vnic.EthRxQueueSettings" of the ClassId field. +func (o *VnicEthRxQueueSettings) GetDefaultClassId() interface{} { + return "vnic.EthRxQueueSettings" +} + // GetObjectType returns the ObjectType field value func (o *VnicEthRxQueueSettings) GetObjectType() string { if o == nil { @@ -116,6 +121,11 @@ func (o *VnicEthRxQueueSettings) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "vnic.EthRxQueueSettings" of the ObjectType field. +func (o *VnicEthRxQueueSettings) GetDefaultObjectType() interface{} { + return "vnic.EthRxQueueSettings" +} + // GetCount returns the Count field value if set, zero value otherwise. func (o *VnicEthRxQueueSettings) GetCount() int64 { if o == nil || IsNil(o.Count) { @@ -198,7 +208,13 @@ func (o VnicEthRxQueueSettings) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Count) { toSerialize["Count"] = o.Count @@ -223,6 +239,13 @@ func (o *VnicEthRxQueueSettings) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -232,11 +255,23 @@ func (o *VnicEthRxQueueSettings) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type VnicEthRxQueueSettingsWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_vnic_eth_tx_queue_settings.go b/model_vnic_eth_tx_queue_settings.go index 4aae679e63..b17cfe91b5 100644 --- a/model_vnic_eth_tx_queue_settings.go +++ b/model_vnic_eth_tx_queue_settings.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -92,6 +92,11 @@ func (o *VnicEthTxQueueSettings) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "vnic.EthTxQueueSettings" of the ClassId field. +func (o *VnicEthTxQueueSettings) GetDefaultClassId() interface{} { + return "vnic.EthTxQueueSettings" +} + // GetObjectType returns the ObjectType field value func (o *VnicEthTxQueueSettings) GetObjectType() string { if o == nil { @@ -116,6 +121,11 @@ func (o *VnicEthTxQueueSettings) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "vnic.EthTxQueueSettings" of the ObjectType field. +func (o *VnicEthTxQueueSettings) GetDefaultObjectType() interface{} { + return "vnic.EthTxQueueSettings" +} + // GetCount returns the Count field value if set, zero value otherwise. func (o *VnicEthTxQueueSettings) GetCount() int64 { if o == nil || IsNil(o.Count) { @@ -198,7 +208,13 @@ func (o VnicEthTxQueueSettings) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Count) { toSerialize["Count"] = o.Count @@ -223,6 +239,13 @@ func (o *VnicEthTxQueueSettings) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -232,11 +255,23 @@ func (o *VnicEthTxQueueSettings) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type VnicEthTxQueueSettingsWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_vnic_eth_veth_inventory.go b/model_vnic_eth_veth_inventory.go index cde2cc82f4..c1f682c5b4 100644 --- a/model_vnic_eth_veth_inventory.go +++ b/model_vnic_eth_veth_inventory.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -99,6 +99,11 @@ func (o *VnicEthVethInventory) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "vnic.EthVethInventory" of the ClassId field. +func (o *VnicEthVethInventory) GetDefaultClassId() interface{} { + return "vnic.EthVethInventory" +} + // GetObjectType returns the ObjectType field value func (o *VnicEthVethInventory) GetObjectType() string { if o == nil { @@ -123,6 +128,11 @@ func (o *VnicEthVethInventory) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "vnic.EthVethInventory" of the ObjectType field. +func (o *VnicEthVethInventory) GetDefaultObjectType() interface{} { + return "vnic.EthVethInventory" +} + // GetBurst returns the Burst field value if set, zero value otherwise. func (o *VnicEthVethInventory) GetBurst() int64 { if o == nil || IsNil(o.Burst) { @@ -344,7 +354,13 @@ func (o VnicEthVethInventory) ToMap() (map[string]interface{}, error) { if errPolicyAbstractInventory != nil { return map[string]interface{}{}, errPolicyAbstractInventory } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Burst) { toSerialize["Burst"] = o.Burst @@ -381,6 +397,13 @@ func (o *VnicEthVethInventory) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -390,11 +413,23 @@ func (o *VnicEthVethInventory) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type VnicEthVethInventoryWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_vnic_eth_veth_inventory_list.go b/model_vnic_eth_veth_inventory_list.go index 2be119424b..cc4c8ce620 100644 --- a/model_vnic_eth_veth_inventory_list.go +++ b/model_vnic_eth_veth_inventory_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *VnicEthVethInventoryList) GetResultsOk() ([]VnicEthVethInventory, bool) // HasResults returns a boolean if a field has been set. func (o *VnicEthVethInventoryList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *VnicEthVethInventoryList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *VnicEthVethInventoryList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type VnicEthVethInventoryListWithoutEmbeddedStruct struct { // The total number of 'vnic.EthVethInventory' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_vnic_eth_veth_inventory_response.go b/model_vnic_eth_veth_inventory_response.go index b82bde83c9..12be97b9ad 100644 --- a/model_vnic_eth_veth_inventory_response.go +++ b/model_vnic_eth_veth_inventory_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_vnic_eth_vnic_inventory.go b/model_vnic_eth_vnic_inventory.go index e0e3cf00c1..3830781acb 100644 --- a/model_vnic_eth_vnic_inventory.go +++ b/model_vnic_eth_vnic_inventory.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -89,6 +89,11 @@ func (o *VnicEthVnicInventory) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "vnic.EthVnicInventory" of the ClassId field. +func (o *VnicEthVnicInventory) GetDefaultClassId() interface{} { + return "vnic.EthVnicInventory" +} + // GetObjectType returns the ObjectType field value func (o *VnicEthVnicInventory) GetObjectType() string { if o == nil { @@ -113,6 +118,11 @@ func (o *VnicEthVnicInventory) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "vnic.EthVnicInventory" of the ObjectType field. +func (o *VnicEthVnicInventory) GetDefaultObjectType() interface{} { + return "vnic.EthVnicInventory" +} + // GetCos returns the Cos field value if set, zero value otherwise. func (o *VnicEthVnicInventory) GetCos() int64 { if o == nil || IsNil(o.Cos) { @@ -302,7 +312,13 @@ func (o VnicEthVnicInventory) ToMap() (map[string]interface{}, error) { if errPolicyAbstractInventory != nil { return map[string]interface{}{}, errPolicyAbstractInventory } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Cos) { toSerialize["Cos"] = o.Cos @@ -336,6 +352,13 @@ func (o *VnicEthVnicInventory) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -345,11 +368,23 @@ func (o *VnicEthVnicInventory) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type VnicEthVnicInventoryWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_vnic_eth_vnic_inventory_list.go b/model_vnic_eth_vnic_inventory_list.go index 8d5d3458d9..40584e0356 100644 --- a/model_vnic_eth_vnic_inventory_list.go +++ b/model_vnic_eth_vnic_inventory_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *VnicEthVnicInventoryList) GetResultsOk() ([]VnicEthVnicInventory, bool) // HasResults returns a boolean if a field has been set. func (o *VnicEthVnicInventoryList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *VnicEthVnicInventoryList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *VnicEthVnicInventoryList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type VnicEthVnicInventoryListWithoutEmbeddedStruct struct { // The total number of 'vnic.EthVnicInventory' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_vnic_eth_vnic_inventory_response.go b/model_vnic_eth_vnic_inventory_response.go index 1b0a822fdd..0cc94d4211 100644 --- a/model_vnic_eth_vnic_inventory_response.go +++ b/model_vnic_eth_vnic_inventory_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_vnic_fc_adapter_policy.go b/model_vnic_fc_adapter_policy.go index f95ca5189e..5415ec9b8d 100644 --- a/model_vnic_fc_adapter_policy.go +++ b/model_vnic_fc_adapter_policy.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -118,6 +118,11 @@ func (o *VnicFcAdapterPolicy) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "vnic.FcAdapterPolicy" of the ClassId field. +func (o *VnicFcAdapterPolicy) GetDefaultClassId() interface{} { + return "vnic.FcAdapterPolicy" +} + // GetObjectType returns the ObjectType field value func (o *VnicFcAdapterPolicy) GetObjectType() string { if o == nil { @@ -142,6 +147,11 @@ func (o *VnicFcAdapterPolicy) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "vnic.FcAdapterPolicy" of the ObjectType field. +func (o *VnicFcAdapterPolicy) GetDefaultObjectType() interface{} { + return "vnic.FcAdapterPolicy" +} + // GetErrorDetectionTimeout returns the ErrorDetectionTimeout field value if set, zero value otherwise. func (o *VnicFcAdapterPolicy) GetErrorDetectionTimeout() int64 { if o == nil || IsNil(o.ErrorDetectionTimeout) { @@ -664,7 +674,13 @@ func (o VnicFcAdapterPolicy) ToMap() (map[string]interface{}, error) { if errPolicyAbstractPolicy != nil { return map[string]interface{}{}, errPolicyAbstractPolicy } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.ErrorDetectionTimeout) { toSerialize["ErrorDetectionTimeout"] = o.ErrorDetectionTimeout @@ -722,6 +738,13 @@ func (o *VnicFcAdapterPolicy) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -731,11 +754,23 @@ func (o *VnicFcAdapterPolicy) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type VnicFcAdapterPolicyWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_vnic_fc_adapter_policy_inventory.go b/model_vnic_fc_adapter_policy_inventory.go index bbf5f39132..83e93c5d57 100644 --- a/model_vnic_fc_adapter_policy_inventory.go +++ b/model_vnic_fc_adapter_policy_inventory.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -98,6 +98,11 @@ func (o *VnicFcAdapterPolicyInventory) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "vnic.FcAdapterPolicyInventory" of the ClassId field. +func (o *VnicFcAdapterPolicyInventory) GetDefaultClassId() interface{} { + return "vnic.FcAdapterPolicyInventory" +} + // GetObjectType returns the ObjectType field value func (o *VnicFcAdapterPolicyInventory) GetObjectType() string { if o == nil { @@ -122,6 +127,11 @@ func (o *VnicFcAdapterPolicyInventory) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "vnic.FcAdapterPolicyInventory" of the ObjectType field. +func (o *VnicFcAdapterPolicyInventory) GetDefaultObjectType() interface{} { + return "vnic.FcAdapterPolicyInventory" +} + // GetErrorDetectionTimeout returns the ErrorDetectionTimeout field value if set, zero value otherwise. func (o *VnicFcAdapterPolicyInventory) GetErrorDetectionTimeout() int64 { if o == nil || IsNil(o.ErrorDetectionTimeout) { @@ -644,7 +654,13 @@ func (o VnicFcAdapterPolicyInventory) ToMap() (map[string]interface{}, error) { if errPolicyAbstractPolicyInventory != nil { return map[string]interface{}{}, errPolicyAbstractPolicyInventory } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.ErrorDetectionTimeout) { toSerialize["ErrorDetectionTimeout"] = o.ErrorDetectionTimeout @@ -702,6 +718,13 @@ func (o *VnicFcAdapterPolicyInventory) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -711,11 +734,23 @@ func (o *VnicFcAdapterPolicyInventory) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type VnicFcAdapterPolicyInventoryWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_vnic_fc_adapter_policy_inventory_list.go b/model_vnic_fc_adapter_policy_inventory_list.go index 1fb05dba7a..5c1d9be661 100644 --- a/model_vnic_fc_adapter_policy_inventory_list.go +++ b/model_vnic_fc_adapter_policy_inventory_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *VnicFcAdapterPolicyInventoryList) GetResultsOk() ([]VnicFcAdapterPolicy // HasResults returns a boolean if a field has been set. func (o *VnicFcAdapterPolicyInventoryList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *VnicFcAdapterPolicyInventoryList) UnmarshalJSON(data []byte) (err error "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *VnicFcAdapterPolicyInventoryList) UnmarshalJSON(data []byte) (err error } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type VnicFcAdapterPolicyInventoryListWithoutEmbeddedStruct struct { // The total number of 'vnic.FcAdapterPolicyInventory' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_vnic_fc_adapter_policy_inventory_relationship.go b/model_vnic_fc_adapter_policy_inventory_relationship.go index 7aa796415e..472f5a0ca8 100644 --- a/model_vnic_fc_adapter_policy_inventory_relationship.go +++ b/model_vnic_fc_adapter_policy_inventory_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_vnic_fc_adapter_policy_inventory_response.go b/model_vnic_fc_adapter_policy_inventory_response.go index cb108c2038..00d362370f 100644 --- a/model_vnic_fc_adapter_policy_inventory_response.go +++ b/model_vnic_fc_adapter_policy_inventory_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_vnic_fc_adapter_policy_list.go b/model_vnic_fc_adapter_policy_list.go index fec3ce753a..4991bc4aac 100644 --- a/model_vnic_fc_adapter_policy_list.go +++ b/model_vnic_fc_adapter_policy_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *VnicFcAdapterPolicyList) GetResultsOk() ([]VnicFcAdapterPolicy, bool) { // HasResults returns a boolean if a field has been set. func (o *VnicFcAdapterPolicyList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *VnicFcAdapterPolicyList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *VnicFcAdapterPolicyList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type VnicFcAdapterPolicyListWithoutEmbeddedStruct struct { // The total number of 'vnic.FcAdapterPolicy' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_vnic_fc_adapter_policy_relationship.go b/model_vnic_fc_adapter_policy_relationship.go index 3e021192d0..f00c76f2e8 100644 --- a/model_vnic_fc_adapter_policy_relationship.go +++ b/model_vnic_fc_adapter_policy_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_vnic_fc_adapter_policy_response.go b/model_vnic_fc_adapter_policy_response.go index 2cec8e3453..1c15b24d51 100644 --- a/model_vnic_fc_adapter_policy_response.go +++ b/model_vnic_fc_adapter_policy_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_vnic_fc_error_recovery_settings.go b/model_vnic_fc_error_recovery_settings.go index 4315ba834e..7b48539447 100644 --- a/model_vnic_fc_error_recovery_settings.go +++ b/model_vnic_fc_error_recovery_settings.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -106,6 +106,11 @@ func (o *VnicFcErrorRecoverySettings) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "vnic.FcErrorRecoverySettings" of the ClassId field. +func (o *VnicFcErrorRecoverySettings) GetDefaultClassId() interface{} { + return "vnic.FcErrorRecoverySettings" +} + // GetObjectType returns the ObjectType field value func (o *VnicFcErrorRecoverySettings) GetObjectType() string { if o == nil { @@ -130,6 +135,11 @@ func (o *VnicFcErrorRecoverySettings) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "vnic.FcErrorRecoverySettings" of the ObjectType field. +func (o *VnicFcErrorRecoverySettings) GetDefaultObjectType() interface{} { + return "vnic.FcErrorRecoverySettings" +} + // GetEnabled returns the Enabled field value if set, zero value otherwise. func (o *VnicFcErrorRecoverySettings) GetEnabled() bool { if o == nil || IsNil(o.Enabled) { @@ -308,7 +318,13 @@ func (o VnicFcErrorRecoverySettings) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Enabled) { toSerialize["Enabled"] = o.Enabled @@ -342,6 +358,13 @@ func (o *VnicFcErrorRecoverySettings) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -351,11 +374,23 @@ func (o *VnicFcErrorRecoverySettings) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type VnicFcErrorRecoverySettingsWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_vnic_fc_if.go b/model_vnic_fc_if.go index 0fb3e4f30e..a0d6355e1b 100644 --- a/model_vnic_fc_if.go +++ b/model_vnic_fc_if.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -29,13 +29,13 @@ type VnicFcIf struct { // The fully-qualified name of the instantiated, concrete type. The value should be the same as the 'ClassId' property. ObjectType string `json:"ObjectType"` // Name of the virtual fibre channel interface. - Name *string `json:"Name,omitempty"` + Name *string `json:"Name,omitempty" validate:"regexp=^[a-zA-Z0-9\\\\-\\\\._:]+$"` // The order in which the virtual interface is brought up. The order assigned to an interface should be unique for all the Ethernet and Fibre-Channel interfaces on each PCI link on a VIC adapter. The order should start from zero with no overlaps. The maximum value of PCI order is limited by the number of virtual interfaces (Ethernet and Fibre-Channel) on each PCI link on a VIC adapter. All VIC adapters have a single PCI link except VIC 1340, VIC 1380 and VIC 1385 which have two. Order *int64 `json:"Order,omitempty"` OverriddenList []string `json:"OverriddenList,omitempty"` Placement NullableVnicPlacementSettings `json:"Placement,omitempty"` // The WWPN address must be in hexadecimal format xx:xx:xx:xx:xx:xx:xx:xx. Allowed ranges are 20:00:00:00:00:00:00:00 to 20:FF:FF:FF:FF:FF:FF:FF or from 50:00:00:00:00:00:00:00 to 5F:FF:FF:FF:FF:FF:FF:FF. To ensure uniqueness of WWN's in the SAN fabric, you are strongly encouraged to use the WWN prefix - 20:00:00:25:B5:xx:xx:xx. - StaticWwpnAddress *string `json:"StaticWwpnAddress,omitempty"` + StaticWwpnAddress *string `json:"StaticWwpnAddress,omitempty" validate:"regexp=^$|((^20|5[0-9a-fA-F]{1}):([0-9a-fA-F]{2}:){6}([0-9a-fA-F]{2})$)"` TemplateActions []MotemplateActionEntry `json:"TemplateActions,omitempty"` TemplateSyncErrors []MotemplateSyncError `json:"TemplateSyncErrors,omitempty"` // The sync status of the current MO wrt the attached Template MO. * `None` - The Enum value represents that the object is not attached to any template. * `OK` - The Enum value represents that the object values are in sync with attached template. * `Scheduled` - The Enum value represents that the object sync from attached template is scheduled from template. * `InProgress` - The Enum value represents that the object sync with the attached template is in progress. * `OutOfSync` - The Enum value represents that the object values are not in sync with attached template. @@ -43,7 +43,7 @@ type VnicFcIf struct { // This should be the same as the channel number of the vfc created on switch in order to set up the data path. The property is applicable only for FI attached servers where a vfc is created on the switch for every vHBA. VifId *int64 `json:"VifId,omitempty"` // The WWPN address that is assigned to the vHBA based on the wwn pool that has been assigned to the SAN Connectivity Policy. - Wwpn *string `json:"Wwpn,omitempty"` + Wwpn *string `json:"Wwpn,omitempty" validate:"regexp=^$|((^20|5[0-9a-fA-F]{1}):([0-9a-fA-F]{2}:){6}([0-9a-fA-F]{2})$)"` // Type of allocation selected to assign a WWPN address to the vhba. * `POOL` - The user selects a pool from which the mac/wwn address will be leased for the Virtual Interface. * `STATIC` - The user assigns a static mac/wwn address for the Virtual Interface. WwpnAddressType *string `json:"WwpnAddressType,omitempty"` Profile NullablePolicyAbstractConfigProfileRelationship `json:"Profile,omitempty"` @@ -111,6 +111,11 @@ func (o *VnicFcIf) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "vnic.FcIf" of the ClassId field. +func (o *VnicFcIf) GetDefaultClassId() interface{} { + return "vnic.FcIf" +} + // GetObjectType returns the ObjectType field value func (o *VnicFcIf) GetObjectType() string { if o == nil { @@ -135,6 +140,11 @@ func (o *VnicFcIf) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "vnic.FcIf" of the ObjectType field. +func (o *VnicFcIf) GetDefaultObjectType() interface{} { + return "vnic.FcIf" +} + // GetName returns the Name field value if set, zero value otherwise. func (o *VnicFcIf) GetName() string { if o == nil || IsNil(o.Name) { @@ -220,7 +230,7 @@ func (o *VnicFcIf) GetOverriddenListOk() ([]string, bool) { // HasOverriddenList returns a boolean if a field has been set. func (o *VnicFcIf) HasOverriddenList() bool { - if o != nil && IsNil(o.OverriddenList) { + if o != nil && !IsNil(o.OverriddenList) { return true } @@ -328,7 +338,7 @@ func (o *VnicFcIf) GetTemplateActionsOk() ([]MotemplateActionEntry, bool) { // HasTemplateActions returns a boolean if a field has been set. func (o *VnicFcIf) HasTemplateActions() bool { - if o != nil && IsNil(o.TemplateActions) { + if o != nil && !IsNil(o.TemplateActions) { return true } @@ -361,7 +371,7 @@ func (o *VnicFcIf) GetTemplateSyncErrorsOk() ([]MotemplateSyncError, bool) { // HasTemplateSyncErrors returns a boolean if a field has been set. func (o *VnicFcIf) HasTemplateSyncErrors() bool { - if o != nil && IsNil(o.TemplateSyncErrors) { + if o != nil && !IsNil(o.TemplateSyncErrors) { return true } @@ -651,7 +661,7 @@ func (o *VnicFcIf) GetSpVhbasOk() ([]VnicFcIfRelationship, bool) { // HasSpVhbas returns a boolean if a field has been set. func (o *VnicFcIf) HasSpVhbas() bool { - if o != nil && IsNil(o.SpVhbas) { + if o != nil && !IsNil(o.SpVhbas) { return true } @@ -767,7 +777,13 @@ func (o VnicFcIf) ToMap() (map[string]interface{}, error) { if errVnicBaseFcIf != nil { return map[string]interface{}{}, errVnicBaseFcIf } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Name) { toSerialize["Name"] = o.Name @@ -837,6 +853,13 @@ func (o *VnicFcIf) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -846,24 +869,36 @@ func (o *VnicFcIf) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type VnicFcIfWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` // The fully-qualified name of the instantiated, concrete type. The value should be the same as the 'ClassId' property. ObjectType string `json:"ObjectType"` // Name of the virtual fibre channel interface. - Name *string `json:"Name,omitempty"` + Name *string `json:"Name,omitempty" validate:"regexp=^[a-zA-Z0-9\\\\-\\\\._:]+$"` // The order in which the virtual interface is brought up. The order assigned to an interface should be unique for all the Ethernet and Fibre-Channel interfaces on each PCI link on a VIC adapter. The order should start from zero with no overlaps. The maximum value of PCI order is limited by the number of virtual interfaces (Ethernet and Fibre-Channel) on each PCI link on a VIC adapter. All VIC adapters have a single PCI link except VIC 1340, VIC 1380 and VIC 1385 which have two. Order *int64 `json:"Order,omitempty"` OverriddenList []string `json:"OverriddenList,omitempty"` Placement NullableVnicPlacementSettings `json:"Placement,omitempty"` // The WWPN address must be in hexadecimal format xx:xx:xx:xx:xx:xx:xx:xx. Allowed ranges are 20:00:00:00:00:00:00:00 to 20:FF:FF:FF:FF:FF:FF:FF or from 50:00:00:00:00:00:00:00 to 5F:FF:FF:FF:FF:FF:FF:FF. To ensure uniqueness of WWN's in the SAN fabric, you are strongly encouraged to use the WWN prefix - 20:00:00:25:B5:xx:xx:xx. - StaticWwpnAddress *string `json:"StaticWwpnAddress,omitempty"` + StaticWwpnAddress *string `json:"StaticWwpnAddress,omitempty" validate:"regexp=^$|((^20|5[0-9a-fA-F]{1}):([0-9a-fA-F]{2}:){6}([0-9a-fA-F]{2})$)"` TemplateActions []MotemplateActionEntry `json:"TemplateActions,omitempty"` TemplateSyncErrors []MotemplateSyncError `json:"TemplateSyncErrors,omitempty"` // The sync status of the current MO wrt the attached Template MO. * `None` - The Enum value represents that the object is not attached to any template. * `OK` - The Enum value represents that the object values are in sync with attached template. * `Scheduled` - The Enum value represents that the object sync from attached template is scheduled from template. * `InProgress` - The Enum value represents that the object sync with the attached template is in progress. * `OutOfSync` - The Enum value represents that the object values are not in sync with attached template. @@ -871,7 +906,7 @@ func (o *VnicFcIf) UnmarshalJSON(data []byte) (err error) { // This should be the same as the channel number of the vfc created on switch in order to set up the data path. The property is applicable only for FI attached servers where a vfc is created on the switch for every vHBA. VifId *int64 `json:"VifId,omitempty"` // The WWPN address that is assigned to the vHBA based on the wwn pool that has been assigned to the SAN Connectivity Policy. - Wwpn *string `json:"Wwpn,omitempty"` + Wwpn *string `json:"Wwpn,omitempty" validate:"regexp=^$|((^20|5[0-9a-fA-F]{1}):([0-9a-fA-F]{2}:){6}([0-9a-fA-F]{2})$)"` // Type of allocation selected to assign a WWPN address to the vhba. * `POOL` - The user selects a pool from which the mac/wwn address will be leased for the Virtual Interface. * `STATIC` - The user assigns a static mac/wwn address for the Virtual Interface. WwpnAddressType *string `json:"WwpnAddressType,omitempty"` Profile NullablePolicyAbstractConfigProfileRelationship `json:"Profile,omitempty"` diff --git a/model_vnic_fc_if_inventory.go b/model_vnic_fc_if_inventory.go index 4c56aba60a..cb32509b4f 100644 --- a/model_vnic_fc_if_inventory.go +++ b/model_vnic_fc_if_inventory.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -29,17 +29,17 @@ type VnicFcIfInventory struct { // The fully-qualified name of the instantiated, concrete type. The value should be the same as the 'ClassId' property. ObjectType string `json:"ObjectType"` // Name of the virtual fibre channel interface. - Name *string `json:"Name,omitempty"` + Name *string `json:"Name,omitempty" validate:"regexp=^[a-zA-Z0-9\\\\-\\\\._:]+$"` // The order in which the virtual interface is brought up. The order assigned to an interface should be unique for all the Ethernet and Fibre-Channel interfaces on each PCI link on a VIC adapter. The order should start from zero with no overlaps. The maximum value of PCI order is limited by the number of virtual interfaces (Ethernet and Fibre-Channel) on each PCI link on a VIC adapter. All VIC adapters have a single PCI link except VIC 1340, VIC 1380 and VIC 1385 which have two. Order *int64 `json:"Order,omitempty"` OverriddenList []string `json:"OverriddenList,omitempty"` // Enables retention of LUN ID associations in memory until they are manually cleared. PersistentBindings *bool `json:"PersistentBindings,omitempty"` // Pingroup name associated to vfc for static pinning. SCP deploy will resolve pingroup name and fetches the correspoding uplink port/port channel to pin the vfc traffic. - PinGroupName *string `json:"PinGroupName,omitempty"` + PinGroupName *string `json:"PinGroupName,omitempty" validate:"regexp=^$|^[a-zA-Z0-9_.:-]{1,64}$"` Placement NullableVnicPlacementSettings `json:"Placement,omitempty"` // The WWPN address must be in hexadecimal format xx:xx:xx:xx:xx:xx:xx:xx. Allowed ranges are 20:00:00:00:00:00:00:00 to 20:FF:FF:FF:FF:FF:FF:FF or from 50:00:00:00:00:00:00:00 to 5F:FF:FF:FF:FF:FF:FF:FF. To ensure uniqueness of WWN's in the SAN fabric, you are strongly encouraged to use the WWN prefix - 20:00:00:25:B5:xx:xx:xx. - StaticWwpnAddress *string `json:"StaticWwpnAddress,omitempty"` + StaticWwpnAddress *string `json:"StaticWwpnAddress,omitempty" validate:"regexp=^$|((^20|5[0-9a-fA-F]{1}):([0-9a-fA-F]{2}:){6}([0-9a-fA-F]{2})$)"` TemplateActions []MotemplateActionEntry `json:"TemplateActions,omitempty"` TemplateSyncErrors []MotemplateSyncError `json:"TemplateSyncErrors,omitempty"` // The sync status of the current MO wrt the attached Template MO. * `None` - The Enum value represents that the object is not attached to any template. * `OK` - The Enum value represents that the object values are in sync with attached template. * `Scheduled` - The Enum value represents that the object sync from attached template is scheduled from template. * `InProgress` - The Enum value represents that the object sync with the attached template is in progress. * `OutOfSync` - The Enum value represents that the object values are not in sync with attached template. @@ -49,7 +49,7 @@ type VnicFcIfInventory struct { // This should be the same as the channel number of the vfc created on switch in order to set up the data path. The property is applicable only for FI attached servers where a vfc is created on the switch for every vHBA. VifId *int64 `json:"VifId,omitempty"` // The WWPN address that is assigned to the vHBA based on the wwn pool that has been assigned to the SAN Connectivity Policy. - Wwpn *string `json:"Wwpn,omitempty"` + Wwpn *string `json:"Wwpn,omitempty" validate:"regexp=^$|((^20|5[0-9a-fA-F]{1}):([0-9a-fA-F]{2}:){6}([0-9a-fA-F]{2})$)"` // Type of allocation selected to assign a WWPN address to the vhba. * `POOL` - The user selects a pool from which the mac/wwn address will be leased for the Virtual Interface. * `STATIC` - The user assigns a static mac/wwn address for the Virtual Interface. WwpnAddressType *string `json:"WwpnAddressType,omitempty"` FcAdapterPolicy NullableVnicFcAdapterPolicyInventoryRelationship `json:"FcAdapterPolicy,omitempty"` @@ -116,6 +116,11 @@ func (o *VnicFcIfInventory) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "vnic.FcIfInventory" of the ClassId field. +func (o *VnicFcIfInventory) GetDefaultClassId() interface{} { + return "vnic.FcIfInventory" +} + // GetObjectType returns the ObjectType field value func (o *VnicFcIfInventory) GetObjectType() string { if o == nil { @@ -140,6 +145,11 @@ func (o *VnicFcIfInventory) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "vnic.FcIfInventory" of the ObjectType field. +func (o *VnicFcIfInventory) GetDefaultObjectType() interface{} { + return "vnic.FcIfInventory" +} + // GetName returns the Name field value if set, zero value otherwise. func (o *VnicFcIfInventory) GetName() string { if o == nil || IsNil(o.Name) { @@ -225,7 +235,7 @@ func (o *VnicFcIfInventory) GetOverriddenListOk() ([]string, bool) { // HasOverriddenList returns a boolean if a field has been set. func (o *VnicFcIfInventory) HasOverriddenList() bool { - if o != nil && IsNil(o.OverriddenList) { + if o != nil && !IsNil(o.OverriddenList) { return true } @@ -397,7 +407,7 @@ func (o *VnicFcIfInventory) GetTemplateActionsOk() ([]MotemplateActionEntry, boo // HasTemplateActions returns a boolean if a field has been set. func (o *VnicFcIfInventory) HasTemplateActions() bool { - if o != nil && IsNil(o.TemplateActions) { + if o != nil && !IsNil(o.TemplateActions) { return true } @@ -430,7 +440,7 @@ func (o *VnicFcIfInventory) GetTemplateSyncErrorsOk() ([]MotemplateSyncError, bo // HasTemplateSyncErrors returns a boolean if a field has been set. func (o *VnicFcIfInventory) HasTemplateSyncErrors() bool { - if o != nil && IsNil(o.TemplateSyncErrors) { + if o != nil && !IsNil(o.TemplateSyncErrors) { return true } @@ -752,7 +762,7 @@ func (o *VnicFcIfInventory) GetFcZonePoliciesOk() ([]FabricFcZonePolicyRelations // HasFcZonePolicies returns a boolean if a field has been set. func (o *VnicFcIfInventory) HasFcZonePolicies() bool { - if o != nil && IsNil(o.FcZonePolicies) { + if o != nil && !IsNil(o.FcZonePolicies) { return true } @@ -871,7 +881,7 @@ func (o *VnicFcIfInventory) GetSpVhbasOk() ([]VnicFcIfInventoryRelationship, boo // HasSpVhbas returns a boolean if a field has been set. func (o *VnicFcIfInventory) HasSpVhbas() bool { - if o != nil && IsNil(o.SpVhbas) { + if o != nil && !IsNil(o.SpVhbas) { return true } @@ -1030,7 +1040,13 @@ func (o VnicFcIfInventory) ToMap() (map[string]interface{}, error) { if errPolicyAbstractInventory != nil { return map[string]interface{}{}, errPolicyAbstractInventory } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Name) { toSerialize["Name"] = o.Name @@ -1121,6 +1137,13 @@ func (o *VnicFcIfInventory) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -1130,28 +1153,40 @@ func (o *VnicFcIfInventory) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type VnicFcIfInventoryWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` // The fully-qualified name of the instantiated, concrete type. The value should be the same as the 'ClassId' property. ObjectType string `json:"ObjectType"` // Name of the virtual fibre channel interface. - Name *string `json:"Name,omitempty"` + Name *string `json:"Name,omitempty" validate:"regexp=^[a-zA-Z0-9\\\\-\\\\._:]+$"` // The order in which the virtual interface is brought up. The order assigned to an interface should be unique for all the Ethernet and Fibre-Channel interfaces on each PCI link on a VIC adapter. The order should start from zero with no overlaps. The maximum value of PCI order is limited by the number of virtual interfaces (Ethernet and Fibre-Channel) on each PCI link on a VIC adapter. All VIC adapters have a single PCI link except VIC 1340, VIC 1380 and VIC 1385 which have two. Order *int64 `json:"Order,omitempty"` OverriddenList []string `json:"OverriddenList,omitempty"` // Enables retention of LUN ID associations in memory until they are manually cleared. PersistentBindings *bool `json:"PersistentBindings,omitempty"` // Pingroup name associated to vfc for static pinning. SCP deploy will resolve pingroup name and fetches the correspoding uplink port/port channel to pin the vfc traffic. - PinGroupName *string `json:"PinGroupName,omitempty"` + PinGroupName *string `json:"PinGroupName,omitempty" validate:"regexp=^$|^[a-zA-Z0-9_.:-]{1,64}$"` Placement NullableVnicPlacementSettings `json:"Placement,omitempty"` // The WWPN address must be in hexadecimal format xx:xx:xx:xx:xx:xx:xx:xx. Allowed ranges are 20:00:00:00:00:00:00:00 to 20:FF:FF:FF:FF:FF:FF:FF or from 50:00:00:00:00:00:00:00 to 5F:FF:FF:FF:FF:FF:FF:FF. To ensure uniqueness of WWN's in the SAN fabric, you are strongly encouraged to use the WWN prefix - 20:00:00:25:B5:xx:xx:xx. - StaticWwpnAddress *string `json:"StaticWwpnAddress,omitempty"` + StaticWwpnAddress *string `json:"StaticWwpnAddress,omitempty" validate:"regexp=^$|((^20|5[0-9a-fA-F]{1}):([0-9a-fA-F]{2}:){6}([0-9a-fA-F]{2})$)"` TemplateActions []MotemplateActionEntry `json:"TemplateActions,omitempty"` TemplateSyncErrors []MotemplateSyncError `json:"TemplateSyncErrors,omitempty"` // The sync status of the current MO wrt the attached Template MO. * `None` - The Enum value represents that the object is not attached to any template. * `OK` - The Enum value represents that the object values are in sync with attached template. * `Scheduled` - The Enum value represents that the object sync from attached template is scheduled from template. * `InProgress` - The Enum value represents that the object sync with the attached template is in progress. * `OutOfSync` - The Enum value represents that the object values are not in sync with attached template. @@ -1161,7 +1196,7 @@ func (o *VnicFcIfInventory) UnmarshalJSON(data []byte) (err error) { // This should be the same as the channel number of the vfc created on switch in order to set up the data path. The property is applicable only for FI attached servers where a vfc is created on the switch for every vHBA. VifId *int64 `json:"VifId,omitempty"` // The WWPN address that is assigned to the vHBA based on the wwn pool that has been assigned to the SAN Connectivity Policy. - Wwpn *string `json:"Wwpn,omitempty"` + Wwpn *string `json:"Wwpn,omitempty" validate:"regexp=^$|((^20|5[0-9a-fA-F]{1}):([0-9a-fA-F]{2}:){6}([0-9a-fA-F]{2})$)"` // Type of allocation selected to assign a WWPN address to the vhba. * `POOL` - The user selects a pool from which the mac/wwn address will be leased for the Virtual Interface. * `STATIC` - The user assigns a static mac/wwn address for the Virtual Interface. WwpnAddressType *string `json:"WwpnAddressType,omitempty"` FcAdapterPolicy NullableVnicFcAdapterPolicyInventoryRelationship `json:"FcAdapterPolicy,omitempty"` diff --git a/model_vnic_fc_if_inventory_list.go b/model_vnic_fc_if_inventory_list.go index e12bbcdd42..7b06b48ff5 100644 --- a/model_vnic_fc_if_inventory_list.go +++ b/model_vnic_fc_if_inventory_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *VnicFcIfInventoryList) GetResultsOk() ([]VnicFcIfInventory, bool) { // HasResults returns a boolean if a field has been set. func (o *VnicFcIfInventoryList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *VnicFcIfInventoryList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *VnicFcIfInventoryList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type VnicFcIfInventoryListWithoutEmbeddedStruct struct { // The total number of 'vnic.FcIfInventory' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_vnic_fc_if_inventory_relationship.go b/model_vnic_fc_if_inventory_relationship.go index c63530e91f..ebc8d668b7 100644 --- a/model_vnic_fc_if_inventory_relationship.go +++ b/model_vnic_fc_if_inventory_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_vnic_fc_if_inventory_response.go b/model_vnic_fc_if_inventory_response.go index eae83ce500..64e015d3d5 100644 --- a/model_vnic_fc_if_inventory_response.go +++ b/model_vnic_fc_if_inventory_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_vnic_fc_if_list.go b/model_vnic_fc_if_list.go index 4fca535ae0..f22693f54c 100644 --- a/model_vnic_fc_if_list.go +++ b/model_vnic_fc_if_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *VnicFcIfList) GetResultsOk() ([]VnicFcIf, bool) { // HasResults returns a boolean if a field has been set. func (o *VnicFcIfList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *VnicFcIfList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *VnicFcIfList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type VnicFcIfListWithoutEmbeddedStruct struct { // The total number of 'vnic.FcIf' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_vnic_fc_if_relationship.go b/model_vnic_fc_if_relationship.go index 336314d4fa..e6fbb5cdef 100644 --- a/model_vnic_fc_if_relationship.go +++ b/model_vnic_fc_if_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_vnic_fc_if_response.go b/model_vnic_fc_if_response.go index b0474ead89..dfa3132f8e 100644 --- a/model_vnic_fc_if_response.go +++ b/model_vnic_fc_if_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_vnic_fc_interrupt_settings.go b/model_vnic_fc_interrupt_settings.go index df50197387..d14bfc88c2 100644 --- a/model_vnic_fc_interrupt_settings.go +++ b/model_vnic_fc_interrupt_settings.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -86,6 +86,11 @@ func (o *VnicFcInterruptSettings) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "vnic.FcInterruptSettings" of the ClassId field. +func (o *VnicFcInterruptSettings) GetDefaultClassId() interface{} { + return "vnic.FcInterruptSettings" +} + // GetObjectType returns the ObjectType field value func (o *VnicFcInterruptSettings) GetObjectType() string { if o == nil { @@ -110,6 +115,11 @@ func (o *VnicFcInterruptSettings) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "vnic.FcInterruptSettings" of the ObjectType field. +func (o *VnicFcInterruptSettings) GetDefaultObjectType() interface{} { + return "vnic.FcInterruptSettings" +} + // GetMode returns the Mode field value if set, zero value otherwise. func (o *VnicFcInterruptSettings) GetMode() string { if o == nil || IsNil(o.Mode) { @@ -160,7 +170,13 @@ func (o VnicFcInterruptSettings) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Mode) { toSerialize["Mode"] = o.Mode @@ -182,6 +198,13 @@ func (o *VnicFcInterruptSettings) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -191,11 +214,23 @@ func (o *VnicFcInterruptSettings) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type VnicFcInterruptSettingsWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_vnic_fc_network_policy.go b/model_vnic_fc_network_policy.go index e346463d18..a290994209 100644 --- a/model_vnic_fc_network_policy.go +++ b/model_vnic_fc_network_policy.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -82,6 +82,11 @@ func (o *VnicFcNetworkPolicy) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "vnic.FcNetworkPolicy" of the ClassId field. +func (o *VnicFcNetworkPolicy) GetDefaultClassId() interface{} { + return "vnic.FcNetworkPolicy" +} + // GetObjectType returns the ObjectType field value func (o *VnicFcNetworkPolicy) GetObjectType() string { if o == nil { @@ -106,6 +111,11 @@ func (o *VnicFcNetworkPolicy) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "vnic.FcNetworkPolicy" of the ObjectType field. +func (o *VnicFcNetworkPolicy) GetDefaultObjectType() interface{} { + return "vnic.FcNetworkPolicy" +} + // GetVsanSettings returns the VsanSettings field value if set, zero value otherwise (both if not set or set to explicit null). func (o *VnicFcNetworkPolicy) GetVsanSettings() VnicVsanSettings { if o == nil || IsNil(o.VsanSettings.Get()) { @@ -210,7 +220,13 @@ func (o VnicFcNetworkPolicy) ToMap() (map[string]interface{}, error) { if errPolicyAbstractPolicy != nil { return map[string]interface{}{}, errPolicyAbstractPolicy } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.VsanSettings.IsSet() { toSerialize["VsanSettings"] = o.VsanSettings.Get() @@ -235,6 +251,13 @@ func (o *VnicFcNetworkPolicy) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -244,11 +267,23 @@ func (o *VnicFcNetworkPolicy) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type VnicFcNetworkPolicyWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_vnic_fc_network_policy_inventory.go b/model_vnic_fc_network_policy_inventory.go index da38836ac3..c42f0cc227 100644 --- a/model_vnic_fc_network_policy_inventory.go +++ b/model_vnic_fc_network_policy_inventory.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -82,6 +82,11 @@ func (o *VnicFcNetworkPolicyInventory) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "vnic.FcNetworkPolicyInventory" of the ClassId field. +func (o *VnicFcNetworkPolicyInventory) GetDefaultClassId() interface{} { + return "vnic.FcNetworkPolicyInventory" +} + // GetObjectType returns the ObjectType field value func (o *VnicFcNetworkPolicyInventory) GetObjectType() string { if o == nil { @@ -106,6 +111,11 @@ func (o *VnicFcNetworkPolicyInventory) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "vnic.FcNetworkPolicyInventory" of the ObjectType field. +func (o *VnicFcNetworkPolicyInventory) GetDefaultObjectType() interface{} { + return "vnic.FcNetworkPolicyInventory" +} + // GetVsanSettings returns the VsanSettings field value if set, zero value otherwise (both if not set or set to explicit null). func (o *VnicFcNetworkPolicyInventory) GetVsanSettings() VnicVsanSettings { if o == nil || IsNil(o.VsanSettings.Get()) { @@ -210,7 +220,13 @@ func (o VnicFcNetworkPolicyInventory) ToMap() (map[string]interface{}, error) { if errPolicyAbstractPolicyInventory != nil { return map[string]interface{}{}, errPolicyAbstractPolicyInventory } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.VsanSettings.IsSet() { toSerialize["VsanSettings"] = o.VsanSettings.Get() @@ -235,6 +251,13 @@ func (o *VnicFcNetworkPolicyInventory) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -244,11 +267,23 @@ func (o *VnicFcNetworkPolicyInventory) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type VnicFcNetworkPolicyInventoryWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_vnic_fc_network_policy_inventory_list.go b/model_vnic_fc_network_policy_inventory_list.go index 51a4212f19..65dbedda82 100644 --- a/model_vnic_fc_network_policy_inventory_list.go +++ b/model_vnic_fc_network_policy_inventory_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *VnicFcNetworkPolicyInventoryList) GetResultsOk() ([]VnicFcNetworkPolicy // HasResults returns a boolean if a field has been set. func (o *VnicFcNetworkPolicyInventoryList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *VnicFcNetworkPolicyInventoryList) UnmarshalJSON(data []byte) (err error "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *VnicFcNetworkPolicyInventoryList) UnmarshalJSON(data []byte) (err error } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type VnicFcNetworkPolicyInventoryListWithoutEmbeddedStruct struct { // The total number of 'vnic.FcNetworkPolicyInventory' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_vnic_fc_network_policy_inventory_relationship.go b/model_vnic_fc_network_policy_inventory_relationship.go index 765362af80..2f24c67007 100644 --- a/model_vnic_fc_network_policy_inventory_relationship.go +++ b/model_vnic_fc_network_policy_inventory_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_vnic_fc_network_policy_inventory_response.go b/model_vnic_fc_network_policy_inventory_response.go index e40aff868b..3cbe56f8f4 100644 --- a/model_vnic_fc_network_policy_inventory_response.go +++ b/model_vnic_fc_network_policy_inventory_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_vnic_fc_network_policy_list.go b/model_vnic_fc_network_policy_list.go index fa4a757baf..672455f485 100644 --- a/model_vnic_fc_network_policy_list.go +++ b/model_vnic_fc_network_policy_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *VnicFcNetworkPolicyList) GetResultsOk() ([]VnicFcNetworkPolicy, bool) { // HasResults returns a boolean if a field has been set. func (o *VnicFcNetworkPolicyList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *VnicFcNetworkPolicyList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *VnicFcNetworkPolicyList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type VnicFcNetworkPolicyListWithoutEmbeddedStruct struct { // The total number of 'vnic.FcNetworkPolicy' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_vnic_fc_network_policy_relationship.go b/model_vnic_fc_network_policy_relationship.go index 7cbd0a24ec..560b4e4078 100644 --- a/model_vnic_fc_network_policy_relationship.go +++ b/model_vnic_fc_network_policy_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_vnic_fc_network_policy_response.go b/model_vnic_fc_network_policy_response.go index aaea15afdb..6e8e92902c 100644 --- a/model_vnic_fc_network_policy_response.go +++ b/model_vnic_fc_network_policy_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_vnic_fc_qos_policy.go b/model_vnic_fc_qos_policy.go index c854b1a9de..892d2707ea 100644 --- a/model_vnic_fc_qos_policy.go +++ b/model_vnic_fc_qos_policy.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -107,6 +107,11 @@ func (o *VnicFcQosPolicy) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "vnic.FcQosPolicy" of the ClassId field. +func (o *VnicFcQosPolicy) GetDefaultClassId() interface{} { + return "vnic.FcQosPolicy" +} + // GetObjectType returns the ObjectType field value func (o *VnicFcQosPolicy) GetObjectType() string { if o == nil { @@ -131,6 +136,11 @@ func (o *VnicFcQosPolicy) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "vnic.FcQosPolicy" of the ObjectType field. +func (o *VnicFcQosPolicy) GetDefaultObjectType() interface{} { + return "vnic.FcQosPolicy" +} + // GetBurst returns the Burst field value if set, zero value otherwise. func (o *VnicFcQosPolicy) GetBurst() int64 { if o == nil || IsNil(o.Burst) { @@ -352,7 +362,13 @@ func (o VnicFcQosPolicy) ToMap() (map[string]interface{}, error) { if errPolicyAbstractPolicy != nil { return map[string]interface{}{}, errPolicyAbstractPolicy } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Burst) { toSerialize["Burst"] = o.Burst @@ -389,6 +405,13 @@ func (o *VnicFcQosPolicy) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -398,11 +421,23 @@ func (o *VnicFcQosPolicy) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type VnicFcQosPolicyWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_vnic_fc_qos_policy_inventory.go b/model_vnic_fc_qos_policy_inventory.go index e3abbda379..33e42c0581 100644 --- a/model_vnic_fc_qos_policy_inventory.go +++ b/model_vnic_fc_qos_policy_inventory.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -91,6 +91,11 @@ func (o *VnicFcQosPolicyInventory) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "vnic.FcQosPolicyInventory" of the ClassId field. +func (o *VnicFcQosPolicyInventory) GetDefaultClassId() interface{} { + return "vnic.FcQosPolicyInventory" +} + // GetObjectType returns the ObjectType field value func (o *VnicFcQosPolicyInventory) GetObjectType() string { if o == nil { @@ -115,6 +120,11 @@ func (o *VnicFcQosPolicyInventory) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "vnic.FcQosPolicyInventory" of the ObjectType field. +func (o *VnicFcQosPolicyInventory) GetDefaultObjectType() interface{} { + return "vnic.FcQosPolicyInventory" +} + // GetBurst returns the Burst field value if set, zero value otherwise. func (o *VnicFcQosPolicyInventory) GetBurst() int64 { if o == nil || IsNil(o.Burst) { @@ -336,7 +346,13 @@ func (o VnicFcQosPolicyInventory) ToMap() (map[string]interface{}, error) { if errPolicyAbstractPolicyInventory != nil { return map[string]interface{}{}, errPolicyAbstractPolicyInventory } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Burst) { toSerialize["Burst"] = o.Burst @@ -373,6 +389,13 @@ func (o *VnicFcQosPolicyInventory) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -382,11 +405,23 @@ func (o *VnicFcQosPolicyInventory) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type VnicFcQosPolicyInventoryWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_vnic_fc_qos_policy_inventory_list.go b/model_vnic_fc_qos_policy_inventory_list.go index a0ce1577d1..e12eb23d5f 100644 --- a/model_vnic_fc_qos_policy_inventory_list.go +++ b/model_vnic_fc_qos_policy_inventory_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *VnicFcQosPolicyInventoryList) GetResultsOk() ([]VnicFcQosPolicyInventor // HasResults returns a boolean if a field has been set. func (o *VnicFcQosPolicyInventoryList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *VnicFcQosPolicyInventoryList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *VnicFcQosPolicyInventoryList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type VnicFcQosPolicyInventoryListWithoutEmbeddedStruct struct { // The total number of 'vnic.FcQosPolicyInventory' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_vnic_fc_qos_policy_inventory_relationship.go b/model_vnic_fc_qos_policy_inventory_relationship.go index d5b924820c..9bd64e2760 100644 --- a/model_vnic_fc_qos_policy_inventory_relationship.go +++ b/model_vnic_fc_qos_policy_inventory_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_vnic_fc_qos_policy_inventory_response.go b/model_vnic_fc_qos_policy_inventory_response.go index 57d5ba40aa..97ba962b72 100644 --- a/model_vnic_fc_qos_policy_inventory_response.go +++ b/model_vnic_fc_qos_policy_inventory_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_vnic_fc_qos_policy_list.go b/model_vnic_fc_qos_policy_list.go index 175af1f622..23610fc122 100644 --- a/model_vnic_fc_qos_policy_list.go +++ b/model_vnic_fc_qos_policy_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *VnicFcQosPolicyList) GetResultsOk() ([]VnicFcQosPolicy, bool) { // HasResults returns a boolean if a field has been set. func (o *VnicFcQosPolicyList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *VnicFcQosPolicyList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *VnicFcQosPolicyList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type VnicFcQosPolicyListWithoutEmbeddedStruct struct { // The total number of 'vnic.FcQosPolicy' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_vnic_fc_qos_policy_relationship.go b/model_vnic_fc_qos_policy_relationship.go index 594021adb7..c6be0c6616 100644 --- a/model_vnic_fc_qos_policy_relationship.go +++ b/model_vnic_fc_qos_policy_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_vnic_fc_qos_policy_response.go b/model_vnic_fc_qos_policy_response.go index 594b8316dd..9141d98da9 100644 --- a/model_vnic_fc_qos_policy_response.go +++ b/model_vnic_fc_qos_policy_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_vnic_fc_queue_settings.go b/model_vnic_fc_queue_settings.go index b1523ba8ad..0a15d53c54 100644 --- a/model_vnic_fc_queue_settings.go +++ b/model_vnic_fc_queue_settings.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -88,6 +88,11 @@ func (o *VnicFcQueueSettings) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "vnic.FcQueueSettings" of the ClassId field. +func (o *VnicFcQueueSettings) GetDefaultClassId() interface{} { + return "vnic.FcQueueSettings" +} + // GetObjectType returns the ObjectType field value func (o *VnicFcQueueSettings) GetObjectType() string { if o == nil { @@ -112,6 +117,11 @@ func (o *VnicFcQueueSettings) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "vnic.FcQueueSettings" of the ObjectType field. +func (o *VnicFcQueueSettings) GetDefaultObjectType() interface{} { + return "vnic.FcQueueSettings" +} + // GetCount returns the Count field value if set, zero value otherwise. func (o *VnicFcQueueSettings) GetCount() int64 { if o == nil || IsNil(o.Count) { @@ -194,7 +204,13 @@ func (o VnicFcQueueSettings) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Count) { toSerialize["Count"] = o.Count @@ -219,6 +235,13 @@ func (o *VnicFcQueueSettings) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -228,11 +251,23 @@ func (o *VnicFcQueueSettings) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type VnicFcQueueSettingsWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_vnic_fc_veth_inventory.go b/model_vnic_fc_veth_inventory.go index 9bffa0a2ce..827c3ffdb3 100644 --- a/model_vnic_fc_veth_inventory.go +++ b/model_vnic_fc_veth_inventory.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -97,6 +97,11 @@ func (o *VnicFcVethInventory) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "vnic.FcVethInventory" of the ClassId field. +func (o *VnicFcVethInventory) GetDefaultClassId() interface{} { + return "vnic.FcVethInventory" +} + // GetObjectType returns the ObjectType field value func (o *VnicFcVethInventory) GetObjectType() string { if o == nil { @@ -121,6 +126,11 @@ func (o *VnicFcVethInventory) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "vnic.FcVethInventory" of the ObjectType field. +func (o *VnicFcVethInventory) GetDefaultObjectType() interface{} { + return "vnic.FcVethInventory" +} + // GetBurst returns the Burst field value if set, zero value otherwise. func (o *VnicFcVethInventory) GetBurst() int64 { if o == nil || IsNil(o.Burst) { @@ -310,7 +320,13 @@ func (o VnicFcVethInventory) ToMap() (map[string]interface{}, error) { if errPolicyAbstractInventory != nil { return map[string]interface{}{}, errPolicyAbstractInventory } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Burst) { toSerialize["Burst"] = o.Burst @@ -344,6 +360,13 @@ func (o *VnicFcVethInventory) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -353,11 +376,23 @@ func (o *VnicFcVethInventory) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type VnicFcVethInventoryWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_vnic_fc_veth_inventory_list.go b/model_vnic_fc_veth_inventory_list.go index 37054fa525..1280e0b460 100644 --- a/model_vnic_fc_veth_inventory_list.go +++ b/model_vnic_fc_veth_inventory_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *VnicFcVethInventoryList) GetResultsOk() ([]VnicFcVethInventory, bool) { // HasResults returns a boolean if a field has been set. func (o *VnicFcVethInventoryList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *VnicFcVethInventoryList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *VnicFcVethInventoryList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type VnicFcVethInventoryListWithoutEmbeddedStruct struct { // The total number of 'vnic.FcVethInventory' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_vnic_fc_veth_inventory_response.go b/model_vnic_fc_veth_inventory_response.go index 6f90708aab..352fba2664 100644 --- a/model_vnic_fc_veth_inventory_response.go +++ b/model_vnic_fc_veth_inventory_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_vnic_fc_vhba_policy_inventory.go b/model_vnic_fc_vhba_policy_inventory.go index d2f987feb4..fd13b975f3 100644 --- a/model_vnic_fc_vhba_policy_inventory.go +++ b/model_vnic_fc_vhba_policy_inventory.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -97,6 +97,11 @@ func (o *VnicFcVhbaPolicyInventory) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "vnic.FcVhbaPolicyInventory" of the ClassId field. +func (o *VnicFcVhbaPolicyInventory) GetDefaultClassId() interface{} { + return "vnic.FcVhbaPolicyInventory" +} + // GetObjectType returns the ObjectType field value func (o *VnicFcVhbaPolicyInventory) GetObjectType() string { if o == nil { @@ -121,6 +126,11 @@ func (o *VnicFcVhbaPolicyInventory) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "vnic.FcVhbaPolicyInventory" of the ObjectType field. +func (o *VnicFcVhbaPolicyInventory) GetDefaultObjectType() interface{} { + return "vnic.FcVhbaPolicyInventory" +} + // GetCos returns the Cos field value if set, zero value otherwise. func (o *VnicFcVhbaPolicyInventory) GetCos() int64 { if o == nil || IsNil(o.Cos) { @@ -310,7 +320,13 @@ func (o VnicFcVhbaPolicyInventory) ToMap() (map[string]interface{}, error) { if errPolicyAbstractInventory != nil { return map[string]interface{}{}, errPolicyAbstractInventory } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Cos) { toSerialize["Cos"] = o.Cos @@ -344,6 +360,13 @@ func (o *VnicFcVhbaPolicyInventory) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -353,11 +376,23 @@ func (o *VnicFcVhbaPolicyInventory) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type VnicFcVhbaPolicyInventoryWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_vnic_fc_vhba_policy_inventory_list.go b/model_vnic_fc_vhba_policy_inventory_list.go index 56f4204f15..703ac43a3c 100644 --- a/model_vnic_fc_vhba_policy_inventory_list.go +++ b/model_vnic_fc_vhba_policy_inventory_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *VnicFcVhbaPolicyInventoryList) GetResultsOk() ([]VnicFcVhbaPolicyInvent // HasResults returns a boolean if a field has been set. func (o *VnicFcVhbaPolicyInventoryList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *VnicFcVhbaPolicyInventoryList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *VnicFcVhbaPolicyInventoryList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type VnicFcVhbaPolicyInventoryListWithoutEmbeddedStruct struct { // The total number of 'vnic.FcVhbaPolicyInventory' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_vnic_fc_vhba_policy_inventory_response.go b/model_vnic_fc_vhba_policy_inventory_response.go index 223f8c4245..b1e841e194 100644 --- a/model_vnic_fc_vhba_policy_inventory_response.go +++ b/model_vnic_fc_vhba_policy_inventory_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_vnic_flogi_settings.go b/model_vnic_flogi_settings.go index e416a5eec4..151191f434 100644 --- a/model_vnic_flogi_settings.go +++ b/model_vnic_flogi_settings.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -92,6 +92,11 @@ func (o *VnicFlogiSettings) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "vnic.FlogiSettings" of the ClassId field. +func (o *VnicFlogiSettings) GetDefaultClassId() interface{} { + return "vnic.FlogiSettings" +} + // GetObjectType returns the ObjectType field value func (o *VnicFlogiSettings) GetObjectType() string { if o == nil { @@ -116,6 +121,11 @@ func (o *VnicFlogiSettings) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "vnic.FlogiSettings" of the ObjectType field. +func (o *VnicFlogiSettings) GetDefaultObjectType() interface{} { + return "vnic.FlogiSettings" +} + // GetRetries returns the Retries field value if set, zero value otherwise. func (o *VnicFlogiSettings) GetRetries() int64 { if o == nil || IsNil(o.Retries) { @@ -198,7 +208,13 @@ func (o VnicFlogiSettings) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Retries) { toSerialize["Retries"] = o.Retries @@ -223,6 +239,13 @@ func (o *VnicFlogiSettings) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -232,11 +255,23 @@ func (o *VnicFlogiSettings) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type VnicFlogiSettingsWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_vnic_iscsi_adapter_policy.go b/model_vnic_iscsi_adapter_policy.go index 6392d795c1..bcdf50caaf 100644 --- a/model_vnic_iscsi_adapter_policy.go +++ b/model_vnic_iscsi_adapter_policy.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -87,6 +87,11 @@ func (o *VnicIscsiAdapterPolicy) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "vnic.IscsiAdapterPolicy" of the ClassId field. +func (o *VnicIscsiAdapterPolicy) GetDefaultClassId() interface{} { + return "vnic.IscsiAdapterPolicy" +} + // GetObjectType returns the ObjectType field value func (o *VnicIscsiAdapterPolicy) GetObjectType() string { if o == nil { @@ -111,6 +116,11 @@ func (o *VnicIscsiAdapterPolicy) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "vnic.IscsiAdapterPolicy" of the ObjectType field. +func (o *VnicIscsiAdapterPolicy) GetDefaultObjectType() interface{} { + return "vnic.IscsiAdapterPolicy" +} + // GetConnectionTimeOut returns the ConnectionTimeOut field value if set, zero value otherwise. func (o *VnicIscsiAdapterPolicy) GetConnectionTimeOut() int64 { if o == nil || IsNil(o.ConnectionTimeOut) { @@ -268,7 +278,13 @@ func (o VnicIscsiAdapterPolicy) ToMap() (map[string]interface{}, error) { if errPolicyAbstractPolicy != nil { return map[string]interface{}{}, errPolicyAbstractPolicy } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.ConnectionTimeOut) { toSerialize["ConnectionTimeOut"] = o.ConnectionTimeOut @@ -299,6 +315,13 @@ func (o *VnicIscsiAdapterPolicy) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -308,11 +331,23 @@ func (o *VnicIscsiAdapterPolicy) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type VnicIscsiAdapterPolicyWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_vnic_iscsi_adapter_policy_inventory.go b/model_vnic_iscsi_adapter_policy_inventory.go index 39f951146b..eb76d2b90c 100644 --- a/model_vnic_iscsi_adapter_policy_inventory.go +++ b/model_vnic_iscsi_adapter_policy_inventory.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -87,6 +87,11 @@ func (o *VnicIscsiAdapterPolicyInventory) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "vnic.IscsiAdapterPolicyInventory" of the ClassId field. +func (o *VnicIscsiAdapterPolicyInventory) GetDefaultClassId() interface{} { + return "vnic.IscsiAdapterPolicyInventory" +} + // GetObjectType returns the ObjectType field value func (o *VnicIscsiAdapterPolicyInventory) GetObjectType() string { if o == nil { @@ -111,6 +116,11 @@ func (o *VnicIscsiAdapterPolicyInventory) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "vnic.IscsiAdapterPolicyInventory" of the ObjectType field. +func (o *VnicIscsiAdapterPolicyInventory) GetDefaultObjectType() interface{} { + return "vnic.IscsiAdapterPolicyInventory" +} + // GetConnectionTimeOut returns the ConnectionTimeOut field value if set, zero value otherwise. func (o *VnicIscsiAdapterPolicyInventory) GetConnectionTimeOut() int64 { if o == nil || IsNil(o.ConnectionTimeOut) { @@ -268,7 +278,13 @@ func (o VnicIscsiAdapterPolicyInventory) ToMap() (map[string]interface{}, error) if errPolicyAbstractPolicyInventory != nil { return map[string]interface{}{}, errPolicyAbstractPolicyInventory } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.ConnectionTimeOut) { toSerialize["ConnectionTimeOut"] = o.ConnectionTimeOut @@ -299,6 +315,13 @@ func (o *VnicIscsiAdapterPolicyInventory) UnmarshalJSON(data []byte) (err error) "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -308,11 +331,23 @@ func (o *VnicIscsiAdapterPolicyInventory) UnmarshalJSON(data []byte) (err error) } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type VnicIscsiAdapterPolicyInventoryWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_vnic_iscsi_adapter_policy_inventory_list.go b/model_vnic_iscsi_adapter_policy_inventory_list.go index a0b4031138..6b26548f2d 100644 --- a/model_vnic_iscsi_adapter_policy_inventory_list.go +++ b/model_vnic_iscsi_adapter_policy_inventory_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *VnicIscsiAdapterPolicyInventoryList) GetResultsOk() ([]VnicIscsiAdapter // HasResults returns a boolean if a field has been set. func (o *VnicIscsiAdapterPolicyInventoryList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *VnicIscsiAdapterPolicyInventoryList) UnmarshalJSON(data []byte) (err er "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *VnicIscsiAdapterPolicyInventoryList) UnmarshalJSON(data []byte) (err er } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type VnicIscsiAdapterPolicyInventoryListWithoutEmbeddedStruct struct { // The total number of 'vnic.IscsiAdapterPolicyInventory' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_vnic_iscsi_adapter_policy_inventory_relationship.go b/model_vnic_iscsi_adapter_policy_inventory_relationship.go index 9699bd9382..20fb5d9910 100644 --- a/model_vnic_iscsi_adapter_policy_inventory_relationship.go +++ b/model_vnic_iscsi_adapter_policy_inventory_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_vnic_iscsi_adapter_policy_inventory_response.go b/model_vnic_iscsi_adapter_policy_inventory_response.go index f8c99b6503..a4652f2f8a 100644 --- a/model_vnic_iscsi_adapter_policy_inventory_response.go +++ b/model_vnic_iscsi_adapter_policy_inventory_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_vnic_iscsi_adapter_policy_list.go b/model_vnic_iscsi_adapter_policy_list.go index 25e58d5bd4..c16f8b6cf9 100644 --- a/model_vnic_iscsi_adapter_policy_list.go +++ b/model_vnic_iscsi_adapter_policy_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *VnicIscsiAdapterPolicyList) GetResultsOk() ([]VnicIscsiAdapterPolicy, b // HasResults returns a boolean if a field has been set. func (o *VnicIscsiAdapterPolicyList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *VnicIscsiAdapterPolicyList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *VnicIscsiAdapterPolicyList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type VnicIscsiAdapterPolicyListWithoutEmbeddedStruct struct { // The total number of 'vnic.IscsiAdapterPolicy' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_vnic_iscsi_adapter_policy_relationship.go b/model_vnic_iscsi_adapter_policy_relationship.go index 0259f2c9d8..b80e8bdf64 100644 --- a/model_vnic_iscsi_adapter_policy_relationship.go +++ b/model_vnic_iscsi_adapter_policy_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_vnic_iscsi_adapter_policy_response.go b/model_vnic_iscsi_adapter_policy_response.go index 34df5c32d3..1a04f65d29 100644 --- a/model_vnic_iscsi_adapter_policy_response.go +++ b/model_vnic_iscsi_adapter_policy_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_vnic_iscsi_auth_profile.go b/model_vnic_iscsi_auth_profile.go index 03ce296661..15dd0eee9d 100644 --- a/model_vnic_iscsi_auth_profile.go +++ b/model_vnic_iscsi_auth_profile.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -31,9 +31,9 @@ type VnicIscsiAuthProfile struct { // Indicates whether the value of the 'password' property has been set. IsPasswordSet *bool `json:"IsPasswordSet,omitempty"` // Password of Initiator/Target Interface. Enter between 12 and 16 characters, including special characters except spaces, tabs, line breaks. - Password *string `json:"Password,omitempty"` + Password *string `json:"Password,omitempty" validate:"regexp=^$|^[\\\\S+]{12,16}$"` // User Id of Initiator/Target Interface. Enter between 1 and 128 characters, spaces, or special characters. - UserId *string `json:"UserId,omitempty"` + UserId *string `json:"UserId,omitempty" validate:"regexp=^$|^.{1,128}$"` AdditionalProperties map[string]interface{} } @@ -86,6 +86,11 @@ func (o *VnicIscsiAuthProfile) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "vnic.IscsiAuthProfile" of the ClassId field. +func (o *VnicIscsiAuthProfile) GetDefaultClassId() interface{} { + return "vnic.IscsiAuthProfile" +} + // GetObjectType returns the ObjectType field value func (o *VnicIscsiAuthProfile) GetObjectType() string { if o == nil { @@ -110,6 +115,11 @@ func (o *VnicIscsiAuthProfile) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "vnic.IscsiAuthProfile" of the ObjectType field. +func (o *VnicIscsiAuthProfile) GetDefaultObjectType() interface{} { + return "vnic.IscsiAuthProfile" +} + // GetIsPasswordSet returns the IsPasswordSet field value if set, zero value otherwise. func (o *VnicIscsiAuthProfile) GetIsPasswordSet() bool { if o == nil || IsNil(o.IsPasswordSet) { @@ -224,7 +234,13 @@ func (o VnicIscsiAuthProfile) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.IsPasswordSet) { toSerialize["IsPasswordSet"] = o.IsPasswordSet @@ -252,6 +268,13 @@ func (o *VnicIscsiAuthProfile) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -261,11 +284,23 @@ func (o *VnicIscsiAuthProfile) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type VnicIscsiAuthProfileWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` @@ -274,9 +309,9 @@ func (o *VnicIscsiAuthProfile) UnmarshalJSON(data []byte) (err error) { // Indicates whether the value of the 'password' property has been set. IsPasswordSet *bool `json:"IsPasswordSet,omitempty"` // Password of Initiator/Target Interface. Enter between 12 and 16 characters, including special characters except spaces, tabs, line breaks. - Password *string `json:"Password,omitempty"` + Password *string `json:"Password,omitempty" validate:"regexp=^$|^[\\\\S+]{12,16}$"` // User Id of Initiator/Target Interface. Enter between 1 and 128 characters, spaces, or special characters. - UserId *string `json:"UserId,omitempty"` + UserId *string `json:"UserId,omitempty" validate:"regexp=^$|^.{1,128}$"` } varVnicIscsiAuthProfileWithoutEmbeddedStruct := VnicIscsiAuthProfileWithoutEmbeddedStruct{} diff --git a/model_vnic_iscsi_boot_policy.go b/model_vnic_iscsi_boot_policy.go index d6e330dce0..7a4ba679d5 100644 --- a/model_vnic_iscsi_boot_policy.go +++ b/model_vnic_iscsi_boot_policy.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -34,7 +34,7 @@ type VnicIscsiBootPolicy struct { // Source Type of Initiator IP Address - Auto/Static/Pool. * `DHCP` - The IP address is assigned using DHCP, if available. * `Static` - Static IPv4 address is assigned to the iSCSI boot interface based on the information entered in this area. * `Pool` - An IPv4 address is assigned to the iSCSI boot interface from the management IP address pool. InitiatorIpSource *string `json:"InitiatorIpSource,omitempty"` // Static IP address provided for iSCSI Initiator. - InitiatorStaticIpV4Address *string `json:"InitiatorStaticIpV4Address,omitempty"` + InitiatorStaticIpV4Address *string `json:"InitiatorStaticIpV4Address,omitempty" validate:"regexp=^$|^([1-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\\\.([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\\\.([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\\\.([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])$"` InitiatorStaticIpV4Config NullableIppoolIpV4Config `json:"InitiatorStaticIpV4Config,omitempty"` MutualChap NullableVnicIscsiAuthProfile `json:"MutualChap,omitempty"` // Source Type of Targets - Auto/Static. * `Static` - Type indicates that static target interface is assigned to iSCSI boot. * `Auto` - Type indicates that the system selects the target interface automatically during iSCSI boot. @@ -104,6 +104,11 @@ func (o *VnicIscsiBootPolicy) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "vnic.IscsiBootPolicy" of the ClassId field. +func (o *VnicIscsiBootPolicy) GetDefaultClassId() interface{} { + return "vnic.IscsiBootPolicy" +} + // GetObjectType returns the ObjectType field value func (o *VnicIscsiBootPolicy) GetObjectType() string { if o == nil { @@ -128,6 +133,11 @@ func (o *VnicIscsiBootPolicy) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "vnic.IscsiBootPolicy" of the ObjectType field. +func (o *VnicIscsiBootPolicy) GetDefaultObjectType() interface{} { + return "vnic.IscsiBootPolicy" +} + // GetAutoTargetvendorName returns the AutoTargetvendorName field value if set, zero value otherwise. func (o *VnicIscsiBootPolicy) GetAutoTargetvendorName() string { if o == nil || IsNil(o.AutoTargetvendorName) { @@ -618,7 +628,13 @@ func (o VnicIscsiBootPolicy) ToMap() (map[string]interface{}, error) { if errPolicyAbstractPolicy != nil { return map[string]interface{}{}, errPolicyAbstractPolicy } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.AutoTargetvendorName) { toSerialize["AutoTargetvendorName"] = o.AutoTargetvendorName @@ -673,6 +689,13 @@ func (o *VnicIscsiBootPolicy) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -682,11 +705,23 @@ func (o *VnicIscsiBootPolicy) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type VnicIscsiBootPolicyWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` @@ -698,7 +733,7 @@ func (o *VnicIscsiBootPolicy) UnmarshalJSON(data []byte) (err error) { // Source Type of Initiator IP Address - Auto/Static/Pool. * `DHCP` - The IP address is assigned using DHCP, if available. * `Static` - Static IPv4 address is assigned to the iSCSI boot interface based on the information entered in this area. * `Pool` - An IPv4 address is assigned to the iSCSI boot interface from the management IP address pool. InitiatorIpSource *string `json:"InitiatorIpSource,omitempty"` // Static IP address provided for iSCSI Initiator. - InitiatorStaticIpV4Address *string `json:"InitiatorStaticIpV4Address,omitempty"` + InitiatorStaticIpV4Address *string `json:"InitiatorStaticIpV4Address,omitempty" validate:"regexp=^$|^([1-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\\\.([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\\\.([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\\\.([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])$"` InitiatorStaticIpV4Config NullableIppoolIpV4Config `json:"InitiatorStaticIpV4Config,omitempty"` MutualChap NullableVnicIscsiAuthProfile `json:"MutualChap,omitempty"` // Source Type of Targets - Auto/Static. * `Static` - Type indicates that static target interface is assigned to iSCSI boot. * `Auto` - Type indicates that the system selects the target interface automatically during iSCSI boot. diff --git a/model_vnic_iscsi_boot_policy_inventory.go b/model_vnic_iscsi_boot_policy_inventory.go index 41d53833fa..eafa064f26 100644 --- a/model_vnic_iscsi_boot_policy_inventory.go +++ b/model_vnic_iscsi_boot_policy_inventory.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -34,7 +34,7 @@ type VnicIscsiBootPolicyInventory struct { // Source Type of Initiator IP Address - Auto/Static/Pool. * `DHCP` - The IP address is assigned using DHCP, if available. * `Static` - Static IPv4 address is assigned to the iSCSI boot interface based on the information entered in this area. * `Pool` - An IPv4 address is assigned to the iSCSI boot interface from the management IP address pool. InitiatorIpSource *string `json:"InitiatorIpSource,omitempty"` // Static IP address provided for iSCSI Initiator. - InitiatorStaticIpV4Address *string `json:"InitiatorStaticIpV4Address,omitempty"` + InitiatorStaticIpV4Address *string `json:"InitiatorStaticIpV4Address,omitempty" validate:"regexp=^$|^([1-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\\\.([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\\\.([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\\\.([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])$"` InitiatorStaticIpV4Config NullableIppoolIpV4Config `json:"InitiatorStaticIpV4Config,omitempty"` MutualChap NullableVnicIscsiAuthProfile `json:"MutualChap,omitempty"` // Source Type of Targets - Auto/Static. * `Static` - Type indicates that static target interface is assigned to iSCSI boot. * `Auto` - Type indicates that the system selects the target interface automatically during iSCSI boot. @@ -96,6 +96,11 @@ func (o *VnicIscsiBootPolicyInventory) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "vnic.IscsiBootPolicyInventory" of the ClassId field. +func (o *VnicIscsiBootPolicyInventory) GetDefaultClassId() interface{} { + return "vnic.IscsiBootPolicyInventory" +} + // GetObjectType returns the ObjectType field value func (o *VnicIscsiBootPolicyInventory) GetObjectType() string { if o == nil { @@ -120,6 +125,11 @@ func (o *VnicIscsiBootPolicyInventory) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "vnic.IscsiBootPolicyInventory" of the ObjectType field. +func (o *VnicIscsiBootPolicyInventory) GetDefaultObjectType() interface{} { + return "vnic.IscsiBootPolicyInventory" +} + // GetAutoTargetvendorName returns the AutoTargetvendorName field value if set, zero value otherwise. func (o *VnicIscsiBootPolicyInventory) GetAutoTargetvendorName() string { if o == nil || IsNil(o.AutoTargetvendorName) { @@ -610,7 +620,13 @@ func (o VnicIscsiBootPolicyInventory) ToMap() (map[string]interface{}, error) { if errPolicyAbstractPolicyInventory != nil { return map[string]interface{}{}, errPolicyAbstractPolicyInventory } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.AutoTargetvendorName) { toSerialize["AutoTargetvendorName"] = o.AutoTargetvendorName @@ -665,6 +681,13 @@ func (o *VnicIscsiBootPolicyInventory) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -674,11 +697,23 @@ func (o *VnicIscsiBootPolicyInventory) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type VnicIscsiBootPolicyInventoryWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` @@ -690,7 +725,7 @@ func (o *VnicIscsiBootPolicyInventory) UnmarshalJSON(data []byte) (err error) { // Source Type of Initiator IP Address - Auto/Static/Pool. * `DHCP` - The IP address is assigned using DHCP, if available. * `Static` - Static IPv4 address is assigned to the iSCSI boot interface based on the information entered in this area. * `Pool` - An IPv4 address is assigned to the iSCSI boot interface from the management IP address pool. InitiatorIpSource *string `json:"InitiatorIpSource,omitempty"` // Static IP address provided for iSCSI Initiator. - InitiatorStaticIpV4Address *string `json:"InitiatorStaticIpV4Address,omitempty"` + InitiatorStaticIpV4Address *string `json:"InitiatorStaticIpV4Address,omitempty" validate:"regexp=^$|^([1-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\\\.([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\\\.([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\\\.([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])$"` InitiatorStaticIpV4Config NullableIppoolIpV4Config `json:"InitiatorStaticIpV4Config,omitempty"` MutualChap NullableVnicIscsiAuthProfile `json:"MutualChap,omitempty"` // Source Type of Targets - Auto/Static. * `Static` - Type indicates that static target interface is assigned to iSCSI boot. * `Auto` - Type indicates that the system selects the target interface automatically during iSCSI boot. diff --git a/model_vnic_iscsi_boot_policy_inventory_list.go b/model_vnic_iscsi_boot_policy_inventory_list.go index 7222111ae3..cb598ee56a 100644 --- a/model_vnic_iscsi_boot_policy_inventory_list.go +++ b/model_vnic_iscsi_boot_policy_inventory_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *VnicIscsiBootPolicyInventoryList) GetResultsOk() ([]VnicIscsiBootPolicy // HasResults returns a boolean if a field has been set. func (o *VnicIscsiBootPolicyInventoryList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *VnicIscsiBootPolicyInventoryList) UnmarshalJSON(data []byte) (err error "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *VnicIscsiBootPolicyInventoryList) UnmarshalJSON(data []byte) (err error } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type VnicIscsiBootPolicyInventoryListWithoutEmbeddedStruct struct { // The total number of 'vnic.IscsiBootPolicyInventory' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_vnic_iscsi_boot_policy_inventory_relationship.go b/model_vnic_iscsi_boot_policy_inventory_relationship.go index 64f7356020..277d0eba8e 100644 --- a/model_vnic_iscsi_boot_policy_inventory_relationship.go +++ b/model_vnic_iscsi_boot_policy_inventory_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_vnic_iscsi_boot_policy_inventory_response.go b/model_vnic_iscsi_boot_policy_inventory_response.go index 760ee9256f..b19b040334 100644 --- a/model_vnic_iscsi_boot_policy_inventory_response.go +++ b/model_vnic_iscsi_boot_policy_inventory_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_vnic_iscsi_boot_policy_list.go b/model_vnic_iscsi_boot_policy_list.go index cb2a9b1ab2..a091ee13ce 100644 --- a/model_vnic_iscsi_boot_policy_list.go +++ b/model_vnic_iscsi_boot_policy_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *VnicIscsiBootPolicyList) GetResultsOk() ([]VnicIscsiBootPolicy, bool) { // HasResults returns a boolean if a field has been set. func (o *VnicIscsiBootPolicyList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *VnicIscsiBootPolicyList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *VnicIscsiBootPolicyList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type VnicIscsiBootPolicyListWithoutEmbeddedStruct struct { // The total number of 'vnic.IscsiBootPolicy' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_vnic_iscsi_boot_policy_relationship.go b/model_vnic_iscsi_boot_policy_relationship.go index 6a19692b38..b59160dab9 100644 --- a/model_vnic_iscsi_boot_policy_relationship.go +++ b/model_vnic_iscsi_boot_policy_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_vnic_iscsi_boot_policy_response.go b/model_vnic_iscsi_boot_policy_response.go index 67497c22da..4958cab359 100644 --- a/model_vnic_iscsi_boot_policy_response.go +++ b/model_vnic_iscsi_boot_policy_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_vnic_iscsi_static_target_policy.go b/model_vnic_iscsi_static_target_policy.go index 646e1655da..cdbb109047 100644 --- a/model_vnic_iscsi_static_target_policy.go +++ b/model_vnic_iscsi_static_target_policy.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -29,12 +29,12 @@ type VnicIscsiStaticTargetPolicy struct { // The fully-qualified name of the instantiated, concrete type. The value should be the same as the 'ClassId' property. ObjectType string `json:"ObjectType"` // The IPv4 address assigned to the iSCSI target. - IpAddress *string `json:"IpAddress,omitempty"` + IpAddress *string `json:"IpAddress,omitempty" validate:"regexp=^$|^(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\\\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\\\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\\\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$"` Lun NullableVnicLun `json:"Lun,omitempty"` // The port associated with the iSCSI target. Port *int64 `json:"Port,omitempty"` // Qualified Name (IQN) or Extended Unique Identifier (EUI) name of the iSCSI target. - TargetName *string `json:"TargetName,omitempty"` + TargetName *string `json:"TargetName,omitempty" validate:"regexp=^$|^(?:iqn\\\\.[0-9]{4}-[0-9]{2}(?:\\\\.[A-Za-z](?:[A-Za-z0-9\\\\-]*[A-Za-z0-9])?)+(?::.*)?|eui\\\\.[0-9A-Fa-f]{16})"` Organization NullableOrganizationOrganizationRelationship `json:"Organization,omitempty"` AdditionalProperties map[string]interface{} } @@ -88,6 +88,11 @@ func (o *VnicIscsiStaticTargetPolicy) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "vnic.IscsiStaticTargetPolicy" of the ClassId field. +func (o *VnicIscsiStaticTargetPolicy) GetDefaultClassId() interface{} { + return "vnic.IscsiStaticTargetPolicy" +} + // GetObjectType returns the ObjectType field value func (o *VnicIscsiStaticTargetPolicy) GetObjectType() string { if o == nil { @@ -112,6 +117,11 @@ func (o *VnicIscsiStaticTargetPolicy) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "vnic.IscsiStaticTargetPolicy" of the ObjectType field. +func (o *VnicIscsiStaticTargetPolicy) GetDefaultObjectType() interface{} { + return "vnic.IscsiStaticTargetPolicy" +} + // GetIpAddress returns the IpAddress field value if set, zero value otherwise. func (o *VnicIscsiStaticTargetPolicy) GetIpAddress() string { if o == nil || IsNil(o.IpAddress) { @@ -312,7 +322,13 @@ func (o VnicIscsiStaticTargetPolicy) ToMap() (map[string]interface{}, error) { if errPolicyAbstractPolicy != nil { return map[string]interface{}{}, errPolicyAbstractPolicy } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.IpAddress) { toSerialize["IpAddress"] = o.IpAddress @@ -346,6 +362,13 @@ func (o *VnicIscsiStaticTargetPolicy) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -355,23 +378,35 @@ func (o *VnicIscsiStaticTargetPolicy) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type VnicIscsiStaticTargetPolicyWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` // The fully-qualified name of the instantiated, concrete type. The value should be the same as the 'ClassId' property. ObjectType string `json:"ObjectType"` // The IPv4 address assigned to the iSCSI target. - IpAddress *string `json:"IpAddress,omitempty"` + IpAddress *string `json:"IpAddress,omitempty" validate:"regexp=^$|^(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\\\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\\\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\\\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$"` Lun NullableVnicLun `json:"Lun,omitempty"` // The port associated with the iSCSI target. Port *int64 `json:"Port,omitempty"` // Qualified Name (IQN) or Extended Unique Identifier (EUI) name of the iSCSI target. - TargetName *string `json:"TargetName,omitempty"` + TargetName *string `json:"TargetName,omitempty" validate:"regexp=^$|^(?:iqn\\\\.[0-9]{4}-[0-9]{2}(?:\\\\.[A-Za-z](?:[A-Za-z0-9\\\\-]*[A-Za-z0-9])?)+(?::.*)?|eui\\\\.[0-9A-Fa-f]{16})"` Organization NullableOrganizationOrganizationRelationship `json:"Organization,omitempty"` } diff --git a/model_vnic_iscsi_static_target_policy_inventory.go b/model_vnic_iscsi_static_target_policy_inventory.go index 5b11bdea09..44a18d832d 100644 --- a/model_vnic_iscsi_static_target_policy_inventory.go +++ b/model_vnic_iscsi_static_target_policy_inventory.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -29,12 +29,12 @@ type VnicIscsiStaticTargetPolicyInventory struct { // The fully-qualified name of the instantiated, concrete type. The value should be the same as the 'ClassId' property. ObjectType string `json:"ObjectType"` // The IPv4 address assigned to the iSCSI target. - IpAddress *string `json:"IpAddress,omitempty"` + IpAddress *string `json:"IpAddress,omitempty" validate:"regexp=^$|^(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\\\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\\\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\\\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$"` Lun NullableVnicLun `json:"Lun,omitempty"` // The port associated with the iSCSI target. Port *int64 `json:"Port,omitempty"` // Qualified Name (IQN) or Extended Unique Identifier (EUI) name of the iSCSI target. - TargetName *string `json:"TargetName,omitempty"` + TargetName *string `json:"TargetName,omitempty" validate:"regexp=^$|^(?:iqn\\\\.[0-9]{4}-[0-9]{2}(?:\\\\.[A-Za-z](?:[A-Za-z0-9\\\\-]*[A-Za-z0-9])?)+(?::.*)?|eui\\\\.[0-9A-Fa-f]{16})"` TargetMo NullableMoBaseMoRelationship `json:"TargetMo,omitempty"` AdditionalProperties map[string]interface{} } @@ -88,6 +88,11 @@ func (o *VnicIscsiStaticTargetPolicyInventory) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "vnic.IscsiStaticTargetPolicyInventory" of the ClassId field. +func (o *VnicIscsiStaticTargetPolicyInventory) GetDefaultClassId() interface{} { + return "vnic.IscsiStaticTargetPolicyInventory" +} + // GetObjectType returns the ObjectType field value func (o *VnicIscsiStaticTargetPolicyInventory) GetObjectType() string { if o == nil { @@ -112,6 +117,11 @@ func (o *VnicIscsiStaticTargetPolicyInventory) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "vnic.IscsiStaticTargetPolicyInventory" of the ObjectType field. +func (o *VnicIscsiStaticTargetPolicyInventory) GetDefaultObjectType() interface{} { + return "vnic.IscsiStaticTargetPolicyInventory" +} + // GetIpAddress returns the IpAddress field value if set, zero value otherwise. func (o *VnicIscsiStaticTargetPolicyInventory) GetIpAddress() string { if o == nil || IsNil(o.IpAddress) { @@ -312,7 +322,13 @@ func (o VnicIscsiStaticTargetPolicyInventory) ToMap() (map[string]interface{}, e if errPolicyAbstractPolicyInventory != nil { return map[string]interface{}{}, errPolicyAbstractPolicyInventory } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.IpAddress) { toSerialize["IpAddress"] = o.IpAddress @@ -346,6 +362,13 @@ func (o *VnicIscsiStaticTargetPolicyInventory) UnmarshalJSON(data []byte) (err e "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -355,23 +378,35 @@ func (o *VnicIscsiStaticTargetPolicyInventory) UnmarshalJSON(data []byte) (err e } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type VnicIscsiStaticTargetPolicyInventoryWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` // The fully-qualified name of the instantiated, concrete type. The value should be the same as the 'ClassId' property. ObjectType string `json:"ObjectType"` // The IPv4 address assigned to the iSCSI target. - IpAddress *string `json:"IpAddress,omitempty"` + IpAddress *string `json:"IpAddress,omitempty" validate:"regexp=^$|^(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\\\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\\\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\\\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$"` Lun NullableVnicLun `json:"Lun,omitempty"` // The port associated with the iSCSI target. Port *int64 `json:"Port,omitempty"` // Qualified Name (IQN) or Extended Unique Identifier (EUI) name of the iSCSI target. - TargetName *string `json:"TargetName,omitempty"` + TargetName *string `json:"TargetName,omitempty" validate:"regexp=^$|^(?:iqn\\\\.[0-9]{4}-[0-9]{2}(?:\\\\.[A-Za-z](?:[A-Za-z0-9\\\\-]*[A-Za-z0-9])?)+(?::.*)?|eui\\\\.[0-9A-Fa-f]{16})"` TargetMo NullableMoBaseMoRelationship `json:"TargetMo,omitempty"` } diff --git a/model_vnic_iscsi_static_target_policy_inventory_list.go b/model_vnic_iscsi_static_target_policy_inventory_list.go index 9935ee7988..3bcc56a556 100644 --- a/model_vnic_iscsi_static_target_policy_inventory_list.go +++ b/model_vnic_iscsi_static_target_policy_inventory_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *VnicIscsiStaticTargetPolicyInventoryList) GetResultsOk() ([]VnicIscsiSt // HasResults returns a boolean if a field has been set. func (o *VnicIscsiStaticTargetPolicyInventoryList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *VnicIscsiStaticTargetPolicyInventoryList) UnmarshalJSON(data []byte) (e "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *VnicIscsiStaticTargetPolicyInventoryList) UnmarshalJSON(data []byte) (e } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type VnicIscsiStaticTargetPolicyInventoryListWithoutEmbeddedStruct struct { // The total number of 'vnic.IscsiStaticTargetPolicyInventory' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_vnic_iscsi_static_target_policy_inventory_relationship.go b/model_vnic_iscsi_static_target_policy_inventory_relationship.go index 4e7e2fda20..64e1c85b6b 100644 --- a/model_vnic_iscsi_static_target_policy_inventory_relationship.go +++ b/model_vnic_iscsi_static_target_policy_inventory_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_vnic_iscsi_static_target_policy_inventory_response.go b/model_vnic_iscsi_static_target_policy_inventory_response.go index bc2d76fea5..589a3447e5 100644 --- a/model_vnic_iscsi_static_target_policy_inventory_response.go +++ b/model_vnic_iscsi_static_target_policy_inventory_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_vnic_iscsi_static_target_policy_list.go b/model_vnic_iscsi_static_target_policy_list.go index 77de38627d..c23455c434 100644 --- a/model_vnic_iscsi_static_target_policy_list.go +++ b/model_vnic_iscsi_static_target_policy_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *VnicIscsiStaticTargetPolicyList) GetResultsOk() ([]VnicIscsiStaticTarge // HasResults returns a boolean if a field has been set. func (o *VnicIscsiStaticTargetPolicyList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *VnicIscsiStaticTargetPolicyList) UnmarshalJSON(data []byte) (err error) "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *VnicIscsiStaticTargetPolicyList) UnmarshalJSON(data []byte) (err error) } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type VnicIscsiStaticTargetPolicyListWithoutEmbeddedStruct struct { // The total number of 'vnic.IscsiStaticTargetPolicy' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_vnic_iscsi_static_target_policy_relationship.go b/model_vnic_iscsi_static_target_policy_relationship.go index d25397bec4..8f5103703c 100644 --- a/model_vnic_iscsi_static_target_policy_relationship.go +++ b/model_vnic_iscsi_static_target_policy_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_vnic_iscsi_static_target_policy_response.go b/model_vnic_iscsi_static_target_policy_response.go index 7c12d3d7aa..74c2775a7e 100644 --- a/model_vnic_iscsi_static_target_policy_response.go +++ b/model_vnic_iscsi_static_target_policy_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_vnic_lan_connectivity_policy.go b/model_vnic_lan_connectivity_policy.go index c3c43674eb..b895433157 100644 --- a/model_vnic_lan_connectivity_policy.go +++ b/model_vnic_lan_connectivity_policy.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -35,7 +35,7 @@ type VnicLanConnectivityPolicy struct { // The mode used for placement of vNICs on network adapters. It can either be Auto or Custom. * `custom` - The placement of the vNICs / vHBAs on network adapters is manually chosen by the user. * `auto` - The placement of the vNICs / vHBAs on network adapters is automatically determined by the system. PlacementMode *string `json:"PlacementMode,omitempty"` // User provided static iSCSI Qualified Name (IQN) for use as initiator identifiers by iSCSI vNICs in a Fabric Interconnect domain. - StaticIqnName *string `json:"StaticIqnName,omitempty"` + StaticIqnName *string `json:"StaticIqnName,omitempty" validate:"regexp=^$|^(?:iqn\\\\.[0-9]{4}-[0-9]{2}(?:\\\\.[A-Za-z](?:[A-Za-z0-9\\\\-]*[A-Za-z0-9])?)+(?::.*)?|eui\\\\.[0-9A-Fa-f]{16})"` // The platform for which the server profile is applicable. It can either be a server that is operating in standalone mode or which is attached to a Fabric Interconnect managed by Intersight. * `Standalone` - Servers which are operating in standalone mode i.e. not connected to a Fabric Interconnected. * `FIAttached` - Servers which are connected to a Fabric Interconnect that is managed by Intersight. // Deprecated TargetPlatform *string `json:"TargetPlatform,omitempty"` @@ -113,6 +113,11 @@ func (o *VnicLanConnectivityPolicy) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "vnic.LanConnectivityPolicy" of the ClassId field. +func (o *VnicLanConnectivityPolicy) GetDefaultClassId() interface{} { + return "vnic.LanConnectivityPolicy" +} + // GetObjectType returns the ObjectType field value func (o *VnicLanConnectivityPolicy) GetObjectType() string { if o == nil { @@ -137,6 +142,11 @@ func (o *VnicLanConnectivityPolicy) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "vnic.LanConnectivityPolicy" of the ObjectType field. +func (o *VnicLanConnectivityPolicy) GetDefaultObjectType() interface{} { + return "vnic.LanConnectivityPolicy" +} + // GetAzureQosEnabled returns the AzureQosEnabled field value if set, zero value otherwise. func (o *VnicLanConnectivityPolicy) GetAzureQosEnabled() bool { if o == nil || IsNil(o.AzureQosEnabled) { @@ -321,7 +331,7 @@ func (o *VnicLanConnectivityPolicy) GetEthIfsOk() ([]VnicEthIfRelationship, bool // HasEthIfs returns a boolean if a field has been set. func (o *VnicLanConnectivityPolicy) HasEthIfs() bool { - if o != nil && IsNil(o.EthIfs) { + if o != nil && !IsNil(o.EthIfs) { return true } @@ -440,7 +450,7 @@ func (o *VnicLanConnectivityPolicy) GetProfilesOk() ([]PolicyAbstractConfigProfi // HasProfiles returns a boolean if a field has been set. func (o *VnicLanConnectivityPolicy) HasProfiles() bool { - if o != nil && IsNil(o.Profiles) { + if o != nil && !IsNil(o.Profiles) { return true } @@ -470,7 +480,13 @@ func (o VnicLanConnectivityPolicy) ToMap() (map[string]interface{}, error) { if errPolicyAbstractPolicy != nil { return map[string]interface{}{}, errPolicyAbstractPolicy } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.AzureQosEnabled) { toSerialize["AzureQosEnabled"] = o.AzureQosEnabled @@ -516,6 +532,13 @@ func (o *VnicLanConnectivityPolicy) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -525,11 +548,23 @@ func (o *VnicLanConnectivityPolicy) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type VnicLanConnectivityPolicyWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` @@ -542,7 +577,7 @@ func (o *VnicLanConnectivityPolicy) UnmarshalJSON(data []byte) (err error) { // The mode used for placement of vNICs on network adapters. It can either be Auto or Custom. * `custom` - The placement of the vNICs / vHBAs on network adapters is manually chosen by the user. * `auto` - The placement of the vNICs / vHBAs on network adapters is automatically determined by the system. PlacementMode *string `json:"PlacementMode,omitempty"` // User provided static iSCSI Qualified Name (IQN) for use as initiator identifiers by iSCSI vNICs in a Fabric Interconnect domain. - StaticIqnName *string `json:"StaticIqnName,omitempty"` + StaticIqnName *string `json:"StaticIqnName,omitempty" validate:"regexp=^$|^(?:iqn\\\\.[0-9]{4}-[0-9]{2}(?:\\\\.[A-Za-z](?:[A-Za-z0-9\\\\-]*[A-Za-z0-9])?)+(?::.*)?|eui\\\\.[0-9A-Fa-f]{16})"` // The platform for which the server profile is applicable. It can either be a server that is operating in standalone mode or which is attached to a Fabric Interconnect managed by Intersight. * `Standalone` - Servers which are operating in standalone mode i.e. not connected to a Fabric Interconnected. * `FIAttached` - Servers which are connected to a Fabric Interconnect that is managed by Intersight. // Deprecated TargetPlatform *string `json:"TargetPlatform,omitempty"` diff --git a/model_vnic_lan_connectivity_policy_inventory.go b/model_vnic_lan_connectivity_policy_inventory.go index 6839d23083..fe07798623 100644 --- a/model_vnic_lan_connectivity_policy_inventory.go +++ b/model_vnic_lan_connectivity_policy_inventory.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -35,7 +35,7 @@ type VnicLanConnectivityPolicyInventory struct { // The mode used for placement of vNICs on network adapters. It can either be Auto or Custom. * `custom` - The placement of the vNICs / vHBAs on network adapters is manually chosen by the user. * `auto` - The placement of the vNICs / vHBAs on network adapters is automatically determined by the system. PlacementMode *string `json:"PlacementMode,omitempty"` // User provided static iSCSI Qualified Name (IQN) for use as initiator identifiers by iSCSI vNICs in a Fabric Interconnect domain. - StaticIqnName *string `json:"StaticIqnName,omitempty"` + StaticIqnName *string `json:"StaticIqnName,omitempty" validate:"regexp=^$|^(?:iqn\\\\.[0-9]{4}-[0-9]{2}(?:\\\\.[A-Za-z](?:[A-Za-z0-9\\\\-]*[A-Za-z0-9])?)+(?::.*)?|eui\\\\.[0-9A-Fa-f]{16})"` // The platform for which the server profile is applicable. It can either be a server that is operating in standalone mode or which is attached to a Fabric Interconnect managed by Intersight. * `Standalone` - Servers which are operating in standalone mode i.e. not connected to a Fabric Interconnected. * `FIAttached` - Servers which are connected to a Fabric Interconnect that is managed by Intersight. // Deprecated TargetPlatform *string `json:"TargetPlatform,omitempty"` @@ -95,6 +95,11 @@ func (o *VnicLanConnectivityPolicyInventory) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "vnic.LanConnectivityPolicyInventory" of the ClassId field. +func (o *VnicLanConnectivityPolicyInventory) GetDefaultClassId() interface{} { + return "vnic.LanConnectivityPolicyInventory" +} + // GetObjectType returns the ObjectType field value func (o *VnicLanConnectivityPolicyInventory) GetObjectType() string { if o == nil { @@ -119,6 +124,11 @@ func (o *VnicLanConnectivityPolicyInventory) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "vnic.LanConnectivityPolicyInventory" of the ObjectType field. +func (o *VnicLanConnectivityPolicyInventory) GetDefaultObjectType() interface{} { + return "vnic.LanConnectivityPolicyInventory" +} + // GetAzureQosEnabled returns the AzureQosEnabled field value if set, zero value otherwise. func (o *VnicLanConnectivityPolicyInventory) GetAzureQosEnabled() bool { if o == nil || IsNil(o.AzureQosEnabled) { @@ -303,7 +313,7 @@ func (o *VnicLanConnectivityPolicyInventory) GetEthIfsOk() ([]VnicEthIfInventory // HasEthIfs returns a boolean if a field has been set. func (o *VnicLanConnectivityPolicyInventory) HasEthIfs() bool { - if o != nil && IsNil(o.EthIfs) { + if o != nil && !IsNil(o.EthIfs) { return true } @@ -419,7 +429,13 @@ func (o VnicLanConnectivityPolicyInventory) ToMap() (map[string]interface{}, err if errPolicyAbstractPolicyInventory != nil { return map[string]interface{}{}, errPolicyAbstractPolicyInventory } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.AzureQosEnabled) { toSerialize["AzureQosEnabled"] = o.AzureQosEnabled @@ -462,6 +478,13 @@ func (o *VnicLanConnectivityPolicyInventory) UnmarshalJSON(data []byte) (err err "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -471,11 +494,23 @@ func (o *VnicLanConnectivityPolicyInventory) UnmarshalJSON(data []byte) (err err } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type VnicLanConnectivityPolicyInventoryWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` @@ -488,7 +523,7 @@ func (o *VnicLanConnectivityPolicyInventory) UnmarshalJSON(data []byte) (err err // The mode used for placement of vNICs on network adapters. It can either be Auto or Custom. * `custom` - The placement of the vNICs / vHBAs on network adapters is manually chosen by the user. * `auto` - The placement of the vNICs / vHBAs on network adapters is automatically determined by the system. PlacementMode *string `json:"PlacementMode,omitempty"` // User provided static iSCSI Qualified Name (IQN) for use as initiator identifiers by iSCSI vNICs in a Fabric Interconnect domain. - StaticIqnName *string `json:"StaticIqnName,omitempty"` + StaticIqnName *string `json:"StaticIqnName,omitempty" validate:"regexp=^$|^(?:iqn\\\\.[0-9]{4}-[0-9]{2}(?:\\\\.[A-Za-z](?:[A-Za-z0-9\\\\-]*[A-Za-z0-9])?)+(?::.*)?|eui\\\\.[0-9A-Fa-f]{16})"` // The platform for which the server profile is applicable. It can either be a server that is operating in standalone mode or which is attached to a Fabric Interconnect managed by Intersight. * `Standalone` - Servers which are operating in standalone mode i.e. not connected to a Fabric Interconnected. * `FIAttached` - Servers which are connected to a Fabric Interconnect that is managed by Intersight. // Deprecated TargetPlatform *string `json:"TargetPlatform,omitempty"` diff --git a/model_vnic_lan_connectivity_policy_inventory_list.go b/model_vnic_lan_connectivity_policy_inventory_list.go index 4000e8ada0..02825fafff 100644 --- a/model_vnic_lan_connectivity_policy_inventory_list.go +++ b/model_vnic_lan_connectivity_policy_inventory_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *VnicLanConnectivityPolicyInventoryList) GetResultsOk() ([]VnicLanConnec // HasResults returns a boolean if a field has been set. func (o *VnicLanConnectivityPolicyInventoryList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *VnicLanConnectivityPolicyInventoryList) UnmarshalJSON(data []byte) (err "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *VnicLanConnectivityPolicyInventoryList) UnmarshalJSON(data []byte) (err } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type VnicLanConnectivityPolicyInventoryListWithoutEmbeddedStruct struct { // The total number of 'vnic.LanConnectivityPolicyInventory' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_vnic_lan_connectivity_policy_inventory_relationship.go b/model_vnic_lan_connectivity_policy_inventory_relationship.go index fdb2d26343..cb9d45db6f 100644 --- a/model_vnic_lan_connectivity_policy_inventory_relationship.go +++ b/model_vnic_lan_connectivity_policy_inventory_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_vnic_lan_connectivity_policy_inventory_response.go b/model_vnic_lan_connectivity_policy_inventory_response.go index e3e757a32b..e962c9b65e 100644 --- a/model_vnic_lan_connectivity_policy_inventory_response.go +++ b/model_vnic_lan_connectivity_policy_inventory_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_vnic_lan_connectivity_policy_list.go b/model_vnic_lan_connectivity_policy_list.go index da5b945eac..1d9faab831 100644 --- a/model_vnic_lan_connectivity_policy_list.go +++ b/model_vnic_lan_connectivity_policy_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *VnicLanConnectivityPolicyList) GetResultsOk() ([]VnicLanConnectivityPol // HasResults returns a boolean if a field has been set. func (o *VnicLanConnectivityPolicyList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *VnicLanConnectivityPolicyList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *VnicLanConnectivityPolicyList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type VnicLanConnectivityPolicyListWithoutEmbeddedStruct struct { // The total number of 'vnic.LanConnectivityPolicy' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_vnic_lan_connectivity_policy_relationship.go b/model_vnic_lan_connectivity_policy_relationship.go index e2d6dab728..ad102016cc 100644 --- a/model_vnic_lan_connectivity_policy_relationship.go +++ b/model_vnic_lan_connectivity_policy_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_vnic_lan_connectivity_policy_response.go b/model_vnic_lan_connectivity_policy_response.go index b4deac6439..87ff3a91a5 100644 --- a/model_vnic_lan_connectivity_policy_response.go +++ b/model_vnic_lan_connectivity_policy_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_vnic_lcp_status.go b/model_vnic_lcp_status.go index d01f74614d..19924d5879 100644 --- a/model_vnic_lcp_status.go +++ b/model_vnic_lcp_status.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -90,6 +90,11 @@ func (o *VnicLcpStatus) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "vnic.LcpStatus" of the ClassId field. +func (o *VnicLcpStatus) GetDefaultClassId() interface{} { + return "vnic.LcpStatus" +} + // GetObjectType returns the ObjectType field value func (o *VnicLcpStatus) GetObjectType() string { if o == nil { @@ -114,6 +119,11 @@ func (o *VnicLcpStatus) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "vnic.LcpStatus" of the ObjectType field. +func (o *VnicLcpStatus) GetDefaultObjectType() interface{} { + return "vnic.LcpStatus" +} + // GetReason returns the Reason field value if set, zero value otherwise. func (o *VnicLcpStatus) GetReason() string { if o == nil || IsNil(o.Reason) { @@ -199,7 +209,7 @@ func (o *VnicLcpStatus) GetVnicInfoOk() ([]VnicVifStatus, bool) { // HasVnicInfo returns a boolean if a field has been set. func (o *VnicLcpStatus) HasVnicInfo() bool { - if o != nil && IsNil(o.VnicInfo) { + if o != nil && !IsNil(o.VnicInfo) { return true } @@ -272,7 +282,13 @@ func (o VnicLcpStatus) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Reason) { toSerialize["Reason"] = o.Reason @@ -303,6 +319,13 @@ func (o *VnicLcpStatus) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -312,11 +335,23 @@ func (o *VnicLcpStatus) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type VnicLcpStatusWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_vnic_lcp_status_list.go b/model_vnic_lcp_status_list.go index 69b0e4d4dc..d5463fc446 100644 --- a/model_vnic_lcp_status_list.go +++ b/model_vnic_lcp_status_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *VnicLcpStatusList) GetResultsOk() ([]VnicLcpStatus, bool) { // HasResults returns a boolean if a field has been set. func (o *VnicLcpStatusList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *VnicLcpStatusList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *VnicLcpStatusList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type VnicLcpStatusListWithoutEmbeddedStruct struct { // The total number of 'vnic.LcpStatus' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_vnic_lcp_status_response.go b/model_vnic_lcp_status_response.go index d9be9257b9..59d6d06ce0 100644 --- a/model_vnic_lcp_status_response.go +++ b/model_vnic_lcp_status_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_vnic_lun.go b/model_vnic_lun.go index 68b2c65daa..14d345964f 100644 --- a/model_vnic_lun.go +++ b/model_vnic_lun.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -84,6 +84,11 @@ func (o *VnicLun) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "vnic.Lun" of the ClassId field. +func (o *VnicLun) GetDefaultClassId() interface{} { + return "vnic.Lun" +} + // GetObjectType returns the ObjectType field value func (o *VnicLun) GetObjectType() string { if o == nil { @@ -108,6 +113,11 @@ func (o *VnicLun) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "vnic.Lun" of the ObjectType field. +func (o *VnicLun) GetDefaultObjectType() interface{} { + return "vnic.Lun" +} + // GetBootable returns the Bootable field value if set, zero value otherwise. func (o *VnicLun) GetBootable() bool { if o == nil || IsNil(o.Bootable) { @@ -190,7 +200,13 @@ func (o VnicLun) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Bootable) { toSerialize["Bootable"] = o.Bootable @@ -215,6 +231,13 @@ func (o *VnicLun) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -224,11 +247,23 @@ func (o *VnicLun) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type VnicLunWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_vnic_nvgre_settings.go b/model_vnic_nvgre_settings.go index f0ecab3efb..3d2c35ca53 100644 --- a/model_vnic_nvgre_settings.go +++ b/model_vnic_nvgre_settings.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -86,6 +86,11 @@ func (o *VnicNvgreSettings) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "vnic.NvgreSettings" of the ClassId field. +func (o *VnicNvgreSettings) GetDefaultClassId() interface{} { + return "vnic.NvgreSettings" +} + // GetObjectType returns the ObjectType field value func (o *VnicNvgreSettings) GetObjectType() string { if o == nil { @@ -110,6 +115,11 @@ func (o *VnicNvgreSettings) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "vnic.NvgreSettings" of the ObjectType field. +func (o *VnicNvgreSettings) GetDefaultObjectType() interface{} { + return "vnic.NvgreSettings" +} + // GetEnabled returns the Enabled field value if set, zero value otherwise. func (o *VnicNvgreSettings) GetEnabled() bool { if o == nil || IsNil(o.Enabled) { @@ -160,7 +170,13 @@ func (o VnicNvgreSettings) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Enabled) { toSerialize["Enabled"] = o.Enabled @@ -182,6 +198,13 @@ func (o *VnicNvgreSettings) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -191,11 +214,23 @@ func (o *VnicNvgreSettings) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type VnicNvgreSettingsWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_vnic_placement_settings.go b/model_vnic_placement_settings.go index 313333aec2..21193eff71 100644 --- a/model_vnic_placement_settings.go +++ b/model_vnic_placement_settings.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -33,7 +33,7 @@ type VnicPlacementSettings struct { // Enable or disable automatic assignment of the VIC slot ID. If enabled and the server has only one VIC, the same VIC is chosen for all the vNICs. If enabled and the server has multiple VICs, the vNIC/vHBA are deployed on the first VIC. The Slot ID determines the first VIC. MLOM is the first Slot ID and the ID increments to 2, 3, and so on. AutoSlotId *bool `json:"AutoSlotId,omitempty"` // PCIe Slot where the VIC adapter is installed. Supported values are (1-15) and MLOM. - Id *string `json:"Id,omitempty"` + Id *string `json:"Id,omitempty" validate:"regexp=^$|^([1-9]|1[0-5]|MLOM)$"` // The PCI Link used as transport for the virtual interface. PCI Link is only applicable for select Cisco UCS VIC 1300 models (UCSC-PCIE-C40Q-03, UCSB-MLOM-40G-03, UCSB-VIC-M83-8P) that support two PCI links. The value, if specified, for any other VIC model will be ignored. PciLink *int64 `json:"PciLink,omitempty"` // If the autoPciLink is disabled, the user can either choose to place the vNICs manually or based on a policy.If the autoPciLink is enabled, it will be set to None. * `Custom` - The user needs to specify the PCI Link manually. * `Load-Balanced` - The system will uniformly distribute the interfaces across the PCI Links. * `None` - Assignment is not applicable and will be set when the AutoPciLink is set to true. @@ -114,6 +114,11 @@ func (o *VnicPlacementSettings) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "vnic.PlacementSettings" of the ClassId field. +func (o *VnicPlacementSettings) GetDefaultClassId() interface{} { + return "vnic.PlacementSettings" +} + // GetObjectType returns the ObjectType field value func (o *VnicPlacementSettings) GetObjectType() string { if o == nil { @@ -138,6 +143,11 @@ func (o *VnicPlacementSettings) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "vnic.PlacementSettings" of the ObjectType field. +func (o *VnicPlacementSettings) GetDefaultObjectType() interface{} { + return "vnic.PlacementSettings" +} + // GetAutoPciLink returns the AutoPciLink field value if set, zero value otherwise. func (o *VnicPlacementSettings) GetAutoPciLink() bool { if o == nil || IsNil(o.AutoPciLink) { @@ -380,7 +390,13 @@ func (o VnicPlacementSettings) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.AutoPciLink) { toSerialize["AutoPciLink"] = o.AutoPciLink @@ -420,6 +436,13 @@ func (o *VnicPlacementSettings) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -429,11 +452,23 @@ func (o *VnicPlacementSettings) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type VnicPlacementSettingsWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` @@ -444,7 +479,7 @@ func (o *VnicPlacementSettings) UnmarshalJSON(data []byte) (err error) { // Enable or disable automatic assignment of the VIC slot ID. If enabled and the server has only one VIC, the same VIC is chosen for all the vNICs. If enabled and the server has multiple VICs, the vNIC/vHBA are deployed on the first VIC. The Slot ID determines the first VIC. MLOM is the first Slot ID and the ID increments to 2, 3, and so on. AutoSlotId *bool `json:"AutoSlotId,omitempty"` // PCIe Slot where the VIC adapter is installed. Supported values are (1-15) and MLOM. - Id *string `json:"Id,omitempty"` + Id *string `json:"Id,omitempty" validate:"regexp=^$|^([1-9]|1[0-5]|MLOM)$"` // The PCI Link used as transport for the virtual interface. PCI Link is only applicable for select Cisco UCS VIC 1300 models (UCSC-PCIE-C40Q-03, UCSB-MLOM-40G-03, UCSB-VIC-M83-8P) that support two PCI links. The value, if specified, for any other VIC model will be ignored. PciLink *int64 `json:"PciLink,omitempty"` // If the autoPciLink is disabled, the user can either choose to place the vNICs manually or based on a policy.If the autoPciLink is enabled, it will be set to None. * `Custom` - The user needs to specify the PCI Link manually. * `Load-Balanced` - The system will uniformly distribute the interfaces across the PCI Links. * `None` - Assignment is not applicable and will be set when the AutoPciLink is set to true. diff --git a/model_vnic_plogi_settings.go b/model_vnic_plogi_settings.go index 113e1539c5..1b2704b317 100644 --- a/model_vnic_plogi_settings.go +++ b/model_vnic_plogi_settings.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -92,6 +92,11 @@ func (o *VnicPlogiSettings) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "vnic.PlogiSettings" of the ClassId field. +func (o *VnicPlogiSettings) GetDefaultClassId() interface{} { + return "vnic.PlogiSettings" +} + // GetObjectType returns the ObjectType field value func (o *VnicPlogiSettings) GetObjectType() string { if o == nil { @@ -116,6 +121,11 @@ func (o *VnicPlogiSettings) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "vnic.PlogiSettings" of the ObjectType field. +func (o *VnicPlogiSettings) GetDefaultObjectType() interface{} { + return "vnic.PlogiSettings" +} + // GetRetries returns the Retries field value if set, zero value otherwise. func (o *VnicPlogiSettings) GetRetries() int64 { if o == nil || IsNil(o.Retries) { @@ -198,7 +208,13 @@ func (o VnicPlogiSettings) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Retries) { toSerialize["Retries"] = o.Retries @@ -223,6 +239,13 @@ func (o *VnicPlogiSettings) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -232,11 +255,23 @@ func (o *VnicPlogiSettings) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type VnicPlogiSettingsWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_vnic_ptp_settings.go b/model_vnic_ptp_settings.go index b185b383b1..ddcb1c4fa3 100644 --- a/model_vnic_ptp_settings.go +++ b/model_vnic_ptp_settings.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -86,6 +86,11 @@ func (o *VnicPtpSettings) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "vnic.PtpSettings" of the ClassId field. +func (o *VnicPtpSettings) GetDefaultClassId() interface{} { + return "vnic.PtpSettings" +} + // GetObjectType returns the ObjectType field value func (o *VnicPtpSettings) GetObjectType() string { if o == nil { @@ -110,6 +115,11 @@ func (o *VnicPtpSettings) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "vnic.PtpSettings" of the ObjectType field. +func (o *VnicPtpSettings) GetDefaultObjectType() interface{} { + return "vnic.PtpSettings" +} + // GetEnabled returns the Enabled field value if set, zero value otherwise. func (o *VnicPtpSettings) GetEnabled() bool { if o == nil || IsNil(o.Enabled) { @@ -160,7 +170,13 @@ func (o VnicPtpSettings) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Enabled) { toSerialize["Enabled"] = o.Enabled @@ -182,6 +198,13 @@ func (o *VnicPtpSettings) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -191,11 +214,23 @@ func (o *VnicPtpSettings) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type VnicPtpSettingsWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_vnic_roce_settings.go b/model_vnic_roce_settings.go index ff0bd6d0a8..74a3b0cba8 100644 --- a/model_vnic_roce_settings.go +++ b/model_vnic_roce_settings.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -112,6 +112,11 @@ func (o *VnicRoceSettings) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "vnic.RoceSettings" of the ClassId field. +func (o *VnicRoceSettings) GetDefaultClassId() interface{} { + return "vnic.RoceSettings" +} + // GetObjectType returns the ObjectType field value func (o *VnicRoceSettings) GetObjectType() string { if o == nil { @@ -136,6 +141,11 @@ func (o *VnicRoceSettings) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "vnic.RoceSettings" of the ObjectType field. +func (o *VnicRoceSettings) GetDefaultObjectType() interface{} { + return "vnic.RoceSettings" +} + // GetClassOfService returns the ClassOfService field value if set, zero value otherwise. func (o *VnicRoceSettings) GetClassOfService() int32 { if o == nil || IsNil(o.ClassOfService) { @@ -346,7 +356,13 @@ func (o VnicRoceSettings) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.ClassOfService) { toSerialize["ClassOfService"] = o.ClassOfService @@ -383,6 +399,13 @@ func (o *VnicRoceSettings) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -392,11 +415,23 @@ func (o *VnicRoceSettings) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type VnicRoceSettingsWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_vnic_rss_hash_settings.go b/model_vnic_rss_hash_settings.go index 02ebeef1bd..4cb2cb17e8 100644 --- a/model_vnic_rss_hash_settings.go +++ b/model_vnic_rss_hash_settings.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -128,6 +128,11 @@ func (o *VnicRssHashSettings) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "vnic.RssHashSettings" of the ClassId field. +func (o *VnicRssHashSettings) GetDefaultClassId() interface{} { + return "vnic.RssHashSettings" +} + // GetObjectType returns the ObjectType field value func (o *VnicRssHashSettings) GetObjectType() string { if o == nil { @@ -152,6 +157,11 @@ func (o *VnicRssHashSettings) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "vnic.RssHashSettings" of the ObjectType field. +func (o *VnicRssHashSettings) GetDefaultObjectType() interface{} { + return "vnic.RssHashSettings" +} + // GetIpv4Hash returns the Ipv4Hash field value if set, zero value otherwise. func (o *VnicRssHashSettings) GetIpv4Hash() bool { if o == nil || IsNil(o.Ipv4Hash) { @@ -426,7 +436,13 @@ func (o VnicRssHashSettings) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Ipv4Hash) { toSerialize["Ipv4Hash"] = o.Ipv4Hash @@ -469,6 +485,13 @@ func (o *VnicRssHashSettings) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -478,11 +501,23 @@ func (o *VnicRssHashSettings) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type VnicRssHashSettingsWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_vnic_san_connectivity_policy.go b/model_vnic_san_connectivity_policy.go index e8c418c3ba..ec60b57f8b 100644 --- a/model_vnic_san_connectivity_policy.go +++ b/model_vnic_san_connectivity_policy.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -31,7 +31,7 @@ type VnicSanConnectivityPolicy struct { // The mode used for placement of vNICs on network adapters. It can either be Auto or Custom. * `custom` - The placement of the vNICs / vHBAs on network adapters is manually chosen by the user. * `auto` - The placement of the vNICs / vHBAs on network adapters is automatically determined by the system. PlacementMode *string `json:"PlacementMode,omitempty"` // The WWNN address for the server node must be in hexadecimal format xx:xx:xx:xx:xx:xx:xx:xx. Allowed ranges are 20:00:00:00:00:00:00:00 to 20:FF:FF:FF:FF:FF:FF:FF or from 50:00:00:00:00:00:00:00 to 5F:FF:FF:FF:FF:FF:FF:FF. To ensure uniqueness of WWN's in the SAN fabric, you are strongly encouraged to use the WWN prefix - 20:00:00:25:B5:xx:xx:xx. - StaticWwnnAddress *string `json:"StaticWwnnAddress,omitempty"` + StaticWwnnAddress *string `json:"StaticWwnnAddress,omitempty" validate:"regexp=^$|((^20|5[0-9a-fA-F]{1}):([0-9a-fA-F]{2}:){6}([0-9a-fA-F]{2})$)"` // The platform for which the server profile is applicable. It can either be a server that is operating in standalone mode or which is attached to a Fabric Interconnect managed by Intersight. * `Standalone` - Servers which are operating in standalone mode i.e. not connected to a Fabric Interconnected. * `FIAttached` - Servers which are connected to a Fabric Interconnect that is managed by Intersight. TargetPlatform *string `json:"TargetPlatform,omitempty"` // Type of allocation selected to assign a WWNN address for the server node. * `POOL` - The user selects a pool from which the mac/wwn address will be leased for the Virtual Interface. * `STATIC` - The user assigns a static mac/wwn address for the Virtual Interface. @@ -106,6 +106,11 @@ func (o *VnicSanConnectivityPolicy) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "vnic.SanConnectivityPolicy" of the ClassId field. +func (o *VnicSanConnectivityPolicy) GetDefaultClassId() interface{} { + return "vnic.SanConnectivityPolicy" +} + // GetObjectType returns the ObjectType field value func (o *VnicSanConnectivityPolicy) GetObjectType() string { if o == nil { @@ -130,6 +135,11 @@ func (o *VnicSanConnectivityPolicy) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "vnic.SanConnectivityPolicy" of the ObjectType field. +func (o *VnicSanConnectivityPolicy) GetDefaultObjectType() interface{} { + return "vnic.SanConnectivityPolicy" +} + // GetPlacementMode returns the PlacementMode field value if set, zero value otherwise. func (o *VnicSanConnectivityPolicy) GetPlacementMode() string { if o == nil || IsNil(o.PlacementMode) { @@ -279,7 +289,7 @@ func (o *VnicSanConnectivityPolicy) GetFcIfsOk() ([]VnicFcIfRelationship, bool) // HasFcIfs returns a boolean if a field has been set. func (o *VnicSanConnectivityPolicy) HasFcIfs() bool { - if o != nil && IsNil(o.FcIfs) { + if o != nil && !IsNil(o.FcIfs) { return true } @@ -355,7 +365,7 @@ func (o *VnicSanConnectivityPolicy) GetProfilesOk() ([]PolicyAbstractConfigProfi // HasProfiles returns a boolean if a field has been set. func (o *VnicSanConnectivityPolicy) HasProfiles() bool { - if o != nil && IsNil(o.Profiles) { + if o != nil && !IsNil(o.Profiles) { return true } @@ -428,7 +438,13 @@ func (o VnicSanConnectivityPolicy) ToMap() (map[string]interface{}, error) { if errPolicyAbstractPolicy != nil { return map[string]interface{}{}, errPolicyAbstractPolicy } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.PlacementMode) { toSerialize["PlacementMode"] = o.PlacementMode @@ -471,6 +487,13 @@ func (o *VnicSanConnectivityPolicy) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -480,11 +503,23 @@ func (o *VnicSanConnectivityPolicy) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type VnicSanConnectivityPolicyWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` @@ -493,7 +528,7 @@ func (o *VnicSanConnectivityPolicy) UnmarshalJSON(data []byte) (err error) { // The mode used for placement of vNICs on network adapters. It can either be Auto or Custom. * `custom` - The placement of the vNICs / vHBAs on network adapters is manually chosen by the user. * `auto` - The placement of the vNICs / vHBAs on network adapters is automatically determined by the system. PlacementMode *string `json:"PlacementMode,omitempty"` // The WWNN address for the server node must be in hexadecimal format xx:xx:xx:xx:xx:xx:xx:xx. Allowed ranges are 20:00:00:00:00:00:00:00 to 20:FF:FF:FF:FF:FF:FF:FF or from 50:00:00:00:00:00:00:00 to 5F:FF:FF:FF:FF:FF:FF:FF. To ensure uniqueness of WWN's in the SAN fabric, you are strongly encouraged to use the WWN prefix - 20:00:00:25:B5:xx:xx:xx. - StaticWwnnAddress *string `json:"StaticWwnnAddress,omitempty"` + StaticWwnnAddress *string `json:"StaticWwnnAddress,omitempty" validate:"regexp=^$|((^20|5[0-9a-fA-F]{1}):([0-9a-fA-F]{2}:){6}([0-9a-fA-F]{2})$)"` // The platform for which the server profile is applicable. It can either be a server that is operating in standalone mode or which is attached to a Fabric Interconnect managed by Intersight. * `Standalone` - Servers which are operating in standalone mode i.e. not connected to a Fabric Interconnected. * `FIAttached` - Servers which are connected to a Fabric Interconnect that is managed by Intersight. TargetPlatform *string `json:"TargetPlatform,omitempty"` // Type of allocation selected to assign a WWNN address for the server node. * `POOL` - The user selects a pool from which the mac/wwn address will be leased for the Virtual Interface. * `STATIC` - The user assigns a static mac/wwn address for the Virtual Interface. diff --git a/model_vnic_san_connectivity_policy_inventory.go b/model_vnic_san_connectivity_policy_inventory.go index 5f92b15b48..49eda652ab 100644 --- a/model_vnic_san_connectivity_policy_inventory.go +++ b/model_vnic_san_connectivity_policy_inventory.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -31,7 +31,7 @@ type VnicSanConnectivityPolicyInventory struct { // The mode used for placement of vNICs on network adapters. It can either be Auto or Custom. * `custom` - The placement of the vNICs / vHBAs on network adapters is manually chosen by the user. * `auto` - The placement of the vNICs / vHBAs on network adapters is automatically determined by the system. PlacementMode *string `json:"PlacementMode,omitempty"` // The WWNN address for the server node must be in hexadecimal format xx:xx:xx:xx:xx:xx:xx:xx. Allowed ranges are 20:00:00:00:00:00:00:00 to 20:FF:FF:FF:FF:FF:FF:FF or from 50:00:00:00:00:00:00:00 to 5F:FF:FF:FF:FF:FF:FF:FF. To ensure uniqueness of WWN's in the SAN fabric, you are strongly encouraged to use the WWN prefix - 20:00:00:25:B5:xx:xx:xx. - StaticWwnnAddress *string `json:"StaticWwnnAddress,omitempty"` + StaticWwnnAddress *string `json:"StaticWwnnAddress,omitempty" validate:"regexp=^$|((^20|5[0-9a-fA-F]{1}):([0-9a-fA-F]{2}:){6}([0-9a-fA-F]{2})$)"` // The platform for which the server profile is applicable. It can either be a server that is operating in standalone mode or which is attached to a Fabric Interconnect managed by Intersight. * `Standalone` - Servers which are operating in standalone mode i.e. not connected to a Fabric Interconnected. * `FIAttached` - Servers which are connected to a Fabric Interconnect that is managed by Intersight. TargetPlatform *string `json:"TargetPlatform,omitempty"` // Type of allocation selected to assign a WWNN address for the server node. * `POOL` - The user selects a pool from which the mac/wwn address will be leased for the Virtual Interface. * `STATIC` - The user assigns a static mac/wwn address for the Virtual Interface. @@ -92,6 +92,11 @@ func (o *VnicSanConnectivityPolicyInventory) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "vnic.SanConnectivityPolicyInventory" of the ClassId field. +func (o *VnicSanConnectivityPolicyInventory) GetDefaultClassId() interface{} { + return "vnic.SanConnectivityPolicyInventory" +} + // GetObjectType returns the ObjectType field value func (o *VnicSanConnectivityPolicyInventory) GetObjectType() string { if o == nil { @@ -116,6 +121,11 @@ func (o *VnicSanConnectivityPolicyInventory) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "vnic.SanConnectivityPolicyInventory" of the ObjectType field. +func (o *VnicSanConnectivityPolicyInventory) GetDefaultObjectType() interface{} { + return "vnic.SanConnectivityPolicyInventory" +} + // GetPlacementMode returns the PlacementMode field value if set, zero value otherwise. func (o *VnicSanConnectivityPolicyInventory) GetPlacementMode() string { if o == nil || IsNil(o.PlacementMode) { @@ -265,7 +275,7 @@ func (o *VnicSanConnectivityPolicyInventory) GetFcIfsOk() ([]VnicFcIfInventoryRe // HasFcIfs returns a boolean if a field has been set. func (o *VnicSanConnectivityPolicyInventory) HasFcIfs() bool { - if o != nil && IsNil(o.FcIfs) { + if o != nil && !IsNil(o.FcIfs) { return true } @@ -381,7 +391,13 @@ func (o VnicSanConnectivityPolicyInventory) ToMap() (map[string]interface{}, err if errPolicyAbstractPolicyInventory != nil { return map[string]interface{}{}, errPolicyAbstractPolicyInventory } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.PlacementMode) { toSerialize["PlacementMode"] = o.PlacementMode @@ -421,6 +437,13 @@ func (o *VnicSanConnectivityPolicyInventory) UnmarshalJSON(data []byte) (err err "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -430,11 +453,23 @@ func (o *VnicSanConnectivityPolicyInventory) UnmarshalJSON(data []byte) (err err } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type VnicSanConnectivityPolicyInventoryWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` @@ -443,7 +478,7 @@ func (o *VnicSanConnectivityPolicyInventory) UnmarshalJSON(data []byte) (err err // The mode used for placement of vNICs on network adapters. It can either be Auto or Custom. * `custom` - The placement of the vNICs / vHBAs on network adapters is manually chosen by the user. * `auto` - The placement of the vNICs / vHBAs on network adapters is automatically determined by the system. PlacementMode *string `json:"PlacementMode,omitempty"` // The WWNN address for the server node must be in hexadecimal format xx:xx:xx:xx:xx:xx:xx:xx. Allowed ranges are 20:00:00:00:00:00:00:00 to 20:FF:FF:FF:FF:FF:FF:FF or from 50:00:00:00:00:00:00:00 to 5F:FF:FF:FF:FF:FF:FF:FF. To ensure uniqueness of WWN's in the SAN fabric, you are strongly encouraged to use the WWN prefix - 20:00:00:25:B5:xx:xx:xx. - StaticWwnnAddress *string `json:"StaticWwnnAddress,omitempty"` + StaticWwnnAddress *string `json:"StaticWwnnAddress,omitempty" validate:"regexp=^$|((^20|5[0-9a-fA-F]{1}):([0-9a-fA-F]{2}:){6}([0-9a-fA-F]{2})$)"` // The platform for which the server profile is applicable. It can either be a server that is operating in standalone mode or which is attached to a Fabric Interconnect managed by Intersight. * `Standalone` - Servers which are operating in standalone mode i.e. not connected to a Fabric Interconnected. * `FIAttached` - Servers which are connected to a Fabric Interconnect that is managed by Intersight. TargetPlatform *string `json:"TargetPlatform,omitempty"` // Type of allocation selected to assign a WWNN address for the server node. * `POOL` - The user selects a pool from which the mac/wwn address will be leased for the Virtual Interface. * `STATIC` - The user assigns a static mac/wwn address for the Virtual Interface. diff --git a/model_vnic_san_connectivity_policy_inventory_list.go b/model_vnic_san_connectivity_policy_inventory_list.go index e8643cd2c1..9a27bbecd2 100644 --- a/model_vnic_san_connectivity_policy_inventory_list.go +++ b/model_vnic_san_connectivity_policy_inventory_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *VnicSanConnectivityPolicyInventoryList) GetResultsOk() ([]VnicSanConnec // HasResults returns a boolean if a field has been set. func (o *VnicSanConnectivityPolicyInventoryList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *VnicSanConnectivityPolicyInventoryList) UnmarshalJSON(data []byte) (err "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *VnicSanConnectivityPolicyInventoryList) UnmarshalJSON(data []byte) (err } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type VnicSanConnectivityPolicyInventoryListWithoutEmbeddedStruct struct { // The total number of 'vnic.SanConnectivityPolicyInventory' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_vnic_san_connectivity_policy_inventory_relationship.go b/model_vnic_san_connectivity_policy_inventory_relationship.go index 850829dd3e..1419f8e012 100644 --- a/model_vnic_san_connectivity_policy_inventory_relationship.go +++ b/model_vnic_san_connectivity_policy_inventory_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_vnic_san_connectivity_policy_inventory_response.go b/model_vnic_san_connectivity_policy_inventory_response.go index 364cfc939f..9f5ef6e640 100644 --- a/model_vnic_san_connectivity_policy_inventory_response.go +++ b/model_vnic_san_connectivity_policy_inventory_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_vnic_san_connectivity_policy_list.go b/model_vnic_san_connectivity_policy_list.go index 4d86d72c83..4c7437ae7a 100644 --- a/model_vnic_san_connectivity_policy_list.go +++ b/model_vnic_san_connectivity_policy_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *VnicSanConnectivityPolicyList) GetResultsOk() ([]VnicSanConnectivityPol // HasResults returns a boolean if a field has been set. func (o *VnicSanConnectivityPolicyList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *VnicSanConnectivityPolicyList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *VnicSanConnectivityPolicyList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type VnicSanConnectivityPolicyListWithoutEmbeddedStruct struct { // The total number of 'vnic.SanConnectivityPolicy' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_vnic_san_connectivity_policy_relationship.go b/model_vnic_san_connectivity_policy_relationship.go index 6c07028a05..80c2f95938 100644 --- a/model_vnic_san_connectivity_policy_relationship.go +++ b/model_vnic_san_connectivity_policy_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_vnic_san_connectivity_policy_response.go b/model_vnic_san_connectivity_policy_response.go index a039d9f0c7..7afd85c99e 100644 --- a/model_vnic_san_connectivity_policy_response.go +++ b/model_vnic_san_connectivity_policy_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_vnic_scp_status.go b/model_vnic_scp_status.go index 97c33811c3..f73237c1bd 100644 --- a/model_vnic_scp_status.go +++ b/model_vnic_scp_status.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -90,6 +90,11 @@ func (o *VnicScpStatus) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "vnic.ScpStatus" of the ClassId field. +func (o *VnicScpStatus) GetDefaultClassId() interface{} { + return "vnic.ScpStatus" +} + // GetObjectType returns the ObjectType field value func (o *VnicScpStatus) GetObjectType() string { if o == nil { @@ -114,6 +119,11 @@ func (o *VnicScpStatus) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "vnic.ScpStatus" of the ObjectType field. +func (o *VnicScpStatus) GetDefaultObjectType() interface{} { + return "vnic.ScpStatus" +} + // GetReason returns the Reason field value if set, zero value otherwise. func (o *VnicScpStatus) GetReason() string { if o == nil || IsNil(o.Reason) { @@ -199,7 +209,7 @@ func (o *VnicScpStatus) GetVhbaInfoOk() ([]VnicVifStatus, bool) { // HasVhbaInfo returns a boolean if a field has been set. func (o *VnicScpStatus) HasVhbaInfo() bool { - if o != nil && IsNil(o.VhbaInfo) { + if o != nil && !IsNil(o.VhbaInfo) { return true } @@ -272,7 +282,13 @@ func (o VnicScpStatus) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Reason) { toSerialize["Reason"] = o.Reason @@ -303,6 +319,13 @@ func (o *VnicScpStatus) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -312,11 +335,23 @@ func (o *VnicScpStatus) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type VnicScpStatusWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_vnic_scp_status_list.go b/model_vnic_scp_status_list.go index 1cad0a1fdb..d546c59ec0 100644 --- a/model_vnic_scp_status_list.go +++ b/model_vnic_scp_status_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *VnicScpStatusList) GetResultsOk() ([]VnicScpStatus, bool) { // HasResults returns a boolean if a field has been set. func (o *VnicScpStatusList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *VnicScpStatusList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *VnicScpStatusList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type VnicScpStatusListWithoutEmbeddedStruct struct { // The total number of 'vnic.ScpStatus' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_vnic_scp_status_response.go b/model_vnic_scp_status_response.go index 8e1dc8a147..8a3d1efd9a 100644 --- a/model_vnic_scp_status_response.go +++ b/model_vnic_scp_status_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_vnic_scsi_queue_settings.go b/model_vnic_scsi_queue_settings.go index 6de2bb1e52..d4603a8761 100644 --- a/model_vnic_scsi_queue_settings.go +++ b/model_vnic_scsi_queue_settings.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -92,6 +92,11 @@ func (o *VnicScsiQueueSettings) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "vnic.ScsiQueueSettings" of the ClassId field. +func (o *VnicScsiQueueSettings) GetDefaultClassId() interface{} { + return "vnic.ScsiQueueSettings" +} + // GetObjectType returns the ObjectType field value func (o *VnicScsiQueueSettings) GetObjectType() string { if o == nil { @@ -116,6 +121,11 @@ func (o *VnicScsiQueueSettings) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "vnic.ScsiQueueSettings" of the ObjectType field. +func (o *VnicScsiQueueSettings) GetDefaultObjectType() interface{} { + return "vnic.ScsiQueueSettings" +} + // GetCount returns the Count field value if set, zero value otherwise. func (o *VnicScsiQueueSettings) GetCount() int64 { if o == nil || IsNil(o.Count) { @@ -198,7 +208,13 @@ func (o VnicScsiQueueSettings) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Count) { toSerialize["Count"] = o.Count @@ -223,6 +239,13 @@ func (o *VnicScsiQueueSettings) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -232,11 +255,23 @@ func (o *VnicScsiQueueSettings) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type VnicScsiQueueSettingsWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_vnic_sriov_settings.go b/model_vnic_sriov_settings.go index 010a3d54fa..ecc8322d05 100644 --- a/model_vnic_sriov_settings.go +++ b/model_vnic_sriov_settings.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -112,6 +112,11 @@ func (o *VnicSriovSettings) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "vnic.SriovSettings" of the ClassId field. +func (o *VnicSriovSettings) GetDefaultClassId() interface{} { + return "vnic.SriovSettings" +} + // GetObjectType returns the ObjectType field value func (o *VnicSriovSettings) GetObjectType() string { if o == nil { @@ -136,6 +141,11 @@ func (o *VnicSriovSettings) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "vnic.SriovSettings" of the ObjectType field. +func (o *VnicSriovSettings) GetDefaultObjectType() interface{} { + return "vnic.SriovSettings" +} + // GetCompCountPerVf returns the CompCountPerVf field value if set, zero value otherwise. func (o *VnicSriovSettings) GetCompCountPerVf() int64 { if o == nil || IsNil(o.CompCountPerVf) { @@ -346,7 +356,13 @@ func (o VnicSriovSettings) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.CompCountPerVf) { toSerialize["CompCountPerVf"] = o.CompCountPerVf @@ -383,6 +399,13 @@ func (o *VnicSriovSettings) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -392,11 +415,23 @@ func (o *VnicSriovSettings) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type VnicSriovSettingsWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_vnic_tcp_offload_settings.go b/model_vnic_tcp_offload_settings.go index c642b45eed..b7fca58035 100644 --- a/model_vnic_tcp_offload_settings.go +++ b/model_vnic_tcp_offload_settings.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,6 +104,11 @@ func (o *VnicTcpOffloadSettings) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "vnic.TcpOffloadSettings" of the ClassId field. +func (o *VnicTcpOffloadSettings) GetDefaultClassId() interface{} { + return "vnic.TcpOffloadSettings" +} + // GetObjectType returns the ObjectType field value func (o *VnicTcpOffloadSettings) GetObjectType() string { if o == nil { @@ -128,6 +133,11 @@ func (o *VnicTcpOffloadSettings) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "vnic.TcpOffloadSettings" of the ObjectType field. +func (o *VnicTcpOffloadSettings) GetDefaultObjectType() interface{} { + return "vnic.TcpOffloadSettings" +} + // GetLargeReceive returns the LargeReceive field value if set, zero value otherwise. func (o *VnicTcpOffloadSettings) GetLargeReceive() bool { if o == nil || IsNil(o.LargeReceive) { @@ -274,7 +284,13 @@ func (o VnicTcpOffloadSettings) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.LargeReceive) { toSerialize["LargeReceive"] = o.LargeReceive @@ -305,6 +321,13 @@ func (o *VnicTcpOffloadSettings) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -314,11 +337,23 @@ func (o *VnicTcpOffloadSettings) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type VnicTcpOffloadSettingsWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_vnic_usnic_settings.go b/model_vnic_usnic_settings.go index e33e2e04d4..5831c7e8de 100644 --- a/model_vnic_usnic_settings.go +++ b/model_vnic_usnic_settings.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -90,6 +90,11 @@ func (o *VnicUsnicSettings) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "vnic.UsnicSettings" of the ClassId field. +func (o *VnicUsnicSettings) GetDefaultClassId() interface{} { + return "vnic.UsnicSettings" +} + // GetObjectType returns the ObjectType field value func (o *VnicUsnicSettings) GetObjectType() string { if o == nil { @@ -114,6 +119,11 @@ func (o *VnicUsnicSettings) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "vnic.UsnicSettings" of the ObjectType field. +func (o *VnicUsnicSettings) GetDefaultObjectType() interface{} { + return "vnic.UsnicSettings" +} + // GetCos returns the Cos field value if set, zero value otherwise. func (o *VnicUsnicSettings) GetCos() int64 { if o == nil || IsNil(o.Cos) { @@ -228,7 +238,13 @@ func (o VnicUsnicSettings) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Cos) { toSerialize["Cos"] = o.Cos @@ -256,6 +272,13 @@ func (o *VnicUsnicSettings) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -265,11 +288,23 @@ func (o *VnicUsnicSettings) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type VnicUsnicSettingsWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_vnic_vhba_template.go b/model_vnic_vhba_template.go index 94992320ef..78058c15f2 100644 --- a/model_vnic_vhba_template.go +++ b/model_vnic_vhba_template.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -33,7 +33,7 @@ type VnicVhbaTemplate struct { // When enabled, the configuration of the derived instances may override the template configuration. EnableOverride *bool `json:"EnableOverride,omitempty"` // Name of the virtual fibre channel interface. - Name *string `json:"Name,omitempty"` + Name *string `json:"Name,omitempty" validate:"regexp=^[a-zA-Z0-9-._:]+$"` // Name of the peer vHBA which belongs to the peer FI. PeerVhbaName *string `json:"PeerVhbaName,omitempty"` // The count of the San Connectivity Policies using vHBA template. @@ -102,6 +102,11 @@ func (o *VnicVhbaTemplate) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "vnic.VhbaTemplate" of the ClassId field. +func (o *VnicVhbaTemplate) GetDefaultClassId() interface{} { + return "vnic.VhbaTemplate" +} + // GetObjectType returns the ObjectType field value func (o *VnicVhbaTemplate) GetObjectType() string { if o == nil { @@ -126,6 +131,11 @@ func (o *VnicVhbaTemplate) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "vnic.VhbaTemplate" of the ObjectType field. +func (o *VnicVhbaTemplate) GetDefaultObjectType() interface{} { + return "vnic.VhbaTemplate" +} + // GetDescription returns the Description field value if set, zero value otherwise. func (o *VnicVhbaTemplate) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -339,7 +349,7 @@ func (o *VnicVhbaTemplate) GetTemplateActionsOk() ([]MotemplateActionEntry, bool // HasTemplateActions returns a boolean if a field has been set. func (o *VnicVhbaTemplate) HasTemplateActions() bool { - if o != nil && IsNil(o.TemplateActions) { + if o != nil && !IsNil(o.TemplateActions) { return true } @@ -444,7 +454,13 @@ func (o VnicVhbaTemplate) ToMap() (map[string]interface{}, error) { if errVnicBaseFcIf != nil { return map[string]interface{}{}, errVnicBaseFcIf } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Description) { toSerialize["Description"] = o.Description @@ -490,6 +506,13 @@ func (o *VnicVhbaTemplate) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -499,11 +522,23 @@ func (o *VnicVhbaTemplate) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type VnicVhbaTemplateWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` @@ -514,7 +549,7 @@ func (o *VnicVhbaTemplate) UnmarshalJSON(data []byte) (err error) { // When enabled, the configuration of the derived instances may override the template configuration. EnableOverride *bool `json:"EnableOverride,omitempty"` // Name of the virtual fibre channel interface. - Name *string `json:"Name,omitempty"` + Name *string `json:"Name,omitempty" validate:"regexp=^[a-zA-Z0-9-._:]+$"` // Name of the peer vHBA which belongs to the peer FI. PeerVhbaName *string `json:"PeerVhbaName,omitempty"` // The count of the San Connectivity Policies using vHBA template. diff --git a/model_vnic_vhba_template_list.go b/model_vnic_vhba_template_list.go index 0afeaf427d..9e0a2efd44 100644 --- a/model_vnic_vhba_template_list.go +++ b/model_vnic_vhba_template_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *VnicVhbaTemplateList) GetResultsOk() ([]VnicVhbaTemplate, bool) { // HasResults returns a boolean if a field has been set. func (o *VnicVhbaTemplateList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *VnicVhbaTemplateList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *VnicVhbaTemplateList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type VnicVhbaTemplateListWithoutEmbeddedStruct struct { // The total number of 'vnic.VhbaTemplate' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_vnic_vhba_template_relationship.go b/model_vnic_vhba_template_relationship.go index fcf56a7f37..821535a86c 100644 --- a/model_vnic_vhba_template_relationship.go +++ b/model_vnic_vhba_template_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_vnic_vhba_template_response.go b/model_vnic_vhba_template_response.go index 656bde1658..9af63b2601 100644 --- a/model_vnic_vhba_template_response.go +++ b/model_vnic_vhba_template_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_vnic_vif_status.go b/model_vnic_vif_status.go index 094af2afa6..d7c3ec0f35 100644 --- a/model_vnic_vif_status.go +++ b/model_vnic_vif_status.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -90,6 +90,11 @@ func (o *VnicVifStatus) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "vnic.VifStatus" of the ClassId field. +func (o *VnicVifStatus) GetDefaultClassId() interface{} { + return "vnic.VifStatus" +} + // GetObjectType returns the ObjectType field value func (o *VnicVifStatus) GetObjectType() string { if o == nil { @@ -114,6 +119,11 @@ func (o *VnicVifStatus) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "vnic.VifStatus" of the ObjectType field. +func (o *VnicVifStatus) GetDefaultObjectType() interface{} { + return "vnic.VifStatus" +} + // GetName returns the Name field value if set, zero value otherwise. func (o *VnicVifStatus) GetName() string { if o == nil || IsNil(o.Name) { @@ -228,7 +238,13 @@ func (o VnicVifStatus) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Name) { toSerialize["Name"] = o.Name @@ -256,6 +272,13 @@ func (o *VnicVifStatus) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -265,11 +288,23 @@ func (o *VnicVifStatus) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type VnicVifStatusWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_vnic_vlan_settings.go b/model_vnic_vlan_settings.go index 01e78775a7..57d3e8d5e2 100644 --- a/model_vnic_vlan_settings.go +++ b/model_vnic_vlan_settings.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -29,7 +29,7 @@ type VnicVlanSettings struct { // The fully-qualified name of the instantiated, concrete type. The value should be the same as the 'ClassId' property. ObjectType string `json:"ObjectType"` // Allowed VLAN IDs of the virtual interface. - AllowedVlans *string `json:"AllowedVlans,omitempty"` + AllowedVlans *string `json:"AllowedVlans,omitempty" validate:"regexp=^$|^((\\\\d+\\\\-\\\\d+)|(\\\\d+))(,((\\\\d+\\\\-\\\\d+)|(\\\\d+)))*$"` // Native VLAN ID of the virtual interface or the corresponding vethernet on the peer Fabric Interconnect to which the virtual interface is connected. Setting the ID to 0 will not associate any native VLAN to the traffic on the virtual interface. DefaultVlan *int64 `json:"DefaultVlan,omitempty"` // Option to determine if the port can carry single VLAN (Access) or multiple VLANs (Trunk) traffic. * `ACCESS` - An access port carries traffic only for a single VLAN on the interface. * `TRUNK` - A trunk port can have two or more VLANs configured on the interface. It can carry traffic for several VLANs simultaneously. @@ -106,6 +106,11 @@ func (o *VnicVlanSettings) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "vnic.VlanSettings" of the ClassId field. +func (o *VnicVlanSettings) GetDefaultClassId() interface{} { + return "vnic.VlanSettings" +} + // GetObjectType returns the ObjectType field value func (o *VnicVlanSettings) GetObjectType() string { if o == nil { @@ -130,6 +135,11 @@ func (o *VnicVlanSettings) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "vnic.VlanSettings" of the ObjectType field. +func (o *VnicVlanSettings) GetDefaultObjectType() interface{} { + return "vnic.VlanSettings" +} + // GetAllowedVlans returns the AllowedVlans field value if set, zero value otherwise. func (o *VnicVlanSettings) GetAllowedVlans() string { if o == nil || IsNil(o.AllowedVlans) { @@ -308,7 +318,13 @@ func (o VnicVlanSettings) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.AllowedVlans) { toSerialize["AllowedVlans"] = o.AllowedVlans @@ -342,6 +358,13 @@ func (o *VnicVlanSettings) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -351,18 +374,30 @@ func (o *VnicVlanSettings) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type VnicVlanSettingsWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` // The fully-qualified name of the instantiated, concrete type. The value should be the same as the 'ClassId' property. ObjectType string `json:"ObjectType"` // Allowed VLAN IDs of the virtual interface. - AllowedVlans *string `json:"AllowedVlans,omitempty"` + AllowedVlans *string `json:"AllowedVlans,omitempty" validate:"regexp=^$|^((\\\\d+\\\\-\\\\d+)|(\\\\d+))(,((\\\\d+\\\\-\\\\d+)|(\\\\d+)))*$"` // Native VLAN ID of the virtual interface or the corresponding vethernet on the peer Fabric Interconnect to which the virtual interface is connected. Setting the ID to 0 will not associate any native VLAN to the traffic on the virtual interface. DefaultVlan *int64 `json:"DefaultVlan,omitempty"` // Option to determine if the port can carry single VLAN (Access) or multiple VLANs (Trunk) traffic. * `ACCESS` - An access port carries traffic only for a single VLAN on the interface. * `TRUNK` - A trunk port can have two or more VLANs configured on the interface. It can carry traffic for several VLANs simultaneously. diff --git a/model_vnic_vmq_settings.go b/model_vnic_vmq_settings.go index c826d864a1..11a4254dfa 100644 --- a/model_vnic_vmq_settings.go +++ b/model_vnic_vmq_settings.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -112,6 +112,11 @@ func (o *VnicVmqSettings) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "vnic.VmqSettings" of the ClassId field. +func (o *VnicVmqSettings) GetDefaultClassId() interface{} { + return "vnic.VmqSettings" +} + // GetObjectType returns the ObjectType field value func (o *VnicVmqSettings) GetObjectType() string { if o == nil { @@ -136,6 +141,11 @@ func (o *VnicVmqSettings) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "vnic.VmqSettings" of the ObjectType field. +func (o *VnicVmqSettings) GetDefaultObjectType() interface{} { + return "vnic.VmqSettings" +} + // GetEnabled returns the Enabled field value if set, zero value otherwise. func (o *VnicVmqSettings) GetEnabled() bool { if o == nil || IsNil(o.Enabled) { @@ -346,7 +356,13 @@ func (o VnicVmqSettings) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Enabled) { toSerialize["Enabled"] = o.Enabled @@ -383,6 +399,13 @@ func (o *VnicVmqSettings) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -392,11 +415,23 @@ func (o *VnicVmqSettings) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type VnicVmqSettingsWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_vnic_vnic_template.go b/model_vnic_vnic_template.go index 5617ecda2f..195572dadb 100644 --- a/model_vnic_vnic_template.go +++ b/model_vnic_vnic_template.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -35,7 +35,7 @@ type VnicVnicTemplate struct { // The count of the Lan Connectivity Policies using vNIC template. LcpUsageCount *int64 `json:"LcpUsageCount,omitempty"` // Name of the virtual ethernet interface. - Name *string `json:"Name,omitempty"` + Name *string `json:"Name,omitempty" validate:"regexp=^[a-zA-Z0-9-._:]+$"` // Name of the peer vNIC which belongs to the peer FI. PeerVnicName *string `json:"PeerVnicName,omitempty"` // The fabric port to which the vNICs will be associated. * `None` - Fabric Id is not set to either A or B for the standalone case where the server is not connected to Fabric Interconnects. The value 'None' should be used. * `A` - Fabric A of the FI cluster. * `B` - Fabric B of the FI cluster. @@ -102,6 +102,11 @@ func (o *VnicVnicTemplate) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "vnic.VnicTemplate" of the ClassId field. +func (o *VnicVnicTemplate) GetDefaultClassId() interface{} { + return "vnic.VnicTemplate" +} + // GetObjectType returns the ObjectType field value func (o *VnicVnicTemplate) GetObjectType() string { if o == nil { @@ -126,6 +131,11 @@ func (o *VnicVnicTemplate) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "vnic.VnicTemplate" of the ObjectType field. +func (o *VnicVnicTemplate) GetDefaultObjectType() interface{} { + return "vnic.VnicTemplate" +} + // GetDescription returns the Description field value if set, zero value otherwise. func (o *VnicVnicTemplate) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -339,7 +349,7 @@ func (o *VnicVnicTemplate) GetTemplateActionsOk() ([]MotemplateActionEntry, bool // HasTemplateActions returns a boolean if a field has been set. func (o *VnicVnicTemplate) HasTemplateActions() bool { - if o != nil && IsNil(o.TemplateActions) { + if o != nil && !IsNil(o.TemplateActions) { return true } @@ -444,7 +454,13 @@ func (o VnicVnicTemplate) ToMap() (map[string]interface{}, error) { if errVnicBaseEthIf != nil { return map[string]interface{}{}, errVnicBaseEthIf } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Description) { toSerialize["Description"] = o.Description @@ -490,6 +506,13 @@ func (o *VnicVnicTemplate) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -499,11 +522,23 @@ func (o *VnicVnicTemplate) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type VnicVnicTemplateWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` @@ -516,7 +551,7 @@ func (o *VnicVnicTemplate) UnmarshalJSON(data []byte) (err error) { // The count of the Lan Connectivity Policies using vNIC template. LcpUsageCount *int64 `json:"LcpUsageCount,omitempty"` // Name of the virtual ethernet interface. - Name *string `json:"Name,omitempty"` + Name *string `json:"Name,omitempty" validate:"regexp=^[a-zA-Z0-9-._:]+$"` // Name of the peer vNIC which belongs to the peer FI. PeerVnicName *string `json:"PeerVnicName,omitempty"` // The fabric port to which the vNICs will be associated. * `None` - Fabric Id is not set to either A or B for the standalone case where the server is not connected to Fabric Interconnects. The value 'None' should be used. * `A` - Fabric A of the FI cluster. * `B` - Fabric B of the FI cluster. diff --git a/model_vnic_vnic_template_list.go b/model_vnic_vnic_template_list.go index 1746cf1a1b..efd18a34bd 100644 --- a/model_vnic_vnic_template_list.go +++ b/model_vnic_vnic_template_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *VnicVnicTemplateList) GetResultsOk() ([]VnicVnicTemplate, bool) { // HasResults returns a boolean if a field has been set. func (o *VnicVnicTemplateList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *VnicVnicTemplateList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *VnicVnicTemplateList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type VnicVnicTemplateListWithoutEmbeddedStruct struct { // The total number of 'vnic.VnicTemplate' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_vnic_vnic_template_relationship.go b/model_vnic_vnic_template_relationship.go index cfe5ff217d..29ed64307c 100644 --- a/model_vnic_vnic_template_relationship.go +++ b/model_vnic_vnic_template_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_vnic_vnic_template_response.go b/model_vnic_vnic_template_response.go index 7a42531dc5..5c35fa54f5 100644 --- a/model_vnic_vnic_template_response.go +++ b/model_vnic_vnic_template_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_vnic_vsan_settings.go b/model_vnic_vsan_settings.go index dbd4d7a757..22d3fc1d59 100644 --- a/model_vnic_vsan_settings.go +++ b/model_vnic_vsan_settings.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -92,6 +92,11 @@ func (o *VnicVsanSettings) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "vnic.VsanSettings" of the ClassId field. +func (o *VnicVsanSettings) GetDefaultClassId() interface{} { + return "vnic.VsanSettings" +} + // GetObjectType returns the ObjectType field value func (o *VnicVsanSettings) GetObjectType() string { if o == nil { @@ -116,6 +121,11 @@ func (o *VnicVsanSettings) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "vnic.VsanSettings" of the ObjectType field. +func (o *VnicVsanSettings) GetDefaultObjectType() interface{} { + return "vnic.VsanSettings" +} + // GetDefaultVlanId returns the DefaultVlanId field value if set, zero value otherwise. func (o *VnicVsanSettings) GetDefaultVlanId() int64 { if o == nil || IsNil(o.DefaultVlanId) { @@ -198,7 +208,13 @@ func (o VnicVsanSettings) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.DefaultVlanId) { toSerialize["DefaultVlanId"] = o.DefaultVlanId @@ -223,6 +239,13 @@ func (o *VnicVsanSettings) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -232,11 +255,23 @@ func (o *VnicVsanSettings) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type VnicVsanSettingsWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_vnic_vxlan_settings.go b/model_vnic_vxlan_settings.go index 5a658ea34a..92cade638a 100644 --- a/model_vnic_vxlan_settings.go +++ b/model_vnic_vxlan_settings.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -86,6 +86,11 @@ func (o *VnicVxlanSettings) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "vnic.VxlanSettings" of the ClassId field. +func (o *VnicVxlanSettings) GetDefaultClassId() interface{} { + return "vnic.VxlanSettings" +} + // GetObjectType returns the ObjectType field value func (o *VnicVxlanSettings) GetObjectType() string { if o == nil { @@ -110,6 +115,11 @@ func (o *VnicVxlanSettings) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "vnic.VxlanSettings" of the ObjectType field. +func (o *VnicVxlanSettings) GetDefaultObjectType() interface{} { + return "vnic.VxlanSettings" +} + // GetEnabled returns the Enabled field value if set, zero value otherwise. func (o *VnicVxlanSettings) GetEnabled() bool { if o == nil || IsNil(o.Enabled) { @@ -160,7 +170,13 @@ func (o VnicVxlanSettings) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Enabled) { toSerialize["Enabled"] = o.Enabled @@ -182,6 +198,13 @@ func (o *VnicVxlanSettings) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -191,11 +214,23 @@ func (o *VnicVxlanSettings) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type VnicVxlanSettingsWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_vrf_vrf.go b/model_vrf_vrf.go index a313ad43e0..cc7768a02c 100644 --- a/model_vrf_vrf.go +++ b/model_vrf_vrf.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -85,6 +85,11 @@ func (o *VrfVrf) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "vrf.Vrf" of the ClassId field. +func (o *VrfVrf) GetDefaultClassId() interface{} { + return "vrf.Vrf" +} + // GetObjectType returns the ObjectType field value func (o *VrfVrf) GetObjectType() string { if o == nil { @@ -109,6 +114,11 @@ func (o *VrfVrf) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "vrf.Vrf" of the ObjectType field. +func (o *VrfVrf) GetDefaultObjectType() interface{} { + return "vrf.Vrf" +} + // GetDescription returns the Description field value if set, zero value otherwise. func (o *VrfVrf) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -234,7 +244,13 @@ func (o VrfVrf) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Description) { toSerialize["Description"] = o.Description @@ -262,6 +278,13 @@ func (o *VrfVrf) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -271,11 +294,23 @@ func (o *VrfVrf) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type VrfVrfWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_vrf_vrf_list.go b/model_vrf_vrf_list.go index 10587a49e4..d214de042d 100644 --- a/model_vrf_vrf_list.go +++ b/model_vrf_vrf_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *VrfVrfList) GetResultsOk() ([]VrfVrf, bool) { // HasResults returns a boolean if a field has been set. func (o *VrfVrfList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *VrfVrfList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *VrfVrfList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type VrfVrfListWithoutEmbeddedStruct struct { // The total number of 'vrf.Vrf' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_vrf_vrf_relationship.go b/model_vrf_vrf_relationship.go index 00346e649d..4354cba86d 100644 --- a/model_vrf_vrf_relationship.go +++ b/model_vrf_vrf_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_vrf_vrf_response.go b/model_vrf_vrf_response.go index 2a227b1941..8f6dbea11b 100644 --- a/model_vrf_vrf_response.go +++ b/model_vrf_vrf_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_workflow_abstract_loop_task.go b/model_workflow_abstract_loop_task.go index 7d2728f0a5..80adeba75b 100644 --- a/model_workflow_abstract_loop_task.go +++ b/model_workflow_abstract_loop_task.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -285,6 +285,10 @@ func (o *WorkflowAbstractLoopTask) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -294,11 +298,23 @@ func (o *WorkflowAbstractLoopTask) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type WorkflowAbstractLoopTaskWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. The enum values provides the list of concrete types that can be instantiated from this abstract type. ClassId string `json:"ClassId"` diff --git a/model_workflow_abstract_resource_selector.go b/model_workflow_abstract_resource_selector.go index 8626af21d2..b7a94a7795 100644 --- a/model_workflow_abstract_resource_selector.go +++ b/model_workflow_abstract_resource_selector.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -83,6 +83,10 @@ func (o *WorkflowAbstractResourceSelector) UnmarshalJSON(data []byte) (err error "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -92,11 +96,23 @@ func (o *WorkflowAbstractResourceSelector) UnmarshalJSON(data []byte) (err error } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type WorkflowAbstractResourceSelectorWithoutEmbeddedStruct struct { } diff --git a/model_workflow_abstract_worker_task.go b/model_workflow_abstract_worker_task.go index 1894e280bf..c39021a6c1 100644 --- a/model_workflow_abstract_worker_task.go +++ b/model_workflow_abstract_worker_task.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -135,7 +135,7 @@ func (o *WorkflowAbstractWorkerTask) GetInputParametersOk() (*interface{}, bool) // HasInputParameters returns a boolean if a field has been set. func (o *WorkflowAbstractWorkerTask) HasInputParameters() bool { - if o != nil && IsNil(o.InputParameters) { + if o != nil && !IsNil(o.InputParameters) { return true } @@ -264,7 +264,7 @@ func (o *WorkflowAbstractWorkerTask) GetVariableParametersOk() (*interface{}, bo // HasVariableParameters returns a boolean if a field has been set. func (o *WorkflowAbstractWorkerTask) HasVariableParameters() bool { - if o != nil && IsNil(o.VariableParameters) { + if o != nil && !IsNil(o.VariableParameters) { return true } @@ -328,6 +328,10 @@ func (o *WorkflowAbstractWorkerTask) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -337,11 +341,23 @@ func (o *WorkflowAbstractWorkerTask) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type WorkflowAbstractWorkerTaskWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. The enum values provides the list of concrete types that can be instantiated from this abstract type. ClassId string `json:"ClassId"` diff --git a/model_workflow_ansible_batch_executor.go b/model_workflow_ansible_batch_executor.go index 192c529186..a0c93dcdce 100644 --- a/model_workflow_ansible_batch_executor.go +++ b/model_workflow_ansible_batch_executor.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -81,6 +81,11 @@ func (o *WorkflowAnsibleBatchExecutor) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "workflow.AnsibleBatchExecutor" of the ClassId field. +func (o *WorkflowAnsibleBatchExecutor) GetDefaultClassId() interface{} { + return "workflow.AnsibleBatchExecutor" +} + // GetObjectType returns the ObjectType field value func (o *WorkflowAnsibleBatchExecutor) GetObjectType() string { if o == nil { @@ -105,6 +110,11 @@ func (o *WorkflowAnsibleBatchExecutor) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "workflow.AnsibleBatchExecutor" of the ObjectType field. +func (o *WorkflowAnsibleBatchExecutor) GetDefaultObjectType() interface{} { + return "workflow.AnsibleBatchExecutor" +} + // GetTaskDefinition returns the TaskDefinition field value if set, zero value otherwise (both if not set or set to explicit null). func (o *WorkflowAnsibleBatchExecutor) GetTaskDefinition() WorkflowTaskDefinitionRelationship { if o == nil || IsNil(o.TaskDefinition.Get()) { @@ -166,7 +176,13 @@ func (o WorkflowAnsibleBatchExecutor) ToMap() (map[string]interface{}, error) { if errWorkflowBatchExecutor != nil { return map[string]interface{}{}, errWorkflowBatchExecutor } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.TaskDefinition.IsSet() { toSerialize["TaskDefinition"] = o.TaskDefinition.Get() @@ -188,6 +204,13 @@ func (o *WorkflowAnsibleBatchExecutor) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -197,11 +220,23 @@ func (o *WorkflowAnsibleBatchExecutor) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type WorkflowAnsibleBatchExecutorWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_workflow_ansible_batch_executor_list.go b/model_workflow_ansible_batch_executor_list.go index 8131eea9a2..0889dedf55 100644 --- a/model_workflow_ansible_batch_executor_list.go +++ b/model_workflow_ansible_batch_executor_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *WorkflowAnsibleBatchExecutorList) GetResultsOk() ([]WorkflowAnsibleBatc // HasResults returns a boolean if a field has been set. func (o *WorkflowAnsibleBatchExecutorList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *WorkflowAnsibleBatchExecutorList) UnmarshalJSON(data []byte) (err error "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *WorkflowAnsibleBatchExecutorList) UnmarshalJSON(data []byte) (err error } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type WorkflowAnsibleBatchExecutorListWithoutEmbeddedStruct struct { // The total number of 'workflow.AnsibleBatchExecutor' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_workflow_ansible_batch_executor_response.go b/model_workflow_ansible_batch_executor_response.go index 8adf55dedd..c892fc80ef 100644 --- a/model_workflow_ansible_batch_executor_response.go +++ b/model_workflow_ansible_batch_executor_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_workflow_ansible_play_session.go b/model_workflow_ansible_play_session.go index 48a59bacff..9c783ba207 100644 --- a/model_workflow_ansible_play_session.go +++ b/model_workflow_ansible_play_session.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -88,6 +88,11 @@ func (o *WorkflowAnsiblePlaySession) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "workflow.AnsiblePlaySession" of the ClassId field. +func (o *WorkflowAnsiblePlaySession) GetDefaultClassId() interface{} { + return "workflow.AnsiblePlaySession" +} + // GetObjectType returns the ObjectType field value func (o *WorkflowAnsiblePlaySession) GetObjectType() string { if o == nil { @@ -112,6 +117,11 @@ func (o *WorkflowAnsiblePlaySession) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "workflow.AnsiblePlaySession" of the ObjectType field. +func (o *WorkflowAnsiblePlaySession) GetDefaultObjectType() interface{} { + return "workflow.AnsiblePlaySession" +} + // GetCommandLineArguments returns the CommandLineArguments field value if set, zero value otherwise. func (o *WorkflowAnsiblePlaySession) GetCommandLineArguments() string { if o == nil || IsNil(o.CommandLineArguments) { @@ -258,7 +268,13 @@ func (o WorkflowAnsiblePlaySession) ToMap() (map[string]interface{}, error) { if errWorkflowApi != nil { return map[string]interface{}{}, errWorkflowApi } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.CommandLineArguments) { toSerialize["CommandLineArguments"] = o.CommandLineArguments @@ -289,6 +305,13 @@ func (o *WorkflowAnsiblePlaySession) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -298,11 +321,23 @@ func (o *WorkflowAnsiblePlaySession) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type WorkflowAnsiblePlaySessionWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_workflow_api.go b/model_workflow_api.go index 082e0e7a79..d73d406290 100644 --- a/model_workflow_api.go +++ b/model_workflow_api.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -369,7 +369,7 @@ func (o *WorkflowApi) GetOutcomesOk() (*interface{}, bool) { // HasOutcomes returns a boolean if a field has been set. func (o *WorkflowApi) HasOutcomes() bool { - if o != nil && IsNil(o.Outcomes) { + if o != nil && !IsNil(o.Outcomes) { return true } @@ -402,7 +402,7 @@ func (o *WorkflowApi) GetResponseSpecOk() (*interface{}, bool) { // HasResponseSpec returns a boolean if a field has been set. func (o *WorkflowApi) HasResponseSpec() bool { - if o != nil && IsNil(o.ResponseSpec) { + if o != nil && !IsNil(o.ResponseSpec) { return true } @@ -583,6 +583,10 @@ func (o *WorkflowApi) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -592,11 +596,23 @@ func (o *WorkflowApi) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type WorkflowApiWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. The enum values provides the list of concrete types that can be instantiated from this abstract type. ClassId string `json:"ClassId"` diff --git a/model_workflow_array_data_type.go b/model_workflow_array_data_type.go index ccaedfd0f5..9f38841a4c 100644 --- a/model_workflow_array_data_type.go +++ b/model_workflow_array_data_type.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -85,6 +85,11 @@ func (o *WorkflowArrayDataType) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "workflow.ArrayDataType" of the ClassId field. +func (o *WorkflowArrayDataType) GetDefaultClassId() interface{} { + return "workflow.ArrayDataType" +} + // GetObjectType returns the ObjectType field value func (o *WorkflowArrayDataType) GetObjectType() string { if o == nil { @@ -109,6 +114,11 @@ func (o *WorkflowArrayDataType) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "workflow.ArrayDataType" of the ObjectType field. +func (o *WorkflowArrayDataType) GetDefaultObjectType() interface{} { + return "workflow.ArrayDataType" +} + // GetArrayItemType returns the ArrayItemType field value if set, zero value otherwise (both if not set or set to explicit null). func (o *WorkflowArrayDataType) GetArrayItemType() WorkflowArrayItem { if o == nil || IsNil(o.ArrayItemType.Get()) { @@ -234,7 +244,13 @@ func (o WorkflowArrayDataType) ToMap() (map[string]interface{}, error) { if errWorkflowBaseDataType != nil { return map[string]interface{}{}, errWorkflowBaseDataType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.ArrayItemType.IsSet() { toSerialize["ArrayItemType"] = o.ArrayItemType.Get() @@ -262,6 +278,13 @@ func (o *WorkflowArrayDataType) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -271,11 +294,23 @@ func (o *WorkflowArrayDataType) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type WorkflowArrayDataTypeWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_workflow_array_item.go b/model_workflow_array_item.go index 3cfc6f9d5c..04f4644c0e 100644 --- a/model_workflow_array_item.go +++ b/model_workflow_array_item.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -83,6 +83,10 @@ func (o *WorkflowArrayItem) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -92,11 +96,23 @@ func (o *WorkflowArrayItem) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type WorkflowArrayItemWithoutEmbeddedStruct struct { } diff --git a/model_workflow_associated_roles.go b/model_workflow_associated_roles.go index d4fc6e0668..5d8634790b 100644 --- a/model_workflow_associated_roles.go +++ b/model_workflow_associated_roles.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -86,6 +86,11 @@ func (o *WorkflowAssociatedRoles) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "workflow.AssociatedRoles" of the ClassId field. +func (o *WorkflowAssociatedRoles) GetDefaultClassId() interface{} { + return "workflow.AssociatedRoles" +} + // GetObjectType returns the ObjectType field value func (o *WorkflowAssociatedRoles) GetObjectType() string { if o == nil { @@ -110,6 +115,11 @@ func (o *WorkflowAssociatedRoles) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "workflow.AssociatedRoles" of the ObjectType field. +func (o *WorkflowAssociatedRoles) GetDefaultObjectType() interface{} { + return "workflow.AssociatedRoles" +} + // GetMoid returns the Moid field value if set, zero value otherwise. func (o *WorkflowAssociatedRoles) GetMoid() string { if o == nil || IsNil(o.Moid) { @@ -163,7 +173,7 @@ func (o *WorkflowAssociatedRoles) GetRequiredPrivilegeNamesOk() ([]string, bool) // HasRequiredPrivilegeNames returns a boolean if a field has been set. func (o *WorkflowAssociatedRoles) HasRequiredPrivilegeNames() bool { - if o != nil && IsNil(o.RequiredPrivilegeNames) { + if o != nil && !IsNil(o.RequiredPrivilegeNames) { return true } @@ -196,7 +206,7 @@ func (o *WorkflowAssociatedRoles) GetRolesOk() ([]string, bool) { // HasRoles returns a boolean if a field has been set. func (o *WorkflowAssociatedRoles) HasRoles() bool { - if o != nil && IsNil(o.Roles) { + if o != nil && !IsNil(o.Roles) { return true } @@ -229,7 +239,7 @@ func (o *WorkflowAssociatedRoles) GetTaskNamesOk() ([]string, bool) { // HasTaskNames returns a boolean if a field has been set. func (o *WorkflowAssociatedRoles) HasTaskNames() bool { - if o != nil && IsNil(o.TaskNames) { + if o != nil && !IsNil(o.TaskNames) { return true } @@ -262,7 +272,7 @@ func (o *WorkflowAssociatedRoles) GetWorkflowRolesOk() ([]WorkflowAssociatedRole // HasWorkflowRoles returns a boolean if a field has been set. func (o *WorkflowAssociatedRoles) HasWorkflowRoles() bool { - if o != nil && IsNil(o.WorkflowRoles) { + if o != nil && !IsNil(o.WorkflowRoles) { return true } @@ -292,7 +302,13 @@ func (o WorkflowAssociatedRoles) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Moid) { toSerialize["Moid"] = o.Moid @@ -326,6 +342,13 @@ func (o *WorkflowAssociatedRoles) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -335,11 +358,23 @@ func (o *WorkflowAssociatedRoles) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type WorkflowAssociatedRolesWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_workflow_base_data_type.go b/model_workflow_base_data_type.go index a0171115aa..072dc15cee 100644 --- a/model_workflow_base_data_type.go +++ b/model_workflow_base_data_type.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -35,9 +35,9 @@ type WorkflowBaseDataType struct { // JSON formatted mapping from other property of the definition to the current property. Input parameter mapping is supported only for custom data type property in workflow definition and custom data type definition. The format to specify mapping ina workflow definition when source property is of scalar types is '${workflow.input.property}'. The format to specify mapping when the source property is of object reference and mapping needs to be made to the property of the object is '${workflow.input.property.subproperty}'. The format to specify mapping in a custom data type definition is '${datatype.type.property}'. When the current property is of non-scalar type like composite custom data type, then mapping can be provided to the individual property of the custom data type like 'cdt_property:${workflow.input.property}'. InputParameters interface{} `json:"InputParameters,omitempty"` // Descriptive label for the data type. Label can only contain letters (a-z, A-Z), numbers (0-9), hyphen (-), space ( ), forward slash (/) or an underscore (_). The first and last character in label must be an alphanumeric character. - Label *string `json:"Label,omitempty"` + Label *string `json:"Label,omitempty" validate:"regexp=^[a-zA-Z0-9]+[\\\\sa-zA-Z0-9_'.:\\/-]{1,92}$"` // Descriptive name for the data type. Name can only contain letters (a-z, A-Z), numbers (0-9), hyphen (-) or an underscore (_). The first and last character in name must be an alphanumeric character. - Name *string `json:"Name,omitempty"` + Name *string `json:"Name,omitempty" validate:"regexp=^[a-zA-Z0-9]+([a-zA-Z0-9-_]*[a-zA-Z0-9])*$"` // Specifies whether this parameter is required. The field is applicable for task and workflow. Required *bool `json:"Required,omitempty"` AdditionalProperties map[string]interface{} @@ -251,7 +251,7 @@ func (o *WorkflowBaseDataType) GetInputParametersOk() (*interface{}, bool) { // HasInputParameters returns a boolean if a field has been set. func (o *WorkflowBaseDataType) HasInputParameters() bool { - if o != nil && IsNil(o.InputParameters) { + if o != nil && !IsNil(o.InputParameters) { return true } @@ -417,6 +417,10 @@ func (o *WorkflowBaseDataType) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -426,11 +430,23 @@ func (o *WorkflowBaseDataType) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type WorkflowBaseDataTypeWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. The enum values provides the list of concrete types that can be instantiated from this abstract type. ClassId string `json:"ClassId"` @@ -443,9 +459,9 @@ func (o *WorkflowBaseDataType) UnmarshalJSON(data []byte) (err error) { // JSON formatted mapping from other property of the definition to the current property. Input parameter mapping is supported only for custom data type property in workflow definition and custom data type definition. The format to specify mapping ina workflow definition when source property is of scalar types is '${workflow.input.property}'. The format to specify mapping when the source property is of object reference and mapping needs to be made to the property of the object is '${workflow.input.property.subproperty}'. The format to specify mapping in a custom data type definition is '${datatype.type.property}'. When the current property is of non-scalar type like composite custom data type, then mapping can be provided to the individual property of the custom data type like 'cdt_property:${workflow.input.property}'. InputParameters interface{} `json:"InputParameters,omitempty"` // Descriptive label for the data type. Label can only contain letters (a-z, A-Z), numbers (0-9), hyphen (-), space ( ), forward slash (/) or an underscore (_). The first and last character in label must be an alphanumeric character. - Label *string `json:"Label,omitempty"` + Label *string `json:"Label,omitempty" validate:"regexp=^[a-zA-Z0-9]+[\\\\sa-zA-Z0-9_'.:\\/-]{1,92}$"` // Descriptive name for the data type. Name can only contain letters (a-z, A-Z), numbers (0-9), hyphen (-) or an underscore (_). The first and last character in name must be an alphanumeric character. - Name *string `json:"Name,omitempty"` + Name *string `json:"Name,omitempty" validate:"regexp=^[a-zA-Z0-9]+([a-zA-Z0-9-_]*[a-zA-Z0-9])*$"` // Specifies whether this parameter is required. The field is applicable for task and workflow. Required *bool `json:"Required,omitempty"` } diff --git a/model_workflow_base_operation.go b/model_workflow_base_operation.go index 2450ba5425..90d88b549c 100644 --- a/model_workflow_base_operation.go +++ b/model_workflow_base_operation.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -178,6 +178,10 @@ func (o *WorkflowBaseOperation) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -187,11 +191,23 @@ func (o *WorkflowBaseOperation) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type WorkflowBaseOperationWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. The enum values provides the list of concrete types that can be instantiated from this abstract type. ClassId string `json:"ClassId"` diff --git a/model_workflow_batch_api_executor.go b/model_workflow_batch_api_executor.go index 7902ab6113..70af519103 100644 --- a/model_workflow_batch_api_executor.go +++ b/model_workflow_batch_api_executor.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -82,6 +82,11 @@ func (o *WorkflowBatchApiExecutor) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "workflow.BatchApiExecutor" of the ClassId field. +func (o *WorkflowBatchApiExecutor) GetDefaultClassId() interface{} { + return "workflow.BatchApiExecutor" +} + // GetObjectType returns the ObjectType field value func (o *WorkflowBatchApiExecutor) GetObjectType() string { if o == nil { @@ -106,6 +111,11 @@ func (o *WorkflowBatchApiExecutor) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "workflow.BatchApiExecutor" of the ObjectType field. +func (o *WorkflowBatchApiExecutor) GetDefaultObjectType() interface{} { + return "workflow.BatchApiExecutor" +} + // GetErrorResponseHandler returns the ErrorResponseHandler field value if set, zero value otherwise (both if not set or set to explicit null). func (o *WorkflowBatchApiExecutor) GetErrorResponseHandler() WorkflowErrorResponseHandlerRelationship { if o == nil || IsNil(o.ErrorResponseHandler.Get()) { @@ -210,7 +220,13 @@ func (o WorkflowBatchApiExecutor) ToMap() (map[string]interface{}, error) { if errWorkflowBatchExecutor != nil { return map[string]interface{}{}, errWorkflowBatchExecutor } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.ErrorResponseHandler.IsSet() { toSerialize["ErrorResponseHandler"] = o.ErrorResponseHandler.Get() @@ -235,6 +251,13 @@ func (o *WorkflowBatchApiExecutor) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -244,11 +267,23 @@ func (o *WorkflowBatchApiExecutor) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type WorkflowBatchApiExecutorWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_workflow_batch_api_executor_list.go b/model_workflow_batch_api_executor_list.go index a45c136e82..59ef1f05f9 100644 --- a/model_workflow_batch_api_executor_list.go +++ b/model_workflow_batch_api_executor_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *WorkflowBatchApiExecutorList) GetResultsOk() ([]WorkflowBatchApiExecuto // HasResults returns a boolean if a field has been set. func (o *WorkflowBatchApiExecutorList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *WorkflowBatchApiExecutorList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *WorkflowBatchApiExecutorList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type WorkflowBatchApiExecutorListWithoutEmbeddedStruct struct { // The total number of 'workflow.BatchApiExecutor' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_workflow_batch_api_executor_response.go b/model_workflow_batch_api_executor_response.go index f2c5bf5485..f09be0054d 100644 --- a/model_workflow_batch_api_executor_response.go +++ b/model_workflow_batch_api_executor_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_workflow_batch_executor.go b/model_workflow_batch_executor.go index ebca5ed60b..0f9165eb72 100644 --- a/model_workflow_batch_executor.go +++ b/model_workflow_batch_executor.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -138,7 +138,7 @@ func (o *WorkflowBatchExecutor) GetBatchOk() ([]WorkflowApi, bool) { // HasBatch returns a boolean if a field has been set. func (o *WorkflowBatchExecutor) HasBatch() bool { - if o != nil && IsNil(o.Batch) { + if o != nil && !IsNil(o.Batch) { return true } @@ -171,7 +171,7 @@ func (o *WorkflowBatchExecutor) GetCancelActionOk() ([]WorkflowApi, bool) { // HasCancelAction returns a boolean if a field has been set. func (o *WorkflowBatchExecutor) HasCancelAction() bool { - if o != nil && IsNil(o.CancelAction) { + if o != nil && !IsNil(o.CancelAction) { return true } @@ -311,7 +311,7 @@ func (o *WorkflowBatchExecutor) GetOutcomesOk() (*interface{}, bool) { // HasOutcomes returns a boolean if a field has been set. func (o *WorkflowBatchExecutor) HasOutcomes() bool { - if o != nil && IsNil(o.Outcomes) { + if o != nil && !IsNil(o.Outcomes) { return true } @@ -344,7 +344,7 @@ func (o *WorkflowBatchExecutor) GetOutputOk() (*interface{}, bool) { // HasOutput returns a boolean if a field has been set. func (o *WorkflowBatchExecutor) HasOutput() bool { - if o != nil && IsNil(o.Output) { + if o != nil && !IsNil(o.Output) { return true } @@ -441,7 +441,7 @@ func (o *WorkflowBatchExecutor) GetUiRenderingDataOk() (*interface{}, bool) { // HasUiRenderingData returns a boolean if a field has been set. func (o *WorkflowBatchExecutor) HasUiRenderingData() bool { - if o != nil && IsNil(o.UiRenderingData) { + if o != nil && !IsNil(o.UiRenderingData) { return true } @@ -520,6 +520,10 @@ func (o *WorkflowBatchExecutor) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -529,11 +533,23 @@ func (o *WorkflowBatchExecutor) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type WorkflowBatchExecutorWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. The enum values provides the list of concrete types that can be instantiated from this abstract type. ClassId string `json:"ClassId"` diff --git a/model_workflow_cancelable_type.go b/model_workflow_cancelable_type.go index 241d897c0b..732a05261d 100644 --- a/model_workflow_cancelable_type.go +++ b/model_workflow_cancelable_type.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -93,6 +93,11 @@ func (o *WorkflowCancelableType) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "workflow.CancelableType" of the ClassId field. +func (o *WorkflowCancelableType) GetDefaultClassId() interface{} { + return "workflow.CancelableType" +} + // GetObjectType returns the ObjectType field value func (o *WorkflowCancelableType) GetObjectType() string { if o == nil { @@ -117,6 +122,11 @@ func (o *WorkflowCancelableType) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "workflow.CancelableType" of the ObjectType field. +func (o *WorkflowCancelableType) GetDefaultObjectType() interface{} { + return "workflow.CancelableType" +} + // GetCancelableStates returns the CancelableStates field value if set, zero value otherwise (both if not set or set to explicit null). func (o *WorkflowCancelableType) GetCancelableStates() []string { if o == nil { @@ -138,7 +148,7 @@ func (o *WorkflowCancelableType) GetCancelableStatesOk() ([]string, bool) { // HasCancelableStates returns a boolean if a field has been set. func (o *WorkflowCancelableType) HasCancelableStates() bool { - if o != nil && IsNil(o.CancelableStates) { + if o != nil && !IsNil(o.CancelableStates) { return true } @@ -232,7 +242,13 @@ func (o WorkflowCancelableType) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.CancelableStates != nil { toSerialize["CancelableStates"] = o.CancelableStates @@ -260,6 +276,13 @@ func (o *WorkflowCancelableType) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -269,11 +292,23 @@ func (o *WorkflowCancelableType) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type WorkflowCancelableTypeWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_workflow_catalog.go b/model_workflow_catalog.go index 40377d60a3..7a6988f1cd 100644 --- a/model_workflow_catalog.go +++ b/model_workflow_catalog.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -83,6 +83,11 @@ func (o *WorkflowCatalog) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "workflow.Catalog" of the ClassId field. +func (o *WorkflowCatalog) GetDefaultClassId() interface{} { + return "workflow.Catalog" +} + // GetObjectType returns the ObjectType field value func (o *WorkflowCatalog) GetObjectType() string { if o == nil { @@ -107,6 +112,11 @@ func (o *WorkflowCatalog) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "workflow.Catalog" of the ObjectType field. +func (o *WorkflowCatalog) GetDefaultObjectType() interface{} { + return "workflow.Catalog" +} + // GetName returns the Name field value if set, zero value otherwise. func (o *WorkflowCatalog) GetName() string { if o == nil || IsNil(o.Name) { @@ -200,7 +210,13 @@ func (o WorkflowCatalog) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Name) { toSerialize["Name"] = o.Name @@ -225,6 +241,13 @@ func (o *WorkflowCatalog) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -234,11 +257,23 @@ func (o *WorkflowCatalog) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type WorkflowCatalogWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_workflow_catalog_item_definition.go b/model_workflow_catalog_item_definition.go index 9adbd9d199..d1ef584430 100644 --- a/model_workflow_catalog_item_definition.go +++ b/model_workflow_catalog_item_definition.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -31,9 +31,9 @@ type WorkflowCatalogItemDefinition struct { // The description for the catalog item which provides information on what are the pre-requisites to deploy the resource. Description *string `json:"Description,omitempty"` // A user friendly short name to identify the catalog item. Name can only contain letters (a-z, A-Z), numbers (0-9), hyphen (-), period (.), colon (:), space ( ) or an underscore (_). - Label *string `json:"Label,omitempty"` + Label *string `json:"Label,omitempty" validate:"regexp=^[a-zA-Z0-9]+[\\\\sa-zA-Z0-9_.:-]{1,92}$"` // The name for this catalog item definition. You can have multiple versions of the catalog item with the same name. Name can only contain letters (a-z, A-Z), numbers (0-9), hyphen (-), period (.), colon (:) or an underscore (_). - Name *string `json:"Name,omitempty"` + Name *string `json:"Name,omitempty" validate:"regexp=^[a-zA-Z0-9_.:-]{1,64}$"` // Publish status of the catalog item. * `Draft` - The enum specifies the option as Draft which means the meta definition is being designed and tested. * `Published` - The enum specifies the option as Published which means the meta definition is ready for consumption. * `Archived` - The enum specifies the option as Archived which means the meta definition is archived and can no longer be consumed. PublishStatus *string `json:"PublishStatus,omitempty"` ServiceItems []WorkflowServiceItemType `json:"ServiceItems,omitempty"` @@ -109,6 +109,11 @@ func (o *WorkflowCatalogItemDefinition) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "workflow.CatalogItemDefinition" of the ClassId field. +func (o *WorkflowCatalogItemDefinition) GetDefaultClassId() interface{} { + return "workflow.CatalogItemDefinition" +} + // GetObjectType returns the ObjectType field value func (o *WorkflowCatalogItemDefinition) GetObjectType() string { if o == nil { @@ -133,6 +138,11 @@ func (o *WorkflowCatalogItemDefinition) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "workflow.CatalogItemDefinition" of the ObjectType field. +func (o *WorkflowCatalogItemDefinition) GetDefaultObjectType() interface{} { + return "workflow.CatalogItemDefinition" +} + // GetDescription returns the Description field value if set, zero value otherwise. func (o *WorkflowCatalogItemDefinition) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -282,7 +292,7 @@ func (o *WorkflowCatalogItemDefinition) GetServiceItemsOk() ([]WorkflowServiceIt // HasServiceItems returns a boolean if a field has been set. func (o *WorkflowCatalogItemDefinition) HasServiceItems() bool { - if o != nil && IsNil(o.ServiceItems) { + if o != nil && !IsNil(o.ServiceItems) { return true } @@ -494,7 +504,13 @@ func (o WorkflowCatalogItemDefinition) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Description) { toSerialize["Description"] = o.Description @@ -543,6 +559,13 @@ func (o *WorkflowCatalogItemDefinition) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -552,11 +575,23 @@ func (o *WorkflowCatalogItemDefinition) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type WorkflowCatalogItemDefinitionWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` @@ -565,9 +600,9 @@ func (o *WorkflowCatalogItemDefinition) UnmarshalJSON(data []byte) (err error) { // The description for the catalog item which provides information on what are the pre-requisites to deploy the resource. Description *string `json:"Description,omitempty"` // A user friendly short name to identify the catalog item. Name can only contain letters (a-z, A-Z), numbers (0-9), hyphen (-), period (.), colon (:), space ( ) or an underscore (_). - Label *string `json:"Label,omitempty"` + Label *string `json:"Label,omitempty" validate:"regexp=^[a-zA-Z0-9]+[\\\\sa-zA-Z0-9_.:-]{1,92}$"` // The name for this catalog item definition. You can have multiple versions of the catalog item with the same name. Name can only contain letters (a-z, A-Z), numbers (0-9), hyphen (-), period (.), colon (:) or an underscore (_). - Name *string `json:"Name,omitempty"` + Name *string `json:"Name,omitempty" validate:"regexp=^[a-zA-Z0-9_.:-]{1,64}$"` // Publish status of the catalog item. * `Draft` - The enum specifies the option as Draft which means the meta definition is being designed and tested. * `Published` - The enum specifies the option as Published which means the meta definition is ready for consumption. * `Archived` - The enum specifies the option as Archived which means the meta definition is archived and can no longer be consumed. PublishStatus *string `json:"PublishStatus,omitempty"` ServiceItems []WorkflowServiceItemType `json:"ServiceItems,omitempty"` diff --git a/model_workflow_catalog_item_definition_list.go b/model_workflow_catalog_item_definition_list.go index df10877e78..377a7dc4c5 100644 --- a/model_workflow_catalog_item_definition_list.go +++ b/model_workflow_catalog_item_definition_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *WorkflowCatalogItemDefinitionList) GetResultsOk() ([]WorkflowCatalogIte // HasResults returns a boolean if a field has been set. func (o *WorkflowCatalogItemDefinitionList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *WorkflowCatalogItemDefinitionList) UnmarshalJSON(data []byte) (err erro "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *WorkflowCatalogItemDefinitionList) UnmarshalJSON(data []byte) (err erro } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type WorkflowCatalogItemDefinitionListWithoutEmbeddedStruct struct { // The total number of 'workflow.CatalogItemDefinition' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_workflow_catalog_item_definition_relationship.go b/model_workflow_catalog_item_definition_relationship.go index 3b18e27ef0..619bc34035 100644 --- a/model_workflow_catalog_item_definition_relationship.go +++ b/model_workflow_catalog_item_definition_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_workflow_catalog_item_definition_response.go b/model_workflow_catalog_item_definition_response.go index 806840ea7c..f49cf54bcd 100644 --- a/model_workflow_catalog_item_definition_response.go +++ b/model_workflow_catalog_item_definition_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_workflow_catalog_list.go b/model_workflow_catalog_list.go index f7077fcd3f..aebce8d1e2 100644 --- a/model_workflow_catalog_list.go +++ b/model_workflow_catalog_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *WorkflowCatalogList) GetResultsOk() ([]WorkflowCatalog, bool) { // HasResults returns a boolean if a field has been set. func (o *WorkflowCatalogList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *WorkflowCatalogList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *WorkflowCatalogList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type WorkflowCatalogListWithoutEmbeddedStruct struct { // The total number of 'workflow.Catalog' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_workflow_catalog_relationship.go b/model_workflow_catalog_relationship.go index c415a71ae5..efe577bb6f 100644 --- a/model_workflow_catalog_relationship.go +++ b/model_workflow_catalog_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_workflow_catalog_response.go b/model_workflow_catalog_response.go index d07de5ebdd..85d0985af0 100644 --- a/model_workflow_catalog_response.go +++ b/model_workflow_catalog_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_workflow_catalog_service_request.go b/model_workflow_catalog_service_request.go index 2b395c32e9..e587807df2 100644 --- a/model_workflow_catalog_service_request.go +++ b/model_workflow_catalog_service_request.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -36,10 +36,10 @@ type WorkflowCatalogServiceRequest struct { // Inputs for a catalog service request instance creation, format is specified by input definition of the catalog item definition. Input interface{} `json:"Input,omitempty"` // A user friendly short name to identify the catalog service request instance. Name can only contain letters (a-z, A-Z), numbers (0-9), hyphen (-), period (.), colon (:), space ( ) or an underscore (_). - Label *string `json:"Label,omitempty"` + Label *string `json:"Label,omitempty" validate:"regexp=^$|^[a-zA-Z0-9]+[\\\\sa-zA-Z0-9_.:-]{1,92}$"` Messages []ServicerequestMessage `json:"Messages,omitempty"` // A name of the catalog service request instance. - Name *string `json:"Name,omitempty"` + Name *string `json:"Name,omitempty" validate:"regexp=^[a-zA-Z0-9]+[\\\\sa-zA-Z0-9_.:-]{1,92}$"` Operation NullableWorkflowBaseOperation `json:"Operation,omitempty"` SelectionCriteriaInputs []ServiceitemSelectionCriteriaInput `json:"SelectionCriteriaInputs,omitempty"` // Status of the catalog service request instance which determines the actions that are allowed on this instance. * `NotCreated` - The service item is not yet created and it is in a draft mode. A service item instance can be deleted in this state. * `InProgress` - An action is in progress and until that action has reached a final state, another action cannot be started. * `Failed` - The last action on the service item instance failed and corrective measures need to be taken to bring the service item instance back to valid state. * `Okay` - The last action on the service item instance completed and the service item instance is in Okay state. * `Decommissioned` - The service item is decommissioned and can be safely deleted. A service item instance in any other state after it has been created cannot be deleted until it has been decommissioned. @@ -107,6 +107,11 @@ func (o *WorkflowCatalogServiceRequest) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "workflow.CatalogServiceRequest" of the ClassId field. +func (o *WorkflowCatalogServiceRequest) GetDefaultClassId() interface{} { + return "workflow.CatalogServiceRequest" +} + // GetObjectType returns the ObjectType field value func (o *WorkflowCatalogServiceRequest) GetObjectType() string { if o == nil { @@ -131,6 +136,11 @@ func (o *WorkflowCatalogServiceRequest) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "workflow.CatalogServiceRequest" of the ObjectType field. +func (o *WorkflowCatalogServiceRequest) GetDefaultObjectType() interface{} { + return "workflow.CatalogServiceRequest" +} + // GetDescription returns the Description field value if set, zero value otherwise. func (o *WorkflowCatalogServiceRequest) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -216,7 +226,7 @@ func (o *WorkflowCatalogServiceRequest) GetInputOk() (*interface{}, bool) { // HasInput returns a boolean if a field has been set. func (o *WorkflowCatalogServiceRequest) HasInput() bool { - if o != nil && IsNil(o.Input) { + if o != nil && !IsNil(o.Input) { return true } @@ -281,7 +291,7 @@ func (o *WorkflowCatalogServiceRequest) GetMessagesOk() ([]ServicerequestMessage // HasMessages returns a boolean if a field has been set. func (o *WorkflowCatalogServiceRequest) HasMessages() bool { - if o != nil && IsNil(o.Messages) { + if o != nil && !IsNil(o.Messages) { return true } @@ -389,7 +399,7 @@ func (o *WorkflowCatalogServiceRequest) GetSelectionCriteriaInputsOk() ([]Servic // HasSelectionCriteriaInputs returns a boolean if a field has been set. func (o *WorkflowCatalogServiceRequest) HasSelectionCriteriaInputs() bool { - if o != nil && IsNil(o.SelectionCriteriaInputs) { + if o != nil && !IsNil(o.SelectionCriteriaInputs) { return true } @@ -658,7 +668,7 @@ func (o *WorkflowCatalogServiceRequest) GetServiceItemActionInstancesOk() ([]Wor // HasServiceItemActionInstances returns a boolean if a field has been set. func (o *WorkflowCatalogServiceRequest) HasServiceItemActionInstances() bool { - if o != nil && IsNil(o.ServiceItemActionInstances) { + if o != nil && !IsNil(o.ServiceItemActionInstances) { return true } @@ -691,7 +701,7 @@ func (o *WorkflowCatalogServiceRequest) GetServiceItemInstancesOk() ([]WorkflowS // HasServiceItemInstances returns a boolean if a field has been set. func (o *WorkflowCatalogServiceRequest) HasServiceItemInstances() bool { - if o != nil && IsNil(o.ServiceItemInstances) { + if o != nil && !IsNil(o.ServiceItemInstances) { return true } @@ -764,7 +774,13 @@ func (o WorkflowCatalogServiceRequest) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Description) { toSerialize["Description"] = o.Description @@ -834,6 +850,13 @@ func (o *WorkflowCatalogServiceRequest) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -843,11 +866,23 @@ func (o *WorkflowCatalogServiceRequest) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type WorkflowCatalogServiceRequestWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` @@ -860,10 +895,10 @@ func (o *WorkflowCatalogServiceRequest) UnmarshalJSON(data []byte) (err error) { // Inputs for a catalog service request instance creation, format is specified by input definition of the catalog item definition. Input interface{} `json:"Input,omitempty"` // A user friendly short name to identify the catalog service request instance. Name can only contain letters (a-z, A-Z), numbers (0-9), hyphen (-), period (.), colon (:), space ( ) or an underscore (_). - Label *string `json:"Label,omitempty"` + Label *string `json:"Label,omitempty" validate:"regexp=^$|^[a-zA-Z0-9]+[\\\\sa-zA-Z0-9_.:-]{1,92}$"` Messages []ServicerequestMessage `json:"Messages,omitempty"` // A name of the catalog service request instance. - Name *string `json:"Name,omitempty"` + Name *string `json:"Name,omitempty" validate:"regexp=^[a-zA-Z0-9]+[\\\\sa-zA-Z0-9_.:-]{1,92}$"` Operation NullableWorkflowBaseOperation `json:"Operation,omitempty"` SelectionCriteriaInputs []ServiceitemSelectionCriteriaInput `json:"SelectionCriteriaInputs,omitempty"` // Status of the catalog service request instance which determines the actions that are allowed on this instance. * `NotCreated` - The service item is not yet created and it is in a draft mode. A service item instance can be deleted in this state. * `InProgress` - An action is in progress and until that action has reached a final state, another action cannot be started. * `Failed` - The last action on the service item instance failed and corrective measures need to be taken to bring the service item instance back to valid state. * `Okay` - The last action on the service item instance completed and the service item instance is in Okay state. * `Decommissioned` - The service item is decommissioned and can be safely deleted. A service item instance in any other state after it has been created cannot be deleted until it has been decommissioned. diff --git a/model_workflow_catalog_service_request_list.go b/model_workflow_catalog_service_request_list.go index 68b6041ba0..aea783c48c 100644 --- a/model_workflow_catalog_service_request_list.go +++ b/model_workflow_catalog_service_request_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *WorkflowCatalogServiceRequestList) GetResultsOk() ([]WorkflowCatalogSer // HasResults returns a boolean if a field has been set. func (o *WorkflowCatalogServiceRequestList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *WorkflowCatalogServiceRequestList) UnmarshalJSON(data []byte) (err erro "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *WorkflowCatalogServiceRequestList) UnmarshalJSON(data []byte) (err erro } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type WorkflowCatalogServiceRequestListWithoutEmbeddedStruct struct { // The total number of 'workflow.CatalogServiceRequest' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_workflow_catalog_service_request_relationship.go b/model_workflow_catalog_service_request_relationship.go index 20c8634b84..f2f4da8058 100644 --- a/model_workflow_catalog_service_request_relationship.go +++ b/model_workflow_catalog_service_request_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_workflow_catalog_service_request_response.go b/model_workflow_catalog_service_request_response.go index 5df6984a5f..f1d1bfd656 100644 --- a/model_workflow_catalog_service_request_response.go +++ b/model_workflow_catalog_service_request_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_workflow_cli_command.go b/model_workflow_cli_command.go index 974d144f28..43b9a5d4ad 100644 --- a/model_workflow_cli_command.go +++ b/model_workflow_cli_command.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -98,6 +98,11 @@ func (o *WorkflowCliCommand) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "workflow.CliCommand" of the ClassId field. +func (o *WorkflowCliCommand) GetDefaultClassId() interface{} { + return "workflow.CliCommand" +} + // GetObjectType returns the ObjectType field value func (o *WorkflowCliCommand) GetObjectType() string { if o == nil { @@ -122,6 +127,11 @@ func (o *WorkflowCliCommand) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "workflow.CliCommand" of the ObjectType field. +func (o *WorkflowCliCommand) GetDefaultObjectType() interface{} { + return "workflow.CliCommand" +} + // GetCommand returns the Command field value if set, zero value otherwise. func (o *WorkflowCliCommand) GetCommand() string { if o == nil || IsNil(o.Command) { @@ -207,7 +217,7 @@ func (o *WorkflowCliCommand) GetExpectPromptsOk() ([]WorkflowExpectPrompt, bool) // HasExpectPrompts returns a boolean if a field has been set. func (o *WorkflowCliCommand) HasExpectPrompts() bool { - if o != nil && IsNil(o.ExpectPrompts) { + if o != nil && !IsNil(o.ExpectPrompts) { return true } @@ -240,7 +250,7 @@ func (o *WorkflowCliCommand) GetExpectedExitCodesOk() ([]int64, bool) { // HasExpectedExitCodes returns a boolean if a field has been set. func (o *WorkflowCliCommand) HasExpectedExitCodes() bool { - if o != nil && IsNil(o.ExpectedExitCodes) { + if o != nil && !IsNil(o.ExpectedExitCodes) { return true } @@ -398,7 +408,13 @@ func (o WorkflowCliCommand) ToMap() (map[string]interface{}, error) { if errWorkflowApi != nil { return map[string]interface{}{}, errWorkflowApi } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Command) { toSerialize["Command"] = o.Command @@ -441,6 +457,13 @@ func (o *WorkflowCliCommand) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -450,11 +473,23 @@ func (o *WorkflowCliCommand) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type WorkflowCliCommandWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_workflow_comments.go b/model_workflow_comments.go index be1419041c..3ee24e98f7 100644 --- a/model_workflow_comments.go +++ b/model_workflow_comments.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -83,6 +83,11 @@ func (o *WorkflowComments) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "workflow.Comments" of the ClassId field. +func (o *WorkflowComments) GetDefaultClassId() interface{} { + return "workflow.Comments" +} + // GetObjectType returns the ObjectType field value func (o *WorkflowComments) GetObjectType() string { if o == nil { @@ -107,6 +112,11 @@ func (o *WorkflowComments) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "workflow.Comments" of the ObjectType field. +func (o *WorkflowComments) GetDefaultObjectType() interface{} { + return "workflow.Comments" +} + // GetDescription returns the Description field value if set, zero value otherwise. func (o *WorkflowComments) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -160,7 +170,7 @@ func (o *WorkflowComments) GetExamplesOk() ([]string, bool) { // HasExamples returns a boolean if a field has been set. func (o *WorkflowComments) HasExamples() bool { - if o != nil && IsNil(o.Examples) { + if o != nil && !IsNil(o.Examples) { return true } @@ -190,7 +200,13 @@ func (o WorkflowComments) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Description) { toSerialize["Description"] = o.Description @@ -215,6 +231,13 @@ func (o *WorkflowComments) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -224,11 +247,23 @@ func (o *WorkflowComments) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type WorkflowCommentsWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_workflow_constraints.go b/model_workflow_constraints.go index 806e9162c6..b3d4d12795 100644 --- a/model_workflow_constraints.go +++ b/model_workflow_constraints.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -87,6 +87,11 @@ func (o *WorkflowConstraints) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "workflow.Constraints" of the ClassId field. +func (o *WorkflowConstraints) GetDefaultClassId() interface{} { + return "workflow.Constraints" +} + // GetObjectType returns the ObjectType field value func (o *WorkflowConstraints) GetObjectType() string { if o == nil { @@ -111,6 +116,11 @@ func (o *WorkflowConstraints) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "workflow.Constraints" of the ObjectType field. +func (o *WorkflowConstraints) GetDefaultObjectType() interface{} { + return "workflow.Constraints" +} + // GetEnumList returns the EnumList field value if set, zero value otherwise (both if not set or set to explicit null). func (o *WorkflowConstraints) GetEnumList() []WorkflowEnumEntry { if o == nil { @@ -132,7 +142,7 @@ func (o *WorkflowConstraints) GetEnumListOk() ([]WorkflowEnumEntry, bool) { // HasEnumList returns a boolean if a field has been set. func (o *WorkflowConstraints) HasEnumList() bool { - if o != nil && IsNil(o.EnumList) { + if o != nil && !IsNil(o.EnumList) { return true } @@ -258,7 +268,13 @@ func (o WorkflowConstraints) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.EnumList != nil { toSerialize["EnumList"] = o.EnumList @@ -289,6 +305,13 @@ func (o *WorkflowConstraints) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -298,11 +321,23 @@ func (o *WorkflowConstraints) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type WorkflowConstraintsWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_workflow_control_task.go b/model_workflow_control_task.go index 0acf0e4d59..d3c9783ac2 100644 --- a/model_workflow_control_task.go +++ b/model_workflow_control_task.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -83,6 +83,10 @@ func (o *WorkflowControlTask) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -92,11 +96,23 @@ func (o *WorkflowControlTask) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type WorkflowControlTaskWithoutEmbeddedStruct struct { } diff --git a/model_workflow_custom_array_item.go b/model_workflow_custom_array_item.go index cd8372ca0f..8c9cba4f2e 100644 --- a/model_workflow_custom_array_item.go +++ b/model_workflow_custom_array_item.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -81,6 +81,11 @@ func (o *WorkflowCustomArrayItem) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "workflow.CustomArrayItem" of the ClassId field. +func (o *WorkflowCustomArrayItem) GetDefaultClassId() interface{} { + return "workflow.CustomArrayItem" +} + // GetObjectType returns the ObjectType field value func (o *WorkflowCustomArrayItem) GetObjectType() string { if o == nil { @@ -105,6 +110,11 @@ func (o *WorkflowCustomArrayItem) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "workflow.CustomArrayItem" of the ObjectType field. +func (o *WorkflowCustomArrayItem) GetDefaultObjectType() interface{} { + return "workflow.CustomArrayItem" +} + // GetProperties returns the Properties field value if set, zero value otherwise (both if not set or set to explicit null). func (o *WorkflowCustomArrayItem) GetProperties() WorkflowCustomDataProperty { if o == nil || IsNil(o.Properties.Get()) { @@ -166,7 +176,13 @@ func (o WorkflowCustomArrayItem) ToMap() (map[string]interface{}, error) { if errWorkflowArrayItem != nil { return map[string]interface{}{}, errWorkflowArrayItem } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.Properties.IsSet() { toSerialize["Properties"] = o.Properties.Get() @@ -188,6 +204,13 @@ func (o *WorkflowCustomArrayItem) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -197,11 +220,23 @@ func (o *WorkflowCustomArrayItem) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type WorkflowCustomArrayItemWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_workflow_custom_data_property.go b/model_workflow_custom_data_property.go index b8fdd9ba94..92520afcc9 100644 --- a/model_workflow_custom_data_property.go +++ b/model_workflow_custom_data_property.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -86,6 +86,11 @@ func (o *WorkflowCustomDataProperty) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "workflow.CustomDataProperty" of the ClassId field. +func (o *WorkflowCustomDataProperty) GetDefaultClassId() interface{} { + return "workflow.CustomDataProperty" +} + // GetObjectType returns the ObjectType field value func (o *WorkflowCustomDataProperty) GetObjectType() string { if o == nil { @@ -110,6 +115,11 @@ func (o *WorkflowCustomDataProperty) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "workflow.CustomDataProperty" of the ObjectType field. +func (o *WorkflowCustomDataProperty) GetDefaultObjectType() interface{} { + return "workflow.CustomDataProperty" +} + // GetCatalogMoid returns the CatalogMoid field value if set, zero value otherwise. func (o *WorkflowCustomDataProperty) GetCatalogMoid() string { if o == nil || IsNil(o.CatalogMoid) { @@ -224,7 +234,13 @@ func (o WorkflowCustomDataProperty) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.CatalogMoid) { toSerialize["CatalogMoid"] = o.CatalogMoid @@ -252,6 +268,13 @@ func (o *WorkflowCustomDataProperty) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -261,11 +284,23 @@ func (o *WorkflowCustomDataProperty) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type WorkflowCustomDataPropertyWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_workflow_custom_data_type.go b/model_workflow_custom_data_type.go index 01c1f2a236..3de43bd683 100644 --- a/model_workflow_custom_data_type.go +++ b/model_workflow_custom_data_type.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -81,6 +81,11 @@ func (o *WorkflowCustomDataType) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "workflow.CustomDataType" of the ClassId field. +func (o *WorkflowCustomDataType) GetDefaultClassId() interface{} { + return "workflow.CustomDataType" +} + // GetObjectType returns the ObjectType field value func (o *WorkflowCustomDataType) GetObjectType() string { if o == nil { @@ -105,6 +110,11 @@ func (o *WorkflowCustomDataType) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "workflow.CustomDataType" of the ObjectType field. +func (o *WorkflowCustomDataType) GetDefaultObjectType() interface{} { + return "workflow.CustomDataType" +} + // GetProperties returns the Properties field value if set, zero value otherwise (both if not set or set to explicit null). func (o *WorkflowCustomDataType) GetProperties() WorkflowCustomDataProperty { if o == nil || IsNil(o.Properties.Get()) { @@ -166,7 +176,13 @@ func (o WorkflowCustomDataType) ToMap() (map[string]interface{}, error) { if errWorkflowBaseDataType != nil { return map[string]interface{}{}, errWorkflowBaseDataType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.Properties.IsSet() { toSerialize["Properties"] = o.Properties.Get() @@ -188,6 +204,13 @@ func (o *WorkflowCustomDataType) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -197,11 +220,23 @@ func (o *WorkflowCustomDataType) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type WorkflowCustomDataTypeWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_workflow_custom_data_type_definition.go b/model_workflow_custom_data_type_definition.go index efc35896a2..0702043bfc 100644 --- a/model_workflow_custom_data_type_definition.go +++ b/model_workflow_custom_data_type_definition.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -33,9 +33,9 @@ type WorkflowCustomDataTypeDefinition struct { // A human-friendly description of this custom data type indicating it's domain and usage. Description *string `json:"Description,omitempty"` // A user friendly short name to identify the custom data type definition. Label can only contain letters (a-z, A-Z), numbers (0-9), hyphen (-), period (.), colon (:), space ( ), single quote ('), or an underscore (_) and must be at least 2 characters. - Label *string `json:"Label,omitempty"` + Label *string `json:"Label,omitempty" validate:"regexp=^[a-zA-Z0-9]+[\\\\sa-zA-Z0-9_'.:-]{1,92}$"` // The name of custom data type definition. The valid name can contain lower case and upper case alphabetic characters, digits and special characters '-' and '_'. - Name *string `json:"Name,omitempty"` + Name *string `json:"Name,omitempty" validate:"regexp=^[a-zA-Z0-9_-]{1,64}$"` ParameterSet []WorkflowParameterSet `json:"ParameterSet,omitempty"` Properties NullableWorkflowCustomDataTypeProperties `json:"Properties,omitempty"` TypeDefinition []WorkflowBaseDataType `json:"TypeDefinition,omitempty"` @@ -97,6 +97,11 @@ func (o *WorkflowCustomDataTypeDefinition) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "workflow.CustomDataTypeDefinition" of the ClassId field. +func (o *WorkflowCustomDataTypeDefinition) GetDefaultClassId() interface{} { + return "workflow.CustomDataTypeDefinition" +} + // GetObjectType returns the ObjectType field value func (o *WorkflowCustomDataTypeDefinition) GetObjectType() string { if o == nil { @@ -121,6 +126,11 @@ func (o *WorkflowCustomDataTypeDefinition) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "workflow.CustomDataTypeDefinition" of the ObjectType field. +func (o *WorkflowCustomDataTypeDefinition) GetDefaultObjectType() interface{} { + return "workflow.CustomDataTypeDefinition" +} + // GetCompositeType returns the CompositeType field value if set, zero value otherwise. func (o *WorkflowCustomDataTypeDefinition) GetCompositeType() bool { if o == nil || IsNil(o.CompositeType) { @@ -270,7 +280,7 @@ func (o *WorkflowCustomDataTypeDefinition) GetParameterSetOk() ([]WorkflowParame // HasParameterSet returns a boolean if a field has been set. func (o *WorkflowCustomDataTypeDefinition) HasParameterSet() bool { - if o != nil && IsNil(o.ParameterSet) { + if o != nil && !IsNil(o.ParameterSet) { return true } @@ -346,7 +356,7 @@ func (o *WorkflowCustomDataTypeDefinition) GetTypeDefinitionOk() ([]WorkflowBase // HasTypeDefinition returns a boolean if a field has been set. func (o *WorkflowCustomDataTypeDefinition) HasTypeDefinition() bool { - if o != nil && IsNil(o.TypeDefinition) { + if o != nil && !IsNil(o.TypeDefinition) { return true } @@ -462,7 +472,13 @@ func (o WorkflowCustomDataTypeDefinition) ToMap() (map[string]interface{}, error if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.CompositeType) { toSerialize["CompositeType"] = o.CompositeType @@ -508,6 +524,13 @@ func (o *WorkflowCustomDataTypeDefinition) UnmarshalJSON(data []byte) (err error "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -517,11 +540,23 @@ func (o *WorkflowCustomDataTypeDefinition) UnmarshalJSON(data []byte) (err error } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type WorkflowCustomDataTypeDefinitionWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` @@ -532,9 +567,9 @@ func (o *WorkflowCustomDataTypeDefinition) UnmarshalJSON(data []byte) (err error // A human-friendly description of this custom data type indicating it's domain and usage. Description *string `json:"Description,omitempty"` // A user friendly short name to identify the custom data type definition. Label can only contain letters (a-z, A-Z), numbers (0-9), hyphen (-), period (.), colon (:), space ( ), single quote ('), or an underscore (_) and must be at least 2 characters. - Label *string `json:"Label,omitempty"` + Label *string `json:"Label,omitempty" validate:"regexp=^[a-zA-Z0-9]+[\\\\sa-zA-Z0-9_'.:-]{1,92}$"` // The name of custom data type definition. The valid name can contain lower case and upper case alphabetic characters, digits and special characters '-' and '_'. - Name *string `json:"Name,omitempty"` + Name *string `json:"Name,omitempty" validate:"regexp=^[a-zA-Z0-9_-]{1,64}$"` ParameterSet []WorkflowParameterSet `json:"ParameterSet,omitempty"` Properties NullableWorkflowCustomDataTypeProperties `json:"Properties,omitempty"` TypeDefinition []WorkflowBaseDataType `json:"TypeDefinition,omitempty"` diff --git a/model_workflow_custom_data_type_definition_list.go b/model_workflow_custom_data_type_definition_list.go index e03ef9748f..f520c2d94a 100644 --- a/model_workflow_custom_data_type_definition_list.go +++ b/model_workflow_custom_data_type_definition_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *WorkflowCustomDataTypeDefinitionList) GetResultsOk() ([]WorkflowCustomD // HasResults returns a boolean if a field has been set. func (o *WorkflowCustomDataTypeDefinitionList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *WorkflowCustomDataTypeDefinitionList) UnmarshalJSON(data []byte) (err e "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *WorkflowCustomDataTypeDefinitionList) UnmarshalJSON(data []byte) (err e } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type WorkflowCustomDataTypeDefinitionListWithoutEmbeddedStruct struct { // The total number of 'workflow.CustomDataTypeDefinition' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_workflow_custom_data_type_definition_relationship.go b/model_workflow_custom_data_type_definition_relationship.go index e72887a8da..24c2f7d726 100644 --- a/model_workflow_custom_data_type_definition_relationship.go +++ b/model_workflow_custom_data_type_definition_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_workflow_custom_data_type_definition_response.go b/model_workflow_custom_data_type_definition_response.go index acca9b18df..8e555009a5 100644 --- a/model_workflow_custom_data_type_definition_response.go +++ b/model_workflow_custom_data_type_definition_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_workflow_custom_data_type_properties.go b/model_workflow_custom_data_type_properties.go index 95d9ec40ef..45334c2b85 100644 --- a/model_workflow_custom_data_type_properties.go +++ b/model_workflow_custom_data_type_properties.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -84,6 +84,11 @@ func (o *WorkflowCustomDataTypeProperties) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "workflow.CustomDataTypeProperties" of the ClassId field. +func (o *WorkflowCustomDataTypeProperties) GetDefaultClassId() interface{} { + return "workflow.CustomDataTypeProperties" +} + // GetObjectType returns the ObjectType field value func (o *WorkflowCustomDataTypeProperties) GetObjectType() string { if o == nil { @@ -108,6 +113,11 @@ func (o *WorkflowCustomDataTypeProperties) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "workflow.CustomDataTypeProperties" of the ObjectType field. +func (o *WorkflowCustomDataTypeProperties) GetDefaultObjectType() interface{} { + return "workflow.CustomDataTypeProperties" +} + // GetCloneable returns the Cloneable field value if set, zero value otherwise. func (o *WorkflowCustomDataTypeProperties) GetCloneable() bool { if o == nil || IsNil(o.Cloneable) { @@ -190,7 +200,13 @@ func (o WorkflowCustomDataTypeProperties) ToMap() (map[string]interface{}, error if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Cloneable) { toSerialize["Cloneable"] = o.Cloneable @@ -215,6 +231,13 @@ func (o *WorkflowCustomDataTypeProperties) UnmarshalJSON(data []byte) (err error "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -224,11 +247,23 @@ func (o *WorkflowCustomDataTypeProperties) UnmarshalJSON(data []byte) (err error } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type WorkflowCustomDataTypePropertiesWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_workflow_decision_case.go b/model_workflow_decision_case.go index e2d1e9dd41..8ea2c54add 100644 --- a/model_workflow_decision_case.go +++ b/model_workflow_decision_case.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -86,6 +86,11 @@ func (o *WorkflowDecisionCase) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "workflow.DecisionCase" of the ClassId field. +func (o *WorkflowDecisionCase) GetDefaultClassId() interface{} { + return "workflow.DecisionCase" +} + // GetObjectType returns the ObjectType field value func (o *WorkflowDecisionCase) GetObjectType() string { if o == nil { @@ -110,6 +115,11 @@ func (o *WorkflowDecisionCase) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "workflow.DecisionCase" of the ObjectType field. +func (o *WorkflowDecisionCase) GetDefaultObjectType() interface{} { + return "workflow.DecisionCase" +} + // GetDescription returns the Description field value if set, zero value otherwise. func (o *WorkflowDecisionCase) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -224,7 +234,13 @@ func (o WorkflowDecisionCase) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Description) { toSerialize["Description"] = o.Description @@ -252,6 +268,13 @@ func (o *WorkflowDecisionCase) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -261,11 +284,23 @@ func (o *WorkflowDecisionCase) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type WorkflowDecisionCaseWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_workflow_decision_task.go b/model_workflow_decision_task.go index a921ee09ce..92243e99a9 100644 --- a/model_workflow_decision_task.go +++ b/model_workflow_decision_task.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -88,6 +88,11 @@ func (o *WorkflowDecisionTask) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "workflow.DecisionTask" of the ClassId field. +func (o *WorkflowDecisionTask) GetDefaultClassId() interface{} { + return "workflow.DecisionTask" +} + // GetObjectType returns the ObjectType field value func (o *WorkflowDecisionTask) GetObjectType() string { if o == nil { @@ -112,6 +117,11 @@ func (o *WorkflowDecisionTask) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "workflow.DecisionTask" of the ObjectType field. +func (o *WorkflowDecisionTask) GetDefaultObjectType() interface{} { + return "workflow.DecisionTask" +} + // GetCondition returns the Condition field value if set, zero value otherwise. func (o *WorkflowDecisionTask) GetCondition() string { if o == nil || IsNil(o.Condition) { @@ -165,7 +175,7 @@ func (o *WorkflowDecisionTask) GetDecisionCasesOk() ([]WorkflowDecisionCase, boo // HasDecisionCases returns a boolean if a field has been set. func (o *WorkflowDecisionTask) HasDecisionCases() bool { - if o != nil && IsNil(o.DecisionCases) { + if o != nil && !IsNil(o.DecisionCases) { return true } @@ -232,7 +242,7 @@ func (o *WorkflowDecisionTask) GetInputParametersOk() (*interface{}, bool) { // HasInputParameters returns a boolean if a field has been set. func (o *WorkflowDecisionTask) HasInputParameters() bool { - if o != nil && IsNil(o.InputParameters) { + if o != nil && !IsNil(o.InputParameters) { return true } @@ -263,7 +273,13 @@ func (o WorkflowDecisionTask) ToMap() (map[string]interface{}, error) { if errWorkflowControlTask != nil { return map[string]interface{}{}, errWorkflowControlTask } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Condition) { toSerialize["Condition"] = o.Condition @@ -294,6 +310,13 @@ func (o *WorkflowDecisionTask) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -303,11 +326,23 @@ func (o *WorkflowDecisionTask) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type WorkflowDecisionTaskWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_workflow_default_value.go b/model_workflow_default_value.go index 5b6a742e3c..be3e63a0fd 100644 --- a/model_workflow_default_value.go +++ b/model_workflow_default_value.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -86,6 +86,11 @@ func (o *WorkflowDefaultValue) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "workflow.DefaultValue" of the ClassId field. +func (o *WorkflowDefaultValue) GetDefaultClassId() interface{} { + return "workflow.DefaultValue" +} + // GetObjectType returns the ObjectType field value func (o *WorkflowDefaultValue) GetObjectType() string { if o == nil { @@ -110,6 +115,11 @@ func (o *WorkflowDefaultValue) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "workflow.DefaultValue" of the ObjectType field. +func (o *WorkflowDefaultValue) GetDefaultObjectType() interface{} { + return "workflow.DefaultValue" +} + // GetIsValueSet returns the IsValueSet field value if set, zero value otherwise. func (o *WorkflowDefaultValue) GetIsValueSet() bool { if o == nil || IsNil(o.IsValueSet) { @@ -195,7 +205,7 @@ func (o *WorkflowDefaultValue) GetValueOk() (*interface{}, bool) { // HasValue returns a boolean if a field has been set. func (o *WorkflowDefaultValue) HasValue() bool { - if o != nil && IsNil(o.Value) { + if o != nil && !IsNil(o.Value) { return true } @@ -225,7 +235,13 @@ func (o WorkflowDefaultValue) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.IsValueSet) { toSerialize["IsValueSet"] = o.IsValueSet @@ -253,6 +269,13 @@ func (o *WorkflowDefaultValue) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -262,11 +285,23 @@ func (o *WorkflowDefaultValue) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type WorkflowDefaultValueWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_workflow_display_meta.go b/model_workflow_display_meta.go index 2bc55dea80..40e651a30a 100644 --- a/model_workflow_display_meta.go +++ b/model_workflow_display_meta.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -92,6 +92,11 @@ func (o *WorkflowDisplayMeta) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "workflow.DisplayMeta" of the ClassId field. +func (o *WorkflowDisplayMeta) GetDefaultClassId() interface{} { + return "workflow.DisplayMeta" +} + // GetObjectType returns the ObjectType field value func (o *WorkflowDisplayMeta) GetObjectType() string { if o == nil { @@ -116,6 +121,11 @@ func (o *WorkflowDisplayMeta) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "workflow.DisplayMeta" of the ObjectType field. +func (o *WorkflowDisplayMeta) GetDefaultObjectType() interface{} { + return "workflow.DisplayMeta" +} + // GetInventorySelector returns the InventorySelector field value if set, zero value otherwise. func (o *WorkflowDisplayMeta) GetInventorySelector() bool { if o == nil || IsNil(o.InventorySelector) { @@ -198,7 +208,13 @@ func (o WorkflowDisplayMeta) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.InventorySelector) { toSerialize["InventorySelector"] = o.InventorySelector @@ -223,6 +239,13 @@ func (o *WorkflowDisplayMeta) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -232,11 +255,23 @@ func (o *WorkflowDisplayMeta) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type WorkflowDisplayMetaWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_workflow_dynamic_template_parser_data_type.go b/model_workflow_dynamic_template_parser_data_type.go index 596ae7b61d..50e9c0fa94 100644 --- a/model_workflow_dynamic_template_parser_data_type.go +++ b/model_workflow_dynamic_template_parser_data_type.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -88,6 +88,11 @@ func (o *WorkflowDynamicTemplateParserDataType) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "workflow.DynamicTemplateParserDataType" of the ClassId field. +func (o *WorkflowDynamicTemplateParserDataType) GetDefaultClassId() interface{} { + return "workflow.DynamicTemplateParserDataType" +} + // GetObjectType returns the ObjectType field value func (o *WorkflowDynamicTemplateParserDataType) GetObjectType() string { if o == nil { @@ -112,6 +117,11 @@ func (o *WorkflowDynamicTemplateParserDataType) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "workflow.DynamicTemplateParserDataType" of the ObjectType field. +func (o *WorkflowDynamicTemplateParserDataType) GetDefaultObjectType() interface{} { + return "workflow.DynamicTemplateParserDataType" +} + // GetIsTemplateSecure returns the IsTemplateSecure field value if set, zero value otherwise. func (o *WorkflowDynamicTemplateParserDataType) GetIsTemplateSecure() bool { if o == nil || IsNil(o.IsTemplateSecure) { @@ -194,7 +204,13 @@ func (o WorkflowDynamicTemplateParserDataType) ToMap() (map[string]interface{}, if errWorkflowBaseDataType != nil { return map[string]interface{}{}, errWorkflowBaseDataType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.IsTemplateSecure) { toSerialize["IsTemplateSecure"] = o.IsTemplateSecure @@ -219,6 +235,13 @@ func (o *WorkflowDynamicTemplateParserDataType) UnmarshalJSON(data []byte) (err "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -228,11 +251,23 @@ func (o *WorkflowDynamicTemplateParserDataType) UnmarshalJSON(data []byte) (err } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type WorkflowDynamicTemplateParserDataTypeWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_workflow_end_task.go b/model_workflow_end_task.go index dd51f55824..156c5710b8 100644 --- a/model_workflow_end_task.go +++ b/model_workflow_end_task.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -83,6 +83,10 @@ func (o *WorkflowEndTask) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -92,11 +96,23 @@ func (o *WorkflowEndTask) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type WorkflowEndTaskWithoutEmbeddedStruct struct { } diff --git a/model_workflow_enum_entry.go b/model_workflow_enum_entry.go index 9685a644d8..3f0b93cc95 100644 --- a/model_workflow_enum_entry.go +++ b/model_workflow_enum_entry.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -28,10 +28,10 @@ type WorkflowEnumEntry struct { ClassId string `json:"ClassId"` // The fully-qualified name of the instantiated, concrete type. The value should be the same as the 'ClassId' property. ObjectType string `json:"ObjectType"` - // Label for the enum value. A user friendly short string to identify the enum value. Label can only contain letters (a-z, A-Z), numbers (0-9), hyphen (-), period (.), colon (:), space ( ), single quote ('), forward slash (/), or an underscore (_) and must have an alphanumeric character. - Label *string `json:"Label,omitempty"` - // Enum value for this enum entry. Value will be passed to the workflow as string type for execution. Value can only contain letters (a-z, A-Z), numbers (0-9), hyphen (-), period (.), colon (:), space ( ), forward slash (/), or an underscore (_). - Value *string `json:"Value,omitempty"` + // Label for the enum value. A user friendly short string to identify the enum value. Label can only contain letters (a-z, A-Z), numbers (0-9), hyphen (-), period (.), colon (:), space ( ), single quote ('), forward slash (/), round parenthesis ( () ), or an underscore (_) and must have an alphanumeric character. + Label *string `json:"Label,omitempty" validate:"regexp=^[a-zA-Z0-9]+[+\\\\s\\/a-zA-Z0-9)(_'.:-]{0,92}$"` + // Enum value for this enum entry. Value will be passed to the workflow as string type for execution. Value can only contain letters (a-z, A-Z), numbers (0-9), hyphen (-), period (.), colon (:), space ( ), round parenthesis ( () ), forward slash (/), or an underscore (_). + Value *string `json:"Value,omitempty" validate:"regexp=^[a-zA-Z0-9_.:-]*[+\\\\s\\/a-zA-Z0-9)(_.:-]{1,64}$"` AdditionalProperties map[string]interface{} } @@ -84,6 +84,11 @@ func (o *WorkflowEnumEntry) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "workflow.EnumEntry" of the ClassId field. +func (o *WorkflowEnumEntry) GetDefaultClassId() interface{} { + return "workflow.EnumEntry" +} + // GetObjectType returns the ObjectType field value func (o *WorkflowEnumEntry) GetObjectType() string { if o == nil { @@ -108,6 +113,11 @@ func (o *WorkflowEnumEntry) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "workflow.EnumEntry" of the ObjectType field. +func (o *WorkflowEnumEntry) GetDefaultObjectType() interface{} { + return "workflow.EnumEntry" +} + // GetLabel returns the Label field value if set, zero value otherwise. func (o *WorkflowEnumEntry) GetLabel() string { if o == nil || IsNil(o.Label) { @@ -190,7 +200,13 @@ func (o WorkflowEnumEntry) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Label) { toSerialize["Label"] = o.Label @@ -215,6 +231,13 @@ func (o *WorkflowEnumEntry) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -224,20 +247,32 @@ func (o *WorkflowEnumEntry) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type WorkflowEnumEntryWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` // The fully-qualified name of the instantiated, concrete type. The value should be the same as the 'ClassId' property. ObjectType string `json:"ObjectType"` - // Label for the enum value. A user friendly short string to identify the enum value. Label can only contain letters (a-z, A-Z), numbers (0-9), hyphen (-), period (.), colon (:), space ( ), single quote ('), forward slash (/), or an underscore (_) and must have an alphanumeric character. - Label *string `json:"Label,omitempty"` - // Enum value for this enum entry. Value will be passed to the workflow as string type for execution. Value can only contain letters (a-z, A-Z), numbers (0-9), hyphen (-), period (.), colon (:), space ( ), forward slash (/), or an underscore (_). - Value *string `json:"Value,omitempty"` + // Label for the enum value. A user friendly short string to identify the enum value. Label can only contain letters (a-z, A-Z), numbers (0-9), hyphen (-), period (.), colon (:), space ( ), single quote ('), forward slash (/), round parenthesis ( () ), or an underscore (_) and must have an alphanumeric character. + Label *string `json:"Label,omitempty" validate:"regexp=^[a-zA-Z0-9]+[+\\\\s\\/a-zA-Z0-9)(_'.:-]{0,92}$"` + // Enum value for this enum entry. Value will be passed to the workflow as string type for execution. Value can only contain letters (a-z, A-Z), numbers (0-9), hyphen (-), period (.), colon (:), space ( ), round parenthesis ( () ), forward slash (/), or an underscore (_). + Value *string `json:"Value,omitempty" validate:"regexp=^[a-zA-Z0-9_.:-]*[+\\\\s\\/a-zA-Z0-9)(_.:-]{1,64}$"` } varWorkflowEnumEntryWithoutEmbeddedStruct := WorkflowEnumEntryWithoutEmbeddedStruct{} diff --git a/model_workflow_error_response_handler.go b/model_workflow_error_response_handler.go index c28e798a70..1056ee7b24 100644 --- a/model_workflow_error_response_handler.go +++ b/model_workflow_error_response_handler.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -31,7 +31,7 @@ type WorkflowErrorResponseHandler struct { // A detailed description about the error response handler. Description *string `json:"Description,omitempty"` // Name for the error response handler. - Name *string `json:"Name,omitempty"` + Name *string `json:"Name,omitempty" validate:"regexp=^[a-zA-Z0-9_.:-]{1,64}$"` Parameters []ContentParameter `json:"Parameters,omitempty"` // The platform type for which the error response handler is defined. * `` - An unrecognized platform type. * `APIC` - A Cisco Application Policy Infrastructure Controller (APIC) cluster. * `CAPIC` - A Cisco Cloud Application Policy Infrastructure Controller (Cloud APIC) instance. * `DCNM` - A Cisco Data Center Network Manager (DCNM) instance. * `UCSFI` - A Cisco UCS Fabric Interconnect that is managed by Cisco UCS Manager (UCSM). * `UCSFIISM` - A Cisco UCS Fabric Interconnect that is managed by Cisco Intersight. * `IMC` - A standalone Cisco UCS rack server (Deprecated). * `IMCM4` - A standalone Cisco UCS C-Series or S-Series M4 server. * `IMCM5` - A standalone Cisco UCS C-Series or S-Series M5 server. * `IMCRack` - A standalone Cisco UCS C-Series or S-Series M6 or newer server. * `UCSIOM` - A Cisco UCS Blade Chassis I/O Module (IOM). * `HX` - A Cisco HyperFlex (HX) cluster. * `UCSD` - A Cisco UCS Director (UCSD) instance. * `IntersightAppliance` - A Cisco Intersight Connected Virtual Appliance instance. * `IntersightAssist` - A Cisco Intersight Assist instance. * `PureStorageFlashArray` - A Pure Storage FlashArray that is managed using Cisco Intersight Assist. Cisco Intersight Workload Optimizer and storage management features are supported on this device. * `NexusDevice` - A Cisco Nexus Network Switch that is managed using Cisco Intersight Assist. * `ACISwitch` - A Cisco Nexus Network Switch with the embedded Device Connector and is a part of the Cisco ACI fabric. * `NexusSwitch` - A standalone Cisco Nexus Network Switch with the embedded Device Connector. * `MDSSwitch` - A Cisco MDS Switch that is managed using the embedded Device Connector. * `MDSDevice` - A Cisco MDS Switch that is managed using Cisco Intersight Assist. * `UCSC890` - A standalone Cisco UCS C890 server managed using Cisco Intersight Assist. * `RedfishServer` - A generic target type for servers that support Redfish APIs and is managed using Cisco Intersight Assist. Support is limited to HPE and Dell Servers. * `NetAppOntap` - A Netapp ONTAP Storage system that is managed using Cisco Intersight Assist. Cisco Intersight Workload Optimizer features are supported on this device. * `NetAppActiveIqUnifiedManager` - A NetApp Active IQ Unified Manager (AIQUM) that is managed using Cisco Intersight Assist. * `EmcScaleIo` - An EMC ScaleIO Software Defined Storage system that is managed using Cisco Intersight Assist. Cisco Intersight Workload Optimizer features are supported on this device. * `EmcVmax` - An EMC VMAX 2 or 3 series enterprise storage array that is managed using Cisco Intersight Assist. Cisco Intersight Workload Optimizer features are supported on this device. * `EmcVplex` - An EMC VPLEX virtual storage system that is managed using Cisco Intersight Assist. Cisco Intersight Workload Optimizer features are supported on this device. * `EmcXtremIo` - An EMC XtremIO SSD storage system that is managed using Cisco Intersight Assist. Cisco Intersight Workload Optimizer features are supported on this device. * `VmwareVcenter` - A VMware vCenter instance that is managed using Cisco Intersight Assist. Cisco Intersight Workload Optimizer and Virtualization features are supported on this hypervisor. * `MicrosoftHyperV` - A Microsoft Hyper-V host that is managed using Cisco Intersight Assist. Optionally, other hosts in the cluster can be discovered through this host. Cisco Intersight Workload Optimizer features are supported on this hypervisor. * `AppDynamics` - An AppDynamics controller running in a SaaS or on-prem datacenter. On-prem AppDynamics instance is managed using Cisco Intersight Assist. Cisco Intersight Workload Optimizer features are supported on this controller. * `Dynatrace` - A Dynatrace Server instance running in a SaaS or on-prem datacenter. On-prem Dynatrace instance is managed using Cisco Intersight Assist. Cisco Intersight Workload Optimizer features are supported on this server. * `NewRelic` - A NewRelic user account. The NewRelic instance monitors the application infrastructure. Cisco Intersight Workload Optimizer features are supported on this server. * `ServiceNow` - A cloud-based workflow automation platform that enables enterprise organizations to improve operational efficiencies by streamlining and automating routine work tasks. * `CloudFoundry` - An open source cloud platform on which developers can build, deploy, run and scale applications. * `MicrosoftAzureApplicationInsights` - A feature of Azure Monitor, is an extensible Application Performance Management service for developers and DevOps professionals to monitor their live applications. * `OpenStack` - An OpenStack target manages Virtual Machines, Physical Machines, Datacenters and Virtual Datacenters using different OpenStack services as administrative endpoints. * `MicrosoftSqlServer` - A Microsoft SQL database server that is managed using Cisco Intersight Assist. Cisco Intersight Workload Optimizer features are supported on this database. * `MySqlServer` - A MySQL database server that is managed using Cisco Intersight Assist. Cisco Intersight Workload Optimizer features are supported on this database. * `OracleDatabaseServer` - An Oracle database server that is managed using Cisco Intersight Assist. Cisco Intersight Workload Optimizer features are supported on this database. * `IBMWebSphereApplicationServer` - An IBM WebSphere Application server that is managed using Cisco Intersight Assist. Cisco Intersight Workload Optimizer features are supported on this application server. * `OracleWebLogicServer` - Oracle WebLogic Server is a unified and extensible platform for developing, deploying and running enterprise applications, such as Java, for on-premises and in the cloud. WebLogic Server offers a robust, mature, and scalable implementation of Java Enterprise Edition (EE) and Jakarta EE. * `ApacheTomcatServer` - An Apache Tomcat server that is managed using Cisco Intersight Assist. Cisco Intersight Workload Optimizer features are supported on this server. * `JavaVirtualMachine` - A JVM Application with JMX configured that is managed using Cisco Intersight Assist. Cisco Intersight Workload Optimizer features are supported on this application. * `RedHatJBossApplicationServer` - JBoss Application Server is an open-source, cross-platform Java application server developed by JBoss, a division of Red Hat Inc. It is an open-source implementation of Java 2 Enterprise Edition (J2EE) that is used for implementing Java applications and other Web-based applications and software. * `Kubernetes` - A Kubernetes cluster that runs containerized applications, with Kubernetes Collector installed. Cisco Intersight Workload Optimizer features are supported on Kubernetes cluster. * `AmazonWebService` - An Amazon Web Service cloud account. Cisco Intersight Workload Optimizer and Virtualization features are supported on this cloud. * `AmazonWebServiceBilling` - An Amazon Web Service cloud billing account used to retrieve billing information stored in S3 bucket. Cisco Intersight Workload Optimizer features are supported on this cloud. * `GoogleCloudPlatform` - A Google Cloud Platform service account with access to one or more projects. Cisco Intersight Workload Optimizer features are supported on this cloud. * `GoogleCloudPlatformBilling` - A Google Cloud Platform service account used to retrieve billing information from BigQuery. Cisco Intersight Workload Optimizer features are supported on this cloud. * `MicrosoftAzureServicePrincipal` - A Microsoft Azure Service Principal account with access to Azure subscriptions. Cisco Intersight Workload Optimizer features are supported on this cloud. * `MicrosoftAzureEnterpriseAgreement` - A Microsoft Azure Enterprise Agreement enrolment used to retrieve pricing and billing information. Cisco Intersight Workload Optimizer features are supported on this cloud. * `MicrosoftAzureBilling` - A Microsoft Azure Service Principal account with access to billing information. Cisco Intersight Workload Optimizer features are supported on this cloud. * `DellCompellent` - A Dell EMC SC Series (Compellent) storage system that is managed using Cisco Intersight Assist. Cisco Intersight Workload Optimizer features are supported on this device. * `HPE3Par` - A HPE 3PAR StoreServ system that is managed using Cisco Intersight Assist. Cisco Intersight Workload Optimizer features are supported on this device. * `RedHatEnterpriseVirtualization` - A Red Hat Enterprise Virtualization Hypervisor system that manages Virtual Machines. * `NutanixAcropolis` - A Nutanix Acropolis cluster that is managed using Cisco Intersight Assist. Cisco Intersight Workload Optimizer features are supported on this cluster. * `HPEOneView` - A HPE OneView system that is managed using Cisco Intersight Assist. Cisco Intersight Workload Optimizer features are supported on this system. * `ServiceEngine` - Cisco Application Services Engine. Cisco Application Services Engine is a platform to deploy and manage applications. * `HitachiVirtualStoragePlatform` - A Hitachi Virtual Storage Platform (Hitachi VSP) that is managed using Cisco Intersight Assist. * `GenericTarget` - A generic third-party target supported only in Partner Integration Appliance. This target type is used for development purposes and will not be supported in production environment. * `IMCBlade` - A Cisco UCS blade server managed by Cisco Intersight. * `TerraformCloud` - A Terraform Cloud Business Tier account. * `TerraformAgent` - A Terraform Cloud Agent that will be deployed on Cisco Intersight Assist. The agent can be used to plan and apply Terraform runs from a Terraform Cloud workspace. * `CustomTarget` - CustomTarget is deprecated. Use HTTPEndpoint type to claim HTTP endpoints. * `AnsibleEndpoint` - An external endpoint that is added as a target which can be accessed through Ansible in Intersight Cloud Orchestrator automation workflows. * `HTTPEndpoint` - An HTTP endpoint that can be accessed in Intersight Orchestrator workflows directly or using Cisco Intersight Assist. Authentication Schemes supported are Basic and Bearer Token. * `SSHEndpoint` - An SSH endpoint that can be accessed in Intersight Orchestrator workflows using Cisco Intersight Assist. * `CiscoCatalyst` - A Cisco Catalyst networking switch device. * `PowerShellEndpoint` - A Windows operating system server on which PowerShell scripts can be executed using Cisco Intersight Assist. * `CiscoDNAC` - A Cisco Digital Network Architecture (DNA) Center appliance. * `CiscoFMC` - A Cisco Secure Firewall Management Center. * `ViptelaCloud` - A Cisco Viptela SD-WAN Cloud. * `MerakiCloud` - A Cisco Meraki Organization. * `CiscoISE` - A Cisco Identity Services Engine (ISE) target. PlatformType *string `json:"PlatformType,omitempty"` @@ -93,6 +93,11 @@ func (o *WorkflowErrorResponseHandler) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "workflow.ErrorResponseHandler" of the ClassId field. +func (o *WorkflowErrorResponseHandler) GetDefaultClassId() interface{} { + return "workflow.ErrorResponseHandler" +} + // GetObjectType returns the ObjectType field value func (o *WorkflowErrorResponseHandler) GetObjectType() string { if o == nil { @@ -117,6 +122,11 @@ func (o *WorkflowErrorResponseHandler) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "workflow.ErrorResponseHandler" of the ObjectType field. +func (o *WorkflowErrorResponseHandler) GetDefaultObjectType() interface{} { + return "workflow.ErrorResponseHandler" +} + // GetDescription returns the Description field value if set, zero value otherwise. func (o *WorkflowErrorResponseHandler) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -202,7 +212,7 @@ func (o *WorkflowErrorResponseHandler) GetParametersOk() ([]ContentParameter, bo // HasParameters returns a boolean if a field has been set. func (o *WorkflowErrorResponseHandler) HasParameters() bool { - if o != nil && IsNil(o.Parameters) { + if o != nil && !IsNil(o.Parameters) { return true } @@ -267,7 +277,7 @@ func (o *WorkflowErrorResponseHandler) GetTypesOk() ([]ContentComplexType, bool) // HasTypes returns a boolean if a field has been set. func (o *WorkflowErrorResponseHandler) HasTypes() bool { - if o != nil && IsNil(o.Types) { + if o != nil && !IsNil(o.Types) { return true } @@ -340,7 +350,13 @@ func (o WorkflowErrorResponseHandler) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Description) { toSerialize["Description"] = o.Description @@ -377,6 +393,13 @@ func (o *WorkflowErrorResponseHandler) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -386,11 +409,23 @@ func (o *WorkflowErrorResponseHandler) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type WorkflowErrorResponseHandlerWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` @@ -399,7 +434,7 @@ func (o *WorkflowErrorResponseHandler) UnmarshalJSON(data []byte) (err error) { // A detailed description about the error response handler. Description *string `json:"Description,omitempty"` // Name for the error response handler. - Name *string `json:"Name,omitempty"` + Name *string `json:"Name,omitempty" validate:"regexp=^[a-zA-Z0-9_.:-]{1,64}$"` Parameters []ContentParameter `json:"Parameters,omitempty"` // The platform type for which the error response handler is defined. * `` - An unrecognized platform type. * `APIC` - A Cisco Application Policy Infrastructure Controller (APIC) cluster. * `CAPIC` - A Cisco Cloud Application Policy Infrastructure Controller (Cloud APIC) instance. * `DCNM` - A Cisco Data Center Network Manager (DCNM) instance. * `UCSFI` - A Cisco UCS Fabric Interconnect that is managed by Cisco UCS Manager (UCSM). * `UCSFIISM` - A Cisco UCS Fabric Interconnect that is managed by Cisco Intersight. * `IMC` - A standalone Cisco UCS rack server (Deprecated). * `IMCM4` - A standalone Cisco UCS C-Series or S-Series M4 server. * `IMCM5` - A standalone Cisco UCS C-Series or S-Series M5 server. * `IMCRack` - A standalone Cisco UCS C-Series or S-Series M6 or newer server. * `UCSIOM` - A Cisco UCS Blade Chassis I/O Module (IOM). * `HX` - A Cisco HyperFlex (HX) cluster. * `UCSD` - A Cisco UCS Director (UCSD) instance. * `IntersightAppliance` - A Cisco Intersight Connected Virtual Appliance instance. * `IntersightAssist` - A Cisco Intersight Assist instance. * `PureStorageFlashArray` - A Pure Storage FlashArray that is managed using Cisco Intersight Assist. Cisco Intersight Workload Optimizer and storage management features are supported on this device. * `NexusDevice` - A Cisco Nexus Network Switch that is managed using Cisco Intersight Assist. * `ACISwitch` - A Cisco Nexus Network Switch with the embedded Device Connector and is a part of the Cisco ACI fabric. * `NexusSwitch` - A standalone Cisco Nexus Network Switch with the embedded Device Connector. * `MDSSwitch` - A Cisco MDS Switch that is managed using the embedded Device Connector. * `MDSDevice` - A Cisco MDS Switch that is managed using Cisco Intersight Assist. * `UCSC890` - A standalone Cisco UCS C890 server managed using Cisco Intersight Assist. * `RedfishServer` - A generic target type for servers that support Redfish APIs and is managed using Cisco Intersight Assist. Support is limited to HPE and Dell Servers. * `NetAppOntap` - A Netapp ONTAP Storage system that is managed using Cisco Intersight Assist. Cisco Intersight Workload Optimizer features are supported on this device. * `NetAppActiveIqUnifiedManager` - A NetApp Active IQ Unified Manager (AIQUM) that is managed using Cisco Intersight Assist. * `EmcScaleIo` - An EMC ScaleIO Software Defined Storage system that is managed using Cisco Intersight Assist. Cisco Intersight Workload Optimizer features are supported on this device. * `EmcVmax` - An EMC VMAX 2 or 3 series enterprise storage array that is managed using Cisco Intersight Assist. Cisco Intersight Workload Optimizer features are supported on this device. * `EmcVplex` - An EMC VPLEX virtual storage system that is managed using Cisco Intersight Assist. Cisco Intersight Workload Optimizer features are supported on this device. * `EmcXtremIo` - An EMC XtremIO SSD storage system that is managed using Cisco Intersight Assist. Cisco Intersight Workload Optimizer features are supported on this device. * `VmwareVcenter` - A VMware vCenter instance that is managed using Cisco Intersight Assist. Cisco Intersight Workload Optimizer and Virtualization features are supported on this hypervisor. * `MicrosoftHyperV` - A Microsoft Hyper-V host that is managed using Cisco Intersight Assist. Optionally, other hosts in the cluster can be discovered through this host. Cisco Intersight Workload Optimizer features are supported on this hypervisor. * `AppDynamics` - An AppDynamics controller running in a SaaS or on-prem datacenter. On-prem AppDynamics instance is managed using Cisco Intersight Assist. Cisco Intersight Workload Optimizer features are supported on this controller. * `Dynatrace` - A Dynatrace Server instance running in a SaaS or on-prem datacenter. On-prem Dynatrace instance is managed using Cisco Intersight Assist. Cisco Intersight Workload Optimizer features are supported on this server. * `NewRelic` - A NewRelic user account. The NewRelic instance monitors the application infrastructure. Cisco Intersight Workload Optimizer features are supported on this server. * `ServiceNow` - A cloud-based workflow automation platform that enables enterprise organizations to improve operational efficiencies by streamlining and automating routine work tasks. * `CloudFoundry` - An open source cloud platform on which developers can build, deploy, run and scale applications. * `MicrosoftAzureApplicationInsights` - A feature of Azure Monitor, is an extensible Application Performance Management service for developers and DevOps professionals to monitor their live applications. * `OpenStack` - An OpenStack target manages Virtual Machines, Physical Machines, Datacenters and Virtual Datacenters using different OpenStack services as administrative endpoints. * `MicrosoftSqlServer` - A Microsoft SQL database server that is managed using Cisco Intersight Assist. Cisco Intersight Workload Optimizer features are supported on this database. * `MySqlServer` - A MySQL database server that is managed using Cisco Intersight Assist. Cisco Intersight Workload Optimizer features are supported on this database. * `OracleDatabaseServer` - An Oracle database server that is managed using Cisco Intersight Assist. Cisco Intersight Workload Optimizer features are supported on this database. * `IBMWebSphereApplicationServer` - An IBM WebSphere Application server that is managed using Cisco Intersight Assist. Cisco Intersight Workload Optimizer features are supported on this application server. * `OracleWebLogicServer` - Oracle WebLogic Server is a unified and extensible platform for developing, deploying and running enterprise applications, such as Java, for on-premises and in the cloud. WebLogic Server offers a robust, mature, and scalable implementation of Java Enterprise Edition (EE) and Jakarta EE. * `ApacheTomcatServer` - An Apache Tomcat server that is managed using Cisco Intersight Assist. Cisco Intersight Workload Optimizer features are supported on this server. * `JavaVirtualMachine` - A JVM Application with JMX configured that is managed using Cisco Intersight Assist. Cisco Intersight Workload Optimizer features are supported on this application. * `RedHatJBossApplicationServer` - JBoss Application Server is an open-source, cross-platform Java application server developed by JBoss, a division of Red Hat Inc. It is an open-source implementation of Java 2 Enterprise Edition (J2EE) that is used for implementing Java applications and other Web-based applications and software. * `Kubernetes` - A Kubernetes cluster that runs containerized applications, with Kubernetes Collector installed. Cisco Intersight Workload Optimizer features are supported on Kubernetes cluster. * `AmazonWebService` - An Amazon Web Service cloud account. Cisco Intersight Workload Optimizer and Virtualization features are supported on this cloud. * `AmazonWebServiceBilling` - An Amazon Web Service cloud billing account used to retrieve billing information stored in S3 bucket. Cisco Intersight Workload Optimizer features are supported on this cloud. * `GoogleCloudPlatform` - A Google Cloud Platform service account with access to one or more projects. Cisco Intersight Workload Optimizer features are supported on this cloud. * `GoogleCloudPlatformBilling` - A Google Cloud Platform service account used to retrieve billing information from BigQuery. Cisco Intersight Workload Optimizer features are supported on this cloud. * `MicrosoftAzureServicePrincipal` - A Microsoft Azure Service Principal account with access to Azure subscriptions. Cisco Intersight Workload Optimizer features are supported on this cloud. * `MicrosoftAzureEnterpriseAgreement` - A Microsoft Azure Enterprise Agreement enrolment used to retrieve pricing and billing information. Cisco Intersight Workload Optimizer features are supported on this cloud. * `MicrosoftAzureBilling` - A Microsoft Azure Service Principal account with access to billing information. Cisco Intersight Workload Optimizer features are supported on this cloud. * `DellCompellent` - A Dell EMC SC Series (Compellent) storage system that is managed using Cisco Intersight Assist. Cisco Intersight Workload Optimizer features are supported on this device. * `HPE3Par` - A HPE 3PAR StoreServ system that is managed using Cisco Intersight Assist. Cisco Intersight Workload Optimizer features are supported on this device. * `RedHatEnterpriseVirtualization` - A Red Hat Enterprise Virtualization Hypervisor system that manages Virtual Machines. * `NutanixAcropolis` - A Nutanix Acropolis cluster that is managed using Cisco Intersight Assist. Cisco Intersight Workload Optimizer features are supported on this cluster. * `HPEOneView` - A HPE OneView system that is managed using Cisco Intersight Assist. Cisco Intersight Workload Optimizer features are supported on this system. * `ServiceEngine` - Cisco Application Services Engine. Cisco Application Services Engine is a platform to deploy and manage applications. * `HitachiVirtualStoragePlatform` - A Hitachi Virtual Storage Platform (Hitachi VSP) that is managed using Cisco Intersight Assist. * `GenericTarget` - A generic third-party target supported only in Partner Integration Appliance. This target type is used for development purposes and will not be supported in production environment. * `IMCBlade` - A Cisco UCS blade server managed by Cisco Intersight. * `TerraformCloud` - A Terraform Cloud Business Tier account. * `TerraformAgent` - A Terraform Cloud Agent that will be deployed on Cisco Intersight Assist. The agent can be used to plan and apply Terraform runs from a Terraform Cloud workspace. * `CustomTarget` - CustomTarget is deprecated. Use HTTPEndpoint type to claim HTTP endpoints. * `AnsibleEndpoint` - An external endpoint that is added as a target which can be accessed through Ansible in Intersight Cloud Orchestrator automation workflows. * `HTTPEndpoint` - An HTTP endpoint that can be accessed in Intersight Orchestrator workflows directly or using Cisco Intersight Assist. Authentication Schemes supported are Basic and Bearer Token. * `SSHEndpoint` - An SSH endpoint that can be accessed in Intersight Orchestrator workflows using Cisco Intersight Assist. * `CiscoCatalyst` - A Cisco Catalyst networking switch device. * `PowerShellEndpoint` - A Windows operating system server on which PowerShell scripts can be executed using Cisco Intersight Assist. * `CiscoDNAC` - A Cisco Digital Network Architecture (DNA) Center appliance. * `CiscoFMC` - A Cisco Secure Firewall Management Center. * `ViptelaCloud` - A Cisco Viptela SD-WAN Cloud. * `MerakiCloud` - A Cisco Meraki Organization. * `CiscoISE` - A Cisco Identity Services Engine (ISE) target. PlatformType *string `json:"PlatformType,omitempty"` diff --git a/model_workflow_error_response_handler_list.go b/model_workflow_error_response_handler_list.go index 8b4235cefb..401bd168fa 100644 --- a/model_workflow_error_response_handler_list.go +++ b/model_workflow_error_response_handler_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *WorkflowErrorResponseHandlerList) GetResultsOk() ([]WorkflowErrorRespon // HasResults returns a boolean if a field has been set. func (o *WorkflowErrorResponseHandlerList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *WorkflowErrorResponseHandlerList) UnmarshalJSON(data []byte) (err error "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *WorkflowErrorResponseHandlerList) UnmarshalJSON(data []byte) (err error } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type WorkflowErrorResponseHandlerListWithoutEmbeddedStruct struct { // The total number of 'workflow.ErrorResponseHandler' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_workflow_error_response_handler_relationship.go b/model_workflow_error_response_handler_relationship.go index 1aae7214be..ac3b56ec9e 100644 --- a/model_workflow_error_response_handler_relationship.go +++ b/model_workflow_error_response_handler_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_workflow_error_response_handler_response.go b/model_workflow_error_response_handler_response.go index 71d58f446a..77ed9f7688 100644 --- a/model_workflow_error_response_handler_response.go +++ b/model_workflow_error_response_handler_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_workflow_expect_prompt.go b/model_workflow_expect_prompt.go index 32e4f97e82..7c7982a686 100644 --- a/model_workflow_expect_prompt.go +++ b/model_workflow_expect_prompt.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -84,6 +84,11 @@ func (o *WorkflowExpectPrompt) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "workflow.ExpectPrompt" of the ClassId field. +func (o *WorkflowExpectPrompt) GetDefaultClassId() interface{} { + return "workflow.ExpectPrompt" +} + // GetObjectType returns the ObjectType field value func (o *WorkflowExpectPrompt) GetObjectType() string { if o == nil { @@ -108,6 +113,11 @@ func (o *WorkflowExpectPrompt) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "workflow.ExpectPrompt" of the ObjectType field. +func (o *WorkflowExpectPrompt) GetDefaultObjectType() interface{} { + return "workflow.ExpectPrompt" +} + // GetExpect returns the Expect field value if set, zero value otherwise. func (o *WorkflowExpectPrompt) GetExpect() string { if o == nil || IsNil(o.Expect) { @@ -190,7 +200,13 @@ func (o WorkflowExpectPrompt) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Expect) { toSerialize["Expect"] = o.Expect @@ -215,6 +231,13 @@ func (o *WorkflowExpectPrompt) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -224,11 +247,23 @@ func (o *WorkflowExpectPrompt) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type WorkflowExpectPromptWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_workflow_failure_end_task.go b/model_workflow_failure_end_task.go index 830617afe4..44fcd21e6d 100644 --- a/model_workflow_failure_end_task.go +++ b/model_workflow_failure_end_task.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -83,6 +83,10 @@ func (o *WorkflowFailureEndTask) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -92,11 +96,23 @@ func (o *WorkflowFailureEndTask) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type WorkflowFailureEndTaskWithoutEmbeddedStruct struct { } diff --git a/model_workflow_file_download_op.go b/model_workflow_file_download_op.go index 3cac65bfc1..028a4df073 100644 --- a/model_workflow_file_download_op.go +++ b/model_workflow_file_download_op.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -86,6 +86,11 @@ func (o *WorkflowFileDownloadOp) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "workflow.FileDownloadOp" of the ClassId field. +func (o *WorkflowFileDownloadOp) GetDefaultClassId() interface{} { + return "workflow.FileDownloadOp" +} + // GetObjectType returns the ObjectType field value func (o *WorkflowFileDownloadOp) GetObjectType() string { if o == nil { @@ -110,6 +115,11 @@ func (o *WorkflowFileDownloadOp) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "workflow.FileDownloadOp" of the ObjectType field. +func (o *WorkflowFileDownloadOp) GetDefaultObjectType() interface{} { + return "workflow.FileDownloadOp" +} + // GetDestinationPath returns the DestinationPath field value if set, zero value otherwise. func (o *WorkflowFileDownloadOp) GetDestinationPath() string { if o == nil || IsNil(o.DestinationPath) { @@ -224,7 +234,13 @@ func (o WorkflowFileDownloadOp) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.DestinationPath) { toSerialize["DestinationPath"] = o.DestinationPath @@ -252,6 +268,13 @@ func (o *WorkflowFileDownloadOp) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -261,11 +284,23 @@ func (o *WorkflowFileDownloadOp) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type WorkflowFileDownloadOpWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_workflow_file_operations.go b/model_workflow_file_operations.go index fb60df63a1..198f50d3d6 100644 --- a/model_workflow_file_operations.go +++ b/model_workflow_file_operations.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -88,6 +88,11 @@ func (o *WorkflowFileOperations) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "workflow.FileOperations" of the ClassId field. +func (o *WorkflowFileOperations) GetDefaultClassId() interface{} { + return "workflow.FileOperations" +} + // GetObjectType returns the ObjectType field value func (o *WorkflowFileOperations) GetObjectType() string { if o == nil { @@ -112,6 +117,11 @@ func (o *WorkflowFileOperations) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "workflow.FileOperations" of the ObjectType field. +func (o *WorkflowFileOperations) GetDefaultObjectType() interface{} { + return "workflow.FileOperations" +} + // GetFileDownload returns the FileDownload field value if set, zero value otherwise (both if not set or set to explicit null). func (o *WorkflowFileOperations) GetFileDownload() WorkflowFileDownloadOp { if o == nil || IsNil(o.FileDownload.Get()) { @@ -248,7 +258,13 @@ func (o WorkflowFileOperations) ToMap() (map[string]interface{}, error) { if errWorkflowApi != nil { return map[string]interface{}{}, errWorkflowApi } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.FileDownload.IsSet() { toSerialize["FileDownload"] = o.FileDownload.Get() @@ -276,6 +292,13 @@ func (o *WorkflowFileOperations) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -285,11 +308,23 @@ func (o *WorkflowFileOperations) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type WorkflowFileOperationsWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_workflow_file_template_op.go b/model_workflow_file_template_op.go index 3bc112011c..86c1f8b3cd 100644 --- a/model_workflow_file_template_op.go +++ b/model_workflow_file_template_op.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -84,6 +84,11 @@ func (o *WorkflowFileTemplateOp) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "workflow.FileTemplateOp" of the ClassId field. +func (o *WorkflowFileTemplateOp) GetDefaultClassId() interface{} { + return "workflow.FileTemplateOp" +} + // GetObjectType returns the ObjectType field value func (o *WorkflowFileTemplateOp) GetObjectType() string { if o == nil { @@ -108,6 +113,11 @@ func (o *WorkflowFileTemplateOp) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "workflow.FileTemplateOp" of the ObjectType field. +func (o *WorkflowFileTemplateOp) GetDefaultObjectType() interface{} { + return "workflow.FileTemplateOp" +} + // GetTemplateFilePath returns the TemplateFilePath field value if set, zero value otherwise. func (o *WorkflowFileTemplateOp) GetTemplateFilePath() string { if o == nil || IsNil(o.TemplateFilePath) { @@ -161,7 +171,7 @@ func (o *WorkflowFileTemplateOp) GetTemplateValuesOk() (*interface{}, bool) { // HasTemplateValues returns a boolean if a field has been set. func (o *WorkflowFileTemplateOp) HasTemplateValues() bool { - if o != nil && IsNil(o.TemplateValues) { + if o != nil && !IsNil(o.TemplateValues) { return true } @@ -191,7 +201,13 @@ func (o WorkflowFileTemplateOp) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.TemplateFilePath) { toSerialize["TemplateFilePath"] = o.TemplateFilePath @@ -216,6 +232,13 @@ func (o *WorkflowFileTemplateOp) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -225,11 +248,23 @@ func (o *WorkflowFileTemplateOp) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type WorkflowFileTemplateOpWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_workflow_file_transfer.go b/model_workflow_file_transfer.go index 1b84cc31fa..06ed7da6e4 100644 --- a/model_workflow_file_transfer.go +++ b/model_workflow_file_transfer.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -86,6 +86,11 @@ func (o *WorkflowFileTransfer) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "workflow.FileTransfer" of the ClassId field. +func (o *WorkflowFileTransfer) GetDefaultClassId() interface{} { + return "workflow.FileTransfer" +} + // GetObjectType returns the ObjectType field value func (o *WorkflowFileTransfer) GetObjectType() string { if o == nil { @@ -110,6 +115,11 @@ func (o *WorkflowFileTransfer) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "workflow.FileTransfer" of the ObjectType field. +func (o *WorkflowFileTransfer) GetDefaultObjectType() interface{} { + return "workflow.FileTransfer" +} + // GetDestinationFilePath returns the DestinationFilePath field value if set, zero value otherwise. func (o *WorkflowFileTransfer) GetDestinationFilePath() string { if o == nil || IsNil(o.DestinationFilePath) { @@ -224,7 +234,13 @@ func (o WorkflowFileTransfer) ToMap() (map[string]interface{}, error) { if errConnectorBaseMessage != nil { return map[string]interface{}{}, errConnectorBaseMessage } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.DestinationFilePath) { toSerialize["DestinationFilePath"] = o.DestinationFilePath @@ -252,6 +268,13 @@ func (o *WorkflowFileTransfer) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -261,11 +284,23 @@ func (o *WorkflowFileTransfer) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type WorkflowFileTransferWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_workflow_fork_task.go b/model_workflow_fork_task.go index c8b01fbc2f..a46c9bf8ca 100644 --- a/model_workflow_fork_task.go +++ b/model_workflow_fork_task.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -83,6 +83,11 @@ func (o *WorkflowForkTask) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "workflow.ForkTask" of the ClassId field. +func (o *WorkflowForkTask) GetDefaultClassId() interface{} { + return "workflow.ForkTask" +} + // GetObjectType returns the ObjectType field value func (o *WorkflowForkTask) GetObjectType() string { if o == nil { @@ -107,6 +112,11 @@ func (o *WorkflowForkTask) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "workflow.ForkTask" of the ObjectType field. +func (o *WorkflowForkTask) GetDefaultObjectType() interface{} { + return "workflow.ForkTask" +} + // GetForkedTasks returns the ForkedTasks field value if set, zero value otherwise (both if not set or set to explicit null). func (o *WorkflowForkTask) GetForkedTasks() []string { if o == nil { @@ -128,7 +138,7 @@ func (o *WorkflowForkTask) GetForkedTasksOk() ([]string, bool) { // HasForkedTasks returns a boolean if a field has been set. func (o *WorkflowForkTask) HasForkedTasks() bool { - if o != nil && IsNil(o.ForkedTasks) { + if o != nil && !IsNil(o.ForkedTasks) { return true } @@ -190,7 +200,13 @@ func (o WorkflowForkTask) ToMap() (map[string]interface{}, error) { if errWorkflowControlTask != nil { return map[string]interface{}{}, errWorkflowControlTask } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.ForkedTasks != nil { toSerialize["ForkedTasks"] = o.ForkedTasks @@ -215,6 +231,13 @@ func (o *WorkflowForkTask) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -224,11 +247,23 @@ func (o *WorkflowForkTask) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type WorkflowForkTaskWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_workflow_initiator_context.go b/model_workflow_initiator_context.go index bb26d28e08..421973ed79 100644 --- a/model_workflow_initiator_context.go +++ b/model_workflow_initiator_context.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -86,6 +86,11 @@ func (o *WorkflowInitiatorContext) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "workflow.InitiatorContext" of the ClassId field. +func (o *WorkflowInitiatorContext) GetDefaultClassId() interface{} { + return "workflow.InitiatorContext" +} + // GetObjectType returns the ObjectType field value func (o *WorkflowInitiatorContext) GetObjectType() string { if o == nil { @@ -110,6 +115,11 @@ func (o *WorkflowInitiatorContext) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "workflow.InitiatorContext" of the ObjectType field. +func (o *WorkflowInitiatorContext) GetDefaultObjectType() interface{} { + return "workflow.InitiatorContext" +} + // GetInitiatorMoid returns the InitiatorMoid field value if set, zero value otherwise. func (o *WorkflowInitiatorContext) GetInitiatorMoid() string { if o == nil || IsNil(o.InitiatorMoid) { @@ -224,7 +234,13 @@ func (o WorkflowInitiatorContext) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.InitiatorMoid) { toSerialize["InitiatorMoid"] = o.InitiatorMoid @@ -252,6 +268,13 @@ func (o *WorkflowInitiatorContext) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -261,11 +284,23 @@ func (o *WorkflowInitiatorContext) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type WorkflowInitiatorContextWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_workflow_internal_properties.go b/model_workflow_internal_properties.go index b020fca779..1e0fccd992 100644 --- a/model_workflow_internal_properties.go +++ b/model_workflow_internal_properties.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -87,6 +87,11 @@ func (o *WorkflowInternalProperties) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "workflow.InternalProperties" of the ClassId field. +func (o *WorkflowInternalProperties) GetDefaultClassId() interface{} { + return "workflow.InternalProperties" +} + // GetObjectType returns the ObjectType field value func (o *WorkflowInternalProperties) GetObjectType() string { if o == nil { @@ -111,6 +116,11 @@ func (o *WorkflowInternalProperties) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "workflow.InternalProperties" of the ObjectType field. +func (o *WorkflowInternalProperties) GetDefaultObjectType() interface{} { + return "workflow.InternalProperties" +} + // GetBaseTaskType returns the BaseTaskType field value if set, zero value otherwise. func (o *WorkflowInternalProperties) GetBaseTaskType() string { if o == nil || IsNil(o.BaseTaskType) { @@ -268,7 +278,13 @@ func (o WorkflowInternalProperties) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.BaseTaskType) { toSerialize["BaseTaskType"] = o.BaseTaskType @@ -299,6 +315,13 @@ func (o *WorkflowInternalProperties) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -308,11 +331,23 @@ func (o *WorkflowInternalProperties) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type WorkflowInternalPropertiesWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_workflow_join_task.go b/model_workflow_join_task.go index 9fdefd8598..36c8bf966c 100644 --- a/model_workflow_join_task.go +++ b/model_workflow_join_task.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -83,6 +83,11 @@ func (o *WorkflowJoinTask) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "workflow.JoinTask" of the ClassId field. +func (o *WorkflowJoinTask) GetDefaultClassId() interface{} { + return "workflow.JoinTask" +} + // GetObjectType returns the ObjectType field value func (o *WorkflowJoinTask) GetObjectType() string { if o == nil { @@ -107,6 +112,11 @@ func (o *WorkflowJoinTask) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "workflow.JoinTask" of the ObjectType field. +func (o *WorkflowJoinTask) GetDefaultObjectType() interface{} { + return "workflow.JoinTask" +} + // GetJoinOnTasks returns the JoinOnTasks field value if set, zero value otherwise (both if not set or set to explicit null). func (o *WorkflowJoinTask) GetJoinOnTasks() []string { if o == nil { @@ -128,7 +138,7 @@ func (o *WorkflowJoinTask) GetJoinOnTasksOk() ([]string, bool) { // HasJoinOnTasks returns a boolean if a field has been set. func (o *WorkflowJoinTask) HasJoinOnTasks() bool { - if o != nil && IsNil(o.JoinOnTasks) { + if o != nil && !IsNil(o.JoinOnTasks) { return true } @@ -190,7 +200,13 @@ func (o WorkflowJoinTask) ToMap() (map[string]interface{}, error) { if errWorkflowControlTask != nil { return map[string]interface{}{}, errWorkflowControlTask } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.JoinOnTasks != nil { toSerialize["JoinOnTasks"] = o.JoinOnTasks @@ -215,6 +231,13 @@ func (o *WorkflowJoinTask) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -224,11 +247,23 @@ func (o *WorkflowJoinTask) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type WorkflowJoinTaskWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_workflow_loop_task.go b/model_workflow_loop_task.go index e33f49e131..51bbb4eeaf 100644 --- a/model_workflow_loop_task.go +++ b/model_workflow_loop_task.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -93,6 +93,11 @@ func (o *WorkflowLoopTask) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "workflow.LoopTask" of the ClassId field. +func (o *WorkflowLoopTask) GetDefaultClassId() interface{} { + return "workflow.LoopTask" +} + // GetObjectType returns the ObjectType field value func (o *WorkflowLoopTask) GetObjectType() string { if o == nil { @@ -117,6 +122,11 @@ func (o *WorkflowLoopTask) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "workflow.LoopTask" of the ObjectType field. +func (o *WorkflowLoopTask) GetDefaultObjectType() interface{} { + return "workflow.LoopTask" +} + // GetNumberOfBatches returns the NumberOfBatches field value if set, zero value otherwise. func (o *WorkflowLoopTask) GetNumberOfBatches() int64 { if o == nil || IsNil(o.NumberOfBatches) { @@ -202,7 +212,13 @@ func (o WorkflowLoopTask) ToMap() (map[string]interface{}, error) { if errWorkflowAbstractLoopTask != nil { return map[string]interface{}{}, errWorkflowAbstractLoopTask } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.NumberOfBatches) { toSerialize["NumberOfBatches"] = o.NumberOfBatches @@ -227,6 +243,13 @@ func (o *WorkflowLoopTask) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -236,11 +259,23 @@ func (o *WorkflowLoopTask) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type WorkflowLoopTaskWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_workflow_message.go b/model_workflow_message.go index 299cee569f..adf58c141a 100644 --- a/model_workflow_message.go +++ b/model_workflow_message.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -84,6 +84,11 @@ func (o *WorkflowMessage) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "workflow.Message" of the ClassId field. +func (o *WorkflowMessage) GetDefaultClassId() interface{} { + return "workflow.Message" +} + // GetObjectType returns the ObjectType field value func (o *WorkflowMessage) GetObjectType() string { if o == nil { @@ -108,6 +113,11 @@ func (o *WorkflowMessage) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "workflow.Message" of the ObjectType field. +func (o *WorkflowMessage) GetDefaultObjectType() interface{} { + return "workflow.Message" +} + // GetMessage returns the Message field value if set, zero value otherwise. func (o *WorkflowMessage) GetMessage() string { if o == nil || IsNil(o.Message) { @@ -190,7 +200,13 @@ func (o WorkflowMessage) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Message) { toSerialize["Message"] = o.Message @@ -215,6 +231,13 @@ func (o *WorkflowMessage) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -224,11 +247,23 @@ func (o *WorkflowMessage) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type WorkflowMessageWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_workflow_mo_inventory_data_type.go b/model_workflow_mo_inventory_data_type.go index 08421cc6f2..a95b7c5169 100644 --- a/model_workflow_mo_inventory_data_type.go +++ b/model_workflow_mo_inventory_data_type.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -81,6 +81,11 @@ func (o *WorkflowMoInventoryDataType) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "workflow.MoInventoryDataType" of the ClassId field. +func (o *WorkflowMoInventoryDataType) GetDefaultClassId() interface{} { + return "workflow.MoInventoryDataType" +} + // GetObjectType returns the ObjectType field value func (o *WorkflowMoInventoryDataType) GetObjectType() string { if o == nil { @@ -105,6 +110,11 @@ func (o *WorkflowMoInventoryDataType) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "workflow.MoInventoryDataType" of the ObjectType field. +func (o *WorkflowMoInventoryDataType) GetDefaultObjectType() interface{} { + return "workflow.MoInventoryDataType" +} + // GetProperties returns the Properties field value if set, zero value otherwise (both if not set or set to explicit null). func (o *WorkflowMoInventoryDataType) GetProperties() []WorkflowMoInventoryProperty { if o == nil { @@ -126,7 +136,7 @@ func (o *WorkflowMoInventoryDataType) GetPropertiesOk() ([]WorkflowMoInventoryPr // HasProperties returns a boolean if a field has been set. func (o *WorkflowMoInventoryDataType) HasProperties() bool { - if o != nil && IsNil(o.Properties) { + if o != nil && !IsNil(o.Properties) { return true } @@ -156,7 +166,13 @@ func (o WorkflowMoInventoryDataType) ToMap() (map[string]interface{}, error) { if errWorkflowBaseDataType != nil { return map[string]interface{}{}, errWorkflowBaseDataType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.Properties != nil { toSerialize["Properties"] = o.Properties @@ -178,6 +194,13 @@ func (o *WorkflowMoInventoryDataType) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -187,11 +210,23 @@ func (o *WorkflowMoInventoryDataType) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type WorkflowMoInventoryDataTypeWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_workflow_mo_inventory_property.go b/model_workflow_mo_inventory_property.go index 7d73e25296..e1e7329407 100644 --- a/model_workflow_mo_inventory_property.go +++ b/model_workflow_mo_inventory_property.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -89,6 +89,11 @@ func (o *WorkflowMoInventoryProperty) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "workflow.MoInventoryProperty" of the ClassId field. +func (o *WorkflowMoInventoryProperty) GetDefaultClassId() interface{} { + return "workflow.MoInventoryProperty" +} + // GetObjectType returns the ObjectType field value func (o *WorkflowMoInventoryProperty) GetObjectType() string { if o == nil { @@ -113,6 +118,11 @@ func (o *WorkflowMoInventoryProperty) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "workflow.MoInventoryProperty" of the ObjectType field. +func (o *WorkflowMoInventoryProperty) GetDefaultObjectType() interface{} { + return "workflow.MoInventoryProperty" +} + // GetAttributes returns the Attributes field value if set, zero value otherwise (both if not set or set to explicit null). func (o *WorkflowMoInventoryProperty) GetAttributes() []string { if o == nil { @@ -134,7 +144,7 @@ func (o *WorkflowMoInventoryProperty) GetAttributesOk() ([]string, bool) { // HasAttributes returns a boolean if a field has been set. func (o *WorkflowMoInventoryProperty) HasAttributes() bool { - if o != nil && IsNil(o.Attributes) { + if o != nil && !IsNil(o.Attributes) { return true } @@ -228,7 +238,13 @@ func (o WorkflowMoInventoryProperty) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.Attributes != nil { toSerialize["Attributes"] = o.Attributes @@ -256,6 +272,13 @@ func (o *WorkflowMoInventoryProperty) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -265,11 +288,23 @@ func (o *WorkflowMoInventoryProperty) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type WorkflowMoInventoryPropertyWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_workflow_mo_reference_array_item.go b/model_workflow_mo_reference_array_item.go index 8524f5f48d..8aceedad07 100644 --- a/model_workflow_mo_reference_array_item.go +++ b/model_workflow_mo_reference_array_item.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -81,6 +81,11 @@ func (o *WorkflowMoReferenceArrayItem) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "workflow.MoReferenceArrayItem" of the ClassId field. +func (o *WorkflowMoReferenceArrayItem) GetDefaultClassId() interface{} { + return "workflow.MoReferenceArrayItem" +} + // GetObjectType returns the ObjectType field value func (o *WorkflowMoReferenceArrayItem) GetObjectType() string { if o == nil { @@ -105,6 +110,11 @@ func (o *WorkflowMoReferenceArrayItem) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "workflow.MoReferenceArrayItem" of the ObjectType field. +func (o *WorkflowMoReferenceArrayItem) GetDefaultObjectType() interface{} { + return "workflow.MoReferenceArrayItem" +} + // GetProperties returns the Properties field value if set, zero value otherwise (both if not set or set to explicit null). func (o *WorkflowMoReferenceArrayItem) GetProperties() []WorkflowMoReferenceProperty { if o == nil { @@ -126,7 +136,7 @@ func (o *WorkflowMoReferenceArrayItem) GetPropertiesOk() ([]WorkflowMoReferenceP // HasProperties returns a boolean if a field has been set. func (o *WorkflowMoReferenceArrayItem) HasProperties() bool { - if o != nil && IsNil(o.Properties) { + if o != nil && !IsNil(o.Properties) { return true } @@ -156,7 +166,13 @@ func (o WorkflowMoReferenceArrayItem) ToMap() (map[string]interface{}, error) { if errWorkflowArrayItem != nil { return map[string]interface{}{}, errWorkflowArrayItem } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.Properties != nil { toSerialize["Properties"] = o.Properties @@ -178,6 +194,13 @@ func (o *WorkflowMoReferenceArrayItem) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -187,11 +210,23 @@ func (o *WorkflowMoReferenceArrayItem) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type WorkflowMoReferenceArrayItemWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_workflow_mo_reference_auto_array_item.go b/model_workflow_mo_reference_auto_array_item.go index b02017e33b..d570551997 100644 --- a/model_workflow_mo_reference_auto_array_item.go +++ b/model_workflow_mo_reference_auto_array_item.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -81,6 +81,11 @@ func (o *WorkflowMoReferenceAutoArrayItem) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "workflow.MoReferenceAutoArrayItem" of the ClassId field. +func (o *WorkflowMoReferenceAutoArrayItem) GetDefaultClassId() interface{} { + return "workflow.MoReferenceAutoArrayItem" +} + // GetObjectType returns the ObjectType field value func (o *WorkflowMoReferenceAutoArrayItem) GetObjectType() string { if o == nil { @@ -105,6 +110,11 @@ func (o *WorkflowMoReferenceAutoArrayItem) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "workflow.MoReferenceAutoArrayItem" of the ObjectType field. +func (o *WorkflowMoReferenceAutoArrayItem) GetDefaultObjectType() interface{} { + return "workflow.MoReferenceAutoArrayItem" +} + // GetProperties returns the Properties field value if set, zero value otherwise (both if not set or set to explicit null). func (o *WorkflowMoReferenceAutoArrayItem) GetProperties() []WorkflowMoReferenceAutoProperty { if o == nil { @@ -126,7 +136,7 @@ func (o *WorkflowMoReferenceAutoArrayItem) GetPropertiesOk() ([]WorkflowMoRefere // HasProperties returns a boolean if a field has been set. func (o *WorkflowMoReferenceAutoArrayItem) HasProperties() bool { - if o != nil && IsNil(o.Properties) { + if o != nil && !IsNil(o.Properties) { return true } @@ -156,7 +166,13 @@ func (o WorkflowMoReferenceAutoArrayItem) ToMap() (map[string]interface{}, error if errWorkflowArrayItem != nil { return map[string]interface{}{}, errWorkflowArrayItem } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.Properties != nil { toSerialize["Properties"] = o.Properties @@ -178,6 +194,13 @@ func (o *WorkflowMoReferenceAutoArrayItem) UnmarshalJSON(data []byte) (err error "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -187,11 +210,23 @@ func (o *WorkflowMoReferenceAutoArrayItem) UnmarshalJSON(data []byte) (err error } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type WorkflowMoReferenceAutoArrayItemWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_workflow_mo_reference_auto_data_type.go b/model_workflow_mo_reference_auto_data_type.go index 2daa5ade9e..fe51679c3d 100644 --- a/model_workflow_mo_reference_auto_data_type.go +++ b/model_workflow_mo_reference_auto_data_type.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -81,6 +81,11 @@ func (o *WorkflowMoReferenceAutoDataType) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "workflow.MoReferenceAutoDataType" of the ClassId field. +func (o *WorkflowMoReferenceAutoDataType) GetDefaultClassId() interface{} { + return "workflow.MoReferenceAutoDataType" +} + // GetObjectType returns the ObjectType field value func (o *WorkflowMoReferenceAutoDataType) GetObjectType() string { if o == nil { @@ -105,6 +110,11 @@ func (o *WorkflowMoReferenceAutoDataType) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "workflow.MoReferenceAutoDataType" of the ObjectType field. +func (o *WorkflowMoReferenceAutoDataType) GetDefaultObjectType() interface{} { + return "workflow.MoReferenceAutoDataType" +} + // GetProperties returns the Properties field value if set, zero value otherwise (both if not set or set to explicit null). func (o *WorkflowMoReferenceAutoDataType) GetProperties() []WorkflowMoReferenceAutoProperty { if o == nil { @@ -126,7 +136,7 @@ func (o *WorkflowMoReferenceAutoDataType) GetPropertiesOk() ([]WorkflowMoReferen // HasProperties returns a boolean if a field has been set. func (o *WorkflowMoReferenceAutoDataType) HasProperties() bool { - if o != nil && IsNil(o.Properties) { + if o != nil && !IsNil(o.Properties) { return true } @@ -156,7 +166,13 @@ func (o WorkflowMoReferenceAutoDataType) ToMap() (map[string]interface{}, error) if errWorkflowBaseDataType != nil { return map[string]interface{}{}, errWorkflowBaseDataType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.Properties != nil { toSerialize["Properties"] = o.Properties @@ -178,6 +194,13 @@ func (o *WorkflowMoReferenceAutoDataType) UnmarshalJSON(data []byte) (err error) "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -187,11 +210,23 @@ func (o *WorkflowMoReferenceAutoDataType) UnmarshalJSON(data []byte) (err error) } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type WorkflowMoReferenceAutoDataTypeWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_workflow_mo_reference_auto_property.go b/model_workflow_mo_reference_auto_property.go index 7a0fd4edd5..36dfa4c906 100644 --- a/model_workflow_mo_reference_auto_property.go +++ b/model_workflow_mo_reference_auto_property.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -85,6 +85,11 @@ func (o *WorkflowMoReferenceAutoProperty) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "workflow.MoReferenceAutoProperty" of the ClassId field. +func (o *WorkflowMoReferenceAutoProperty) GetDefaultClassId() interface{} { + return "workflow.MoReferenceAutoProperty" +} + // GetObjectType returns the ObjectType field value func (o *WorkflowMoReferenceAutoProperty) GetObjectType() string { if o == nil { @@ -109,6 +114,11 @@ func (o *WorkflowMoReferenceAutoProperty) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "workflow.MoReferenceAutoProperty" of the ObjectType field. +func (o *WorkflowMoReferenceAutoProperty) GetDefaultObjectType() interface{} { + return "workflow.MoReferenceAutoProperty" +} + // GetDisplayAttributes returns the DisplayAttributes field value if set, zero value otherwise (both if not set or set to explicit null). func (o *WorkflowMoReferenceAutoProperty) GetDisplayAttributes() []string { if o == nil { @@ -130,7 +140,7 @@ func (o *WorkflowMoReferenceAutoProperty) GetDisplayAttributesOk() ([]string, bo // HasDisplayAttributes returns a boolean if a field has been set. func (o *WorkflowMoReferenceAutoProperty) HasDisplayAttributes() bool { - if o != nil && IsNil(o.DisplayAttributes) { + if o != nil && !IsNil(o.DisplayAttributes) { return true } @@ -163,7 +173,7 @@ func (o *WorkflowMoReferenceAutoProperty) GetFiltersOk() ([]string, bool) { // HasFilters returns a boolean if a field has been set. func (o *WorkflowMoReferenceAutoProperty) HasFilters() bool { - if o != nil && IsNil(o.Filters) { + if o != nil && !IsNil(o.Filters) { return true } @@ -268,7 +278,13 @@ func (o WorkflowMoReferenceAutoProperty) ToMap() (map[string]interface{}, error) if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.DisplayAttributes != nil { toSerialize["DisplayAttributes"] = o.DisplayAttributes @@ -299,6 +315,13 @@ func (o *WorkflowMoReferenceAutoProperty) UnmarshalJSON(data []byte) (err error) "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -308,11 +331,23 @@ func (o *WorkflowMoReferenceAutoProperty) UnmarshalJSON(data []byte) (err error) } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type WorkflowMoReferenceAutoPropertyWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_workflow_mo_reference_data_type.go b/model_workflow_mo_reference_data_type.go index 2fff3aa031..cbcc97b9a9 100644 --- a/model_workflow_mo_reference_data_type.go +++ b/model_workflow_mo_reference_data_type.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -81,6 +81,11 @@ func (o *WorkflowMoReferenceDataType) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "workflow.MoReferenceDataType" of the ClassId field. +func (o *WorkflowMoReferenceDataType) GetDefaultClassId() interface{} { + return "workflow.MoReferenceDataType" +} + // GetObjectType returns the ObjectType field value func (o *WorkflowMoReferenceDataType) GetObjectType() string { if o == nil { @@ -105,6 +110,11 @@ func (o *WorkflowMoReferenceDataType) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "workflow.MoReferenceDataType" of the ObjectType field. +func (o *WorkflowMoReferenceDataType) GetDefaultObjectType() interface{} { + return "workflow.MoReferenceDataType" +} + // GetProperties returns the Properties field value if set, zero value otherwise (both if not set or set to explicit null). func (o *WorkflowMoReferenceDataType) GetProperties() []WorkflowMoReferenceProperty { if o == nil { @@ -126,7 +136,7 @@ func (o *WorkflowMoReferenceDataType) GetPropertiesOk() ([]WorkflowMoReferencePr // HasProperties returns a boolean if a field has been set. func (o *WorkflowMoReferenceDataType) HasProperties() bool { - if o != nil && IsNil(o.Properties) { + if o != nil && !IsNil(o.Properties) { return true } @@ -156,7 +166,13 @@ func (o WorkflowMoReferenceDataType) ToMap() (map[string]interface{}, error) { if errWorkflowBaseDataType != nil { return map[string]interface{}{}, errWorkflowBaseDataType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.Properties != nil { toSerialize["Properties"] = o.Properties @@ -178,6 +194,13 @@ func (o *WorkflowMoReferenceDataType) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -187,11 +210,23 @@ func (o *WorkflowMoReferenceDataType) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type WorkflowMoReferenceDataTypeWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_workflow_mo_reference_property.go b/model_workflow_mo_reference_property.go index 05a6a8c7cb..5437e1c01a 100644 --- a/model_workflow_mo_reference_property.go +++ b/model_workflow_mo_reference_property.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -30,7 +30,7 @@ type WorkflowMoReferenceProperty struct { ObjectType string `json:"ObjectType"` DisplayAttributes []string `json:"DisplayAttributes,omitempty"` // Field to hold an Intersight API along with an optional filter to narrow down the search options. - Selector *string `json:"Selector,omitempty"` + Selector *string `json:"Selector,omitempty" validate:"regexp=^$|\\/api\\/v1\\/.*"` SelectorProperty NullableWorkflowSelectorProperty `json:"SelectorProperty,omitempty"` // A property from the Intersight object, value of which can be used as value for referenced input definition. ValueAttribute *string `json:"ValueAttribute,omitempty"` @@ -86,6 +86,11 @@ func (o *WorkflowMoReferenceProperty) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "workflow.MoReferenceProperty" of the ClassId field. +func (o *WorkflowMoReferenceProperty) GetDefaultClassId() interface{} { + return "workflow.MoReferenceProperty" +} + // GetObjectType returns the ObjectType field value func (o *WorkflowMoReferenceProperty) GetObjectType() string { if o == nil { @@ -110,6 +115,11 @@ func (o *WorkflowMoReferenceProperty) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "workflow.MoReferenceProperty" of the ObjectType field. +func (o *WorkflowMoReferenceProperty) GetDefaultObjectType() interface{} { + return "workflow.MoReferenceProperty" +} + // GetDisplayAttributes returns the DisplayAttributes field value if set, zero value otherwise (both if not set or set to explicit null). func (o *WorkflowMoReferenceProperty) GetDisplayAttributes() []string { if o == nil { @@ -131,7 +141,7 @@ func (o *WorkflowMoReferenceProperty) GetDisplayAttributesOk() ([]string, bool) // HasDisplayAttributes returns a boolean if a field has been set. func (o *WorkflowMoReferenceProperty) HasDisplayAttributes() bool { - if o != nil && IsNil(o.DisplayAttributes) { + if o != nil && !IsNil(o.DisplayAttributes) { return true } @@ -268,7 +278,13 @@ func (o WorkflowMoReferenceProperty) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.DisplayAttributes != nil { toSerialize["DisplayAttributes"] = o.DisplayAttributes @@ -299,6 +315,13 @@ func (o *WorkflowMoReferenceProperty) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -308,11 +331,23 @@ func (o *WorkflowMoReferenceProperty) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type WorkflowMoReferencePropertyWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` @@ -320,7 +355,7 @@ func (o *WorkflowMoReferenceProperty) UnmarshalJSON(data []byte) (err error) { ObjectType string `json:"ObjectType"` DisplayAttributes []string `json:"DisplayAttributes,omitempty"` // Field to hold an Intersight API along with an optional filter to narrow down the search options. - Selector *string `json:"Selector,omitempty"` + Selector *string `json:"Selector,omitempty" validate:"regexp=^$|\\/api\\/v1\\/.*"` SelectorProperty NullableWorkflowSelectorProperty `json:"SelectorProperty,omitempty"` // A property from the Intersight object, value of which can be used as value for referenced input definition. ValueAttribute *string `json:"ValueAttribute,omitempty"` diff --git a/model_workflow_operation_type_decommission.go b/model_workflow_operation_type_decommission.go index f00cb941f4..e13b4bc554 100644 --- a/model_workflow_operation_type_decommission.go +++ b/model_workflow_operation_type_decommission.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -83,6 +83,11 @@ func (o *WorkflowOperationTypeDecommission) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "workflow.OperationTypeDecommission" of the ClassId field. +func (o *WorkflowOperationTypeDecommission) GetDefaultClassId() interface{} { + return "workflow.OperationTypeDecommission" +} + // GetObjectType returns the ObjectType field value func (o *WorkflowOperationTypeDecommission) GetObjectType() string { if o == nil { @@ -107,6 +112,11 @@ func (o *WorkflowOperationTypeDecommission) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "workflow.OperationTypeDecommission" of the ObjectType field. +func (o *WorkflowOperationTypeDecommission) GetDefaultObjectType() interface{} { + return "workflow.OperationTypeDecommission" +} + // GetServiceItemInstance returns the ServiceItemInstance field value if set, zero value otherwise. func (o *WorkflowOperationTypeDecommission) GetServiceItemInstance() MoMoRef { if o == nil || IsNil(o.ServiceItemInstance) { @@ -157,7 +167,13 @@ func (o WorkflowOperationTypeDecommission) ToMap() (map[string]interface{}, erro if errWorkflowBaseOperation != nil { return map[string]interface{}{}, errWorkflowBaseOperation } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.ServiceItemInstance) { toSerialize["ServiceItemInstance"] = o.ServiceItemInstance @@ -179,6 +195,13 @@ func (o *WorkflowOperationTypeDecommission) UnmarshalJSON(data []byte) (err erro "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -188,11 +211,23 @@ func (o *WorkflowOperationTypeDecommission) UnmarshalJSON(data []byte) (err erro } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type WorkflowOperationTypeDecommissionWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_workflow_operation_type_deployment.go b/model_workflow_operation_type_deployment.go index 8646a82dcb..a1915c9fc4 100644 --- a/model_workflow_operation_type_deployment.go +++ b/model_workflow_operation_type_deployment.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -85,6 +85,10 @@ func (o *WorkflowOperationTypeDeployment) UnmarshalJSON(data []byte) (err error) "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -94,11 +98,23 @@ func (o *WorkflowOperationTypeDeployment) UnmarshalJSON(data []byte) (err error) } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type WorkflowOperationTypeDeploymentWithoutEmbeddedStruct struct { } diff --git a/model_workflow_operation_type_post_deployment.go b/model_workflow_operation_type_post_deployment.go index d4740d4575..78ca304e12 100644 --- a/model_workflow_operation_type_post_deployment.go +++ b/model_workflow_operation_type_post_deployment.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -84,6 +84,11 @@ func (o *WorkflowOperationTypePostDeployment) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "workflow.OperationTypePostDeployment" of the ClassId field. +func (o *WorkflowOperationTypePostDeployment) GetDefaultClassId() interface{} { + return "workflow.OperationTypePostDeployment" +} + // GetObjectType returns the ObjectType field value func (o *WorkflowOperationTypePostDeployment) GetObjectType() string { if o == nil { @@ -108,6 +113,11 @@ func (o *WorkflowOperationTypePostDeployment) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "workflow.OperationTypePostDeployment" of the ObjectType field. +func (o *WorkflowOperationTypePostDeployment) GetDefaultObjectType() interface{} { + return "workflow.OperationTypePostDeployment" +} + // GetServiceItemActionDefinition returns the ServiceItemActionDefinition field value if set, zero value otherwise. func (o *WorkflowOperationTypePostDeployment) GetServiceItemActionDefinition() MoMoRef { if o == nil || IsNil(o.ServiceItemActionDefinition) { @@ -190,7 +200,13 @@ func (o WorkflowOperationTypePostDeployment) ToMap() (map[string]interface{}, er if errWorkflowBaseOperation != nil { return map[string]interface{}{}, errWorkflowBaseOperation } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.ServiceItemActionDefinition) { toSerialize["ServiceItemActionDefinition"] = o.ServiceItemActionDefinition @@ -215,6 +231,13 @@ func (o *WorkflowOperationTypePostDeployment) UnmarshalJSON(data []byte) (err er "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -224,11 +247,23 @@ func (o *WorkflowOperationTypePostDeployment) UnmarshalJSON(data []byte) (err er } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type WorkflowOperationTypePostDeploymentWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_workflow_parameter_set.go b/model_workflow_parameter_set.go index 9a561bb8b9..80b84e766a 100644 --- a/model_workflow_parameter_set.go +++ b/model_workflow_parameter_set.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -34,7 +34,7 @@ type WorkflowParameterSet struct { ControlParameter *string `json:"ControlParameter,omitempty"` EnableParameters []string `json:"EnableParameters,omitempty"` // Name for the parameter set. Limited to 64 alphanumeric characters (upper and lower case), and special characters '-' and '_'. - Name *string `json:"Name,omitempty"` + Name *string `json:"Name,omitempty" validate:"regexp=^[a-zA-Z0-9_-]{1,64}$"` // The controlling parameter will be evaluated against this 'value'. Value *string `json:"Value,omitempty"` AdditionalProperties map[string]interface{} @@ -93,6 +93,11 @@ func (o *WorkflowParameterSet) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "workflow.ParameterSet" of the ClassId field. +func (o *WorkflowParameterSet) GetDefaultClassId() interface{} { + return "workflow.ParameterSet" +} + // GetObjectType returns the ObjectType field value func (o *WorkflowParameterSet) GetObjectType() string { if o == nil { @@ -117,6 +122,11 @@ func (o *WorkflowParameterSet) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "workflow.ParameterSet" of the ObjectType field. +func (o *WorkflowParameterSet) GetDefaultObjectType() interface{} { + return "workflow.ParameterSet" +} + // GetCondition returns the Condition field value if set, zero value otherwise. func (o *WorkflowParameterSet) GetCondition() string { if o == nil || IsNil(o.Condition) { @@ -202,7 +212,7 @@ func (o *WorkflowParameterSet) GetEnableParametersOk() ([]string, bool) { // HasEnableParameters returns a boolean if a field has been set. func (o *WorkflowParameterSet) HasEnableParameters() bool { - if o != nil && IsNil(o.EnableParameters) { + if o != nil && !IsNil(o.EnableParameters) { return true } @@ -296,7 +306,13 @@ func (o WorkflowParameterSet) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Condition) { toSerialize["Condition"] = o.Condition @@ -330,6 +346,13 @@ func (o *WorkflowParameterSet) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -339,11 +362,23 @@ func (o *WorkflowParameterSet) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type WorkflowParameterSetWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` @@ -355,7 +390,7 @@ func (o *WorkflowParameterSet) UnmarshalJSON(data []byte) (err error) { ControlParameter *string `json:"ControlParameter,omitempty"` EnableParameters []string `json:"EnableParameters,omitempty"` // Name for the parameter set. Limited to 64 alphanumeric characters (upper and lower case), and special characters '-' and '_'. - Name *string `json:"Name,omitempty"` + Name *string `json:"Name,omitempty" validate:"regexp=^[a-zA-Z0-9_-]{1,64}$"` // The controlling parameter will be evaluated against this 'value'. Value *string `json:"Value,omitempty"` } diff --git a/model_workflow_power_shell_api.go b/model_workflow_power_shell_api.go index fc4e110eb8..e057c13e2c 100644 --- a/model_workflow_power_shell_api.go +++ b/model_workflow_power_shell_api.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -86,6 +86,11 @@ func (o *WorkflowPowerShellApi) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "workflow.PowerShellApi" of the ClassId field. +func (o *WorkflowPowerShellApi) GetDefaultClassId() interface{} { + return "workflow.PowerShellApi" +} + // GetObjectType returns the ObjectType field value func (o *WorkflowPowerShellApi) GetObjectType() string { if o == nil { @@ -110,6 +115,11 @@ func (o *WorkflowPowerShellApi) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "workflow.PowerShellApi" of the ObjectType field. +func (o *WorkflowPowerShellApi) GetDefaultObjectType() interface{} { + return "workflow.PowerShellApi" +} + // GetDepth returns the Depth field value if set, zero value otherwise. func (o *WorkflowPowerShellApi) GetDepth() int64 { if o == nil || IsNil(o.Depth) { @@ -195,7 +205,7 @@ func (o *WorkflowPowerShellApi) GetPowerShellResponseSpecOk() (*interface{}, boo // HasPowerShellResponseSpec returns a boolean if a field has been set. func (o *WorkflowPowerShellApi) HasPowerShellResponseSpec() bool { - if o != nil && IsNil(o.PowerShellResponseSpec) { + if o != nil && !IsNil(o.PowerShellResponseSpec) { return true } @@ -225,7 +235,13 @@ func (o WorkflowPowerShellApi) ToMap() (map[string]interface{}, error) { if errWorkflowApi != nil { return map[string]interface{}{}, errWorkflowApi } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Depth) { toSerialize["Depth"] = o.Depth @@ -253,6 +269,13 @@ func (o *WorkflowPowerShellApi) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -262,11 +285,23 @@ func (o *WorkflowPowerShellApi) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type WorkflowPowerShellApiWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_workflow_power_shell_batch_api_executor.go b/model_workflow_power_shell_batch_api_executor.go index 1dd27deeb4..183eeb240c 100644 --- a/model_workflow_power_shell_batch_api_executor.go +++ b/model_workflow_power_shell_batch_api_executor.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -82,6 +82,11 @@ func (o *WorkflowPowerShellBatchApiExecutor) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "workflow.PowerShellBatchApiExecutor" of the ClassId field. +func (o *WorkflowPowerShellBatchApiExecutor) GetDefaultClassId() interface{} { + return "workflow.PowerShellBatchApiExecutor" +} + // GetObjectType returns the ObjectType field value func (o *WorkflowPowerShellBatchApiExecutor) GetObjectType() string { if o == nil { @@ -106,6 +111,11 @@ func (o *WorkflowPowerShellBatchApiExecutor) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "workflow.PowerShellBatchApiExecutor" of the ObjectType field. +func (o *WorkflowPowerShellBatchApiExecutor) GetDefaultObjectType() interface{} { + return "workflow.PowerShellBatchApiExecutor" +} + // GetErrorResponseHandler returns the ErrorResponseHandler field value if set, zero value otherwise (both if not set or set to explicit null). func (o *WorkflowPowerShellBatchApiExecutor) GetErrorResponseHandler() WorkflowErrorResponseHandlerRelationship { if o == nil || IsNil(o.ErrorResponseHandler.Get()) { @@ -210,7 +220,13 @@ func (o WorkflowPowerShellBatchApiExecutor) ToMap() (map[string]interface{}, err if errWorkflowBatchExecutor != nil { return map[string]interface{}{}, errWorkflowBatchExecutor } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.ErrorResponseHandler.IsSet() { toSerialize["ErrorResponseHandler"] = o.ErrorResponseHandler.Get() @@ -235,6 +251,13 @@ func (o *WorkflowPowerShellBatchApiExecutor) UnmarshalJSON(data []byte) (err err "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -244,11 +267,23 @@ func (o *WorkflowPowerShellBatchApiExecutor) UnmarshalJSON(data []byte) (err err } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type WorkflowPowerShellBatchApiExecutorWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_workflow_power_shell_batch_api_executor_list.go b/model_workflow_power_shell_batch_api_executor_list.go index a543e00944..732b4e78c6 100644 --- a/model_workflow_power_shell_batch_api_executor_list.go +++ b/model_workflow_power_shell_batch_api_executor_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *WorkflowPowerShellBatchApiExecutorList) GetResultsOk() ([]WorkflowPower // HasResults returns a boolean if a field has been set. func (o *WorkflowPowerShellBatchApiExecutorList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *WorkflowPowerShellBatchApiExecutorList) UnmarshalJSON(data []byte) (err "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *WorkflowPowerShellBatchApiExecutorList) UnmarshalJSON(data []byte) (err } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type WorkflowPowerShellBatchApiExecutorListWithoutEmbeddedStruct struct { // The total number of 'workflow.PowerShellBatchApiExecutor' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_workflow_power_shell_batch_api_executor_response.go b/model_workflow_power_shell_batch_api_executor_response.go index 6b6ef6604f..3a3fd21021 100644 --- a/model_workflow_power_shell_batch_api_executor_response.go +++ b/model_workflow_power_shell_batch_api_executor_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_workflow_primitive_array_item.go b/model_workflow_primitive_array_item.go index 5fbb726d3f..9e1f85068e 100644 --- a/model_workflow_primitive_array_item.go +++ b/model_workflow_primitive_array_item.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -81,6 +81,11 @@ func (o *WorkflowPrimitiveArrayItem) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "workflow.PrimitiveArrayItem" of the ClassId field. +func (o *WorkflowPrimitiveArrayItem) GetDefaultClassId() interface{} { + return "workflow.PrimitiveArrayItem" +} + // GetObjectType returns the ObjectType field value func (o *WorkflowPrimitiveArrayItem) GetObjectType() string { if o == nil { @@ -105,6 +110,11 @@ func (o *WorkflowPrimitiveArrayItem) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "workflow.PrimitiveArrayItem" of the ObjectType field. +func (o *WorkflowPrimitiveArrayItem) GetDefaultObjectType() interface{} { + return "workflow.PrimitiveArrayItem" +} + // GetProperties returns the Properties field value if set, zero value otherwise (both if not set or set to explicit null). func (o *WorkflowPrimitiveArrayItem) GetProperties() WorkflowPrimitiveDataProperty { if o == nil || IsNil(o.Properties.Get()) { @@ -166,7 +176,13 @@ func (o WorkflowPrimitiveArrayItem) ToMap() (map[string]interface{}, error) { if errWorkflowArrayItem != nil { return map[string]interface{}{}, errWorkflowArrayItem } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.Properties.IsSet() { toSerialize["Properties"] = o.Properties.Get() @@ -188,6 +204,13 @@ func (o *WorkflowPrimitiveArrayItem) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -197,11 +220,23 @@ func (o *WorkflowPrimitiveArrayItem) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type WorkflowPrimitiveArrayItemWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_workflow_primitive_data_property.go b/model_workflow_primitive_data_property.go index e6f49c79f5..b1cb06df5c 100644 --- a/model_workflow_primitive_data_property.go +++ b/model_workflow_primitive_data_property.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -90,6 +90,11 @@ func (o *WorkflowPrimitiveDataProperty) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "workflow.PrimitiveDataProperty" of the ClassId field. +func (o *WorkflowPrimitiveDataProperty) GetDefaultClassId() interface{} { + return "workflow.PrimitiveDataProperty" +} + // GetObjectType returns the ObjectType field value func (o *WorkflowPrimitiveDataProperty) GetObjectType() string { if o == nil { @@ -114,6 +119,11 @@ func (o *WorkflowPrimitiveDataProperty) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "workflow.PrimitiveDataProperty" of the ObjectType field. +func (o *WorkflowPrimitiveDataProperty) GetDefaultObjectType() interface{} { + return "workflow.PrimitiveDataProperty" +} + // GetConstraints returns the Constraints field value if set, zero value otherwise (both if not set or set to explicit null). func (o *WorkflowPrimitiveDataProperty) GetConstraints() WorkflowConstraints { if o == nil || IsNil(o.Constraints.Get()) { @@ -178,7 +188,7 @@ func (o *WorkflowPrimitiveDataProperty) GetInventorySelectorOk() ([]WorkflowMoRe // HasInventorySelector returns a boolean if a field has been set. func (o *WorkflowPrimitiveDataProperty) HasInventorySelector() bool { - if o != nil && IsNil(o.InventorySelector) { + if o != nil && !IsNil(o.InventorySelector) { return true } @@ -272,7 +282,13 @@ func (o WorkflowPrimitiveDataProperty) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.Constraints.IsSet() { toSerialize["Constraints"] = o.Constraints.Get() @@ -303,6 +319,13 @@ func (o *WorkflowPrimitiveDataProperty) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -312,11 +335,23 @@ func (o *WorkflowPrimitiveDataProperty) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type WorkflowPrimitiveDataPropertyWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_workflow_primitive_data_type.go b/model_workflow_primitive_data_type.go index 03d7d35728..ac2ab0f331 100644 --- a/model_workflow_primitive_data_type.go +++ b/model_workflow_primitive_data_type.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -81,6 +81,11 @@ func (o *WorkflowPrimitiveDataType) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "workflow.PrimitiveDataType" of the ClassId field. +func (o *WorkflowPrimitiveDataType) GetDefaultClassId() interface{} { + return "workflow.PrimitiveDataType" +} + // GetObjectType returns the ObjectType field value func (o *WorkflowPrimitiveDataType) GetObjectType() string { if o == nil { @@ -105,6 +110,11 @@ func (o *WorkflowPrimitiveDataType) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "workflow.PrimitiveDataType" of the ObjectType field. +func (o *WorkflowPrimitiveDataType) GetDefaultObjectType() interface{} { + return "workflow.PrimitiveDataType" +} + // GetProperties returns the Properties field value if set, zero value otherwise (both if not set or set to explicit null). func (o *WorkflowPrimitiveDataType) GetProperties() WorkflowPrimitiveDataProperty { if o == nil || IsNil(o.Properties.Get()) { @@ -166,7 +176,13 @@ func (o WorkflowPrimitiveDataType) ToMap() (map[string]interface{}, error) { if errWorkflowBaseDataType != nil { return map[string]interface{}{}, errWorkflowBaseDataType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.Properties.IsSet() { toSerialize["Properties"] = o.Properties.Get() @@ -188,6 +204,13 @@ func (o *WorkflowPrimitiveDataType) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -197,11 +220,23 @@ func (o *WorkflowPrimitiveDataType) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type WorkflowPrimitiveDataTypeWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_workflow_properties.go b/model_workflow_properties.go index 324b5e61c6..6322af7eb2 100644 --- a/model_workflow_properties.go +++ b/model_workflow_properties.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -124,6 +124,11 @@ func (o *WorkflowProperties) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "workflow.Properties" of the ClassId field. +func (o *WorkflowProperties) GetDefaultClassId() interface{} { + return "workflow.Properties" +} + // GetObjectType returns the ObjectType field value func (o *WorkflowProperties) GetObjectType() string { if o == nil { @@ -148,6 +153,11 @@ func (o *WorkflowProperties) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "workflow.Properties" of the ObjectType field. +func (o *WorkflowProperties) GetDefaultObjectType() interface{} { + return "workflow.Properties" +} + // GetCloneable returns the Cloneable field value if set, zero value otherwise. func (o *WorkflowProperties) GetCloneable() bool { if o == nil || IsNil(o.Cloneable) { @@ -233,7 +243,7 @@ func (o *WorkflowProperties) GetInputDefinitionOk() ([]WorkflowBaseDataType, boo // HasInputDefinition returns a boolean if a field has been set. func (o *WorkflowProperties) HasInputDefinition() bool { - if o != nil && IsNil(o.InputDefinition) { + if o != nil && !IsNil(o.InputDefinition) { return true } @@ -266,7 +276,7 @@ func (o *WorkflowProperties) GetOutputDefinitionOk() ([]WorkflowBaseDataType, bo // HasOutputDefinition returns a boolean if a field has been set. func (o *WorkflowProperties) HasOutputDefinition() bool { - if o != nil && IsNil(o.OutputDefinition) { + if o != nil && !IsNil(o.OutputDefinition) { return true } @@ -520,7 +530,13 @@ func (o WorkflowProperties) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Cloneable) { toSerialize["Cloneable"] = o.Cloneable @@ -572,6 +588,13 @@ func (o *WorkflowProperties) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -581,11 +604,23 @@ func (o *WorkflowProperties) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type WorkflowPropertiesWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_workflow_resource_inline_selector.go b/model_workflow_resource_inline_selector.go index 49b736f296..84573f13e8 100644 --- a/model_workflow_resource_inline_selector.go +++ b/model_workflow_resource_inline_selector.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -29,7 +29,7 @@ type WorkflowResourceInlineSelector struct { // The fully-qualified name of the instantiated, concrete type. The value should be the same as the 'ClassId' property. ObjectType string `json:"ObjectType"` // The odata based filter URL to select the resources. - Selector *string `json:"Selector,omitempty"` + Selector *string `json:"Selector,omitempty" validate:"regexp=^$|\\/api\\/v1\\/.*"` AdditionalProperties map[string]interface{} } @@ -82,6 +82,11 @@ func (o *WorkflowResourceInlineSelector) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "workflow.ResourceInlineSelector" of the ClassId field. +func (o *WorkflowResourceInlineSelector) GetDefaultClassId() interface{} { + return "workflow.ResourceInlineSelector" +} + // GetObjectType returns the ObjectType field value func (o *WorkflowResourceInlineSelector) GetObjectType() string { if o == nil { @@ -106,6 +111,11 @@ func (o *WorkflowResourceInlineSelector) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "workflow.ResourceInlineSelector" of the ObjectType field. +func (o *WorkflowResourceInlineSelector) GetDefaultObjectType() interface{} { + return "workflow.ResourceInlineSelector" +} + // GetSelector returns the Selector field value if set, zero value otherwise. func (o *WorkflowResourceInlineSelector) GetSelector() string { if o == nil || IsNil(o.Selector) { @@ -156,7 +166,13 @@ func (o WorkflowResourceInlineSelector) ToMap() (map[string]interface{}, error) if errWorkflowAbstractResourceSelector != nil { return map[string]interface{}{}, errWorkflowAbstractResourceSelector } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Selector) { toSerialize["Selector"] = o.Selector @@ -178,6 +194,13 @@ func (o *WorkflowResourceInlineSelector) UnmarshalJSON(data []byte) (err error) "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -187,18 +210,30 @@ func (o *WorkflowResourceInlineSelector) UnmarshalJSON(data []byte) (err error) } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type WorkflowResourceInlineSelectorWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` // The fully-qualified name of the instantiated, concrete type. The value should be the same as the 'ClassId' property. ObjectType string `json:"ObjectType"` // The odata based filter URL to select the resources. - Selector *string `json:"Selector,omitempty"` + Selector *string `json:"Selector,omitempty" validate:"regexp=^$|\\/api\\/v1\\/.*"` } varWorkflowResourceInlineSelectorWithoutEmbeddedStruct := WorkflowResourceInlineSelectorWithoutEmbeddedStruct{} diff --git a/model_workflow_resource_selector_criteria.go b/model_workflow_resource_selector_criteria.go index 73feb79026..8f4987005f 100644 --- a/model_workflow_resource_selector_criteria.go +++ b/model_workflow_resource_selector_criteria.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -83,6 +83,11 @@ func (o *WorkflowResourceSelectorCriteria) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "workflow.ResourceSelectorCriteria" of the ClassId field. +func (o *WorkflowResourceSelectorCriteria) GetDefaultClassId() interface{} { + return "workflow.ResourceSelectorCriteria" +} + // GetObjectType returns the ObjectType field value func (o *WorkflowResourceSelectorCriteria) GetObjectType() string { if o == nil { @@ -107,6 +112,11 @@ func (o *WorkflowResourceSelectorCriteria) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "workflow.ResourceSelectorCriteria" of the ObjectType field. +func (o *WorkflowResourceSelectorCriteria) GetDefaultObjectType() interface{} { + return "workflow.ResourceSelectorCriteria" +} + // GetParameters returns the Parameters field value if set, zero value otherwise (both if not set or set to explicit null). func (o *WorkflowResourceSelectorCriteria) GetParameters() interface{} { if o == nil { @@ -128,7 +138,7 @@ func (o *WorkflowResourceSelectorCriteria) GetParametersOk() (*interface{}, bool // HasParameters returns a boolean if a field has been set. func (o *WorkflowResourceSelectorCriteria) HasParameters() bool { - if o != nil && IsNil(o.Parameters) { + if o != nil && !IsNil(o.Parameters) { return true } @@ -190,7 +200,13 @@ func (o WorkflowResourceSelectorCriteria) ToMap() (map[string]interface{}, error if errWorkflowAbstractResourceSelector != nil { return map[string]interface{}{}, errWorkflowAbstractResourceSelector } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.Parameters != nil { toSerialize["Parameters"] = o.Parameters @@ -215,6 +231,13 @@ func (o *WorkflowResourceSelectorCriteria) UnmarshalJSON(data []byte) (err error "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -224,11 +247,23 @@ func (o *WorkflowResourceSelectorCriteria) UnmarshalJSON(data []byte) (err error } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type WorkflowResourceSelectorCriteriaWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_workflow_result_handler.go b/model_workflow_result_handler.go index 746024421d..03f54b3d91 100644 --- a/model_workflow_result_handler.go +++ b/model_workflow_result_handler.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -83,6 +83,10 @@ func (o *WorkflowResultHandler) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -92,11 +96,23 @@ func (o *WorkflowResultHandler) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type WorkflowResultHandlerWithoutEmbeddedStruct struct { } diff --git a/model_workflow_rollback_task.go b/model_workflow_rollback_task.go index 596553e231..31d6af6557 100644 --- a/model_workflow_rollback_task.go +++ b/model_workflow_rollback_task.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -98,6 +98,11 @@ func (o *WorkflowRollbackTask) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "workflow.RollbackTask" of the ClassId field. +func (o *WorkflowRollbackTask) GetDefaultClassId() interface{} { + return "workflow.RollbackTask" +} + // GetObjectType returns the ObjectType field value func (o *WorkflowRollbackTask) GetObjectType() string { if o == nil { @@ -122,6 +127,11 @@ func (o *WorkflowRollbackTask) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "workflow.RollbackTask" of the ObjectType field. +func (o *WorkflowRollbackTask) GetDefaultObjectType() interface{} { + return "workflow.RollbackTask" +} + // GetCatalogMoid returns the CatalogMoid field value if set, zero value otherwise. func (o *WorkflowRollbackTask) GetCatalogMoid() string { if o == nil || IsNil(o.CatalogMoid) { @@ -207,7 +217,7 @@ func (o *WorkflowRollbackTask) GetInputParametersOk() (*interface{}, bool) { // HasInputParameters returns a boolean if a field has been set. func (o *WorkflowRollbackTask) HasInputParameters() bool { - if o != nil && IsNil(o.InputParameters) { + if o != nil && !IsNil(o.InputParameters) { return true } @@ -365,7 +375,13 @@ func (o WorkflowRollbackTask) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.CatalogMoid) { toSerialize["CatalogMoid"] = o.CatalogMoid @@ -405,6 +421,13 @@ func (o *WorkflowRollbackTask) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -414,11 +437,23 @@ func (o *WorkflowRollbackTask) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type WorkflowRollbackTaskWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_workflow_rollback_workflow.go b/model_workflow_rollback_workflow.go index 948326fe4c..a404fe421d 100644 --- a/model_workflow_rollback_workflow.go +++ b/model_workflow_rollback_workflow.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -99,6 +99,11 @@ func (o *WorkflowRollbackWorkflow) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "workflow.RollbackWorkflow" of the ClassId field. +func (o *WorkflowRollbackWorkflow) GetDefaultClassId() interface{} { + return "workflow.RollbackWorkflow" +} + // GetObjectType returns the ObjectType field value func (o *WorkflowRollbackWorkflow) GetObjectType() string { if o == nil { @@ -123,6 +128,11 @@ func (o *WorkflowRollbackWorkflow) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "workflow.RollbackWorkflow" of the ObjectType field. +func (o *WorkflowRollbackWorkflow) GetDefaultObjectType() interface{} { + return "workflow.RollbackWorkflow" +} + // GetAction returns the Action field value if set, zero value otherwise. func (o *WorkflowRollbackWorkflow) GetAction() string { if o == nil || IsNil(o.Action) { @@ -208,7 +218,7 @@ func (o *WorkflowRollbackWorkflow) GetRollbackTasksOk() ([]WorkflowRollbackWorkf // HasRollbackTasks returns a boolean if a field has been set. func (o *WorkflowRollbackWorkflow) HasRollbackTasks() bool { - if o != nil && IsNil(o.RollbackTasks) { + if o != nil && !IsNil(o.RollbackTasks) { return true } @@ -241,7 +251,7 @@ func (o *WorkflowRollbackWorkflow) GetSelectedTasksOk() ([]WorkflowRollbackWorkf // HasSelectedTasks returns a boolean if a field has been set. func (o *WorkflowRollbackWorkflow) HasSelectedTasks() bool { - if o != nil && IsNil(o.SelectedTasks) { + if o != nil && !IsNil(o.SelectedTasks) { return true } @@ -349,7 +359,7 @@ func (o *WorkflowRollbackWorkflow) GetRollbackWorkflowsOk() ([]WorkflowWorkflowI // HasRollbackWorkflows returns a boolean if a field has been set. func (o *WorkflowRollbackWorkflow) HasRollbackWorkflows() bool { - if o != nil && IsNil(o.RollbackWorkflows) { + if o != nil && !IsNil(o.RollbackWorkflows) { return true } @@ -379,7 +389,13 @@ func (o WorkflowRollbackWorkflow) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Action) { toSerialize["Action"] = o.Action @@ -419,6 +435,13 @@ func (o *WorkflowRollbackWorkflow) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -428,11 +451,23 @@ func (o *WorkflowRollbackWorkflow) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type WorkflowRollbackWorkflowWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_workflow_rollback_workflow_list.go b/model_workflow_rollback_workflow_list.go index c48e4cddfa..6ee760d6fc 100644 --- a/model_workflow_rollback_workflow_list.go +++ b/model_workflow_rollback_workflow_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *WorkflowRollbackWorkflowList) GetResultsOk() ([]WorkflowRollbackWorkflo // HasResults returns a boolean if a field has been set. func (o *WorkflowRollbackWorkflowList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *WorkflowRollbackWorkflowList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *WorkflowRollbackWorkflowList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type WorkflowRollbackWorkflowListWithoutEmbeddedStruct struct { // The total number of 'workflow.RollbackWorkflow' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_workflow_rollback_workflow_response.go b/model_workflow_rollback_workflow_response.go index a04fabc20a..3664df090c 100644 --- a/model_workflow_rollback_workflow_response.go +++ b/model_workflow_rollback_workflow_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_workflow_rollback_workflow_task.go b/model_workflow_rollback_workflow_task.go index b97c3f008b..181012a53b 100644 --- a/model_workflow_rollback_workflow_task.go +++ b/model_workflow_rollback_workflow_task.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -96,6 +96,11 @@ func (o *WorkflowRollbackWorkflowTask) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "workflow.RollbackWorkflowTask" of the ClassId field. +func (o *WorkflowRollbackWorkflowTask) GetDefaultClassId() interface{} { + return "workflow.RollbackWorkflowTask" +} + // GetObjectType returns the ObjectType field value func (o *WorkflowRollbackWorkflowTask) GetObjectType() string { if o == nil { @@ -120,6 +125,11 @@ func (o *WorkflowRollbackWorkflowTask) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "workflow.RollbackWorkflowTask" of the ObjectType field. +func (o *WorkflowRollbackWorkflowTask) GetDefaultObjectType() interface{} { + return "workflow.RollbackWorkflowTask" +} + // GetDescription returns the Description field value if set, zero value otherwise. func (o *WorkflowRollbackWorkflowTask) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -394,7 +404,13 @@ func (o WorkflowRollbackWorkflowTask) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Description) { toSerialize["Description"] = o.Description @@ -437,6 +453,13 @@ func (o *WorkflowRollbackWorkflowTask) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -446,11 +469,23 @@ func (o *WorkflowRollbackWorkflowTask) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type WorkflowRollbackWorkflowTaskWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_workflow_selector_property.go b/model_workflow_selector_property.go index ca679903e0..76a117a32b 100644 --- a/model_workflow_selector_property.go +++ b/model_workflow_selector_property.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -88,6 +88,11 @@ func (o *WorkflowSelectorProperty) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "workflow.SelectorProperty" of the ClassId field. +func (o *WorkflowSelectorProperty) GetDefaultClassId() interface{} { + return "workflow.SelectorProperty" +} + // GetObjectType returns the ObjectType field value func (o *WorkflowSelectorProperty) GetObjectType() string { if o == nil { @@ -112,6 +117,11 @@ func (o *WorkflowSelectorProperty) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "workflow.SelectorProperty" of the ObjectType field. +func (o *WorkflowSelectorProperty) GetDefaultObjectType() interface{} { + return "workflow.SelectorProperty" +} + // GetBody returns the Body field value if set, zero value otherwise (both if not set or set to explicit null). func (o *WorkflowSelectorProperty) GetBody() interface{} { if o == nil { @@ -133,7 +143,7 @@ func (o *WorkflowSelectorProperty) GetBodyOk() (*interface{}, bool) { // HasBody returns a boolean if a field has been set. func (o *WorkflowSelectorProperty) HasBody() bool { - if o != nil && IsNil(o.Body) { + if o != nil && !IsNil(o.Body) { return true } @@ -195,7 +205,13 @@ func (o WorkflowSelectorProperty) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.Body != nil { toSerialize["Body"] = o.Body @@ -220,6 +236,13 @@ func (o *WorkflowSelectorProperty) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -229,11 +252,23 @@ func (o *WorkflowSelectorProperty) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type WorkflowSelectorPropertyWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_workflow_sequence_params.go b/model_workflow_sequence_params.go index f09555b726..3999dea698 100644 --- a/model_workflow_sequence_params.go +++ b/model_workflow_sequence_params.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -83,6 +83,10 @@ func (o *WorkflowSequenceParams) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -92,11 +96,23 @@ func (o *WorkflowSequenceParams) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type WorkflowSequenceParamsWithoutEmbeddedStruct struct { } diff --git a/model_workflow_serial_loop_task.go b/model_workflow_serial_loop_task.go index 76c20eb66d..88bb574b49 100644 --- a/model_workflow_serial_loop_task.go +++ b/model_workflow_serial_loop_task.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -82,6 +82,11 @@ func (o *WorkflowSerialLoopTask) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "workflow.SerialLoopTask" of the ClassId field. +func (o *WorkflowSerialLoopTask) GetDefaultClassId() interface{} { + return "workflow.SerialLoopTask" +} + // GetObjectType returns the ObjectType field value func (o *WorkflowSerialLoopTask) GetObjectType() string { if o == nil { @@ -106,6 +111,11 @@ func (o *WorkflowSerialLoopTask) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "workflow.SerialLoopTask" of the ObjectType field. +func (o *WorkflowSerialLoopTask) GetDefaultObjectType() interface{} { + return "workflow.SerialLoopTask" +} + // GetCondition returns the Condition field value if set, zero value otherwise. func (o *WorkflowSerialLoopTask) GetCondition() string { if o == nil || IsNil(o.Condition) { @@ -156,7 +166,13 @@ func (o WorkflowSerialLoopTask) ToMap() (map[string]interface{}, error) { if errWorkflowAbstractLoopTask != nil { return map[string]interface{}{}, errWorkflowAbstractLoopTask } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Condition) { toSerialize["Condition"] = o.Condition @@ -178,6 +194,13 @@ func (o *WorkflowSerialLoopTask) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -187,11 +210,23 @@ func (o *WorkflowSerialLoopTask) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type WorkflowSerialLoopTaskWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_workflow_service_item_action_definition.go b/model_workflow_service_item_action_definition.go index a23d5a6a9e..9d7f302ce6 100644 --- a/model_workflow_service_item_action_definition.go +++ b/model_workflow_service_item_action_definition.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -39,9 +39,9 @@ type WorkflowServiceItemActionDefinition struct { Description *string `json:"Description,omitempty"` InputDefinition []WorkflowBaseDataType `json:"InputDefinition,omitempty"` // A user friendly short name to identify the action. Name can only contain letters (a-z, A-Z), numbers (0-9), hyphen (-), period (.), colon (:), space ( ) or an underscore (_). - Label *string `json:"Label,omitempty"` + Label *string `json:"Label,omitempty" validate:"regexp=^[a-zA-Z0-9]+[\\\\sa-zA-Z0-9_.:-]{1,92}$"` // The name for this action definition. Name can only contain letters (a-z, A-Z), numbers (0-9), hyphen (-), period (.), colon (:) or an underscore (_). Name of the action must be unique within a service item definition. - Name *string `json:"Name,omitempty"` + Name *string `json:"Name,omitempty" validate:"regexp=^[a-zA-Z0-9_.:-]{1,64}$"` // Value in seconds to specify the periodicity of the workflows. A zero value indicate the workflow will not execute periodically. A non-zero value indicate, the workflow will be executed periodically with this periodicity. Periodicity *int64 `json:"Periodicity,omitempty"` PostCoreWorkflows []WorkflowServiceItemActionWorkflowDefinition `json:"PostCoreWorkflows,omitempty"` @@ -117,6 +117,11 @@ func (o *WorkflowServiceItemActionDefinition) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "workflow.ServiceItemActionDefinition" of the ClassId field. +func (o *WorkflowServiceItemActionDefinition) GetDefaultClassId() interface{} { + return "workflow.ServiceItemActionDefinition" +} + // GetObjectType returns the ObjectType field value func (o *WorkflowServiceItemActionDefinition) GetObjectType() string { if o == nil { @@ -141,6 +146,11 @@ func (o *WorkflowServiceItemActionDefinition) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "workflow.ServiceItemActionDefinition" of the ObjectType field. +func (o *WorkflowServiceItemActionDefinition) GetDefaultObjectType() interface{} { + return "workflow.ServiceItemActionDefinition" +} + // GetActionProperties returns the ActionProperties field value if set, zero value otherwise (both if not set or set to explicit null). func (o *WorkflowServiceItemActionDefinition) GetActionProperties() WorkflowServiceItemActionProperties { if o == nil || IsNil(o.ActionProperties.Get()) { @@ -237,7 +247,7 @@ func (o *WorkflowServiceItemActionDefinition) GetAllowedInstanceStatesOk() ([]st // HasAllowedInstanceStates returns a boolean if a field has been set. func (o *WorkflowServiceItemActionDefinition) HasAllowedInstanceStates() bool { - if o != nil && IsNil(o.AllowedInstanceStates) { + if o != nil && !IsNil(o.AllowedInstanceStates) { return true } @@ -270,7 +280,7 @@ func (o *WorkflowServiceItemActionDefinition) GetAttributeParametersOk() (*inter // HasAttributeParameters returns a boolean if a field has been set. func (o *WorkflowServiceItemActionDefinition) HasAttributeParameters() bool { - if o != nil && IsNil(o.AttributeParameters) { + if o != nil && !IsNil(o.AttributeParameters) { return true } @@ -303,7 +313,7 @@ func (o *WorkflowServiceItemActionDefinition) GetCoreWorkflowsOk() ([]WorkflowSe // HasCoreWorkflows returns a boolean if a field has been set. func (o *WorkflowServiceItemActionDefinition) HasCoreWorkflows() bool { - if o != nil && IsNil(o.CoreWorkflows) { + if o != nil && !IsNil(o.CoreWorkflows) { return true } @@ -368,7 +378,7 @@ func (o *WorkflowServiceItemActionDefinition) GetInputDefinitionOk() ([]Workflow // HasInputDefinition returns a boolean if a field has been set. func (o *WorkflowServiceItemActionDefinition) HasInputDefinition() bool { - if o != nil && IsNil(o.InputDefinition) { + if o != nil && !IsNil(o.InputDefinition) { return true } @@ -497,7 +507,7 @@ func (o *WorkflowServiceItemActionDefinition) GetPostCoreWorkflowsOk() ([]Workfl // HasPostCoreWorkflows returns a boolean if a field has been set. func (o *WorkflowServiceItemActionDefinition) HasPostCoreWorkflows() bool { - if o != nil && IsNil(o.PostCoreWorkflows) { + if o != nil && !IsNil(o.PostCoreWorkflows) { return true } @@ -530,7 +540,7 @@ func (o *WorkflowServiceItemActionDefinition) GetPreCoreWorkflowsOk() ([]Workflo // HasPreCoreWorkflows returns a boolean if a field has been set. func (o *WorkflowServiceItemActionDefinition) HasPreCoreWorkflows() bool { - if o != nil && IsNil(o.PreCoreWorkflows) { + if o != nil && !IsNil(o.PreCoreWorkflows) { return true } @@ -595,7 +605,7 @@ func (o *WorkflowServiceItemActionDefinition) GetStopWorkflowsOk() ([]WorkflowSe // HasStopWorkflows returns a boolean if a field has been set. func (o *WorkflowServiceItemActionDefinition) HasStopWorkflows() bool { - if o != nil && IsNil(o.StopWorkflows) { + if o != nil && !IsNil(o.StopWorkflows) { return true } @@ -703,7 +713,7 @@ func (o *WorkflowServiceItemActionDefinition) GetValidationWorkflowsOk() ([]Work // HasValidationWorkflows returns a boolean if a field has been set. func (o *WorkflowServiceItemActionDefinition) HasValidationWorkflows() bool { - if o != nil && IsNil(o.ValidationWorkflows) { + if o != nil && !IsNil(o.ValidationWorkflows) { return true } @@ -736,7 +746,7 @@ func (o *WorkflowServiceItemActionDefinition) GetAssociatedRolesOk() ([]IamRoleR // HasAssociatedRoles returns a boolean if a field has been set. func (o *WorkflowServiceItemActionDefinition) HasAssociatedRoles() bool { - if o != nil && IsNil(o.AssociatedRoles) { + if o != nil && !IsNil(o.AssociatedRoles) { return true } @@ -852,7 +862,13 @@ func (o WorkflowServiceItemActionDefinition) ToMap() (map[string]interface{}, er if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.ActionProperties.IsSet() { toSerialize["ActionProperties"] = o.ActionProperties.Get() @@ -931,6 +947,13 @@ func (o *WorkflowServiceItemActionDefinition) UnmarshalJSON(data []byte) (err er "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -940,11 +963,23 @@ func (o *WorkflowServiceItemActionDefinition) UnmarshalJSON(data []byte) (err er } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type WorkflowServiceItemActionDefinitionWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` @@ -961,9 +996,9 @@ func (o *WorkflowServiceItemActionDefinition) UnmarshalJSON(data []byte) (err er Description *string `json:"Description,omitempty"` InputDefinition []WorkflowBaseDataType `json:"InputDefinition,omitempty"` // A user friendly short name to identify the action. Name can only contain letters (a-z, A-Z), numbers (0-9), hyphen (-), period (.), colon (:), space ( ) or an underscore (_). - Label *string `json:"Label,omitempty"` + Label *string `json:"Label,omitempty" validate:"regexp=^[a-zA-Z0-9]+[\\\\sa-zA-Z0-9_.:-]{1,92}$"` // The name for this action definition. Name can only contain letters (a-z, A-Z), numbers (0-9), hyphen (-), period (.), colon (:) or an underscore (_). Name of the action must be unique within a service item definition. - Name *string `json:"Name,omitempty"` + Name *string `json:"Name,omitempty" validate:"regexp=^[a-zA-Z0-9_.:-]{1,64}$"` // Value in seconds to specify the periodicity of the workflows. A zero value indicate the workflow will not execute periodically. A non-zero value indicate, the workflow will be executed periodically with this periodicity. Periodicity *int64 `json:"Periodicity,omitempty"` PostCoreWorkflows []WorkflowServiceItemActionWorkflowDefinition `json:"PostCoreWorkflows,omitempty"` diff --git a/model_workflow_service_item_action_definition_list.go b/model_workflow_service_item_action_definition_list.go index 77f60c40a0..e96797c233 100644 --- a/model_workflow_service_item_action_definition_list.go +++ b/model_workflow_service_item_action_definition_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *WorkflowServiceItemActionDefinitionList) GetResultsOk() ([]WorkflowServ // HasResults returns a boolean if a field has been set. func (o *WorkflowServiceItemActionDefinitionList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *WorkflowServiceItemActionDefinitionList) UnmarshalJSON(data []byte) (er "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *WorkflowServiceItemActionDefinitionList) UnmarshalJSON(data []byte) (er } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type WorkflowServiceItemActionDefinitionListWithoutEmbeddedStruct struct { // The total number of 'workflow.ServiceItemActionDefinition' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_workflow_service_item_action_definition_relationship.go b/model_workflow_service_item_action_definition_relationship.go index 32b0f346e6..3420fe65ea 100644 --- a/model_workflow_service_item_action_definition_relationship.go +++ b/model_workflow_service_item_action_definition_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_workflow_service_item_action_definition_response.go b/model_workflow_service_item_action_definition_response.go index 28f88b9d6a..0221d5dee9 100644 --- a/model_workflow_service_item_action_definition_response.go +++ b/model_workflow_service_item_action_definition_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_workflow_service_item_action_instance.go b/model_workflow_service_item_action_instance.go index f8f0290bbb..0094f4a250 100644 --- a/model_workflow_service_item_action_instance.go +++ b/model_workflow_service_item_action_instance.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -118,6 +118,11 @@ func (o *WorkflowServiceItemActionInstance) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "workflow.ServiceItemActionInstance" of the ClassId field. +func (o *WorkflowServiceItemActionInstance) GetDefaultClassId() interface{} { + return "workflow.ServiceItemActionInstance" +} + // GetObjectType returns the ObjectType field value func (o *WorkflowServiceItemActionInstance) GetObjectType() string { if o == nil { @@ -142,6 +147,11 @@ func (o *WorkflowServiceItemActionInstance) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "workflow.ServiceItemActionInstance" of the ObjectType field. +func (o *WorkflowServiceItemActionInstance) GetDefaultObjectType() interface{} { + return "workflow.ServiceItemActionInstance" +} + // GetAction returns the Action field value if set, zero value otherwise. func (o *WorkflowServiceItemActionInstance) GetAction() string { if o == nil || IsNil(o.Action) { @@ -227,7 +237,7 @@ func (o *WorkflowServiceItemActionInstance) GetInputOk() (*interface{}, bool) { // HasInput returns a boolean if a field has been set. func (o *WorkflowServiceItemActionInstance) HasInput() bool { - if o != nil && IsNil(o.Input) { + if o != nil && !IsNil(o.Input) { return true } @@ -292,7 +302,7 @@ func (o *WorkflowServiceItemActionInstance) GetMessagesOk() ([]ServiceitemMessag // HasMessages returns a boolean if a field has been set. func (o *WorkflowServiceItemActionInstance) HasMessages() bool { - if o != nil && IsNil(o.Messages) { + if o != nil && !IsNil(o.Messages) { return true } @@ -389,7 +399,7 @@ func (o *WorkflowServiceItemActionInstance) GetSelectionCriteriaInputsOk() ([]Se // HasSelectionCriteriaInputs returns a boolean if a field has been set. func (o *WorkflowServiceItemActionInstance) HasSelectionCriteriaInputs() bool { - if o != nil && IsNil(o.SelectionCriteriaInputs) { + if o != nil && !IsNil(o.SelectionCriteriaInputs) { return true } @@ -422,7 +432,7 @@ func (o *WorkflowServiceItemActionInstance) GetServiceRequestInputOk() (*interfa // HasServiceRequestInput returns a boolean if a field has been set. func (o *WorkflowServiceItemActionInstance) HasServiceRequestInput() bool { - if o != nil && IsNil(o.ServiceRequestInput) { + if o != nil && !IsNil(o.ServiceRequestInput) { return true } @@ -594,7 +604,7 @@ func (o *WorkflowServiceItemActionInstance) GetCatalogServiceRequestOk() ([]Work // HasCatalogServiceRequest returns a boolean if a field has been set. func (o *WorkflowServiceItemActionInstance) HasCatalogServiceRequest() bool { - if o != nil && IsNil(o.CatalogServiceRequest) { + if o != nil && !IsNil(o.CatalogServiceRequest) { return true } @@ -968,7 +978,13 @@ func (o WorkflowServiceItemActionInstance) ToMap() (map[string]interface{}, erro if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Action) { toSerialize["Action"] = o.Action @@ -1053,6 +1069,13 @@ func (o *WorkflowServiceItemActionInstance) UnmarshalJSON(data []byte) (err erro "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -1062,11 +1085,23 @@ func (o *WorkflowServiceItemActionInstance) UnmarshalJSON(data []byte) (err erro } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type WorkflowServiceItemActionInstanceWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_workflow_service_item_action_instance_list.go b/model_workflow_service_item_action_instance_list.go index 5d4437da00..40423f29dd 100644 --- a/model_workflow_service_item_action_instance_list.go +++ b/model_workflow_service_item_action_instance_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *WorkflowServiceItemActionInstanceList) GetResultsOk() ([]WorkflowServic // HasResults returns a boolean if a field has been set. func (o *WorkflowServiceItemActionInstanceList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *WorkflowServiceItemActionInstanceList) UnmarshalJSON(data []byte) (err "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *WorkflowServiceItemActionInstanceList) UnmarshalJSON(data []byte) (err } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type WorkflowServiceItemActionInstanceListWithoutEmbeddedStruct struct { // The total number of 'workflow.ServiceItemActionInstance' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_workflow_service_item_action_instance_relationship.go b/model_workflow_service_item_action_instance_relationship.go index 64ac4803e6..17004c29a4 100644 --- a/model_workflow_service_item_action_instance_relationship.go +++ b/model_workflow_service_item_action_instance_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_workflow_service_item_action_instance_response.go b/model_workflow_service_item_action_instance_response.go index 721c25d9b5..9e37fac313 100644 --- a/model_workflow_service_item_action_instance_response.go +++ b/model_workflow_service_item_action_instance_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_workflow_service_item_action_properties.go b/model_workflow_service_item_action_properties.go index 10c1c2ca43..50de2c8526 100644 --- a/model_workflow_service_item_action_properties.go +++ b/model_workflow_service_item_action_properties.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -92,6 +92,11 @@ func (o *WorkflowServiceItemActionProperties) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "workflow.ServiceItemActionProperties" of the ClassId field. +func (o *WorkflowServiceItemActionProperties) GetDefaultClassId() interface{} { + return "workflow.ServiceItemActionProperties" +} + // GetObjectType returns the ObjectType field value func (o *WorkflowServiceItemActionProperties) GetObjectType() string { if o == nil { @@ -116,6 +121,11 @@ func (o *WorkflowServiceItemActionProperties) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "workflow.ServiceItemActionProperties" of the ObjectType field. +func (o *WorkflowServiceItemActionProperties) GetDefaultObjectType() interface{} { + return "workflow.ServiceItemActionProperties" +} + // GetOperationType returns the OperationType field value if set, zero value otherwise. func (o *WorkflowServiceItemActionProperties) GetOperationType() string { if o == nil || IsNil(o.OperationType) { @@ -198,7 +208,13 @@ func (o WorkflowServiceItemActionProperties) ToMap() (map[string]interface{}, er if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.OperationType) { toSerialize["OperationType"] = o.OperationType @@ -223,6 +239,13 @@ func (o *WorkflowServiceItemActionProperties) UnmarshalJSON(data []byte) (err er "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -232,11 +255,23 @@ func (o *WorkflowServiceItemActionProperties) UnmarshalJSON(data []byte) (err er } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type WorkflowServiceItemActionPropertiesWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_workflow_service_item_action_workflow_definition.go b/model_workflow_service_item_action_workflow_definition.go index 9878315b79..f888a31148 100644 --- a/model_workflow_service_item_action_workflow_definition.go +++ b/model_workflow_service_item_action_workflow_definition.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -37,7 +37,7 @@ type WorkflowServiceItemActionWorkflowDefinition struct { // A user defined label identifier of the workflow used for UI display. Label *string `json:"Label,omitempty"` // The name of the workflow, this name must be unique across all the workflow definition used within the action definitions. - Name *string `json:"Name,omitempty"` + Name *string `json:"Name,omitempty" validate:"regexp=^[a-zA-Z0-9_:-]{1,64}$"` // The workflow definition version to use as subworkflow. When no version is specified then the default version of the workflow at the time of creating or updating this workflow is used. Version *int64 `json:"Version,omitempty"` WorkflowDefinition *MoMoRef `json:"WorkflowDefinition,omitempty"` @@ -95,6 +95,11 @@ func (o *WorkflowServiceItemActionWorkflowDefinition) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "workflow.ServiceItemActionWorkflowDefinition" of the ClassId field. +func (o *WorkflowServiceItemActionWorkflowDefinition) GetDefaultClassId() interface{} { + return "workflow.ServiceItemActionWorkflowDefinition" +} + // GetObjectType returns the ObjectType field value func (o *WorkflowServiceItemActionWorkflowDefinition) GetObjectType() string { if o == nil { @@ -119,6 +124,11 @@ func (o *WorkflowServiceItemActionWorkflowDefinition) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "workflow.ServiceItemActionWorkflowDefinition" of the ObjectType field. +func (o *WorkflowServiceItemActionWorkflowDefinition) GetDefaultObjectType() interface{} { + return "workflow.ServiceItemActionWorkflowDefinition" +} + // GetCatalogMoid returns the CatalogMoid field value if set, zero value otherwise. func (o *WorkflowServiceItemActionWorkflowDefinition) GetCatalogMoid() string { if o == nil || IsNil(o.CatalogMoid) { @@ -204,7 +214,7 @@ func (o *WorkflowServiceItemActionWorkflowDefinition) GetInputParametersOk() (*i // HasInputParameters returns a boolean if a field has been set. func (o *WorkflowServiceItemActionWorkflowDefinition) HasInputParameters() bool { - if o != nil && IsNil(o.InputParameters) { + if o != nil && !IsNil(o.InputParameters) { return true } @@ -394,7 +404,13 @@ func (o WorkflowServiceItemActionWorkflowDefinition) ToMap() (map[string]interfa if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.CatalogMoid) { toSerialize["CatalogMoid"] = o.CatalogMoid @@ -437,6 +453,13 @@ func (o *WorkflowServiceItemActionWorkflowDefinition) UnmarshalJSON(data []byte) "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -446,11 +469,23 @@ func (o *WorkflowServiceItemActionWorkflowDefinition) UnmarshalJSON(data []byte) } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type WorkflowServiceItemActionWorkflowDefinitionWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` @@ -465,7 +500,7 @@ func (o *WorkflowServiceItemActionWorkflowDefinition) UnmarshalJSON(data []byte) // A user defined label identifier of the workflow used for UI display. Label *string `json:"Label,omitempty"` // The name of the workflow, this name must be unique across all the workflow definition used within the action definitions. - Name *string `json:"Name,omitempty"` + Name *string `json:"Name,omitempty" validate:"regexp=^[a-zA-Z0-9_:-]{1,64}$"` // The workflow definition version to use as subworkflow. When no version is specified then the default version of the workflow at the time of creating or updating this workflow is used. Version *int64 `json:"Version,omitempty"` WorkflowDefinition *MoMoRef `json:"WorkflowDefinition,omitempty"` diff --git a/model_workflow_service_item_attribute.go b/model_workflow_service_item_attribute.go index 18c7e4823f..8df71c9a02 100644 --- a/model_workflow_service_item_attribute.go +++ b/model_workflow_service_item_attribute.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -90,6 +90,11 @@ func (o *WorkflowServiceItemAttribute) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "workflow.ServiceItemAttribute" of the ClassId field. +func (o *WorkflowServiceItemAttribute) GetDefaultClassId() interface{} { + return "workflow.ServiceItemAttribute" +} + // GetObjectType returns the ObjectType field value func (o *WorkflowServiceItemAttribute) GetObjectType() string { if o == nil { @@ -114,6 +119,11 @@ func (o *WorkflowServiceItemAttribute) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "workflow.ServiceItemAttribute" of the ObjectType field. +func (o *WorkflowServiceItemAttribute) GetDefaultObjectType() interface{} { + return "workflow.ServiceItemAttribute" +} + // GetAttribute returns the Attribute field value if set, zero value otherwise (both if not set or set to explicit null). func (o *WorkflowServiceItemAttribute) GetAttribute() interface{} { if o == nil { @@ -135,7 +145,7 @@ func (o *WorkflowServiceItemAttribute) GetAttributeOk() (*interface{}, bool) { // HasAttribute returns a boolean if a field has been set. func (o *WorkflowServiceItemAttribute) HasAttribute() bool { - if o != nil && IsNil(o.Attribute) { + if o != nil && !IsNil(o.Attribute) { return true } @@ -347,7 +357,13 @@ func (o WorkflowServiceItemAttribute) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.Attribute != nil { toSerialize["Attribute"] = o.Attribute @@ -384,6 +400,13 @@ func (o *WorkflowServiceItemAttribute) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -393,11 +416,23 @@ func (o *WorkflowServiceItemAttribute) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type WorkflowServiceItemAttributeWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_workflow_service_item_attribute_list.go b/model_workflow_service_item_attribute_list.go index 2da8e76d37..1a7e68a346 100644 --- a/model_workflow_service_item_attribute_list.go +++ b/model_workflow_service_item_attribute_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *WorkflowServiceItemAttributeList) GetResultsOk() ([]WorkflowServiceItem // HasResults returns a boolean if a field has been set. func (o *WorkflowServiceItemAttributeList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *WorkflowServiceItemAttributeList) UnmarshalJSON(data []byte) (err error "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *WorkflowServiceItemAttributeList) UnmarshalJSON(data []byte) (err error } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type WorkflowServiceItemAttributeListWithoutEmbeddedStruct struct { // The total number of 'workflow.ServiceItemAttribute' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_workflow_service_item_attribute_response.go b/model_workflow_service_item_attribute_response.go index 8f8f1a7731..fbabe05319 100644 --- a/model_workflow_service_item_attribute_response.go +++ b/model_workflow_service_item_attribute_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_workflow_service_item_definition.go b/model_workflow_service_item_definition.go index 11a0c26e87..82a0f4a9dd 100644 --- a/model_workflow_service_item_definition.go +++ b/model_workflow_service_item_definition.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -40,13 +40,13 @@ type WorkflowServiceItemDefinition struct { // The description for this service item which provides information on what are the pre-requisites to deploy the service item and what features are supported on the service item. Description *string `json:"Description,omitempty"` // A user friendly short name to identify the service item. Name can only contain letters (a-z, A-Z), numbers (0-9), hyphen (-), period (.), colon (:), space ( ) or an underscore (_). - Label *string `json:"Label,omitempty"` + Label *string `json:"Label,omitempty" validate:"regexp=^[a-zA-Z0-9]+[\\\\sa-zA-Z0-9_.:-]{1,92}$"` // License entitlement required to run this service item. * `Base` - Base as a License type. It is default license type. * `Essential` - Essential as a License type. * `Standard` - Standard as a License type. * `Advantage` - Advantage as a License type. * `Premier` - Premier as a License type. * `IWO-Essential` - IWO-Essential as a License type. * `IWO-Advantage` - IWO-Advantage as a License type. * `IWO-Premier` - IWO-Premier as a License type. * `IKS-Advantage` - IKS-Advantage as a License type. * `INC-Premier-1GFixed` - Premier 1G Fixed license tier for Intersight Nexus Cloud. * `INC-Premier-10GFixed` - Premier 10G Fixed license tier for Intersight Nexus Cloud. * `INC-Premier-100GFixed` - Premier 100G Fixed license tier for Intersight Nexus Cloud. * `INC-Premier-Mod4Slot` - Premier Modular 4 slot license tier for Intersight Nexus Cloud. * `INC-Premier-Mod8Slot` - Premier Modular 8 slot license tier for Intersight Nexus Cloud. * `INC-Premier-D2OpsFixed` - Premier D2Ops fixed license tier for Intersight Nexus Cloud. * `INC-Premier-D2OpsMod` - Premier D2Ops modular license tier for Intersight Nexus Cloud. * `INC-Premier-CentralizedMod8Slot` - Premier modular license tier of switch type CentralizedMod8Slot for Intersight Nexus Cloud. * `INC-Premier-DistributedMod8Slot` - Premier modular license tier of switch type DistributedMod8Slot for Intersight Nexus Cloud. * `IntersightTrial` - Virtual dummy license type to indicate trial. Used for UI display of trial mode Intersight tiers. * `IWOTrial` - Virtual dummy license type to indicate trial. Used for UI display of trial mode IKS tiers. * `IKSTrial` - Virtual dummy license type to indicate trial. Used for UI display of trial mode IWO tiers. * `INCTrial` - Virtual dummy license type to indicate trial. Used for UI display of trial mode Nexus tiers. LicenseEntitlement *string `json:"LicenseEntitlement,omitempty"` // The user identifier who last updated the service item definition. ModUser *string `json:"ModUser,omitempty"` // The name for this service item definition. You can have multiple versions of the service item with the same name. Name can only contain letters (a-z, A-Z), numbers (0-9), hyphen (-), period (.), colon (:) or an underscore (_). - Name *string `json:"Name,omitempty"` + Name *string `json:"Name,omitempty" validate:"regexp=^[a-zA-Z0-9_.:-]{1,64}$"` // The publish status of service item (Draft, Published, Archived). * `Draft` - The enum specifies the option as Draft which means the meta definition is being designed and tested. * `Published` - The enum specifies the option as Published which means the meta definition is ready for consumption. * `Archived` - The enum specifies the option as Archived which means the meta definition is archived and can no longer be consumed. PublishStatus *string `json:"PublishStatus,omitempty"` // State of service item considering the state of underlying service item actions definitions. * `Okay` - Deployment and other post-deployment actions are in valid state. * `Critical` - Deployment action is not in valid state. * `Warning` - Deployment action is in valid state, and one or more post-deployment actions are not in valid state. @@ -134,6 +134,11 @@ func (o *WorkflowServiceItemDefinition) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "workflow.ServiceItemDefinition" of the ClassId field. +func (o *WorkflowServiceItemDefinition) GetDefaultClassId() interface{} { + return "workflow.ServiceItemDefinition" +} + // GetObjectType returns the ObjectType field value func (o *WorkflowServiceItemDefinition) GetObjectType() string { if o == nil { @@ -158,6 +163,11 @@ func (o *WorkflowServiceItemDefinition) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "workflow.ServiceItemDefinition" of the ObjectType field. +func (o *WorkflowServiceItemDefinition) GetDefaultObjectType() interface{} { + return "workflow.ServiceItemDefinition" +} + // GetAllowMultipleServiceItemInstances returns the AllowMultipleServiceItemInstances field value if set, zero value otherwise. func (o *WorkflowServiceItemDefinition) GetAllowMultipleServiceItemInstances() bool { if o == nil || IsNil(o.AllowMultipleServiceItemInstances) { @@ -211,7 +221,7 @@ func (o *WorkflowServiceItemDefinition) GetAttributeDefinitionOk() ([]WorkflowBa // HasAttributeDefinition returns a boolean if a field has been set. func (o *WorkflowServiceItemDefinition) HasAttributeDefinition() bool { - if o != nil && IsNil(o.AttributeDefinition) { + if o != nil && !IsNil(o.AttributeDefinition) { return true } @@ -706,7 +716,7 @@ func (o *WorkflowServiceItemDefinition) GetActionDefinitionsOk() ([]WorkflowServ // HasActionDefinitions returns a boolean if a field has been set. func (o *WorkflowServiceItemDefinition) HasActionDefinitions() bool { - if o != nil && IsNil(o.ActionDefinitions) { + if o != nil && !IsNil(o.ActionDefinitions) { return true } @@ -779,7 +789,13 @@ func (o WorkflowServiceItemDefinition) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.AllowMultipleServiceItemInstances) { toSerialize["AllowMultipleServiceItemInstances"] = o.AllowMultipleServiceItemInstances @@ -852,6 +868,13 @@ func (o *WorkflowServiceItemDefinition) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -861,11 +884,23 @@ func (o *WorkflowServiceItemDefinition) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type WorkflowServiceItemDefinitionWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` @@ -883,13 +918,13 @@ func (o *WorkflowServiceItemDefinition) UnmarshalJSON(data []byte) (err error) { // The description for this service item which provides information on what are the pre-requisites to deploy the service item and what features are supported on the service item. Description *string `json:"Description,omitempty"` // A user friendly short name to identify the service item. Name can only contain letters (a-z, A-Z), numbers (0-9), hyphen (-), period (.), colon (:), space ( ) or an underscore (_). - Label *string `json:"Label,omitempty"` + Label *string `json:"Label,omitempty" validate:"regexp=^[a-zA-Z0-9]+[\\\\sa-zA-Z0-9_.:-]{1,92}$"` // License entitlement required to run this service item. * `Base` - Base as a License type. It is default license type. * `Essential` - Essential as a License type. * `Standard` - Standard as a License type. * `Advantage` - Advantage as a License type. * `Premier` - Premier as a License type. * `IWO-Essential` - IWO-Essential as a License type. * `IWO-Advantage` - IWO-Advantage as a License type. * `IWO-Premier` - IWO-Premier as a License type. * `IKS-Advantage` - IKS-Advantage as a License type. * `INC-Premier-1GFixed` - Premier 1G Fixed license tier for Intersight Nexus Cloud. * `INC-Premier-10GFixed` - Premier 10G Fixed license tier for Intersight Nexus Cloud. * `INC-Premier-100GFixed` - Premier 100G Fixed license tier for Intersight Nexus Cloud. * `INC-Premier-Mod4Slot` - Premier Modular 4 slot license tier for Intersight Nexus Cloud. * `INC-Premier-Mod8Slot` - Premier Modular 8 slot license tier for Intersight Nexus Cloud. * `INC-Premier-D2OpsFixed` - Premier D2Ops fixed license tier for Intersight Nexus Cloud. * `INC-Premier-D2OpsMod` - Premier D2Ops modular license tier for Intersight Nexus Cloud. * `INC-Premier-CentralizedMod8Slot` - Premier modular license tier of switch type CentralizedMod8Slot for Intersight Nexus Cloud. * `INC-Premier-DistributedMod8Slot` - Premier modular license tier of switch type DistributedMod8Slot for Intersight Nexus Cloud. * `IntersightTrial` - Virtual dummy license type to indicate trial. Used for UI display of trial mode Intersight tiers. * `IWOTrial` - Virtual dummy license type to indicate trial. Used for UI display of trial mode IKS tiers. * `IKSTrial` - Virtual dummy license type to indicate trial. Used for UI display of trial mode IWO tiers. * `INCTrial` - Virtual dummy license type to indicate trial. Used for UI display of trial mode Nexus tiers. LicenseEntitlement *string `json:"LicenseEntitlement,omitempty"` // The user identifier who last updated the service item definition. ModUser *string `json:"ModUser,omitempty"` // The name for this service item definition. You can have multiple versions of the service item with the same name. Name can only contain letters (a-z, A-Z), numbers (0-9), hyphen (-), period (.), colon (:) or an underscore (_). - Name *string `json:"Name,omitempty"` + Name *string `json:"Name,omitempty" validate:"regexp=^[a-zA-Z0-9_.:-]{1,64}$"` // The publish status of service item (Draft, Published, Archived). * `Draft` - The enum specifies the option as Draft which means the meta definition is being designed and tested. * `Published` - The enum specifies the option as Published which means the meta definition is ready for consumption. * `Archived` - The enum specifies the option as Archived which means the meta definition is archived and can no longer be consumed. PublishStatus *string `json:"PublishStatus,omitempty"` // State of service item considering the state of underlying service item actions definitions. * `Okay` - Deployment and other post-deployment actions are in valid state. * `Critical` - Deployment action is not in valid state. * `Warning` - Deployment action is in valid state, and one or more post-deployment actions are not in valid state. diff --git a/model_workflow_service_item_definition_list.go b/model_workflow_service_item_definition_list.go index 00f8ddae9e..f23ed39af6 100644 --- a/model_workflow_service_item_definition_list.go +++ b/model_workflow_service_item_definition_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *WorkflowServiceItemDefinitionList) GetResultsOk() ([]WorkflowServiceIte // HasResults returns a boolean if a field has been set. func (o *WorkflowServiceItemDefinitionList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *WorkflowServiceItemDefinitionList) UnmarshalJSON(data []byte) (err erro "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *WorkflowServiceItemDefinitionList) UnmarshalJSON(data []byte) (err erro } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type WorkflowServiceItemDefinitionListWithoutEmbeddedStruct struct { // The total number of 'workflow.ServiceItemDefinition' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_workflow_service_item_definition_relationship.go b/model_workflow_service_item_definition_relationship.go index 82142684db..0ca79497bf 100644 --- a/model_workflow_service_item_definition_relationship.go +++ b/model_workflow_service_item_definition_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_workflow_service_item_definition_response.go b/model_workflow_service_item_definition_response.go index ec4c1bedb0..50db1d3729 100644 --- a/model_workflow_service_item_definition_response.go +++ b/model_workflow_service_item_definition_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_workflow_service_item_health_check_definition.go b/model_workflow_service_item_health_check_definition.go index 0ae783344a..d5d77ae03c 100644 --- a/model_workflow_service_item_health_check_definition.go +++ b/model_workflow_service_item_health_check_definition.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -98,6 +98,11 @@ func (o *WorkflowServiceItemHealthCheckDefinition) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "workflow.ServiceItemHealthCheckDefinition" of the ClassId field. +func (o *WorkflowServiceItemHealthCheckDefinition) GetDefaultClassId() interface{} { + return "workflow.ServiceItemHealthCheckDefinition" +} + // GetObjectType returns the ObjectType field value func (o *WorkflowServiceItemHealthCheckDefinition) GetObjectType() string { if o == nil { @@ -122,6 +127,11 @@ func (o *WorkflowServiceItemHealthCheckDefinition) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "workflow.ServiceItemHealthCheckDefinition" of the ObjectType field. +func (o *WorkflowServiceItemHealthCheckDefinition) GetDefaultObjectType() interface{} { + return "workflow.ServiceItemHealthCheckDefinition" +} + // GetCategory returns the Category field value if set, zero value otherwise. func (o *WorkflowServiceItemHealthCheckDefinition) GetCategory() string { if o == nil || IsNil(o.Category) { @@ -418,7 +428,13 @@ func (o WorkflowServiceItemHealthCheckDefinition) ToMap() (map[string]interface{ if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Category) { toSerialize["Category"] = o.Category @@ -461,6 +477,13 @@ func (o *WorkflowServiceItemHealthCheckDefinition) UnmarshalJSON(data []byte) (e "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -470,11 +493,23 @@ func (o *WorkflowServiceItemHealthCheckDefinition) UnmarshalJSON(data []byte) (e } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type WorkflowServiceItemHealthCheckDefinitionWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_workflow_service_item_health_check_definition_list.go b/model_workflow_service_item_health_check_definition_list.go index 6734416fbd..9ab4437bde 100644 --- a/model_workflow_service_item_health_check_definition_list.go +++ b/model_workflow_service_item_health_check_definition_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *WorkflowServiceItemHealthCheckDefinitionList) GetResultsOk() ([]Workflo // HasResults returns a boolean if a field has been set. func (o *WorkflowServiceItemHealthCheckDefinitionList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *WorkflowServiceItemHealthCheckDefinitionList) UnmarshalJSON(data []byte "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *WorkflowServiceItemHealthCheckDefinitionList) UnmarshalJSON(data []byte } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type WorkflowServiceItemHealthCheckDefinitionListWithoutEmbeddedStruct struct { // The total number of 'workflow.ServiceItemHealthCheckDefinition' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_workflow_service_item_health_check_definition_relationship.go b/model_workflow_service_item_health_check_definition_relationship.go index 3eb7916f26..c4934b572b 100644 --- a/model_workflow_service_item_health_check_definition_relationship.go +++ b/model_workflow_service_item_health_check_definition_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_workflow_service_item_health_check_definition_response.go b/model_workflow_service_item_health_check_definition_response.go index b6c1fd9c1a..5996a1e860 100644 --- a/model_workflow_service_item_health_check_definition_response.go +++ b/model_workflow_service_item_health_check_definition_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_workflow_service_item_health_check_execution.go b/model_workflow_service_item_health_check_execution.go index 31a4347317..f05f1f7aa9 100644 --- a/model_workflow_service_item_health_check_execution.go +++ b/model_workflow_service_item_health_check_execution.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -95,6 +95,11 @@ func (o *WorkflowServiceItemHealthCheckExecution) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "workflow.ServiceItemHealthCheckExecution" of the ClassId field. +func (o *WorkflowServiceItemHealthCheckExecution) GetDefaultClassId() interface{} { + return "workflow.ServiceItemHealthCheckExecution" +} + // GetObjectType returns the ObjectType field value func (o *WorkflowServiceItemHealthCheckExecution) GetObjectType() string { if o == nil { @@ -119,6 +124,11 @@ func (o *WorkflowServiceItemHealthCheckExecution) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "workflow.ServiceItemHealthCheckExecution" of the ObjectType field. +func (o *WorkflowServiceItemHealthCheckExecution) GetDefaultObjectType() interface{} { + return "workflow.ServiceItemHealthCheckExecution" +} + // GetErrorElements returns the ErrorElements field value if set, zero value otherwise (both if not set or set to explicit null). func (o *WorkflowServiceItemHealthCheckExecution) GetErrorElements() []ServiceitemHealthCheckErrorElement { if o == nil { @@ -140,7 +150,7 @@ func (o *WorkflowServiceItemHealthCheckExecution) GetErrorElementsOk() ([]Servic // HasErrorElements returns a boolean if a field has been set. func (o *WorkflowServiceItemHealthCheckExecution) HasErrorElements() bool { - if o != nil && IsNil(o.ErrorElements) { + if o != nil && !IsNil(o.ErrorElements) { return true } @@ -459,7 +469,13 @@ func (o WorkflowServiceItemHealthCheckExecution) ToMap() (map[string]interface{} if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.ErrorElements != nil { toSerialize["ErrorElements"] = o.ErrorElements @@ -505,6 +521,13 @@ func (o *WorkflowServiceItemHealthCheckExecution) UnmarshalJSON(data []byte) (er "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -514,11 +537,23 @@ func (o *WorkflowServiceItemHealthCheckExecution) UnmarshalJSON(data []byte) (er } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type WorkflowServiceItemHealthCheckExecutionWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_workflow_service_item_health_check_execution_list.go b/model_workflow_service_item_health_check_execution_list.go index 49b2543cac..75cae2d606 100644 --- a/model_workflow_service_item_health_check_execution_list.go +++ b/model_workflow_service_item_health_check_execution_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *WorkflowServiceItemHealthCheckExecutionList) GetResultsOk() ([]Workflow // HasResults returns a boolean if a field has been set. func (o *WorkflowServiceItemHealthCheckExecutionList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *WorkflowServiceItemHealthCheckExecutionList) UnmarshalJSON(data []byte) "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *WorkflowServiceItemHealthCheckExecutionList) UnmarshalJSON(data []byte) } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type WorkflowServiceItemHealthCheckExecutionListWithoutEmbeddedStruct struct { // The total number of 'workflow.ServiceItemHealthCheckExecution' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_workflow_service_item_health_check_execution_response.go b/model_workflow_service_item_health_check_execution_response.go index 382fcf9ee0..ffc79cafb0 100644 --- a/model_workflow_service_item_health_check_execution_response.go +++ b/model_workflow_service_item_health_check_execution_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_workflow_service_item_input_definition_type.go b/model_workflow_service_item_input_definition_type.go index c61b84f1c2..989acc2909 100644 --- a/model_workflow_service_item_input_definition_type.go +++ b/model_workflow_service_item_input_definition_type.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -88,6 +88,11 @@ func (o *WorkflowServiceItemInputDefinitionType) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "workflow.ServiceItemInputDefinitionType" of the ClassId field. +func (o *WorkflowServiceItemInputDefinitionType) GetDefaultClassId() interface{} { + return "workflow.ServiceItemInputDefinitionType" +} + // GetObjectType returns the ObjectType field value func (o *WorkflowServiceItemInputDefinitionType) GetObjectType() string { if o == nil { @@ -112,6 +117,11 @@ func (o *WorkflowServiceItemInputDefinitionType) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "workflow.ServiceItemInputDefinitionType" of the ObjectType field. +func (o *WorkflowServiceItemInputDefinitionType) GetDefaultObjectType() interface{} { + return "workflow.ServiceItemInputDefinitionType" +} + // GetActionName returns the ActionName field value if set, zero value otherwise. func (o *WorkflowServiceItemInputDefinitionType) GetActionName() string { if o == nil || IsNil(o.ActionName) { @@ -165,7 +175,7 @@ func (o *WorkflowServiceItemInputDefinitionType) GetInputDefinitionOk() ([]Workf // HasInputDefinition returns a boolean if a field has been set. func (o *WorkflowServiceItemInputDefinitionType) HasInputDefinition() bool { - if o != nil && IsNil(o.InputDefinition) { + if o != nil && !IsNil(o.InputDefinition) { return true } @@ -198,7 +208,7 @@ func (o *WorkflowServiceItemInputDefinitionType) GetInputParametersOk() (*interf // HasInputParameters returns a boolean if a field has been set. func (o *WorkflowServiceItemInputDefinitionType) HasInputParameters() bool { - if o != nil && IsNil(o.InputParameters) { + if o != nil && !IsNil(o.InputParameters) { return true } @@ -292,7 +302,13 @@ func (o WorkflowServiceItemInputDefinitionType) ToMap() (map[string]interface{}, if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.ActionName) { toSerialize["ActionName"] = o.ActionName @@ -326,6 +342,13 @@ func (o *WorkflowServiceItemInputDefinitionType) UnmarshalJSON(data []byte) (err "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -335,11 +358,23 @@ func (o *WorkflowServiceItemInputDefinitionType) UnmarshalJSON(data []byte) (err } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type WorkflowServiceItemInputDefinitionTypeWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_workflow_service_item_instance.go b/model_workflow_service_item_instance.go index 752836221f..9d33bd0cdb 100644 --- a/model_workflow_service_item_instance.go +++ b/model_workflow_service_item_instance.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -31,11 +31,11 @@ type WorkflowServiceItemInstance struct { // The description for this service item instance. Description *string `json:"Description,omitempty"` // A user friendly short name to identify the resource. Name can only contain letters (a-z, A-Z), numbers (0-9), hyphen (-), period (.), colon (:), space ( ) or an underscore (_). - Label *string `json:"Label,omitempty"` + Label *string `json:"Label,omitempty" validate:"regexp=^$|^[a-zA-Z0-9]+[\\\\sa-zA-Z0-9_.:-]{1,92}$"` // Last status of the service item instance which will be reverted when an ongoing service item action instance is aborted. * `NotCreated` - The service item is not yet created and it is in a draft mode. A service item instance can be deleted in this state. * `InProgress` - An action is in progress and until that action has reached a final state, another action cannot be started. * `Failed` - The last action on the service item instance failed and corrective measures need to be taken to bring the service item instance back to valid state. * `Okay` - The last action on the service item instance completed and the service item instance is in Okay state. * `Decommissioned` - The service item is decommissioned and can be safely deleted. A service item instance in any other state after it has been created cannot be deleted until it has been decommissioned. LastStatus *string `json:"LastStatus,omitempty"` // A name of the service item instance. Name can only contain letters (a-z, A-Z), numbers (0-9), hyphen (-), period (.) or an underscore (_). - Name *string `json:"Name,omitempty"` + Name *string `json:"Name,omitempty" validate:"regexp=^[a-zA-Z0-9]+[\\\\sa-zA-Z0-9_.:-]{1,92}$"` // Lifecycle state of service item instance. * `Creating` - The service item is not yet created and creation action is in progress. * `Created` - The service item is created. * `Decommissioning` - The service item is not yet decommissioned and decommission action is in progress. * `Decommissioned` - The service item is decommisioned. * `Deleting` - The service item is not yet deleted and deletion action is in progress. * `Deleted` - The service item is deleted. * `Failed` - The service item action is failed to perform the operation. ResourcelifecycleStatus *string `json:"ResourcelifecycleStatus,omitempty"` // Status of the service item instance which controls the actions that can be performed on this instance. * `NotCreated` - The service item is not yet created and it is in a draft mode. A service item instance can be deleted in this state. * `InProgress` - An action is in progress and until that action has reached a final state, another action cannot be started. * `Failed` - The last action on the service item instance failed and corrective measures need to be taken to bring the service item instance back to valid state. * `Okay` - The last action on the service item instance completed and the service item instance is in Okay state. * `Decommissioned` - The service item is decommissioned and can be safely deleted. A service item instance in any other state after it has been created cannot be deleted until it has been decommissioned. @@ -101,6 +101,11 @@ func (o *WorkflowServiceItemInstance) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "workflow.ServiceItemInstance" of the ClassId field. +func (o *WorkflowServiceItemInstance) GetDefaultClassId() interface{} { + return "workflow.ServiceItemInstance" +} + // GetObjectType returns the ObjectType field value func (o *WorkflowServiceItemInstance) GetObjectType() string { if o == nil { @@ -125,6 +130,11 @@ func (o *WorkflowServiceItemInstance) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "workflow.ServiceItemInstance" of the ObjectType field. +func (o *WorkflowServiceItemInstance) GetDefaultObjectType() interface{} { + return "workflow.ServiceItemInstance" +} + // GetDescription returns the Description field value if set, zero value otherwise. func (o *WorkflowServiceItemInstance) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -370,7 +380,7 @@ func (o *WorkflowServiceItemInstance) GetCatalogServiceRequestOk() ([]WorkflowCa // HasCatalogServiceRequest returns a boolean if a field has been set. func (o *WorkflowServiceItemInstance) HasCatalogServiceRequest() bool { - if o != nil && IsNil(o.CatalogServiceRequest) { + if o != nil && !IsNil(o.CatalogServiceRequest) { return true } @@ -615,7 +625,13 @@ func (o WorkflowServiceItemInstance) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Description) { toSerialize["Description"] = o.Description @@ -673,6 +689,13 @@ func (o *WorkflowServiceItemInstance) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -682,11 +705,23 @@ func (o *WorkflowServiceItemInstance) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type WorkflowServiceItemInstanceWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` @@ -695,11 +730,11 @@ func (o *WorkflowServiceItemInstance) UnmarshalJSON(data []byte) (err error) { // The description for this service item instance. Description *string `json:"Description,omitempty"` // A user friendly short name to identify the resource. Name can only contain letters (a-z, A-Z), numbers (0-9), hyphen (-), period (.), colon (:), space ( ) or an underscore (_). - Label *string `json:"Label,omitempty"` + Label *string `json:"Label,omitempty" validate:"regexp=^$|^[a-zA-Z0-9]+[\\\\sa-zA-Z0-9_.:-]{1,92}$"` // Last status of the service item instance which will be reverted when an ongoing service item action instance is aborted. * `NotCreated` - The service item is not yet created and it is in a draft mode. A service item instance can be deleted in this state. * `InProgress` - An action is in progress and until that action has reached a final state, another action cannot be started. * `Failed` - The last action on the service item instance failed and corrective measures need to be taken to bring the service item instance back to valid state. * `Okay` - The last action on the service item instance completed and the service item instance is in Okay state. * `Decommissioned` - The service item is decommissioned and can be safely deleted. A service item instance in any other state after it has been created cannot be deleted until it has been decommissioned. LastStatus *string `json:"LastStatus,omitempty"` // A name of the service item instance. Name can only contain letters (a-z, A-Z), numbers (0-9), hyphen (-), period (.) or an underscore (_). - Name *string `json:"Name,omitempty"` + Name *string `json:"Name,omitempty" validate:"regexp=^[a-zA-Z0-9]+[\\\\sa-zA-Z0-9_.:-]{1,92}$"` // Lifecycle state of service item instance. * `Creating` - The service item is not yet created and creation action is in progress. * `Created` - The service item is created. * `Decommissioning` - The service item is not yet decommissioned and decommission action is in progress. * `Decommissioned` - The service item is decommisioned. * `Deleting` - The service item is not yet deleted and deletion action is in progress. * `Deleted` - The service item is deleted. * `Failed` - The service item action is failed to perform the operation. ResourcelifecycleStatus *string `json:"ResourcelifecycleStatus,omitempty"` // Status of the service item instance which controls the actions that can be performed on this instance. * `NotCreated` - The service item is not yet created and it is in a draft mode. A service item instance can be deleted in this state. * `InProgress` - An action is in progress and until that action has reached a final state, another action cannot be started. * `Failed` - The last action on the service item instance failed and corrective measures need to be taken to bring the service item instance back to valid state. * `Okay` - The last action on the service item instance completed and the service item instance is in Okay state. * `Decommissioned` - The service item is decommissioned and can be safely deleted. A service item instance in any other state after it has been created cannot be deleted until it has been decommissioned. diff --git a/model_workflow_service_item_instance_list.go b/model_workflow_service_item_instance_list.go index 7c0cb2420c..fca54cdbc5 100644 --- a/model_workflow_service_item_instance_list.go +++ b/model_workflow_service_item_instance_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *WorkflowServiceItemInstanceList) GetResultsOk() ([]WorkflowServiceItemI // HasResults returns a boolean if a field has been set. func (o *WorkflowServiceItemInstanceList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *WorkflowServiceItemInstanceList) UnmarshalJSON(data []byte) (err error) "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *WorkflowServiceItemInstanceList) UnmarshalJSON(data []byte) (err error) } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type WorkflowServiceItemInstanceListWithoutEmbeddedStruct struct { // The total number of 'workflow.ServiceItemInstance' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_workflow_service_item_instance_relationship.go b/model_workflow_service_item_instance_relationship.go index 467f426cba..1db4b253ca 100644 --- a/model_workflow_service_item_instance_relationship.go +++ b/model_workflow_service_item_instance_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_workflow_service_item_instance_response.go b/model_workflow_service_item_instance_response.go index 8f3dd5acc0..b5db45c898 100644 --- a/model_workflow_service_item_instance_response.go +++ b/model_workflow_service_item_instance_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_workflow_service_item_output.go b/model_workflow_service_item_output.go index 6b43860c12..f31da34a1e 100644 --- a/model_workflow_service_item_output.go +++ b/model_workflow_service_item_output.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -85,6 +85,11 @@ func (o *WorkflowServiceItemOutput) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "workflow.ServiceItemOutput" of the ClassId field. +func (o *WorkflowServiceItemOutput) GetDefaultClassId() interface{} { + return "workflow.ServiceItemOutput" +} + // GetObjectType returns the ObjectType field value func (o *WorkflowServiceItemOutput) GetObjectType() string { if o == nil { @@ -109,6 +114,11 @@ func (o *WorkflowServiceItemOutput) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "workflow.ServiceItemOutput" of the ObjectType field. +func (o *WorkflowServiceItemOutput) GetDefaultObjectType() interface{} { + return "workflow.ServiceItemOutput" +} + // GetName returns the Name field value if set, zero value otherwise. func (o *WorkflowServiceItemOutput) GetName() string { if o == nil || IsNil(o.Name) { @@ -162,7 +172,7 @@ func (o *WorkflowServiceItemOutput) GetOutputOk() (*interface{}, bool) { // HasOutput returns a boolean if a field has been set. func (o *WorkflowServiceItemOutput) HasOutput() bool { - if o != nil && IsNil(o.Output) { + if o != nil && !IsNil(o.Output) { return true } @@ -235,7 +245,13 @@ func (o WorkflowServiceItemOutput) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Name) { toSerialize["Name"] = o.Name @@ -263,6 +279,13 @@ func (o *WorkflowServiceItemOutput) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -272,11 +295,23 @@ func (o *WorkflowServiceItemOutput) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type WorkflowServiceItemOutputWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_workflow_service_item_output_list.go b/model_workflow_service_item_output_list.go index d98a8f559b..11f8336a43 100644 --- a/model_workflow_service_item_output_list.go +++ b/model_workflow_service_item_output_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *WorkflowServiceItemOutputList) GetResultsOk() ([]WorkflowServiceItemOut // HasResults returns a boolean if a field has been set. func (o *WorkflowServiceItemOutputList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *WorkflowServiceItemOutputList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *WorkflowServiceItemOutputList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type WorkflowServiceItemOutputListWithoutEmbeddedStruct struct { // The total number of 'workflow.ServiceItemOutput' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_workflow_service_item_output_response.go b/model_workflow_service_item_output_response.go index 51a6ecc304..5473ac5406 100644 --- a/model_workflow_service_item_output_response.go +++ b/model_workflow_service_item_output_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_workflow_service_item_type.go b/model_workflow_service_item_type.go index e419bc3e38..a450bcc60a 100644 --- a/model_workflow_service_item_type.go +++ b/model_workflow_service_item_type.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -31,7 +31,7 @@ type WorkflowServiceItemType struct { // The description of this service item. Description *string `json:"Description,omitempty"` // The name of the service item as defined by the user. - Name *string `json:"Name,omitempty"` + Name *string `json:"Name,omitempty" validate:"regexp=^[a-zA-Z0-9]+[\\\\sa-zA-Z0-9_.:-]{1,92}$"` ServiceItemDefinition *MoMoRef `json:"ServiceItemDefinition,omitempty"` ServiceItemInputDefinition []WorkflowServiceItemInputDefinitionType `json:"ServiceItemInputDefinition,omitempty"` AdditionalProperties map[string]interface{} @@ -86,6 +86,11 @@ func (o *WorkflowServiceItemType) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "workflow.ServiceItemType" of the ClassId field. +func (o *WorkflowServiceItemType) GetDefaultClassId() interface{} { + return "workflow.ServiceItemType" +} + // GetObjectType returns the ObjectType field value func (o *WorkflowServiceItemType) GetObjectType() string { if o == nil { @@ -110,6 +115,11 @@ func (o *WorkflowServiceItemType) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "workflow.ServiceItemType" of the ObjectType field. +func (o *WorkflowServiceItemType) GetDefaultObjectType() interface{} { + return "workflow.ServiceItemType" +} + // GetDescription returns the Description field value if set, zero value otherwise. func (o *WorkflowServiceItemType) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -227,7 +237,7 @@ func (o *WorkflowServiceItemType) GetServiceItemInputDefinitionOk() ([]WorkflowS // HasServiceItemInputDefinition returns a boolean if a field has been set. func (o *WorkflowServiceItemType) HasServiceItemInputDefinition() bool { - if o != nil && IsNil(o.ServiceItemInputDefinition) { + if o != nil && !IsNil(o.ServiceItemInputDefinition) { return true } @@ -257,7 +267,13 @@ func (o WorkflowServiceItemType) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Description) { toSerialize["Description"] = o.Description @@ -288,6 +304,13 @@ func (o *WorkflowServiceItemType) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -297,11 +320,23 @@ func (o *WorkflowServiceItemType) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type WorkflowServiceItemTypeWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` @@ -310,7 +345,7 @@ func (o *WorkflowServiceItemType) UnmarshalJSON(data []byte) (err error) { // The description of this service item. Description *string `json:"Description,omitempty"` // The name of the service item as defined by the user. - Name *string `json:"Name,omitempty"` + Name *string `json:"Name,omitempty" validate:"regexp=^[a-zA-Z0-9]+[\\\\sa-zA-Z0-9_.:-]{1,92}$"` ServiceItemDefinition *MoMoRef `json:"ServiceItemDefinition,omitempty"` ServiceItemInputDefinition []WorkflowServiceItemInputDefinitionType `json:"ServiceItemInputDefinition,omitempty"` } diff --git a/model_workflow_ssh_batch_executor.go b/model_workflow_ssh_batch_executor.go index 207bb2e3a1..bf76f9b360 100644 --- a/model_workflow_ssh_batch_executor.go +++ b/model_workflow_ssh_batch_executor.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -81,6 +81,11 @@ func (o *WorkflowSshBatchExecutor) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "workflow.SshBatchExecutor" of the ClassId field. +func (o *WorkflowSshBatchExecutor) GetDefaultClassId() interface{} { + return "workflow.SshBatchExecutor" +} + // GetObjectType returns the ObjectType field value func (o *WorkflowSshBatchExecutor) GetObjectType() string { if o == nil { @@ -105,6 +110,11 @@ func (o *WorkflowSshBatchExecutor) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "workflow.SshBatchExecutor" of the ObjectType field. +func (o *WorkflowSshBatchExecutor) GetDefaultObjectType() interface{} { + return "workflow.SshBatchExecutor" +} + // GetTaskDefinition returns the TaskDefinition field value if set, zero value otherwise (both if not set or set to explicit null). func (o *WorkflowSshBatchExecutor) GetTaskDefinition() WorkflowTaskDefinitionRelationship { if o == nil || IsNil(o.TaskDefinition.Get()) { @@ -166,7 +176,13 @@ func (o WorkflowSshBatchExecutor) ToMap() (map[string]interface{}, error) { if errWorkflowBatchExecutor != nil { return map[string]interface{}{}, errWorkflowBatchExecutor } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.TaskDefinition.IsSet() { toSerialize["TaskDefinition"] = o.TaskDefinition.Get() @@ -188,6 +204,13 @@ func (o *WorkflowSshBatchExecutor) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -197,11 +220,23 @@ func (o *WorkflowSshBatchExecutor) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type WorkflowSshBatchExecutorWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_workflow_ssh_batch_executor_list.go b/model_workflow_ssh_batch_executor_list.go index c7e43b7f0e..4428a4f6d8 100644 --- a/model_workflow_ssh_batch_executor_list.go +++ b/model_workflow_ssh_batch_executor_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *WorkflowSshBatchExecutorList) GetResultsOk() ([]WorkflowSshBatchExecuto // HasResults returns a boolean if a field has been set. func (o *WorkflowSshBatchExecutorList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *WorkflowSshBatchExecutorList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *WorkflowSshBatchExecutorList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type WorkflowSshBatchExecutorListWithoutEmbeddedStruct struct { // The total number of 'workflow.SshBatchExecutor' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_workflow_ssh_batch_executor_response.go b/model_workflow_ssh_batch_executor_response.go index 7b4cea21ee..1acd4a51d7 100644 --- a/model_workflow_ssh_batch_executor_response.go +++ b/model_workflow_ssh_batch_executor_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_workflow_ssh_cmd.go b/model_workflow_ssh_cmd.go index 774d982111..d717b0bdf0 100644 --- a/model_workflow_ssh_cmd.go +++ b/model_workflow_ssh_cmd.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -90,6 +90,11 @@ func (o *WorkflowSshCmd) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "workflow.SshCmd" of the ClassId field. +func (o *WorkflowSshCmd) GetDefaultClassId() interface{} { + return "workflow.SshCmd" +} + // GetObjectType returns the ObjectType field value func (o *WorkflowSshCmd) GetObjectType() string { if o == nil { @@ -114,6 +119,11 @@ func (o *WorkflowSshCmd) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "workflow.SshCmd" of the ObjectType field. +func (o *WorkflowSshCmd) GetDefaultObjectType() interface{} { + return "workflow.SshCmd" +} + // GetCommand returns the Command field value if set, zero value otherwise. func (o *WorkflowSshCmd) GetCommand() string { if o == nil || IsNil(o.Command) { @@ -199,7 +209,7 @@ func (o *WorkflowSshCmd) GetExpectPromptsOk() (*interface{}, bool) { // HasExpectPrompts returns a boolean if a field has been set. func (o *WorkflowSshCmd) HasExpectPrompts() bool { - if o != nil && IsNil(o.ExpectPrompts) { + if o != nil && !IsNil(o.ExpectPrompts) { return true } @@ -293,7 +303,13 @@ func (o WorkflowSshCmd) ToMap() (map[string]interface{}, error) { if errConnectorBaseMessage != nil { return map[string]interface{}{}, errConnectorBaseMessage } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Command) { toSerialize["Command"] = o.Command @@ -327,6 +343,13 @@ func (o *WorkflowSshCmd) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -336,11 +359,23 @@ func (o *WorkflowSshCmd) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type WorkflowSshCmdWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_workflow_ssh_config.go b/model_workflow_ssh_config.go index dda97f1847..afa0a7481c 100644 --- a/model_workflow_ssh_config.go +++ b/model_workflow_ssh_config.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -96,6 +96,11 @@ func (o *WorkflowSshConfig) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "workflow.SshConfig" of the ClassId field. +func (o *WorkflowSshConfig) GetDefaultClassId() interface{} { + return "workflow.SshConfig" +} + // GetObjectType returns the ObjectType field value func (o *WorkflowSshConfig) GetObjectType() string { if o == nil { @@ -120,6 +125,11 @@ func (o *WorkflowSshConfig) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "workflow.SshConfig" of the ObjectType field. +func (o *WorkflowSshConfig) GetDefaultObjectType() interface{} { + return "workflow.SshConfig" +} + // GetIsPassphraseSet returns the IsPassphraseSet field value if set, zero value otherwise. func (o *WorkflowSshConfig) GetIsPassphraseSet() bool { if o == nil || IsNil(o.IsPassphraseSet) { @@ -394,7 +404,13 @@ func (o WorkflowSshConfig) ToMap() (map[string]interface{}, error) { if errConnectorBaseMessage != nil { return map[string]interface{}{}, errConnectorBaseMessage } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.IsPassphraseSet) { toSerialize["IsPassphraseSet"] = o.IsPassphraseSet @@ -437,6 +453,13 @@ func (o *WorkflowSshConfig) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -446,11 +469,23 @@ func (o *WorkflowSshConfig) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type WorkflowSshConfigWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_workflow_ssh_session.go b/model_workflow_ssh_session.go index 5cf30ca68b..45b2cd1499 100644 --- a/model_workflow_ssh_session.go +++ b/model_workflow_ssh_session.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -96,6 +96,11 @@ func (o *WorkflowSshSession) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "workflow.SshSession" of the ClassId field. +func (o *WorkflowSshSession) GetDefaultClassId() interface{} { + return "workflow.SshSession" +} + // GetObjectType returns the ObjectType field value func (o *WorkflowSshSession) GetObjectType() string { if o == nil { @@ -120,6 +125,11 @@ func (o *WorkflowSshSession) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "workflow.SshSession" of the ObjectType field. +func (o *WorkflowSshSession) GetDefaultObjectType() interface{} { + return "workflow.SshSession" +} + // GetCaptureCompleteResponse returns the CaptureCompleteResponse field value if set, zero value otherwise. func (o *WorkflowSshSession) GetCaptureCompleteResponse() string { if o == nil || IsNil(o.CaptureCompleteResponse) { @@ -173,7 +183,7 @@ func (o *WorkflowSshSession) GetExpectedExitCodesOk() (*interface{}, bool) { // HasExpectedExitCodes returns a boolean if a field has been set. func (o *WorkflowSshSession) HasExpectedExitCodes() bool { - if o != nil && IsNil(o.ExpectedExitCodes) { + if o != nil && !IsNil(o.ExpectedExitCodes) { return true } @@ -270,7 +280,7 @@ func (o *WorkflowSshSession) GetSshCommandOk() (*interface{}, bool) { // HasSshCommand returns a boolean if a field has been set. func (o *WorkflowSshSession) HasSshCommand() bool { - if o != nil && IsNil(o.SshCommand) { + if o != nil && !IsNil(o.SshCommand) { return true } @@ -364,7 +374,13 @@ func (o WorkflowSshSession) ToMap() (map[string]interface{}, error) { if errWorkflowApi != nil { return map[string]interface{}{}, errWorkflowApi } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.CaptureCompleteResponse) { toSerialize["CaptureCompleteResponse"] = o.CaptureCompleteResponse @@ -404,6 +420,13 @@ func (o *WorkflowSshSession) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -413,11 +436,23 @@ func (o *WorkflowSshSession) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type WorkflowSshSessionWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_workflow_start_task.go b/model_workflow_start_task.go index 9f09b1c575..53c2518985 100644 --- a/model_workflow_start_task.go +++ b/model_workflow_start_task.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -82,6 +82,11 @@ func (o *WorkflowStartTask) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "workflow.StartTask" of the ClassId field. +func (o *WorkflowStartTask) GetDefaultClassId() interface{} { + return "workflow.StartTask" +} + // GetObjectType returns the ObjectType field value func (o *WorkflowStartTask) GetObjectType() string { if o == nil { @@ -106,6 +111,11 @@ func (o *WorkflowStartTask) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "workflow.StartTask" of the ObjectType field. +func (o *WorkflowStartTask) GetDefaultObjectType() interface{} { + return "workflow.StartTask" +} + // GetNextTask returns the NextTask field value if set, zero value otherwise. func (o *WorkflowStartTask) GetNextTask() string { if o == nil || IsNil(o.NextTask) { @@ -156,7 +166,13 @@ func (o WorkflowStartTask) ToMap() (map[string]interface{}, error) { if errWorkflowControlTask != nil { return map[string]interface{}{}, errWorkflowControlTask } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.NextTask) { toSerialize["NextTask"] = o.NextTask @@ -178,6 +194,13 @@ func (o *WorkflowStartTask) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -187,11 +210,23 @@ func (o *WorkflowStartTask) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type WorkflowStartTaskWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_workflow_sub_workflow_task.go b/model_workflow_sub_workflow_task.go index ca383df546..96c949bb68 100644 --- a/model_workflow_sub_workflow_task.go +++ b/model_workflow_sub_workflow_task.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -90,6 +90,11 @@ func (o *WorkflowSubWorkflowTask) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "workflow.SubWorkflowTask" of the ClassId field. +func (o *WorkflowSubWorkflowTask) GetDefaultClassId() interface{} { + return "workflow.SubWorkflowTask" +} + // GetObjectType returns the ObjectType field value func (o *WorkflowSubWorkflowTask) GetObjectType() string { if o == nil { @@ -114,6 +119,11 @@ func (o *WorkflowSubWorkflowTask) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "workflow.SubWorkflowTask" of the ObjectType field. +func (o *WorkflowSubWorkflowTask) GetDefaultObjectType() interface{} { + return "workflow.SubWorkflowTask" +} + // GetCatalogMoid returns the CatalogMoid field value if set, zero value otherwise. func (o *WorkflowSubWorkflowTask) GetCatalogMoid() string { if o == nil || IsNil(o.CatalogMoid) { @@ -260,7 +270,13 @@ func (o WorkflowSubWorkflowTask) ToMap() (map[string]interface{}, error) { if errWorkflowAbstractWorkerTask != nil { return map[string]interface{}{}, errWorkflowAbstractWorkerTask } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.CatalogMoid) { toSerialize["CatalogMoid"] = o.CatalogMoid @@ -291,6 +307,13 @@ func (o *WorkflowSubWorkflowTask) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -300,11 +323,23 @@ func (o *WorkflowSubWorkflowTask) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type WorkflowSubWorkflowTaskWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_workflow_success_end_task.go b/model_workflow_success_end_task.go index 5e1f3fed99..06908ae061 100644 --- a/model_workflow_success_end_task.go +++ b/model_workflow_success_end_task.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -83,6 +83,10 @@ func (o *WorkflowSuccessEndTask) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -92,11 +96,23 @@ func (o *WorkflowSuccessEndTask) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type WorkflowSuccessEndTaskWithoutEmbeddedStruct struct { } diff --git a/model_workflow_target_context.go b/model_workflow_target_context.go index a9b26f48ed..d125b52beb 100644 --- a/model_workflow_target_context.go +++ b/model_workflow_target_context.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -86,6 +86,11 @@ func (o *WorkflowTargetContext) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "workflow.TargetContext" of the ClassId field. +func (o *WorkflowTargetContext) GetDefaultClassId() interface{} { + return "workflow.TargetContext" +} + // GetObjectType returns the ObjectType field value func (o *WorkflowTargetContext) GetObjectType() string { if o == nil { @@ -110,6 +115,11 @@ func (o *WorkflowTargetContext) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "workflow.TargetContext" of the ObjectType field. +func (o *WorkflowTargetContext) GetDefaultObjectType() interface{} { + return "workflow.TargetContext" +} + // GetTargetMoid returns the TargetMoid field value if set, zero value otherwise. func (o *WorkflowTargetContext) GetTargetMoid() string { if o == nil || IsNil(o.TargetMoid) { @@ -224,7 +234,13 @@ func (o WorkflowTargetContext) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.TargetMoid) { toSerialize["TargetMoid"] = o.TargetMoid @@ -252,6 +268,13 @@ func (o *WorkflowTargetContext) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -261,11 +284,23 @@ func (o *WorkflowTargetContext) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type WorkflowTargetContextWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_workflow_target_data_type.go b/model_workflow_target_data_type.go index e55297b99a..0adb22ef9c 100644 --- a/model_workflow_target_data_type.go +++ b/model_workflow_target_data_type.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -92,6 +92,11 @@ func (o *WorkflowTargetDataType) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "workflow.TargetDataType" of the ClassId field. +func (o *WorkflowTargetDataType) GetDefaultClassId() interface{} { + return "workflow.TargetDataType" +} + // GetObjectType returns the ObjectType field value func (o *WorkflowTargetDataType) GetObjectType() string { if o == nil { @@ -116,6 +121,11 @@ func (o *WorkflowTargetDataType) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "workflow.TargetDataType" of the ObjectType field. +func (o *WorkflowTargetDataType) GetDefaultObjectType() interface{} { + return "workflow.TargetDataType" +} + // GetCustomDataTypeProperties returns the CustomDataTypeProperties field value if set, zero value otherwise (both if not set or set to explicit null). func (o *WorkflowTargetDataType) GetCustomDataTypeProperties() WorkflowCustomDataProperty { if o == nil || IsNil(o.CustomDataTypeProperties.Get()) { @@ -276,7 +286,7 @@ func (o *WorkflowTargetDataType) GetPropertiesOk() ([]WorkflowTargetProperty, bo // HasProperties returns a boolean if a field has been set. func (o *WorkflowTargetDataType) HasProperties() bool { - if o != nil && IsNil(o.Properties) { + if o != nil && !IsNil(o.Properties) { return true } @@ -306,7 +316,13 @@ func (o WorkflowTargetDataType) ToMap() (map[string]interface{}, error) { if errWorkflowBaseDataType != nil { return map[string]interface{}{}, errWorkflowBaseDataType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.CustomDataTypeProperties.IsSet() { toSerialize["CustomDataTypeProperties"] = o.CustomDataTypeProperties.Get() @@ -340,6 +356,13 @@ func (o *WorkflowTargetDataType) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -349,11 +372,23 @@ func (o *WorkflowTargetDataType) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type WorkflowTargetDataTypeWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_workflow_target_property.go b/model_workflow_target_property.go index e5459e26a5..aafe89a7e5 100644 --- a/model_workflow_target_property.go +++ b/model_workflow_target_property.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -32,8 +32,9 @@ type WorkflowTargetProperty struct { ConnectorAttribute *string `json:"ConnectorAttribute,omitempty"` ConstraintAttributes []string `json:"ConstraintAttributes,omitempty"` DisplayAttributes []string `json:"DisplayAttributes,omitempty"` + PlatformType []string `json:"PlatformType,omitempty"` // Field to hold an Intersight API along with an optional filter to narrow down the search options for target device. - Selector *string `json:"Selector,omitempty"` + Selector *string `json:"Selector,omitempty" validate:"regexp=^$|\\/api\\/v1\\/.*"` SelectorProperty NullableWorkflowSelectorProperty `json:"SelectorProperty,omitempty"` SupportedObjects []string `json:"SupportedObjects,omitempty"` AdditionalProperties map[string]interface{} @@ -88,6 +89,11 @@ func (o *WorkflowTargetProperty) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "workflow.TargetProperty" of the ClassId field. +func (o *WorkflowTargetProperty) GetDefaultClassId() interface{} { + return "workflow.TargetProperty" +} + // GetObjectType returns the ObjectType field value func (o *WorkflowTargetProperty) GetObjectType() string { if o == nil { @@ -112,6 +118,11 @@ func (o *WorkflowTargetProperty) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "workflow.TargetProperty" of the ObjectType field. +func (o *WorkflowTargetProperty) GetDefaultObjectType() interface{} { + return "workflow.TargetProperty" +} + // GetConnectorAttribute returns the ConnectorAttribute field value if set, zero value otherwise. func (o *WorkflowTargetProperty) GetConnectorAttribute() string { if o == nil || IsNil(o.ConnectorAttribute) { @@ -165,7 +176,7 @@ func (o *WorkflowTargetProperty) GetConstraintAttributesOk() ([]string, bool) { // HasConstraintAttributes returns a boolean if a field has been set. func (o *WorkflowTargetProperty) HasConstraintAttributes() bool { - if o != nil && IsNil(o.ConstraintAttributes) { + if o != nil && !IsNil(o.ConstraintAttributes) { return true } @@ -198,7 +209,7 @@ func (o *WorkflowTargetProperty) GetDisplayAttributesOk() ([]string, bool) { // HasDisplayAttributes returns a boolean if a field has been set. func (o *WorkflowTargetProperty) HasDisplayAttributes() bool { - if o != nil && IsNil(o.DisplayAttributes) { + if o != nil && !IsNil(o.DisplayAttributes) { return true } @@ -210,6 +221,39 @@ func (o *WorkflowTargetProperty) SetDisplayAttributes(v []string) { o.DisplayAttributes = v } +// GetPlatformType returns the PlatformType field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *WorkflowTargetProperty) GetPlatformType() []string { + if o == nil { + var ret []string + return ret + } + return o.PlatformType +} + +// GetPlatformTypeOk returns a tuple with the PlatformType field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *WorkflowTargetProperty) GetPlatformTypeOk() ([]string, bool) { + if o == nil || IsNil(o.PlatformType) { + return nil, false + } + return o.PlatformType, true +} + +// HasPlatformType returns a boolean if a field has been set. +func (o *WorkflowTargetProperty) HasPlatformType() bool { + if o != nil && !IsNil(o.PlatformType) { + return true + } + + return false +} + +// SetPlatformType gets a reference to the given []string and assigns it to the PlatformType field. +func (o *WorkflowTargetProperty) SetPlatformType(v []string) { + o.PlatformType = v +} + // GetSelector returns the Selector field value if set, zero value otherwise. func (o *WorkflowTargetProperty) GetSelector() string { if o == nil || IsNil(o.Selector) { @@ -306,7 +350,7 @@ func (o *WorkflowTargetProperty) GetSupportedObjectsOk() ([]string, bool) { // HasSupportedObjects returns a boolean if a field has been set. func (o *WorkflowTargetProperty) HasSupportedObjects() bool { - if o != nil && IsNil(o.SupportedObjects) { + if o != nil && !IsNil(o.SupportedObjects) { return true } @@ -336,7 +380,13 @@ func (o WorkflowTargetProperty) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.ConnectorAttribute) { toSerialize["ConnectorAttribute"] = o.ConnectorAttribute @@ -347,6 +397,9 @@ func (o WorkflowTargetProperty) ToMap() (map[string]interface{}, error) { if o.DisplayAttributes != nil { toSerialize["DisplayAttributes"] = o.DisplayAttributes } + if o.PlatformType != nil { + toSerialize["PlatformType"] = o.PlatformType + } if !IsNil(o.Selector) { toSerialize["Selector"] = o.Selector } @@ -373,6 +426,13 @@ func (o *WorkflowTargetProperty) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -382,11 +442,23 @@ func (o *WorkflowTargetProperty) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type WorkflowTargetPropertyWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` @@ -396,8 +468,9 @@ func (o *WorkflowTargetProperty) UnmarshalJSON(data []byte) (err error) { ConnectorAttribute *string `json:"ConnectorAttribute,omitempty"` ConstraintAttributes []string `json:"ConstraintAttributes,omitempty"` DisplayAttributes []string `json:"DisplayAttributes,omitempty"` + PlatformType []string `json:"PlatformType,omitempty"` // Field to hold an Intersight API along with an optional filter to narrow down the search options for target device. - Selector *string `json:"Selector,omitempty"` + Selector *string `json:"Selector,omitempty" validate:"regexp=^$|\\/api\\/v1\\/.*"` SelectorProperty NullableWorkflowSelectorProperty `json:"SelectorProperty,omitempty"` SupportedObjects []string `json:"SupportedObjects,omitempty"` } @@ -412,6 +485,7 @@ func (o *WorkflowTargetProperty) UnmarshalJSON(data []byte) (err error) { varWorkflowTargetProperty.ConnectorAttribute = varWorkflowTargetPropertyWithoutEmbeddedStruct.ConnectorAttribute varWorkflowTargetProperty.ConstraintAttributes = varWorkflowTargetPropertyWithoutEmbeddedStruct.ConstraintAttributes varWorkflowTargetProperty.DisplayAttributes = varWorkflowTargetPropertyWithoutEmbeddedStruct.DisplayAttributes + varWorkflowTargetProperty.PlatformType = varWorkflowTargetPropertyWithoutEmbeddedStruct.PlatformType varWorkflowTargetProperty.Selector = varWorkflowTargetPropertyWithoutEmbeddedStruct.Selector varWorkflowTargetProperty.SelectorProperty = varWorkflowTargetPropertyWithoutEmbeddedStruct.SelectorProperty varWorkflowTargetProperty.SupportedObjects = varWorkflowTargetPropertyWithoutEmbeddedStruct.SupportedObjects @@ -437,6 +511,7 @@ func (o *WorkflowTargetProperty) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "ConnectorAttribute") delete(additionalProperties, "ConstraintAttributes") delete(additionalProperties, "DisplayAttributes") + delete(additionalProperties, "PlatformType") delete(additionalProperties, "Selector") delete(additionalProperties, "SelectorProperty") delete(additionalProperties, "SupportedObjects") diff --git a/model_workflow_task_constraints.go b/model_workflow_task_constraints.go index d8148cfee8..6352dc155b 100644 --- a/model_workflow_task_constraints.go +++ b/model_workflow_task_constraints.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -82,6 +82,11 @@ func (o *WorkflowTaskConstraints) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "workflow.TaskConstraints" of the ClassId field. +func (o *WorkflowTaskConstraints) GetDefaultClassId() interface{} { + return "workflow.TaskConstraints" +} + // GetObjectType returns the ObjectType field value func (o *WorkflowTaskConstraints) GetObjectType() string { if o == nil { @@ -106,6 +111,11 @@ func (o *WorkflowTaskConstraints) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "workflow.TaskConstraints" of the ObjectType field. +func (o *WorkflowTaskConstraints) GetDefaultObjectType() interface{} { + return "workflow.TaskConstraints" +} + // GetTargetDataType returns the TargetDataType field value if set, zero value otherwise (both if not set or set to explicit null). func (o *WorkflowTaskConstraints) GetTargetDataType() interface{} { if o == nil { @@ -127,7 +137,7 @@ func (o *WorkflowTaskConstraints) GetTargetDataTypeOk() (*interface{}, bool) { // HasTargetDataType returns a boolean if a field has been set. func (o *WorkflowTaskConstraints) HasTargetDataType() bool { - if o != nil && IsNil(o.TargetDataType) { + if o != nil && !IsNil(o.TargetDataType) { return true } @@ -157,7 +167,13 @@ func (o WorkflowTaskConstraints) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.TargetDataType != nil { toSerialize["TargetDataType"] = o.TargetDataType @@ -179,6 +195,13 @@ func (o *WorkflowTaskConstraints) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -188,11 +211,23 @@ func (o *WorkflowTaskConstraints) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type WorkflowTaskConstraintsWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_workflow_task_debug_log.go b/model_workflow_task_debug_log.go index 6dc48071f7..2e23518d49 100644 --- a/model_workflow_task_debug_log.go +++ b/model_workflow_task_debug_log.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -88,6 +88,11 @@ func (o *WorkflowTaskDebugLog) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "workflow.TaskDebugLog" of the ClassId field. +func (o *WorkflowTaskDebugLog) GetDefaultClassId() interface{} { + return "workflow.TaskDebugLog" +} + // GetObjectType returns the ObjectType field value func (o *WorkflowTaskDebugLog) GetObjectType() string { if o == nil { @@ -112,6 +117,11 @@ func (o *WorkflowTaskDebugLog) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "workflow.TaskDebugLog" of the ObjectType field. +func (o *WorkflowTaskDebugLog) GetDefaultObjectType() interface{} { + return "workflow.TaskDebugLog" +} + // GetRetryCount returns the RetryCount field value if set, zero value otherwise. func (o *WorkflowTaskDebugLog) GetRetryCount() int64 { if o == nil || IsNil(o.RetryCount) { @@ -165,7 +175,7 @@ func (o *WorkflowTaskDebugLog) GetTaskDebugLogEntriesOk() (*interface{}, bool) { // HasTaskDebugLogEntries returns a boolean if a field has been set. func (o *WorkflowTaskDebugLog) HasTaskDebugLogEntries() bool { - if o != nil && IsNil(o.TaskDebugLogEntries) { + if o != nil && !IsNil(o.TaskDebugLogEntries) { return true } @@ -313,7 +323,13 @@ func (o WorkflowTaskDebugLog) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.RetryCount) { toSerialize["RetryCount"] = o.RetryCount @@ -347,6 +363,13 @@ func (o *WorkflowTaskDebugLog) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -356,11 +379,23 @@ func (o *WorkflowTaskDebugLog) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type WorkflowTaskDebugLogWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_workflow_task_debug_log_list.go b/model_workflow_task_debug_log_list.go index 6518e965fd..3f226076b3 100644 --- a/model_workflow_task_debug_log_list.go +++ b/model_workflow_task_debug_log_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *WorkflowTaskDebugLogList) GetResultsOk() ([]WorkflowTaskDebugLog, bool) // HasResults returns a boolean if a field has been set. func (o *WorkflowTaskDebugLogList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *WorkflowTaskDebugLogList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *WorkflowTaskDebugLogList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type WorkflowTaskDebugLogListWithoutEmbeddedStruct struct { // The total number of 'workflow.TaskDebugLog' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_workflow_task_debug_log_response.go b/model_workflow_task_debug_log_response.go index 219977500f..7187b6deeb 100644 --- a/model_workflow_task_debug_log_response.go +++ b/model_workflow_task_debug_log_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_workflow_task_definition.go b/model_workflow_task_definition.go index f75a7502f2..63afb8a851 100644 --- a/model_workflow_task_definition.go +++ b/model_workflow_task_definition.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -34,11 +34,11 @@ type WorkflowTaskDefinition struct { Description *string `json:"Description,omitempty"` InternalProperties NullableWorkflowInternalProperties `json:"InternalProperties,omitempty"` // A user friendly short name to identify the task definition. Label can only contain letters (a-z, A-Z), numbers (0-9), hyphen (-), period (.), colon (:), space ( ), single quote ('), forward slash (/), or an underscore (_) and must be at least 2 characters. - Label *string `json:"Label,omitempty"` + Label *string `json:"Label,omitempty" validate:"regexp=^[a-zA-Z0-9]{1}[\\\\sa-zA-Z0-9_'.\\/:-]{0,91}$"` // License entitlement required to run this task. It is determined by license requirement of features. * `Base` - Base as a License type. It is default license type. * `Essential` - Essential as a License type. * `Standard` - Standard as a License type. * `Advantage` - Advantage as a License type. * `Premier` - Premier as a License type. * `IWO-Essential` - IWO-Essential as a License type. * `IWO-Advantage` - IWO-Advantage as a License type. * `IWO-Premier` - IWO-Premier as a License type. * `IKS-Advantage` - IKS-Advantage as a License type. * `INC-Premier-1GFixed` - Premier 1G Fixed license tier for Intersight Nexus Cloud. * `INC-Premier-10GFixed` - Premier 10G Fixed license tier for Intersight Nexus Cloud. * `INC-Premier-100GFixed` - Premier 100G Fixed license tier for Intersight Nexus Cloud. * `INC-Premier-Mod4Slot` - Premier Modular 4 slot license tier for Intersight Nexus Cloud. * `INC-Premier-Mod8Slot` - Premier Modular 8 slot license tier for Intersight Nexus Cloud. * `INC-Premier-D2OpsFixed` - Premier D2Ops fixed license tier for Intersight Nexus Cloud. * `INC-Premier-D2OpsMod` - Premier D2Ops modular license tier for Intersight Nexus Cloud. * `INC-Premier-CentralizedMod8Slot` - Premier modular license tier of switch type CentralizedMod8Slot for Intersight Nexus Cloud. * `INC-Premier-DistributedMod8Slot` - Premier modular license tier of switch type DistributedMod8Slot for Intersight Nexus Cloud. * `IntersightTrial` - Virtual dummy license type to indicate trial. Used for UI display of trial mode Intersight tiers. * `IWOTrial` - Virtual dummy license type to indicate trial. Used for UI display of trial mode IKS tiers. * `IKSTrial` - Virtual dummy license type to indicate trial. Used for UI display of trial mode IWO tiers. * `INCTrial` - Virtual dummy license type to indicate trial. Used for UI display of trial mode Nexus tiers. LicenseEntitlement *string `json:"LicenseEntitlement,omitempty"` // The name of the task definition. The name should follow this convention Verb or Action is a required portion of the name and this must be part of the pre-approved verb list. Category is an optional field and this will refer to the broad category of the task referring to the type of resource or endpoint. If there is no specific category then use \"Generic\" if required. Vendor is an optional field and this will refer to the specific vendor this task applies to. If the task is generic and not tied to a vendor, then do not specify anything. Product is an optional field, this will contain the vendor product and model when desired. Noun or object is a required field and this will contain the noun or object on which the action is being performed. Name can only contain letters (a-z, A-Z), numbers (0-9), hyphen (-), period (.), colon (:), or an underscore (_). Examples SendEmail - This is a task in Generic category for sending email. NewStorageVolume - This is a vendor agnostic task under Storage device category for creating a new volume. - Name *string `json:"Name,omitempty"` + Name *string `json:"Name,omitempty" validate:"regexp=^[a-zA-Z0-9]{1}[a-zA-Z0-9_.:-]{0,63}$"` Properties NullableWorkflowProperties `json:"Properties,omitempty"` RollbackTasks []WorkflowRollbackTask `json:"RollbackTasks,omitempty"` // If set to true, the task requires access to secure properties and uses an encryption token associated with a workflow moid to encrypt or decrypt the secure properties. @@ -107,6 +107,11 @@ func (o *WorkflowTaskDefinition) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "workflow.TaskDefinition" of the ClassId field. +func (o *WorkflowTaskDefinition) GetDefaultClassId() interface{} { + return "workflow.TaskDefinition" +} + // GetObjectType returns the ObjectType field value func (o *WorkflowTaskDefinition) GetObjectType() string { if o == nil { @@ -131,6 +136,11 @@ func (o *WorkflowTaskDefinition) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "workflow.TaskDefinition" of the ObjectType field. +func (o *WorkflowTaskDefinition) GetDefaultObjectType() interface{} { + return "workflow.TaskDefinition" +} + // GetDefaultVersion returns the DefaultVersion field value if set, zero value otherwise. func (o *WorkflowTaskDefinition) GetDefaultVersion() bool { if o == nil || IsNil(o.DefaultVersion) { @@ -398,7 +408,7 @@ func (o *WorkflowTaskDefinition) GetRollbackTasksOk() ([]WorkflowRollbackTask, b // HasRollbackTasks returns a boolean if a field has been set. func (o *WorkflowTaskDefinition) HasRollbackTasks() bool { - if o != nil && IsNil(o.RollbackTasks) { + if o != nil && !IsNil(o.RollbackTasks) { return true } @@ -581,7 +591,7 @@ func (o *WorkflowTaskDefinition) GetImplementedTasksOk() ([]WorkflowTaskDefiniti // HasImplementedTasks returns a boolean if a field has been set. func (o *WorkflowTaskDefinition) HasImplementedTasks() bool { - if o != nil && IsNil(o.ImplementedTasks) { + if o != nil && !IsNil(o.ImplementedTasks) { return true } @@ -697,7 +707,13 @@ func (o WorkflowTaskDefinition) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.DefaultVersion) { toSerialize["DefaultVersion"] = o.DefaultVersion @@ -761,6 +777,13 @@ func (o *WorkflowTaskDefinition) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -770,11 +793,23 @@ func (o *WorkflowTaskDefinition) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type WorkflowTaskDefinitionWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` @@ -786,11 +821,11 @@ func (o *WorkflowTaskDefinition) UnmarshalJSON(data []byte) (err error) { Description *string `json:"Description,omitempty"` InternalProperties NullableWorkflowInternalProperties `json:"InternalProperties,omitempty"` // A user friendly short name to identify the task definition. Label can only contain letters (a-z, A-Z), numbers (0-9), hyphen (-), period (.), colon (:), space ( ), single quote ('), forward slash (/), or an underscore (_) and must be at least 2 characters. - Label *string `json:"Label,omitempty"` + Label *string `json:"Label,omitempty" validate:"regexp=^[a-zA-Z0-9]{1}[\\\\sa-zA-Z0-9_'.\\/:-]{0,91}$"` // License entitlement required to run this task. It is determined by license requirement of features. * `Base` - Base as a License type. It is default license type. * `Essential` - Essential as a License type. * `Standard` - Standard as a License type. * `Advantage` - Advantage as a License type. * `Premier` - Premier as a License type. * `IWO-Essential` - IWO-Essential as a License type. * `IWO-Advantage` - IWO-Advantage as a License type. * `IWO-Premier` - IWO-Premier as a License type. * `IKS-Advantage` - IKS-Advantage as a License type. * `INC-Premier-1GFixed` - Premier 1G Fixed license tier for Intersight Nexus Cloud. * `INC-Premier-10GFixed` - Premier 10G Fixed license tier for Intersight Nexus Cloud. * `INC-Premier-100GFixed` - Premier 100G Fixed license tier for Intersight Nexus Cloud. * `INC-Premier-Mod4Slot` - Premier Modular 4 slot license tier for Intersight Nexus Cloud. * `INC-Premier-Mod8Slot` - Premier Modular 8 slot license tier for Intersight Nexus Cloud. * `INC-Premier-D2OpsFixed` - Premier D2Ops fixed license tier for Intersight Nexus Cloud. * `INC-Premier-D2OpsMod` - Premier D2Ops modular license tier for Intersight Nexus Cloud. * `INC-Premier-CentralizedMod8Slot` - Premier modular license tier of switch type CentralizedMod8Slot for Intersight Nexus Cloud. * `INC-Premier-DistributedMod8Slot` - Premier modular license tier of switch type DistributedMod8Slot for Intersight Nexus Cloud. * `IntersightTrial` - Virtual dummy license type to indicate trial. Used for UI display of trial mode Intersight tiers. * `IWOTrial` - Virtual dummy license type to indicate trial. Used for UI display of trial mode IKS tiers. * `IKSTrial` - Virtual dummy license type to indicate trial. Used for UI display of trial mode IWO tiers. * `INCTrial` - Virtual dummy license type to indicate trial. Used for UI display of trial mode Nexus tiers. LicenseEntitlement *string `json:"LicenseEntitlement,omitempty"` // The name of the task definition. The name should follow this convention Verb or Action is a required portion of the name and this must be part of the pre-approved verb list. Category is an optional field and this will refer to the broad category of the task referring to the type of resource or endpoint. If there is no specific category then use \"Generic\" if required. Vendor is an optional field and this will refer to the specific vendor this task applies to. If the task is generic and not tied to a vendor, then do not specify anything. Product is an optional field, this will contain the vendor product and model when desired. Noun or object is a required field and this will contain the noun or object on which the action is being performed. Name can only contain letters (a-z, A-Z), numbers (0-9), hyphen (-), period (.), colon (:), or an underscore (_). Examples SendEmail - This is a task in Generic category for sending email. NewStorageVolume - This is a vendor agnostic task under Storage device category for creating a new volume. - Name *string `json:"Name,omitempty"` + Name *string `json:"Name,omitempty" validate:"regexp=^[a-zA-Z0-9]{1}[a-zA-Z0-9_.:-]{0,63}$"` Properties NullableWorkflowProperties `json:"Properties,omitempty"` RollbackTasks []WorkflowRollbackTask `json:"RollbackTasks,omitempty"` // If set to true, the task requires access to secure properties and uses an encryption token associated with a workflow moid to encrypt or decrypt the secure properties. diff --git a/model_workflow_task_definition_list.go b/model_workflow_task_definition_list.go index 5e41669398..904c110cc2 100644 --- a/model_workflow_task_definition_list.go +++ b/model_workflow_task_definition_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *WorkflowTaskDefinitionList) GetResultsOk() ([]WorkflowTaskDefinition, b // HasResults returns a boolean if a field has been set. func (o *WorkflowTaskDefinitionList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *WorkflowTaskDefinitionList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *WorkflowTaskDefinitionList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type WorkflowTaskDefinitionListWithoutEmbeddedStruct struct { // The total number of 'workflow.TaskDefinition' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_workflow_task_definition_relationship.go b/model_workflow_task_definition_relationship.go index d37de0b95c..c7cd0c6b8d 100644 --- a/model_workflow_task_definition_relationship.go +++ b/model_workflow_task_definition_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_workflow_task_definition_response.go b/model_workflow_task_definition_response.go index a038d3ff24..779f046b34 100644 --- a/model_workflow_task_definition_response.go +++ b/model_workflow_task_definition_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_workflow_task_info.go b/model_workflow_task_info.go index 385b749370..7b21dd1323 100644 --- a/model_workflow_task_info.go +++ b/model_workflow_task_info.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -119,6 +119,11 @@ func (o *WorkflowTaskInfo) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "workflow.TaskInfo" of the ClassId field. +func (o *WorkflowTaskInfo) GetDefaultClassId() interface{} { + return "workflow.TaskInfo" +} + // GetObjectType returns the ObjectType field value func (o *WorkflowTaskInfo) GetObjectType() string { if o == nil { @@ -143,6 +148,11 @@ func (o *WorkflowTaskInfo) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "workflow.TaskInfo" of the ObjectType field. +func (o *WorkflowTaskInfo) GetDefaultObjectType() interface{} { + return "workflow.TaskInfo" +} + // GetDescription returns the Description field value if set, zero value otherwise. func (o *WorkflowTaskInfo) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -260,7 +270,7 @@ func (o *WorkflowTaskInfo) GetInputOk() (*interface{}, bool) { // HasInput returns a boolean if a field has been set. func (o *WorkflowTaskInfo) HasInput() bool { - if o != nil && IsNil(o.Input) { + if o != nil && !IsNil(o.Input) { return true } @@ -389,7 +399,7 @@ func (o *WorkflowTaskInfo) GetMessageOk() ([]WorkflowMessage, bool) { // HasMessage returns a boolean if a field has been set. func (o *WorkflowTaskInfo) HasMessage() bool { - if o != nil && IsNil(o.Message) { + if o != nil && !IsNil(o.Message) { return true } @@ -454,7 +464,7 @@ func (o *WorkflowTaskInfo) GetOutputOk() (*interface{}, bool) { // HasOutput returns a boolean if a field has been set. func (o *WorkflowTaskInfo) HasOutput() bool { - if o != nil && IsNil(o.Output) { + if o != nil && !IsNil(o.Output) { return true } @@ -679,7 +689,7 @@ func (o *WorkflowTaskInfo) GetTaskInstIdListOk() ([]WorkflowTaskRetryInfo, bool) // HasTaskInstIdList returns a boolean if a field has been set. func (o *WorkflowTaskInfo) HasTaskInstIdList() bool { - if o != nil && IsNil(o.TaskInstIdList) { + if o != nil && !IsNil(o.TaskInstIdList) { return true } @@ -798,7 +808,7 @@ func (o *WorkflowTaskInfo) GetSubWorkflowRetryHistoryOk() ([]WorkflowWorkflowInf // HasSubWorkflowRetryHistory returns a boolean if a field has been set. func (o *WorkflowTaskInfo) HasSubWorkflowRetryHistory() bool { - if o != nil && IsNil(o.SubWorkflowRetryHistory) { + if o != nil && !IsNil(o.SubWorkflowRetryHistory) { return true } @@ -914,7 +924,13 @@ func (o WorkflowTaskInfo) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Description) { toSerialize["Description"] = o.Description @@ -999,6 +1015,13 @@ func (o *WorkflowTaskInfo) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -1008,11 +1031,23 @@ func (o *WorkflowTaskInfo) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type WorkflowTaskInfoWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_workflow_task_info_list.go b/model_workflow_task_info_list.go index da14c923f6..0db616cb0e 100644 --- a/model_workflow_task_info_list.go +++ b/model_workflow_task_info_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *WorkflowTaskInfoList) GetResultsOk() ([]WorkflowTaskInfo, bool) { // HasResults returns a boolean if a field has been set. func (o *WorkflowTaskInfoList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *WorkflowTaskInfoList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *WorkflowTaskInfoList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type WorkflowTaskInfoListWithoutEmbeddedStruct struct { // The total number of 'workflow.TaskInfo' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_workflow_task_info_relationship.go b/model_workflow_task_info_relationship.go index 9951db7d5c..2159a65f3f 100644 --- a/model_workflow_task_info_relationship.go +++ b/model_workflow_task_info_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_workflow_task_info_response.go b/model_workflow_task_info_response.go index bddf2135c1..3a524354e5 100644 --- a/model_workflow_task_info_response.go +++ b/model_workflow_task_info_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_workflow_task_info_update.go b/model_workflow_task_info_update.go index 6101a033ba..15c2216dc1 100644 --- a/model_workflow_task_info_update.go +++ b/model_workflow_task_info_update.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -90,6 +90,11 @@ func (o *WorkflowTaskInfoUpdate) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "workflow.TaskInfoUpdate" of the ClassId field. +func (o *WorkflowTaskInfoUpdate) GetDefaultClassId() interface{} { + return "workflow.TaskInfoUpdate" +} + // GetObjectType returns the ObjectType field value func (o *WorkflowTaskInfoUpdate) GetObjectType() string { if o == nil { @@ -114,6 +119,11 @@ func (o *WorkflowTaskInfoUpdate) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "workflow.TaskInfoUpdate" of the ObjectType field. +func (o *WorkflowTaskInfoUpdate) GetDefaultObjectType() interface{} { + return "workflow.TaskInfoUpdate" +} + // GetInput returns the Input field value if set, zero value otherwise (both if not set or set to explicit null). func (o *WorkflowTaskInfoUpdate) GetInput() interface{} { if o == nil { @@ -135,7 +145,7 @@ func (o *WorkflowTaskInfoUpdate) GetInputOk() (*interface{}, bool) { // HasInput returns a boolean if a field has been set. func (o *WorkflowTaskInfoUpdate) HasInput() bool { - if o != nil && IsNil(o.Input) { + if o != nil && !IsNil(o.Input) { return true } @@ -229,7 +239,13 @@ func (o WorkflowTaskInfoUpdate) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.Input != nil { toSerialize["Input"] = o.Input @@ -257,6 +273,13 @@ func (o *WorkflowTaskInfoUpdate) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -266,11 +289,23 @@ func (o *WorkflowTaskInfoUpdate) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type WorkflowTaskInfoUpdateWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_workflow_task_loop_info.go b/model_workflow_task_loop_info.go index b1dd1b90b3..c4e54213c5 100644 --- a/model_workflow_task_loop_info.go +++ b/model_workflow_task_loop_info.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -88,6 +88,11 @@ func (o *WorkflowTaskLoopInfo) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "workflow.TaskLoopInfo" of the ClassId field. +func (o *WorkflowTaskLoopInfo) GetDefaultClassId() interface{} { + return "workflow.TaskLoopInfo" +} + // GetObjectType returns the ObjectType field value func (o *WorkflowTaskLoopInfo) GetObjectType() string { if o == nil { @@ -112,6 +117,11 @@ func (o *WorkflowTaskLoopInfo) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "workflow.TaskLoopInfo" of the ObjectType field. +func (o *WorkflowTaskLoopInfo) GetDefaultObjectType() interface{} { + return "workflow.TaskLoopInfo" +} + // GetIteration returns the Iteration field value if set, zero value otherwise. func (o *WorkflowTaskLoopInfo) GetIteration() int64 { if o == nil || IsNil(o.Iteration) { @@ -258,7 +268,13 @@ func (o WorkflowTaskLoopInfo) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Iteration) { toSerialize["Iteration"] = o.Iteration @@ -289,6 +305,13 @@ func (o *WorkflowTaskLoopInfo) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -298,11 +321,23 @@ func (o *WorkflowTaskLoopInfo) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type WorkflowTaskLoopInfoWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_workflow_task_metadata.go b/model_workflow_task_metadata.go index 21bba27305..06491a302c 100644 --- a/model_workflow_task_metadata.go +++ b/model_workflow_task_metadata.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -31,9 +31,9 @@ type WorkflowTaskMetadata struct { // The task metadata description to describe what this task will do when executed. Description *string `json:"Description,omitempty"` // A user friendly short name to identify the task metadata. - Label *string `json:"Label,omitempty"` + Label *string `json:"Label,omitempty" validate:"regexp=^[a-zA-Z0-9]{1}[\\\\sa-zA-Z0-9_'.:-]{0,92}$"` // The name of the task metadata. The name should follow this convention Verb or Action is a required portion of the name and this must be part of the pre-approved verb list. Category is an optional field and this will refer to the broad category of the task referring to the type of resource or endpoint. If there is no specific category then use \"Generic\" if required. Vendor is an optional field and this will refer to the specific vendor this task applies to. If the task is generic and not tied to a vendor, then do not specify anything. Product is an optional field, this will contain the vendor product and model when desired. Noun or object is a required field and this will contain the noun or object on which the action is being performed. Examples SendEmail - This is a task in Generic category for sending email. NewStorageVolume - This is a vendor agnostic task under Storage device category for creating a new volume. - Name *string `json:"Name,omitempty"` + Name *string `json:"Name,omitempty" validate:"regexp=^[a-zA-Z0-9]{1}[a-zA-Z0-9_.:-]{0,63}$"` // An array of relationships to iamRole resources. AssociatedRoles []IamRoleRelationship `json:"AssociatedRoles,omitempty"` Catalog NullableWorkflowCatalogRelationship `json:"Catalog,omitempty"` @@ -89,6 +89,11 @@ func (o *WorkflowTaskMetadata) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "workflow.TaskMetadata" of the ClassId field. +func (o *WorkflowTaskMetadata) GetDefaultClassId() interface{} { + return "workflow.TaskMetadata" +} + // GetObjectType returns the ObjectType field value func (o *WorkflowTaskMetadata) GetObjectType() string { if o == nil { @@ -113,6 +118,11 @@ func (o *WorkflowTaskMetadata) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "workflow.TaskMetadata" of the ObjectType field. +func (o *WorkflowTaskMetadata) GetDefaultObjectType() interface{} { + return "workflow.TaskMetadata" +} + // GetDescription returns the Description field value if set, zero value otherwise. func (o *WorkflowTaskMetadata) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -230,7 +240,7 @@ func (o *WorkflowTaskMetadata) GetAssociatedRolesOk() ([]IamRoleRelationship, bo // HasAssociatedRoles returns a boolean if a field has been set. func (o *WorkflowTaskMetadata) HasAssociatedRoles() bool { - if o != nil && IsNil(o.AssociatedRoles) { + if o != nil && !IsNil(o.AssociatedRoles) { return true } @@ -303,7 +313,13 @@ func (o WorkflowTaskMetadata) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Description) { toSerialize["Description"] = o.Description @@ -337,6 +353,13 @@ func (o *WorkflowTaskMetadata) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -346,11 +369,23 @@ func (o *WorkflowTaskMetadata) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type WorkflowTaskMetadataWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` @@ -359,9 +394,9 @@ func (o *WorkflowTaskMetadata) UnmarshalJSON(data []byte) (err error) { // The task metadata description to describe what this task will do when executed. Description *string `json:"Description,omitempty"` // A user friendly short name to identify the task metadata. - Label *string `json:"Label,omitempty"` + Label *string `json:"Label,omitempty" validate:"regexp=^[a-zA-Z0-9]{1}[\\\\sa-zA-Z0-9_'.:-]{0,92}$"` // The name of the task metadata. The name should follow this convention Verb or Action is a required portion of the name and this must be part of the pre-approved verb list. Category is an optional field and this will refer to the broad category of the task referring to the type of resource or endpoint. If there is no specific category then use \"Generic\" if required. Vendor is an optional field and this will refer to the specific vendor this task applies to. If the task is generic and not tied to a vendor, then do not specify anything. Product is an optional field, this will contain the vendor product and model when desired. Noun or object is a required field and this will contain the noun or object on which the action is being performed. Examples SendEmail - This is a task in Generic category for sending email. NewStorageVolume - This is a vendor agnostic task under Storage device category for creating a new volume. - Name *string `json:"Name,omitempty"` + Name *string `json:"Name,omitempty" validate:"regexp=^[a-zA-Z0-9]{1}[a-zA-Z0-9_.:-]{0,63}$"` // An array of relationships to iamRole resources. AssociatedRoles []IamRoleRelationship `json:"AssociatedRoles,omitempty"` Catalog NullableWorkflowCatalogRelationship `json:"Catalog,omitempty"` diff --git a/model_workflow_task_metadata_list.go b/model_workflow_task_metadata_list.go index 4635e07787..8c20fac091 100644 --- a/model_workflow_task_metadata_list.go +++ b/model_workflow_task_metadata_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *WorkflowTaskMetadataList) GetResultsOk() ([]WorkflowTaskMetadata, bool) // HasResults returns a boolean if a field has been set. func (o *WorkflowTaskMetadataList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *WorkflowTaskMetadataList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *WorkflowTaskMetadataList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type WorkflowTaskMetadataListWithoutEmbeddedStruct struct { // The total number of 'workflow.TaskMetadata' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_workflow_task_metadata_relationship.go b/model_workflow_task_metadata_relationship.go index cae10d7ffc..8f795fc7b8 100644 --- a/model_workflow_task_metadata_relationship.go +++ b/model_workflow_task_metadata_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_workflow_task_metadata_response.go b/model_workflow_task_metadata_response.go index bbe28614d9..910bfa3102 100644 --- a/model_workflow_task_metadata_response.go +++ b/model_workflow_task_metadata_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_workflow_task_retry_info.go b/model_workflow_task_retry_info.go index 80144b6dab..d7ceaad57b 100644 --- a/model_workflow_task_retry_info.go +++ b/model_workflow_task_retry_info.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -84,6 +84,11 @@ func (o *WorkflowTaskRetryInfo) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "workflow.TaskRetryInfo" of the ClassId field. +func (o *WorkflowTaskRetryInfo) GetDefaultClassId() interface{} { + return "workflow.TaskRetryInfo" +} + // GetObjectType returns the ObjectType field value func (o *WorkflowTaskRetryInfo) GetObjectType() string { if o == nil { @@ -108,6 +113,11 @@ func (o *WorkflowTaskRetryInfo) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "workflow.TaskRetryInfo" of the ObjectType field. +func (o *WorkflowTaskRetryInfo) GetDefaultObjectType() interface{} { + return "workflow.TaskRetryInfo" +} + // GetStatus returns the Status field value if set, zero value otherwise. func (o *WorkflowTaskRetryInfo) GetStatus() string { if o == nil || IsNil(o.Status) { @@ -190,7 +200,13 @@ func (o WorkflowTaskRetryInfo) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Status) { toSerialize["Status"] = o.Status @@ -215,6 +231,13 @@ func (o *WorkflowTaskRetryInfo) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -224,11 +247,23 @@ func (o *WorkflowTaskRetryInfo) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type WorkflowTaskRetryInfoWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_workflow_template_evaluation.go b/model_workflow_template_evaluation.go index fd0b1c6bdd..bc0b9bcae5 100644 --- a/model_workflow_template_evaluation.go +++ b/model_workflow_template_evaluation.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -88,6 +88,11 @@ func (o *WorkflowTemplateEvaluation) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "workflow.TemplateEvaluation" of the ClassId field. +func (o *WorkflowTemplateEvaluation) GetDefaultClassId() interface{} { + return "workflow.TemplateEvaluation" +} + // GetObjectType returns the ObjectType field value func (o *WorkflowTemplateEvaluation) GetObjectType() string { if o == nil { @@ -112,6 +117,11 @@ func (o *WorkflowTemplateEvaluation) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "workflow.TemplateEvaluation" of the ObjectType field. +func (o *WorkflowTemplateEvaluation) GetDefaultObjectType() interface{} { + return "workflow.TemplateEvaluation" +} + // GetExpectedOutputDataType returns the ExpectedOutputDataType field value if set, zero value otherwise (both if not set or set to explicit null). func (o *WorkflowTemplateEvaluation) GetExpectedOutputDataType() WorkflowBaseDataType { if o == nil || IsNil(o.ExpectedOutputDataType.Get()) { @@ -176,7 +186,7 @@ func (o *WorkflowTemplateEvaluation) GetOutputOk() (*interface{}, bool) { // HasOutput returns a boolean if a field has been set. func (o *WorkflowTemplateEvaluation) HasOutput() bool { - if o != nil && IsNil(o.Output) { + if o != nil && !IsNil(o.Output) { return true } @@ -241,7 +251,7 @@ func (o *WorkflowTemplateEvaluation) GetStagesOk() ([]TemplateTransformationStag // HasStages returns a boolean if a field has been set. func (o *WorkflowTemplateEvaluation) HasStages() bool { - if o != nil && IsNil(o.Stages) { + if o != nil && !IsNil(o.Stages) { return true } @@ -274,7 +284,7 @@ func (o *WorkflowTemplateEvaluation) GetValuesOk() (*interface{}, bool) { // HasValues returns a boolean if a field has been set. func (o *WorkflowTemplateEvaluation) HasValues() bool { - if o != nil && IsNil(o.Values) { + if o != nil && !IsNil(o.Values) { return true } @@ -304,7 +314,13 @@ func (o WorkflowTemplateEvaluation) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.ExpectedOutputDataType.IsSet() { toSerialize["ExpectedOutputDataType"] = o.ExpectedOutputDataType.Get() @@ -338,6 +354,13 @@ func (o *WorkflowTemplateEvaluation) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -347,11 +370,23 @@ func (o *WorkflowTemplateEvaluation) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type WorkflowTemplateEvaluationWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_workflow_template_function_meta.go b/model_workflow_template_function_meta.go index b1f0e1e303..6ab06a4040 100644 --- a/model_workflow_template_function_meta.go +++ b/model_workflow_template_function_meta.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -87,6 +87,11 @@ func (o *WorkflowTemplateFunctionMeta) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "workflow.TemplateFunctionMeta" of the ClassId field. +func (o *WorkflowTemplateFunctionMeta) GetDefaultClassId() interface{} { + return "workflow.TemplateFunctionMeta" +} + // GetObjectType returns the ObjectType field value func (o *WorkflowTemplateFunctionMeta) GetObjectType() string { if o == nil { @@ -111,6 +116,11 @@ func (o *WorkflowTemplateFunctionMeta) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "workflow.TemplateFunctionMeta" of the ObjectType field. +func (o *WorkflowTemplateFunctionMeta) GetDefaultObjectType() interface{} { + return "workflow.TemplateFunctionMeta" +} + // GetComments returns the Comments field value if set, zero value otherwise (both if not set or set to explicit null). func (o *WorkflowTemplateFunctionMeta) GetComments() WorkflowComments { if o == nil || IsNil(o.Comments.Get()) { @@ -175,7 +185,7 @@ func (o *WorkflowTemplateFunctionMeta) GetInputsOk() ([]WorkflowBaseDataType, bo // HasInputs returns a boolean if a field has been set. func (o *WorkflowTemplateFunctionMeta) HasInputs() bool { - if o != nil && IsNil(o.Inputs) { + if o != nil && !IsNil(o.Inputs) { return true } @@ -272,7 +282,7 @@ func (o *WorkflowTemplateFunctionMeta) GetOutputsOk() ([]WorkflowBaseDataType, b // HasOutputs returns a boolean if a field has been set. func (o *WorkflowTemplateFunctionMeta) HasOutputs() bool { - if o != nil && IsNil(o.Outputs) { + if o != nil && !IsNil(o.Outputs) { return true } @@ -302,7 +312,13 @@ func (o WorkflowTemplateFunctionMeta) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.Comments.IsSet() { toSerialize["Comments"] = o.Comments.Get() @@ -336,6 +352,13 @@ func (o *WorkflowTemplateFunctionMeta) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -345,11 +368,23 @@ func (o *WorkflowTemplateFunctionMeta) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type WorkflowTemplateFunctionMetaWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_workflow_template_function_meta_list.go b/model_workflow_template_function_meta_list.go index 494128a3d5..f498d75a0a 100644 --- a/model_workflow_template_function_meta_list.go +++ b/model_workflow_template_function_meta_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *WorkflowTemplateFunctionMetaList) GetResultsOk() ([]WorkflowTemplateFun // HasResults returns a boolean if a field has been set. func (o *WorkflowTemplateFunctionMetaList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *WorkflowTemplateFunctionMetaList) UnmarshalJSON(data []byte) (err error "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *WorkflowTemplateFunctionMetaList) UnmarshalJSON(data []byte) (err error } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type WorkflowTemplateFunctionMetaListWithoutEmbeddedStruct struct { // The total number of 'workflow.TemplateFunctionMeta' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_workflow_template_function_meta_response.go b/model_workflow_template_function_meta_response.go index 496f0ceb4d..3190c6029e 100644 --- a/model_workflow_template_function_meta_response.go +++ b/model_workflow_template_function_meta_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_workflow_template_parser.go b/model_workflow_template_parser.go index d43bb5b446..fbd2617f3a 100644 --- a/model_workflow_template_parser.go +++ b/model_workflow_template_parser.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -83,6 +83,11 @@ func (o *WorkflowTemplateParser) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "workflow.TemplateParser" of the ClassId field. +func (o *WorkflowTemplateParser) GetDefaultClassId() interface{} { + return "workflow.TemplateParser" +} + // GetObjectType returns the ObjectType field value func (o *WorkflowTemplateParser) GetObjectType() string { if o == nil { @@ -107,6 +112,11 @@ func (o *WorkflowTemplateParser) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "workflow.TemplateParser" of the ObjectType field. +func (o *WorkflowTemplateParser) GetDefaultObjectType() interface{} { + return "workflow.TemplateParser" +} + // GetPlaceholders returns the Placeholders field value if set, zero value otherwise (both if not set or set to explicit null). func (o *WorkflowTemplateParser) GetPlaceholders() []WorkflowPrimitiveDataType { if o == nil { @@ -128,7 +138,7 @@ func (o *WorkflowTemplateParser) GetPlaceholdersOk() ([]WorkflowPrimitiveDataTyp // HasPlaceholders returns a boolean if a field has been set. func (o *WorkflowTemplateParser) HasPlaceholders() bool { - if o != nil && IsNil(o.Placeholders) { + if o != nil && !IsNil(o.Placeholders) { return true } @@ -190,7 +200,13 @@ func (o WorkflowTemplateParser) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.Placeholders != nil { toSerialize["Placeholders"] = o.Placeholders @@ -215,6 +231,13 @@ func (o *WorkflowTemplateParser) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -224,11 +247,23 @@ func (o *WorkflowTemplateParser) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type WorkflowTemplateParserWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_workflow_ui_display_metadata.go b/model_workflow_ui_display_metadata.go index 15554b1d0d..e65aabe203 100644 --- a/model_workflow_ui_display_metadata.go +++ b/model_workflow_ui_display_metadata.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -83,6 +83,11 @@ func (o *WorkflowUiDisplayMetadata) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "workflow.UiDisplayMetadata" of the ClassId field. +func (o *WorkflowUiDisplayMetadata) GetDefaultClassId() interface{} { + return "workflow.UiDisplayMetadata" +} + // GetObjectType returns the ObjectType field value func (o *WorkflowUiDisplayMetadata) GetObjectType() string { if o == nil { @@ -107,6 +112,11 @@ func (o *WorkflowUiDisplayMetadata) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "workflow.UiDisplayMetadata" of the ObjectType field. +func (o *WorkflowUiDisplayMetadata) GetDefaultObjectType() interface{} { + return "workflow.UiDisplayMetadata" +} + // GetUiFormConfigs returns the UiFormConfigs field value if set, zero value otherwise (both if not set or set to explicit null). func (o *WorkflowUiDisplayMetadata) GetUiFormConfigs() []WorkflowUiFormConfig { if o == nil { @@ -128,7 +138,7 @@ func (o *WorkflowUiDisplayMetadata) GetUiFormConfigsOk() ([]WorkflowUiFormConfig // HasUiFormConfigs returns a boolean if a field has been set. func (o *WorkflowUiDisplayMetadata) HasUiFormConfigs() bool { - if o != nil && IsNil(o.UiFormConfigs) { + if o != nil && !IsNil(o.UiFormConfigs) { return true } @@ -161,7 +171,7 @@ func (o *WorkflowUiDisplayMetadata) GetUiViewConfigsOk() ([]WorkflowUiViewConfig // HasUiViewConfigs returns a boolean if a field has been set. func (o *WorkflowUiDisplayMetadata) HasUiViewConfigs() bool { - if o != nil && IsNil(o.UiViewConfigs) { + if o != nil && !IsNil(o.UiViewConfigs) { return true } @@ -234,7 +244,13 @@ func (o WorkflowUiDisplayMetadata) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.UiFormConfigs != nil { toSerialize["UiFormConfigs"] = o.UiFormConfigs @@ -262,6 +278,13 @@ func (o *WorkflowUiDisplayMetadata) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -271,11 +294,23 @@ func (o *WorkflowUiDisplayMetadata) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type WorkflowUiDisplayMetadataWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_workflow_ui_display_metadata_list.go b/model_workflow_ui_display_metadata_list.go index c0a5150da4..7e07b7f906 100644 --- a/model_workflow_ui_display_metadata_list.go +++ b/model_workflow_ui_display_metadata_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *WorkflowUiDisplayMetadataList) GetResultsOk() ([]WorkflowUiDisplayMetad // HasResults returns a boolean if a field has been set. func (o *WorkflowUiDisplayMetadataList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *WorkflowUiDisplayMetadataList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *WorkflowUiDisplayMetadataList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type WorkflowUiDisplayMetadataListWithoutEmbeddedStruct struct { // The total number of 'workflow.UiDisplayMetadata' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_workflow_ui_display_metadata_response.go b/model_workflow_ui_display_metadata_response.go index 284667da35..7039cbb1e0 100644 --- a/model_workflow_ui_display_metadata_response.go +++ b/model_workflow_ui_display_metadata_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_workflow_ui_form_config.go b/model_workflow_ui_form_config.go index bf6465de8a..8713e80ccb 100644 --- a/model_workflow_ui_form_config.go +++ b/model_workflow_ui_form_config.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -84,6 +84,11 @@ func (o *WorkflowUiFormConfig) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "workflow.UiFormConfig" of the ClassId field. +func (o *WorkflowUiFormConfig) GetDefaultClassId() interface{} { + return "workflow.UiFormConfig" +} + // GetObjectType returns the ObjectType field value func (o *WorkflowUiFormConfig) GetObjectType() string { if o == nil { @@ -108,6 +113,11 @@ func (o *WorkflowUiFormConfig) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "workflow.UiFormConfig" of the ObjectType field. +func (o *WorkflowUiFormConfig) GetDefaultObjectType() interface{} { + return "workflow.UiFormConfig" +} + // GetConfig returns the Config field value if set, zero value otherwise (both if not set or set to explicit null). func (o *WorkflowUiFormConfig) GetConfig() interface{} { if o == nil { @@ -129,7 +139,7 @@ func (o *WorkflowUiFormConfig) GetConfigOk() (*interface{}, bool) { // HasConfig returns a boolean if a field has been set. func (o *WorkflowUiFormConfig) HasConfig() bool { - if o != nil && IsNil(o.Config) { + if o != nil && !IsNil(o.Config) { return true } @@ -191,7 +201,13 @@ func (o WorkflowUiFormConfig) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.Config != nil { toSerialize["Config"] = o.Config @@ -216,6 +232,13 @@ func (o *WorkflowUiFormConfig) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -225,11 +248,23 @@ func (o *WorkflowUiFormConfig) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type WorkflowUiFormConfigWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_workflow_ui_input_filter.go b/model_workflow_ui_input_filter.go index 609841fd21..1e3792ee25 100644 --- a/model_workflow_ui_input_filter.go +++ b/model_workflow_ui_input_filter.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -30,7 +30,7 @@ type WorkflowUiInputFilter struct { ObjectType string `json:"ObjectType"` Filters []string `json:"Filters,omitempty"` // Name for the input definition to which this filter applies. Name can only contain letters (a-z, A-Z), numbers (0-9), hyphen (-) or an underscore (_). The first and last character in name must be an alphanumeric character. When defining the cascade filter for a sub property, use a period (.) to separate each section of the name like \"StorageConfig.Volume\" where 'StorageConfig' is an input name and 'Volume' is a sub property defined through custom data type definition. - Name *string `json:"Name,omitempty"` + Name *string `json:"Name,omitempty" validate:"regexp=^[a-zA-Z0-9]+([a-zA-Z0-9-_.]*[a-zA-Z0-9])*$"` // Help message shown to the user about which prior input needs to be selected to enable the input mapped to this filter. UserHelpMessage *string `json:"UserHelpMessage,omitempty"` AdditionalProperties map[string]interface{} @@ -85,6 +85,11 @@ func (o *WorkflowUiInputFilter) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "workflow.UiInputFilter" of the ClassId field. +func (o *WorkflowUiInputFilter) GetDefaultClassId() interface{} { + return "workflow.UiInputFilter" +} + // GetObjectType returns the ObjectType field value func (o *WorkflowUiInputFilter) GetObjectType() string { if o == nil { @@ -109,6 +114,11 @@ func (o *WorkflowUiInputFilter) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "workflow.UiInputFilter" of the ObjectType field. +func (o *WorkflowUiInputFilter) GetDefaultObjectType() interface{} { + return "workflow.UiInputFilter" +} + // GetFilters returns the Filters field value if set, zero value otherwise (both if not set or set to explicit null). func (o *WorkflowUiInputFilter) GetFilters() []string { if o == nil { @@ -130,7 +140,7 @@ func (o *WorkflowUiInputFilter) GetFiltersOk() ([]string, bool) { // HasFilters returns a boolean if a field has been set. func (o *WorkflowUiInputFilter) HasFilters() bool { - if o != nil && IsNil(o.Filters) { + if o != nil && !IsNil(o.Filters) { return true } @@ -224,7 +234,13 @@ func (o WorkflowUiInputFilter) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.Filters != nil { toSerialize["Filters"] = o.Filters @@ -252,6 +268,13 @@ func (o *WorkflowUiInputFilter) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -261,11 +284,23 @@ func (o *WorkflowUiInputFilter) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type WorkflowUiInputFilterWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` @@ -273,7 +308,7 @@ func (o *WorkflowUiInputFilter) UnmarshalJSON(data []byte) (err error) { ObjectType string `json:"ObjectType"` Filters []string `json:"Filters,omitempty"` // Name for the input definition to which this filter applies. Name can only contain letters (a-z, A-Z), numbers (0-9), hyphen (-) or an underscore (_). The first and last character in name must be an alphanumeric character. When defining the cascade filter for a sub property, use a period (.) to separate each section of the name like \"StorageConfig.Volume\" where 'StorageConfig' is an input name and 'Volume' is a sub property defined through custom data type definition. - Name *string `json:"Name,omitempty"` + Name *string `json:"Name,omitempty" validate:"regexp=^[a-zA-Z0-9]+([a-zA-Z0-9-_.]*[a-zA-Z0-9])*$"` // Help message shown to the user about which prior input needs to be selected to enable the input mapped to this filter. UserHelpMessage *string `json:"UserHelpMessage,omitempty"` } diff --git a/model_workflow_ui_view_config.go b/model_workflow_ui_view_config.go index 6f8ca18aa8..b4d5c0e3e2 100644 --- a/model_workflow_ui_view_config.go +++ b/model_workflow_ui_view_config.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -84,6 +84,11 @@ func (o *WorkflowUiViewConfig) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "workflow.UiViewConfig" of the ClassId field. +func (o *WorkflowUiViewConfig) GetDefaultClassId() interface{} { + return "workflow.UiViewConfig" +} + // GetObjectType returns the ObjectType field value func (o *WorkflowUiViewConfig) GetObjectType() string { if o == nil { @@ -108,6 +113,11 @@ func (o *WorkflowUiViewConfig) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "workflow.UiViewConfig" of the ObjectType field. +func (o *WorkflowUiViewConfig) GetDefaultObjectType() interface{} { + return "workflow.UiViewConfig" +} + // GetConfig returns the Config field value if set, zero value otherwise (both if not set or set to explicit null). func (o *WorkflowUiViewConfig) GetConfig() interface{} { if o == nil { @@ -129,7 +139,7 @@ func (o *WorkflowUiViewConfig) GetConfigOk() (*interface{}, bool) { // HasConfig returns a boolean if a field has been set. func (o *WorkflowUiViewConfig) HasConfig() bool { - if o != nil && IsNil(o.Config) { + if o != nil && !IsNil(o.Config) { return true } @@ -191,7 +201,13 @@ func (o WorkflowUiViewConfig) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.Config != nil { toSerialize["Config"] = o.Config @@ -216,6 +232,13 @@ func (o *WorkflowUiViewConfig) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -225,11 +248,23 @@ func (o *WorkflowUiViewConfig) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type WorkflowUiViewConfigWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_workflow_validation_error.go b/model_workflow_validation_error.go index 7e200d84b6..382f207465 100644 --- a/model_workflow_validation_error.go +++ b/model_workflow_validation_error.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -88,6 +88,11 @@ func (o *WorkflowValidationError) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "workflow.ValidationError" of the ClassId field. +func (o *WorkflowValidationError) GetDefaultClassId() interface{} { + return "workflow.ValidationError" +} + // GetObjectType returns the ObjectType field value func (o *WorkflowValidationError) GetObjectType() string { if o == nil { @@ -112,6 +117,11 @@ func (o *WorkflowValidationError) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "workflow.ValidationError" of the ObjectType field. +func (o *WorkflowValidationError) GetDefaultObjectType() interface{} { + return "workflow.ValidationError" +} + // GetErrorLog returns the ErrorLog field value if set, zero value otherwise. func (o *WorkflowValidationError) GetErrorLog() string { if o == nil || IsNil(o.ErrorLog) { @@ -258,7 +268,13 @@ func (o WorkflowValidationError) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.ErrorLog) { toSerialize["ErrorLog"] = o.ErrorLog @@ -289,6 +305,13 @@ func (o *WorkflowValidationError) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -298,11 +321,23 @@ func (o *WorkflowValidationError) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type WorkflowValidationErrorWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_workflow_validation_information.go b/model_workflow_validation_information.go index 941286875d..c3c7e6af71 100644 --- a/model_workflow_validation_information.go +++ b/model_workflow_validation_information.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -83,6 +83,11 @@ func (o *WorkflowValidationInformation) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "workflow.ValidationInformation" of the ClassId field. +func (o *WorkflowValidationInformation) GetDefaultClassId() interface{} { + return "workflow.ValidationInformation" +} + // GetObjectType returns the ObjectType field value func (o *WorkflowValidationInformation) GetObjectType() string { if o == nil { @@ -107,6 +112,11 @@ func (o *WorkflowValidationInformation) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "workflow.ValidationInformation" of the ObjectType field. +func (o *WorkflowValidationInformation) GetDefaultObjectType() interface{} { + return "workflow.ValidationInformation" +} + // GetState returns the State field value if set, zero value otherwise. func (o *WorkflowValidationInformation) GetState() string { if o == nil || IsNil(o.State) { @@ -160,7 +170,7 @@ func (o *WorkflowValidationInformation) GetValidationErrorOk() ([]WorkflowValida // HasValidationError returns a boolean if a field has been set. func (o *WorkflowValidationInformation) HasValidationError() bool { - if o != nil && IsNil(o.ValidationError) { + if o != nil && !IsNil(o.ValidationError) { return true } @@ -190,7 +200,13 @@ func (o WorkflowValidationInformation) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.State) { toSerialize["State"] = o.State @@ -215,6 +231,13 @@ func (o *WorkflowValidationInformation) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -224,11 +247,23 @@ func (o *WorkflowValidationInformation) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type WorkflowValidationInformationWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_workflow_wait_task.go b/model_workflow_wait_task.go index e620b6e03e..d0f02d82d7 100644 --- a/model_workflow_wait_task.go +++ b/model_workflow_wait_task.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -85,6 +85,11 @@ func (o *WorkflowWaitTask) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "workflow.WaitTask" of the ClassId field. +func (o *WorkflowWaitTask) GetDefaultClassId() interface{} { + return "workflow.WaitTask" +} + // GetObjectType returns the ObjectType field value func (o *WorkflowWaitTask) GetObjectType() string { if o == nil { @@ -109,6 +114,11 @@ func (o *WorkflowWaitTask) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "workflow.WaitTask" of the ObjectType field. +func (o *WorkflowWaitTask) GetDefaultObjectType() interface{} { + return "workflow.WaitTask" +} + // GetInputDefinition returns the InputDefinition field value if set, zero value otherwise (both if not set or set to explicit null). func (o *WorkflowWaitTask) GetInputDefinition() []WorkflowBaseDataType { if o == nil { @@ -130,7 +140,7 @@ func (o *WorkflowWaitTask) GetInputDefinitionOk() ([]WorkflowBaseDataType, bool) // HasInputDefinition returns a boolean if a field has been set. func (o *WorkflowWaitTask) HasInputDefinition() bool { - if o != nil && IsNil(o.InputDefinition) { + if o != nil && !IsNil(o.InputDefinition) { return true } @@ -163,7 +173,7 @@ func (o *WorkflowWaitTask) GetOutputDefinitionOk() ([]WorkflowBaseDataType, bool // HasOutputDefinition returns a boolean if a field has been set. func (o *WorkflowWaitTask) HasOutputDefinition() bool { - if o != nil && IsNil(o.OutputDefinition) { + if o != nil && !IsNil(o.OutputDefinition) { return true } @@ -196,7 +206,7 @@ func (o *WorkflowWaitTask) GetPromptsOk() ([]WorkflowWaitTaskPrompt, bool) { // HasPrompts returns a boolean if a field has been set. func (o *WorkflowWaitTask) HasPrompts() bool { - if o != nil && IsNil(o.Prompts) { + if o != nil && !IsNil(o.Prompts) { return true } @@ -226,7 +236,13 @@ func (o WorkflowWaitTask) ToMap() (map[string]interface{}, error) { if errWorkflowAbstractWorkerTask != nil { return map[string]interface{}{}, errWorkflowAbstractWorkerTask } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.InputDefinition != nil { toSerialize["InputDefinition"] = o.InputDefinition @@ -254,6 +270,13 @@ func (o *WorkflowWaitTask) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -263,11 +286,23 @@ func (o *WorkflowWaitTask) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type WorkflowWaitTaskWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_workflow_wait_task_prompt.go b/model_workflow_wait_task_prompt.go index 89d02a7032..46a5dfffa9 100644 --- a/model_workflow_wait_task_prompt.go +++ b/model_workflow_wait_task_prompt.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -92,6 +92,11 @@ func (o *WorkflowWaitTaskPrompt) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "workflow.WaitTaskPrompt" of the ClassId field. +func (o *WorkflowWaitTaskPrompt) GetDefaultClassId() interface{} { + return "workflow.WaitTaskPrompt" +} + // GetObjectType returns the ObjectType field value func (o *WorkflowWaitTaskPrompt) GetObjectType() string { if o == nil { @@ -116,6 +121,11 @@ func (o *WorkflowWaitTaskPrompt) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "workflow.WaitTaskPrompt" of the ObjectType field. +func (o *WorkflowWaitTaskPrompt) GetDefaultObjectType() interface{} { + return "workflow.WaitTaskPrompt" +} + // GetDescription returns the Description field value if set, zero value otherwise. func (o *WorkflowWaitTaskPrompt) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -262,7 +272,13 @@ func (o WorkflowWaitTaskPrompt) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Description) { toSerialize["Description"] = o.Description @@ -293,6 +309,13 @@ func (o *WorkflowWaitTaskPrompt) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -302,11 +325,23 @@ func (o *WorkflowWaitTaskPrompt) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type WorkflowWaitTaskPromptWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_workflow_web_api.go b/model_workflow_web_api.go index 4ce5d6e7cf..3b86694cd1 100644 --- a/model_workflow_web_api.go +++ b/model_workflow_web_api.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -100,6 +100,11 @@ func (o *WorkflowWebApi) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "workflow.WebApi" of the ClassId field. +func (o *WorkflowWebApi) GetDefaultClassId() interface{} { + return "workflow.WebApi" +} + // GetObjectType returns the ObjectType field value func (o *WorkflowWebApi) GetObjectType() string { if o == nil { @@ -124,6 +129,11 @@ func (o *WorkflowWebApi) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "workflow.WebApi" of the ObjectType field. +func (o *WorkflowWebApi) GetDefaultObjectType() interface{} { + return "workflow.WebApi" +} + // GetCookies returns the Cookies field value if set, zero value otherwise (both if not set or set to explicit null). func (o *WorkflowWebApi) GetCookies() interface{} { if o == nil { @@ -145,7 +155,7 @@ func (o *WorkflowWebApi) GetCookiesOk() (*interface{}, bool) { // HasCookies returns a boolean if a field has been set. func (o *WorkflowWebApi) HasCookies() bool { - if o != nil && IsNil(o.Cookies) { + if o != nil && !IsNil(o.Cookies) { return true } @@ -210,7 +220,7 @@ func (o *WorkflowWebApi) GetHeadersOk() (*interface{}, bool) { // HasHeaders returns a boolean if a field has been set. func (o *WorkflowWebApi) HasHeaders() bool { - if o != nil && IsNil(o.Headers) { + if o != nil && !IsNil(o.Headers) { return true } @@ -400,7 +410,13 @@ func (o WorkflowWebApi) ToMap() (map[string]interface{}, error) { if errWorkflowApi != nil { return map[string]interface{}{}, errWorkflowApi } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.Cookies != nil { toSerialize["Cookies"] = o.Cookies @@ -443,6 +459,13 @@ func (o *WorkflowWebApi) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -452,11 +475,23 @@ func (o *WorkflowWebApi) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type WorkflowWebApiWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_workflow_worker_task.go b/model_workflow_worker_task.go index 8b949c2ab0..5c4f253505 100644 --- a/model_workflow_worker_task.go +++ b/model_workflow_worker_task.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -90,6 +90,11 @@ func (o *WorkflowWorkerTask) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "workflow.WorkerTask" of the ClassId field. +func (o *WorkflowWorkerTask) GetDefaultClassId() interface{} { + return "workflow.WorkerTask" +} + // GetObjectType returns the ObjectType field value func (o *WorkflowWorkerTask) GetObjectType() string { if o == nil { @@ -114,6 +119,11 @@ func (o *WorkflowWorkerTask) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "workflow.WorkerTask" of the ObjectType field. +func (o *WorkflowWorkerTask) GetDefaultObjectType() interface{} { + return "workflow.WorkerTask" +} + // GetCatalogMoid returns the CatalogMoid field value if set, zero value otherwise. func (o *WorkflowWorkerTask) GetCatalogMoid() string { if o == nil || IsNil(o.CatalogMoid) { @@ -260,7 +270,13 @@ func (o WorkflowWorkerTask) ToMap() (map[string]interface{}, error) { if errWorkflowAbstractWorkerTask != nil { return map[string]interface{}{}, errWorkflowAbstractWorkerTask } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.CatalogMoid) { toSerialize["CatalogMoid"] = o.CatalogMoid @@ -291,6 +307,13 @@ func (o *WorkflowWorkerTask) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -300,11 +323,23 @@ func (o *WorkflowWorkerTask) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type WorkflowWorkerTaskWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_workflow_workflow_ctx.go b/model_workflow_workflow_ctx.go index ad783650bc..fb5a02df72 100644 --- a/model_workflow_workflow_ctx.go +++ b/model_workflow_workflow_ctx.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -86,6 +86,11 @@ func (o *WorkflowWorkflowCtx) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "workflow.WorkflowCtx" of the ClassId field. +func (o *WorkflowWorkflowCtx) GetDefaultClassId() interface{} { + return "workflow.WorkflowCtx" +} + // GetObjectType returns the ObjectType field value func (o *WorkflowWorkflowCtx) GetObjectType() string { if o == nil { @@ -110,6 +115,11 @@ func (o *WorkflowWorkflowCtx) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "workflow.WorkflowCtx" of the ObjectType field. +func (o *WorkflowWorkflowCtx) GetDefaultObjectType() interface{} { + return "workflow.WorkflowCtx" +} + // GetInitiatorCtx returns the InitiatorCtx field value if set, zero value otherwise (both if not set or set to explicit null). func (o *WorkflowWorkflowCtx) GetInitiatorCtx() WorkflowInitiatorContext { if o == nil || IsNil(o.InitiatorCtx.Get()) { @@ -174,7 +184,7 @@ func (o *WorkflowWorkflowCtx) GetTargetCtxListOk() ([]WorkflowTargetContext, boo // HasTargetCtxList returns a boolean if a field has been set. func (o *WorkflowWorkflowCtx) HasTargetCtxList() bool { - if o != nil && IsNil(o.TargetCtxList) { + if o != nil && !IsNil(o.TargetCtxList) { return true } @@ -268,7 +278,13 @@ func (o WorkflowWorkflowCtx) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.InitiatorCtx.IsSet() { toSerialize["InitiatorCtx"] = o.InitiatorCtx.Get() @@ -299,6 +315,13 @@ func (o *WorkflowWorkflowCtx) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -308,11 +331,23 @@ func (o *WorkflowWorkflowCtx) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type WorkflowWorkflowCtxWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_workflow_workflow_definition.go b/model_workflow_workflow_definition.go index 05eaacf9a6..ac1ee41c69 100644 --- a/model_workflow_workflow_definition.go +++ b/model_workflow_workflow_definition.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -37,7 +37,7 @@ type WorkflowWorkflowDefinition struct { InputDefinition []WorkflowBaseDataType `json:"InputDefinition,omitempty"` InputParameterSet []WorkflowParameterSet `json:"InputParameterSet,omitempty"` // A user friendly short name to identify the workflow. Label can only contain letters (a-z, A-Z), numbers (0-9), hyphen (-), period (.), colon (:), space ( ), forward slash (/), or an underscore (_). - Label *string `json:"Label,omitempty"` + Label *string `json:"Label,omitempty" validate:"regexp=^[a-zA-Z0-9]{1}[\\\\sa-zA-Z0-9_.\\/:-]{0,91}$"` // License entitlement required to run this workflow. It is calculated based on the highest license requirement of all its tasks. * `Base` - Base as a License type. It is default license type. * `Essential` - Essential as a License type. * `Standard` - Standard as a License type. * `Advantage` - Advantage as a License type. * `Premier` - Premier as a License type. * `IWO-Essential` - IWO-Essential as a License type. * `IWO-Advantage` - IWO-Advantage as a License type. * `IWO-Premier` - IWO-Premier as a License type. * `IKS-Advantage` - IKS-Advantage as a License type. * `INC-Premier-1GFixed` - Premier 1G Fixed license tier for Intersight Nexus Cloud. * `INC-Premier-10GFixed` - Premier 10G Fixed license tier for Intersight Nexus Cloud. * `INC-Premier-100GFixed` - Premier 100G Fixed license tier for Intersight Nexus Cloud. * `INC-Premier-Mod4Slot` - Premier Modular 4 slot license tier for Intersight Nexus Cloud. * `INC-Premier-Mod8Slot` - Premier Modular 8 slot license tier for Intersight Nexus Cloud. * `INC-Premier-D2OpsFixed` - Premier D2Ops fixed license tier for Intersight Nexus Cloud. * `INC-Premier-D2OpsMod` - Premier D2Ops modular license tier for Intersight Nexus Cloud. * `INC-Premier-CentralizedMod8Slot` - Premier modular license tier of switch type CentralizedMod8Slot for Intersight Nexus Cloud. * `INC-Premier-DistributedMod8Slot` - Premier modular license tier of switch type DistributedMod8Slot for Intersight Nexus Cloud. * `IntersightTrial` - Virtual dummy license type to indicate trial. Used for UI display of trial mode Intersight tiers. * `IWOTrial` - Virtual dummy license type to indicate trial. Used for UI display of trial mode IKS tiers. * `IKSTrial` - Virtual dummy license type to indicate trial. Used for UI display of trial mode IWO tiers. * `INCTrial` - Virtual dummy license type to indicate trial. Used for UI display of trial mode Nexus tiers. LicenseEntitlement *string `json:"LicenseEntitlement,omitempty"` // The maximum number of tasks that can be executed on this workflow. @@ -47,7 +47,7 @@ type WorkflowWorkflowDefinition struct { // The user identifier who last updated the workflow definition. ModUser *string `json:"ModUser,omitempty"` // The name for this workflow. You can have multiple versions of the workflow with the same name. Name can only contain letters (a-z, A-Z), numbers (0-9), hyphen (-), period (.) or an underscore (_). - Name *string `json:"Name,omitempty"` + Name *string `json:"Name,omitempty" validate:"regexp=^[a-zA-Z0-9]{1}[a-zA-Z0-9_.-]{0,63}$"` OutputDefinition []WorkflowBaseDataType `json:"OutputDefinition,omitempty"` // The output mappings for the workflow. The schema for outputs of a workflow is defined using OutputDefinition. The outputs for workflows that we want to export out at the end of the workflow can be mapped from task outputs, workflow inputs, or workflow variables. Any task output, workflow input, or workflow variable can be mapped to a workflow output as long as the types are compatible. The format to specify the mapping is '${ 'workflow | '. 'output |input | variable'.[.]}'. First, either the keyword 'workflow' or the name of the task in the workflow must be given. If a task name is used, then it must be followed by the keyword 'output', if the keyword workflow was used, then it must be followed by the keyword 'input' or 'variable'. Following this '' must be the name of either input, output, or variable that must be mapped as workflow output. The last part of the mapping can be an optional to extract specific fields on the data. OutputParameters interface{} `json:"OutputParameters,omitempty"` @@ -119,6 +119,11 @@ func (o *WorkflowWorkflowDefinition) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "workflow.WorkflowDefinition" of the ClassId field. +func (o *WorkflowWorkflowDefinition) GetDefaultClassId() interface{} { + return "workflow.WorkflowDefinition" +} + // GetObjectType returns the ObjectType field value func (o *WorkflowWorkflowDefinition) GetObjectType() string { if o == nil { @@ -143,6 +148,11 @@ func (o *WorkflowWorkflowDefinition) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "workflow.WorkflowDefinition" of the ObjectType field. +func (o *WorkflowWorkflowDefinition) GetDefaultObjectType() interface{} { + return "workflow.WorkflowDefinition" +} + // GetCreateUser returns the CreateUser field value if set, zero value otherwise. func (o *WorkflowWorkflowDefinition) GetCreateUser() string { if o == nil || IsNil(o.CreateUser) { @@ -260,7 +270,7 @@ func (o *WorkflowWorkflowDefinition) GetInputDefinitionOk() ([]WorkflowBaseDataT // HasInputDefinition returns a boolean if a field has been set. func (o *WorkflowWorkflowDefinition) HasInputDefinition() bool { - if o != nil && IsNil(o.InputDefinition) { + if o != nil && !IsNil(o.InputDefinition) { return true } @@ -293,7 +303,7 @@ func (o *WorkflowWorkflowDefinition) GetInputParameterSetOk() ([]WorkflowParamet // HasInputParameterSet returns a boolean if a field has been set. func (o *WorkflowWorkflowDefinition) HasInputParameterSet() bool { - if o != nil && IsNil(o.InputParameterSet) { + if o != nil && !IsNil(o.InputParameterSet) { return true } @@ -518,7 +528,7 @@ func (o *WorkflowWorkflowDefinition) GetOutputDefinitionOk() ([]WorkflowBaseData // HasOutputDefinition returns a boolean if a field has been set. func (o *WorkflowWorkflowDefinition) HasOutputDefinition() bool { - if o != nil && IsNil(o.OutputDefinition) { + if o != nil && !IsNil(o.OutputDefinition) { return true } @@ -551,7 +561,7 @@ func (o *WorkflowWorkflowDefinition) GetOutputParametersOk() (*interface{}, bool // HasOutputParameters returns a boolean if a field has been set. func (o *WorkflowWorkflowDefinition) HasOutputParameters() bool { - if o != nil && IsNil(o.OutputParameters) { + if o != nil && !IsNil(o.OutputParameters) { return true } @@ -627,7 +637,7 @@ func (o *WorkflowWorkflowDefinition) GetTasksOk() ([]WorkflowWorkflowTask, bool) // HasTasks returns a boolean if a field has been set. func (o *WorkflowWorkflowDefinition) HasTasks() bool { - if o != nil && IsNil(o.Tasks) { + if o != nil && !IsNil(o.Tasks) { return true } @@ -660,7 +670,7 @@ func (o *WorkflowWorkflowDefinition) GetUiInputFiltersOk() ([]WorkflowUiInputFil // HasUiInputFilters returns a boolean if a field has been set. func (o *WorkflowWorkflowDefinition) HasUiInputFilters() bool { - if o != nil && IsNil(o.UiInputFilters) { + if o != nil && !IsNil(o.UiInputFilters) { return true } @@ -693,7 +703,7 @@ func (o *WorkflowWorkflowDefinition) GetUiRenderingDataOk() (*interface{}, bool) // HasUiRenderingData returns a boolean if a field has been set. func (o *WorkflowWorkflowDefinition) HasUiRenderingData() bool { - if o != nil && IsNil(o.UiRenderingData) { + if o != nil && !IsNil(o.UiRenderingData) { return true } @@ -769,7 +779,7 @@ func (o *WorkflowWorkflowDefinition) GetVariableDefinitionOk() ([]WorkflowBaseDa // HasVariableDefinition returns a boolean if a field has been set. func (o *WorkflowWorkflowDefinition) HasVariableDefinition() bool { - if o != nil && IsNil(o.VariableDefinition) { + if o != nil && !IsNil(o.VariableDefinition) { return true } @@ -960,7 +970,13 @@ func (o WorkflowWorkflowDefinition) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.CreateUser) { toSerialize["CreateUser"] = o.CreateUser @@ -1048,6 +1064,13 @@ func (o *WorkflowWorkflowDefinition) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -1057,11 +1080,23 @@ func (o *WorkflowWorkflowDefinition) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type WorkflowWorkflowDefinitionWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` @@ -1076,7 +1111,7 @@ func (o *WorkflowWorkflowDefinition) UnmarshalJSON(data []byte) (err error) { InputDefinition []WorkflowBaseDataType `json:"InputDefinition,omitempty"` InputParameterSet []WorkflowParameterSet `json:"InputParameterSet,omitempty"` // A user friendly short name to identify the workflow. Label can only contain letters (a-z, A-Z), numbers (0-9), hyphen (-), period (.), colon (:), space ( ), forward slash (/), or an underscore (_). - Label *string `json:"Label,omitempty"` + Label *string `json:"Label,omitempty" validate:"regexp=^[a-zA-Z0-9]{1}[\\\\sa-zA-Z0-9_.\\/:-]{0,91}$"` // License entitlement required to run this workflow. It is calculated based on the highest license requirement of all its tasks. * `Base` - Base as a License type. It is default license type. * `Essential` - Essential as a License type. * `Standard` - Standard as a License type. * `Advantage` - Advantage as a License type. * `Premier` - Premier as a License type. * `IWO-Essential` - IWO-Essential as a License type. * `IWO-Advantage` - IWO-Advantage as a License type. * `IWO-Premier` - IWO-Premier as a License type. * `IKS-Advantage` - IKS-Advantage as a License type. * `INC-Premier-1GFixed` - Premier 1G Fixed license tier for Intersight Nexus Cloud. * `INC-Premier-10GFixed` - Premier 10G Fixed license tier for Intersight Nexus Cloud. * `INC-Premier-100GFixed` - Premier 100G Fixed license tier for Intersight Nexus Cloud. * `INC-Premier-Mod4Slot` - Premier Modular 4 slot license tier for Intersight Nexus Cloud. * `INC-Premier-Mod8Slot` - Premier Modular 8 slot license tier for Intersight Nexus Cloud. * `INC-Premier-D2OpsFixed` - Premier D2Ops fixed license tier for Intersight Nexus Cloud. * `INC-Premier-D2OpsMod` - Premier D2Ops modular license tier for Intersight Nexus Cloud. * `INC-Premier-CentralizedMod8Slot` - Premier modular license tier of switch type CentralizedMod8Slot for Intersight Nexus Cloud. * `INC-Premier-DistributedMod8Slot` - Premier modular license tier of switch type DistributedMod8Slot for Intersight Nexus Cloud. * `IntersightTrial` - Virtual dummy license type to indicate trial. Used for UI display of trial mode Intersight tiers. * `IWOTrial` - Virtual dummy license type to indicate trial. Used for UI display of trial mode IKS tiers. * `IKSTrial` - Virtual dummy license type to indicate trial. Used for UI display of trial mode IWO tiers. * `INCTrial` - Virtual dummy license type to indicate trial. Used for UI display of trial mode Nexus tiers. LicenseEntitlement *string `json:"LicenseEntitlement,omitempty"` // The maximum number of tasks that can be executed on this workflow. @@ -1086,7 +1121,7 @@ func (o *WorkflowWorkflowDefinition) UnmarshalJSON(data []byte) (err error) { // The user identifier who last updated the workflow definition. ModUser *string `json:"ModUser,omitempty"` // The name for this workflow. You can have multiple versions of the workflow with the same name. Name can only contain letters (a-z, A-Z), numbers (0-9), hyphen (-), period (.) or an underscore (_). - Name *string `json:"Name,omitempty"` + Name *string `json:"Name,omitempty" validate:"regexp=^[a-zA-Z0-9]{1}[a-zA-Z0-9_.-]{0,63}$"` OutputDefinition []WorkflowBaseDataType `json:"OutputDefinition,omitempty"` // The output mappings for the workflow. The schema for outputs of a workflow is defined using OutputDefinition. The outputs for workflows that we want to export out at the end of the workflow can be mapped from task outputs, workflow inputs, or workflow variables. Any task output, workflow input, or workflow variable can be mapped to a workflow output as long as the types are compatible. The format to specify the mapping is '${ 'workflow | '. 'output |input | variable'.[.]}'. First, either the keyword 'workflow' or the name of the task in the workflow must be given. If a task name is used, then it must be followed by the keyword 'output', if the keyword workflow was used, then it must be followed by the keyword 'input' or 'variable'. Following this '' must be the name of either input, output, or variable that must be mapped as workflow output. The last part of the mapping can be an optional to extract specific fields on the data. OutputParameters interface{} `json:"OutputParameters,omitempty"` diff --git a/model_workflow_workflow_definition_list.go b/model_workflow_workflow_definition_list.go index 20a8085891..bfc99d6dac 100644 --- a/model_workflow_workflow_definition_list.go +++ b/model_workflow_workflow_definition_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *WorkflowWorkflowDefinitionList) GetResultsOk() ([]WorkflowWorkflowDefin // HasResults returns a boolean if a field has been set. func (o *WorkflowWorkflowDefinitionList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *WorkflowWorkflowDefinitionList) UnmarshalJSON(data []byte) (err error) "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *WorkflowWorkflowDefinitionList) UnmarshalJSON(data []byte) (err error) } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type WorkflowWorkflowDefinitionListWithoutEmbeddedStruct struct { // The total number of 'workflow.WorkflowDefinition' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_workflow_workflow_definition_relationship.go b/model_workflow_workflow_definition_relationship.go index b24a42677f..d5a44bbbea 100644 --- a/model_workflow_workflow_definition_relationship.go +++ b/model_workflow_workflow_definition_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_workflow_workflow_definition_response.go b/model_workflow_workflow_definition_response.go index 93958b004f..024c67824f 100644 --- a/model_workflow_workflow_definition_response.go +++ b/model_workflow_workflow_definition_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_workflow_workflow_engine_properties.go b/model_workflow_workflow_engine_properties.go index 8e28d4a5bf..226a31ab9f 100644 --- a/model_workflow_workflow_engine_properties.go +++ b/model_workflow_workflow_engine_properties.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -83,6 +83,10 @@ func (o *WorkflowWorkflowEngineProperties) UnmarshalJSON(data []byte) (err error "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -92,11 +96,23 @@ func (o *WorkflowWorkflowEngineProperties) UnmarshalJSON(data []byte) (err error } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type WorkflowWorkflowEnginePropertiesWithoutEmbeddedStruct struct { } diff --git a/model_workflow_workflow_info.go b/model_workflow_workflow_info.go index b0c082693c..1f65d31c5b 100644 --- a/model_workflow_workflow_info.go +++ b/model_workflow_workflow_info.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -49,7 +49,7 @@ type WorkflowWorkflowInfo struct { LastAction *string `json:"LastAction,omitempty"` Message []WorkflowMessage `json:"Message,omitempty"` // A name of the workflow execution instance. - Name *string `json:"Name,omitempty"` + Name *string `json:"Name,omitempty" validate:"regexp=^[^:]{1,92}$"` // All the generated outputs for the workflow. The schema for the outputs are defined in the OutputDefinition section of the WorkflowDefinition. The OutputDefinition will provide a list of output fields that could be generated after workflow execution is completed and the associated datatype of the outputs. For more information please refer to OutputDefinition property in WorkflowDefinition resource. The output for the workflow is generated as a collection of key-value pairs, where key is the name of the output and value is any valid JSON data which conforms to the datatype of output as specified in the OutputDefinition. During workflow definition design, if a workflow is included as a sub-workflow inside a parent workflow then the outputs generated by the sub-workflow can be used in the workflow design. For example, if workflow was included into parent workflow as 'SubWorkflowSample1', then that output can be referred as 'SubWorkflowSample1.output.'. In the output is referred directly in a mapping it will be in the format '${SubWorkflowSample1.output.}' or inside a template mapping will be in the format '{{SubWorkflowSample1.output.}}'. Output interface{} `json:"Output,omitempty"` // Denotes the reason workflow is in paused status. * `None` - Pause reason is none, which indicates there is no reason for the pause state. * `TaskWithWarning` - Pause reason indicates the workflow is in this state due to a task that has a status as completed with warnings. * `SystemMaintenance` - Pause reason indicates the workflow is in this state based on actions of system admin for maintenance. @@ -156,6 +156,11 @@ func (o *WorkflowWorkflowInfo) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "workflow.WorkflowInfo" of the ClassId field. +func (o *WorkflowWorkflowInfo) GetDefaultClassId() interface{} { + return "workflow.WorkflowInfo" +} + // GetObjectType returns the ObjectType field value func (o *WorkflowWorkflowInfo) GetObjectType() string { if o == nil { @@ -180,6 +185,11 @@ func (o *WorkflowWorkflowInfo) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "workflow.WorkflowInfo" of the ObjectType field. +func (o *WorkflowWorkflowInfo) GetDefaultObjectType() interface{} { + return "workflow.WorkflowInfo" +} + // GetAction returns the Action field value if set, zero value otherwise. func (o *WorkflowWorkflowInfo) GetAction() string { if o == nil || IsNil(o.Action) { @@ -361,7 +371,7 @@ func (o *WorkflowWorkflowInfo) GetInputOk() (*interface{}, bool) { // HasInput returns a boolean if a field has been set. func (o *WorkflowWorkflowInfo) HasInput() bool { - if o != nil && IsNil(o.Input) { + if o != nil && !IsNil(o.Input) { return true } @@ -490,7 +500,7 @@ func (o *WorkflowWorkflowInfo) GetMessageOk() ([]WorkflowMessage, bool) { // HasMessage returns a boolean if a field has been set. func (o *WorkflowWorkflowInfo) HasMessage() bool { - if o != nil && IsNil(o.Message) { + if o != nil && !IsNil(o.Message) { return true } @@ -555,7 +565,7 @@ func (o *WorkflowWorkflowInfo) GetOutputOk() (*interface{}, bool) { // HasOutput returns a boolean if a field has been set. func (o *WorkflowWorkflowInfo) HasOutput() bool { - if o != nil && IsNil(o.Output) { + if o != nil && !IsNil(o.Output) { return true } @@ -1029,7 +1039,7 @@ func (o *WorkflowWorkflowInfo) GetVariableOk() (*interface{}, bool) { // HasVariable returns a boolean if a field has been set. func (o *WorkflowWorkflowInfo) HasVariable() bool { - if o != nil && IsNil(o.Variable) { + if o != nil && !IsNil(o.Variable) { return true } @@ -1384,7 +1394,7 @@ func (o *WorkflowWorkflowInfo) GetTaskInfosOk() ([]WorkflowTaskInfoRelationship, // HasTaskInfos returns a boolean if a field has been set. func (o *WorkflowWorkflowInfo) HasTaskInfos() bool { - if o != nil && IsNil(o.TaskInfos) { + if o != nil && !IsNil(o.TaskInfos) { return true } @@ -1457,7 +1467,13 @@ func (o WorkflowWorkflowInfo) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Action) { toSerialize["Action"] = o.Action @@ -1584,6 +1600,13 @@ func (o *WorkflowWorkflowInfo) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -1593,11 +1616,23 @@ func (o *WorkflowWorkflowInfo) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type WorkflowWorkflowInfoWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` @@ -1623,7 +1658,7 @@ func (o *WorkflowWorkflowInfo) UnmarshalJSON(data []byte) (err error) { LastAction *string `json:"LastAction,omitempty"` Message []WorkflowMessage `json:"Message,omitempty"` // A name of the workflow execution instance. - Name *string `json:"Name,omitempty"` + Name *string `json:"Name,omitempty" validate:"regexp=^[^:]{1,92}$"` // All the generated outputs for the workflow. The schema for the outputs are defined in the OutputDefinition section of the WorkflowDefinition. The OutputDefinition will provide a list of output fields that could be generated after workflow execution is completed and the associated datatype of the outputs. For more information please refer to OutputDefinition property in WorkflowDefinition resource. The output for the workflow is generated as a collection of key-value pairs, where key is the name of the output and value is any valid JSON data which conforms to the datatype of output as specified in the OutputDefinition. During workflow definition design, if a workflow is included as a sub-workflow inside a parent workflow then the outputs generated by the sub-workflow can be used in the workflow design. For example, if workflow was included into parent workflow as 'SubWorkflowSample1', then that output can be referred as 'SubWorkflowSample1.output.'. In the output is referred directly in a mapping it will be in the format '${SubWorkflowSample1.output.}' or inside a template mapping will be in the format '{{SubWorkflowSample1.output.}}'. Output interface{} `json:"Output,omitempty"` // Denotes the reason workflow is in paused status. * `None` - Pause reason is none, which indicates there is no reason for the pause state. * `TaskWithWarning` - Pause reason indicates the workflow is in this state due to a task that has a status as completed with warnings. * `SystemMaintenance` - Pause reason indicates the workflow is in this state based on actions of system admin for maintenance. diff --git a/model_workflow_workflow_info_auto_restart_properties.go b/model_workflow_workflow_info_auto_restart_properties.go index 1b5e2f68aa..32c68cb5b8 100644 --- a/model_workflow_workflow_info_auto_restart_properties.go +++ b/model_workflow_workflow_info_auto_restart_properties.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -83,6 +83,10 @@ func (o *WorkflowWorkflowInfoAutoRestartProperties) UnmarshalJSON(data []byte) ( "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -92,11 +96,23 @@ func (o *WorkflowWorkflowInfoAutoRestartProperties) UnmarshalJSON(data []byte) ( } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type WorkflowWorkflowInfoAutoRestartPropertiesWithoutEmbeddedStruct struct { } diff --git a/model_workflow_workflow_info_list.go b/model_workflow_workflow_info_list.go index 54496bb122..2ea03eeb8f 100644 --- a/model_workflow_workflow_info_list.go +++ b/model_workflow_workflow_info_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *WorkflowWorkflowInfoList) GetResultsOk() ([]WorkflowWorkflowInfo, bool) // HasResults returns a boolean if a field has been set. func (o *WorkflowWorkflowInfoList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *WorkflowWorkflowInfoList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *WorkflowWorkflowInfoList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type WorkflowWorkflowInfoListWithoutEmbeddedStruct struct { // The total number of 'workflow.WorkflowInfo' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_workflow_workflow_info_properties.go b/model_workflow_workflow_info_properties.go index a36bccad82..a560b0d052 100644 --- a/model_workflow_workflow_info_properties.go +++ b/model_workflow_workflow_info_properties.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -89,6 +89,11 @@ func (o *WorkflowWorkflowInfoProperties) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "workflow.WorkflowInfoProperties" of the ClassId field. +func (o *WorkflowWorkflowInfoProperties) GetDefaultClassId() interface{} { + return "workflow.WorkflowInfoProperties" +} + // GetObjectType returns the ObjectType field value func (o *WorkflowWorkflowInfoProperties) GetObjectType() string { if o == nil { @@ -113,6 +118,11 @@ func (o *WorkflowWorkflowInfoProperties) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "workflow.WorkflowInfoProperties" of the ObjectType field. +func (o *WorkflowWorkflowInfoProperties) GetDefaultObjectType() interface{} { + return "workflow.WorkflowInfoProperties" +} + // GetCancelable returns the Cancelable field value if set, zero value otherwise (both if not set or set to explicit null). func (o *WorkflowWorkflowInfoProperties) GetCancelable() WorkflowCancelableType { if o == nil || IsNil(o.Cancelable.Get()) { @@ -302,7 +312,13 @@ func (o WorkflowWorkflowInfoProperties) ToMap() (map[string]interface{}, error) if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.Cancelable.IsSet() { toSerialize["Cancelable"] = o.Cancelable.Get() @@ -336,6 +352,13 @@ func (o *WorkflowWorkflowInfoProperties) UnmarshalJSON(data []byte) (err error) "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -345,11 +368,23 @@ func (o *WorkflowWorkflowInfoProperties) UnmarshalJSON(data []byte) (err error) } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type WorkflowWorkflowInfoPropertiesWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_workflow_workflow_info_relationship.go b/model_workflow_workflow_info_relationship.go index 92d5ffb0aa..9b02e6f892 100644 --- a/model_workflow_workflow_info_relationship.go +++ b/model_workflow_workflow_info_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_workflow_workflow_info_response.go b/model_workflow_workflow_info_response.go index d7d07848ff..7ca9c7d6d2 100644 --- a/model_workflow_workflow_info_response.go +++ b/model_workflow_workflow_info_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_workflow_workflow_metadata.go b/model_workflow_workflow_metadata.go index 7735d1c271..3c08a7f6de 100644 --- a/model_workflow_workflow_metadata.go +++ b/model_workflow_workflow_metadata.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -31,9 +31,9 @@ type WorkflowWorkflowMetadata struct { // The description for this workflow. Description *string `json:"Description,omitempty"` // A user friendly short name to identify the workflow metadata. Label can only contain letters (a-z, A-Z), numbers (0-9), hyphen (-), period (.), colon (:), space ( ) or an underscore (_). - Label *string `json:"Label,omitempty"` + Label *string `json:"Label,omitempty" validate:"regexp=^[a-zA-Z0-9]{1}[\\\\sa-zA-Z0-9_.:-]{0,91}$"` // The name for this workflow metadata. You can have multiple versions of the workflow with the same name. Name can only contain letters (a-z, A-Z), numbers (0-9), hyphen (-), period (.) or an underscore (_). - Name *string `json:"Name,omitempty"` + Name *string `json:"Name,omitempty" validate:"regexp=^[a-zA-Z0-9]{1}[a-zA-Z0-9_.-]{0,63}$"` // An array of relationships to iamRole resources. AssociatedRoles []IamRoleRelationship `json:"AssociatedRoles,omitempty"` Catalog NullableWorkflowCatalogRelationship `json:"Catalog,omitempty"` @@ -89,6 +89,11 @@ func (o *WorkflowWorkflowMetadata) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "workflow.WorkflowMetadata" of the ClassId field. +func (o *WorkflowWorkflowMetadata) GetDefaultClassId() interface{} { + return "workflow.WorkflowMetadata" +} + // GetObjectType returns the ObjectType field value func (o *WorkflowWorkflowMetadata) GetObjectType() string { if o == nil { @@ -113,6 +118,11 @@ func (o *WorkflowWorkflowMetadata) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "workflow.WorkflowMetadata" of the ObjectType field. +func (o *WorkflowWorkflowMetadata) GetDefaultObjectType() interface{} { + return "workflow.WorkflowMetadata" +} + // GetDescription returns the Description field value if set, zero value otherwise. func (o *WorkflowWorkflowMetadata) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -230,7 +240,7 @@ func (o *WorkflowWorkflowMetadata) GetAssociatedRolesOk() ([]IamRoleRelationship // HasAssociatedRoles returns a boolean if a field has been set. func (o *WorkflowWorkflowMetadata) HasAssociatedRoles() bool { - if o != nil && IsNil(o.AssociatedRoles) { + if o != nil && !IsNil(o.AssociatedRoles) { return true } @@ -303,7 +313,13 @@ func (o WorkflowWorkflowMetadata) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Description) { toSerialize["Description"] = o.Description @@ -337,6 +353,13 @@ func (o *WorkflowWorkflowMetadata) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -346,11 +369,23 @@ func (o *WorkflowWorkflowMetadata) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type WorkflowWorkflowMetadataWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` @@ -359,9 +394,9 @@ func (o *WorkflowWorkflowMetadata) UnmarshalJSON(data []byte) (err error) { // The description for this workflow. Description *string `json:"Description,omitempty"` // A user friendly short name to identify the workflow metadata. Label can only contain letters (a-z, A-Z), numbers (0-9), hyphen (-), period (.), colon (:), space ( ) or an underscore (_). - Label *string `json:"Label,omitempty"` + Label *string `json:"Label,omitempty" validate:"regexp=^[a-zA-Z0-9]{1}[\\\\sa-zA-Z0-9_.:-]{0,91}$"` // The name for this workflow metadata. You can have multiple versions of the workflow with the same name. Name can only contain letters (a-z, A-Z), numbers (0-9), hyphen (-), period (.) or an underscore (_). - Name *string `json:"Name,omitempty"` + Name *string `json:"Name,omitempty" validate:"regexp=^[a-zA-Z0-9]{1}[a-zA-Z0-9_.-]{0,63}$"` // An array of relationships to iamRole resources. AssociatedRoles []IamRoleRelationship `json:"AssociatedRoles,omitempty"` Catalog NullableWorkflowCatalogRelationship `json:"Catalog,omitempty"` diff --git a/model_workflow_workflow_metadata_list.go b/model_workflow_workflow_metadata_list.go index dd6e249b3d..dd54e59808 100644 --- a/model_workflow_workflow_metadata_list.go +++ b/model_workflow_workflow_metadata_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *WorkflowWorkflowMetadataList) GetResultsOk() ([]WorkflowWorkflowMetadat // HasResults returns a boolean if a field has been set. func (o *WorkflowWorkflowMetadataList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *WorkflowWorkflowMetadataList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *WorkflowWorkflowMetadataList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type WorkflowWorkflowMetadataListWithoutEmbeddedStruct struct { // The total number of 'workflow.WorkflowMetadata' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_workflow_workflow_metadata_relationship.go b/model_workflow_workflow_metadata_relationship.go index 8d8a23e745..e61b32ec7a 100644 --- a/model_workflow_workflow_metadata_relationship.go +++ b/model_workflow_workflow_metadata_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_workflow_workflow_metadata_response.go b/model_workflow_workflow_metadata_response.go index 0a4bfd78a7..712bc4b22f 100644 --- a/model_workflow_workflow_metadata_response.go +++ b/model_workflow_workflow_metadata_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_workflow_workflow_properties.go b/model_workflow_workflow_properties.go index 5a12a47b88..fd498d7c37 100644 --- a/model_workflow_workflow_properties.go +++ b/model_workflow_workflow_properties.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -126,6 +126,11 @@ func (o *WorkflowWorkflowProperties) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "workflow.WorkflowProperties" of the ClassId field. +func (o *WorkflowWorkflowProperties) GetDefaultClassId() interface{} { + return "workflow.WorkflowProperties" +} + // GetObjectType returns the ObjectType field value func (o *WorkflowWorkflowProperties) GetObjectType() string { if o == nil { @@ -150,6 +155,11 @@ func (o *WorkflowWorkflowProperties) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "workflow.WorkflowProperties" of the ObjectType field. +func (o *WorkflowWorkflowProperties) GetDefaultObjectType() interface{} { + return "workflow.WorkflowProperties" +} + // GetCloneable returns the Cloneable field value if set, zero value otherwise. func (o *WorkflowWorkflowProperties) GetCloneable() bool { if o == nil || IsNil(o.Cloneable) { @@ -456,7 +466,13 @@ func (o WorkflowWorkflowProperties) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Cloneable) { toSerialize["Cloneable"] = o.Cloneable @@ -502,6 +518,13 @@ func (o *WorkflowWorkflowProperties) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -511,11 +534,23 @@ func (o *WorkflowWorkflowProperties) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type WorkflowWorkflowPropertiesWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/model_workflow_workflow_task.go b/model_workflow_workflow_task.go index 23587d3085..f7f56142b8 100644 --- a/model_workflow_workflow_task.go +++ b/model_workflow_workflow_task.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -33,7 +33,7 @@ type WorkflowWorkflowTask struct { // A user defined label identifier of the workflow task used for UI display. Label *string `json:"Label,omitempty"` // The name of the task within the workflow and it must be unique among all WorkflowTasks within a workflow definition. This name serves as the internal unique identifier for the task and is used to pick input and output parameters to feed into other tasks. - Name *string `json:"Name,omitempty"` + Name *string `json:"Name,omitempty" validate:"regexp=^[a-zA-Z0-9_:-]{1,64}$"` AdditionalProperties map[string]interface{} } @@ -248,6 +248,10 @@ func (o *WorkflowWorkflowTask) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -257,11 +261,23 @@ func (o *WorkflowWorkflowTask) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type WorkflowWorkflowTaskWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. The enum values provides the list of concrete types that can be instantiated from this abstract type. ClassId string `json:"ClassId"` @@ -272,7 +288,7 @@ func (o *WorkflowWorkflowTask) UnmarshalJSON(data []byte) (err error) { // A user defined label identifier of the workflow task used for UI display. Label *string `json:"Label,omitempty"` // The name of the task within the workflow and it must be unique among all WorkflowTasks within a workflow definition. This name serves as the internal unique identifier for the task and is used to pick input and output parameters to feed into other tasks. - Name *string `json:"Name,omitempty"` + Name *string `json:"Name,omitempty" validate:"regexp=^[a-zA-Z0-9_:-]{1,64}$"` } varWorkflowWorkflowTaskWithoutEmbeddedStruct := WorkflowWorkflowTaskWithoutEmbeddedStruct{} diff --git a/model_workflow_xml_api.go b/model_workflow_xml_api.go index d9cb72eb6d..91f3138f28 100644 --- a/model_workflow_xml_api.go +++ b/model_workflow_xml_api.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -83,6 +83,10 @@ func (o *WorkflowXmlApi) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -92,11 +96,23 @@ func (o *WorkflowXmlApi) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type WorkflowXmlApiWithoutEmbeddedStruct struct { } diff --git a/model_workspace_folder.go b/model_workspace_folder.go index a1f319098d..4776b58c23 100644 --- a/model_workspace_folder.go +++ b/model_workspace_folder.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -35,7 +35,7 @@ type WorkspaceFolder struct { // The UserID or email who last modified this folder. ModUser *string `json:"ModUser,omitempty"` // The name for this folder. You can have multiple versions of the folder with the same name. Name can only contain letters (a-z, A-Z), numbers (0-9), hyphen (-), period (.) or an underscore (_). - Name *string `json:"Name,omitempty"` + Name *string `json:"Name,omitempty" validate:"regexp=^[a-zA-Z0-9]{1}[\\\\sa-zA-Z0-9_.\\/:-]{0,91}$"` // An array of relationships to moBaseMo resources. Assets []MoBaseMoRelationship `json:"Assets,omitempty"` Catalog NullableWorkflowCatalogRelationship `json:"Catalog,omitempty"` @@ -98,6 +98,11 @@ func (o *WorkspaceFolder) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "workspace.Folder" of the ClassId field. +func (o *WorkspaceFolder) GetDefaultClassId() interface{} { + return "workspace.Folder" +} + // GetObjectType returns the ObjectType field value func (o *WorkspaceFolder) GetObjectType() string { if o == nil { @@ -122,6 +127,11 @@ func (o *WorkspaceFolder) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "workspace.Folder" of the ObjectType field. +func (o *WorkspaceFolder) GetDefaultObjectType() interface{} { + return "workspace.Folder" +} + // GetArchived returns the Archived field value if set, zero value otherwise. func (o *WorkspaceFolder) GetArchived() bool { if o == nil || IsNil(o.Archived) { @@ -271,7 +281,7 @@ func (o *WorkspaceFolder) GetAssetsOk() ([]MoBaseMoRelationship, bool) { // HasAssets returns a boolean if a field has been set. func (o *WorkspaceFolder) HasAssets() bool { - if o != nil && IsNil(o.Assets) { + if o != nil && !IsNil(o.Assets) { return true } @@ -390,7 +400,7 @@ func (o *WorkspaceFolder) GetSubFoldersOk() ([]WorkspaceFolderRelationship, bool // HasSubFolders returns a boolean if a field has been set. func (o *WorkspaceFolder) HasSubFolders() bool { - if o != nil && IsNil(o.SubFolders) { + if o != nil && !IsNil(o.SubFolders) { return true } @@ -420,7 +430,13 @@ func (o WorkspaceFolder) ToMap() (map[string]interface{}, error) { if errMoBaseMo != nil { return map[string]interface{}{}, errMoBaseMo } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if !IsNil(o.Archived) { toSerialize["Archived"] = o.Archived @@ -463,6 +479,13 @@ func (o *WorkspaceFolder) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -472,11 +495,23 @@ func (o *WorkspaceFolder) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type WorkspaceFolderWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` @@ -489,7 +524,7 @@ func (o *WorkspaceFolder) UnmarshalJSON(data []byte) (err error) { // The UserID or email who last modified this folder. ModUser *string `json:"ModUser,omitempty"` // The name for this folder. You can have multiple versions of the folder with the same name. Name can only contain letters (a-z, A-Z), numbers (0-9), hyphen (-), period (.) or an underscore (_). - Name *string `json:"Name,omitempty"` + Name *string `json:"Name,omitempty" validate:"regexp=^[a-zA-Z0-9]{1}[\\\\sa-zA-Z0-9_.\\/:-]{0,91}$"` // An array of relationships to moBaseMo resources. Assets []MoBaseMoRelationship `json:"Assets,omitempty"` Catalog NullableWorkflowCatalogRelationship `json:"Catalog,omitempty"` diff --git a/model_workspace_folder_list.go b/model_workspace_folder_list.go index 0792c0b6a2..7a340a9400 100644 --- a/model_workspace_folder_list.go +++ b/model_workspace_folder_list.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -104,7 +104,7 @@ func (o *WorkspaceFolderList) GetResultsOk() ([]WorkspaceFolder, bool) { // HasResults returns a boolean if a field has been set. func (o *WorkspaceFolderList) HasResults() bool { - if o != nil && IsNil(o.Results) { + if o != nil && !IsNil(o.Results) { return true } @@ -156,6 +156,10 @@ func (o *WorkspaceFolderList) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{} + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -165,11 +169,23 @@ func (o *WorkspaceFolderList) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type WorkspaceFolderListWithoutEmbeddedStruct struct { // The total number of 'workspace.Folder' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. Count *int32 `json:"Count,omitempty"` diff --git a/model_workspace_folder_relationship.go b/model_workspace_folder_relationship.go index c2af3c3411..c32d1c94eb 100644 --- a/model_workspace_folder_relationship.go +++ b/model_workspace_folder_relationship.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_workspace_folder_response.go b/model_workspace_folder_response.go index 267e8aa2c3..a7594782cd 100644 --- a/model_workspace_folder_response.go +++ b/model_workspace_folder_response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/model_x509_certificate.go b/model_x509_certificate.go index bf1b282297..b0d9fea0d3 100644 --- a/model_x509_certificate.go +++ b/model_x509_certificate.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -93,6 +93,11 @@ func (o *X509Certificate) SetClassId(v string) { o.ClassId = v } +// GetDefaultClassId returns the default value "x509.Certificate" of the ClassId field. +func (o *X509Certificate) GetDefaultClassId() interface{} { + return "x509.Certificate" +} + // GetObjectType returns the ObjectType field value func (o *X509Certificate) GetObjectType() string { if o == nil { @@ -117,6 +122,11 @@ func (o *X509Certificate) SetObjectType(v string) { o.ObjectType = v } +// GetDefaultObjectType returns the default value "x509.Certificate" of the ObjectType field. +func (o *X509Certificate) GetDefaultObjectType() interface{} { + return "x509.Certificate" +} + // GetIssuer returns the Issuer field value if set, zero value otherwise (both if not set or set to explicit null). func (o *X509Certificate) GetIssuer() PkixDistinguishedName { if o == nil || IsNil(o.Issuer.Get()) { @@ -381,7 +391,13 @@ func (o X509Certificate) ToMap() (map[string]interface{}, error) { if errMoBaseComplexType != nil { return map[string]interface{}{}, errMoBaseComplexType } + if _, exists := toSerialize["ClassId"]; !exists { + toSerialize["ClassId"] = o.GetDefaultClassId() + } toSerialize["ClassId"] = o.ClassId + if _, exists := toSerialize["ObjectType"]; !exists { + toSerialize["ObjectType"] = o.GetDefaultObjectType() + } toSerialize["ObjectType"] = o.ObjectType if o.Issuer.IsSet() { toSerialize["Issuer"] = o.Issuer.Get() @@ -421,6 +437,13 @@ func (o *X509Certificate) UnmarshalJSON(data []byte) (err error) { "ObjectType", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{}{ + "ClassId": o.GetDefaultClassId, + "ObjectType": o.GetDefaultObjectType, + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) @@ -430,11 +453,23 @@ func (o *X509Certificate) UnmarshalJSON(data []byte) (err error) { } for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == "" { return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil { + return err + } + } type X509CertificateWithoutEmbeddedStruct struct { // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. ClassId string `json:"ClassId"` diff --git a/response.go b/response.go index 64537c73fd..22cde52f5f 100644 --- a/response.go +++ b/response.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/signing.go b/signing.go index 10d3302046..a676d26967 100644 --- a/signing.go +++ b/signing.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ diff --git a/utils.go b/utils.go index fea1e3d03c..86375fb9b8 100644 --- a/utils.go +++ b/utils.go @@ -3,7 +3,7 @@ Cisco Intersight No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 1.0.11-17956 +API version: 1.0.11-18012 Contact: intersight@cisco.com */ @@ -12,7 +12,9 @@ Contact: intersight@cisco.com package intersight import ( + "bytes" "encoding/json" + "fmt" "reflect" "time" ) @@ -321,7 +323,7 @@ func NewNullableTime(val *time.Time) *NullableTime { } func (v NullableTime) MarshalJSON() ([]byte, error) { - return v.value.MarshalJSON() + return json.Marshal(v.value) } func (v *NullableTime) UnmarshalJSON(src []byte) error { @@ -346,3 +348,15 @@ func IsNil(i interface{}) bool { type MappedNullable interface { ToMap() (map[string]interface{}, error) } + +// A wrapper for strict JSON decoding +func newStrictDecoder(data []byte) *json.Decoder { + dec := json.NewDecoder(bytes.NewBuffer(data)) + dec.DisallowUnknownFields() + return dec +} + +// Prevent trying to import "fmt" +func reportError(format string, a ...interface{}) error { + return fmt.Errorf(format, a...) +}